/* Domino's look: black stage, white type, red + blue as signal colors,
   Futura PT Condensed Extra Bold headlines (leading x0.85, tracking -20), bursts tilted 2deg. */
@font-face { font-family: 'DomHead'; src: url('/fonts/FuturaPTCondExtraBold.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'DomBody'; src: url('/fonts/FuturaPTBook.otf') format('opentype'); font-display: swap; }

:root {
  --red: #e31838;
  --red-deep: #b30f29;
  --blue: #006591;
  --blue-neon: #1ea7ff;
  --yellow: #ffc72c;
  --black: #000;
  --ink: #07090d;
  --panel: #0e1218;
  --panel-2: #141a23;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.62);
  --cat-action: var(--red);
  --cat-welt: var(--blue-neon);
  --cat-leute: #ffffff;
  --cat-stream: var(--yellow);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--black);
  color: #fff;
  font-family: 'DomBody', 'Futura', 'Trebuchet MS', sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
/* neon stage: red glow bottom-left, blue glow top-right, faint grid */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 100% 0%, rgba(30, 167, 255, 0.22), transparent 70%),
    radial-gradient(60vw 55vh at 0% 100%, rgba(227, 24, 56, 0.26), transparent 70%),
    #000;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

a { color: inherit; }
.head, h1, h2, h3 {
  font-family: 'DomHead', 'Futura', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.85;
  font-weight: 400;
  margin: 0;
}
.red { color: var(--red); }
.blue { color: var(--blue-neon); }
.yellow { color: var(--yellow); }
.muted { color: var(--muted); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.66);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.topbar .logo { height: 30px; display: block; }
.topbar .spacer { flex: 1; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a {
  text-decoration: none; font-family: 'DomHead'; text-transform: uppercase; font-size: 18px; letter-spacing: .01em;
  color: rgba(255,255,255,.8); padding: 6px 0; border-bottom: 2px solid transparent;
}
.topbar nav a:hover, .topbar nav a.active { color: #fff; border-color: var(--red); }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DomHead'; text-transform: uppercase; font-size: 17px; letter-spacing: .02em;
  padding: 7px 14px 6px; border-radius: 999px;
  background: rgba(227, 24, 56, 0.14); border: 1px solid rgba(227, 24, 56, 0.55);
  white-space: nowrap;
}
.live-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(227,24,56,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,24,56,.7); } 70% { box-shadow: 0 0 0 10px rgba(227,24,56,0); } 100% { box-shadow: 0 0 0 0 rgba(227,24,56,0); } }

/* ---------- bursts, buttons, panels ---------- */
.burst {
  display: inline-block; background: var(--red); color: #fff;
  font-family: 'DomHead'; text-transform: uppercase; letter-spacing: -0.01em; line-height: .9;
  padding: .22em .38em .12em; transform: rotate(-2deg);
}
.burst.blue { background: var(--blue); color: #fff; }
.burst.yellow { background: var(--yellow); color: #000; }
.burst.white { background: #fff; color: #000; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'DomHead'; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; line-height: 1;
  padding: 15px 22px 13px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--red); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(227, 24, 56, .8), inset 0 -3px 0 rgba(0,0,0,.18);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #f0213f; }
.btn:active { transform: translateY(1px); }
.btn::after { content: '›'; font-size: 1.25em; margin-top: -3px; }
.btn.noarrow::after { content: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: #fff; }
.btn.blue { background: var(--blue); box-shadow: 0 10px 30px -10px rgba(30,167,255,.7), inset 0 -3px 0 rgba(0,0,0,.18); }
.btn.small { font-size: 16px; padding: 10px 14px 8px; border-radius: 8px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}

.field { display: grid; gap: 8px; }
.field label { font-family: 'DomHead'; text-transform: uppercase; font-size: 16px; letter-spacing: .04em; color: var(--muted); }
.input {
  width: 100%; font: inherit; font-size: 19px; color: #fff;
  background: #05070a; border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--blue-neon); box-shadow: 0 0 0 4px rgba(30,167,255,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.error { color: #ff6b80; font-size: 15px; min-height: 1.2em; }

/* category tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: 'DomHead'; text-transform: uppercase; font-size: 14px; letter-spacing: .05em; color: var(--muted); }
.tag i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.c-action { --c: var(--cat-action); }
.c-welt { --c: var(--cat-welt); }
.c-leute { --c: var(--cat-leute); }
.c-stream { --c: var(--cat-stream); }
.tag i { background: var(--c); }

/* ---------- bingo card ---------- */
.bingo {
  --gap: 7px;
  position: relative;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(160deg, #10161f 0%, #07090d 60%);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 40px 80px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(30,167,255,.35);
}
.bingo-head { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.bingo-head span {
  font-family: 'DomHead'; font-size: clamp(26px, 6vw, 46px); line-height: .9; text-align: center;
  color: #fff; padding-top: 4px;
}
.bingo-head span:nth-child(odd) { color: var(--red); }
.bingo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.cell {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 10% 6% 6%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: 'DomHead'; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(10.5px, 2.35vw, 17px); line-height: .92;
  color: rgba(255,255,255,.92);
  transition: background .35s ease, color .35s ease, transform .2s ease, border-color .3s ease;
  hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal;
}
.cell::before { /* category bar */
  content: ''; position: absolute; left: 22%; right: 22%; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--c, #fff); opacity: .9;
}
.cell .t { position: relative; z-index: 2; display: block; width: 100%; }
.cell.hit { background: var(--red); border-color: rgba(255,255,255,.25); color: #fff; }
.cell.hit::before { background: #fff; }
.cell.hit::after { /* domino dot stamp */
  content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0 58%, transparent 60%);
  border: 3px solid rgba(255,255,255,.35);
  animation: stamp .45s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes stamp { from { transform: scale(1.8) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.cell.fresh { animation: fresh 1.4s ease; }
@keyframes fresh { 0% { transform: scale(1); } 20% { transform: scale(1.12); box-shadow: 0 0 0 4px #fff, 0 0 40px rgba(227,24,56,.9); z-index: 3; } 100% { transform: scale(1); } }
.cell.line { box-shadow: 0 0 0 3px var(--yellow), 0 0 26px rgba(255,199,44,.6); border-color: var(--yellow); z-index: 2; }
.cell.free {
  background: var(--blue); border-color: rgba(255,255,255,.25); flex-direction: column; gap: 4%;
  padding: 8%;
}
.cell.free::before { content: none; }
.cell.free img { width: 52%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.cell.free .t { font-size: .9em; letter-spacing: .06em; }
.cell.free.line { background: var(--blue); }

/* ---------- misc ---------- */
.kpi { font-family: 'DomHead'; line-height: .85; }
.kpi .n { font-size: 54px; display: block; line-height: .92; margin-bottom: .1em; }
.kpi .l { display: block; line-height: 1.1; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toast {
  position: fixed; left: 50%; top: 84px; z-index: 60; transform: translate(-50%, -30px); opacity: 0;
  pointer-events: none; transition: all .35s cubic-bezier(.2,1.4,.4,1);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .burst { font-size: 26px; box-shadow: 0 20px 40px -10px rgba(227,24,56,.7); white-space: nowrap; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.feed li b { font-family: 'DomHead'; font-weight: 400; text-transform: uppercase; font-size: 17px; letter-spacing: .01em; }
.feed li time { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.feed li.k-bingo b { color: var(--yellow); }
.feed li.k-win b { color: var(--yellow); }
.feed li.k-undo { opacity: .6; }

footer.site { border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer.site img { height: 26px; }

@media (max-width: 720px) {
  .topbar nav { display: none; }
  .topbar .logo { height: 24px; }
  .bingo { padding: 10px; border-radius: 16px; --gap: 5px; }
  .cell { border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- top 5 leaderboard ---------- */
.top5 { display: grid; gap: 8px; }
.t5 {
  display: grid; grid-template-columns: 26px 46px 1fr auto; gap: 12px; align-items: center; width: 100%;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line);
  color: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s;
}
.t5:hover { border-color: var(--line-2); background: rgba(255,255,255,.06); }
.t5.me { border-color: rgba(30,167,255,.6); background: rgba(30,167,255,.08); }
.t5 .rk { font-family: 'DomHead'; font-size: 30px; line-height: .8; color: var(--muted); text-align: center; }
.t5:first-child .rk { color: var(--yellow); }
.t5 .mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 46px; }
.t5 .mini i { aspect-ratio: 1; border-radius: 2px; background: rgba(255,255,255,.12); }
.t5 .mini i.h { background: var(--red); }
.t5 .mini i.f { background: var(--blue-neon); }
.t5 .mini i.l { box-shadow: 0 0 0 1px var(--yellow); }
.t5 .nm { display: grid; gap: 2px; min-width: 0; }
.t5 .nm b { font-family: 'DomHead'; font-weight: 400; text-transform: uppercase; font-size: 20px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t5 .nm em { font-style: normal; font-size: 13px; color: var(--blue-neon); letter-spacing: .05em; }
.t5 .nm small { color: var(--muted); font-size: 13px; }
.t5 .burst { font-size: 16px; white-space: nowrap; }
.t5ov { position: fixed; inset: 0; z-index: 85; display: none; place-items: center; padding: 16px; background: rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.t5ov.show { display: grid; }
.t5box { width: min(520px, 100%); padding: 22px; position: relative; }
.t5box h3 { font-size: 40px; margin-bottom: 14px; }
.t5x { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; opacity: .7; }
.top5-wide { grid-template-columns: repeat(5, 1fr); }
.top5-wide .t5 { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 16px 12px; gap: 10px; position: relative; }
.top5-wide .t5 .rk { position: absolute; left: 12px; top: 12px; }
.top5-wide .t5 .mini { width: 92px; gap: 3px; }
.top5-wide .t5 .nm { justify-items: center; max-width: 100%; }
@media (max-width: 900px) {
  .top5-wide { grid-template-columns: 1fr; }
  .top5-wide .t5 { grid-template-columns: 26px 46px 1fr auto; justify-items: stretch; text-align: left; padding: 10px 12px; }
  .top5-wide .t5 .rk { position: static; }
  .top5-wide .t5 .mini { width: 46px; gap: 2px; }
  .top5-wide .t5 .nm { justify-items: start; }
}

/* ---------- stream + promo ---------- */
.stream { padding: 14px; display: grid; gap: 12px; }
.stream-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stream-link { font-family: 'DomHead'; text-transform: uppercase; font-size: 16px; letter-spacing: .03em; text-decoration: none; color: var(--muted); }
.stream-link:hover { color: #fff; }
.stream-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.promo {
  padding: 26px; display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(30,167,255,.28), transparent 60%), var(--panel);
  border-color: rgba(30,167,255,.45);
}
.promo .promo-kick { justify-self: start; font-size: 18px; }
.promo .promo-h { font-size: clamp(38px, 4vw, 54px); }
.promo-code {
  display: grid; gap: 4px; justify-items: center; cursor: pointer; width: 100%;
  background: var(--red); color: #fff; border: 0; border-radius: 14px; padding: 16px 14px 12px;
  box-shadow: 0 16px 40px -14px rgba(227,24,56,.8), inset 0 0 0 2px rgba(255,255,255,.18);
  transition: transform .12s;
}
.promo-code:hover { transform: rotate(-1deg) scale(1.01); }
.promo-code span { font-family: 'DomHead'; font-size: clamp(40px, 5vw, 58px); line-height: .85; letter-spacing: .04em; }
.promo-code small { font-family: 'DomHead'; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; opacity: .85; }
.promo-note { margin: 0; color: var(--muted); font-size: 14px; }
.promo .btn { width: 100%; }
.promo.compact { padding: 20px; gap: 12px; }
.promo.compact .promo-h { font-size: 32px; }
.promo.compact .promo-code span { font-size: 42px; }
.top5-wide > p { grid-column: 1 / -1; }
