/* Flash: shared styles for the landing page, host screen and player phones. */

:root {
  color-scheme: dark;
  --bg: #0C0C14;
  --panel: #171722;
  --panel-2: #222231;
  --line: rgba(255, 255, 255, .1);
  --t1: #FFFFFF;
  --t2: #B4B4C6;
  --t3: #7A7A90;
  --slap: #FF1E2D;
  --slap-deep: #A3000C;
  --gold: #FFD43B;
  --gold-ink: #1A1400;
  --good: #2FC46F;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .4; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
a { color: inherit; }

.mono { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--t2); margin: 0 0 8px; }
.sub { color: var(--t2); font-size: 18px; line-height: 1.4; margin: 8px 0 0; }
.hint { color: var(--t3); font-size: 14px; margin: 10px 0 0; }
.center-text { text-align: center; }

.logo { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; font-style: italic; font-size: 30px; letter-spacing: -.02em; text-decoration: none; color: var(--t1); }
.logo .bolt { width: 1em; height: 1em; fill: var(--gold); }
.logo.small { font-size: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 32px; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink);
  font-weight: 800; font-size: 20px; text-decoration: none;
  transition: transform .12s var(--ease), filter .2s;
}
.btn:not(:disabled):hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn.secondary { background: rgba(255, 255, 255, .1); color: inherit; box-shadow: inset 0 0 0 1.5px var(--line); }

.chip-btn { border: 0; background: rgba(0, 0, 0, .28); color: inherit; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.chip-btn.ghost { background: rgba(255, 255, 255, .08); }
.chip-btn.danger { background: var(--slap); color: #fff; }

.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); flex: none; }
.net { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--t3); margin-left: 10px; vertical-align: middle; }
.net.connected { background: var(--good); }
.net.disconnected { background: var(--slap); }

.pop { animation: pop .3s var(--ease) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* ================= landing ================= */

.landing { max-width: 1080px; margin: 0 auto; padding: 24px 24px 64px; }
.landing-top { display: flex; justify-content: space-between; align-items: center; }
.landing-top a.home { color: var(--t2); text-decoration: none; font-weight: 600; font-size: 15px; }
.landing-top a.home:hover { color: var(--t1); }
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(52px, 9vw, 112px); font-weight: 900; line-height: .92; letter-spacing: -.04em; margin: 0; max-width: 11ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { color: var(--t2); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 36em; margin: 22px 0 0; }
.stripe { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 36px 0 0; max-width: 420px; }
.stripe span { flex: 1; }
.cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.cta-card { background: var(--panel); border-radius: 28px; padding: 28px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.cta-card h2 { margin: 0; font-size: 26px; font-weight: 800; }
.cta-card p { margin: 0; color: var(--t2); line-height: 1.45; }
.cta-card .btn { align-self: flex-start; margin-top: auto; }
.code-row { display: flex; gap: 10px; margin-top: auto; }
.code-row input {
  flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 28px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; text-align: center;
  padding: 0 14px; min-height: 60px; border-radius: 999px; border: 0; background: var(--panel-2); color: var(--t1); box-shadow: inset 0 0 0 2px var(--line);
}
.code-row input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }
.form-note { min-height: 1.3em; font-size: 14px; color: #FF8A8A; margin: 0; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.how h3, .rules h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.how p, .rules p, .rules li { color: var(--t2); line-height: 1.5; margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 900; margin-bottom: 12px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.rules > div { background: var(--panel); border-radius: 24px; padding: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.rules ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.rules b { color: var(--t1); }
.section-title { font-size: 32px; font-weight: 900; letter-spacing: -.02em; margin: 64px 0 18px; }

@media (max-width: 760px) {
  .landing { padding: 18px 16px 48px; }
  .hero { padding: 36px 0 28px; }
  .cta, .how, .rules { grid-template-columns: 1fr; }
  .how { margin-top: 40px; }
}

/* ================= host ================= */

.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; }
.boot .error { color: #FF8A8A; font-size: 18px; max-width: 28em; }

/* lobby */
.lobby {
  min-height: 100dvh; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.15fr); grid-template-rows: auto 1fr;
  gap: 24px 40px; padding: 24px 40px 40px;
}
.lobby-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.top-right { display: flex; align-items: center; gap: 12px; }
.join-card {
  align-self: start; background: var(--panel); border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.qr { background: #fff; padding: 18px; border-radius: 22px; width: min(300px, 64vw); aspect-ratio: 1; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr .hint { color: #555; }
.join-url { font-size: 26px; font-weight: 800; margin: 0 0 16px; }
.code { font-size: clamp(64px, 8vw, 112px); font-weight: 900; letter-spacing: .14em; margin: 0 0 0 .14em; line-height: 1; color: var(--gold); }
.local-note { font-size: 14px; line-height: 1.45; color: var(--t2); background: rgba(255, 212, 59, .08); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.local-note .chip-btn { background: var(--gold); color: var(--gold-ink); }
.lobby-side { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--panel); border-radius: 24px; padding: 22px 24px; box-shadow: inset 0 0 0 1px var(--line); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.panel h2 { margin: 0; font-size: 22px; font-weight: 800; }
.count { color: var(--t2); font-weight: 700; }
.empty { color: var(--t2); margin: 0; font-size: 17px; }
.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pl { display: flex; align-items: center; gap: 6px; }
.pl-btn { display: flex; align-items: center; gap: 8px; border: 0; background: var(--c); color: var(--ink); border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 19px; }
.pl-btn .dot { display: none; }
.pl.off .pl-btn { opacity: .45; }
.pl-note { font-size: .72em; font-weight: 600; opacity: .75; }
.remove { border: 0; background: var(--slap); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 800; font-size: 15px; }
.settings { display: grid; gap: 12px; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.setting-label { font-weight: 700; color: var(--t2); font-size: 15px; }
.seg { display: inline-flex; background: rgba(0, 0, 0, .35); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--t2); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--t1); color: var(--bg); }
.btn.start { min-height: 76px; font-size: 26px; width: 100%; }

@media (max-width: 860px) {
  .lobby { grid-template-columns: 1fr; padding: 16px 16px 32px; gap: 16px; }
  .join-card { padding: 24px 18px; }
}

/* in-game stage */
.stage {
  position: relative; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--c, var(--bg)); color: var(--ink, var(--t1));
  transition: background-color .25s;
}
.stage .center { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 32px; }
.stage .eyebrow, .stage .sub { color: inherit; opacity: .78; }
.hud { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 20px; font-size: 15px; }
.hud-code { opacity: .85; }
.hud-code b { font-weight: 800; }
.hud-actions { display: flex; gap: 8px; }
.headline { font-size: clamp(44px, 7vw, 104px); font-weight: 900; line-height: .98; letter-spacing: -.03em; margin: 0; }
.name { font-size: clamp(72px, 15vw, 240px); font-weight: 900; line-height: .92; letter-spacing: -.04em; margin: 0 0 3vh; white-space: nowrap; }
.btn.go { margin-top: 32px; min-height: 88px; padding: 0 80px; font-size: 34px; }
.no-limit { font-size: 24px; font-weight: 700; opacity: .7; margin: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

.ring { position: relative; width: min(36vh, 36vw, 320px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring-disk { fill: rgba(0, 0, 0, .3); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 8; }
.ring-bar { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke .2s; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: min(15vh, 15vw, 132px); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.ring.hurry .ring-disk { fill: rgba(0, 0, 0, .62); }
.ring.hurry .ring-bar { stroke: var(--slap); }
.ring.hurry .ring-num { animation: throb .5s ease-in-out infinite alternate; }
@keyframes throb { to { transform: scale(1.08); } }

.strip { list-style: none; margin: 0; padding: 14px 16px 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; background: rgba(0, 0, 0, .22); }
.strip:empty { display: none; }
.strip li { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(0, 0, 0, .32); color: #fff; font-weight: 700; font-size: 17px; transition: transform .2s var(--ease); }
.strip li.active { background: #fff; color: var(--bg); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.strip li.off { opacity: .45; }

.interlude { background: var(--bg); }
.interlude.has-target { background: var(--c); color: var(--ink); }
.interlude.kind-timeout { background: #2A0A10; color: #fff; }
.interlude.kind-timeout .announce { color: #FF4D59; }
.announce { font-size: clamp(48px, 8vw, 128px); font-weight: 900; line-height: 1; letter-spacing: -.03em; margin: 0; max-width: 14ch; text-wrap: balance; }

.slap { background: var(--slap); color: #fff; }
.slap-word { font-size: clamp(120px, 26vw, 380px); font-weight: 900; font-style: italic; letter-spacing: -.05em; line-height: .85; text-shadow: 0 .03em 0 var(--slap-deep); padding-right: .08em; }
.racers { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 28px 0 0; }
.racers li { display: flex; gap: 8px; align-items: center; background: rgba(0, 0, 0, .25); padding: 10px 18px 10px 14px; border-radius: 999px; font-weight: 800; font-size: 20px; }
.racers li.done { background: #fff; color: var(--bg); }

.result { background: var(--bg); }
.times { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; width: min(520px, 90vw); }
.times li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--panel); border-radius: 16px; font-size: 22px; font-weight: 700; }
.times .t-name { flex: 1; text-align: left; }
.times li.lost { background: var(--slap); color: #fff; }

.paused { background: #101019; }
.pause-settings { margin-top: 24px; text-align: left; width: min(640px, 92vw); color: var(--t1); }

.over.has-winner { background: var(--c); color: var(--ink); }
.over .btn.secondary { background: rgba(0, 0, 0, .18); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -24px; width: 12px; height: 18px; border-radius: 3px; animation: fall linear infinite; transform: rotate(var(--r)); }
@keyframes fall { to { transform: translateY(112vh) rotate(calc(var(--r) + 540deg)); } }

.banner {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 50;
  background: var(--c, var(--gold)); color: var(--ink, var(--gold-ink));
  padding: 18px 36px; border-radius: 999px; font-weight: 900; font-size: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 255, 255, .9);
  white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.banner.show { animation: drop .35s var(--ease) both; }
@keyframes drop { from { transform: translate(-50%, -40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ================= player phone ================= */

body.player {
  overscroll-behavior: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
}
.p-screen {
  min-height: 100dvh; display: flex; flex-direction: column; position: relative;
  background: var(--bg); box-shadow: inset 0 0 0 6px var(--c, transparent);
}
.p-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; padding-top: max(14px, env(safe-area-inset-top)); font-weight: 700; font-size: 16px;
}
.p-me { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-room { color: var(--t3); }
.link { background: none; border: 0; color: var(--t2); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.p-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 20px; gap: 6px; }
.p-title { font-size: clamp(34px, 10vw, 56px); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.p-title .dot { width: .62em; height: .62em; }
.p-name { font-size: clamp(48px, 16vw, 96px); font-weight: 900; color: var(--c); margin: 18px 0 0; line-height: 1; white-space: nowrap; }
.swatch { width: 116px; height: 116px; border-radius: 50%; border: 0; background: var(--c); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 14px 40px rgba(0, 0, 0, .4); }
.swatch:active { transform: scale(.95); }
.p-timer { font-size: 72px; font-weight: 900; margin: 20px 0 0; color: var(--t2); min-height: 1em; }
.p-timer.hurry { color: #FF4D59; }
.p-foot { display: flex; justify-content: center; padding: 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.onecard { border: 0; background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: 20px; padding: 0 28px; min-height: 58px; border-radius: 999px; }
.onecard.called { background: #fff; }

/* your turn */
.p-turn {
  height: 100dvh; display: flex; flex-direction: column; gap: 12px; background: var(--bg);
  padding: 14px; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.mods-label { margin: 2px 0 0; text-align: center; color: var(--t2); font-size: 14px; font-weight: 600; }
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mod { border: 0; border-radius: 16px; min-height: 56px; padding: 4px; background: var(--panel-2); color: var(--t1); font-weight: 800; font-size: 16px; line-height: 1.1; }
.mod[aria-pressed="true"] { background: #fff; color: var(--bg); box-shadow: 0 0 0 3px var(--c); }
.mod.slapmod { color: #FF6B75; }
.mod.slapmod[aria-pressed="true"] { background: var(--slap); color: #fff; box-shadow: 0 0 0 3px #fff; }
.go-btn {
  flex: 1; min-height: 0; border: 0; border-radius: 32px; padding: 16px;
  background: var(--c); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  animation: pulse 1.1s ease-in-out infinite;
}
.go-top { font-size: 17px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .82; }
.go-main { font-size: clamp(42px, 13vw, 76px); font-weight: 900; line-height: .95; letter-spacing: -.02em; text-wrap: balance; max-width: 8.5ch; }
.go-time { font-size: 46px; font-weight: 900; margin-top: 10px; min-height: 1.1em; padding: 0 14px; border-radius: 14px; }
.go-time.hurry { background: rgba(0, 0, 0, .3); color: #fff; }
.go-btn.is-slap { background: var(--slap); color: #fff; }
.go-btn.sent { animation: none; filter: saturate(.35) brightness(.75); }
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .0); }
  50% { transform: scale(.985); box-shadow: 0 0 0 8px rgba(255, 255, 255, .14); }
}
.p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-actions .onecard { width: 100%; padding: 0 12px; }
.hold { position: relative; overflow: hidden; border: 0; border-radius: 999px; min-height: 58px; background: var(--panel-2); color: var(--t1); font-weight: 800; font-size: 17px; }
.hold-fill { position: absolute; inset: 0; background: var(--good); transform: scaleX(0); transform-origin: left; }
.hold.holding .hold-fill { transform: scaleX(1); transition: transform .6s linear; }
.hold.done .hold-fill { transform: scaleX(1); }
.hold-label { position: relative; }

/* slap */
.p-slap {
  position: fixed; inset: 0; z-index: 10; touch-action: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--slap); color: #fff;
}
.p-slap .slap-word { font-size: 30vw; }
.p-slap.tapped { background: #7A000B; }
.p-slap.tapped .slap-word { font-size: 22vw; font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.slap-sub { font-size: 22px; font-weight: 800; margin: 14px 0 0; }
.p-slap.slapper { background: #3A0A12; }

/* penalties and results */
.p-hit { background: var(--slap); color: #fff; box-shadow: none; }
.p-hit.kind-skip { background: #34344A; }
.p-hit .sub { color: #fff; opacity: .85; }
.p-huge { font-size: clamp(56px, 18vw, 112px); font-weight: 900; line-height: .95; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.p-sub-big { font-size: 30px; font-weight: 800; margin: 14px 0 0; }
.p-safe { background: #0E2A1B; box-shadow: none; }
.p-safe .p-huge { color: var(--good); }
.p-win { background: var(--c); color: var(--ink); }
.p-win .sub, .p-win .p-room, .p-win .link { color: inherit; opacity: .8; }

/* join */
.p-join { align-items: center; justify-content: center; gap: 28px; padding: 28px 20px; }
.join-form { width: min(400px, 100%); display: flex; flex-direction: column; gap: 12px; }
.join-form .eyebrow b { color: var(--gold); font-size: 15px; }
.field-label { font-weight: 700; color: var(--t2); font-size: 15px; }
.join-form input {
  width: 100%; font: inherit; font-size: 28px; font-weight: 800; padding: 16px 20px;
  border: 0; border-radius: 18px; background: var(--panel-2); color: var(--t1); box-shadow: inset 0 0 0 2px var(--line);
  user-select: text; -webkit-user-select: text;
}
.join-form input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }
.join-form .code-input { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-size: 40px; }
.big-btn { width: 100%; min-height: 64px; font-size: 22px; margin-top: 6px; }
.status { color: var(--t2); min-height: 1.4em; margin: 4px 0 0; font-size: 15px; line-height: 1.4; text-align: center; }

.overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(6, 6, 10, .84); }
.overlay-card { background: var(--panel); border-radius: 24px; padding: 28px; text-align: center; max-width: 360px; }
.overlay-card h2 { margin: 0; font-size: 28px; font-weight: 900; }
.overlay-card .btn { margin-top: 20px; }

.toast {
  position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; z-index: 60;
  transform: translate(-50%, -160%); transition: transform .3s var(--ease);
  background: var(--gold); color: var(--gold-ink); padding: 12px 20px; border-radius: 999px; font-weight: 800;
  white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast.show { transform: translate(-50%, 0); }

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