/* FlickTap – „Neon Arcade” design rendszer */
@font-face { font-family: "Anton"; src: url(/fonts/anton.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/fonts/interdisplay-blackitalic.woff) format("woff"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/fonts/interdisplay-black.woff) format("woff"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-700.woff) format("woff"); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #09080a; --s1: #121015; --s2: #1a171e; --s3: #241f29;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --tx: #F5F3EE; --mute: #8f8a96; --lime: #C8FF00; --lime-d: #7a9c00;
  --bad: #FF4D4D; --good: #3DFFA8;
  --r: 26px; --r-sm: 16px;
  --display: "Anton", "Archivo Black", Impact, sans-serif;
  --num: "Inter Display", "Inter", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --spring: cubic-bezier(.34,1.56,.64,1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 400 16px/1.45 var(--ui); -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; max-width: 100%; }
body { min-height: 100dvh; }
body::before { /* szemcse + pont-rács: textúra, nem színátmenet */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 1; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select { font: inherit; color: inherit; }
.muted { color: var(--mute); }
.tiny { font-size: 12px; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* ---------- Logó ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-word { font: 30px/1 var(--display); letter-spacing: .5px; transform: skewX(-8deg); display: inline-block; }
.logo-word b { color: var(--lime); font-weight: 400; }
.top .logo-word { font-size: 25px; }

/* ---------- Elrendezés ---------- */
#app { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100dvh; }
#app > * { min-width: 0; }
.rail, .side { display: none; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(9,8,10,.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top-right { display: flex; align-items: center; gap: 8px; }
.main { padding: 16px 16px calc(110px + var(--safe-b)); max-width: 640px; width: 100%; margin: 0 auto; }
.dock { position: fixed; z-index: 30; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(26,23,30,.82); border: 1px solid var(--line2);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.dock a { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-radius: 999px; color: var(--mute); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.dock a span { display: none; }
.dock a.on { background: var(--lime); color: #0a090b; }
.dock a.on span { display: inline; }

@media (min-width: 1000px) {
  #app { grid-template-columns: 240px minmax(0, 1fr) 320px; }
  .top, .dock { display: none; }
  .rail { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100dvh; padding: 28px 20px; border-right: 1px solid var(--line); }
  .rail nav { display: flex; flex-direction: column; gap: 4px; }
  .rail nav a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; font-weight: 600; color: var(--mute); transition: .2s; }
  .rail nav a:hover { color: var(--tx); background: var(--s1); }
  .rail nav a.on { background: var(--lime); color: #0a090b; }
  .rail-foot { margin-top: auto; }
  .main { max-width: 900px; padding: 32px 36px 60px; }
  .side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100dvh; overflow: auto; padding: 32px 22px; border-left: 1px solid var(--line); }
}

/* ---------- Chipek, avatar ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font: 700 14px/1 var(--ui); }
.streak.s-done { color: #FF8A1F; border-color: rgba(255,138,31,.35); background: rgba(255,138,31,.10); }
.streak.s-todo { color: #FF4D4D; border-color: rgba(255,77,77,.4); background: rgba(255,77,77,.10); animation: throb 1.6s ease-in-out infinite; }
.streak.s-none { color: var(--mute); }
@keyframes throb { 50% { box-shadow: 0 0 0 5px rgba(255,77,77,.12); } }
.lvl { position: relative; overflow: hidden; }
.lvl i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 100%); background: var(--lime); }
.avatar { --c: var(--lime); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; font-size: 21px; line-height: 1;
  background: color-mix(in oklab, var(--c) 22%, var(--s2)); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--c) 70%, transparent); }
.avatar.sm { width: 32px; height: 32px; font-size: 17px; border-radius: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 28px; border-radius: 17px; }
.avatar.xl { width: 92px; height: 92px; font-size: 52px; border-radius: 30px; transition: transform .3s var(--spring); }
.avatar.xl:active { transform: scale(.92) rotate(-6deg); }

/* ---------- Gombok ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 18px; font: 700 16px/1 var(--ui); transition: transform .15s, box-shadow .15s, background .2s; user-select: none; }
.btn-primary { background: var(--lime); color: #0a090b; box-shadow: 0 5px 0 var(--lime-d), 0 10px 30px rgba(200,255,0,.25); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lime-d), 0 4px 14px rgba(200,255,0,.2); }
.btn-primary:disabled { opacity: .6; }
.btn-xl { width: 100%; height: 72px; border-radius: 24px; font: 400 30px/1 var(--display); letter-spacing: .6px; text-transform: uppercase; }
.btn-dark { background: #0a090b; color: var(--lime); height: 54px; width: 100%; margin-top: 16px; font-weight: 800; }
.btn-dark:active { transform: scale(.98); }
.btn-ghost { background: var(--s2); border: 1px solid var(--line2); }
.btn-ghost-danger { background: transparent; border: 1px solid rgba(255,77,77,.4); color: var(--bad); }
.btn-text { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; padding: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.link-strong { color: var(--lime); font-weight: 700; }

/* ---------- Hero: mai kihívások ---------- */
.hero { position: relative; background: var(--lime); color: #0a090b; border-radius: 32px; padding: 20px 20px 18px; overflow: hidden; animation: up .5s var(--spring) both; }
.hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 26px solid rgba(10,9,11,.07); pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero-tag { font: 700 12px/1 var(--ui); letter-spacing: 1.4px; text-transform: uppercase; background: #0a090b; color: var(--lime); padding: 7px 10px; border-radius: 999px; }
.hero-count { font: 900 italic 22px/1 var(--num); } .hero-count b { font-size: 34px; }
.hero h1 { font: 400 clamp(38px, 11vw, 56px)/.95 var(--display); text-transform: uppercase; margin: 14px 0 6px; letter-spacing: .3px; }
.hero p { margin: 0 0 14px; font-weight: 600; opacity: .72; max-width: 36ch; font-size: 15px; }
.hero-games { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.hg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; border-radius: 16px; background: #0a090b; color: var(--tx); transition: transform .2s var(--spring); }
.hg:active { transform: scale(.92); }
.hg span { font: 700 11px/1.1 var(--ui); color: var(--mute); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.hg.done { background: rgba(10,9,11,.12); }
.hg.done span { color: #0a090b; }
.hg.done .ico { filter: grayscale(.2); opacity: .9; }

/* ---------- Szekciók, bento ---------- */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 28px 2px 12px; flex-wrap: wrap; }
.sec-h h2, .page-h { font: 400 30px/1 var(--display); text-transform: uppercase; margin: 0; letter-spacing: .4px; }
.page-h { font-size: 44px; }
.sec-h .muted { font-size: 13px; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tile { --c: var(--lime); position: relative; display: flex; flex-direction: column; min-height: 200px; padding: 16px; border-radius: var(--r);
  background: var(--s1); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--spring), border-color .25s, box-shadow .25s; animation: up .55s var(--spring) both; animation-delay: calc(var(--i) * 45ms + 80ms); }
.tile::before { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; right: -50px; top: -50px; border-radius: 50%; background: var(--c); opacity: .09; filter: blur(30px); transition: opacity .3s; }
.tile:hover { border-color: color-mix(in oklab, var(--c) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--c) 25%, transparent), 0 20px 50px -20px color-mix(in oklab, var(--c) 45%, transparent); transform: translateY(-3px); }
.tile:hover::before { opacity: .2; }
.tile:active { transform: scale(.96); }
.tile-ico { margin: -4px 0 auto -4px; filter: drop-shadow(0 10px 18px color-mix(in oklab, var(--c) 35%, transparent)); transition: transform .4s var(--spring); }
.tile:hover .tile-ico { transform: rotate(-8deg) scale(1.08); }
.tile-name { font: 400 25px/1 var(--display); text-transform: uppercase; letter-spacing: .3px; margin-top: 14px; }
.tile-tag { font-size: 13px; color: var(--mute); margin-top: 4px; line-height: 1.3; }
.tile-meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--mute); }
.tile-meta b { color: var(--c); font: 900 italic 15px/1 var(--num); }
.tile-meta .new { color: var(--c); font-weight: 700; }
.duel-badge, .ok-badge { margin-left: auto; font-size: 13px; }
.ok-badge { margin-left: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #0a090b; font-weight: 800; font-size: 12px; }
.duel-badge + .ok-badge { margin-left: 4px; }
.tile-mix { grid-column: 1 / -1; min-height: 0; padding: 0; background: #0f0d11; }
.mix-stripes { display: flex; height: 8px; } .mix-stripes i { flex: 1; }
.tile-mix .tile-body { display: flex; align-items: center; gap: 14px; padding: 16px 18px 18px; }
.tile-mix .tile-name { margin: 0; }
.tile-mix .tile-meta { margin: 0 0 0 auto; text-align: right; color: var(--tx); } .tile-mix .tile-meta b { color: var(--lime); }

.card { position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 14px; }
.card h3 { margin: 0 0 12px; font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: .3px; }
.side .card { margin-top: 0; }
.nudge { display: flex; gap: 14px; border-color: rgba(200,255,0,.25); }
.nudge-ico { font-size: 28px; }
.nudge p { margin: 4px 0 8px; color: var(--mute); font-size: 14px; }
.install { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; }
.foot { margin: 34px 0 10px; text-align: center; font-size: 13px; color: var(--mute); line-height: 2; }
.foot a:hover, .side-links a:hover { color: var(--tx); }
.ver { font-size: 11px; opacity: .6; }
.side-links { font-size: 12px; color: var(--mute); line-height: 1.9; margin-top: auto; }
.me-card .me-row { display: flex; align-items: center; gap: 12px; }
.me-nick { font-weight: 800; font-size: 17px; } .me-sub { color: var(--mute); font-size: 13px; }
.me-xp { font-size: 12px; color: var(--mute); margin-top: 6px; }
.me-stats { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; }
.xpbar { height: 8px; border-radius: 99px; background: var(--s3); overflow: hidden; margin-top: 14px; }
.xpbar i { display: block; height: 100%; background: var(--lime); border-radius: inherit; transition: width .8s var(--spring); }
.xpbar.big { height: 12px; }
.lang { display: inline-flex; background: var(--s2); border-radius: 12px; padding: 3px; border: 1px solid var(--line); }
.lang button { padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--mute); }
.lang button.on { background: var(--tx); color: #0a090b; }

@keyframes up { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Játék keret ---------- */
body.playing { overflow: hidden; }
.play { position: fixed; inset: 0; z-index: 100; background: color-mix(in oklab, var(--c) 6%, #070608); display: flex; justify-content: center; animation: fadein .2s both; touch-action: none; }
@keyframes fadein { from { opacity: 0; } }
.play-frame { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 700px) and (min-height: 600px) {
  .play { align-items: center; background: rgba(7,6,8,.94); backdrop-filter: blur(6px); }
  .play-frame { width: min(480px, 94vw); height: min(880px, 94dvh); border-radius: 40px; border: 1px solid var(--line2); background: color-mix(in oklab, var(--c) 6%, #0b0a0d);
    box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 8px rgba(255,255,255,.02), 0 0 120px -30px color-mix(in oklab, var(--c) 40%, transparent); }
}
.play-top { display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 14px 8px; position: relative; z-index: 7; }
.play-title { flex: 1; text-align: center; line-height: 1.05; }
.play-title span { display: block; font: 400 21px/1 var(--display); text-transform: uppercase; letter-spacing: .4px; color: var(--c); }
.play-title small { font-size: 11px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: 1.2px; }
.play-pb { min-width: 44px; text-align: right; line-height: 1.05; }
.play-pb small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--mute); font-weight: 700; }
.play-pb b { font: 900 italic 16px/1 var(--num); color: var(--c); }
.stage { position: relative; flex: 1; min-height: 0; user-select: none; -webkit-user-select: none; touch-action: none; overflow: hidden; }
.g-canvas { position: absolute; inset: 0; display: block; }

.intro { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 26px calc(30px + var(--safe-b));
  background: color-mix(in oklab, var(--c) 7%, rgba(9,8,10,.96)); transition: opacity .18s, transform .25s; cursor: pointer; }
.play-frame .intro { top: 0; }
.intro.gone { opacity: 0; pointer-events: none; transform: scale(1.04); }
.intro-ico { filter: drop-shadow(0 18px 30px color-mix(in oklab, var(--c) 45%, transparent)); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.intro h2 { font: 400 clamp(48px, 15vw, 72px)/.95 var(--display); text-transform: uppercase; margin: 14px 0 10px; color: var(--c); letter-spacing: .5px; }
.intro p { max-width: 32ch; color: #cfcad6; margin: 0 0 26px; font-size: 16px; }
.intro-go { display: inline-flex; align-items: center; gap: 12px; font: 400 26px/1 var(--display); text-transform: uppercase; letter-spacing: .6px; padding: 20px 30px; border-radius: 999px; background: var(--c); color: #0a090b; box-shadow: 0 0 0 0 var(--c); animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--c) 55%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #0a090b; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.intro-key { margin-top: 14px; font-size: 12px; color: var(--mute); display: none; }
@media (hover: hover) and (pointer: fine) { .intro-key { display: block; } }
.intro-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.opt { font-size: 14px; font-weight: 600; color: #d8d3de; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.opt:hover { background: rgba(255,255,255,.1); }
.vs-box { background: rgba(255,255,255,.06); border: 1px solid var(--line2); border-radius: 18px; padding: 12px 16px; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.vs-box b { color: var(--c); }

/* idősáv, felugrók */
.g-timebar { position: absolute; left: 16px; right: 16px; top: 4px; height: 6px; border-radius: 9px; background: rgba(255,255,255,.08); z-index: 4; overflow: hidden; }
.g-timebar i { display: block; height: 100%; background: var(--c, var(--lime)); transform-origin: left; border-radius: inherit; }
.g-timebar.low i { background: var(--bad); }
.g-pop { position: absolute; z-index: 8; transform: translate(-50%, -50%); font: 400 30px/1 var(--display); color: #fff; text-transform: uppercase; pointer-events: none; animation: pop .9s var(--spring) forwards; text-shadow: 0 4px 20px rgba(0,0,0,.5); white-space: nowrap; }
.g-pop.big { font-size: 42px; color: var(--c); }
.g-pop.bad { color: var(--bad); }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }
.g-hud { position: absolute; z-index: 4; top: 18px; left: 0; right: 0; text-align: center; pointer-events: none; }
.g-hud b { display: block; font: 900 italic 64px/1 var(--num); color: #fff; }
.g-hud span { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mute); }
.g-hud-sm { top: 10px; left: 14px; right: auto; text-align: left; }
.g-hud-sm b { font-size: 40px; display: inline; } .g-hud-sm span { margin-left: 6px; }
.g-hud-sm em { font-size: 18px; letter-spacing: 2px; }
.g-hud em { display: block; font-style: normal; font-size: 22px; letter-spacing: 3px; margin-top: 4px; }
.g-hint { position: absolute; z-index: 4; left: 0; right: 0; bottom: 14%; text-align: center; color: #fff; font-weight: 700; pointer-events: none; transition: opacity .3s; }
.g-hint span { display: block; font-size: 38px; animation: flickhint 1.4s ease-in-out infinite; }
.g-hint.gone { opacity: 0; }
@keyframes flickhint { 0% { transform: translateY(16px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(-34px); opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
.g-count { position: absolute; z-index: 9; inset: 0; display: grid; place-items: center; font: 900 italic 160px/1 var(--num); color: var(--c); pointer-events: none; }
.g-count.in { animation: cnt .6s var(--spring); }
@keyframes cnt { from { transform: scale(1.8); opacity: 0; } }

/* ⏱️ Stopper */
.g-stopper { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-bottom: 8vh; }
.sw-target { font-size: 15px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
.sw-target b { color: var(--c); font: 900 italic 20px var(--num); letter-spacing: 0; }
.sw-num { font: 900 italic clamp(96px, 30vw, 150px)/1 var(--num); font-variant-numeric: tabular-nums; letter-spacing: -3px; transition: color .2s, filter .3s; }
.sw-num.blind { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.18); filter: blur(1px); }
.sw-num.hit { animation: hit .45s var(--spring); }
@keyframes hit { 30% { transform: scale(1.12); } }
.sw-dev { font: 900 italic 30px/1 var(--num); min-height: 32px; }
.c-great { color: var(--lime); } .c-good { color: #e6ff7a; } .c-ok { color: #FFB13D; } .c-bad { color: var(--bad); }
.sw-tries { display: flex; gap: 10px; margin-top: 14px; }
.sw-tries i, .rx-rounds i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.12); transition: .3s var(--spring); }
i.great { background: var(--lime); transform: scale(1.2); } i.good { background: #e6ff7a; } i.ok { background: #FFB13D; } i.bad { background: var(--bad); }
.sw-hint { position: absolute; bottom: calc(40px + var(--safe-b)); font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: var(--mute); }

/* ⚡ Reakció */
.g-react { position: absolute; inset: 10px; border-radius: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; transition: background .08s; background: #1a1016; }
.g-react[data-s="wait"] { background: #3a0f1c; }
.g-react[data-s="go"] { background: #22ff88; color: #04180c; transition: none; }
.g-react[data-s="early"] { background: #4a2a08; }
.g-react[data-s="hit"] { background: #0e2a33; }
.rx-big { font: 400 clamp(56px, 17vw, 96px)/1 var(--display); text-transform: uppercase; }
.g-react[data-s="hit"] .rx-big { font: 900 italic clamp(70px, 22vw, 120px)/1 var(--num); color: var(--c); }
.rx-sub { font-weight: 700; font-size: 18px; opacity: .8; }
.rx-rounds { position: absolute; bottom: 30px; display: flex; gap: 10px; }

/* Párbaj (közös) */
.g-duel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0; }
.dz { flex: 1; display: grid; place-items: center; text-align: center; margin: 8px; border-radius: 28px; background: #19141c; transition: background .08s, flex-grow .25s var(--spring); min-height: 0; }
.dz.p2 .dz-in { transform: rotate(180deg); }
.dz-mid { height: 2px; background: rgba(255,255,255,.12); margin: 0 30px; }
.dz-big { font: 400 clamp(44px, 13vw, 72px)/1 var(--display); text-transform: uppercase; }
.dz-sub { font-weight: 700; opacity: .75; margin-top: 4px; }
.dz-score { letter-spacing: 4px; color: var(--c); margin-bottom: 6px; font-size: 18px; }
.g-react-duel[data-s="wait"] .dz { background: #3a0f1c; }
.g-react-duel[data-s="go"] .dz { background: #22ff88; color: #04180c; transition: none; }
.dz.won { background: color-mix(in oklab, var(--c) 30%, #111) !important; }
.dz.lost { background: #160f14 !important; opacity: .7; }
.g-tap-duel .dz-big { font: 900 italic clamp(70px, 22vw, 120px)/1 var(--num); color: var(--c); }
.g-tap-duel .dz.hit { animation: thump .12s; }
@keyframes thump { 50% { background: #2a1522; } }

/* 👆 Koppintás */
.g-tap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.tp-ring { width: min(72vw, 330px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: color-mix(in oklab, var(--c) 14%, #120c10);
  box-shadow: inset 0 0 0 3px color-mix(in oklab, var(--c) 60%, transparent), 0 0 80px -20px var(--c); }
.tp-ring.hit { animation: tapbump .14s ease-out; }
@keyframes tapbump { 40% { transform: scale(.94); box-shadow: inset 0 0 0 6px var(--c), 0 0 120px -10px var(--c); } }
.tp-ring.done { opacity: .7; }
.tp-n { font: 900 italic clamp(90px, 28vw, 140px)/1 var(--num); color: var(--c); font-variant-numeric: tabular-nums; }
.tp-sub { font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: var(--mute); }
.tp-rate { font: 900 italic 22px/1 var(--num); color: var(--mute); }

/* 🎨 Melyik más */
.g-odd { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 16px 40px; gap: 18px; }
.od-top { font: 400 26px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: var(--c); }
.od-grid { --n: 2; width: min(100%, 62dvh, 440px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: calc(14px - var(--n) * 1px); }
.od-t { border-radius: calc(26px - var(--n) * 2.4px); transition: transform .12s; }
.od-t:active { transform: scale(.92); }
.od-t.wrong { outline: 3px solid var(--bad); outline-offset: -3px; }
.od-t.hint { outline: 3px solid #fff; outline-offset: -3px; }
.od-grid.ok { animation: okpop .25s var(--spring); }
@keyframes okpop { from { transform: scale(.94); } }
.od-grid.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.od-grid.over { opacity: .4; filter: grayscale(1); transition: .4s; }

/* ---------- Eredmény ---------- */
.res { position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 22px calc(22px + var(--safe-b)); animation: up .45s var(--spring) both; touch-action: pan-y; }
.res-mode { font-size: 12px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; color: var(--mute); margin-top: 2vh; }
.res-score { font: 900 italic clamp(90px, 28vw, 150px)/1 var(--num); color: var(--c); letter-spacing: -3px; margin-top: 6px; animation: scorein .6s var(--spring) both .05s; }
.res-score.is-pb { text-shadow: 0 0 60px color-mix(in oklab, var(--c) 55%, transparent); }
@keyframes scorein { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.res-unit { font: 400 20px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; color: var(--mute); }
.res-line { margin-top: 14px; font-weight: 700; font-size: 16px; }
.res-line.pb { color: var(--c); font-size: 19px; }
.res-line.close { color: #FFB13D; }
.res-line .muted { font-weight: 600; font-size: 14px; }
.res-emoji { font-size: 24px; letter-spacing: 3px; margin-top: 10px; min-height: 8px; }
.res-rank { display: none; flex-direction: column; gap: 4px; margin-top: 12px; font-weight: 600; font-size: 14px; }
.res-rank.on { display: flex; animation: up .4s var(--spring); }
.res-rank span:first-child { color: var(--tx); background: rgba(255,255,255,.06); padding: 8px 14px; border-radius: 999px; }
.res-rank span + span { color: var(--mute); }
.res-xp { width: 100%; max-width: 320px; margin-top: 16px; font-size: 13px; color: var(--mute); font-weight: 700; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.res-xp .xpbar { width: 100%; margin-top: 0; }
.lvlup { color: var(--lime); animation: throb 1s infinite; }
.res-streak { margin-top: 10px; font-weight: 700; color: #FF8A1F; font-size: 14px; }
.res-nudge { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px 10px 14px; border-radius: 16px; background: rgba(200,255,0,.08); border: 1px solid rgba(200,255,0,.25); font-size: 13px; text-align: left; }
.res-nudge a { color: var(--lime); font-weight: 800; white-space: nowrap; }
.res-nudge button { color: var(--mute); font-size: 20px; padding: 0 4px; }
.res-cta { width: 100%; max-width: 380px; margin-top: auto; padding-top: 22px; }
.res-cta .btn-xl { background: var(--c); box-shadow: 0 6px 0 color-mix(in oklab, var(--c) 50%, #000), 0 14px 40px -10px var(--c); }
.res-cta .btn-xl:active { box-shadow: 0 1px 0 color-mix(in oklab, var(--c) 50%, #000); }
.res-links { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.res-links button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: #d8d3de; }
.res-links button:hover { background: rgba(255,255,255,.06); }
.res-next { display: block; margin-top: 8px; padding: 12px; font-size: 14px; color: var(--mute); }
.res-next b { color: var(--c); }
.vs-res { margin-top: 14px; padding: 12px 18px; border-radius: 18px; font-weight: 800; font-size: 17px; }
.vs-res small { display: block; font-weight: 600; font-size: 13px; opacity: .75; margin-top: 2px; }
.vs-res.won { background: rgba(61,255,168,.12); color: var(--good); }
.vs-res.lost { background: rgba(255,77,77,.1); color: #ff8f8f; }
.mix-pop { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(9,8,10,.82); animation: fadein .2s; }
.mix-pop b { font: 900 italic 110px/1 var(--num); color: var(--c); animation: scorein .5s var(--spring); }
.mix-pop span { color: var(--mute); font-weight: 700; margin-top: 6px; }
.mix-break { display: flex; gap: 10px; justify-content: center; }
.mix-break span { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 14px; background: rgba(255,255,255,.06); }
.mix-break b { font: 900 italic 18px var(--num); color: var(--c); letter-spacing: 0; }
.duel-res { padding: 0; justify-content: space-between; }
.dr-half { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 28px; margin: 8px 0; background: #19141c; }
.dr-half.p2 { transform: rotate(180deg); }
.dr-half b { font: 400 44px/1 var(--display); text-transform: uppercase; }
.dr-half span { font: 900 italic 40px var(--num); color: var(--mute); }
.dr-half.win { background: color-mix(in oklab, var(--c) 28%, #111); } .dr-half.win b { color: var(--c); }
.dr-mid { width: 100%; padding: 6px 22px; display: flex; flex-direction: column; align-items: center; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 10; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.3s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }

/* ---------- Ranglista ---------- */
.lb-games { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.lb-games::-webkit-scrollbar { display: none; }
.lb-g { --c: var(--lime); flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.lb-g.on { border-color: var(--c); background: color-mix(in oklab, var(--c) 14%, var(--s1)); }
.seg { display: flex; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin-top: 10px; }
.seg button { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 11px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--mute); }
.seg button.on { background: var(--tx); color: #0a090b; }
.seg-sm button { font-size: 13px; padding: 9px; }
.lb-note { font-size: 13px; margin: 12px 2px; }
.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-row { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.lb-row.top1 { border-color: rgba(255,200,61,.45); background: rgba(255,200,61,.07); }
.lb-row.me { border-color: var(--lime); background: rgba(200,255,0,.08); }
.lb-rank { width: 30px; text-align: center; font: 900 italic 18px var(--num); color: var(--mute); }
.lb-row.top .lb-rank { font-size: 22px; font-style: normal; }
.lb-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { display: block; color: var(--mute); font-weight: 600; font-size: 12px; }
.lb-score { font: 900 italic 22px var(--num); color: var(--lime); }
.lb-gap { text-align: center; color: var(--mute); letter-spacing: 4px; }
.lb-empty { text-align: center; padding: 40px 20px; color: var(--mute); background: var(--s1); border-radius: var(--r); border: 1px dashed var(--line2); line-height: 1.7; }
.lb-empty .btn { margin-top: 16px; }
.lb-total { text-align: center; font-size: 13px; margin-top: 8px; }

/* ---------- Profil ---------- */
.prof-head { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.prof-id { flex: 1; min-width: 0; }
.nick-in { width: 100%; min-width: 0; text-overflow: ellipsis; background: transparent; border: 0; border-bottom: 2px dashed var(--line2); padding: 4px 0; font: 400 32px/1.1 var(--display); text-transform: uppercase; letter-spacing: .4px; color: var(--tx); outline: none; }
.nick-in:focus { border-bottom-color: var(--lime); }
.xp-txt { font-size: 13px; margin-top: 6px; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.statgrid div { min-width: 0; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 12px 6px; text-align: center; }
.statgrid b { display: block; font: 900 italic 22px var(--num); }
.statgrid span { font-size: 11px; color: var(--mute); font-weight: 600; line-height: 1.2; display: block; margin-top: 4px; }
.perks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 14px; color: #d8d3de; }
.code-row { display: flex; gap: 8px; }
.mail-in, .code-in { flex: 1; min-width: 0; height: 52px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line2); padding: 0 16px; outline: none; font-size: 16px; }
.mail-in:focus, .code-in:focus { border-color: var(--lime); }
.code-in { font: 900 italic 26px var(--num); letter-spacing: 6px; text-align: center; }
.card .tiny { margin-top: 12px; line-height: 1.5; } .card .tiny a { text-decoration: underline; }
.pick-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 380px) { .pick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .statgrid b { font-size: 19px; } }
.pick { aspect-ratio: 1; border-radius: 12px; font-size: 24px; background: var(--s2); transition: transform .2s var(--spring); }
.pick.on { background: var(--lime); transform: scale(1.08); }
.swatches { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.sw { width: 36px; height: 36px; border-radius: 12px; }
.sw.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px currentColor; color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); font-weight: 600; }
.field select { width: 100%; min-width: 0; height: 48px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line2); padding: 0 12px; color: var(--tx); font-size: 15px; }
.pbs { display: flex; flex-direction: column; gap: 4px; }
.pb-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 14px; }
.pb-row:hover { background: var(--s2); }
.pb-row span { flex: 1; font-weight: 700; } .pb-row small { display: block; color: var(--mute); font-weight: 600; font-size: 12px; }
.pb-row b { font: 900 italic 20px var(--num); color: var(--c); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; width: 100%; }
.set-row:first-of-type { border-top: 0; }
.set-row span { display: inline-flex; align-items: center; gap: 10px; }
.as-btn { text-align: left; }
.tgl { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--s3); position: relative; cursor: pointer; transition: background .2s; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.tgl:checked { background: var(--lime); } .tgl:checked::after { transform: translateX(20px); background: #0a090b; }
.danger p { font-size: 14px; }

/* ---------- Jogi ---------- */
.legal { max-width: 720px; line-height: 1.65; }
.legal h1 { font: 400 40px/1.05 var(--display); text-transform: uppercase; margin: 16px 0 6px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: #d8d3de; }
.legal a { color: var(--lime); }
.legal table { width: 100%; table-layout: fixed; overflow-wrap: anywhere; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.legal td, .legal th { border: 1px solid var(--line2); padding: 8px 10px; text-align: left; vertical-align: top; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-weight: 600; }

/* ---------- Toast ---------- */
#toast { position: fixed; z-index: 300; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: min(92vw, 420px);
  background: var(--tx); color: #0a090b; font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: .3s var(--spring); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
body.playing #toast { bottom: calc(24px + var(--safe-b)); }
