:root {
  --bg: #0f1b33; --panel: #182a4d; --panel2: #213a66; --ink: #f4f6fb; --muted: #a9b6d3;
  --gold: #ffc43d; --ok: #2ecc71; --bad: #ff5d5d; --line: #2d4675; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 600px at 50% -10%, #23407a 0%, var(--bg) 60%); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; min-height: 100vh; }
button { font: inherit; cursor: pointer; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; max-width: 1100px; margin: 0 auto; }
.logo { font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: .3px; }
.logo span { color: var(--gold); }
.langs button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 10px; margin-left: 6px; }
.langs button.on { background: var(--gold); color: #1b1b1b; border-color: var(--gold); font-weight: 700; }
main { max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.home { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .home { grid-template-columns: 1fr; } }
.tagline { color: var(--muted); margin: 0 0 14px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0d1830; color: var(--ink); font-size: 17px; }
.btn { display: block; width: 100%; padding: 14px; border-radius: 12px; border: 0; background: var(--panel2); color: var(--ink); font-weight: 700; font-size: 17px; margin-top: 10px; }
.btn.primary { background: var(--gold); color: #1b1b1b; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; }
.row .btn { margin-top: 0; width: auto; padding: 12px 18px; }
.menu-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--panel2); margin-bottom: 10px; border: 1px solid transparent; width: 100%; text-align: left; color: var(--ink); }
.menu-item small { display: block; color: var(--muted); font-weight: 400; }
.menu-item.star { border-color: var(--gold); background: linear-gradient(135deg, #3b2f0b, #213a66); }
.badge { font-size: 12px; background: #0d1830; color: var(--gold); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.legal-note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.seats { list-style: none; padding: 0; margin: 12px 0; }
.seats li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #0d1830; margin-bottom: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.code { font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--gold); }
.link { word-break: break-all; font-size: 14px; color: var(--muted); }
/* játék */
.game { display: grid; gap: 12px; grid-template-columns: 1fr 340px; align-items: start; }
@media (max-width: 900px) { .game { grid-template-columns: 1fr; } }
.scores { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.score { flex: 1; min-width: 120px; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 2px solid transparent; }
.score.me { border-color: var(--gold); }
.score .n { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score .p { font-size: 22px; font-weight: 800; }
.score.out { opacity: .45; }
.phase { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.mapwrap { background: #0b1630; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
svg.map { width: 100%; height: auto; display: block; }
svg.map path.reg { stroke: #0b1630; stroke-width: 1.6; transition: fill .3s; }
svg.map path.reg.allowed { stroke: var(--gold); stroke-width: 4; cursor: pointer; animation: pulse .8s infinite alternate; filter: drop-shadow(0 0 4px rgba(255,196,61,.9)); }
svg.map path.reg.allowed[fill="#c9d3e6"] { fill: #fff3c4; }
svg.map path.reg.duel { stroke: #fff; stroke-width: 3.5; }
@keyframes pulse { from { stroke-opacity: 1; } to { stroke-opacity: .35; } }
svg.map text { font-size: 7.5px; fill: #0b1630; pointer-events: none; text-anchor: middle; font-weight: 600; }
svg.map text.cap { font-size: 11px; }
.side .card { padding: 14px; }
.status { font-weight: 700; margin-bottom: 8px; }
.qcard { margin-top: 10px; }
.qmeta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.qtext { font-size: 19px; font-weight: 700; margin-bottom: 10px; user-select: none; -webkit-user-select: none; }
.timer { height: 6px; background: #0d1830; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.timer i { display: block; height: 100%; background: var(--gold); width: 100%; }
.opts { display: grid; gap: 8px; }
.opt { padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: #0d1830; color: var(--ink); text-align: left; font-size: 16px; }
.opt:hover:not(:disabled) { border-color: var(--gold); }
.opt.ok { background: #145a32; border-color: var(--ok); }
.opt.bad { background: #5a1414; border-color: var(--bad); }
.opt.mine { outline: 2px solid var(--gold); }
.opt .who { float: right; }
.explain { margin-top: 10px; padding: 10px; border-radius: 10px; background: #0d1830; font-size: 14px; }
.explain b { color: var(--gold); }
.tiprow { display: flex; gap: 8px; }
.tiprow input { flex: 1; }
.tiprow .btn { width: auto; margin: 0; }
.tipres { list-style: none; padding: 0; margin: 8px 0 0; font-size: 15px; }
.tipres li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); }
.emotes { display: flex; gap: 6px; margin-top: 10px; }
.emotes button { background: var(--panel2); border: 0; border-radius: 8px; font-size: 20px; padding: 4px 8px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--panel2); padding: 8px 14px; border-radius: 99px; font-size: 22px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal[hidden] { display: none; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; }
.modal-box li { margin-bottom: 8px; }
.final li { font-size: 18px; }
@media (max-width: 600px) {
  main { padding: 4px 8px 30px; }
  .scores { flex-wrap: nowrap; gap: 6px; }
  .score { min-width: 0; padding: 6px 8px; }
  .score .n { font-size: 12px; }
  .score .p { font-size: 18px; }
  .mapwrap svg.map { max-height: 40vh; }
  .qtext { font-size: 17px; }
  .opt { padding: 10px; }
}

.partner { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #0e5a4a, #17406e); color: var(--ink); text-decoration: none; font-size: 14px; border: 1px solid #2a9d8f; }
.partner b { color: var(--gold); white-space: nowrap; }

.foot { max-width: 1100px; margin: 0 auto; padding: 14px 16px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.foot a, .modal-box a { color: var(--gold); }

.hright { display: flex; align-items: center; gap: 8px; }
.chip { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 14px; color: var(--ink); }
label.check input { width: auto; margin-top: 3px; }
.err { color: var(--bad); font-weight: 600; } .ok { color: var(--ok); font-weight: 600; }
.btn.small { display: inline-block; width: auto; padding: 8px 12px; font-size: 14px; margin: 6px 6px 0 0; }
.btn.danger { background: #5a1414; }
.linkbtn { background: none; border: 0; color: var(--muted); font-size: 12px; float: right; padding: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.tab.on { background: var(--gold); color: #1b1b1b; border-color: var(--gold); font-weight: 700; }
.slot { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: #0d1830; margin-bottom: 10px; flex-wrap: wrap; }
.slot small { color: var(--muted); }
.slot-actions { display: flex; flex-direction: column; align-items: flex-end; }
.badge.live { background: var(--bad); color: #fff; }
.plans { display: grid; gap: 8px; }
.plan { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0d1830; color: var(--ink); font-size: 15px; }
.plan:hover { border-color: var(--gold); }
.gifts code, .modal-box code { background: #0d1830; padding: 2px 6px; border-radius: 6px; color: var(--gold); }
.apps { display: flex; flex-wrap: wrap; }
.help { margin-top: 10px; padding: 10px; border-radius: 10px; background: #2b2412; border: 1px solid var(--gold); font-size: 14px; }
.hbar { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.hbar i { display: block; height: 10px; background: var(--gold); border-radius: 5px; }
.hbar em { font-style: normal; color: var(--muted); }
.yellows { margin-top: 8px; }
.videos { max-width: 1100px; margin: 0 auto 8px; padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.videos[hidden] { display: none; }
.vtile { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid var(--line); }
.vtile.mine { border-color: var(--gold); }
.vtile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vtile.mine video { transform: scaleX(-1); }
.vl { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; font-size: 13px; }
@media (max-width: 600px) { .videos { grid-template-columns: repeat(2, 1fr); padding: 0 8px; } }
.modal-box h3 { margin: 14px 0 6px; font-size: 16px; }
.modal-box label { margin-top: 8px; }

.card a { color: var(--gold); }

.critter { position: fixed; z-index: 50; width: 110px; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(-50%, -50%); }
.critter[hidden] { display: none; }
.critter img { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 0 24px rgba(255,196,61,.8); display: block; }
.critter span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1b1b1b; font-weight: 800; font-size: 14px; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.critter.pop { animation: crpop 2s ease-out forwards; }
@keyframes crpop { 0% { transform: translate(-50%,-50%) scale(.2) rotate(-20deg); opacity: 0; } 12% { transform: translate(-50%,-50%) scale(1.15) rotate(6deg); opacity: 1; }
  20% { transform: translate(-50%,-50%) scale(1) rotate(0); } 85% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(.6); opacity: 0; } }
@media (max-width: 600px) { .critter, .critter img { width: 84px; height: 84px; } }

.rsum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.rsum div { background: #0d1830; border-radius: 10px; padding: 10px; text-align: center; }
.rsum b { display: block; font-size: 24px; color: var(--gold); } .rsum small { color: var(--muted); font-size: 12px; }
.rtab { width: 100%; border-collapse: collapse; font-size: 14px; } .rtab th, .rtab td { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; }
.rlist { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
@media (max-width: 600px) { .rsum { grid-template-columns: repeat(2, 1fr); } }
