/* =====================================================================
   SaluChat, assets/talk/css/sky.css (v93)
   The frame of every signed-out page: the home page, signing in and up,
   the feature, guide and policy pages. (The name is from v92, when this
   file was the sky under them; the sky is gone.)

     the page      plain: white by day, black at night (talk.css tokens,
                   html data-theme, settled before the first paint)
     the top bar   frosted purple by day, frosted black at night, the same
                   as the app's: the mark and the words in white, its
                   buttons light on the bar
     the globe     the home page's world in dots (assets/talk/js/dot-globe.js)

   Scoped under .au like auth.css: talk.php (the app) loads every file in
   this folder and nothing here may reach it.
   ===================================================================== */

html.au-page { background: var(--bg); }
body.au { background: var(--bg); }

/* ---------------------------------------------------------------- the top bar */
.au .au-top {
  position: sticky; top: 0; z-index: 30;
  background: var(--bar-sheen), var(--bar); -webkit-backdrop-filter: var(--bar-fx); backdrop-filter: var(--bar-fx);
  box-shadow: inset 0 -1px 0 var(--bar-line);
}
html.t-lite .au .au-top { background: var(--bar-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
.au .au-top .au-brand, .au .au-top .au-brand:hover { color: #FFFFFF; }
.au .au-top .au-brand .au-mark-svg { color: #FFFFFF; }
.au .au-top .au-brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.au .au-top .site-nav a { color: var(--bar-ink2); }
.au .au-top .site-nav a:hover, .au .au-top .site-nav a[aria-current] { color: #FFFFFF; }
/* the switch, the language and Sign in: light on the bar */
.au .au-top .au-theme, .au .au-top .au-lang.i18n-btn, .au .au-top .t-btn:not(.acc) {
  border-color: transparent; background: var(--bar-btn); box-shadow: inset 0 0 0 1px var(--bar-btn-line); color: #FFFFFF;
}
.au .au-top .au-theme:hover, .au .au-top .au-lang.i18n-btn:hover, .au .au-top .t-btn:not(.acc):hover { background: rgba(255, 255, 255, .2); color: #FFFFFF; }
/* Create account: white on the bar */
.au .au-top .t-btn.acc { background: #FFFFFF; color: var(--bar-solid); }
html:not([data-theme="day"]) .au .au-top .t-btn.acc { color: #000000; }
.au .au-top .t-btn.acc:hover { background: #ECECF2; }

/* the language menu (assets/js/i18n.js draws it on the body): a panel of the page, in its light */
.au .i18n-pop { background: var(--pg-sheet); color: var(--ink1); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--lift); }
.au .i18n-pop button:hover { background: var(--wash2); }
.au .i18n-pop button.on::after { background: var(--acc); }

/* ---------------------------------------------------------------- words on the page */
.au ::selection { background: var(--acc-tint2); color: var(--ink1); }
.au .au-foot, .au .au-foot a { color: var(--ink3); }
.au .au-foot a:hover { color: var(--ink1); }

/* ---------------------------------------------------------------- the world in dots (dot-globe.js) */
/* The host covers its section; the globe stands over the anchor it names (data-dg-anchor), its colours from here. */
.au .dg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s cubic-bezier(.2, .7, .2, 1); }
.au .dg.on, .au .dg.no-gl { opacity: 1; }
.au .dg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.au-page { --dg-dot: #FFFFFF; --dg-city: #A49CFF; --dg-arc: #C8C3FF; --dg-dust: #FFFFFF; --dg-halo: rgba(120, 110, 255, .09); }
html.au-page[data-theme="day"] { --dg-dot: #19191F; --dg-city: #453F84; --dg-arc: #5A52A8; --dg-dust: #453F84; --dg-halo: rgba(69, 63, 132, .07); }
/* a soft halo of the logo's purple behind it */
.au .dg::before {
  content: ''; position: absolute; left: var(--dg-cx, 50%); top: var(--dg-cy, 50%); width: calc(var(--dg-r, 200px) * 2.7); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, var(--dg-halo), transparent 72%);
}
/* no WebGL, or no script: a flat disc of the same dots */
.au .dg.no-gl::after, html:not(.sc-js) .au .dg::after {
  content: ''; position: absolute; left: var(--dg-cx, 50%); top: var(--dg-cy, 50%); width: calc(var(--dg-r, 200px) * 2); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; opacity: .32;
  background: radial-gradient(circle, var(--dg-dot) 1px, transparent 1.6px) 0 0 / 10px 10px;
  -webkit-mask: radial-gradient(closest-side, #000 70%, transparent 100%); mask: radial-gradient(closest-side, #000 70%, transparent 100%);
}
html:not(.sc-js) .au .dg { opacity: 1; }

/* ---------------------------------------------------------------- less motion */
@media (prefers-reduced-motion: reduce) {
  .au .dg { transition: none; }
}
/* the turn between day and night (theme.js, view transitions): nothing of ours animates through it */
html.th-vt .au .dg { transition: none; }
