/* rupertmc – Weltraum-Spielbrett. Bewusst nur dunkel (eine Welt), daher kein Hell-Modus. */
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --void: #05041a;
  --deep: #0d0b2e;
  --panel: #13103d;
  --pink: #ff3d9a;
  --cyan: #38e8ff;
  --gold: #ffc94d;
  --mint: #3dffb0;
  --ink: #eef0ff;
  --muted: #a3a8d8;
  --line: rgba(150, 160, 255, 0.18);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --gadget: clamp(74px, 10.5vw, 136px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--void);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

#sky, #fx { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#sky { z-index: 0; }
#fx { z-index: 40; pointer-events: none; }
#ink { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
#pings { position: fixed; inset: 0; z-index: 35; pointer-events: none; overflow: hidden; }

/* ------------------------------------------------------------------ Kopfleiste */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter-r) 12px var(--gutter-l);
  background: linear-gradient(180deg, rgba(5, 4, 26, 0.85), rgba(5, 4, 26, 0));
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--void);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 700 1rem var(--display); letter-spacing: 0.5px; }
.logo svg { width: 26px; height: 26px; color: var(--cyan); }
.bar nav { display: flex; align-items: center; gap: 4px; }
.bar nav a {
  text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.92rem;
  padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.bar nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.sound {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer;
}
.sound svg { width: 20px; height: 20px; }
.sound .mute { display: none; }
.sound[aria-pressed="false"] .wave { display: none; }
.sound[aria-pressed="false"] .mute { display: inline; }

main, .foot { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ Brett */
.board {
  position: relative;
  margin: 4px var(--gutter-r) 0 var(--gutter-l);
  min-height: min(calc(100svh - 80px), 1000px);
  border-radius: 34px;
  padding: calc(var(--gadget) * 0.55) calc(var(--gadget) + 24px) 40px;
  display: grid; place-items: center;
  box-shadow:
    inset 0 0 0 1px rgba(150, 160, 255, 0.22),
    inset 0 0 80px rgba(56, 232, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55);
  isolation: isolate;
  overflow: hidden;
  transition: transform .2s;
}
/* Füllung als eigene Ebene, damit sie beim Warp ausgeblendet werden kann */
.board::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 61, 154, 0.12), transparent 60%),
    radial-gradient(90% 70% at 50% 110%, rgba(56, 232, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(19, 16, 61, 0.5), rgba(9, 7, 34, 0.66));
  transition: opacity .9s ease;
}
.board.warping::before { opacity: .12; }
.board.warping .board-grid { opacity: .15; transition: opacity .9s; }
.board.shake { animation: shake .5s linear infinite; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 2px); } 40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -3px); } 80% { transform: translate(2px, 3px); }
}
.board-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.55; pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 150, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 150, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.bracket { position: absolute; width: 46px; height: 46px; border: 2px solid var(--cyan); opacity: .5; pointer-events: none; }
.b-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.b-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.b-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.b-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }

/* ------------------------------------------------------------------ Gadgets */
.gadget {
  position: absolute; z-index: 5;
  width: var(--gadget); height: var(--gadget);
  padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.gadget:hover { transform: scale(1.07) rotate(-2deg); }
.gadget:active { transform: scale(0.94); }
.gadget svg { width: 100%; height: 100%; overflow: visible; position: relative; z-index: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.socket {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgba(56, 232, 255, .18), transparent 65%);
  box-shadow: 0 0 0 1px rgba(150, 160, 255, .2), 0 0 40px rgba(56, 232, 255, .12);
}
.g-tl { top: 22px; left: 22px; }
.g-tr { top: 22px; right: 22px; }
.g-bl { bottom: 22px; left: 22px; }
.g-br { bottom: 22px; right: 22px; }

.bubble {
  position: absolute; z-index: 3; white-space: nowrap; pointer-events: none;
  font: 700 0.8rem/1.2 var(--body); color: var(--void);
  background: var(--ink); padding: 6px 10px; border-radius: 12px;
  opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .2s, transform .2s;
}
.bubble.show { opacity: 1; transform: none; }
.g-tl .bubble, .g-tr .bubble { top: calc(100% + 2px); }
.g-bl .bubble, .g-br .bubble { bottom: calc(100% + 2px); }
.g-tl .bubble, .g-bl .bubble { left: 10%; }
.g-tr .bubble, .g-br .bubble { right: 10%; }

/* Planet */
.planet-spin { transform-origin: 0 0; animation: spin 14s linear infinite; }
.planet.fast .planet-spin { animation-duration: 1.2s; }
.planet.boom { animation: boom .6s ease-out forwards; }
.planet.reform { animation: reform .7s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes boom { to { transform: scale(1.6); opacity: 0; } }
@keyframes reform { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.moon { animation: orbit var(--dur, 3s) linear infinite; transform-origin: 0 0; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* Sonar */
.sweep { transform-origin: 0 0; animation: spin 3.2s linear infinite; }
.blip { animation: blip 1.8s ease-out forwards; }
@keyframes blip { 0% { opacity: 1; } 100% { opacity: 0; } }
.ping-ring {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 3px solid var(--mint); box-shadow: 0 0 30px var(--mint), inset 0 0 30px rgba(61, 255, 176, .35);
  animation: ping 1.6s cubic-bezier(.2, .6, .3, 1) forwards;
}
@keyframes ping { to { transform: scale(var(--scale, 60)); opacity: 0; border-width: .2px; } }
.hit-mark {
  position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  font: 900 30px/36px var(--display); color: var(--pink); text-align: center;
  text-shadow: 0 0 18px var(--pink); animation: hit 1.6s ease-out forwards;
}
@keyframes hit { 0% { transform: scale(0) rotate(-40deg); } 20% { transform: scale(1.3); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.sink-ship { position: absolute; width: 120px; height: 60px; margin: -30px 0 0 -60px; animation: sink 2.6s ease-in forwards; }
@keyframes sink { 0% { transform: translateY(-40px) rotate(0); opacity: 0; } 15% { opacity: 1; transform: translateY(0) rotate(0); } 100% { transform: translateY(160px) rotate(35deg); opacity: 0; } }

/* Hyperantrieb */
.warp-cap { transform-origin: 0 4px; transition: transform .1s; }
.gadget:active .warp-cap, .warp.on .warp-cap { transform: translateY(4px) scale(.94); }
.warp.on .warp-cap circle:first-child { filter: brightness(1.6); }
.warp-label { font: 800 9px var(--display); fill: var(--gold); letter-spacing: 1px; }

/* Krake */
.kr-all { transform-origin: 0 10px; }
.kraken .t { transform-origin: 0 6px; animation: wiggle 2.4s ease-in-out infinite; }
.kraken .t2 { animation-delay: -.6s; } .kraken .t3 { animation-delay: -1.2s; } .kraken .t4 { animation-delay: -1.8s; }
@keyframes wiggle { 50% { transform: rotate(7deg); } }
.kraken .brow { opacity: 0; transition: opacity .2s; }
.kraken.angry .brow { opacity: 1; }
.kraken.angry .kr-c1 { stop-color: #ffd0d0; } .kraken.angry .kr-c2 { stop-color: #ff4d6d; } .kraken.angry .kr-c3 { stop-color: #7a0f2b; }
.kraken.poke .kr-all { animation: squish .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes squish { 30% { transform: scale(1.15, .8); } 60% { transform: scale(.9, 1.12); } }
.ink-blob { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #1a0636, #05010d 70%); animation: inkfade 2.8s ease-in forwards; }
@keyframes inkfade { 0% { transform: scale(0); opacity: 1; } 12% { transform: scale(1.05); } 18% { transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1) translateY(40px); } }

/* ------------------------------------------------------------------ Mitte */
.center { display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 1100px; text-align: center; }
.kicker { margin: 0; font: 700 0.78rem/1 var(--body); letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); }
.wordmark {
  margin: 0; font: 900 clamp(2.6rem, 10.5vw, 9.5rem)/0.95 var(--display); letter-spacing: -0.02em;
  display: flex; justify-content: center; flex-wrap: nowrap; user-select: none; cursor: default;
}
.wordmark .ch {
  display: inline-block; will-change: transform; cursor: pointer;
  background: linear-gradient(180deg, #ffffff 10%, #ffd6f0 45%, var(--pink) 70%, #7a2bd6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(-3px 0 0 rgba(56, 232, 255, .65)) drop-shadow(3px 0 0 rgba(255, 61, 154, .55)) drop-shadow(0 0 24px rgba(255, 61, 154, .35));
}
.wordmark.glitch .ch { animation: glitch .32s steps(2) 1; }
@keyframes glitch {
  0% { transform: translate(0, 0) skewX(0); } 25% { transform: translate(-6px, 2px) skewX(-12deg); }
  50% { transform: translate(5px, -3px) skewX(10deg); } 75% { transform: translate(-2px, 1px); } 100% { transform: none; }
}
.tagline { margin: 0 0 6px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 46ch; text-wrap: balance; }

/* ------------------------------------------------------------------ Karten */
.hand {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  width: 100%; min-height: calc(var(--card-w) * 1.4 + 40px); margin-top: 6px;
  --card-w: clamp(170px, 17vw, 228px);
  perspective: 1200px;
}
.slot {
  position: relative; width: var(--card-w); margin: 0 calc(var(--card-w) * -0.015);
  transform: translateY(var(--fy, 0px)) rotate(var(--fr, 0deg));
  transform-origin: 50% 120%;
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), z-index 0s .1s;
  z-index: var(--z, 1);
}
.slot:hover, .slot:focus-within { transform: translateY(-34px) rotate(0deg) scale(1.08); z-index: 20; transition-delay: 0s; }
.card {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; text-decoration: none; color: var(--ink);
  border-radius: 18px; padding: 10px 10px 34px; cursor: pointer;
  background: linear-gradient(160deg, #2a2470, #110d3a 55%, #1d0f45);
  box-shadow: 0 0 0 2px rgba(255, 201, 77, .55), 0 0 0 5px #0b0826, 0 0 0 6px rgba(150, 160, 255, .25), 0 22px 50px rgba(0, 0, 0, .6);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .3s;
  display: grid; grid-template-rows: auto 1fr; gap: 8px; overflow: hidden; text-align: left;
  border: 0; font: inherit; width: 100%;
}
.slot:hover .card { box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px #0b0826, 0 0 0 6px var(--cyan), 0 0 50px rgba(56, 232, 255, .45), 0 30px 60px rgba(0, 0, 0, .65); }
.card .art { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #071c3a; }
.card .art svg { width: 100%; height: 100%; display: block; }
.card .body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.card .title { font: 800 0.98rem/1.15 var(--display); margin: 0; text-wrap: balance; }
.card .desc { margin: 0; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.card .meta { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.card .tag { color: var(--gold); }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.on { color: var(--mint); } .status.on::before { background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 1.6s ease-in-out infinite; }
.status.off { color: var(--pink); } .status.off::before { background: var(--pink); }
@keyframes pulse { 50% { opacity: .35; } }
.gem {
  position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; z-index: 2;
  transform: translateY(calc(var(--card-w) * -0.06)) rotate(45deg);
  background: linear-gradient(135deg, #fff, var(--pink) 50%, #6a1bb0); box-shadow: 0 0 14px var(--pink); border: 2px solid #0b0826;
  display: none;
}
/* Holo-Folie */
.card .foil {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: color-dodge; opacity: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 40%),
    repeating-linear-gradient(115deg, rgba(255, 61, 154, .5) 0 8%, rgba(56, 232, 255, .5) 8% 16%, rgba(255, 201, 77, .5) 16% 24%, rgba(61, 255, 176, .45) 24% 32%);
  background-size: 100% 100%, 300% 300%;
  background-position: center, var(--fx, 50%) var(--fy2, 50%);
  transition: opacity .3s;
}
.slot:hover .foil { opacity: .55; }
.card.locked { cursor: not-allowed; background: linear-gradient(160deg, #1e1a48, #0b0826); }
.card.locked .art { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #0d0a2c 0 12px, #120e38 12px 24px); }
.card.locked .art span { font: 900 3.4rem var(--display); color: rgba(255, 255, 255, .15); }
.card.locked.nope { animation: nope .4s; }
@keyframes nope { 20%, 60% { transform: translateX(-8px) rotate(-2deg); } 40%, 80% { transform: translateX(8px) rotate(2deg); } }

/* ------------------------------------------------------------------ Abschnitte */
.index, .atelier { scroll-margin-top: 64px; margin: 0 auto; padding: 80px var(--gutter-r) 0 var(--gutter-l); max-width: 1180px; display: grid; gap: 26px; }
.section-head { display: grid; gap: 10px; }
.section-head h2 { margin: 0; font: 900 clamp(1.9rem, 5vw, 3.4rem)/1 var(--display); text-wrap: balance; }
.lede { margin: 0; color: var(--muted); max-width: 60ch; }

.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a, .toc .locked-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 18px; text-decoration: none;
  background: rgba(19, 16, 61, .7); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.toc a:hover { transform: translateX(6px); background: rgba(30, 25, 85, .8); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 30px rgba(56, 232, 255, .15); }
.toc .num { font: 900 1.6rem var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--cyan); }
.toc .num::before { content: counter(toc, decimal-leading-zero); }
.toc .t { display: grid; gap: 2px; min-width: 0; }
.toc .t b { font: 800 1.1rem var(--display); }
.toc .t span { color: var(--muted); font-size: .92rem; }
.toc .host { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; display: grid; gap: 2px; justify-items: end; }
.toc .locked-row { opacity: .55; }
@media (max-width: 640px) {
  .toc a, .toc .locked-row { grid-template-columns: 40px 1fr; }
  .toc .host { grid-column: 2; justify-items: start; text-align: left; }
}

/* ------------------------------------------------------------------ Atelier */
.studio { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.toolbar {
  display: grid; gap: 16px; padding: 18px; border-radius: 20px;
  background: rgba(19, 16, 61, .78); box-shadow: inset 0 0 0 1px var(--line);
  position: sticky; top: 70px;
}
.tool-group { display: flex; flex-wrap: wrap; gap: 6px; }
.tool, .btn {
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.tool:hover, .btn:hover { background: rgba(255, 255, 255, .09); }
.tool:active, .btn:active { transform: scale(.96); }
.tool[aria-pressed="true"] { background: var(--cyan); color: var(--void); border-color: var(--cyan); box-shadow: 0 0 18px rgba(56, 232, 255, .5); }
.btn.primary { background: var(--pink); border-color: var(--pink); color: #1a0010; }
.btn.primary:hover { background: #ff63ae; }
.swatches button {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); cursor: pointer; padding: 0;
  background: var(--sw);
}
.swatches button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--void), 0 0 14px var(--sw); }
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.field span { display: flex; justify-content: space-between; }
.field output { color: var(--ink); font-variant-numeric: tabular-nums; }
input[type=color] { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; padding: 2px; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--pink); }
select { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--deep); }
.canvas-wrap {
  position: relative; border-radius: 24px; overflow: hidden; min-width: 0;
  box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px rgba(255, 61, 154, .25), 0 30px 70px rgba(0, 0, 0, .5);
  background: #06051a;
  aspect-ratio: 16 / 10;
}
#paint { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; display: block; }
.canvas-hint {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; pointer-events: none;
  font: 800 clamp(1.1rem, 2.4vw, 1.6rem) var(--display); color: rgba(238, 240, 255, .28); transition: opacity .4s;
}
.canvas-hint.gone { opacity: 0; }
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .toolbar { position: static; grid-template-columns: 1fr 1fr; }
  .toolbar > .tool-group:first-child, .toolbar > .actions, .toolbar > .swatches { grid-column: 1 / -1; }
  .canvas-wrap { aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------------------ Fuß, Toast */
.foot { padding: 90px var(--gutter-r) 40px var(--gutter-l); text-align: center; color: var(--muted); font-size: .88rem; }
.foot p { margin: 0; }
.foot-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* Übergang in die Galaxie (Klick auf Planet Rupo nach der Explosion) */
body.to-galaxy main, body.to-galaxy .foot { transition: transform .6s cubic-bezier(.5, 0, .9, .4), opacity .6s; transform: scale(1.6); opacity: 0; }
.foot-link:hover { color: var(--cyan); }
.secret { opacity: .35; letter-spacing: 1px; }
#toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--void); font-weight: 800; padding: 10px 18px; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); text-align: center;
}

/* Admiral-Modus (Konami-Code) */
body.admiral .wordmark .ch { background: linear-gradient(180deg, #fff8d6, var(--gold) 50%, #b07a00); -webkit-background-clip: text; background-clip: text; }
body.admiral .board { box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 120px rgba(255, 201, 77, .2), 0 30px 80px rgba(0, 0, 0, .55); }
body.admiral .bracket { border-color: var(--gold); opacity: 1; }

/* ------------------------------------------------------------------ Handy */
@media (max-width: 720px) {
  :root { --gadget: 70px; }
  .board { border-radius: 24px; padding: 100px 12px 110px; min-height: 0; }
  .g-tl, .g-tr { top: 12px; } .g-bl, .g-br { bottom: 12px; }
  .g-tl, .g-bl { left: 12px; } .g-tr, .g-br { right: 12px; }
  .bracket { display: none; }
  .hand {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px 24px 12px;
    margin: 0 -12px; width: calc(100% + 24px); min-height: 0; align-items: stretch; gap: 14px;
    --card-w: min(64vw, 240px); scrollbar-width: none;
  }
  .hand::-webkit-scrollbar { display: none; }
  .slot { flex: 0 0 auto; margin: 0; transform: none; scroll-snap-align: center; }
  .slot:hover, .slot:focus-within { transform: translateY(-10px); }
  .bar nav a { padding: 6px 8px; }
}

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