/* Bierkoers. Ontwerp naar Apple: de systeemletter (SF Pro) ook voor cijfers, met vaste cijferbreedte;
   de systeemkleuren van iOS; lijsten met haarlijnen in plaats van kaders; koppen in zinsletters;
   weinig schaduw en geen verlopen. Voorbeelden: Aandelen (koers, groene en rode pil), Kaarten (blad
   over de kaart, punten met een witte rand) en Weer (grote cijfers). iPhone eerst; vanaf 900px een
   zijbalk links. Gele tint voor pils; in de Guinness-stand groen. */
:root {
  /* Achtergronden zoals iOS: gegroepeerd grijs, cellen wit */
  --land: #f2f2f7;
  --surface: #ffffff; --surface-2: rgb(118 118 128 / .12); --surface-3: #f2f2f7;
  --glass: rgb(249 249 251 / .9);
  --sep: rgb(60 60 67 / .18);
  --fg: #000000; --muted: rgb(60 60 67 / .6); --muted-2: rgb(60 60 67 / .3);
  /* Tint: bier */
  --accent: #f2a900; --accent-ink: #1c1300; --accent-text: #9a6400; --accent-zacht: rgb(242 169 0 / .16);
  /* Systeemkleuren */
  --fresh: #34c759; --fresh-t: #248a3d; --stale: #ff9500; --stale-t: #c93400; --old: #ff3b30; --old-t: #d70015;
  --locked: #aeaeb2; --wacht: #007aff; --blue: #007aff;
  /* Koers, gezien door de klant: duurder is rood, goedkoper is groen */
  --op: #ff3b30; --op-t: #d70015; --af: #34c759; --af-t: #248a3d; --gelijk: #8e8e93;
  --balk: rgb(255 255 255 / .92); --balk-fg: #000; --balk-muted: rgb(60 60 67 / .6);
  --shadow: 0 2px 12px rgb(0 0 0 / .08), 0 0 1px rgb(0 0 0 / .12);
  --shadow-sterk: 0 8px 30px rgb(0 0 0 / .14);
  /* Mist: een egale waas, geen stippen */
  --mist: rgb(242 242 247 / .62); --mist-stip: transparent;
  --hair: .5px solid var(--sep);
  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --f-titel: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --r: 12px;
  --balk-h: 28px;
  --top: calc(env(safe-area-inset-top) + var(--balk-h));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --land: #000000;
    --surface: #1c1c1e; --surface-2: rgb(118 118 128 / .24); --surface-3: #2c2c2e;
    --glass: rgb(28 28 30 / .88);
    --sep: rgb(84 84 88 / .6);
    --fg: #ffffff; --muted: rgb(235 235 245 / .6); --muted-2: rgb(235 235 245 / .3);
    --accent: #ffc426; --accent-ink: #1c1300; --accent-text: #ffd060; --accent-zacht: rgb(255 196 38 / .18);
    --fresh: #30d158; --fresh-t: #30d158; --stale: #ff9f0a; --stale-t: #ff9f0a; --old: #ff453a; --old-t: #ff6961;
    --locked: #636366; --wacht: #0a84ff; --blue: #0a84ff;
    --op: #ff453a; --op-t: #ff6961; --af: #30d158; --af-t: #30d158;
    --balk: rgb(0 0 0 / .9); --balk-fg: #fff; --balk-muted: rgb(235 235 245 / .6);
    --shadow: 0 2px 12px rgb(0 0 0 / .4), 0 0 1px rgb(255 255 255 / .1);
    --shadow-sterk: 0 8px 30px rgb(0 0 0 / .5);
    --mist: rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --land: #000000;
  --surface: #1c1c1e; --surface-2: rgb(118 118 128 / .24); --surface-3: #2c2c2e;
  --glass: rgb(28 28 30 / .88);
  --sep: rgb(84 84 88 / .6);
  --fg: #ffffff; --muted: rgb(235 235 245 / .6); --muted-2: rgb(235 235 245 / .3);
  --accent: #ffc426; --accent-ink: #1c1300; --accent-text: #ffd060; --accent-zacht: rgb(255 196 38 / .18);
  --fresh: #30d158; --fresh-t: #30d158; --stale: #ff9f0a; --stale-t: #ff9f0a; --old: #ff453a; --old-t: #ff6961;
  --locked: #636366; --wacht: #0a84ff; --blue: #0a84ff;
  --op: #ff453a; --op-t: #ff6961; --af: #30d158; --af-t: #30d158;
  --balk: rgb(0 0 0 / .9); --balk-fg: #fff; --balk-muted: rgb(235 235 245 / .6);
  --shadow: 0 2px 12px rgb(0 0 0 / .4), 0 0 1px rgb(255 255 255 / .1);
  --shadow-sterk: 0 8px 30px rgb(0 0 0 / .5);
  --mist: rgb(0 0 0 / .5);
  color-scheme: dark;
}
/* Guinness-stand: Iers groen in plaats van biergeel */
:root[data-bier="guinness"] { --accent: #169b62; --accent-ink: #ffffff; --accent-text: #0b7a4b; --accent-zacht: rgb(22 155 98 / .14); }
@media (prefers-color-scheme: dark) {
  :root[data-bier="guinness"]:not([data-theme="light"]) { --accent: #2fc27f; --accent-ink: #00140b; --accent-text: #5fdca2; --accent-zacht: rgb(47 194 127 / .2); }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--land); color: var(--fg); font: 15px/1.38 var(--f-ui); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#map { position: fixed; inset: 0; }

.glass { background: var(--glass); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); box-shadow: var(--shadow); }
.num { font-variant-numeric: tabular-nums; }

/* Koersverschil: tekst in rood of groen; als pil een gevuld vlak met witte cijfers, zoals in Aandelen */
.delta { font-weight: 600; font-size: 13px; white-space: nowrap; }
.delta.op { color: var(--op-t); } .delta.af { color: var(--af-t); } .delta.gelijk { color: var(--gelijk); }
.delta.pil { display: inline-block; min-width: 64px; text-align: center; padding: 4px 8px; border-radius: 6px; color: #fff; font-size: 14px; }
.delta.pil.op { background: var(--op); } .delta.pil.af { background: var(--af); } .delta.pil.gelijk { background: var(--surface-2); color: var(--muted); }

/* Tickercode: gewoon vette letters, geen kadertje */
.code { font-size: .78em; font-weight: 700; letter-spacing: .02em; color: var(--muted); margin-right: 6px; }
.code.groot { font-size: 13px; margin: 0; }

/* Lichtkrant: rustig, in de systeemletter */
#ticker { position: fixed; top: 0; left: 0; right: 0; height: var(--top); padding-top: env(safe-area-inset-top); background: var(--balk); color: var(--balk-fg); z-index: 6; border-bottom: var(--hair); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.ticker-raam { height: var(--balk-h); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
.ticker-baan { display: flex; width: max-content; height: 100%; align-items: center; animation: lichtkrant var(--duur, 60s) linear infinite; }
#ticker:hover .ticker-baan, #ticker:active .ticker-baan { animation-play-state: paused; }
@keyframes lichtkrant { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-raam { overflow-x: auto; scrollbar-width: none; }
  .ticker-baan { animation: none; }
  .ticker-baan [aria-hidden="true"] { display: none; }
}
.tk { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; border: 0; background: none; color: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tk + .tk::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--balk-muted); margin: 0 12px 0 -12px; }
.tk b { font-weight: 700; }
.tk .delta { font-size: 12px; }
.tk .zacht { color: var(--balk-muted); }
.tk .nieuw { color: var(--accent-text); font-weight: 600; }

/* Beursbord linksboven */
#hud { position: fixed; top: calc(var(--top) + 10px); left: 16px; display: flex; gap: 10px; align-items: center; padding: 6px 14px 6px 6px; border-radius: 999px; z-index: 3; border: 0; text-align: left; color: var(--fg); }
.hud-ring { position: relative; width: 38px; height: 38px; flex: none; }
.hud-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hud-ring .hud-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: -.02em; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.hud-tekst { display: flex; flex-direction: column; gap: 1px; }
.hud-koers { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.hud-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.hud-koers b { font: 600 17px/1.15 var(--f-titel); letter-spacing: -.02em; }
.hud-sub { font-size: 12px; line-height: 1.15; color: var(--muted); }

/* Gesegmenteerde knop voor de kaartstand, zoals in Kaarten */
#modus { position: fixed; top: calc(var(--top) + 64px); left: 16px; display: flex; gap: 2px; padding: 2px; border-radius: 9px; z-index: 3; }
#modus button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--fg); }
#modus button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 4px rgb(0 0 0 / .14); font-weight: 600; }
#legenda { position: fixed; top: calc(var(--top) + 102px); left: 16px; display: flex; gap: 10px; padding: 5px 10px; border-radius: 9px; z-index: 3; font-size: 12px; color: var(--muted); }
#legenda[hidden] { display: none; }
#legenda span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg.af { background: var(--af); } .lg.idx { background: var(--accent); } .lg.op { background: var(--op); }

/* Kaartknoppen rechtsboven: een kolom zoals in Kaarten */
.mapbtn { position: fixed; top: calc(var(--top) + 10px); right: 16px; width: 44px; height: 44px; border-radius: 10px; border: 0; display: grid; place-items: center; color: var(--blue); z-index: 3; }
.mapbtn svg { width: 20px; height: 20px; }
#guinness { top: calc(var(--top) + 60px); color: var(--fg); }
#guinness[aria-pressed="true"] { background: #169b62; color: #fff; }

/* Blad over de kaart */
#sheet { position: fixed; left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--top) - 60px); border-radius: 14px 14px 0 0; z-index: 4; display: flex; flex-direction: column; transform: translateY(var(--sy, 50%)); transition: transform .35s cubic-bezier(.2,.8,.2,1); touch-action: none; box-shadow: 0 -1px 0 var(--sep), var(--shadow-sterk); }
#sheet.dragging { transition: none; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--muted-2); margin: 0 auto; padding: 6px 40px 6px; background-clip: content-box; box-sizing: content-box; flex: none; cursor: grab; }
#tabs { display: flex; gap: 2px; margin: 2px 16px 10px; padding: 2px; background: var(--surface-2); border-radius: 9px; flex: none; }
#tabs button { flex: 1; border: 0; background: none; padding: 6px 0; border-radius: 7px; font-weight: 500; font-size: 13px; color: var(--fg); }
#tabs button[aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: 0 1px 4px rgb(0 0 0 / .14), 0 0 0 .5px rgb(0 0 0 / .04); }
#body { flex: 1; overflow-y: auto; padding: 0 16px calc(env(safe-area-inset-bottom) + 24px); touch-action: pan-y; overscroll-behavior: contain; }

@media (min-width: 900px) {
  #sheet { left: 16px; right: auto; top: calc(var(--top) + 16px); bottom: 16px; width: 390px; height: auto; border-radius: 14px; transform: none !important; }
  .grabber { display: none; }
  #tabs { margin-top: 12px; }
  #hud, #modus, #legenda { left: 422px; }
}

/* Koppen: grote titel en sectiekoppen in zinsletters, zoals iOS */
h2 { font: 700 28px/1.15 var(--f-titel); letter-spacing: -.025em; margin: 8px 0 4px; }
h3 { font: 600 20px/1.2 var(--f-titel); letter-spacing: -.02em; color: var(--fg); margin: 26px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
h3 .muted { font: 400 15px var(--f-ui); letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.search { width: 100%; border: 0; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; font-size: 17px; }
.search::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chip { border: 0; background: var(--surface-2); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--surface); }

/* Lijsten: haarlijnen die bij de tekst beginnen, geen kaders */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; width: 100%; background: none; border: 0; text-align: left; position: relative; color: inherit; }
.list > li + li > .row::before, .list > li.row + li.row::before { content: ""; position: absolute; top: 0; left: 24px; right: 0; border-top: var(--hair); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.fresh { background: var(--fresh); } .dot.stale { background: var(--stale); } .dot.old { background: var(--old); }
.dot.locked { background: var(--locked); opacity: .45; } .dot.wacht { background: var(--wacht); }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font: 600 17px/1.1 var(--f-titel); letter-spacing: -.02em; white-space: nowrap; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.price small { font: 400 12px var(--f-ui); letter-spacing: 0; color: var(--muted); }
.price small.delta { font: 600 12px var(--f-ui); color: #fff; padding: 2px 6px; border-radius: 5px; }
.price small.delta.op { background: var(--op); } .price small.delta.af { background: var(--af); }

.back { border: 0; background: none; color: var(--blue); padding: 8px 0; font-size: 17px; }
.card { background: var(--surface); border-radius: var(--r); padding: 14px 16px; margin: 10px 0; border: 0; }
#sheet .card { background: var(--surface); }
.big-price { font: 700 40px/1.05 var(--f-titel); letter-spacing: -.035em; }
.big-price .onbevestigd { color: var(--wacht); margin-left: 2px; }
.vorige { margin-top: 12px; padding-top: 10px; border-top: var(--hair); }

/* Status: een stip met tekst, geen gekleurde pil */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--locked); }
.badge.fresh::before { background: var(--fresh); } .badge.stale::before { background: var(--stale); }
.badge.old::before { background: var(--old); } .badge.wacht::before { background: var(--wacht); }

/* Koersblad van een kroeg */
.koerskop { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.koersregel { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.positie { margin-top: 14px; padding-top: 12px; border-top: var(--hair); }
.positie .t { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.positie .t b { font-weight: 600; }
.schaal { position: relative; height: 20px; margin: 12px 0 4px; }
.schaal::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--af), var(--accent) 50%, var(--op)); }
.schaal .idx { position: absolute; top: 2px; width: 2px; height: 16px; margin-left: -1px; background: var(--fg); border-radius: 1px; opacity: .6; }
.schaal .hier { position: absolute; top: 3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .35); }
.schaal-as { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.kv div { font-size: 12px; color: var(--muted); }
.kv b { display: block; font: 600 17px/1.2 var(--f-titel); color: var(--fg); letter-spacing: -.02em; margin-top: 2px; }

/* Knoppen zoals iOS: gevuld, grijs of alleen tekst */
.btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn { flex: 1; border: 0; border-radius: 12px; padding: 13px 16px; font-size: 17px; font-weight: 600; background: var(--surface-2); color: var(--blue); min-width: 120px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.good { background: var(--af); color: #fff; }
.btn.bad { background: var(--surface-2); color: var(--old-t); }
.btn.stil { background: transparent; color: var(--old-t); font-weight: 500; }
.btn:disabled { opacity: .4; cursor: default; }
.btn:active:not(:disabled), .chip:active, .mini:active { opacity: .7; }

/* Inloggen met Apple of Google; met een slotje zolang het in Supabase nog niet aanstaat */
.sociaal { display: grid; gap: 8px; margin-top: 12px; }
.btn.aanbieder { display: flex; align-items: center; gap: 10px; background: var(--surface-2); color: var(--fg); text-align: left; }
.btn.aanbieder svg.logo { width: 18px; height: 18px; flex: none; }
.btn.aanbieder .naam { flex: 1; }
.btn.aanbieder.op-slot { opacity: 1; color: var(--muted); }
.btn.aanbieder.op-slot svg.logo { opacity: .5; }
.slot { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.slot svg { width: 11px; height: 11px; }
.of { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0 4px; }
.of::before, .of::after { content: ""; flex: 1; border-top: var(--hair); }

/* Formulieren */
.form label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.form input, .form select, .form textarea { width: 100%; border: 0; background: var(--surface-2); border-radius: 10px; padding: 11px 12px; font-size: 17px; }
.form textarea { resize: vertical; }
.form input[name="prijs"] { font: 600 22px var(--f-titel); letter-spacing: -.02em; }
.form .check { display: flex; gap: 10px; align-items: flex-start; color: var(--fg); font-size: 15px; }
.form .check input { width: auto; margin-top: 3px; }
.seg { display: flex; gap: 2px; flex-wrap: wrap; background: var(--surface-2); padding: 2px; border-radius: 9px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 7px; padding: 7px 4px; font-size: 13px; font-weight: 500; line-height: 1.25; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 4px rgb(0 0 0 / .14); font-weight: 600; }
.foto-voorbeeld[hidden] { display: none; }
.foto-voorbeeld { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-top: 8px; }
.waarschuwing { color: var(--stale-t); font-weight: 500; }

.stamgast, .incheck { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.stamgast { margin: 4px 0 12px; }
.stamgast .ic, .incheck .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-zacht); color: var(--accent-text); }
.stamgast .ic svg, .incheck .ic svg { width: 20px; height: 20px; }
.stamgast.vrij .ic, .incheck:not(.bezocht) .ic { background: var(--surface-2); color: var(--muted); }
.stamgast .t, .incheck .t { font-size: 13px; color: var(--muted); }
.stamgast b { font-size: 17px; font-weight: 600; }
.stamgast .sub { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.stamgast .sub b { font-size: inherit; color: var(--fg); }
.incheck .btn { grid-column: 1 / -1; }

/* Eigen kaart en statistieken: grote cijfers in vlakke cellen */
.tegels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.tegel { border-radius: var(--r); padding: 14px 16px; min-height: 100px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 15px; background: var(--surface); }
.tegel .getal { font: 700 34px/1 var(--f-titel); letter-spacing: -.03em; }
.tegel.goud .getal { color: var(--accent-text); }
.nacht-kaart { background: var(--surface); }
.nacht-kaart .small { color: var(--muted); margin-top: 2px; }
.wijkrij { padding: 10px 0; border-bottom: var(--hair); }
.wijkrij:last-child { border-bottom: 0; }
.wijkrij.leeg { color: var(--muted); }
.verzameld { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 12px; }
.munt { position: relative; aspect-ratio: 1; border-radius: 50%; border: 0; background: linear-gradient(180deg, #a5abb8, #858994); color: #fff; font: 600 15px/1 var(--f-titel); padding: 0; }
.munt .n { position: absolute; right: -3px; bottom: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 600 11px/18px var(--f-ui); padding: 0 4px; border: 2px solid var(--surface); }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.statgrid .card { margin: 0; }
.stat b { display: block; font: 600 22px/1.15 var(--f-titel); letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.tocht-link { margin-bottom: 4px; }
.ic-sm { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--blue); color: #fff; flex: none; }
.ic-sm svg { width: 18px; height: 18px; }
.nr { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 13px/24px var(--f-ui); text-align: center; flex: none; }
.veld { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.linkbtn { border: 0; background: none; color: var(--blue); padding: 0; font-weight: 500; }

/* De beurs: Pilsindex zoals een koers in Aandelen, prijsbewegingen en wijken als sectoren */
.indexkaart { border-radius: var(--r); padding: 16px 16px 12px; margin: 6px 0 10px; background: var(--surface); }
.indexkaart .kop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; }
.indexkaart .kop span { color: var(--muted); font-weight: 400; font-size: 13px; }
.indexkaart .stand { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.indexkaart .stand .big-price { font-size: 44px; }
.indexkaart .uitleg { font-size: 13px; color: var(--muted); margin-top: 6px; }
.indexkaart .grafiek { margin-top: 12px; }
.grafiek { width: 100%; height: 96px; display: block; overflow: visible; }
.grafiek text { font-family: var(--f-ui); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo .card { margin: 0; padding: 10px 12px; }
.duo .kop, .goedkoper .kop { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: var(--muted); }
.duo .kop.op { color: var(--op-t); } .duo .kop.af, .goedkoper .kop { color: var(--af-t); } .duo .kop.gelijk { color: var(--muted); }
.mover { display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 0; border-bottom: var(--hair); color: inherit; }
.mover:last-child { border-bottom: 0; }
.mover .n { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mover .p { font-size: 14px; font-weight: 600; text-align: right; }
.mover .delta { grid-column: 2; text-align: right; font-size: 12px; }
.mover .w { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--muted); }
.goedkoper { margin-top: 10px; }
button.sector { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: var(--hair); padding: 11px 0; color: inherit; }
button.sector:last-child { border-bottom: 0; }
.sector .t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sector .t b { font-weight: 600; }
.sector .t .price { font-size: 15px; display: inline; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 9px 0 9px 18px; border-left: 2px solid var(--surface-2); position: relative; margin-left: 4px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--fresh); box-shadow: 0 0 0 2px var(--surface); }
.timeline li.wacht::before { background: var(--wacht); }
.timeline li.menukaart::before { background: var(--locked); }
.timeline li.weerlegd::before { background: var(--old); }
.timeline li.check::before { background: var(--muted-2); }
.timeline .t-what { font-weight: 600; }
.timeline .t-meta { font-size: 13px; color: var(--muted); }
.timeline a { color: var(--blue); }

.spark { width: 100%; height: 96px; display: block; overflow: visible; }
.trapje { width: 44px; height: 20px; flex: none; overflow: visible; }
.trapje path { fill: none; stroke: var(--muted-2); stroke-width: 1.6; stroke-linejoin: round; }
.trapje.op path { stroke: var(--op); } .trapje.af path { stroke: var(--af); }

.ring-big { display: flex; gap: 16px; align-items: center; }
.ring-big svg { width: 88px; height: 88px; transform: rotate(-90deg); flex: none; }
.ring-big .ring-bg, .ring-big .ring-fg { stroke-width: 9; }
.ring-big .pct { font: 700 30px/1 var(--f-titel); letter-spacing: -.03em; }
.bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar.fresh > span { background: var(--fresh); }
.milestones { display: flex; gap: 2px; margin-top: 10px; padding: 2px; border-radius: 9px; background: var(--surface-2); }
.milestones span { flex: 1; text-align: center; font-size: 13px; font-weight: 500; padding: 5px 0; border-radius: 7px; color: var(--muted); }
.milestones span.done { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

.rank { font: 600 15px var(--f-titel); width: 24px; text-align: center; color: var(--muted); }
li.row:nth-child(-n+3) .rank { color: var(--accent-text); }
.me { background: var(--accent-zacht); border-radius: 10px; }

#toast { position: fixed; left: 50%; top: calc(var(--top) + 64px); transform: translate(-50%, -16px); opacity: 0; background: var(--glass); color: var(--fg); padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: 15px; z-index: 10; transition: .3s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--shadow-sterk); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast .pts { color: var(--accent-text); margin-left: 8px; }

.maplibregl-ctrl-attrib { font-size: 10px; }
.empty { text-align: center; padding: 30px 0; color: var(--muted); }

/* Guinness en extra's */
.guinness-uitleg { margin: 0 0 8px; color: var(--accent-text); }
.aanbod { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; }
.aanbod .price { font-weight: 600; }
.aanbod-knoppen { grid-column: 1 / -1; display: flex; gap: 6px; }
.aanbod-knoppen:empty { display: none; }
.tijden { list-style: none; margin: 0 0 6px; padding: 0; }
.tijden li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: var(--hair); }
.tijden li:last-child { border-bottom: 0; }
.tijden li.vandaag { font-weight: 600; }
.mini { border: 0; background: var(--surface-2); color: var(--blue); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; }

/* Mist en vrijspelen */
.mist { position: absolute; left: 0; top: 0; pointer-events: none; }
.kring { position: fixed; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--accent); pointer-events: none; z-index: 5; animation: kring .9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes kring { to { transform: scale(11); opacity: 0; } }
.kroeg-tip .maplibregl-popup-content { font: 500 13px/1.3 var(--f-ui); padding: 7px 10px; border-radius: 10px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sterk); }
.kroeg-tip .maplibregl-popup-tip { border-top-color: var(--surface); border-bottom-color: var(--surface); }
.kroeg-tip b { font-weight: 600; }

/* Vensters: vraag, uitleg, foto en teksten */
.laag { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / .4); }
.laag[hidden], #lightbox[hidden], #tekstBalk[hidden] { display: none; }
.laag-kaart { width: min(400px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 16px; padding: 20px 18px 16px; }
.laag-kaart p:first-child { margin-top: 0; }
.laag-kaart h2 { margin-top: 2px; font-size: 24px; }
.intro-kop { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.uitleg-lijst { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.uitleg-lijst li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.uitleg-lijst .dot { margin-top: 5px; }
.mist-voorbeeld { width: 14px; height: 14px; border-radius: 4px; margin-top: 3px; background: var(--locked); opacity: .5; }
#lightbox { position: fixed; inset: 0; z-index: 21; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .92); }
#lightbox img { max-width: min(960px, 100%); max-height: calc(100dvh - 90px); border-radius: 8px; }
.lightbox-sluit { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 12px; color: #fff; background: rgb(255 255 255 / .18); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 600; }
#tekstBalk { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 19; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--fg); color: var(--surface); box-shadow: var(--shadow-sterk); font-size: 14px; font-weight: 500; }
#tekstBalk span { flex: 1; }
#tekstBalk .btn { flex: none; min-width: 0; padding: 8px 12px; font-size: 14px; }
:root[data-teksten="bewerken"] body *:not(#tekstBalk *):not(#tekstEditor *):hover { outline: 1.5px dashed var(--accent); outline-offset: 1px; }
.tekst-standaard { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 15px; white-space: pre-wrap; }

/* Klopt deze kroeg niet */
.klopt-niet { margin: 16px 0 6px; }
.klopt-niet summary { cursor: pointer; color: var(--blue); font-size: 15px; padding: 6px 0; }
.klopt-niet .seg { flex-direction: column; gap: 0; padding: 0; background: var(--surface); border-radius: 10px; margin-top: 6px; }
.keuze { display: flex !important; gap: 10px; align-items: center; margin: 0 !important; color: var(--fg) !important; font-size: 15px !important; padding: 11px 12px; border-bottom: var(--hair); }
.keuze:last-child { border-bottom: 0; }
.keuze input { width: auto !important; accent-color: var(--blue); }
.toelichting { margin: 6px 0; color: var(--muted); }

/* Lijst, spelregels en beheer */
.hint { margin: 0 0 8px; }
.telling { margin: 2px 0 0; }
.regels div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: var(--hair); font-size: 15px; }
.regels div:last-child { border-bottom: 0; }
.regels b { font-weight: 600; white-space: nowrap; }
.eigen-teksten .row-title { white-space: normal; font-size: 15px; }
.eigen-teksten .row-sub { white-space: normal; }

/* Toegankelijkheid */
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
button:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) {
  #sheet, .ring-fg { transition: none !important; }
  .kring { display: none; }
}
