:root {
  color-scheme: dark;
  --bg: #060a13;
  --bg-2: #0a1020;
  --panel: #0e1628;
  --panel-2: #142039;
  --line: rgba(148, 163, 184, .13);
  --line-2: rgba(148, 163, 184, .24);
  --ink: #e6edf7;
  --ink-2: #a5b3c8;
  --muted: #6b7a91;
  --accent: #22d3ee;
  --accent-ink: #03141a;
  --accent-soft: rgba(34, 211, 238, .11);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, .13);
  --good: #4ade80;
  --good-soft: rgba(74, 222, 128, .11);
  --bad: #fbbf24;
  --bad-soft: rgba(251, 191, 36, .1);
  --radius: 14px;
  --ui: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pixel: "Silkscreen", "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, 1.5, .4, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(820px 520px at -5% -12%, rgba(34, 211, 238, .14), transparent 62%),
    radial-gradient(760px 560px at 108% 108%, rgba(167, 139, 250, .15), transparent 62%),
    radial-gradient(circle, rgba(148, 163, 184, .14) 1px, transparent 1.6px) 0 0 / 22px 22px;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, .09) 2px 3px);
}
::selection { background: rgba(34, 211, 238, .35); color: #fff; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; }
h1 { font-size: 36px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0; }
a { color: inherit; }
.hint a { color: var(--accent); }
.mono { font-family: var(--mono); }

.wrap { max-width: 560px; margin: 0 auto; padding: 14px 16px calc(40px + env(safe-area-inset-bottom)); }
.wrap.enter > :not(.late) { animation: enter .45s var(--ease-out) both; }
.wrap.enter > :nth-child(2):not(.late) { animation-delay: .04s; }
.wrap.enter > :nth-child(3):not(.late) { animation-delay: .08s; }
.wrap.enter > :nth-child(4):not(.late) { animation-delay: .12s; }
.stack > * + * { margin-top: 14px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 16px; }
.top-r { display: flex; align-items: center; gap: 4px; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo svg { width: 27px; height: 25px; filter: drop-shadow(0 0 7px rgba(34, 211, 238, .5)); flex: none; }
.logo svg .cur { animation: blink 1.06s steps(1) infinite; }
.logo b { font-family: var(--pixel); font-weight: 700; font-size: 21px; letter-spacing: .08em; line-height: 1; }
.logo .tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); border: 1px solid rgba(167, 139, 250, .4); border-radius: 6px; padding: 3px 7px; }
.me { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 14px; background: rgba(14, 22, 40, .8); border: 1px solid var(--line); border-radius: 11px; padding: 3px 11px 3px 3px; }
.me .mn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; }
.me .pts { font-family: var(--mono); font-weight: 800; color: var(--accent); text-shadow: 0 0 10px rgba(34, 211, 238, .5); }

/* ---------- cards ---------- */
.card { background: linear-gradient(180deg, rgba(20, 31, 54, .82), rgba(12, 19, 35, .82)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sec-head h2 .hash, summary h2 .hash { font-family: var(--mono); color: var(--accent); font-weight: 600; margin-right: 6px; letter-spacing: 0; }
.count { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-2); background: rgba(148, 163, 184, .07); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; white-space: nowrap; }
.count.ok { color: var(--good); border-color: rgba(74, 222, 128, .35); background: var(--good-soft); }
.segs { display: inline-flex; gap: 2px; }
.segs i { width: 6px; height: 11px; border-radius: 1px; background: rgba(148, 163, 184, .22); }
.segs i.on { background: var(--accent); box-shadow: 0 0 6px rgba(34, 211, 238, .6); }
.count.ok .segs i.on { background: var(--good); box-shadow: 0 0 6px rgba(74, 222, 128, .6); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details > summary::-webkit-details-marker { display: none; }
details > summary .chev { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .25s var(--ease-out), border-color .2s; flex: none; }
details > summary .chev::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-2px) rotate(45deg); }
details[open] > summary .chev { transform: rotate(180deg); }
details[open] > summary { margin-bottom: 16px; }
details[open] > summary ~ * { animation: enter .35s var(--ease-out) both; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 18px; font-weight: 600; font-size: 15px; background: var(--panel-2); color: var(--ink); text-decoration: none; transition: transform .08s, background .15s, border-color .15s, box-shadow .2s, opacity .15s; white-space: nowrap; }
.btn:hover { border-color: rgba(34, 211, 238, .5); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 0 0 1px rgba(34, 211, 238, .4), 0 6px 26px -6px rgba(34, 211, 238, .6); }
.btn.primary:hover { background: #4fe0f5; }
.btn.dark { background: linear-gradient(90deg, var(--accent), var(--violet)); border: 0; color: #050816; font-weight: 700; box-shadow: 0 8px 30px -8px rgba(124, 160, 250, .7); }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: 16px 22px; font-family: var(--mono); font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 12px; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .4; pointer-events: none; box-shadow: none; }
.icon-btn { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; flex: none; }
.icon-btn:hover { background: rgba(148, 163, 184, .1); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.snd.off { color: var(--muted); }

/* ---------- avatars (pixel creatures) ---------- */
.av { --s: 40px; --c: var(--accent); width: var(--s); height: var(--s); border-radius: calc(var(--s) * .27); display: inline-grid; place-items: center; flex: none; position: relative; color: var(--c);
  background: #0c1426; background: color-mix(in srgb, var(--c) 15%, #0a1121);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .3); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.av svg { width: 86%; height: 86%; display: block; filter: drop-shadow(0 0 2px var(--c)); }
.av b { font-family: var(--mono); font-size: calc(var(--s) * .45); }
.av.xs { --s: 24px; }
.av.sm { --s: 30px; }
.av.lg { --s: 56px; }
.av.xl { --s: 104px; }
.av.lg svg, .av.xl svg { filter: drop-shadow(0 0 5px var(--c)); }

/* ---------- inputs ---------- */
.field { display: block; }
.field > span { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%; border: 1px solid var(--line-2); background: rgba(6, 10, 19, .7); border-radius: 10px; padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .2s; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #55637a; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15), 0 0 22px -4px rgba(34, 211, 238, .45); }
textarea { resize: vertical; min-height: 130px; line-height: 1.6; font-family: var(--mono); font-size: 15px; caret-color: var(--accent); }
.char { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.form-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; }

/* ---------- hero ---------- */
.hero { padding: 6px 2px 4px; }
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cursor { display: inline-block; width: 9px; height: 15px; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.06s steps(1) infinite; }
.hero h1 { font-size: 40px; background: linear-gradient(92deg, #f0f6ff 10%, #9be9f7 55%, #c4b5fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 2px; }
.hero .sub { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.theme { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; background: var(--violet-soft); border: 1px solid rgba(167, 139, 250, .35); border-radius: 9px; padding: 5px 12px 5px 5px; font-weight: 600; }
.theme b { background: var(--violet); color: #160c33; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 3px 8px; }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; counter-increment: step; color: var(--ink-2); font-size: 15px; }
.steps li::before { content: "0" counter(step); width: 34px; height: 28px; border-radius: 7px; background: var(--accent-soft); border: 1px solid rgba(34, 211, 238, .3); color: var(--accent); display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 13px; }
.steps b { color: var(--ink); }
.scoring { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.scoring div { background: rgba(6, 10, 19, .55); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
.scoring strong { display: block; font-family: var(--pixel); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--good); text-shadow: 0 0 14px rgba(74, 222, 128, .55); }
.scoring div + div strong { color: var(--violet); text-shadow: 0 0 14px rgba(167, 139, 250, .6); }
.scoring span { font-size: 13px; color: var(--ink-2); line-height: 1.3; display: block; margin-top: 4px; }

.term { margin-top: 16px; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; background: rgba(4, 7, 14, .75); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, .3); }
.term-bar i:nth-child(2) { background: rgba(34, 211, 238, .55); }
.term-bar i:nth-child(3) { background: rgba(167, 139, 250, .55); }
.term-bar span { margin-left: 6px; }
.term blockquote { margin: 0; padding: 14px 14px 16px; font-family: var(--mono); font-size: 14px; line-height: 1.65; color: var(--ink); }
.tip { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* ---------- my stories ---------- */
.story-item { border: 1px solid var(--line-2); border-radius: 11px; padding: 0 0 14px; background: rgba(6, 10, 19, .45); overflow: hidden; }
.story-item + .story-item { margin-top: 10px; }
.story-item .si-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.story-item .actions { display: flex; gap: 2px; }
.story-item .actions .icon-btn { width: 32px; height: 32px; }
.story-item p { padding: 12px 14px 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; white-space: pre-wrap; color: var(--ink); }
.story-item textarea { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.story-item .form-row { padding: 0 12px; }
.story-item.fresh { animation: fresh 1.2s var(--ease-out); }
.empty { color: var(--muted); font-size: 15px; padding: 4px 0 2px; }
.composer { margin-top: 14px; }

/* ---------- player chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; background: rgba(6, 10, 19, .55); border: 1px solid var(--line); border-radius: 10px; padding: 3px 11px 3px 3px; font-size: 14px; font-weight: 600; }
.pchip.new { animation: pop .45s calc(var(--i, 0) * .05s) var(--spring) both; }
.pchip .tick { color: var(--good); display: inline-grid; }
.pchip .tick svg { width: 13px; height: 13px; }
.pchip.ready { border-color: rgba(74, 222, 128, .3); }
.pchip.wait { color: var(--muted); }
.pchip.wait .av { opacity: .55; }

/* ---------- round ---------- */
.round-head { display: flex; align-items: center; gap: 12px; margin: 0 2px 12px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.round-head b { color: var(--ink); }
.progress { --n: 1; flex: 1; height: 8px; background: rgba(148, 163, 184, .14); border-radius: 2px; overflow: hidden; position: relative; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--violet)); box-shadow: 0 0 10px rgba(34, 211, 238, .6); transition: width .6s var(--ease-out); }
.progress::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(100% - 2px), var(--bg) 0) 0 0 / calc(100% / var(--n)) 100%; }

.hud { --hc: var(--accent); --hl: 16px;
  background:
    linear-gradient(var(--hc) 0 0) top left / var(--hl) 2px no-repeat,
    linear-gradient(var(--hc) 0 0) top left / 2px var(--hl) no-repeat,
    linear-gradient(var(--hc) 0 0) top right / var(--hl) 2px no-repeat,
    linear-gradient(var(--hc) 0 0) top right / 2px var(--hl) no-repeat,
    linear-gradient(var(--hc) 0 0) bottom left / var(--hl) 2px no-repeat,
    linear-gradient(var(--hc) 0 0) bottom left / 2px var(--hl) no-repeat,
    linear-gradient(var(--hc) 0 0) bottom right / var(--hl) 2px no-repeat,
    linear-gradient(var(--hc) 0 0) bottom right / 2px var(--hl) no-repeat,
    linear-gradient(180deg, rgba(20, 31, 54, .9), rgba(10, 16, 30, .9));
}
.story-card { border-radius: 6px; padding: 0 0 22px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 20px 60px -20px rgba(34, 211, 238, .25); }
.story-card::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .08), transparent); animation: sweep 4.5s 1.2s linear infinite; pointer-events: none; }
.sc-head { display: flex; align-items: center; gap: 8px; padding: 12px 18px 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px dashed var(--line-2); margin-bottom: 18px; }
.sc-head .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.4s steps(1) infinite; }
.sc-head .id { margin-left: auto; color: var(--accent); }
.story-card p { padding: 0 20px; font-family: var(--mono); font-size: 17px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.story-card.long p { font-size: 15px; }
.scr { color: var(--accent); text-shadow: 0 0 8px rgba(34, 211, 238, .7); }
.enc { color: rgba(148, 163, 184, .22); }
.q { display: flex; align-items: center; gap: 12px; margin: 22px 2px 12px; font-family: var(--mono); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.q::before, .q::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line-2)); }
.q::after { background: linear-gradient(90deg, var(--line-2), transparent); }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; background: rgba(14, 22, 40, .9); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px 10px 10px; text-align: left; font-weight: 600; font-size: 16px; transition: border-color .15s, background .2s, transform .1s, opacity .3s, box-shadow .25s; min-height: 62px; }
.choices.intro .choice { animation: rise .42s calc(.2s + var(--i, 0) * .055s) var(--ease-out) both; }
.choice:active { transform: scale(.97); }
.choice .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice .ret { position: absolute; inset: -5px; pointer-events: none; opacity: 0; transform: scale(1.14); transition: opacity .18s, transform .3s var(--spring);
  background:
    linear-gradient(var(--accent) 0 0) top left / 12px 2px no-repeat, linear-gradient(var(--accent) 0 0) top left / 2px 12px no-repeat,
    linear-gradient(var(--accent) 0 0) top right / 12px 2px no-repeat, linear-gradient(var(--accent) 0 0) top right / 2px 12px no-repeat,
    linear-gradient(var(--accent) 0 0) bottom left / 12px 2px no-repeat, linear-gradient(var(--accent) 0 0) bottom left / 2px 12px no-repeat,
    linear-gradient(var(--accent) 0 0) bottom right / 12px 2px no-repeat, linear-gradient(var(--accent) 0 0) bottom right / 2px 12px no-repeat; }
.choice.sel { border-color: rgba(34, 211, 238, .7); background: linear-gradient(180deg, rgba(34, 211, 238, .16), rgba(34, 211, 238, .06)); box-shadow: 0 0 26px -6px rgba(34, 211, 238, .55); }
.choice.sel .ret { opacity: 1; transform: none; }
.choice.sel .av { animation: wiggle .4s steps(4); }
.choices.done .choice:not(.sel) { opacity: .3; filter: grayscale(.6); }
.choices.done .choice { pointer-events: none; }
.choices.done .choice.sel { --accent: var(--good); border-color: rgba(74, 222, 128, .7); background: linear-gradient(180deg, rgba(74, 222, 128, .16), rgba(74, 222, 128, .05)); box-shadow: 0 0 26px -6px rgba(74, 222, 128, .55); }

/* ---------- slide to lock ---------- */
.lockzone { margin-top: 16px; }
.slider { position: relative; height: 66px; border-radius: 14px; background: rgba(6, 10, 19, .85); border: 1px solid rgba(34, 211, 238, .45); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; box-shadow: 0 0 30px -10px rgba(34, 211, 238, .5) inset; animation: pop .35s var(--spring); }
.slider.off { border-color: var(--line-2); box-shadow: none; animation: none; }
.slider .fill { position: absolute; inset: 0 auto 0 0; width: 64px; border-radius: 13px; background: repeating-linear-gradient(-45deg, rgba(34, 211, 238, .34) 0 8px, rgba(34, 211, 238, .16) 8px 16px); background-size: 22.6px 22.6px; animation: stripes .7s linear infinite; }
.slider.off .fill { background: transparent; }
.slider .label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px 0 74px; text-align: center; pointer-events: none; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.slider .label .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slider .label b { color: var(--accent); }
.slider.off .label { color: var(--muted); }
.chevs { display: inline-flex; flex: none; }
.chevs i { width: 8px; height: 8px; border-right: 2.5px solid var(--accent); border-top: 2.5px solid var(--accent); transform: rotate(45deg); margin-left: -1px; opacity: .2; animation: chev 1.1s infinite; }
.chevs i:nth-child(2) { animation-delay: .15s; }
.chevs i:nth-child(3) { animation-delay: .3s; }
.slider .thumb { position: absolute; top: 4px; left: 4px; width: 56px; height: 56px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 0 22px rgba(34, 211, 238, .65); cursor: grab; touch-action: none; }
.slider .thumb:active { cursor: grabbing; }
.slider.off .thumb { background: var(--panel-2); color: var(--muted); box-shadow: none; }
.slider .thumb svg { width: 26px; height: 26px; }
.slider:not(.off) .thumb svg { animation: nudge 1.6s ease-in-out infinite; }
.locked { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: 66px; border-radius: 14px; background: var(--good-soft); border: 1px solid rgba(74, 222, 128, .6); color: var(--good); font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; animation: lockin .7s var(--ease-out); }
.locked::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(74, 222, 128, .35), transparent); transform: translateX(-100%); animation: swipe .8s .05s var(--ease-out); }
.locked b { color: #d9fbe5; }
.locked svg { width: 22px; height: 22px; overflow: visible; }
.locked .shackle { animation: shackle .5s .15s var(--spring) both; }
.note { text-align: center; color: var(--muted); font-size: 15px; padding: 14px; }

.waiting { margin-top: 20px; text-align: center; }
.waiting .txt { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.waiting .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 8px; margin-top: 10px; }
.wv { position: relative; display: grid; justify-items: center; gap: 4px; width: 50px; }
.wv small { font-size: 11px; font-weight: 600; color: var(--ink-2); max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv.pending .av { opacity: .35; }
.wv.pending small { color: var(--muted); }
.wv.pending .av::after { content: ""; position: absolute; inset: -3px; border-radius: 11px; border: 1px dashed rgba(148, 163, 184, .4); animation: spin 6s linear infinite; }
.wv .lk { position: absolute; right: 2px; top: -4px; width: 17px; height: 17px; border-radius: 5px; background: var(--good); border: 2px solid var(--bg); display: grid; place-items: center; color: #052e16; }
.wv .lk svg { width: 9px; height: 9px; }
.wv.ping .av { animation: pop .5s var(--spring); }
.wv.ping .av::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--good); animation: ring .7s ease-out forwards; }
.wv.ping .lk { animation: pop .4s .1s var(--spring) both; }

/* ---------- countdown ---------- */
#overlay { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(4, 7, 14, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#overlay.on { display: grid; animation: fadein .25s ease-out; }
.countdown { text-align: center; }
.countdown .lbl { font-family: var(--mono); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--good); font-size: 13px; text-shadow: 0 0 10px rgba(74, 222, 128, .6); }
.countdown .sub { font-family: var(--mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-size: 12px; }
.countdown .sub::after, .reveal-hero .kicker.scanning::after { content: "..."; display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; letter-spacing: 0; text-align: left; animation: dots 1.2s steps(4) infinite; }
.ring { position: relative; width: 230px; height: 230px; margin: 22px auto; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .trk { fill: none; stroke: rgba(148, 163, 184, .14); stroke-width: 6; }
.ring .arc { fill: none; stroke: var(--accent); stroke-width: 6; filter: drop-shadow(0 0 6px var(--accent)); }
.ring .ticks { fill: none; stroke: rgba(34, 211, 238, .5); stroke-width: 3; stroke-dasharray: 1.5 9.97; transform-origin: 100px 100px; animation: spin 12s linear infinite reverse; }
.ring .num { position: relative; font-family: var(--pixel); font-size: 120px; line-height: 1; color: #f0fbff; text-shadow: 0 0 22px rgba(34, 211, 238, .8); }
.ring .num::before, .ring .num::after { content: attr(data-n); position: absolute; inset: 0; opacity: 0; }
.ring .num::before { color: var(--accent); }
.ring .num::after { color: #f472b6; }
.ring .num.go { animation: digit .9s var(--ease-out); }
.ring .num.go::before { animation: glitch-a .3s steps(2); }
.ring .num.go::after { animation: glitch-b .3s steps(2); }

/* ---------- reveal ---------- */
.reveal-hero { text-align: center; padding: 2px 0 4px; }
.reveal-hero .kicker { justify-content: center; gap: 0; margin-bottom: 8px; min-height: 18px; }
.reveal-hero .kicker.scanning { color: var(--muted); }
.spot { --c: var(--accent); position: relative; display: grid; place-items: center; width: 164px; height: 164px; margin: 0 auto; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(148, 163, 184, .35); animation: spin 14s linear infinite; }
.spot .radar { position: absolute; inset: 6px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 290deg, rgba(34, 211, 238, .4) 360deg); animation: spin .9s linear infinite; transition: opacity .35s; }
.spot .slot { position: relative; z-index: 1; display: grid; }
.spot .slot .av { animation: flick .14s steps(2); }
.spot::after { content: ""; position: absolute; inset: 30px; border-radius: 34px; border: 2px solid var(--c); opacity: 0; pointer-events: none; }
.spot.hit .radar { opacity: 0; }
.spot.hit::before { border: 2px solid var(--c); opacity: .5; animation: spin 14s linear infinite, fadein .5s; border-style: dashed; }
.spot.hit::after { animation: burst .9s var(--ease-out) forwards; }
.spot.hit .slot .av { animation: pop .55s var(--spring); box-shadow: inset 0 0 0 2px var(--c), 0 0 40px -6px var(--c); }
.owner-name { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; min-height: 46px; }
.you { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--mono); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border-radius: 9px; padding: 8px 14px; font-size: 14px; border: 1px solid; animation: pop .5s 1.75s var(--spring) both; }
.you.right { color: var(--good); border-color: rgba(74, 222, 128, .5); background: var(--good-soft); box-shadow: 0 0 26px -6px rgba(74, 222, 128, .6); }
.you.wrong { color: var(--bad); border-color: rgba(251, 191, 36, .45); background: var(--bad-soft); }
.you.owner { color: var(--violet); border-color: rgba(167, 139, 250, .5); background: var(--violet-soft); box-shadow: 0 0 26px -6px rgba(167, 139, 250, .6); }
.you.none { color: var(--ink-2); border-color: var(--line-2); background: rgba(148, 163, 184, .06); }
.recap { margin-top: 14px; font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; padding: 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; animation: rise .45s 1.6s var(--ease-out) both; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.tile { background: rgba(14, 22, 40, .9); border-radius: 12px; padding: 11px 12px 12px; border: 1px solid var(--line-2); position: relative; animation: rise .45s calc(1.9s + var(--d, 0) * .07s) var(--ease-out) both; }
.tile .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding-right: 30px; }
.tile .who .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .guess { font-size: 13px; color: var(--ink-2); margin-top: 9px; display: flex; align-items: flex-start; gap: 6px; line-height: 1.35; }
.tile .guess b { font-weight: 700; color: var(--ink); }
.tile .pts { position: absolute; top: 11px; right: 11px; font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--muted); }
.tile.right { border-color: rgba(74, 222, 128, .55); background: linear-gradient(180deg, rgba(74, 222, 128, .13), rgba(14, 22, 40, .9)); }
.tile.right .pts { color: var(--good); text-shadow: 0 0 8px rgba(74, 222, 128, .6); }
.tile.wrong { border-color: rgba(251, 191, 36, .32); }
.tile.owner { border-color: rgba(167, 139, 250, .6); background: linear-gradient(180deg, rgba(167, 139, 250, .16), rgba(14, 22, 40, .9)); }
.tile.owner .pts { color: var(--violet); text-shadow: 0 0 8px rgba(167, 139, 250, .6); }
.mark { width: 17px; height: 17px; border-radius: 5px; display: inline-grid; place-items: center; flex: none; }
.mark svg { width: 10px; height: 10px; }
.mark.ok { background: var(--good); color: #052e16; }
.mark.no { background: var(--bad); color: #3b2503; }

.board { margin-top: 14px; }
.board.late { animation: rise .45s 2.15s var(--ease-out) both; }
.board .sec-head { margin-bottom: 4px; }
.brow { display: grid; grid-template-columns: 24px auto 1fr auto; align-items: center; gap: 10px; padding: 8px 6px; margin: 0 -6px; border-radius: 9px; position: relative; }
.brow + .brow::before { content: ""; position: absolute; left: 6px; right: 6px; top: 0; height: 1px; background: var(--line); }
.brow .rk { font-family: var(--mono); font-weight: 800; color: var(--muted); font-size: 13px; text-align: center; }
.brow .rk.gold { color: #facc15; text-shadow: 0 0 8px rgba(250, 204, 21, .6); }
.brow .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .sc { font-family: var(--mono); font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.brow .dl { font-size: 12px; font-weight: 800; color: var(--good); background: var(--good-soft); border: 1px solid rgba(74, 222, 128, .35); border-radius: 6px; padding: 1px 7px; }
.brow.up { animation: flash 1.2s ease-out; }
.brow.mine .nm::after { content: " (you)"; color: var(--muted); font-weight: 500; }
.next-wrap { margin-top: 16px; animation: rise .45s 2.3s var(--ease-out) both; }

/* ---------- final ---------- */
.final-hero { text-align: center; padding: 4px 0 0; }
.final-hero .kicker { justify-content: center; }
.final-hero h1 { font-size: 38px; animation: rise .5s 1.25s var(--ease-out) both; }
.final-hero .sub { color: var(--ink-2); margin-top: 6px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; animation: rise .5s 1.35s var(--ease-out) both; }
.gg { font-family: var(--pixel); font-size: 64px; line-height: 1; letter-spacing: .06em; color: #f0fbff; text-shadow: 3px 0 0 rgba(244, 114, 182, .7), -3px 0 0 rgba(34, 211, 238, .8), 0 0 30px rgba(34, 211, 238, .5); margin: 2px 0 10px; animation: glitch-in .7s steps(6) both; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 18px 0 0; padding: 0 6px; }
.pcol { --c: var(--accent); flex: 1; max-width: 150px; display: grid; justify-items: center; }
.pcol .pw { display: grid; justify-items: center; gap: 4px; padding-bottom: 8px; animation: drop .55s calc(.45s + var(--d) * .22s) var(--spring) both; }
.pcol .cup { width: 46px; height: 46px; margin-bottom: 4px; animation: pop .6s 1.1s var(--spring) both; filter: drop-shadow(0 0 10px rgba(250, 204, 21, .55)); }
.pcol .cup svg { width: 100%; height: 100%; display: block; }
.pcol .nm { font-weight: 700; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcol .sc { font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--ink-2); }
.pcol .block { width: 100%; border-radius: 9px 9px 3px 3px; display: grid; place-items: start center; padding-top: 10px; font-family: var(--pixel); font-size: 26px; color: var(--c); transform-origin: bottom; animation: grow .6s calc(var(--d) * .22s) var(--ease-out) both;
  background: linear-gradient(180deg, rgba(34, 211, 238, .2), rgba(34, 211, 238, .03));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 4%, transparent));
  border: 1px solid rgba(148, 163, 184, .3); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-bottom: 0; }
.pcol.r1 .block { height: 118px; }
.pcol.r2 .block { height: 86px; }
.pcol.r3 .block { height: 62px; }
.pcol.r1 .sc { color: #facc15; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.award { background: rgba(14, 22, 40, .9); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; animation: rise .45s calc(1.5s + var(--d, 0) * .1s) var(--ease-out) both; }
.award .t { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.award .t svg { width: 16px; height: 16px; }
.award + .award .t { color: var(--accent); }
.award .n { font-weight: 700; font-size: 16px; margin-top: 9px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.award .n span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award .d { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.final-board { animation: rise .45s 1.8s var(--ease-out) both; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti i { position: absolute; top: -12px; background: var(--k); box-shadow: 0 0 6px var(--k); animation: fall linear forwards; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: rgba(14, 22, 40, .96); border: 1px solid rgba(34, 211, 238, .5); color: var(--ink); padding: 11px 16px; border-radius: 10px; font-family: var(--mono); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease-out); z-index: 60; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 40px -10px rgba(34, 211, 238, .5); }
#toast::before { content: "> "; color: var(--accent); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.err { border-color: rgba(251, 191, 36, .6); box-shadow: 0 10px 40px -10px rgba(251, 191, 36, .45); }
#toast.err::before { content: "! "; color: var(--bad); }

/* ---------- public home ---------- */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.center-page .logo { gap: 14px; }
.center-page .logo svg { width: 48px; height: 44px; }
.center-page .logo b { font-size: 40px; }
.center-page p { margin-top: 16px; color: var(--ink-2); font-size: 17px; }

/* ---------- admin ---------- */
.admin .wrap { max-width: 1120px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.admin-grid > .col { display: grid; gap: 16px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.add-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }
@media (max-width: 560px) { .add-row { grid-template-columns: 1fr; } }
.plist { container-type: inline-size; margin-top: 6px; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "av info stat sw acts"; align-items: center; gap: 6px 12px; padding: 12px 0; }
.prow + .prow { border-top: 1px solid var(--line); }
.prow.new { animation: rise .4s var(--ease-out) both; }
.prow > .av { grid-area: av; }
.prow .info { grid-area: info; min-width: 0; }
.prow .pstat { grid-area: stat; }
.prow .sw { grid-area: sw; }
.prow .acts { grid-area: acts; display: flex; }
.prow .pname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .psub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .psub .bad { color: var(--bad); font-weight: 600; }
.prow.out > .av, .prow.out .info, .prow.out .pstat { opacity: .4; }
.prow.edit { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av info"; }
.prow.edit .ed { display: grid; grid-template-columns: 1fr 1.3fr auto auto; gap: 8px; }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
@container (max-width: 560px) {
  .prow { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "av info info sw" "av stat acts acts"; }
  .prow .sw { justify-self: end; }
  .prow .pstat { justify-self: start; min-width: 0; max-width: 100%; }
  .prow .stat { display: block; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.02em; }
  .prow .acts { justify-self: end; margin-right: -8px; }
  .prow.edit .ed { grid-template-columns: 1fr 1fr; }
  .prow.edit .ed input { grid-column: 1 / -1; }
}
.stat { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; font-weight: 700; border-radius: 7px; padding: 4px 9px; white-space: nowrap; background: rgba(148, 163, 184, .07); border: 1px solid var(--line); color: var(--ink-2); }
.stat.ok { background: var(--good-soft); color: var(--good); border-color: rgba(74, 222, 128, .35); }
.stat.dim { color: var(--muted); }

.sw { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw .tr { width: 42px; height: 24px; border-radius: 7px; background: rgba(148, 163, 184, .2); border: 1px solid var(--line-2); position: relative; transition: background .15s, border-color .15s; flex: none; }
.sw .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 4px; background: var(--ink-2); transition: transform .2s var(--spring), background .15s; }
.sw input:checked + .tr { background: rgba(74, 222, 128, .2); border-color: rgba(74, 222, 128, .6); }
.sw input:checked + .tr::after { transform: translateX(18px); background: var(--good); box-shadow: 0 0 8px rgba(74, 222, 128, .7); }
.sw input:focus-visible + .tr { box-shadow: 0 0 0 3px rgba(34, 211, 238, .25); }

.gp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.phase { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.phase .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.phase.live { color: var(--good); }
.phase.live .dot { background: var(--good); box-shadow: 0 0 0 3px rgba(74, 222, 128, .2), 0 0 10px var(--good); animation: blink 1.4s steps(1) infinite; }
.big-num { font-family: var(--mono); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.kpi { background: rgba(6, 10, 19, .55); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.kpi .v { font-family: var(--mono); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--accent); }
.kpi .l { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.gp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gp-actions .grow { flex: 1; }
.per { display: inline-flex; align-items: center; gap: 3px; background: rgba(6, 10, 19, .55); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.per button { border: 0; background: transparent; width: 36px; height: 34px; border-radius: 7px; font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--ink-2); }
.per button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 14px rgba(34, 211, 238, .5); }
.per .pl { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 8px 0 9px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 10px; }
.vlist { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.vlist .pchip.done { color: var(--good); border-color: rgba(74, 222, 128, .35); background: var(--good-soft); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-grid .wide { grid-column: 1 / -1; }
.danger { color: var(--bad); }
.btn.danger:hover { border-color: rgba(251, 191, 36, .6); }
.it-was { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; }
.it-was .nm { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.last-win { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.last-win .cup { width: 30px; height: 30px; flex: none; }
.last-win .cup svg { width: 100%; height: 100%; display: block; }

/* ---------- keyframes ---------- */
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dots { to { width: 2.4em; } }
@keyframes sweep { to { top: 120%; } }
@keyframes stripes { to { background-position: 22.6px 0; } }
@keyframes chev { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes nudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(4px); } }
@keyframes wiggle { 0% { transform: translateY(0); } 25% { transform: translateY(-3px); } 50% { transform: translateY(0); } 75% { transform: translateY(-2px); } }
@keyframes lockin { 0% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 40% { transform: scale(1.02); } 100% { transform: scale(1); box-shadow: 0 0 0 16px rgba(74, 222, 128, 0); } }
@keyframes swipe { to { transform: translateX(100%); } }
@keyframes shackle { from { transform: translateY(-5px); } }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes burst { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes flick { 0% { opacity: .3; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: rgba(74, 222, 128, .22); } 100% { background: transparent; } }
@keyframes digit { 0% { transform: scale(1.7); opacity: 0; filter: blur(8px); } 22% { transform: scale(1); opacity: 1; filter: blur(0); } 82% { opacity: 1; } 100% { transform: scale(.88); opacity: .25; } }
@keyframes glitch-a { 0% { opacity: .9; transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); } 100% { opacity: .9; transform: translate(5px, -2px); clip-path: inset(60% 0 8% 0); } }
@keyframes glitch-b { 0% { opacity: .8; transform: translate(6px, -2px); clip-path: inset(50% 0 20% 0); } 100% { opacity: .8; transform: translate(-5px, 3px); clip-path: inset(5% 0 70% 0); } }
@keyframes glitch-in { 0% { opacity: 0; transform: translateX(-8px) skewX(-12deg); } 30% { opacity: 1; transform: translateX(6px) skewX(8deg); } 60% { transform: translateX(-3px); } 100% { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes drop { from { opacity: 0; transform: translateY(-30px); } }
@keyframes fresh { 0% { box-shadow: 0 0 0 1px var(--accent), 0 0 30px -4px rgba(34, 211, 238, .7); border-color: var(--accent); } 100% { box-shadow: none; } }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
