/* ═════════════ Izdia: clean modern game portal ═════════════ */
:root {
  --bg: #0d0e12;
  --bg-2: #111318;
  --surface: #171920;
  --surface-2: #1e212a;
  --surface-3: #262a35;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #eef0f6;
  --text-2: #c4c8d6;
  --muted: #8b91a5;
  --accent: #7c5cff;
  --accent-hi: #9479ff;
  --accent-soft: rgba(124, 92, 255, .14);
  --pink: #ff4d8d;
  --good: #22c55e;
  --warn: #f5a524;
  --bad: #f04461;
  --star: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
  --header: 64px;
  --max: 1360px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
main { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Header ── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(13, 14, 18, .86); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.header-row { height: var(--header); display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; flex-shrink: 0; }
.logo img { width: 32px; height: 32px; transition: transform .25s; }
.logo:hover img { transform: rotate(-8deg) scale(1.05); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); outline: none; transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--accent); background: var(--surface-2); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; max-height: 420px; overflow: auto;
}
.search-results a { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 8px; }
.search-results a:hover, .search-results a.sel { background: var(--surface-2); }
.search-results img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--surface-3); }
.search-results .all { justify-content: center; color: var(--accent-hi); font-weight: 600; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.menu-btn { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent; font-weight: 650; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, opacity .15s; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hi); }
.btn-secondary { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(240, 68, 97, .5); color: #ff7088; }
.btn-danger:hover:not(:disabled) { background: rgba(240, 68, 97, .12); }
.btn-good { background: var(--good); color: #06240f; }
.btn-good:hover:not(:disabled) { filter: brightness(1.1); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-play { background: linear-gradient(135deg, var(--accent), #a35cff); color: #fff; box-shadow: 0 10px 28px -10px rgba(124, 92, 255, .9); }
.btn-play:hover:not(:disabled) { filter: brightness(1.08); }
.btn-google { background: #fff; color: #1f1f1f; }
.btn-google:hover { background: #f1f1f1; }

/* ── Avatar ── */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.user-btn:hover { background: var(--surface-2); }
.lvl { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; font-size: 14px; color: var(--text-2); }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown .head { padding: 8px 10px 10px; }

/* ── Category chips bar ── */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: var(--line-2); color: var(--text); background: var(--surface-2); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { font-size: 12px; color: var(--muted); }
.chip.active .n { color: #555; }

/* ── Sections & rows ── */
.section { margin-top: 36px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 21px; font-weight: 750; }
.section-head .sub { color: var(--muted); font-size: 14px; }
.section-head .spacer { flex: 1; }
.see-all { color: var(--accent-hi); font-weight: 600; font-size: 14px; }
.see-all:hover { text-decoration: underline; }
.row-wrap { position: relative; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; margin: -4px -2px 0; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.row-arrow { position: absolute; top: calc(50% - 30px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(23, 25, 32, .92); color: var(--text); display: grid; place-items: center; z-index: 3; opacity: 0; transition: opacity .2s; box-shadow: var(--shadow); }
.row-wrap:hover .row-arrow:not(:disabled) { opacity: 1; }
.row-arrow:disabled { display: none; }
.row-arrow.left { left: -14px; } .row-arrow.right { right: -14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px 16px; }

/* ── Images ── */
.ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: rgba(255,255,255,.85); }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Game card ── */
.card { display: block; position: relative; min-width: 0; }
.card .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent), 0 16px 30px -14px rgba(0,0,0,.9); }
.card:hover .thumb img { transform: scale(1.06); }
.card .play-hover { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05)); opacity: 0; transition: opacity .2s; }
.card .play-hover span { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.95); color: #111; display: grid; place-items: center; transform: scale(.85); transition: transform .2s; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.card:hover .play-hover { opacity: 1; }
.card:hover .play-hover span { transform: scale(1); }
.card .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; z-index: 2; }
.tag { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.tag-new { background: var(--good); color: #052e14; }
.tag-hot { background: var(--pink); color: #fff; }
.tag-feat { background: var(--star); color: #2b1d00; }
.card .info { padding: 9px 2px 0; }
.card .title { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card .meta .star { color: var(--star); font-weight: 700; }
.dot-sep::before { content: "·"; margin-right: 8px; opacity: .6; }

/* ── Hero (featured): info panel + cover art side by side ── */
.hero { display: grid; grid-template-columns: 2.2fr 1fr; gap: 16px; margin-top: 20px; }
.hero.single { grid-template-columns: 1fr; }
.hero-main { display: grid; grid-template-columns: minmax(300px, 1fr) 1.45fr; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(circle at 0% 0%, rgba(124,92,255,.22), transparent 55%), radial-gradient(circle at 30% 120%, rgba(255,77,141,.12), transparent 50%), var(--surface); transition: border-color .2s; }
.hero-main:hover { border-color: var(--line-2); }
.hero-info { position: relative; padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--star); }
.hero-info h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -.025em; }
.hero-info p { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-stats { display: flex; gap: 14px; font-size: 14px; color: var(--text-2); align-items: center; flex-wrap: wrap; }
.hero-stats .star { color: var(--star); font-weight: 700; }
.hero-actions { display: flex; gap: 10px; margin-top: 6px; }
.hero-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.hero-main .hero-art { aspect-ratio: 16 / 9; align-self: stretch; }
.hero-main .hero-art::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(23,25,32,.55), transparent 18%); }
.hero-art img { transition: transform .6s ease; }
.hero-main:hover .hero-art img, .hero-side a:hover .hero-art img { transform: scale(1.03); }
.hero-dots { display: flex; gap: 6px; margin-top: 14px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.25); transition: all .25s; }
.hero-dots button.on { width: 22px; background: #fff; }
.hero-side { display: grid; gap: 16px; grid-auto-rows: 1fr; }
.hero-side a { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.hero-side a:hover { border-color: var(--line-2); }
.hero-side .hero-art { flex: 1; aspect-ratio: auto; min-height: 110px; }
.hero-cap { padding: 10px 14px 12px; display: grid; gap: 2px; }
.hero-cap b { font-size: 15px; }
.hero-cap span { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); }
.hero-cap .star { color: var(--star); font-weight: 700; }

/* ── Category tiles ── */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: all .15s; }
.cat-tile:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.cat-tile .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.cat-tile b { display: block; font-size: 15px; }
.cat-tile span { font-size: 12.5px; color: var(--muted); }

/* ── CTA band ── */
.cta { margin-top: 48px; border-radius: 20px; padding: 34px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(circle at 85% 20%, rgba(124,92,255,.35), transparent 45%), radial-gradient(circle at 10% 100%, rgba(255,77,141,.18), transparent 45%), var(--surface); border: 1px solid var(--line); }
.cta h3 { font-size: 24px; font-weight: 800; }
.cta p { color: var(--text-2); margin-top: 6px; max-width: 560px; }
.cta .spacer { flex: 1; }

/* ── Page header ── */
.page-head { padding: 28px 0 6px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 6px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.toolbar .spacer { flex: 1; }
.select, .input, .textarea {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color .15s;
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select:focus, .input:focus, .textarea:focus { border-color: var(--accent); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.seg button.on { background: var(--surface-3); color: var(--text); }

/* ── Game page ── */
.game-backdrop { position: absolute; left: 0; right: 0; top: 0; height: 520px; overflow: hidden; z-index: -1; }
.game-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.4); opacity: .35; transform: scale(1.2); }
.game-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,14,18,.3), var(--bg) 92%); }
.game-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; padding-top: 26px; align-items: start; }
.game-media { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); display: block; }
.game-media img { transition: transform .5s; }
.game-media:hover img { transform: scale(1.03); }
.game-media .big-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .2s; }
.game-media:hover .big-play { opacity: 1; }
.game-media .big-play span { display: flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: #fff; color: #111; font-weight: 800; font-size: 17px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.game-panel { background: rgba(23, 25, 32, .82); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.breadcrumb a:hover { color: var(--text); }
.game-panel h1 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; }
.by { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 18px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); }
.stat .star { color: var(--star); }
.action-row { display: flex; gap: 10px; }
.action-row .btn-play { flex: 1; }
.fav-btn.on { color: var(--pink); border-color: rgba(255,77,141,.4); background: rgba(255,77,141,.1); }
.rate-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; flex-wrap: wrap; }
.rate-box .label { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.stars-input { display: inline-flex; gap: 2px; }
.stars-input button { border: 0; background: none; padding: 2px; font-size: 24px; line-height: 1; color: var(--surface-3); transition: transform .1s, color .1s; }
.stars-input button.on { color: var(--star); }
.stars-input button:hover { transform: scale(1.15); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags a, .tags span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.tags a:hover { color: var(--text); border-color: var(--line-2); }
.game-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin-top: 30px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.panel h2 { font-size: 18px; font-weight: 750; margin-bottom: 12px; }
.prose { color: var(--text-2); line-height: 1.7; white-space: pre-line; }
.rating-summary { display: flex; gap: 22px; align-items: center; }
.rating-big { text-align: center; min-width: 90px; }
.rating-big b { font-size: 46px; font-weight: 800; line-height: 1; display: block; }
.rating-big .stars { color: var(--star); letter-spacing: 1px; margin: 6px 0 2px; }
.dist { flex: 1; display: grid; gap: 5px; }
.dist-row { display: grid; grid-template-columns: 14px 1fr 28px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.dist-bar { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.dist-bar i { display: block; height: 100%; background: var(--star); border-radius: 4px; }
.review { padding: 16px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.review:first-child { border-top: 0; }
.review .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review .who a { font-weight: 650; }
.review .stars { color: var(--star); font-size: 13px; letter-spacing: 1px; }
.review p { color: var(--text-2); margin-top: 6px; white-space: pre-line; overflow-wrap: anywhere; }
.review-form { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-state .big { font-size: 40px; margin-bottom: 8px; }
.empty-state h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* ── Forms / auth ── */
.auth-wrap { display: grid; place-items: center; padding: 48px 16px 64px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; font-weight: 800; text-align: center; }
.auth-card .lead { text-align: center; color: var(--muted); margin: 6px 0 22px; }
.auth-card .logo-c { display: flex; justify-content: center; margin-bottom: 16px; }
.auth-card .logo-c img { width: 48px; height: 48px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.field label .opt { color: var(--muted); font-weight: 500; }
.field .input, .field .select, .field .textarea { width: 100%; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { font-size: 14px; font-weight: 600; min-height: 1px; }
.form-msg.err { color: #ff7088; }
.form-msg.ok { color: #4ade80; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-foot a, .link { color: var(--accent-hi); font-weight: 600; }
.auth-foot a:hover, .link:hover { text-decoration: underline; }
.notice { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(245, 165, 36, .1); border: 1px solid rgba(245, 165, 36, .3); color: #fcd28a; font-size: 14px; flex-wrap: wrap; }
.notice.info { background: var(--accent-soft); border-color: rgba(124, 92, 255, .35); color: #cbbcff; }
.notice.bad { background: rgba(240, 68, 97, .1); border-color: rgba(240, 68, 97, .35); color: #ff9aaa; }
.notice .spacer { flex: 1; }

/* ── Profile ── */
.profile-head { display: flex; gap: 22px; align-items: center; padding: 30px 0 10px; flex-wrap: wrap; }
.profile-head h1 { font-size: 30px; font-weight: 800; }
.profile-head .bio { color: var(--text-2); margin-top: 6px; max-width: 640px; }
.xp-bar { height: 9px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin-top: 8px; width: min(360px, 100%); }
.xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--pink)); border-radius: 5px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat-card b { display: block; font-size: 24px; font-weight: 800; }
.stat-card span { font-size: 13px; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-card { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.badge-card .ico { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); flex-shrink: 0; }
.badge-card b { font-size: 14px; display: block; }
.badge-card span { font-size: 12px; color: var(--muted); }
.badge-card.locked { opacity: .45; filter: grayscale(1); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 28px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 12px 14px; color: var(--muted); font-weight: 650; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs .on { color: var(--text); border-bottom-color: var(--accent); }
.count-pill { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--pink); color: #fff; }

/* ── Dashboard / admin ── */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 26px 0 40px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 2px; }
.side-nav .label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.side-nav a:hover { background: var(--surface); color: var(--text); }
.side-nav a.on { background: var(--surface-2); color: var(--text); }
.side-nav a .count-pill { margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi .k-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .k-value { font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.kpi .k-delta { font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.up { color: #4ade80; } .down { color: #ff7088; } .flat { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-2); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-game { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cell-game img, .cell-game .ph { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--surface-3); flex-shrink: 0; }
.cell-game b { display: block; font-weight: 650; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.pill.live { background: rgba(34,197,94,.14); color: #4ade80; }
.pill.pending { background: rgba(245,165,36,.14); color: #fbbf4a; }
.pill.rejected { background: rgba(240,68,97,.14); color: #ff7088; }
.pill.removed { background: rgba(255,255,255,.07); color: var(--muted); }
.pill.admin { background: var(--accent-soft); color: var(--accent-hi); }
.pill.banned { background: rgba(240,68,97,.14); color: #ff7088; }
.chart { position: relative; }
.chart svg { width: 100%; display: block; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow); transform: translate(-50%, -110%); z-index: 2; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.queue-card { display: grid; grid-template-columns: 240px 1fr; gap: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; }
.queue-card .thumb { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.queue-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.diff { display: grid; gap: 8px; margin: 10px 0; }
.diff-row { display: grid; grid-template-columns: 100px 1fr; gap: 10px; font-size: 13.5px; }
.diff-row .old { color: #ff8a9c; text-decoration: line-through; overflow-wrap: anywhere; }
.diff-row .new { color: #6ee7a0; overflow-wrap: anywhere; }
.preview-card { max-width: 300px; }

/* ── Toasts ── */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: toast-in .25s ease; max-width: min(92vw, 460px); }
.toast.xp { background: linear-gradient(135deg, #2a2050, #3a1f3d); border-color: rgba(124,92,255,.5); }
.toast.err { border-color: rgba(240,68,97,.5); }
.toast .big { font-size: 22px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ── Skeleton ── */
.skel { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: var(--radius); }
@keyframes skel { to { background-position: -200% 0; } }

/* ── Footer ── */
.footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 36px 0 22px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text-2); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer .about p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0 24px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Mobile nav ── */
.mobile-nav { position: fixed; inset: var(--header) 0 0 0; background: var(--bg); z-index: 49; padding: 16px 24px; overflow: auto; display: grid; align-content: start; gap: 4px; }
.mobile-nav a { padding: 12px; border-radius: 10px; font-weight: 600; font-size: 16px; }
.mobile-nav a:hover { background: var(--surface); }

/* ── Responsive ── */
@media (max-width: 1200px) { .row { grid-auto-columns: calc((100% - 4 * 16px) / 5); } }
@media (max-width: 1020px) {
  .nav { display: none; }
  .hero-main { grid-template-columns: minmax(260px, 1fr) 1.2fr; }
  .menu-btn { display: grid; }
  .row { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .hero-side .hero-art { aspect-ratio: 16 / 9; flex: none; }
  .game-top, .game-body, .two-col { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side-nav .label { display: none; }
  .side-nav a { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .queue-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .header-row { gap: 10px; }
  .logo span { display: none; }
  .search { max-width: none; }
  .row { grid-auto-columns: 62%; gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .hero-main { grid-template-columns: 1fr; }
  .hero-main .hero-art { order: -1; }
  .hero-main .hero-art::before { background: linear-gradient(0deg, rgba(23,25,32,.6), transparent 25%); }
  .hero-info { padding: 18px 18px 20px; gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .game-panel h1 { font-size: 26px; }
  .rating-summary { flex-direction: column; align-items: stretch; }
  .auth-card { padding: 24px 20px; }
  .cta { padding: 24px; }
  .user-btn .uname { display: none; }
  #register-link { display: none; }
  .hero-side { display: none; }
  .row-arrow { display: none; }
}
