/* N1 Play – Oberfläche
 * Aufbau: Grundlagen · Kopfzeile · Anmeldung · Lobby · Spiel · Dialoge · Verwaltung · Responsive */

:root {
  --ink: #0e0a24;
  --ink-deep: #08061a;
  --panel: #19133f;
  --panel-2: #231b55;
  --line: #352b78;
  --text: #f1edff;
  --muted: #a39cd6;
  --cyan: #22e3f2;
  --mag: #ff3fbf;
  --gold: #ffc93c;
  --gold-deep: #d98e12;
  --ok: #43e08a;
  --bad: #ff5a6e;
  --acc: #22e3f2;
  --acc2: #ff3fbf;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --ui: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gfont: var(--ui);
  --head-h: 60px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(34, 227, 242, .10), transparent 60%),
    radial-gradient(1000px 600px at 95% 0%, rgba(255, 63, 191, .10), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  color: var(--text);
  font: 500 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 0; text-decoration: none;
  background: linear-gradient(180deg, #ffe28a, var(--gold) 45%, var(--gold-deep));
  color: #2a1700; font-weight: 800; letter-spacing: .2px;
  box-shadow: 0 4px 0 #8a5206, 0 10px 24px rgba(255, 180, 40, .25);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a5206; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.wide { width: 100%; }

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(18px, env(safe-area-inset-left));
  background: rgba(10, 7, 30, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--mag), transparent); opacity: .5; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 34px; width: auto; }
.brand-icon { display: none; }
.top-right { display: flex; align-items: center; gap: 10px; }
.wallet {
  display: flex; align-items: center; gap: 8px; height: 40px;
  padding: 0 16px 0 8px; border-radius: 999px;
  background: linear-gradient(180deg, #221a52, #150f38); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .35);
  font-weight: 800; font-size: 17px; color: var(--gold); font-variant-numeric: tabular-nums;
}
.wallet .coin { width: 26px; height: 26px; }
.wallet.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.07); } }
.daily {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; font-weight: 700;
  background: linear-gradient(90deg, var(--cyan), var(--mag)); color: #fff;
  box-shadow: 0 6px 18px rgba(255, 63, 191, .35);
  animation: pulse 2.4s ease-in-out infinite;
}
.daily svg { width: 18px; height: 18px; }
.daily b { font-weight: 800; }
@keyframes pulse { 50% { box-shadow: 0 6px 26px rgba(34, 227, 242, .55); } }
.usermenu { position: relative; }
.usermenu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  display: grid; padding: 6px; border-radius: var(--r-m);
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .55);
}
.menu a, .menu button { text-align: left; text-decoration: none; padding: 10px 12px; border-radius: var(--r-s); background: none; border: 0; }
.menu a:hover, .menu button:hover { background: var(--line); }

main { max-width: 1260px; margin: 0 auto; padding: 26px 18px 60px; }

/* ---------- Anmeldung ---------- */
.auth { min-height: calc(100vh - 80px); display: grid; place-items: center; }
.auth-box {
  width: min(420px, 100%); padding: 34px 30px; border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(35, 27, 85, .9), rgba(20, 15, 50, .9));
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .5);
}
.auth-box .logo { height: 56px; width: auto; margin: 0 auto 22px; }
.auth h1 { font-size: 26px; line-height: 1.2; text-align: center; margin: 0 0 6px; font-weight: 800; }
.auth p.sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input { padding: 12px 14px; border-radius: 10px; background: var(--ink-deep); border: 1px solid var(--line); }
.field input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34, 227, 242, .2); }
.err { color: var(--bad); font-weight: 600; min-height: 1.5em; margin: 4px 0 10px; }

/* ---------- Lobby ---------- */
.ka { position: relative; overflow: hidden; background: var(--bgimg) center / cover, var(--ink-deep); }
.ka::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 6, 26, .85)); }
.ka-s { position: absolute; z-index: 1; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }

.hero {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  min-height: 320px; border-radius: 26px; overflow: hidden; margin-bottom: 34px;
  background: var(--ink-deep); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px rgba(0, 0, 0, .45);
}
.hero .ka { position: absolute; inset: 0; }
.hero .ka::after { background: linear-gradient(90deg, rgba(8, 6, 26, .2) 30%, rgba(8, 6, 26, .92) 62%); }
.hero .ka-l { width: 25%; left: 3%; top: 26%; transform: rotate(-8deg); }
.hero .ka-m { width: 31%; left: 17%; top: 10%; }
.hero .ka-r { width: 22%; left: 37%; top: 40%; transform: rotate(9deg); }
.hero-copy { position: relative; z-index: 2; grid-column: 2; padding: 34px 40px 34px 10px; }
.hero-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.hero h1 { font-family: var(--gfont); font-weight: 700; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; margin: 14px 0 10px; color: #fff; text-shadow: 0 4px 24px color-mix(in srgb, var(--acc) 55%, transparent); }
.hero h1 small { display: block; font-size: .45em; color: var(--acc); letter-spacing: 2px; margin-top: 4px; }
.hero p { color: #d8d2f4; margin: 0 0 22px; max-width: 42ch; }
.hero-btn { font-size: 17px; padding: 14px 28px; }

.lobby-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; flex-wrap: wrap; }
.lobby-head h2 { font-size: 24px; margin: 0; font-weight: 800; }
.lobby-head p { margin: 0; color: var(--muted); }

.hall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  border-radius: 18px; overflow: hidden; background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 14px 30px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-5px); box-shadow: inset 0 0 0 2px var(--acc), 0 22px 40px rgba(0, 0, 0, .5), 0 0 30px color-mix(in srgb, var(--acc) 30%, transparent); }
.tile .ka { aspect-ratio: 1 / 1; }
.tile .ka-m { width: 62%; left: 19%; top: 12%; }
.tile .ka-l { width: 36%; left: 2%; top: 46%; transform: rotate(-10deg); }
.tile .ka-r { width: 36%; right: 2%; top: 46%; transform: rotate(10deg); }
.tile:hover .ka-m { transform: scale(1.06); transition: transform .3s ease; }
.tile-body { padding: 12px 14px 16px; display: grid; gap: 2px; margin-top: -46px; position: relative; z-index: 2; }
.tile h3 { font-family: var(--gfont); font-weight: 700; font-size: 18px; line-height: 1.15; margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.tile-kind { font-size: 13px; color: var(--muted); }
.fsnote { color: var(--gold); font-weight: 700; font-size: 13px; }

.lobby-low { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 30px; }
.panel { background: linear-gradient(180deg, var(--panel), #150f38); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-l); padding: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 17px; }
.feed, .rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feed li, .rank li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.feed .who, .rank .who { flex: 1; min-width: 0; font-weight: 700; }
.feed .who small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.feed .x { text-align: right; color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.feed .x small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.rank .pos { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--panel-2); }
.rank .top1 .pos { background: linear-gradient(180deg, #ffe28a, #d98e12); color: #2a1700; }
.rank .top2 .pos { background: linear-gradient(180deg, #ffffff, #9aa6b8); color: #1a1f2a; }
.rank .top3 .pos { background: linear-gradient(180deg, #ffd0a0, #a8622a); color: #2a1206; }
.rank .amt { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 8px 10px; background: none !important; }

/* ---------- Spiel ---------- */
body.in-game main { max-width: none; padding: 0; }
.game { position: relative; min-height: calc(100vh - var(--head-h)); display: flex; flex-direction: column; isolation: isolate; }
.game-bg { position: fixed; inset: var(--head-h) 0 0 0; z-index: -1; background: var(--bgimg) center / cover no-repeat, #05040e; }
.game-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 45%, transparent 30%, rgba(4, 3, 14, .55) 100%); }

.game-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 18px 4px; }
.g-back { justify-self: start; display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; text-decoration: none; font-weight: 700; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.g-back svg, .g-icon svg { width: 18px; height: 18px; }
.g-icon { justify-self: end; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 0; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.g-title { text-align: center; }
.g-title h1 {
  margin: 0; font-family: var(--gfont); font-weight: 700; font-size: clamp(24px, 3.4vw, 42px); line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--acc) 40%, #fff) 45%, var(--acc) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 18px color-mix(in srgb, var(--acc) 45%, transparent));
}
.g-title span { display: block; font-family: var(--gfont); font-size: 13px; letter-spacing: 4px; color: var(--acc2); margin-top: 2px; }

.g-main { flex: 1; display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 18px; align-items: center; padding: 6px 18px 10px; }
.g-side { display: grid; gap: 14px; align-self: center; }
.g-center { display: flex; flex-direction: column; align-items: center; min-width: 0; grid-column: 2; }

/* Bonus-Kauf-Karte */
.buy-card {
  display: grid; justify-items: center; gap: 2px; padding: 16px 12px 18px; border: 0; border-radius: 18px; color: #fff;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--acc) 45%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(30, 20, 60, .92), rgba(10, 7, 26, .92));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--acc) 70%, transparent), 0 12px 30px rgba(0, 0, 0, .5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.buy-card:hover:not(:disabled) { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--acc), 0 0 30px color-mix(in srgb, var(--acc) 40%, transparent); }
.buy-card:disabled { filter: grayscale(.7); opacity: .55; cursor: not-allowed; }
.bc-top { font-family: var(--gfont); font-size: 17px; font-weight: 700; color: var(--acc); }
.bc-what { font-size: 14px; color: #d8d2f4; }
.bc-price { margin-top: 8px; padding: 6px 16px; border-radius: 999px; font-weight: 800; color: #2a1700; background: linear-gradient(180deg, #ffe28a, var(--gold) 50%, var(--gold-deep)); font-variant-numeric: tabular-nums; }
.side-stats { margin: 0; padding: 14px 16px; border-radius: 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13.5px; background: rgba(8, 6, 22, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.side-stats dt { color: var(--muted); }
.side-stats dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Walzenrahmen */
.reel-frame { position: relative; border-radius: 26px; padding: 12px; max-width: 100%; }
.board-wrap {
  position: relative; margin: 0 auto;
  width: min(calc((100vh - 310px) * var(--ratio)), calc(100vw - 520px));
  min-width: 280px;
}
.in-fs .board-wrap { width: min(calc((100vh - 360px) * var(--ratio)), calc(100vw - 520px)); }
.frame-gold .reel-frame {
  background: linear-gradient(160deg, #fff4c2, #f0b429 18%, #8a5206 40%, #ffd76a 60%, #a8660a 82%, #ffe7a0);
  box-shadow: 0 0 0 3px #3a1d00, 0 0 0 6px rgba(255, 210, 100, .35), 0 30px 70px rgba(0, 0, 0, .65), 0 0 60px color-mix(in srgb, var(--acc) 30%, transparent);
}
.frame-bronze .reel-frame {
  background: linear-gradient(160deg, #ffd8b0, #b8682a 22%, #4a2208 45%, #c47a3a 65%, #5a2a0a 85%, #e2a070);
  box-shadow: 0 0 0 3px #1a0a02, 0 0 0 6px rgba(181, 92, 255, .35), 0 30px 70px rgba(0, 0, 0, .7), 0 0 70px rgba(181, 92, 255, .25);
}
.frame-neon .reel-frame {
  background: linear-gradient(160deg, #e6ecf4, #6a7488 25%, #1a1f2c 50%, #8a94a8 75%, #2a3040);
  box-shadow: 0 0 0 2px var(--acc), 0 0 22px var(--acc), 0 0 0 6px rgba(255, 43, 214, .55), 0 0 48px rgba(255, 43, 214, .45), 0 30px 70px rgba(0, 0, 0, .7);
}
.frame-chrome .reel-frame {
  background: linear-gradient(160deg, #ffffff, #c8d0dc 20%, #6a7280 45%, #f4f7fb 62%, #7a8290 85%, #e8edf4);
  box-shadow: 0 0 0 3px #2a0008, 0 0 0 7px #ff3a5a, 0 0 30px rgba(255, 58, 90, .6), 0 30px 70px rgba(0, 0, 0, .7);
}
.frame-chrome .reel-frame::before {
  content: ''; position: absolute; inset: -13px; border-radius: 32px; pointer-events: none;
  background: radial-gradient(circle, #fff6c0 0 3px, #ffb000 4px, transparent 6px) 0 0 / 26px 26px;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 4px; opacity: .95; animation: bulbs 1.2s steps(2) infinite;
}
@keyframes bulbs { 50% { opacity: .55; } }
.frame-gold .reel-frame::after, .frame-bronze .reel-frame::after {
  content: ''; position: absolute; inset: 4px; border-radius: 22px; pointer-events: none;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .35);
}

.board {
  position: relative; display: flex; gap: 5px; width: 100%; height: 100%;
  padding: 7px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .1)), var(--cell);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55), inset 0 10px 30px rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
}
.board::before { content: ''; position: absolute; inset: 0; background: var(--bgimg) center / cover; opacity: .18; z-index: -1; }
.col { flex: 1; display: flex; flex-direction: column; gap: 5px; overflow: hidden; border-radius: 10px; position: relative; }
.col + .col::before { content: ''; position: absolute; left: -3px; top: 6%; bottom: 6%; width: 1px; background: linear-gradient(transparent, rgba(255, 255, 255, .12), transparent); }
.cell {
  position: relative; flex: 1; min-height: 0; display: grid; place-items: center;
  border-radius: 10px; container-type: size;
  background: radial-gradient(80% 80% at 50% 40%, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
}
.cell .sym { width: 90%; height: 90%; object-fit: contain; pointer-events: none; user-select: none; transition: transform .2s ease; }
.cell.scatter { background: radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--c) 30%, transparent), rgba(255, 255, 255, .02)); }
.cell.hit { background: radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--c, var(--acc)) 55%, transparent), color-mix(in srgb, var(--c, var(--acc)) 12%, transparent)); box-shadow: inset 0 0 0 2px var(--c, var(--acc)), 0 0 18px color-mix(in srgb, var(--c, var(--acc)) 60%, transparent); z-index: 2; }
.cell.hit .sym, .cell.hit .tok { animation: hit .55s ease-in-out infinite alternate; }
@keyframes hit { to { transform: scale(1.12); filter: brightness(1.2); } }
.cell.dim { opacity: .3; filter: saturate(.5); }
.cell.pop .sym, .cell.pop .tok { animation: pop .3s ease-in forwards; }
@keyframes pop { 40% { transform: scale(1.25); filter: brightness(2); } to { transform: scale(0); opacity: 0; } }
.cell.empty { background: radial-gradient(80% 80% at 50% 40%, rgba(255, 255, 255, .03), transparent); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }

/* Kugeln und Münzen mit Wert */
.tok { position: relative; width: 92%; height: 92%; display: grid; place-items: center; }
.tok img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tok b {
  position: relative; font-family: var(--gfont); font-weight: 900; line-height: 1;
  font-size: min(30cqh, 30cqw); color: #fff;
  -webkit-text-stroke: 4px rgba(20, 8, 0, .85); paint-order: stroke fill;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.tok.coin b { color: #fff7d6; font-size: min(26cqh, 26cqw); }
.tok.jp b { font-size: min(15cqh, 15cqw); letter-spacing: .5px; }

/* Multiplikatorfelder */
.spot { position: absolute; inset: 1px; border-radius: 9px; pointer-events: none; z-index: 1; }
.spot.mark { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--acc) 80%, transparent), inset 0 0 14px color-mix(in srgb, var(--acc) 45%, transparent); }
.spot.mult { box-shadow: inset 0 0 0 2px var(--acc2), inset 0 0 18px color-mix(in srgb, var(--acc2) 55%, transparent), 0 0 12px color-mix(in srgb, var(--acc2) 50%, transparent); }
.spot.mult::after {
  content: '×' attr(data-x); position: absolute; right: 2px; bottom: 2px;
  font-family: var(--gfont); font-weight: 900; font-size: 11px; line-height: 1; color: #fff;
  padding: 3px 5px; border-radius: 6px; background: var(--acc2); box-shadow: 0 0 10px var(--acc2);
}

/* Linien */
.lines { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.lines polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .7)) drop-shadow(0 0 2px rgba(0, 0, 0, .9)); }

/* Expandierendes Symbol */
.expand {
  position: absolute; inset: 0; border-radius: 10px; display: grid; place-items: center; z-index: 3;
  background: radial-gradient(80% 50% at 50% 50%, color-mix(in srgb, var(--acc) 50%, #000), color-mix(in srgb, var(--acc) 15%, #000));
  box-shadow: inset 0 0 0 3px var(--acc), 0 0 26px var(--acc); container-type: size;
  animation: grow .5s cubic-bezier(.2, .9, .3, 1.3);
}
.expand .sym { width: 92%; height: auto; max-height: 34%; object-fit: contain; filter: drop-shadow(0 0 16px var(--acc)); }
@keyframes grow { from { transform: scaleY(.3); opacity: 0; } }

/* Gewinn-Einblendungen */
.burst {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 8;
  font-family: var(--gfont); font-weight: 900; font-size: clamp(30px, 6vw, 70px); line-height: 1; color: #fff3b0;
  -webkit-text-stroke: 6px #3a1a00; paint-order: stroke fill;
  text-shadow: 0 6px 0 #3a1a00, 0 0 34px rgba(255, 201, 60, .8); white-space: nowrap; pointer-events: none;
  animation: burst 1.3s ease forwards;
}
.burst small { display: block; font-size: .36em; color: #fff; -webkit-text-stroke: 3px #000; text-align: center; margin-top: 8px; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -62%) scale(1); opacity: 0; } }

.bigwin, .g-overlay {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; text-align: center; overflow: hidden;
  border-radius: 26px; background: radial-gradient(circle, rgba(6, 4, 18, .78), rgba(6, 4, 18, .94));
  backdrop-filter: blur(5px); animation: fadein .25s ease;
}
.bigwin.out, .g-overlay.out { animation: fadeout .22s ease forwards; }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
.bw-rays { position: absolute; width: 180%; aspect-ratio: 1; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--acc) 35%, transparent) 0 8deg, transparent 8deg 20deg); animation: spinr 14s linear infinite; opacity: .55; -webkit-mask: radial-gradient(circle, #000 15%, transparent 65%); mask: radial-gradient(circle, #000 15%, transparent 65%); }
@keyframes spinr { to { transform: rotate(360deg); } }
.bw-in { position: relative; animation: zoom .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes zoom { from { transform: scale(.3); } }
.bigwin .label { font-family: var(--gfont); font-weight: 900; font-size: clamp(26px, 4.5vw, 52px); color: #fff; -webkit-text-stroke: 5px #200a2a; paint-order: stroke fill; text-shadow: 0 0 30px var(--acc); }
.bigwin .amt { font-family: var(--gfont); font-weight: 900; font-size: clamp(46px, 10vw, 110px); line-height: 1.05; color: #ffe27a; -webkit-text-stroke: 7px #3a1a00; paint-order: stroke fill; text-shadow: 0 8px 0 #3a1a00, 0 0 50px rgba(255, 201, 60, .9); font-variant-numeric: tabular-nums; }
.bigwin .sub { color: #e6e0ff; font-weight: 700; margin-top: 6px; }
.tier-3 .bw-rays { animation-duration: 6s; opacity: .8; }

.ov-card { position: relative; padding: 28px 30px; max-width: 420px; animation: zoom .45s cubic-bezier(.2, .9, .3, 1.3); }
.ov-kicker { display: inline-block; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: color-mix(in srgb, var(--acc) 30%, transparent); box-shadow: inset 0 0 0 1px var(--acc); }
.ov-big, .ov-amt { font-family: var(--gfont); font-weight: 900; line-height: 1.05; margin: 14px 0 8px; color: #fff; -webkit-text-stroke: 5px #1a0828; paint-order: stroke fill; text-shadow: 0 0 30px var(--acc); }
.ov-big { font-size: clamp(34px, 5.5vw, 60px); }
.ov-amt { font-size: clamp(44px, 8vw, 84px); color: #ffe27a; text-shadow: 0 0 40px rgba(255, 201, 60, .8); }
.ov-card p { color: #ddd6ff; margin: 6px 0 18px; }
.ov-special { display: grid; justify-items: center; gap: 4px; margin: 6px 0; font-weight: 700; }
.ov-special img { filter: drop-shadow(0 0 18px var(--acc)); animation: hit .7s ease-in-out infinite alternate; }
.ov-btn { padding: 14px 30px; border: 0; border-radius: 14px; font-weight: 800; font-size: 17px; color: #2a1700; background: linear-gradient(180deg, #ffe28a, var(--gold) 45%, var(--gold-deep)); box-shadow: 0 5px 0 #8a5206, 0 12px 30px rgba(255, 180, 40, .35); }

/* Freispiel-Leiste */
.fs-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px 16px; flex-wrap: wrap;
  margin: 0 auto 10px; padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc) 40%, rgba(8, 6, 22, .9)), transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--acc) 70%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--acc) 70%, transparent);
}
.fsb-t { font-family: var(--gfont); font-weight: 700; font-size: 18px; }
.fsb-t b, .fsb-x b { color: var(--gold); }
.fsb-x { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }

.g-info { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 34px; margin-top: 10px; }
.g-info .msg { font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-size: 13px; font-weight: 700; }
.chip b { color: var(--gold); }

/* Bedienleiste */
.deck {
  position: sticky; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 18px;
  padding: 12px max(18px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 7, 28, .82), rgba(6, 4, 18, .96));
  backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--acc) 55%, transparent), 0 -20px 40px rgba(0, 0, 0, .4);
}
.meter { display: grid; justify-items: center; line-height: 1.1; }
.meter span { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; color: var(--muted); }
.meter output { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.m-bal { justify-self: end; }
.m-bal output { color: var(--gold); }
.m-win output { color: #fff; transition: color .2s ease, text-shadow .2s ease; min-width: 5ch; text-align: center; }
.m-win.lit output { color: #ffe27a; text-shadow: 0 0 16px rgba(255, 201, 60, .7); }
.betctl { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.betctl .meter { min-width: 84px; }
.pm { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(180deg, #3a2f80, #1e1750); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 3px 0 #0c0828; }
.pm svg { width: 18px; height: 18px; }
.pm:disabled { opacity: .35; cursor: not-allowed; }
.spin {
  position: relative; width: 96px; height: 96px; border-radius: 50%; border: 0; color: #fff;
  display: grid; place-items: center; margin: -26px 0 -6px;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--acc) 55%, #fff) 0%, var(--acc) 45%, color-mix(in srgb, var(--acc) 50%, #000) 100%);
  box-shadow:
    0 0 0 5px #0a0718, 0 0 0 8px color-mix(in srgb, var(--acc) 60%, #fff), 0 0 0 10px #0a0718,
    0 10px 0 4px color-mix(in srgb, var(--acc) 30%, #000), 0 18px 40px rgba(0, 0, 0, .55), 0 0 40px color-mix(in srgb, var(--acc) 45%, transparent);
  transition: transform .1s ease, filter .15s ease;
}
.spin:hover:not(:disabled) { filter: brightness(1.12); }
.spin:active:not(:disabled) { transform: translateY(4px) scale(.98); }
.spin:disabled { filter: grayscale(.4) brightness(.75); cursor: wait; }
.spin-ic svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.spin.is-busy .spin-ic svg { animation: spinr .6s linear infinite; }
.spin-lbl { position: absolute; bottom: 12px; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.spin.is-auto { background: radial-gradient(circle at 50% 35%, #ff9aa8, #ff3a5a 45%, #7a0a1e); }
.deck-tg { display: flex; gap: 10px; justify-self: start; }
.round { display: grid; justify-items: center; gap: 2px; width: 58px; padding: 7px 0 5px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.round svg { width: 20px; height: 20px; }
.round[aria-pressed="true"] { color: #fff; background: color-mix(in srgb, var(--acc) 35%, rgba(0, 0, 0, .4)); box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 16px color-mix(in srgb, var(--acc) 40%, transparent); }

/* ---------- Dialoge & Meldungen ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 16, .75); backdrop-filter: blur(6px); }
.dialog { width: min(600px, 100%); max-height: 88vh; overflow: auto; background: linear-gradient(180deg, #221a55, #15103a); box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, .7); border-radius: var(--r-l); padding: 24px; }
.dialog h2 { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.dialog .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.rules-head h2 { font-family: var(--gfont); color: var(--acc); font-weight: 700; font-size: 28px; }
.paytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; margin: 14px 0; }
.paytable.sp { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pt { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pt .ic { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.pt .vals { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.pt .vals em { display: block; font-style: normal; font-weight: 700; color: var(--text); font-size: 13px; }
.pt .vals b { color: var(--gold); }
.rules p { color: #cfc8f2; margin: 0 0 10px; }

#toasts { position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 14px; background: #241c58; box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px rgba(0, 0, 0, .5); font-weight: 600; animation: tin .25s ease; }
.toast.bad { box-shadow: inset 0 0 0 1px var(--bad), 0 14px 34px rgba(0, 0, 0, .5); }
.toast.good { box-shadow: inset 0 0 0 1px var(--ok), 0 14px 34px rgba(0, 0, 0, .5); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Verwaltung ---------- */
.admin h1 { font-size: 30px; font-weight: 800; margin: 0 0 18px; }
.admin-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); }
.tbl .tag.off { background: color-mix(in srgb, var(--bad) 30%, transparent); }
.tbl .tag.adm { background: linear-gradient(90deg, rgba(34, 227, 242, .3), rgba(255, 63, 191, .3)); }
.mini { padding: 6px 10px; font-size: 13px; border-radius: 8px; background: var(--panel-2); border: 0; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.mini:hover { box-shadow: inset 0 0 0 1px var(--cyan); }
.linkbox { display: flex; gap: 6px; margin-top: 10px; }
.linkbox input { flex: 1; min-width: 0; padding: 9px; border-radius: 8px; background: var(--ink-deep); border: 1px solid var(--line); font-size: 13px; }
.scroll-x { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 180px minmax(0, 1fr); }
  .g-main::after { display: none; }
  .board-wrap { width: min(calc((100vh - 310px) * var(--ratio)), calc(100vw - 280px)); }
  .in-fs .board-wrap { width: min(calc((100vh - 360px) * var(--ratio)), calc(100vw - 280px)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .ka { position: relative; height: 220px; }
  .hero .ka::after { background: linear-gradient(180deg, transparent 40%, rgba(8, 6, 26, .95)); }
  .hero .ka-l { width: 30%; left: 6%; top: 20%; } .hero .ka-m { width: 38%; left: 31%; top: 4%; } .hero .ka-r { width: 28%; left: 66%; top: 26%; }
  .hero-copy { grid-column: 1; padding: 0 22px 24px; margin-top: -30px; }
  .lobby-low, .admin-grid { grid-template-columns: 1fr; }
  .g-main { grid-template-columns: 1fr; gap: 10px; padding: 4px 10px 8px; }
  .g-center { grid-column: 1; }
  .g-side { order: 2; grid-template-columns: 1fr; width: min(440px, 100%); justify-self: center; }
  .g-main { align-items: start; align-content: center; }
  .buy-card { grid-template-columns: auto 1fr auto; grid-auto-flow: column; justify-items: start; align-items: center; gap: 4px 12px; padding: 10px 14px; text-align: left; }
  .bc-price { margin: 0; grid-row: span 2; }
  .side-stats { display: none; }
  .board-wrap, .in-fs .board-wrap { width: min(calc((100vh - 380px) * var(--ratio)), calc(100vw - 44px)); }
  .deck { grid-template-columns: 1fr auto 1fr; grid-template-areas: 'bal spin win' 'bet spin tg'; gap: 8px 12px; }
  .m-bal { grid-area: bal; justify-self: center; } .m-win { grid-area: win; }
  .betctl { grid-area: bet; justify-self: center; } .spin { grid-area: spin; margin: 0; } .deck-tg { grid-area: tg; justify-self: center; }
}
@media (max-width: 560px) {
  :root { --head-h: 54px; }
  main { padding: 16px 12px 40px; }
  .brand-logo { display: none; } .brand-icon { display: block; }
  .daily .d-long { display: none; }
  .wallet { padding-right: 12px; font-size: 15px; }
  .hall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile h3 { font-size: 15px; }
  .game-head { padding: 8px 10px 2px; }
  .g-back span { display: none; }
  .reel-frame { padding: 7px; border-radius: 18px; }
  .board { gap: 3px; padding: 4px; border-radius: 12px; }
  .col { gap: 3px; }
  .cell { border-radius: 7px; }
  .board-wrap, .in-fs .board-wrap { width: calc(100vw - 34px); min-width: 0; }
  .spin { width: 80px; height: 80px; }
  .spin-ic svg { width: 36px; height: 36px; }
  .betctl { gap: 4px; padding: 4px; } .betctl .meter { min-width: 64px; }
  .pm { width: 34px; height: 34px; }
  .meter output { font-size: 17px; }
  .round { width: 50px; }
  #toasts { bottom: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
