:root {
  --bg: #f2f4f7; --card: #ffffff; --ink: #0f1b2a; --muted: #64707f; --line: #e6e9ee;
  --navy: #0b1d2e; --navy2: #12304a; --mint: #34d399;
  --green: #0e9f6e; --blue: #2563eb; --orange: #ea580c; --violet: #7c3aed; --live: #e11d48;
  --r: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums; padding-bottom: env(safe-area-inset-bottom); }
.wrap { max-width: 640px; margin: 0 auto; padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right)); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2 { margin: 0; }
button { font: inherit; color: inherit; }
.note { color: var(--muted); font-size: 12px; margin: 10px 2px 0; }

/* ---------- Hero ---------- */
.hero { color: #fff; padding-top: env(safe-area-inset-top);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(52, 211, 153, .18), transparent 60%),
    linear-gradient(160deg, var(--navy2), var(--navy) 70%);
  padding-bottom: 46px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(52, 211, 153, .15); color: var(--mint); }
.logo svg { width: 20px; height: 20px; }
h1 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.dates { font-size: 12px; color: rgba(255,255,255,.6); }
.clocks { display: flex; gap: 6px; }
.clock { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,.08); font-size: 14px; font-weight: 600; }
.cc { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.55); }

.next { margin-top: 18px; text-align: center; }
.next-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.next-label.live { color: #fb7185; }
.next-label.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fb7185; animation: pulse 1.4s infinite; }
.next-teams { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px;
  font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.next-teams .side { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.next-teams .side:first-child { justify-content: flex-end; }
.next-teams .vs { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45); }
.next-teams .big-score { font-size: 28px; font-weight: 800; }
.countdown { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.cd { min-width: 58px; padding: 8px 6px 6px; border-radius: 12px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08); }
.cd b { display: block; font-size: 24px; font-weight: 750; line-height: 1; }
.cd span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.next-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px;
  font-size: 13px; color: rgba(255,255,255,.7); }
.next-meta span { display: inline-flex; align-items: center; gap: 5px; }
.next-meta svg { width: 14px; height: 14px; }

/* ---------- Badges ---------- */
.badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font-size: 10px; font-weight: 800; letter-spacing: .02em; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.badge.lg { width: 36px; height: 36px; font-size: 11px; border-radius: 10px; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: -30px; position: relative; }
.tile { display: flex; align-items: center; gap: 9px; padding: 10px; border: 0; border-radius: var(--r);
  background: var(--card); box-shadow: 0 1px 2px rgba(15,27,42,.06), 0 6px 18px -8px rgba(15,27,42,.18);
  text-align: left; cursor: pointer; min-width: 0; }
.ti, .hi { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; }
.tk { display: block; font-size: 11px; color: var(--muted); }
.tv { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; }
.t-green { background: #e7f7f0; color: var(--green); }
.t-blue { background: #e8effd; color: var(--blue); }
.t-orange { background: #fdeee4; color: var(--orange); }
.t-violet { background: #f1ebfe; color: var(--violet); }

/* ---------- Tabs ---------- */
.tabs-bar { position: sticky; top: 0; z-index: 10; padding: 12px 0 10px;
  background: linear-gradient(var(--bg) 80%, rgba(242,244,247,0)); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 12px; background: #e3e7ec; }
.seg button { border: 0; background: none; padding: 8px 0; border-radius: 9px; font-size: 14px; font-weight: 550;
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 650;
  box-shadow: 0 1px 3px rgba(15,27,42,.12); }

main { padding-bottom: 28px; }
.panel { display: none; }
.panel.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.stack { display: grid; gap: 10px; }
.card { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: 0 1px 2px rgba(15,27,42,.05); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { font-size: 15px; font-weight: 650; flex: 1; }
.pill { font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: var(--bg); color: var(--ink); }

/* ---------- Kamper ---------- */
.match { position: relative; background: var(--card); border-radius: var(--r); padding: 12px 14px 12px 18px;
  box-shadow: 0 1px 2px rgba(15,27,42,.05); overflow: hidden; }
.match::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.comp { font-size: 12px; font-weight: 650; color: var(--accent); }
.when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.when b { color: var(--ink); }
.team-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 16px; font-weight: 600; }
.team-row .name { flex: 1; }
.team-row .sc { font-size: 20px; font-weight: 800; min-width: 1.4em; text-align: right; }
.team-row.lose { color: var(--muted); }
.m-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.status { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.status.live { background: #ffe4ea; color: var(--live); }
.status.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); margin-right: 6px; vertical-align: 1px; animation: pulse 1.4s infinite; }
.status.ft { background: var(--ink); color: #fff; }
.m-note { font-size: 12px; color: var(--muted); }
.scorers { font-size: 12px; color: var(--muted); margin-top: 6px; }
details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; }
summary { display: flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary svg { width: 15px; height: 15px; }
summary .chev { margin-left: auto; transition: transform .2s; }
details[open] .chev { transform: rotate(180deg); }
details p { display: flex; gap: 6px; margin: 8px 0 0; color: var(--ink); }
details p svg { width: 15px; height: 15px; color: var(--muted); margin-top: 2px; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Valuta ---------- */
.conv { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.field span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px 2px; }
.field input { width: 100%; font: inherit; font-size: 22px; font-weight: 700; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #f8f9fb; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--green); background: #fff; }
.swap { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 50%;
  border: 0; background: #e7f7f0; color: var(--green); cursor: pointer; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 12px; }
.fx-grid button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 9px; text-align: left; cursor: pointer; }
.fx-grid b { display: block; font-size: 14px; }
.fx-grid span { font-size: 12px; color: var(--muted); }
.fx-grid button:active { background: #e7f7f0; border-color: var(--green); }

/* ---------- Reise ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; position: relative; padding: 6px 0; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: -6px; width: 2px; background: var(--line); }
.steps .si { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fdeee4; color: var(--orange); position: relative; z-index: 1; }
.steps .si svg { width: 15px; height: 15px; }
.steps .t { font-weight: 650; }
.steps .s { display: block; font-size: 12px; color: var(--muted); }
.steps .r { text-align: right; font-size: 17px; font-weight: 750; }
.steps .r small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.steps li.done { opacity: .5; }
.info { display: flex; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 10px; background: #f6f7f9; font-size: 13px; color: var(--muted); }
.info svg { width: 16px; height: 16px; margin-top: 1px; color: var(--ink); }
.hotel-name { font-size: 17px; font-weight: 700; }
.hotel-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.btn svg { width: 15px; height: 15px; }
.wx-now { display: flex; align-items: center; gap: 12px; }
.wx-now .ico { color: var(--blue); }
.wx-now .ico svg { width: 40px; height: 40px; stroke-width: 1.6; }
.wx-now .deg { font-size: 34px; font-weight: 800; line-height: 1; }
.wx-now .desc { font-size: 13px; color: var(--muted); }
.wx-now .desc b { display: block; color: var(--ink); font-size: 14px; }
.wx-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.wx-day { text-align: center; padding: 8px 4px; border-radius: 10px; background: #f6f7f9; font-size: 12px; }
.wx-day .d { font-weight: 650; text-transform: capitalize; }
.wx-day svg { width: 22px; height: 22px; margin: 4px auto; display: block; color: var(--blue); }
.wx-day .tt { font-weight: 700; font-size: 13px; }
.wx-day .tt span { color: var(--muted); font-weight: 500; }
.wx-day .p { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); }
.wx-day .p svg { width: 11px; height: 11px; margin: 0; display: inline; }

/* ---------- Program ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline .day { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 0 4px; }
.timeline .day:first-child { padding-top: 0; }
.ev { display: grid; grid-template-columns: 28px 46px 1fr; gap: 8px; align-items: start; position: relative; padding: 6px 0; }
.ev .si { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.ev .si svg { width: 15px; height: 15px; }
.ev .tm { font-weight: 700; padding-top: 4px; }
.ev .tx { padding-top: 4px; font-size: 14px; }
.ev-match .tx { font-weight: 650; }
.ev.done { opacity: .45; }
.ev.done .tx { text-decoration: line-through; }

@media (max-width: 380px) {
  .tile { padding: 8px; gap: 7px; }
  .ti { width: 28px; height: 28px; }
  .tv { font-size: 14px; }
  .cd { min-width: 50px; }
  .clock .cc { display: none; }
}
