/* ==========================================================================
   Steam Capsulu — Authentic Steam Dark Theme Design System
   ========================================================================== */

:root {
    /* Steam Core Color Palette */
    --steam-black: #0e141b;
    --steam-nav: #171a21;
    --steam-bg: #1b2838;
    --steam-surface: #212c3d;
    --steam-panel: #16202d;
    --steam-panel-light: #2a475e;
    --steam-border: rgba(255, 255, 255, 0.08);
    --steam-border-blue: rgba(102, 192, 244, 0.3);
    
    /* Steam Accents & Highlights */
    --steam-cyan: #66c0f4;
    --steam-blue: #1976d2;
    --steam-text-main: #c7d5e0;
    --steam-text-muted: #8f98a0;
    --steam-green: #a4d007;
    --steam-green-bg: #4c6b22;
    --gold: #f1c40f;
    --orange: #e67e22;
    --red: #e74c3c;
    --green-pass: #2ecc71;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease-in-out;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--steam-bg);
    background-image: radial-gradient(ellipse at top, #1e354b 0%, #172432 50%, #0e1722 100%);
    background-attachment: fixed;
    color: var(--steam-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* ==========================================================================
   1. Steam Global Top Nav
   ========================================================================== */

.steam-global-nav {
    background: var(--steam-nav);
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.steam-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.steam-logo-svg {
    color: #ffffff;
    filter: drop-shadow(0 2px 6px rgba(102, 192, 244, 0.3));
}

.steam-brand-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.brand-sub {
    color: var(--steam-cyan);
}

.nav-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--steam-border);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 0.76rem;
    color: var(--steam-cyan);
    font-weight: 600;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-pass);
    box-shadow: 0 0 8px var(--green-pass);
}

/* ==========================================================================
   2. Main Hero & Unified Input Bar
   ========================================================================== */

.steam-store-header {
    background: linear-gradient(180deg, rgba(23, 29, 37, 0.95) 0%, rgba(27, 40, 56, 0.85) 100%);
    border-bottom: 1px solid var(--steam-border-blue);
    padding: 32px 24px;
    backdrop-filter: blur(10px);
    position: relative;
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.store-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title-area {
    text-align: center;
}

.store-headline {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.store-subtext {
    font-size: 0.92rem;
    color: #9cb1c2;
    margin-top: 4px;
}

/* Unified Action Bar */
.unified-input-bar {
    display: flex;
    align-items: center;
    background: rgba(33, 44, 61, 0.9);
    border: 1px solid rgba(102, 192, 244, 0.35);
    border-radius: var(--radius-sm);
    padding: 6px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.4);
    gap: 8px;
    transition: var(--transition);
}

.unified-input-bar:focus-within {
    border-color: var(--steam-cyan);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 18px rgba(102, 192, 244, 0.4);
}

.input-field-group {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 10px;
}

.search-icon {
    color: #67c1f5;
    margin-right: 10px;
    flex-shrink: 0;
}

#steamUrlInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
}

#steamUrlInput::placeholder {
    color: #6d869b;
}

.action-buttons-group {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn {
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    border: none;
    border-radius: 2px;
    padding: 9px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-steam-primary {
    background: linear-gradient(90deg, #47bfff 0%, #1a44c2 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(71, 191, 255, 0.3);
}

.btn-steam-primary:hover {
    background: linear-gradient(90deg, #5ec8ff 0%, #2054dc 100%);
    box-shadow: 0 4px 14px rgba(71, 191, 255, 0.5);
    transform: translateY(-1px);
}

.btn-steam-upload {
    background: #2a475e;
    border: 1px solid rgba(102, 192, 244, 0.4);
    color: #ffffff;
}

.btn-steam-upload:hover {
    background: #355874;
    border-color: var(--steam-cyan);
    color: var(--steam-cyan);
    transform: translateY(-1px);
}

.select-steam-genre {
    background: #1e3345;
    border: 1px solid rgba(102, 192, 244, 0.4);
    color: #c7d5e0;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.select-steam-genre:hover, .select-steam-genre:focus {
    border-color: var(--steam-cyan);
    color: #ffffff;
    background: #254057;
}

.select-steam-genre option {
    background: #171a21;
    color: #ffffff;
}

.select-genre-compact {
    padding: 3px 8px;
    font-size: 0.76rem;
    height: 26px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(103, 193, 245, 0.3);
    color: #c7d5e0;
}

.select-genre-compact:hover, .select-genre-compact:focus {
    border-color: var(--steam-cyan);
    background: #254057;
    color: #ffffff;
}

/* Row 1: Comma Separated Sample Games */
.sample-links-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    flex-wrap: wrap;
    padding: 0 4px;
}

.row-label {
    color: #8f98a0;
    font-weight: 600;
    flex-shrink: 0;
}

.sample-list-span {
    color: #8c9ea6;
    display: inline;
}

.sample-link {
    color: var(--steam-cyan);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.sample-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(102, 192, 244, 0.6);
}

.sample-separator {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 4px;
}

/* Row 2: Recent URLs / Images History */
.recent-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    font-size: 0.82rem;
    flex-wrap: wrap;
    padding: 6px 4px 0 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    width: 100%;
}

.recent-list-span {
    color: #8c9ea6;
    display: inline;
}

.recent-link {
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.recent-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(241, 196, 15, 0.6);
}

.btn-clear-recent {
    background: transparent;
    border: none;
    color: #687a86;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 2px;
}

.btn-clear-recent:hover {
    color: var(--red);
}

/* Dropzone Hover Highlight on Whole Area */
.steam-store-header.drag-over {
    background: linear-gradient(180deg, rgba(33, 44, 61, 0.95) 0%, rgba(42, 71, 94, 0.9) 100%);
    box-shadow: 0 0 30px rgba(102, 192, 244, 0.3);
}

/* ==========================================================================
   3. Main App Layout & Dashboard
   ========================================================================== */

.app-main {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 24px;
    flex: 1;
}

/* Loading Bar */
.loading-container {
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
}

.steam-loader-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.steam-loader-bar {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #47bfff, #a4d007);
    animation: steamLoader 1.2s infinite ease-in-out;
}

@keyframes steamLoader {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

.loading-label {
    font-size: 0.8rem;
    color: var(--steam-cyan);
    margin-top: 8px;
}

/* Dashboard */
.dashboard {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Top Scorecard Banner */
.score-card-banner {
    background: linear-gradient(135deg, #1b2838 0%, #171a21 100%);
    border: 1px solid var(--steam-border-blue);
    border-radius: var(--radius-md);
    padding: 24px;
    display: grid;
    grid-template-columns: 130px 1fr 320px;
    gap: 24px;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
}

.score-radial-group {
    position: relative;
    width: 110px;
    height: 110px;
}

.radial-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.radial-track {
    fill: none;
    stroke: rgba(0, 0, 0, 0.4);
    stroke-width: 9;
}

.radial-fill {
    fill: none;
    stroke: var(--green-pass);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 60;
    transition: stroke-dashoffset 0.8s ease-out, stroke 0.3s ease;
}

.radial-center-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-big-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.score-denom {
    font-size: 0.72rem;
    color: var(--steam-text-muted);
}

.tier-pill-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.tier-badge {
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--gold);
    color: #0e141b;
}

.badge-green { background: var(--green-pass); color: #0e141b; }
.badge-gold { background: var(--gold); color: #0e141b; }
.badge-blue { background: #3498db; color: #ffffff; }
.badge-orange { background: var(--orange); color: #ffffff; }
.badge-red { background: var(--red); color: #ffffff; }

.percentile-badge {
    font-size: 0.82rem;
    color: var(--steam-cyan);
    font-weight: 600;
}

.score-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.score-desc {
    font-size: 0.88rem;
    color: var(--steam-text-main);
    line-height: 1.4;
}

/* Quick Metrics Table */
.quick-metrics-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.qm-cell {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.qm-cell:hover {
    border-color: rgba(103, 193, 245, 0.35);
    background: rgba(0, 0, 0, 0.6);
}

.qm-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.qm-label {
    display: block;
    font-size: 0.68rem;
    color: #8f98a0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.qm-badge {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
    letter-spacing: 0.02em;
}

.qm-badge-green {
    background: rgba(164, 208, 7, 0.18);
    color: #a4d007;
    border: 1px solid rgba(164, 208, 7, 0.35);
}

.qm-badge-gold {
    background: rgba(241, 196, 15, 0.18);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.35);
}

.qm-badge-red {
    background: rgba(231, 76, 60, 0.18);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.35);
}

.qm-val {
    display: block;
    font-size: 0.96rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-top: 1px;
    color: #ffffff;
}

.qm-val.val-green { color: #a4d007; }
.qm-val.val-gold { color: #f1c40f; }
.qm-val.val-red { color: #e74c3c; }

.qm-sub {
    font-size: 0.7rem;
    color: #8c9ea6;
    margin-top: 2px;
    font-weight: 500;
}

/* Content Split Grid */
.content-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 20px;
    margin-bottom: 24px;
}

.steam-panel {
    background: var(--steam-panel);
    border: 1px solid var(--steam-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--steam-border);
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.panel-badge {
    font-size: 0.72rem;
    background: rgba(102, 192, 244, 0.12);
    border: 1px solid rgba(102, 192, 244, 0.25);
    color: var(--steam-cyan);
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 600;
}

.panel-header-right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-section {
    margin-bottom: 20px;
}
.sim-section:last-child {
    margin-bottom: 0;
}

.sim-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--steam-text-main);
    margin-bottom: 8px;
}

.sim-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge-accent {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 600;
}

/* Steam Store Row Card Mockup */
.steam-row-card {
    background: #171a21;
    display: flex;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.steam-card-capsule {
    width: 200px;
    height: 93px;
    background: #000000;
    flex-shrink: 0;
}

.steam-card-capsule img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.steam-card-details {
    padding: 10px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(90deg, #1b2838 0%, #171a21 100%);
}

.steam-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-card-tags {
    display: flex;
    gap: 4px;
    margin: 2px 0;
}

.s-tag {
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 2px;
    color: #8f98a0;
}

.steam-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s-review-status {
    font-size: 0.7rem;
    color: var(--steam-cyan);
    font-weight: 500;
}

.s-price-val {
    background: #000000;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    border-radius: 2px;
}

/* Micro Thumbnail Box */
.micro-test-wrapper {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--steam-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.micro-thumb-frame {
    width: 120px;
    height: 56px;
    background: #000000;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.micro-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.micro-test-info p {
    font-size: 0.78rem;
    color: #9cb1c2;
    line-height: 1.35;
}

/* Swatches Grid */
.swatches-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.swatch-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--steam-border);
    border-radius: 2px;
    overflow: hidden;
    text-align: center;
}

.swatch-preview {
    height: 30px;
    width: 100%;
}

.swatch-hex {
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffffff;
    padding: 3px 0 1px 0;
}

.swatch-pct {
    font-size: 0.62rem;
    color: var(--steam-text-muted);
    padding-bottom: 3px;
}

/* Metrics Stack */
.metrics-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--steam-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.metric-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.metric-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 2px;
}

.tag-green { background: rgba(46, 204, 113, 0.2); color: var(--green-pass); }
.tag-gold { background: rgba(241, 196, 15, 0.2); color: var(--gold); }
.tag-red { background: rgba(231, 76, 60, 0.2); color: var(--red); }

.metric-help {
    font-size: 0.74rem;
    color: var(--steam-text-muted);
    margin-bottom: 8px;
}

.metric-progress-track {
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    position: relative;
    margin-bottom: 4px;
}

.metric-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--green-pass);
    transition: width 0.6s ease-out;
}

.fill-pass { background: var(--green-pass); }
.fill-warn { background: var(--gold); }
.fill-fail { background: var(--red); }

.benchmark-pin {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 13px;
    background: #ffffff;
    box-shadow: 0 0 5px #ffffff;
}

.metric-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
}

.legend-user {
    font-weight: 700;
    color: #ffffff;
}

.legend-target {
    color: var(--steam-text-muted);
}

/* Recommendations Checklist */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.check-item-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.item-pass { border-left: 3px solid var(--green-pass); }
.item-warn { border-left: 3px solid var(--gold); }
.item-fail { border-left: 3px solid var(--red); }

.item-badge-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 800;
}

.icon-pass { background: rgba(46, 204, 113, 0.2); color: var(--green-pass); }
.icon-warn { background: rgba(241, 196, 15, 0.2); color: var(--gold); }
.icon-fail { background: rgba(231, 76, 60, 0.2); color: var(--red); }

.item-text h4 {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.item-text p {
    font-size: 0.78rem;
    color: #9cb1c2;
    line-height: 1.35;
}

/* Footer */
.steam-footer {
    background: var(--steam-black);
    border-top: 1px solid rgba(0, 0, 0, 0.8);
    padding: 24px;
    text-align: center;
    font-size: 0.78rem;
    color: #687a86;
    margin-top: auto;
}

.footer-sub {
    font-size: 0.7rem;
    color: #4f5f6b;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 960px) {
    .unified-input-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .action-buttons-group {
        justify-content: stretch;
    }
    .action-buttons-group .btn {
        flex: 1;
        justify-content: center;
    }
    .score-card-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .score-radial-group {
        margin: 0 auto;
    }
    .tier-pill-row {
        justify-content: center;
    }
    .content-split-grid {
        grid-template-columns: 1fr;
    }
    .checklist-grid {
        grid-template-columns: 1fr;
    }
}

.headline-sub {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--steam-cyan);
    letter-spacing: normal;
}

.legal-disclaimer {
    font-size: 0.74rem;
    color: #6a7c8c;
    margin-top: 6px;
    line-height: 1.4;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}



.nav-right-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-legal-disclaimer {
    font-size: 0.65rem;
    color: #6a7c8c;
    line-height: 1.25;
    max-width: 480px;
    text-align: right;
}

/* ==========================================================================
   Navigation Tabs & Header Left Col
   ========================================================================== */

.nav-left-col {
    display: flex;
    align-items: center;
    gap: 32px;
}

.steam-nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-tab-btn {
    background: transparent;
    border: none;
    color: #b8b6b4;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.nav-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
    color: #ffffff;
    background: rgba(102, 192, 244, 0.15);
    border-bottom: 2px solid var(--steam-cyan);
}

/* ==========================================================================
   Benchmark View Styling
   ========================================================================== */

.benchmark-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px;
}

.benchmark-header {
    text-align: center;
    margin-bottom: 28px;
}

.benchmark-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.benchmark-sub {
    font-size: 0.95rem;
    color: #9cb1c2;
    margin-top: 4px;
}

.table-responsive {
    overflow-x: auto;
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.benchmark-table th {
    background: rgba(0, 0, 0, 0.35);
    padding: 12px 14px;
    color: var(--steam-cyan);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--steam-border);
}

.benchmark-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--steam-text-main);
}

.benchmark-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.row-highlight {
    background: rgba(241, 196, 15, 0.05);
}

.row-flop {
    background: rgba(231, 76, 60, 0.05);
}

.benchmark-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rule-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--steam-cyan);
    margin-bottom: 6px;
}

.rule-desc {
    font-size: 0.85rem;
    color: #9cb1c2;
    line-height: 1.45;
}

/* ==========================================================================
   Benchmark Empirical Research Charts Gallery
   ========================================================================== */

.benchmark-charts-section {
    margin-top: 36px;
}

.benchmark-section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.benchmark-section-sub {
    font-size: 0.88rem;
    color: #8f98a0;
    line-height: 1.4;
}

.benchmark-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benchmark-chart-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(27, 40, 56, 0.75) 0%, rgba(20, 29, 41, 0.85) 100%);
    border: 1px solid rgba(103, 193, 245, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(12px);
}

.benchmark-chart-card:hover {
    transform: translateY(-3px);
    border-color: rgba(103, 193, 245, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(103, 193, 245, 0.1);
}

.chart-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.chart-number-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--steam-cyan);
    background: rgba(103, 193, 245, 0.12);
    border: 1px solid rgba(103, 193, 245, 0.25);
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.chart-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.chart-metric-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.12);
    border: 1px solid rgba(255, 209, 102, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
}

.chart-img-wrapper {
    position: relative;
    width: 100%;
    background: #0d1219;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    cursor: zoom-in;
    margin-bottom: 14px;
}

.benchmark-chart-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.chart-img-wrapper:hover .benchmark-chart-img {
    transform: scale(1.02);
}

.chart-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 23, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.chart-img-wrapper:hover .chart-zoom-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 1rem;
}

.chart-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-card-footer p {
    font-size: 0.84rem;
    color: #a4b4c4;
    line-height: 1.45;
}

.chart-card-footer p strong {
    color: var(--steam-cyan);
}

/* ==========================================================================
   Fullscreen Chart Lightbox Modal
   ========================================================================== */

.chart-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.88);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    background: #141c28;
    border: 1px solid rgba(103, 193, 245, 0.3);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(103, 193, 245, 0.15);
    max-width: 1100px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lightboxPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.lightbox-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
    background: rgba(231, 76, 60, 0.8);
    border-color: #e74c3c;
    transform: rotate(90deg);
}

.lightbox-body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: #0a0e14;
}

.lightbox-body img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .benchmark-charts-grid {
        grid-template-columns: 1fr;
    }
    .benchmark-rules-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Footer Links (Imprint & Data Privacy)
   ========================================================================== */

.footer-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-link {
    color: #8f98a0;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--steam-cyan);
    text-decoration: underline;
}

.footer-dot {
    color: #4f5f6b;
    font-size: 0.75rem;
}

.footer-copy {
    font-size: 0.78rem;
    color: #687a86;
}

/* ==========================================================================
   Evaluated Game Hero Card at Top of Results
   ========================================================================== */

.game-result-hero-card {
    background: linear-gradient(135deg, #1b2838 0%, #171a21 100%);
    border: 1px solid var(--steam-border-blue);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.game-result-capsule-box {
    width: 240px;
    height: 112px;
    background: #000000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-result-capsule-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-result-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-result-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.game-result-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.game-result-title a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.game-result-title a:hover {
    color: var(--steam-cyan);
    text-shadow: 0 0 10px rgba(102, 192, 244, 0.5);
}

.external-icon {
    color: var(--steam-cyan);
    opacity: 0.8;
}

.btn-steam-store-direct {
    background: linear-gradient(90deg, #2a475e 0%, #1b2838 100%);
    border: 1px solid var(--steam-border-blue);
    color: var(--steam-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-steam-store-direct:hover {
    background: linear-gradient(90deg, #385d7a 0%, #24394e 100%);
    color: #ffffff;
    border-color: var(--steam-cyan);
    box-shadow: 0 2px 10px rgba(102, 192, 244, 0.3);
}

.game-result-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-pill {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--steam-border);
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 0.76rem;
    color: #a3b5c4;
    font-weight: 600;
}

.price-pill {
    background: #000000;
    color: var(--steam-green);
    font-weight: 700;
    border-color: rgba(164, 208, 7, 0.3);
}

.game-hero-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Genre Comparison Lens Switcher & Dedicated Genre Card
   ========================================================================== */

.genre-lens-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 16px 0;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(103, 193, 245, 0.15);
    border-radius: 4px;
    flex-wrap: wrap;
}

.genre-lens-left-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.genre-lens-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8f98a0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.genre-lens-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.genre-pill-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(103, 193, 245, 0.2);
    color: #9cb1c2;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.genre-pill-btn:hover {
    background: rgba(103, 193, 245, 0.15);
    border-color: rgba(103, 193, 245, 0.4);
    color: #ffffff;
}

.genre-pill-btn.active {
    background: linear-gradient(90deg, #1b5380 0%, #153856 100%);
    border-color: var(--steam-cyan);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(103, 193, 245, 0.3);
}

/* Dedicated Genre Benchmark Card */
.genre-benchmark-card {
    background: linear-gradient(135deg, rgba(27, 40, 56, 0.85) 0%, rgba(18, 28, 40, 0.95) 100%);
    border: 1px solid rgba(103, 193, 245, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.genre-card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.genre-card-icon {
    font-size: 1.5rem;
}

.genre-card-subtitle {
    font-size: 0.8rem;
    color: #8f98a0;
    margin-top: 2px;
}

.badge-genre-accent {
    background: rgba(103, 193, 245, 0.15);
    color: var(--steam-cyan);
    border: 1px solid rgba(103, 193, 245, 0.3);
}

.genre-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.genre-stat-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.genre-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8f98a0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.genre-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
}

.genre-stat-delta {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

.delta-pos {
    color: #a4d007;
}

.delta-neg {
    color: #e74c3c;
}

.delta-neutral {
    color: #67c1f5;
}

.genre-recommendation-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(103, 193, 245, 0.08);
    border-left: 3px solid var(--steam-cyan);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    font-size: 0.84rem;
    color: #c7d5e0;
    line-height: 1.45;
}

.genre-recommendation-box .rec-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .genre-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .game-result-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .game-result-capsule-box {
        width: 100%;
        height: auto;
        aspect-ratio: 460 / 215;
    }
}

/* ==========================================================================
   Storefront In-Situ Simulator (Comparison next to neighboring games)
   ========================================================================== */

.sim-explainer {
    font-size: 0.78rem;
    color: #8f9ea6;
    margin-bottom: 12px;
    line-height: 1.35;
}

/* 1. Large Browse / Carousel Row */
.sim-capsule-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.sim-capsule-item {
    background: #0e141b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.sim-capsule-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.sim-capsule-thumb {
    width: 100%;
    aspect-ratio: 460 / 215;
    background: #000000;
    overflow: hidden;
}

.sim-capsule-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sim-capsule-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #c7d5e0;
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #171a21;
}

/* User Capsule Focused in Large Row */
.item-user-focused {
    border: 2px solid var(--steam-cyan);
    box-shadow: 0 0 20px rgba(102, 192, 244, 0.45);
}



.item-user-focused .sim-capsule-name {
    background: #1b2838;
    color: var(--steam-cyan);
    font-weight: 700;
}

/* 2. Tiny Micro Thumbnail Discovery Queue */
.sim-micro-queue {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.micro-queue-item {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 460 / 215;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.micro-queue-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.micro-user-focused {
    border: 2px solid var(--gold);
    box-shadow: 0 0 16px rgba(241, 196, 15, 0.5);
}



@media (max-width: 600px) {
    .sim-capsule-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .sim-micro-queue {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sim-micro-matrix {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    justify-content: center;
    gap: 10px;
    background: #0b0e14;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
    margin: 0 auto;
}

.micro-matrix-item {
    background: #000000;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 460 / 215;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease;
}

.micro-matrix-item:hover {
    transform: scale(1.04);
    z-index: 2;
}

.micro-matrix-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-user-focused {
    border: 1.5px solid rgba(102, 192, 244, 0.8);
}

.micro-user-focused {
    border: 1.5px solid rgba(102, 192, 244, 0.9);
}

@media (max-width: 600px) {
    .sim-micro-matrix {
        grid-template-columns: repeat(2, 120px);
        gap: 8px;
        padding: 10px;
    }
}

.hero-palette-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.hero-palette-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #a3b5c4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-palette-container .swatches-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-palette-container .swatch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.hero-palette-container .swatch-item:hover {
    transform: translateY(-2px);
    border-color: var(--steam-cyan);
}

.hero-palette-container .swatch-preview {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-palette-container .swatch-hex {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-palette-container .swatch-pct {
    font-size: 0.80rem;
    color: var(--steam-cyan);
    font-weight: 600;
}

/* ==========================================================================
   Full-Width Storefront Competition Simulator
   ========================================================================== */

.storefront-full-section {
    width: 100%;
    margin-top: 20px;
}

.sim-capsule-large-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    justify-content: center;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--steam-border-blue) #0e141b;
}

.sim-capsule-large-row .sim-capsule-item {
    background: #0e141b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sim-capsule-large-row .sim-capsule-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

.sim-capsule-large-row .sim-capsule-thumb {
    width: 100%;
    aspect-ratio: 460 / 215;
    background: #000000;
    overflow: hidden;
}

.sim-capsule-large-row .sim-capsule-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sim-capsule-large-row .sim-capsule-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e5edf5;
    padding: 10px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #171a21;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Full Width Micro Matrix */
.sim-micro-matrix {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    justify-content: center;
    gap: 10px;
    background: #0b0e14;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
    margin: 0 auto;
}

.micro-matrix-item {
    background: #000000;
    border-radius: 3px;
    overflow: hidden;
    aspect-ratio: 460 / 215;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.micro-matrix-item:hover {
    transform: scale(1.08);
    z-index: 5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.9);
}

.micro-matrix-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .sim-micro-matrix {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    justify-content: center;
    gap: 10px;
    background: #0b0e14;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
    margin: 0 auto;
}
}

@media (max-width: 768px) {
    .sim-capsule-large-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    justify-content: center;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--steam-border-blue) #0e141b;
}
    .sim-micro-matrix {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    justify-content: center;
    gap: 10px;
    background: #0b0e14;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
    margin: 0 auto;
}
}

/* ==========================================================================
   Full-Width Storefront Competition Simulator (Exact-Scale Visual Testing)
   ========================================================================== */

.storefront-full-section {
    width: 100%;
    margin-top: 20px;
}

.sim-explainer {
    font-size: 0.78rem;
    color: #8f9ea6;
    margin-bottom: 12px;
    line-height: 1.35;
}

/* 1. Large Browse / Carousel Row (Fixed Large Scale: 270px x 126px with horizontal scroll) */
.sim-capsule-large-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    justify-content: center;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--steam-border-blue) #0e141b;
}

.sim-capsule-large-row::-webkit-scrollbar {
    height: 6px;
}

.sim-capsule-large-row::-webkit-scrollbar-track {
    background: #0e141b;
    border-radius: 3px;
}

.sim-capsule-large-row::-webkit-scrollbar-thumb {
    background: var(--steam-border-blue);
    border-radius: 3px;
}

.sim-capsule-large-row .sim-capsule-item {
    width: 270px;
    flex-shrink: 0;
    background: #0e141b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sim-capsule-large-row .sim-capsule-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

.sim-capsule-large-row .sim-capsule-thumb {
    width: 270px;
    height: 126px;
    background: #000000;
    overflow: hidden;
}

.sim-capsule-large-row .sim-capsule-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sim-capsule-large-row .sim-capsule-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e5edf5;
    padding: 10px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #171a21;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 2. Exact 120px Discovery Queue Matrix (ALWAYS 120px wide across all devices) */
.sim-micro-matrix {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    justify-content: center;
    gap: 10px;
    background: #0b0e14;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
    margin: 0 auto;
}

.micro-matrix-item {
    width: 120px;
    height: 56px;
    flex-shrink: 0;
    background: #000000;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.micro-matrix-item:hover {
    transform: scale(1.1);
    z-index: 5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.9);
}

.micro-matrix-item img {
    width: 120px;
    height: 56px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Full-Width Storefront Competition Simulator (3x3 Large & Seamless 3x3 Small)
   ========================================================================== */

.storefront-full-section {
    width: 100%;
    margin-top: 20px;
}

.sim-explainer {
    font-size: 0.78rem;
    color: #8f9ea6;
    margin-bottom: 14px;
    line-height: 1.35;
}

/* 1. Large Browse 3x3 Grid (9 Entries, Seamless, Borderless, User in Exact Center) */
.sim-capsule-large-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 8px;
    background: #000000;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.75);
}

.sim-capsule-large-grid .sim-capsule-item {
    background: #000000;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 460 / 215;
    box-shadow: none;
    line-height: 0;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.sim-capsule-large-grid .sim-capsule-item:hover {
    transform: scale(1.03);
    z-index: 5;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.9);
}

.sim-capsule-large-grid .sim-capsule-thumb {
    width: 100%;
    height: 100%;
    background: #000000;
    overflow: hidden;
}

.sim-capsule-large-grid .sim-capsule-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

/* 2. Seamless 120px Discovery Queue 3x3 Matrix (Gapless, Borderless, User in Exact Center) */
.sim-micro-matrix {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 56px);
    gap: 0;
    background: #000000;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 360px;
    height: 168px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.micro-matrix-item {
    width: 120px;
    height: 56px;
    flex-shrink: 0;
    background: #000000;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    box-shadow: none;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.micro-matrix-item:hover {
    transform: scale(1.06);
    z-index: 5;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}

.micro-matrix-item img {
    width: 120px;
    height: 56px;
    object-fit: cover;
    display: block;
    border: none;
}

@media (max-width: 768px) {
    .sim-capsule-large-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .sim-micro-matrix {
        grid-template-columns: repeat(2, 120px);
        width: 240px;
        height: auto;
    }
}




/* Visual Check Header: Title + Small/Large Toggle on Left, Storefront Simulator on Right */
.sim-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sim-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sim-view-toggle-group {
    display: inline-flex;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 2px;
    gap: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.btn-sim-toggle {
    background: transparent;
    border: none;
    color: #8f9ea6;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-sim-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-sim-toggle.active {
    background: linear-gradient(90deg, #1a9fff 0%, #0072c6 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 114, 198, 0.55);
}


.sim-controls-row .sim-explainer {
    margin-bottom: 0;
    flex: 1;
}

.sim-view-toggle-group {
    display: inline-flex;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 3px;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.btn-sim-toggle {
    background: transparent;
    border: none;
    color: #8f9ea6;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-sim-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-sim-toggle.active {
    background: linear-gradient(90deg, #1a9fff 0%, #0072c6 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 114, 198, 0.55);
}


.sim-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sim-view-toggle-group {
    display: inline-flex;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 3px;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.btn-sim-toggle {
    background: transparent;
    border: none;
    color: #8f9ea6;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-sim-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-sim-toggle.active {
    background: linear-gradient(90deg, #1a9fff 0%, #0072c6 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 114, 198, 0.55);
}


.sim-view-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--steam-border-blue);
    border-radius: 4px;
    padding: 2px;
    gap: 2px;
}

.btn-sim-toggle {
    background: transparent;
    border: none;
    color: #8f9ea6;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sim-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-sim-toggle.active {
    background: linear-gradient(90deg, #1976d2 0%, #1565c0 100%);
    color: #ffffff;
    box-shadow: 0 1px 6px rgba(25, 118, 210, 0.4);
}

/* ==========================================================================
   Top 2-Column Section (Left: Title + Palette | Right: Big Dominant Scorecard)
   ========================================================================== */

.top-hero-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.top-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
}

.top-right-col {
    display: flex;
    flex-direction: column;
}

.game-result-hero-card {
    background: linear-gradient(135deg, #1b2838 0%, #171a21 100%);
    border: 1px solid var(--steam-border-blue);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 0;
    flex: 1;
}

.palette-dedicated-panel {
    background: linear-gradient(135deg, #171a21 0%, #0e141b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.palette-dedicated-panel .swatches-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.palette-dedicated-panel .swatch-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 10px 6px 6px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    flex: 1 1 calc(33.333% - 10px);
    min-width: 100px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.palette-dedicated-panel .swatch-item:hover {
    transform: translateY(-2px);
    border-color: var(--steam-cyan);
}

.palette-dedicated-panel .swatch-preview {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.palette-dedicated-panel .swatch-hex {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.82rem;
    color: #ffffff;
    font-weight: 700;
}

.palette-dedicated-panel .swatch-pct {
    font-size: 0.74rem;
    color: var(--steam-cyan);
    font-weight: 600;
}


/* Huge Centered Radial Gauge Styles */
.dominant-score-card {
    height: 100%;
    margin-bottom: 0;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 20px;
    border: 1px solid rgba(102, 192, 244, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
    background: linear-gradient(135deg, #1b2838 0%, #101822 100%);
    border-radius: var(--radius-md);
}

.score-radial-group-huge {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 0 auto;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.radial-svg-huge {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.radial-track-huge {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 10;
}

.radial-fill-huge {
    fill: none;
    stroke: var(--green-pass);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 88;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.radial-center-text-huge {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.score-huge-num {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.score-huge-denom {
    font-size: 0.88rem;
    color: #8f9ea6;
    font-weight: 700;
    margin-top: 2px;
}

.score-meta-group-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tier-pill-row-centered {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.score-meta-group-centered .score-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0 2px 0;
}

.score-meta-group-centered .score-desc {
    font-size: 0.84rem;
    color: #c7d5e0;
    line-height: 1.4;
    max-width: 440px;
    margin: 0 auto;
}

.dominant-score-card .quick-metrics-table {
    width: 100%;
    margin-top: 6px;
}
@media (max-width: 1024px) {
    .top-hero-two-col-grid {
        grid-template-columns: 1fr;
    }
}


/* Dedicated Dominant Palette Panel with D3 Pie Chart */
.palette-dedicated-panel {
    background: linear-gradient(135deg, #171a21 0%, #0e141b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.palette-chart-flex {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.palette-pie-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

#palettePieChart {
    width: 130px;
    height: 130px;
}

#palettePieChart path {
    stroke: #0e141b;
    stroke-width: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

#palettePieChart path:hover {
    opacity: 0.85;
}

.pie-center-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 0.80rem;
    font-weight: 800;
    color: #ffffff;
}

.palette-dedicated-panel .swatches-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.palette-dedicated-panel .swatch-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 10px 6px 6px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.palette-dedicated-panel .swatch-item:hover, .palette-dedicated-panel .swatch-item.highlighted {
    transform: translateY(-2px);
    border-color: var(--steam-cyan);
    background: rgba(25, 118, 210, 0.2);
}

.palette-dedicated-panel .swatch-preview {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.palette-dedicated-panel .swatch-hex {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.78rem;
    color: #ffffff;
    font-weight: 700;
}

.palette-dedicated-panel .swatch-pct {
    font-size: 0.72rem;
    color: var(--steam-cyan);
    font-weight: 600;
}

@media (max-width: 600px) {
    .palette-chart-flex {
        flex-direction: column;
    }
    .palette-dedicated-panel .swatches-grid {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================================
   Huge Game Title Banner (Top Full-Width Header)
   ========================================================================== */

.game-huge-title-banner {
    background: linear-gradient(135deg, #1b2838 0%, #171a21 100%);
    border: 1px solid var(--steam-border-blue);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    margin-bottom: 20px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.game-huge-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.game-huge-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.game-huge-title a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.game-huge-title a:hover {
    color: var(--steam-cyan);
    text-shadow: 0 0 16px rgba(102, 192, 244, 0.6);
}

.external-icon-huge {
    color: var(--steam-cyan);
    opacity: 0.85;
}

.btn-steam-store-huge {
    font-size: 0.92rem;
    padding: 9px 20px;
    border-radius: 3px;
}

.game-huge-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Dedicated Capsule Preview Card */
.capsule-preview-only-card {
    padding: 0;
    background: #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.game-result-capsule-box-full {
    width: 100%;
    aspect-ratio: 460 / 215;
    background: #000000;
    overflow: hidden;
}

.game-result-capsule-box-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==========================================================================
   Dynamic Visual Check & Recommendations Section (Half Width in Small, Full in Large)
   ========================================================================== */

.sim-and-recs-wrapper {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
    transition: all 0.25s ease;
}

/* Small Mode: 50/50 Side by Side */
.sim-and-recs-wrapper.mode-small {
    grid-template-columns: 1fr 1fr;
}

/* Large Mode: Full Width Stacking */
.sim-and-recs-wrapper.mode-large {
    grid-template-columns: 1fr;
}

.sim-and-recs-wrapper .visual-check-panel,
.sim-and-recs-wrapper .recs-panel {
    margin-bottom: 0;
    height: 100%;
}

.sim-and-recs-wrapper.mode-large .recs-panel .checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metrics-full-panel {
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .sim-and-recs-wrapper.mode-small {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Open Research Dataset & Bulk Download Cards
   ========================================================================== */

.download-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.download-card {
    background: #0e141b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
    transform: translateY(-2px);
    border-color: var(--steam-cyan);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
}

.download-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon-box.icon-json {
    background: rgba(102, 192, 244, 0.15);
    color: var(--steam-cyan);
    border: 1px solid rgba(102, 192, 244, 0.3);
}

.download-icon-box.icon-zip {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.download-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.download-size-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #8f9ea6;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.download-desc {
    font-size: 0.80rem;
    color: #8f9ea6;
    line-height: 1.35;
    margin-bottom: 8px;
}

.btn-download-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    padding: 8px 16px;
    width: fit-content;
    text-decoration: none;
}

@media (max-width: 768px) {
    .download-cards-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px) {
    .nav-right-col {
        display: none !important;
    }
}


.nav-tab-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8f9ea6;
}

.nav-tab-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.github-icon-svg {
    opacity: 0.85;
    vertical-align: middle;
}
