

:root {
    --ink: #06050b;
    --ink-2: #0d0b18;
    --ink-3: #17142a;
    --ink-4: #221c3e;
    --pearl: #f4f0fb;
    --mist: #cdc6e0;
    --dim: #b8b1cf;
    --aqua: #8ae8dc;
    --violet: #b39bff;
    --rose: #f5b3cd;
    --amber: #f7d9a0;
    --ok: #8fe6b4;
    --err: #ff9fae;
    --on-light: #120e22;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-2: rgba(255, 255, 255, 0.07);
    --glass-edge: rgba(255, 255, 255, 0.12);
    --glass-hi: rgba(255, 255, 255, 0.22);
    --aqua-soft: rgba(138, 232, 220, 0.12);
    --violet-soft: rgba(179, 155, 255, 0.14);
    --rose-soft: rgba(245, 179, 205, 0.14);
    --amber-soft: rgba(247, 217, 160, 0.14);
    --err-soft: rgba(255, 159, 174, 0.14);
    --ok-soft: rgba(143, 230, 180, 0.12);
    --veil: rgba(6, 5, 11, 0.72);
    --shadow: 0 18px 44px rgba(40, 20, 90, 0.45);
    --glow: 0 0 0 1px rgba(138, 232, 220, 0.35), 0 0 28px rgba(138, 232, 220, 0.28);
    --aurora: linear-gradient(115deg, #8ae8dc 0%, #b39bff 38%, #f5b3cd 70%, #f7d9a0 100%);
    --sky: radial-gradient(1200px 600px at 15% -10%, rgba(179, 155, 255, 0.18), transparent 60%),
           radial-gradient(900px 500px at 95% 10%, rgba(138, 232, 220, 0.12), transparent 60%),
           radial-gradient(700px 500px at 50% 110%, rgba(245, 179, 205, 0.10), transparent 60%);
    --font-display: "Alegreya", "Noto Serif Devanagari", "Noto Serif Thai", "Noto Naskh Arabic", "Noto Sans KR", Georgia, serif;
    --font-body: "Alegreya Sans", "Noto Serif Devanagari", "Noto Serif Thai", "Noto Naskh Arabic", "Noto Sans KR", system-ui, sans-serif;
    --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px;
    --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem;
    --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    background: var(--ink); background-image: var(--sky); background-attachment: fixed;
    color: var(--pearl); font-family: var(--font-body); font-size: 17px; line-height: 1.5;

}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0 0 var(--s3); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--s3); overflow-wrap: anywhere; }
a { color: var(--aqua); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.muted { color: var(--mist); }
.small { font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared components ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
    min-height: 46px; padding: 0 var(--s5); border-radius: 999px; border: 1px solid var(--glass-edge);
    background: var(--glass-2); color: var(--pearl); cursor: pointer; text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { background: var(--glass-hi); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--aurora); color: var(--on-light); border: 0; font-weight: 600; }
.btn--primary:hover { box-shadow: var(--glow); background: var(--aurora); }
.btn--ghost { background: transparent; }
.btn--danger { border-color: var(--err); color: var(--err); background: var(--err-soft); }
.btn--ok { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.btn--sm { min-height: 36px; padding: 0 var(--s4); font-size: 0.92rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.glass {
    background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--r-lg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.pill { display: inline-flex; align-items: center; gap: var(--s1); padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; border: 1px solid var(--glass-edge); white-space: nowrap; }
.pill--wait { color: var(--amber); background: var(--amber-soft); border-color: var(--amber); }
.pill--ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.pill--err { color: var(--err); background: var(--err-soft); border-color: var(--err); }
.pill--block { color: var(--rose); background: var(--rose-soft); border-color: var(--rose); }
.pill--info { color: var(--aqua); background: var(--aqua-soft); border-color: var(--aqua); }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 500; }
.input {
    width: 100%; min-height: 50px; padding: 0 var(--s4); border-radius: var(--r-md);
    border: 1px solid var(--glass-edge); background: var(--ink-2); color: var(--pearl);
}
.input:focus { border-color: var(--aqua); box-shadow: var(--glow); outline: none; }
.input[aria-invalid="true"] { border-color: var(--err); }
.hint-err { color: var(--err); min-height: 1.4em; font-size: 0.92rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sigil { width: 34px; height: 34px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.12em; color: var(--pearl); text-decoration: none; }

.screen { display: none; min-height: 100vh; }
.screen.is-active { display: block; animation: rise 0.5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- public site ---------- */
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); padding: var(--s4) clamp(16px, 4vw, 56px); }
/* Public entry targets follow the 48px project minimum, including the wordmark. */
.site-head .brand, .hero__cta .btn, .auth-card [data-action="locale-chip"], .skip { min-height: 48px; }
.site-head nav { display: flex; flex-wrap: wrap; gap: var(--s4); margin-inline-start: auto; align-items: center; }
.site-head nav a { color: var(--mist); text-decoration: none; }
.site-head nav a:hover { color: var(--pearl); }
.site-head nav a.btn--primary, .site-head nav a.btn--primary:hover { color: var(--on-light); }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s6); align-items: center; padding: var(--s6) clamp(16px, 4vw, 56px) var(--s7); }
.hero__claim { font-size: 1.25rem; color: var(--mist); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
/* Keep the rotating orbit boxes inside their decorative stage, with room for the light dots. */
.hero__art { overflow: clip; overflow-clip-margin: var(--s3); position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--glass-edge); }
.orbit--2 { inset: 12%; border-color: var(--violet-soft); }
.orbit--3 { inset: 26%; border-color: var(--aqua-soft); }
.orbit__dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--aqua); box-shadow: var(--glow); top: -5px; left: calc(50% - 5px); }
.spin { animation: spin 24s linear infinite; }
.spin--rev { animation: spin 36s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__sigil { position: absolute; left: 34%; top: 34%; width: 32%; height: 32%; filter: drop-shadow(0 0 22px rgba(179, 155, 255, 0.55)); }
.section { padding: var(--s6) clamp(16px, 4vw, 56px); }
.notice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s4); }
.notice-row > div { padding: var(--s5); }
.site-foot { padding: var(--s5) clamp(16px, 4vw, 56px); color: var(--dim); display: flex; flex-wrap: wrap; gap: var(--s4); font-size: 0.9rem; }
.site-foot a { color: var(--dim); }

/* ---------- auth flow ---------- */
.auth-wrap { display: grid; place-items: center; padding: var(--s6) 16px var(--s7); }
.auth-card { width: 100%; max-width: 520px; padding: clamp(var(--s5), 4vw, var(--s6)); display: grid; gap: var(--s4); }
/* AU1B: sliding steps stay inside the card (no page overflow while they move). */
.auth-card { overflow-x: clip; }
.cred-new { display: grid; gap: var(--s2); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--glass-edge); }
.cred-step { margin: 0; letter-spacing: .04em; }
.auth-step-frame { overflow-x: clip; display: grid; gap: var(--s4); }
.auth-card .btn { width: 100%; min-height: 48px; }
.auth-card h1 { font-size: clamp(1.65rem, 4.4vw, 2.6rem); overflow-wrap: anywhere; }
.auth-steps { display: flex; gap: var(--s2); flex-wrap: wrap; }
.auth-steps span { flex: 1 1 0; min-width: 0; height: 4px; border-radius: 4px; background: var(--glass-edge); }
.auth-steps span.on { background: var(--aurora); }
.code-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.code-row input { text-align: center; font-size: 1.4rem; padding: 0; min-width: 0; }
.mail-preview { padding: var(--s5); border-radius: var(--r-md); background: var(--ink-2); border: 1px dashed var(--glass-hi); display: grid; gap: var(--s3); }
.mail-preview .mail-btn { justify-self: start; }
.mail-code { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.3em; color: var(--amber); }
.wait-orb { position: relative; width: 150px; height: 150px; margin: 0 auto var(--s3); }
.wait-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--amber); border-right-color: var(--violet); }
.wait-orb .ring--2 { inset: 18px; border-top-color: var(--aqua); border-right-color: transparent; border-left-color: var(--rose); }
.wait-orb .core { position: absolute; inset: 46px; border-radius: 50%; background: radial-gradient(circle, var(--amber) 0%, transparent 70%); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.85); opacity: 0.6; } 50% { transform: scale(1.1); opacity: 1; } }
.status-line { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: center; }
.center { text-align: center; }

/* ---------- web app shell ---------- */
.rail nav { display: grid; gap: var(--s1); }
.rail nav button, .tabbar button {
    display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md);
    border: 0; background: transparent; color: var(--mist); cursor: pointer; text-align: start;
}
.rail nav button[aria-current="page"], .tabbar button[aria-current="page"] { background: var(--violet-soft); color: var(--pearl); }
.rail nav svg, .tabbar svg { width: 22px; height: 22px; flex: none; }
.topbar .grow { margin-inline-start: auto; display: flex; gap: var(--s2); flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--pearl); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="true"] { box-shadow: var(--glow); color: var(--aqua); }
.view { display: none; }
.view.is-active { display: block; animation: rise 0.45s var(--ease); }

/* daily ritual */
.daily { padding: var(--s5); display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.card-stage { position: relative; width: 190px; height: 300px; perspective: 900px; }
.tcard { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.9s var(--ease); }
.tcard.is-open { transform: rotateY(180deg); }
.tcard .face { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--glass-hi); }
.tcard .back { background: linear-gradient(160deg, var(--ink-4), var(--ink-2)); }
.tcard .back::after { content: ""; position: absolute; inset: 10px; border-radius: 10px; border: 1px solid var(--violet-soft); }
.tcard .front { transform: rotateY(180deg); background: radial-gradient(circle at 50% 30%, var(--violet-soft), var(--ink-3) 70%); padding: var(--s4); align-content: center; gap: var(--s2); }
.tcard .front strong { font-family: var(--font-display); font-size: 1.4rem; }
.hold-btn { position: relative; width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--glass-hi); background: var(--glass-2); color: var(--pearl); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-btn svg.ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); }
.hold-btn svg.ring circle { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 302; stroke-dashoffset: 302; }
.hold-btn.is-holding { box-shadow: var(--glow); }
.burst { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 217, 160, 0.55), transparent 65%); opacity: 0; pointer-events: none; }
.burst.go { animation: burst 1.1s var(--ease); }
@keyframes burst { 0% { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
.feedback-note { font-size: 0.86rem; color: var(--dim); }

/* sheet */
.sheet-veil { position: fixed; inset: 0; background: var(--veil); display: none; place-items: end center; z-index: 40; padding: 16px; }
.sheet-veil.is-open { display: grid; }
.sheet { width: 100%; max-width: 560px; padding: var(--s5); display: grid; gap: var(--s3); animation: rise 0.35s var(--ease); }

.list { display: grid; gap: var(--s3); }
.list > .glass { padding: var(--s4); }
.kv { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--s2) var(--s4); }
.kv dt { color: var(--mist); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--glass-edge); }
/* WPAR1 audit onb-save: the label keeps the row; a checkbox never claims the text width at 375 px. */
.toggle-row > span { flex: 1 1 auto; min-width: 0; }
.toggle-row > input[type="checkbox"] { flex: 0 0 auto; width: auto; }
.switch { position: relative; width: 52px; height: 30px; flex: none; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--ink-3); cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--mist); transition: transform 0.25s var(--ease), background 0.25s; }
.switch[aria-checked="true"] { background: var(--aqua-soft); border-color: var(--aqua); }
.switch[aria-checked="true"]::after { transform: translateX(22px); background: var(--aqua); }
.switch[disabled] { opacity: 0.45; cursor: not-allowed; }


[hidden] { display: none !important; }
.app-root { min-height: 100vh; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; }
.skip:focus { top: 12px; }
.actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.language { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.language select { width: auto; max-width: 100%; }
.loading { min-height: 60vh; display: grid; place-content: center; }
.loading .sigil { width: 70px; height: 70px; }
nav a { text-decoration: none; }
.rail nav a, .tabbar a { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); color: var(--mist); }
.rail nav a[aria-current="page"], .tabbar a[aria-current="page"] { background: var(--violet-soft); color: var(--pearl); }
nav a svg { width: 22px; height: 22px; flex: none; }
.card-placeholder { width: 190px; height: 300px; border-radius: 16px; border: 1px solid var(--glass-hi); background: linear-gradient(160deg, var(--ink-4), var(--ink-2)); display: grid; place-items: center; position: relative; }
.card-placeholder::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--violet-soft); border-radius: 10px; }
.card-placeholder svg { width: 80px; height: 80px; }
.fx-light { box-shadow: var(--glow) !important; outline: 1px solid var(--aqua); }
.fx-pulse { animation: light 650ms var(--ease); }
@keyframes light { 50% { filter: brightness(1.3); } }
.error-box { color: var(--err); border: 1px solid var(--err); border-radius: var(--r-md); padding: var(--s4); overflow-wrap: anywhere; }
#notice:empty { display: none; }
#notice { margin-bottom: var(--s4); }
.toast { position: fixed; bottom: 100px; left: 16px; right: 16px; margin: auto; max-width: 560px; padding: var(--s4); background: var(--ink-3); border: 1px solid var(--aqua); border-radius: var(--r-md); z-index: 60; }
dialog { width: min(560px, calc(100% - 32px)); padding: var(--s6); background: var(--ink-2) !important; color: var(--pearl); }
dialog::backdrop { background: var(--veil); }
button, a, select { -webkit-tap-highlight-color: transparent; }
@media (max-width: 700px) { .kv { grid-template-columns: minmax(0,1fr); } .site-head { justify-content: space-between; } }
/* Reduced motion: system setting or the switch in Ich (feedback.js sets html[data-motion]). */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }


/* ===================== WD1 design (abgenommen 04.10.2026) =====================
   Shell: tab bar < 760 px · icon rail 92 px 760–1099 · rail 236 px ≥ 1100 (WD1-4). One wordmark.
   Home: greeting + "today" bento + image-first way tiles (WD1-1/-2). Motion only transform/opacity (WD1-3). */
.app { min-height: 100vh; }
.rail { display: none; }
.main { padding: 8px 16px 120px; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s3); margin: 0 -16px var(--s3); padding: 10px 16px; background: linear-gradient(180deg, rgba(6, 5, 11, 0.92), rgba(6, 5, 11, 0)); }
.topbar .grow { margin-inline-start: auto; display: flex; gap: var(--s2); flex-wrap: wrap; }
.tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; z-index: 30; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px; background: rgba(13, 11, 24, 0.94); border: 1px solid var(--glass-edge); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.tabbar a { padding: 8px 2px; min-height: 54px; flex-direction: column; justify-content: center; gap: 3px; font-size: 0.82rem; overflow-wrap: anywhere; text-align: center; border-radius: 16px; }
.rail nav a[aria-current="page"], .tabbar a[aria-current="page"] { background: linear-gradient(135deg, rgba(138, 232, 220, 0.16), rgba(179, 155, 255, 0.16)); color: var(--pearl); }
@media (min-width: 760px) {
  .app { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
  .tabbar, .topbar__brand { display: none; }
  .rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s5); padding: 22px 12px; background: linear-gradient(90deg, rgba(6, 5, 11, 0.9), rgba(6, 5, 11, 0.55)); border-inline-end: 1px solid rgba(255, 255, 255, 0.06); }
  .rail .brand { justify-content: center; font-size: 0; letter-spacing: 0; gap: 0; }
  .rail nav { display: grid; gap: 6px; }
  .rail nav a { position: relative; justify-content: center; min-height: 48px; padding: 0 14px; color: var(--dim); transition: background 0.25s, color 0.25s; }
  .rail nav a .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rail nav a:hover { color: var(--pearl); background: var(--glass); }
  .rail nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--tl-prism); }
  .rail .rail-foot { display: none; }
  .main { padding: 28px clamp(20px, 3.2vw, 56px) 80px; }
  .topbar { position: absolute; right: clamp(20px, 3.2vw, 56px); top: 24px; margin: 0; padding: 0; background: none; }
}
@media (min-width: 1100px) {
  .app { grid-template-columns: 236px minmax(0, 1fr); }
  .rail { padding: 28px 18px; }
  .rail .brand { justify-content: flex-start; padding-inline-start: 8px; font-size: 1.35rem; letter-spacing: 0.12em; gap: var(--s2); }
  .rail nav a { justify-content: flex-start; }
  .rail nav a .nav-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .rail .rail-foot { display: grid; margin-top: auto; gap: var(--s2); font-size: 0.85rem; line-height: 1.4; color: var(--dim); }
}

/* type: large Alegreya hierarchy (WD1-6) */
.display { font-size: clamp(2.2rem, 4.4vw, 4.4rem); letter-spacing: -0.01em; line-height: 1.06; margin: 0; }
.lead { font-size: clamp(1.05rem, 1.25vw, 1.25rem); color: var(--mist); max-width: 56ch; }
.home-head, .page-head { display: grid; gap: var(--s2); margin: 4px 0 var(--s5); padding-inline-end: 56px; }
.chips, .filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--tl-glass); border: 1px solid var(--glass-edge); color: var(--mist); font-size: 0.92rem; }
.chip--moon { padding-inline-start: 4px; }
.chip__art { width: 28px; height: 28px; mix-blend-mode: screen; }
.chip--filter { min-height: 44px; cursor: pointer; }
.chip--filter[aria-pressed="true"] { color: var(--pearl); border-color: rgba(138, 232, 220, 0.5); background: linear-gradient(135deg, rgba(138, 232, 220, 0.2), rgba(179, 155, 255, 0.2)); }

/* today bento */
.today { display: grid; gap: clamp(12px, 1.4vw, 22px); grid-template-columns: minmax(0, 1fr); }
.tday { position: relative; isolation: isolate; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; border-radius: 30px; background: radial-gradient(80% 90% at 85% 70%, rgba(179, 155, 255, 0.22), transparent 70%), var(--ink-2); border: 1px solid var(--glass-edge); box-shadow: 0 24px 60px rgba(10, 6, 30, 0.5); transition: transform 0.5s var(--tl-ease), border-color 0.4s, box-shadow 0.5s var(--tl-ease); }
.tday::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 100%, rgba(6, 5, 11, 0.95), rgba(6, 5, 11, 0.45) 55%, transparent 80%), linear-gradient(180deg, transparent 45%, rgba(6, 5, 11, 0.7)); }
.tday::after, .mod-tile::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.4s; background: radial-gradient(380px circle at calc(var(--mx, 0.5) * 100%) calc(var(--my, 0.5) * 100%), rgba(255, 255, 255, 0.14), transparent 55%); }
.tday:hover, .tday:focus-within { transform: translateY(-4px); border-color: rgba(138, 232, 220, 0.45); box-shadow: 0 30px 80px rgba(60, 30, 140, 0.5); }
.tday:hover::after, .tday:focus-within::after, .mod-tile:hover::after, .mod-tile:focus-visible::after { opacity: 1; }
.tday__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: contain; transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 8px), 0) scale(1.06); transition: transform 1.2s var(--tl-ease); }
.tday:hover .tday__art { transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 8px), 0) scale(1.1); }
.today-row .tday__art, .today-row .tday:hover .tday__art { transform: none; object-fit: contain; }
.tday__art--float { inset: auto -6% -8% auto; width: 58%; height: auto; object-fit: contain; mix-blend-mode: screen; }
.tday__art--moon { inset: 12% 8% auto auto; width: 34%; height: auto; object-fit: contain; mix-blend-mode: screen; }
.tday__body { display: grid; justify-items: start; gap: 0.35rem; padding: clamp(20px, 2.2vw, 34px); max-width: 40ch; }
.tday__title { margin: 0; font: 500 clamp(1.5rem, 2.2vw, 2.3rem)/1.08 var(--font-display); text-shadow: 0 1px 10px rgba(6, 5, 11, 0.95); }
.tday .eyebrow { text-shadow: 0 1px 10px rgba(6, 5, 11, 0.95); }
.tday__text { margin: 0; color: var(--mist); max-width: 34ch; text-shadow: 0 1px 8px rgba(6, 5, 11, 0.9); }
.tday__cta { margin-top: var(--s3); }
.tday__cta::before { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole tile is the button's hit area */
.tday--daily { min-height: 400px; }
.tday--daily .tday__title { font-size: clamp(2rem, 3.3vw, 3.3rem); }
.tday--moon { min-height: 200px; background: radial-gradient(70% 80% at 80% 25%, rgba(247, 217, 160, 0.16), transparent 70%), var(--ink-2); }
@media (min-width: 760px) {
  .today { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "daily number" "daily horo" "moon moon"; }
  .tday--daily { grid-area: daily; min-height: 520px; } .tday--number { grid-area: number; } .tday--horoscope { grid-area: horo; } .tday--moon { grid-area: moon; }
  .today:not(:has(.tday--number)) { grid-template-areas: "daily horo" "daily horo" "moon moon"; }
}
@media (min-width: 1500px) {
  .today.has-moon { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.9fr); grid-template-areas: "daily number moon" "daily horo moon"; }
  .tday--moon .tday__art--moon { inset: 12% auto auto 50%; width: 62%; translate: -50% 0; }
}

/* bands + image-first way tiles */
.band { margin-top: clamp(36px, 5vw, 72px); }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.band__head h2 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.6rem); }
.link-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--mist); text-decoration: none; }
.link-more:hover { color: var(--aqua); }
.grid-mods { display: grid; gap: clamp(12px, 1.3vw, 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .grid-mods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .grid-mods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mod-tile { position: relative; isolation: isolate; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3.4; overflow: hidden; padding: 0; text-align: start; color: var(--pearl); cursor: pointer; border-radius: 24px; border: 1px solid var(--glass-edge); background: var(--ink-2); transition: transform 0.5s var(--tl-ease), border-color 0.35s, box-shadow 0.5s var(--tl-ease); }
.mod-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 32%, rgba(6, 5, 11, 0.9) 88%); }
.mod-tile .module-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transition: transform 1.4s var(--tl-ease), filter 0.6s; }
.mod-tile .glyph { position: absolute; top: 18px; left: 18px; width: 44px; height: 44px; color: var(--aqua); }
.mod-tile__body { display: grid; gap: 0.2rem; padding: clamp(12px, 1.4vw, 20px); }
.mod-tile h3 { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.5rem); line-height: 1.1; text-shadow: 0 1px 10px rgba(6, 5, 11, 0.95); }
.mod-tile p { margin: 0; text-shadow: 0 1px 8px rgba(6, 5, 11, 0.95); }
.mod-tile .pill { position: absolute; top: 12px; right: 12px; background: rgba(6, 5, 11, 0.6); }
.mod-tile.is-open:hover, .mod-tile.is-open:focus-visible { transform: translateY(-5px); border-color: rgba(138, 232, 220, 0.5); box-shadow: 0 24px 60px rgba(60, 30, 140, 0.5); }
.mod-tile.is-open:hover .module-art, .mod-tile.is-open:focus-visible .module-art { transform: scale(1.07); }
.mod-tile.is-soon { cursor: default; }
.mod-tile.is-soon .module-art { filter: saturate(0.35) brightness(0.6); }
@media (min-width: 1300px) { .mod-tile--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } .mod-tile--feature h3 { font-size: 2.6rem; } }
.grid-ways .mod-tile { opacity: 0; translate: 0 20px; transition: opacity 0.8s var(--tl-ease) var(--d, 0ms), translate 0.8s var(--tl-ease) var(--d, 0ms), transform 0.5s var(--tl-ease), border-color 0.35s, box-shadow 0.5s var(--tl-ease); }
.grid-ways .mod-tile.in { opacity: 1; translate: 0 0; }
html[data-motion="reduced"] .grid-ways .mod-tile { opacity: 1; translate: none; }

/* journal strip on Home */
.recent { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.recent__entry { scroll-snap-align: start; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--tl-glass); border: 1px solid var(--glass-edge); color: var(--pearl); text-decoration: none; transition: border-color 0.3s, background 0.3s; }
.recent__entry:hover { border-color: rgba(138, 232, 220, 0.45); background: var(--tl-glass-2); }
.recent__entry img, .recent__ph { width: 64px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--ink-3); }
.recent__entry small { display: block; color: var(--aqua); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }
.recent__entry b { display: block; margin: 0.15rem 0; font: 500 1.12rem/1.15 var(--font-display); }
.recent__entry span span { color: var(--dim); font-size: 0.9rem; overflow-wrap: anywhere; }

/* public pages: the landing page's nebula behind sign-in, claim beside the card on wide screens */
/* CV1b: the landing page's sky (still + loop from film.js); the dimming is an ink layer, so the film can crossfade over the still. */
.public-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.public-backdrop > picture, .public-backdrop__film { position: absolute; inset: 0; }
.public-backdrop__art, .public-backdrop__film { width: 100%; height: 100%; object-fit: cover; }
.public-backdrop::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(6, 5, 11, 0.5); }
.public-backdrop::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(6, 5, 11, 0.3), rgba(6, 5, 11, 0.85) 75%); }
/* Films lie exactly over their still and fade in once they play; until then, and with reduced motion, the still shows. */
video.film { transition: opacity 1.2s var(--tl-ease); }
video.film:not(.film--on) { opacity: 0; }
.film-gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: transparent; opacity: 0; transition: opacity 0.56s var(--tl-ease); pointer-events: auto; }
.film-gate--on { opacity: 1; }
.film-gate__sky { position: absolute; inset: 0; width: 100%; pointer-events: none; }
.film-gate__sky .public-backdrop { position: absolute; z-index: 0; }
.film-gate__stage { position: relative; z-index: 1; height: min(100dvh, calc(100vw * 16 / 9)); aspect-ratio: 9 / 16; max-width: 100%; display: grid; place-items: center; overflow: hidden; }
.film-gate__video { width: 100%; height: 100%; object-fit: cover; }
.film-gate__still { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.film-gate__sigil { width: min(42vh, 220px); height: min(42vh, 220px); }
.film-gate__mark { margin: 0; font: 500 clamp(1.4rem, 3vw, 2rem)/1 var(--font-display); letter-spacing: 0.32em; text-transform: uppercase; }
.film-gate__claim { margin: 0; font: italic 400 1.05rem/1.3 var(--font-display); color: var(--mist); }
.film-gate__skip { position: absolute; z-index: 2; right: clamp(16px, 4vw, 40px); bottom: max(24px, env(safe-area-inset-bottom)); min-height: 48px; pointer-events: auto; }
.auth-claim { display: none; }
@media (min-width: 1000px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 120px); padding-inline: clamp(32px, 6vw, 120px); min-height: calc(100vh - 90px); }
  .auth-claim { display: grid; gap: var(--s2); justify-self: start; }
  .auth-claim__mark { font: 500 clamp(2rem, 3.4vw, 3.2rem)/1 var(--font-display); letter-spacing: 0.32em; text-transform: uppercase; }
  .auth-claim em { font: italic 400 clamp(1.1rem, 1.6vw, 1.5rem)/1.3 var(--font-display); color: var(--mist); }
}

/* pointer depth on the shell sky is handled by sky.js; tiles get light, never motion, with reduced motion */
html[data-motion="reduced"] .tday__art { transform: none; }
/* the daily tile keeps the legacy .daily hook for tests, not its centred card layout */
.tday.daily { padding: 0; display: flex; justify-items: start; text-align: start; }

/* FB4: opaque sheet. The veil covers the page. Narrow widths fill the screen. */
.feedback-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: 18px 16px 16px; overflow: auto; background: #17142a; color: #f4f0fb; animation: feedback-sheet 220ms ease-out; }
.feedback-dialog::backdrop { background: #080616; }
@media (min-width: 800px) {
  .feedback-dialog { width: min(38rem, calc(100vw - 48px)); height: min(900px, calc(100dvh - 48px)); border-radius: 28px; }
}
.feedback-dialog h2 { font-family: var(--font-display), Georgia, serif; font-weight: 500; font-size: 1.8rem; margin: 0; color: #f4f0fb; }
.feedback-dialog .small, .feedback-dialog p { color: #cdc6e0; }
.feedback-dialog label { display: grid; gap: .5rem; margin-block: 0; }
.feedback-dialog textarea, .feedback-dialog .fb4-field { min-height: 7rem; resize: vertical; width: 100%; box-sizing: border-box; border-radius: 16px; border: 1px solid #8a83a6; background: #100e1c; color: #f4f0fb; padding: 12px; }
.feedback-dialog .fb4-field::placeholder { color: #cdc6e0; opacity: 1; }
.feedback-dialog .fb4-field:focus { outline: 2px solid #8ae8dc; outline-offset: 2px; }
.fb4-head { display: flex; justify-content: flex-end; }
.fb4-x { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #f4f0fb; font-size: 1.2rem; cursor: pointer; }
.fb4-thumbs, .fb4-chips, .fb4-extra { display: flex; flex-wrap: wrap; gap: 8px; }
.fb4-extra { display: grid; }
.fb4-chip, .fb4-send, .fb4-row, .fb4-more { min-height: 48px; border-radius: 999px; font: 500 1rem/1.2 inherit; cursor: pointer; }
.fb4-chip, .fb4-row { border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #f4f0fb; padding: 8px 14px; }
.fb4-chip[aria-pressed=true] { box-shadow: inset 0 0 0 1.5px #b39bff; }
.fb4-row { width: 100%; text-align: left; }
.fb4-row[aria-pressed=true] { box-shadow: inset 0 0 0 1px #8ae8dc; }
.fb4-send { position: relative; isolation: isolate; width: 100%; background: #8ae8dc; color: #120e22; border: 0; }
.fb4-send:disabled { opacity: 0.45; }
.fb4-send .fb4-ring { position: absolute; inset: -5px; border-radius: inherit; border: 2px solid transparent; border-top-color: #b39bff; opacity: 0; pointer-events: none; }
.fb4-send.is-sealing .fb4-ring { opacity: 1; animation: fb4-seal 180ms linear forwards; }
.fb4-more { justify-self: start; background: none; border: 0; color: #8ae8dc; padding: 8px 0; }
.fb4-consent { color: #cdc6e0; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 48px; }
.fb4-consent input { width: 24px; height: 24px; }
.fb4-proxy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feedback-prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-thanks { border: 1px solid #8ae8dc; padding: 28px 16px; border-radius: 20px; text-align: center; color: #f4f0fb; font-family: var(--font-display), Georgia, serif; font-size: 2rem; animation: feedback-thanks 600ms ease-out; }
@keyframes feedback-sheet { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes feedback-thanks { from { box-shadow: 0 0 0 transparent; } to { box-shadow: 0 0 24px #8ae8dc40; } }
@keyframes fb4-seal { to { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) {
  .feedback-dialog, .feedback-thanks, .fb4-send.is-sealing .fb4-ring { animation: none; }
}
html[data-motion="reduced"] .feedback-dialog,
html[data-motion="reduced"] .feedback-thanks,
html[data-motion="reduced"] .fb4-ring { animation: none !important; }
.module-art { display: block; width: 100%; max-width: 240px; height: auto; aspect-ratio: 720 / 542; object-fit: cover; border-radius: var(--r-md); }
/* Names can contain long Unicode sequences; never let the greeting widen the shell. */
.name-welcome, #name-preview, .topbar p { overflow-wrap: anywhere; }
.wheel { max-height: 220px; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; display: grid; min-width: 0; border: 1px solid var(--glass-edge); border-radius: var(--r-md); }
.wheel__row { scroll-snap-align: center; text-align: start; width: 100%; min-width: 0; overflow-wrap: anywhere; background: transparent; color: inherit; border: 0; padding: 10px 12px; }
.wheel__row[aria-selected="true"] { background: var(--violet-soft); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip { border: 1px solid var(--glass-edge); background: transparent; color: inherit; border-radius: 999px; padding: 6px 10px; }
.chip.is-on { outline: 2px solid var(--aqua); }
.onboarding, .auth-card, .wheel, .chips { max-width: 100%; }
.onboarding input, .onboarding select, .auth-card input, .auth-card select { width: 100%; min-width: 0; max-width: 100%; }
.ritual-hold { width: 96px; height: 96px; border-radius: 50%; border: 0; margin: 12px auto; display: grid; place-items: center; background: radial-gradient(circle, var(--amber) 0%, transparent 70%); }
.ritual-hold__ring { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--aqua); transform: scale(0.2); }
.onb-why { display: grid; gap: 8px; padding: 0; list-style: none; }
.onb-why li { display: grid; gap: 2px; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .ritual-hold__ring { transform: none; } }

/* AU4 sign-in: constellation, pause, passkey seal. Motion is opacity/transform only. */
.cred-hint, .sec-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; }
.cred-ic { width: 22px; height: 22px; }
.cred-state { display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-md); background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); color: var(--pearl); overflow-wrap: anywhere; }
.cred-state--soft { background: var(--violet-soft); border-color: color-mix(in srgb, var(--violet) 40%, transparent); }
.cred-stars { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; margin: var(--s2) 0; min-width: 0; }
.cred-star { display: block; height: 8px; border-radius: 99px; background: var(--glass-edge); transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.cred-star.on { background: var(--aqua); box-shadow: 0 0 8px rgba(138, 232, 220, 0.65); }
.cred-stars.is-full .cred-star.on { background: var(--aurora); }
.pw-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: var(--s2); align-items: center; min-width: 0; }
.cred-eye { min-width: 48px; min-height: 48px; border-radius: var(--r-md); border: 1px solid var(--glass-edge); background: var(--ink-2); color: var(--pearl); display: grid; place-items: center; padding: 0; }
.cred-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cred-actions .btn, #sec-pw .btn, #sec-pk .btn, .pk-row .btn { width: auto; min-height: 48px; }
.pk-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px 12px; align-items: center; min-width: 0; padding: var(--s3) 0; border-bottom: 1px solid var(--glass-edge); }
.pk-row .btn { grid-column: 2; justify-self: start; }
.pk-name, .cred-hint p, .cred-state p { overflow-wrap: anywhere; min-width: 0; }
.cred-check { display: flex; gap: var(--s3); align-items: center; min-height: 48px; }
.cred-points { margin: 0 0 var(--s3); padding-left: 1.2rem; }
.cred-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto var(--s3); }
.cred-mark .cred-ic { width: 40px; height: 40px; }
.cred-seal { position: fixed; inset: 0; z-index: 20; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.cred-seal__ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--aqua); animation: cred-ring 1.4s var(--ease) both; }
.cred-seal__ring:nth-child(2) { animation-delay: 0.15s; }
.cred-seal__ring:nth-child(3) { animation-delay: 0.3s; }
@keyframes cred-ring { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
@keyframes cred-fade { from { opacity: 0.85; } to { opacity: 0; } }
html[data-motion="reduced"] .cred-seal__ring { animation: cred-fade 0.35s linear both; }
.cred-ways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.cred-ways .btn { min-height: 48px; }
@media (max-width: 520px) { .cred-ways { grid-template-columns: 1fr; } }
.auth-slide { animation: auth-slide-in 420ms var(--ease); }
@keyframes auth-slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-slide { animation: none; } }
html[data-motion="reduced"] .auth-slide { animation: none; }
#me-password-passkey { min-height: 48px; }
.cred-dialog { width: min(36rem, calc(100vw - 2rem)); color: var(--pearl); }
.cred-dialog::backdrop { background: var(--veil); }
/* Arabic: connected letters, generous marks, and logical reading order. */
:lang(ar) {
    letter-spacing: normal;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.65; }
:lang(ar) .eyebrow, :lang(ar) .kicker { letter-spacing: normal; }
:lang(ar) em { font-style: normal; }
[dir="rtl"] .ic--directional { transform: scaleX(-1); }
input[type="email"], input[type="url"], input[autocomplete="one-time-code"] { direction: ltr; unicode-bidi: isolate; }
/* The image pan uses physical pixel coordinates independently of reading order. */
.viewer__stage { direction: ltr; }

[dir="rtl"] .settings-entry__go { transform: scaleX(-1); }
[dir="rtl"] .viewer__error { direction: rtl; }

/* WG1: compact module identity and accessible guest-entry actions. */
.guest-gate .module-art { width: 56px; height: 56px; object-fit: contain; }
.guest-gate .btn, #onboarding .actions .btn { min-height: 48px; }

/* RD9f: "What now?" equal tiles across the full width. Two columns even at 375px. */
.what-now-block { width: 100%; min-width: 0; margin: 12px 0; }
.what-now-title { margin: 0 0 8px; font-size: 0.9rem; font-weight: 500; color: var(--mist); }
.what-now { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; min-width: 0; }
.what-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  width: 100%; min-width: 0; min-height: 82px; padding: 12px 8px; box-sizing: border-box;
  border-radius: 16px; border: 1px solid var(--glass-edge); background: transparent;
  color: var(--pearl); cursor: pointer; text-align: center; font: inherit; overflow-wrap: anywhere;
}
.what-tile img, .what-tile svg, .what-tile__mark { width: 28px; height: 28px; object-fit: contain; flex: none; }
.what-tile__mark { display: grid; place-items: center; }
.what-tile__mark svg { width: 28px; height: 28px; }
.what-now-home { width: 100%; margin-top: 12px; }
.what-tile:active { transform: scale(0.97); }
.what-tile.feedback-entry { border-radius: 16px; min-height: 82px; padding: 12px 8px; }
@media (prefers-reduced-motion: reduce) { .what-tile:active { transform: none; } }
html[data-motion="reduced"] .what-tile:active { transform: none; }

/* J1: the birth seal shares the approved hold interaction and remains a compact control. */
.onb-birth-seal { grid-column: 1 / -1; display: grid; justify-items: center; gap: var(--s2); }
.onb-birth-seal .ritual-hold { position: relative; width: 88px; height: 88px; background: transparent; }
.onb-birth-seal .ritual-hold img { width: 100%; height: 100%; border-radius: 50%; }
.onb-birth-seal .ritual-hold__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; opacity: 0; }
.onb-birth-seal .holding .ritual-hold__ring { opacity: 1; transition: opacity 720ms ease; }
@media (prefers-reduced-motion: reduce) {
  .onb-birth-seal .holding .ritual-hold__ring { transition: none; opacity: 0; }
}
html[data-motion="reduced"] .onb-birth-seal .holding .ritual-hold__ring { transition: none; opacity: 0; }
.onboarding [role="tab"][aria-selected="true"] { border-color: var(--aqua); background: var(--aqua-soft); }
.onboarding [role="tabpanel"] { animation: onb-panel-in 180ms ease; }
.onboarding [hidden] { display: none; }
.onb-personal-line { display: flex; align-items: center; gap: var(--s3); }
.onb-personal-line .first-seal { flex: 0 0 32px; width: 32px; height: 32px; }
@keyframes onb-panel-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .onboarding [role="tabpanel"] { animation-duration: 140ms; } }
/* Crop the approved D1 motif, then fade its outer margin into the continuous sky. */
.onb-seal-art { display: inline-block; width: 100%; height: 100%; overflow: hidden; mask-image: radial-gradient(circle, #000 64%, transparent 71%); }
.onb-seal-art img { display: block; width: 100%; height: 100%; transform: translateY(6.25%) scale(2); }
.onb-personal-line .first-seal { height: 32px; }
/* Keep the measured action area while hidden, including wrapped/large text. */
.onb-birth-seal [data-onb-seal-alternative] { min-height: 48px; opacity: 1; transition: opacity 140ms ease; }
.onb-birth-seal [data-onb-seal-alternative][hidden] { display: inline-flex !important; visibility: hidden; opacity: 0; pointer-events: none; }

/* Narration purchase and fallback actions keep the shared 48 px touch target. */
.narration-panel { width: 100%; min-width: 0; }
.narration-panel .hdr-btn { width: 48px; height: 48px; padding: 0; }
.narration-panel .btn { min-height: var(--s7); }
.narration-panel > p:empty { display: none; }
.narration-mark { overflow: visible; }
.narration-stamp { position: absolute; z-index: 1; left: 50%; bottom: 0; transform: translate(-50%, 40%);
  font-size: 9px; line-height: 1; white-space: nowrap; pointer-events: none; color: var(--pearl); }
.narration-ask { margin: 0; }
.narration-confirm { width: 100%; }

/* One header-icon line: play or pause, a 3 px track, stop. */
.narration-line { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 0;
  border: 0; border-radius: 0; background: none; }
.narration-line .hdr-btn { flex: 0 0 48px; width: 48px; height: 48px; }
.narration-line svg { display: block; width: 24px; height: 24px; }
.narration-track { flex: 1; min-width: 0; height: 3px; }
.narration-track progress { display: block; width: 100%; height: 3px; appearance: none; border: 0; background: #554965; }
.narration-track progress::-webkit-progress-bar { background: #554965; border-radius: 2px; }
.narration-track progress::-webkit-progress-value { background: linear-gradient(90deg,#a5d4c9,#baa1e9); border-radius: 2px; }

.narration-offer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.narration-offer .btn { width: auto; min-height: 48px; }

.narration-offer .btn--text { padding-inline: 8px; background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }

/* WPAR1: country step greeting rotation and language suggestion (app OnboardingCountryStep). */
.onb-greeting { display: grid; gap: var(--s2); text-align: center; margin-block-end: var(--s3); }
.onb-greeting #page-title { margin: 0; }
.onb-greeting__pick { margin: 0; color: var(--pearl); }
.onb-greeting__line { margin: 0; color: var(--mist); min-height: 1.5em; overflow-wrap: anywhere; }
.onb-suggest-btn { width: 100%; margin-block: var(--s2) var(--s3); }
.onb-callout { margin: 0 0 var(--s3); padding: var(--s3) var(--s4); color: var(--pearl); border-radius: var(--r-md); }
.onb-suggestion { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s4); margin-block-end: var(--s3); border-radius: 18px; }
.onb-suggestion__flag { font-size: 1.9rem; line-height: 1; flex: none; }
.onb-suggestion__body { display: grid; gap: var(--s2); min-width: 0; flex: 1; }
.onb-suggestion__body p { margin: 0; color: var(--pearl); }
.onb-suggestion__body .small { color: var(--mist); }
.onb-suggestion__yes { width: 100%; }
.onb-suggestion__body .btn--text { justify-self: start; }
dialog.onb-sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s5) max(16px, 4vw) var(--s6); display: grid; gap: var(--s3); animation: rise 0.35s var(--ease); }
dialog.onb-sheet:not([open]) { display: none; }
.onb-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.onb-sheet__head h2 { margin: 0; }
.onb-sheet__close { flex: none; width: 48px; height: 48px; }
.onb-sheet p { margin: 0; color: var(--pearl); }
.onb-sheet__actions { display: grid; gap: var(--s3); }
.onb-sheet__actions .btn--text { justify-self: start; }
html[data-motion="reduced"] dialog.onb-sheet { animation: none; }

/* FS1W: Dein Kreis uses the shell width. The list stays the control; the sky is decoration. */
.circle-page, .circle-layout { width: 100%; min-width: 0; }
.circle-layout { display: grid; gap: var(--s4); }
.circle-sky { display: block; width: 100%; height: 9rem; color: var(--pearl); }
.circle-sky .star { fill: currentColor; }
.circle-sky .line { fill: none; stroke: var(--aqua); stroke-width: 0.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
html[data-motion="full"] .circle-sky .line.is-draw { animation: circle-line 0.9s var(--tl-ease) forwards; }
html[data-motion="full"] .circle-sky .star.is-new { animation: circle-flash 0.9s var(--tl-ease); }
@keyframes circle-line { to { stroke-dashoffset: 0; } }
@keyframes circle-flash { 0% { opacity: 0.2; } 100% { opacity: 1; } }
html[data-motion="reduced"] .circle-sky .line,
html[data-motion="reduced"] .circle-sky .star.is-new { animation: none; }
.circle-list, .circle-picks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.circle-seal { width: 100%; height: auto; min-height: 46px; border-radius: 999px; padding: 12px 20px; }
.circle-seal.is-holding { box-shadow: 0 0 0 8px color-mix(in srgb, var(--pearl) 28%, transparent); }
html[data-motion="reduced"] .circle-seal.is-holding { box-shadow: none; }
.circle-qr-wrap { margin: 0; }
.circle-qr { display: block; width: min(16rem, 70vw); height: auto; color: var(--ink); background: var(--pearl); }
.circle-code { overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .circle-layout.is-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
@media (max-width: 1023px) {
  .circle-layout.is-split .circle-main { display: none; }
}

/* ST1: "Melden" next to the AI notice and its dialog (Play AI content policy). Global because I Ching and
   numerology render the notice outside the shared personal block. */
.personal-ai-label { flex-wrap: wrap; }
.ai-report-btn { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--mist); }
.ai-report-btn:hover, .ai-report-btn:focus-visible { color: var(--pearl); }
.ai-report-icon { flex: 0 0 auto; }
.ai-report-stop--a { stop-color: var(--aqua); } .ai-report-stop--b { stop-color: var(--violet); } .ai-report-stop--c { stop-color: var(--amber); }
.ai-report-stage { display: grid; justify-items: center; gap: 16px; width: 100%; padding: 0 16px 24px; text-align: center; }
.ai-report-stage h2 { margin: 0; color: var(--pearl); }
.ai-report-intro { margin: 0; color: var(--mist); max-width: 60ch; }
.ai-report-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; width: 100%; }
.ai-report-reason { display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: start; }
.ai-report-reason.is-selected { border-color: var(--violet); background: var(--violet-soft); color: var(--pearl); }
.ai-report-status:not(:empty) { color: var(--err); margin: 0; }
.ai-report-stage .btn--primary { width: min(100%, 420px); }
