:root {
  --bg: #090c11;
  --surface: rgba(15, 19, 27, .9);
  --surface-solid: #131822;
  --surface-hover: rgba(30, 37, 50, .9);
  --hairline: rgba(255, 255, 255, .08);
  --hairline-strong: rgba(255, 255, 255, .16);
  --text: #f3f4f6;
  --muted: #9aa3b2;
  --faint: #6b7483;
  --accent: #e6c27a;
  --accent-ink: #1c1506;
  --danger: #ff6369;
  --v-perfect: #f2cc66;
  --v-solid: #4fd69c;
  --v-offmeta: #6cb6ff;
  --v-troll: #ff9f5a;
  --v-report: #ff6369;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { margin: 0; font-weight: 700; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: .01em; }
h2 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
small { color: var(--faint); font-size: .78em; font-weight: 500; }
code { background: var(--surface-solid); padding: .1em .4em; border-radius: 5px; }
img { display: block; }

.top, main, .foot { position: relative; z-index: 1; width: min(720px, 100% - 2.5rem); margin-inline: auto; }
main { transition: width .01s; }

/* ---------- daily backdrop ---------- */
/* Every moving piece is its own element and only transform/opacity animate, so the
   browser composites the scene on the GPU instead of repainting it each frame. */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); contain: strict; animation: fade 1.4s ease both; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene .px { position: absolute; inset: 0; will-change: transform; }
.scene .sway { will-change: transform; animation: sway 40s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -9s); }
.scene .orb { will-change: transform; animation: float 18s ease-in-out infinite alternate; }
.scene .stars { will-change: opacity; animation: twinkle 6s ease-in-out infinite; }
.scene .stars.late { animation-delay: -3s; }
.scene .aurora, .scene .mist { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.scene .aurora { width: 90%; height: 26%; opacity: .3; animation: aurora 13s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -5s); }
.scene .mist { width: 75%; height: 20%; opacity: .2; animation: mist 50s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -20s); }

/* Home keeps the scene clear and only darkens the left, behind the menu.
   In a round the centre is darkened instead, so the game stays readable. */
.scene-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(9, 12, 17, .86) 0%, rgba(9, 12, 17, .5) 26%, rgba(9, 12, 17, 0) 56%),
    linear-gradient(to bottom, rgba(9, 12, 17, .4), rgba(9, 12, 17, 0) 28%, rgba(9, 12, 17, .25));
}
.scene-shade::after {
  content: ""; position: absolute; inset: 0; transition: opacity .7s ease;
  background: radial-gradient(1000px 760px at 50% 42%, rgba(9, 12, 17, .78), rgba(9, 12, 17, .3) 72%, transparent);
}
body[data-screen="home"] .scene-shade::after { opacity: 0; }
.particles { position: absolute; inset: 0; }
.p { position: absolute; border-radius: 50%; animation: drift linear infinite; will-change: transform; }
.p.petal { border-radius: 80% 0 80% 0; animation-name: fall; }
.p.snow { animation-name: fall; }
.p.dust { animation-name: blow; }
.p.ember { animation-name: rise-far; }
.p.star { animation-name: twinkle; }

@keyframes fade { from { opacity: 0; } }
@keyframes float { to { transform: translate3d(0, -16px, 0); } }
@keyframes sway { from { transform: translate3d(-14px, 0, 0); } to { transform: translate3d(14px, 0, 0); } }
@keyframes aurora { from { transform: translate3d(-70px, 0, 0) scaleY(.8); opacity: .15; } to { transform: translate3d(70px, 0, 0) scaleY(1.35); opacity: .42; } }
@keyframes mist { from { transform: translate3d(-180px, 0, 0); } to { transform: translate3d(180px, 0, 0); } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(30px, -40px, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes fall { from { transform: translate3d(-6vw, -110vh, 0) rotate(0); } to { transform: translate3d(10vw, 110vh, 0) rotate(540deg); } }
@keyframes blow { from { transform: translate3d(-110vw, 0, 0); } to { transform: translate3d(110vw, 0, 0); } }
@keyframes rise-far { from { transform: translate3d(0, 60vh, 0); } to { transform: translate3d(4vw, -110vh, 0); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 3rem); padding: 1rem 0; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  background: none; border: 0; padding: .25rem 0; cursor: pointer;
  color: var(--text); font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: opacity .4s, transform .4s var(--ease);
}
.brand:hover { opacity: .8; }
body[data-screen="home"] .brand { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.brand-mark, .mark-icon {
  width: 20px; height: 20px; border-radius: 50%; display: block;
  border: 2px solid var(--accent);
  background: conic-gradient(var(--accent) 0 30%, transparent 0);
  transition: transform .6s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(120deg); }
.top-right { display: flex; align-items: center; gap: .5rem; }
.patch {
  color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem .8rem; border-radius: 999px;
  background: rgba(15, 19, 27, .6); border: 1px solid var(--hairline);
}
.icon-btn {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(15, 19, 27, .6); border: 1px solid var(--hairline-strong); color: var(--muted);
  font: inherit; font-size: 1.1rem; line-height: 1;
  transition: transform .4s var(--spring), color .2s, border-color .2s, background .2s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { transform: translateY(-2px) scale(1.06); color: var(--accent); border-color: var(--accent); background: rgba(15, 19, 27, .9); }
.icon-btn:active { transform: scale(.94); transition-duration: .08s; }


main { flex: 1; padding-bottom: 3rem; }
.loading { color: var(--muted); text-align: center; padding: 5rem 0; }

/* ---------- screen transitions ---------- */
#app > section { transition: opacity .17s ease, transform .17s ease; }
#app.leaving > section { opacity: 0; transform: translateY(-8px) scale(.995); }
#app > section > * { animation: rise .6s var(--ease) backwards; }
#app > section > *:nth-child(2) { animation-delay: .06s; }
#app > section > *:nth-child(3) { animation-delay: .12s; }
#app > section > *:nth-child(4) { animation-delay: .18s; }
#app > section > *:nth-child(5) { animation-delay: .24s; }
#app > section > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- shared pieces ---------- */
.eyebrow, .progress {
  display: block; color: var(--muted);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

@property --spot { syntax: "<number>"; inherits: true; initial-value: 0; }
.btn {
  --mx: 50%; --my: 50%; --cut: 10px; --spot: 0; --glint: .2;
  --edge: linear-gradient(180deg, rgba(230, 194, 122, .8), rgba(230, 194, 122, .28));
  --fill: linear-gradient(180deg, #1c2231, #0f131c);
  --shape: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  appearance: none; border: 0; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  min-height: 50px; padding: .9rem 1.9rem;
  background: var(--edge); color: var(--text);
  font: inherit; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  clip-path: var(--shape);
  transition: transform .4s var(--spring), --spot .3s ease, filter .3s ease, color .2s;
}
/* inner face, with a soft light that follows the cursor */
.btn::before {
  content: ""; position: absolute; inset: 1.5px; z-index: -2; clip-path: var(--shape);
  background:
    radial-gradient(170px circle at var(--mx) var(--my), rgba(255, 255, 255, calc(var(--spot) * var(--glint))), transparent 70%),
    var(--fill);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); --spot: 1; filter: brightness(1.12); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.97); transition-duration: .09s; }

.btn.primary {
  --glint: .65;
  --edge: linear-gradient(180deg, #fff6da, #9c7430);
  --fill: linear-gradient(180deg, #f8e4ae 0%, #dcb262 48%, #b98b3c 100%);
  color: var(--accent-ink);
}

.btn .tag {
  padding: .18rem .45rem; border-radius: 3px;
  font-size: .62rem; letter-spacing: .1em;
  background: rgba(230, 194, 122, .14); color: var(--accent);
}
.btn.primary .tag { background: rgba(40, 26, 4, .2); color: var(--accent-ink); }

/* arrow that leans forward on hover */
.btn.go::after { content: "\2192"; display: inline-block; font-size: 1rem; letter-spacing: 0; transition: transform .4s var(--spring); }
.btn.go:hover:not(:disabled)::after { transform: translateX(6px); }

/* click ripple, added by app.js */
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .4); transform: scale(0);
  animation: ripple .65s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* the lock-in button breathes once the build is full */
.btn.ready { animation: ready 1.8s ease-in-out infinite; }
@keyframes ready { 50% { filter: brightness(1.22); } }
.btn.ready:hover { animation: none; }

.btn:disabled {
  cursor: not-allowed; color: var(--faint);
  --edge: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12));
  --fill: linear-gradient(#161b25, #161b25);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .75rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--text);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.v-perfect::before { color: var(--v-perfect); }
.chip.v-solid::before { color: var(--v-solid); }
.chip.v-offmeta::before { color: var(--v-offmeta); }
.chip.v-troll::before { color: var(--v-troll); }
.chip.v-report::before { color: var(--v-report); }
.verdict.v-perfect { color: var(--v-perfect); }
.verdict.v-solid { color: var(--v-solid); }
.verdict.v-offmeta { color: var(--v-offmeta); }
.verdict.v-troll { color: var(--v-troll); }
.verdict.v-report { color: var(--v-report); }

/* ---------- home: the scene is the page, the menu sits on its left ---------- */
body[data-screen="home"] main { width: min(1500px, 100% - 12vw); display: flex; align-items: center; }
body[data-screen="home"] .foot { width: min(1500px, 100% - 12vw); }
body[data-screen="home"] .foot p { max-width: 34rem; }
.home { width: 100%; max-width: 400px; padding: 1rem 0 2rem; }

.mark-icon { width: 30px; height: 30px; margin-bottom: 1.4rem; animation: sweep 14s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.wordmark {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(3.2rem, 7.4vw, 5.4rem); line-height: .95; letter-spacing: .07em;
}
.wordmark span {
  display: block; color: transparent;
  background: linear-gradient(180deg, #fff8e2 0%, #e9c781 46%, #a17832 100%);
  -webkit-background-clip: text; background-clip: text;
}
.subline { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.subline span { color: var(--accent); font-size: .68rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; white-space: nowrap; }
.subline i { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(230, 194, 122, .6)); }
.subline i:last-child { transform: scaleX(-1); }
.lede { color: #c9cfda; font-size: 1.02rem; max-width: 22rem; margin: 1.6rem 0 0; }

.menu { display: grid; gap: .6rem; margin-top: 2rem; }
.menu .btn { width: 100%; }
.menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.menu > * { animation: rise .6s var(--ease) backwards; }
.menu > *:nth-child(1) { animation-delay: .22s; }
.menu > *:nth-child(2) { animation-delay: .3s; }
.menu > *:nth-child(3) { animation-delay: .38s; }
.today { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1.5rem 0 0; color: var(--muted); font-size: .78rem; }
.today b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- pop-ups ---------- */
.modal { border: 0; padding: 0; background: none; color: var(--text); width: min(520px, 100% - 2rem); max-height: calc(100% - 2rem); overflow: visible; }
.modal::backdrop { background: rgba(4, 6, 10, .72); animation: fade .25s ease; }
.modal[open] .modal-card { animation: modal-in .4s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.modal-card {
  position: relative; padding: 2rem; max-height: calc(100vh - 2rem); overflow: auto;
  background: linear-gradient(180deg, #171d2a, #0f131c);
  border: 1px solid rgba(230, 194, 122, .35); border-radius: 4px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9);
}
.modal-card h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--text); margin-bottom: 1.25rem; }
.modal-card h3 { margin: 1.6rem 0 .7rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.modal-close { position: absolute; top: 1.25rem; right: 1.25rem; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; color: var(--muted); }
.steps b { color: var(--text); }
.steps li::marker { color: var(--accent); font-weight: 700; }
.scale, .dist { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.scale li { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.fine { color: var(--faint); font-size: .82rem; margin: 1.4rem 0 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.stat-grid div { padding: .9rem .5rem; text-align: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--hairline); border-radius: 4px; }
.stat-grid b { display: block; font-size: 1.7rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-grid span { color: var(--muted); font-size: .68rem; }
.dist li { display: grid; grid-template-columns: 7rem 1fr 2rem; align-items: center; gap: .7rem; font-size: .85rem; color: var(--muted); }
.dist i { height: 8px; border-radius: 4px; background: currentColor; width: max(var(--w), 3px); animation: grow .7s var(--ease) backwards; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.dist i.v-perfect { color: var(--v-perfect); } .dist i.v-solid { color: var(--v-solid); } .dist i.v-offmeta { color: var(--v-offmeta); }
.dist i.v-troll { color: var(--v-troll); } .dist i.v-report { color: var(--v-report); }
.dist b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }


/* ---------- account and payment forms ---------- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 1.25rem; background: rgba(255, 255, 255, .05); border-radius: 6px; }
.tabs button {
  padding: .6rem; border: 0; border-radius: 4px; cursor: pointer; background: none; color: var(--muted);
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { background: rgba(230, 194, 122, .16); color: var(--accent); }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.field small { text-transform: none; letter-spacing: 0; }
.field input {
  width: 100%; padding: .85rem 1rem; border-radius: 6px;
  border: 1px solid var(--hairline-strong); background: rgba(0, 0, 0, .28); color: var(--text);
  font: inherit; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(230, 194, 122, .16); }
.form-error { min-height: 1.3em; margin: 0 0 .8rem; color: var(--danger); font-size: .88rem; }
.form-error:empty { min-height: 0; margin: 0; }
#auth-form .btn { width: 100%; }
.account-line { margin: 0 0 .5rem; color: var(--muted); }
.code {
  margin: 1rem 0 .4rem; padding: .9rem 1rem; text-align: center; user-select: all;
  background: rgba(0, 0, 0, .3); border: 1px dashed rgba(230, 194, 122, .5); border-radius: 6px;
  color: var(--accent); font: 600 1.15rem ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em;
  animation: rise .4s var(--ease);
}
.or { display: flex; align-items: center; gap: 1rem; margin: 1.3rem 0; color: var(--faint); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hairline-strong); }
#restore-email-form .btn, #restore-code-form .btn { width: 100%; }
.account-line.warn { color: var(--v-troll); }
.form-note { min-height: 1.3em; margin: 0 0 .8rem; color: var(--v-solid); font-size: .88rem; }
.form-note:empty { min-height: 0; margin: 0; }
#forgot-form .btn, #reset-form .btn { width: 100%; }
.link { padding: 0; border: 0; background: none; cursor: pointer; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.account-line b { color: var(--text); }
.price { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1.2rem; }
.price b { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--accent); }
.price span { color: var(--muted); }
.perks { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .55rem; }
.perks li { position: relative; padding-left: 1.6rem; }
.perks li::before { content: ""; position: absolute; left: .2rem; top: .5em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--accent); }
.modal-card .actions { margin-top: 1.25rem; }

/* ---------- round ---------- */
.round { padding-top: .5rem; }
.champ {
  position: relative; height: clamp(210px, 38vw, 300px);
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-solid);
  box-shadow: var(--shadow), 0 0 0 1px var(--hairline);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.champ-art {
  position: absolute; inset: 0;
  background: center 18% / cover no-repeat;
  animation: settle 1.8s var(--ease) both; will-change: transform, opacity;
}
@keyframes settle { from { transform: scale(1.12); opacity: 0; } }
.champ::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(9, 12, 17, .96) 0%, rgba(9, 12, 17, .5) 42%, rgba(9, 12, 17, 0) 75%);
}
.champ-info { position: relative; z-index: 1; padding: 1.4rem 1.5rem; display: grid; gap: .45rem; justify-items: start; }
.champ-info .progress { color: rgba(255, 255, 255, .7); }
.champ-info h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
.role {
  margin-top: .2rem; padding: .28rem .8rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}

.clock {
  position: relative; z-index: 1; margin: 1.3rem 1.4rem; flex: none;
  width: 68px; height: 68px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(9, 12, 17, .6);  font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  transition: color .4s;
}
.clock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 3; }
.clock .track { stroke: rgba(255, 255, 255, .12); }
.clock .ring { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; transition: stroke .4s; }
.clock.urgent { color: var(--danger); animation: pulse 1s var(--ease) infinite; }
.clock.urgent .ring { stroke: var(--danger); }
@keyframes pulse { 50% { transform: scale(1.07); } }

.timebar { height: 3px; margin: .9rem .25rem 0; background: var(--hairline); border-radius: 3px; overflow: hidden; }
.timebar-fill { height: 100%; background: var(--accent); transform-origin: left; border-radius: 3px; transition: background .4s; }
.timebar-fill.urgent { background: var(--danger); }

.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; margin: 1.5rem 0; }
.slot {
  position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--r-md); border: 0; background: var(--surface-solid);
  box-shadow: 0 0 0 1px var(--hairline-strong), 0 10px 24px -12px rgba(0, 0, 0, .8);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.slot img { width: 100%; height: 100%; transition: filter .2s, transform .3s var(--ease); }
.slot.empty {
  cursor: default; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline);
  display: grid; place-items: center; color: var(--faint); font-weight: 600; font-size: .9rem;
}
button.slot:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--danger), 0 14px 26px -12px rgba(0, 0, 0, .9); }
button.slot:hover img { filter: brightness(.45) saturate(.6); transform: scale(1.06); }
button.slot::after {
  content: "×"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.6rem; font-weight: 300; opacity: 0; transition: opacity .2s;
}
button.slot:hover::after { opacity: 1; }
.slot.pop { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } }

.search { position: relative; margin-bottom: 1rem; z-index: 3; }
.search label { display: block; margin-bottom: .5rem; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.search input {
  width: 100%; padding: 1rem 1.2rem; border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 1.05rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(230, 194, 122, .16); background: rgba(17, 21, 29, .92); }
.search input:disabled { opacity: .5; }
.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  margin: 0; padding: .4rem; list-style: none;
  background: rgba(19, 24, 34, .96); border: 1px solid var(--hairline-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow);  transform-origin: top; animation: drop .2s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.suggestions li {
  display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem;
  border-radius: var(--r-sm); cursor: pointer; font-weight: 500;
  transition: background .15s, transform .2s var(--ease);
}
.suggestions li img { width: 36px; height: 36px; border-radius: 8px; }
.suggestions li.active, .suggestions li:hover { background: rgba(255, 255, 255, .08); }
.suggestions li.active { transform: translateX(3px); }
.suggestions li.blocked { opacity: .4; cursor: not-allowed; }
.suggestions li em { margin-left: auto; font-size: .78rem; color: var(--muted); font-style: normal; }
.suggestions li.none { color: var(--muted); cursor: default; }
.suggestions li.none:hover { background: none; }

.round > .btn { width: 100%; min-height: 56px; font-size: .82rem; }

/* ---------- result ---------- */
.result { padding-top: 1.5rem; }
.result-head { display: flex; align-items: center; gap: 1.25rem; }
.result-head > div:nth-child(2) { flex: 1; min-width: 0; }
.result-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin-top: .35rem; }
.portrait { width: 80px; height: 80px; border-radius: 50%; box-shadow: 0 0 0 1px var(--hairline-strong), 0 0 0 5px rgba(255, 255, 255, .04); }
.quip { margin: .5rem 0 0; color: var(--muted); }
.score { text-align: right; }
.score b { display: block; font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.score span { color: var(--faint); font-size: .75rem; font-weight: 500; }

.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 2rem 0; }
.rates div {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 1rem 1.1rem;}
.rates span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: .2rem; }
.rates b { font-size: 1.45rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.up { color: var(--v-solid); }
.down { color: var(--v-report); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.items, .recap { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.items li, .recap li {
  display: flex; align-items: center; gap: .8rem;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: .55rem .9rem .55rem .6rem;  animation: rise .55s var(--ease) backwards; animation-delay: calc(.25s + var(--i, 0) * 55ms);
  transition: border-color .25s, transform .25s var(--ease);
}
.items li:hover, .recap li:hover { border-color: var(--hairline-strong); transform: translateX(2px); }
.items img, .items .blank { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.items .blank { border: 1px dashed var(--hairline-strong); }
.iname { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; }
.istat { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.istat small { display: block; }
.items li.unknown { background: rgba(255, 99, 105, .07); border-color: rgba(255, 99, 105, .22); }
.items li.unknown img { filter: grayscale(.7) brightness(.8); }
.items li.unknown .istat { color: var(--v-report); font-weight: 600; font-size: .8rem; }

/* ---------- summary ---------- */
.summary { padding-top: clamp(1.5rem, 6vh, 3.5rem); text-align: center; }
.summary h1 { margin-top: .6rem; }
.summary .score { text-align: center; margin: 1.5rem 0 2rem; }
.summary .score b { font-size: clamp(4rem, 14vw, 6rem); }
.recap { text-align: left; }
.recap li { padding: .6rem 1rem .6rem .7rem; }
.recap img { width: 42px; height: 42px; border-radius: 50%; }
.recap b { width: 2.4rem; text-align: right; font-variant-numeric: tabular-nums; }
.next-daily { color: var(--muted); margin: 1.75rem 0 0; font-size: .9rem; }
.summary .actions { justify-content: center; }

/* ---------- footer ---------- */
.foot { padding: 1.5rem 0 2rem; color: rgba(255, 255, 255, .42); font-size: .7rem; line-height: 1.6; }
.foot p { margin: 0 0 .4rem; }

@media (max-width: 640px) {
  body[data-screen="home"] main, body[data-screen="home"] .foot { width: calc(100% - 2.5rem); }
  .home { max-width: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .patch { display: none; }
  .how, .cols, .rates { grid-template-columns: 1fr; }
  .slots { gap: .4rem; }
  .slot, .slot.empty { border-radius: var(--r-sm); }
  .result-head { flex-wrap: wrap; }
  .portrait { width: 60px; height: 60px; }
  .score { text-align: left; }
  .clock { width: 58px; height: 58px; font-size: 1.2rem; margin: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .particles { display: none; }
}
