/* ==========================================================================
   AtoZas Games Hub — main stylesheet
   ========================================================================== */
:root {
    --bg: #0b0c1a;
    --bg-2: #12132a;
    --surface: #17183a;
    --surface-2: #1f2150;
    --border: #2a2c5e;
    --text: #eceefe;
    --muted: #9a9cc4;
    --primary: #7c5cff;
    --primary-2: #6845ff;
    --accent: #22d3ee;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --container: 1240px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Kannada", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, .18), transparent 60%),
                radial-gradient(900px 500px at -10% 10%, rgba(34, 211, 238, .10), transparent 60%),
                var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 480px; margin-top: 40px; margin-bottom: 40px; }
.narrow-wide { max-width: 820px; }
.site-main { flex: 1; padding-bottom: 40px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: 18px; }
.grow { flex: 1; }
.inline { display: inline; }
.hide-sm { display: inline; }
.link-muted { color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; }
.link-btn:hover { color: var(--danger); }
.gradient-text { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; color: var(--text);
    background: var(--surface-2); transition: transform .12s, background .15s, border-color .15s; text-decoration: none !important;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 6px 18px rgba(124, 92, 255, .35); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #8a6dff, var(--primary)); }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { background: rgba(239, 68, 68, .15); color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.btn-danger:hover { background: rgba(239, 68, 68, .3); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; margin: 12px 0; align-items: center; }
.btn-row.wrap { flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 12, 26, .82); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.08rem; text-decoration: none !important; white-space: nowrap; }
.header-search { flex: 1; max-width: 420px; }
.header-search input { width: 100%; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav > a:not(.btn) { color: var(--muted); font-weight: 500; }
.main-nav > a:not(.btn):hover, .main-nav > a.active { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

.dropdown { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 4px; }
.dropdown-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; z-index: 60;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
    display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 7px; color: var(--text);
    background: none; border: 0; font: inherit; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); text-decoration: none; }

.avatar {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 50%; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.avatar-sm { width: 28px; height: 28px; font-size: .8rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 2.2rem; }

/* ---------- Forms ---------- */
input, select, textarea {
    font: inherit; color: var(--text); background: var(--bg-2);
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
input:disabled { opacity: .6; }
input[type="checkbox"], input[type="radio"] { width: auto; }
input[type="file"] { padding: 8px; }
textarea { resize: vertical; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .93rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-inline input { width: auto; flex: 1; min-width: 120px; }
.form-inline .w-icon { flex: 0 0 64px; min-width: 64px; text-align: center; }
.form-inline .w-num { flex: 0 0 90px; min-width: 90px; }

.role-picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-picker legend { font-weight: 600; margin-bottom: 8px; }
.role-option { cursor: pointer; }
.role-option input { position: absolute; opacity: 0; }
.role-option span {
    display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-2); height: 100%;
}
.role-option small { color: var(--muted); font-weight: 400; }
.role-option input:checked + span { border-color: var(--primary); background: rgba(124, 92, 255, .12); }
.role-option input:focus-visible + span { outline: 2px solid var(--accent); }

.segmented { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.segmented label { flex-direction: row !important; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--bg-2); }
.segmented label:has(input:checked) { border-color: var(--primary); background: rgba(124, 92, 255, .12); }

.dropzone {
    position: relative; border: 2px dashed var(--border) !important; border-radius: var(--radius); padding: 28px 16px !important;
    text-align: center; cursor: pointer; background: var(--bg-2); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--primary) !important; background: rgba(124, 92, 255, .08); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { padding: 4px 0; }
.checklist .ok { color: var(--success); }
.checklist .fail { color: var(--danger); }

/* ---------- Cards, alerts, badges ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.auth-card { padding: 30px; }
.alert { position: relative; padding: 12px 40px 12px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; border: 1px solid; }
.alert-success { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .4); color: #bbf7d0; }
.alert-error { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); color: #fecaca; }
.alert-info { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .35); color: #cffafe; }
.alert-close { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: inherit; font-size: 1.3rem; cursor: pointer; }
.flash-stack { margin-top: 16px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; vertical-align: middle; letter-spacing: .02em; }
.badge-draft { background: rgba(154, 156, 196, .18); color: var(--muted); }
.badge-pending { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.badge-published { background: rgba(34, 197, 94, .18); color: #86efac; }
.badge-rejected { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.badge-featured { background: rgba(124, 92, 255, .22); color: #c4b5fd; margin-left: 6px; }

.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: var(--surface-2); color: var(--text); font-size: .85rem; border: 1px solid var(--border); white-space: nowrap;
}
a.chip:hover { border-color: var(--primary); text-decoration: none; }
.chip-sm { font-size: .72rem; padding: 3px 9px; }
.chip-lg { padding: 9px 16px; font-size: .95rem; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero-search { display: flex; gap: 10px; margin: 24px 0; max-width: 520px; }
.hero-search input { padding: 14px 16px; font-size: 1.02rem; }
.hero-stats { display: flex; gap: 32px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
.hero-card { position: relative; display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; border: 1px solid var(--border); color: var(--text); text-decoration: none !important; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-card:hover img { transform: scale(1.04); }
.hero-card-body { position: absolute; inset: auto 0 0 0; padding: 24px; background: linear-gradient(transparent, rgba(5, 6, 15, .92)); }
.hero-card-body h2 { font-size: 1.6rem; margin: 10px 0 6px; }
.hero-card-empty { display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.hero-card-empty .hero-card-body { position: static; background: none; }

.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(34, 211, 238, .12)); border: 1px solid var(--border);
}
.cta-band p { color: var(--muted); margin: 0; max-width: 680px; }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: var(--primary); }
.cta-inline p { margin: 0; }

/* ---------- Game grid & cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.game-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; color: var(--text); transition: transform .18s, border-color .18s, box-shadow .18s; text-decoration: none !important;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 14px 30px rgba(124, 92, 255, .2); }
.game-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-thumb .chip { position: absolute; left: 10px; top: 10px; background: rgba(11, 12, 26, .75); backdrop-filter: blur(6px); }
.play-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
    background: rgba(11, 12, 26, .45); opacity: 0; transition: opacity .18s;
}
.game-card:hover .play-overlay { opacity: 1; }
.game-info { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.game-info h3 { font-size: 1rem; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-info p { margin: 0 0 8px; }
.game-meta { display: flex; justify-content: space-between; color: var(--muted); margin-top: auto; }
.rating { color: #fbbf24; letter-spacing: .05em; }

.filters { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.filters input[type="search"] { flex: 2; min-width: 200px; }
.filters select { flex: 1; min-width: 150px; width: auto; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text); }
.pagination a:hover { border-color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); border-color: var(--primary); }

.empty-state { text-align: center; padding: 50px 20px; }
.empty-icon { font-size: 3.2rem; margin-bottom: 10px; }

/* ---------- Game detail ---------- */
.game-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; margin-top: 28px; align-items: start; }
.game-cover { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-2); margin-bottom: 14px; border: 1px solid var(--border); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 1.4rem; font-weight: 800; color: #fff; background: rgba(11, 12, 26, .35); transition: background .2s; text-decoration: none !important;
}
.cover-play span { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center; background: var(--primary); box-shadow: 0 0 0 10px rgba(124, 92, 255, .25); }
.cover-play:hover { background: rgba(11, 12, 26, .15); }
.screenshots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scroll-snap-type: x mandatory; }
.screenshots a { flex: 0 0 220px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); scroll-snap-align: start; }
.screenshots img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.screenshots a:hover img { transform: scale(1.05); }
.prose { overflow-wrap: anywhere; }
.game-side { position: sticky; top: 86px; }
.game-title { font-size: 1.7rem; margin: 12px 0 4px; }
.stat-row { display: flex; gap: 10px; margin: 16px 0; }
.stat-row > div { flex: 1; background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px; text-align: center; display: flex; flex-direction: column; }
.stat-row strong { font-size: 1.15rem; }
.stat-row span { color: var(--muted); font-size: .78rem; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.share-links a { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .85rem; border: 1px solid var(--border); }
.share-links a:hover { border-color: var(--primary); text-decoration: none; }
.share-card label { display: block; margin-bottom: 10px; color: var(--muted); }
.copy-field { display: flex; gap: 6px; margin-top: 4px; }
.copy-field input { font-size: .82rem; padding: 7px 10px; }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-item { display: flex; gap: 12px; align-items: center; color: var(--text); }
.mini-item:hover { text-decoration: none; }
.mini-item img { width: 88px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.mini-item span { display: flex; flex-direction: column; }

.rating-big { font-size: 1.2rem; }
.review-form { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: var(--border); cursor: pointer; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #fbbf24; }
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review p { margin: 0; color: #d4d6f5; overflow-wrap: anywhere; }

/* ---------- Player ---------- */
.player-wrap { margin-top: 18px; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.player-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.player {
    position: relative; width: 100%; max-height: calc(100vh - 170px); aspect-ratio: var(--ratio, 1.6);
    margin: 0 auto; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player:fullscreen { max-height: none; border-radius: 0; border: 0; aspect-ratio: auto; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin-bottom: 4px; }
.profile-head .stat-row { min-width: 220px; margin: 0; }

/* ---------- Dashboard & admin ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-cards .stat { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.stat-cards .stat span { color: var(--muted); font-size: .85rem; }
.stat-cards .stat strong { font-size: 1.8rem; }
.table-card { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-2); }
.table th.right, .table td.right { text-align: right; }
.table tr:last-child td { border-bottom: 0; }
.table-game { display: flex; gap: 12px; align-items: center; }
.table-game img { width: 80px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.actions { white-space: nowrap; }
.actions .btn, .actions form { margin: 2px; }
.table select { width: auto; padding: 6px 10px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--primary); }

.review-queue { display: flex; flex-direction: column; }
.queue-item { display: flex; gap: 18px; align-items: flex-start; }
.queue-item > img { width: 220px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.reject-form { display: inline-flex; gap: 6px; flex: 1; min-width: 260px; }
.reject-form input { padding: 6px 10px; font-size: .85rem; }

.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.edit-grid > div { display: flex; flex-direction: column; }
.edit-grid .card { display: flex; flex-direction: column; gap: 14px; }
.edit-grid .card h2 { margin: 0; }
.thumb-preview { aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); }
.thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shot { display: flex !important; flex-direction: column; gap: 4px !important; font-size: .8rem !important; color: var(--muted); }
.shot img { aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.shot span { display: flex; align-items: center; gap: 6px; }
.sticky-actions { position: sticky; top: 86px; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 15, .92); display: flex; align-items: center; justify-content: center; padding: 30px;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; font-size: 1.8rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 120;
    background: var(--surface-2); border: 1px solid var(--border); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); transition: .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid > div > a:not(.logo) { display: block; color: var(--text); padding: 3px 0; opacity: .85; }
.footer-grid .logo { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .game-detail, .edit-grid { grid-template-columns: 1fr; }
    .game-side, .sticky-actions { position: static; }
    .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .header-search { display: none; }
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 10px 20px 18px; box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .main-nav > a, .main-nav > .dropdown { padding: 10px 0; }
    .main-nav .btn { margin-top: 6px; }
    .dropdown-menu { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 0; background: none; }
    .avatar-btn { pointer-events: none; }
    .hide-sm { display: inline; }

    .cta-band, .cta-inline { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }

    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
    .table td { border: 0; padding: 6px 16px; text-align: left !important; }
    .table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
    .actions { white-space: normal; }

    .queue-item { flex-direction: column; }
    .queue-item > img { width: 100%; }
}

@media (max-width: 560px) {
    .container { padding: 0 14px; }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .game-info { padding: 10px; }
    .game-info h3 { font-size: .92rem; }
    .form-row, .role-picker { grid-template-columns: 1fr; }
    .filters > * { flex: 1 1 100%; min-width: 0; }
    .reject-form { min-width: 0; flex-wrap: wrap; }
    .hero { padding-top: 32px; }
    .hero-search { flex-direction: column; }
    .hero-stats { gap: 20px; }
    .card { padding: 16px; }
    .player { max-height: none; }
    .logo span { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
