/* Velrano Temple v1.3 — "Australian coast" visual system: deep ocean glass, eucalyptus teal, sand and
   ochre accents, coral alerts. Loaded before the page's own <style>, so tokens use html:root and
   component rules are scoped (body.au-shell / ids) to win where needed. */
html:root {
  --au-ink: #0a1f24;
  --au-deep: #0f2f36;
  --au-panel: rgba(9, 29, 34, 0.84);
  --au-panel-solid: #0f2b31;
  --au-panel-2: rgba(18, 52, 60, 0.94);
  --au-line: rgba(150, 214, 203, 0.2);
  --au-line-2: rgba(150, 214, 203, 0.42);
  --au-text: #f3efe6;
  --au-muted: #a6c1bb;
  --au-teal: #3ab5a0;
  --au-teal-2: #24877a;
  --au-sand: #f3b562;
  --au-sand-2: #e0893a;
  --au-coral: #ef5b4b;
  --au-ok: #7fdca3;
  --au-sky: #8fd0f5;
  --au-shadow: 0 10px 34px rgba(0, 10, 14, 0.45);
  --au-radius: 16px;
  --top-h: 56px;
  --rail-w: 68px;
  --side-w: 252px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* legacy tokens of the original stylesheet, re-pointed to the new palette */
  --gold: #f3b562;
  --gold-dark: #24877a;
  --gold-light: #ffe7c2;
  --wood-dark: #0a1f24;
  --wood-mid: #12343b;
  --red-temple: #c4573f;
  --red-dark: #6e2c22;
  --bg-overlay: rgba(9, 29, 34, 0.9);
  --bg-dock: rgba(9, 29, 34, 0.94);
  color-scheme: dark;
}

/* ── Page 1: sign-in ─────────────────────────────────────────────────────────────── */
.au-gate { position: fixed; inset: 0; z-index: 10060; display: grid; place-items: center; padding: 16px; padding-top: calc(16px + var(--safe-t)); overflow-y: auto;
  background: radial-gradient(120% 90% at 20% 0%, #1d5a63 0%, #0d2b32 45%, #071a1f 100%); transition: opacity 0.35s ease; }
.au-gate.is-done { opacity: 0; pointer-events: none; }
.au-gate[hidden] { display: none; }
.au-gate-sky { position: fixed; inset: auto 0 0 0; height: 38vh; pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(60% 40% at 50% 100%, rgba(243, 181, 98, 0.35), transparent 70%),
    repeating-linear-gradient(170deg, transparent 0 22px, rgba(143, 208, 245, 0.08) 22px 24px); }
.au-auth-card { position: relative; width: min(440px, 100%); margin: auto; background: #fbf8f2; color: #17322f; border-radius: 22px;
  padding: clamp(20px, 5vw, 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.au-auth-card.is-busy { cursor: progress; }
/* v1.4: no flash of every form at once. Until auth-ui.js picks a view, only the matching parts
   exist on screen (pure CSS, works before any script runs) and the card stays invisible while
   the session check is running, then fades in once — one stable frame instead of two. */
#authGate[data-view="loading"] [data-show]:not([data-show~="loading"]),
#authGate[data-view="signin"] [data-show]:not([data-show~="signin"]),
#authGate[data-view="signup"] [data-show]:not([data-show~="signup"]),
#authGate[data-view="recover"] [data-show]:not([data-show~="recover"]),
#authGate[data-view="reset"] [data-show]:not([data-show~="reset"]),
#authGate[data-view="loading"] [data-only], #authGate[data-view="recover"] [data-only], #authGate[data-view="reset"] [data-only],
#authGate[data-view="signin"] [data-only]:not([data-only="signin"]),
#authGate[data-view="signup"] [data-only]:not([data-only="signup"]) { display: none !important; }
#authGate .au-auth-card { transition: opacity 0.28s ease, transform 0.28s ease; }
#authGate[data-view="loading"] .au-auth-card { opacity: 0; transform: translateY(6px); pointer-events: none; }
#authGate[data-view="loading"]::after { content: ''; position: fixed; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid rgba(207, 229, 223, 0.35); border-top-color: #3ab5a0; border-radius: 50%; animation: au-spin 0.8s linear infinite; }
.au-auth-brand { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.au-auth-logo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(15, 47, 54, 0.3); }
.au-auth-brand h1 { margin: 0; font-size: clamp(1.15rem, 5.4vw, 1.45rem); color: #0f2f36; letter-spacing: 0.2px; white-space: nowrap; } /* v1.16: one line on every phone */
.au-auth-tag { margin: 2px 0 0; font-size: 0.86rem; color: #557370; }
.au-auth-ver { color: #24877a !important; border-color: #9fd6cc !important; background: #eef8f5; align-self: start; }
.au-auth-loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 26px 0; color: #557370; }
.au-spinner { width: 18px; height: 18px; border: 2.5px solid #cfe5df; border-top-color: #24877a; border-radius: 50%; animation: au-spin 0.8s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e3e9e5; margin-bottom: 16px; }
.au-tab { min-height: 46px; background: none; border: none; border-bottom: 3px solid transparent; color: #7d918d; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
.au-tab[aria-selected="true"] { color: #0f2f36; border-bottom-color: #0f2f36; }
.au-form { display: grid; gap: 12px; }
.au-form[hidden], [data-show][hidden], [data-only][hidden] { display: none !important; }
.au-field { display: grid; gap: 5px; font-size: 0.82rem; color: #557370; font-weight: 600; }
.au-field input, .au-two select, .au-two input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #d6e0dc; background: #fff;
  color: #17322f; font: inherit; font-size: 1rem; user-select: text; -webkit-user-select: text; }
.au-field input:focus { outline: none; border-color: #24877a; box-shadow: 0 0 0 3px rgba(36, 135, 122, 0.18); }
.au-pw { position: relative; }
.au-eye { position: absolute; right: 6px; bottom: 6px; width: 40px; height: 36px; border: none; background: none; cursor: pointer; font-size: 1rem; opacity: 0.6; }
.au-hint { margin: -4px 0 0; font-size: 0.8rem; color: #7d918d; }
.au-msg { margin: 0; min-height: 1.2em; font-size: 0.88rem; color: #c0392b; }
.au-msg[data-kind="ok"] { color: #1e7d4f; }
.au-msg[data-kind="info"] { color: #557370; }
.au-msg:empty { display: none; }
.au-primary { min-height: 50px; border: none; border-radius: 12px; background: linear-gradient(135deg, #2a9a6a, #1f7c58); color: #fff; font: inherit; font-size: 1.04rem;
  font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(31, 124, 88, 0.28); padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.au-primary:disabled { opacity: 0.6; cursor: progress; }
.au-link { background: none; border: none; color: #1f6aa5; font: inherit; font-size: 0.92rem; cursor: pointer; min-height: 40px; justify-self: center; }
.au-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: #97a8a4; font-size: 0.82rem; }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: #e3e9e5; }
.au-google { width: 100%; min-height: 50px; display: flex; gap: 10px; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid #d6e0dc;
  background: #fff; color: #17322f; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
.au-google.is-off { opacity: 0.55; }
/* v1.16: inside a chat / social app's own browser — open the page in Chrome or Safari for Google sign-in. */
.au-inapp { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff6e6; border: 1px solid #f0d49a; color: #5a4320; }
.au-inapp-text { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.au-inapp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.au-inapp-row button { flex: 1 1 140px; min-height: 44px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.au-inapp-open { border: 0; background: #1f7a52; color: #fff; }
.au-inapp-copy { border: 1.5px solid #d6c39a; background: #fff; color: #5a4320; }
.au-inapp .au-hint { margin: 8px 0 0; }
.au-guest { width: 100%; }
.au-sub { margin: 0; font-size: 1.15rem; color: #0f2f36; }
.au-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 0.8rem; color: #7d918d; }
.au-rules li.ok { color: #1e7d4f; }
.au-auth-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e3e9e5; display: grid; gap: 8px; text-align: center; font-size: 0.8rem; color: #7d918d; }
.au-auth-foot p { margin: 0; }
.au-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.au-legal a { color: #1f6aa5; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.au-lang { position: relative; display: flex; justify-content: center; }
.au-lang-btn { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 4px 12px; border-radius: 10px; border: 1px solid transparent; background: none; color: #17322f; font: inherit; cursor: pointer; }
.au-lang-btn:hover { border-color: #d6e0dc; }
.au-lang-btn svg, .au-lang-menu svg { width: 22px; height: auto; border-radius: 2px; }
.au-lang-menu { position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); min-width: 180px; z-index: 2; }
.au-lang-menu button { width: 100%; display: flex; gap: 10px; align-items: center; min-height: 42px; padding: 6px 10px; border: none; background: none; border-radius: 8px; font: inherit; color: #17322f; cursor: pointer; }
.au-lang-menu button[aria-selected="true"], .au-lang-menu button:hover { background: #eef5f3; }

/* ── Page 2: dharma name + server ────────────────────────────────────────────────── */
body #audioUnlockBanner { background: radial-gradient(110% 80% at 80% 0%, rgba(31, 92, 102, 0.82), rgba(7, 26, 31, 0.92)); backdrop-filter: blur(10px); cursor: default; padding: 16px; padding-top: calc(16px + var(--safe-t)); overflow-y: auto; align-items: stretch; z-index: 10055; }
body #audioUnlockBanner .unlock-card { margin: auto; width: min(560px, 100%); max-width: none; animation: none; transform: none; text-align: left; border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(170deg, rgba(250, 247, 240, 0.97), rgba(236, 244, 240, 0.97)); color: #17322f; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); padding: clamp(18px, 4.5vw, 30px); display: grid; gap: 14px; }
.uc-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.uc-step { font-size: 0.75rem; font-weight: 700; color: #24877a; background: #e2f3ef; border-radius: 20px; padding: 3px 10px; }
.uc-top .lang-strip { margin: 0 !important; }
.uc-top .lang-flag.on { border-color: #24877a; }
.uc-me { font-size: 0.78rem; color: #557370; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-hero { display: flex; gap: 14px; align-items: center; }
.uc-logo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; box-shadow: 0 8px 20px rgba(15, 47, 54, 0.25); }
.uc-hero-text { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body #audioUnlockBanner .unlock-card h1 { margin: 0; color: #0f2f36; font-size: clamp(1.4rem, 5vw, 1.85rem); text-shadow: none; letter-spacing: 0.2px; }
.uc-hero .app-version { color: #24877a; border-color: #9fd6cc; background: #eef8f5; }
body #audioUnlockBanner .uc-welcome { margin: 0; color: #3b5653; font-size: 0.95rem; line-height: 1.6; }
.uc-welcome b { color: #b5651d; }
.uc-panel { border-radius: 18px; padding: 14px 16px; background: #fff; border: 1px solid #dde8e4; display: grid; gap: 8px; }
.uc-name label { font-weight: 700; color: #0f2f36; font-size: 0.92rem; }
.uc-name-row { display: flex; gap: 8px; }
.uc-name-row input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #cfdcd7; background: #fbfdfc; color: #17322f; font: inherit; font-size: 1.02rem; outline: none; user-select: text; -webkit-user-select: text; }
.uc-name-row input:focus { border-color: #24877a; box-shadow: 0 0 0 3px rgba(36, 135, 122, 0.18); }
.uc-confirm { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid #24877a; background: #fff; color: #1d6f64; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.uc-confirm.done { background: #24877a; color: #fff; }
.uc-note, body #audioUnlockBanner .unlock-card p.uc-note { margin: 0; font-size: 0.82rem; color: #557370; line-height: 1.4; }
body #audioUnlockBanner .unlock-card p.uc-note:empty { display: none; }
.uc-note[data-kind="ok"] { color: #1e7d4f; font-weight: 600; }
.uc-note[data-kind="err"] { color: #c0392b; }
.uc-servers-head { display: flex; justify-content: space-between; align-items: center; color: #0f2f36; }
.uc-refresh { min-height: 36px; border: none; background: none; color: #1f6aa5; font: inherit; cursor: pointer; }
.uc-server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.uc-server { text-align: left; min-height: 64px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid #dde8e4; background: #f7faf9; color: #17322f; font: inherit; cursor: pointer; display: grid; gap: 4px; }
.uc-server.on { border-color: #24877a; background: #e6f4f1; box-shadow: 0 0 0 2px rgba(36, 135, 122, 0.25) inset; }
.uc-server:disabled { opacity: 0.5; cursor: not-allowed; }
.uc-server-meta { font-size: 0.8rem; color: #557370; }
.uc-server-bar { height: 5px; border-radius: 4px; background: #e0ebe8; overflow: hidden; }
.uc-server-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ab5a0, #f3b562); }
body #audioUnlockBanner #lotusLoadingWrap { background: #fff; border: 1px solid #dde8e4; border-radius: 16px; margin: 0; }
body #audioUnlockBanner .lotus-load-head { color: #0f2f36; }
body #audioUnlockBanner .lotus-load-track { background: #e0ebe8; }
body #audioUnlockBanner #lotusLoadingBarFill { background: linear-gradient(90deg, #3ab5a0, #f3b562); box-shadow: none; }
body #audioUnlockBanner .btn-enter-temple { width: 100%; justify-content: center; min-height: 54px; border-radius: 16px; background: linear-gradient(135deg, #f3b562, #e0893a); color: #1c1206; box-shadow: 0 10px 24px rgba(224, 137, 58, 0.35); }
body #audioUnlockBanner .btn-enter-temple:hover { transform: translateY(-1px); }

/* ── Shell: hide the original HUD (its nodes stay for the game's own updates) ───────── */
body.au-shell .top-bar { display: none !important; }
body.au-shell .zen-dock { display: none !important; }

/* ── Top bar ─────────────────────────────────────────────────────────────────────── */
.au-top { position: fixed; z-index: 40; top: var(--safe-t); left: var(--rail-w); right: 0; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: linear-gradient(180deg, rgba(7, 26, 31, 0.86), rgba(7, 26, 31, 0.55)); backdrop-filter: blur(12px); border-bottom: 1px solid var(--au-line); color: var(--au-text); transition: left 0.25s ease; }
body.au-side-expanded .au-top { left: var(--side-w); }
.au-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--au-line-2); background: var(--au-panel); color: var(--au-text); font-size: 1.2rem; cursor: pointer; }
.au-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 0; }
.au-brand-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.au-brand b { font-size: 1rem; white-space: nowrap; }
.au-top .app-version, .au-side .app-version { color: var(--au-sand); border-color: rgba(243, 181, 98, 0.55); }
.au-spacer { flex: 1; }
.au-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 11px; border-radius: 18px; border: 1px solid var(--au-line); background: var(--au-panel); color: var(--au-text);
  font: inherit; font-size: 0.82rem; white-space: nowrap; cursor: default; }
button.au-chip { cursor: pointer; }
button.au-chip:hover, .au-icon:hover { border-color: var(--au-line-2); }
.au-zone { color: var(--au-sand); font-weight: 700; }
.au-clock b { font-variant-numeric: tabular-nums; }
.au-clock-date, .au-clock-tz { color: var(--au-muted); }
.au-server-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.au-merit { color: var(--au-sand); font-weight: 700; }
.au-level b { color: var(--au-teal); }
.au-level-title { color: var(--au-muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.au-icon { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--au-line); background: var(--au-panel); color: var(--au-text); font-size: 1.05rem; cursor: pointer; }
.au-icon.alert { border-color: var(--au-coral); box-shadow: 0 0 0 3px rgba(239, 91, 75, 0.25); }
.au-dot { position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--au-coral); box-shadow: 0 0 0 2px #0a1f24; animation: au-ping 1.4s ease-out infinite; }
.au-count { position: absolute; top: -3px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--au-coral); color: #fff; font-size: 0.68rem; font-style: normal; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #0a1f24; }
.au-dot[hidden], .au-count[hidden] { display: none; }
@keyframes au-ping { 0% { box-shadow: 0 0 0 0 rgba(239, 91, 75, 0.6), 0 0 0 2px #0a1f24; } 100% { box-shadow: 0 0 0 9px rgba(239, 91, 75, 0), 0 0 0 2px #0a1f24; } }
.au-donate { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 20px; border: none; background: linear-gradient(135deg, #f7c46f, #e0893a); color: #2a1604;
  font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(224, 137, 58, 0.45); animation: au-glow 2.6s ease-in-out infinite; white-space: nowrap; }
@keyframes au-glow { 50% { box-shadow: 0 6px 26px rgba(247, 196, 111, 0.75); } }
.au-account { position: relative; }
.au-avatar-btn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 10px 3px 3px; border-radius: 24px; border: 1px solid var(--au-line); background: var(--au-panel); color: var(--au-text); font: inherit; cursor: pointer; max-width: 210px; }
.au-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3ab5a0, #1f6f8b); color: #fff; font-weight: 800; flex-shrink: 0; }
.au-status { display: grid; text-align: left; min-width: 0; line-height: 1.15; }
.au-status b { font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-status small { font-size: 0.7rem; color: var(--au-ok); white-space: nowrap; }
.au-menu { position: absolute; right: 0; top: 50px; width: 260px; padding: 8px; border-radius: 16px; background: var(--au-panel-solid); border: 1px solid var(--au-line-2); box-shadow: var(--au-shadow); display: grid; gap: 4px; z-index: 50; }
.au-menu[hidden] { display: none; }
.au-menu-email { padding: 8px 10px; font-size: 0.8rem; color: var(--au-muted); overflow-wrap: anywhere; border-bottom: 1px solid var(--au-line); }
.au-menu-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 0; }
.au-menu-lang { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 2px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--au-text); font: inherit; font-size: 0.72rem; cursor: pointer; }
.au-menu-lang.on { border-color: var(--au-teal); background: rgba(58, 181, 160, 0.12); }
.au-menu-lang svg { width: 24px; height: auto; }
.au-menu > button, .au-menu > a { min-height: 44px; padding: 8px 10px; border-radius: 10px; border: none; background: none; color: var(--au-text); font: inherit; text-align: left; cursor: pointer; text-decoration: none; display: flex; align-items: center; }
.au-menu > button:hover, .au-menu > a:hover { background: rgba(255, 255, 255, 0.06); }
.au-signout { color: #ffb3a6 !important; }

/* v1.5: collapsible bars (left mantra player, right fireworks banner) */
.au-bar-toggle { position: fixed; z-index: 39; top: calc(var(--safe-t) + var(--top-h) + 10px); left: calc(var(--rail-w) + 12px); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--au-line-2); background: var(--au-panel); color: var(--au-text); font-size: 1.1rem; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
body.au-shell.au-side-expanded .au-bar-toggle { left: calc(var(--side-w) + 12px); }
#mantraPlayer.au-bar-hidden { display: none !important; }
.au-bar-toggle:not(.au-bar-hidden) { display: inline-flex; }
@media (max-width: 860px) { .au-bar-toggle { left: 8px !important; } }

/* v1.4: fireworks announcement (under the top bar / admin notice) */
.au-fwbar { position: fixed; z-index: 38; top: calc(var(--safe-t) + var(--top-h) + 8px); right: 12px; display: flex; align-items: center; gap: 10px;
  width: min(560px, calc(100vw - var(--rail-w) - 24px)); padding: 8px 8px 8px 14px; border-radius: 16px; background: linear-gradient(100deg, rgba(40, 10, 50, 0.92), rgba(120, 20, 60, 0.9)); color: #fff;
  border: 1px solid rgba(255, 170, 210, 0.5); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); font-size: 0.9rem; }
.au-fwbar[hidden] { display: none !important; }
.au-fwbar.live { animation: au-fwpulse 1.6s ease-in-out infinite; }
@keyframes au-fwpulse { 50% { box-shadow: 0 10px 34px rgba(255, 80, 150, 0.6); } }
.au-fw-ico { font-size: 1.3rem; }
.au-fw-text { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.au-fw-title { font-weight: 700; }
.au-fw-sub { color: #ffd27a; font-size: 0.85em; }
.au-fw-go { min-height: 40px; padding: 0 14px; border-radius: 20px; border: none; background: linear-gradient(135deg, #f7c46f, #e0893a); color: #2a1604; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
body.au-activity .au-fwbar, body.zen-photo-mode .au-fwbar { display: none !important; }
.au-notice:not([hidden]) ~ .au-fwbar { top: calc(var(--safe-t) + var(--top-h) + 58px); }
@media (max-width: 1100px) { .au-fwbar { width: min(460px, calc(100vw - var(--rail-w) - 24px)); } }
@media (max-width: 860px) { .au-fwbar { top: auto; right: 8px; left: 8px; width: auto; bottom: calc(96px + var(--safe-b)); font-size: 0.82rem; } .au-fw-go { padding: 0 10px; } .au-notice:not([hidden]) ~ .au-fwbar { top: auto; } }

/* ── Admin notice + toasts ──────────────────────────────────────────────────────────── */
.au-notice { position: fixed; z-index: 39; top: calc(var(--safe-t) + var(--top-h)); left: var(--rail-w); right: 0; display: flex; gap: 10px; align-items: center; padding: 8px 14px;
  background: linear-gradient(90deg, #b8352a, #e05a3c); color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.au-notice[hidden] { display: none; }
.au-notice-text { flex: 1; overflow-wrap: anywhere; }
body.au-side-expanded .au-notice { left: var(--side-w); }
.au-x { min-width: 40px; min-height: 40px; border: none; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: inherit; font-size: 1rem; cursor: pointer; }
.au-toasts { position: fixed; z-index: 10070; left: 50%; top: calc(var(--safe-t) + var(--top-h) + 12px); transform: translateX(-50%); display: grid; gap: 8px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.au-toast { padding: 12px 16px; border-radius: 14px; background: var(--au-panel-solid); border: 1px solid var(--au-teal); color: var(--au-text); box-shadow: var(--au-shadow); transition: opacity 0.5s, transform 0.5s; }
.au-toast.warn { border-color: var(--au-coral); }
.au-toast.out { opacity: 0; transform: translateY(-8px); }

/* ── Sidebar ─────────────────────────────────────────────────────────────────────── */
.au-side { position: fixed; z-index: 45; top: var(--safe-t); bottom: 0; left: 0; width: var(--rail-w); display: flex; flex-direction: column; gap: 6px; padding: 10px 8px calc(10px + var(--safe-b));
  background: linear-gradient(180deg, #f5f1e8, #e9f0ec); color: #17322f; border-right: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18); transition: width 0.25s ease, transform 0.25s ease; overflow: hidden; }
.au-side.expanded { width: var(--side-w); }
.au-side-top { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.au-side.expanded .au-side-top { flex-direction: row; justify-content: space-between; padding: 0 4px; }
.au-side-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.au-side-toggle { width: 30px; height: 30px; border-radius: 10px; border: 1px solid #d4dfdb; background: #fff; color: #17322f; font-size: 1rem; cursor: pointer; }
/* v1.4: brand info only in the expanded sidebar (logo · name+version · zone) */
.au-side.expanded .au-side-top { gap: 8px; }
.au-side.expanded .au-side-logo { width: 40px; height: 40px; flex-shrink: 0; }
.au-side-brand { flex: 1; min-width: 0; display: grid; gap: 3px; }
.au-side-brand-row { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; row-gap: 3px; }
.au-side-brand-row b { flex-basis: 100%; }
.au-side-brand b { font-size: 0.95rem; color: #0f2f36; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-side-brand .app-version { font-size: 0.66rem; padding: 0 5px; flex-shrink: 0; }
.au-side-brand .au-zone { justify-self: start; font-size: 0.74rem; color: #b86a1d; background: #fbecd6; border-radius: 10px; padding: 1px 8px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-side-brand .au-zone:empty { display: none; }
.au-side.expanded .au-side-toggle { flex-shrink: 0; }
/* v1.4: top-bar language picker (flag) */
.au-langpick { position: relative; }
.au-lang-btn { gap: 6px; padding: 4px 10px; }
.au-lang-btn svg, .au-lang-opt svg { width: 22px; height: auto; border-radius: 3px; flex-shrink: 0; }
.au-lang-caret { font-size: 0.7rem; color: var(--au-muted); }
.au-lang-pop { position: absolute; left: 0; top: 44px; z-index: 60; min-width: 170px; padding: 6px; border-radius: 14px; background: var(--au-panel-solid); border: 1px solid var(--au-line-2); box-shadow: var(--au-shadow); display: grid; gap: 2px; }
.au-lang-pop[hidden] { display: none; }
.au-lang-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--au-text); font: inherit; font-size: 0.9rem; cursor: pointer; text-align: left; }
.au-lang-opt:hover { background: rgba(255, 255, 255, 0.06); }
.au-lang-opt.on { border-color: var(--au-teal); background: rgba(58, 181, 160, 0.12); }
.au-side-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; overflow-y: auto; overflow-x: hidden; flex: 1; scrollbar-width: none; }
.au-side-list::-webkit-scrollbar { display: none; }
.au-side-item { display: grid; }
.au-side-group, .au-side-child { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 6px 10px; border-radius: 14px; border: none; background: none;
  color: #17322f; font: inherit; text-align: left; cursor: pointer; }
.au-side-group:hover, .au-side-child:hover { background: rgba(36, 135, 122, 0.08); }
.au-side-group.on { background: #e1efeb; }
.au-side-group.on::before { content: ''; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #1f6f8b; }
.au-ico { width: 30px; flex-shrink: 0; text-align: center; font-size: 1.45rem; filter: saturate(1.1); }
.au-side:not(.expanded) .au-label { display: none; }
.au-side:not(.expanded) .au-side-group { justify-content: center; padding: 6px 0; }
.au-side .au-label { flex: 1; font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-side-kids { list-style: none; margin: 0 0 6px 18px; padding: 0 0 0 10px; border-left: 2px solid #d9e6e2; display: grid; gap: 1px; }
.au-side-child { min-height: 42px; font-weight: 500; }
.au-side-child .au-ico { font-size: 1.05rem; width: 22px; }
.au-side-child .au-label { font-weight: 500; font-size: 0.88rem; }
.au-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--au-coral); color: #fff; font-size: 0.7rem; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.au-side:not(.expanded) .au-side-group .au-badge { position: absolute; top: 2px; right: 2px; }
.au-side-foot { display: flex; justify-content: center; padding-top: 6px; border-top: 1px solid #dfe8e5; }
.au-side .au-side-foot .app-version { color: #24877a; border-color: #9fd6cc; }
.au-fly { position: fixed; z-index: 46; left: calc(var(--rail-w) + 8px); min-width: 230px; max-width: calc(100vw - var(--rail-w) - 16px); padding: 8px; border-radius: 16px; background: #fbf8f2; color: #17322f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.au-fly[hidden] { display: none; }
.au-fly-head { display: flex; gap: 8px; align-items: center; padding: 6px 10px 8px; font-weight: 800; color: #0f2f36; border-bottom: 1px solid #e3e9e5; margin-bottom: 4px; }
.au-fly ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.au-fly .au-side-child { min-height: 46px; }
.au-fly .au-label { font-size: 0.92rem; }

/* Keep the game HUD clear of the rail / top bar. */
body.au-shell #mantraPlayer { top: calc(var(--safe-t) + var(--top-h) + 10px); left: calc(var(--rail-w) + 12px); background: var(--au-panel); border-color: var(--au-line-2); border-radius: 18px; color: var(--au-text); }
body.au-shell.au-side-expanded #mantraPlayer { left: calc(var(--side-w) + 12px); }
body.au-shell #scheduledSutraLiveBanner { top: calc(var(--safe-t) + var(--top-h) + 86px); background: linear-gradient(135deg, rgba(15, 60, 70, 0.96), rgba(8, 30, 36, 0.98)); border-color: var(--au-sand); }
body.au-shell #joystickZone { background: rgba(9, 29, 34, 0.45); border-color: rgba(143, 208, 245, 0.45); }
body.au-shell #joystickThumb { background: radial-gradient(circle, #8fd0f5 0%, #24877a 100%); box-shadow: 0 0 14px rgba(143, 208, 245, 0.6); }

/* ── Controls guide (keycaps) ───────────────────────────────────────────────────── */
body.au-shell #controlsHelp.au-keys { position: fixed; top: auto; bottom: calc(18px + var(--safe-b)); left: calc(var(--rail-w) + 12px); z-index: 9; pointer-events: auto; width: 300px; padding: 10px 12px; border-radius: 18px;
  background: var(--au-panel); border: 1px solid var(--au-line); color: var(--au-text); box-shadow: var(--au-shadow); backdrop-filter: blur(10px); font-size: 0.8rem; line-height: 1.3; display: block; }
body.au-shell.au-side-expanded #controlsHelp.au-keys { left: calc(var(--side-w) + 12px); }
.au-keys-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.au-keys-head b { color: var(--au-sand); font-size: 0.82rem; }
.au-keys-toggle { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--au-line); background: none; color: var(--au-text); cursor: pointer; }
.au-keys-list, .au-keys-touch { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.au-keys-list li, .au-keys-touch li { display: grid; grid-template-columns: 98px 1fr; gap: 8px; align-items: center; }
.kc-group { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.kc-group i { color: var(--au-muted); font-style: normal; }
.au-keys kbd { min-width: 20px; height: 21px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 6px; background: linear-gradient(180deg, #f6f1e6, #d9d1c2); color: #1b2b28;
  font: 700 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 2px 0 #9f978a; }
.au-keys kbd.wide { min-width: 46px; }
.kc-label { color: #dfe9e5; }
.kc-ico { font-size: 1.1rem; text-align: center; }
.au-keys-touch { display: none; }
#controlsHelp.small .au-keys-list, #controlsHelp.small .au-keys-touch { display: none !important; }
#controlsHelp.small { width: auto; }
#controlsHelp.small .au-keys-head { margin: 0; gap: 8px; }
@media (pointer: coarse) {
  body.au-shell #controlsHelp .au-keys-list { display: none; }
  body.au-shell #controlsHelp .au-keys-touch { display: grid; }
}
body.zen-photo-mode #controlsHelp, body.dharma-3d-open #controlsHelp, body.zen-photo-mode .au-dock, body.zen-photo-mode .au-top, body.zen-photo-mode .au-side,
body.dharma-3d-open .au-dock, body.dharma-3d-open .au-top, body.dharma-3d-open .au-side { display: none !important; }

/* ── Grouped action dock ───────────────────────────────────────────────────────── */
.au-dock { position: fixed; z-index: 30; bottom: calc(16px + var(--safe-b)); left: calc(50% + var(--rail-w) / 2); transform: translateX(-50%); display: flex; align-items: flex-end; gap: 6px; padding: 6px;
  border-radius: 26px; background: rgba(250, 247, 240, 0.92); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); backdrop-filter: blur(12px); }
.au-dock-group { position: relative; }
.au-dock-btn { display: grid; justify-items: center; gap: 2px; min-width: 74px; min-height: 58px; padding: 6px 10px; border-radius: 20px; border: none; background: none; color: #17322f; font: inherit; cursor: pointer; }
.au-dock-btn:hover, .au-dock-btn[aria-expanded="true"] { background: #e1efeb; }
.au-dock-ico { font-size: 1.45rem; line-height: 1; }
.au-dock-label { font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.au-dock-group.primary .au-dock-btn { min-width: 88px; min-height: 70px; margin-top: -14px; background: linear-gradient(160deg, #2a9d8f, #1f6f8b); color: #fff; box-shadow: 0 10px 24px rgba(31, 111, 139, 0.45); }
.au-dock-group.primary .au-dock-ico { font-size: 1.8rem; }
.au-dock-sheet { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 8px; border-radius: 20px; background: #0f2b31; border: 1px solid var(--au-line-2); box-shadow: var(--au-shadow); }
.au-dock-sheet[hidden] { display: none; }
.au-dock-sheet::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: #0f2b31; }
body.au-shell .au-dock-sheet .btn-tool.au-dock-kid { min-width: 78px; min-height: 64px; padding: 8px 10px; border-radius: 16px; border: 1px solid var(--au-line); background: rgba(255, 255, 255, 0.04); color: var(--au-text); font-size: 0.74rem; display: grid; justify-items: center; gap: 4px; }
body.au-shell .au-dock-sheet .btn-tool.au-dock-kid:hover { background: rgba(58, 181, 160, 0.18); border-color: var(--au-teal); transform: none; }
body.au-shell .au-dock-sheet .btn-tool .icon { font-size: 1.4rem; }

/* ── Bell (v1.13: clean ivory card) ─────────────────────────────────────────────── */
.au-bell { position: fixed; z-index: 10045; top: calc(var(--safe-t) + var(--top-h) + 8px); right: 10px; width: min(400px, calc(100vw - 20px)); max-height: min(72vh, 640px); overflow-y: auto;
  padding: 6px 6px 8px; border-radius: 20px; background: #fbf8f1; color: #1f2a2b; border: 1px solid rgba(31, 42, 43, 0.08);
  box-shadow: 0 24px 60px rgba(4, 18, 22, 0.35), 0 2px 6px rgba(4, 18, 22, 0.12); overscroll-behavior: contain; }
.au-bell[hidden] { display: none; }
.au-bell-head { position: sticky; top: -6px; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 12px; margin: -6px -6px 4px;
  background: linear-gradient(#fbf8f1 70%, rgba(251, 248, 241, 0)); border-radius: 20px 20px 0 0; }
.au-bell-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; letter-spacing: 0.01em; }
.au-bell-bell { font-size: 1.05rem; }
.au-bell-total { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #eef3ef; color: #2f6f62; font-size: 0.74rem; font-weight: 700; display: inline-grid; place-items: center; }
.au-bell-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f0ebe0; color: #4b5557; font-size: 0.95rem; cursor: pointer; }
.au-bell-x:hover { background: #e6dfd0; }
.au-bell-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.au-n { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 14px;
  background: #ffffff; border: 1px solid rgba(31, 42, 43, 0.07); cursor: pointer; transition: background 0.15s, transform 0.15s; overflow: hidden; }
.au-n::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #b9c9c3; }
.au-n:hover, .au-n:focus-visible { background: #f6faf8; outline: none; }
.au-n.danger::before { background: #d9534a; }
.au-n.brand::before { background: #2f9c86; }
.au-n.warn::before { background: #d99a3c; }
.au-n.new { background: #fffdf8; }
.au-n.new .au-n-ico::after { content: ''; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: #d9534a; box-shadow: 0 0 0 2px #fff; }
.au-n-ico { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: #f1f5f2; }
.au-n.danger .au-n-ico { background: #fbecea; }
.au-n.brand .au-n-ico { background: #e8f4f0; }
.au-n-body { min-width: 0; display: grid; gap: 2px; }
.au-n-kind { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8f88; }
.au-n.danger .au-n-kind { color: #c2453c; }
.au-n.brand .au-n-kind { color: #2f8a77; }
.au-n-title { display: block; font-size: 0.9rem; font-weight: 650; line-height: 1.35; color: #1f2a2b; overflow-wrap: anywhere; }
.au-n-desc { margin: 0; font-size: 0.82rem; line-height: 1.45; color: #5d6765; overflow-wrap: anywhere; }
.k-notice .au-n-desc { color: #1f2a2b; font-size: 0.86rem; }
.au-n-go { color: #a9b0ab; font-size: 1.3rem; line-height: 1; }
.au-empty { color: #7c8583; text-align: center; padding: 26px 0 20px; font-size: 0.88rem; }
@media (max-width: 480px) { .au-bell { right: 8px; left: 8px; width: auto; } .au-n { grid-template-columns: 34px 1fr auto; gap: 10px; } .au-n-ico { width: 34px; height: 34px; } }

/* ── Sheets (donate, share, servers, guide) and the hub ─────────────────────────────── */
.au-sheet, body .lh-panel { position: fixed; z-index: 10040; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100vw - 24px)); max-height: min(86vh, 860px);
  display: none; flex-direction: column; background: linear-gradient(170deg, #fbf8f2, #eef4f1); color: #17322f; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); overflow: hidden; font-size: 0.93rem; }
.au-sheet-head, body .lh-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e0e8e5; color: #0f2f36; font-weight: 800; font-size: 1.05rem; }
.au-sheet .au-x, body .lh-close { color: #17322f; background: #eef3f1; }
.au-sheet-body { padding: 14px 18px 20px; overflow-y: auto; display: grid; gap: 12px; }
.au-lead { margin: 0; color: #3b5653; }
.au-muted { color: #6c8581; }
.au-small { font-size: 0.8rem; }
.au-ok { color: #1e7d4f; font-weight: 600; }
.au-donate-list { display: grid; gap: 12px; }
.au-donate-card { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #dde8e4; }
.au-donate-card.featured { border-color: #e0893a; box-shadow: 0 0 0 2px rgba(224, 137, 58, 0.25) inset; }
.au-donate-card h4 { margin: 0; color: #0f2f36; }
.au-bankcard { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #a9c3f7, #8fb0f2); color: #172a52; }
.au-bankcard.payid { background: linear-gradient(135deg, #bfe8dc, #9bd8c8); color: #12403a; }
.au-bankcard small { display: block; font-size: 0.8rem; opacity: 0.85; }
.au-bankcard b { display: block; font-size: 1.12rem; letter-spacing: 0.5px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.au-copy { flex-shrink: 0; min-height: 40px; padding: 0 12px; border-radius: 12px; border: none; background: rgba(255, 255, 255, 0.55); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.au-qrbox { display: grid; justify-items: center; gap: 6px; padding: 14px; border-radius: 16px; background: #f4f6fb; }
.au-qrbox img { width: min(220px, 60vw); aspect-ratio: 1; background: #fff; padding: 8px; border-radius: 12px; }
.au-paybtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 16px; background: linear-gradient(135deg, #ffe27a, #f6c945); color: #2a2205; font-weight: 800; text-decoration: none; font-size: 1.02rem; }
.au-donate-empty { padding: 16px; border-radius: 14px; background: #fff; border: 1px dashed #c7d6d2; color: #557370; }
.au-steps { display: grid; gap: 12px; }
.au-steps section { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #dde8e4; display: grid; gap: 10px; }
.au-steps h4 { margin: 0; color: #0f2f36; }
.au-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.au-share-btn { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #d6e0dc; background: #f7faf9; color: #17322f; font: inherit; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.au-share-btn.facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.au-share-btn.x { background: #111; color: #fff; border-color: #111; }
.au-share-btn.whatsapp { background: #25d366; color: #073b1b; border-color: #25d366; }
.au-share-btn.threads { background: #fff; }
.au-share-btn.native { background: #0f2f36; color: #fff; }
.au-file { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed #9fc6be; color: #1d6f64; font-weight: 700; cursor: pointer; justify-self: start; }
.au-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.au-share-preview { max-width: 100%; max-height: 220px; border-radius: 12px; border: 1px solid #dde8e4; }
.au-two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.au-two label { display: grid; gap: 4px; font-size: 0.8rem; color: #557370; font-weight: 600; }
.au-servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.au-server-card { display: grid; gap: 4px; text-align: left; min-height: 78px; padding: 14px; border-radius: 18px; border: 1.5px solid #dde8e4; background: #f2f4f4; color: #17322f; font: inherit; cursor: pointer; }
.au-server-card b { font-size: 1.02rem; }
.au-server-card span { color: #557370; }
.au-server-card small { color: #24877a; font-weight: 700; }
.au-server-card.on { border-color: #24877a; background: #e6f4f1; }
.au-server-card:disabled:not(.on) { opacity: 0.5; cursor: not-allowed; }
.au-video { width: 100%; aspect-ratio: 16 / 9; border: none; border-radius: 14px; background: #000; }
.au-sheet .au-keys-list { padding: 12px; border-radius: 14px; background: #0f2b31; color: var(--au-text); }
.au-sheet .au-keys-list .kc-label { color: #e8f1ee; }

/* hub (luvia-hub.js) on the light sheet */
/* v1.14: the head and the tab row never shrink — with a long list the column used to squeeze the tab row
   (a scroll container) and cut the pills in half. */
body .lh-tabs { display: flex; gap: 6px; padding: 10px 12px 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-bottom: 1px solid #e0e8e5; flex-shrink: 0; }
.au-sheet > .au-sheet-head, body .lh-head, .au-sheet > .au-tabs, .au-sheet > [class*="tabs"] { flex-shrink: 0; }
body .lh-lv-pic { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; background: #f4efe4; }
body .lh-tabs::-webkit-scrollbar { display: none; }
body .lh-tab { flex-shrink: 0; min-height: 40px; padding: 6px 14px; border-radius: 20px; border: 1px solid #d6e0dc; background: #fff; color: #17322f; cursor: pointer; white-space: nowrap; font: inherit; font-weight: 600; }
body .lh-tab.on { background: #0f2f36; color: #fff; border-color: #0f2f36; }
body .lh-body { padding: 14px 16px 18px; overflow-y: auto; display: grid; gap: 12px; }
body .lh-card { background: #fff; border: 1px solid #dde8e4; border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
body .lh-card h4, body .lh-sub { color: #0f2f36; margin: 0; font-size: 1rem; }
body .lh-card p { margin: 0; line-height: 1.5; color: #3b5653; }
body .lh-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
body .lh-btn { min-height: 42px; padding: 8px 16px; border-radius: 12px; border: 1px solid #cfdcd7; background: #fff; color: #17322f; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; }
body .lh-btn.primary { background: linear-gradient(135deg, #2a9d8f, #1f6f8b); color: #fff; border-color: transparent; }
body .lh-btn.gift { background: linear-gradient(135deg, #ffe27a, #f6c945); color: #2a2205; border-color: transparent; }
body .lh-pill { padding: 3px 10px; border-radius: 12px; border: 1px solid #9fd6cc; color: #1d6f64; font-size: 0.8rem; background: #eef8f5; }
body .lh-free { color: #1e7d4f; font-weight: 700; font-size: 0.82rem; }
body .lh-free s { color: #8a9c98; font-weight: 400; }
body .lh-gift { color: #b5651d; font-weight: 700; font-size: 0.8rem; }
body .lh-lock { color: #8a6a3a; font-size: 0.84rem; }
body .lh-muted { color: #6c8581; font-size: 0.84rem; }
body .lh-ok { color: #1e7d4f; } body .lh-warn { color: #c0392b; }
body .lh-staff { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff4e5; border: 1px solid #f3c78b; color: #8a4b0f; font-size: 0.86rem; }
body .lh-promo { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 16px; border: none; background: linear-gradient(135deg, #ffe9a8, #ffd36b); color: #3a2a05; font: inherit; cursor: pointer; box-shadow: 0 8px 20px rgba(246, 201, 69, 0.35); }
body .lh-promo span { font-size: 0.84rem; }
body .lh-chips { display: flex; gap: 6px; flex-wrap: wrap; }
body .lh-chip { min-height: 38px; padding: 4px 14px; border-radius: 18px; border: 1px solid #d6e0dc; background: #fff; color: #17322f; cursor: pointer; font: inherit; font-weight: 600; }
body .lh-chip.on { background: #e1efeb; border-color: #24877a; color: #0f2f36; }
body .lh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
body .lh-item { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 8px; border-radius: 16px; border: 1px solid #dde8e4; background: #fff; }
body .lh-item.on { border-color: #24877a; box-shadow: 0 0 0 2px rgba(36, 135, 122, 0.3) inset; }
/* v1.11: locked items keep their full colour (the gold crowns stay vivid gold) */
body .lh-item .lh-pic img { filter: saturate(1.18) contrast(1.05); }
body .lh-item.locked .lh-pic { filter: none; opacity: 1; }
body .lh-pic { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #ffffff, #e3ece9); overflow: hidden; }
body .lh-pic img { width: 100%; height: 100%; object-fit: contain; }
body .lh-emoji { font-size: 2.2rem; }
body .lh-swatch { width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.2); display: inline-block; }
body .lh-swatch.sm { width: 26px; height: 26px; }
body .lh-swatch.xs { width: 16px; height: 16px; }
body .lh-look, body .lh-lv-look { display: inline-flex; gap: 8px; align-items: center; }
body .lh-name { font-weight: 700; overflow-wrap: anywhere; color: #0f2f36; }
body .lh-list { margin: 0; padding-left: 4px; list-style: none; display: grid; gap: 4px; }
body .lh-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
body .lh-card input, body .lh-card textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid #cfdcd7; background: #fbfdfc; color: #17322f; font: inherit; user-select: text; -webkit-user-select: text; }
body .lh-wishes { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
body .lh-wish { padding: 12px; border-radius: 14px; background: #fff6ec; border: 1px solid #f1d4b0; }
body .lh-wish p { margin: 0 0 4px; overflow-wrap: anywhere; color: #3b2a14; }
body .lh-qrs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
body .lh-qr { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px; border-radius: 16px; border: 1px solid #dde8e4; background: #fff; }
body .lh-qr img { width: 150px; height: 150px; background: #fff; border-radius: 8px; padding: 4px; }
body .lh-code { font-family: ui-monospace, monospace; letter-spacing: 1px; color: #1d6f64; overflow-wrap: anywhere; }
body .lh-sponsors { display: flex; flex-wrap: wrap; gap: 10px; }
body .lh-sponsor { display: flex; gap: 8px; align-items: center; min-height: 46px; padding: 6px 12px; border-radius: 12px; border: 1px solid #dde8e4; background: #fff; color: #17322f; text-decoration: none; }
body .lh-sponsor img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; }
body .lh-progress { display: grid; gap: 4px; font-size: 0.85rem; color: #3b5653; }
body .lh-bar { height: 10px; border-radius: 6px; background: #e0ebe8; overflow: hidden; margin-bottom: 4px; }
body .lh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ab5a0, #f3b562); }
body .lh-levels { display: grid; gap: 6px; }
body .lh-lv { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid #e0e8e5; background: #fff; }
body .lh-lv.done { background: #f1f8f6; }
body .lh-lv.on { border-color: #24877a; box-shadow: 0 0 0 2px rgba(36, 135, 122, 0.25) inset; }
body .lh-lv b { color: #1d6f64; }
body .lh-perks { grid-column: 1 / -1; }

/* ── In-world prompts and activity overlays (world-au.js) ─────────────────────────── */
/* v1.6.2: the base layout of the [G] prompt, the activity HUD and the breath overlay was lost in v1.3,
   so "Bấm [G]: Quét Lá / Koala / Ống Nhòm…" rendered nowhere. It sits just above the [E]/[H] prompt
   (#interactPrompt, bottom 145px / 175px on phones) so both can show at once, e.g. beside the lotus pond. */
.au-prompt { position: fixed; left: 50%; bottom: calc(200px + var(--safe-b, 0px)); transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px);
  min-height: 44px; padding: 10px 18px; border-radius: 24px; border: 1px solid #ffd700; background: rgba(20, 40, 60, 0.88); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); animation: au-prompt-in 0.25s ease-out; }
@keyframes au-prompt-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.au-hud { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); padding: 8px 14px; border-radius: 14px;
  background: rgba(10, 40, 70, 0.85); color: #e6f6ff; border: 1px solid #7fc8f8; text-align: center; }
.au-breath { position: fixed; inset: 0; z-index: 10030; display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 45%, rgba(10, 60, 90, 0.35), rgba(5, 20, 35, 0.65)); pointer-events: auto; }
.au-breath-ring { width: min(56vw, 260px); aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(190, 240, 255, 0.9);
  background: radial-gradient(circle, rgba(127, 200, 248, 0.35), rgba(127, 200, 248, 0.05)); transition: transform 0.25s linear; box-shadow: 0 0 60px rgba(127, 200, 248, 0.45); }
.au-breath-label { color: #fff; font-size: 1.5rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.au-breath-count { color: #cfeaff; }
.au-breath-stop { min-height: 44px; padding: 8px 18px; border-radius: 22px; border: 1px solid #cfeaff; background: rgba(0, 0, 0, 0.3); color: #fff; cursor: pointer; }
@media (max-width: 768px) {
  .au-prompt { bottom: calc(232px + var(--safe-b, 0px)); font-size: 0.86rem; }
}
body .au-prompt { border-color: var(--au-sand); background: rgba(9, 29, 34, 0.9); }
body .au-hud { background: rgba(9, 29, 34, 0.9); border-color: var(--au-sky); top: calc(var(--safe-t) + var(--top-h) + 14px); }
.au-scope { position: fixed; inset: 0; z-index: 10030; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0 min(36vw, 36vh), rgba(0, 0, 0, 0.92) calc(min(36vw, 36vh) + 2px)); }
.au-scope::after { content: ''; position: absolute; left: 50%; top: 50%; width: calc(min(72vw, 72vh)); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), inset 0 0 60px rgba(0, 0, 0, 0.6); }
.au-scope-ui { position: fixed; z-index: 10031; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); }
.au-scope-ui > * { min-height: 46px; padding: 0 16px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(9, 29, 34, 0.85); color: #fff; font: inherit; font-weight: 700; display: inline-flex; align-items: center; }
.au-scope-ui button { cursor: pointer; }
/* v1.4: author display rules must never beat [hidden] (the activity bar stayed on screen with
   dead buttons after an activity ended). */
.au-scope-ui[hidden], .luvia-ui[hidden], .au-ui[hidden], .au-prompt[hidden], .au-hud[hidden], .au-breath[hidden] { display: none !important; }
.au-hearts { position: fixed; inset: 0; pointer-events: none; z-index: 10032; overflow: hidden; }
.au-heart { position: absolute; font-size: 1.6rem; animation: au-float 1.6s ease-out forwards; }
@keyframes au-float { from { transform: translate(-50%, 0) scale(0.6); opacity: 1; } to { transform: translate(calc(-50% + var(--dx, 0px)), -140px) scale(1.25); opacity: 0; } }

/* ── Sutra reader ─────────────────────────────────────────────────────────────── */
.au-reader { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 10px; margin: -4px 0 10px; border-radius: 14px; background: rgba(58, 181, 160, 0.1); border: 1px solid var(--au-line); }
.au-reader label { display: flex; gap: 6px; align-items: center; font-size: 0.8rem; color: var(--au-muted); }
.au-reader select { min-height: 38px; max-width: 220px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--au-line-2); background: #0f2b31; color: var(--au-text); font: inherit; font-size: 0.82rem; }
.au-reader input[type=range] { width: 110px; accent-color: var(--au-teal); }
.au-reader-btns { display: flex; gap: 6px; }
.au-reader-msg { flex-basis: 100%; margin: 0; font-size: 0.8rem; color: var(--au-sand); }
.au-reader-msg:empty { display: none; }
body.au-shell .sutra-scroll-container { background: linear-gradient(180deg, rgba(6, 22, 26, 0.92), rgba(9, 32, 38, 0.92)) !important; border: 1px solid var(--au-line) !important; }
body.au-shell .sutra-select { background: #0f2b31 !important; color: var(--au-text) !important; border-color: var(--au-line-2) !important; }
body.au-shell .sutra-controls-bar { background: rgba(255, 255, 255, 0.03) !important; border-color: var(--au-line) !important; }
#sutraContentArea .au-reading { background: rgba(243, 181, 98, 0.16); border-radius: 8px; box-shadow: -4px 0 0 var(--au-sand); transition: background 0.3s; }

/* ── Restyle of the original panels (palette swap; layout untouched) ─────────────── */
body.au-shell #sutraModal, body.au-shell #statueModal, body.au-shell #weeklyScheduleModal, body.au-shell #zenChatModal, body.au-shell #lanternModal, body.au-shell #divinationModal,
body.au-shell #lunarCalendarModal, body.au-shell #wishingTreeModal, body.au-shell #wishingCardViewModal, body.au-shell #photoPreviewModal, body.au-shell #mantraListModal,
body.au-shell #audioModal, body.au-shell #robeModal, body.au-shell #nameChangeModal, body.au-shell #mobileSettingsModal, body.au-shell #lanternWishModal, body.au-shell #dailyQuote .gate-card {
  background: linear-gradient(170deg, #12343b 0%, #0a1f24 100%) !important; border: 1px solid var(--au-line-2) !important; border-radius: 22px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important; color: var(--au-text) !important; }
body.au-shell .btn-hud { background: rgba(255, 255, 255, 0.06); border-color: var(--au-line-2); color: var(--au-text); box-shadow: none; }
body.au-shell .btn-hud:hover { background: rgba(58, 181, 160, 0.18); border-color: var(--au-teal); }
body.au-shell .sutra-btn-action { border-color: var(--au-line-2) !important; background: rgba(255, 255, 255, 0.05) !important; color: var(--au-text) !important; }
body.au-shell .sutra-header { border-bottom-color: var(--au-line) !important; }
body.au-shell .sutra-header h2 { color: var(--au-sand) !important; }
body.au-shell .modal-header { border-bottom-color: var(--au-line) !important; }
body.au-shell .btn-chat-send, body.au-shell .zen-chat-choice-btn:hover { background: linear-gradient(135deg, #2a9d8f, #1f6f8b) !important; color: #fff !important; border-color: transparent !important; }
body.au-shell .zen-chat-choice-btn { background: rgba(255, 255, 255, 0.05) !important; border-color: var(--au-line) !important; color: var(--au-text) !important; }
body.au-shell #modalBackdrop { background: rgba(4, 16, 19, 0.55); backdrop-filter: blur(3px); }
body.au-shell #interactPrompt, body.au-shell #spatialActionPrompt { background: rgba(9, 29, 34, 0.92) !important; border-color: var(--au-sand) !important; color: #fff !important; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4) !important; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .au-clock-date, .au-level-title, .au-status, .au-clock-tz { display: none; }
  .au-avatar-btn { padding: 3px; }
}
@media (max-width: 1100px) {
  body.au-side-expanded .au-top, body.au-side-expanded .au-notice { left: var(--rail-w); }
  .au-side.expanded { box-shadow: 10px 0 40px rgba(0, 0, 0, 0.35); }
  .au-server-name { display: none; }
}
@media (max-width: 860px) {
  html:root { --rail-w: 0px; --top-h: 54px; }
  .au-burger { display: inline-grid; place-items: center; }
  .au-side { width: min(86vw, 320px) !important; transform: translateX(-105%); box-shadow: none; }
  .au-side .au-label { display: block !important; }
  .au-side .au-side-group { justify-content: flex-start !important; padding: 6px 10px !important; }
  body.au-drawer-open .au-side { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, 0.45); }
  body.au-drawer-open::after { content: ''; position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, 0.45); }
  .au-side-toggle { display: none; }
  .au-fly { display: none !important; }
  .au-lang-name { display: none; }
  .au-top { gap: 6px; padding: 0 8px; }
  .au-clock { display: none; }
  .au-level { padding: 4px 9px; }
  .au-donate { padding: 0 12px; }
  .au-dock { left: 50%; bottom: calc(10px + var(--safe-b)); gap: 2px; padding: 4px; border-radius: 22px; max-width: calc(100vw - 16px); }
  .au-dock-btn { min-width: 62px; min-height: 54px; padding: 5px 6px; }
  .au-dock-group.primary .au-dock-btn { min-width: 70px; min-height: 62px; margin-top: -10px; }
  .au-dock-label { font-size: 0.66rem; }
  .au-dock-sheet { left: 50%; }
  .au-dock-group:first-child .au-dock-sheet { left: 0; transform: none; }
  .au-dock-group:last-child .au-dock-sheet, .au-dock-group:nth-last-child(2) .au-dock-sheet { left: auto; right: 0; transform: none; }
  .au-dock-group:first-child .au-dock-sheet::after { left: 40px; }
  .au-dock-group:last-child .au-dock-sheet::after, .au-dock-group:nth-last-child(2) .au-dock-sheet::after { left: auto; right: 30px; transform: none; }
  body.au-shell .au-dock-sheet .btn-tool.au-dock-kid { min-width: 70px; min-height: 60px; }
  body.au-shell #controlsHelp.au-keys { left: 8px; bottom: calc(96px + var(--safe-b)); width: 200px; font-size: 0.74rem; padding: 8px 10px; }
  body.au-shell #controlsHelp .au-keys-touch li { grid-template-columns: 24px 1fr; }
  body.au-shell #joystickZone { bottom: calc(150px + var(--safe-b)); left: auto; right: 14px; }
  body.au-shell #mantraPlayer { top: calc(var(--safe-t) + var(--top-h) + 6px); left: 8px !important; right: 8px; }
  .au-notice { left: 0; }
  .au-sheet, body .lh-panel { top: auto; bottom: 0; transform: translateX(-50%); width: 100vw; max-height: 90vh; border-radius: 22px 22px 0 0; }
  .au-two { grid-template-columns: 1fr; }
  body .lh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .au-server-globe, .au-server-name { display: none; }
  .au-server-count { white-space: nowrap; }
  .au-top .app-version { font-size: 0.62rem; padding: 1px 4px; }
  .au-level { padding: 4px 8px; font-size: 0.78rem; }
  .au-merit { display: none; }
  .au-donate-label { display: none; }
  .au-donate { width: 42px; padding: 0; justify-content: center; }
  .au-icon { width: 40px; height: 40px; }
  .au-chip { padding: 4px 8px; }
  .au-server { max-width: 90px; overflow: hidden; }
  .uc-name-row { flex-direction: column; }
  .uc-confirm { width: 100%; }
  .au-dock-btn { min-width: 56px; }
  body.au-shell #controlsHelp.au-keys:not(.small) { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .au-donate, .au-dot { animation: none; }
  .au-side, .au-top { transition: none; }
}
/* During an activity (telescope, koala, kangaroo) its own bar replaces the dock. */
body.au-activity .au-dock, body.au-activity #controlsHelp { display: none !important; }

/* ── v1.6 ─────────────────────────────────────────────────────────────────────────── */
/* "Enter" waits for 100% loading. */
body #audioUnlockBanner .btn-enter-temple:disabled { opacity: 0.5; filter: grayscale(0.55); cursor: progress; box-shadow: none; }
/* Volume in the top bar. */
.au-vol { position: relative; display: inline-flex; }
.au-vol-pop { position: absolute; right: 0; top: 44px; z-index: 60; width: min(300px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 16px; background: var(--au-panel-solid); border: 1px solid var(--au-line-2); box-shadow: var(--au-shadow); display: grid; gap: 10px; color: var(--au-text); }
.au-vol-pop[hidden] { display: none; }
.au-vol-title { font-size: 0.95rem; }
.au-vol-row { display: grid; grid-template-columns: 1fr 46px; grid-template-areas: "name val" "range range"; gap: 4px 8px; align-items: center; font-size: 0.86rem; }
.au-vol-name { grid-area: name; }
.au-vol-val { grid-area: val; text-align: right; color: var(--au-muted); font-variant-numeric: tabular-nums; }
.au-vol-row input[type="range"] { grid-area: range; width: 100%; min-height: 28px; accent-color: #e0893a; }
.au-vol-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.au-vol-actions button { min-height: 40px; border-radius: 12px; border: 1px solid var(--au-line-2); background: transparent; color: var(--au-text); font: inherit; font-size: 0.85rem; cursor: pointer; }
.au-vol-actions .au-vol-on { background: rgba(42, 154, 106, 0.22); }
@media (max-width: 860px) { .au-vol-pop { position: fixed; top: calc(var(--safe-t) + var(--top-h) + 6px); right: 12px; } }
/* Right bar (fireworks) collapses into a chip that re-opens it. */
.au-fw-chip { position: fixed; z-index: 38; top: calc(var(--safe-t) + var(--top-h) + 10px); right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--au-line-2); background: linear-gradient(135deg, #5a1f4a, #2b1238); color: #fff; font-size: 1.15rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.au-fw-chip[hidden] { display: none !important; }
body.au-activity .au-fw-chip, body.zen-photo-mode .au-fw-chip { display: none !important; }
@media (max-width: 860px) { .au-fw-chip { top: auto; bottom: calc(96px + var(--safe-b)); right: 8px; } }
/* Idle warning. */
.au-idle-warn { position: fixed; z-index: 90; left: 50%; top: calc(var(--safe-t) + var(--top-h) + 14px); transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--au-panel-solid); border: 1px solid #e0893a; color: var(--au-text); box-shadow: var(--au-shadow); }
.au-idle-warn span { flex: 1 1 220px; }
.au-idle-warn .au-primary { min-height: 44px; padding: 0 16px; }
/* Share-reward ladder. */
.au-share-ladder { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.au-share-ladder li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--au-line-2); background: rgba(255,255,255,0.04); }
.au-share-ladder li.ok { border-color: rgba(42,154,106,0.6); background: rgba(42,154,106,0.14); }

/* ── v1.9 ─────────────────────────────────────────────────────────────────────────── */
/* Share form: up to 15 shares, each with photo · site · link. */
.au-share-tally { margin: 0 0 10px; }
.au-share-list { display: grid; gap: 8px; max-height: min(46vh, 420px); overflow-y: auto; padding-right: 2px; }
.au-share-entry { display: grid; grid-template-columns: 26px auto 52px minmax(0, 1fr) minmax(0, 1.6fr) 40px; gap: 8px; align-items: end; padding: 10px; border-radius: 14px; border: 1px solid #dde8e4; background: #f8fbfa; }
.au-share-entry > label:not(.au-file) { display: grid; gap: 4px; font-size: 0.78rem; color: #557370; font-weight: 600; min-width: 0; }
.au-share-entry select, .au-share-entry input[type="url"] { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid #d6e0dc; background: #fff; font: inherit; color: #17322f; min-width: 0; }
.au-share-num { align-self: center; width: 26px; height: 26px; border-radius: 50%; background: #0f2f36; color: #fff; font-size: 0.78rem; display: inline-flex; align-items: center; justify-content: center; }
.au-share-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid #dde8e4; align-self: center; }
.au-share-thumb[hidden] { visibility: hidden; display: block; }
.au-share-entry .au-x { align-self: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #d6e0dc; background: #fff; color: #7a3b2f; cursor: pointer; }
.au-share-entry .au-x[hidden] { visibility: hidden; display: block; }
.au-share-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.au-share-add { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed #9fc6be; background: #fff; color: #1d6f64; font: inherit; font-weight: 700; cursor: pointer; }
.au-share-add:disabled { opacity: 0.45; cursor: not-allowed; }
.au-share-count { margin-left: auto; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .au-share-entry { grid-template-columns: 26px 1fr 52px 40px; grid-template-areas: "n file thumb x" "site site site site" "link link link link"; }
  .au-share-entry > .au-share-num { grid-area: n; }
  .au-share-entry > .au-file { grid-area: file; }
  .au-share-entry > .au-share-thumb { grid-area: thumb; }
  .au-share-entry > .au-x { grid-area: x; }
  .au-share-entry > label:nth-of-type(2) { grid-area: site; }
  .au-share-entry > label:nth-of-type(3) { grid-area: link; }
}
/* Music box folds like the fireworks bar. */
/* v1.10: fold buttons ("‹") on the music box and the fireworks bar — same look as the sidebar toggle. */
.au-fold { flex: 0 0 auto; width: 34px; height: 34px; min-width: 34px; padding: 0; border-radius: 10px; border: 1px solid #d4dfdb; background: #fff; color: #17322f; font-size: 1.15rem; font-weight: 700; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.au-fold:hover { background: #eef3f1; }
.au-fold:focus-visible { outline: 2px solid #e0893a; outline-offset: 2px; }
@media (pointer: coarse) { .au-fold { width: 40px; height: 40px; min-width: 40px; } }
/* Temple music / Ambient relaxing music. */
.btn-tool .icon img { width: 1.35em; height: 1.35em; vertical-align: -0.25em; }
/* v1.17: during meditation the music box shows it is locked (relaxing music only). */
body.au-meditating #auMusicMode button, body.au-meditating #btnOpenMantraList, body.au-meditating #btnPrevMantra, body.au-meditating #btnNextMantra { opacity: .45; cursor: not-allowed; }
/* Choose Track: the chant list in temple mode, the ambient list in ambient mode. */
#ambientListItems { display: none; }
body.au-music-ambient #ambientListItems { display: block; }
body.au-music-ambient #mantraListItems { display: none; }
.au-music-mode { display: flex; gap: 6px; margin: 6px 0 2px; }
.au-music-mode button { flex: 1 1 0; min-height: 34px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--au-line-2, rgba(255,255,255,0.2)); background: rgba(255,255,255,0.06); color: inherit; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.au-music-mode button.on { background: linear-gradient(135deg, #2a9a6a, #1d6f64); border-color: #2a9a6a; color: #fff; }
@media (max-width: 640px) { .au-music-mode button { font-size: 0.74rem; padding: 0 6px; } }

/* v1.10: ✕ at the right end of the tap prompts (temple prompts and activity prompts). */
#interactPrompt, #spatialActionPrompt { align-items: center; gap: 10px; }
#interactPrompt .au-prompt-x, #spatialActionPrompt .au-prompt-x, .au-prompt .au-prompt-x {
  flex: 0 0 auto; width: 28px; height: 28px; margin: -4px -12px -4px 10px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); color: inherit; font-size: 0.85rem; line-height: 1; cursor: pointer; vertical-align: middle;
  display: inline-flex; align-items: center; justify-content: center; }
#interactPrompt .au-prompt-x:hover, #spatialActionPrompt .au-prompt-x:hover, .au-prompt .au-prompt-x:hover { background: rgba(255, 255, 255, 0.3); }
.au-prompt { display: inline-flex; align-items: center; }
.au-prompt[hidden] { display: none !important; }
@media (pointer: coarse) { #interactPrompt .au-prompt-x, #spatialActionPrompt .au-prompt-x, .au-prompt .au-prompt-x { width: 34px; height: 34px; } }

/* ══ v1.10 "Ivory & Eucalyptus" — every box that explains something in words (chant list, sutra reader,
   statue card, weekly schedule, lunar calendar, wishing tree, sound, robe, name, settings, lantern,
   divination, daily quote). Replaces the dark teal + orange glass: ivory paper, ink text, one eucalyptus
   accent, a fine gold rule under serif headings, white cards. Text stays CMS / admin driven; this is
   look only. Inline colours written for the old dark panels are folded into the ink colour. ══ */
html:root {
  --pv-paper: #fbf8f2; --pv-paper-2: #f4efe4; --pv-card: #ffffff;
  --pv-ink: #1e2a2f; --pv-ink-2: #44555a; --pv-muted: #7a8a8c;
  --pv-line: #e7e0d2; --pv-line-2: #d5cab4;
  --pv-accent: #2f6b5a; --pv-accent-2: #3f8a74; --pv-accent-soft: #e6f1ec;
  --pv-gold: #b88a3b; --pv-gold-soft: #f7eedb;
  --pv-shadow: 0 28px 70px rgba(24, 34, 38, 0.28), 0 2px 8px rgba(24, 34, 38, 0.08);
  --pv-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Noto Serif', serif;
}
html body.au-shell :is(#sutraModal, #statueModal, #weeklyScheduleModal, #lanternModal, #divinationModal, #lunarCalendarModal, #wishingTreeModal,
  #wishingCardViewModal, #mantraListModal, #audioModal, #robeModal, #nameChangeModal, #mobileSettingsModal, #lanternWishModal, #dailyQuote .gate-card) {
  background: var(--pv-paper) !important; color: var(--pv-ink) !important; border: 1px solid var(--pv-line-2) !important; border-radius: 20px !important;
  box-shadow: var(--pv-shadow) !important; scrollbar-width: thin; scrollbar-color: var(--pv-line-2) transparent;
}
html body.au-shell :is(#sutraModal, #statueModal, #weeklyScheduleModal, #lanternModal, #divinationModal, #lunarCalendarModal, #wishingTreeModal,
  #wishingCardViewModal, #mantraListModal, #audioModal, #robeModal, #nameChangeModal, #mobileSettingsModal, #lanternWishModal, #dailyQuote .gate-card)
  :is(h1, h2, h3, h4, h5, p, span, div, label, li, small, b, strong, em, i, td, th, a)[style*="color"]:not(button):not(.au-keep-color) { color: inherit !important; }
/* Headings: serif ink with a short gold rule. */
html body.au-shell :is(#sutraModal, #statueModal, #weeklyScheduleModal, #lanternModal, #divinationModal, #lunarCalendarModal, #wishingTreeModal,
  #wishingCardViewModal, #mantraListModal, #audioModal, #robeModal, #nameChangeModal, #mobileSettingsModal, #lanternWishModal) .modal-header {
  position: relative; font-family: var(--pv-serif); font-size: 1.08rem; font-weight: 700; letter-spacing: 0.02em; color: var(--pv-ink) !important;
  border-bottom: 1px solid var(--pv-line) !important; padding-bottom: 12px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
html body.au-shell .modal-header::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; border-radius: 2px; background: var(--pv-gold); }
html body.au-shell :is(#sutraModal, #statueModal, #weeklyScheduleModal, #lanternModal, #divinationModal, #lunarCalendarModal, #wishingTreeModal,
  #wishingCardViewModal, #mantraListModal, #audioModal, #robeModal, #nameChangeModal, #mobileSettingsModal, #lanternWishModal) :is([id^="btnClose"], .close-btn, .modal-close) {
  flex: 0 0 auto; width: auto; min-width: 34px; height: 34px; padding: 0 10px; box-sizing: border-box; border-radius: 17px; display: inline-flex !important; align-items: center; justify-content: center; gap: 4px; white-space: nowrap;
  background: var(--pv-paper-2) !important; color: var(--pv-ink-2) !important; border: 1px solid var(--pv-line) !important; font-size: 0.95rem !important; cursor: pointer; transition: background 0.15s;
}
html body.au-shell :is([id^="btnClose"], .close-btn, .modal-close):hover { background: var(--pv-gold-soft) !important; color: var(--pv-ink) !important; }
/* Chant list: white cards, the playing one tinted eucalyptus with an accent bar. */
html body.au-shell #mantraListModal .mantra-item {
  background: var(--pv-card) !important; border: 1px solid var(--pv-line) !important; border-radius: 14px !important; color: var(--pv-ink) !important;
  padding: 12px 14px 12px 16px !important; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(24, 34, 38, 0.05); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
html body.au-shell #mantraListModal .mantra-item:hover { border-color: var(--pv-accent-2) !important; box-shadow: 0 8px 20px rgba(24, 34, 38, 0.09); transform: translateY(-1px); }
html body.au-shell #mantraListModal .mantra-item.active { background: var(--pv-accent-soft) !important; border-color: var(--pv-accent) !important; box-shadow: inset 4px 0 0 var(--pv-accent) !important; }
html body.au-shell #mantraListModal .mantra-item > div:first-child { font-family: var(--pv-serif); font-weight: 700; font-size: 0.98rem; line-height: 1.35; color: var(--pv-ink) !important; }
html body.au-shell #mantraListModal .mantra-item.active > div:first-child { color: var(--pv-accent) !important; }
html body.au-shell #mantraListModal .mantra-item .sub { color: var(--pv-muted) !important; font-size: 0.82rem; line-height: 1.45; margin-top: 4px; }
/* Sutra reader. */
html body.au-shell #sutraModal .sutra-header { border-bottom: 1px solid var(--pv-line) !important; position: relative; }
html body.au-shell #sutraModal .sutra-header::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: var(--pv-gold); }
html body.au-shell #sutraModal .sutra-header h2 { font-family: var(--pv-serif); color: var(--pv-ink) !important; }
html body.au-shell #sutraModal .sutra-controls-bar { background: var(--pv-paper-2) !important; border: 1px solid var(--pv-line) !important; }
html body.au-shell #sutraModal .sutra-select { background: var(--pv-card) !important; color: var(--pv-ink) !important; border: 1px solid var(--pv-line-2) !important; font-weight: 600; }
html body.au-shell #sutraModal .sutra-btn-action { background: var(--pv-card) !important; color: var(--pv-accent) !important; border: 1px solid var(--pv-line-2) !important; }
html body.au-shell #sutraModal .sutra-btn-action:hover { background: var(--pv-accent-soft) !important; box-shadow: none; }
html body.au-shell #sutraModal .sutra-scroll-container { background: var(--pv-card) !important; border: 1px solid var(--pv-line) !important; color: var(--pv-ink) !important; font-family: var(--pv-serif); }
html body.au-shell #sutraModal :is(.sutra-title) { color: var(--pv-accent) !important; font-family: var(--pv-serif); }
html body.au-shell #sutraModal .sutra-lead { color: var(--pv-muted) !important; }
html body.au-shell #sutraModal .sutra-section-head { color: var(--pv-gold) !important; border-bottom-color: var(--pv-line) !important; }
html body.au-shell #sutraModal .sutra-verse { background: var(--pv-gold-soft) !important; border-left-color: var(--pv-gold) !important; color: var(--pv-ink) !important; }
html body.au-shell #sutraModal .sutra-mantra { background: var(--pv-accent-soft) !important; border-color: var(--pv-accent-2) !important; color: var(--pv-accent) !important; }
html body.au-shell #sutraContentArea .au-reading { background: var(--pv-gold-soft); box-shadow: -4px 0 0 var(--pv-gold); }
/* Statue card. */
html body.au-shell #statueModal .statue-badge { background: var(--pv-accent-soft) !important; border-color: var(--pv-accent-2) !important; color: var(--pv-accent) !important; }
html body.au-shell #statueModal .statue-title-vi { font-family: var(--pv-serif); color: var(--pv-ink) !important; }
html body.au-shell #statueModal .statue-desc { background: var(--pv-card) !important; border: 1px solid var(--pv-line) !important; color: var(--pv-ink-2) !important; }
html body.au-shell #statueModal .statue-mantra-box { background: var(--pv-gold-soft) !important; border: 1px solid #e3cf9f !important; color: #7a5a1c !important; }
/* Weekly schedule cards. */
html body.au-shell #weeklyScheduleModal .sutra-schedule-card { background: var(--pv-card) !important; border: 1px solid var(--pv-line) !important; color: var(--pv-ink) !important; box-shadow: 0 1px 2px rgba(24, 34, 38, 0.05) !important; }
html body.au-shell #weeklyScheduleModal .sutra-schedule-card.active-today { background: var(--pv-accent-soft) !important; border-color: var(--pv-accent) !important; }
html body.au-shell #weeklyScheduleModal .sutra-day-pill { background: var(--pv-accent) !important; color: #fff !important; border-color: transparent !important; }
html body.au-shell #weeklyScheduleModal .sutra-card-title { font-family: var(--pv-serif); color: var(--pv-ink) !important; }
html body.au-shell #weeklyScheduleModal .sutra-card-desc { color: var(--pv-muted) !important; }
/* Controls inside the boxes. */
html body.au-shell :is(#audioModal, #mobileSettingsModal) .slider-row label { color: var(--pv-ink-2) !important; font-weight: 600; }
html body.au-shell :is(#sutraModal, #statueModal, #weeklyScheduleModal, #lanternModal, #divinationModal, #lunarCalendarModal, #wishingTreeModal,
  #wishingCardViewModal, #mantraListModal, #audioModal, #robeModal, #nameChangeModal, #mobileSettingsModal, #lanternWishModal) :is(input[type="range"]) { accent-color: var(--pv-accent); }
html body.au-shell :is(#lanternModal, #divinationModal, #wishingTreeModal, #wishingCardViewModal, #nameChangeModal, #mobileSettingsModal, #lanternWishModal, #robeModal)
  :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select) {
  background: var(--pv-card) !important; color: var(--pv-ink) !important; border: 1px solid var(--pv-line-2) !important; border-radius: 10px !important;
}
html body.au-shell :is(#sutraModal, #statueModal, #weeklyScheduleModal, #lanternModal, #divinationModal, #lunarCalendarModal, #wishingTreeModal,
  #wishingCardViewModal, #mantraListModal, #audioModal, #robeModal, #nameChangeModal, #mobileSettingsModal, #lanternWishModal) .btn-hud {
  background: var(--pv-card) !important; color: var(--pv-accent) !important; border: 1px solid var(--pv-line-2) !important; box-shadow: none !important;
}
html body.au-shell :is(#sutraModal, #statueModal, #weeklyScheduleModal, #lanternModal, #divinationModal, #lunarCalendarModal, #wishingTreeModal,
  #wishingCardViewModal, #mantraListModal, #audioModal, #robeModal, #nameChangeModal, #mobileSettingsModal, #lanternWishModal) .btn-hud:hover { background: var(--pv-accent-soft) !important; }
html body.au-shell #modalBackdrop { background: rgba(30, 42, 47, 0.38); backdrop-filter: blur(4px); }
@media (max-width: 640px) {
  html body.au-shell #mantraListModal .mantra-item { padding: 11px 12px 11px 14px !important; }
  html body.au-shell .modal-header { font-size: 1rem; }
}
html body.au-shell #sutraModal select:not(.sutra-select) { background: var(--pv-card) !important; color: var(--pv-ink) !important; border: 1px solid var(--pv-line-2) !important; border-radius: 10px !important; }

/* v1.11: readable info boxes (public/app/ivory-contrast.js marks dark panels and pale text). */
html body.au-shell .pv-lit { background: #fffdf8 !important; background-image: none !important; border-color: var(--pv-line-2) !important; color: var(--pv-ink) !important; box-shadow: 0 1px 2px rgba(24, 34, 38, 0.06) !important; }
html body.au-shell .pv-ink { color: var(--pv-ink) !important; }
html body.au-shell #lunarCalendarModal #lunarBigDate { color: #8a5a12 !important; }
html body.au-shell #lunarCalendarModal #lunarEventBanner { background: var(--pv-gold-soft) !important; border-color: #e2c98f !important; color: #5a3d0c !important; }
html body.au-shell #lunarCalendarModal #lunarEventBanner * { color: inherit !important; }
html body.au-shell #lunarCalendarModal b { color: #2a3a3f; }
/* v1.11: weekly-schedule day badges in the same teal → gold as the “▶ Chant” buttons, with dark text. */
html body.au-shell #weeklyScheduleModal .sutra-schedule-card .sutra-day-pill[class],
html body.au-shell #weeklyScheduleModal .sutra-schedule-card .sutra-day-pill[style] {
  background: linear-gradient(135deg, #3aa597, #b8860b) !important; color: #021522 !important; -webkit-text-fill-color: #021522;
  border: 0 !important; font-weight: 800 !important; letter-spacing: 0.01em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
