/* Spin – Comic-Gameshow auf knallblauer Bühne: dicke Tinte, harte Schatten, Popfarben.
   Ruhig im Aufbau, laut nur im Moment des Ergebnisses. */

@font-face {
  font-family: 'Bowlby One';
  src: url(/fonts/bowlby-one-latin.woff2) format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url(/fonts/rubik-latin.woff2) format('woff2-variations');
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  src: url(/fonts/rubik-latin-ext.woff2) format('woff2-variations');
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --stage: #2236F0;
  --stage-deep: #1624B4;
  --ink: #0B0B26;
  --paper: #FFF8E6;
  --paper-2: #FFEDB8;
  --red: #FF3355;
  --yellow: #FFD21F;
  --cyan: #22D3FF;
  --pink: #FF6AD5;
  --green: #43F08A;
  --orange: #FF8A1F;
  --violet: #9B5CFF;
  --line: 3px;
  --hard: 5px 5px 0 var(--ink);
  --display: 'Bowlby One', 'Arial Black', Impact, sans-serif;
  --sans: 'Rubik', system-ui, sans-serif;
  --tabs-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--tabs-h) + 16px); }
body {
  font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--paper);
  background-color: var(--stage);
  /* Halbton-Raster und ein Scheinwerfer von oben */
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255,255,255,.20), transparent 70%),
    radial-gradient(rgba(11,11,38,.28) 1.3px, transparent 1.7px);
  background-size: auto, 11px 11px;
  min-height: 100dvh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[lang=de] [data-only=en], html[lang=en] [data-only=de] { display: none; }

/* ─── Kopf ─── */
.top { width: 100%; max-width: 1120px; margin: 0 auto; padding: 14px clamp(14px, 4vw, 28px) 4px; display: flex; align-items: center; gap: 14px; }
.logo {
  font-family: var(--display); font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1; text-decoration: none;
  color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); display: inline-block; padding: 4px 2px;
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); border: var(--line) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; color: var(--ink); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg path:first-child { fill: currentColor; }
.icon-btn.off { background: var(--paper); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.lang { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 8px 2px; }

/* ─── Werkzeug-Leiste: am Handy unten zum Daumen, am PC oben ─── */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); border-top: var(--line) solid var(--ink);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 1 0; min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px 5px; border-radius: 12px; color: var(--paper); text-decoration: none; font-size: .6875rem; font-weight: 700; white-space: nowrap;
}
.tab .ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { background: var(--yellow); color: var(--ink); }
:root { --tabs-h: 70px; }
body { --hwh-bottom: calc(var(--tabs-h) + 14px); }
@media (min-width: 900px) {
  :root { --tabs-h: 0px; }
  .tabs {
    position: static; width: 100%; max-width: 1120px; margin: 8px auto 0; padding: 0 clamp(14px, 4vw, 28px);
    background: none; border: 0; gap: 10px; flex-wrap: wrap; overflow: visible;
  }
  .tab {
    flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: 1rem; padding: 9px 16px; border-radius: 999px;
    border: var(--line) solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  }
  .tab .ico { width: 22px; height: 22px; }
  .tab.on { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
  .tab:hover:not(.on) { background: #fff; }
}

/* ─── Bühne ─── */
.stage { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px clamp(14px, 4vw, 28px) 32px; outline: none; }
.tool-head { margin-bottom: 18px; }
.tool-head h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.02; letter-spacing: -.01em;
  color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink);
}
.fair { margin-top: 8px; font-size: .9375rem; color: #DCE1FF; max-width: 52ch; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; } }
.visual { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }

.panel { background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
.controls { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.controls h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }

/* ─── Knöpfe ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 14px; border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800; text-decoration: none; color: var(--ink); background: var(--paper);
  transition: transform .07s, box-shadow .07s;
}
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { cursor: default; filter: saturate(.3) brightness(.9); transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-big {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 5vw, 2rem); min-height: 70px; padding: 0 38px;
  background: var(--yellow); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); letter-spacing: .01em;
}
.btn-big:hover:not(:disabled) { background: #FFE04D; }
.btn-big:active:not(:disabled) { transform: translate(5px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.btn-yes { background: var(--yellow); }
.btn-paper { background: var(--paper); }
.chip { min-height: 38px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; font-weight: 700; font-size: .875rem; box-shadow: 2px 2px 0 var(--ink); }
.chip:active { transform: translate(2px, 2px); box-shadow: none; }

/* ─── Felder ─── */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .9375rem; }
.field input, .field textarea, .presets {
  border: var(--line) solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); padding: 10px 12px; font-weight: 500;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--cyan); }
.names-input { min-height: 180px; resize: vertical; line-height: 1.45; font-size: 1rem; }
.names-input[readonly] { background: #F4F1E6; }
.names-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.names-count { font-weight: 800; font-size: .9375rem; }
.names-count.few { color: var(--red); }
.names-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.presets { min-height: 38px; padding: 0 10px; border-width: 2px; font-size: .875rem; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--red); flex: none; }
.warn-note:empty { display: none; }
.warn-note { font-weight: 800; color: var(--yellow); text-align: center; text-shadow: 2px 2px 0 var(--ink); }
.stepper { display: inline-flex; align-items: center; border: var(--line) solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 3px 3px 0 var(--ink); overflow: hidden; align-self: flex-start; }
.step-btn { width: 54px; height: 54px; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.step-btn:disabled { opacity: .3; cursor: default; }
.step-btn:active:not(:disabled) { background: var(--yellow); }
.step-val { min-width: 54px; text-align: center; font-family: var(--display); font-size: 1.6rem; border-inline: var(--line) solid var(--ink); line-height: 54px; }
.seg { display: inline-flex; border: var(--line) solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 3px 3px 0 var(--ink); align-self: flex-start; max-width: 100%; }
.seg button { padding: 10px 14px; font-weight: 800; font-size: .9375rem; color: var(--ink); }
.seg button + button { border-left: var(--line) solid var(--ink); }
.seg button.on { background: var(--cyan); }

/* ─── Glücksrad ─── */
.wheel-wrap { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin-top: clamp(18px, 6%, 34px); transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.wheel-wrap::before { content: ''; position: absolute; inset: 1.5%; border-radius: 50%; background: var(--ink); transform: translate(9px, 10px); }
.wheel { position: relative; width: 100%; height: 100%; display: block; border-radius: 50%; cursor: pointer; will-change: transform; }
.wheel-wrap.tense { transform: scale(1.045); }
.wheel-wrap.tense::after { content: ''; position: absolute; inset: -4%; border-radius: 50%; box-shadow: 0 0 0 6px var(--yellow), 0 0 50px 12px rgba(255,210,31,.55); animation: glow .5s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { from { opacity: .35; } to { opacity: 1; } }
.pointer { position: absolute; left: 50%; top: -5%; width: 13%; margin-left: -6.5%; transform-origin: 50% 27%; filter: drop-shadow(3px 3px 0 var(--ink)); z-index: 2; pointer-events: none; }
.hub {
  position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--yellow); border: 5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink), inset 0 -6px 0 rgba(11,11,38,.18);
  font-family: var(--display); font-size: clamp(.95rem, 3.6vw, 1.45rem); color: var(--ink); z-index: 3;
}
.hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.94); }
.hub:disabled { cursor: default; }
.wheel-wrap.spinning .hub { animation: hubPulse .45s ease-in-out infinite alternate; }
@keyframes hubPulse { to { background: #FFE88A; } }

/* ─── Großes Ergebnis ─── */
.reveal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(34,54,240,.35), rgba(11,11,38,.78) 70%);
}
.reveal-card { position: relative; width: min(100%, 620px); aspect-ratio: 1 / .92; display: grid; place-items: center; }
.reveal-burst { position: absolute; inset: 0; display: grid; place-items: center; }
.burst { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(8px 8px 0 var(--ink)); }
.reveal-text { position: relative; text-align: center; padding: 0 16%; margin-top: -8%; }
.reveal-kicker { font-family: var(--display); font-size: clamp(1.1rem, 4.5vw, 1.6rem); color: var(--paper); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); transform: rotate(-4deg); }
.reveal-main {
  font-family: var(--display); font-size: clamp(2.4rem, 11vw, 4.8rem); line-height: .98; color: var(--ink); overflow-wrap: anywhere;
  text-shadow: 3px 3px 0 #FFF8E6; margin-top: 6px;
}
.reveal-main.long { font-size: clamp(1.7rem, 7.5vw, 3.2rem); }
.reveal-sub { margin-top: 8px; font-weight: 800; color: var(--ink); }
.reveal-btns { position: absolute; left: 0; right: 0; bottom: -2%; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ─── Ergebnis direkt in der Seite ─── */
.visual { position: relative; }
.dice-total { min-height: 1.5em; margin: -6px 0 -4px; font-weight: 800; color: var(--paper); text-shadow: 2px 2px 0 var(--ink); }
.punch {
  position: absolute; z-index: 6; left: 50%; top: var(--punch-y, 40%); transform: translate(-50%, -50%);
  width: min(94%, 420px); aspect-ratio: 1 / .62; display: grid; place-items: center; pointer-events: none;
}
.punch-burst { position: absolute; left: 50%; top: 50%; width: 88%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.punch-burst .burst { display: block; width: 100%; height: 100%; filter: drop-shadow(6px 6px 0 var(--ink)); }
.punch-text { position: relative; text-align: center; padding: 0 22%; }
.punch-kicker { font-family: var(--display); font-size: 1.05rem; color: var(--paper); -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); transform: rotate(-4deg); }
.punch-main { font-family: var(--display); font-size: clamp(2.6rem, 12vw, 4.2rem); line-height: 1; color: var(--ink); text-shadow: 2px 2px 0 #FFF8E6; overflow-wrap: break-word; }
.punch-main.mid { font-size: clamp(1.8rem, 8vw, 2.8rem); }
.punch-main.long { font-size: clamp(1.25rem, 5vw, 1.9rem); }
.punch-sub { font-weight: 800; color: var(--ink); font-size: .9375rem; }

/* ─── Teams ─── */
.teams-board { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.team { padding: 0; overflow: hidden; border-radius: 16px; }
.team-head { background: var(--team, var(--yellow)); padding: 8px 12px; font-family: var(--display); font-size: 1.05rem; border-bottom: var(--line) solid var(--ink); color: var(--ink); }
.team-head.light { color: var(--paper); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.team-list { list-style: none; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 52px; }
.team-list li { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 4px 10px; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); overflow-wrap: anywhere; }
.teams-empty { grid-column: 1 / -1; text-align: center; font-weight: 700; color: #DCE1FF; }
.team.ghost .team-list { min-height: 96px; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(11,11,38,.07) 10px 20px); }
.copy-row { display: flex; justify-content: center; }

/* ─── Würfel ─── */
.tray {
  width: 100%; min-height: 300px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 26px; padding: 34px 18px;
  background: #0F7A4A; border-radius: 26px; border: var(--line) solid var(--ink); box-shadow: 6px 6px 0 var(--ink), inset 0 0 0 10px #0B5C37;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px); background-size: 7px 7px; perspective: 900px;
}
.die-pos { width: var(--die, 84px); height: var(--die, 84px); perspective: 700px; }
.die { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.face {
  position: absolute; inset: 0; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18%;
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14%; backface-visibility: hidden;
  box-shadow: inset -5px -6px 0 rgba(11,11,38,.12);
}
.pip { width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); place-self: center; }
.face.f1 .pip { background: var(--red); width: 90%; }
.f1 { transform: translateZ(calc(var(--die, 84px) / 2)); }
.f6 { transform: rotateY(180deg) translateZ(calc(var(--die, 84px) / 2)); }
.f3 { transform: rotateY(90deg) translateZ(calc(var(--die, 84px) / 2)); }
.f4 { transform: rotateY(-90deg) translateZ(calc(var(--die, 84px) / 2)); }
.f5 { transform: rotateX(90deg) translateZ(calc(var(--die, 84px) / 2)); }
.f2 { transform: rotateX(-90deg) translateZ(calc(var(--die, 84px) / 2)); }
@media (max-width: 520px) { .tray { gap: 18px; min-height: 240px; } .die-pos { --die: 64px; } }

/* ─── Münze ─── */
.coin-area { position: relative; width: 100%; height: 360px; display: grid; place-items: end center; padding-bottom: 40px; perspective: 1000px; }
.coin-shadow { position: absolute; bottom: 26px; width: 150px; height: 22px; border-radius: 50%; background: rgba(11,11,38,.45); }
.coin-pos { position: relative; width: 190px; height: 190px; perspective: 900px; }
.coin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.coin-face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; display: grid; place-items: center; }
.coin-face svg { width: 100%; height: 100%; display: block; }
.coin-face.tails { transform: rotateX(180deg); }
.coin-edge { position: absolute; inset: 0; border-radius: 50%; background: #C98E00; border: var(--line) solid var(--ink); }
.tally { display: flex; gap: 12px; flex-wrap: wrap; }
.tally-item { flex: 1; min-width: 110px; border: var(--line) solid var(--ink); border-radius: 14px; padding: 8px 12px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.tally-item b { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 400; line-height: 1.1; }
.tally-item span { font-weight: 700; font-size: .875rem; }
.link-btn { align-self: flex-start; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }

/* ─── Namen ziehen ─── */
.slot {
  position: relative; width: min(100%, 460px); height: calc(var(--row) * 3 + 10px); --row: 76px; overflow: hidden;
  background: linear-gradient(var(--paper) var(--row), #FFE79A var(--row) calc(var(--row) * 2), var(--paper) calc(var(--row) * 2));
  border: 5px solid var(--ink); border-radius: 22px; box-shadow: 7px 7px 0 var(--ink);
}
.slot::before, .slot::after { content: ''; position: absolute; left: 0; right: 0; height: var(--row); z-index: 2; pointer-events: none; }
.slot::before { top: 0; background: linear-gradient(var(--paper), rgba(255,248,230,.35)); }
.slot::after { bottom: 0; background: linear-gradient(rgba(255,248,230,.35), var(--paper)); }
.slot-frame { position: absolute; left: -2px; right: -2px; top: calc(var(--row) - 2px); height: calc(var(--row) + 4px); border-block: 5px solid var(--ink); z-index: 3; pointer-events: none; }
.reel { position: relative; z-index: 1; will-change: transform; }
.reel-item { height: var(--row); display: grid; place-items: center; font-family: var(--display); font-size: clamp(1.4rem, 6vw, 2.2rem); color: var(--ink); padding: 0 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-list { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 10px; counter-reset: none; }
.order-list li { display: flex; align-items: center; gap: 14px; background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 8px 14px 8px 8px; }
.order-n { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); border: var(--line) solid var(--ink); font-family: var(--display); font-size: 1.25rem; }
.order-list li:nth-child(1) .order-n { background: var(--red); color: var(--paper); }
.order-name { font-family: var(--display); font-size: 1.35rem; overflow-wrap: anywhere; }

/* ─── Zahl ─── */
.num-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.num-inputs .field { min-width: 0; }
.num-inputs input { font-family: var(--display); font-size: 1.4rem; min-height: 54px; width: 100%; min-width: 0; }
.odo { display: flex; gap: 6px; padding: 12px; background: var(--ink); border-radius: 20px; box-shadow: 7px 7px 0 rgba(11,11,38,.55); max-width: 100%; }
.odo { margin-top: 10px; }
.odo-col { --cell: clamp(58px, 16vw, 118px); width: calc(var(--cell) * .72); height: var(--cell); overflow: hidden; background: var(--paper); border-radius: 10px; position: relative; }
.odo-col::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(11,11,38,.35), transparent 30%, transparent 70%, rgba(11,11,38,.35)); pointer-events: none; }
.odo-col.dim { opacity: .3; }
.odo-strip { will-change: transform; }
.odo-cell { height: var(--cell); display: grid; place-items: center; font-family: var(--display); font-size: calc(var(--cell) * .62); color: var(--ink); line-height: 1; }
.odo-sign { width: calc(var(--cell, 60px) * .5); }
.history { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-chip { border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; background: #fff; font-weight: 800; box-shadow: 2px 2px 0 var(--ink); }
.small-h { font-weight: 800; font-size: .9375rem; }

/* ─── Orakel ─── */
.orb-area { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.orb-q { position: relative; max-width: min(100%, 440px); background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 10px 16px; font-weight: 700; text-align: center; margin-bottom: 18px; overflow-wrap: anywhere; }
.orb-q::after { content: ''; position: absolute; left: 50%; bottom: -16px; width: 22px; height: 22px; background: var(--paper); border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.orb { position: relative; width: min(78vw, 340px); aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--ink); box-shadow: 8px 8px 0 var(--ink), 0 0 60px 6px rgba(155,92,255,.45); overflow: hidden; z-index: 1;
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0 6%, rgba(255,255,255,0) 18%), radial-gradient(circle at 50% 55%, #6B3DF5, #2A0F8F 62%, #12063D); }
.orb-cloud { position: absolute; width: 70%; height: 70%; border-radius: 50%; filter: blur(18px); opacity: .7; mix-blend-mode: screen; animation: swirl 9s linear infinite; }
.orb-cloud.c1 { left: 5%; top: 10%; background: var(--pink); }
.orb-cloud.c2 { right: 2%; bottom: 4%; background: var(--cyan); animation-duration: 12s; animation-direction: reverse; }
@keyframes swirl { from { transform: rotate(0deg) translateX(14%) rotate(0deg); } to { transform: rotate(360deg) translateX(14%) rotate(-360deg); } }
.orb-answer { position: absolute; inset: 16%; display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: clamp(1.3rem, 6vw, 2rem); line-height: 1.05; color: var(--paper); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); overflow-wrap: anywhere; }
.orb-answer.idle { font-family: var(--sans); font-weight: 800; font-size: clamp(1.1rem, 4vw, 1.4rem); -webkit-text-stroke: 0; text-shadow: none; opacity: .8; }
.orb.yes { box-shadow: 8px 8px 0 var(--ink), 0 0 80px 18px rgba(67,240,138,.75); }
.orb.no { box-shadow: 8px 8px 0 var(--ink), 0 0 80px 18px rgba(255,51,85,.75); }
.orb.maybe { box-shadow: 8px 8px 0 var(--ink), 0 0 80px 18px rgba(255,106,213,.75); }
.orb.shaking { animation: orbShake .12s linear infinite; }
.orb.shaking .orb-cloud { animation-duration: 1.2s; opacity: 1; }
@keyframes orbShake { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-6px, 3px) rotate(-3deg); } 50% { transform: translate(5px, -4px) rotate(2deg); } 75% { transform: translate(-3px, -2px) rotate(-1deg); } 100% { transform: translate(0, 0) rotate(0); } }
.orb-stand { width: min(48vw, 210px); height: 54px; margin-top: -26px; background: var(--orange); border: 5px solid var(--ink); border-radius: 12px 12px 18px 18px; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); box-shadow: inset 0 -10px 0 rgba(11,11,38,.2); }

/* ─── Effekte ─── */
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.fx-flash { position: fixed; inset: 0; background: var(--flash, #fff); pointer-events: none; z-index: 55; }

/* ─── Fuß, Hinweise, Dialoge ─── */
.foot { display: flex; justify-content: center; gap: 24px; padding: 8px 16px 26px; }
.link { color: #DCE1FF; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 6px 2px; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; z-index: 70;
  background: var(--ink); color: var(--paper); font-weight: 700; padding: 12px 18px; border-radius: 14px; border: 2px solid var(--paper);
  transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { text-align: center; font-weight: 800; padding: 20px; }
.lost { padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 460px; margin: 30px auto; }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: 4rem; line-height: 1; }
dialog { border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(11, 11, 38, .7); }
.doc { margin: auto; width: min(100% - 24px, 680px); max-height: min(100dvh - 24px, 900px); background: var(--paper); border: var(--line) solid var(--ink); border-radius: 20px; padding: 0; box-shadow: 8px 8px 0 var(--ink); }
.doc article { padding: 28px 24px 30px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; margin-bottom: 14px; padding-right: 44px; }
.doc h3 { font-size: 1.0625rem; font-weight: 800; margin: 18px 0 6px; }
.doc p { line-height: 1.6; max-width: 68ch; }
.doc a { color: var(--stage); }
.doc-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 26px; line-height: 1; }

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