
/* =====================================================
   SUPERNATURAL: HUNTER GAME
   CINEMATIC INTERFACE — COMPLETE REDESIGN
   ===================================================== */

/* ================= ROOT ================= */

:root {
    --bg: #090a0c;
    --bg-soft: #101113;
    --panel: #17191b;
    --panel-light: #222321;
    --panel-hover: #2b2924;

    --paper: #d0c2a4;
    --paper-dark: #9f9074;

    --text: #e8e2d6;
    --muted: #918b80;

    --red: #8e302b;
    --red-light: #b64a3d;
    --gold: #aa8c5e;
    --gold-dark: #66543a;

    --border: #403a30;
    --border-light: #65553e;

    --shadow: 0 15px 45px #000a;
    --glow: 0 0 25px #9e352d35;

    --radius: 3px;
}

/* ================= GLOBAL ================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(ellipse at 50% -10%, #35302a 0%, transparent 42%),
        radial-gradient(ellipse at 0% 50%, #191716 0%, transparent 40%),
        linear-gradient(180deg, #090a0c, #11100e 55%, #08090b);

    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    overflow-x: hidden;
}

/* Текстура старой плёнки */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: .12;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            #ffffff0b 1px,
            transparent 2px,
            transparent 4px
        );
}

/* Затемнение по краям экрана */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 998;
    box-shadow: inset 0 0 150px #000b;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

/* ================= MAIN GAME ================= */

#game {
    width: 100%;
    max-width: 1500px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ================= HEADER ================= */

.topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 25px;

    background:
        linear-gradient(110deg, #111315, #24211c 50%, #111315);

    border: 1px solid var(--border-light);
    border-left: 3px solid var(--red);

    box-shadow: var(--shadow);
    position: relative;
}

.topbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #aa8c5e88, transparent);
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo span {
    color: #eee4d1;
    font-size: clamp(20px, 3vw, 30px);
    letter-spacing: 5px;
    font-weight: bold;
    text-shadow: 0 0 20px #b08b5b55;
}

.logo small {
    color: var(--red-light);
    font-size: 10px;
    letter-spacing: 7px;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    color: var(--paper-dark);
    font-size: 12px;
    letter-spacing: 1px;
}

/* ================= HERO ================= */

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
}

/* Главная сцена */

.scene-heading-card {
    position: relative;
    min-height: 440px;
    overflow: hidden;

    background: #08090b;
    border: 1px solid var(--border-light);

    box-shadow: 0 20px 60px #000c;
}

/* Фоновая фотография */

.scene-background {
    position: absolute;
    inset: 0;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1.02);
    filter: brightness(.68) contrast(1.13) saturate(.72);

    transition:
        transform 8s ease,
        filter 1s ease;
}

.scene-heading-card:hover .scene-background {
    transform: scale(1.07);
}

/* Кинематографическое затемнение */

.scene-heading-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            #070809f5 0%,
            #070809b8 37%,
            #07080940 75%,
            #07080980 100%
        ),
        linear-gradient(
            0deg,
            #08090bf2 0%,
            transparent 55%
        );
}

/* Информация сцены */

.scene-info {
    position: relative;
    z-index: 2;

    max-width: 700px;
    padding: 75px 55px;
}

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.scene-info h1 {
    margin: 25px 0 18px;

    color: #f0e7d7;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: 3px;
    text-transform: uppercase;

    text-shadow: 0 5px 25px #000;
}

.scene-info p {
    max-width: 480px;
    color: #c0b8aa;
    font-size: 16px;
    line-height: 1.8;
}

/* Кнопка истории */

#continue-story {
    margin-top: 28px;
    padding: 17px 30px;

    color: #f0e6d3;
    background: linear-gradient(135deg, #963b31, #4b1917);

    border: 1px solid #bd7158;
    box-shadow: 0 7px 25px #0008;

    font-size: 12px;
    letter-spacing: 3px;

    transition: .3s ease;
}

#continue-story:hover {
    background: linear-gradient(135deg, #bd493c, #70221d);
    box-shadow: 0 0 30px #a33a3155;
    transform: translateY(-3px);
}

/* ================= SCENE CARDS ================= */

.scene-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.scene-card {
    position: relative;
    min-width: 0;
    overflow: hidden;

    padding: 18px;

    background:
        linear-gradient(145deg, #25231f, #111315);

    border: 1px solid var(--border);
    box-shadow: var(--shadow);

    transition: .3s ease;
}

.scene-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-3px);
}

.scene-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 55px;
    height: 3px;
    background: var(--red);
}

.scene-card h2 {
    margin: 0 0 17px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 4px;
}

/* ================= CHARACTER PHOTOS ================= */

#scene-character-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: hidden;
}

#scene-character-images img {
    display: block;
    width: 100%;
    height: 270px;

    object-fit: cover;
    object-position: center 20%;

    background: #08090b;
    border: 1px solid var(--gold-dark);

    filter: brightness(.88) contrast(1.12) saturate(.82);

    transition:
        filter .4s ease,
        transform .4s ease;
}

#scene-character-images img:hover {
    filter: brightness(1) contrast(1.15) saturate(1);
    transform: scale(1.025);
}

/* ================= VEHICLE PHOTO ================= */

#scene-vehicle-image {
    display: block;
    width: 100%;
    height: 230px;

    object-fit: cover;
    object-position: center;

    padding: 0;
    margin: 0;

    transform: none;
    background: none;
}

.scene-characters,
.scene-vehicle {
    margin-top: 15px;
    color: var(--paper);
    font-size: 11px;
    letter-spacing: 2px;
    text-align: center;
}

/* ================= PLAYER STATS ================= */

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 25px 0;
}

.stat-card {
    position: relative;
    padding: 20px;

    background:
        linear-gradient(135deg, #24221d, #111315);

    border: 1px solid var(--border);
    border-bottom: 2px solid var(--red);

    box-shadow: 0 10px 30px #0008;
}

.stat-card span {
    display: block;
    color: var(--paper-dark);
    font-size: 10px;
    letter-spacing: 3px;
}

.stat-card b {
    display: block;
    margin-top: 10px;

    color: #eee1c8;
    font-size: 24px;
    font-weight: normal;
}

/* ================= HUNTER HEADQUARTERS ================= */

.game-menu,
#content {
    position: relative;
    margin-top: 25px;
    padding: 28px;

    background:
        linear-gradient(135deg, #211f1b, #111315);

    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.game-menu h2,
#content h2 {
    margin-top: 0;
    color: var(--paper);
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.game-menu p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Разделительная линия */

.game-menu h2::after,
#content h2::after {
    content: "";
    display: block;
    width: 75px;
    height: 2px;
    margin-top: 13px;
    background: var(--red);
}

/* Кнопки штаба */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.menu-grid button {
    min-height: 62px;
    padding: 14px;

    color: #d1c4a8;

    background:
        linear-gradient(135deg, #2b2923, #151617);

    border: 1px solid #514634;

    font-size: 11px;
    letter-spacing: 2px;

    transition: .25s ease;
}

.menu-grid button:hover {
    color: #fff0d8;
    background: linear-gradient(135deg, #542923, #241513);
    border-color: #a34a3b;
    box-shadow: var(--glow);
    transform: translateY(-3px);
}

.menu-grid button:active {
    transform: scale(.98);
}

/* ================= CONTENT PANELS ================= */

#content {
    min-height: 180px;
    line-height: 1.7;
}

#content p {
    color: #b8ad9b;
}

/* Универсальные карточки */

.card,
.character-card,
.vehicle-card,
.item-card,
.mission-card,
.shop-card {
    background: linear-gradient(145deg, #25231f, #121416);
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px #0007;
}

/* ================= FORMS ================= */

input,
select,
textarea {
    width: 100%;
    padding: 13px;

    color: var(--text);
    background: #101214;

    border: 1px solid #514634;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 12px #aa8c5e22;
}

input::placeholder,
textarea::placeholder {
    color: #777166;
}

/* ================= GENERAL BUTTONS ================= */

#content button {
    padding: 12px 18px;

    color: #e6d9c0;
    background: linear-gradient(135deg, #77332c, #391a18);

    border: 1px solid #885044;

    transition: .25s ease;
}

#content button:hover {
    background: linear-gradient(135deg, #a34438, #60231e);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

/* ================= SCROLLBAR ================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #090a0c;
}

::-webkit-scrollbar-thumb {
    background: #514332;
    border: 1px solid #17191b;
}

::-webkit-scrollbar-thumb:hover {
    background: #8e302b;
}

/* ================= ANIMATIONS ================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.player-stats,
.game-menu,
#content {
    animation: fadeIn .7s ease both;
}

/* ================= TABLET ================= */

@media (max-width: 900px) {
    #game {
        padding: 14px;
    }

    .scene-info {
        padding: 55px 35px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #scene-character-images img {
        height: 220px;
    }

    #scene-vehicle-image {
        height: 190px;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {
    #game {
        padding: 9px;
    }

    .topbar {
        min-height: 68px;
        padding: 12px;
    }

    .logo span {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .logo small {
        font-size: 8px;
        letter-spacing: 4px;
    }

    .player-info {
        font-size: 10px;
    }

    .scene-heading-card {
        min-height: 390px;
    }

    .scene-info {
        padding: 45px 20px;
    }

    .scene-info h1 {
        font-size: 34px;
        letter-spacing: 1px;
    }

    .scene-info p {
        font-size: 14px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .scene-cards {
        gap: 10px;
    }

    .scene-card {
        padding: 10px;
    }

    .scene-card h2 {
        font-size: 9px;
        letter-spacing: 2px;
    }

    #scene-character-images {
        gap: 5px;
    }

    #scene-character-images img {
        height: 165px;
    }

    #scene-vehicle-image {
        height: 135px;
    }

    .scene-characters,
    .scene-vehicle {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .player-stats {
        gap: 7px;
        margin: 15px 0;
    }

    .stat-card {
        padding: 11px 8px;
    }

    .stat-card span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .stat-card b {
        font-size: 16px;
    }

    .game-menu,
    #content {
        padding: 17px 12px;
        margin-top: 15px;
    }

    .game-menu h2,
    #content h2 {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .menu-grid {
        gap: 8px;
    }

    .menu-grid button {
        min-height: 55px;
        padding: 9px 5px;
        font-size: 9px;
        letter-spacing: 1px;
    }
}

/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}


/* FOUNDATION UPDATE */
.foundation-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(190, 156, 98, 0.24);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(25, 24, 22, 0.98), rgba(12, 13, 16, 0.98));
}

.foundation-panel h2,
.foundation-panel h3 {
    margin: 0;
    letter-spacing: 0.08em;
}

.foundation-muted {
    color: #aaa39a;
    line-height: 1.55;
}

.foundation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.foundation-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(190, 156, 98, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.foundation-card span {
    display: block;
    margin-bottom: 7px;
    color: #b9a27d;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.foundation-card strong {
    display: block;
    color: #eee5d6;
    margin-bottom: 7px;
}

.foundation-card p {
    color: #b9b4ac;
    line-height: 1.45;
    margin: 6px 0;
}

.foundation-progress {
    width: 100%;
    height: 8px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 99px;
    background: #282727;
}

.foundation-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8d2525, #c19b62);
    transition: width 0.2s ease;
}

.battle-hud,
.button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.battle-log {
    max-height: 180px;
    overflow-y: auto;
    padding: 12px 14px;
    border-left: 2px solid #9a3434;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.28);
}

.battle-log p {
    margin: 5px 0;
    color: #d1cbc1;
    line-height: 1.4;
}

.foundation-card button {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .foundation-panel {
        padding: 14px;
    }

    .battle-hud,
    .button-row {
        grid-template-columns: 1fr;
    }

    .foundation-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   UPDATE 2.0 — МИССИИ, АРСЕНАЛ И ИНВЕНТАРЬ
   ========================================================= */
.foundation-kicker {
    display: block;
    color: #c6a66b;
    font-size: 10px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: .9;
}
.mission-panel, .hub-panel {
    border-color: rgba(190, 157, 100, .28);
    background:
        linear-gradient(145deg, rgba(27, 29, 31, .96), rgba(12, 14, 16, .98));
}
.mission-clues {
    margin: 14px 0;
    padding: 10px 14px;
    border-left: 2px solid #9b7949;
    background: rgba(255,255,255,.025);
}
.mission-clues p {
    margin: 7px 0;
    color: #c9c4ba;
    font-size: 13px;
}
.hub-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.hub-actions button {
    min-height: 46px;
    border: 1px solid rgba(198,166,107,.35);
    background: linear-gradient(180deg, #292724, #171716);
    color: #e6d8bc;
    letter-spacing: .7px;
}
.hub-actions button:active,
.foundation-panel button:active {
    transform: translateY(1px);
    filter: brightness(1.15);
}
.foundation-panel .foundation-card,
.foundation-panel .garage-card {
    border: 1px solid rgba(198,166,107,.2);
    background: rgba(255,255,255,.035);
    border-radius: 8px;
}
.foundation-panel .foundation-card h3,
.foundation-panel .garage-card h3 {
    color: #e0c38f;
}
.foundation-panel button:disabled {
    opacity: .42;
    cursor: not-allowed;
}
@media (max-width: 480px) {
    .hub-actions {
        grid-template-columns: 1fr;
    }
    .mission-panel, .hub-panel {
        padding: 14px;
    }
}

/* =========================================================
   UPDATE 2.3 — MOBILE GAME SHELL / FOUR-TAB NAVIGATION
   ========================================================= */
:root {
    --nav-height: 74px;
    --nav-bg: rgba(12, 13, 14, .96);
    --steel: #303238;
    --paper-bright: #eee5d5;
}

[hidden] { display: none !important; }

#game {
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 26px);
}

.home-screen { display: block; }
.game-content {
    min-height: 55vh;
    margin-top: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.bottom-nav {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 1500px);
    min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    background: linear-gradient(180deg, rgba(24, 24, 23, .97), var(--nav-bg));
    border-top: 1px solid rgba(184, 151, 99, .5);
    box-shadow: 0 -14px 40px #000b;
    backdrop-filter: blur(16px);
}

.nav-item {
    min-width: 0;
    min-height: 54px;
    padding: 5px 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    color: #8f897e;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    transition: .2s ease;
}
.nav-item .nav-symbol { font-size: 23px; line-height: 1; color: #a99b80; }
.nav-item.is-active {
    color: #ead9b8;
    background: linear-gradient(180deg, rgba(130, 91, 54, .2), rgba(90, 36, 30, .12));
    border-color: rgba(174, 137, 83, .35);
    box-shadow: inset 0 2px 0 #9b3930;
}
.nav-item.is-active .nav-symbol { color: #d6b77f; text-shadow: 0 0 14px #c18d4d66; }
.nav-item:active { transform: scale(.97); }

.home-briefing {
    margin-top: 18px;
    padding: 20px;
    background: linear-gradient(145deg, #1b1c1d, #101214);
    border: 1px solid #494131;
    box-shadow: var(--shadow);
}
.briefing-heading, .team-summary-heading, .case-meta, .vehicle-condition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.briefing-stamp { color: #71634d; font-size: 9px; letter-spacing: 2px; }
.home-case-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: linear-gradient(110deg, rgba(112, 45, 37, .2), rgba(255,255,255,.025));
    border-left: 2px solid var(--red);
}
.case-copy { min-width: 0; }
.case-copy strong { display: block; color: var(--paper-bright); font-size: 18px; letter-spacing: .5px; }
.case-copy p { margin: 6px 0 0; color: #aaa398; font-size: 12px; line-height: 1.5; }
.case-meta { flex-direction: column; align-items: flex-end; color: #b59b70; font-size: 9px; letter-spacing: 1px; white-space: nowrap; }
.home-team-summary { margin-top: 16px; }
.team-summary-heading { margin-bottom: 9px; color: #c5a66f; font-size: 10px; letter-spacing: 2px; }
.team-summary-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.team-summary-member { padding: 10px; min-width: 0; background: rgba(255,255,255,.035); border: 1px solid #39352d; }
.team-summary-member strong { display: block; color: #e4dac8; font-size: 11px; }
.team-summary-member span, .team-summary-member small { display: block; margin-top: 5px; color: #a99573; font-size: 9px; }
.team-summary-member small { color: #928d83; }
.home-quick-actions { display: flex; gap: 9px; margin-top: 14px; }
.home-quick-actions button, .subtle-button {
    padding: 9px 12px;
    color: #cbb995;
    background: rgba(0,0,0,.2);
    border: 1px solid #5b4a36;
    font-size: 9px;
    letter-spacing: 1px;
}
.subtle-button { width: 100%; margin-top: 12px; }

.section-intro {
    margin-bottom: 18px;
    padding: 24px;
    background: linear-gradient(110deg, rgba(32, 31, 28, .98), rgba(13, 15, 17, .98));
    border: 1px solid #514633;
    border-left: 3px solid #8d342d;
    box-shadow: var(--shadow);
}
.section-intro h2 { margin: 0 0 10px; color: #e9dfcd; font-size: clamp(22px, 4vw, 32px); letter-spacing: 3px; }
.section-intro p { max-width: 760px; margin: 0; color: #aaa398; font-size: 13px; line-height: 1.65; }
.hunt-feature-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 13px; }
.operation-card {
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(145deg, #242321, #111315);
    border: 1px solid #484033;
    box-shadow: 0 12px 30px #0007;
}
.operation-primary { border-top: 2px solid #9a4034; }
.operation-card h3 { margin: 4px 0 7px; color: #e5d7bd; font-size: 18px; letter-spacing: 1px; }
.operation-card p { flex: 1; min-height: 56px; margin: 0 0 16px; color: #a8a195; font-size: 12px; line-height: 1.55; }
.operation-card button { width: 100%; margin-top: 7px; }
.operation-card .secondary-action { color: #c0b49d; background: #222321; border-color: #514a3d; }
.hunt-footer-stats, .profile-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.hunt-footer-stats > div, .profile-stat { padding: 14px; background: #17191a; border: 1px solid #38352e; }
.hunt-footer-stats span, .profile-stat span { display: block; color: #9c8a6d; font-size: 9px; letter-spacing: 1.3px; }
.hunt-footer-stats strong, .profile-stat strong { display: block; margin-top: 6px; color: #e2d7c5; font-size: 17px; }

.bunker-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.bunker-overview-copy { padding: 17px; background: linear-gradient(130deg, #22221f, #121416); border: 1px solid #514634; }
.bunker-overview-copy span, .bunker-overview-copy small { display: block; color: #a99470; font-size: 9px; letter-spacing: 1.4px; }
.bunker-overview-copy strong { display: block; margin: 7px 0; color: #e6dccb; font-size: 17px; }
.bunker-overview-copy small { color: #8f8b82; letter-spacing: .4px; }
.bunker-room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.bunker-room {
    min-height: 126px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: #e0d3bc;
    background: linear-gradient(145deg, #242320, #111315);
    border: 1px solid #494234;
    border-top: 2px solid #76533c;
    transition: .2s ease;
}
.bunker-room:hover { transform: translateY(-2px); border-color: #9a744c; background: linear-gradient(145deg, #302a23, #151617); }
.room-icon { margin-bottom: 10px; color: #c4a36b; font-size: 21px; }
.bunker-room strong { font-size: 11px; letter-spacing: 1.2px; }
.bunker-room small { margin-top: 6px; color: #969087; font-size: 10px; }
.bunker-bottom-note { margin-top: 16px; padding: 11px; text-align: center; color: #71634f; border-top: 1px solid #39352d; font-size: 9px; letter-spacing: 2.5px; }

.impala-garage-card { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; background: linear-gradient(145deg, #222321, #101214); border: 1px solid #5a4a36; box-shadow: var(--shadow); }
.impala-garage-image { width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.impala-garage-info { padding: 22px; }
.impala-garage-info h3 { margin: 0 0 10px; color: #e7d9c0; font-size: 22px; letter-spacing: 1.5px; }
.impala-garage-info p { color: #aaa398; font-size: 12px; line-height: 1.55; }
.vehicle-condition-row { margin-top: 18px; color: #bba276; font-size: 9px; letter-spacing: 1px; }
.vehicle-condition-row strong { color: #e3d6bf; font-size: 11px; }
.vehicle-progress { margin-top: 9px; }
.vehicle-service-note { margin: 12px 0; color: #8f8b82; font-size: 11px; line-height: 1.5; }
.vehicle-ready { margin-top: 14px; padding: 11px; color: #c8b17e; border: 1px solid #64563d; text-align: center; font-size: 10px; letter-spacing: 1.3px; }
.garage-actions { display: flex; gap: 10px; margin-top: 14px; }
.content-back-button { margin-top: 14px; }
.bestiary-card > span, .achievement-card > span { color: #b59a6d; font-size: 9px; letter-spacing: 1.4px; }
.bestiary-card > strong, .achievement-card > strong { margin-top: 8px; }
.profile-hero-card { display: flex; justify-content: space-between; align-items: center; padding: 22px; background: linear-gradient(120deg, #302820, #151719 65%); border: 1px solid #65513a; }
.profile-hero-card span, .profile-hero-card small { display: block; color: #b29a71; font-size: 9px; letter-spacing: 2px; }
.profile-hero-card strong { display: block; margin: 7px 0; color: #f0e5d3; font-size: 24px; }
.profile-level { color: #b59a6d; font-size: 10px; letter-spacing: 2px; }
.profile-level b { display: block; color: #f0dfbd; font-size: 34px; text-align: center; }
.profile-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-progress-card, .profile-achievements { margin-top: 16px; padding: 18px; background: #17191a; border: 1px solid #403b32; }
.profile-progress-card > span { color: #b59a6d; font-size: 10px; letter-spacing: 1.5px; }
.profile-progress-card p { color: #a7a095; font-size: 12px; }
.profile-achievements h3 { margin: 0 0 13px; color: #d7c7a8; font-size: 13px; letter-spacing: 2px; }
.achievement-card.is-complete { border-color: rgba(168, 139, 82, .55); background: rgba(168, 139, 82, .08); }

@media (max-width: 900px) {
    .hunt-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operation-primary { grid-column: 1 / -1; }
    .bunker-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    :root { --nav-height: 68px; }
    #game { padding: 8px 8px calc(var(--nav-height) + env(safe-area-inset-bottom) + 20px); }
    .bottom-nav { padding-left: 8px; padding-right: 8px; gap: 4px; }
    .nav-item { min-height: 50px; font-size: 8px; letter-spacing: .7px; }
    .nav-item .nav-symbol { font-size: 21px; }
    .home-briefing { padding: 13px; }
    .home-case-card { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px; }
    .case-meta { flex-direction: row; align-items: flex-start; }
    .team-summary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-quick-actions { flex-direction: column; }
    .hunt-feature-grid { grid-template-columns: 1fr; }
    .operation-primary { grid-column: auto; }
    .hunt-footer-stats, .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bunker-overview { grid-template-columns: 1fr; }
    .bunker-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .bunker-room { min-height: 112px; padding: 12px; }
    .impala-garage-card { grid-template-columns: 1fr; }
    .impala-garage-image { min-height: 0; height: 205px; }
    .impala-garage-info { padding: 15px; }
    .garage-actions { flex-direction: column; }
    .section-intro { padding: 17px; }
}
@media (max-width: 360px) {
    .nav-item { font-size: 7px; }
    .bunker-room-grid { grid-template-columns: 1fr 1fr; }
    .profile-hero-card strong { font-size: 19px; }
}

/* Final specificity pass for the new in-game screens. */
#content.game-content {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
#content.game-content h2 { margin-top: 0; }
#content.game-content .section-intro h2 { font-size: clamp(22px, 4vw, 32px); letter-spacing: 3px; }
#content.game-content .operation-card button,
#content.game-content .bunker-room {
    color: #e0d3bc;
    background: linear-gradient(145deg, #242320, #111315);
    border: 1px solid #494234;
}
#content.game-content .operation-card button:hover,
#content.game-content .bunker-room:hover {
    background: linear-gradient(145deg, #302a23, #151617);
    border-color: #9a744c;
}
#content.game-content .operation-card .secondary-action {
    background: #222321;
    border-color: #514a3d;
}
#scene-character-images img { cursor: pointer; }
.garage-balance { margin-top: 10px; color: #9d8a69; font-size: 10px; letter-spacing: 1.4px; }
.garage-balance strong { color: #e5d6b9; font-size: 13px; }
