/* Look wie vl1x.de: Titan One, dicke dunkle Ränder, harte Schatten, Pink/Gelb/Türkis/Lila */
@font-face {
    font-family: "Titan One";
    src: url("../fonts/TitanOne-Regular.ttf") format("truetype");
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #1a0f2e;
    --bg-2: #22143c;
    --card: #2b1a4a;
    --card-2: #35215a;
    --ink: #0f0820;
    --text: #f4ecff;
    --muted: #c7b6e6;
    --pink: #ff4fa3;
    --yellow: #ffd23f;
    --teal: #2ee6c8;
    --orange: #ff8a3d;
    --green: #35d05a;
    --red: #ff3b3b;
    --twitch: #9146ff;
    --purple: #6b6bff;
    --radius: 22px;
    --display: "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
        radial-gradient(1px 1px at 72% 9%, #fff6 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 38% 62%, #ffd23f88 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 44%, #fff5 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 83%, #fff4 50%, transparent 51%);
    background-size: 420px 420px;
    color: var(--text);
    font: 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
code { font: 0.9em ui-monospace, Consolas, monospace; background: #0006; padding: 1px 6px; border-radius: 6px; color: var(--yellow); }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.hl { color: var(--yellow); }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.container {
    flex: 1;
    width: min(1180px, 100% - 32px);
    margin: 0 auto;
    padding: 32px 0 80px;
}

/* ---------- Sticker-Typo ---------- */
.title,
.page-head h1 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.05;
    margin: 0;
    color: #fff;
    text-shadow: 0 4px 0 var(--ink), 3px 4px 0 var(--ink), -3px 4px 0 var(--ink);
}

.kicker,
.page-head .eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px 4px;
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 3px solid var(--ink);
    box-shadow: 0 4px 0 var(--ink);
}
.kicker { background: var(--pink); color: #fff; border-radius: 999px; transform: rotate(-3deg); }
.page-head .eyebrow { background: var(--yellow); color: var(--ink); border-radius: 10px; transform: rotate(-2deg); }

.eyebrow {
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal);
}

/* ---------- Topbar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 68px;
    padding: 10px max(16px, calc((100% - 1180px) / 2));
    background: var(--bg);
    border-bottom: 3px solid var(--ink);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-size: 24px;
    white-space: nowrap;
    flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 3px solid var(--ink); }

.top-search { display: flex; flex: 1 1 260px; min-width: 150px; max-width: 300px; align-items: stretch; }
.top-search input { min-width: 0; }
.top-search input {
    margin: 0;
    padding: 8px 12px;
    border-radius: 12px 0 0 12px;
    border-right: 0;
    box-shadow: none;
}
.top-search .icon-button { border-radius: 0 12px 12px 0; box-shadow: none; }
.top-search .icon-button:hover { transform: none; }

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    padding: 0;
    background: var(--card);
    color: var(--text);
}
.icon-button:hover { background: var(--card-2); }

.main-nav { display: flex; flex-shrink: 0; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a:not(.button) {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}
.main-nav > a:not(.button):hover { color: #fff; background: #ffffff12; }
.main-nav > a.active { color: var(--ink); background: var(--yellow); }
.main-nav .button { margin-left: 6px; padding: 8px 14px 6px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }

.nav-toggle { display: none; height: 44px; }
.inline-form { display: inline; margin: 0; }

.user-chip { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; color: var(--text); font-weight: 700; white-space: nowrap; }
.user-chip img { width: 32px; height: 32px; object-fit: cover; border: 2px solid var(--ink); border-radius: 50%; }

.role-pill {
    display: inline-block;
    padding: 3px 9px 1px;
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: var(--card-2);
    color: var(--muted);
    border: 2px solid var(--ink);
    border-radius: 999px;
}
.role-owner { background: var(--pink); color: #fff; }
.role-mod { background: var(--green); color: var(--ink); }
.role-vip { background: var(--teal); color: var(--ink); }

/* ---------- Buttons ---------- */
.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px 9px;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--twitch);
    border: 3px solid var(--ink);
    border-radius: 14px;
    box-shadow: 0 5px 0 var(--ink);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.button:hover,
button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.button:active,
button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 0 5px 0 var(--ink); }
.button-small { padding: 7px 14px 5px; font-size: 14px; box-shadow: 0 4px 0 var(--ink); }
.button-twitch { background: var(--twitch); }
.button-twitch:hover { background: #a26bff; }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button-ghost { background: var(--card); color: var(--text); }
.button-ghost:hover { background: var(--card-2); }
.button-success { background: var(--green); color: var(--ink); }
.button-danger { background: var(--red); }
.button-row, .btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btns { margin-top: 28px; }
.button-row form { margin: 0; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    padding: 24px 0 36px;
    overflow-x: clip; /* Leuchten nicht über den Seitenrand ragen lassen */
}
.hero::before {
    content: "";
    position: absolute;
    right: -10%;
    top: -30%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(closest-side, #ff4fa333, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; }
.hero .title { font-size: clamp(40px, 6.4vw, 76px); }
.lead { max-width: 44ch; margin: 22px 0 0; font-size: 19px; }

.lobby { position: relative; display: flex; flex-direction: column; align-items: center; }
.lobby-bean { position: relative; z-index: 2; width: min(300px, 80%); height: auto; margin-bottom: -42px; }
.podium {
    position: relative;
    width: min(260px, 70%);
    height: 84px;
    background: linear-gradient(90deg, #d95f14, #ff8a3d 40%, #ff9e55 55%, #d95f14);
    border: 3px solid var(--ink);
    border-top: 0;
    border-radius: 0 0 50% 50% / 0 0 36px 36px;
}
.podium span {
    position: absolute;
    left: -3px;
    right: -3px;
    top: -30px;
    height: 60px;
    background: radial-gradient(ellipse at 50% 40%, #ffb27a, #ff8a3d 65%);
    border: 3px solid var(--ink);
    border-radius: 50%;
}

.page-head { margin: 12px 0 30px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head p { max-width: 60ch; margin: 16px 0 0; color: var(--muted); font-size: 17px; }

/* ---------- Flash ---------- */
.flash {
    margin-bottom: 20px;
    padding: 12px 16px;
    font-weight: 700;
    background: var(--card);
    border: 3px solid var(--ink);
    border-left: 10px solid var(--twitch);
    border-radius: 14px;
    box-shadow: 0 5px 0 var(--ink);
}
.flash-success { border-left-color: var(--green); }
.flash-error { border-left-color: var(--red); }
.flash-info { border-left-color: var(--teal); }

/* ---------- Tabs / toolbar / pagination ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 26px; }
.tabs a {
    padding: 8px 16px 6px;
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: 0.4px;
    color: var(--muted);
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: 12px;
    box-shadow: 0 4px 0 var(--ink);
    transition: transform 0.12s ease, color 0.12s ease;
}
.tabs a:hover { color: #fff; transform: translateY(-2px); }
.tabs a.active { color: var(--ink); background: var(--yellow); transform: rotate(-2deg); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 24px; }
.sort-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.sort-form label { margin: 0; color: var(--muted); font-weight: 700; }
.sort-form select { width: auto; margin: 0; padding: 8px 12px; }
.result-count { color: var(--muted); font-weight: 700; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a,
.pagination .gap {
    display: grid;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    place-items: center;
    font-family: var(--display);
    color: var(--muted);
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: 12px;
    box-shadow: 0 4px 0 var(--ink);
}
.pagination .gap { background: none; border: 0; box-shadow: none; }
.pagination a:hover { color: #fff; }
.pagination a.active { color: var(--ink); background: var(--yellow); }

/* ---------- Game grid / cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.game-card {
    --accent: var(--twitch);
    overflow: hidden;
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 8px 0 var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.game-card:nth-child(4n + 1) { --accent: var(--pink); }
.game-card:nth-child(4n + 2) { --accent: var(--teal); }
.game-card:nth-child(4n + 3) { --accent: var(--yellow); }
.game-card:nth-child(4n + 4) { --accent: var(--orange); }
.game-card.is-played { --accent: var(--green); }
.game-card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 12px 0 var(--ink); }
.game-card-link { display: flex; flex-direction: column; height: 100%; }
.game-card.is-played .game-card-image img { filter: saturate(0.6) brightness(0.8); }

.game-card-image { position: relative; background: var(--ink); border-bottom: 3px solid var(--ink); }
.game-card-image img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; }
.game-card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; border-top: 6px solid var(--accent); }
.game-card h2 { margin: 0 0 6px; font-family: var(--display); font-size: 21px; font-weight: 400; line-height: 1.15; text-shadow: 0 2px 0 var(--ink); }
.game-card p { flex: 1; min-height: 64px; margin: 0 0 14px; color: var(--muted); font-size: 15px; }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-badges.static { position: static; margin-bottom: 14px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 2px;
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--card-2);
    border: 2px solid var(--ink);
    border-radius: 9px;
    box-shadow: 0 3px 0 var(--ink);
    transform: rotate(-2deg);
}
.status-open { background: var(--twitch); color: #fff; }
.status-planned { background: var(--yellow); }
.status-playing { background: var(--teal); }
.status-played { background: var(--green); }
.status-rejected { background: var(--red); color: #fff; }
.status-upcoming { background: var(--orange); }
.status-hot { background: var(--pink); color: #fff; transform: rotate(2deg); }

.score-badge,
.rating-badge {
    position: absolute;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 2px;
    font-family: var(--display);
    font-size: 16px;
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: 10px;
    box-shadow: 0 3px 0 var(--ink);
}
.score-badge { right: 10px; }
.score-badge.pos { color: var(--green); }
.score-badge.neg { color: var(--red); }
.rating-badge { left: 10px; color: var(--ink); background: var(--yellow); }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span {
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: #0f082088;
    border: 2px solid #ffffff22;
    border-radius: 999px;
}
.tag-list .tag-choice { background: var(--pink); border-color: var(--ink); color: #fff; }

.empty-state {
    padding: 56px 20px;
    text-align: center;
    background: var(--card);
    border: 3px dashed #ffffff30;
    border-radius: var(--radius);
}
.empty-state h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 28px; text-shadow: 0 3px 0 var(--ink); }
.empty-state p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Forms ---------- */
input, textarea, select {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 11px 13px;
    color: var(--text);
    background: var(--ink);
    border: 3px solid var(--ink);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #ffffff1a;
}
input:focus, textarea:focus, select:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
input[type="checkbox"] { display: inline-block; width: 20px; height: 20px; margin: 0; box-shadow: none; accent-color: var(--pink); }
label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 15px; font-weight: 700; }
label input, label select, label textarea { color: var(--text); font-weight: 400; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text); cursor: pointer; }
.check.small { font-size: 13px; white-space: nowrap; }

.search-form { display: flex; gap: 10px; margin: 0; }
.search-form input { flex: 1; margin: 0; }
.search-form.big input { padding: 14px 16px; font-size: 17px; }

/* ---------- Panels ---------- */
.panel {
    position: relative;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 8px 0 var(--ink);
}
.panel h2 { margin: 0 0 14px; font-family: var(--display); font-size: 24px; font-weight: 400; text-shadow: 0 3px 0 var(--ink); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
details.panel summary { cursor: pointer; }
details.panel summary strong { font-family: var(--display); font-weight: 400; font-size: 20px; }
details.panel[open] summary { margin-bottom: 18px; }

.prose h2 { margin-top: 24px; font-size: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

/* ---------- Submit page ---------- */
.steam-results { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.steam-results li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    background: var(--bg-2);
    border: 3px solid var(--ink);
    border-radius: 14px;
}
.steam-results img, .img-ph { width: 120px; height: 45px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; background: var(--ink); flex-shrink: 0; }
.steam-result-info { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.steam-result-info strong { font-family: var(--display); font-weight: 400; font-size: 17px; }
.steam-result-info .muted { font-size: 13px; }
.steam-result-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.steam-result-form input[type="text"] { width: 200px; margin: 0; padding: 8px 10px; }

/* ---------- Detail page ---------- */
.detail-nav { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.detail-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
.detail-main { min-width: 0; }
.detail-side {
    overflow: hidden;
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 8px 0 var(--ink);
}
.detail-cover { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-bottom: 3px solid var(--ink); }

.vote-box { margin: 16px; padding: 16px; text-align: center; background: var(--bg-2); border: 3px solid var(--ink); border-radius: 16px; }
.vote-title { font-family: var(--display); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); }
.vote-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 10px; }
.vote-row form { margin: 0; }
.vote-btn { width: 68px; height: 56px; padding: 0; color: var(--muted); background: var(--card); }
.vote-btn .icon { width: 26px; height: 26px; }
.vote-btn.up:hover:not(:disabled), .vote-btn.up.on { color: var(--ink); background: var(--green); }
.vote-btn.down:hover:not(:disabled), .vote-btn.down.on { color: #fff; background: var(--red); }
.vote-score { display: flex; flex-direction: column; }
.vote-score strong { font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; text-shadow: 0 3px 0 var(--ink); }
.vote-score span { color: var(--muted); font-size: 14px; }
.vote-score.pos strong { color: var(--green); }
.vote-score.neg strong { color: var(--red); }
.vote-counts { display: flex; justify-content: space-between; font-weight: 800; }
.vote-counts span { display: inline-flex; align-items: center; gap: 5px; }
.vote-counts .pos { color: var(--green); }
.vote-counts .neg { color: var(--red); }
.vote-login { display: block; margin-top: 12px; color: var(--yellow); font-weight: 700; }

.detail-info { margin: 0 16px; padding: 4px 0 22px; }
.detail-info h1 { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.1; text-shadow: 0 3px 0 var(--ink); }
.detail-info .price { margin: 4px 0 12px; font-family: var(--display); font-size: 19px; color: var(--yellow); }
.detail-info p { color: var(--text); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: 15px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; }

.gallery {
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 0 8px 0 var(--ink);
}
.gallery-stage { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-bottom: 3px solid var(--ink); }
.gallery-item { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.gallery-item.active { opacity: 1; pointer-events: auto; }
.gallery-nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    padding: 0 0 4px;
    font-size: 30px;
    line-height: 1;
    color: var(--ink);
    background: var(--yellow);
    border-radius: 50%;
    transform: translateY(-50%);
}
.gallery-nav:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 5px 0 var(--ink); }
.gallery-nav:active { transform: translateY(-50%) scale(0.96); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-thumbs { display: flex; gap: 10px; padding: 12px; overflow-x: auto; scrollbar-width: thin; }
.thumb {
    position: relative;
    flex: 0 0 120px;
    padding: 0;
    overflow: hidden;
    background: var(--ink);
    border: 3px solid var(--ink);
    border-radius: 10px;
    box-shadow: none;
    opacity: 0.6;
}
.thumb:hover { opacity: 1; transform: none; box-shadow: none; }
.thumb.active { opacity: 1; outline: 3px solid var(--yellow); outline-offset: -3px; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-thumb span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: var(--yellow); text-shadow: 0 2px 0 var(--ink); }

.rating-panel { border-top: 10px solid var(--yellow); }
.rating-panel .big-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-family: var(--display);
    font-size: 46px;
    line-height: 1;
    color: var(--yellow);
    text-shadow: 0 4px 0 var(--ink);
}
.rating-panel .big-rating .icon { width: 38px; height: 38px; fill: var(--yellow); stroke: var(--ink); }
.rating-panel blockquote { margin: 16px 0 0; padding: 12px 16px; background: var(--bg-2); border: 3px solid var(--ink); border-left: 8px solid var(--pink); border-radius: 12px; }
.rating-panel p { margin: 8px 0 0; }
.manage-panel { border-top: 10px solid var(--teal); }
.admin-actions { margin: -4px 0 24px; }

.submitter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.submitter-list li { display: flex; align-items: flex-start; gap: 10px; }
.submitter-list img { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; }
.submitter-list .note { color: var(--muted); }

/* ---------- Admin ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat {
    padding: 16px 18px;
    background: var(--card);
    border: 3px solid var(--ink);
    border-top: 8px solid var(--pink);
    border-radius: 18px;
    box-shadow: 0 6px 0 var(--ink);
}
.stat:nth-child(2) { border-top-color: var(--yellow); }
.stat:nth-child(3) { border-top-color: var(--green); }
.stat:nth-child(4) { border-top-color: var(--teal); }
.stat strong { display: block; font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1.1; text-shadow: 0 3px 0 var(--ink); }
.stat span { color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.user-table th { padding: 8px 10px; font-family: var(--display); font-size: 13px; font-weight: 400; letter-spacing: 0.6px; text-align: left; text-transform: uppercase; color: var(--teal); border-bottom: 3px solid var(--ink); }
.user-table td { padding: 10px; vertical-align: middle; border-bottom: 2px solid #0f082088; }
.user-table select { width: auto; margin: 0; padding: 6px 10px; }
.user-table form { margin: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; }

/* ---------- Footer ---------- */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 24px max(16px, calc((100% - 1180px) / 2)) 40px;
    color: var(--muted);
    font-size: 14px;
    border-top: 3px solid var(--ink);
    background: var(--bg-2);
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .top-search { max-width: none; }
    .nav-toggle { display: inline-grid; margin-left: auto; }
    .main-nav {
        position: absolute;
        top: calc(100% + 3px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: var(--card);
        border: 3px solid var(--ink);
        border-radius: 18px;
        box-shadow: 0 8px 0 var(--ink);
    }
    .main-nav.open { display: flex; }
    .main-nav .button, .main-nav .inline-form button { width: 100%; margin: 6px 0 0; }
    .user-chip { margin: 6px 0 0; padding: 6px 12px; }
    .top-search { flex: 1 1 auto; }
}

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .lobby { order: -1; }
    .lobby-bean { width: 200px; }
    .podium { width: 170px; height: 60px; }
    .podium span { top: -24px; height: 48px; }
    .detail-layout { grid-template-columns: 1fr; }
    .steam-results li { flex-wrap: wrap; }
    .steam-result-form { flex-wrap: wrap; width: 100%; }
    .steam-result-form input[type="text"] { flex: 1; width: auto; }
}

@media (max-width: 560px) {
    .container { padding-top: 20px; }
    .topbar { gap: 10px; }
    .brand > span { display: none; }
    .btns .button { width: 100%; }
    .lead { font-size: 17px; }
    .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 10px; }
    .tabs a { white-space: nowrap; }
    .detail-nav .button { padding: 8px 12px 6px; font-size: 14px; }
    .search-form.big { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
