:root {
    color-scheme: dark;
    --bg: #080808;
    --panel: #111111;
    --panel-soft: #181818;
    --line: rgba(255, 255, 255, 0.16);
    --text: #f4f1e8;
    --muted: #c8c0b0;
    --gold: #d5ad41;
    --red: #a33a2e;
    --green: #3f9c67;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.86)),
        url("/images/backgrounds/getto-gang-city-bg-2026.png") center top / cover fixed no-repeat,
        var(--bg);
    color: var(--text);
    font-family: Verdana, Arial, sans-serif;
    font-size: 14px;
}

body:has(.game-shell) .site-footer {
    width: min(1320px, calc(100vw - 20px));
    margin-top: -10px;
}

body:has(.home-page) .site-footer {
    display: none;
}

a {
    color: #fff0a0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.home-page,
.beta-page,
.auth-page,
.guide-page {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 24px;
}

.hero,
.beta-hero,
.auth-panel {
    width: min(720px, 100%);
    margin: 0 auto;
}

.home-hero {
    width: min(1080px, 100%);
}

.auth-panel {
    width: min(430px, 100%);
    border: 1px solid var(--line);
    background: rgba(12, 12, 12, 0.92);
    padding: 24px;
}

.auth-panel.narrow {
    width: min(520px, 100%);
}

.guide-page {
    align-items: start;
    min-height: auto;
}

.guide-panel {
    width: min(980px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    background: rgba(12, 12, 12, 0.94);
    padding: 24px;
}

.guide-heading {
    margin-top: 28px;
}

.guide-heading h1 {
    font-size: clamp(34px, 6vw, 58px);
}

.guide-heading p,
.guide-section p {
    color: var(--muted);
    line-height: 1.7;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.guide-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel-soft);
    padding: 14px;
}

.guide-section h2 {
    color: #fff3bb;
}

.guide-rank-table {
    padding: 14px 0 0;
}

.guide-wide-section {
    margin-top: 14px;
}

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

.guide-fact-grid article {
    min-height: 112px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.16);
    padding: 10px;
}

.guide-fact-grid strong {
    color: #fff3bb;
}

.guide-fact-grid p {
    margin: 8px 0 0;
}

.site-footer {
    width: min(980px, calc(100vw - 48px));
    margin: 0 auto 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.84);
    padding: 11px 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.site-footer a {
    color: #fff0a0;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff6c7;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-logo {
    width: min(620px, 100%);
    height: auto;
    display: block;
    margin-bottom: 22px;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.65));
}

.brand {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
}

.kicker {
    margin: 0 0 10px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(36px, 8vw, 72px);
    line-height: 0.95;
}

h2 {
    font-size: 18px;
}

.lead {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions,
.form-stack {
    display: grid;
    gap: 12px;
}

.hero-actions {
    grid-template-columns: repeat(2, minmax(0, 180px));
    margin-top: 28px;
}

.home-language-tabs {
    display: grid;
    gap: 14px;
}

.home-language-tabs > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-language-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-language-nav label {
    min-width: 54px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.78);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

#home-lang-nl:checked ~ .home-language-nav label[for="home-lang-nl"],
#home-lang-en:checked ~ .home-language-nav label[for="home-lang-en"],
#home-lang-de:checked ~ .home-language-nav label[for="home-lang-de"],
#home-lang-fr:checked ~ .home-language-nav label[for="home-lang-fr"] {
    border-color: rgba(213, 173, 65, 0.75);
    background: rgba(213, 173, 65, 0.16);
    color: #fff3bb;
}

.home-language-panel {
    display: none;
}

#home-lang-nl:checked ~ .home-panel-nl,
#home-lang-en:checked ~ .home-panel-en,
#home-lang-de:checked ~ .home-panel-de,
#home-lang-fr:checked ~ .home-panel-fr {
    display: block;
}

.home-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.home-info-grid section {
    min-height: 150px;
    display: grid;
    align-content: start;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(17, 17, 17, 0.86);
    padding: 14px;
}

.home-info-grid span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-info-grid h2 {
    color: #fff3bb;
    font-size: 20px;
}

.home-info-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.home-nostalgia {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: end;
    margin: 24px 0 0;
    border: 1px solid rgba(213, 173, 65, 0.28);
    background: rgba(10, 10, 10, 0.86);
    padding: 12px;
}

.home-nostalgia img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-nostalgia figcaption {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.beta-signal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
}

.beta-signal span {
    border: 1px solid rgba(213, 173, 65, 0.42);
    background: rgba(9, 9, 9, 0.72);
    color: #fff2b5;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.beta-test-form {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 28px;
    border: 1px solid rgba(63, 156, 103, 0.55);
    background: rgba(63, 156, 103, 0.12);
    padding: 12px;
}

.beta-test-form p {
    margin: 0;
    color: #d9ffe8;
    font-size: 12px;
    line-height: 1.5;
}

.beta-page {
    align-items: start;
}

.beta-hero {
    width: min(1080px, 100%);
    padding: 18px 0 10px;
}

.beta-hero .lead {
    max-width: 760px;
}

.beta-language-tabs,
.beta-info-grid,
.beta-nostalgia {
    margin-top: 24px;
}

.beta-language-tabs {
    display: grid;
    gap: 12px;
}

.beta-language-tabs > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.beta-language-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.beta-language-nav label {
    min-width: 54px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.78);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

#beta-lang-nl:checked ~ .beta-language-nav label[for="beta-lang-nl"],
#beta-lang-en:checked ~ .beta-language-nav label[for="beta-lang-en"],
#beta-lang-de:checked ~ .beta-language-nav label[for="beta-lang-de"],
#beta-lang-fr:checked ~ .beta-language-nav label[for="beta-lang-fr"] {
    border-color: rgba(213, 173, 65, 0.75);
    background: rgba(213, 173, 65, 0.16);
    color: #fff3bb;
}

.beta-language-panel {
    display: none;
    max-width: 880px;
    border: 1px solid rgba(213, 173, 65, 0.28);
    background: rgba(12, 12, 12, 0.88);
    padding: 16px;
}

#beta-lang-nl:checked ~ .beta-panel-nl,
#beta-lang-en:checked ~ .beta-panel-en,
#beta-lang-de:checked ~ .beta-panel-de,
#beta-lang-fr:checked ~ .beta-panel-fr {
    display: block;
}

.beta-language-panel h2 {
    color: #fff3bb;
    font-size: 19px;
}

.beta-language-panel h2 + p {
    margin-top: 8px;
}

.beta-language-panel p {
    max-width: 780px;
    color: var(--muted);
    line-height: 1.68;
}

.beta-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.beta-info-grid article {
    min-height: 180px;
    display: grid;
    align-content: start;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(17, 17, 17, 0.9);
    padding: 14px;
}

.beta-info-grid span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.beta-info-grid h2 {
    color: #fff3bb;
    font-size: 20px;
}

.beta-info-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.beta-nostalgia {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    align-items: end;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.86);
    padding: 12px;
}

.beta-nostalgia img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.beta-nostalgia figcaption {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.button,
.icon-button {
    border: 1px solid var(--line);
    background: #171717;
    color: var(--text);
    min-height: 42px;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.button.primary {
    border-color: #f0d36c;
    background: linear-gradient(180deg, #d6b24b, #735a20);
    color: #0a0906;
}

.icon-button {
    min-width: 44px;
}

.notice {
    border-left: 3px solid var(--gold);
    background: rgba(213, 173, 65, 0.12);
    padding: 10px 12px;
    color: #fff2b5;
}

.action-lock-banner {
    margin: 10px 14px 0;
    border: 1px solid rgba(230, 68, 52, 0.72);
    border-left: 4px solid #e64434;
    background: rgba(163, 58, 46, 0.22);
    color: #ffe1dc;
    padding: 12px 14px;
    font-weight: 800;
    line-height: 1.5;
}

.action-lock-banner.is-hidden {
    display: none;
}

.game-shell[data-action-locked="1"] .play-panel form:not([data-account-form]):not([data-sleep-form]) {
    opacity: 0.58;
    pointer-events: none;
}

.form-stack label {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

input {
    width: 100%;
    border: 1px solid var(--line);
    background: #090909;
    color: var(--text);
    min-height: 42px;
    padding: 0 12px;
    font: inherit;
}

.form-link {
    color: var(--muted);
}

.game-shell {
    width: min(1320px, calc(100vw - 20px));
    margin: 0 auto;
    padding: 10px 0 24px;
}

.topbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    background: rgba(10, 10, 10, 0.94);
    padding: 10px 14px;
}

.topbar-status {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
}

.game-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 286px;
    grid-template-areas: "nav play stats";
    gap: 10px;
    margin-top: 10px;
    align-items: start;
}

.panel {
    border: 1px solid var(--line);
    background: rgba(13, 13, 13, 0.94);
    min-width: 0;
}

.nav-panel {
    grid-area: nav;
    padding: 14px;
    position: sticky;
    top: 10px;
}

.play-panel {
    grid-area: play;
    min-height: 0;
}

.stats-panel {
    grid-area: stats;
    display: grid;
    gap: 12px;
    padding: 14px;
    position: sticky;
    top: 10px;
}

.menu-group {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.location-signpost {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    border: 1px solid rgba(213, 173, 65, 0.35);
    background: rgba(213, 173, 65, 0.1);
    padding: 12px;
}

.location-signpost span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.location-signpost strong {
    color: #fff3bb;
    font-size: 17px;
}

.location-signpost p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.location-signpost dl {
    display: grid;
    gap: 6px;
    margin: 0;
}

.location-signpost dl div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.location-signpost dt,
.location-signpost dd {
    margin: 0;
    font-size: 11px;
}

.location-signpost dt {
    color: var(--muted);
}

.location-signpost dd {
    color: #fff3bb;
    font-weight: 700;
}

.menu-group:last-child {
    margin-bottom: 0;
}

.menu-group h2 {
    color: var(--gold);
    font-size: 13px;
    text-transform: uppercase;
}

.menu-item {
    display: grid;
    gap: 5px;
}

.menu-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 5px;
    align-items: stretch;
}

.menu-link-row > a {
    min-width: 0;
}

.menu-group a,
.settings-menu a {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    padding: 8px 10px;
    text-decoration: none;
}

.submenu-toggle {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    cursor: pointer;
}

.submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.16s ease, color 0.16s ease;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
    border-color: rgba(213, 173, 65, 0.75);
    background: rgba(213, 173, 65, 0.14);
    color: #fff3bb;
}

.submenu-toggle:focus-visible {
    outline: 2px solid rgba(213, 173, 65, 0.45);
    outline-offset: 2px;
}

.menu-item.open .submenu-toggle {
    border-color: rgba(213, 173, 65, 0.45);
    color: #fff3bb;
}

.menu-item.open .submenu-toggle::before {
    transform: translateY(2px) rotate(225deg);
}

.menu-group a span,
.settings-menu a {
    font-weight: 700;
}

.menu-group a small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.menu-group a.active,
.menu-group a.active-parent,
.menu-group a:hover,
.settings-menu a.active,
.settings-menu a:hover {
    border-color: rgba(213, 173, 65, 0.75);
    background: rgba(213, 173, 65, 0.14);
    color: #fff3bb;
}

.submenu {
    display: grid;
    gap: 5px;
    margin-left: 14px;
    padding-left: 10px;
    border-left: 1px solid rgba(213, 173, 65, 0.28);
}

.submenu[hidden] {
    display: none;
}

.submenu a {
    min-height: 38px;
    background: rgba(0, 0, 0, 0.18);
}

.panel-heading {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
}

.panel-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.panel-heading h1 {
    font-size: 26px;
    line-height: 1.1;
}

.live-pill {
    min-width: 76px;
    text-align: center;
    color: #d9ffe8;
    border: 1px solid rgba(63, 156, 103, 0.65);
    background: rgba(63, 156, 103, 0.16);
    padding: 4px 8px;
    font-size: 12px;
}

.live-pill.connecting {
    color: #ffd7d0;
    border-color: rgba(163, 58, 46, 0.65);
    background: rgba(163, 58, 46, 0.16);
}

.stat-list {
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.stat-list div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.stat-list dt {
    color: var(--muted);
}

.stat-list dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.character-status-card,
.live-stat-card,
.rpg-stat-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
}

.character-status-card {
    border-color: rgba(213, 173, 65, 0.46);
    background: rgba(213, 173, 65, 0.09);
}

.character-status-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.character-status-head .kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
}

.character-status-head h2 {
    color: #fff3bb;
    font-size: 22px;
    line-height: 1.1;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.status-dot.free {
    background: var(--green);
}

.status-dot.busy {
    background: var(--red);
}

.character-state-detail,
.character-action {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.character-action {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    color: #fff3bb;
    font-weight: 700;
}

.situation-list {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
}

.situation-list div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    min-height: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 7px;
}

.situation-list dt,
.situation-list dd {
    margin: 0;
}

.situation-list dt {
    color: var(--muted);
    font-size: 12px;
}

.situation-list dd {
    font-weight: 800;
    text-align: right;
}

.situation-list small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}

.primary-stat-list {
    gap: 7px;
}

.rpg-stat-card h2,
.live-stat-card h2 {
    color: var(--gold);
    font-size: 13px;
    text-transform: uppercase;
}

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

.rpg-stat-list div {
    display: grid;
    gap: 3px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    padding: 7px;
}

.rpg-stat-list dt {
    font-size: 11px;
}

.rpg-stat-list dd {
    color: #fff3bb;
    text-align: left;
}

.settings-menu {
    display: grid;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
}

.settings-menu h2 {
    color: var(--gold);
    font-size: 13px;
    text-transform: uppercase;
}

.meter {
    height: 10px;
    background: #050505;
    border: 1px solid var(--line);
    overflow: hidden;
}

.meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

.small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.lockdown-copy {
    border-left: 3px solid var(--red);
    background: rgba(163, 58, 46, 0.12);
    padding: 10px;
}

.hq-scene {
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: end;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38)),
        url("/images/backgrounds/getto-gang-city-bg-2026.png") center / cover no-repeat;
    padding: 24px;
}

.hq-scene h2 {
    font-size: 34px;
}

.hq-scene p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.7;
}

.direction-summary {
    min-height: 190px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: end;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.72);
    padding: 24px;
}

.location-market-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: end;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.72);
    padding: 20px 24px;
}

.location-market-banner h2 {
    font-size: 30px;
}

.location-market-banner p {
    max-width: 640px;
    color: var(--muted);
    line-height: 1.6;
}

.law-hero {
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: end;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38)),
        var(--scene-image) center / cover no-repeat,
        #0c0c0c;
    padding: 24px;
}

.law-hero h2 {
    font-size: 34px;
}

.law-hero p {
    max-width: 660px;
    color: var(--muted);
    line-height: 1.7;
}

.direction-summary h2 {
    font-size: 34px;
}

.direction-summary p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.7;
}

.direction-note {
    margin: 14px 14px 0;
    border-left: 3px solid var(--gold);
    background: rgba(213, 173, 65, 0.1);
    padding: 12px;
}

.direction-note p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.quick-stats {
    display: grid;
    gap: 8px;
    margin: 0;
    background: rgba(5, 5, 5, 0.78);
    border: 1px solid var(--line);
    padding: 12px;
}

.quick-stats div {
    display: grid;
    gap: 4px;
}

.quick-stats dt {
    color: var(--muted);
    font-size: 12px;
}

.quick-stats dd {
    margin: 0;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.hq-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.hq-card {
    min-height: 176px;
    display: grid;
    align-content: start;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel-soft);
    padding: 12px;
}

.hq-card-wide {
    grid-column: 1 / -1;
}

.hq-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hq-card-head strong {
    color: #fff3bb;
    font-size: 16px;
}

.hq-card-head span {
    color: var(--muted);
    font-size: 12px;
}

.hq-facts {
    display: grid;
    gap: 8px;
    margin: 0;
}

.hq-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-height: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 7px;
}

.hq-facts dt {
    color: var(--muted);
}

.hq-facts dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.stat-grid div {
    min-height: 48px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    padding: 8px;
}

.stat-grid dt {
    color: var(--muted);
    font-size: 12px;
}

.stat-grid dd {
    margin: 0;
    color: #fff3bb;
    font-weight: 700;
}

.compact-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hq-meter {
    margin-top: 2px;
}

.content-card {
    min-height: 118px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel-soft);
    padding: 12px;
}

.content-card.current {
    border-color: rgba(213, 173, 65, 0.7);
    background: rgba(213, 173, 65, 0.12);
}

.content-card p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.account-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.account-settings-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.account-settings-card .button {
    margin-top: auto;
}

.danger-card {
    border-color: rgba(163, 58, 46, 0.55);
    background: rgba(163, 58, 46, 0.12);
}

.wanted-card {
    min-height: 138px;
}

.police-action-card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.police-action-card .button {
    margin-top: auto;
}

.compact-label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.scene-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 14px;
    margin: 0 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel-soft);
    padding: 12px;
}

.scene-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.scene-card h2 {
    margin-top: 4px;
    font-size: 26px;
}

.scene-card p {
    color: var(--muted);
    line-height: 1.65;
}

.location-grid,
.bunker-grid,
.law-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buy-bunker-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 130px;
    gap: 12px;
    align-items: center;
    margin: 14px;
    border: 1px solid rgba(213, 173, 65, 0.55);
    background: rgba(213, 173, 65, 0.1);
    padding: 14px;
}

.buy-bunker-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.buy-bunker-card span {
    color: #fff3bb;
    font-weight: 700;
}

.buy-bunker-card small {
    color: var(--muted);
    font-size: 11px;
}

.corruption-card {
    border-color: rgba(163, 58, 46, 0.55);
    background: rgba(163, 58, 46, 0.12);
}

.bunker-upgrade {
    display: grid;
    align-content: start;
    gap: 8px;
}

.bunker-upgrade .button {
    margin-top: auto;
}

.sleep-form,
.furniture-card {
    display: grid;
    gap: 10px;
}

.sleep-form {
    margin-top: auto;
}

.furniture-card {
    align-content: start;
}

.furniture-card .button {
    margin-top: auto;
}

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

.direction-track {
    min-height: 152px;
}

.direction-track-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.direction-track-head span {
    color: #fff3bb;
    font-weight: 700;
}

.direction-meter {
    margin-top: 10px;
}

.city-chat-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.84fr);
    gap: 10px;
    padding: 14px;
    align-items: start;
}

.city-chat-grid section {
    min-width: 0;
}

.event-list,
.chat-list {
    display: grid;
    gap: 8px;
    min-height: 280px;
    max-height: 520px;
    overflow: auto;
    align-content: start;
    padding: 0;
}

.chat-list {
    min-height: 0;
    max-height: 360px;
}

.event-item {
    border-left: 3px solid var(--gold);
    background: var(--panel-soft);
    padding: 10px;
}

.event-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.event-item p,
.work-form p,
.chat-message {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.work-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.page-work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 14px;
}

.action-board-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: end;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.72);
    padding: 20px 24px;
}

.action-board-intro h2 {
    font-size: 30px;
}

.action-board-intro p {
    max-width: 640px;
    color: var(--muted);
    line-height: 1.6;
}

.action-board {
    align-items: stretch;
}

.work-form {
    display: grid;
    gap: 8px;
    background: var(--panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
}

.action-card {
    align-content: start;
}

.action-card.matching {
    border-color: rgba(213, 173, 65, 0.72);
    background: rgba(213, 173, 65, 0.11);
}

.action-card.locked {
    opacity: 0.72;
}

.action-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.action-card-head strong {
    color: #fff3bb;
    line-height: 1.35;
}

.action-card-head span,
.state-open,
.state-near,
.state-locked {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 700;
}

.state-open {
    color: #d9ffe8;
    border-color: rgba(63, 156, 103, 0.55);
    background: rgba(63, 156, 103, 0.12);
}

.state-near {
    color: #fff2b5;
    border-color: rgba(213, 173, 65, 0.58);
    background: rgba(213, 173, 65, 0.12);
}

.state-locked {
    color: #ffd7d0;
    border-color: rgba(163, 58, 46, 0.55);
    background: rgba(163, 58, 46, 0.12);
}

.action-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 2px 0;
}

.action-facts div {
    display: grid;
    gap: 2px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.16);
    padding: 6px;
}

.action-facts dt {
    color: var(--muted);
    font-size: 11px;
}

.action-facts dd {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.stat-reward,
.lock-reason {
    font-size: 12px;
}

.lock-reason {
    color: #ffd7d0 !important;
}

.work-form span {
    color: var(--gold);
    font-size: 12px;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.rank-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
}

.rank-table div {
    min-height: 42px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel-soft);
}

.rank-table div.current {
    border-color: rgba(213, 173, 65, 0.78);
    background: rgba(213, 173, 65, 0.13);
}

.rank-table span {
    color: var(--gold);
    text-align: center;
}

.chat-message {
    background: var(--panel-soft);
    padding: 8px 10px;
}

.chat-message strong {
    color: #fff0a0;
    margin-right: 6px;
}

.chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
    margin-top: 10px;
}

.form-message {
    min-height: 18px;
    margin: 0;
    padding: 0 14px 12px;
    color: var(--muted);
}

.game-notice {
    margin: 10px 0 0;
}

@media (max-width: 980px) {
    .game-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "nav"
            "stats"
            "play";
    }

    .nav-panel,
    .stats-panel {
        position: static;
    }

    .content-grid,
    .hq-dashboard,
    .city-chat-grid,
    .page-work-list,
    .rank-table,
    .guide-content,
    .guide-fact-grid,
    .action-board-intro,
    .location-market-banner,
    .account-settings-grid,
    .location-grid,
    .bunker-grid,
    .law-grid,
    .scene-card,
    .buy-bunker-card,
    .beta-test-form,
    .beta-info-grid,
    .beta-nostalgia,
    .home-info-grid,
    .home-nostalgia {
        grid-template-columns: 1fr;
    }

    .hq-scene,
    .law-hero,
    .direction-summary,
    .direction-grid,
    .stat-grid,
    .compact-stat-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body {
        background-attachment: scroll;
    }

    .auth-page,
    .home-page,
    .beta-page,
    .guide-page {
        padding: 14px;
    }

    .auth-panel {
        padding: 18px;
    }

    .game-shell {
        width: calc(100vw - 10px);
        padding-top: 5px;
    }

    .chat-form {
        grid-template-columns: 1fr;
    }

    .beta-language-panel {
        padding: 14px;
    }

    .beta-info-grid article {
        min-height: 0;
    }

    .home-info-grid section {
        min-height: 0;
    }

    .beta-nostalgia {
        gap: 10px;
    }

    .home-nostalgia {
        gap: 10px;
    }
}
