/* NERemenyjáték — loud, orange, playful. Neo-brutalist cards on a citrus gradient. */
:root {
  --ink: #1d0b33;
  --ink-2: #4a3566;
  --orange: #ff6a00;
  --orange-2: #ff8c1a;
  --tangerine: #ffb21a;
  --sun: #ffd23f;
  --cream: #fff6ea;
  --paper: #ffffff;
  --hot: #ff2e63;
  --hot-strong: #d8164c;  /* white text on hot: 5.2:1 */
  --accent-text: #b34700; /* orange as text colour */
  --danger-text: #c4262b; /* hot/red as text colour */
  --grape: #7b2ff7;
  --sky: #2f80ff;
  --mint: #00c48c;
  --red: #e5383b;
  --radius: 20px;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --font-head: 'Bricolage Grotesque', 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  background:
    radial-gradient(circle at 10% 0%, #ffd23f 0, transparent 35%),
    radial-gradient(circle at 95% 15%, #ff2e63 0, transparent 30%),
    radial-gradient(circle at 50% 100%, #ff8c1a 0, transparent 50%),
    linear-gradient(160deg, #ff7a00 0%, #ff5e00 45%, #ff8c1a 100%);
  background-attachment: fixed;
}
body::before { /* dotted texture */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .14;
  background-image: radial-gradient(var(--ink) 1.2px, transparent 1.3px); background-size: 22px 22px;
}
#app, header, footer { position: relative; z-index: 1; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; padding: 10px 0; backdrop-filter: blur(8px); background: rgba(255, 106, 0, .72); border-bottom: var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; white-space: nowrap; }
.logo .ball { width: 38px; height: 38px; flex: none; }
.logo b { background: var(--ink); color: var(--sun); padding: 0 6px; border-radius: 8px; margin-right: 1px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 12px; border: 2px solid transparent; }
.nav a:hover, .nav a.active { background: var(--cream); border-color: var(--ink); }
.nav .me { display: flex; align-items: center; gap: 6px; background: var(--paper); border: var(--border); box-shadow: var(--shadow-sm); }
.topbar .burger { display: none; margin-left: auto; }
@media (max-width: 1260px) {
  .topbar .burger { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--orange); border-bottom: var(--border); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.1rem; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; user-select: none;
  font: 700 1.05rem/1 var(--font-head); padding: 14px 22px; border-radius: 16px; border: var(--border); background: var(--bg); color: var(--fg);
  box-shadow: var(--shadow-sm); transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.big { font-size: 1.3rem; padding: 18px 30px; border-radius: 20px; }
.btn.small { font-size: .9rem; padding: 9px 14px; border-radius: 12px; }
.btn.primary { --bg: var(--ink); --fg: var(--sun); }
.btn.hot { --bg: var(--hot-strong); --fg: #fff; }
.btn.sun { --bg: var(--sun); }
.btn.grape { --bg: var(--grape); --fg: #fff; }
.btn.mint { --bg: var(--mint); --fg: var(--ink); }
.btn.ghost { --bg: transparent; box-shadow: none; }
.icon-btn { width: 44px; height: 44px; padding: 0; }

/* ---------- cards ---------- */
.card { background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card.cream { background: var(--cream); }
.card.ink { background: var(--ink); color: var(--cream); }
.card.sun { background: var(--sun); }
.card.hot { background: var(--hot-strong); color: #fff; }
.card.grape { background: var(--grape); color: #fff; }
.card.tilt { transform: rotate(-1.2deg); }
.card.tilt2 { transform: rotate(1.2deg); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .82rem; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.sticker { display: inline-block; background: var(--sun); border: var(--border); border-radius: 12px; padding: 4px 12px; font-family: var(--font-head); font-weight: 800; transform: rotate(-3deg); box-shadow: var(--shadow-sm); }

/* ---------- hero ---------- */
.hero { padding: 48px 0 28px; }
.hero-grid > *, .duel-grid > *, .grid > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 34px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .card.tilt2 { transform: none; } }
@media (max-width: 520px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .vs { grid-template-columns: 1fr; } .vs .mid { justify-self: center; } .btn.big { font-size: 1.1rem; padding: 15px 20px; } .card { padding: 18px; } }
.hero h1 .ner { background: var(--ink); color: var(--sun); padding: 0 .12em; border-radius: .14em; display: inline-block; transform: rotate(-2deg); }
.hero h1 .rest { color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.hero .lead { font-size: 1.25rem; font-weight: 500; max-width: 36ch; }
.hero .cta { margin: 26px 0 18px; }
.counter-strip { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-weight: 600; }
.counter-strip span b { font-family: var(--font-head); font-size: 1.4rem; }

.hero-card { position: relative; }
.hero-card .q { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; margin-bottom: 16px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.vs .opt { text-align: center; padding: 18px 10px; }
.vs .mid { align-self: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; background: var(--hot); color: #fff; border: var(--border); border-radius: 50%; width: 54px; height: 54px; display: grid; place-items: center; }
.float-badge { position: absolute; top: -18px; right: -10px; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: var(--border); background: var(--ink); color: var(--sun); padding: 12px 0; margin: 26px 0; transform: rotate(-1deg); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: scroll 60s linear infinite; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.marquee .track span::before { content: '★ '; color: var(--orange); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- sections ---------- */
section { padding: 30px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { color: var(--ink); margin: 0; }
.mode-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-height: 210px; transition: transform .12s; cursor: pointer; }
.mode-card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 9px 9px 0 var(--ink); }
.mode-card .emoji { font-size: 2.6rem; line-height: 1; }
.mode-card h3 { margin: 0; font-size: 1.45rem; }
.mode-card p { margin: 0; flex: 1; }
.mode-card .go { font-family: var(--font-head); font-weight: 800; }
.cat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; border: var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); background: var(--paper); font-weight: 700; transition: transform .1s; }
.cat-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.cat-card .dot { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; border: 2px solid var(--ink); flex: none; }
.cat-card small { display: block; font-weight: 500; color: var(--ink-2); }

/* ---------- game ---------- */
.game { padding: 26px 0 60px; }
.game-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pill { background: var(--paper); border: var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 700; box-shadow: var(--shadow-sm); white-space: nowrap; }
.pill.ink { background: var(--ink); color: var(--sun); }
.progress { flex: 1; min-width: 120px; height: 18px; border: var(--border); border-radius: 999px; background: var(--cream); overflow: hidden; }
.progress > i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--ink) 0 10px, #3a1f5e 10px 20px); transition: width .3s; }
.timer { height: 12px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--cream); margin: 0 0 18px; }
.timer > i { display: block; height: 100%; background: var(--mint); transform-origin: left; }
.timer.warn > i { background: var(--hot); }
.qcard { position: relative; }
.qcard .qtext { font-family: var(--font-head); font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 700; margin: 10px 0 22px; line-height: 1.2; }
.answers { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.answers.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .answers { grid-template-columns: 1fr; } }
.ans {
  text-align: left; font: 600 1.08rem/1.25 var(--font-body); color: var(--ink); padding: 16px 18px; border: var(--border); border-radius: 16px;
  background: var(--cream); box-shadow: var(--shadow-sm); cursor: pointer; display: flex; gap: 12px; align-items: center; transition: transform .08s, background .15s;
}
.ans:hover:not([disabled]) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: #fff; }
.ans .k { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; background: var(--sun); }
.ans.versus { flex-direction: column; text-align: center; justify-content: center; min-height: 120px; font-size: 1.25rem; font-family: var(--font-head); font-weight: 800; }
.ans.versus .k { display: none; }
.ans.right { background: var(--mint); animation: pop .35s; }
.ans.wrong { background: var(--hot); color: #fff; animation: shake .35s; }
.ans.dim { opacity: .55; }
.ans[disabled] { cursor: default; }
@keyframes pop { 50% { transform: scale(1.04); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.estimate { display: grid; gap: 14px; }
.estimate output { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; text-align: center; }
.estimate input[type=range] { width: 100%; accent-color: var(--orange); height: 30px; }
.estimate input[type=number] { font: 700 1.2rem var(--font-body); padding: 10px; border: var(--border); border-radius: 12px; width: 100%; }

.reveal { margin-top: 18px; border-top: 3px dashed var(--ink); padding-top: 18px; animation: fadeUp .3s; }
.reveal .verdict { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.reveal .verdict.ok { color: #008a62; }
.reveal .verdict.no { color: var(--red); }
.reveal .sources { font-size: .9rem; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.reveal .sources a { color: var(--grape); font-weight: 600; word-break: break-word; }
.points-fly { position: absolute; right: 20px; top: -14px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; background: var(--sun); border: var(--border); border-radius: 12px; padding: 2px 12px; animation: fly 1.2s forwards; }
@keyframes fly { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 30% { transform: translateY(-6px) scale(1.1); opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

.result-hero { text-align: center; }
.result-hero .score { font-family: var(--font-head); font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800; line-height: 1; color: var(--ink); text-shadow: 5px 5px 0 var(--sun); }
.result-hero .title { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; margin: 8px 0 18px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form label { font-weight: 700; display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: 500 1.05rem var(--font-body); padding: 12px 14px; border: var(--border); border-radius: 14px; background: var(--cream); color: var(--ink); width: 100%; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline: 4px solid var(--ink); outline-offset: 2px; }
.error { background: var(--hot-strong); color: #fff; border: var(--border); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.notice { background: var(--sun); border: var(--border); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.avatars button { font-size: 1.6rem; width: 52px; height: 52px; border: 2px solid var(--ink); border-radius: 14px; background: var(--cream); cursor: pointer; }
.avatars button.sel { background: var(--sun); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }

/* ---------- leaderboard ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { font: 700 .98rem var(--font-head); padding: 10px 16px; border: var(--border); border-radius: 999px; background: var(--paper); cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--sun); }
.lb { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.lb td { background: var(--cream); padding: 12px 14px; border-block: 2px solid var(--ink); font-weight: 600; }
.lb td:first-child { border-left: 2px solid var(--ink); border-radius: 14px 0 0 14px; font-family: var(--font-head); font-weight: 800; width: 56px; text-align: center; }
.lb td:last-child { border-right: 2px solid var(--ink); border-radius: 0 14px 14px 0; text-align: right; font-family: var(--font-head); font-weight: 800; }
.lb tr.top1 td { background: var(--sun); }
.lb tr.top2 td { background: #ffe1c2; }
.lb tr.top3 td { background: #ffd0b0; }
.lb tr.me td { outline: 3px solid var(--grape); }
/* becenév → nyilvános profil (#/profil/<név>) a ranglistán és a hozzászólásoknál */
.lb-name { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.lb-name:hover, .lb-name:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.podium > div { text-align: center; border: var(--border); border-radius: 18px 18px 0 0; padding: 14px 8px; box-shadow: var(--shadow-sm); background: var(--paper); }
.podium .p1 { background: var(--sun); min-height: 190px; }
.podium .p2 { min-height: 150px; }
.podium .p3 { min-height: 125px; background: #ffd0b0; }
.podium .av { font-size: 2.4rem; }
.podium b { display: block; font-family: var(--font-head); word-break: break-word; }

/* ---------- library ---------- */
.lib-item { padding: 18px 20px; }
.lib-item h4 { font-size: 1.1rem; margin-bottom: 8px; }
.lib-item .ans-line { font-weight: 700; background: var(--sun); display: inline; padding: 0 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.search { font: 600 1.1rem var(--font-body); padding: 14px 18px; border: var(--border); border-radius: 16px; width: 100%; box-shadow: var(--shadow-sm); }

/* ---------- duel ---------- */
.duel-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .duel-grid { grid-template-columns: 1fr; } }
.players { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 14px; }
.player { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: var(--border); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); min-width: 0; }
.player.p0 { background: #ffe0c2; }
.player.p1 { background: #e6d7ff; justify-content: flex-end; text-align: right; }
.player .av { font-size: 2rem; }
.player .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .sc { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.player .tick { font-size: .85rem; font-weight: 700; }
.map svg { width: 100%; height: auto; filter: drop-shadow(5px 5px 0 var(--ink)); }
.map path { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; transition: fill .4s; cursor: default; }
.map path.free { fill: #fff6ea; }
.map path.o0 { fill: var(--orange); }
.map path.o1 { fill: var(--grape); }
.map path.current { fill: var(--sun); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { fill: #ffe98a; } }
.map text { font: 800 13px var(--font-head); fill: var(--ink); pointer-events: none; text-anchor: middle; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 3px; }
.map text.v { font-size: 11px; font-weight: 700; }
.code-box { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; letter-spacing: .2em; background: var(--sun); border: var(--border); border-radius: 16px; padding: 8px 18px; display: inline-block; box-shadow: var(--shadow-sm); }
.spinner { width: 54px; height: 54px; border: 6px solid var(--cream); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-count { font-family: var(--font-head); font-size: 5rem; font-weight: 800; text-align: center; }

/* ---------- calculator ---------- */
.calc-out { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1; }
.calc-row { display: grid; gap: 10px; }
.calc-row input[type=range] { width: 100%; accent-color: var(--ink); }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.unit { text-align: center; padding: 16px; }
.unit .e { font-size: 2.2rem; }
.unit .n { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; }
.money-rain { font-size: 1.3rem; letter-spacing: 2px; line-height: 1.2; word-break: break-all; max-height: 140px; overflow: hidden; }

/* ---------- footer ---------- */
footer { margin-top: 50px; background: var(--ink); color: var(--cream); padding: 40px 0 30px; border-top: var(--border); }
footer a { color: var(--sun); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer small { color: #cbb8e6; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--sun); padding: 12px 20px; border-radius: 14px; font-weight: 700; z-index: 100; border: 2px solid var(--sun); animation: fadeUp .25s; }
dialog { border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; max-width: min(520px, 92vw); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(29, 11, 51, .55); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.empty { text-align: center; padding: 30px; }

/* ---------- privacy ---------- */
.privacy .card { margin-top: 18px; }
.privacy ul { padding-left: 1.2em; margin: 0; }
.privacy li { margin-bottom: 6px; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable td { padding: 10px 8px; border-bottom: 2px dashed #e8d9c6; vertical-align: top; }
.ptable .pk { font-weight: 700; white-space: nowrap; width: 1%; }
.ptable td { overflow-wrap: anywhere; }
@media (max-width: 520px) { .ptable td { display: block; border: 0; padding: 4px 0; } .ptable .pk { white-space: normal; width: auto; } .ptable .pv { border-bottom: 2px dashed #e8d9c6; padding-bottom: 10px; } }

/* ---------- book ---------- */
.book-hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 800px) { .book-hero { grid-template-columns: minmax(0, 1fr); } .book-cover-wrap { max-width: 260px; margin: 0 auto; } }
.book-cover { display: block; width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border: var(--border); border-radius: 6px 14px 14px 6px; box-shadow: 10px 10px 0 var(--ink); transform: rotate(-3deg); transition: transform .2s; }
.book-cover:hover { transform: rotate(0) scale(1.02); }
.css-cover { background: linear-gradient(160deg, #ff7a00, #ff4d00 60%, #ff2e63); color: var(--cream); padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.css-cover::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(29,11,51,.25) 1.2px, transparent 1.3px); background-size: 14px 14px; }
.css-cover > * { position: relative; z-index: 1; }
.cc-top { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }
.cc-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 7vw, 4.4rem); line-height: .9; color: var(--cream); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.cc-sub { font-weight: 600; background: var(--ink); color: var(--sun); padding: 8px 10px; border-radius: 8px; font-size: .9rem; }
.part-card .part-no { font-family: var(--font-head); font-weight: 800; color: var(--accent-text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.part-card p { margin: 0; }
.vol2 { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.vol2-badge { font-family: var(--font-head); font-weight: 800; font-size: 5rem; line-height: 1; width: 110px; height: 110px; display: grid; place-items: center; background: var(--sun); color: var(--ink); border: var(--border); border-radius: 24px; transform: rotate(-6deg); box-shadow: var(--shadow-sm); }

/* ---------- Pénzégető: szétosztó + munka ---------- */
.split-card { position: relative; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.split-tag { position: absolute; top: -16px; right: 20px; background: var(--hot-strong); color: #fff; transform: rotate(3deg); box-shadow: var(--shadow-sm); border-width: 3px; }
.split-who { max-width: 560px; }
.split-people { margin-top: 18px; }
.split-n { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.split-n b { font-family: var(--font-head); font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; color: var(--orange); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.slider-val { font-family: var(--font-head); font-size: 1.3rem; }
.fat-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 10px 0; padding: 0 !important; border: var(--border) !important; border-radius: 999px !important;
  background: linear-gradient(90deg, var(--sun), var(--orange-2), var(--hot)) !important; box-shadow: var(--shadow-sm); cursor: pointer; }
.fat-range::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .1s; }
.fat-range::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.fat-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.fat-range:focus-visible { outline: 4px solid var(--grape); outline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font: 700 .95rem/1 var(--font-body); padding: 9px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; transition: transform .1s, background .15s; }
.chip:hover { transform: translateY(-2px); }
.chip.on { background: var(--ink); color: var(--sun); transform: rotate(-2deg); }
.split-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: center; }
.split-res { box-shadow: var(--shadow-sm); }
.split-res p { margin: 8px 0 0; font-weight: 600; }
.split-cash { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.split-cash i { width: 34px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; background: linear-gradient(90deg, #9fe3c5 0 30%, #5fcf9f 30% 70%, #9fe3c5 70%); animation: note-in .35s ease both; }
.split-cash i:nth-child(3n) { transform: rotate(-6deg); } .split-cash i:nth-child(4n) { transform: rotate(5deg); }
.split-cash span { flex-basis: 100%; font-weight: 700; margin-top: 6px; }
@keyframes note-in { from { opacity: 0; transform: translateY(-10px) scale(.6); } }
.work-card .form label { color: #fff; }
@media (max-width: 640px) { .split-out { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .split-cash i { animation: none; } }

/* ---------- Támogatás ---------- */
.nav a.nav-donate { background: var(--hot-strong); color: #fff; border-color: var(--ink); }
.nav a.nav-donate:hover, .nav a.nav-donate.active { background: var(--ink); color: var(--sun); }
.donate-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 34px; align-items: center; }
.donate-hero .ner-mark { background: var(--ink); color: var(--sun); padding: 0 .1em; border-radius: .14em; }
.pie-wrap { position: relative; justify-self: center; width: min(320px, 80vw); }
.pie { aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); position: relative;
  background: conic-gradient(var(--sun) 0 50%, var(--hot) 50% 100%); animation: pie-spin 1s cubic-bezier(.2, 1.4, .4, 1) both; }
.pie::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 5px; margin-left: -2.5px; background: var(--ink); }
.pie span { position: absolute; top: 50%; transform: translateY(-50%); font: 800 clamp(1.8rem, 6vw, 2.6rem)/1 var(--font-head); text-align: center; }
.pie span small { display: block; font: 700 .9rem/1.2 var(--font-body); }
.pie-r { left: 12%; color: #fff; } .pie-l { right: 12%; }
.pie-tag { position: absolute; bottom: -4px; left: -10px; background: var(--paper); }
@keyframes pie-spin { from { transform: rotate(-200deg) scale(.4); opacity: 0; } }
.half-card { position: relative; padding-top: 30px; }
.half-no { position: absolute; top: -18px; right: 18px; font: 800 1.6rem/1 var(--font-head); background: var(--ink); color: var(--sun); padding: 8px 14px; border-radius: 14px; transform: rotate(4deg); box-shadow: var(--shadow-sm); }
.tick { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.tick li { padding-left: 34px; position: relative; }
.tick li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.card.hot .tick li::before { background: #fff; color: var(--hot); }
.half-foot { margin: 0; padding-top: 12px; border-top: 2px dashed currentColor; font-weight: 600; font-size: .96rem; }
.half-foot a { color: inherit; }
.compare { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); border: var(--border); border-radius: 16px; overflow: hidden; }
.compare > div { padding: 12px 14px; border-bottom: 2px solid var(--ink); overflow-wrap: anywhere; hyphens: auto; }
.compare > div:nth-last-child(-n+3) { border-bottom: 0; }
.compare .c-head { font: 800 1.05rem/1.2 var(--font-head); background: var(--cream); }
.compare .c-q { font-weight: 700; }
.compare .us { background: var(--sun); font-weight: 700; }
.compare .c-head.us { background: var(--ink); color: var(--sun); }
.donate-band { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; text-decoration: none; transition: transform .15s; }
.donate-band:hover { transform: rotate(-.6deg) scale(1.01); }
.donate-band-pie { width: 64px; height: 64px; flex: none; border-radius: 50%; border: 3px solid var(--cream); background: conic-gradient(var(--sun) 0 50%, var(--hot) 50% 100%); }
@media (max-width: 800px) { .donate-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .compare { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .compare .c-head:first-child { display: none; }
  .compare .c-q { grid-column: 1 / -1; background: var(--ink); color: var(--cream); }
}
@media (prefers-reduced-motion: reduce) { .pie { animation: none; } .donate-band:hover { transform: none; } }

/* ---------- Hol van most…? ---------- */
.whereis-card { position: relative; background: #bfe3f2; }
.new-badge { position: absolute; top: -12px; right: 14px; background: var(--hot-strong); color: #fff; font: 800 .85rem/1 var(--font-head); padding: 6px 10px; border: 2px solid var(--ink); border-radius: 10px; transform: rotate(6deg); box-shadow: 2px 2px 0 var(--ink); }
#wmap { border: var(--border); box-shadow: var(--shadow-sm); }

/* ---------- dokumentumtár ---------- */
.doc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); margin-top: 6px; }
.doc-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; }
@media (max-width: 520px) { .doc-card { grid-template-columns: minmax(0, 1fr); } .doc-thumb { max-width: 200px; } }
.doc-thumb { position: relative; display: block; padding: 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.5deg); transition: transform .15s; aspect-ratio: 210 / 297; align-self: start; }
.doc-thumb:hover { transform: rotate(0) scale(1.03); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.doc-pages { position: absolute; right: 6px; bottom: 6px; background: var(--ink); color: var(--sun); font-size: .75rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.doc-noimg { cursor: default; display: grid; place-items: center; text-align: center; background: var(--cream); font-size: 2.6rem; padding: 10px; }
.doc-noimg small { font-size: .75rem; color: var(--ink-2); }
.doc-body h4 { margin: 10px 0 6px; font-size: 1.12rem; }
.doc-body p { margin: 0 0 8px; }
.doc-quote { margin: 8px 0; padding: 10px 14px; border-left: 5px solid var(--orange); background: var(--cream); border-radius: 0 10px 10px 0; font-style: italic; font-weight: 500; }
dialog.doc-viewer { max-width: min(1000px, 96vw); width: 100%; }
.doc-pages-strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x mandatory; }
.doc-pages-strip figure { margin: 0; flex: 0 0 auto; width: min(420px, 80vw); scroll-snap-align: start; }
.doc-pages-strip img { width: 100%; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink); background: #fff; }
.doc-pages-strip figcaption { font-weight: 700; font-size: .9rem; margin-top: 6px; }

/* ---------- Feldobás: mozgás és hangulat ---------- */
/* page enter: sections slide up one after another */
#app.page-in > * { animation: page-in .45s cubic-bezier(.2, .9, .3, 1.15) backwards; }
#app.page-in > *:nth-child(2) { animation-delay: .06s; }
#app.page-in > *:nth-child(3) { animation-delay: .12s; }
#app.page-in > *:nth-child(4) { animation-delay: .18s; }
#app.page-in > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }
#app.page-in .grid > .card, #app.page-in .grid > .cat-card { animation: card-in .5s cubic-bezier(.2, .9, .3, 1.3) backwards; }
#app.page-in .grid > :nth-child(2) { animation-delay: .08s; } #app.page-in .grid > :nth-child(3) { animation-delay: .14s; }
#app.page-in .grid > :nth-child(4) { animation-delay: .2s; } #app.page-in .grid > :nth-child(n+5) { animation-delay: .26s; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) rotate(-2deg) scale(.96); } }

/* squishy buttons */
.btn { transition: transform .12s cubic-bezier(.3, 1.6, .5, 1), box-shadow .12s, filter .15s; }
.btn:active { transform: translate(2px, 2px) scale(.97); }
.btn.primary.big:not([disabled]), .btn.hot.big:not([disabled]) { animation: nudge 4.5s ease-in-out 1.5s infinite; }
@keyframes nudge { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: -2.5deg; } 94% { rotate: 2.5deg; } 97% { rotate: -1deg; } }

/* cards: bouncing emoji on hover */
.mode-card:hover .emoji, .cat-card:hover .dot { animation: hop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 40% { transform: translateY(-10px) rotate(-8deg) scale(1.12); } }
.sticker { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.sticker:hover { transform: rotate(2deg) scale(1.06); }

/* answers: a juicier right/wrong */
.ans.right { animation: pop-big .5s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 0 0 4px var(--sun), var(--shadow-sm); }
@keyframes pop-big { 40% { transform: scale(1.07) rotate(-1.5deg); } }
.ans.wrong { animation: shake .45s; }
@keyframes shake { 15%, 55% { transform: translateX(-8px) rotate(-1deg); } 35%, 75% { transform: translateX(8px) rotate(1deg); } }
.reveal .verdict.ok { animation: verdict-ok .55s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: left center; }
.reveal .verdict.no { animation: verdict-no .5s both; }
@keyframes verdict-ok { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
@keyframes verdict-no { from { opacity: 0; } 30% { transform: translateX(-10px); opacity: 1; } 60% { transform: translateX(6px); } }
.result-hero .score { animation: score-in .8s cubic-bezier(.3, 1.6, .5, 1) both .1s; }
@keyframes score-in { from { transform: scale(.2); opacity: 0; } }

/* hero: floating lottery balls */
.hero { position: relative; }
.hero > .wrap { position: relative; z-index: 1; }
.balls { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.balls i { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 800 1.15rem/1 var(--font-head); font-style: normal; color: var(--ink); animation: drift 9s ease-in-out infinite; opacity: .9; }
.balls i::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); z-index: -1; }
.balls i { isolation: isolate; }
.balls .b1 { left: 47%; top: 6%; background: var(--hot); animation-duration: 8s; }
.balls .b2 { left: 38%; bottom: 6%; width: 48px; height: 48px; background: var(--sun); animation-delay: -2s; font-size: .95rem; }
.balls .b2::before, .balls .b5::before { inset: 10px; }
.balls .b3 { right: 2%; top: 3%; width: 78px; height: 78px; background: var(--grape); animation-duration: 11s; animation-delay: -4s; }
.balls .b3::before { inset: 17px; }
.balls .b4 { left: 66%; bottom: 4%; width: 56px; height: 56px; background: var(--mint); animation-delay: -6s; }
.balls .b5 { right: 40%; top: 46%; width: 44px; height: 44px; background: var(--sky); animation-duration: 10s; animation-delay: -1s; font-size: .9rem; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(14px, -18px) rotate(40deg); } 66% { transform: translate(-10px, 10px) rotate(-25deg); } }

/* counters as little stickers */
.counter-strip { gap: 10px; }
.counter-strip span { background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 6px 12px; box-shadow: 2px 2px 0 var(--ink); }
.counter-strip span:nth-child(2) { transform: rotate(-1.5deg); background: var(--sun); }
.counter-strip span:nth-child(3) { transform: rotate(1deg); }

/* mobile hero polish */
@media (max-width: 520px) {
  .hero { padding-top: 28px; }
  .hero h1 .rest { -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 3px 0 var(--ink); }
  .counter-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .82rem; line-height: 1.2; }
  .counter-strip span { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; }
  .counter-strip span b { font-size: 1.5rem; }
  .balls i { scale: .75; }
  .balls .b1, .balls .b5 { display: none; }
}

/* visible keyboard focus everywhere */
:focus-visible { outline: 4px solid var(--focus, var(--ink)); outline-offset: 3px; }
footer, .card.ink, .card.hot, .card.grape, .on-dark, .topbar .nav-play, .support-band, .borton-feature, .donate-cta, .lib-daily { --focus: var(--sun); }
#app:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.feat-strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(440px, 86vw); gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.feat-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; scroll-snap-align: start; padding: 16px; }

.feat-img { position: relative; padding: 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #fff; box-shadow: 4px 4px 0 var(--ink); align-self: start; }
.feat-img img { display: block; width: 100%; height: auto; }
.feat-body h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.doc-pages-strip figure.key img { outline: 4px solid var(--sun); }

/* ---------- Megosztás mindenhol ---------- */
.topbar .share-top { order: 2; margin-left: 8px; flex: none; }
@media (max-width: 1260px) { .topbar .share-top { order: 0; margin-left: auto; } .topbar .burger { margin-left: 8px; } }
.share-chip { margin-top: 14px; background: var(--paper); }
.mode-wrap { position: relative; display: flex; min-width: 0; }
.mode-wrap > .mode-card { flex: 1; }
.share-mini { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 1.1rem; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); }
.share-mini:hover { transform: scale(1.12) rotate(-8deg); }
#app.page-in .grid > .mode-wrap { animation: card-in .5s cubic-bezier(.2, .9, .3, 1.3) backwards; }
.lib-share { margin-top: 10px; }
.lib-item.focus { outline: 5px solid var(--sun); outline-offset: 4px; animation: pop-big .6s; }
.share-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
dialog.share-sheet { width: min(480px, 94vw); padding: 20px; }
.share-sheet .ss-head { display: flex; align-items: center; justify-content: space-between; }
.share-sheet .ss-head h3 { margin: 0; }
.ss-close { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); cursor: pointer; font-weight: 800; }
.ss-img { display: block; width: 100%; max-width: 260px; margin: 12px auto 0; border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-sm); }
.ss-text { margin: 12px 0; font-weight: 600; background: var(--cream); border: 2px dashed var(--ink-2); border-radius: 12px; padding: 10px 12px; font-size: .95rem; }
.ss-nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ss-net { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; font-weight: 700; color: #fff; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s; }
.ss-net:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.ss-ic svg { width: 22px; height: 22px; display: block; }
.ss-fb { background: #1877f2; } .ss-wa { background: #25d366; color: var(--ink); } .ss-tg { background: #229ed9; } .ss-em { background: var(--grape); }
.ss-net.ss-x { background: #111; }
.ss-copy { display: flex; gap: 8px; margin-top: 12px; }
.ss-copy input { flex: 1; min-width: 0; font: 500 .95rem var(--font-body); padding: 9px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream); }
.ss-dl { margin-top: 10px; }
.ss-tip { margin: 10px 0 0; font-size: .85rem; }

/* ---------- Tudástár 2.0 ---------- */
.lib-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 20px; }
@media (max-width: 820px) { .lib-head { grid-template-columns: minmax(0, 1fr); } }
.lib-daily { display: grid; gap: 10px; text-align: left; cursor: pointer; font: inherit; transform: rotate(1.2deg); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.lib-daily:hover { transform: rotate(0deg) scale(1.02); }
.lib-daily-tag { justify-self: start; background: var(--sun); color: var(--ink); font: 800 .9rem/1 var(--font-head); padding: 6px 10px; border-radius: 10px; transform: rotate(-3deg); }
.lib-daily-q { font: 700 1.25rem/1.25 var(--font-head); color: var(--cream); }
.lib-daily-a { justify-self: start; font: 800 1.4rem/1.1 var(--font-head); color: var(--ink); background: var(--orange-2); padding: 6px 12px; border-radius: 12px; border: 2px solid var(--cream); }
.lib-daily-more { color: var(--sun); font-weight: 700; }
.lib-tabs button { border-left: 6px solid var(--cc, var(--ink)); }
.lib-count { margin: 10px 0 0; min-height: 1.2em; }
.lib-grid { columns: 3 280px; column-gap: 18px; margin-top: 12px; }
.lib-card { --cc: var(--orange); display: grid; gap: 10px; width: 100%; margin: 0 0 18px; break-inside: avoid; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 0 18px 16px; overflow: hidden;
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .15s; }
.lib-card::before { content: ''; display: block; height: 10px; margin: 0 -18px 4px; background: var(--cc); border-bottom: 2px solid var(--ink); }
.lib-card:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: 6px 6px 0 var(--ink); }
.lib-cat { font-weight: 700; font-size: .82rem; color: var(--ink-2); }
.lib-q { font: 700 1.08rem/1.3 var(--font-head); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lib-teaser { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.lib-card .ans-line { justify-self: start; }
.lib-bignum { font: 800 2.4rem/1 var(--font-head); color: var(--orange); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.lib-num { background: var(--cream); }
.lib-tint { background: color-mix(in srgb, var(--cc) 14%, #fff); }
.lib-stamp { justify-self: start; font: 800 1.1rem/1 var(--font-head); letter-spacing: .08em; padding: 6px 12px; border: 3px solid currentColor; border-radius: 10px; transform: rotate(-4deg); }
.lib-stamp.yes { color: #008a62; } .lib-stamp.no { color: var(--red); }
.lib-vs-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.lib-vs-row span { padding: 4px 10px; border-radius: 10px; border: 2px solid var(--ink); background: var(--cream); opacity: .6; }
.lib-vs-row span.win { background: var(--sun); opacity: 1; }
.lib-vs-row i { font: 800 .85rem var(--font-head); font-style: normal; color: var(--danger-text); }
dialog.lib-dialog { width: min(680px, 96vw); max-width: 680px; max-height: 90vh; overflow: auto; padding: 0 24px 22px; border-top: 12px solid var(--cc, var(--orange)); }
.ld-top { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 0 8px; background: var(--paper); z-index: 1; }
.ld-q { font-size: clamp(1.35rem, 4vw, 1.8rem); margin: 4px 0 14px; }
.ld-answer { display: inline-grid; gap: 2px; background: var(--sun); border: var(--border); border-radius: 14px; padding: 8px 14px; box-shadow: var(--shadow-sm); transform: rotate(-1deg); margin-bottom: 14px; }
.ld-answer small { font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.ld-answer b { font: 800 1.35rem/1.15 var(--font-head); }
.ld-expl { font-size: 1.05rem; }
.ld-details { border-left: 5px solid var(--cc, var(--orange)); padding: 2px 0 2px 14px; margin: 0 0 14px; }
.ld-actions { margin-top: 14px; }
.ld-related { margin-top: 20px; padding-top: 14px; border-top: 2px dashed var(--ink-2); }
.ld-related h4 { margin-bottom: 8px; }
.ld-rel { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--cream); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.ld-rel:hover { background: #fff; transform: translateX(3px); }
.ld-rel b { flex: none; max-width: 40%; text-align: right; color: var(--accent-text); }
@media (max-width: 520px) { .lib-grid { columns: 1; } dialog.lib-dialog { padding: 0 16px 18px; } .ld-rel { flex-direction: column; } .ld-rel b { max-width: none; text-align: left; } }
.sources { font-size: .9rem; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.sources a { color: var(--grape); font-weight: 600; word-break: break-word; }
.card.ink .sources a, .card.hot .sources a, .card.grape .sources a { color: inherit; }

/* ==========================================================================
   FELELŐSÖK + MIRE MENT EL? (felelosok.js, osszevetes.js) – blokk eleje
   ========================================================================== */
.fl-disc { margin-top: 14px; font-size: .98rem; }
.fl-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 6px; }
.fl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; text-decoration: none; background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; position: relative; overflow: hidden; }
.fl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 56px; background: var(--pc); border-bottom: var(--border); }
.fl-card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 9px 9px 0 var(--ink); }
.fl-card > * { position: relative; }
.fl-name { font: 800 1.35rem/1.1 var(--font-head); letter-spacing: -.02em; }
.fl-tag { font-size: .93rem; color: var(--ink-2); line-height: 1.35; }
.fl-meta { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; margin-top: auto; }
.fl-meta b { font-family: var(--font-head); }
.fl-meta em { font-style: normal; color: var(--ink-2); }
.fl-av { --s: 74px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background-color: var(--pc); border: var(--border); box-shadow: var(--shadow-sm); display: grid; place-items: center; position: relative;
  background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55) 0, transparent 45%), repeating-linear-gradient(45deg, transparent 0 7px, rgba(29,11,51,.07) 7px 9px); }
.fl-av b { font: 800 calc(var(--s) * .38)/1 var(--font-head); letter-spacing: -.04em; color: var(--ink); }
.fl-av i { position: absolute; right: -6px; bottom: -4px; font-style: normal; font-size: calc(var(--s) * .26); background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; width: calc(var(--s) * .44); height: calc(var(--s) * .44); display: grid; place-items: center; }
.fl-av.big { --s: 128px; }
.fl-av.long b { font-size: calc(var(--s) * .3); }
.fl-st { display: inline-flex; gap: 6px; align-items: center; font: 700 .82rem/1.2 var(--font-body); padding: 5px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.fl-st.st-red { background: #ffd6de; }
.fl-st.st-orange { background: #ffe3b8; }
.fl-st.st-grey { background: #ece7f3; }
.fl-st.st-green { background: #d4f7e8; }
.fl-hero { display: flex; gap: 26px; align-items: center; margin: 14px 0 22px; background: linear-gradient(120deg, var(--paper) 55%, var(--pc) 160%); }
.fl-hero h1 { margin-bottom: 6px; font-size: clamp(2.1rem, 6vw, 3.8rem); }
.fl-hero .fl-tag { font-size: 1.05rem; margin-bottom: 10px; }
.fl-cols { display: grid; gap: 20px; grid-template-columns: 1.3fr 1fr; }
.fl-roles { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--ink); }
.fl-roles li { position: relative; padding: 4px 0 12px 18px; display: flex; flex-direction: column; }
.fl-roles li::before { content: ""; position: absolute; left: -10px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }
.fl-roles span { font: 800 .85rem var(--font-head); color: var(--accent-text); }
.fl-resp { margin: 0; padding-left: 20px; }
.fl-resp li { margin-bottom: 6px; }
.fl-now .sources a { color: var(--sun); }
.fl-asof { font-size: .85rem; opacity: .8; }
.fl-facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fl-fact p { margin-bottom: 8px; }
.fl-amt { display: inline-block; font: 800 1.5rem/1 var(--font-head); background: var(--sun); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px; margin-bottom: 10px; transform: rotate(-1.5deg); }
.fl-docs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fl-doc { text-decoration: none; display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.fl-doc small { color: var(--ink-2); }
.fl-qs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fl-q { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; }
.fl-q b { color: var(--accent-text); font-family: var(--font-head); }
.fl-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.fl-opts { display: grid; gap: 10px; margin: 14px 0; }
.fl-opts .btn { justify-content: flex-start; text-align: left; }
@media (max-width: 760px) { .fl-cols { grid-template-columns: 1fr; } .fl-hero { flex-direction: column; align-items: flex-start; } .fl-av.big { --s: 96px; } }

.ov-legend .row { gap: 8px; }
.ov-sec { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem/1.2 var(--font-body); padding: 5px 10px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.ov-sec.sec-state { background: #d8e6ff; }
.ov-sec.sec-sub { background: #ffe3b8; }
.ov-sec.sec-priv { background: #f0dcff; }
.ov-unitnote { margin: 12px 0 18px; font-size: .95rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.ov-unitnote .sources { display: inline; margin: 0; }
.ov-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ov-card { display: flex; flex-direction: column; gap: 8px; }
.ov-card h3 { margin: 4px 0 0; }
.ov-card > .btn { align-self: flex-start; margin-top: auto; }
.ov-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ov-emoji { font-size: 2.6rem; line-height: 1; }
.ov-amt { font: 800 1.6rem/1.1 var(--font-head); }
.ov-amt small { font: 600 .8rem var(--font-body); color: var(--ink-2); }
.ov-eq { font: 800 1.15rem var(--font-head); background: var(--ink); color: var(--sun); border-radius: 12px; padding: 8px 12px; align-self: flex-start; transform: rotate(-1deg); }
.ov-eq b { font-size: 1.7rem; }
.ov-eq span { font: 600 .9rem var(--font-body); color: var(--cream); }
.ov-picto { display: flex; flex-wrap: wrap; gap: 2px; font-size: 1.25rem; line-height: 1.15; }
.ov-picto i { font-style: normal; animation: ov-pop .35s both; animation-delay: var(--d, 0ms); }
.ov-picto i.frac { clip-path: inset(0 calc((1 - var(--f)) * 100%) 0 0); }
@keyframes ov-pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ov-picto i { animation: none; } }
.ov-scale { color: var(--ink-2); font-size: .8rem; }
.ov-duels, .ov-intl { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.ov-duel-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; }
.ov-side { display: flex; flex-direction: column; gap: 6px; }
.ov-side-h { font-family: var(--font-head); }
.ov-side-h b { font-size: 1.6rem; }
.ov-vs { font: 800 1.4rem var(--font-head); background: var(--hot); color: #fff; border: 2px solid var(--ink); border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; transform: rotate(-8deg); align-self: center; }
.ov-bar { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: .95rem; }
.ov-bar div { height: 22px; background: var(--cream); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.ov-bar i { display: block; height: 100%; background: var(--sky); }
.ov-bar.hu i { background: var(--orange); }
.ov-bar.hu span, .ov-bar.hu b { font-weight: 800; }
.ov-tl { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--ink); }
.ov-tl li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 0 0 14px 16px; position: relative; }
.ov-tl li::before { content: ""; position: absolute; left: -11px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }
.ov-year { font: 800 1.3rem var(--font-head); }
.ov-tl p { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.ov-tl .sources { display: inline; }
@media (max-width: 600px) { .ov-duel-row { grid-template-columns: 1fr; } .ov-vs { justify-self: center; } .ov-bar { grid-template-columns: 100px 1fr auto; } .ov-grid, .ov-duels, .ov-intl { grid-template-columns: 1fr; } }
.ov-int[hidden] { display: none; }
.ov-int-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ov-int-h h3 { margin: 0; }
.ov-int-sub { color: var(--ink-2); font-size: .85rem; margin: 4px 0 10px; }
.ov-rank { flex: none; font: 800 1.05rem var(--font-head); padding: 6px 10px; border: 2px solid var(--ink); border-radius: 12px; transform: rotate(2deg); box-shadow: var(--shadow-sm); }
.ov-rank.bad { background: var(--hot-strong); color: #fff; }
.ov-rank.good { background: var(--mint); }
.ov-intl .ov-bar { grid-template-columns: 160px 1fr 64px; margin: 5px 0; }
.ov-intl .ov-bar b { text-align: right; }
.ov-bar em { font-style: normal; color: var(--ink-2); display: inline-block; min-width: 1.6em; font-size: .85em; }
.ov-bar.hu { background: #fff1c2; border-radius: 8px; padding: 2px 4px; margin-left: -4px; margin-right: -4px; }
.ov-bar.eu i { background: repeating-linear-gradient(90deg, var(--ink-2) 0 6px, transparent 6px 10px); }
.ov-int > .btn { margin-top: 8px; }
@media (max-width: 600px) { .ov-intl .ov-bar { grid-template-columns: 128px 1fr 52px; font-size: .88rem; } }
.ov-facts ol { margin: 0; padding-left: 22px; }
.ov-facts li { margin-bottom: 10px; }
.ov-facts .sources { display: inline; }
/* ==========================================================================
   FELELŐSÖK + MIRE MENT EL? – blokk vége
   ========================================================================== */

/* ---------- Főoldal: minijáték-sáv ---------- */
.mini-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mini-chip { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: var(--paper);
  border: var(--border); border-radius: 18px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow-sm); transition: transform .15s cubic-bezier(.3, 1.6, .5, 1);
  animation: card-in .5s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i) * 50ms); }
.mini-chip:hover { transform: translateY(-4px) rotate(-1.5deg); }
.mini-chip:nth-child(even) { rotate: .8deg; }
.mini-emoji { width: 48px; height: 48px; flex: none; display: grid; place-items: center; font-size: 1.6rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--cream); }
.mc-hot .mini-emoji { background: var(--hot); } .mc-sun .mini-emoji { background: var(--sun); } .mc-mint .mini-emoji { background: var(--mint); } .mc-grape .mini-emoji { background: var(--grape); }
.mini-chip b { display: block; font-family: var(--font-head); font-size: 1.02rem; white-space: nowrap; }
.mini-chip small { color: var(--ink-2); font-weight: 600; }

.topbar .wrap { width: min(1240px, 100% - 32px); }
.kassza-card { position: relative; background: linear-gradient(150deg, #ffe27a 0%, var(--sun) 45%, #ffb21a 100%); }

/* ---------- Menü: csoportok (Játék ▾, Tények ▾), Hírek kiemelés ---------- */
.nav a.nav-news { background: var(--sun); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.nav a.nav-news:hover, .nav a.nav-news.active { background: var(--ink); color: var(--sun); }
.nav-drop { position: relative; }
.nav-drop-btn { font: 600 1rem var(--font-body); color: var(--ink); background: transparent; border: 2px solid transparent; border-radius: 12px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn, .nav-drop:has(a.active) .nav-drop-btn { background: var(--cream); border-color: var(--ink); }
.nav-drop-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; display: none; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--paper); border: var(--border); border-radius: 16px; box-shadow: var(--shadow); z-index: 60; }
.nav-drop-menu a { padding: 10px 12px; }
.nav-drop.open .nav-drop-menu { display: flex; animation: card-in .25s cubic-bezier(.2, .9, .3, 1.3) both; }
@media (hover: hover) and (min-width: 1261px) {
  .nav-drop:hover .nav-drop-menu { display: flex; }
  .nav-drop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}
@media (max-width: 1260px) {
  .nav { max-height: calc(100dvh - 70px); overflow-y: auto; gap: 2px; }
  .nav-drop { display: block; }
  .nav-drop-btn { display: block; width: 100%; text-align: left; pointer-events: none; padding: 12px 12px 4px; font: 800 .8rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; opacity: .75; border: 0; background: none !important; }
  .nav-drop-btn { font-size: 0; } .nav-drop-btn::before { font-size: .8rem; }
  .nav-drop:nth-of-type(1) .nav-drop-btn::before { content: 'Játékok'; } .nav-drop:nth-of-type(2) .nav-drop-btn::before { content: 'Tudj meg többet'; }
  .nav-drop-menu, .nav-drop:hover .nav-drop-menu { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; padding: 4px 0 8px; background: none; border: 0; box-shadow: none; animation: none; }
  .nav-drop-menu a { background: var(--cream); border: 2px solid var(--ink); font-size: 1rem !important; padding: 10px !important; }
}
.fact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact-tile { display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--ink); background: var(--paper); border: var(--border); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-sm); transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); }
.fact-tile:hover { transform: translateY(-4px) rotate(-1deg); }
.fact-tile span { font-size: 1.8rem; line-height: 1; }
.fact-tile b { font-family: var(--font-head); font-size: 1.15rem; }
.fact-tile small { color: var(--ink-2); font-size: .9rem; line-height: 1.35; }
.fact-tile.ft-news { background: var(--sun); transform: rotate(-1deg); }

/* ---------- Főoldal: „Kezdd itt” sáv ---------- */
.start-here-wrap { padding-top: 0; }
.start-here { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; text-decoration: none; color: var(--ink); background: linear-gradient(120deg, #fff 0%, var(--cream) 60%, #ffe9c2 100%); transform: rotate(-.5deg); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.start-here:hover { transform: rotate(0deg) scale(1.01); }
.sh-emoji { font-size: 3rem; width: 76px; height: 76px; flex: none; display: grid; place-items: center; background: var(--grape); border: var(--border); border-radius: 22px; box-shadow: var(--shadow-sm); transform: rotate(-6deg); }
.sh-txt { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.sh-txt small { font-weight: 700; color: var(--danger-text); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.sh-txt b { font: 800 clamp(1.3rem, 3.5vw, 1.7rem)/1.1 var(--font-head); }
.sh-txt span { color: var(--ink-2); }
.fact-tile.ft-cards { background: var(--hot); color: #fff; transform: rotate(1deg); } .fact-tile.ft-cards small { color: #fff; opacity: .9; }
.hypno-card { position: relative; background: repeating-conic-gradient(from 0deg at 85% 20%, #7b2ff7 0 10deg, #8f4dff 10deg 20deg); }
.fact-tile.ft-family { background: var(--ink); color: var(--cream); } .fact-tile.ft-family small { color: #d9c9f0; } .fact-tile.ft-family em { font-style: normal; font-weight: 800; color: var(--sun); }

/* ---------- Támogatás: olvashatóbb rózsaszín kártya, forrás-gomb ---------- */
.half-card .tick li { line-height: 1.45; }
.half-note { background: rgba(255, 255, 255, .95); color: var(--ink); border: 2px solid var(--ink); border-top: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; line-height: 1.55; margin-top: 4px; }
.nowrap { white-space: nowrap; }
.src-pill { display: inline-flex; align-items: center; gap: 4px; vertical-align: baseline; margin-left: 2px; padding: 2px 10px; font: 700 .82rem/1.5 var(--font-body); color: #fff; background: var(--ink);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .12s; }
.src-pill:hover { background: var(--grape); transform: translateY(-1px); }
.src-pill:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.card.flash { animation: flash-ring 1.2s ease-out; }
@keyframes flash-ring { 0% { box-shadow: 0 0 0 6px var(--sun), var(--shadow); } 100% { box-shadow: var(--shadow); } }
#app [id] { scroll-margin-top: 90px; }
.fact-tile.ft-meszaros { background: var(--orange-2); } .fact-tile.ft-meszaros small { color: var(--ink); }
.ld-social { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--ink-2); }

/* footer: 4 columns (about, games, facts, us) */
footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 900px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { footer .cols { grid-template-columns: 1fr; } }
/* Mire ment el?: the international bars must follow the mobile grid too (was 440px wide at 375px) */
@media (max-width: 600px) { .ov-intl .ov-bar { grid-template-columns: 90px minmax(0, 1fr) 52px; } .ov-intl .ov-bar > * { min-width: 0; } }
@media (max-width: 600px) { .ov-grid, .ov-duels, .ov-intl { grid-template-columns: minmax(0, 1fr); } .ov-intl > *, .ov-duels > *, .ov-grid > * { min-width: 0; } }
@media (max-width: 600px) { .ov-tl li { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding-left: 12px; } .ov-tl li > * { min-width: 0; overflow-wrap: anywhere; } }

/* ---------- Átrendezés: a kvíz és a játékok elöl, a tények hátrébb ---------- */
.nav a.nav-play { background: var(--ink); color: var(--sun); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.nav a.nav-play:hover, .nav a.nav-play.active { background: var(--sun); color: var(--ink); }
.nav-sub { font: 800 .72rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding: 10px 12px 4px; }
@media (min-width: 1261px) {
  .nav-more-info .nav-drop-menu { left: auto; right: 0; }
  .nav-mega { display: none; width: 560px; }
  .nav-drop.open .nav-mega, .nav-drop:hover .nav-mega { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
  .nav-grp { display: flex; flex-direction: column; }
}
@media (max-width: 1260px) { .nav-grp { display: contents; } .nav-mega .nav-sub { grid-column: 1 / -1; padding: 8px 2px 0; } }
.lb-teaser { background: linear-gradient(135deg, #fff 0%, var(--cream) 100%); }
.lb-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-mini li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.lb-mini li:first-child { background: var(--sun); }
.lb-mini li.me { outline: 3px solid var(--grape); }
.lb-pos { width: 28px; text-align: center; font: 800 1.1rem var(--font-head); }
.lb-av { font-size: 1.3rem; }
.lb-mini b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-val { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.learn-more { background: rgba(255, 255, 255, .55); border: 2px dashed var(--ink); border-radius: var(--radius); padding: 18px 20px; }
.learn-more h3 { margin: 0 0 2px; }
.learn-more p { margin: 0 0 12px; }
.learn-links { display: flex; flex-wrap: wrap; gap: 8px; }
.learn-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 12px; transition: transform .12s; }
.learn-links a:hover { transform: translateY(-2px); background: var(--cream); }
.learn-links a.ll-first { background: var(--grape); color: #fff; }
@media (max-width: 1260px) { .nav-drop-menu, .nav-drop:hover .nav-drop-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nav-drop-menu a { min-width: 0; white-space: normal; line-height: 1.25; font-size: .95rem !important; } }

/* ---------- Főoldal: kiemelt Börtöntúra-kártya ---------- */
.borton-feature { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: center; text-decoration: none; color: var(--cream);
  background: radial-gradient(circle at 90% 10%, #3b1f63 0, transparent 50%), var(--ink); border-width: 4px; padding: 26px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.borton-feature:hover { transform: rotate(-.4deg) scale(1.01); }
.bf-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; background: #fff6ea; border: 3px solid var(--sun); border-radius: 18px; transform: rotate(-4deg); box-shadow: 6px 6px 0 var(--hot); }
.bf-board span { aspect-ratio: 1; display: grid; place-items: center; font-size: 1.9rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--sun); }
.bf-board span:nth-child(even) { background: var(--orange-2); }
.bf-board span:nth-child(2) { background: var(--hot); }
.bf-tag { transform: rotate(-2deg); }
.bf-text h2 { color: var(--sun); font-size: clamp(2rem, 6vw, 3rem); margin: 10px 0 6px; }
.bf-text p { max-width: 62ch; }
.bf-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.bf-stat { display: grid; gap: 0; min-width: 96px; padding: 8px 12px; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 246, 234, .5); border-radius: 14px; font-size: .82rem; line-height: 1.2; }
.bf-stat b { font: 800 1.7rem/1 var(--font-head); color: var(--sun); }
.bf-note { flex-basis: 100%; opacity: .75; font-size: .8rem; }
.bf-go { pointer-events: none; }
@media (max-width: 720px) {
  .borton-feature { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 14px; }
  .bf-board { width: 170px; justify-self: center; }
  .bf-board span { font-size: 1.4rem; }
  .bf-stat { min-width: calc(50% - 4px); flex: 1; }
}
.logo .ball { filter: drop-shadow(2px 2px 0 var(--ink)); }

/* ---------- Támogatás: ingyenes segítség elöl, adomány „Hamarosan” ---------- */
.help-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.help-card { display: flex; flex-direction: column; gap: 8px; position: relative; padding-top: 38px; margin-top: 14px; }
.help-card h3 { margin: 0; }
.help-card p { margin: 0; flex: 1; color: var(--ink-2); }
.help-card .btn { align-self: flex-start; margin-top: 6px; }
.hc-ic { position: absolute; top: -18px; left: 18px; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.4rem; background: var(--sun); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sm); transform: rotate(-6deg); }
.help-card.hc-share { background: linear-gradient(160deg, #fff 0%, #ffe3ea 100%); }
.donate-where { margin: 10px 0 0; }
.soon { display: grid; gap: 8px; }
.soon-tag { justify-self: start; font: 800 .9rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; background: var(--sun); color: var(--ink); padding: 6px 10px; border-radius: 10px; transform: rotate(-2deg); }
.bank-box { display: grid; gap: 4px; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 246, 234, .45); border-radius: 14px; padding: 12px 14px; margin-top: 8px; }
.bank-box code { font-size: 1.05rem; color: var(--sun); }
.nav a.nav-donate { box-shadow: 2px 2px 0 var(--ink); }
/* home: support band */
.support-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; background: radial-gradient(circle at 0% 0%, #4a1c4f 0, transparent 55%), var(--ink); }
.sb-heart { font-size: 3.2rem; width: 84px; height: 84px; display: grid; place-items: center; background: var(--hot); border: 3px solid var(--cream); border-radius: 50%; animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 10% { transform: scale(1.12); } 20% { transform: scale(.96); } 30% { transform: scale(1.08); } }
.sb-text h2 { color: var(--sun); margin: 0 0 6px; font-size: clamp(1.4rem, 4vw, 2rem); }
.sb-text p { margin: 0; color: var(--cream); }
.sb-actions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 820px) { .support-band { grid-template-columns: minmax(0, 1fr); text-align: left; } .sb-heart { width: 64px; height: 64px; font-size: 2.3rem; } .sb-actions { flex-direction: row; flex-wrap: wrap; } }
/* book + quiz result nudges */
.support-nudge-card { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .7); border: 2px dashed var(--ink); border-radius: 16px; padding: 12px 16px; }
.support-nudge-card span { flex: 1; min-width: 200px; }
.snc-go { white-space: nowrap; }
.support-nudge { margin: 16px 0 0; font-size: .92rem; color: var(--ink-2); }
.support-nudge a { font-weight: 700; color: var(--danger-text); }
@media (prefers-reduced-motion: reduce) { .sb-heart { animation: none; } }

/* ---------- Adomány: minden mód, „hamarosan” helyőrzőkkel ---------- */
.dm-h { color: var(--sun); margin: 20px 0 10px; font-size: 1.15rem; }
.dm-links { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-ph { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 2px dashed rgba(255, 246, 234, .55); border-radius: 16px; color: var(--cream); font-weight: 700; opacity: .8; }
.dm-ph small, .dm-ph-txt { font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; background: rgba(255, 210, 63, .18); color: var(--sun); padding: 2px 8px; border-radius: 8px; }
.bank-box .bf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bank-box .bf-l { min-width: 150px; opacity: .8; }
.bank-box code { font-size: 1rem; color: var(--sun); overflow-wrap: anywhere; }
.dm-note { opacity: .75; margin-top: 4px; }
.dm-crypto { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dm-coin { display: grid; gap: 10px; justify-items: center; text-align: center; background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 246, 234, .45); border-radius: 18px; padding: 14px; }
.dm-coin.is-ph { border-style: dashed; }
.dm-coin-h { display: grid; justify-items: center; gap: 2px; }
.dm-coin-ic { width: 44px; height: 44px; display: grid; place-items: center; font: 800 1.4rem var(--font-head); background: var(--sun); color: var(--ink); border-radius: 50%; border: 2px solid var(--cream); }
.dm-coin-h small { opacity: .8; }
.dm-qr { width: 150px; height: 150px; background: #fff; border-radius: 12px; padding: 4px; }
.dm-qr svg { width: 100%; height: 100%; display: block; }
.dm-qr-ph { display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(255, 246, 234, .12) 0 8px, transparent 8px 16px); color: rgba(255, 246, 234, .6); font: 800 1.4rem var(--font-head); }
.dm-addr { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 100%; }
.dm-addr code { font-size: .8rem; color: var(--sun); overflow-wrap: anywhere; max-width: 100%; }
.dm-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 46, 99, .18); border: 2px solid var(--hot); font-size: .92rem; }

/* ---------- Audit P0: muted text on the orange page, skip link ---------- */
#app > .wrap > .muted, #app > .narrow > .muted, .section-head .muted, #app > .wrap > p.muted { color: var(--ink); opacity: .85; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--sun); padding: 12px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
/* home teaser: versus row never overflows on phones */
.hero-card .vs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.hero-card .vs .ans.versus { min-width: 0; overflow-wrap: anywhere; hyphens: auto; white-space: normal; }

/* Duel players bar: never overlaps on phones (names shrink with an ellipsis instead) */
.players { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.player > div:not(.av):not(.sc) { min-width: 0; flex: 1; }
@media (max-width: 520px) {
  .players { gap: 6px; }
  .player { gap: 6px; padding: 8px; }
  .player .av { font-size: 1.4rem; }
  .player .sc { font-size: 1.15rem; }
  .player .nm { font-size: .85rem; }
  .player .tick { font-size: .72rem; }
  .players > b { font-size: 1rem !important; }
}

/* „Hol tart az ügy?” (#/borton): stage lane instead of a board-game grid */
.bf-lane { list-style: none; margin: 0; padding: 12px; display: grid; gap: 6px; background: #fff6ea; border: 3px solid var(--sun); border-radius: 18px; box-shadow: 6px 6px 0 var(--hot-strong); color: var(--ink); }
.bf-lane li { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 10px; background: var(--sun); }
.bf-lane li:nth-child(even) { background: #ffe6b8; }
.bf-lane small { font: 700 .82rem var(--font-body); }
@media (max-width: 720px) { .bf-lane { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px; } .bf-lane li { flex-direction: column; gap: 2px; font-size: 1.1rem; padding: 4px 2px; text-align: center; } .bf-lane small { font-size: .62rem; } }
/* [admin] a felhasználói blokk (🛠️ Admin + profil) – mobilmenüben egymás alatt, teljes szélességben */
#nav-user { display: flex; align-items: center; gap: 4px; }
@media (max-width: 1260px) { #nav-user { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 6px; } }
