/* WhetMind product shell. Game/session internals keep their own self-contained UI. */
:root {
  --bg: #fff9f1;
  --bg-soft: #f4efff;
  --card: #ffffff;
  --card-strong: #f2ecff;
  --border: rgba(95, 70, 154, .14);
  --border-strong: rgba(95, 70, 154, .28);
  --fg: #29213d;
  --fg2: #554c6c;
  --dim: #766d89;
  --violet: #7b61e8;
  --violet-strong: #6447d8;
  --cyan: #168da4;
  --lime: #389c67;
  --pink: #e558a5;
  --good: #2f9d63;
  --bad: #d84f58;
  --warn: #b87812;
  --radius: 18px;
  --maxw: 780px;
  --maxwide: 1080px;
  --shadow: 0 20px 55px rgba(74, 54, 116, .14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -10%, rgba(141, 123, 255, .23), transparent 32rem),
    radial-gradient(circle at 5% 38%, rgba(75, 217, 236, .13), transparent 28rem),
    radial-gradient(circle at 1px 1px, rgba(123,97,232,.055) 1.5px, transparent 1.8px) 0 0 / 28px 28px,
    var(--bg);
  color: var(--fg);
  line-height: 1.62;
  font-size: 16px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

::selection { background: rgba(141, 123, 255, .4); color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
a { color: var(--cyan); }
p { margin: 0 0 12px; }
strong { color: var(--fg); }
code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
  font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.st-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; border-radius: 0 0 10px 0;
  background: var(--violet-strong); color: #fff;
}
.st-skip:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.st-hdr {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(166, 178, 255, .1);
  background: rgba(255, 249, 241, .88);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.st-hdr__in {
  max-width: var(--maxwide); min-height: 66px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.st-brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--fg); text-decoration: none; font-size: 17px; font-weight: 800; letter-spacing: -.3px;
}
.st-brand__mark { width: 28px; height: 28px; filter: drop-shadow(0 0 12px rgba(141, 123, 255, .45)); }
.st-brand:hover { color: var(--violet-strong); }
.st-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.st-nav a {
  padding: 7px 10px; border-radius: 9px; color: var(--dim); text-decoration: none; white-space: nowrap;
}
.st-nav a:hover, .st-nav a[aria-current="page"] { background: rgba(141, 123, 255, .1); color: var(--fg); }
.st-spacer { flex: 1 1 auto; }
.st-pill {
  padding: 4px 10px; border: 1px solid rgba(183, 243, 107, .22); border-radius: 999px;
  background: rgba(183, 243, 107, .08); color: var(--lime); font-size: 12px; font-variant-numeric: tabular-nums;
}
.st-chip { position: relative; font-size: 13px; white-space: nowrap; }
.st-chip > a { color: var(--fg2); text-decoration: none; }
.st-chip > a:hover { color: var(--cyan); }
.st-account { position: relative; }
.st-account summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--fg2); }
.st-account summary::-webkit-details-marker { display: none; }
.st-account__avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--violet-strong), var(--pink)); color: #fff; font-size: 12px; font-weight: 850; box-shadow: 0 5px 18px rgba(104,87,245,.3); }
.st-account__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.st-account__menu { position: absolute; right: 0; top: 42px; z-index: 60; width: 210px; padding: 7px; border: 1px solid var(--border-strong); border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.st-account__menu a, .st-account__menu button { width: 100%; display: block; padding: 9px 11px; border: 0; border-radius: 9px; background: none; color: var(--fg2); text-align: left; text-decoration: none; font: 13px inherit; cursor: pointer; }
.st-account__menu a:hover, .st-account__menu button:hover { background: rgba(141,123,255,.11); color: var(--fg); }
.st-account__menu button { margin-top: 5px; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; color: var(--bad); }
.st-lang {
  min-width: 66px; min-height: 34px; padding: 5px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.72); color: var(--fg2); font: 12px inherit; cursor: pointer;
}
.st-lang:hover { border-color: var(--violet); color: var(--violet-strong); }

/* Layout and type */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 72px; }
.wrap--wide { max-width: var(--maxwide); }
.wrap--narrow { max-width: 620px; }
.shell { max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 72px; }
section { margin: 0 0 44px; }
h1, h2, h3 { color: var(--fg); }
h1 { margin: 0 0 12px; font-size: clamp(2.25rem, 7vw, 4.75rem); line-height: .98; letter-spacing: -.065em; }
h2 { margin: 0 0 12px; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -.035em; }
h3 { margin: 0 0 7px; font-size: 1rem; line-height: 1.25; }
.lead { max-width: 680px; color: var(--fg2); font-size: 1.08rem; line-height: 1.7; }
.lead--hero { font-size: clamp(1.08rem, 2.3vw, 1.3rem); }
.sub, .muted { color: var(--dim); font-size: 13.5px; }
.eyebrow {
  margin: 0 0 10px; color: var(--violet); font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.section-heading { grid-column: 1 / -1; margin-bottom: 8px; }
.section-heading--split { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading--split .sub { max-width: 430px; }
.card {
  margin: 0 0 18px; padding: 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,245,255,.96));
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

/* Landing hero */
.hero-home {
  min-height: 540px; padding: 78px 0 56px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: 58px;
}
.hero-home__copy { position: relative; z-index: 2; }
.hero-home h1 { max-width: 720px; font-size: clamp(4.1rem, 10vw, 7.7rem); }
.hero-home__spark { color: var(--cyan); text-shadow: 0 0 28px rgba(75,217,236,.65); }
.live-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  color: var(--fg2); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.live-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(183,243,107,.1), 0 0 18px var(--lime); }
.hero-home__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 4px; color: var(--dim); font-size: 13px; }
.hero-home__facts strong { margin-right: 3px; color: var(--fg); font-variant-numeric: tabular-nums; }
.hero-home__actions { align-items: center; gap: 20px; margin-top: 28px; }
.text-link { color: var(--fg2); font-size: 14px; text-underline-offset: 4px; }
.text-link:hover { color: var(--cyan); }
.hero-welcome { color: var(--fg2); font-size: 14px; font-weight: 700; }

.brain-stage { position: relative; width: min(36vw, 390px); aspect-ratio: 1; justify-self: end; }
.brain-stage::before {
  content: ""; position: absolute; inset: 15%; border-radius: 38% 62% 55% 45%;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.18), transparent 28%), linear-gradient(140deg, rgba(141,123,255,.6), rgba(75,217,236,.18));
  filter: blur(2px); box-shadow: 0 0 80px rgba(104,87,245,.28); animation: morph 9s ease-in-out infinite;
}
.brain-stage__mark { position: absolute; inset: 25%; width: 50%; height: 50%; overflow: visible; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(255,255,255,.28)); }
.brain-stage__mark circle { fill: var(--cyan); stroke: none; }
.brain-stage__line { stroke: rgba(255,255,255,.72); stroke-width: 2.4; }
.brain-stage__orbit { position: absolute; inset: 4%; border: 1px solid rgba(141,123,255,.25); border-radius: 50%; animation: spin 24s linear infinite; }
.brain-stage__orbit::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.brain-stage__orbit--two { inset: 0 18%; transform: rotate(62deg); border-color: rgba(75,217,236,.18); animation-direction: reverse; animation-duration: 19s; }
.brain-stage__chip {
  position: absolute; padding: 6px 9px; border: 1px solid var(--border-strong); border-radius: 9px;
  background: #fff; color: var(--violet-strong); font: 850 11px ui-monospace, monospace;
  box-shadow: 0 10px 26px rgba(74,54,116,.2);
}
.brain-stage__chip--wm { left: 3%; top: 27%; }
.brain-stage__chip--rs { right: 4%; top: 18%; }
.brain-stage__chip--at { right: 0; bottom: 26%; }
.brain-stage__chip--sp { left: 9%; bottom: 17%; }
@keyframes morph { 0%,100% { border-radius: 38% 62% 55% 45%; transform: rotate(-3deg) scale(1); } 50% { border-radius: 58% 42% 38% 62%; transform: rotate(3deg) scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }

.today-card {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 26px;
  padding: 24px 28px; border: 1px solid rgba(141,123,255,.32); border-radius: 22px;
  background: linear-gradient(110deg, rgba(104,87,245,.18), rgba(75,217,236,.06)); box-shadow: var(--shadow);
}
.today-card h2 { margin-bottom: 7px; font-size: 1.35rem; }
.today-card__domains { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.domain-token { min-width: 42px; padding: 7px 9px; border: 1px solid #5d43c8; border-radius: 10px; background: #6c50d6; color: #fff; text-align: center; font: 850 12px ui-monospace, monospace; box-shadow: 0 6px 16px rgba(93,67,200,.2); }
.today-card__link { color: var(--fg2); font-size: 13px; white-space: nowrap; }

/* Product feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 32px; }
.feature-card { position: relative; min-height: 235px; padding: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--card); }
.feature-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -55px; bottom: -55px; border-radius: 50%; background: var(--glow); filter: blur(35px); opacity: .23; }
.feature-card--violet { --glow: var(--violet); }
.feature-card--cyan { --glow: var(--cyan); }
.feature-card--lime { --glow: var(--lime); }
.feature-card__number { float: right; color: var(--dim); font: 700 11px ui-monospace, monospace; }
.feature-card__icon { width: 46px; height: 46px; margin: 0 0 32px; display: grid; place-items: center; border-radius: 14px; background: rgba(141,123,255,.12); color: var(--cyan); font-size: 24px; }
.feature-card h3 { font-size: 1.12rem; }
.feature-card p { color: var(--dim); font-size: 13.5px; }
.feature-card a { position: relative; z-index: 1; font-size: 13px; font-weight: 700; }

.domains-section { padding-top: 42px; }
.domain-hint { margin: -2px 0 14px; color: var(--dim); font-size: 12px; }
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.domain-card { position: relative; min-width: 0; min-height: 145px; padding: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: rgba(255,255,255,.94); cursor: pointer; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease; }
.domain-card:hover, .domain-card:focus-visible, .domain-card.is-open { z-index: 5; border-color: rgba(141,123,255,.62); background: #fff; box-shadow: 0 22px 55px rgba(74,54,116,.2); }
.domain-card.is-open { grid-column: span 2; transform: translateY(-4px) scale(1.015); }
.domain-card > b { display: inline-flex; margin-bottom: 23px; color: var(--violet); font: 800 12px ui-monospace, monospace; }
.domain-card h3 { margin-bottom: 4px; }
.domain-card p { margin: 0; color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.domain-card__more { max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: max-height .28s ease, opacity .2s ease, margin .28s ease; }
.domain-card__more p { margin-top: 9px; color: var(--fg2); }
.domain-card__more strong { color: var(--cyan); font-size: 11px; }
.domain-card__toggle { position: absolute; right: 14px; top: 12px; color: var(--dim); font-size: 20px; font-weight: 300; transition: transform .22s ease, color .22s ease; }
.domain-card.is-open .domain-card__more { max-height: 240px; margin-top: 13px; opacity: 1; }
.domain-card.is-open .domain-card__toggle { color: var(--cyan); transform: rotate(45deg); }
@media (hover: hover) {
  .domain-card:hover { transform: translateY(-6px) scale(1.045); }
  .domain-card:hover .domain-card__more { max-height: 240px; margin-top: 13px; opacity: 1; }
  .domain-card:hover .domain-card__toggle { color: var(--cyan); transform: rotate(45deg); }
}

.trust-zone { max-width: 820px; margin: 90px auto 0; padding-top: 34px; border-top: 1px solid var(--border); }
.trust-zone details { border-bottom: 1px solid var(--border); }
.trust-zone summary { padding: 19px 42px 19px 0; cursor: pointer; color: var(--fg2); font-weight: 700; list-style: none; position: relative; }
.trust-zone summary::-webkit-details-marker { display: none; }
.trust-zone summary::after { content: "+"; position: absolute; right: 6px; top: 15px; color: var(--violet); font-size: 22px; font-weight: 400; }
.trust-zone details[open] summary::after { content: "−"; }
.details-body { padding: 0 10px 18px 0; color: var(--fg2); font-size: 14px; }

/* Buttons and forms */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 18px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: rgba(123,97,232,.055); color: var(--fg); font: 650 14px inherit; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--violet); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--primary { border-color: transparent; background: linear-gradient(135deg, var(--violet-strong), #806ffb); box-shadow: 0 12px 30px rgba(104,87,245,.28); color: #fff; }
.btn--primary:hover { border-color: transparent; background: linear-gradient(135deg, #7665ff, #9282ff); }
.btn--danger { border-color: rgba(216,79,88,.38); color: var(--bad); background: rgba(216,79,88,.06); }
.btn--danger:hover { border-color: var(--bad); color: var(--bad); }
.btn--large { min-height: 56px; padding: 14px 23px; border-radius: 15px; font-size: 16px; }
.btn--link { min-height: 32px; padding: 4px 2px; border: 0; background: none; color: var(--cyan); text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }

.auth-card { padding: 30px; }
.auth-card section { margin-bottom: 0; }
.field { margin: 0 0 18px; }
label { display: block; margin: 0 0 7px; color: var(--fg2); font-size: 13px; font-weight: 700; }
input[type="text"], input[type="password"], select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: #fff; color: var(--fg); font: 16px inherit;
}
input:focus, select:focus { border-color: var(--violet); background-color: #fff; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg,transparent 50%,var(--dim) 50%),linear-gradient(135deg,var(--dim) 50%,transparent 50%); background-position: calc(100% - 17px) 21px,calc(100% - 12px) 21px; background-size: 5px 5px,5px 5px; background-repeat: no-repeat; }
.profile-details { margin: 4px 0 20px; padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: rgba(242,236,255,.7); }
.profile-details summary { color: var(--cyan); cursor: pointer; font-weight: 700; }
.profile-details > .hint { margin: 10px 0 16px; }
.profile-progress { margin: 17px 0 22px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(75,217,236,.035); }
.profile-progress .bar { margin-bottom: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 18px; color: var(--fg2); font-size: 13px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--violet); }
.check-row--required { padding: 12px; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(141,123,255,.07); }
.hint { margin: 5px 0 0; color: var(--dim); font-size: 12px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 0 24px; padding: 4px; border-radius: 13px; background: rgba(123,97,232,.065); }
.tab { min-height: 42px; padding: 8px 13px; border: 0; border-radius: 9px; background: none; color: var(--dim); font: 700 14px inherit; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--card-strong); color: var(--fg); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.formmsg { display: none; margin: 0 0 16px; padding: 11px 13px; border-radius: 11px; font-size: 13.5px; }
.formmsg.on { display: block; }
.formmsg--err { border: 1px solid rgba(216,79,88,.34); background: rgba(216,79,88,.07); color: #a92d37; }
.formmsg--ok { border: 1px solid rgba(47,157,99,.3); background: rgba(47,157,99,.07); color: #247d4f; }
.callout { margin: 0 0 20px; padding: 14px 16px; border: 1px solid rgba(255,209,102,.27); border-radius: 12px; background: rgba(255,209,102,.07); }
.callout h3 { color: var(--warn); }
.callout p { margin: 0; color: var(--fg2); font-size: 13px; }

/* Lists, tables, dashboard */
.stack { display: grid; gap: 10px; }
.list-row, .game-link {
  width: 100%; min-height: 64px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025);
  color: var(--fg); text-decoration: none;
}
.list-row:hover, .game-link:hover { border-color: var(--violet); background: rgba(141,123,255,.07); }
.list-row span { color: var(--cyan); font-size: 13px; }
.game-card { min-height: 112px; padding: 19px 20px; }
.game-card__copy { min-width: 0; display: grid; gap: 4px; }
.game-card__copy strong { font-size: 17px; }
.game-card__desc { max-width: 540px; color: var(--fg2) !important; font-size: 13px !important; }
.game-card__meta { color: var(--dim) !important; font-size: 11px !important; }
.game-card__open { flex: 0 0 auto; color: var(--cyan) !important; font-weight: 700; }
.adaptive-recommendation { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, rgba(141,123,255,.11), rgba(23,164,184,.08)); }
.adaptive-recommendation h2 { margin-bottom: 8px; }
.adaptive-recommendation .sub { max-width: 680px; margin: 10px 0 0; }
.adaptive-recommendation__action { min-width: 210px; display: grid; justify-items: stretch; gap: 10px; text-align: center; }
.adaptive-recommendation__action .pill { justify-content: center; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--border); color: var(--dim); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
td:last-child, th:last-child { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; }
tr.is-me td { color: var(--cyan); font-weight: 700; }
.code-cell { color: var(--violet); font: 700 13px ui-monospace, monospace; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin: 0 0 18px; }
.stat { padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.stat__v { font-size: 29px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__k { margin-top: 5px; color: var(--dim); font-size: 11px; }
.bar { height: 12px; margin: 11px 0 7px; overflow: hidden; border: 1px solid var(--border); border-radius: 99px; background: var(--bg); }
.bar__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: width .4s ease; }
.levelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--dim); font-size: 13px; }
.chart-frame { width: 100%; height: 132px; margin: 12px 0 0; overflow: hidden; }
.chart { width: 100%; height: 100%; display: block; }
.chart .bar-rect { fill: var(--violet); }
.chart .bar-rect--empty { fill: rgba(255,255,255,.05); }
.chart .grid-line { stroke: var(--border-strong); stroke-width: 1; }
.chart-axis { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 9px; color: var(--dim); font-size: 11px; line-height: 1.3; }
.chart-axis span:nth-child(2) { text-align: center; }
.chart-axis span:last-child { text-align: right; }
.weekly-card { overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(237,248,255,.96)); }
.week-period { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--dim); font: 11px ui-monospace, monospace; }
.insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 21px 0 18px; }
.insight { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.74); }
.insight strong { display: block; overflow: hidden; color: var(--fg); font-size: 20px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.insight span { display: block; margin-top: 5px; color: var(--dim); font-size: 10.5px; }
.week-line { margin: 7px 0; color: var(--fg2); font-size: 13px; }
.recommendation { margin: 19px 0 10px; padding: 15px 16px; border: 1px solid rgba(75,217,236,.2); border-radius: 13px; background: rgba(75,217,236,.055); }
.recommendation > span { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recommendation p { margin: 5px 0 0; color: var(--fg2); font-size: 13.5px; }
.week-boundary { padding-top: 10px; border-top: 1px solid var(--border); }
.profile-nudge { position: relative; margin: 0 0 44px; padding: 24px; overflow: hidden; border: 1px solid rgba(183,243,107,.28); border-radius: 20px; background: linear-gradient(135deg, rgba(183,243,107,.09), rgba(75,217,236,.045)); box-shadow: 0 18px 48px rgba(0,0,0,.16); }
.profile-nudge::after { content: ""; position: absolute; width: 170px; height: 170px; right: -85px; top: -95px; border-radius: 50%; background: var(--lime); filter: blur(60px); opacity: .12; pointer-events: none; }
.profile-nudge h2 { font-size: 1.55rem; }
.profile-nudge .field { max-width: 480px; margin-top: 18px; }
.profile-nudge .btn-row { position: relative; z-index: 1; margin-bottom: 0; }
.data-card[aria-busy="true"] table, .data-card[aria-busy="true"] .insight-grid, .data-card[aria-busy="true"] #chart-host { opacity: .38; }
.data-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(123,97,232,.055); color: var(--fg2); font-size: 12.5px; }
.data-status--loading::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border: 2px solid var(--border-strong); border-top-color: var(--violet); border-radius: 50%; animation: spin .8s linear infinite; }
.data-status--loading { justify-content: flex-start; }
.data-status--partial { border-color: rgba(184,120,18,.24); background: rgba(255,209,102,.09); }
.data-status--error { border-color: rgba(216,79,88,.26); background: rgba(216,79,88,.06); }
.status-retry { flex: 0 0 auto; margin-left: auto; }

/* Privacy-safe community globe */
.globe-card { position: relative; margin-bottom: 34px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,248,255,.96)); }
.globe-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -130px; border-radius: 50%; background: rgba(255,124,200,.16); filter: blur(60px); pointer-events: none; }
.globe-heading { position: relative; z-index: 1; margin-bottom: 2px; }
.globe-heading > div { max-width: 720px; }
.globe-heading .eyebrow { margin-bottom: 7px; }
.globe-live { min-height: 24px; color: var(--violet-strong); font-size: 12px; font-weight: 800; }
.globe-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(220px, .85fr); align-items: center; gap: 32px; }
.globe-stage { position: relative; min-width: 0; }
#community-globe { display: block; width: min(100%, 600px); aspect-ratio: 1; margin: -22px auto -10px; touch-action: none; cursor: grab; outline: none; }
#community-globe.is-dragging { cursor: grabbing; }
#community-globe:focus-visible { border-radius: 50%; box-shadow: 0 0 0 4px rgba(104,87,245,.23); }
.globe-drag { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 6px 10px; border: 1px solid rgba(104,87,245,.2); border-radius: 999px; background: rgba(255,255,255,.82); color: var(--dim); font-size: 10px; white-space: nowrap; backdrop-filter: blur(8px); }
.globe-controls { position: absolute; right: 3%; bottom: 22px; display: grid; grid-template-columns: repeat(2, 34px); gap: 5px; }
.globe-controls button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(255,255,255,.9); color: var(--violet-strong); font: 800 15px inherit; cursor: pointer; }
.globe-controls button:hover { border-color: var(--violet); transform: translateY(-1px); }
.globe-copy { min-width: 0; }
.globe-regions { display: grid; gap: 9px; }
.globe-region { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.78); color: var(--fg); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.globe-region:hover, .globe-region:focus-visible { border-color: var(--violet); background: #fff; transform: translateX(3px); }
.globe-region.is-me { border-color: rgba(244,93,173,.35); background: rgba(255,124,200,.09); }
.globe-region__dot { flex: 0 0 auto; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: #0e9ab1; box-shadow: 0 0 0 4px rgba(14,154,177,.15); }
.globe-region.is-me .globe-region__dot { background: #f45dad; box-shadow: 0 0 0 4px rgba(244,93,173,.15); }
.globe-region strong, .globe-region small { display: block; }
.globe-region strong { font-size: 14px; }
.globe-region small { margin-top: 2px; color: var(--dim); font-size: 11px; }
.globe-empty { margin: 4px 0 14px; padding: 15px; border: 1px dashed var(--border-strong); border-radius: 13px; }
.globe-profile { display: inline-block; margin-top: 12px; }
.globe-privacy { margin-top: 18px; line-height: 1.55; }

/* Legal */
.legal-page h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); }
.legal-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 44px; }
.legal-index a { padding: 7px 11px; border: 1px solid var(--border); border-radius: 99px; color: var(--fg2); text-decoration: none; font-size: 12px; }
.legal-section { scroll-margin-top: 90px; padding: 26px; }
.legal-section p, .legal-section li { color: var(--fg2); font-size: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.contact-card { display: flex; flex-direction: column; min-width: 0; }
.contact-card h2 { font-size: 1.25rem; }
.contact-card p { flex: 1 1 auto; color: var(--fg2); font-size: 13px; }
.contact-email { overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }

/* Toasts and footer */
.st-toasts { position: fixed; left: 50%; bottom: 18px; z-index: 100; width: calc(100% - 28px); max-width: 430px; display: flex; flex-direction: column; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.st-toast { padding: 12px 14px; border: 1px solid var(--border-strong); border-left: 3px solid var(--dim); border-radius: 11px; background: rgba(255,255,255,.97); color: var(--fg); box-shadow: var(--shadow); font-size: 14px; }
.st-toast--good { border-left-color: var(--good); }.st-toast--warn { border-left-color: var(--warn); }.st-toast--err { border-left-color: var(--bad); }
footer.site { margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--dim); font-size: 11.5px; }
.site__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.site__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg2); text-decoration: none; font-size: 13px; font-weight: 800; }
.site__brand img { width: 22px; height: 22px; }
.site__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
footer.site a { color: var(--dim); text-underline-offset: 3px; }
footer.site a:hover { color: var(--cyan); }

/* Public first-session introduction */
.quick-start-shell { max-width: 820px; }
.quick-start-hero { text-align: center; }
.quick-start-rule { max-width: 650px; margin: 24px auto 12px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(141,123,255,.32); border-radius: 16px; background: rgba(141,123,255,.08); text-align: left; }
.quick-start-rule > span { font-size: 28px; }
.quick-start-rule p { margin: 0; color: var(--fg); font-weight: 700; }
.quick-start-card { overflow: hidden; text-align: center; background: linear-gradient(145deg, #fff, #fff8e9); }
.quick-start-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; text-align: left; }
.quick-start-idle { padding: 24px 0 8px; }
.quick-start-example { min-height: 90px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 30px; font-weight: 850; }
.quick-color-dot { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(255,255,255,.65), 0 7px 18px rgba(48,40,80,.16); }
.quick-color-dot--blue { background: #246db5; }
.quick-start-stage { padding: 18px 0 6px; }
.quick-start-stimulus { min-height: 116px; display: grid; place-items: center; font-size: clamp(48px, 11vw, 78px); font-weight: 900; letter-spacing: .03em; line-height: 1; }
.quick-start-stimulus--red { color: #b92f42; }
.quick-start-stimulus--blue { color: #2467aa; }
.quick-start-stimulus--green { color: #237b50; }
.quick-start-stimulus--orange { color: #b75b13; }
.quick-start-choices { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-choice { min-height: 54px; border: 2px solid currentColor; border-radius: 14px; background: #fff; font: 800 16px inherit; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.quick-choice:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(48,40,80,.13); }
.quick-choice--red { color: #a92d3e; background: #fff1f3; }
.quick-choice--blue { color: #215f9d; background: #eef7ff; }
.quick-choice--green { color: #217149; background: #edfaf3; }
.quick-choice--orange { color: #a65313; background: #fff5e9; }
.quick-start-feedback { min-height: 26px; margin: 14px 0 0; color: var(--dim); font-weight: 750; }
.quick-start-feedback.is-correct { color: var(--good); }
.quick-start-result { padding-top: 8px; }
.quick-start-confetti { font-size: 54px; animation: quick-pop .55s cubic-bezier(.2,.8,.2,1); }
.quick-start-metrics { max-width: 520px; margin: 24px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metrics-table { width: 100%; overflow-x: auto; }
.metrics-table table { min-width: 680px; }
.metrics-retention { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.metrics-product { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.metric-detail { margin-top: 8px; color: var(--dim); font-size: 12px; line-height: 1.45; }
.metrics-caveat { margin-top: 18px; }
.quick-start-metrics > div { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.78); }
.quick-start-metrics strong, .quick-start-metrics span { display: block; }
.quick-start-metrics strong { color: var(--violet); font-size: 30px; }
.quick-start-metrics span { color: var(--dim); font-size: 12px; }
.quick-start-result .btn-row { justify-content: center; }
@keyframes quick-pop { from { transform: scale(.45) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

.center { text-align: center; }.hidden, [hidden] { display: none !important; }.mt0 { margin-top: 0; }

@media (max-width: 820px) {
  .st-hdr__in { gap: 10px; padding: 9px 14px; flex-wrap: wrap; }
  .st-brand { margin-right: auto; }
  .st-nav { order: 3; width: 100%; overflow-x: auto; padding-top: 2px; }
  .st-spacer { display: none; }
  .st-pill { margin-left: auto; }
  .hero-home { min-height: 0; padding: 58px 0 34px; grid-template-columns: 1fr; gap: 22px; }
  .brain-stage { width: 330px; max-width: 86vw; justify-self: center; order: -1; margin-bottom: -30px; }
  .hero-home h1 { font-size: clamp(4rem, 20vw, 7rem); }
  .today-card { grid-template-columns: 1fr auto; }
  .today-card__link { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 190px; }
  .feature-card__icon { margin-bottom: 22px; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading--split { align-items: flex-start; flex-direction: column; gap: 2px; }
  .globe-layout { grid-template-columns: 1fr; gap: 2px; }
  #community-globe { width: min(100%, 520px); }
  .globe-copy { max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 520px) {
  .wrap, .shell { padding: 32px 14px 58px; }
  .st-pill { display: none; }
  .st-chip { font-size: 12px; }
  .hero-home { padding-top: 32px; }
  .brain-stage { width: 250px; margin-bottom: -18px; }
  .hero-home__facts { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-home__actions { align-items: flex-start; flex-direction: column; }
  .btn--large { width: 100%; }
  .today-card { padding: 20px; grid-template-columns: 1fr; gap: 14px; }
  .today-card__domains { justify-content: flex-start; }
  .domain-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .domain-card { min-height: 118px; }
  .domain-card.is-open { grid-column: span 1; transform: translateY(-2px); }
  .domain-card > b { margin-bottom: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card, .legal-section { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .site__top { align-items: flex-start; flex-direction: column; }
  .site__links { justify-content: flex-start; }
  .game-card { align-items: flex-start; flex-direction: column; }
  .adaptive-recommendation { align-items: stretch; flex-direction: column; }
  .adaptive-recommendation__action { min-width: 0; }
  .quick-start-card__top { align-items: stretch; flex-direction: column; }
  .quick-start-choices { grid-template-columns: 1fr; }
  .metrics-retention { grid-template-columns: 1fr; }
  .metrics-product { grid-template-columns: 1fr; }
  .chart-frame { height: 108px; }
  .chart-axis { grid-template-columns: 1fr 1fr; }
  .chart-axis span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .globe-card { padding: 20px 16px; }
  #community-globe { margin-top: -6px; }
  .globe-controls { right: 0; bottom: 12px; }
  .globe-drag { bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
