:root {
  --bg: #0d0221;
  --bg2: #1a0640;
  --panel: #210852;
  --panel2: #2c0b69;
  --line: #4b1f9e;
  --pink: #ff2fb9;
  --cyan: #00e5ff;
  --yellow: #ffe600;
  --orange: #ff7a1a;
  --green: #3dff8b;
  --purple: #9b5cff;
  --text: #f7f1ff;
  --muted: #b9a8e6;
  --jblue: #0a1aa8;
  --pixel: "Press Start 2P", monospace;
  --neon: "Monoton", "Press Start 2P", sans-serif;
  --body: "Chakra Petch", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.5 var(--body);
  background:
    radial-gradient(1200px 600px at 50% -200px, #3a0d7a 0%, transparent 60%),
    linear-gradient(var(--bg), var(--bg2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
a { color: var(--cyan); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.boot { min-height: 100vh; display: grid; place-items: center; font-family: var(--pixel); color: var(--cyan); font-size: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(96px + var(--safe-b)); }
.wrap.wide { max-width: 1200px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; max-width: 1200px; margin: 0 auto;
}
.brand { font-family: var(--pixel); font-size: 12px; text-decoration: none; color: var(--yellow); letter-spacing: 1px; text-shadow: 2px 2px 0 var(--pink); }
.brand b { color: var(--cyan); }
.me-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 14px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(13, 2, 33, .94); backdrop-filter: blur(8px);
  border-top: 3px solid var(--pink);
  padding-bottom: var(--safe-b);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 2px 9px; text-decoration: none; color: var(--muted);
  font-family: var(--pixel); font-size: 8px; letter-spacing: .5px;
}
.tabbar a .ico { font-size: 20px; line-height: 1; font-family: var(--body); }
.tabbar a.on { color: var(--yellow); }
.tabbar a.on .ico { filter: drop-shadow(0 0 6px var(--yellow)); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.2; }
.h-pixel { font-family: var(--pixel); font-size: 15px; letter-spacing: 1px; color: var(--yellow); text-shadow: 3px 3px 0 #000; line-height: 1.6; }
.h-pixel.pink { color: var(--pink); }
.h-pixel.cyan { color: var(--cyan); }
.kicker { font-family: var(--pixel); font-size: 9px; color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.page-head { margin: 8px 0 20px; }
.page-head p { margin: 10px 0 0; color: var(--muted); }
.back { display: inline-block; font-family: var(--pixel); font-size: 9px; color: var(--muted); text-decoration: none; margin-bottom: 14px; }

.chrome {
  font-family: var(--neon); font-weight: 400; line-height: .95;
  background: linear-gradient(180deg, #fff 0%, #ffe600 38%, #ff7a1a 52%, #ff2fb9 70%, #9b5cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 47, 185, .55)) drop-shadow(4px 4px 0 rgba(0,0,0,.6));
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  margin: 0 -16px 20px; padding: 28px 16px 0;
  min-height: 330px;
  background: linear-gradient(#12002e 0%, #3a0a6e 55%, #ff2fb9 56%, #12002e 56.4%);
}
.hero .sun {
  position: absolute; left: 50%; top: 92px; width: 240px; height: 240px; transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(#ffe600, #ff7a1a 45%, #ff2fb9 80%);
  -webkit-mask: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 75%, transparent 75% 81%, #000 81% 88%, transparent 88% 94%, #000 94%);
  mask: linear-gradient(#000 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 75%, transparent 75% 81%, #000 81% 88%, transparent 88% 94%, #000 94%);
  box-shadow: 0 0 80px rgba(255, 47, 185, .6);
}
.hero .grid {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 44%;
  background:
    repeating-linear-gradient(90deg, rgba(0,229,255,.7) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(0deg, rgba(0,229,255,.7) 0 2px, transparent 2px 34px);
  transform: perspective(260px) rotateX(62deg);
  transform-origin: bottom;
  animation: gridmove 2.4s linear infinite;
  -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%);
}
@keyframes gridmove { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 0 34px; } }
.hero .title { position: relative; z-index: 2; font-size: clamp(64px, 19vw, 132px); margin: 0; }
.hero .title span { display: block; }
.hero .title span + span {
  background: linear-gradient(180deg, #fff 0%, #9ff3ff 45%, #00e5ff 70%, #9b5cff 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 10px rgba(0,229,255,.8));
}
.hero .sub { position: relative; z-index: 2; margin-top: 18px; font-family: var(--pixel); font-size: 10px; letter-spacing: 2px; color: #fff; text-shadow: 2px 2px 0 #000; line-height: 2; }
.hero .sub b { color: var(--cyan); font-weight: 400; }

.countdown { display: flex; justify-content: center; gap: 10px; margin: 18px 0 6px; position: relative; z-index: 2; }
.countdown div { background: rgba(0,0,0,.55); border: 2px solid var(--cyan); border-radius: 4px; padding: 8px 10px; min-width: 64px; }
.countdown b { display: block; font-family: var(--pixel); font-size: 18px; color: var(--yellow); }
.countdown span { font-family: var(--pixel); font-size: 7px; color: var(--cyan); letter-spacing: 1px; }

/* ---------- cards & panels ---------- */
.card {
  background: var(--panel); border: 3px solid var(--line); border-radius: 6px;
  padding: 16px; margin-bottom: 14px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.45);
}
.card.pink { border-color: var(--pink); }
.card.cyan { border-color: var(--cyan); }
.card.yellow { border-color: var(--yellow); }
.card.green { border-color: var(--green); }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

.player {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(135deg, #2c0b69, #1a0640);
  border: 3px solid var(--cyan); border-radius: 6px; padding: 14px; margin-bottom: 20px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.45), inset 0 0 30px rgba(0,229,255,.12);
}
.player .p1 { font-family: var(--pixel); font-size: 9px; color: var(--pink); }
.player .nm { font-size: 22px; font-weight: 700; line-height: 1.2; }
.player .meta { font-size: 14px; color: var(--muted); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-height: 128px; padding: 14px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 3px solid var(--c, var(--pink)); border-radius: 6px;
  box-shadow: 5px 5px 0 #000; transition: transform .08s, box-shadow .08s;
}
.tile:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; }
.tile .emoji { font-size: 30px; line-height: 1; }
.tile .t { font-family: var(--pixel); font-size: 10px; line-height: 1.6; color: var(--c, var(--pink)); }
.tile .d { font-size: 13px; color: var(--muted); line-height: 1.35; }
.tile .badge { position: absolute; top: 10px; right: 10px; }

.section-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.section-title::after { content: ""; flex: 1; height: 3px; background: repeating-linear-gradient(90deg, var(--pink) 0 8px, transparent 8px 14px); }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; min-height: 48px;
  font-family: var(--pixel); font-size: 10px; letter-spacing: 1px; line-height: 1.4; text-decoration: none; text-align: center;
  color: #12002e; background: var(--yellow); border: 3px solid #000; border-radius: 4px;
  box-shadow: 4px 4px 0 #000; cursor: pointer; transition: transform .06s, box-shadow .06s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.pink { background: var(--pink); color: #fff; }
.btn.cyan { background: var(--cyan); }
.btn.green { background: var(--green); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.danger { background: #ff3b5c; color: #fff; }
.btn.sm { min-height: 36px; padding: 8px 12px; font-size: 8px; box-shadow: 3px 3px 0 #000; }
.btn.block { width: 100%; }

label.lbl { display: block; font-family: var(--pixel); font-size: 9px; color: var(--cyan); margin: 0 0 8px; letter-spacing: 1px; line-height: 1.6; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; min-height: 48px;
  font-size: 16px; background: #0d0221; color: var(--text);
  border: 3px solid var(--line); border-radius: 4px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.25); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.code-input { font-family: var(--pixel); font-size: 22px !important; letter-spacing: 10px; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; background: #0d0221;
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text);
}
.chip.on { border-color: var(--yellow); background: var(--yellow); color: #12002e; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-family: var(--pixel); font-size: 7px; letter-spacing: 1px; line-height: 1.8; background: var(--pink); color: #fff; }
.pill.cyan { background: var(--cyan); color: #12002e; }
.pill.yellow { background: var(--yellow); color: #12002e; }
.pill.green { background: var(--green); color: #12002e; }
.pill.gray { background: var(--line); color: var(--text); }

/* avatars */
.av {
  --s: 40px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%;
  object-fit: cover; background: var(--panel2); border: 2px solid var(--cyan);
  display: inline-grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .4); color: var(--yellow); overflow: hidden;
}
.av.lg { --s: 72px; border-width: 3px; }
.av.sm { --s: 28px; border-width: 2px; }
.av.xs { --s: 22px; border-width: 1px; font-size: 10px; }
.av-stack { display: flex; flex-wrap: wrap; }
.av-stack .av { margin-right: -6px; }

/* ---------- itinerary ---------- */
.day { margin-bottom: 18px; }
.day-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.day-head .dname { font-family: var(--pixel); font-size: 14px; color: var(--c); text-shadow: 3px 3px 0 #000; }
.day-head .ddate { font-family: var(--pixel); font-size: 9px; color: var(--muted); }
.ev { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 0; border-top: 2px dashed var(--line); }
.ev:first-of-type { border-top: 0; }
.ev .when { font-family: var(--pixel); font-size: 9px; color: var(--yellow); line-height: 1.7; padding-top: 3px; }
.ev .what { font-weight: 700; font-size: 17px; }
.ev .more { color: var(--muted); font-size: 14px; margin-top: 2px; }
.ev .cta { margin-top: 8px; }

/* ---------- office hours ---------- */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 12px; min-height: 84px; text-align: left; cursor: pointer;
  background: #0d0221; border: 3px solid var(--green); border-radius: 6px; box-shadow: 4px 4px 0 #000;
}
.slot .tm { font-family: var(--pixel); font-size: 11px; color: var(--green); }
.slot .st { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.slot.taken { border-color: var(--line); cursor: default; box-shadow: none; opacity: .85; }
.slot.taken .tm { color: var(--muted); }
.slot.mine { border-color: var(--yellow); background: #2a2200; }
.slot.mine .tm { color: var(--yellow); }
.slot.blocked { border-style: dashed; border-color: var(--line); opacity: .45; cursor: default; box-shadow: none; }
.slot .topic { font-size: 12px; color: var(--cyan); font-style: italic; }
.slot .admin-ctl { display: flex; gap: 6px; margin-top: 4px; }

/* ---------- photos ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery button { padding: 0; border: 0; background: var(--panel2); aspect-ratio: 1; cursor: pointer; overflow: hidden; border-radius: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 22px 16px; border: 3px dashed var(--pink); border-radius: 6px; background: rgba(255,47,185,.06); cursor: pointer;
}
.dropzone .big { font-size: 36px; }
.progress { height: 14px; border: 2px solid var(--cyan); border-radius: 3px; background: #0d0221; overflow: hidden; }
.progress > div { height: 100%; background: repeating-linear-gradient(90deg, var(--cyan) 0 10px, #00b4cc 10px 14px); transition: width .2s; }

/* lightbox / modal */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(5, 0, 15, .88); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.sheet {
  width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  background: var(--panel); border: 3px solid var(--pink); border-bottom: 0; border-radius: 10px 10px 0 0;
  padding: 20px 18px calc(20px + var(--safe-b));
}
@media (min-width: 640px) { .sheet { border-bottom: 3px solid var(--pink); border-radius: 8px; } }
.lightbox { width: 100%; height: 100%; display: flex; flex-direction: column; }
.lightbox .img { flex: 1; display: grid; place-items: center; min-height: 0; padding: 12px; }
.lightbox .img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox .bar { padding: 12px 16px calc(14px + var(--safe-b)); background: #0d0221; border-top: 3px solid var(--pink); }

/* ---------- jeopardy board ---------- */
.board-wrap { padding: 12px; }
.board-wrap.tv { min-height: 100vh; display: flex; flex-direction: column; padding: 2vh 2vw; gap: 1.6vh; }
.jboard { display: grid; gap: 6px; grid-auto-flow: column; }
.board-wrap.tv .jboard { flex: 1; gap: .8vw; }
.jcol { display: grid; gap: 6px; grid-template-rows: auto repeat(5, 1fr); }
.board-wrap.tv .jcol { gap: .8vw; }
.jcat, .jcell {
  background: var(--jblue); border: 3px solid #000; border-radius: 4px; display: grid; place-items: center; text-align: center;
  box-shadow: inset 0 0 0 2px #2b3fe0;
}
.jcat { padding: 8px 4px; min-height: 64px; font-family: var(--pixel); font-size: 8px; line-height: 1.6; color: #fff; text-shadow: 2px 2px 0 #000; text-transform: uppercase; }
.jcell { min-height: 54px; font-family: var(--pixel); font-size: 14px; color: var(--yellow); text-shadow: 3px 3px 0 #000; cursor: default; }
button.jcell { cursor: pointer; }
.jcell.used { color: transparent; text-shadow: none; background: #0a1060; }
.jcell.empty { background: #0a1060; }
.jcell .dd { position: absolute; }
.board-wrap.tv .jcat { font-size: 1.15vw; min-height: 10vh; }
.board-wrap.tv .jcell { font-size: 3.4vw; }

.scores { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; margin-top: 10px; }
.board-wrap.tv .scores { gap: 1vw; margin-top: 0; }
.score {
  background: #0d0221; border: 3px solid var(--c); border-radius: 6px; padding: 10px 8px; text-align: center;
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent);
}
.score .tn { font-family: var(--pixel); font-size: 8px; color: var(--c); line-height: 1.6; }
.score .pts { font-family: var(--pixel); font-size: 20px; color: #fff; margin: 6px 0; }
.score .pts.neg { color: #ff5470; }
.score.lead .tn::before { content: "👑 "; }
.board-wrap.tv .score .tn { font-size: 1.1vw; }
.board-wrap.tv .score .pts { font-size: 3vw; }
.score .ctl { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }

.clue-overlay {
  position: fixed; inset: 0; z-index: 150; background: var(--jblue);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh;
  padding: 6vh 6vw calc(6vh + var(--safe-b)); text-align: center;
}
.clue-overlay .cat { font-family: var(--pixel); font-size: clamp(10px, 1.6vw, 22px); color: var(--cyan); letter-spacing: 2px; }
.clue-overlay .val { font-family: var(--pixel); font-size: clamp(14px, 2.4vw, 32px); color: var(--yellow); text-shadow: 3px 3px 0 #000; }
.clue-overlay .q { font-family: var(--body); font-weight: 700; font-size: clamp(26px, 5vw, 76px); line-height: 1.2; color: #fff; text-shadow: 4px 4px 0 #000; max-width: 1400px; text-transform: uppercase; }
.clue-overlay .a { font-family: var(--pixel); font-size: clamp(14px, 2.6vw, 38px); color: var(--yellow); line-height: 1.6; text-shadow: 3px 3px 0 #000; }
.clue-overlay .a.hidden { color: rgba(255,255,255,.35); }
.clue-overlay .ctl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dd-splash { font-family: var(--neon); font-size: clamp(54px, 12vw, 200px); line-height: 1; }

.trophy { display: flex; align-items: center; gap: 12px; }
.globe { width: 52px; height: 60px; flex: 0 0 auto; }

/* ---------- walls ---------- */
.wall { columns: 2 240px; column-gap: 12px; }
.note {
  break-inside: avoid; margin: 0 0 12px; padding: 14px; border-radius: 6px;
  background: var(--panel); border: 3px solid var(--c, var(--pink)); box-shadow: 4px 4px 0 #000;
}
.note .by { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.note p { margin: 8px 0 0; white-space: pre-wrap; }
.meter { position: relative; height: 26px; border: 3px solid var(--yellow); border-radius: 4px; background: #0d0221; overflow: hidden; }
.meter > div { height: 100%; background: repeating-linear-gradient(90deg, var(--pink) 0 12px, var(--orange) 12px 24px); }
.meter span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--pixel); font-size: 9px; color: #fff; text-shadow: 2px 2px 0 #000; }

.capsule {
  text-align: center; padding: 22px 16px; border-radius: 8px;
  background: radial-gradient(circle at 50% 30%, #3a0d7a, #12002e 70%); border: 3px solid var(--cyan);
}
.capsule .lock { font-size: 54px; }
.capsule .big { font-family: var(--pixel); font-size: 26px; color: var(--yellow); margin: 10px 0 4px; text-shadow: 3px 3px 0 #000; }

.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 2px dashed var(--line); }
.list-item:first-child { border-top: 0; }
.vote-btn { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; border: 3px solid var(--line); border-radius: 6px; background: #0d0221; cursor: pointer; }
.vote-btn.on { border-color: var(--pink); background: rgba(255,47,185,.15); }
.vote-btn b { font-family: var(--pixel); font-size: 11px; }

.award { padding: 14px; border: 3px solid var(--yellow); border-radius: 6px; background: var(--panel); margin-bottom: 12px; box-shadow: 4px 4px 0 #000; }
.award .ttl { font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.winner { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.winner .bar { height: 10px; background: var(--pink); border-radius: 2px; }

.admin-guest { display: grid; gap: 10px; }
.admin-guest .row > * { min-width: 0; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }

.empty { text-align: center; padding: 26px 12px; color: var(--muted); border: 3px dashed var(--line); border-radius: 6px; }
.empty .big { font-size: 34px; margin-bottom: 8px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  z-index: 300; max-width: calc(100vw - 32px);
  padding: 12px 16px; border: 3px solid #000; border-radius: 4px; background: var(--yellow); color: #12002e;
  font-weight: 700; box-shadow: 4px 4px 0 #000; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: #ff3b5c; color: #fff; }

.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.login {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 16px calc(24px + var(--safe-b));
  max-width: 460px; margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero .grid, .blink { animation: none; }
  * { transition: none !important; }
}
