
        :root {
            --bg-0: #060809;
            --bg-1: #10151a;
            --panel: #141a1f;
            --panel-border: #3a454e;
            --accent: #2f8fbf;
            --hazard: #c4a035;
            --ok: #3d9b5f;
            --text: #e8ecef;
            --muted: #8b969f;
            --rust: #8a4a28;
        }
        * { box-sizing: border-box; }
        body {
            font-family: "IBM Plex Sans", system-ui, sans-serif;
            background: #060809;
            color: var(--text);
            text-align: center;
            padding: 20px 16px 56px;
            margin: 0;
            min-height: 100vh;
            position: relative;
        }
        .bunker-stage {
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
            background: #1a1a1a;
        }
        .bunker-stage__art {
            position: absolute;
            inset: -2%;
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
            filter: contrast(1.05) brightness(0.78);
            transform: scale(1.04);
        }
        .bunker-stage__icons {
            position: absolute;
            inset: 0;
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
            opacity: 0.55;
            mix-blend-mode: multiply;
        }
        .bunker-stage__tint {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(18, 22, 26, 0.35) 0%, rgba(10, 12, 14, 0.25) 40%, rgba(8, 10, 12, 0.45) 100%),
                radial-gradient(ellipse 80% 70% at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.45) 100%);
        }
        .bunker-stage__shade {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 14%, transparent 86%, rgba(0,0,0,0.4) 100%),
                linear-gradient(180deg, rgba(0,0,0,0.22) 0%, transparent 12%, transparent 82%, rgba(0,0,0,0.5) 100%);
        }
        .container {
            max-width: 400px;
            margin: 0 auto;
            padding-top: 24px;
            position: relative;
            z-index: 1;
        }
        .brand-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin: 0 0 6px;
        }
        .brand-title {
            font-family: "Rajdhani", sans-serif;
            font-weight: 700;
            font-size: 36px;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin: 0;
            color: #f2f5f7;
            text-shadow:
                0 1px 0 rgba(0, 0, 0, 0.85),
                0 0 28px rgba(47, 143, 191, 0.18);
            text-align: left;
            flex: 1;
            min-width: 0;
        }
        .lang-switch {
            flex-shrink: 0;
        }
        .lang-select {
            margin: 0;
            padding: 6px 8px;
            width: auto;
            min-width: 58px;
            border-radius: 8px;
            border: 1px solid #3a464f;
            background: rgba(20, 26, 32, 0.95);
            color: #d5dee6;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.5px;
            cursor: pointer;
            font-family: inherit;
            appearance: none;
            -webkit-appearance: none;
            background-image: linear-gradient(45deg, transparent 50%, #8a969f 50%),
                linear-gradient(135deg, #8a969f 50%, transparent 50%);
            background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px);
            background-size: 5px 5px, 5px 5px;
            background-repeat: no-repeat;
            padding-right: 22px;
        }
        .lang-select:focus {
            outline: none;
            border-color: var(--accent);
        }
        .brand-sub {
            margin: 0 0 22px;
            font-size: 12px;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: var(--hazard);
            font-weight: 600;
            text-align: left;
            text-shadow: 0 0 18px rgba(196, 160, 53, 0.25);
        }
        .btn {
            background-color: var(--accent); color: white; border: none;
            padding: 14px; font-size: 16px; border-radius: 10px;
            cursor: pointer; width: 100%; margin-bottom: 12px; font-weight: bold;
            font-family: inherit;
        }
        .btn-secondary { background-color: #2a3138; }
        .btn-create {
            background: linear-gradient(180deg, #45a86a 0%, #348a52 100%);
            border: 1px solid #4db978;
            box-shadow: 0 0 0 1px rgba(61, 155, 95, 0.2);
        }
        .card {
            background:
                linear-gradient(165deg, rgba(32, 40, 48, 0.94) 0%, rgba(16, 20, 24, 0.96) 55%, rgba(12, 15, 18, 0.97) 100%);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid #4a5660;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.06),
                inset 0 0 0 1px rgba(0, 0, 0, 0.35),
                0 16px 48px rgba(0, 0, 0, 0.55);
            position: relative;
            backdrop-filter: blur(2px);
        }
        .card.has-back { padding-top: 52px; }
        .menu-card {
            padding-top: 22px;
        }
        .menu-meta {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            margin: 0 0 14px;
            font-size: 11px;
            color: var(--muted);
            letter-spacing: 0.4px;
            text-transform: uppercase;
        }
        .menu-meta span {
            padding: 4px 8px;
            border: 1px solid #2c353c;
            border-radius: 6px;
            background: rgba(0,0,0,0.25);
        }
        .menu-meta span:first-child {
            border-color: #3d5a6a;
            color: #9ec3d6;
        }
        .menu-meta span:last-child {
            border-color: #3d6a4a;
            color: #8fcea8;
            box-shadow: inset 0 0 0 1px rgba(61, 155, 95, 0.15);
        }
        .btn-rules {
            position: fixed;
            right: 14px;
            bottom: 14px;
            z-index: 40;
            width: auto;
            margin: 0;
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.4px;
            border-radius: 8px;
            border: 1px solid #4a5660;
            background: linear-gradient(180deg, rgba(36, 44, 52, 0.96) 0%, rgba(18, 22, 26, 0.96) 100%);
            color: #c5d0d8;
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.06),
                0 8px 24px rgba(0,0,0,0.45);
            backdrop-filter: blur(6px);
            cursor: pointer;
            font-family: inherit;
            text-transform: uppercase;
        }
        .btn-rules:hover { border-color: var(--hazard); color: #fff; }
        .rules-body {
            text-align: left;
            font-size: 14px;
            line-height: 1.45;
            color: #c8d0d6;
            max-height: min(72vh, 640px);
            overflow-y: auto;
            padding-right: 4px;
            -webkit-overflow-scrolling: touch;
        }
        .rules-body h3 {
            margin: 16px 0 6px;
            font-family: "Rajdhani", sans-serif;
            font-size: 18px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--hazard);
        }
        .rules-body h3:first-child { margin-top: 0; }
        .rules-body p { margin: 0 0 8px; }
        .rules-body ul {
            margin: 0 0 8px;
            padding-left: 18px;
        }
        .rules-body li { margin-bottom: 4px; }
        .btn-back {
            position: absolute;
            top: 12px;
            left: 12px;
            width: auto;
            margin: 0;
            padding: 6px 10px;
            font-size: 12px;
            font-weight: 600;
            line-height: 1;
            background: #2a2a2a;
            border: 1px solid #555;
            color: #ccc;
            border-radius: 8px;
            z-index: 2;
        }
        .screen-topbar {
            position: absolute;
            top: 12px;
            left: 0;
            right: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            min-height: 28px;
            padding: 0 86px 0 72px;
            box-sizing: border-box;
        }
        .room-title {
            margin: 0;
            font-size: 16px;
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.2px;
        }
        .room-title span { color: #248bcf; }
        .round-corner {
            position: absolute;
            top: 12px;
            right: 10px;
            z-index: 2;
            padding: 5px 9px;
            border-left: 2px solid #248bcf;
            background: #222;
            border-radius: 0 8px 8px 0;
            font-size: 12px;
            font-weight: 700;
            color: #d0d0d0;
            letter-spacing: 0.3px;
            white-space: nowrap;
            line-height: 1;
        }
        .btn-name {
            background: #1a1a1a;
            border: 1px dashed #666;
            color: #ddd;
        }
        .name-block {
            margin-top: 28px;
            padding-top: 18px;
            border-top: 1px solid #333;
        }
        .hint { color: #888; font-size: 14px; margin-top: 0; }
        .lobby-note {
            color: #aaa;
            font-size: 14px;
            margin: 8px 0 18px;
        }
        .trait-list {
            text-align: left;
            margin: 12px 0 0;
            padding: 0;
            list-style: none;
        }
        .trait-list li {
            background: #161616;
            border: 1px solid #333;
            border-radius: 8px;
            padding: 10px 12px;
            margin-bottom: 8px;
        }
        .trait-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .trait-main { flex: 1; text-align: left; }
        .btn-tiny {
            width: auto;
            margin: 0;
            padding: 8px 12px;
            font-size: 13px;
            white-space: nowrap;
        }
        .player-list {
            list-style: none;
            padding: 0;
            margin: 8px 0 20px;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .player-item {
            background: #171717;
            border: 1px solid #2f2f2f;
            border-radius: 12px;
            padding: 14px 14px 12px;
        }
        .player-name {
            display: block;
            color: #ffffff;
            cursor: pointer;
            text-decoration: none;
            font-size: 19px;
            font-weight: 700;
            line-height: 1.2;
        }
        .turn-dot {
            display: none;
        }
        .player-item.eliminated {
            opacity: 0.42;
            filter: grayscale(0.7);
            background: #121212;
            border-color: #262626;
            box-shadow: none;
        }
        .player-item.away {
            opacity: 0.4;
            filter: grayscale(0.65);
            border-style: dashed;
        }
        .away-mark {
            font-size: 11px;
            font-weight: 600;
            color: #8b969f;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .player-item.accused {
            border-color: #c9a14a;
            box-shadow: 0 0 10px rgba(201, 161, 74, 0.35);
        }
        .player-item.turn {
            border-color: #3dcf7a;
            box-shadow: 0 0 10px rgba(61, 207, 122, 0.4);
        }
        .phase-bar {
            display: flex;
            gap: 4px;
            margin: 0 0 12px;
            overflow-x: auto;
        }
        .phase-step {
            flex: 1;
            min-width: 0;
            min-height: 40px;
            padding: 6px 4px;
            border-radius: 8px;
            background: #171717;
            border: 1px solid #2c2c2c;
            color: #666;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            line-height: 1.2;
        }
        .phase-step.active {
            color: #e8e8e8;
            border-color: #248bcf;
            background: #1a2430;
        }
        .phase-timer {
            margin: 0 0 12px;
            font-size: 22px;
            font-weight: 800;
            color: #f0f0f0;
            font-variant-numeric: tabular-nums;
            letter-spacing: 1px;
        }
        .phase-timer.hidden { display: none; }
        .vote-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 10px;
        }
        .vote-count {
            font-size: 12px;
            color: #aaa;
            font-weight: 600;
        }
        .vote-immune {
            font-size: 12px;
            font-weight: 700;
            color: #c9a44a;
            letter-spacing: 0.02em;
        }
        .btn-kick {
            width: auto;
            margin: 0;
            padding: 7px 10px;
            font-size: 12px;
            background: #3a2a2a;
            border: 1px solid #664444;
            color: #f0d0d0;
        }
        .btn-kick.selected {
            background: #5a3030;
            border-color: #c66;
        }
        .pause-banner {
            display: none;
            margin: 0 0 12px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid #5a4a20;
            background: #2a2414;
            color: #f0d78c;
            font-weight: 700;
            font-size: 14px;
            text-align: center;
        }
        .pause-banner.visible { display: block; }
        .host-controls {
            display: none;
            gap: 8px;
            margin: 0 0 12px;
        }
        .host-controls.visible { display: flex; }
        .host-controls .btn {
            margin: 0;
            flex: 1;
            font-size: 13px;
            padding: 10px 8px;
        }
        .btn-pause {
            background: #3a3420;
            border: 1px solid #6a5a30;
            color: #f0e0b0;
        }
        .settings-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin: 12px 0 20px;
            text-align: left;
        }
        .setting-row {
            position: relative;
            background: #171717;
            border: 1px solid #2f2f2f;
            border-radius: 12px;
            padding: 12px 10px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 10px;
            min-height: 96px;
        }
        .setting-row-toggle {
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding-right: 28px;
            min-height: 96px;
        }
        .setting-row-toggle .setting-label {
            padding-right: 4px;
        }
        .setting-row-toggle .ios-switch {
            align-self: flex-start;
            margin-top: auto;
        }
        .setting-label-row {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            min-width: 0;
        }
        .setting-label {
            font-size: 12px;
            color: #bbb;
            margin: 0;
            font-weight: 600;
            line-height: 1.3;
        }
        .setting-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }
        .setting-value {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 800;
            color: #f0f0f0;
            font-variant-numeric: tabular-nums;
        }
        .setting-value .unit {
            font-size: 11px;
            font-weight: 600;
            color: #888;
            margin-left: 2px;
        }
        .step-btn {
            width: 36px;
            height: 36px;
            margin: 0;
            padding: 0;
            border-radius: 10px;
            border: 1px solid #3a3a3a;
            background: #222;
            color: #eee;
            font-size: 18px;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
            flex-shrink: 0;
        }
        .step-btn:disabled {
            opacity: 0.35;
            cursor: default;
        }
        .setting-info {
            position: absolute;
            top: 8px;
            right: 8px;
            z-index: 2;
            flex-shrink: 0;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 1px solid #5a6570;
            background: #1c242c;
            color: #9eb0c0;
            font-size: 11px;
            font-weight: 700;
            font-style: italic;
            font-family: Georgia, "Times New Roman", serif;
            line-height: 1;
            padding: 0;
            margin: 0;
            cursor: help;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .setting-tip {
            display: none;
            position: absolute;
            right: 0;
            left: auto;
            bottom: auto;
            top: calc(100% + 8px);
            transform: none;
            width: min(220px, 70vw);
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px solid #3a4652;
            background: #12181e;
            color: #d7dee6;
            font-size: 12px;
            font-style: normal;
            font-weight: 500;
            font-family: "IBM Plex Sans", system-ui, sans-serif;
            line-height: 1.35;
            text-align: left;
            z-index: 20;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
            pointer-events: none;
        }
        .setting-tip::after {
            content: "";
            position: absolute;
            bottom: 100%;
            top: auto;
            left: auto;
            right: 6px;
            margin-left: 0;
            border: 5px solid transparent;
            border-bottom-color: #3a4652;
        }
        .setting-info:hover .setting-tip,
        .setting-info.is-open .setting-tip,
        .setting-info:focus-visible .setting-tip {
            display: block;
        }
        .ios-switch {
            position: relative;
            width: 51px;
            height: 31px;
            border-radius: 999px;
            border: none;
            padding: 0;
            margin: 0;
            background: #39393d;
            cursor: pointer;
            flex-shrink: 0;
            transition: background-color 0.2s ease;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
        }
        .ios-switch.is-on {
            background: #34c759;
        }
        .ios-switch:disabled {
            opacity: 0.45;
            cursor: default;
        }
        .ios-switch-knob {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 27px;
            height: 27px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
            transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
            pointer-events: none;
        }
        .ios-switch.is-on .ios-switch-knob {
            transform: translateX(20px);
        }
        .settings-readonly-note {
            margin: 0 0 8px;
            color: #888;
            font-size: 13px;
        }
        .btn-settings {
            background: #2a3340;
            border: 1px solid #3d5a78;
            color: #d8e6f5;
            margin-bottom: 10px;
        }
        .victory-panel {
            display: none;
            margin: 0 0 16px;
            padding: 14px 12px;
            border-radius: 12px;
            border: 1px solid #2f5a3a;
            background: linear-gradient(160deg, #142018 0%, #1a1a1a 100%);
            text-align: left;
        }
        .victory-panel.visible { display: block; }
        .victory-panel h3 {
            margin: 0 0 6px;
            color: #7dcea0;
            font-size: 20px;
        }
        .victory-panel .victory-sub {
            margin: 0 0 12px;
            color: #9ab;
            font-size: 13px;
        }
        .winner-card {
            background: #171717;
            border: 1px solid #2f4a38;
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 10px;
        }
        .winner-card .winner-name {
            font-weight: 800;
            font-size: 17px;
            margin-bottom: 8px;
            color: #e8e8e8;
        }
        .winner-traits {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .winner-traits .reveal-chip {
            display: block;
        }
        .game-actions-locked .btn-kick,
        .game-actions-locked #reveal-disabled {
            pointer-events: none;
            opacity: 0.45;
        }
        .threat-banner {
            background: #1a1f24;
            border: 1px solid #333;
            border-left: 3px solid #c44;
            border-radius: 10px;
            padding: 10px 12px;
            margin: 4px 0 16px;
            text-align: left;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .threat-banner-main {
            min-width: 0;
            flex: 1;
        }
        .threat-banner .threat-kicker {
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #a66;
            font-weight: 700;
            margin-bottom: 2px;
        }
        .threat-banner .threat-title {
            font-size: 16px;
            font-weight: 800;
            color: #fff;
            margin: 0;
            line-height: 1.25;
        }
        .threat-banner .btn-tiny {
            flex-shrink: 0;
            margin: 0;
            background: #2a2a2a;
            border: 1px solid #444;
        }
        .game-nav-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 8px;
        }
        .game-nav-buttons .btn {
            margin: 0;
            width: 100%;
            font-size: 14px;
            padding: 12px 8px;
        }
        .action-log-panel {
            margin: 12px 0 0;
            padding: 10px 12px;
            border: 1px solid var(--panel-border);
            background: rgba(22, 27, 32, 0.85);
            border-radius: 12px;
            text-align: left;
        }
        .action-log-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 6px;
        }
        .action-log-head h4 {
            margin: 0;
            font-size: 13px;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--muted);
        }
        .btn-icon-log {
            width: 32px;
            height: 32px;
            padding: 0;
            border-radius: 8px;
            border: 1px solid #3a4550;
            background: #1a2128;
            color: var(--text);
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .btn-icon-log:hover {
            border-color: var(--accent);
            color: #fff;
        }
        .action-log-list {
            list-style: none;
            padding: 0;
            margin: 0;
            max-height: 120px;
            overflow: hidden;
        }
        .action-log-list-full {
            max-height: min(60vh, 420px);
            overflow: auto;
        }
        .action-log-list li {
            font-size: 13px;
            color: #c5ced6;
            padding: 6px 0;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            text-align: left;
        }
        .action-log-list li:last-child { border-bottom: none; }
        .action-log-empty { color: var(--muted); }
        .action-log-modal {
            position: fixed;
            inset: 0;
            z-index: 80;
            background: rgba(0, 0, 0, 0.62);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px 14px;
        }
        .action-log-modal.hidden { display: none; }
        .action-log-modal-card {
            width: min(440px, 100%);
            max-height: 80vh;
            overflow: hidden;
            background: #14191e;
            border: 1px solid #2f3a43;
            border-radius: 14px;
            padding: 14px;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .action-log-modal-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .action-log-modal-head h3 {
            margin: 0;
            font-size: 16px;
        }
        #actions-screen .action-cards-list {
            margin-top: 12px;
            display: grid;
            gap: 10px;
            text-align: left;
        }
        .chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }
        .info-chip {
            background: #1c1c1c;
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            padding: 6px 8px;
            font-size: 12px;
            color: #ddd;
            font-weight: 600;
        }
        .scenario-block {
            text-align: left;
            background: #161616;
            border: 1px solid #333;
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 12px;
        }
        .scenario-block h3 {
            margin: 0 0 8px;
            font-size: 15px;
            color: #fff;
        }
        .scenario-block p {
            margin: 0;
            color: #bbb;
            font-size: 14px;
            line-height: 1.45;
        }
        .scenario-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin: 10px 0;
        }
        .scenario-meta div {
            background: #1c1c1c;
            border-radius: 8px;
            padding: 8px;
        }
        .scenario-meta span {
            display: block;
            font-size: 11px;
            color: #777;
            margin-bottom: 2px;
        }
        .scenario-meta strong {
            font-size: 14px;
            color: #eee;
        }
        .player-reveals {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px;
        }
        .reveal-chip {
            display: inline-block;
            background: #222;
            border: 1px solid #3a3a3a;
            color: #cfcfcf;
            border-radius: 8px;
            padding: 5px 8px;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.25;
        }
        .reveal-chip .chip-label {
            display: block;
            font-size: 10px;
            color: #888;
            font-weight: 500;
            margin-bottom: 1px;
        }
        .reveal-chip.latest {
            background: #1c2a33;
            border-color: #3f8fbf;
            color: #e8f6ff;
            box-shadow: 0 0 10px rgba(36, 139, 207, 0.45);
        }
        .reveal-chip.latest .chip-label { color: #7eb8d8; }
        .section-title {
            text-align: left;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #777;
            margin: 4px 0 10px;
            font-weight: 700;
        }
        .trait-hidden { color: #666; }
        .trait-label {
            display: block;
            color: #888;
            font-size: 12px;
            margin-bottom: 4px;
        }
        .trait-value {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .trait-info-btn {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            min-width: 22px;
            min-height: 22px;
            padding: 0;
            margin: 0 0 0 4px;
            border-radius: 50%;
            border: 1.5px solid #7eb8d8;
            background: #1e3a4a;
            color: #e8f6ff;
            font-size: 12px;
            font-weight: 700;
            font-style: italic;
            font-family: Georgia, "Times New Roman", serif;
            line-height: 1;
            cursor: pointer;
            flex-shrink: 0;
            vertical-align: middle;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            z-index: 2;
        }
        .trait-info-btn:hover,
        .trait-info-btn:focus-visible {
            border-color: #fff;
            color: #fff;
            background: #2f8fbf;
            outline: none;
        }
        .trait-info-btn:active {
            transform: scale(0.94);
        }
        /* Подсказка при наведении (десктоп) */
        @media (hover: hover) and (pointer: fine) {
            .trait-info-btn[data-hint]::after {
                content: attr(data-hint);
                position: absolute;
                left: 50%;
                bottom: calc(100% + 8px);
                transform: translateX(-50%);
                width: max-content;
                max-width: min(260px, 70vw);
                padding: 8px 10px;
                border-radius: 8px;
                background: #0f1418;
                border: 1px solid #3f8fbf;
                color: #e8f6ff;
                font-size: 12px;
                font-style: normal;
                font-weight: 500;
                font-family: "IBM Plex Sans", sans-serif;
                line-height: 1.35;
                text-align: left;
                white-space: normal;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.12s ease;
                z-index: 90;
            }
            .trait-info-btn[data-hint]:hover::after,
            .trait-info-btn[data-hint]:focus-visible::after {
                opacity: 1;
            }
        }
        .chip-value {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
        }
        .reveal-chip .trait-info-btn {
            width: 20px;
            height: 20px;
            min-width: 20px;
            min-height: 20px;
            font-size: 11px;
        }
        .trait-hint-card {
            max-width: 420px;
        }
        .trait-hint-body {
            margin: 0;
            text-align: left;
            color: #d0d8de;
            font-size: 15px;
            line-height: 1.5;
            white-space: pre-wrap;
        }
        input {
            width: 100%; padding: 14px; font-size: 18px; border-radius: 10px;
            border: 1px solid #444; background-color: #222; color: white;
            box-sizing: border-box; text-align: center; margin-bottom: 15px;
        }
        .pin-input { letter-spacing: 4px; }
        .name-input { letter-spacing: normal; font-size: 16px; }

        .action-cards-list {
            display: grid;
            gap: 10px;
        }
        .action-card {
            border: 1px solid #2f3a43;
            border-radius: 10px;
            padding: 12px;
            background: #12171b;
        }
        .action-card.is-pending {
            border-color: var(--accent);
            box-shadow: inset 0 0 0 1px rgba(47, 143, 191, 0.35);
        }
        .action-card-title {
            font-weight: 700;
            margin-bottom: 6px;
        }
        .action-card-desc {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.35;
            margin-bottom: 10px;
        }
        .action-card-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }
        .action-target-picker {
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid #2a333b;
            text-align: left;
        }
        .action-target-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 8px 0 10px;
        }
        .action-showcase {
            margin: 12px 0;
            padding: 14px;
            border-radius: 12px;
            border: 1px solid rgba(196, 160, 53, 0.45);
            background: linear-gradient(180deg, rgba(196,160,53,0.14), rgba(18,23,27,0.9));
            text-align: left;
        }
        .action-showcase.hidden { display: none; }
        .action-showcase-kicker {
            font-size: 12px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--hazard);
            margin-bottom: 6px;
        }
        .action-showcase-text {
            font-size: 15px;
            line-height: 1.4;
            margin-bottom: 8px;
        }
        .action-showcase-timer {
            font-size: 12px;
            color: var(--muted);
        }

        .game-nav-buttons .btn.is-disabled,
        .game-nav-buttons .btn:disabled {
            opacity: 0.38;
            cursor: not-allowed;
            filter: grayscale(0.35);
            pointer-events: none;
        }
