/* Schollenschubsen – „Städtisches Eisbad“: Fliesen, Emailleschilder, Eintrittskarte, Bojenrot und Entengelb.
   Dunkel: „Polarnacht“ (gleicher theme-Key wie shyundrak.de). */

@font-face {
  font-family: 'Shrikhand';
  src: url('../fonts/shrikhand/shrikhand-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Shrikhand';
  src: url('../fonts/shrikhand/shrikhand-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  src: url('../fonts/rubik/rubik-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --tile: #cfe9ef;
  --grout: #b2dbe4;
  --water: #2f86a8;
  --wave: #5aa8c6;
  --foam: #eaf8fb;
  --ice: #f8fdfe;
  --ice-side: #b4d9e4;
  --crack: #6b9fb2;
  --line: #10222c;
  --ink: #10222c;
  --ink-2: #405764;
  --paper: #fffaf0;
  --paper-2: #f3ead4;
  --enamel: #fbfbf6;
  --enamel-rim: #1f5f8b;
  --red: #e2412b;
  --red-ink: #fffaf0;
  --yellow: #ffc23a;
  --blue: #2a6fdb;
  --shadow: #10222c;
  --display: 'Shrikhand', Georgia, serif;
  --text: 'Rubik', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --tile: #0f2635;
  --grout: #163646;
  --water: #0c2b3c;
  --wave: #1b4a60;
  --foam: #8fbccb;
  --ice: #d9e8ee;
  --ice-side: #7fa6b6;
  --crack: #4d7a8c;
  --line: #061218;
  --ink: #e6f0f2;
  --ink-2: #a3b8c1;
  --paper: #142c3b;
  --paper-2: #1c3a4c;
  --enamel: #102534;
  --enamel-rim: #6fb0d6;
  --red: #f0573f;
  --red-ink: #10222c;
  --yellow: #ffc23a;
  --shadow: #04101a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--text);
  color: var(--ink);
  background-color: var(--tile);
  background-image:
    linear-gradient(var(--grout) 2px, transparent 2px),
    linear-gradient(90deg, var(--grout) 2px, transparent 2px);
  background-size: 46px 46px;
  background-position: -1px -1px;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.3em;
  margin: 0 0.1em;
  border: 1.5px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 5px;
  background: var(--paper);
  font: 600 0.8em/1.5 var(--text);
  text-align: center;
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.55em 1.1em;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--shadow);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn:focus-visible, .chip:focus-visible, .link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-red { background: var(--red); color: var(--red-ink); font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; }
.btn-big { font-size: 1.25rem; padding: 0.6em 1.4em; }
.link {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Startseite ---------- */
.start {
  max-width: 1080px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 40px;
}
.masthead {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 380px);
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}
.sign, .rules {
  position: relative;
  background: var(--enamel);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: inset 0 0 0 7px var(--enamel), inset 0 0 0 10px var(--enamel-rim), 5px 5px 0 var(--shadow);
}
.sign { padding: 26px 30px 24px; }
.screw {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-2);
}
.screw::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: 3px;
  height: 1.5px;
  background: var(--ink);
  transform: rotate(35deg);
}
.screw:nth-of-type(1) { top: 16px; left: 16px; }
.screw:nth-of-type(2) { top: 16px; right: 16px; }
.screw:nth-of-type(3) { bottom: 16px; left: 16px; }
.screw:nth-of-type(4) { bottom: 16px; right: 16px; }
.sign-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--enamel-rim);
}
.logo {
  margin: 0;
  font: 400 clamp(2.4rem, 7.4vw, 4.6rem)/1 var(--display);
  color: var(--red);
  text-shadow: 3px 3px 0 var(--shadow);
  letter-spacing: 0.01em;
  transform: rotate(-2deg);
  transform-origin: left center;
  overflow-wrap: anywhere;
}
.tagline { margin: 14px 0 0; max-width: 34em; font-size: 1.04rem; line-height: 1.45; }
.porthole {
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
  background: var(--water);
  box-shadow: 0 0 0 9px var(--paper), 0 0 0 12px var(--ink), 7px 8px 0 12px var(--shadow);
  margin: 12px;
}
.porthole canvas { width: 100%; height: 100%; display: block; }

.desk {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* Eintrittskarte mit Abriss */
.ticket {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--shadow);
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 20px 10px;
  border-bottom: 3px solid var(--ink);
  background: var(--yellow);
  color: #10222c;
  border-radius: 11px 11px 0 0;
}
.ticket-head h2 { margin: 0; font: 400 1.5rem/1 var(--display); }
.ticket-head span { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ticket-body { padding: 16px 20px 18px; display: grid; gap: 16px; }
.ticket-stub {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
  border-top: 3px dashed var(--ink);
}
.ticket-stub::before, .ticket-stub::after {
  content: '';
  position: absolute;
  top: -15px;
  width: 26px;
  height: 26px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--tile);
}
.ticket-stub::before { left: -16px; clip-path: inset(0 0 0 50%); }
.ticket-stub::after { right: -16px; clip-path: inset(0 50% 0 0); }

.field { display: grid; gap: 6px; }
.field-label { font-weight: 700; font-size: 0.9rem; padding: 0; }
.field input, .code-input, .set input[type='number'] {
  width: 100%;
  padding: 0.55em 0.75em;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: var(--enamel);
  font-weight: 600;
}
.field input:focus, .code-input:focus, .set input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }

.account { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper-2); }
.account img { border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.account span { display: grid; gap: 2px; }
.account small { font-size: 0.85rem; }

.trunks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.trunks legend { margin-bottom: 8px; }
.trunk { position: relative; cursor: pointer; }
.trunk input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.trunk i {
  display: block;
  width: 46px;
  height: 34px;
  border: 2.5px solid var(--ink);
  border-radius: 6px 6px 16px 16px;
  background-color: var(--c);
  background-image: var(--pat);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 50% 72%, 38% 100%, 0 62%);
  transition: transform 0.1s;
}
.trunk input:checked + i { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 4px 0 var(--shadow)); }
.trunk input:focus-visible + i { outline: 3px solid var(--yellow); outline-offset: 2px; }

.join { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-input { text-transform: uppercase; letter-spacing: 0.3em; font-family: var(--display); font-weight: 400; text-align: center; }

/* Badeordnung */
.rules { padding: 28px 30px 26px; }
.rules .screw:nth-of-type(1) { top: 14px; left: 14px; }
.rules .screw:nth-of-type(2) { top: 14px; right: 14px; left: auto; }
.rules h2 { margin: 0 0 12px; text-align: center; font: 400 1.9rem/1 var(--display); color: var(--enamel-rim); }
.rules ol { margin: 0; padding-left: 1.6em; display: grid; gap: 9px; line-height: 1.4; counter-reset: p; list-style: none; }
.rules li { counter-increment: p; position: relative; }
.rules li::before {
  content: '§' counter(p);
  position: absolute;
  left: -1.7em;
  font-weight: 800;
  color: var(--red);
}
.rules-sign { margin: 16px 0 0; text-align: right; font: 400 1.1rem var(--display); transform: rotate(-3deg); color: var(--ink-2); }

/* Offene Becken (Spindmarken) */
.lockers { margin-top: 26px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.list-head h2 { margin: 0 0 12px; font: 400 1.6rem var(--display); color: var(--ink); text-shadow: 2px 2px 0 var(--paper); }
.room-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.room-list .empty {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border: 2.5px dashed var(--ink);
  border-radius: 12px;
  background: var(--paper);
}
.room-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 999px 14px 14px 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--shadow);
  text-align: left;
  cursor: pointer;
}
.room-btn:hover { background: var(--paper-2); }
.room-btn b {
  display: grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--red-ink);
  font: 400 0.8rem var(--display);
  letter-spacing: 0.05em;
}
.room-btn small { color: var(--ink-2); }
.room-btn .fill { font-weight: 800; }

.foot { display: flex; justify-content: center; gap: 24px; margin-top: 34px; }

/* ---------- Spiel ---------- */
.play { position: fixed; inset: 0; overflow: hidden; background: var(--water); touch-action: none; user-select: none; -webkit-user-select: none; }
.board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.hud { position: absolute; z-index: 2; }
.hud-room {
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 220px);
}
.chip {
  padding: 0.35em 0.8em;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--line);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.chip-label { font-weight: 600; opacity: 0.7; }
.chip-code b { font-family: var(--display); font-weight: 400; letter-spacing: 0.12em; }
.chip:disabled { cursor: default; }

.hud-round {
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.3em 0.9em;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: #10222c;
  box-shadow: 2px 2px 0 var(--line);
  font-weight: 800;
  white-space: nowrap;
}
.round-no { font-family: var(--display); font-weight: 400; }
.thermo {
  position: relative;
  width: 86px;
  height: 12px;
  border: 2px solid #10222c;
  border-radius: 99px;
  background: #fffaf0;
  overflow: hidden;
}
.thermo i { position: absolute; inset: 0 auto 0 0; width: 100%; background: #9fd3e3; border-right: 2px solid #10222c; transition: width 0.3s linear; }
.thermo.hot i { background: var(--red); }

.hud-board {
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  width: 196px;
  padding: 8px 10px 10px;
  border: 2.5px solid var(--line);
  border-radius: 12px;
  background: #13303f;
  color: #ffe9a8;
  box-shadow: 3px 3px 0 var(--line);
  font-variant-numeric: tabular-nums;
}
.board-title { margin: 0 0 6px; font: 400 0.95rem var(--display); color: var(--yellow); text-align: center; letter-spacing: 0.04em; }
#score-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 0.84rem; font-weight: 600; }
#score-list li { display: grid; grid-template-columns: 1.3em 14px 1fr auto; gap: 6px; align-items: center; }
#score-list li .pos { opacity: 0.6; }
#score-list li i { width: 14px; height: 10px; border: 1.5px solid #10222c; border-radius: 2px 2px 6px 6px; background: var(--c); }
#score-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#score-list li em { font-style: normal; font-weight: 800; color: #fffaf0; }
#score-list li.me span { color: #fffaf0; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
#score-list li.wet span { opacity: 0.55; }
#score-list li.wet span::after { content: ' 💧'; font-size: 0.8em; }

.hud-feed {
  left: max(10px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  max-width: min(420px, calc(100% - 150px));
  pointer-events: none;
}
.hud-feed li {
  padding: 0.25em 0.7em;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  animation: feed-in 0.25s ease-out, feed-out 0.6s ease-in 5.4s forwards;
}
.hud-feed li b { color: var(--red); }
@keyframes feed-in { from { transform: translateX(-20px); opacity: 0; } }
@keyframes feed-out { to { opacity: 0; transform: translateY(6px); } }

.hud-lobby {
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  border: 2.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--line);
  max-width: min(640px, calc(100% - 24px));
}
.hud-lobby p { margin: 0; font-weight: 600; line-height: 1.35; }
.hud-lobby .btn { flex: none; }

.countdown {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  font: 400 clamp(5rem, 22vw, 12rem)/1 var(--display);
  color: var(--yellow);
  -webkit-text-stroke: 4px #10222c;
  text-shadow: 7px 7px 0 #10222c;
}
.countdown.pop { animation: pop 0.9s ease-out; }
@keyframes pop { 0% { transform: scale(1.8); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0.2; transform: scale(0.85); } }

.roundcard {
  left: 50%;
  top: 22%;
  transform: translateX(-50%) rotate(-2deg);
  padding: 14px 26px 16px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--line);
  text-align: center;
  max-width: min(460px, calc(100% - 24px));
  animation: drop 0.35s cubic-bezier(.3, 1.6, .5, 1);
}
.roundcard h2 { margin: 0; font: 400 clamp(1.5rem, 5vw, 2.2rem)/1.1 var(--display); color: var(--red); }
.roundcard p { margin: 8px 0 0; font-weight: 600; }
@keyframes drop { from { transform: translateX(-50%) translateY(-40px) rotate(-6deg); opacity: 0; } }

.dash-btn {
  display: none;
  position: absolute;
  z-index: 2;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 96px;
  height: 96px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--red);
  color: #fffaf0;
  box-shadow: 4px 4px 0 var(--line);
  font: 400 1.05rem var(--display);
  overflow: hidden;
  touch-action: none;
}
.dash-btn span { position: relative; z-index: 1; }
.dash-btn i { position: absolute; inset: 0; background: rgb(16 34 44 / 0.55); transform-origin: bottom; transform: scaleY(0); }
.dash-btn.down { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
@media (pointer: coarse) { .dash-btn { display: block; } }

/* ---------- Karten / Overlays ---------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(8 24 34 / 0.45);
  overflow: auto;
}
.card {
  width: min(560px, 100%);
  padding: 22px 24px;
  border: 3px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--line);
}
.card-title { margin: 0 0 4px; font: 400 2rem/1.1 var(--display); color: var(--red); }
.card-sub { margin: 0 0 12px; color: var(--ink-2); font-weight: 600; }
.card-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.card-final { text-align: center; }
.card-final .card-actions { justify-content: center; }
.hint { margin: 10px 0 0; color: var(--ink-2); font-size: 0.9rem; }

.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 14px 0 12px; min-height: 150px; }
.step { display: grid; justify-items: center; gap: 6px; width: 31%; max-width: 150px; }
.step .who { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.step .block {
  width: 100%;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: var(--tile);
  background-image: linear-gradient(var(--grout) 2px, transparent 2px), linear-gradient(90deg, var(--grout) 2px, transparent 2px);
  background-size: 18px 18px;
  font: 400 1.8rem var(--display);
  color: var(--red);
  text-shadow: 2px 2px 0 var(--paper);
}
.step-1 .block { height: 96px; }
.step-2 .block { height: 66px; }
.step-3 .block { height: 44px; }
.step .trunk-mini { width: 34px; height: 24px; border: 2px solid var(--ink); border-radius: 4px 4px 12px 12px; background-color: var(--c); background-image: var(--pat); }
.final-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: left; font-variant-numeric: tabular-nums; }
.final-list li { display: grid; grid-template-columns: 2em 16px 1fr auto; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 8px; font-weight: 600; }
.final-list li.me { background: var(--yellow); color: #10222c; }
.final-list li i { width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px 2px 7px 7px; background: var(--c); }
.final-list li small { font-weight: 500; opacity: 0.75; }
.final-list li em { font-style: normal; font-weight: 800; }

.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.set { display: grid; gap: 6px; font-weight: 700; font-size: 0.9rem; }
.seg { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.seg legend { margin-bottom: 6px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 0.35em 0.9em; border: 2px solid var(--ink); border-radius: 999px; background: var(--enamel); font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--red); color: var(--red-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.seg input:disabled + span { cursor: default; opacity: 0.8; }
.check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.note { margin: 12px 0 8px; font-size: 0.85rem; color: var(--ink-2); }
.members { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.members li { display: inline-flex; align-items: center; gap: 6px; padding: 0.2em 0.4em 0.2em 0.7em; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 0.88rem; }
.members li.off { opacity: 0.5; }
.members li i { width: 12px; height: 9px; border: 1.5px solid var(--ink); border-radius: 2px 2px 5px 5px; background: var(--c); }
.members small { opacity: 0.7; }
.members button { border: 0; background: var(--red); color: #fffaf0; border-radius: 50%; width: 1.5em; height: 1.5em; cursor: pointer; line-height: 1; }

.toasts { position: fixed; z-index: 10; left: 50%; top: 58px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { padding: 10px 14px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--line); font-weight: 600; animation: feed-in 0.2s ease-out; }
.toast.error { background: var(--red); color: var(--red-ink); }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr; }
  .porthole { width: min(240px, 62vw); justify-self: center; margin: 4px auto 10px; order: -1; }
  .desk { grid-template-columns: 1fr; }
  .sign, .rules { padding: 22px 20px 20px; }
  .hud-room { max-width: calc(100% - 20px); }
  .chip { font-size: 0.8rem; }
  .hud-round { top: auto; bottom: max(124px, calc(env(safe-area-inset-bottom) + 124px)); }
  .hud-board { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); left: max(10px, env(safe-area-inset-left)); right: auto; width: min(220px, calc(100% - 140px)); max-height: 104px; overflow: hidden; }
  .board-title { display: none; }
  .hud-feed { bottom: auto; top: 54px; max-width: calc(100% - 20px); }
  .hud-lobby { bottom: 130px; flex-direction: column; align-items: stretch; text-align: center; }
  .set-grid { grid-template-columns: 1fr; }
  .card-title { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
