/* vitaradar.hu: the look of the stream's overlay. Black, matrix green, monospace, scanlines, digital rain. */
:root {
  color-scheme: dark;
  --bg: #000;
  --panel: rgba(2, 10, 5, .86);
  --panel-solid: #020a05;
  --line: rgba(0, 255, 65, .28);
  --line-dim: rgba(0, 255, 65, .14);
  --green: #00ff41;
  --green-soft: #7dffa0;
  --text: #c9ffd6;
  --muted: #5fa875;
  --cyan: #00e5ff;
  --true: #00ff41;
  --false: #ff3b3b;
  --unverifiable: #ffbe00;
  --fallacy: #c77dff;
  --pending: #00e5ff;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --glow: 0 0 6px rgba(0, 255, 65, .55), 0 0 18px rgba(0, 255, 65, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--mono);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* the rain behind everything, and scanlines over it */
#rain { position: fixed; inset: 0; z-index: -2; opacity: .32; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .28) 2px 3px),
              radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .75) 100%);
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-shadow: var(--glow); }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--mono); }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .82); position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none !important; }
.brand img { filter: drop-shadow(0 0 6px rgba(0, 255, 65, .6)); }
.brand-name { font: 700 22px/1 var(--mono); letter-spacing: -.3px; text-shadow: var(--glow); }
.brand-name::after { content: "_"; animation: blink 1s steps(1) infinite; margin-left: 1px; }
.brand-tld { color: var(--green-soft); }
/* Under the name, from its bottom left: BETA and the online count (js/presence.js) as one small line. Out of the flow,
   so the header keeps its height and the name its width; outside the link, so the count's tooltip is its own. The
   variables follow the logo's size, the gap and the name's font size at each width (the 480px and 340px rules). */
.brand-box { --logo: 32px; --brand-gap: 10px; --name: 22px; position: relative; display: flex; flex: none; }
.brand-sub { position: absolute; left: calc(var(--logo) + var(--brand-gap) + 1px); top: calc(50% + var(--name) / 2 + 4px);
  display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.brand-beta { padding: 2px 4px 1px; border: 1px solid var(--line);
  background: rgba(0, 255, 65, .08); color: var(--green); font: 700 9px/1 var(--mono); letter-spacing: 1.6px;
  text-shadow: none; }
@keyframes blink { 50% { opacity: 0; } }
.tagline { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 6px 10px; border: 1px solid transparent; color: var(--muted); font-size: 13px; letter-spacing: .8px;
  text-transform: uppercase; }
.nav a:hover { color: var(--green); border-color: var(--line); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green); border-color: var(--line); background: rgba(0, 255, 65, .06); text-shadow: var(--glow); }
/* The nav's "Élő adás" link is the live indicator (js/common.js setLiveNav): red glow and a blinking dot while a
   broadcast is on, "nincs adás" otherwise. Both labels share one grid cell, so the link always has the width of the
   longer one and nothing moves when the state arrives; until then (data-live="loading") the dot is dim and still,
   like the online count's. */
.live-stack { display: inline-grid; justify-items: center; align-items: center; }
.live-stack > span { grid-area: 1 / 1; display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }  /* the text's baseline is the link's */
.live-off, .nav-live[data-live="off"] .live-on { visibility: hidden; }
.nav-live[data-live="off"] .live-off { visibility: visible; }
.live-dot { flex: none; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .45; }
.nav-live[data-live="on"] .live-dot { opacity: 1; box-shadow: 0 0 6px #ff4d4d; animation: blink 1s steps(1) infinite; }
.nav a.nav-live[data-live="on"] { color: #ff4d4d; border-color: rgba(255, 77, 77, .6); background: rgba(255, 77, 77, .1);
  text-shadow: 0 0 6px rgba(255, 77, 77, .75); box-shadow: 0 0 10px rgba(255, 77, 77, .35), inset 0 0 8px rgba(255, 77, 77, .12); }
.nav a.nav-live[data-live="on"]:hover, .nav a.nav-live[data-live="on"]:focus-visible { border-color: #ff4d4d;
  box-shadow: 0 0 14px rgba(255, 77, 77, .55), inset 0 0 8px rgba(255, 77, 77, .18); outline: none; }
/* who is on the site now (js/presence.js), beside BETA under the logo, in its size */
.online-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 1px; border: 1px solid var(--line);
  font: 700 9px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--green); cursor: default;
  text-shadow: none; }
.online-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 4px currentColor;
  animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .35; } }
/* The header's slots that fill in after load (js/presence.js, js/account.js, js/menu.js) are in the page from the
   start, at their final size, so nothing in the header moves when their data arrives. */
.online-n { display: inline-block; min-width: calc(6em + 12px); text-align: center; }  /* 10 monospace characters with their letter-spacing: "999 online" (em, not ch: ch follows whichever font has loaded) */
.online-badge[data-state="loading"], .online-badge[data-state="unknown"] { color: var(--muted); }
.online-badge[data-state="loading"] .dot, .online-badge[data-state="unknown"] .dot { animation: none; box-shadow: none; }
/* the account slot's placeholder: the last known state's button (html[data-acct], set in each page's head), dimmed */
.acct-skel { display: inline-flex; pointer-events: none; opacity: .45; }
.acct-skel > * { display: none !important; }
html:not([data-acct="in"]):not([data-acct="reg"]) .acct-skel > .skel-out,
html[data-acct="reg"] .acct-skel > .skel-reg { display: inline-block !important; }
html[data-acct="in"] .acct-skel > .skel-in { display: inline-flex !important; }
/* the footer starts below the fold, so content arriving after load doesn't push it around in view */
main { min-height: 100vh; }
@media (max-width: 860px) {  /* it lives in the phone menu's panel (js/menu.js moves it there) */
  .header-row > .nav { display: none; }
}
@media (max-width: 359px) {
  html[data-acct="reg"] .header-row:has(.acct-skel) .brand-name, html[data-acct="reg"] .header-row:has(.acct-skel) .brand-sub { display: none; }
}

/* panels: a thin neon frame with corner brackets */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); }
.panel::before, .panel::after { content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); }
.panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--green); border-right: 2px solid var(--green); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.section-head h2 { margin: 0; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green);
  text-shadow: var(--glow); }
.section-head h2::before { content: "> "; color: var(--muted); }
.count { font-size: 12px; color: var(--muted); }

/* player */
main { flex: 1; }
main.wrap { padding-top: 32px; padding-bottom: 56px; }  /* main.wrap: beats .wrap's own padding */
.player { aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 0 30px rgba(0, 255, 65, .12); }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player #twitch, .player #twitch iframe, .player #yt { width: 100%; height: 100%; display: block; border: 0; }
.player-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
  text-align: center; color: var(--muted); pointer-events: none; letter-spacing: .5px; }
.player-note::before { content: "//"; margin-right: 1ch; }
.player-note.over-poster { background: rgba(0, 0, 0, .62); color: var(--text); }  /* watch.js: a replay not on YouTube yet */

/* below the player: facts left, speaker right */
.below { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 22px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.empty { color: var(--muted); margin: 6px 0 0; }
.empty::before { content: "// "; }

/* a fact, like the stream's claim cards */
.fact { position: relative; background: var(--panel); border: 1px solid var(--line-dim); border-left: 3px solid var(--pending);
  padding: 12px 14px 13px; animation: pop .45s cubic-bezier(.2, .9, .3, 1.2); }
.fact[data-verdict="true"] { border-left-color: var(--true); }
.fact[data-verdict="false"] { border-left-color: var(--false); }
.fact[data-verdict="unverifiable"] { border-left-color: var(--unverifiable); }
.fact[data-verdict="fallacy"] { border-left-color: var(--fallacy); }
.fact.flash { animation: glitch .7s steps(2) 1, flash 1.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes flash { from { background: rgba(0, 255, 65, .12); } to { background: var(--panel); } }
@keyframes glitch {
  0% { transform: translate(2px, 0); text-shadow: -2px 0 var(--false), 2px 0 var(--cyan); }
  50% { transform: translate(-2px, 0); text-shadow: 2px 0 var(--false), -2px 0 var(--cyan); }
  100% { transform: none; text-shadow: none; }
}
.fact-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.verdict { font: 700 11px/1 var(--mono); letter-spacing: .8px; padding: 5px 7px; color: #000; background: var(--pending); }
.verdict[data-v="true"] { background: var(--true); }
.verdict[data-v="false"] { background: var(--false); color: #fff; }
.verdict[data-v="unverifiable"] { background: var(--unverifiable); }
.verdict[data-v="fallacy"] { background: var(--fallacy); }
.verdict[data-v="pending"]::after { content: " ░▒"; animation: blink .8s steps(1) infinite; }
.fact-who { font-size: 12px; color: var(--muted); }
.fact-who a { color: var(--muted); }
.fact-time { font-size: 11px; color: var(--muted); margin-left: auto; }
.fact-bullet { margin: 0; color: #eafff0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.fact-claim { margin: 6px 0 0; color: var(--text); font-size: 14px; opacity: .85; }
.fact-expl { margin: 9px 0 0; color: var(--text); font-size: 14px; }
.fact-expl::before { content: "» "; color: var(--muted); }
.fact-sources { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 12px; }
.fact-sources li::before { content: "> forrás: "; color: var(--muted); }
.fact-sources a { word-break: break-word; }

/* speaker card */
.speaker-col { position: sticky; top: 84px; }
.speaker { overflow: hidden; }
.speaker-photo { aspect-ratio: 4 / 5; background: #031208; display: grid; place-items: center; position: relative; overflow: hidden; }
.initials { font: 700 56px/1 var(--mono); color: rgba(0, 255, 65, .35); text-shadow: var(--glow); }
.speaker-text { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.speaker-name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: #eafff0; text-transform: uppercase; }
.speaker-name a { color: inherit; }
.speaker-party { margin: 4px 0 0; color: var(--green); font-size: 13px; }
.speaker-party::before { content: "■ "; color: var(--party, var(--green)); }
.speaker-role { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.speaker-more { display: inline-block; margin-top: 8px; font-size: 12px; }

/* tallies */
.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.tally div { background: var(--panel); border: 1px solid var(--line-dim); padding: 9px 11px; }
.tally dt { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.tally dd { margin: 3px 0 0; font: 700 22px/1 var(--mono); }
.c-true { color: var(--true); text-shadow: 0 0 8px rgba(0, 255, 65, .5); }
.c-false { color: var(--false); text-shadow: 0 0 8px rgba(255, 59, 59, .45); }
.c-unverifiable { color: var(--unverifiable); text-shadow: 0 0 8px rgba(255, 190, 0, .4); }
.c-fallacy { color: var(--fallacy); text-shadow: 0 0 8px rgba(199, 125, 255, .45); }

/* a verdict bar: true | unverifiable | false | fallacy */
.bar { display: flex; height: 8px; background: rgba(0, 255, 65, .06); border: 1px solid var(--line-dim); }
.bar span { display: block; height: 100%; }
.bar .b-true { background: var(--true); } .bar .b-unverifiable { background: var(--unverifiable); }
.bar .b-false { background: var(--false); } .bar .b-fallacy { background: var(--fallacy); }

/* MP list */
.page-title { margin: 0 0 6px; font-size: 26px; color: var(--green); text-shadow: var(--glow); letter-spacing: .5px; }
.page-sub { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.field { background: rgba(0, 0, 0, .7); border: 1px solid var(--line); color: var(--text); font: 14px var(--mono); padding: 9px 11px; }
.field:focus { outline: none; border-color: var(--green); box-shadow: var(--glow); }
input.field { flex: 1; min-width: 200px; }
.btn { background: rgba(0, 255, 65, .1); border: 1px solid var(--green); color: var(--green); font: 700 13px var(--mono);
  padding: 9px 14px; cursor: pointer; letter-spacing: .8px; text-transform: uppercase; }
.btn:hover { background: rgba(0, 255, 65, .2); box-shadow: var(--glow); }
.mp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 1fr; gap: 12px; }  /* every row as tall as the tallest card: all cards the same size */
.mp-grid > li { display: flex; }
.mp-card { flex: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-content: start; padding: 12px;
  color: var(--text); text-decoration: none !important; }
.mp-card:hover { border-color: var(--green); box-shadow: var(--glow); }
.mp-card.no-data { opacity: .55; }
.mp-card.no-data:hover { opacity: 1; }
.btn.toggle { background: transparent; color: var(--muted); border-color: var(--line); }
.btn.toggle::before { content: "[ ] "; }
.btn.toggle[aria-pressed="true"] { background: rgba(0, 255, 65, .14); color: var(--green); border-color: var(--green); box-shadow: var(--glow); }
.btn.toggle[aria-pressed="true"]::before { content: "[x] "; }
.count-line { margin: -4px 0 14px; font-size: 12px; color: var(--muted); }
.mp-thumb { width: 64px; height: 80px; background: #031208; display: grid; place-items: center; overflow: hidden; }
.mp-thumb .initials { font-size: 22px; }
/* one line per item */
.mp-body h2 { margin: 0; min-height: 2.6em; font-size: 14px; line-height: 1.3; color: #eafff0; text-transform: uppercase; }
.mp-party, .mp-role { margin: 0; font-size: 12px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-party { color: var(--green); }
.mp-role { color: var(--muted); }
.mp-body .bar { margin: 8px 0 6px; }
.mp-stats { margin: 0; font-size: 12px; }
.mp-stats div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line-dim); }
.mp-stats div:last-child { border-bottom: 0; }
.mp-stats dt { color: var(--muted); }
.mp-stats dd { margin: 0; font-weight: 700; color: #eafff0; }
.mp-stats dd.c-true, .mp-stats dd.c-false, .mp-stats dd.c-unverifiable, .mp-stats dd.c-fallacy { text-shadow: none; }
.mp-stats dd.c-true { color: var(--true); } .mp-stats dd.c-false { color: var(--false); }
.mp-stats dd.c-unverifiable { color: var(--unverifiable); } .mp-stats dd.c-fallacy { color: var(--fallacy); }

/* portraits (setPhoto in js/common.js): the cut-out in front of an animated background drawn here, per person.
   Layers: the box's own background (glow, radar rings, faint grid, all around the centre) < .pt-sweep (a radar sweep
   turning around the centre) < the person < .pt-party (the party's colour rising from the bottom) < .pt-lines (static
   scanlines). The sweep's speed and direction, the hue and the ring spacing vary with the variables setPhoto sets. */
.portrait { position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, hsl(var(--hue, 135) 100% 45% / .30), transparent 62%),
    repeating-radial-gradient(circle at 50% 50%,
      transparent 0 calc(var(--rings, 14px) - 1px), hsl(var(--hue, 135) 100% 50% / .14) calc(var(--rings, 14px) - 1px) var(--rings, 14px)),
    linear-gradient(90deg, hsl(var(--hue, 135) 100% 50% / .06) 1px, transparent 1px) 0 0 / 12px 100%,
    #010a04; }
.portrait > img, .portrait > .initials { position: relative; z-index: 2; }
.portrait > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait.cutout > img { object-position: center bottom;
  filter: drop-shadow(0 0 5px hsl(var(--hue, 135) 100% 50% / .55)) saturate(.9) contrast(1.05); }
.pt-sweep { position: absolute; z-index: 1; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; translate: -50% -50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, hsl(var(--hue, 135) 100% 50% / .10) 320deg,
    hsl(var(--hue, 135) 100% 55% / .38) 356deg, hsl(var(--hue, 135) 100% 75% / .7) 360deg);
  animation: pt-spin var(--sweep-t, 6s) linear var(--sweep-delay, 0s) infinite var(--sweep-dir, normal); }
.pt-party { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--party) 55%, transparent) 0, transparent 34%);
  box-shadow: inset 0 -3px 0 var(--party); }
.portrait[data-party] > .pt-party { display: block; }
.pt-lines { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .28) 2px 3px); }
@keyframes pt-spin { to { rotate: 360deg; } }
.portrait.off > .pt-sweep { animation-play-state: paused; }  /* off screen */
@media (prefers-reduced-motion: reduce) { .pt-sweep { animation: none; } }

/* dropdown (js/dropdown.js): the site's own listbox in place of the browser's <select> */
.dd { position: relative; min-width: 240px; }
.dd-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
  background: rgba(0, 0, 0, .7); border: 1px solid var(--line); color: var(--text); font: 14px var(--mono); padding: 9px 11px;
  text-align: left; }
.dd-button::before { content: "> "; color: var(--muted); }
.dd-value { flex: 1; color: var(--green); }
.dd-caret { color: var(--green); transition: transform .15s; }
.dd-button:hover, .dd-button:focus-visible, .dd[data-open="true"] .dd-button { outline: none; border-color: var(--green); box-shadow: var(--glow); }
.dd[data-open="true"] .dd-caret { transform: rotate(180deg); }
.dd-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px 0; list-style: none;
  background: var(--panel-solid); border: 1px solid var(--green); box-shadow: var(--glow), 0 12px 30px rgba(0, 0, 0, .7);
  max-height: 320px; overflow: auto; outline: none; }
.dd-list { min-width: max-content; }  /* options never wrap; the list may be wider than its button */
.dd-option { padding: 8px 24px 8px 30px; font-size: 14px; color: var(--text); cursor: pointer; position: relative; white-space: nowrap; }
.dd-option::before { content: ""; position: absolute; left: 12px; color: var(--green); }
.dd-option[aria-selected="true"] { color: var(--green); }
.dd-option[aria-selected="true"]::before { content: "✓"; }
.dd-option.active { background: rgba(0, 255, 65, .14); color: #eafff0; }
.dd-option.active::after { content: " _"; color: var(--green); animation: blink 1s steps(1) infinite; }

/* MP page */
.mp-head { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: start; margin-bottom: 24px; }
.mp-head .speaker-photo { aspect-ratio: 4 / 5; }
.mp-head h1 { margin: 0; font-size: 28px; line-height: 1.2; color: #eafff0; text-transform: uppercase; text-shadow: var(--glow); }
.mp-head .meta { margin: 6px 0 14px; color: var(--green); }
.scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.scores div { border: 1px solid var(--line-dim); background: var(--panel); padding: 10px 12px; }
.scores dt { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.scores dd { margin: 4px 0 0; font: 700 26px/1 var(--mono); }
.scores small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 400; }
.facts-line { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
/* the MP page's head keeps its height while js/mp.js fills it in (name, party and role, the totals line) */
.mp-head .meta, #mp-line { min-height: 1.55em; }
@media (max-width: 560px) { .mp-head h1 { min-height: 2.4em; } .mp-head .meta { min-height: 3.1em; } #mp-line { min-height: 4.65em; } }
.mp-section { margin-top: 26px; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.hits { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.hit { padding: 11px 13px; }
.hit-top { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.hit-score { color: var(--green); }
.hit p { margin: 0; font-size: 14px; }
/* MP page: days > speeches > facts, each level a <details> (native: keyboard and screen readers for free) */
.days { display: grid; gap: 12px; }
.days details > summary { list-style: none; cursor: pointer; }
.days details > summary::-webkit-details-marker { display: none; }
.days summary:focus-visible { outline: 1px solid var(--green); outline-offset: -1px; }
.days summary:hover { background: rgba(0, 255, 65, .05); }
.day > summary, .speech > summary { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px 14px; }
.lvl-title { color: #eafff0; font-weight: 700; }
.lvl-title::before { content: "▸ "; color: var(--green); }
details[open] > summary .lvl-title::before { content: "▾ "; }
.days summary .meta { font-size: 12px; color: var(--muted); }
.days summary .nums { font-size: 12px; display: flex; gap: 10px; justify-self: end; }
.days summary .bar { grid-column: 1 / -1; }
.day > summary { padding: 14px 16px; }
.day > summary .lvl-title { font-size: 16px; }
.day-body { padding: 0 16px 16px; display: grid; gap: 10px; }
.speech { border: 1px solid var(--line-dim); background: rgba(0, 0, 0, .35); }
.speech > summary { padding: 10px 12px; }
.speech > summary .lvl-title { font-size: 14px; }
.speech-body { padding: 2px 12px 12px; }
.speech .facts { gap: 8px; }
.speech.flash { animation: flash 1.6s ease-out; border-color: var(--green); }
.fact-d > summary { display: flex; align-items: baseline; gap: 10px; }
.fact-d > summary::before { content: "▸"; color: var(--muted); flex: none; }
.fact-d[open] > summary::before { content: "▾"; color: var(--green); }
.fact-d > summary .verdict { flex: none; }
.fact-d > summary .fact-bullet { flex: 1; margin: 0; font-size: 15px; }
.fact-d > summary .fact-time { flex: none; }
.fact-body { padding: 4px 0 0 18px; }
.transcript-d > summary { margin-top: 12px; color: var(--green); font-size: 13px; }
.transcript-d > summary::before { content: "▸ "; }
.transcript-d[open] > summary::before { content: "▾ "; }
.transcript { margin: 8px 0 0; white-space: pre-wrap; font-size: 13px; color: var(--text); opacity: .9; max-height: 420px; overflow: auto;
  border-left: 2px solid var(--line); padding-left: 12px; }

/* the day picker (js/calendar.js) and the controls beside it */
.days-tools { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.cal { padding: 10px 12px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-title { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; font-size: 13px; }
.cal-nav { background: transparent; border: 1px solid var(--line); color: var(--green); font: 700 16px/1 var(--mono); width: 30px; height: 28px; cursor: pointer; }
.cal-nav:hover:not(:disabled), .cal-nav:focus-visible { border-color: var(--green); box-shadow: var(--glow); outline: none; }
.cal-nav:disabled { color: #20352a; border-color: var(--line-dim); cursor: default; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font-size: 10px; color: var(--muted); font-weight: 400; padding: 4px 0; }
.cal-grid td { padding: 2px; text-align: center; }
.cal-day { width: 100%; height: 30px; background: transparent; border: 1px solid transparent; color: #2a4434; font: 13px var(--mono); padding: 0; }
.cal-day.today { text-decoration: underline; }
.cal-day.has { color: var(--green); border-color: var(--line); font-weight: 700; cursor: pointer; background: rgba(0, 255, 65, .06); }
.cal-day.has:hover { border-color: var(--green); box-shadow: var(--glow); }
.cal-day:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.cal-day.selected { background: var(--green); color: #000; border-color: var(--green); }
.days-actions { display: grid; gap: 10px; align-content: start; }
.days-actions .facts-line { margin: 0; }
.days-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.toggle-plain { background: transparent; color: var(--green); border-color: var(--line); padding: 7px 12px; font-size: 12px; }
.btn.toggle-plain:hover { border-color: var(--green); }
.linkish { background: none; border: 0; padding: 0; color: var(--green); font: inherit; cursor: pointer; }
.linkish:hover, .linkish:focus-visible { text-decoration: underline; outline: none; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .days-tools { grid-template-columns: 1fr; }
  .day > summary, .speech > summary { grid-template-columns: 1fr; }
  .days summary .nums { justify-self: start; }
  .fact-d > summary { flex-wrap: wrap; }
  .fact-d > summary .fact-bullet { flex-basis: 100%; order: 3; }  /* the headline under the badge, full width */
  .fact-d > summary .verdict { flex: 0 1 auto; min-width: 0; white-space: normal; line-height: 1.4; }  /* long badges wrap */
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 26px; font-size: 12px; background: rgba(0, 0, 0, .82); }
.footer-row { display: grid; gap: 4px; }
.footer-row p { margin: 0; }
.footer-row p:first-child { color: var(--green); }
.footer-links {
  display: grid; grid-template-columns: repeat(4, max-content); gap: 14px 56px;
  padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line-dim);
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li a { display: inline-block; padding: 3px 0; color: var(--text); }  /* a 24px-tall target */
.footer-links li a:hover, .footer-links li a:focus-visible { color: var(--green); }
.footer-h { margin: 0 0 4px; color: var(--green); letter-spacing: .5px; }
@media (max-width: 700px) { .footer-links { grid-template-columns: 1fr 1fr; gap: 16px 24px; } }  /* four columns need ~630px */

/* impresszum */
.imp { display: grid; gap: 18px; max-width: 900px; }
.imp-sec { padding: 18px 20px; }
.imp-sec h2 { margin: 0 0 12px; font-size: 15px; color: var(--green); text-shadow: var(--glow); letter-spacing: .5px; }
.imp-sec h2::before { content: "// "; color: var(--muted); text-shadow: none; }
.imp-sec p { margin: 0 0 10px; }
.imp-sec > :last-child { margin-bottom: 0; }
.imp-data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.imp-data dt { color: var(--muted); }
.imp-data dd { margin: 0; overflow-wrap: anywhere; }
.imp-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.imp-list > li { position: relative; padding-left: 20px; }
.imp-list > li::before { content: ">"; position: absolute; left: 0; color: var(--green); }
.imp-list b { color: var(--green-soft); }
.imp-verdicts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; align-items: center; margin: 10px 0 0; }
.imp-verdicts dd { margin: 0; color: var(--text); }
.imp-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 12px 0 0; padding: 0; }
.imp-links a { display: inline-block; padding: 3px 0; }
.imp-note { color: var(--muted); font-size: 13px; }
.imp-me { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.imp-photo { width: 150px; aspect-ratio: 3 / 4; border: 1px solid var(--line);  /* the MP portraits' radar frame */
  --hue: 138; --rings: 13px; --sweep-t: 7s; }
.imp-me-text > p { margin-top: 0; }
@media (max-width: 560px) {
  .imp-sec { padding: 14px; }
  .imp-data, .imp-verdicts { grid-template-columns: 1fr; gap: 2px; }
  .imp-data dd, .imp-verdicts dd { margin-bottom: 10px; }
  .imp-me { grid-template-columns: 1fr; gap: 14px; }  /* the photo above the text */
  .imp-photo { width: 132px; }
}

/* narrow screens */
@media (max-width: 860px) {
  main.wrap { padding-top: 20px; padding-bottom: 40px; }
  .below { grid-template-columns: 1fr; }
  .speaker-col { position: static; order: -1; }
  .speaker { display: grid; grid-template-columns: 96px 1fr; }
  .speaker .speaker-photo { aspect-ratio: auto; min-height: 120px; }
  .speaker .initials { font-size: 30px; }
  .speaker-text { border-top: 0; border-left: 1px solid var(--line); }
  .tally { grid-template-columns: repeat(4, 1fr); }
  .tally dt { font-size: 8px; }
  .tally dd { font-size: 18px; }
  .nav { margin-left: 0; order: 3; flex-basis: 100%; }
  .tagline { display: none; }
  .mp-head { grid-template-columns: 110px 1fr; gap: 14px; }
  .mp-head h1 { font-size: 20px; }
  .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .fact, .fact.flash, .live-dot, .online-badge .dot, .verdict::after, .brand-name::after { animation: none !important; }
}

/* accounts (js/account.js), votes and comments (js/social.js), the live chat (js/chat.js) */
.acct { display: flex; align-items: center; }
.acct-btn { padding: 7px 11px; font-size: 12px; }
/* the header's account button: the picture (or the initials) only, the points as a number on its corner */
.acct-me { position: relative; display: inline-flex; background: transparent; border: 0; padding: 0; cursor: pointer; }
.acct-me .avatar { border: 0; }
.acct-me:hover .avatar, .acct-me:focus-visible .avatar { box-shadow: var(--glow); }
.acct-me:focus-visible { outline: none; }
.acct-points { position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--green); color: #000; font: 700 10px/18px var(--mono); text-align: center; pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 255, 65, .6); }
.acct-points.bump { animation: bump .6s ease-out; }
.avatar { --size: 32px; width: var(--size); height: var(--size); flex: none; display: inline-grid; place-items: center;
  overflow: hidden; background: #031208; border: 1px solid var(--line); color: var(--green);
  font: 700 calc(var(--size) * .4)/1 var(--mono); text-transform: uppercase; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dlg { padding: 0; border: 1px solid var(--green); background: var(--panel-solid); color: var(--text);
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--glow), 0 20px 60px rgba(0, 0, 0, .8); }
.dlg::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(2px); }
.dlg-form { display: grid; gap: 12px; padding: 18px 18px 16px; }
.dlg-title { margin: 0; font-size: 15px; color: var(--green); letter-spacing: 1.2px; text-transform: uppercase; text-shadow: var(--glow); }
.dlg-title::before { content: "> "; color: var(--muted); }
.dlg-text { margin: 0; font-size: 13px; }
.dlg-error { margin: 0; color: var(--false); font-size: 13px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn.ghost:hover { color: var(--green); border-color: var(--green); }
.btn.small { padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: wait; }
.fld { display: grid; gap: 4px; }
.fld-label { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.fld-hint { font-size: 11px; color: var(--muted); }
.fld .field { width: 100%; min-width: 0; }
.field:disabled { color: var(--muted); border-color: var(--line-dim); background: rgba(0, 0, 0, .35); cursor: not-allowed; }
.fld.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 12px; }
.fld.check input { accent-color: var(--green); margin-top: 3px; }
input[type="date"].field { color-scheme: dark; }
input[type="file"].field { padding: 7px; font-size: 12px; }
.profile-pic { display: flex; justify-content: center; align-items: center; min-height: 96px; }
.toasts { position: fixed; z-index: 50; left: 50%; bottom: 20px; translate: -50% 0; display: grid; gap: 8px;
  width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--panel-solid); border: 1px solid var(--green); color: var(--text); padding: 10px 14px; font-size: 13px;
  box-shadow: var(--glow); animation: pop .3s ease-out; }
.leave-host { margin: 0; font-size: 18px; font-weight: 700; color: var(--unverifiable); word-break: break-all; }
.leave-url { margin: 0; font-size: 12px; color: var(--muted); word-break: break-all; max-height: 6em; overflow: auto; }

.social { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line-dim); }
.social-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.votes { display: inline-flex; gap: 6px; }
.vote { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line-dim);
  color: var(--muted); font: 700 12px/1 var(--mono); padding: 5px 8px; cursor: pointer; }
.vote svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vote:hover, .vote:focus-visible { color: var(--green); border-color: var(--line); outline: none; }
.vote[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .3; }
.vote.up[aria-pressed="true"] { color: var(--true); border-color: var(--true); background: rgba(0, 255, 65, .1); box-shadow: 0 0 8px rgba(0, 255, 65, .35); }
.vote.down[aria-pressed="true"] { color: var(--false); border-color: var(--false); background: rgba(255, 59, 59, .1); box-shadow: 0 0 8px rgba(255, 59, 59, .3); }
.talk { margin-left: auto; color: var(--muted); font-size: 12px; }
.talk::before { content: "// "; }
.thread { margin-top: 10px; display: grid; gap: 10px; }
.thread > .empty { margin: 0; font-size: 12px; }
.gate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); padding: 10px 12px; }
.gate p { margin: 0; flex: 1; min-width: 200px; }
.composer { display: grid; gap: 6px; }
.composer textarea { width: 100%; resize: vertical; display: block; }
.composer:not(.active) textarea { resize: none; }
.composer:not(.active) .composer-bar { display: none; }
.composer-bar { display: flex; align-items: center; gap: 10px; }
.composer-count { font-size: 11px; color: var(--muted); }
.composer-msg { flex: 1; font-size: 12px; color: var(--cyan); }
.composer-msg.bad { color: var(--false); }
.cmts, .cmt-replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cmt-replies { margin-top: 8px; padding-left: 14px; border-left: 1px solid var(--line-dim); }
.cmt-replies:empty, .cmt-reply:empty { display: none; }
.cmt { font-size: 13px; }
.cmt-head { display: flex; align-items: center; gap: 8px; }
.cmt-nick { color: var(--green); font-weight: 700; }
/* names (up to 40 characters) stay on one line */
.cmt-nick, .msg-nick { display: inline-block; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: bottom; }
.cmt.own > .cmt-head .cmt-nick::after { content: " (te)"; color: var(--muted); font-weight: 400; }
.cmt-time { font-size: 11px; color: var(--muted); }
.cmt-text { margin: 4px 0 4px 30px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.cmt-actions { display: flex; align-items: center; gap: 10px; margin-left: 30px; }
.cmt-actions .vote { padding: 3px 6px; font-size: 11px; }
.cmt-actions .vote svg { width: 12px; height: 12px; }
.cmt-reply { margin: 6px 0 0 30px; }
.link-btn { background: transparent; border: 0; padding: 0; color: var(--green); font: 12px var(--mono); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
a.ext { color: var(--cyan); text-decoration: underline dotted; overflow-wrap: anywhere; }

/* the chat sits beside the player, as tall as the video (contain: size keeps its messages from stretching the row) */
.stage[data-chat="on"] { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
.chat { display: flex; flex-direction: column; contain: size; }
.chat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line-dim); }
.chat-head h2 { margin: 0; white-space: nowrap; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green); text-shadow: var(--glow); }
.chat-head h2::before { content: "> "; color: var(--muted); }
.chat-head .count { font-size: 10px; }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 8px 12px; display: flex;
  flex-direction: column; gap: 6px; font-size: 13px; }
.msg { line-height: 1.4; overflow-wrap: anywhere; }
.msg .avatar { vertical-align: middle; margin-right: 6px; }
.msg-nick { color: var(--green); font-weight: 700; margin-right: 6px; }
.msg.own .msg-nick { color: var(--cyan); }
.msg-time { font-size: 10px; color: var(--muted); margin-right: 6px; }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line-dim); }
.chat-form .field { flex: 1; min-width: 0; }
@media (max-width: 860px) {
  .stage[data-chat="on"] { grid-template-columns: 1fr; gap: 14px; }
  .chat { contain: none; height: 360px; }
  .acct { order: 2; margin-left: auto; }
}
/* the chat closed (js/chat.js; :root[data-chat="closed"] is set in the head, before the first paint): the player takes
   the full width, and the chat folds into a button on the player's top right corner that counts the messages missed
   meanwhile. The column narrows to nothing while the chat fades, so nothing jumps. */
.stage { position: relative; }
.stage[data-chat="on"] { transition: grid-template-columns .25s ease, column-gap .25s ease; }
.stage[data-chat="on"] > .chat { min-width: 0; transition: opacity .15s .15s; }
:root[data-chat="closed"] .stage[data-chat="on"] { grid-template-columns: minmax(0, 1fr) 0px; column-gap: 0; }
:root[data-chat="closed"] .stage > .chat { opacity: 0; visibility: hidden; overflow: hidden; border-width: 0;
  transition: opacity .12s, visibility 0s .25s, border-width 0s .25s; }
.chat-close { flex: none; margin: -4px -6px -4px auto; padding: 3px 6px; background: transparent; border: 1px solid transparent;
  color: var(--muted); font: 13px/1 var(--mono); cursor: pointer; }
.chat-close:hover, .chat-close:focus-visible { color: var(--green); border-color: var(--line); outline: none; }
.chat-open { display: none; position: absolute; z-index: 5; top: 10px; right: 10px; align-items: center; padding: 6px 10px;
  background: rgba(0, 0, 0, .78); border: 1px solid var(--line); color: var(--green); font: 13px/1.55 var(--mono);
  letter-spacing: .8px; text-transform: uppercase; text-shadow: var(--glow); cursor: pointer; }
.chat-open:hover, .chat-open:focus-visible { border-color: var(--green); box-shadow: var(--glow); outline: none; }
:root[data-chat="closed"] .chat-open { display: inline-flex; }
.chat-missed { position: absolute; top: -9px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--green); color: #000; font: 700 10px/18px var(--mono); letter-spacing: 0; text-align: center;
  text-shadow: none; box-shadow: 0 0 6px rgba(0, 255, 65, .6); pointer-events: none; }
.chat-missed[hidden] { display: none; }
.chat-missed.bump { animation: bump .6s ease-out; }
@media (max-width: 860px) {  /* the chat sits below the player there: closed, it simply goes */
  :root[data-chat="closed"] .stage[data-chat="on"] { grid-template-columns: minmax(0, 1fr); gap: 0; }
  :root[data-chat="closed"] .stage > .chat { display: none; }
  .chat-open { top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage[data-chat="on"], .stage[data-chat="on"] > .chat, :root[data-chat="closed"] .stage > .chat { transition: none; }
  .chat-missed.bump { animation: none; }
}
/* the first arrival's scroll hint (js/scrollhint.js): a down arrow at the bottom centre while the full-width player hides
   the facts; the script sets its height (under the player, or above the video's controls, above the cookie bar). Fixed,
   so nothing moves; gone while a game card is up at the bottom. */
@keyframes hint-in { from { opacity: 0; } }
@keyframes hint-bob { 50% { transform: translate(-50%, 5px); } }
.scroll-hint { position: fixed; z-index: 44; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid;
  place-items: center; width: 42px; height: 42px; padding: 0; background: rgba(0, 0, 0, .8); border: 1px solid var(--green);
  color: var(--green); cursor: pointer; box-shadow: var(--glow); animation: hint-in .4s ease-out, hint-bob 1.8s ease-in-out .4s infinite; }
.scroll-hint svg { width: 20px; height: 20px; filter: drop-shadow(0 0 4px rgba(0, 255, 65, .6)); }
.scroll-hint:hover, .scroll-hint:focus-visible { background: rgba(0, 255, 65, .14); outline: none; }
.scroll-hint[hidden] { display: none; }
.scroll-hint[data-gone] { opacity: 0; transition: opacity .25s; pointer-events: none; }
body:has(.game-dock > :not([hidden])) .scroll-hint { display: none; }
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } .scroll-hint[data-gone] { transition: none; } }
@media (max-width: 1399px) { .tagline { display: none; } }  /* the tagline only where the header has room for it */

/* locked content (js/social.js locked()): placeholder text, blurred, with a prompt on top */
.locked { position: relative; overflow: hidden; }
.locked-fake { filter: blur(5px); opacity: .7; user-select: none; pointer-events: none; }
.locked-cta { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2)); }
.locked-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; text-align: center;
  max-width: 420px; padding: 10px 14px; background: rgba(2, 10, 5, .92); border: 1px solid var(--green); box-shadow: var(--glow); }
.locked-card p { margin: 0; font-size: 13px; color: var(--text); }
.thread > .locked { min-height: 96px; }
.chat > .locked { flex: 1; min-height: 0; }
.chat > .locked .locked-fake { height: 100%; overflow: hidden; }
.cmt.gone > .cmt-text { font-size: 12px; }
.more-cmts { justify-self: start; }
.blocked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; max-height: 140px; overflow: auto; }
.blocked-list li { display: flex; justify-content: space-between; gap: 10px; }
/* a comment linked to (?c=, from a profile page): framed until the page is left */
.cmt.cmt-focus { outline: 1px solid var(--green); outline-offset: 4px; box-shadow: var(--glow); }
.cmt.cmt-focus > .cmt-text { animation: flash 1.6s ease-out; }

/* the profile page (profile.html, js/profile.js): the head with the stats, one's own editor, the games and the
   comments, each with a link to where it happened; what the owner hides from others is marked "csak te látod" */
.prof { display: grid; gap: 18px; }
.prof-gate { display: grid; gap: 12px; justify-items: start; max-width: 560px; padding: 22px; }
.prof-gate p { margin: 0; }
.prof-head { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 300px); gap: 20px; align-items: start;
  padding: 18px; }
.prof-head > .avatar { border-color: var(--green); box-shadow: var(--glow); }
.prof-who { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.prof-who p { margin: 0; }
.prof-nick { margin: 0; font-size: 26px; line-height: 1.2; color: var(--green); text-shadow: var(--glow); overflow-wrap: anywhere; }
.prof-you, .prof-since { color: var(--muted); font-size: 12px; }
.prof-name { color: #eafff0; font-size: 14px; overflow-wrap: anywhere; }
.prof-who .btn { margin-top: 8px; }
.prof-edit > summary { cursor: pointer; padding: 12px 18px; color: var(--green); font-size: 13px; letter-spacing: 1.2px;
  text-transform: uppercase; }
.prof-edit > summary:focus-visible { outline: 1px solid var(--green); outline-offset: -1px; }
.prof-edit[open] > summary { border-bottom: 1px solid var(--line-dim); }
.prof-form { display: grid; gap: 12px; max-width: 520px; padding: 16px 18px 18px; }
.prof-form .profile-pic { justify-content: flex-start; }
.prof-saved { margin: 0; color: var(--true); font-size: 13px; }
.prof-saved:empty { display: none; }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc { display: grid; gap: 8px; padding: 12px 14px; }
.pc-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 12px; }
.pc-bullet { flex: 1 1 240px; min-width: 0; color: #eafff0; }
.pc-who { color: var(--muted); }
.pc-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--text); }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 11px; color: var(--muted); }
.pc-meta .c-true { color: var(--true); }
.pc-meta .c-false { color: var(--false); }
.pc-open { margin-left: auto; padding: 4px 0; font-weight: 700; }
.pc-more { justify-self: start; margin-top: 10px; }
.prof-private { display: inline-block; padding: 0 6px; border: 1px solid var(--line-dim); color: var(--muted);
  font-size: 10px; letter-spacing: .8px; text-transform: uppercase; vertical-align: middle; }
.prof-private[hidden] { display: none; }
.section-head .prof-private { margin-left: auto; }
.prof-side { margin: 0; min-width: 0; }
.prof-side-note { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.prof-privacy { margin: 0; padding: 0; border: 0; min-width: 0; gap: 8px; }
.prof-privacy > legend { padding: 0; margin-bottom: 8px; }
.prof-privacy .fld.check { font-size: 13px; color: var(--text); }
.prof-privacy .fld.check > span { display: grid; gap: 2px; }
.prof-saved.is-error { color: var(--false); }
/* a game in the history: what was asked, the player's answer, the right one, the points */
.pg-tag { color: var(--green); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.pg[data-kind="fallacy"] .pg-tag { color: var(--fallacy); }
.pg[data-kind="tip"] .pg-tag, .pg[data-kind="vote"] .pg-tag { color: var(--unverifiable); }
.pg-ans { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; font-size: 13px; }
.pg-ans div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.pg-ans dt { color: var(--muted); font-size: 11px; }
.pg-ans dd { margin: 0; font-weight: 700; color: #eafff0; overflow-wrap: anywhere; }
.pg-ans dd.c-true { color: var(--true); }
.pg-ans dd.c-false { color: var(--false); }
.pg-points { font-weight: 700; }
@media (max-width: 760px) {
  .prof-head { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .prof-head > .avatar { --size: 72px !important; }
  .prof-head > .prof-stats, .prof-head > .prof-side { grid-column: 1 / -1; }
  .prof-nick { font-size: 21px; }
  .pc-open { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .cmt.cmt-focus > .cmt-text { animation: none; } }
/* the header's avatar is a link to one's own profile page: no underline or glow on its initials */
a.acct-me, a.acct-me:hover { text-decoration: none; text-shadow: none; }
/* the profile card's link to the profile page; "Profilom" in the phone menu, for registered users */
.ucard-link { display: block; margin-top: 10px; padding: 4px 0; font-size: 12px; font-weight: 700; }
.nav a.nav-profile { display: none; }
@media (max-width: 860px) { html[data-acct="in"] .menu-panel .nav a.nav-profile { display: block; } }
.msg { position: relative; padding-right: 18px; }
.msg-block { position: absolute; right: 0; top: 0; background: transparent; border: 0; color: var(--muted); font: 13px/1 var(--mono);
  cursor: pointer; padding: 2px; opacity: 0; }
.msg:hover .msg-block, .msg-block:focus-visible { opacity: 1; }
.msg-block:hover { color: var(--false); }
@media (hover: none) { .msg-block { opacity: .5; } }

/* games (js/game.js): a dock along the bottom: the speech tip on the left, the challenge popup on the right */
@keyframes bump { 30% { transform: scale(1.18); background: rgba(0, 255, 65, .22); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.game-dock { position: fixed; z-index: 40; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: flex-end;
  gap: 16px; pointer-events: none; }
.game-dock > * { pointer-events: auto; }
.game-pop { order: 2; margin-left: auto; width: min(400px, 100%); }
.tip-box { order: 1; width: min(360px, 100%); }
/* one column no wider than the card: a long name or a wide header row is cut or wrapped, never pushed past the edge */
.game-pop, .tip-box { background: var(--panel-solid); border-color: var(--green); padding: 12px 14px 14px; display: grid;
  grid-template-columns: minmax(0, 1fr); gap: 8px;
  box-shadow: var(--glow), 0 14px 40px rgba(0, 0, 0, .85); animation: rise .25s ease-out; }
.game-pop[data-kind="fallacy"] { border-color: var(--fallacy); }
.game-head { display: flex; align-items: baseline; gap: 10px; font: 700 11px/1.2 var(--mono); letter-spacing: 1px; }
.game-tag { color: var(--green); text-shadow: var(--glow); }
.game-pop[data-kind="fallacy"] .game-tag { color: var(--fallacy); text-shadow: 0 0 8px rgba(199, 125, 255, .45); }
.game-time { margin-left: auto; color: var(--unverifiable); font-size: 14px; }
.game-worth { color: var(--muted); }
.game-time:empty + .game-worth { margin-left: auto; }
.game-time, .game-worth { white-space: nowrap; }  /* on a phone the tag wraps, never "9 / mp" or "+10 / pont" */
.game-close { flex: none; align-self: center; display: grid; place-items: center; width: 32px; height: 32px;
  margin: -9px -9px -9px -4px; padding: 0; background: transparent; border: 1px solid transparent; color: var(--muted);
  font: 14px/1 var(--mono); cursor: pointer; }
.game-close:hover, .game-close:focus-visible { color: var(--green); border-color: var(--line); outline: none; }
@media (pointer: coarse) { .game-close { width: 44px; height: 44px; margin: -15px -12px -15px -6px; } }
.game-q { margin: 0; font-size: 15px; color: var(--text); letter-spacing: .3px; }
.game-statement { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.45; }
.game-who { margin: -4px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.game-who:empty { display: none; }
.game-quote { margin: 0; color: var(--muted); font-size: 11px; font-style: italic; line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.game-bar { height: 4px; background: rgba(0, 255, 65, .08); }
.game-bar span { display: block; height: 100%; background: var(--unverifiable); transition: width .2s linear; }
.game-options { display: grid; gap: 6px; }
.game-pop[data-kind="truth"] .game-options { grid-template-columns: 1fr 1fr; }
.game-opt { --share: 0%; position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: linear-gradient(90deg, rgba(0, 255, 65, .14) var(--share), transparent var(--share)) rgba(0, 0, 0, .5);
  border: 1px solid var(--line); color: var(--text); font: 700 13px/1.2 var(--mono); padding: 10px 12px; cursor: pointer;
  text-align: left; letter-spacing: .4px; transition: border-color .15s, box-shadow .15s; }
.game-opt:not(:disabled):hover, .game-opt:focus-visible { border-color: var(--green); box-shadow: var(--glow); outline: none; }
.game-opt:disabled { cursor: default; }
.game-opt.picked { border-color: var(--cyan); box-shadow: 0 0 8px rgba(0, 229, 255, .4); }
.game-opt.picked .opt-label::before { content: "> "; color: var(--cyan); }
.game-opt.right { border-color: var(--true); color: var(--true); box-shadow: 0 0 10px rgba(0, 255, 65, .45); }
.game-opt.wrong { border-color: var(--false); color: var(--false); box-shadow: none; }
.game-pop[data-state="result"] .game-opt:not(.right):not(.picked) { opacity: .6; }
.opt-count { font-size: 12px; color: var(--muted); }
.game-status { margin: 0; font-size: 13px; color: var(--muted); }
.game-status[data-right="true"] { color: var(--true); font-weight: 700; text-shadow: var(--glow); }
.game-status[data-right="false"] { color: var(--false); font-weight: 700; }
.game-after { display: grid; gap: 6px; }
.game-after:empty { display: none; }
.game-same, .game-expl { margin: 0; font-size: 12px; color: var(--text); }
.game-expl { color: var(--muted); }
.game-expl::before { content: "» "; }
.game-won { margin: 0; font: 700 18px/1.2 var(--mono); color: var(--true); text-shadow: var(--glow); transform-origin: left center;
  animation: won .5s ease-out; }
@keyframes won { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.game-upsell { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px;
  border: 1px dashed var(--line); font-size: 12px; color: var(--text); }
.game-upsell .btn { padding: 6px 10px; font-size: 11px; flex: none; }

/* a vote (js/game.js VoteView): the outcome and, optionally, the band of yes votes */
.game-pop[data-kind="vote"] { border-color: var(--cyan); box-shadow: 0 0 6px rgba(0, 229, 255, .45), 0 14px 40px rgba(0, 0, 0, .85); }
.game-pop[data-kind="vote"] .game-tag { color: var(--cyan); text-shadow: 0 0 8px rgba(0, 229, 255, .45); }
.game-pop[data-kind="vote"] .game-options { grid-template-columns: 1fr 1fr; }
.vote-item { margin: -2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.vote-mode { margin: -2px 0 0; color: var(--unverifiable); font: 700 11px/1.3 var(--mono); letter-spacing: .4px; }
.vote-band-q { margin: 2px 0 -2px; color: var(--muted); font-size: 12px; }
.vote-bands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.vote-band { min-width: 0; padding: 7px 0; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); color: var(--text);
  font: 700 12px/1.1 var(--mono); cursor: pointer; white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
.vote-band:not(:disabled):hover, .vote-band:focus-visible { border-color: var(--cyan); outline: none; }
.vote-band:disabled { cursor: default; }
.vote-band.picked { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 8px rgba(0, 229, 255, .4); }
.vote-band.right { border-color: var(--true); color: var(--true); box-shadow: 0 0 10px rgba(0, 255, 65, .45); }
.vote-band.wrong { border-color: var(--false); color: var(--false); box-shadow: none; }
.game-pop[data-kind="vote"]:not([data-state="open"]) .vote-band:not(.picked):not(.right) { opacity: .45; }
.game-pop[data-kind="vote"]:not([data-state="open"]) .vote-band-q { display: none; }

.tip-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text);
  letter-spacing: .4px; }
/* the open card's question names the speaker in full, so its header keeps the room for the countdown and points; the
   folded bar shows the name, cut short if need be */
.tip-box[data-folded="false"] .tip-title { visibility: hidden; }
.tip-box .game-time { margin-left: 0; }
.tip-points { color: var(--true); text-shadow: var(--glow); }
.tip-toggle { flex: none; align-self: center; width: 26px; height: 22px; padding: 0; background: transparent;
  border: 1px solid var(--line); color: var(--green); font: 700 12px/1 var(--mono); cursor: pointer; }
.tip-toggle:hover, .tip-toggle:focus-visible { border-color: var(--green); box-shadow: var(--glow); outline: none; }
.tip-sum { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.tip-sum b { font: 700 15px/1 var(--mono); }
.tip-body { display: grid; gap: 8px; }
.tip-box[data-folded="true"] { padding: 8px 12px; gap: 6px; }
.tip-box[data-folded="true"] .tip-body, .tip-box[data-folded="false"] .tip-sum { display: none; }
.tip-q { margin: 0; font-size: 13px; color: var(--text); }
.tip-grid { display: grid; gap: 6px; }
.tip-row { display: grid; grid-template-columns: 1fr 34px 44px 34px; align-items: center; gap: 6px; }
.tip-name { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.tip-step { background: transparent; border: 1px solid var(--line); color: var(--green); font: 700 16px/1 var(--mono);
  height: 32px; cursor: pointer; }
.tip-step:not(:disabled):hover { border-color: var(--green); box-shadow: var(--glow); }
.tip-step:disabled { opacity: .4; cursor: default; }
.tip-val { text-align: center; font: 700 20px/1 var(--mono); }
.tip-send { width: 100%; }
.tip-box:not([data-state="open"]) .tip-send, .tip-box:not([data-state="open"]) .game-bar { display: none; }
.tip-box .game-won { font-size: 15px; }

@media (max-width: 860px) {  /* on a phone the dock must not hide the video: one above the other, the tip a bar below */
  .game-dock { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: stretch; gap: 6px; }
  .game-pop, .tip-box { width: auto; margin-left: 0; }
  .game-pop { order: 1; }
  .game-pop[data-state="open"] .game-upsell { display: none; }
  .vote-bands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-pop[data-kind="vote"] .vote-item:has(+ .vote-item:not([hidden])) { display: none; }  /* the motion, else the item */
  .game-pop[data-kind="vote"] .vote-item { -webkit-line-clamp: 1; line-clamp: 1; }
  .game-dock:has(> .game-pop:not([hidden])[data-state="open"]) > .tip-box { padding: 8px 12px; }
  .game-dock:has(> .game-pop:not([hidden])[data-state="open"]) > .tip-box .tip-body { display: none; }
  .game-dock:has(> .game-pop:not([hidden])[data-state="open"]) > .tip-box .tip-sum { display: flex; }
  .game-dock:has(> .game-pop:not([hidden])[data-state="open"]) > .tip-box .tip-title { visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .game-pop, .tip-box, .acct-points.bump, .game-won { animation: none; }
  .game-bar span { transition: none; }
}

/* archive (archive.html) and replay (watch.html) */
.arch-day { margin-bottom: 30px; }
.arch-date { margin: 0 0 4px; font-size: 18px; color: var(--green); text-shadow: var(--glow); }
.arch-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 1fr; gap: 14px; }
.arch-grid > li { display: flex; min-width: 0; }  /* a long speaker line must not widen its column */
.arch-card { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; }
.arch-card:hover { border-color: var(--green); box-shadow: var(--glow); }
.arch-poster { position: relative; aspect-ratio: 16 / 9; background: #031208; overflow: hidden; }
.arch-poster img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
.arch-poster::before { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px;
  color: rgba(0, 255, 65, .85); text-shadow: var(--glow); z-index: 1; opacity: .75; transition: opacity .15s; }
.arch-card:hover .arch-poster::before { opacity: 1; }
.arch-len { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 2px 6px; font-size: 12px; background: rgba(0, 0, 0, .8);
  border: 1px solid var(--line); color: var(--green); }
.arch-wait { position: absolute; left: 8px; bottom: 8px; z-index: 1; padding: 2px 6px; font-size: 12px; background: rgba(0, 0, 0, .8);
  border: 1px solid var(--line); color: var(--muted); }
.arch-body { padding: 12px 14px 14px; }
.arch-body h3 { margin: 0 0 4px; font-size: 16px; color: #eafff0; }
.arch-who { margin: 0 0 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-body .bar { margin: 6px 0; }
.crumbs { margin: 0 0 8px; font-size: 13px; }
.watch-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
#w-sub { min-height: 1.55em; }  /* js/watch.js fills it in: the player below keeps its place */
@media (max-width: 420px) { #w-sub { min-height: 3.1em; } }  /* two lines there */
.t-btn { flex: none; background: transparent; border: 1px solid var(--line); color: var(--green); font: 700 12px var(--mono);
  padding: 4px 8px; cursor: pointer; }
.t-btn:hover:not(:disabled) { border-color: var(--green); box-shadow: var(--glow); }
.t-btn:disabled { color: var(--muted); cursor: default; font-weight: 400; }
.fact.future { opacity: .5; }
.fact.future:hover { opacity: .85; }
/* the fact at the playhead: green frame, but the left edge keeps its verdict's colour (.fact[data-verdict]) */
.fact.now { border-top-color: var(--green); border-right-color: var(--green); border-bottom-color: var(--green);
  box-shadow: var(--glow); }
.speeches-head { margin-top: 18px; }
.speaker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.speaker-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line-dim);
  background: var(--panel); }
.speaker-list li .count { margin-left: auto; }
.speaker-list li.now { border-color: var(--green); color: #eafff0; }
a.fact-time { color: var(--green); }
a.fact-time:hover { text-shadow: var(--glow); }
/* a finger-sized target (24px) without changing the line: the padding is taken back by the margin */
a.fact-time { display: inline-block; padding-top: 4px; padding-bottom: 4px; margin-top: -4px; margin-bottom: -4px; }

/* profile cards (js/usercard.js): a user's stats when their name is hovered, focused or tapped */
.ucard-trigger { cursor: pointer; }
.ucard-trigger:hover, .ucard-trigger:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }
.ucard { position: fixed; z-index: 60; width: 280px; padding: 14px; background: var(--panel-solid);
  border-color: var(--green); box-shadow: var(--glow), 0 12px 30px rgba(0, 0, 0, .7); }
.ucard-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.ucard-who { min-width: 0; }
.ucard-nick, .ucard-name { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucard-nick { color: var(--green); font-weight: 700; font-size: 15px; text-shadow: var(--glow); }
.ucard-name { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ucard-stats { margin: 12px 0 0; font-size: 12px; }
.ucard-stats div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line-dim); }
.ucard-stats div:last-child { border-bottom: 0; }
.ucard-stats dt { color: var(--muted); }
.ucard-stats dd { margin: 0; font-weight: 700; color: #eafff0; }
.ucard-empty { margin: 0; color: var(--muted); font-size: 12px; }
.ucard-hidden { margin-top: 12px; }

/* the phone menu (js/menu.js): a hamburger in the header (with a red dot while live); the pages in a panel that slides
   in from the right (the online count stays under the logo) */
.menu-btn, .menu-panel, .menu-backdrop { display: none; }
@media (max-width: 860px) {
  .header-row { gap: 10px; flex-wrap: nowrap; }
  .brand { flex: none; }
  .acct-me { margin-right: 10px; }  /* room for the points badge before the hamburger */
  .acct-more { display: none; }     /* "Regisztráció" only */
  .menu-btn { order: 4; position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px;
    padding: 0; background: transparent; border: 1px solid var(--line); color: var(--green); cursor: pointer; }
  .menu-btn:hover, .menu-btn:focus-visible { border-color: var(--green); box-shadow: var(--glow); outline: none; }
  .menu-bars { display: grid; gap: 4px; width: 18px; }
  .menu-bars span { height: 2px; background: currentColor; box-shadow: 0 0 6px rgba(0, 255, 65, .6); }
  .menu-btn[data-live="on"]::after { content: ""; position: absolute; top: -5px; right: -5px; width: 10px; height: 10px;
    border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; animation: blink 1s steps(1) infinite; }
  .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 69; background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .28s, visibility 0s .28s; }
  .menu-backdrop[data-open] { opacity: 1; visibility: visible; transition: opacity .28s; }
  .menu-panel { display: flex; flex-direction: column; position: fixed; z-index: 70; top: 0; right: 0; bottom: 0;
    width: min(82vw, 320px); padding-bottom: env(safe-area-inset-bottom); overflow-y: auto; overscroll-behavior: contain;
    background: var(--panel-solid); border-left: 1px solid var(--green); box-shadow: -10px 0 40px rgba(0, 0, 0, .8), var(--glow);
    transform: translateX(105%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s .28s; }
  .menu-panel[data-open] { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 8px 16px;
    border-bottom: 1px solid var(--line); }
  .menu-title { color: var(--muted); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
  .menu-close { width: 40px; height: 40px; padding: 0; background: transparent; border: 1px solid var(--line); color: var(--green);
    font: 700 16px/1 var(--mono); cursor: pointer; }
  .menu-close:hover, .menu-close:focus-visible { border-color: var(--green); box-shadow: var(--glow); outline: none; }
  .menu-panel .nav { order: 0; flex-direction: column; gap: 0; margin: 0; padding: 10px 0; }
  .menu-panel .nav a { padding: 15px 20px; border: 0; border-left: 3px solid transparent; font-size: 15px; letter-spacing: 1.4px; }
  .menu-panel .nav a::before { content: "> "; color: var(--muted); }
  .menu-panel .nav a:hover, .menu-panel .nav a:focus-visible { color: var(--green); background: rgba(0, 255, 65, .04); outline: none; }
  .menu-panel .nav a[aria-current="page"] { border-left-color: var(--green); background: rgba(0, 255, 65, .08); }
  .menu-panel .nav a[aria-current="page"]::before { color: var(--green); }
  .menu-panel .live-stack { justify-items: start; }
  .menu-panel .nav a.nav-live[data-live="on"] { color: #ff4d4d; border-left-color: #ff4d4d; background: rgba(255, 77, 77, .1);
    box-shadow: none; }
  .menu-panel .nav a.nav-live[data-live="on"]::before { color: #ff4d4d; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .header-row, .brand { gap: 8px; }
  .brand-name { font-size: 17px; }
  .brand img { width: 26px; height: 26px; }
  .brand-box { --logo: 26px; --brand-gap: 8px; --name: 17px; }
  .acct-btn { padding: 6px 8px; font-size: 11px; }
}
@media (max-width: 340px) {
  .brand-name { font-size: 16px; }
  .brand-box { --name: 16px; }
}
/* narrow phones: while "Regisztráció" is in the header, the logo stands for the name (BETA and the count go with it,
   as there is no room beside the icon); up to 359px, where the name, the button and the hamburger can't all fit */
@media (max-width: 359px) {
  .header-row:has(.acct-reg) .brand-name, .header-row:has(.acct-reg) .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-panel, .menu-panel[data-open], .menu-backdrop, .menu-backdrop[data-open] { transition: none; }
  .menu-btn[data-live="on"]::after { animation: none; }
}

/* the cookie and storage bar (js/consent.js), until the visitor chooses: fixed to the bottom, so nothing moves; the page
   gets the same room at its end, and the bottom-anchored game dock and toasts sit above it */
.consent { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center;
  justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  background: var(--panel-solid); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .55);
  font-size: 12px; line-height: 1.45; }
.consent-text { margin: 0; color: var(--text); }
.consent-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.consent-actions a { margin-left: 4px; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }
:root[data-consent="open"] body { margin-bottom: var(--consent-h, 0px); }  /* a margin, so the body's own layout stays put */ 
:root[data-consent="open"] .toasts { bottom: calc(20px + var(--consent-h, 0px)); }
:root[data-consent="open"] .game-dock { bottom: calc(20px + var(--consent-h, 0px)); }
@media (max-width: 860px) {
  .consent { justify-content: flex-start; gap: 7px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); font-size: 11.5px; }
  :root[data-consent="open"] .game-dock { bottom: calc(8px + var(--consent-h, 0px)); }
}
.imp-sec code { font: inherit; color: var(--green-soft); overflow-wrap: anywhere; }
#sutik, #tamogatas { scroll-margin-top: 88px; }  /* the banner's Részletek link lands below the sticky header */

/* support on Patreon: plain links (no Patreon script or cookie on the site), marked with the logo's red dot as a heart */
.nav a.nav-support { color: var(--green); border-color: var(--line); background: rgba(0, 255, 65, .06); }
.nav a.nav-support::before { content: "♥ "; color: #ff5a5f; text-shadow: 0 0 6px rgba(255, 90, 95, .7); }
.nav a.nav-support:hover, .nav a.nav-support:focus-visible { border-color: var(--green); box-shadow: var(--glow); text-shadow: var(--glow); }
/* The full "♥ Támogatás" wherever it fits beside the account button (and the hamburger on phones); the heart alone where
   only that fits (its name is in the label and the tooltip). What fits depends on the account state (html[data-acct],
   set in each page's head before the first paint, so the header doesn't move). Measured with the widest content of each
   state: a visitor's "Belépés", "Regisztráció", an avatar with a five-digit points badge. */
@media (min-width: 861px) and (max-width: 1099px) {  /* "Regisztráció" here; "befejezése" is in its tooltip */
  html[data-acct="reg"] .acct-more { display: none; }
}
@media (min-width: 861px) and (max-width: 899px) {
  html:not([data-acct="in"]):not([data-acct="reg"]) .nav a.nav-support::before { content: "♥"; }
  html:not([data-acct="in"]):not([data-acct="reg"]) .nav a.nav-support .nav-label { display: none; }
}
@media (min-width: 861px) and (max-width: 939px) {
  html[data-acct="reg"] .nav a.nav-support::before { content: "♥"; }
  html[data-acct="reg"] .nav a.nav-support .nav-label { display: none; }
}
/* phones: the nav (with its support item) is in the menu panel, so the header gets its own support link */
.hdr-support { display: none; }
@media (max-width: 860px) {
  .brand-box { margin-right: auto; }
  .acct { margin-left: 0; }
  .hdr-support { order: 1; display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 7px 9px;
    border: 1px solid var(--line); background: rgba(0, 255, 65, .06); color: var(--green); font: 700 11px/normal var(--mono);
    letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
  .hdr-support::before { content: "♥"; color: #ff5a5f; text-shadow: 0 0 6px rgba(255, 90, 95, .7); }
  .hdr-support:hover, .hdr-support:focus-visible { border-color: var(--green); box-shadow: var(--glow); text-shadow: var(--glow);
    text-decoration: none; outline: none; }
}
/* Where the full link doesn't fit, the heart alone; where not even that fits, nothing (the menu panel still has it).
   Widths measured per account state, with a few pixels to spare: the name is 211px wide from 481px, 164px below. */
@media (min-width: 481px) and (max-width: 495px), (min-width: 360px) and (max-width: 432px) {
  html:not([data-acct="in"]):not([data-acct="reg"]) .hdr-support .nav-label { display: none; }
  html:not([data-acct="in"]):not([data-acct="reg"]) .hdr-support { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 359px) {
  html:not([data-acct="in"]):not([data-acct="reg"]) .hdr-support { display: none; }
}
@media (min-width: 481px) and (max-width: 535px), (min-width: 396px) and (max-width: 469px), (max-width: 331px) {
  html[data-acct="reg"] .hdr-support .nav-label { display: none; }
  html[data-acct="reg"] .hdr-support { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 360px) and (max-width: 395px) {
  html[data-acct="reg"] .hdr-support { display: none; }
}
@media (max-width: 404px) {
  html[data-acct="in"] .hdr-support .nav-label { display: none; }
  html[data-acct="in"] .hdr-support { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 861px) and (max-width: 1199px) {  /* a little tighter, so the header stays on one line as before */
  .header-row { gap: 12px; }
  .nav a:not(.nav-support) { padding-left: 7px; padding-right: 7px; }
}
html[data-acct="reg"] .tagline { display: none; }  /* "Regisztráció befejezése" needs its room */
@media (max-width: 860px) {  /* in the phone menu: the last item, set off by a line */
  .menu-panel .nav a.nav-support { margin-top: 8px; border-top: 1px solid var(--line-dim); border-left-color: transparent;
    background: rgba(0, 255, 65, .05); }
}
.support-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
  margin: 14px 0 0; padding: 9px 14px; background: var(--panel); border: 1px solid var(--line-dim);
  color: var(--muted); font-size: 12px; letter-spacing: .3px; }
.support-line a { flex: none; padding: 4px 0; color: var(--green); font-weight: 700; letter-spacing: .6px; white-space: nowrap; }
.support-line a::before { content: "♥ "; color: #ff5a5f; text-shadow: 0 0 6px rgba(255, 90, 95, .7); }
.support-line a::after { content: " →"; }
