@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
:root { --bg: #141a33; --fg: #fff; --muted: #b9c1e0; --gold: #ffd23d; --green: #3ddc6b; --red: #ff4d5e; --blue: #3dd6ff; --card: #1f2748; --line: #39437a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
body { font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif; }
#app { position: fixed; inset: 0; }
#screen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; image-rendering: pixelated; }
#ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.scr { pointer-events: auto; position: absolute; inset: 0; overflow-y: auto; padding: calc(env(safe-area-inset-top) + 56px) 14px calc(env(safe-area-inset-bottom) + 70px); display: flex; flex-direction: column; align-items: center; gap: 10px; background: rgba(12,16,34,.82); }
.scr > * { width: 100%; max-width: 560px; }
.scr.titel { justify-content: center; background: linear-gradient(180deg, rgba(12,16,34,.35), rgba(12,16,34,.88)); }
.scr.spiel { background: none; pointer-events: none; padding: 0; overflow: hidden; }
.scr.spiel > * { pointer-events: auto; max-width: none; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .9; font-size: clamp(44px, 12vw, 78px); letter-spacing: .02em; text-shadow: 4px 4px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; transform: rotate(-3deg); }
.logo span:first-child { color: var(--gold); }
.logo span + span { color: #fff; background: var(--red); padding: 2px 18px; box-shadow: 4px 4px 0 #000; margin-top: 6px; text-shadow: 3px 3px 0 #000; }
.claim, .sub { text-align: center; color: var(--muted); margin: 4px 0; }
h2 { text-align: center; margin: 4px 0; font-size: 28px; text-shadow: 3px 3px 0 #000; }
h2.win { color: var(--green); } h2.lose { color: var(--red); }
h3 { margin: 0 0 8px; } h4 { margin: 14px 0 6px; color: var(--gold); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.card { background: var(--card); border: 3px solid #000; box-shadow: 4px 4px 0 #000, inset 0 0 0 2px var(--line); padding: 12px 14px; }
.card.center { text-align: center; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.btn { appearance: none; border: 3px solid #000; background: #4a5aa8; color: #fff; font: 700 17px/1.15 "Space Grotesk", sans-serif; padding: 12px 14px; box-shadow: 4px 4px 0 #000; cursor: pointer; touch-action: manipulation; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn.big { background: var(--gold); color: #1b1b1b; font-size: 24px; padding: 16px; letter-spacing: .04em; }
.btn.small { font-size: 14px; padding: 7px 10px; width: auto; box-shadow: 3px 3px 0 #000; }
.btn.buy { background: var(--green); color: #0b2412; }
.btn.danger { background: var(--red); }
.btn[disabled] { opacity: .45; cursor: default; }
.link { appearance: none; background: none; border: 0; color: var(--muted); text-decoration: underline; font: 700 15px "Space Grotesk", sans-serif; padding: 8px; cursor: pointer; }
.top { display: flex; flex-direction: column; gap: 6px; }
.club { display: flex; align-items: center; gap: 10px; }
.club b { display: block; font-size: 19px; } .club small { color: var(--muted); }
.club > div { flex: 1; }
.ic { appearance: none; border: 3px solid #000; background: var(--card); color: #fff; width: 42px; height: 42px; font-size: 20px; box-shadow: 3px 3px 0 #000; cursor: pointer; }
.stats { display: flex; gap: 6px; flex-wrap: wrap; }
.stats span { background: var(--card); border: 2px solid #000; padding: 4px 8px; font-size: 14px; }
.stats .neg { color: var(--red); }
.kit { display: inline-block; width: 22px; height: 22px; background: linear-gradient(180deg, var(--a) 0 62%, var(--b) 62% 100%); border: 2px solid #000; vertical-align: middle; flex: none; }
.kit.s { width: 14px; height: 14px; margin-right: 6px; border-width: 1px; }
.next .nk { color: var(--gold); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.next .vs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.next .vs b { color: var(--muted); font-size: 13px; }
.next .team { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 15px; }
.next .team small { color: var(--muted); font-size: 12px; }
.next .btn.big { width: 100%; }
.next .link { display: block; margin: 4px auto 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { flex: 1 1 30%; appearance: none; border: 2px solid #000; background: var(--card); color: var(--muted); font: 700 14px "Space Grotesk", sans-serif; padding: 8px 4px; cursor: pointer; }
.tab.on { background: var(--blue); color: #0b1a30; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.seg button { flex: 1; appearance: none; border: 2px solid #000; background: #2a3466; color: var(--muted); font: 700 13px "Space Grotesk", sans-serif; padding: 7px 4px; cursor: pointer; }
.seg button.on { background: var(--gold); color: #1b1b1b; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 5px 4px; text-align: center; border-bottom: 1px solid var(--line); }
table.tbl .l { text-align: left; }
table.tbl tr.me td { background: rgba(255,210,61,.18); }
table.tbl tr.zup td:first-child { box-shadow: inset 4px 0 0 var(--green); }
table.tbl tr.zdown td:first-child { box-shadow: inset 4px 0 0 var(--red); }
table.fin { width: 100%; font-size: 15px; margin: 8px 0; }
table.fin td:last-child { text-align: right; }
.note { color: var(--muted); font-size: 13px; margin: 6px 0; line-height: 1.4; }
.warn { color: var(--gold); font-size: 14px; }
.pl { display: grid; grid-template-columns: 34px 1fr 74px auto; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pl.xi { background: rgba(61,220,107,.1); }
.pl.inj { opacity: .6; }
.pl .pos { font-size: 12px; text-align: center; padding: 3px 0; border: 2px solid #000; color: #111; }
.p-TW { background: var(--gold); } .p-AB { background: #6fa8ff; } .p-MF { background: var(--green); } .p-ST { background: #ff7a7a; }
.pl .nm b { display: block; font-size: 14px; } .pl .nm small { color: var(--muted); font-size: 12px; }
.pl .st { position: relative; height: 16px; background: #0d1226; border: 2px solid #000; }
.pl .st i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff7a7a, var(--gold), var(--green)); }
.pl .st b { position: absolute; inset: -2px 4px; font-size: 12px; line-height: 16px; text-shadow: 1px 1px 0 #000; text-align: right; }
.pl .mo { font-size: 16px; }
.up { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.up b { display: block; font-size: 15px; } .up small { color: var(--muted); font-size: 12px; }
.up .btn { font-size: 12px; text-align: center; }
.tag { color: var(--green); font-size: 13px; }
.cup { padding: 4px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.cup.me { color: var(--gold); }
.log { padding-left: 18px; font-size: 13px; color: var(--muted); }
.lbl { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
input, select { font: 700 16px "Space Grotesk", sans-serif; padding: 9px; border: 3px solid #000; background: #fff; color: #111; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { appearance: none; border: 2px solid #000; background: #2a3466; color: #fff; font: 700 12px "Space Grotesk", sans-serif; padding: 5px 8px; cursor: pointer; }
.farben { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.fb { aspect-ratio: 1; border: 3px solid #000; background: linear-gradient(180deg, var(--a) 0 60%, var(--b) 60%); cursor: pointer; }
.fb.on { outline: 3px solid var(--gold); outline-offset: 1px; }
.preview { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 18px; }
.preview .kit { width: 34px; height: 34px; }
.sl, .ck { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ck { flex-direction: row; align-items: center; }
.sl input { padding: 0; }
.help p, .help li { line-height: 1.45; font-size: 15px; }
.bigres { font-size: 24px; margin: 6px 0; } .bigres b { font-size: 40px; color: var(--gold); padding: 0 8px; }
.nt { color: var(--gold); margin: 4px 0; }
/* Spiel */
.score { position: absolute; top: calc(env(safe-area-inset-top) + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(10,14,30,.85); border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 6px 10px; width: min(96vw, 560px) !important; }
.score .t { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.score .t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score .t.r { justify-content: flex-end; text-align: right; }
.score .res { font-size: 26px; color: var(--gold); min-width: 76px; text-align: center; }
.clock { position: absolute; top: calc(env(safe-area-inset-top) + 62px); left: 50%; transform: translateX(-50%); background: #000; padding: 2px 10px; font-size: 15px; width: auto !important; }
.banner { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%) scale(.6); opacity: 0; font-size: clamp(26px, 8vw, 54px); padding: 8px 20px; background: #000; color: #fff; border: 3px solid #fff; box-shadow: 6px 6px 0 rgba(0,0,0,.5); transition: transform .18s, opacity .18s; text-align: center; width: auto !important; max-width: 92vw !important; pointer-events: none !important; }
.banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.banner.good { background: #0d4d22; border-color: var(--green); } .banner.bad { background: #4d0d16; border-color: var(--red); }
.banner.goal { background: var(--gold); color: #1b1b1b; border-color: #000; font-size: clamp(44px, 16vw, 110px); animation: wob .35s infinite alternate; }
@keyframes wob { to { transform: translate(-50%, -50%) scale(1.08) rotate(-2deg); } }
.hint { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 92px); transform: translateX(-50%); width: min(94vw, 520px) !important; background: rgba(0,0,0,.78); border: 2px solid var(--gold); padding: 8px 12px; font-size: 14px; text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none !important; }
.hint.show { opacity: 1; }
.ticker { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 58px); transform: translateX(-50%); width: min(94vw, 520px) !important; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 3px; pointer-events: none !important; }
.ticker li { background: rgba(10,14,30,.85); border-left: 4px solid var(--muted); padding: 4px 8px; font-size: 14px; }
.ticker li.good { border-color: var(--green); } .ticker li.bad { border-color: var(--red); } .ticker li.half { border-color: var(--gold); }
.ticker li:not(:first-child) { opacity: .7; }
.mbtns { position: absolute; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 12px); display: flex; gap: 8px; width: auto !important; }
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet .sh { background: var(--card); border: 3px solid #000; box-shadow: 0 -4px 0 #000; width: min(100%, 520px); padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px); display: flex; flex-direction: column; gap: 10px; }
.sheet p { color: var(--muted); line-height: 1.4; margin: 0; }
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 64px); transform: translateX(-50%); z-index: 40; background: var(--gold); color: #1b1b1b; border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 8px 14px; font-size: 15px; opacity: 0; pointer-events: none; max-width: 90vw; text-align: center; }
#toast.show { animation: toast 2.4s ease forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateX(-50%) translateY(-8px); } 10%, 85% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; } }
@media (orientation: landscape) and (max-height: 520px) {
  .logo { font-size: 44px; }
  .banner { top: 40%; }
  .ticker li:nth-child(n+3) { display: none; }
  .clock { top: 52px; }
}
@media (prefers-reduced-motion: reduce) { .banner.goal { animation: none; } }
.ticker.hide { display: none; }
