@font-face { font-family: "Lexend"; font-weight: 100 500; font-display: swap; src: url(fonts/lexend-400.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600 700; font-display: swap; src: url(fonts/lexend-700.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 800 900; font-display: swap; src: url(fonts/lexend-800.woff2) format("woff2"); }

:root {
  --bg: #0a0815;
  --bg2: #141029;
  --ink: #f6f0e1;
  --muted: #a69ec3;
  --dim: #6f6790;
  --gold: #e8c26a;
  --gold-hi: #fff0c2;
  --gold-lo: #9c6b22;
  --esc: #5ff0c8;
  --catch: #ff4d6d;
  --oc: #5fe0c4;
  --line: rgba(232, 194, 106, 0.18);
  --card: rgba(255, 255, 255, 0.045);
  --safe-t: max(env(safe-area-inset-top), var(--safe-top, 0px));
  --safe-b: max(env(safe-area-inset-bottom), var(--safe-bottom, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body {
  font: 16px/1.45 "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, #1d1640 0%, var(--bg) 62%) fixed, var(--bg);
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
#bg, #fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#fx { z-index: 50; }
#app { position: relative; z-index: 1; height: 100%; max-width: 520px; margin: 0 auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }

/* ---------- Bildschirme ---------- */
.screen {
  position: absolute; inset: 0; display: none; flex-direction: column;
  padding: calc(var(--safe-t) + 12px) 18px calc(var(--safe-b) + 14px);
}
.screen.on { display: flex; animation: screenIn .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 12px; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.scroll.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.dock { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.center { text-align: center; }
.small { font-size: 13.5px; color: var(--muted); }

/* ---------- Knöpfe ---------- */
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 10px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09);
  font-weight: 600; font-size: 15.5px; letter-spacing: .01em;
  transition: transform .12s, background .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary {
  color: #241503; border: 0;
  background: linear-gradient(180deg, #ffe39b 0%, var(--gold) 45%, #c8912f 100%);
  box-shadow: 0 10px 30px -10px rgba(232, 194, 106, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn.big { min-height: 60px; font-size: 18.5px; font-weight: 700; letter-spacing: .03em; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .14); color: var(--muted); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-only { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--muted); }
.icon-only svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-only:active { background: rgba(255, 255, 255, .06); }

.bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.bar h2 { flex: 1; text-align: center; font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.bar-gap { width: 44px; }
h3.sub { margin: 22px 2px 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Auge ---------- */
.eye { position: relative; }
.eye svg { width: 100%; height: auto; overflow: visible; }
.eye .iris { transition: transform .26s cubic-bezier(.3, 1.4, .5, 1); }
.eye .pupil-g { transition: transform .4s; }
.eye .lid { transition: transform .22s cubic-bezier(.5, 0, .3, 1); }
.eye .lid-top { transform: translateY(-120px); }
.eye .lid-bot { transform: translateY(90px); }
.eye.closed .lid-top, .eye.closed .lid-bot { transform: none; }
.eye .lashes { opacity: 0; transition: opacity .15s; }
.eye.closed .lashes { opacity: 1; transition-delay: .1s; }
.eye .outline { filter: drop-shadow(0 0 6px currentColor); }
.eye .rays { transform-origin: 120px 70px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Start ---------- */
#s-start { align-items: center; justify-content: center; gap: 10px; text-align: center; }
.start-eye { width: min(64vw, 270px); margin-bottom: 6px; filter: drop-shadow(0 0 28px rgba(232, 194, 106, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.title { display: flex; flex-direction: column; line-height: .92; font-weight: 800; font-size: clamp(46px, 15.5vw, 74px); letter-spacing: .06em; }
.title span {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 52%, #b07a26 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(232, 194, 106, .25));
}
.title span:last-child { margin-left: .9em; }
.tagline { color: var(--muted); font-size: 15.5px; margin: 6px 0 18px; }
.start-buttons { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.btn.daily { justify-content: flex-start; gap: 12px; text-align: left; padding-left: 16px; }
.btn.daily .col { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.btn.daily small { color: var(--muted); font-weight: 400; font-size: 13px; }
.btn.daily .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px currentColor; }
.btn.daily .check { color: var(--esc); font-weight: 800; font-size: 20px; }
.start-nav { display: flex; gap: 8px; margin-top: 22px; }
.icon-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; padding: 8px 6px; border-radius: 14px; color: var(--muted); font-size: 12.5px; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { background: rgba(255, 255, 255, .06); }
.icon-btn.owned svg { fill: var(--gold); stroke: var(--gold); }

/* ---------- Orakel wählen ---------- */
.ladder { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ladder li > button {
  width: 100%; display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--card); border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color .2s, box-shadow .2s, transform .12s;
}
.ladder li > button:active { transform: scale(.985); }
.ladder li.sel > button { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 10px 30px -14px var(--c); background: rgba(255, 255, 255, .07); }
.ladder .mini-eye { width: 74px; }
.ladder .nm { font-weight: 700; font-size: 16.5px; color: var(--c); }
.ladder .q { font-size: 13px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.ladder .lock { font-size: 12px; color: var(--dim); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.ladder .lock svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.ladder li.locked > button { opacity: .55; }
.ladder li.locked .nm { color: var(--muted); }
.stars-s { display: flex; gap: 2px; }
.stars-s svg { width: 15px; height: 15px; fill: rgba(255, 255, 255, .12); }
.stars-s svg.on { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(232, 194, 106, .7)); }
.endless-card { margin-top: 10px; }
.endless-card button {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 233, 176, .09), rgba(197, 140, 255, .06)); border: 1px dashed rgba(255, 233, 176, .35);
}
.endless-card .inf { font-size: 30px; color: var(--gold); width: 40px; text-align: center; }
.endless-card b { display: block; }
.endless-card span.d { color: var(--muted); font-size: 13px; }
.endless-card.sel button { border-style: solid; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.endless-card.locked button { opacity: .55; }
.kniffe { display: flex; flex-wrap: wrap; gap: 8px; }
.kniffe button {
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; gap: 6px;
}
.kniffe button[aria-checked="true"] { color: #241503; background: var(--gold); border-color: var(--gold); }
.kniffe button.locked { opacity: .5; }
.kniffe button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.kniff-desc { min-height: 22px; margin: 10px 2px 0; color: var(--muted); font-size: 14px; }

/* ---------- Partie ---------- */
#s-play { padding-left: 14px; padding-right: 14px; gap: 6px; }
.hud { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; }
.hud-mid { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hud-mid b { color: var(--ink); font-size: 15px; letter-spacing: .04em; margin-left: 6px; }
.hud-score { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.hud-score b { font-size: 20px; font-weight: 800; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.hud-score.bump b { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.3); color: var(--gold-hi); } }
.mult { padding: 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--dim); background: rgba(255, 255, 255, .06); transition: all .25s; }
.mult.hot { color: #241503; background: var(--gold); box-shadow: 0 0 14px rgba(232, 194, 106, .7); }
.mult.pop { animation: pop .4s; }
@keyframes pop { 40% { transform: scale(1.45) rotate(-6deg); } }

.oracle-zone { position: relative; display: flex; flex-direction: column; align-items: center; padding: 4px 0 2px; }
.halo {
  position: absolute; left: 50%; top: 52%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
  background: radial-gradient(circle, var(--oc) 0%, transparent 62%); opacity: .14; transition: opacity .35s, background .5s; pointer-events: none;
}
.rings { position: absolute; left: 50%; top: 52%; width: 250px; height: 250px; margin: -125px 0 0 -125px; opacity: .22; pointer-events: none; }
.rings svg { width: 100%; height: 100%; fill: none; stroke: var(--oc); stroke-width: 1; animation: spin 80s linear infinite; }
.oname { position: relative; font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--oc); font-weight: 700; text-shadow: 0 0 14px var(--oc); }
.play-eye { position: relative; width: min(58vw, 236px); margin: 2px 0 0; color: var(--oc); }
.play-eye.fear { animation: tremble .3s linear 2; }
@keyframes tremble { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.oracle-info { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; min-height: 58px; margin-top: 2px; }
.seal, .sure, .gaze {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: var(--muted); white-space: nowrap;
}
.seal svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 2; }
.seal svg path { opacity: 0; transition: opacity .2s; }
.seal b { font-family: ui-monospace, Consolas, monospace; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.seal.stamp { animation: stampIn .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stampIn { from { transform: scale(1.8); opacity: 0; } }
.seal.broken { border-color: rgba(95, 240, 200, .35); }
.seal.broken svg path { opacity: 1; stroke: var(--esc); }
.sure b { color: var(--ink); font-weight: 700; }
.sure .meter { width: 34px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.sure .meter i { display: block; height: 100%; background: var(--oc); border-radius: 3px; transition: width .3s; }
.gaze { flex-basis: auto; color: var(--ink); border-color: color-mix(in srgb, var(--oc) 45%, transparent); }
.gaze em { font-style: normal; color: var(--oc); font-weight: 700; }
.gaze.hidden-g em { color: var(--dim); }
.gaze.gflash { animation: gazeFlash .5s; }
.sure:empty, .mult:empty { display: none; }
@keyframes gazeFlash { 30% { background: color-mix(in srgb, var(--oc) 35%, transparent); } }

.timer { height: 4px; margin: 6px 6px 8px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; transform-origin: center; background: linear-gradient(90deg, var(--gold-lo), var(--gold), var(--gold-lo)); box-shadow: 0 0 10px var(--gold); }
.timer i.low { background: var(--catch); box-shadow: 0 0 12px var(--catch); }

.doors { position: relative; flex: 1; min-height: 210px; max-height: 430px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px 4px 0; }
.door {
  --r: 50% 50% 12px 12px / 30% 30% 12px 12px;
  position: relative; border-radius: var(--r); padding: 5px; perspective: 900px;
  background: linear-gradient(160deg, #f3d48a, #8e6120 35%, #e8c26a 55%, #6b4614 85%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  transition: transform .14s, box-shadow .3s, filter .3s;
}
.door::before { content: ""; position: absolute; inset: 5px; border-radius: var(--r); background: #05030b; }
.door .light {
  position: absolute; inset: 5px; border-radius: var(--r); opacity: 0; transition: opacity .35s;
  background: radial-gradient(70% 60% at 50% 55%, #fff8de 0%, color-mix(in srgb, var(--esc) 70%, #fff) 30%, rgba(95, 240, 200, .15) 65%, transparent 80%);
}
.door .leaf {
  position: absolute; inset: 5px; border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #33285e 0%, #1e1740 48%, #140f2b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -30px 50px rgba(0, 0, 0, .35);
  transform-origin: left center; transition: transform .55s cubic-bezier(.2, .9, .25, 1), background .3s;
  backface-visibility: hidden;
}
#d1 .leaf { transform-origin: right center; }
.door .panel { position: absolute; inset: 13% 15% 9%; border-radius: 50% 50% 6px 6px / 26% 26% 6px 6px; border: 1.5px solid rgba(232, 194, 106, .28); }
.door .panel::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: rgba(232, 194, 106, .5); box-shadow: 0 9px 0 -2px rgba(232, 194, 106, .5); }
.door .num {
  position: relative; font-weight: 800; font-size: clamp(54px, 17vw, 88px); line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--ink); text-shadow: 0 0 22px rgba(232, 194, 106, .45), 0 3px 0 rgba(0, 0, 0, .35);
}
.door .num.flip { animation: numIn .35s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes numIn { from { transform: scale(.4) rotateX(70deg); opacity: 0; } }
.door .medal { display: none; position: absolute; top: 16%; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #3a2204; background: linear-gradient(180deg, #fff2c7, #e0a83c); box-shadow: 0 0 14px rgba(255, 210, 110, .8); }
.door.gold { background: linear-gradient(160deg, #fff6d6, #c8902c 30%, #fff1c4 52%, #8a5a14 85%); box-shadow: 0 0 34px -6px rgba(255, 205, 90, .75), 0 18px 40px -18px #000; }
.door.gold .leaf { background: linear-gradient(140deg, #6e4510 0%, #d7a646 28%, #fff0bf 44%, #c99331 60%, #6c430d 100%); background-size: 220% 220%; animation: sheen 3s linear infinite; }
@keyframes sheen { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.door.gold .num { color: #2c1802; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.door.gold .panel { border-color: rgba(60, 35, 5, .35); }
.door.gold .medal { display: block; }
.door:active { transform: scale(.975); }
.door.picked { transform: scale(.97); }
.door.open .leaf { transform: rotateY(-80deg); }
#d1.open .leaf { transform: rotateY(80deg); }
.door.open .light { opacity: 1; }
.door.open { box-shadow: 0 0 40px -4px color-mix(in srgb, var(--esc) 70%, transparent), 0 18px 40px -18px #000; }
.door.trap { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--oc) 70%, transparent)); }
.door.caught { animation: hitShake .42s; background: linear-gradient(160deg, #ffb0bd, #a31533 40%, #ff4d6d 60%, #5a0718); }
.door.caught .leaf { background: linear-gradient(165deg, #5a1630, #2c0b1d 60%, #1a0612); }
.door.caught .num { color: #ffd0d8; text-shadow: 0 0 20px var(--catch); }
@keyframes hitShake { 15% { transform: translateX(-7px) rotate(-1.5deg); } 35% { transform: translateX(6px) rotate(1deg); } 55% { transform: translateX(-4px); } 75% { transform: translateX(2px); } }
.door .stamp {
  position: absolute; left: 50%; top: 46%; z-index: 3; padding: 6px 10px; border: 3px solid var(--catch); border-radius: 8px;
  color: var(--catch); background: rgba(20, 4, 12, .72); font-weight: 800; font-size: clamp(13px, 4vw, 17px); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-14deg) scale(2.2); opacity: 0; pointer-events: none;
}
.door.caught .stamp { animation: stamp .32s cubic-bezier(.3, 1.5, .5, 1) .06s forwards; }
@keyframes stamp { to { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 1; } }
.doors.wait .door { pointer-events: none; }

.beam {
  position: absolute; z-index: 2; left: 0; top: 0; width: 120px; height: 200px; pointer-events: none; opacity: 0;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); transform-origin: 50% 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--oc) 85%, transparent) 0%, color-mix(in srgb, var(--oc) 20%, transparent) 70%, transparent 100%);
  mix-blend-mode: screen; transition: opacity .2s;
}
.beam.on { opacity: .75; }
.beam.red { background: linear-gradient(180deg, rgba(255, 77, 109, .95), rgba(255, 77, 109, .3) 70%, transparent); }

.msg { min-height: 34px; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: .02em; margin-top: 8px; }
.msg.good { color: var(--esc); text-shadow: 0 0 18px rgba(95, 240, 200, .5); animation: msgIn .4s cubic-bezier(.2, 1.6, .4, 1); }
.msg.bad { color: var(--catch); text-shadow: 0 0 18px rgba(255, 77, 109, .5); animation: msgIn .4s cubic-bezier(.2, 1.6, .4, 1); }
.msg.info { color: var(--muted); font-size: 15px; font-weight: 600; }
@keyframes msgIn { from { transform: scale(.6); opacity: 0; } }
.track { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 10px; padding: 2px 0 4px; }
.track span { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 2px; background: rgba(255, 255, 255, .1); }
.track span.e { background: var(--esc); box-shadow: 0 0 6px rgba(95, 240, 200, .6); }
.track span.c { background: var(--catch); }
.track span.new { animation: dotIn .35s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes dotIn { from { transform: rotate(45deg) scale(0); } }
.track.big { gap: 5px; }
.track.big span { width: 8px; height: 8px; }
.lives { position: absolute; top: calc(var(--safe-t) + 62px); right: 18px; display: flex; gap: 4px; }
.lives i { width: 12px; height: 12px; border-radius: 50%; background: var(--esc); box-shadow: 0 0 8px var(--esc); transition: all .3s; }
.lives i.lost { background: rgba(255, 255, 255, .1); box-shadow: none; }

.intro {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center; background: rgba(8, 6, 18, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .3s both;
}
.intro.out { animation: fadeOut .35s both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.intro-eye { width: min(70vw, 300px); color: var(--oc); filter: drop-shadow(0 0 30px color-mix(in srgb, var(--oc) 50%, transparent)); }
.intro h2 { font-size: 30px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--oc); text-shadow: 0 0 24px var(--oc); }
.intro p { color: var(--ink); font-size: 17px; max-width: 300px; }
.intro .intro-hint { color: var(--muted); font-size: 14px; }

#app.shake { animation: appShake .4s; }
@keyframes appShake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } }
.flash { position: fixed; inset: 0; z-index: 40; pointer-events: none; background: radial-gradient(circle at 50% 60%, rgba(255, 77, 109, .35), transparent 70%); animation: fadeOut .5s forwards; }

/* ---------- Ergebnis ---------- */
.res-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 6px; }
.res-eye { width: min(46vw, 190px); color: var(--oc); filter: drop-shadow(0 0 20px color-mix(in srgb, var(--oc) 45%, transparent)); }
.res-head h2 { font-size: clamp(30px, 9vw, 40px); font-weight: 800; letter-spacing: .02em; margin-top: 4px; }
.res-head h2.win { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-head h2.lose { color: var(--catch); }
.stars { display: flex; gap: 10px; margin: 4px 0; }
.stars svg { width: 38px; height: 38px; fill: rgba(255, 255, 255, .1); }
.stars svg.on { fill: var(--gold); filter: drop-shadow(0 0 10px rgba(232, 194, 106, .8)); animation: starIn .45s cubic-bezier(.2, 1.8, .4, 1) both; }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); } }
.res-line { font-size: 18px; font-weight: 600; }
.res-points { font-size: 15px; color: var(--muted); }
.res-note { font-size: 14px; color: var(--gold); min-height: 20px; }
.card { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.card h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.pattern ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pattern li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.4; }
.pattern li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--oc); border-radius: 1px; }
.traitor { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); font-weight: 600; }
.traitor em { font-style: normal; color: var(--catch); }
.tip { margin-top: 6px; color: var(--muted); font-size: 14px; }
.code { margin: 12px 0; padding: 12px; border-radius: 12px; text-align: center; font: 700 20px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--gold); background: rgba(0, 0, 0, .35); border: 1px dashed var(--line); -webkit-user-select: all; user-select: all; word-break: break-all; }
.note { min-height: 22px; margin-top: 10px; text-align: center; font-size: 14px; color: var(--esc); }

/* ---------- Duell ---------- */
.duel-art { display: flex; justify-content: center; gap: 0; margin: 8px 0 16px; }
.duel-art .eye { width: 140px; }
.duel-art .eye + .eye { margin-left: -20px; }
.lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.label { display: block; font-size: 13px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1; min-width: 0; font: 700 17px ui-monospace, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--gold); -webkit-user-select: text; user-select: text;
}
.code-row .btn { flex: none; }
.err { min-height: 22px; color: var(--catch); font-size: 14px; margin-top: 8px; }
.versus { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.vs b { display: block; text-align: left; font-size: 17px; margin-bottom: 6px; }
.bar-v { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar-v i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.vs.you i { background: linear-gradient(90deg, #3fc6a5, var(--esc)); }
.vs.oracle i { background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.verdict { font-size: 19px; font-weight: 700; margin-top: 6px; }

/* ---------- Statistik ---------- */
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-tile { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 255, 255, .06); }
.st-tile b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-tile span { font-size: 13px; color: var(--muted); }
.st-read { margin-top: 10px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(232, 194, 106, .1), rgba(197, 140, 255, .06)); border: 1px solid var(--line); }
.st-read .big { font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.st-read p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.gauge { position: relative; height: 10px; border-radius: 5px; margin-top: 12px; background: linear-gradient(90deg, var(--esc), #c9c3e0 50%, var(--catch)); }
.gauge i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px #fff; }
.gauge::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(255, 255, 255, .5); }
.st-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--card); }
.st-list .eye { width: 44px; }
.st-list .nm { font-weight: 600; color: var(--c); }
.st-list .sb { font-size: 12.5px; color: var(--muted); }
.chart { position: relative; height: 120px; margin-top: 8px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart.locked { filter: blur(3px); opacity: .5; }
.chart-lock { margin-top: 8px; color: var(--muted); font-size: 13.5px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.st-empty { color: var(--muted); text-align: center; margin: 30px 0; }
.st-h { margin: 22px 2px 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Einstellungen ---------- */
.set-row, .set-link { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 16px; color: var(--ink); text-decoration: none; width: 100%; text-align: left; }
.set-link svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.seg button { padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.seg button[aria-checked="true"] { background: var(--gold); color: #241503; }
.toggle { position: relative; width: 52px; height: 30px; border-radius: 15px; background: rgba(255, 255, 255, .12); transition: background .2s; }
.toggle i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle[aria-checked="true"] { background: var(--gold); }
.toggle[aria-checked="true"] i { transform: translateX(22px); }
.version { margin-top: 24px; text-align: center; font-size: 12.5px; color: var(--dim); }

/* ---------- Blätter (Dialoge) ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 3, 12, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s both; }
.sheet-card {
  position: relative; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  padding: 26px 22px calc(var(--safe-b) + 22px); border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #221a44, #120d26);
  border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); animation: sheetUp .38s cubic-bezier(.2, .9, .25, 1) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-card h2 { text-align: center; font-size: 24px; font-weight: 800; }
.sheet-card.small-card { padding-top: 30px; }
.sheet-x { position: absolute; right: 12px; top: 12px; }
.how { text-align: center; }
.how p { color: var(--muted); font-size: 16px; min-height: 48px; }
.how-art { height: 170px; display: flex; align-items: center; justify-content: center; }
.how-dots { display: flex; justify-content: center; gap: 8px; margin: 4px 0 6px; }
.how-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .15); transition: all .25s; }
.how-dots i.on { background: var(--gold); width: 22px; border-radius: 4px; }
.mini-doors { display: flex; gap: 12px; }
.mini-door { position: relative; width: 74px; height: 112px; border-radius: 37px 37px 8px 8px; padding: 4px; background: linear-gradient(160deg, #f3d48a, #8e6120 40%, #e8c26a); }
.mini-door span { position: absolute; inset: 4px; border-radius: 33px 33px 6px 6px; display: grid; place-items: center; font-weight: 800; font-size: 34px; background: linear-gradient(165deg, #33285e, #140f2b); }
.mini-door.trap span { background: linear-gradient(165deg, #5a1630, #1a0612); color: #ffc0cc; }
.mini-door.free span { background: radial-gradient(circle, #fff8de, #5ff0c8 50%, #1c4a46); color: #08221d; }
.how .eye { width: 190px; }
.full-eyes { display: flex; justify-content: center; margin: 0 0 4px; }
.full-eyes .eye { width: 70px; margin: 0 -8px; }
.full-list { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.full-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.full-list li::before { content: ""; flex: none; width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold); border-radius: 2px; box-shadow: 0 0 8px var(--gold); }

.toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 28px); z-index: 60; transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: #2a2150; border: 1px solid var(--line); font-size: 14px; transition: all .25s; pointer-events: none; max-width: 90%; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Browser: Fußzeile mit Impressum nur außerhalb der App nötig, Einstellungen enthalten die Links */
@media (min-height: 860px) { .doors { max-height: 470px; } }
@media (max-height: 640px) {
  .play-eye { width: min(46vw, 180px); }
  .oracle-info { min-height: 30px; }
  .doors { min-height: 170px; }
  .start-eye { width: 46vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
