/* Személyes terv – a Verseny napja oldal sötét, mobilos arculatán. Önálló lap. */
:root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --ink: #1b2925; --card: #233530; --line: rgba(255,255,255,.09); --sage: #98b0a9; --sage2: #cfe0d6; --gold: #e8b86b; --lila: #c9b8f0; --tx: #dfe7e4; --mut: #8ea59d; --bar: 58px; }
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; color: var(--tx); font-family: 'Roboto', sans-serif; -webkit-font-smoothing: antialiased; background: radial-gradient(circle at 15% 20%, rgba(224,207,143,.14), transparent 45%), linear-gradient(135deg, #3b5750 0%, #2f4640 55%, #1f2f2a 100%) fixed; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* felső sáv */
.tb { position: sticky; top: 0; z-index: 40; height: calc(var(--bar) + var(--sat)); padding: var(--sat) 18px 0; display: flex; align-items: center; gap: 12px; background: rgba(27,41,37,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tb-logo { width: 112px; display: block; flex: 0 0 auto; } .tb-logo img { width: 100%; height: auto; display: block; }
.tb-t { font: 700 12px 'Roboto Condensed', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tb-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-clock { font: 700 20px 'Roboto Condensed', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.live-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: #ff6b55; color: #fff; text-decoration: none; font: 700 13px 'Roboto Condensed', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.live-btn i.d { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 18px calc(40px + var(--sab)); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stick { position: sticky; top: calc(var(--bar) + var(--sat) + 16px); }

/* avatár */
.av { --s: 34px; position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; background: var(--c, #2f4640); flex: 0 0 auto; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--c, #555); }
.av b { font: 700 calc(var(--s) * .38) 'Roboto Condensed', sans-serif; color: #13201c; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.xl { --s: 96px; box-shadow: 0 0 0 4px var(--ink), 0 0 0 7px var(--c); }
.av.md { --s: 40px; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--c); }
.av.sm { --s: 28px; }

/* fejléc */
.hero { display: flex; align-items: center; gap: 20px; }
.kick { font: 700 12px 'Roboto Condensed', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font: 700 clamp(34px, 6vw, 56px)/1 'Roboto Condensed', sans-serif; color: #fff; margin-top: 4px; }
.hero .s { font-size: 14px; color: var(--mut); margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 12px 8px; text-align: center; border-left: 1px solid var(--line); } .stats div:first-child { border-left: 0; }
.stats b { display: block; font: 700 24px/1.1 'Roboto Condensed', sans-serif; color: #fff; white-space: nowrap; }
.stats b small { font-size: .6em; color: var(--gold); }
.stats span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }

/* kártyák */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.next { border-color: rgba(232,184,107,.45); background: linear-gradient(160deg, #2f4640, #233530); }
.next.now { border-color: #ff6b55; }
.next > * + * { margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font: 700 12px 'Roboto Condensed', sans-serif; letter-spacing: .14em; text-transform: uppercase; background: var(--gold); color: #2a1e05; }
.tag.now { background: #ff6b55; color: #fff; } .tag.now i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.tag.done { background: rgba(152,176,169,.25); color: var(--sage2); } .tag.muted { background: rgba(255,255,255,.08); color: #fff; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lab { font: 700 11px 'Roboto Condensed', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
.route { font: 700 clamp(22px, 4vw, 30px)/1.1 'Roboto Condensed', sans-serif; color: #fff; } .route span { color: var(--gold); padding: 0 .15em; }
.when { font-size: 15px; color: var(--tx); }
.cd { font: 700 clamp(48px, 9vw, 72px)/1 'Roboto Condensed', sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.meet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.meet > i { font-size: 22px; color: var(--gold); }
.meet b { color: #fff; } .meet .t { font: 700 22px 'Roboto Condensed', sans-serif; color: #fff; }
.meet .s { font-size: 13px; color: var(--mut); }
.nav { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--sage); color: var(--ink); text-decoration: none; font: 700 13px 'Roboto Condensed', sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.hand { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tx); } .hand b { color: #fff; } .hand > .bi { color: var(--gold); width: 28px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.wx { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px; border-radius: 999px; background: rgba(127,181,230,.14); border: 1px solid rgba(127,181,230,.3); font-size: 13px; white-space: nowrap; }
.wx > i { font-size: 16px; color: #fff; } .wx b { font: 700 15px 'Roboto Condensed', sans-serif; color: #fff; } .wx span { display: inline-flex; gap: 3px; } .wx span.w { color: #ffb48f; font-weight: 600; }
.ix { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.ix i { color: var(--sage); } .ix small { color: var(--mut); font-size: 11px; } .ix.w { background: rgba(232,184,107,.1); border-color: rgba(232,184,107,.3); } .ix.w i { color: var(--gold); }

/* blokkok */
.bl { padding: 16px; border-left: 5px solid var(--gold); }
.bl.n { border-left-color: var(--lila); } .bl.done { opacity: .55; } .bl.now { border-color: #ff6b55; border-left-color: #ff6b55; }
.bl > * + * { margin-top: 12px; }
.bl-top { display: flex; align-items: flex-start; gap: 12px; }
.bl-nr { font: 700 13px 'Courier Prime', monospace; color: var(--mut); letter-spacing: .08em; }
.bl-km { margin-left: auto; text-align: right; font: 700 28px/1 'Roboto Condensed', sans-serif; color: #fff; white-space: nowrap; }
.bl-km small { display: block; font: 500 12px 'Roboto', sans-serif; color: var(--mut); margin-top: 4px; }
.bl .route { font-size: 22px; margin-top: 4px; }
.segs { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 13px; text-decoration: none; }
.seg b { font: 700 14px 'Roboto Condensed', sans-serif; color: #fff; } .seg small { color: var(--mut); }
.seg.d { opacity: .5; } .seg.d b { text-decoration: line-through; }
.rest { display: flex; align-items: center; gap: 12px; margin: -4px 4px; font-size: 14px; color: var(--mut); }
.rest::before, .rest::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rest i { color: var(--sage); }
.bl summary { cursor: pointer; list-style: none; font-size: 13px; color: var(--mut); }
.bl summary::-webkit-details-marker { display: none; } .bl summary::before { content: "+ "; } .bl details[open] summary::before { content: "– "; }
.ds { font-size: 13px; color: #b9c7c2; line-height: 1.5; padding-top: 8px; } .ds p + p { margin-top: 8px; } .ds b { color: #fff; }

/* térkép */
.mapc { padding: 12px; }
.lmap { height: 360px; border-radius: 14px; overflow: hidden; background: #1b2925; }
.leaflet-container { font-family: 'Roboto', sans-serif; background: #1b2925; }
.leaflet-layer.sotet { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.45); }
.leaflet-control-attribution { background: rgba(27,41,37,.75) !important; color: #8ea59d !important; font-size: 10px; } .leaflet-control-attribution a { color: #b9cdc2 !important; }
.leaflet-bar a { background: rgba(35,53,48,.92); color: #fff; }
.lnr { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 14px 'Roboto Condensed', sans-serif; color: #13201c; border: 3px solid #1b2925; box-shadow: 0 0 0 2px #fff; }
.leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin: 8px 4px 0; } .leg i { display: inline-block; width: 18px; height: 5px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* értesítés */
.push { display: flex; flex-direction: column; gap: 10px; }
.push-h { display: flex; align-items: center; gap: 12px; } .push-h > i { font-size: 22px; color: var(--gold); }
.push-h b { display: block; color: #fff; font: 700 17px 'Roboto Condensed', sans-serif; } .push-h span { font-size: 13px; color: var(--mut); }
.push-r { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.push-r label { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-right: auto; } .push-r input { accent-color: var(--gold); }
.btn { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 999px; padding: 9px 16px; font: 700 13px 'Roboto Condensed', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.btn.pri { background: var(--gold); border-color: var(--gold); color: #241a04; }
.ok { color: var(--sage2); font-weight: 600; margin-right: auto; } .pmsg { font-size: 13px; color: var(--gold); } .pmsg:empty { display: none; }
.note { font-size: 13px; color: var(--mut); line-height: 1.45; }
.cta-live { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 16px; background: rgba(255,107,85,.12); border: 1px solid rgba(255,107,85,.45); color: #fff; text-decoration: none; font: 700 16px 'Roboto Condensed', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.foot { text-align: center; font-size: 12px; color: var(--mut); margin-top: 24px; }
.empty { text-align: center; padding: 50px 20px; } .empty .big { font: 700 30px 'Roboto Condensed', sans-serif; color: #fff; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; } .stick { position: static; }
  .lmap { height: 240px; }
}
@media (max-width: 560px) {
  :root { --bar: 54px; }
  .tb { padding-left: 12px; padding-right: 12px; gap: 8px; } .tb-logo { width: 84px; } .tb-t { display: none; } .tb-clock { font-size: 17px; }
  .live-btn { padding: 7px 11px; font-size: 12px; }
  .wrap { padding: 16px 12px calc(32px + var(--sab)); }
  .hero { gap: 14px; } .av.xl { --s: 72px; }
  .stats b { font-size: 19px; } .stats span { font-size: 9px; letter-spacing: .08em; } .stats div { padding: 10px 4px; }
  .card { padding: 15px; border-radius: 18px; }
  .meet { flex-wrap: wrap; } .nav { margin-left: 0; }
  .bl-km { font-size: 24px; }
  .lmap { height: 210px; }
}

/* alsó menü (telefon) */
.bnav { display: none; }
@media (max-width: 700px) {
  .bnav { display: flex; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(62px + var(--sab)); padding-bottom: var(--sab); background: rgba(27,41,37,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--mut); text-decoration: none; font: 600 11px 'Roboto Condensed', sans-serif; letter-spacing: .04em; -webkit-tap-highlight-color: transparent; }
  .bnav a i { font-size: 21px; } .bnav a.on { color: #fff; } .bnav a.on i { color: var(--gold); }
  .bnav a.rgz b { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: -22px; border-radius: 50%; background: var(--gold); box-shadow: 0 6px 18px rgba(232,184,107,.35), 0 0 0 4px #13201c; }
  .bnav a.rgz b i { color: #241a04; font-size: 22px; } .bnav a.rgz { color: #fff; }
  .wrap { padding-bottom: calc(86px + var(--sab)); }
  .live-btn { display: none; }
}

/* ===== levegős elrendezés: dobozok nélkül, idővonal ===== */
.grid { gap: 34px; }
.col { gap: 0; }
.col > * + * { margin-top: 22px; }
.sec { padding: 22px 0 0; border-top: 1px solid var(--line); }
.hero + .stats { margin-top: 18px; }
.stats { border-top: 0; border-bottom: 0; background: rgba(19,32,28,.22); border-radius: 14px; }
.next { position: relative; padding-left: 16px; border-top: 0; background: none; }
.next::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--gold); }
.next.now::before { background: #ff6b55; }
.next > * + * { margin-top: 14px; }
.meet { background: none; border: 0; border-radius: 0; padding: 0; }
.push { gap: 12px; }
.cta-live { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 0; justify-content: flex-start; color: #ff8f7a; }
/* térkép: önálló, nem ragadós, és nem csúszik a felső sáv fölé */
.mapc { padding: 0; position: relative; z-index: 0; isolation: isolate; }
.lmap { border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.25); position: relative; z-index: 0; }
.leg { margin: 10px 2px 0; color: var(--mut); }
/* idővonal */
.tl-h { font: 700 13px 'Roboto Condensed', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding-top: 22px; border-top: 1px solid var(--line); }
.tl { position: relative; margin-top: 18px !important; padding-left: 42px; }
.tl::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--line), rgba(255,255,255,.18), var(--line)); }
.tl-i { position: relative; padding-bottom: 6px; }
.tl-i > * + * { margin-top: 12px; }
.tl-d { position: absolute; left: -42px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--dc); color: #13201c; font: 700 15px 'Roboto Condensed', sans-serif; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px #2a3f39; }
.tl-i.done { opacity: .55; } .tl-i.now .tl-d { background: #ff6b55; color: #fff; box-shadow: 0 0 0 5px rgba(255,107,85,.25); }
.tl-rest { position: relative; margin: 18px 0 22px; font-size: 14px; color: var(--mut); display: flex; align-items: center; gap: 8px; }
.tl-rest i { position: absolute; left: -36px; width: 22px; height: 22px; border-radius: 50%; background: #2f4640; color: var(--sage); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.tl-i .bl-top { gap: 14px; }
.tl-i .route { font-size: 22px; margin-top: 2px; }
.seg { background: rgba(19,32,28,.25); }
@media (max-width: 900px) { .grid { gap: 0; } .grid > .col + .col { margin-top: 26px; } }
@media (max-width: 560px) {
  .tl { padding-left: 38px; } .tl::before { left: 13px; } .tl-d { left: -38px; width: 28px; height: 28px; font-size: 14px; } .tl-rest i { left: -33px; }
  .tl-i .route { font-size: 20px; } .bl-km { font-size: 22px; }
}
.tl-i .bl-top > div:first-child { min-width: 0; flex: 1; }
@media (max-width: 560px) {
  .tl-i .bl-top { display: block; }
  .tl-i .bl-km { margin: 6px 0 0; text-align: left; font-size: 18px; color: var(--gold); }
  .tl-i .bl-km small { display: inline; margin-left: 8px; }
}

/* ===== egyetlen, középre igazított oszlop minden méretben ===== */
.wrap { max-width: 860px; }
.grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.grid > .col + .col { margin-top: 30px; }
.mapc { margin-top: 0; }
.lmap { height: 400px; }
@media (max-width: 900px) { .lmap { height: 260px; } }
@media (max-width: 560px) { .lmap { height: 220px; } }
