/* TheRing Hub — Steam-cosplay theme (internal, non-commercial) */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep: #1b2838;
    --bg-mid: #16202d;
    --bg-card: #2a475e;
    --bg-card-hover: #366590;
    --surface: #213140;
    --line: #1a2731;
    --text: #c7d5e0;
    --text-dim: #8f98a0;
    --text-bright: #ffffff;
    --accent: #66c0f4;
    --accent-strong: #1a9fff;
    --positive: #66c0f4;
    --negative: #a04545;
    --warn: #ce6b1f;
    --success: #5c7e10;
    --header-grad: linear-gradient(180deg, #171a21 0%, #1b2838 100%);
    --hero-grad: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(27,40,56,1) 100%);
    --capsule-grad: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.4);
}

html, body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: "Motiva Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text-bright); }

button { font-family: inherit; cursor: pointer; }

/* ===== Top nav ===== */
.steam-nav {
    background: var(--header-grad);
    border-bottom: 1px solid var(--line);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: sticky; top: 0; z-index: 100;
}
.steam-nav .nav-history {
    display: flex;
    gap: 4px;
}
.steam-nav .nav-arrow {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-mid);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    transition: background 0.12s ease, color 0.12s ease;
}
.steam-nav .nav-arrow:hover {
    background: var(--bg-card-hover);
    color: var(--text-bright);
}
.steam-nav .nav-arrow.disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.steam-nav .brand {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-bright);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    text-decoration: none;
}
.steam-nav .brand:hover { color: var(--text-bright); }
.steam-nav .brand .logo-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}
.steam-nav .nav-links { display: flex; gap: 18px; }
.steam-nav .nav-links a {
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 4px;
}
.steam-nav .nav-links a:hover { color: var(--text-bright); }
.steam-nav .nav-links a.active { color: var(--text-bright); border-bottom: 2px solid var(--accent); }
.steam-nav .nav-spacer { flex: 1; }
.steam-nav .nav-user { display: flex; align-items: center; gap: 12px; }
.steam-nav .login-btn {
    background: linear-gradient(180deg, #2a9fd6 0%, #1d6e9a 100%);
    color: var(--text-bright);
    border: none;
    border-radius: 2px;
    padding: 6px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.steam-nav .login-btn:hover { filter: brightness(1.15); }

.user-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px;
    background: var(--surface);
    border-radius: 24px;
    cursor: pointer;
    position: relative;
}
.user-chip .av {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #001019; font-weight: 700; font-size: 13px;
}
.user-chip .name { color: var(--text-bright); font-size: 13px; }
.user-chip .caret { color: var(--text-dim); font-size: 10px; }
.user-chip .menu {
    position: absolute; top: 100%; right: 0;
    margin-top: 6px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 4px;
    min-width: 160px;
    display: none;
    overflow: hidden;
}
.user-chip.open .menu { display: block; }
.user-chip .menu a, .user-chip .menu button {
    display: block; width: 100%;
    text-align: left;
    padding: 10px 14px;
    color: var(--text);
    font-size: 13px;
    background: transparent; border: none;
}
.user-chip .menu a:hover, .user-chip .menu button:hover {
    background: var(--bg-card-hover);
    color: var(--text-bright);
}

/* ===== Page shells ===== */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 80px;
}

.page-title {
    color: var(--text-bright);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.muted { color: var(--text-dim); }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #1f3a52 0%, #2a475e 100%);
    border-radius: 4px;
    padding: 16px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: var(--shadow-soft);
}
.hero h1 {
    color: var(--text-bright);
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 2px;
}
.hero p { color: var(--text); max-width: 720px; font-size: 13px; }
.hero .hero-cta {
    margin-top: 14px;
    display: inline-block;
    background: linear-gradient(180deg, #75b022 0%, #588a1b 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}
.hero .hero-cta:hover { filter: brightness(1.1); color: white; }

/* ===== Game grid (Steam library style) ===== */
.section-row {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 14px;
}
.section-row h2 {
    color: var(--text-bright);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-row .section-link { font-size: 12px; }

.nav-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 32px;
    margin-left: 8px;
}
.search-mode {
    display: flex;
    background: var(--bg-mid);
    border: 1px solid var(--line);
    border-right: none;
    border-radius: 2px 0 0 2px;
    overflow: hidden;
}
.search-mode .seg {
    background: transparent;
    color: var(--text-dim);
    border: none;
    padding: 0 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}
.search-mode .seg:hover { color: var(--text-bright); }
.search-mode .seg.on {
    background: linear-gradient(180deg, #2a9fd6 0%, #1d6e9a 100%);
    color: white;
}
.search-input {
    width: 200px;
    background: var(--bg-deep);
    color: var(--text-bright);
    border: 1px solid var(--line);
    border-radius: 0 2px 2px 0;
    padding: 0 10px;
    font-size: 13px;
    font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--accent); }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    color: var(--text);
}
.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    color: var(--text-bright);
}
.game-card .capsule {
    height: 130px;
    background: var(--capsule-grad);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-bright);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.game-card .capsule::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(102,192,244,0.15), transparent 60%);
    pointer-events: none;
}
.game-card .capsule.has-img { padding: 0; background: var(--bg-mid); }
.game-card .capsule.has-img::after { display: none; }
.game-card .capsule-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Circular Legacy badge — top-right corner of capsule (subtle) */
.legacy-badge {
    position: absolute;
    top: 8px; right: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: var(--text-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    z-index: 2;
    cursor: help;
    transition: color 0.15s ease, background 0.15s ease;
}
.legacy-badge:hover { color: var(--text-bright); background: rgba(0,0,0,0.7); }
.legacy-badge.legacy-badge-big {
    width: 30px; height: 30px;
    font-size: 13px;
    top: 12px; right: 12px;
}

/* Played badge: small triangle that expands to "PLAYED" on hover (Steam library style) */
.played-badge {
    position: absolute;
    top: 8px; left: 8px;
    height: 22px;
    padding: 0 6px;
    background: rgba(28, 64, 105, 0.88);
    color: var(--text-bright);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 2;
    backdrop-filter: blur(2px);
    transition: padding 0.18s ease, background 0.18s ease;
}
.played-badge .played-tri {
    display: inline-block;
    width: 0; height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #66c0f4;
    flex-shrink: 0;
}
.played-badge .played-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.22s ease, opacity 0.18s ease;
}
.game-card:hover .played-badge,
.played-badge:hover {
    background: rgba(28, 64, 105, 0.96);
    padding-right: 10px;
}
.game-card:hover .played-badge .played-text,
.played-badge:hover .played-text {
    max-width: 80px;
    opacity: 1;
}
.game-card .body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.game-card .title { font-size: 15px; color: var(--text-bright); font-weight: 600; }
.version-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: rgba(102,192,244,0.15);
    color: var(--accent);
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.version-tag-big {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 9px;
    background: rgba(102,192,244,0.15);
    color: var(--accent);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.game-card .author { font-size: 12px; color: var(--text-dim); }
.game-card .released { font-size: 11px; color: var(--text-dim); }
.game-card .desc {
    font-size: 12px; color: var(--text-dim);
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.game-card .meta-row {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    margin-top: 4px;
    font-size: 11px;
}
.tag {
    background: rgba(102,192,244,0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tag.legacy { background: rgba(206,107,31,0.18); color: var(--warn); }
.tag.community { background: rgba(92,126,16,0.25); color: #a4d007; }

.rating-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
}
.rating-badge.positive { background: rgba(102,192,244,0.15); color: var(--accent); }
.rating-badge.mixed    { background: rgba(206,107,31,0.18); color: var(--warn); }
.rating-badge.negative { background: rgba(160,69,69,0.2); color: #d96565; }
.rating-badge.none     { background: rgba(143,152,160,0.15); color: var(--text-dim); }

/* ===== Login (Steam offline-mode style) ===== */
.login-shell {
    min-height: 100vh;
    display: flex; flex-direction: column;
    background: radial-gradient(ellipse at top, #2a475e 0%, #1b2838 60%);
}
.login-card {
    max-width: 880px;
    width: 100%;
    margin: 60px auto;
    background: var(--surface);
    border-radius: 6px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
}
.login-card h1 {
    color: var(--text-bright);
    font-weight: 300;
    font-size: 24px;
    margin-bottom: 4px;
}
.login-card .sub { color: var(--text-dim); margin-bottom: 24px; font-size: 13px; }
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.avatar-tile {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.12s ease;
    color: var(--text);
}
.avatar-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.avatar-tile.selected { border-color: var(--accent); background: var(--bg-card-hover); }
.avatar-tile .av-circle {
    width: 64px; height: 64px; margin: 0 auto 10px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: #001019;
}
.avatar-tile .av-name { color: var(--text-bright); font-size: 14px; font-weight: 600; }

.login-form {
    margin-top: 22px;
    background: var(--bg-mid);
    padding: 16px;
    border-radius: 4px;
    display: none;
}
.login-form.active { display: block; }
.login-form label { display: block; color: var(--text-dim); font-size: 12px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.login-form input[type="password"] {
    width: 100%; padding: 8px 12px;
    background: var(--bg-deep);
    color: var(--text-bright);
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 14px;
}
.login-form .row {
    display: flex; align-items: center; gap: 12px;
    margin-top: 12px;
}
.btn {
    background: linear-gradient(180deg, #75b022 0%, #588a1b 100%);
    color: white;
    border: none;
    border-radius: 2px;
    padding: 8px 18px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: linear-gradient(180deg, #67707b 0%, #3e4753 100%); }
.btn.danger    { background: linear-gradient(180deg, #a04545 0%, #6e2a2a 100%); }
.btn.disabled, .btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.flash-error { color: #ff8b8b; margin-top: 8px; font-size: 12px; }
.flash-info  { color: var(--accent); margin-top: 8px; font-size: 12px; }

/* ===== Game detail (Steam store page style) ===== */
.detail-hero {
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    border-radius: 4px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    box-shadow: var(--shadow-soft);
}
.detail-hero .capsule-big {
    height: 200px;
    background: var(--bg-deep);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-bright); font-size: 28px; font-weight: 300; letter-spacing: 3px;
    border: 1px solid var(--line);
    position: relative; overflow: hidden;
}
.detail-hero .capsule-big::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(102,192,244,0.15), transparent 60%);
}
.detail-hero .capsule-big.has-img { padding: 0; }
.detail-hero .capsule-big.has-img::after { display: none; }
.detail-hero .capsule-big .capsule-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.detail-hero h1 {
    color: var(--text-bright); font-size: 30px; font-weight: 300; margin-bottom: 6px;
}
.detail-hero .by { color: var(--text-dim); margin-bottom: 14px; font-size: 13px; }
.detail-hero .desc { color: var(--text); font-size: 14px; line-height: 1.6; }
.detail-hero .meta-line { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.detail-cta {
    margin-top: 18px;
    display: flex; gap: 10px; flex-wrap: wrap;
}

.detail-block {
    background: var(--surface);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}
.detail-block h2 {
    color: var(--text-bright);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.rating-summary {
    display: flex; align-items: center; gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}
.rating-counts {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 13px;
}
.rating-count-up   { color: var(--accent); }
.rating-count-down { color: #d96565; }
.rating-count-up span, .rating-count-down span { font-weight: 700; }

.overall-reviews {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 12px 22px;
    text-align: center;
    min-width: 200px;
    box-shadow: inset 0 0 0 1px var(--line);
}
.overall-reviews-label {
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.overall-reviews-band {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dim);
}
.overall-reviews-sub {
    color: var(--text-dim);
    font-size: 11px;
    margin-top: 2px;
}
.overall-reviews.positive .overall-reviews-band { color: var(--accent); }
.overall-reviews.mixed    .overall-reviews-band { color: var(--warn); }
.overall-reviews.negative .overall-reviews-band { color: #d96565; }
.overall-reviews.none     .overall-reviews-band { color: var(--text-dim); font-style: italic; font-size: 18px; }

.play-time-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    margin-bottom: 2px;
    padding: 0;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.5px;
}
.play-time-chip + .detail-cta { margin-top: 4px; }
.play-time-chip .pt-icon { color: var(--accent); flex-shrink: 0; }
.play-time-chip .pt-text { color: var(--text); }
.rating-summary .big-num {
    font-size: 32px; font-weight: 300; color: var(--text-bright);
}
.rating-summary .label-small { color: var(--text-dim); font-size: 12px; }
/* ===== Combined review form (vote required + optional text) ===== */
.review-form {
    background: var(--bg-mid);
    border-radius: 4px;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 20px;
}
.review-form-label {
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.vote-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.vote-pick {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.vote-pick.up        { color: var(--accent); border-color: rgba(102,192,244,0.35); }
.vote-pick.up:hover  { background: rgba(102,192,244,0.12); color: var(--text-bright); }
.vote-pick.up.on     { background: linear-gradient(180deg, #2a9fd6 0%, #1d6e9a 100%); color: white; border-color: transparent; }

.vote-pick.down      { color: #d96565; border-color: rgba(217,101,101,0.35); }
.vote-pick.down:hover { background: rgba(160,69,69,0.18); color: var(--text-bright); }
.vote-pick.down.on   { background: linear-gradient(180deg, #a04545 0%, #6e2a2a 100%); color: white; border-color: transparent; }
.vote-pick .thumb-icon { flex-shrink: 0; }

/* Inline thumb icon defaults */
.thumb-icon { vertical-align: -3px; }
.rating-count-up .thumb-icon   { color: var(--accent); margin-right: 4px; vertical-align: -2px; }
.rating-count-down .thumb-icon { color: #d96565; margin-right: 4px; vertical-align: -2px; }
.review-verdict.up   .verdict-icon .thumb-icon { color: var(--accent); }
.review-verdict.down .verdict-icon .thumb-icon { color: #d96565; }

.review-form textarea {
    width: 100%;
    background: var(--bg-deep);
    color: var(--text-bright);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 10px;
    font-family: inherit; font-size: 13px;
    min-height: 70px;
    resize: vertical;
    box-sizing: border-box;
}
.review-form .row { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

/* ===== Steam-style review cards ===== */
.review-list { display: flex; flex-direction: column; gap: 18px; }
.review-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
}
.review-card .review-author {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center;
}
.review-card .av {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #001019; font-weight: 700; font-size: 22px;
}
.review-author-name { color: var(--text-bright); font-size: 12px; font-weight: 600; }

.review-body {
    background: var(--bg-mid);
    border-radius: 4px;
    padding: 14px 16px;
    position: relative;
}
.review-verdict {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 6px;
}
.review-verdict .verdict-icon {
    font-size: 28px;
    line-height: 1;
}
.review-verdict.up    .verdict-label { color: var(--accent); }
.review-verdict.down  .verdict-label { color: #d96565; }
.review-verdict .verdict-label {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.review-verdict .verdict-sub {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 4px;
}
.review-meta {
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 8px;
    margin-bottom: 8px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}
.review-text {
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
}

@media (max-width: 540px) {
    .review-card { grid-template-columns: 1fr; }
    .review-card .review-author {
        flex-direction: row; justify-content: flex-start;
    }
}

.empty { color: var(--text-dim); font-style: italic; padding: 12px 0; }

/* ===== Upload form ===== */
.upload-form {
    background: var(--surface);
    border-radius: 4px;
    padding: 24px;
    max-width: 720px;
}
.upload-form .field { margin-bottom: 16px; }
.upload-form label {
    display: block; color: var(--text-dim);
    font-size: 12px; margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 1px;
}
.upload-form input[type="text"],
.upload-form select,
.upload-form textarea {
    width: 100%;
    background: var(--bg-deep);
    color: var(--text-bright);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 10px;
    font-family: inherit; font-size: 14px;
}
.upload-form textarea { min-height: 100px; resize: vertical; }
.chip-picker {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
    background: var(--bg-mid);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.chip:hover { background: var(--bg-card); color: var(--text-bright); }
.chip.on {
    background: linear-gradient(180deg, #2a9fd6 0%, #1d6e9a 100%);
    color: white;
    border-color: transparent;
}

.upload-form .file-pick {
    background: var(--bg-mid);
    border: 1px dashed var(--line);
    border-radius: 4px;
    padding: 18px;
    text-align: center;
    color: var(--text-dim);
    cursor: pointer;
}
.upload-form .file-pick.has-file { color: var(--accent); border-color: var(--accent); }
.upload-form input[type="file"] { display: none; }

.thumb-preview {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.thumb-preview img {
    max-width: 240px;
    max-height: 130px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg-mid);
    display: block;
    object-fit: cover;
}

/* ===== Leaderboard ===== */
.tabs {
    display: flex; gap: 0;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.tab {
    background: transparent; border: none;
    color: var(--text-dim);
    padding: 12px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid transparent;
}
.tab.active { color: var(--text-bright); border-bottom-color: var(--accent); }
.tab:hover { color: var(--text-bright); }

/* Leaderboard — Steam Charts/Top Sellers list style */
.lb-list {
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.lb-head {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 16px;
    padding: 12px 18px;
    background: linear-gradient(180deg, #2a3f54 0%, #1f2d3d 100%);
    border-bottom: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.lb-head .lb-h-right { text-align: right; }
.lb-row {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    transition: background 0.12s ease;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:nth-child(odd) { background: rgba(255,255,255,0.015); }
.lb-row:hover {
    background: rgba(102,192,244,0.08);
    color: var(--text);
}
.lb-row .rank-num {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-dim);
    text-align: left;
    line-height: 1;
}
.lb-row:hover .rank-num { color: var(--text-bright); }

.lb-game-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.lb-cap {
    width: 140px; height: 60px;
    flex-shrink: 0;
    background: var(--capsule-grad);
    border-radius: 2px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-bright);
    font-size: 12px; font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--line);
}
.lb-cap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-game-meta { min-width: 0; }
.lb-game-title {
    color: var(--text-bright);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-row:hover .lb-game-title { color: var(--accent); }
.lb-game-author {
    color: var(--text-dim);
    font-size: 11px;
    margin-top: 2px;
}

.lb-cell-right { text-align: right; }
.lb-cell-right .rating-badge { white-space: nowrap; }
.lb-vote-count {
    color: var(--text-dim);
    font-size: 11px;
    margin-top: 4px;
    white-space: nowrap;
}
.lb-thumb-count {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}
.lb-thumb-count.up {
    color: var(--accent);
    font-weight: 600;
}
.lb-thumb-count.down {
    color: #d96565;
    font-size: 11px;
    margin-top: 4px;
}
.lb-thumb-count .thumb-icon {
    flex-shrink: 0;
    vertical-align: -2px;
}

/* Creators leaderboard variant — 3 columns */
.lb-list.creators .lb-head,
.lb-list.creators .lb-row {
    grid-template-columns: 60px 1fr auto;
}
.lb-creator-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lb-av {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #001019; font-weight: 700; font-size: 16px;
    flex-shrink: 0;
}
.lb-creator-name {
    color: var(--text-bright);
    font-size: 14px;
    font-weight: 600;
}
.lb-row:hover .lb-creator-name { color: var(--accent); }
.lb-game-count {
    color: var(--text-bright);
    font-size: 18px;
    font-weight: 600;
}
.lb-game-count-label {
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Useful links section ===== */
.useful-links {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.links-list li {
    background: var(--surface);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
}
.links-list li a {
    color: var(--accent);
    font-weight: 600;
}
.links-list li a:hover { color: var(--text-bright); text-decoration: underline; }
.links-list li .note { color: var(--text-dim); margin-left: 6px; }
.links-list li.empty-hint {
    background: transparent;
    color: var(--text-dim);
    font-style: italic;
    padding: 6px 0;
}
.links-list li.empty-hint code {
    background: var(--bg-mid);
    padding: 2px 6px;
    border-radius: 2px;
    color: var(--accent);
    font-family: "Consolas", "Monaco", monospace;
    font-size: 12px;
}

/* ===== Footer ===== */
.steam-footer {
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    text-align: center;
    padding: 18px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive tweaks */
@media (max-width: 720px) {
    .detail-hero { grid-template-columns: 1fr; }
    .avatar-grid { grid-template-columns: repeat(2, 1fr); }
    .steam-nav { padding: 0 12px; gap: 8px; }
    .steam-nav .nav-links { gap: 10px; }
    .steam-nav .nav-links a { font-size: 11px; }
    .steam-nav .brand .title-text, .steam-nav .brand { font-size: 14px; letter-spacing: 0.5px; }
    .nav-search { display: none; }
    .page { padding: 18px 14px 60px; }
}
