        :root {
            --bg: #050b14;
            --panel: rgba(12, 18, 28, 0.9);
            --panel-strong: rgba(18, 28, 40, 0.96);
            --line: rgba(140, 180, 255, 0.18);
            --text: #ffffff;
            --muted: #d1dbe7;
            --green: #60f5a1;
            --green-deep: #2ecf74;
            --amber: #ffdb70;
            --red: #ff6677;
            --blue: #7bc4ff;
            --shadow: 0 0 26px rgba(72, 170, 255, 0.2);
            --footer-text: #ffffff;
        }

        :root {
            --bg: #e9ede4;
            --panel: #f8f9f4;
            --panel-strong: #ffffff;
            --line: #d2d9ce;
            --text: #111111;
            --muted: #3e4a44;
            --green: #d8f46a;
            --green-deep: #bdd94d;
            --amber: #e77a52;
            --red: #d85042;
            --blue: #315646;
            --shadow: 0 24px 70px rgba(35, 50, 39, 0.16);
            --night: #17251e;
            --font-ui: "Space Grotesk", "Trebuchet MS", sans-serif;
            --font-data: "DM Mono", Consolas, monospace;
            --footer-text: #111111;
        }

        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            min-height: 100%;
            font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
            background:
                radial-gradient(circle at top, rgba(36, 68, 112, 0.62), transparent 35%),
                linear-gradient(180deg, #030910 0%, #07111a 55%, #03070c 100%);
            color: var(--text);
        }

        body {
            display: grid;
            place-items: center;
            padding: 28px 18px;
        }

        body {
            display: grid;
            place-items: center;
            padding: 28px;
        }

        .panel {
            width: min(100%, 460px);
            background: rgba(10, 16, 24, 0.8);
            border: 1px solid var(--line);
            border-radius: 18px;
            backdrop-filter: blur(12px);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px 20px 14px;
            border-bottom: 1px solid var(--line);
            background: rgba(255, 255, 255, 0.015);
        }

        .topbar {
            min-height: 76px;
            padding: 16px 24px;
            background: var(--night);
            border-bottom: 3px solid var(--green);
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-size: 12px;
            color: var(--muted);
        }

        .brand {
            gap: 13px;
            color: #f4f6ec;
            font-size: 14px;
            letter-spacing: 0.04em;
        }

        .brand-mark {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--green);
            box-shadow: 0 0 18px rgba(96, 245, 161, 0.9);
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 600;
            color: var(--muted);
            padding: 7px 10px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.02);
        }

        .status-pill {
            color: #d1d9d0;
            padding: 8px 11px;
            border: 1px solid rgba(244, 246, 236, 0.2);
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.04);
            font-family: var(--font-data);
            font-size: 11px;
        }

        .status-dot {
            width: 9px;
            height: 9px;
            background: var(--green);
            border-radius: 50%;
            box-shadow: 0 0 14px rgba(96, 245, 161, 0.9);
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: var(--green);
            box-shadow: 0 0 0 3px rgba(216, 244, 106, 0.13);
        }

        .status-pill.error .status-dot {
            background: var(--red);
            box-shadow: 0 0 14px rgba(255, 102, 119, 0.8);
        }

        .status-pill.error .status-dot {
            background: var(--red);
            box-shadow: 0 0 0 3px rgba(216, 80, 66, 0.16);
        }

        .status-pill.away .status-dot {
            background: #8a938a;
            box-shadow: 0 0 0 3px rgba(138, 147, 138, 0.15);
        }

        .content {
            padding: 22px 20px 18px;
        }

        .content {
            padding: 0;
            background: var(--panel);
        }

        .login-box,
        .controls {
            display: block;
        }

        .login-box,
        .controls {
            display: grid;
            grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
        }

        .login-box.hidden,
        .controls.hidden {
            display: none;
        }

        /* The reorg gives #controls its own display:flex (below), and
           an ID beats the two-class .controls.hidden above, so the
           hidden class stopped hiding the console (2026-11-14, Bill:
           the console showed on live when nobody was connected).
           This ID + class rule wins over #controls alone, so hiding
           works again. Staging keeps the console visible by never
           adding the class (voice.ts setLoginVisible). */
        #controls.hidden {
            display: none;
        }

        .eyebrow {
            margin: 0 0 12px;
            font-size: 12px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--muted);
        }

        .eyebrow {
            margin: 0 0 8px;
            color: #758279;
            font-family: var(--font-data);
            font-size: 11px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        label {
            display: block;
            margin-bottom: 10px;
            font-size: 12px;
            color: var(--muted);
        }

        input {
            width: 100%;
            border: 1px solid rgba(140, 180, 255, 0.18);
            background: rgba(6, 12, 18, 0.9);
            color: var(--text);
            border-radius: 12px;
            padding: 14px 14px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        input {
            min-width: 0;
            border: 1px solid #cbd4c9;
            border-radius: 5px;
            background: #fff;
            color: var(--text);
            padding: 14px 15px;
            font-family: var(--font-data);
            font-size: 13px;
        }

        input:focus {
            border-color: rgba(123, 196, 255, 0.7);
            box-shadow: 0 0 0 4px rgba(123, 196, 255, 0.12);
        }

        input:focus {
            border-color: #577b60;
            box-shadow: 0 0 0 3px rgba(87, 123, 96, 0.14);
        }

        .button-row {
            display: flex;
            gap: 10px;
            margin-top: 16px;
        }

        button {
            flex: 1;
            border: none;
            border-radius: 12px;
            padding: 13px 14px;
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 0.04em;
            color: #06130b;
            background: linear-gradient(135deg, var(--green), var(--green-deep));
            box-shadow: 0 10px 22px rgba(46, 207, 116, 0.28);
            cursor: pointer;
            transition: transform 0.15s ease, filter 0.15s ease;
        }

        button {
            min-height: 48px;
            border-radius: 5px;
            padding: 12px 16px;
            color: var(--night);
            background: var(--green);
            box-shadow: none;
            font-family: var(--font-ui);
            font-size: 13px;
            letter-spacing: 0.02em;
        }

        button:hover {
            transform: translateY(-1px);
            filter: brightness(1.03);
        }

        button.secondary {
            background: linear-gradient(135deg, rgba(125, 139, 172, 0.28), rgba(90, 105, 125, 0.12));
            color: var(--text);
            box-shadow: none;
            border: 1px solid var(--line);
        }

        button.danger {
            background: linear-gradient(135deg, #ff7b7b, #ff5b6d);
            color: #fff;
            box-shadow: 0 10px 20px rgba(255, 96, 116, 0.22);
        }

        .card {
            background: rgba(255, 255, 255, 0.015);
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 14px 14px 10px;
            margin-top: 18px;
        }

        .mic-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 14px;
        }

        .mic {
            width: 88px;
            height: 88px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background: linear-gradient(135deg, rgba(123, 196, 255, 0.32), rgba(70, 111, 255, 0.32));
            border: 1px solid rgba(123, 196, 255, 0.4);
            box-shadow: inset 0 0 20px rgba(142, 196, 255, 0.18), 0 0 18px rgba(85, 158, 255, 0.2);
            transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
        }

        .mic.active {
            background: linear-gradient(135deg, rgba(90, 255, 170, 0.28), rgba(30, 140, 93, 0.26));
            box-shadow: inset 0 0 22px rgba(95, 255, 166, 0.18), 0 0 18px rgba(96, 245, 161, 0.34);
        }

        .mic svg {
            width: 36px;
            height: 36px;
            fill: white;
            opacity: 0.96;
        }

        .speaker-box {
            margin-top: 14px;
            border-top: 1px solid var(--line);
            padding-top: 14px;
        }

        .mini-title {
            margin: 0 0 10px;
            color: var(--muted);
            font-size: 11px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .speaker-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: 8px;
            /* Rows pack at the top: the grid default (normal) stretches
               a lone row to fill the list, so one player filled the whole
               Players card with their name in the middle. */
            align-content: start;
        }

        .speaker-list li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            background: linear-gradient(135deg, rgba(77, 195, 116, 0.22), rgba(52, 128, 87, 0.18));
            border: 1px solid rgba(96, 245, 161, 0.18);
            border-radius: 10px;
            padding: 9px 10px;
            color: var(--text);
            font-weight: 600;
            /* Fluid row text (Bill, 2026-11-19): names shrink as the
               window narrows (split-screen), full size at full width. */
            font-size: clamp(13px, 3.4vw, 16px);
        }

        .speaker-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .speaker-dino-icon {
            width: 1.1em;
            height: 1.1em;
            margin-right: 0.35em;
            vertical-align: -0.18em;
            object-fit: cover;
        }

        .speaker-distance {
            flex: 0 0 auto;
            color: var(--muted);
            font-size: 11px;
            white-space: nowrap;
        }

        .speaker-list li.empty {
            background: transparent;
            border: 1px dashed rgba(255, 255, 255, 0.1);
            color: var(--muted);
            font-style: italic;
        }

        /* Currently talking divider (Bill, 2026-11-14): the line
           between the Nearby group and the Party group. Plain text
           on the line, no card behind it. */
        .speaker-list li.speaker-divider {
            /* The divider must stay as tall as its own content (the
               label plus the Samples pill): min-height 0 let the
               grid squeeze it to 4px, so the pill painted over the
               Mute button of the row above. */
            min-height: 28px;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
            padding: 2px 4px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .speaker-list li.speaker-divider::before,
        .speaker-list li.speaker-divider::after {
            content: '';
            flex: 1;
            border-top: 1px solid var(--line);
        }

        /* Not-in-voice divider pins (Bill, 2026-11-19, v448): the
           divider is the first row of the not-in-voice list, so it
           scrolled away with the rows and the section lost its
           marker. position: sticky on the grid item pins it at the
           top of the list's scrollport (verified headless: it stays
           at the list top while rows scroll beneath). Scoped to
           #gamePlayersNotInVoice so the Party divider in the
           Currently talking list is untouched. The opaque panel
           background keeps rows from showing through the label. */
        #gamePlayersNotInVoice li.speaker-divider {
            position: sticky;
            top: 0;
            z-index: 5;
            background: var(--panel);
        }

        .log {
            margin-top: 18px;
            background: rgba(5, 11, 20, 0.9);
            border: 1px solid var(--line);
            border-radius: 12px;
            color: var(--amber);
            font-family: "Consolas", monospace;
            font-size: 11px;
            max-height: 130px;
            overflow: auto;
            padding: 10px 12px;
            white-space: pre-wrap;
            word-break: break-word;
        }

        :root {
            --bg: #e9ede4;
            --panel: #f8f9f4;
            --panel-strong: #ffffff;
            --line: #d2d9ce;
            --text: #17261f;
            --muted: #69776e;
            --green: #d8f46a;
            --green-deep: #bdd94d;
            --amber: #e77a52;
            --red: #d85042;
            --blue: #315646;
            --shadow: 0 24px 70px rgba(35, 50, 39, 0.16);
            --night: #17251e;
            --font-ui: "Space Grotesk", "Trebuchet MS", sans-serif;
            --font-data: "DM Mono", Consolas, monospace;
            --grid-line: rgba(23, 38, 31, 0.035);
            --panel-outline: rgba(23, 38, 31, 0.12);
            --topbar-text: #f4f6ec;
            --topbar-muted: #d1d9d0;
            --topbar-border: rgba(244, 246, 236, 0.22);
            --input-border: #cbd4c9;
            --input-bg: #ffffff;
            --focus: #577b60;
            --mic-rest: #263b30;
            --speaker-border: #dce2d8;
            --speaker-bg: #ffffff;
            --speaker-distance: #52645a;
            --speaker-empty-border: #ccd5ca;
            --speaker-empty: #77847a;
        }

        :root[data-theme="dark"] {
            --bg: #0d1611;
            --panel: #1b2921;
            --panel-strong: #26382c;
            --line: #49634f;
            --text: #edf3e9;
            --muted: #a5b2a6;
            --green: #6fa287;
            --green-deep: #1f9d61;
            --red: #ff7662;
            --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
            --night: #0c130f;
            --grid-line: rgba(190, 242, 205, 0.055);
            --panel-outline: rgba(190, 242, 205, 0.16);
            --topbar-muted: #c1cec2;
            --topbar-border: rgba(190, 242, 205, 0.22);
            --input-border: #51705c;
            --input-bg: #26382c;
            --focus: #b4d857;
            --speaker-border: #49634f;
            --speaker-bg: #26382c;
            --speaker-distance: #c1cec2;
            --speaker-empty-border: #51705c;
            --speaker-empty: #a5b2a6;
        }

        html,
        body {
            min-height: 100%;
            font-family: var(--font-ui);
            background-color: var(--bg);
            background-image:
                linear-gradient(var(--grid-line) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
            background-size: 36px 36px;
            color: var(--text);
        }

        body {
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 28px;
        }

        .panel {
            width: min(100%, 960px);
            background: var(--panel);
            border: 1px solid var(--panel-outline);
            border-radius: 8px;
            box-shadow: var(--shadow);
            overflow: hidden;
            animation: arrive 420ms ease-out both;
        }

        .topbar {
            min-height: 76px;
            padding: 16px 24px;
            background: var(--night);
            border-bottom: 3px solid var(--green);
        }

        .brand {
            gap: 13px;
            color: var(--topbar-text);
            font-size: 14px;
            letter-spacing: 0.04em;
        }

        .brand-mark {
            width: 12px;
            height: 12px;
            border-radius: 3px;
            background: var(--green);
            box-shadow: none;
            transform: rotate(45deg);
        }

        .status-pill {
            color: var(--topbar-muted);
            padding: 8px 11px;
            border: 1px solid var(--topbar-border);
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.04);
            font-family: var(--font-data);
            font-size: 11px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: var(--green);
            box-shadow: 0 0 0 3px rgba(216, 244, 106, 0.13);
        }

        .status-pill.error .status-dot {
            background: var(--red);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
        }

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

        .install-button {
            display: inline-flex;
            flex: 0 0 auto;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 36px;
            padding: 0 10px;
            border: 1px solid var(--topbar-border);
            border-radius: 5px;
            color: var(--topbar-text);
            background: rgba(255, 255, 255, 0.04);
            box-shadow: none;
            font-size: 11px;
        }

        .install-button:hover {
            transform: none;
            filter: none;
            border-color: var(--green);
            background: rgba(255, 255, 255, 0.08);
        }

        .install-button[hidden] {
            display: none;
        }

        .install-button svg {
            width: 11px;
            height: 11px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .permission-note {
            grid-column: 1 / -1;
            margin: 0;
            color: var(--muted);
            font-size: 12px;
        }

        .install-help {
            grid-column: 1 / -1;
            color: var(--muted);
            font-size: 12px;
        }

        .install-help[hidden] {
            display: none;
        }

        .install-help summary {
            color: var(--text);
            font-weight: 600;
            cursor: pointer;
        }

        .install-help p {
            margin: 7px 0 0;
        }

        .theme-switch {
            display: inline-flex;
            gap: 2px;
            padding: 3px;
            border: 1px solid var(--topbar-border);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.04);
        }

        .theme-switch .theme-option {
            flex: 0 0 auto;
            min-height: 30px;
            padding: 5px 9px;
            border: 0;
            border-radius: 3px;
            background: transparent;
            color: var(--topbar-muted);
            box-shadow: none;
            font-size: 11px;
        }

        .theme-switch .theme-option:hover {
            transform: none;
            filter: none;
        }

        .theme-switch .theme-option[aria-pressed="true"] {
            background: var(--green);
            color: var(--night);
        }

        .discord-link {
            display: grid;
            place-items: center;
            width: 36px;
            height: 36px;
            border: 1px solid var(--topbar-border);
            border-radius: 5px;
            color: var(--topbar-text);
            transition: background-color 150ms ease, border-color 150ms ease;
        }

        .discord-link:hover {
            border-color: var(--green);
            background: rgba(255, 255, 255, 0.08);
        }

        .discord-link:focus-visible {
            outline: 3px solid var(--focus);
            outline-offset: 3px;
        }

        .discord-link img {
            display: block;
            width: 18px;
            height: 18px;
        }

        .content {
            padding: 0;
            background: var(--panel);
        }

        .site-tabs {
            display: flex;
            gap: 6px;
            padding: 12px 18px 0;
            border-bottom: 1px solid var(--speaker-border);
            background: var(--panel);
        }

        .site-tab {
            flex: 0 0 auto;
            min-height: 40px;
            padding: 9px 14px;
            border: 1px solid transparent;
            border-bottom: 0;
            border-radius: 5px 5px 0 0;
            color: var(--muted);
            background: transparent;
            box-shadow: none;
        }

        .site-tab:hover {
            transform: none;
            filter: none;
            color: var(--text);
            background: color-mix(in srgb, var(--speaker-bg) 70%, transparent);
        }

        .site-tab[aria-selected="true"] {
            border-color: var(--speaker-border);
            color: var(--text);
            background: var(--speaker-bg);
        }

        .site-tab:focus-visible {
            outline: 3px solid var(--focus);
            outline-offset: 2px;
        }

        .tab-panel[hidden] {
            display: none;
        }

        .tab-panel>.server-health-section {
            width: 100%;
            margin: 0;
            padding: 18px;
        }

        .server-health-section {
            width: min(100%, 720px);
            margin-top: 16px;
        }

        .server-health-card {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid var(--speaker-border);
            border-radius: 6px;
            background: var(--speaker-bg);
        }

        .server-health-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .server-health-heading .mini-title {
            margin-bottom: 5px;
        }

        .server-health-heading h2 {
            margin: 0;
            color: var(--text);
            font-size: 16px;
            font-weight: 600;
        }

        .server-health-status {
            flex: 0 0 auto;
            padding: 4px 7px;
            border: 1px solid var(--speaker-border);
            border-radius: 4px;
            color: var(--muted);
            font-family: var(--font-data);
            font-size: 10px;
        }

        .server-health-status[data-state="good"] {
            color: var(--green-deep);
        }

        .server-health-status[data-state="warning"] {
            color: var(--amber);
        }

        .server-health-status[data-state="low"],
        .server-health-status[data-state="error"] {
            color: var(--red);
        }

        .server-health-meter {
            height: 5px;
            overflow: hidden;
            border-radius: 4px;
            background: color-mix(in srgb, var(--muted) 18%, transparent);
        }

        .server-health-meter-fill {
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: var(--green-deep);
            transition: width 250ms ease, background-color 250ms ease;
        }

        .server-health-card[data-state="warning"] .server-health-meter-fill {
            background: var(--amber);
        }

        .server-health-card[data-state="low"] .server-health-meter-fill {
            background: var(--red);
        }

        /* Bill, 2026-11-13: table layout, one stat per row, label left,
           value right. No two stats share a row, so a tall grouped stat
           (Game version, Tick rate, CPU) can no longer leave a short
           stat sitting in a big empty box. */
        .server-health-table {
            margin-top: 12px;
        }

        .server-health-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            padding: 10px 0;
            border-bottom: 1px solid var(--line);
        }

        .server-health-row:last-child {
            border-bottom: none;
        }

        .server-health-row > span {
            color: var(--muted);
            font-size: 13px;
            padding-top: 2px;
            flex-shrink: 0;
        }

        .server-health-row > strong {
            color: var(--text);
            font-family: var(--font-data);
            font-size: 15px;
            font-weight: 500;
            text-align: right;
        }

        .server-health-value {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            min-width: 0;
        }

        .server-health-value strong {
            color: var(--text);
            font-family: var(--font-data);
            font-size: 15px;
            font-weight: 500;
        }

        .server-health-value span {
            color: var(--muted);
            font-size: 11px;
        }

        /* Bill, 2026-11-13: grouped stats (tick rate, game version, CPU)
           keep their numbers stacked under a single label. Value left,
           sub-label right, space-between so the VALUES share one left
           edge and stack directly on top of each other (a right-packed
           row drifts when "Current"/"Latest" differ in width). */
        .server-health-sub-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 8px;
        }

        /* Bill, 2026-11-16: the Current version row is hidden when it
           matches Latest (same number twice adds nothing); its display
           rule would otherwise beat the hidden attribute. */
        .server-health-sub-row[hidden] {
            display: none;
        }

        /* The "Update available" line + Release notes link under the version
           rows. Shown only when an update is waiting; collapses when the
           server is up to date. */
        .server-health-update-row {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 4px 8px;
        }

        .server-health-update-row span {
            color: var(--text);
        }

        .server-health-release-notes {
            color: var(--muted);
            font-size: 11px;
        }

        .server-health-updated {
            margin: 10px 0 0;
            color: var(--muted);
            font-size: 11px;
        }

        /* Admin box-health card (Bill, 2026-11-19): the per-core bars
           are one row of boxes, the same diagram as the game-thread
           explainer — a fill rising from the bottom of each cell, the
           busiest core outlined. Fluid like the rest of the card: 8
           columns that shrink with the viewport, clamp type. */
        .admin-health-cores {
            display: grid;
            grid-template-columns: repeat(8, minmax(0, 1fr));
            gap: 6px;
            margin: 4px 0 12px;
        }

        .admin-health-core {
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            gap: 2px;
            min-height: 58px;
            padding: 6px 2px;
            border: 1px solid var(--speaker-border);
            border-radius: 6px;
            background: var(--speaker-bg);
        }

        .admin-health-core-fill {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 0;
            background: color-mix(in srgb, var(--green-deep) 22%, transparent);
            transition: height 400ms ease;
        }

        .admin-health-core[data-band="warning"] .admin-health-core-fill {
            background: color-mix(in srgb, var(--amber) 30%, transparent);
        }

        .admin-health-core[data-band="low"] .admin-health-core-fill {
            background: color-mix(in srgb, var(--red) 30%, transparent);
        }

        .admin-health-core.busiest {
            border-color: var(--amber);
        }

        .admin-health-core strong,
        .admin-health-core span {
            position: relative;
            z-index: 1;
        }

        .admin-health-core strong {
            color: var(--text);
            font-family: var(--font-data);
            font-size: clamp(12px, 3.4vw, 15px);
            font-weight: 600;
        }

        .admin-health-core span {
            color: var(--muted);
            font-size: clamp(9px, 2.6vw, 11px);
        }

        .server-offline-notice {
            margin-top: 16px;
            padding: 16px 18px;
            border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--speaker-border));
            border-left: 4px solid var(--amber);
            border-radius: 6px;
            color: var(--text);
            background: color-mix(in srgb, var(--amber) 9%, var(--speaker-bg));
            font-size: 13px;
            line-height: 1.55;
        }

        .server-offline-notice[hidden] {
            display: none;
        }

        .server-offline-notice p {
            margin: 0;
        }

        .server-offline-notice p+p {
            margin-top: 8px;
        }

        .server-offline-notice a {
            color: var(--text);
            font-weight: 700;
            text-decoration-thickness: 1px;
            text-underline-offset: 2px;
        }

        .tab-panel>.status-overview-section {
            width: 100%;
            margin: 0;
            padding: 18px 18px 0;
        }

        .status-overview-section {
            width: min(100%, 720px);
            margin-top: 16px;
        }

        .status-card {
            width: 100%;
            margin-bottom: 14px;
            padding: 14px 16px;
            border: 1px solid var(--speaker-border);
            border-radius: 6px;
            background: var(--speaker-bg);
        }

        .status-card h3 {
            margin: 0;
            color: var(--text);
            font-size: 15px;
            font-weight: 600;
        }

        .status-rows {
            display: grid;
            gap: 2px;
            margin: 4px 0 0;
            padding: 0;
            list-style: none;
        }

        .status-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 2px;
            border-bottom: 1px solid color-mix(in srgb, var(--speaker-border) 55%, transparent);
        }

        .status-row:last-child {
            border-bottom: 0;
        }

        :root {
            --led-good: #1e9e62;
        }

        :root[data-theme="dark"] {
            --led-good: #3ddc84;
        }

        .status-row-dot {
            flex: 0 0 auto;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--muted);
        }

        .status-row-dot[data-state="good"] {
            background: var(--led-good);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--led-good) 20%, transparent),
                0 0 7px color-mix(in srgb, var(--led-good) 45%, transparent);
        }

        :root[data-theme="dark"] .status-pill.error .status-dot {
            background: var(--red);
            box-shadow: 0 0 0 3px rgba(216, 80, 66, 0.16);
        }

        :root[data-theme="dark"] .status-pill.away .status-dot {
            background: #8a938a;
            box-shadow: 0 0 0 3px rgba(138, 147, 138, 0.15);
        }

        .status-row-dot[data-state="warning"] {
            background: var(--amber);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 18%, transparent);
        }

        .status-row-dot[data-state="error"] {
            background: var(--red);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent);
        }

        .status-row-name {
            flex: 0 0 auto;
            color: var(--text);
            font-size: 14px;
            font-weight: 600;
        }

        .status-row-detail {
            flex: 1 1 auto;
            min-width: 0;
            color: var(--muted);
            font-size: 12px;
        }

        .status-updated {
            margin: 10px 0 0;
            color: var(--muted);
            font-size: 11px;
        }

        .alderon-incident {
            margin-top: 12px;
            padding: 12px 14px;
            border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--speaker-border));
            border-left: 4px solid var(--amber);
            border-radius: 6px;
            background: color-mix(in srgb, var(--amber) 9%, var(--speaker-bg));
            font-size: 13px;
            line-height: 1.55;
        }

        .alderon-incident[hidden] {
            display: none;
        }

        .alderon-incident p {
            margin: 6px 0 0;
        }

        .alderon-incident a {
            color: var(--text);
            font-weight: 700;
        }

        .tab-panel>.status-strip {
            margin: 18px 18px 0;
        }

        /* The strip sits above the tabs since 3.4.2, visible on every
           tab: same side inset as it had in the panel, plus room
           above the tab bar. */
        .content>.status-strip {
            margin: 18px 18px 18px;
        }

        .content>.fight-card {
            margin: 18px 18px 18px;
        }

        .status-strip {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 16px;
            padding: 10px 14px;
            border: 1px solid var(--speaker-border);
            border-radius: 6px;
            background: var(--speaker-bg);
            cursor: pointer;
        }

        .status-strip:hover {
            border-color: var(--muted);
        }

        .status-strip:focus-visible {
            outline: 3px solid var(--focus);
            outline-offset: 2px;
        }

        .status-strip-item {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: var(--muted);
            font-size: 12px;
        }

        .status-strip-item .status-row-dot {
            width: 8px;
            height: 8px;
        }

        .status-strip-more {
            margin-left: auto;
            color: var(--text);
            font-size: 12px;
            font-weight: 600;
        }

        .field-report-list {
            display: grid;
            gap: 2px;
            margin: 10px 0 0;
            padding: 0;
            list-style: none;
        }

        .field-report-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            padding: 6px 2px;
            border-bottom: 1px solid color-mix(in srgb, var(--speaker-border) 55%, transparent);
            color: var(--text);
            font-size: 13px;
        }

        .field-report-row:last-child {
            border-bottom: 0;
        }

        .field-report-row strong {
            font-family: var(--font-data);
            font-size: 14px;
            font-weight: 600;
        }

        .field-report-note {
            margin: 10px 0 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }

        .tab-panel>.donate-wrap {
            width: 100%;
            margin: 0;
            padding: 18px;
        }

        .donate-wrap {
            width: min(100%, 720px);
            margin: 16px auto 0;
            color: var(--text);
            font-size: 14px;
            line-height: 1.6;
        }

        .donate-wrap h2 {
            margin: 0 0 10px;
            font-size: 20px;
            font-weight: 600;
        }

        .donate-wrap h3 {
            margin: 22px 0 8px;
            font-size: 16px;
            font-weight: 600;
        }

        .donate-wrap p {
            margin: 0 0 10px;
        }

        .donate-bill {
            display: grid;
            gap: 2px;
            margin: 10px 0;
            padding: 12px 14px;
            border: 1px solid var(--speaker-border);
            border-radius: 6px;
            background: var(--speaker-bg);
        }

        .donate-bill-row {
            padding: 5px 0;
            font-size: 13px;
        }

        .donate-bill-row strong {
            font-family: var(--font-data);
            font-weight: 600;
            white-space: nowrap;
        }

        .donate-meter {
            margin: 12px 0;
            padding: 14px 12px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: var(--panel-strong);
            font-size: 13px;
            font-weight: 600;
            text-align: center;
        }

        .donate-links .donation-link {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 9px;
            min-width: 0;
            min-height: 50px;
            padding: 8px 12px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.2;
            text-decoration: none;
            transition: filter 0.2s ease, transform 0.2s ease;
        }

        .donate-links .donation-link:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }

        .donate-links .donation-link:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 3px;
        }

        @media (max-width: 680px) {
            .status-row {
                flex-wrap: wrap;
            }

            .status-row-detail {
                flex: 1 1 100%;
                order: 3;
                padding-left: 20px;
            }

            .status-strip-more {
                margin-left: 0;
            }
        }

        .login-box {
            width: min(100%, 720px);
            margin: 0 auto;
            padding: 54px 36px 60px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 160px;
            align-items: end;
            gap: 12px;
        }

        .login-intro {
            grid-column: 1 / -1;
            margin-bottom: 12px;
        }

        .eyebrow {
            margin: 0 0 8px;
            color: var(--muted);
            font-family: var(--font-data);
            font-size: 11px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        input {
            min-width: 0;
            border: 1px solid var(--input-border);
            border-radius: 5px;
            background: var(--input-bg);
            color: var(--text);
            padding: 14px 15px;
            font-family: var(--font-data);
            font-size: 13px;
        }

        input:focus {
            border-color: var(--focus);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent);
        }

        .button-row {
            display: flex;
            gap: 10px;
            margin-top: 0;
        }

        .permission-help {
            grid-column: 1 / -1;
            padding: 14px 16px;
            border: 1px solid color-mix(in srgb, var(--red) 45%, var(--panel-outline));
            border-radius: 5px;
            color: var(--text);
            background: color-mix(in srgb, var(--red) 8%, var(--panel));
            font-size: 13px;
            line-height: 1.5;
        }

        .permission-help[hidden] {
            display: none;
        }

        .permission-help summary {
            color: var(--text);
            font-weight: 700;
            cursor: pointer;
        }

        .permission-help p {
            margin: 8px 0 0;
            color: var(--muted);
        }

        button {
            min-height: 48px;
            border-radius: 5px;
            padding: 12px 16px;
            color: var(--night);
            background: var(--green);
            box-shadow: none;
            font-family: var(--font-ui);
            font-size: 13px;
            letter-spacing: 0.02em;
        }

        button:hover {
            transform: translateY(-1px);
            filter: brightness(0.97);
        }

        button:focus-visible {
            outline: 3px solid var(--focus);
            outline-offset: 3px;
        }

        button.secondary {
            border: 1px solid var(--topbar-border);
            background: transparent;
            color: var(--topbar-text);
        }

        button.secondary {
            border: 1px solid rgba(244, 246, 236, 0.25);
            background: transparent;
            color: #f4f6ec;
        }

        .controls {
            min-height: 380px;
            display: grid;
            grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
        }

        .voice-console {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 36px;
            background: var(--night);
        }

        .mic-wrap {
            margin-bottom: 24px;
        }

        .mic {
            width: 112px;
            height: 112px;
            background: var(--mic-rest);
            border: 1px solid var(--topbar-border);
            box-shadow: inset 0 0 0 8px rgba(244, 246, 236, 0.035);
        }

        .mic {
            width: 112px;
            height: 112px;
            background: var(--mic-rest);
            border: 1px solid var(--topbar-border);
            box-shadow: inset 0 0 0 8px rgba(244, 246, 236, 0.035);
        }

        .mic.active {
            background: var(--green);
            border-color: var(--green);
            box-shadow: inset 0 0 0 8px rgba(23, 38, 31, 0.08);
        }

        .mic svg {
            fill: var(--topbar-text);
        }

        .mic svg {
            fill: var(--topbar-text);
        }

        .mic.active svg {
            fill: var(--night);
        }

        .mic.speaking {
            animation: mic-speaking 0.7s ease-in-out infinite alternate;
        }

        @keyframes mic-speaking {
            from {
                transform: scale(1);
                box-shadow: inset 0 0 0 8px rgba(23, 38, 31, 0.08), 0 0 0 0 rgba(244, 246, 236, 0);
            }

            to {
                transform: scale(1.1);
                box-shadow: inset 0 0 0 8px rgba(23, 38, 31, 0.08), 0 0 0 6px var(--topbar-text), 0 0 0 11px var(--green);
            }
        }

        .voice-console .button-row {
            width: min(100%, 280px);
        }

        .voice-console button:not(.secondary) {
            background: var(--green);
        }

        .speaker-box {
            align-self: center;
            width: 100%;
            margin: 0;
            padding: 34px 32px;
            border: 0;
        }

        .mini-title {
            margin-bottom: 16px;
            color: var(--muted);
            font-family: var(--font-data);
            font-size: 11px;
            letter-spacing: 0.08em;
        }

        .mini-title {
            margin: 0 0 10px;
            color: var(--muted);
            font-size: 11px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .speaker-list {
            gap: 8px;
        }

        .speaker-list li {
            min-height: 48px;
            border: 1px solid var(--speaker-border);
            border-left: 3px solid var(--green-deep);
            border-radius: 4px;
            padding: 10px 12px;
            background: var(--speaker-bg);
            color: var(--text);
            font-size: 13px;
        }

        .speaker-list li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            background: linear-gradient(135deg, rgba(77, 195, 116, 0.22), rgba(52, 128, 87, 0.18));
            border: 1px solid rgba(96, 245, 161, 0.18);
            border-radius: 10px;
            padding: 9px 10px;
            color: var(--text);
            font-weight: 600;
            /* Fluid row text (Bill, 2026-11-19): names shrink as the
               window narrows (split-screen), full size at full width. */
            font-size: clamp(13px, 3.4vw, 16px);
        }

        .speaker-distance {
            color: var(--speaker-distance);
            font-family: var(--font-data);
            font-size: 10px;
        }

        .speaker-distance {
            flex: 0 0 auto;
            color: var(--muted);
            font-size: 11px;
            white-space: nowrap;
        }

        .speaker-list li.empty {
            border: 1px dashed var(--speaker-empty-border);
            color: var(--speaker-empty);
            background: transparent;
        }

        .speaker-list li.empty {
            background: transparent;
            border: 1px dashed var(--speaker-empty-border);
            color: var(--speaker-empty);
        }

        .meter-box,
        .meter,
        .meter-fill,
        .proximity,
        .card,
        .log {
            display: none;
        }

        @keyframes arrive {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

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

        @media (max-width: 680px) {
            body {
                padding: 14px;
                place-items: start center;
            }

            .panel {
                margin: auto 0;
            }

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

            .topbar {
                min-height: 76px;
                padding: 16px 24px;
                background: var(--night);
                border-bottom: 3px solid var(--green);
            }

            .content {
                padding: 0;
            }

            .login-box {
                grid-template-columns: minmax(0, 1fr);
                padding: 40px 20px 44px;
                gap: 10px;
            }

            .login-box .button-row {
                grid-column: 1;
            }

            .controls {
                min-height: 0;
                grid-template-columns: minmax(0, 1fr);
            }

            .voice-console {
                padding: 28px 20px;
            }

            .mic {
                width: 96px;
                height: 96px;
            }

            .speaker-box {
                padding: 25px 20px 28px;
            }
        }

        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }

        :root {
            --aero-text: #111111;
            --aero-muted: #404b4d;
            --aero-glass: rgba(239, 246, 238, 0.72);
            --aero-glass-strong: rgba(247, 250, 242, 0.86);
            --aero-edge: rgba(255, 255, 255, 0.88);
            --aero-highlight: rgba(255, 255, 255, 0.64);
        }

        :root[data-theme="dark"] {
            --aero-text: #ffffff;
            --aero-muted: #dfe9ea;
            --aero-glass: rgba(27, 43, 35, 0.76);
            --aero-glass-strong: rgba(32, 49, 39, 0.88);
            --aero-edge: rgba(232, 245, 228, 0.48);
            --aero-highlight: rgba(235, 249, 230, 0.24);
            --footer-text: #ffffff;
        }

        html,
        body {
            color: var(--aero-text);
            background-color: #687d69;
            background-image:
                radial-gradient(ellipse at 18% 12%, rgba(255, 255, 248, 0.82), transparent 22%),
                radial-gradient(ellipse at 82% 16%, rgba(226, 237, 220, 0.74), transparent 27%),
                radial-gradient(ellipse at 74% 88%, rgba(144, 177, 125, 0.8), transparent 33%),
                radial-gradient(ellipse at 22% 100%, rgba(86, 132, 96, 0.86), transparent 35%),
                linear-gradient(180deg, #c5d6ca 0%, #a9c0b2 46%, #829f88 70%, #526f5c 100%);
            background-attachment: fixed;
            background-size: cover;
        }

        body {
            padding: 32px;
        }

        .panel {
            isolation: isolate;
            border: 1px solid var(--aero-edge);
            border-radius: 16px;
            background: var(--aero-glass);
            box-shadow:
                0 28px 80px rgba(4, 39, 66, 0.34),
                0 3px 10px rgba(8, 48, 77, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(24px) saturate(150%);
            -webkit-backdrop-filter: blur(24px) saturate(150%);
        }

        .topbar {
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid rgba(255, 255, 255, 0.76);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 46%),
                linear-gradient(110deg, rgba(54, 83, 68, 0.91), rgba(93, 124, 98, 0.88) 52%, rgba(49, 76, 63, 0.92));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 1px 8px rgba(6, 49, 82, 0.14);
        }

        .topbar>* {
            position: relative;
            z-index: 1;
        }

        .brand {
            color: #f7fbf3;
            text-shadow: 0 1px 2px rgba(22, 43, 31, 0.55);
        }

        .brand-mark {
            border: 1px solid rgba(255, 255, 255, 0.88);
            border-radius: 50%;
            background: radial-gradient(circle at 32% 28%, #fff 0 10%, #e2f1d7 18%, #a8d27f 50%, #558c54 100%);
            box-shadow: 0 0 12px rgba(215, 244, 195, 0.76), inset 0 1px 2px #fff;
        }

        .status-pill,
        .theme-switch,
        .discord-link {
            border-color: rgba(243, 250, 239, 0.62);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(222, 237, 216, 0.12));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 1px 4px rgba(29, 57, 39, 0.12);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .status-pill {
            color: #f7fbf3;
        }

        .status-dot {
            box-shadow: 0 0 0 3px rgba(220, 255, 226, 0.22), 0 0 9px rgba(226, 255, 235, 0.8);
        }

        .theme-switch .theme-option {
            color: #f7fbf3;
        }

        .theme-switch .theme-option[aria-pressed="true"] {
            color: #344c3b;
            background: linear-gradient(180deg, #fff, #e1edd9);
            box-shadow: inset 0 1px 0 #fff, 0 1px 4px rgba(28, 55, 37, 0.2);
        }

        .content {
            background: linear-gradient(145deg, rgba(251, 252, 246, 0.7), rgba(228, 237, 220, 0.48));
        }

        :root[data-theme="dark"] .content {
            background: linear-gradient(145deg, rgba(27, 43, 35, 0.68), rgba(15, 29, 22, 0.78));
        }

        .eyebrow,
        .mini-title {
            color: var(--aero-muted);
        }

        input {
            border: 1px solid rgba(127, 154, 132, 0.68);
            border-radius: 7px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 243, 229, 0.84));
            box-shadow: inset 0 1px 3px rgba(50, 71, 54, 0.12), 0 1px 0 rgba(255, 255, 255, 0.8);
            color: #2d4436;
        }

        :root[data-theme="dark"] input {
            border-color: rgba(164, 190, 165, 0.5);
            background: linear-gradient(180deg, rgba(18, 30, 22, 0.9), rgba(35, 53, 39, 0.88));
            color: var(--aero-text);
        }

        input:focus {
            border-color: #71975d;
            box-shadow: 0 0 0 3px rgba(137, 184, 105, 0.24), inset 0 1px 3px rgba(50, 71, 54, 0.1);
        }

        button {
            border: 1px solid rgba(255, 255, 255, 0.9);
            border-radius: 7px;
            color: #fff;
            background: linear-gradient(180deg, #d6e4ce 0%, #a9c69a 48%, #789d6d 51%, #8daf7e 100%);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -1px 0 rgba(38, 77, 40, 0.24), 0 2px 5px rgba(35, 58, 37, 0.2);
            text-shadow: 0 1px 1px rgba(37, 69, 38, 0.5);
        }

        button:hover {
            filter: brightness(1.08);
            box-shadow: inset 0 1px 0 #fff, 0 0 0 2px rgba(244, 250, 239, 0.55), 0 3px 8px rgba(35, 58, 37, 0.24);
        }

        button:active {
            transform: translateY(1px);
            filter: brightness(0.94);
        }

        button.secondary {
            border-color: rgba(240, 249, 235, 0.74);
            color: #f7fbf3;
            background: linear-gradient(180deg, rgba(243, 250, 239, 0.26), rgba(173, 203, 163, 0.16));
            text-shadow: 0 1px 2px rgba(23, 42, 27, 0.72);
        }

        .voice-console {
            background:
                linear-gradient(180deg, rgba(239, 248, 232, 0.16), transparent 42%),
                linear-gradient(145deg, rgba(61, 83, 65, 0.94), rgba(31, 51, 37, 0.96));
            box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .mic {
            border: 1px solid rgba(244, 250, 239, 0.88);
            background: radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.84), rgba(207, 226, 194, 0.58) 28%, rgba(116, 157, 103, 0.74) 70%, rgba(56, 91, 61, 0.9));
            box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.48), inset 0 -8px 18px rgba(27, 62, 34, 0.34), 0 8px 22px rgba(16, 31, 19, 0.32);
        }

        .mic.active {
            border-color: rgba(255, 255, 255, 0.94);
            background: radial-gradient(circle at 34% 24%, #fff 0%, #e9ffd1 15%, #a5e778 43%, #62bb57 72%, #31934e 100%);
            box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.74), inset 0 -8px 18px rgba(21, 103, 49, 0.3), 0 8px 22px rgba(0, 24, 47, 0.32);
        }

        .mic svg {
            filter: drop-shadow(0 1px 1px rgba(25, 49, 30, 0.45));
        }

        .mic.active svg {
            fill: #235d36;
        }

        @keyframes mic-speaking {
            from {
                transform: scale(1);
                box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.74), inset 0 -8px 18px rgba(21, 103, 49, 0.3), 0 8px 22px rgba(0, 24, 47, 0.32), 0 0 0 0 rgba(231, 250, 255, 0);
            }

            to {
                transform: scale(1.1);
                box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.74), inset 0 -8px 18px rgba(21, 103, 49, 0.3), 0 8px 22px rgba(0, 24, 47, 0.32), 0 0 0 6px rgba(242, 252, 255, 0.96), 0 0 0 12px rgba(69, 191, 239, 0.8);
            }
        }

        .voice-console button:not(.secondary) {
            color: #fff;
            background: linear-gradient(180deg, #a4e98c 0%, #72ca68 48%, #45a64f 51%, #5bbb5b 100%);
            text-shadow: 0 1px 1px rgba(29, 92, 39, 0.55);
        }

        .speaker-box {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(220, 241, 252, 0.12));
        }

        .speaker-list li {
            border: 1px solid rgba(164, 188, 158, 0.7);
            border-left: 3px solid #45aa68;
            border-radius: 7px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(231, 240, 224, 0.76));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 5px rgba(53, 78, 49, 0.1);
            color: #30493a;
        }

        :root[data-theme="dark"] .speaker-list li {
            border-color: rgba(164, 190, 165, 0.38);
            background: linear-gradient(180deg, rgba(55, 78, 59, 0.88), rgba(32, 53, 37, 0.9));
            color: var(--aero-text);
        }

        :root[data-theme="dark"] .speaker-list li.speaker-divider {
            background: transparent;
            border: none;
            box-shadow: none;
            color: var(--muted);
        }

        /* The generic dark rule above sets the divider background
           transparent, which would let rows show through the pinned
           divider in dark theme. Scoped to the not-in-voice list so
           the Party divider keeps its transparent background. */
        :root[data-theme="dark"] #gamePlayersNotInVoice li.speaker-divider {
            background: var(--panel);
        }

        .speaker-distance {
            color: var(--aero-muted);
        }

        .speaker-list li.empty {
            border-color: rgba(132, 160, 127, 0.6);
            background: rgba(255, 255, 255, 0.26);
            color: var(--aero-muted);
        }

        :root[data-theme="dark"] .speaker-list li.empty {
            border-color: rgba(181, 204, 177, 0.42);
            background: rgba(17, 32, 21, 0.24);
        }

        @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
            .panel {
                background: var(--aero-glass-strong);
            }
        }

        @media (max-width: 680px) {
            body {
                padding: 14px;
            }

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

        html,
        body {
            background-color: #dce6dc;
            background-image:
                radial-gradient(ellipse at 14% 8%, rgba(255, 255, 255, 0.82), transparent 34%),
                radial-gradient(ellipse at 92% 86%, rgba(155, 186, 145, 0.42), transparent 36%),
                linear-gradient(145deg, #e8eee8 0%, #d9e4db 48%, #cbd9cd 100%);
        }

        :root[data-theme="dark"] body {
            background-color: #101913;
            background-image:
                radial-gradient(ellipse at 14% 8%, rgba(70, 103, 74, 0.32), transparent 34%),
                radial-gradient(ellipse at 92% 86%, rgba(44, 78, 49, 0.34), transparent 36%),
                linear-gradient(145deg, #19251d 0%, #111a14 55%, #0c130f 100%);
        }

        body {
            padding: 36px 20px;
        }

        .panel {
            width: min(100%, 900px);
            border: 1px solid rgba(255, 255, 255, 0.72);
            border-radius: 20px;
            background: rgba(248, 251, 247, 0.62);
            box-shadow: 0 30px 90px rgba(34, 56, 38, 0.18), 0 2px 8px rgba(34, 56, 38, 0.08);
            backdrop-filter: blur(28px) saturate(125%);
            -webkit-backdrop-filter: blur(28px) saturate(125%);
        }

        :root[data-theme="dark"] .panel {
            border-color: rgba(223, 239, 220, 0.14);
            background: rgba(24, 35, 27, 0.72);
            box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.16);
        }

        .topbar {
            min-height: 72px;
            padding: 14px 24px;
            border-bottom: 1px solid rgba(71, 98, 73, 0.12);
            background: rgba(247, 250, 246, 0.58);
            box-shadow: none;
        }

        :root[data-theme="dark"] .topbar {
            border-bottom-color: rgba(232, 244, 228, 0.1);
            background: rgba(31, 45, 34, 0.58);
        }

        .brand {
            color: #283b2e;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-shadow: none;
        }

        .brand-dino-mark img {
            width: 52px;
            height: 26px;
            object-fit: cover;
            border-radius: 6px;
        }

        .brand-dino-mark {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 52px;
            width: 52px;
            height: 26px;
            white-space: nowrap;
            font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
            font-size: 17px;
            line-height: 1;
        }

        :root:not([data-theme="dark"]) .install-button {
            border-color: rgba(81, 108, 82, 0.32);
            color: #283b2e;
            background: rgba(255, 255, 255, 0.6);
        }

        :root:not([data-theme="dark"]) .install-button:hover {
            border-color: #638f53;
            background: rgba(255, 255, 255, 0.88);
        }

        :root[data-theme="dark"] .brand {
            color: #e6efe4;
        }

        :root[data-theme="dark"] .install-button {
            border-color: rgba(221, 238, 216, 0.24);
            color: #e6efe4;
            background: rgba(238, 247, 234, 0.06);
        }

        :root[data-theme="dark"] .install-button:hover {
            border-color: var(--green);
            background: rgba(238, 247, 234, 0.12);
        }

        .brand-mark {
            width: 11px;
            height: 11px;
            border-radius: 50%;
            box-shadow: 0 0 0 4px rgba(104, 155, 91, 0.12);
        }

        .status-pill,
        .theme-switch,
        .discord-link {
            border-color: rgba(81, 108, 82, 0.18);
            background: rgba(255, 255, 255, 0.36);
            box-shadow: none;
        }

        :root[data-theme="dark"] .status-pill,
        :root[data-theme="dark"] .theme-switch,
        :root[data-theme="dark"] .discord-link {
            border-color: rgba(221, 238, 216, 0.16);
            background: rgba(238, 247, 234, 0.06);
        }

        .status-pill {
            color: #536658;
        }

        :root[data-theme="dark"] .status-pill {
            color: #cad9c9;
        }

        .theme-switch .theme-option {
            color: #536658;
        }

        :root[data-theme="dark"] .theme-switch .theme-option {
            color: #cad9c9;
        }

        .theme-switch .theme-option[aria-pressed="true"] {
            background: rgba(99, 143, 83, 0.15);
            color: #355638;
            box-shadow: none;
        }

        :root[data-theme="dark"] .theme-switch .theme-option[aria-pressed="true"] {
            background: rgba(167, 205, 136, 0.17);
            color: #e7f2dc;
        }

        .discord-link img {
            filter: brightness(0) saturate(100%) invert(29%) sepia(12%) saturate(816%) hue-rotate(75deg) brightness(92%);
        }

        :root[data-theme="dark"] .discord-link img {
            filter: none;
        }

        .content {
            background: rgba(248, 251, 247, 0.24);
        }

        :root[data-theme="dark"] .content {
            background: rgba(11, 19, 13, 0.12);
        }

        .login-box {
            padding-top: 64px;
            padding-bottom: 68px;
        }

        .eyebrow,
        .mini-title {
            letter-spacing: 0.12em;
        }

        .login-intro .eyebrow {
            margin: 0;
            min-width: 0;
            font-family: var(--font-ui);
            /* Fluid heading (2026-11-16): shrinks with the window
               instead of holding a 24px floor in a narrow pane. */
            font-size: clamp(20px, 6.5vw, 32px);
            font-weight: 600;
            line-height: 1.1;
            letter-spacing: -0.03em;
            text-transform: none;
        }

        input {
            min-height: 52px;
            border-color: rgba(88, 115, 88, 0.2);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.68);
            box-shadow: inset 0 1px 2px rgba(31, 48, 32, 0.04);
            color: #293b2d;
            font-family: var(--font-ui);
            font-size: 14px;
        }

        :root[data-theme="dark"] input {
            border-color: rgba(197, 220, 189, 0.18);
            background: rgba(9, 17, 11, 0.36);
            color: #edf4ea;
        }

        input:focus {
            border-color: #83a86b;
            box-shadow: 0 0 0 4px rgba(130, 168, 107, 0.14);
        }

        .join-code-box {
            display: grid;
            min-width: 0;
            gap: 5px;
            padding: 10px 14px;
            border: 1px solid rgba(88, 115, 88, 0.2);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.68);
            box-shadow: inset 0 1px 2px rgba(31, 48, 32, 0.04);
        }

        .join-code-box:focus-within {
            border-color: #83a86b;
            box-shadow: 0 0 0 4px rgba(130, 168, 107, 0.14);
        }

        .remembered-box {
            display: grid;
            gap: 8px;
            margin: 0 0 10px;
            padding: 10px 13px;
            border: 1px solid rgba(88, 115, 88, 0.25);
            border-radius: 10px;
            background: rgba(131, 168, 107, 0.08);
        }

        .remembered-box[hidden] {
            display: none;
        }

        .remembered-text {
            margin: 0;
        }

        .join-code-box textarea,
        :root[data-theme="dark"] .join-code-box textarea {
            width: 100%;
            padding: 2px 0;
            border: 0;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            color: var(--text);
            font: inherit;
            line-height: 1.4;
            resize: none;
            overflow: hidden;
        }

        .join-code-box textarea:focus {
            border: 0;
            box-shadow: none;
        }

        :root[data-theme="dark"] .join-code-box {
            border-color: rgba(197, 220, 189, 0.18);
            background: rgba(9, 17, 11, 0.36);
        }

        :root[data-theme="dark"] .join-code-box:focus-within {
            border-color: #83a86b;
        }

        button {
            min-height: 48px;
            border: 1px solid #557b50;
            border-radius: 10px;
            padding: 12px 18px;
            background: #527a4e;
            box-shadow: 0 4px 10px rgba(46, 75, 46, 0.14);
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            text-shadow: none;
            transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
        }

        button:hover {
            background: #426b43;
            box-shadow: 0 6px 14px rgba(46, 75, 46, 0.19);
            filter: none;
        }

        button:active {
            background: #385d3a;
        }

        button:focus-visible {
            outline-color: #719764;
            outline-offset: 3px;
        }

        button.secondary {
            border-color: rgba(230, 242, 224, 0.3);
            background: rgba(255, 255, 255, 0.08);
            box-shadow: none;
            color: #edf4ea;
        }

        button.secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            box-shadow: none;
        }

        .voice-console {
            background: linear-gradient(150deg, rgba(49, 70, 51, 0.94), rgba(30, 47, 34, 0.96));
            box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
        }

        .mic {
            border-color: rgba(255, 255, 255, 0.62);
            box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.28), 0 12px 28px rgba(12, 26, 14, 0.3);
        }

        .mic.active {
            background: radial-gradient(circle at 34% 24%, #f4ffe9 0%, #c5eba6 24%, #8fc574 62%, #649b59 100%);
            box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.58), 0 12px 28px rgba(12, 26, 14, 0.3);
        }

        .mic.active svg {
            fill: #345b35;
        }

        .speaker-box {
            padding: 38px 36px;
        }

        .mini-title {
            margin-bottom: 18px;
            font-family: var(--font-ui);
            font-size: 12px;
            font-weight: 700;
        }

        .speaker-list {
            gap: 10px;
        }

        .speaker-list li {
            min-height: 50px;
            padding: 12px 14px;
            border-color: rgba(96, 127, 91, 0.16);
            border-left-width: 3px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.52);
            box-shadow: none;
        }

        :root[data-theme="dark"] .speaker-list li {
            border-color: rgba(207, 228, 199, 0.14);
            background: rgba(236, 246, 231, 0.06);
        }

        .speaker-list li.empty {
            border-style: dashed;
            background: rgba(255, 255, 255, 0.18);
            font-weight: 500;
        }

        @media (max-width: 680px) {
            body {
                padding: 16px 12px;
            }

            .panel {
                border-radius: 16px;
            }

            .topbar {
                min-height: 64px;
                padding: 10px 14px;
            }

            .header-actions {
                gap: 7px;
            }

            .status-pill {
                gap: 6px;
                padding: 7px 8px;
                font-size: 10px;
            }

            .login-box {
                padding: 42px 22px 46px;
            }

            .speaker-box {
                padding: 28px 22px;
            }
        }

        .donation-banner {
            width: min(100%, 460px);
            margin: 28px auto 0;
            padding: 22px;
            text-align: center;
            color: var(--muted);
            font-family: var(--font-data);
            font-size: 10px;
            letter-spacing: 0.04em;
            border: 1px solid var(--line);
            border-radius: 18px;
            background: var(--panel);
            box-shadow: var(--shadow);
        }

        .donation-banner p {
            margin: 0 0 8px;
            line-height: 1.5;
        }

        .donation-banner .donation-title {
            margin: 0 0 14px;
            color: var(--text);
            font-family: var(--font-ui, "Segoe UI", sans-serif);
            font-size: 20px;
            font-weight: 600;
        }

        .donation-banner .voice-minutes-meter {
            margin: 0 0 12px;
            padding: 14px 12px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: var(--panel-strong);
            font-family: var(--font-ui, "Segoe UI", sans-serif);
            font-size: 13px;
            font-weight: 600;
        }

        .voice-minutes-meter strong {
            display: block;
            margin: 4px 0;
            color: var(--accent);
            font-size: 28px;
            font-variant-numeric: tabular-nums;
        }

        .voice-minutes-detail {
            font-size: 10px;
            font-weight: 400;
        }

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

        .donation-banner .donation-link {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 9px;
            min-width: 0;
            min-height: 50px;
            padding: 8px 12px;
            border-radius: 10px;
            font-family: var(--font-ui, "Segoe UI", sans-serif);
            font-size: 13px;
            font-weight: 700;
            line-height: 1.2;
            text-decoration: none;
            transition: filter 0.2s ease, transform 0.2s ease;
        }

        .donation-banner .donation-link:hover {
            filter: brightness(1.08);
            text-decoration: none;
            transform: translateY(-1px);
        }

        .donation-banner .donation-link:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 3px;
        }

        .donation-link--paypal {
            background: #003087;
            color: #ffffff !important;
        }

        .donation-link--coffee {
            background: #ffdd00;
            color: #1f1f1f !important;
        }

        .donation-link--venmo {
            background: #008cff;
            color: #ffffff !important;
        }

        .donation-icon {
            flex: 0 0 25px;
            width: 25px;
            height: 25px;
        }

        @media (max-width: 360px) {
            .donation-links {
                grid-template-columns: 1fr;
            }
        }

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

        .site-footer {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 12px 22px 16px;
            border-top: 1px solid rgba(81, 108, 82, 0.12);
            color: var(--footer-text, #111111);
            font-family: var(--font-data);
            font-size: 10px;
            letter-spacing: 0.04em;
            text-align: center;
        }

        :root[data-theme="dark"] .donation-banner,
        :root[data-theme="dark"] .site-footer {
            border-top-color: rgba(221, 238, 216, 0.1);
            color: var(--footer-text, #ffffff);
        }

        @media (max-width: 680px) {

            .donation-banner,
            .site-footer {
                padding-left: 16px;
                padding-right: 16px;
            }
        }

        .speaker-column {
            display: grid;
            align-content: center;
            gap: 0;
            min-width: 0;
        }

        .controls {
            min-height: 0;
            grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
            gap: 18px;
            padding: 18px;
        }

        .player-rosters,
        .voice-side {
            min-width: 0;
            overflow: hidden;
            align-self: stretch;
            border: 1px solid rgba(255, 255, 255, 0.54);
            border-radius: 14px;
            background: rgba(248, 251, 247, 0.28);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
        }

        :root[data-theme="dark"] .player-rosters,
        :root[data-theme="dark"] .voice-side {
            border-color: rgba(223, 239, 220, 0.12);
            background: rgba(11, 19, 13, 0.2);
        }

        .player-rosters {
            display: grid;
            align-content: start;
        }

        .voice-side {
            display: grid;
            grid-template-rows: auto 1fr;
        }

        .player-rosters .speaker-box,
        .voice-side .speaker-box {
            align-self: stretch;
            margin: 0;
            padding: 24px;
        }

        .player-rosters .speaker-box+.speaker-box,
        .voice-side .speaker-box {
            border-top: 1px solid rgba(81, 108, 82, 0.12);
        }

        :root[data-theme="dark"] .player-rosters .speaker-box+.speaker-box,
        :root[data-theme="dark"] .voice-side .speaker-box {
            border-top-color: rgba(221, 238, 216, 0.1);
        }

        .voice-side .voice-console {
            min-height: 250px;
            padding: 24px;
            background: linear-gradient(150deg, rgba(49, 70, 51, 0.94), rgba(30, 47, 34, 0.96));
            box-shadow: none;
        }

        .voice-side .mic-wrap {
            margin-bottom: 18px;
        }

        .voice-side .speaker-box {
            background: transparent;
        }

        .player-roster {
            padding-top: 0;
        }

        /* Bill's rule (2026-11-10): the not-in-voice group is out of
           the layout entirely while its count is 0. The .speaker-list
           is display:grid, which beats the hidden attribute, so the
           group needs this explicit rule. */
        #gamePlayersNotInVoice[hidden] {
            display: none;
        }

        /* Voice Link reorganized (Bill, 2026-11-12): single-column flow.
           Voice controls are the primary section at the top, nearby
           players sit directly under them, then the two lists (in voice
           / not in voice), and diagnostics + spatial audio are grouped
           as support at the bottom. The #controls ID selector wins over
           the .controls class rules, so this is one column at every
           width; gap and padding still follow the existing .controls
           rules per breakpoint. */
        #controls {
            grid-template-columns: minmax(0, 1fr);
        }

        /* Primary voice console: keeps the dark gradient it had inside
           .voice-side, now full width at the top. No forced min-height;
           the card hugs its content. */
        #controls .voice-console {
            min-height: 0;
            padding: 28px 24px;
            background: linear-gradient(150deg, rgba(49, 70, 51, 0.94), rgba(30, 47, 34, 0.96));
            box-shadow: none;
            border-radius: 14px;
        }

        /* Each section sits in the flow (Bill, 2026-11-14: the
           translucent card look from the reorg is reverted to live;
           sections read as live does, separated by the base
           border-top). */
        #controls > .speaker-box {
            margin: 0;
            padding: 24px;
        }

        /* Support pair: diagnostics + spatial audio side by side when
           there is room, stacked on narrow screens. One fluid grid,
           not a per-device swap. */
        #controls .support-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 18px;
        }

        #controls .support-row .speaker-box {
            margin: 0;
            padding: 24px;
        }

        /* Voice Link refinements (Bill, 2026-11-12): equal-height
           player lists, internal scroll, support takes less room,
           not-in-voice collapses to give the rest space. The deeper
           accent green from this block is reverted (Bill,
           2026-11-14): the tab uses live's greens again, and any
           colour change comes later. */

        /* Equal-height player lists: #controls is a flex column and
           the list cards share the free height equally, so they
           are always the same height. The console and the support row
           keep their natural height, so they take less room than the
           lists. When the not-in-voice box hides at count 0, or the
           Party box hides while groupless, it leaves the flex flow
           entirely, and the remaining lists grow to fill the freed
           space. */
        #controls {
            display: flex;
            flex-direction: column;
            min-height: 1020px;
        }

        #controls > .speaker-box {
            flex: 1 1 0;
            min-height: 150px;
            align-self: stretch;
            display: flex;
            flex-direction: column;
        }

        /* A list that outgrows its card scrolls inside it instead of
           pushing the layout taller. */
        #controls > .speaker-box .speaker-list {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            scrollbar-width: thin;
        }

        #controls > .speaker-box .speaker-list::-webkit-scrollbar {
            width: 8px;
        }

        #controls > .speaker-box .speaker-list::-webkit-scrollbar-track {
            background: transparent;
        }

        #controls .voice-console,
        #controls .support-row {
            flex: 0 0 auto;
        }

        /* Party section (Bill, 2026-11-12): same card as the other
           lists, so it shares the equal height and internal scroll
           automatically. Groupless it leaves the layout entirely,
           like the not-in-voice box. The leader's crown sits next
           to their name; it keeps the emoji's own colour, no accent
           green. */
        #partyBox[hidden] {
            display: none;
        }

        #controls .party-crown {
            margin-left: 6px;
            font-size: 13px;
            line-height: 1;
        }

        /* Party list (Bill, 2026-11-16): the real party list sizes
           to its content — every member shows, the box grows as
           people join — instead of sitting at the 150px
           equal-height minimum with the second row clipped inside
           an internal scroll (the list area was 56px for a 110px
           two-row list). The sample list keeps its 264px internal
           scroll: the :not(.sample-scroll) keeps this rule from
           touching it. */
        #controls > .speaker-box#partyBox {
            flex: 0 0 auto;
        }

        #controls > .speaker-box#partyBox .speaker-list:not(.sample-scroll) {
            flex: 0 0 auto;
            overflow-y: visible;
        }

        /* Post-join Discord link row (3.1.0): sits directly below the
           voice console like the not-in-voice section, exists only
           while there is a link action to take, and is out of the
           layout entirely otherwise, so the console controls never
           move as it comes and goes. */
        .link-row {
            display: flex;
            align-items: center;
            align-self: start;
            gap: 10px;
            flex-wrap: wrap;
            padding: 12px 24px;
            border-top: 1px solid rgba(81, 108, 82, 0.12);
        }

        :root[data-theme="dark"] .link-row {
            border-top-color: rgba(221, 238, 216, 0.1);
        }

        .link-row[hidden] {
            display: none;
        }

        /* .discord-button sets display:inline-flex, which would
           otherwise override the hidden attribute on the row's
           sign-in anchor; the unused action must truly disappear. */
        .link-row [hidden] {
            display: none;
        }

        .link-row-text {
            margin: 0;
            font-size: 13px;
        }

        .player-roster-list li {
            border-left-color: #7da66e;
        }

        .player-presence {
            display: inline-flex;
            flex: 0 0 auto;
            align-items: center;
            gap: 7px;
            color: var(--aero-muted);
            /* Fluid with the row text (Bill, 2026-11-19). */
            font-size: clamp(10px, 2.8vw, 11px);
            font-weight: 500;
        }

        .player-presence::before {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #72ad69;
            box-shadow: 0 0 0 3px rgba(114, 173, 105, 0.14);
            content: "";
        }

        .player-identity {
            display: inline-flex;
            min-width: 0;
            align-items: center;
            gap: 8px;
        }

        .player-mute-button {
            flex: 0 0 auto;
            min-height: 30px;
            padding: 5px 9px;
            border: 1px solid rgba(112, 139, 108, 0.45);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.55);
            color: var(--aero-text);
            font-family: var(--font-data);
            /* Fluid with the row text (Bill, 2026-11-19). */
            font-size: clamp(9px, 2.6vw, 10px);
            letter-spacing: 0.02em;
        }

        .player-mute-button[aria-pressed="true"] {
            border-color: rgba(180, 79, 65, 0.55);
            background: rgba(180, 79, 65, 0.12);
        }

        :root[data-theme="dark"] .player-mute-button {
            border-color: rgba(196, 218, 194, 0.35);
            background: rgba(17, 32, 21, 0.48);
            color: var(--aero-text);
        }

        :root[data-theme="dark"] .player-mute-button[aria-pressed="true"] {
            border-color: rgba(255, 130, 112, 0.6);
            background: rgba(180, 79, 65, 0.24);
        }

        .player-roster-list li.empty {
            border-left: 1px dashed rgba(132, 160, 127, 0.6);
        }

        .not-in-voice-list li {
            border-left-color: #b39a63;
        }

        .not-in-voice-list li.empty {
            border-left: 1px dashed rgba(160, 143, 102, 0.58);
        }

        @media (max-width: 760px) {
            .controls {
                grid-template-columns: minmax(0, 1fr);
            }

            .voice-side {
                order: -1;
            }

            .player-rosters {
                order: 0;
            }

            .voice-side .voice-console {
                min-height: 200px;
            }
        }

        @media (max-width: 680px) {
            .controls {
                grid-template-columns: minmax(0, 1fr);
                gap: 12px;
                padding: 12px;
            }

            .server-health-section {
                margin-top: 12px;
            }

            .server-health-card {
                padding: 12px;
            }

            .player-rosters .speaker-box,
            .voice-side .speaker-box {
                padding: 22px 18px;
            }

            .voice-side .voice-console {
                min-height: 220px;
                padding: 22px;
            }
        }

        @media (max-width: 420px) {
            body {
                padding: 10px 8px;
            }

            .topbar {
                gap: 8px;
                padding: 10px;
            }

            .brand {
                gap: 8px;
                font-size: 12px;
            }

            .header-actions {
                gap: 5px;
            }

            .theme-switch .theme-option {
                padding: 4px 6px;
            }

            .status-pill {
                padding: 6px;
                font-size: 9px;
            }

            .controls {
                gap: 8px;
                padding: 8px;
            }

            .voice-side .voice-console {
                min-height: 190px;
                padding: 18px 14px;
            }

            .voice-side .mic-wrap {
                margin-bottom: 14px;
            }

            .player-rosters .speaker-box,
            .voice-side .speaker-box {
                padding: 16px 12px;
            }

            .speaker-list li {
                min-height: 44px;
                padding: 10px;
            }
        }

        /* Modern minimal theme */
        :root {
            --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
            --font-data: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
            --accent: #1f7a4d;
            --accent-hover: #17623d;
            --accent-soft: #e8f4ed;
            --text: #111827;
            --muted: #6b7280;
            --line: #e5e7eb;
            --input-border: #d1d5db;
            --focus: #1f7a4d;
            --speaker-border: #e5e7eb;
            --speaker-distance: #4b5563;
        }

        :root[data-theme="dark"] {
            --accent: #6fa287;
            --accent-hover: #82b198;
            --accent-soft: rgba(111, 162, 135, 0.13);
            --text: #f3f4f6;
            --muted: #a8bfa9;
            --focus: #6fa287;
        }

        html,
        body {
            font-family: var(--font-ui);
            font-variant-numeric: tabular-nums;
            -webkit-font-smoothing: antialiased;
        }

        html,
        body {
            background-color: #f6f7f8;
            background-image: none;
        }

        :root[data-theme="dark"] body {
            background-color: #0b0f0d;
            background-image: none;
        }

        .panel {
            border: 1px solid var(--line);
            border-radius: 16px;
            background: #ffffff;
            box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 32px rgba(17, 24, 39, 0.06);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        :root[data-theme="dark"] .panel {
            border-color: #1f2a24;
            background: #111815;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        }

        .topbar {
            background: #ffffff;
            border-bottom: 1px solid var(--line);
        }

        :root[data-theme="dark"] .topbar {
            background: #111815;
            border-bottom-color: #1f2a24;
        }

        .brand {
            color: var(--text);
            font-size: 16px;
            font-weight: 800;
            letter-spacing: -0.01em;
            text-transform: none;
        }

        :root[data-theme="dark"] .brand {
            color: var(--text);
        }

        .status-pill,
        .theme-switch,
        .discord-link {
            border-color: var(--line);
            background: #ffffff;
            border-radius: 999px;
        }

        :root[data-theme="dark"] .status-pill,
        :root[data-theme="dark"] .theme-switch,
        :root[data-theme="dark"] .discord-link {
            border-color: #26332b;
            background: #151d19;
        }

        .status-pill,
        .theme-switch .theme-option {
            color: var(--muted);
            font-weight: 500;
            letter-spacing: 0;
        }

        .theme-switch .theme-option {
            border-radius: 999px;
        }

        .theme-switch .theme-option[aria-pressed="true"] {
            background: var(--accent-soft);
            color: var(--accent);
        }

        :root[data-theme="dark"] .theme-switch .theme-option[aria-pressed="true"] {
            background: var(--accent-soft);
            color: var(--accent);
        }

        .site-tabs {
            background: #ffffff;
            border-bottom: 1px solid var(--line);
        }

        :root[data-theme="dark"] .site-tabs {
            background: #111815;
            border-bottom-color: #1f2a24;
        }

        .site-tab {
            border-radius: 0;
            border: 0;
            border-bottom: 2px solid transparent;
            background: transparent;
            box-shadow: none;
            color: var(--muted);
            font-weight: 600;
        }

        .site-tab:hover {
            color: var(--text);
        }

        .site-tab[aria-selected="true"] {
            border-bottom-color: var(--accent);
            background: transparent;
            color: var(--text);
        }

        .login-box,
        .speaker-box {
            background: transparent;
        }

        .join-code-box {
            border: 1px solid var(--input-border);
            border-radius: 12px;
            background: #ffffff;
            box-shadow: none;
        }

        .join-code-box:focus-within,
        input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px var(--accent-soft);
        }

        :root[data-theme="dark"] .join-code-box {
            border-color: #26332b;
            background: #151d19;
        }

        button {
            border: 1px solid var(--accent);
            border-radius: 12px;
            background: var(--accent);
            box-shadow: none;
            color: #ffffff;
            font-weight: 600;
        }

        button:hover {
            background: var(--accent-hover);
            border-color: var(--accent-hover);
            box-shadow: none;
        }

        :root[data-theme="dark"] button:not(.secondary) {
            color: #052e16;
        }

        .speaker-list li {
            border-color: var(--line);
            border-radius: 12px;
            background: #ffffff;
        }

        :root[data-theme="dark"] .speaker-list li {
            border-color: #26332b;
            background: #151d19;
        }

        .voice-console {
            background: #111827;
            box-shadow: none;
        }

        .donation-banner,
        .site-footer {
            font-family: var(--font-ui);
            font-size: 12px;
            letter-spacing: 0;
            color: var(--muted);
        }

        .donation-banner a,
        .site-footer a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
        }

        .site-footer {
            border-top: 0;
        }

        .brand-dino-mark img {
            border-radius: 8px;
        }

        :root {
            --green-deep: #1f7a4d;
            --green: #1f7a4d;
        }

        :root[data-theme="dark"] {
            --green-deep: #1f9d61;
            --green: #6fa287;
        }

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

        .server-health-status {
            border-radius: 999px;
            padding: 4px 10px;
            font-family: var(--font-ui);
            font-weight: 600;
        }

        .server-health-status[data-state="good"] {
            background: var(--accent-soft);
            border-color: transparent;
            color: var(--accent);
        }

        :root[data-theme="dark"] .site-tab {
            color: var(--muted);
            background: transparent;
            border-bottom-color: transparent;
        }

        :root[data-theme="dark"] .site-tab:hover {
            color: var(--text);
        }

        :root[data-theme="dark"] .site-tab[aria-selected="true"] {
            color: var(--text);
            border-bottom-color: var(--accent);
        }

        :root[data-theme="dark"] .donation-banner,
        :root[data-theme="dark"] .site-footer {
            color: var(--muted);
        }

        :root[data-theme="dark"] .donation-banner a,
        :root[data-theme="dark"] .site-footer a {
            color: var(--accent);
        }

        :root[data-theme="dark"] .status-dot {
            background: var(--led-good, #3ddc84);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--led-good, #3ddc84) 16%, transparent),
                0 0 7px color-mix(in srgb, var(--led-good, #3ddc84) 40%, transparent);
        }

        :root[data-theme="dark"] .server-health-card {
            background: #151d19;
            border-color: #26332b;
        }

        :root[data-theme="dark"] .server-health-status[data-state="good"] {
            background: var(--accent-soft);
            color: var(--accent);
        }

        html:root[data-theme="dark"] .site-tab,
        html:root[data-theme="dark"] button.site-tab:not(.secondary) {
            color: var(--muted);
        }

        html:root[data-theme="dark"] button.site-tab:not(.secondary):hover,
        html:root[data-theme="dark"] button.site-tab[aria-selected="true"] {
            color: var(--text);
        }

        html:root[data-theme="dark"] .site-footer,
        html:root[data-theme="dark"] .donation-banner,
        html:root[data-theme="dark"] .donation-banner p {
            color: var(--muted);
            --footer-text: var(--muted);
        }

        html:root[data-theme="dark"] button:not(.secondary):not(.site-tab):not(.theme-option) {
            color: #ffffff;
        }

        .brand-dino-mark {
            flex: 0 0 88px;
            width: 88px;
            height: 88px;
        }

        .brand-dino-mark img {
            width: 88px;
            height: 88px;
            object-fit: cover;
            border-radius: 0;
        }

        :root[data-theme="dark"] .brand-dino-mark img {
            content: url("icons/dino-mark-line-dark-256.png");
            filter: none;
        }

        .voice-side .voice-console {
            border: 1px solid var(--line);
            border-radius: 14px;
            background: #f9fafb;
            box-shadow: none;
        }

        :root[data-theme="dark"] .voice-side .voice-console {
            border-color: #26332b;
            background: #151d19;
        }

        .voice-side .mic {
            width: 76px;
            height: 76px;
            border: 1px solid var(--line);
            background: #ffffff;
            box-shadow: none;
        }

        .voice-side .mic svg {
            fill: var(--muted);
            filter: none;
        }

        .voice-side .mic.active {
            border-color: transparent;
            background: var(--accent-soft);
            box-shadow: none;
        }

        .voice-side .mic.active svg {
            fill: var(--accent);
        }

        .voice-side .voice-console button:not(.secondary) {
            border-color: var(--accent);
            background-color: var(--accent);
            background-image: none;
            color: #ffffff;
            text-shadow: none;
        }

        .voice-side .voice-console button:not(.secondary):hover {
            border-color: var(--accent-hover);
            background-color: var(--accent-hover);
        }

        .voice-side .mic.speaking {
            animation: mic-speaking 0.7s ease-in-out infinite alternate;
            border-color: var(--accent);
            background: var(--accent);
        }

        .voice-side .mic.speaking svg {
            fill: #ffffff;
        }

        :root[data-theme="dark"] .voice-side .mic.speaking svg {
            fill: #052e16;
        }

        @keyframes mic-speaking {
            from {
                box-shadow: 0 0 0 0 var(--accent-soft), 0 0 0 0 transparent;
            }

            to {
                box-shadow: 0 0 0 6px var(--accent-soft), 0 0 0 10px color-mix(in srgb, var(--accent) 28%, transparent);
            }
        }

        .voice-side .voice-console button.secondary {
            border-color: var(--line);
            background: transparent;
            color: var(--muted);
            text-shadow: none;
        }

        .voice-side .voice-console button.secondary:hover {
            border-color: var(--accent);
            background: var(--accent-soft);
            color: var(--accent);
        }

        /* Mobile header: two rows so nothing is squeezed */
        @media (max-width: 680px) {
            .topbar {
                flex-wrap: wrap;
                row-gap: 10px;
                padding: 14px 16px;
                min-height: 0;
            }

            .topbar .brand {
                flex: 1 1 100%;
                justify-content: flex-start;
                gap: 10px;
                font-size: 16px;
            }

            .topbar .header-actions {
                flex: 1 1 100%;
                justify-content: space-between;
                gap: 10px;
            }

            .topbar .status-pill {
                padding: 8px 12px;
                font-size: 12px;
            }

            .topbar .theme-switch .theme-option {
                padding: 7px 12px;
                font-size: 13px;
            }

            .topbar .brand-dino-mark {
                flex-basis: 84px;
                width: 84px;
            }

            .topbar .brand-dino-mark img {
                width: 84px;
                height: 46px;
            }
        }

        /* No focus outline on the join-code field */
        .join-code-box textarea,
        .join-code-box textarea:focus,
        .join-code-box textarea:focus-visible {
            outline: none;
            box-shadow: none;
        }

        .join-code-box:focus-within,
        :root[data-theme="dark"] .join-code-box:focus-within {
            box-shadow: none;
            border-color: var(--input-border);
        }

        :root[data-theme="dark"] .join-code-box:focus-within {
            border-color: #26332b;
        }



        /* Give the voice link card more height and move the donation note down */
        .donation-banner {
            margin-top: 28px;
        }

        .login-box {
            padding-top: 84px;
            padding-bottom: 88px;
        }

        @media (max-width: 680px) {
            .donation-banner {
                margin-top: 22px;
            }

            .login-box {
                padding-top: 56px;
                padding-bottom: 60px;
            }
        }

        /* Header: Dino mark left, Dino Island centered, theme switch right; Discord sits by status. */
        .topbar {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            column-gap: 12px;
        }

        .topbar-start {
            grid-column: 1;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            min-width: 0;
        }

        .topbar .brand {
            grid-column: 2;
            justify-self: center;
            justify-content: center;
            text-align: center;
        }

        .topbar .header-actions {
            grid-column: 3;
            justify-content: flex-end;
        }

        .install-popover {
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            z-index: 10;
            width: 250px;
            padding: 12px 14px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: #ffffff;
            color: var(--text);
            font-size: 12px;
            line-height: 1.45;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
        }

        .install-popover[hidden] {
            display: none;
        }

        .topbar {
            overflow: visible;
        }

        .install-popover-title {
            margin: 0 0 6px;
            font-weight: 700;
        }

        .install-popover ol {
            margin: 0;
            padding-left: 18px;
        }

        :root[data-theme="dark"] .install-popover {
            background: #151d19;
            border-color: #26332b;
        }

        .tabs-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            padding-right: 18px;
            background: #ffffff;
            border-bottom: 1px solid var(--line);
        }

        :root[data-theme="dark"] .tabs-bar {
            background: #111815;
            border-bottom-color: #1f2a24;
        }

        .tabs-bar .site-tabs {
            flex: 0 0 auto;
            min-width: 0;
            border-bottom: 0;
            background: transparent;
        }

        :root[data-theme="dark"] .tabs-bar .site-tabs {
            background: transparent;
        }

        .tabs-bar .status-pill {
            flex: 0 0 auto;
            margin-top: 12px;
        }

        .tabs-bar-status {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        @media (max-width: 680px) {
            .topbar {
                grid-template-columns: 1fr auto 1fr;
                padding: 12px 14px;
            }

            .topbar .brand {
                flex: none;
                font-size: 14px;
                gap: 8px;
            }

            .topbar .header-actions {
                flex: none;
            }

            .tabs-bar {
                padding-right: 12px;
            }
        }

        @media (max-width: 420px) {
            .topbar {
                column-gap: 6px;
                padding: 10px;
            }

            .topbar .brand {
                font-size: 12px;
            }

            .topbar .brand-dino-mark {
                flex-basis: 46px;
                width: 46px;
            }

            .topbar .brand-dino-mark img {
                width: 46px;
                height: 46px;
            }

            .tabs-bar {
                padding-right: 10px;
            }
        }

        .login-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            align-items: stretch;
            gap: 16px;
            padding: 18px;
        }

        .login-layout.hidden {
            display: none;
        }

        .login-layout .login-box {
            width: 100%;
            min-width: 0;
            margin: 0;
            padding: 36px 24px;
            grid-template-columns: minmax(0, 1fr);
            align-items: start;
            align-content: start;
            gap: 14px;
        }

        .login-layout .login-intro,
        .login-layout .permission-help {
            grid-column: 1;
        }

        .login-layout .login-intro {
            margin: 0 0 2px;
        }

        .login-layout .button-row {
            grid-column: 1;
            width: 100%;
        }

        .login-layout .button-row button {
            width: 100%;
        }

        /* Compact donation block under the Voice Link card on the Social tab (2.7.32):
           a small heading (to the Donate tab), one line on why, and the two buttons smaller.
           The Donate tab stays the full home. */
        .social-donate {
            margin: 4px auto 0;
            padding: 6px 0 2px;
            text-align: center;
        }

        .social-donate-heading {
            background: transparent;
            border: 0;
            box-shadow: none;
            padding: 2px 6px;
            color: var(--text);
            font: inherit;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
        }

        .social-donate-heading:hover,
        .social-donate-heading:focus-visible {
            text-decoration: underline;
        }

        .social-voice-minutes {
            margin: 0 0 2px;
            color: var(--muted);
            font-size: 13px;
        }

        .social-donate-note {
            margin: 2px 0 8px;
            color: var(--muted);
            font-size: 13px;
        }

        .social-donate-links {
            display: flex;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .social-donate-link {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            min-height: 32px;
            padding: 6px 14px;
            border-radius: 999px;
            font-family: var(--font-ui, "Segoe UI", sans-serif);
            font-size: 13px;
            font-weight: 700;
            line-height: 1.2;
            text-decoration: none;
            transition: filter 0.2s ease, transform 0.2s ease;
        }

        .social-donate-link:hover {
            filter: brightness(1.08);
            text-decoration: none;
            transform: translateY(-1px);
        }

        .social-donate-link:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 3px;
        }

        .social-donate-icon {
            flex: 0 0 18px;
            width: 18px;
            height: 18px;
        }

        .controls > .donation-banner {
            width: auto;
            margin: 0;
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(190px, 0.65fr) minmax(240px, 0.8fr);
            align-items: center;
            gap: 12px 18px;
            padding: 18px 22px;
            text-align: left;
        }

        .controls > .donation-banner .donation-title {
            grid-column: 1;
            margin: 0;
        }

        .controls > .donation-banner .donation-explanation {
            grid-column: 1;
        }

        .controls > .donation-banner .voice-minutes-meter {
            grid-column: 2;
            grid-row: 1 / span 2;
            margin: 0;
        }

        .controls > .donation-banner .donation-links {
            grid-column: 3;
            grid-row: 1 / span 2;
            margin: 0;
        }

        .controls > .donation-banner .donation-title {
            font-size: 17px;
        }

        .controls > .donation-banner .voice-minutes-meter {
            padding: 10px 12px;
        }

        .controls > .donation-banner .donation-explanation {
            font-size: 11px;
        }

        .controls > .donation-banner .donation-explanation summary {
            cursor: pointer;
            font-family: var(--font-ui);
            font-weight: 600;
        }

        .controls > .donation-banner .donation-explanation p {
            margin: 8px 0 0;
            font-size: 11px;
        }

        .controls > .donation-banner .donation-link {
            min-height: 40px;
            padding: 6px 8px;
            font-size: 12px;
        }

        .controls > .donation-banner .donation-links {
            gap: 8px;
        }

        .voice-side {
            grid-template-rows: auto auto auto;
            align-content: start;
        }

        @media (max-width: 680px) {
            .login-layout {
                grid-template-columns: minmax(0, 1fr);
                gap: 14px;
                padding: 14px;
            }

            .login-layout .login-box {
                padding: 28px 24px;
            }

            .login-layout > .donation-banner {
                padding: 22px;
            }

            .controls > .donation-banner {
                grid-template-columns: minmax(0, 1fr) minmax(170px, 0.8fr);
                gap: 10px 14px;
                padding: 16px;
            }

            .controls > .donation-banner .donation-title,
            .controls > .donation-banner .donation-explanation {
                grid-column: 1;
            }

            .controls > .donation-banner .voice-minutes-meter {
                grid-column: 2;
                grid-row: 1 / span 2;
            }

            .controls > .donation-banner .donation-links {
                grid-column: 1 / -1;
                grid-row: auto;
            }
        }

        @media (max-width: 420px) {
            .login-layout {
                gap: 10px;
                padding: 10px;
            }

            .login-layout .login-box,
            .login-layout > .donation-banner {
                padding: 20px 18px;
            }

            .login-layout > .donation-banner .donation-links {
                gap: 8px;
            }

            .login-layout > .donation-banner .donation-link {
                min-height: 46px;
                gap: 5px;
                padding: 6px;
                font-size: 11px;
            }

            .login-layout > .donation-banner .donation-icon {
                flex-basis: 22px;
                width: 22px;
                height: 22px;
            }

            .controls > .donation-banner {
                grid-template-columns: minmax(0, 1fr);
                gap: 10px;
                padding: 16px;
                order: 1;
            }

            .controls > .donation-banner .donation-title,
            .controls > .donation-banner .donation-explanation,
            .controls > .donation-banner .voice-minutes-meter,
            .controls > .donation-banner .donation-links {
                grid-column: 1;
                grid-row: auto;
            }

            .controls > .donation-banner .donation-links {
                margin-top: 0;
            }
        }

        @media (max-width: 360px) {
            .login-layout > .donation-banner .donation-links {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        .diagnostics-row {
            margin-top: 14px;
        }

        .diagnostics-box #sendDiagnosticsBtn {
            border-color: #1f7a4d;
            background: #1f7a4d;
            color: #ffffff;
            text-shadow: none;
        }

        .diagnostics-box #sendDiagnosticsBtn:hover {
            border-color: #185f3b;
            background: #185f3b;
        }

        :root[data-theme="dark"] .diagnostics-box #sendDiagnosticsBtn {
            border-color: #6fa287;
            background: #6fa287;
            color: #102217;
        }

        :root[data-theme="dark"] .diagnostics-box #sendDiagnosticsBtn:hover {
            border-color: #82b198;
            background: #82b198;
        }

        .player-list-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 18px;
        }

        .player-list-heading .mini-title {
            min-width: 0;
            margin: 0;
        }

        .player-count {
            display: inline-grid;
            flex: 0 0 auto;
            min-width: 26px;
            min-height: 26px;
            padding: 0 7px;
            place-items: center;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: var(--panel-strong);
            color: var(--text);
            font-family: var(--font-ui);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0;
        }

        /* Staging preview sample counts (Bill, 2026-11-16): the
           per-section button that cycles how many sample rows a
           voice section shows (5 → 10 → 3). The buttons are
           created in JS on staging only and hidden unless their
           section is showing samples, so these rules can never
           affect live rendering — no live element ever carries
           either class. */
        .sample-count-btn {
            flex: 0 0 auto;
            /* The global button rule gives every button a 48px
               touch min-height; this pill is a label, not a tap
               target, so it keeps its own small height — otherwise
               it stands 48px tall and covers the row behind it. */
            min-height: 24px;
            padding: 2px 10px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: var(--panel-strong);
            color: var(--text);
            font-family: var(--font-ui);
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
        }

        /* While a section shows samples, its list scrolls
           internally instead of pushing the page taller. The
           Players card already scrolls via .players-scroll; the
           Party list needs its own cap because it has no scroll
           wrapper of its own. The fixed 264px height (not a
           max-height) is deliberate: the #controls rule gives
           this list flex: 1 1 auto with min-height 0, so a
           max-height alone still collapses it to a one-row sliver
           inside the short party box. flex: 0 0 264px holds the
           height at 3, 5, and 10 samples alike, so the grow
           button only changes how much of the list scrolls,
           never the page height. */
        #controls > .speaker-box .speaker-list.sample-scroll {
            flex: 0 0 264px;
            height: 264px;
            min-height: 264px;
            overflow-y: auto;
            scrollbar-width: thin;
        }

        /* The party box itself is flex: 1 1 0 with min-height 150
           under #controls, so a 264px list inside it would
           overflow the box and paint over the next section. In
           sample mode the box sizes to its content instead, so
           the list's 264px is real space and the page grows once
           when samples appear — never per grow click. */
        #controls > .speaker-box#partyBox.sample-scroll {
            flex: 0 0 auto;
        }

        /* Sample rows are unmistakable (Bill, 2026-11-16): every
           placeholder carries a SAMPLE badge, amber on near-black,
           readable on both themes, so a fake name is never mistaken
           for a real player at a glance. */
        .sample-badge {
            flex: 0 0 auto;
            margin-left: 6px;
            padding: 1px 6px;
            border-radius: 4px;
            background: #f59e0b;
            color: #1c1005;
            font-family: var(--font-ui);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.04em;
            vertical-align: middle;
        }

        /* Voice health (Bill, 2026-11-16): telemetry only — packet
           loss, jitter, mic level, speaking time, dropouts. Owner
           only, one row per player in voice. Unlike the player
           lists, this card does NOT share #controls' equal height:
           it sizes to its content (up to the 264px list cap) so a
           3-row panel is not squeezed to a sliver by the flex
           column — the #controls rule gives every .speaker-list
           flex: 1 1 auto with min-height 0, which collapsed this
           list to 31px inside its 150px min-height box. The list
           scrolls internally past the cap, so a full room never
           pushes the page taller. */
        #controls > .speaker-box.voice-health-box {
            flex: 0 0 auto;
        }

        #controls > .speaker-box .speaker-list.voice-health-list {
            flex: 0 0 auto;
        }

        .voice-health-note {
            margin: 0 0 8px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.4;
        }

        .voice-health-list {
            max-height: 264px;
            overflow-y: auto;
            scrollbar-width: thin;
        }

        .voice-health-list li.vh-head,
        .voice-health-list li.vh-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 52px 48px 48px 44px 34px;
            gap: 6px;
            align-items: center;
        }

        .voice-health-list li.vh-head {
            color: var(--muted);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        .voice-health-list li.vh-head span:not(:first-child),
        .voice-health-list li.vh-row span.vh-stat {
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

        .voice-health-list li.vh-row .speaker-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .vh-mic {
            height: 6px;
            border-radius: 999px;
            background: var(--line);
            overflow: hidden;
        }

        .vh-mic > i {
            display: block;
            height: 100%;
            border-radius: 999px;
            background: var(--green);
        }

        .vh-mic.speaking > i {
            background: var(--green);
            box-shadow: 0 0 6px var(--green);
        }

        .voice-health-list li.vh-row span.vh-stat {
            font-size: 12px;
        }

        .vh-ok {
            color: var(--green);
        }

        .vh-warn {
            color: var(--amber);
        }

        .vh-bad {
            color: var(--red);
        }

        .voice-health-list li.vh-divider {
            color: var(--muted);
            font-size: 11px;
            font-weight: 700;
        }

        .voice-health-list li.vh-left {
            color: var(--muted);
            font-size: 12px;
        }

        .voice-health-self {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 12px;
        }

        .diagnostics-box .diagnostics-help {
            margin: 0 0 14px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }

        .tab-panel>.game-section {
            width: 100%;
            margin: 0;
            padding: 18px;
        }

        /* Game tab sub views (2.30): Card / Map / Field Report ride a
           pill bar shaped like the status strip. The current view is a
           filled segment; there are no status dots here, because dots
           mean service status everywhere else on the site. */
        /* Sub menu bar (redesigned 2.34.2): an even grid of cells
           instead of a wrapping flex row. Every tab gets the same
           cell width, cells wrap into even rows on narrow screens,
           and a lone tab in the last row keeps one cell instead of
           stretching across the whole bar — so the selected
           highlight can never outgrow its own tab. */
        .game-subtabs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
            gap: 4px;
            margin: 0 0 18px;
            padding: 5px;
            border: 1px solid var(--speaker-border);
            border-radius: 22px;
            background: var(--speaker-bg);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        .game-subtab {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 8px 6px;
            border: 1px solid transparent;
            border-radius: 16px;
            background: transparent;
            color: var(--muted);
            box-shadow: none;
            font-size: 13.5px;
            font-weight: 600;
            line-height: 1.2;
            text-align: center;
            cursor: pointer;
        }

        .game-subtab:hover {
            transform: none;
            filter: none;
            color: var(--text);
        }

        .game-subtab[aria-selected="true"] {
            border-color: color-mix(in srgb, var(--green-deep) 55%, transparent);
            background: var(--green);
            color: var(--night);
        }

        .game-subtab:focus-visible {
            outline: 3px solid var(--focus);
            outline-offset: 2px;
        }

        .game-subview[hidden] {
            display: none;
        }

        /* Card view sign in box (2.30): shown only while /api/card has
           no linked player to draw, where the card itself will sit. */
        .card-signin-box {
            margin: 0 0 18px;
            padding: 18px 16px;
            border: 1px solid var(--line);
            border-radius: 16px;
            background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
            text-align: center;
        }

        .card-signin-box .mini-title {
            margin: 0 0 8px;
        }

        .card-signin-box .discord-note {
            max-width: 420px;
            margin: 0 auto 14px;
        }

        /* Vote view (2.31): the community mod vote, the same pool
           Dino Bot runs in Discord. A legend explains every mark,
           then per category the active mods (moved here from the
           Field Report view, with Keep endorsements) and the
           nominations in Priority List order. */
        .vote-note {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 12.5px;
            line-height: 1.5;
        }

        .vote-status {
            margin: 10px 0 0;
            font-size: 13px;
            line-height: 1.5;
        }

        .vote-legend {
            margin: 14px 0 4px;
            padding: 12px 14px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: color-mix(in srgb, var(--panel-strong) 55%, transparent);
        }

        .vote-legend-title {
            margin: 0 0 6px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--muted);
        }

        /* The legend is reference text (2.34): collapsed behind its
           title until a reader wants it, so the lists start sooner. */
        .vote-legend-toggle {
            display: block;
            width: 100%;
            margin: 0;
            padding: 0;
            border: 0;
            background: transparent;
            font: inherit;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--muted);
            text-align: left;
            cursor: pointer;
        }

        .vote-legend-toggle::after {
            content: "+";
            float: right;
            font-size: 14px;
        }

        .vote-legend-toggle[aria-expanded="true"]::after {
            content: "−";
        }

        .vote-legend-toggle[aria-expanded="true"] {
            margin-bottom: 6px;
        }

        /* 2.34.9: the legend toggle is a quiet text row, not an
           action button. Generic button rules painted it with the
           accent fill (in dark it read as a giant highlighter —
           Bill, 2026-11-07). Pinned with !important so no button
           rule can fill it again; it only opens and closes. */
        .vote-legend .vote-legend-toggle,
        .vote-legend .vote-legend-toggle:hover,
        .vote-legend .vote-legend-toggle:active,
        .vote-legend .vote-legend-toggle:focus-visible {
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
            color: var(--muted) !important;
        }

        /* Show all / show fewer for capped lists (2.34). */
        .list-more-btn {
            margin-top: 8px;
            padding: 7px 14px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: transparent;
            color: inherit;
            font: inherit;
            font-size: 12.5px;
            cursor: pointer;
        }

        .vote-legend ul {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 6px;
        }

        .vote-legend ul[hidden] {
            display: none;
        }

        .vote-legend li {
            font-size: 12.5px;
            line-height: 1.45;
            color: var(--text);
            display: flex;
            gap: 8px;
            align-items: flex-start;
        }

        /* Legend symbol column (2026-11-12): fixed 22px slot so the
           labels line up, symbols at 16px; inline vote thumbs match. */
        .vote-legend .sym {
            flex: 0 0 22px;
            height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            line-height: 1;
        }

        .vote-legend .inl {
            font-size: 16px;
            line-height: 1;
            vertical-align: -2px;
        }

        .vote-cat {
            margin-top: 18px;
            padding-top: 16px;
            border-top: 1px solid rgba(127, 148, 128, 0.35);
        }

        .vote-cat-title {
            margin: 0;
            font-size: 17px;
        }

        .vote-cat-art {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            object-fit: cover;
            vertical-align: -9px;
            margin-right: 8px;
            /* Same dissolve as the thumbnails below: the collage
               ships on a baked-in black background too. */
            -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 99%);
            mask-image: radial-gradient(closest-side, #000 78%, transparent 99%);
            filter: brightness(1.1) contrast(1.06) saturate(1.05);
        }

        :root[data-theme="dark"] .vote-cat-art {
            filter: brightness(1.3) contrast(1.1) saturate(1.08);
        }

        .vote-subhead {
            margin: 14px 0 0;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--muted);
        }

        .vote-keep-btn,
        .vote-btn {
            min-height: 30px;
            padding: 5px 12px;
            border: 1px solid color-mix(in srgb, var(--green-deep) 45%, transparent);
            border-radius: 999px;
            background: transparent;
            color: var(--text);
            font-size: 12.5px;
            font-weight: 600;
            white-space: nowrap;
            cursor: pointer;
        }

        /* Duo voting (Discord parity): Upvote / Downvote pill
           buttons with green and red tints; the pressed one fills. */
        .vote-up-btn,
        .vote-down-btn {
            flex: 1 1 0;
            min-height: 34px;
            padding: 5px 10px;
            border: 1px solid;
            border-radius: 999px;
            background: transparent;
            color: var(--text);
            font-size: 12.5px;
            font-weight: 600;
            white-space: nowrap;
            cursor: pointer;
        }

        .vote-up-btn {
            border-color: color-mix(in srgb, var(--green-deep) 50%, transparent);
        }

        .vote-down-btn {
            border-color: color-mix(in srgb, var(--red) 50%, transparent);
        }

        .vote-up-btn[aria-pressed="true"] {
            background: var(--green);
            color: var(--night);
            border-color: color-mix(in srgb, var(--green-deep) 55%, transparent);
        }

        .vote-down-btn[aria-pressed="true"] {
            background: var(--red);
            color: #fff;
            border-color: color-mix(in srgb, var(--red) 60%, transparent);
        }

        .vote-keep-btn[aria-pressed="true"],
        .vote-btn[aria-pressed="true"] {
            background: var(--green);
            color: var(--night);
            border-color: color-mix(in srgb, var(--green-deep) 55%, transparent);
        }

        .vote-keep-count {
            color: var(--muted);
            font-size: 12.5px;
            white-space: nowrap;
            text-align: right;
        }

        /* Active mod rows stack name over meta, exactly like the
           nomination rows, so the pair never sits side by side on
           wide screens and stacked on narrow ones. */
        .vote-mod-main {
            min-width: 0;
        }

        .vote-mod-main .vote-nom-name,
        .vote-mod-main .vote-nom-meta {
            display: block;
        }

        .vote-nom-list {
            display: grid;
            gap: 6px;
            margin: 8px 0 0;
            padding: 0;
            list-style: none;
        }

        /* Fixed-slot grid (2.31.2): rank, name block, count and
           button each own a column that never moves, so a long mod
           name wraps inside its own column instead of pushing the
           count or the button onto a second line. */
        .vote-nom-row {
            display: grid;
            grid-template-columns: 22px minmax(0, 1fr) 40px 108px;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border: 1px solid color-mix(in srgb, var(--speaker-border) 55%, transparent);
            border-radius: 10px;
        }

        /* Active mod rows: no rank column, the other slots match. */
        .vote-mod-row {
            grid-template-columns: minmax(0, 1fr) 40px 98px;
        }

        /* Species pictures (2.32.0): dino rows reserve a fixed
           thumbnail slot at the left of the name block. A dino with
           no art keeps the empty slot, so names stay aligned down
           the list; skin rows have no slot at all.
           Theme-aware treatment (3.5.5): the card art ships with
           a baked-in black background, so a bare tile reads as a
           black block and the dark dinos get lost in it. The tile
           carries a theme-aware backdrop and the image fades at
           its edges into that backdrop, so the hard black square
           dissolves and the dino's shape reads on both themes; a
           small brightness lift pulls the dark dinos out of the
           black. Dark theme lifts further, since the page around
           the tile is dark too. */
        .vote-thumb {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            overflow: hidden;
            background: linear-gradient(145deg, #f7f4ec, #e7e9df);
            border: 1px solid color-mix(in srgb, var(--speaker-border) 70%, transparent);
            box-shadow: 0 1px 4px rgba(23, 38, 31, 0.18);
        }

        .vote-thumb img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(1.18) contrast(1.08) saturate(1.05);
        }

        :root[data-theme="dark"] .vote-thumb {
            background: linear-gradient(145deg, #243829, #101b14);
            border-color: color-mix(in srgb, var(--line) 55%, transparent);
            box-shadow: 0 0 0 1px rgba(190, 242, 205, 0.08), 0 2px 10px rgba(0, 0, 0, 0.45);
        }

        :root[data-theme="dark"] .vote-thumb img {
            filter: brightness(1.3) contrast(1.1) saturate(1.08);
        }

        /* Active mod rows with a thumbnail: the slot leads, the
           count and Keep slots are exactly as before. */
        .vote-nom-row.vote-mod-row.vote-has-thumb {
            grid-template-columns: 48px minmax(0, 1fr) 40px 98px;
        }

        /* Candidate rows with a thumbnail stack in three lines
           (name, counts, buttons) at phone widths: with the rank,
           the 48px slot and the counts all on the first line, the
           name column would shrink below a usable width, so the
           counts and buttons each take their own line under the
           name. Every slot stays fixed and identical across rows,
           and the buttons and counts themselves are unchanged. */
        .vote-nom-row.vote-duo-row.vote-has-thumb {
            grid-template-columns: 22px 48px minmax(0, 1fr);
            grid-template-areas:
                "rank thumb main"
                "rank thumb counts"
                "rank thumb actions";
        }

        .vote-duo-row.vote-has-thumb .vote-duo-counts {
            justify-self: end;
        }

        /* Legacy single button rows with a thumbnail take the
           same three line shape (name, count, button). */
        .vote-nom-row.vote-has-thumb:not(.vote-duo-row):not(.vote-mod-row) {
            grid-template-columns: 22px 48px minmax(0, 1fr);
            grid-template-areas:
                "rank thumb main"
                "rank thumb count"
                "rank thumb actions";
        }

        .vote-nom-row.vote-has-thumb:not(.vote-duo-row):not(.vote-mod-row) .vote-nom-rank {
            grid-area: rank;
        }

        .vote-nom-row.vote-has-thumb:not(.vote-duo-row):not(.vote-mod-row) .vote-thumb {
            grid-area: thumb;
            align-self: center;
        }

        .vote-nom-row.vote-has-thumb:not(.vote-duo-row):not(.vote-mod-row) .vote-nom-main {
            grid-area: main;
        }

        .vote-nom-row.vote-has-thumb:not(.vote-duo-row):not(.vote-mod-row) .vote-count {
            grid-area: count;
            justify-self: end;
        }

        .vote-nom-row.vote-has-thumb:not(.vote-duo-row):not(.vote-mod-row) .vote-btn {
            grid-area: actions;
            justify-self: end;
            width: 108px;
        }

        .vote-duo-row .vote-thumb {
            grid-area: thumb;
            align-self: center;
        }

        /* Duo rows: counts in a fixed slot at the top right, the
           Upvote / Downvote buttons on their own line underneath,
           mirroring the Discord nomination cards. */
        .vote-duo-row {
            grid-template-columns: 22px minmax(0, 1fr) auto;
            grid-template-areas:
                "rank main counts"
                "rank actions actions";
            row-gap: 8px;
        }

        .vote-duo-row .vote-nom-rank {
            grid-area: rank;
        }

        .vote-duo-row .vote-nom-main {
            grid-area: main;
        }

        .vote-duo-counts {
            grid-area: counts;
            display: flex;
            gap: 8px;
        }

        .vote-duo-actions {
            grid-area: actions;
            display: flex;
            gap: 8px;
        }

        .vote-stat {
            width: 36px;
            text-align: center;
        }

        .vote-stat b {
            display: block;
            font-size: 14px;
            line-height: 1.2;
        }

        .vote-stat small {
            display: block;
            color: var(--muted);
            font-size: 10.5px;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .vote-nom-rank {
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
            text-align: right;
        }

        .vote-nom-main {
            min-width: 0;
        }

        .vote-nom-name {
            font-size: 13.5px;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }

        .vote-nom-meta {
            margin-top: 2px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.45;
        }

        .vote-count {
            font-size: 14px;
            font-weight: 700;
            white-space: nowrap;
            text-align: center;
        }

        .vote-count small {
            display: block;
            color: var(--muted);
            font-size: 10.5px;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            text-align: center;
        }

        .vote-nominate {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            gap: 8px;
            margin-top: 12px;
        }

        .vote-field {
            display: grid;
            gap: 5px;
            flex: 1 1 180px;
            color: var(--text);
            font-size: 12px;
            font-weight: 600;
        }

        .vote-field.vote-field-replace {
            flex: 1 1 160px;
        }

        .vote-field input,
        .vote-field select {
            width: 100%;
            min-width: 0;
        }

        .vote-form-status {
            flex: 1 1 100%;
            margin: 2px 0 0;
            font-size: 12.5px;
            line-height: 1.5;
        }

        @media (max-width: 420px) {
            .vote-nominate > button {
                flex: 1 1 100%;
            }
        }

        /* Nominate search results (2.31.2): an in-page list under
           the search box, replacing the native datalist popup that
           Android browsers render inconsistently or not at all. */
        .vote-search {
            position: relative;
        }

        .vote-results {
            margin-top: 4px;
            max-height: 264px;
            overflow-y: auto;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--panel-strong);
        }

        .vote-result {
            display: block;
            width: 100%;
            min-height: 44px;
            padding: 10px 12px;
            border: 0;
            border-bottom: 1px solid var(--line);
            background: transparent;
            color: var(--text);
            font-size: 13.5px;
            line-height: 1.35;
            text-align: left;
            cursor: pointer;
        }

        .vote-result:last-child {
            border-bottom: 0;
        }

        .vote-result-hint {
            padding: 10px 12px;
            color: var(--muted);
            font-size: 12.5px;
            line-height: 1.45;
        }

        /* Gift history (2.31): the player's own gifts under the gift
           panel, private to their card. A totals line, then one
           section per counterparty with each transfer in the
           template format (2026-11-21). */
        .gift-history {
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1px solid rgba(127, 148, 128, 0.35);
        }

        .gift-history-summary {
            margin: 6px 0 0;
            color: var(--muted);
            font-size: 12.5px;
            line-height: 1.5;
        }

        /* One section per pair: the two names up top, that pair's
           transfers newest first underneath. */
        .gift-pair {
            margin-top: 12px;
            padding: 10px 12px;
            border: 1px solid var(--line);
            border-radius: 10px;
        }

        .gift-pair-header {
            margin: 0;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.45;
        }

        .gift-entry {
            margin-top: 10px;
        }

        .gift-entry + .gift-entry {
            padding-top: 10px;
            border-top: 1px solid var(--line);
        }

        .gift-entry-head {
            display: flex;
            justify-content: flex-end;
        }

        .gift-direction {
            padding: 2px 9px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .gift-direction.sent {
            background: var(--green);
            color: var(--night);
        }

        .gift-direction.received {
            border: 1px solid var(--line);
            color: var(--muted);
        }

        /* The 4-line template block, rendered verbatim. */
        .gift-template {
            margin: 6px 0 0;
            font: inherit;
            font-size: 13px;
            line-height: 1.55;
            white-space: pre-wrap;
            word-break: break-word;
        }

        /* Island map (2.30): the Gondwa map opens the Map view, square
           like the island itself, with the Alderon credit under it.
           Teleport rides underneath, destinations and all. */
        .island-map-frame {
            position: relative;
            margin-top: 10px;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 14px;
            line-height: 0;
            /* Inline zoom (Bill, 2026-11-09): one finger still
               scrolls the page (pan-y), while a two finger pinch
               is delivered to the map instead of zooming the
               whole webpage. */
            touch-action: pan-y;
        }

        /* The small map's zoom stage: the image and its overlay
           scale together inside the frame; the Refresh and
           Enlarge pills stay on the frame, outside the stage, so
           they never move or scale. */
        .map-small-stage {
            position: relative;
            line-height: 0;
            will-change: transform;
        }

        .map-small-stage img {
            -webkit-user-drag: none;
            user-select: none;
        }

        /* While inline zoomed, names and markers counter the
           zoom (the --lbl / --ico dials the zoom wiring sets on
           the stage), so they stay the same size on screen and
           only the terrain grows — same rule as the enlarged
           map. At fit (dial 1) these change nothing. */
        #mapOverlay .map-poi-name {
            font-size: calc(8px * var(--lbl, 1) * var(--shrink, 1));
        }

        #mapOverlay .map-water-label {
            font-size: calc(8px * var(--lbl, 1));
        }

        #mapOverlay .map-lookout {
            font-size: calc(7px * var(--ico, 1));
        }

        #mapOverlay .map-homecave {
            font-size: calc(10px * var(--ico, 1));
        }

        #mapOverlay .map-waystone {
            width: calc(11px * var(--ico, 1));
            height: calc(11px * var(--ico, 1));
        }

        #mapOverlay .map-player-name {
            font-size: calc(10.5px * var(--lbl, 1));
        }

        #mapOverlay .map-player-dot {
            width: calc(12px * var(--ico, 1));
            height: calc(12px * var(--ico, 1));
        }

        .island-map-frame img {
            display: block;
            width: 100%;
            height: auto;
            aspect-ratio: 1419 / 1417;
        }

        /* Map header row (Bill, 2026-11-15): Refresh and Enlarge
           sit above the map instead of on it, with the island
           name centered between them. */
        .map-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
        }

        .map-head h3 {
            flex: 1;
            margin: 0;
            text-align: center;
        }

        .map-head .map-refresh-btn,
        .map-head .map-enlarge-btn {
            position: static;
            flex-shrink: 0;
        }

        .map-enlarge-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            z-index: 3;
            min-height: 32px;
            padding: 5px 12px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 999px;
            background: rgba(10, 20, 15, 0.72);
            color: #fff;
            font-size: 12.5px;
            font-weight: 600;
            line-height: 1.2;
            cursor: pointer;
        }

        /* Manual map refresh (2.44.8, Bill): same pill as
           Enlarge, mirrored to the frame's other corner. */
        .map-refresh-btn {
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 3;
            min-height: 32px;
            padding: 5px 12px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 999px;
            background: rgba(10, 20, 15, 0.72);
            color: #fff;
            font-size: 12.5px;
            font-weight: 600;
            line-height: 1.2;
            cursor: pointer;
        }

        .map-refresh-btn:disabled {
            opacity: 0.65;
            cursor: wait;
        }

        /* One time tuck tip (Bill, 2026-11-09): shown under the
           map only until the reader dismisses it or tucks a name
           themselves — it teaches the gesture once, then gets out
           of the way for good. The legend keeps its single POI
           names entry; the dot is the place, not a second symbol. */
        .map-poi-tip {
            margin: 8px 2px 0;
            font-size: 12.5px;
            line-height: 1.45;
            opacity: 0.85;
        }

        .map-poi-tip button {
            min-height: 26px;
            margin-left: 6px;
            padding: 2px 10px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 999px;
            background: rgba(10, 20, 15, 0.72);
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            vertical-align: baseline;
        }

        /* Enlarged map (2.34.16): a fullscreen stage the reader can
           zoom (buttons, wheel, pinch) and drag. Same markers, drawn
           bigger; the small map stays the default view.
           Layout (Bill, 2026-11-09): the layer pills and the bottom
           control bar used to float OVER the map, covering the
           names along its top and bottom edges. The view is now
           three rows — layer pills, the map, the control bar — and
           the map fits in the space between them, so the controls
           never cover any of it, at any screen shape. */
        .map-big {
            position: fixed;
            inset: 0;
            z-index: 90;
            background: #0b1512;
            overflow: hidden;
            touch-action: none;
        }

        .map-big:not([hidden]) {
            display: flex;
            flex-direction: column;
        }

        .map-big-view {
            position: relative;
            flex: 1 1 auto;
            min-height: 0;
            overflow: hidden;
            container-type: size;
        }

        .map-big-stage {
            position: absolute;
            left: 50%;
            top: 50%;
            width: min(100vw, 100vh);
            height: min(100vw, 100vh);
            width: min(100cqw, 100cqh);
            height: min(100cqw, 100cqh);
            line-height: 0;
        }

        .map-big-stage img {
            display: block;
            width: 100%;
            height: 100%;
        }

        .map-big .map-poi-label {
            font-size: calc(11px * var(--lbl, 1));
        }

        .map-big .map-poi-name {
            font-size: calc(11px * var(--lbl, 1) * var(--shrink, 1));
        }

        /* Minor (label only) places on the enlarged map ride a
           second factor: smaller than the teleport names at fit
           view, growing to full size as the reader zooms in and
           they spread apart (2.42.0, Vulnona's model: every name
           present at every zoom, sized by tier). */
        .map-big .map-poi-name.map-poi-minor {
            font-size: calc(11px * var(--lbl, 1) * var(--minor, 0.72) * var(--shrink, 1));
            opacity: 0.88;
        }

        /* Same tiering on the small map, which has no zoom: the
           label only places print smaller and quieter so all 54
           names fit without shouting over the teleport places. */
        #mapOverlay .map-poi-name.map-poi-minor {
            font-size: calc(6.5px * var(--lbl, 1) * var(--shrink, 1));
            opacity: 0.85;
        }

        .map-big .map-poi-r .map-poi-label {
            left: calc(8px * var(--lbl, 1));
        }

        .map-big .map-poi-l .map-poi-label {
            right: calc(8px * var(--lbl, 1));
        }

        .map-big .map-poi-t .map-poi-label {
            bottom: calc(8px * var(--lbl, 1));
        }

        /* Player markers counter the zoom like every other
           label on the enlarged map (3.0.1, Bill's catch): the
           name and dot were flat sizes inside the scaled stage,
           so they grew with the terrain as you zoomed in, over
           the exact spot being pinpointed. */
        .map-big .map-player-name {
            font-size: calc(12px * var(--lbl, 1));
        }

        .map-big .map-player-dot {
            width: calc(12px * var(--ico, 1));
            height: calc(12px * var(--ico, 1));
        }

        .map-big-top {
            flex: none;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 10px 8px 8px;
        }

        .map-big-layers {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px;
        }

        .map-big-layers button {
            background: rgba(10, 20, 16, 0.72) !important;
            color: #e8f5ee;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 999px;
            padding: 5px 10px;
            font-size: 12px;
            cursor: pointer;
        }

        .map-big-layers button .map-layer-state {
            display: inline-block;
            width: 24px;
            text-align: left;
            font-weight: 700;
        }

        .map-big-layers button[aria-pressed="true"] .map-layer-state {
            color: #7ee2ae;
        }

        .map-big-layers button[aria-pressed="false"] {
            opacity: 0.72;
        }

        .map-big-res {
            margin: 0;
            justify-content: center;
        }

        .map-big-bar {
            flex: none;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            padding: 8px 8px 14px;
            z-index: 2;
        }

        .map-big-bar button {
            min-height: 38px;
            padding: 6px 14px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 999px;
            background: rgba(10, 20, 15, 0.8);
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }

        /* Map layers (2.35.0): each layer can be hidden on its
           own, so nothing stands between the reader and the player
           dots, which are the map's whole point (Bill, 2026-11-07).
           The tucked name's dot is listed too: the standalone dot
           is not a .map-poi, so without its own line it stayed on
           screen after POI names were switched off (Bill,
           2026-11-09). */
        .map-overlay.hide-pois .map-poi,
        .map-overlay.hide-pois .map-poi-dot,
        .map-overlay.hide-regions .map-regions,
        .map-overlay.hide-regions .map-boundaries,
        .map-overlay.hide-waystones .map-waystone,
        .map-overlay.hide-lookouts .map-lookout,
        .map-overlay.hide-homecaves .map-homecave,
        .map-overlay.hide-waters .map-waters,
        .map-overlay.hide-waters .map-water-label,
        .map-overlay.hide-resources .map-res-canvas {
            display: none;
        }

        /* POI name tiers (2.42.0): every name prints at every
           zoom; the tiers are sizes, not visibility — see the
           .map-poi-minor rules. (Before 2.42.0 the label only
           places were hidden until the enlarged map hit 1.8x,
           which read as places going missing.) */

        .map-regions {
            z-index: 1;
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        /* Calibrated POI boundaries (3.5.0): measured lines, drawn
           dashed; same layer as the regions, so the Regions toggle
           hides them too. */
        .map-boundaries {
            z-index: 1;
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .map-waystone,
        .map-lookout {
            z-index: 2;
            position: absolute;
            transform: translate(-50%, -50%);
            line-height: 1;
            pointer-events: none;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        }

        .map-waystone {
            width: 11px;
            height: 11px;
        }

        /* The marker carries the official waystone symbol
           (Bill, 2026-11-08): since 2.44.15 it IS the game's
           own medallion art, supplied by Bill 2026-11-09 with
           the background outside the medallion made transparent
           (images/waystone-icon.png) — the green ring, lime
           canopy and dark tree, exactly as the game draws them.
           (Earlier vector redraws, 2.44.10-12, are retired:
           the real art reads better at every size.) */
        .map-waystone-glyph {
            display: block;
            width: 100%;
            height: 100%;
            background: url("images/waystone-icon.png") center / contain no-repeat;
        }

        .map-lookout {
            color: #f0abfc;
            font-size: 7px;
        }

        .map-big .map-waystone {
            width: calc(15px * var(--ico, 1));
            height: calc(15px * var(--ico, 1));
        }

        .map-big .map-lookout {
            font-size: calc(10px * var(--ico, 1));
        }

        .map-waters {
            z-index: 1;
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .map-homecave {
            z-index: 2;
            position: absolute;
            transform: translate(-50%, -50%);
            font-size: 10px;
            line-height: 1;
            pointer-events: none;
            white-space: nowrap;
        }

        /* The game's own home cave marker (2.44.7, Bill): the
           azure peak with the cave mouth arch. Since 2.44.14
           the marker IS the game's own symbol art, supplied by
           Bill 2026-11-09 with its black background keyed out
           (images/cave-icon.png) — sketch strokes and all,
           replacing our vector rendition. */
        .map-homecave-glyph {
            display: inline-block;
            width: 1.05em;
            height: 1.05em;
            vertical-align: -0.12em;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235AC8F7'/%3E%3Cstop offset='1' stop-color='%2325A9E1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 3 L22 20 L15.8 20 L15.8 15.4 Q15.8 11 12 11 Q8.2 11 8.2 15.4 L8.2 20 L2 20 Z' fill='url(%23g)' stroke='%230D212E' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        }

        .map-big .map-homecave {
            font-size: calc(14px * var(--ico, 1));
        }

        .map-water-label {
            z-index: 5;
            position: absolute;
            transform: translate(-50%, -50%);
            color: #bae6fd;
            font-size: 8px;
            line-height: 1;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
            pointer-events: none;
            white-space: nowrap;
        }

        .map-big .map-water-label {
            font-size: calc(11px * var(--lbl, 1));
        }

        /* Water quality list under the map (2.43.0): the key to
           the shortened water labels, with every named water's
           quality as a number instead of only a shade. */
        .map-water-list {
            border: 1px solid rgba(127, 127, 127, 0.28);
            border-radius: 12px;
            padding: 10px 12px 12px;
            margin: 10px 0 4px;
            background: rgba(127, 127, 127, 0.05);
        }

        .map-water-list-rows {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 5px 14px;
        }

        .map-water-row {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12.5px;
            padding: 2px 0;
        }

        .map-water-chip {
            background: #0369a1;
            color: #fff;
            border-radius: 5px;
            padding: 1px 6px;
            font-weight: 700;
            font-size: 11px;
            min-width: 28px;
            text-align: center;
        }

        .map-water-name {
            flex: 1;
        }

        .map-water-val {
            color: #0369a1;
            font-weight: 700;
        }

        .map-res-canvas {
            z-index: 1;
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .map-res-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: center;
            margin: 0 0 6px;
        }

        .map-res-row[hidden] {
            display: none;
        }

        .map-res-chip {
            border: 1px solid rgba(255, 255, 255, 0.25);
            background: transparent !important;
            color: inherit;
            border-radius: 999px;
            padding: 3px 10px;
            font-size: 11.5px;
            cursor: pointer;
        }

        .map-res-chip[aria-pressed="true"] {
            background: var(--accent) !important;
            border-color: transparent;
            color: #fff;
        }

        .map-legend .lg-homecave {
            display: inline-block;
            width: 1.05em;
            height: 1.05em;
            vertical-align: -0.12em;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235AC8F7'/%3E%3Cstop offset='1' stop-color='%2325A9E1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 3 L22 20 L15.8 20 L15.8 15.4 Q15.8 11 12 11 Q8.2 11 8.2 15.4 L8.2 20 L2 20 Z' fill='url(%23g)' stroke='%230D212E' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        }

        .map-legend .lg-water {
            color: #7dd3fc;
        }

        .map-legend .lg-resource {
            color: #86efac;
        }

        .map-layers-box {
            border: 1px solid rgba(127, 127, 127, 0.28);
            border-radius: 12px;
            padding: 10px 12px 12px;
            margin: 10px 0 4px;
            background: rgba(127, 127, 127, 0.05);
        }

        .map-layers-title {
            margin: 0 0 8px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            opacity: 0.65;
        }

        .map-layer-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px 18px;
        }

        .map-layer-group {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .map-layer-group {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .map-layer-label {
            color: var(--muted);
            font-size: 12.5px;
        }

        .map-layer-group button {
            width: 60px;
            flex: none;
            min-height: 28px;
            padding: 3px 0;
            text-align: center;
            border: 1px solid color-mix(in srgb, var(--green-deep) 45%, transparent);
            border-radius: 999px;
            background: transparent;
            color: var(--text);
            font-size: 12.5px;
            font-weight: 600;
            cursor: pointer;
        }

        .map-layer-group button[aria-pressed="true"] {
            background: var(--green);
            color: var(--night);
        }

        .map-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 14px;
            margin: 8px 2px 0;
            color: var(--muted);
            font-size: 12px;
        }

        .map-legend .lg-place {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #fff;
            border: 1.5px solid rgba(0, 0, 0, 0.6);
            box-sizing: border-box;
        }

        .map-legend[hidden] {
            display: none;
        }

        /* Mirrors the vote legend toggle: a quiet text row that
           only opens and closes, never an accent-filled button. */
        .map-legend-toggle {
            display: block;
            width: 100%;
            margin: 10px 0 0;
            padding: 0;
            border: 0;
            background: transparent !important;
            font: inherit;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            text-align: left;
            color: inherit;
            cursor: pointer;
        }

        .map-legend-toggle::after {
            content: "+";
            float: right;
            font-size: 14px;
        }

        .map-legend-toggle[aria-expanded="true"]::after {
            content: "\2212";
        }

        .map-legend-toggle[aria-expanded="true"] {
            margin-bottom: 6px;
        }

        .map-legend .lg-waystone {
            display: inline-block;
            width: 12px;
            height: 12px;
            vertical-align: -2px;
            background: url("images/waystone-icon.png") center / contain no-repeat;
        }

        .map-legend .lg-lookout {
            color: #f0abfc;
        }

        .map-legend .lg-player {
            color: #ffc53d;
        }

        .map-legend .legend-off {
            opacity: 0.55;
        }

        .island-map-credit {
            margin: 8px 2px 0;
            color: var(--muted);
            font-size: 11.5px;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        /* Live map layers (2.33): named place markers, and the dots of
           players who chose to share their location. Exact sharing is
           a solid amber dot; nearest place sharing is the same dot
           hollow, sitting on the place it names. */
        .map-overlay {
            position: absolute;
            inset: 0;
            line-height: 1.25;
        }

        .map-poi {
            z-index: 3;
            position: absolute;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
        }

        .map-poi-label {
            display: block;
            margin-top: 2px;
            color: #F2E3B0;
            font-size: 8px;
            letter-spacing: 0.02em;
            white-space: nowrap;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
            /* Game style name band (Bill, 2026-11-09; mocked from
               his broadcast and approved before shipping): the
               official map prints its names in pale cream on a soft
               dark smear that feathers out at the edges. Em padding
               so the band scales with the label at every zoom. */
            background: radial-gradient(closest-side, rgba(9, 13, 11, 0.62) 55%, rgba(9, 13, 11, 0) 100%);
            padding: 0.28em 1.2em;
            border-radius: 999px;
        }

        /* A name printed where the official in-game map prints it
           (backend lx/ly): the .map-poi base class already centers
           the element on its left/top point. */
        .map-poi-name {
            color: #F2E3B0;
            font-size: 8px;
            letter-spacing: 0.02em;
            white-space: nowrap;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
            /* Game style name band: see .map-poi-label. */
            background: radial-gradient(closest-side, rgba(9, 13, 11, 0.62) 55%, rgba(9, 13, 11, 0) 100%);
            padding: 0.28em 1.2em;
            border-radius: 999px;
        }

        /* Edge names (Bill, 2026-11-12): a name whose official
           spot sits at a map edge extends inward from the spot
           instead of centering on it, so it fits at fit zoom.
           The .map-poi base centers with translate(-50%, -50%);
           these override it (same specificity, later wins).
           The dot stays on the official spot. */
        .map-poi-name-r {
            transform: translate(0, -50%);
        }

        .map-poi-name-l {
            transform: translate(-100%, -50%);
        }

        /* Tuck / untuck (Bill, 2026-11-09): tapping a place name
           tucks it away; a solid circle then marks the place,
           and tapping that circle brings the name back. While
           the name is showing there is no circle at all — the
           circle exists only as the handle for a tucked name
           (Bill's refinement later the same day).
           The circle stays on the place's anchor (fx/fy), NOT
           the name spot (Bill, 2026-11-16): tucking a name
           must not move the dot — the name tucks away in
           place and the dot stays where the place is. A
           teleport place's anchor can sit far from its name
           (Desolate Pass's anchor is up under Hotsprings
           while its name prints far south), and a circle at
           the name spot read as the dot teleporting to a
           different location. The circle draws over names
           (z-index 4), so it stays visible on the anchor.
           Names the declutter hides on its own get no circle;
           they return on zoom. */
        .map-poi-dot {
            display: none;
            position: absolute;
            z-index: 4;
            left: 50%;
            top: 50%;
            width: calc(10px * var(--ico, 1));
            height: calc(10px * var(--ico, 1));
            transform: translate(-50%, -50%);
            border: calc(2px * var(--ico, 1)) solid #F2E3B0;
            border-radius: 50%;
            background: transparent;
            box-shadow: 0 0 0 1px rgba(9, 13, 11, 0.55), 0 1px 2px rgba(0, 0, 0, 0.45);
            box-sizing: border-box;
        }

        .map-poi-dot.is-off {
            display: block;
            background: #F2E3B0;
        }

        .map-poi-name,
        .map-poi-label,
        .map-poi-dot {
            pointer-events: auto;
            cursor: pointer;
        }

        /* Label placement around crowded dots (Bill, 2026-11-07):
           each label sits on the side of its dot with clear space,
           so neighbours no longer print over each other. Default
           is right of the dot; b keeps the label under it. */
        .map-poi-r .map-poi-label,
        .map-poi-l .map-poi-label {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            margin-top: 0;
        }

        .map-poi-r .map-poi-label {
            left: 8px;
        }

        .map-poi-l .map-poi-label {
            right: 8px;
        }

        .map-poi-t .map-poi-label {
            position: absolute;
            bottom: 8px;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 0;
        }

        .map-player {
            z-index: 10;
            position: absolute;
            /* The DOT is the anchor (3.0.3, Bill's catch):
               its centre sits exactly on the shared
               coordinate, and the name hangs below it
               (absolutely positioned), so showing or
               hiding the name never moves the dot. Before
               this, the whole dot + name stack anchored
               by its bottom edge, which floated the dot a
               name-height north of the true spot. */
            transform: translate(-50%, -50%);
            /* Tappable since 3.0.2: a tap toggles the
               gamertag, leaving just the dot. */
            pointer-events: auto;
            cursor: pointer;
        }

        .map-player-dot {
            display: block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ffc53d;
            border: 2px solid #fff;
            box-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
        }

        .map-player.vague .map-player-dot {
            background: rgba(255, 197, 61, 0.25);
        }

        /* A bountied player (Bill, 2026-11-20): a red dot with a
           red ring, so the hunted player reads at a glance. */
        .map-player.bounty .map-player-dot {
            background: #e5484d;
            box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.55), 0 1px 5px rgba(0, 0, 0, 0.55);
        }

        .map-player-name {
            /* Hung below the dot (3.0.3): out of flow, so
               it never displaces the dot from the shared
               coordinate, shown or hidden. */
            position: absolute;
            top: calc(100% + 3px);
            left: 50%;
            transform: translateX(-50%);
            padding: 1px 7px;
            border-radius: 999px;
            background: rgba(8, 14, 10, 0.75);
            color: #fff;
            font-size: 10.5px;
            white-space: nowrap;
        }

        .map-player.name-hidden .map-player-name {
            display: none;
        }

        .map-share-line {
            margin: 10px 2px 0;
            color: var(--muted);
            font-size: 12.5px;
            line-height: 1.5;
        }

        /* Player bounties (Bill, 2026-11-20): the banner names
           dinoisland.win so nobody confuses it with the in-game
           map; the mine line tells the hunted player their live
           location is shared until the bounty ends. */
        .map-bounty-banner {
            margin: 0 0 10px;
            padding: 10px 12px;
            border: 1px solid #ffc53d;
            border-radius: 10px;
            background: rgba(255, 197, 61, 0.12);
            color: #ffc53d;
            font-size: 13.5px;
            font-weight: 600;
            line-height: 1.5;
        }

        .map-bounty-banner p {
            margin: 0;
        }

        .map-bounty-banner p + p {
            margin-top: 6px;
        }

        .map-bounty-mine {
            margin: 10px 2px 0;
            color: #e5484d;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.5;
        }

        .map-bounty-section {
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid var(--line);
        }

        .map-bounty-form {
            display: grid;
            gap: 8px;
            margin-top: 10px;
        }

        .map-bounty-form select,
        .map-bounty-form input {
            width: 100%;
            padding: 9px 10px;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--surface);
            color: inherit;
            font: inherit;
            font-size: 14px;
        }

        .map-bounty-form button {
            padding: 10px 14px;
            border: none;
            border-radius: 10px;
            background: var(--green-deep);
            color: #08130c;
            font: inherit;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }

        .map-bounty-form button:disabled {
            opacity: 0.55;
            cursor: default;
        }

        /* Player card location sharing toggle (2.33). */
        .pc-share {
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid var(--line);
        }

        .pc-share-note {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }

        /* Bill, 2026-11-14: the Discord sign-in button in the map's
           location-sharing section sits centered, not flush left like
           the text above it. Only the signed-out button lives here. */
        #mapShareControl .discord-button {
            display: flex;
            width: fit-content;
            margin: 14px auto 0;
        }

        .map-share-tease {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 12px;
            font-style: italic;
            text-align: center;
        }

        .share-toggle {
            display: flex;
            gap: 6px;
            margin-top: 10px;
        }

        .share-toggle button {
            flex: 1;
            padding: 8px 6px;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: transparent;
            color: inherit;
            font: inherit;
            font-size: 13px;
            cursor: pointer;
        }

        .share-toggle button[aria-pressed="true"] {
            background: var(--green-deep);
            border-color: var(--green-deep);
            color: #08130c;
            font-weight: 600;
        }

        .share-toggle button:disabled {
            opacity: 0.55;
            cursor: default;
        }

        /* Teleport ways (2026-11-12): the two routes as small cards
           with the price as the figure, so the choice reads at a
           glance instead of two paragraphs of fine print. */
        .teleport-ways {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 8px;
            margin: 0 0 12px;
        }

        .teleport-way {
            padding: 10px 12px;
            border: 1px solid rgba(81, 108, 82, 0.35);
            border-radius: 10px;
        }

        .teleport-way-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 8px;
            margin: 0 0 3px;
            font-size: 12.5px;
        }

        .teleport-way-price {
            font-weight: 700;
            white-space: nowrap;
        }

        .teleport-way-body {
            margin: 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }

        .teleport-way-examples {
            margin: 2px 0 0;
            padding-left: 18px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.6;
        }

        .teleport-way-example-label {
            margin: 6px 0 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }

        .teleport-way-need {
            margin: 3px 0 0;
            color: var(--muted);
            font-size: 11.5px;
            line-height: 1.45;
        }

        .teleport-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
            gap: 7px;
            margin: 0 0 14px;
        }

        .teleport-place {
            padding: 6px 5px;
            border: 1px solid rgba(81, 108, 82, 0.35);
            border-radius: 9px;
            background: transparent;
            color: inherit;
            font-size: 11.5px;
            line-height: 1.3;
            cursor: pointer;
        }

        .teleport-place small {
            display: block;
            color: var(--muted);
            font-size: 10px;
        }

        .teleport-place.selected {
            border-color: #58a05c;
            background: rgba(88, 160, 92, 0.18);
            font-weight: 600;
        }

        .teleport-status {
            margin: 10px 0 0;
            font-size: 13px;
            line-height: 1.5;
        }

        .diagnostics-fields {
            display: grid;
            gap: 7px;
        }

        .diagnostics-fields label {
            color: var(--text);
            font-size: 12px;
            font-weight: 600;
        }

        .diagnostics-fields select,
        .diagnostics-fields textarea {
            width: 100%;
            min-width: 0;
            padding: 9px 10px;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: var(--panel);
            color: var(--text);
            font: inherit;
            font-size: 13px;
        }

        .diagnostics-fields textarea {
            resize: vertical;
        }

        .diagnostics-fields select:focus-visible,
        .diagnostics-fields textarea:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .diagnostics-audio-issue[hidden] {
            display: none;
        }

        .diagnostics-status {
            min-height: 16px;
            margin: 10px 0 0;
            color: var(--muted);
            font-size: 12px;
            text-align: center;
        }

        .diagnostics-status[hidden] {
            display: none;
        }

        .spatial-audio-settings {
            display: grid;
            gap: 12px;
        }

        .spatial-audio-settings label {
            margin: 0;
            color: var(--text);
            font-size: 12px;
            font-weight: 600;
        }

        .spatial-audio-settings select {
            width: 100%;
            min-height: 42px;
            padding: 9px 10px;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: var(--panel);
            color: var(--text);
            font: inherit;
            font-size: 13px;
        }

        .spatial-audio-settings select:focus-visible,
        .spatial-audio-settings button:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .spatial-audio-help,
        .spatial-calibration-status {
            margin: 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }

        .spatial-audio-settings .spatial-audio-reverse {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 400;
        }

        .spatial-audio-settings button.secondary,
        .spatial-dialog-actions button.secondary {
            border: 1px solid var(--line);
            background: var(--panel-strong);
            color: var(--text);
            box-shadow: none;
        }

        .spatial-audio-reverse input {
            width: auto;
            min-height: 0;
            margin: 0;
            accent-color: var(--accent);
        }

        .spatial-calibration-answers {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
        }

        .spatial-calibration-answers button {
            min-width: 0;
            min-height: 40px;
            padding: 8px 5px;
            font-size: 11px;
        }

        .spatial-calibration-answers[hidden] {
            display: none;
        }

        /* Spatial audio pop-up (Bill, 2026-11-14): the settings live
           in a dialog opened from the voice console. */
        .spatial-dialog {
            width: min(92vw, 420px);
            max-height: calc(100vh - 32px);
            overflow-y: auto;
            padding: 20px;
            border: 1px solid var(--line);
            border-radius: 14px;
            background: var(--panel);
            color: var(--text);
        }

        .spatial-dialog::backdrop {
            background: rgba(5, 11, 20, 0.55);
        }

        .spatial-dialog-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 14px;
        }

        .spatial-dialog-head .mini-title {
            margin: 0;
            font-size: 12px;
        }

        .spatial-dialog-close {
            flex: 0 0 auto;
            min-height: 30px;
            padding: 4px 12px;
            font-size: 12px;
        }

        .spatial-dialog-actions {
            margin-top: 16px;
        }

        @media (min-width: 520px) and (max-width: 760px) {
            .controls {
                grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
                gap: 10px;
                padding: 10px;
            }

            .voice-side,
            .player-rosters {
                order: initial;
            }

            .player-rosters .speaker-box,
            .voice-side .speaker-box {
                padding: 14px 12px;
            }

            .voice-side .voice-console {
                min-height: 0;
                padding: 16px 12px;
            }

            .voice-side .mic-wrap {
                margin-bottom: 12px;
            }

            .voice-side .mic {
                width: 64px;
                height: 64px;
            }

            .voice-side .voice-console .button-row {
                width: 100%;
                gap: 6px;
            }

            .voice-side .voice-console button {
                padding-right: 8px;
                padding-left: 8px;
            }

            .speaker-list li {
                gap: 6px;
            }

            .player-presence {
                gap: 5px;
                font-size: 10px;
            }
        }

        @media (max-width: 680px) {
            .topbar {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                min-height: 0;
                padding: 12px 14px;
            }

            .topbar-start {
                order: 1;
                flex: 0 1 auto;
                gap: 6px;
            }

            .topbar .brand {
                order: 3;
                flex: 1 0 100%;
                justify-content: center;
                min-width: 0;
                font-size: 16px;
                font-weight: 800;
                white-space: nowrap;
            }

            .topbar .header-actions {
                order: 2;
                flex: 0 1 auto;
                justify-content: flex-end;
                min-width: 0;
            }

            .topbar .theme-switch {
                flex: 0 1 auto;
                min-width: 0;
                gap: 1px;
                padding: 2px;
            }

            .topbar .theme-switch .theme-option {
                flex: 1 1 auto;
                min-width: 0;
                min-height: 27px;
                padding: 4px clamp(5px, 1.8vw, 9px);
                font-size: clamp(10px, 2.8vw, 12px);
                white-space: nowrap;
            }

            .topbar .brand-dino-mark {
                flex-basis: 64px;
                width: 64px;
            }

            .topbar .brand-dino-mark img {
                width: 64px;
                height: 36px;
            }
        }

        @media (max-width: 560px) {
            .tabs-bar {
                display: grid;
                grid-template-columns: minmax(0, 1fr);
                gap: 0;
                padding: 0;
            }

            .tabs-bar .site-tabs {
                display: grid;
                grid-template-columns: repeat(4, minmax(0, 1fr));
                width: 100%;
                gap: 4px;
                padding: 8px 10px 0;
            }

            .tabs-bar .site-tab {
                min-width: 0;
                padding-right: 4px;
                padding-left: 4px;
                /* Fluid labels (2026-11-16, split-screen bug): the font
                   shrinks as the window narrows instead of overflowing
                   into the next tab. Ellipsis is the last resort only;
                   labels never overlap. */
                font-size: clamp(8px, 2.8vw, 12px);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .tabs-bar-status {
                justify-content: flex-end;
                gap: 8px;
                min-width: 0;
                padding: 8px 12px 10px;
                border-top: 1px solid var(--line);
            }

            .tabs-bar .status-pill {
                margin-top: 0;
            }

            .tabs-bar-status .discord-link {
                display: grid;
                flex: 0 0 36px;
                width: 36px;
                height: 36px;
                place-items: center;
            }
        }

        @media (max-width: 380px) {
            .topbar {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto;
                gap: 8px;
                padding-right: 10px;
                padding-left: 10px;
            }

            .topbar-start {
                grid-column: 1;
                grid-row: 1;
            }

            .topbar .brand {
                grid-column: 1 / -1;
                grid-row: 2;
                justify-self: center;
                flex-basis: 84px;
                font-size: 15px;
            }

            .topbar .header-actions {
                grid-column: 2;
                grid-row: 1;
            }

            .topbar .brand-dino-mark {
                flex-basis: 54px;
                width: 54px;
            }

            .topbar .brand-dino-mark img {
                width: 54px;
                height: 32px;
            }

            .topbar .theme-switch .theme-option {
                min-height: 25px;
                padding: 3px 6px;
                font-size: 10px;
            }

            .tabs-bar .status-pill {
                gap: 6px;
                padding: 7px 9px;
                font-size: 11px;
            }
        }

        .topbar .brand > span {
            position: relative;
            display: inline-block;
            padding: 0 2px 7px;
            color: #315f42;
            font-size: 19px;
            font-weight: 800;
            letter-spacing: -0.035em;
            line-height: 1.2;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
        }

        .topbar .brand > span::after {
            position: absolute;
            right: 0;
            bottom: 0;
            left: 0;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, transparent, #4e9868 16%, #c09a54 52%, #4e9868 84%, transparent);
            content: "";
        }

        :root[data-theme="dark"] .topbar .brand > span {
            color: #d7eedc;
            text-shadow: 0 0 22px rgba(109, 196, 142, 0.16);
        }

        :root[data-theme="dark"] .topbar .brand > span::after {
            background: linear-gradient(90deg, transparent, #72c592 18%, #d3bc80 52%, #72c592 82%, transparent);
        }

        @media (max-width: 680px) {
            .topbar .brand > span {
                font-size: 18px;
            }
        }

        @media (max-width: 380px) {
            .topbar .brand > span {
                font-size: 17px;
            }
        }
        /* ============================================================
           RESPONSIVE PASS — appended overrides.
           Everything above is the original stylesheet, untouched; the
           rules below only ADD or override at equal/higher specificity
           where a real breakpoint problem was found. No colors,
           branding, copy, markup, or JavaScript were changed.
           Targets: phone portrait (console second screen), split-screen
           panes (narrow AND short), non-maximized PC windows, desktop.
           ============================================================ */

        /* Mobile browser chrome: size the centered layout against the
           dynamic viewport height, not a URL-bar-hidden 100vh. */
        body {
            min-height: 100vh;
            min-height: 100dvh;
        }

        /* The install popover is a fixed 250px; never let it exceed a
           narrow pane's viewport. */
        .install-popover {
            width: min(250px, calc(100vw - 24px));
        }

        /* Form fields were 13-14px. Below 16px, iOS Safari auto-zooms
           on focus — a real disruption when a console player taps the
           join-code field mid-flow. Force a legible, zoom-free 16px on
           phones, split panes, and small tablet windows. */
        @media (max-width: 900px) {

            input,
            textarea,
            select,
            .join-code-box textarea,
            .diagnostics-fields select,
            .diagnostics-fields textarea,
            .spatial-audio-settings select {
                font-size: 16px;
            }
        }

        /* Touch targets that SHRANK at small widths in the original
           queries: per-player mute was 30px tall and theme options fell
           to 25-27px. Restore one-handed-friendly sizes. Status text in
           the tabs bar was 11px; give it a 12px floor. */
        @media (max-width: 680px) {
            .player-mute-button {
                min-height: 40px;
                padding: 8px 11px;
                font-size: 11px;
            }

            .topbar .theme-switch .theme-option {
                min-height: 36px;
            }

            .tabs-bar .status-pill {
                font-size: 12px;
            }
        }

        /* SHORT viewports — split-screen panes and landscape phones.
           The original stylesheet had NO height-based queries, so in a
           short pane the stacked header, 56px login padding, 84px
           join-code box, and 190-220px voice console pushed the Connect
           and Mute/Disconnect controls below the fold. This block
           compacts vertically so the core voice controls (join code,
           Connect, mic state, Mute, Disconnect, first speakers) fit a
           ~360-540px-tall pane without scrolling. */
        @media (max-height: 540px) {
            body {
                padding: 10px;
            }

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

            .topbar .brand {
                font-size: 14px;
            }

            .topbar .brand > span {
                font-size: 16px;
                padding-bottom: 4px;
            }

            .tabs-bar .site-tab {
                min-height: 34px;
                padding: 6px 10px;
            }

            .login-layout {
                gap: 10px;
                padding: 10px;
            }

            .login-layout .login-box,
            .login-box {
                padding: 16px 18px;
            }

            .login-layout > .donation-banner {
                padding: 16px 18px;
            }

            .join-code-box textarea,
            :root[data-theme="dark"] .join-code-box textarea {
                min-height: 48px;
            }

            .controls {
                gap: 10px;
                padding: 10px;
            }

            .voice-console,
            .voice-side .voice-console {
                min-height: 0;
                padding: 12px 14px;
            }

            .mic-wrap,
            .voice-side .mic-wrap {
                margin-bottom: 8px;
            }

            .mic,
            .voice-side .mic {
                width: 56px;
                height: 56px;
            }

            .mic svg {
                width: 24px;
                height: 24px;
            }

            .speaker-box,
            .player-rosters .speaker-box,
            .voice-side .speaker-box {
                padding: 12px 14px;
            }

            .speaker-list li {
                min-height: 40px;
                padding: 8px 10px;
            }

            .log {
                max-height: 72px;
            }

            .donation-banner {
                margin-top: 12px;
            }

            .server-health-section {
                padding: 10px;
            }

            .site-footer {
                padding: 8px 14px 10px;
            }
        }

        /* Short AND narrow (a phone/tablet split pane): the <=680px
           rules stack the header brand on its own row and stack the
           tabs bar into two rows — together ~200px of chrome before
           any content. In a short pane, collapse both back to single
           rows so the voice UI gets the height instead. */
        @media (max-height: 540px) and (max-width: 680px) {
            .topbar {
                flex-wrap: nowrap;
            }

            .topbar-start {
                order: 0;
            }

            .topbar .brand {
                order: 0;
                flex: 0 1 auto;
            }

            .topbar .header-actions {
                order: 0;
            }

            .tabs-bar {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 6px 10px;
            }

            .tabs-bar .site-tabs {
                display: flex;
                width: auto;
                gap: 4px;
                padding: 0;
            }

            .tabs-bar-status {
                border-top: none;
                padding: 0;
            }
        }


        /* ===== Modern refresh (2.5): fluid brand mark, smooth scaling, touch polish ===== */
        .topbar .brand-dino-mark {
            flex: 0 0 auto;
            flex-basis: auto;
            width: clamp(60px, 16vw, 92px);
            height: auto;
            aspect-ratio: 2 / 1;
        }

        .topbar .brand-dino-mark img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

        html {
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: rgba(120, 140, 125, 0.55) transparent;
        }

        :root {
            color-scheme: light;
        }

        :root[data-theme="dark"] {
            color-scheme: dark;
        }

        * {
            -webkit-tap-highlight-color: transparent;
        }

        button,
        .site-tab,
        .donation-link {
            touch-action: manipulation;
            transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.08s ease;
        }

        button:active,
        .site-tab:active,
        .donation-link:active {
            transform: translateY(1px);
        }

        ::selection {
            background: rgba(31, 122, 77, 0.3);
        }

        :focus-visible {
            outline: 2px solid var(--green);
            outline-offset: 2px;
        }

        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(120, 140, 125, 0.5);
            border-radius: 8px;
        }

        .donate-wrap h2 {
            font-size: clamp(20px, 5vw, 24px);
        }

        .donate-wrap h3 {
            font-size: clamp(16px, 4.4vw, 18px);
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            button:active,
            .site-tab:active,
            .donation-link:active {
                transform: none;
            }
        }


        /* ===== Tabs bar layout: Discord left, tabs, Install App centered, status right ===== */
        .tabs-bar {
            display: grid;
            grid-template-columns: auto minmax(0, auto) minmax(0, 1fr) auto;
            grid-template-areas: "discord tabs install status";
            align-items: center;
            column-gap: 12px;
        }

        .tabs-bar > .discord-link {
            grid-area: discord;
        }

        .tabs-bar .site-tabs {
            grid-area: tabs;
        }

        .tabs-bar-status {
            grid-area: status;
            justify-self: end;
        }

        .tabs-bar-install {
            grid-area: install;
            justify-self: center;
            position: relative;
            padding: 0;
        }

        .tabs-bar-install:has(#installButton[hidden]) {
            display: none;
        }

        .tabs-bar-install .install-popover {
            left: 50%;
            transform: translateX(-50%);
            max-width: calc(100vw - 24px);
        }

        @media (max-width: 760px) {
            .tabs-bar {
                grid-template-columns: auto minmax(0, 1fr) auto;
                grid-template-areas:
                    "tabs tabs tabs"
                    "discord install status";
                column-gap: 8px;
            }

            .tabs-bar-status {
                justify-self: end;
            }
        }

        @media (max-width: 560px) {
            .tabs-bar {
                grid-template-columns: auto minmax(0, 1fr) auto;
                grid-template-areas:
                    "tabs tabs tabs"
                    "discord install status";
                column-gap: 8px;
            }

            .tabs-bar-install {
                display: flex;
                align-items: center;
                justify-content: center;
                align-self: stretch;
                border-top: 1px solid var(--line);
            }

            .tabs-bar > .discord-link {
                display: grid;
                place-items: center;
                justify-self: start;
                align-self: stretch;
                width: 36px;
                margin-left: 10px;
                border-top: 1px solid var(--line);
            }

            .tabs-bar-status {
                justify-self: end;
            }
        }


        /* ===== 2.5.4: Status details centered in the strip, Install App at true center ===== */
        .status-strip {
            justify-content: center;
            gap: 10px 18px;
            border-radius: 14px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        .status-strip .status-strip-item:nth-child(1),
        .status-strip .status-strip-item:nth-child(2) {
            order: 1;
        }

        .status-strip .status-strip-more {
            order: 2;
            margin-left: 0;
            padding: 4px 12px;
            border: 1px solid var(--speaker-border);
            border-radius: 999px;
            background: color-mix(in srgb, var(--text) 7%, transparent);
            white-space: nowrap;
        }

        .status-strip .status-strip-item:nth-child(3),
        .status-strip .status-strip-item:nth-child(4) {
            order: 3;
        }

        @media (max-width: 760px) {
            .tabs-bar {
                grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            }

            .tabs-bar > .discord-link {
                justify-self: start;
            }

            .tabs-bar-status {
                justify-self: end;
            }
        }


        /* ===== 2.6: Liquid Glass. Frosted panels over a deep jungle backdrop.
           One self contained layer: delete this block to return to the classic look. ===== */
        :root {
            --glass-panel: rgba(255, 255, 255, 0.8);
            --glass-card: rgba(255, 255, 255, 0.42);
            --glass-border: rgba(255, 255, 255, 0.65);
            --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(20, 50, 30, 0.05),
                0 10px 30px rgba(8, 26, 15, 0.18);
            --glass-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(20, 50, 30, 0.06),
                0 30px 70px rgba(4, 18, 9, 0.45);
        }

        :root[data-theme="dark"] {
            --glass-panel: rgba(15, 25, 19, 0.55);
            --glass-card: rgba(23, 36, 28, 0.48);
            --glass-border: rgba(190, 230, 200, 0.22);
            --glass-shadow: inset 0 1px 0 rgba(220, 255, 230, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.25),
                0 10px 30px rgba(0, 0, 0, 0.35);
            --glass-panel-shadow: inset 0 1px 0 rgba(220, 255, 230, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.3),
                0 30px 70px rgba(0, 0, 0, 0.55);
        }

        :root body {
            background:
                radial-gradient(60% 50% at 12% 0%, rgba(64, 145, 92, 0.5), transparent 60%),
                radial-gradient(50% 40% at 92% 8%, rgba(216, 164, 62, 0.26), transparent 60%),
                radial-gradient(75% 60% at 50% 112%, rgba(24, 84, 54, 0.55), transparent 62%),
                linear-gradient(180deg, #0e2115 0%, #0a1811 55%, #060f0a 100%);
            background-attachment: fixed;
        }

        :root .panel,
        :root[data-theme="dark"] .panel {
            background: var(--glass-panel) !important;
            -webkit-backdrop-filter: blur(20px) saturate(170%);
            backdrop-filter: blur(20px) saturate(170%);
            border: 1px solid var(--glass-border) !important;
            border-radius: 24px !important;
            box-shadow: var(--glass-panel-shadow) !important;
        }

        :root .topbar,
        :root .tabs-bar,
        :root .login-box,
        :root .speaker-box,
        /* .voice-console is NOT in this list (Bill, 2026-11-14): the
           glass card forces a frosted white background on light
           theme, which made the console white with near-white
           button text. The console keeps its own dark gradient
           (the #controls .voice-console rule), which is what its
           buttons are coloured for. */
        :root .donation-banner,
        :root .server-health-card,
        :root .status-strip,
        :root .remembered-box,
        :root .alderon-incident,
        :root .install-popover {
            background: var(--glass-card) !important;
            -webkit-backdrop-filter: blur(14px) saturate(160%);
            backdrop-filter: blur(14px) saturate(160%);
            border: 1px solid var(--glass-border) !important;
            border-radius: 18px !important;
            box-shadow: var(--glass-shadow) !important;
        }

        :root .site-footer {
            background: transparent !important;
            border-top: 1px solid var(--glass-border);
            box-shadow: none !important;
        }

        :root .site-tab[aria-selected="true"] {
            background: var(--glass-card) !important;
            -webkit-backdrop-filter: blur(10px) saturate(160%);
            backdrop-filter: blur(10px) saturate(160%);
            border-radius: 999px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 8px rgba(8, 26, 15, 0.15);
        }

        @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
            :root {
                --glass-panel: rgba(255, 255, 255, 0.94);
                --glass-card: rgba(255, 255, 255, 0.92);
            }

            :root[data-theme="dark"] {
                --glass-panel: rgba(13, 21, 16, 0.95);
                --glass-card: rgba(18, 28, 22, 0.93);
            }
        }

        @media (prefers-reduced-transparency: reduce) {
            :root {
                --glass-panel: rgba(255, 255, 255, 0.96);
                --glass-card: rgba(255, 255, 255, 0.95);
            }

            :root[data-theme="dark"] {
                --glass-panel: rgba(13, 21, 16, 0.97);
                --glass-card: rgba(18, 28, 22, 0.96);
            }

            :root .panel,
            :root .topbar,
            :root .tabs-bar,
            :root .login-box,
            :root .speaker-box,
            :root .voice-console,
            :root .donation-banner,
            :root .donate-bill,
            :root .donate-meter,
            :root .server-health-card,
            :root .status-strip,
            :root .remembered-box,
            :root .alderon-incident,
            :root .install-popover {
                -webkit-backdrop-filter: none !important;
                backdrop-filter: none !important;
            }
        }


        /* ===== 2.6.1: status strip: statuses in one aligned row, Status details centered below.
           2.34.4: the strip holds THREE statuses since the Alderon row was removed
           (2.32.8) — equal thirds replace the old four auto columns, whose phantom
           fourth column pushed the row off center and left the spacing uneven
           (Bill, 2026-11-06). Equal dot spacing (Bill, 2026-11-20): centering
           each dot+label unit in its column left the DOTS unevenly spaced,
           because the labels differ in length — so every unit is the same fixed
           width with its dot at the unit's left edge, which puts the dots
           exactly one column apart at every width. `.four-dots` switches the
           grid to four columns when the Alderon item is added. ===== */
        .status-strip {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            justify-content: stretch;
            gap: 10px 28px;
        }

        .status-strip.four-dots {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .status-strip .status-strip-item {
            order: 0;
            grid-row: 1;
            justify-self: center;
            /* Fixed unit width (widest label is Dino Island, ~79px at 12px):
               with every unit the same width and the dot at its left edge,
               the dots sit exactly one column apart. Do not center the
               contents — that reintroduces the uneven dot spacing. */
            width: 88px;
            justify-content: flex-start;
        }

        .status-strip .status-strip-more {
            order: 0;
            grid-row: 2;
            grid-column: 1 / -1;
            justify-self: center;
            margin-top: 2px;
        }

        @media (max-width: 900px) {
            .status-strip {
                justify-content: space-between;
            }
        }

        @media (max-width: 560px) {
            .status-strip {
                gap: 8px 10px;
                padding: 10px;
            }

            .status-strip-item {
                font-size: 11px;
            }
        }

        /* The pre-2.34.4 max-width: 380px strip override (two
           columns, third status wrapped) is gone: with equal
           thirds the three labels fit on one row even at 320px,
           and the strip keeps one design at every width. */


        /* ===== 2.6.4: tabs bar in the in-between band (landscape phones, small split panes):
           tabs spread left / center / right, status row gets breathing room ===== */
        @media (min-width: 561px) and (max-width: 760px) {
            .tabs-bar {
                padding: 10px 14px 12px;
                row-gap: 8px;
            }

            .tabs-bar .site-tabs {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
                align-items: center;
                width: 100%;
            }

            .tabs-bar .site-tab:nth-child(1) {
                justify-self: start;
            }

            .tabs-bar .site-tab:nth-child(2) {
                justify-self: center;
            }

            .tabs-bar .site-tab:nth-child(3) {
                justify-self: end;
            }

            .tabs-bar > .discord-link {
                align-self: center;
                margin-left: 2px;
            }

            .tabs-bar-status {
                align-self: center;
            }

            .tabs-bar-install {
                align-self: center;
            }
        }


        /* ===== 2.6.5: stacked tabs bar pairs: each second row control centered under its tab
           (Discord under Social, Install App under Server Status, Ready under Donate) ===== */
        @media (max-width: 760px) {
            .tabs-bar {
                grid-template-columns: auto auto auto;
                grid-template-areas:
                    "social health donate"
                    "discord install status";
                justify-content: space-between;
                align-items: center;
                column-gap: 10px;
                row-gap: 8px;
                padding: 10px 14px 12px;
            }

            .tabs-bar .site-tabs {
                display: contents;
            }

            #socialTab {
                grid-area: social;
                justify-self: center;
            }

            #healthTab {
                grid-area: health;
                justify-self: center;
            }

            #donateTab {
                grid-area: donate;
                justify-self: center;
            }

            .tabs-bar > .discord-link {
                grid-area: discord;
                justify-self: center;
                align-self: center;
                margin-left: 0;
                border-top: 0;
            }

            .tabs-bar-install {
                grid-area: install;
                justify-self: center;
                align-self: center;
                border-top: 0;
            }

            .tabs-bar-status {
                grid-area: status;
                justify-self: center;
                align-self: center;
                padding: 0;
                border-top: 0;
            }

            .tabs-bar .status-pill {
                margin-top: 0;
            }
        }


        /* ===== 2.6.6: Ready pill lives in the Voice Link section ===== */
        .voice-status-row {
            display: flex;
            justify-content: flex-end;
            padding: 10px 18px 0;
        }


        /* ===== 2.6.7: Ready pill inside the Voice Link card, right of the heading ===== */
        .login-intro {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            /* Last resort at the narrowest widths: the pill drops
               below the heading instead of squeezing it. */
            flex-wrap: wrap;
        }

        .login-intro .status-pill {
            flex: 0 1 auto;
            min-width: 0;
            margin-top: 0;
            /* Fluid pill text (2026-11-16): scales with the window. */
            font-size: clamp(10px, 2.8vw, 12px);
        }

        /* The LED dot must never squish: it keeps its round size
           even when the pill is squeezed (split-screen bug, 2026-11-16). */
        .status-pill .status-dot {
            flex-shrink: 0;
        }


        /* ===== 2.6.8: Install App moves under Donate in the stacked tabs bar ===== */
        @media (max-width: 760px) {
            .tabs-bar {
                grid-template-areas:
                    "social health donate"
                    "discord . install";
            }

            .tabs-bar-install .install-popover {
                left: auto;
                right: 0;
                transform: none;
            }
        }


        /* ===== 2.6.9: Server Status pinned to the exact center of the stacked tabs bar.
           The side columns are content sized and unequal (Install App is wide), which
           pulled the middle tab left of center; it now centers on the bar itself. ===== */
        @media (max-width: 760px) {
            .tabs-bar {
                position: relative;
            }

            #healthTab {
                grid-area: auto;
                position: absolute;
                top: 10px;
                left: 0;
                right: 0;
                width: fit-content;
                margin-inline: auto;
            }
        }

        /* Brand mark: the group emblem line art, sized up to use the topbar space. */
        .topbar .brand-dino-mark {
            flex: 0 0 88px;
            width: 88px;
            height: 88px;
        }

        .topbar .brand-dino-mark img {
            width: 88px;
            height: 88px;
            object-fit: cover;
            border-radius: 0;
        }

        @media (max-width: 760px) {
            .topbar .brand-dino-mark {
                flex: 0 0 72px;
                width: 72px;
                height: 72px;
            }

            .topbar .brand-dino-mark img {
                width: 72px;
                height: 72px;
            }
        }
        /* Island skyline outline above the Dino Island title, its bottom edge meeting the title top (2.7.24). */
        .brand {
            position: relative;
        }

        .brand > span {
            position: relative;
            z-index: 1;
        }

        .brand-backdrop {
            position: absolute;
            left: 50%;
            bottom: 100%;
            width: 252px;
            height: 62px;
            transform: translateX(-50%);
            opacity: 0.16;
            pointer-events: none;
        }

        :root[data-theme="dark"] .brand-backdrop {
            opacity: 0.22;
        }

        @media (max-width: 760px) {
            .brand-backdrop {
                display: none;
            }
        }
        /* Optional Discord sign in (2.7). */
        .discord-box {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid rgba(127, 148, 128, 0.35);
            text-align: center;
        }

        .discord-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 18px;
            border-radius: 999px;
            background: #5865f2;
            color: #ffffff;
            font-weight: 600;
            text-decoration: none;
        }

        .discord-button:hover {
            background: #4752c4;
        }

        /* The login layout button system (2.8.0) outranks .discord-button on
           specificity, so restate the Discord colors inside the login layout:
           every Sign in with Discord button is Discord blurple (2.17.1). */
        .login-layout .discord-button {
            background: #5865f2;
        }

        .login-layout .discord-button:hover {
            background: #4752c4;
        }

        .discord-note {
            margin: 10px 0 0;
            font-size: 0.92em;
            opacity: 0.85;
        }
        /* Title rests low in the bar, at the shore of its island backdrop. */
        .brand {
            align-self: flex-end;
        }
        /* Field Report lives in the Game tab (moved from the server card in 2.10). */
        /* Field Report opens the Game tab (moved above Teleport in 2.11.5 so
           the island snapshot is not buried under the place grid); Teleport
           carries the divider instead. */
        .field-report-block {
            margin: 0;
        }

        .teleport-box {
            margin-top: 18px;
            padding-top: 16px;
            border-top: 1px solid rgba(127, 148, 128, 0.35);
        }
        /* Field Report summary line (2.7.5): population state, nothing else. */
        .field-report-summary {
            margin: 8px 0 0;
            font-size: 13px;
            color: var(--text);
        }
        /* Per-server Field Report sections (2.25): one labelled block per
           game server, so a second server or map renders as a second
           block under the same heading with no redesign. */
        .field-report-server + .field-report-server {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid rgba(127, 148, 128, 0.35);
        }
        .field-report-server-name {
            margin: 10px 0 0;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--muted);
        }
        /* Field Report shapes (2.45.12): each section wears the shape
           that fits its data instead of every section rendering as the
           same name-and-number list. Population gets proportional bars,
           standings and island totals get stat tiles (the player card's
           .pc-tile language), the three boards get ranked tables in a
           fluid grid, rivalries get head to head cards, and still
           standing gets name chips. */
        .fr-pop {
            display: grid;
            gap: 8px;
            margin: 10px 0 0;
            padding: 0;
            list-style: none;
        }
        .fr-pop-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            font-size: 13px;
            color: var(--text);
        }
        .fr-pop-head strong {
            font-family: var(--font-data);
            font-size: 14px;
            font-weight: 600;
        }
        .fr-pop-track {
            height: 6px;
            margin-top: 3px;
            border-radius: 999px;
            background: color-mix(in srgb, var(--speaker-border) 35%, transparent);
            overflow: hidden;
        }
        .fr-pop-fill {
            height: 100%;
            border-radius: 999px;
            background: color-mix(in srgb, var(--accent, #7fb069) 75%, var(--text));
        }
        .fr-tiles {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
            gap: 8px;
            margin-top: 10px;
        }
        .fr-boards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
            gap: 4px 22px;
            align-items: start;
        }
        .fr-boards > [hidden] {
            display: none;
        }
        .fr-boards > .scoreboard-block {
            margin-top: 6px;
            padding-top: 0;
            border-top: none;
        }
        .fr-table {
            width: 100%;
            max-width: 100%;
            border-collapse: collapse;
            font-variant-numeric: tabular-nums;
            margin-top: 6px;
        }
        .fr-table th,
        .fr-table td {
            padding: 5px 6px;
            border-top: 1px solid var(--line);
            text-align: right;
        }
        .fr-table thead th {
            border-top: none;
            padding-top: 0;
            font-size: 11px;
            font-weight: 700;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .fr-table th:first-child,
        .fr-table td:first-child {
            text-align: left;
            padding-left: 0;
        }
        .fr-table th:last-child,
        .fr-table td:last-child {
            padding-right: 0;
        }
        .fr-table .fr-rank {
            width: 2ch;
            color: var(--muted);
            font-family: var(--font-data);
            font-weight: 600;
        }
        .fr-table td.fr-num {
            font-family: var(--font-data);
            font-size: 15px;
            font-weight: 600;
            color: var(--text);
        }
        .fr-table td.fr-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 0;
            font-size: 13px;
        }
        .fr-table tr.fr-top td {
            background: color-mix(in srgb, var(--accent, #7fb069) 10%, transparent);
        }
        .fr-table tr.fr-top .fr-rank {
            color: var(--text);
        }
        .fr-duels {
            display: grid;
            gap: 8px;
            margin-top: 10px;
        }
        .fr-duel {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            border: 1px solid color-mix(in srgb, var(--speaker-border) 70%, transparent);
            border-radius: 12px;
            background: color-mix(in srgb, var(--panel) 65%, transparent);
            font-size: 13px;
        }
        .fr-duel .fr-duel-a {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 600;
        }
        .fr-duel .fr-duel-b {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: right;
        }
        .fr-duel .fr-duel-score {
            text-align: center;
        }
        .fr-duel .fr-duel-score strong {
            display: block;
            font-family: var(--font-data);
            font-size: 16px;
            font-weight: 600;
            line-height: 1.1;
        }
        .fr-duel .fr-duel-score span {
            display: block;
            color: var(--muted);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }
        /* Scope switch (2.45.14, per-map picker 2.45.15): one pill per
           map that has occurred, alphabetical, then All time. Totals
           and boards default to the map the server is running; the
           choice persists per device. */
        .fr-scope {
            display: inline-flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 10px;
            padding: 3px;
            border: 1px solid color-mix(in srgb, var(--speaker-border) 70%, transparent);
            border-radius: 999px;
            background: color-mix(in srgb, var(--panel) 65%, transparent);
        }
        /* display beats [hidden]: without this the empty switch
           renders as an 8px box even when fieldreport.ts hides it. */
        .fr-scope[hidden] {
            display: none;
        }
        .fr-scope button {
            font: inherit;
            font-size: 12.5px;
            font-weight: 600;
            padding: 5px 13px;
            border: 0;
            border-radius: 999px;
            background: transparent;
            color: var(--muted);
            cursor: pointer;
        }
        .fr-scope button[aria-pressed="true"] {
            background: color-mix(in srgb, var(--accent, #7fb069) 28%, var(--panel));
            color: var(--text);
        }
        /* Deaths tile expansion (2.45.17): the tile is the button. */
        .fr-tiles .pc-tile.fr-expandable {
            cursor: pointer;
        }
        .fr-tiles .pc-tile.fr-expandable span::after {
            content: ' ▾';
            color: var(--muted);
        }
        .fr-tiles .pc-tile.fr-expandable[aria-expanded="true"] span::after {
            content: ' ▴';
        }
        /* The opened Deaths field (2.45.18): its own card, opening
           with a short settle-in motion, causes as headed bars in
           the population bars' language — not a run of numbers. */
        .fr-deaths-card {
            margin-top: 10px;
            padding: 12px 14px 10px;
            border: 1px solid color-mix(in srgb, var(--speaker-border) 45%, transparent);
            border-radius: 14px;
            background: color-mix(in srgb, var(--panel) 72%, transparent);
            animation: frDeathsIn .3s ease both;
        }
        @keyframes frDeathsIn {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .fr-deaths-card .fr-pop {
            margin-top: 8px;
        }
        .fr-table tr.fr-expandable {
            cursor: pointer;
        }
        .fr-table tr.fr-expandable .fr-name::after {
            content: ' ▾';
            color: var(--muted);
        }
        .fr-table tr.fr-expandable[aria-expanded="true"] .fr-name::after {
            content: ' ▴';
        }
        .fr-table tr.fr-detail td {
            text-align: left;
            font-size: 12.5px;
            color: var(--muted);
            line-height: 1.55;
            padding-left: 2ch;
        }
        .fr-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 10px;
        }
        .fr-chip {
            padding: 6px 11px;
            border: 1px solid color-mix(in srgb, var(--speaker-border) 70%, transparent);
            border-radius: 999px;
            background: color-mix(in srgb, var(--panel) 65%, transparent);
            font-size: 12.5px;
            white-space: nowrap;
        }
        .fr-chip strong {
            font-weight: 600;
        }
        .fr-chip span {
            color: var(--muted);
        }
        /* Active mods block (2.25): third section of the Game tab card,
           below Teleport, carrying the same divider as the teleport box. */
        .active-mods-box {
            margin-top: 18px;
            padding-top: 16px;
            border-top: 1px solid rgba(127, 148, 128, 0.35);
        }
        .active-mods-group {
            margin: 14px 0 0;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--muted);
        }
        .mod-list {
            display: grid;
            gap: 2px;
            margin: 6px 0 0;
            padding: 0;
            list-style: none;
        }
        .mod-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            padding: 6px 2px;
            border-bottom: 1px solid color-mix(in srgb, var(--speaker-border) 55%, transparent);
            color: var(--text);
            font-size: 13px;
        }
        .mod-row:last-child {
            border-bottom: 0;
        }
        .mod-added {
            color: var(--muted);
            font-size: 12px;
            white-space: nowrap;
        }
        .active-mods-note {
            margin: 12px 0 0;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }
        /* Game tab compact layout (2.26): teleport destinations ride a
           sideways rail of smaller cards instead of a tall grid, and the
           active mod list packs into small tiles, so the tab reads at a
           glance instead of scrolling like a list. Presentation only;
           the teleport flow and the mods poll are untouched. */
        .teleport-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 0 0 12px;
        }
        .teleport-arrows {
            display: flex;
            gap: 10px;
        }

        /* Teleport grid arrows (Bill, 2026-11-15): they scroll
           the destination cards, so they sit under the grid
           they control, centered with equal space around. */
        .teleport-grid-arrows {
            justify-content: center;
            margin: 12px 0;
        }
        .teleport-arrow {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            padding: 0 0 2px;
            border: 1px solid rgba(81, 108, 82, 0.4);
            border-radius: 50%;
            background: transparent;
            color: inherit;
            font-size: 19px;
            line-height: 1;
            cursor: pointer;
        }
        .teleport-arrow:disabled {
            opacity: 0.35;
            cursor: default;
        }
        /* The rail runs three rows deep (2.43.4, Bill): cards flow
           down a column of three, then across, keeping the sideways
           scroll. Three deep cuts the sideways travel by a third
           over the old two row rail, and the compact strip suits
           small screens and the future app better than a tall grid. */
        .teleport-grid {
            display: grid;
            grid-auto-flow: column;
            grid-template-rows: repeat(3, 1fr);
            grid-template-columns: none;
            grid-auto-columns: 86px;
            gap: 7px;
            margin: 0 0 14px;
            padding: 4px 2px 9px;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-snap-type: x proximity;
            scrollbar-width: thin;
            -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
        }
        /* Scroll-aware fades (Bill, 2026-11-12): the left fade is
           wrong at the start — there is nothing before it — so the
           mask drops the fade on any edge the rail has reached. */
        .teleport-grid.rail-at-start {
            -webkit-mask-image: linear-gradient(90deg, #000, #000 calc(100% - 20px), transparent);
            mask-image: linear-gradient(90deg, #000, #000 calc(100% - 20px), transparent);
        }
        .teleport-grid.rail-at-end {
            -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000);
            mask-image: linear-gradient(90deg, transparent, #000 20px, #000);
        }
        .teleport-grid.rail-at-start.rail-at-end {
            -webkit-mask-image: none;
            mask-image: none;
        }
        .teleport-grid::-webkit-scrollbar {
            height: 6px;
        }
        .teleport-grid::-webkit-scrollbar-thumb {
            border-radius: 3px;
            background: rgba(127, 148, 128, 0.45);
        }
        .teleport-grid::-webkit-scrollbar-track {
            background: transparent;
        }
        .teleport-place {
            scroll-snap-align: start;
            padding: 6px 4px;
            font-size: 11px;
            text-align: center;
        }

        .active-mods-group {
            margin-top: 12px;
        }
        .mod-list {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 6px;
            margin-top: 8px;
        }
        .mod-row {
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            gap: 1px;
            padding: 6px 9px;
            border: 1px solid color-mix(in srgb, var(--speaker-border) 55%, transparent);
            border-radius: 8px;
            font-size: 12.5px;
            line-height: 1.35;
        }
        .mod-row:last-child {
            border-bottom: 1px solid color-mix(in srgb, var(--speaker-border) 55%, transparent);
        }
        .mod-added {
            font-size: 11px;
        }
        /* Marks balance and gifting (2.27): the balance rides quietly
           at the top of the Teleport box, and the gift panel sits
           between Teleport and Active Mods behind the same divider. */
        .marks-balance {
            margin: 0 0 12px;
            font-size: 13px;
            color: var(--text);
        }
        .marks-balance strong {
            font-weight: 700;
        }
        .marks-balance.marks-hint {
            color: var(--muted);
            font-size: 12px;
        }
        /* Marks coin icon (Bill, 2026-11-20): the real Alderon
           Marks icon, 18px ahead of the balance line and 16px
           inside the gift Amount field. Transparent PNG, so it
           reads on light and dark. */
        .marks-coin {
            width: 18px;
            height: 18px;
            vertical-align: -4px;
        }
        .gift-box {
            margin-top: 18px;
            padding-top: 16px;
            border-top: 1px solid rgba(127, 148, 128, 0.35);
        }
        .gift-fields {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            gap: 8px;
            margin-top: 10px;
        }
        .gift-field {
            display: grid;
            gap: 5px;
            flex: 1 1 170px;
            /* Narrow panes stack the fields instead of squeezing them:
               below ~150px the recipient input is too narrow for its
               placeholder (and the amount for its value), so the row
               wraps and each field goes full width. */
            min-width: 150px;
            color: var(--text);
            font-size: 12px;
            font-weight: 600;
        }
        .gift-field.gift-amount {
            flex: 0 1 110px;
        }
        .gift-field input {
            width: 100%;
            min-width: 0;
        }
        /* Gift recipient placeholder: fluid with the window (clamp + vw)
           so it scales down in narrow panes and split screen instead of
           cutting off. Only the placeholder shrinks — the input itself
           stays 16px, or iOS Safari would auto-zoom on focus. */
        .gift-field input::placeholder {
            font-size: clamp(14px, 3.8vw, 16px);
        }
        /* Gift Amount field: the Marks coin sits inside the input's
           left edge, so the amount reads as marks without extra text. */
        .gift-amount-wrap {
            position: relative;
            display: block;
        }
        .gift-amount-wrap .marks-coin-input {
            position: absolute;
            left: 9px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            pointer-events: none;
        }
        .gift-amount-wrap input {
            padding-left: 33px;
        }
        .gift-fields > button {
            flex: 0 0 auto;
        }
        .gift-status {
            margin: 10px 0 0;
            font-size: 13px;
            line-height: 1.5;
        }
        .gift-note {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 12.5px;
            line-height: 1.5;
        }
        /* Gift reason chips (2026-11-14): tappable reasons that fill
           the amount where the reason has a natural price. */
        .gift-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 10px;
        }
        .gift-chip {
            padding: 6px 12px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: transparent;
            color: var(--text);
            font-size: 12.5px;
            font-weight: 600;
            cursor: pointer;
        }
        .gift-chip:hover {
            border-color: var(--green);
        }
        /* Earmarked gifts (2026-11-15): the purpose picker reserves
           the gift for one thing; the item row appears for a skin or
           ability purpose. */
        .gift-purpose {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            margin-top: 10px;
        }
        .gift-purpose-label {
            color: var(--muted);
            font-size: 12.5px;
            font-weight: 600;
        }
        .gift-purpose-btn {
            padding: 6px 12px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: transparent;
            color: var(--text);
            font-size: 12.5px;
            font-weight: 600;
            cursor: pointer;
        }
        .gift-purpose-btn[aria-pressed="true"] {
            border-color: var(--green);
            background: color-mix(in srgb, var(--green) 14%, transparent);
        }
        .gift-item-row {
            display: grid;
            gap: 8px;
            margin-top: 10px;
        }
        .gift-item-row .gift-field select {
            width: 100%;
            min-width: 0;
        }
        /* Reserved marks breakdown (2026-11-15): free marks plus each
           reservation, under the balance and on the player card. */
        .reserved-breakdown {
            margin: 8px 0 0;
        }
        .reserved-head,
        .pc-reserved-head {
            margin: 0 0 6px;
            color: var(--muted);
            font-size: 12.5px;
            line-height: 1.5;
        }
        .reserved-list {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .reserved-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 6px 0;
            border-top: 1px solid rgba(127, 148, 128, 0.25);
            font-size: 13px;
            line-height: 1.4;
        }
        .reserved-release {
            flex: 0 0 auto;
            padding: 4px 10px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: transparent;
            color: var(--muted);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
        }
        .reserved-release:hover {
            border-color: var(--green);
            color: var(--text);
        }
        .pc-reserved {
            margin-top: 4px;
            flex-basis: 100%;
        }
        /* Gift recipient results (2.31.3): an in-page list under
           the recipient box, replacing the native datalist popup
           that Android browsers render inconsistently or not at
           all — the same pattern as the nominate search (2.31.2). */
        .gift-search {
            position: relative;
        }
        .gift-results {
            margin-top: 4px;
            max-height: 264px;
            overflow-y: auto;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--panel-strong);
        }
        .gift-result {
            display: block;
            width: 100%;
            min-height: 44px;
            padding: 10px 12px;
            border: 0;
            border-bottom: 1px solid var(--line);
            background: transparent;
            color: var(--text);
            font-size: 13.5px;
            font-weight: 400;
            line-height: 1.35;
            text-align: left;
            cursor: pointer;
        }
        .gift-result:last-child {
            border-bottom: 0;
        }
        .gift-result-hint {
            padding: 10px 12px;
            color: var(--muted);
            font-size: 12.5px;
            font-weight: 400;
            line-height: 1.45;
        }
        @media (max-width: 420px) {
            .gift-field.gift-amount {
                flex: 1 1 110px;
            }
            .gift-fields > button {
                flex: 1 1 100%;
            }
        }
        @media (max-width: 420px) {
            .mod-list {
                grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
            }
        }
        /* Player card (2.29): the Game tab opens with the signed in
           player's own card, ahead of the Field Report. It renders only
           when /api/card answers ok; everyone else never sees the box.
           Styled as an actual card: a header band with the badges and
           the in game pill, a hero for the character being played with
           a growth bar, stat tiles, then the account's characters as
           mini tiles with a marks total. */
        .player-card-box {
            margin: 0 0 18px;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 16px;
            background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
            box-shadow: 0 10px 28px rgba(23, 38, 31, 0.10);
        }
        :root[data-theme="dark"] .player-card-box {
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
        }
        .player-card-band {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 8px 10px;
            padding: 10px 16px;
            border-bottom: 1px solid var(--line);
            background: color-mix(in srgb, var(--green-deep) 16%, transparent);
        }
        .player-card-band .mini-title {
            margin: 0;
        }
        .player-card-band-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
            margin-left: auto;
        }
        /* Marks total, top right of the header band (3.5.5):
           the sum of every character's marks, visible on every
           tab. */
        .pc-header-total {
            margin: 0;
            color: var(--text);
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
        }
        .pc-header-total strong {
            font-size: 16px;
            font-variant-numeric: tabular-nums;
        }
        .pc-header-total[hidden] {
            display: none;
        }
        .player-card-id-block {
            min-width: 0;
        }
        .player-card-player {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1px;
            margin: 3px 0 0;
        }
        .player-card-player[hidden] {
            display: none;
        }
        .player-card-player-name {
            color: var(--text);
            font-size: 20px;
            font-weight: 700;
            line-height: 1.15;
            overflow-wrap: anywhere;
        }
        .player-card-player-id {
            font-family: var(--font-data);
            font-size: 12.5px;
            color: var(--muted);
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        .player-card-live {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 10px;
            border-radius: 999px;
            background: color-mix(in srgb, var(--accent, #1f7a4d) 18%, transparent);
            color: var(--text);
            font-size: 11.5px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            white-space: nowrap;
        }
        .player-card-live[hidden] {
            display: none;
        }
        .player-card-live-dot {
            flex: none;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent, #1f7a4d);
            animation: player-card-pulse 1.6s ease-in-out infinite;
        }
        @keyframes player-card-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.35; }
        }
        @media (prefers-reduced-motion: reduce) {
            .player-card-live-dot {
                animation: none;
            }
        }
        .player-card-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .player-card-badges:empty {
            display: none;
        }
        .player-badge {
            padding: 3px 10px;
            border: 1px solid rgba(81, 108, 82, 0.45);
            border-radius: 999px;
            background: color-mix(in srgb, var(--panel-strong) 55%, transparent);
            color: var(--text);
            font-size: 11.5px;
            font-weight: 600;
            white-space: nowrap;
        }
        /* Player card tabs (3.5.5, Bill's pick over Accordion):
           the current character and its marks stay as the fixed
           head of the card at full width; the reports sit in three
           tabs below (Hunter report, Characters, Referrals), one
           panel visible at a time, in the Game subtab pattern.
           The marks total sits in the header band, top right, so
           it stays visible on every tab. The header band stays
           pinned above everything, so identity is always visible. */
        #playerCardTop {
            padding: 14px 16px 2px;
        }
        #playerCardBody {
            display: block;
            padding: 12px 16px 14px;
        }
        #playerCardBody[hidden] {
            display: none;
        }
        /* Tab panels: one visible at a time, sized to its own
           content — no fixed height, no internal scroll, the card
           simply fits the active tab. */
        .pc-slide {
            min-width: 0;
            border: 1px solid var(--line);
            background: var(--panel);
            border-radius: 12px;
            padding: 14px;
        }
        .pc-slide[hidden] {
            display: none;
        }
        .pc-slide .pc-tiles {
            margin-top: 0;
        }
        /* Card tab bar: the Game subtab pattern, so every section
           is named up front. */
        .pc-tabs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
            gap: 4px;
            margin: 12px 16px 0;
            padding: 5px;
            border: 1px solid var(--speaker-border);
            border-radius: 22px;
            background: var(--speaker-bg);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }
        .pc-tab {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 8px 6px;
            border: 1px solid transparent;
            border-radius: 16px;
            background: transparent;
            color: var(--muted);
            box-shadow: none;
            font-size: 13.5px;
            font-weight: 600;
            line-height: 1.2;
            text-align: center;
            cursor: pointer;
        }
        .pc-tab:hover {
            transform: none;
            filter: none;
            color: var(--text);
        }
        .pc-tab[aria-selected="true"] {
            border-color: color-mix(in srgb, var(--green-deep) 55%, transparent);
            background: var(--green);
            /* AA: the Game subtabs put --night text on this green
               (2.99 light / 2.92 dark). The card tabs use the
               referral Copy button's treatment instead — white on
               green in light (5.32), dark green on sage in dark
               (5.11) — so the selected tab passes in both themes.
               The Game subtabs themselves are untouched. */
            color: #fff;
        }
        /* Dark selected text follows the referral Copy button's
           precedent exactly: same selector shape as the site-wide
           dark button rule (0,5,2), later in the file so it wins
           over the white text that rule forces on buttons. */
        html:root[data-theme="dark"] button.pc-tab[aria-selected="true"]:not(.site-tab):not(.theme-option) {
            color: #052e16;
        }
        .pc-tab:focus-visible {
            outline: 3px solid var(--focus);
            outline-offset: 2px;
        }
        .pc-tab[hidden] {
            display: none;
        }
        .pc-slide .player-card-chars {
            margin-top: 0;
        }
        .pc-hero-top {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px 20px;
        }
        .pc-hero-id {
            min-width: 0;
        }
        .pc-species {
            margin: 0;
            color: var(--text);
            font-size: clamp(26px, 6vw, 34px);
            font-weight: 700;
            line-height: 1.08;
            letter-spacing: -0.01em;
            overflow-wrap: anywhere;
        }
        .pc-charname {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 5px 8px;
            margin: 7px 0 0;
            color: var(--muted);
            font-size: 14px;
            font-weight: 600;
        }
        .pc-place {
            margin: 5px 0 0;
            color: var(--muted);
            font-size: 13px;
            font-weight: 600;
        }
        .pc-stage {
            padding: 2px 9px;
            border: 1px solid rgba(81, 108, 82, 0.45);
            border-radius: 999px;
            color: var(--text);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            white-space: nowrap;
        }
        .pc-marks {
            flex: none;
            margin-left: auto;
            text-align: right;
        }
        .pc-marks strong {
            display: block;
            font-family: var(--font-data);
            font-size: clamp(24px, 5vw, 32px);
            font-weight: 600;
            line-height: 1;
            color: var(--text);
            font-variant-numeric: tabular-nums;
        }
        .pc-marks span {
            display: block;
            margin-top: 5px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .pc-growth {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 15px;
        }
        .pc-growth-label {
            color: var(--muted);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }
        .pc-growth-track {
            flex: 1;
            height: 8px;
            overflow: hidden;
            border-radius: 999px;
            background: color-mix(in srgb, var(--muted) 18%, transparent);
        }
        .pc-growth-fill {
            height: 100%;
            border-radius: inherit;
            background: var(--green-deep);
            transition: width 400ms ease;
        }
        .pc-growth-pct {
            font-family: var(--font-data);
            font-size: 12.5px;
            font-weight: 600;
            color: var(--text);
            font-variant-numeric: tabular-nums;
        }
        .pc-tiles {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
            gap: 8px;
            margin-top: 16px;
        }
        .pc-tile {
            min-width: 0;
            padding: 10px 12px;
            border: 1px solid color-mix(in srgb, var(--speaker-border) 70%, transparent);
            border-radius: 12px;
            background: color-mix(in srgb, var(--panel) 65%, transparent);
        }
        .pc-tile strong {
            display: block;
            overflow: hidden;
            font-family: var(--font-data);
            font-size: 20px;
            font-weight: 600;
            line-height: 1.15;
            color: var(--text);
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        .pc-tile span {
            display: block;
            margin-top: 2px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }
        /* The three activity tiles are buttons (2.44.0, Bill): the
           totals read as totals, and a tap expands the hunter
           report with the per character breakdown underneath. */
        button.pc-tile {
            font: inherit;
            text-align: left;
            cursor: pointer;
            width: 100%;
        }
        button.pc-tile span::after {
            content: ' \25BE';
            letter-spacing: 0;
        }
        button.pc-tile[aria-expanded="true"] span::after {
            content: ' \25B4';
        }
        .pc-stat-detail {
            margin: 2px 0 10px;
            padding: 10px 12px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: color-mix(in srgb, var(--panel) 65%, transparent);
            box-sizing: border-box;
            max-width: 100%;
            overflow: hidden;
            /* The breakdown table sizes its header text from the
               card's own width (cqw), so it fits any screen without
               per-device variants (Bill, 2026-11-10). */
            container-type: inline-size;
        }
        .pc-stat-detail h4 {
            margin: 0 0 8px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
        }
        .pc-stat-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            padding: 5px 0;
            border-top: 1px solid var(--line);
        }
        .pc-stat-row:first-of-type {
            border-top: none;
            padding-top: 0;
        }
        .pc-stat-who {
            min-width: 0;
        }
        .pc-stat-who strong {
            display: block;
            font-size: 13px;
            color: var(--text);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .pc-stat-who span {
            display: block;
            font-size: 11px;
            color: var(--muted);
        }
        .pc-stat-row > strong {
            font-family: var(--font-data);
            font-size: 16px;
            font-weight: 600;
            color: var(--text);
            font-variant-numeric: tabular-nums;
        }
        .pc-stat-note {
            margin: 8px 0 0;
            font-size: 11px;
            color: var(--muted);
        }
        .pc-stat-subhead {
            margin: 12px 0 2px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text);
        }
        .pc-stat-row.pc-stat-rest .pc-stat-who strong {
            color: var(--muted);
            font-weight: 600;
        }
        .pc-stat-table {
            width: 100%;
            max-width: 100%;
            table-layout: fixed;
            border-collapse: collapse;
            font-variant-numeric: tabular-nums;
        }
        .pc-stat-table th:first-child {
            width: 34%;
        }
        .pc-stat-table td:first-child {
            overflow: hidden;
        }
        .pc-stat-table .pc-stat-who span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .pc-stat-table th,
        .pc-stat-table td {
            padding: 5px 3px;
            border-top: 1px solid var(--line);
            text-align: right;
        }
        .pc-stat-table thead th {
            border-top: none;
            padding-top: 0;
            font-size: 10px;
            font-size: clamp(8px, 3.4cqw, 11px);
            font-weight: 700;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: .02em;
            line-height: 1.2;
            vertical-align: bottom;
            white-space: nowrap;
        }
        .pc-stat-table th:first-child,
        .pc-stat-table td:first-child {
            text-align: left;
            padding-left: 0;
        }
        .pc-stat-table th:last-child,
        .pc-stat-table td:last-child {
            padding-right: 0;
        }
        .pc-stat-table td {
            font-family: var(--font-data);
            font-size: 15px;
            font-weight: 600;
            color: var(--text);
        }
        .pc-stat-table td:first-child {
            font-family: inherit;
            font-weight: 400;
        }
        .pc-stat-table .pc-stat-maps {
            display: none;
            font-size: 11px;
            color: var(--muted);
        }
        /* Priority yield (Bill, 2026-11-10): when the card is too
           narrow for map columns, the columns and the species line
           yield; character, per-map split (as a sub-line), and the
           total stay. One component, fluid by container width. */
        @container (max-width: 150px) {
            .pc-stat-table th:not(:first-child):not(:last-child),
            .pc-stat-table td:not(:first-child):not(:last-child) {
                display: none;
            }
            .pc-stat-table th:first-child {
                width: auto;
            }
            .pc-stat-table .pc-stat-who span {
                display: none;
            }
            .pc-stat-table .pc-stat-who .pc-stat-maps {
                display: block;
                white-space: normal;
                overflow-wrap: anywhere;
            }
            /* The header row yields too: with only Character and
               Total left, the section title already says it all. */
            .pc-stat-table thead {
                display: none;
            }
        }
        .player-card-muted {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
        }
        .pc-tiles + .player-card-muted,
        .pc-hero + .player-card-muted {
            margin-top: 12px;
        }
        .player-card-caption {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 11.5px;
        }
        /* Referral Copy button: solid green + dark text in both themes.
           The generic .secondary is near-white text on a transparent
           background (dark-surface style), which washes out on the
           light player card. This class is scoped to this button only. */
        button.referral-copy {
            flex: none;
            min-height: 0;
            padding: 8px 14px;
            border-radius: 999px;
            background: var(--green);
            color: #ffffff;
            font-weight: 700;
            box-shadow: none;
            border: none;
        }
        html:root[data-theme="dark"] button.referral-copy:not(.site-tab):not(.theme-option) {
            color: #052e16;
        }
        /* Referral block redesign (Bill, 2026-11-17): the code row
           was 11.5px text next to a full-size button, and the
           explainer sat right under it with no gap. The code is now
           the biggest thing in the row, the button is a slim pill,
           and the explainer reads at body size with room to breathe.
           Scoped to the Referrals slide so nothing else moves. */
        #pcPanelReferral .referral-code-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            margin: 2px 0 0;
            font-size: clamp(15px, 4vw, 17px);
            line-height: 1.4;
        }
        #pcPanelReferral .referral-code-row strong {
            font-size: clamp(19px, 5.2vw, 22px);
            letter-spacing: 0.08em;
            color: var(--text);
        }
        button.referral-copy {
            padding: 5px 12px;
            font-size: 13px;
            line-height: 1.35;
        }
        #pcPanelReferral .referral-explain {
            margin-top: 14px;
            font-size: clamp(14px, 3.8vw, 15.5px);
            line-height: 1.6;
        }
        /* Staging preview toggle + banner (Bill, 2026-11-16): a
           topbar switch between the signed-out and signed-in
           viewpoints, staging only. It follows the theme switch's
           per-theme treatment (the topbar is white in light theme,
           near-black in dark — the toggle must NOT assume a dark
           topbar): dark text on light in light theme, light text
           on dark in dark theme. Placed after the dark-theme
           button rule (line 3184), which forces white text on
           non-secondary buttons — the dark rules below outrank it. */
        .topbar .preview-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 3px;
            border: 1px solid rgba(81, 108, 82, 0.18);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.36);
        }
        html:root[data-theme="dark"] .topbar .preview-toggle {
            border-color: rgba(221, 238, 216, 0.16);
            background: rgba(238, 247, 234, 0.06);
        }
        .topbar .preview-toggle .preview-toggle-label {
            flex: none;
            padding: 0 6px 0 8px;
            color: #536658;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.02em;
        }
        html:root[data-theme="dark"] .topbar .preview-toggle .preview-toggle-label {
            color: #cad9c9;
        }
        .topbar .preview-toggle button {
            flex: 1 1 auto;
            min-height: 0;
            padding: 6px 10px;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: #536658;
            box-shadow: none;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-shadow: none;
        }
        html:root[data-theme="dark"] .topbar .preview-toggle button {
            color: #cad9c9;
        }
        .topbar .preview-toggle button[aria-pressed="true"] {
            color: #355638;
            background: rgba(99, 143, 83, 0.15);
            box-shadow: none;
        }
        html:root[data-theme="dark"] .topbar .preview-toggle button[aria-pressed="true"] {
            color: #e7f2dc;
            background: rgba(167, 205, 136, 0.17);
        }
        @media (max-width: 430px) {
            .topbar .preview-toggle .preview-toggle-label {
                display: none;
            }
        }
        .preview-banner {
            padding: 8px 14px;
            background: #e8a33d;
            color: #1a1a1a;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
        }
        .player-card-chars {
            margin-top: 18px;
        }
        .pc-chars-head {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            justify-content: space-between;
            gap: 2px 12px;
        }
        .pc-chars-head .field-report-server-name {
            margin: 0;
        }
        .pc-diet-head {
            grid-column: 1 / -1;
            list-style: none;
            margin: 8px 0 0;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .04em;
            text-transform: uppercase;
            color: var(--muted);
        }
        .player-card-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
            gap: 8px;
            margin: 10px 0 0;
            padding: 0;
            list-style: none;
        }
        .player-card-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-width: 0;
            padding: 9px 12px;
            border: 1px solid color-mix(in srgb, var(--speaker-border) 70%, transparent);
            border-radius: 12px;
            background: color-mix(in srgb, var(--panel) 65%, transparent);
            color: var(--text);
            font-size: 13px;
        }
        .player-card-row .char-id {
            min-width: 0;
        }
        .player-card-row .char-line {
            display: flex;
            align-items: center;
            gap: 7px;
            min-width: 0;
        }
        .player-card-row .char-now {
            flex: none;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--accent, #1f7a4d);
        }
        .player-card-row .char-name {
            font-weight: 600;
            overflow-wrap: anywhere;
        }
        .player-card-row .char-tag {
            flex: none;
            padding: 1px 7px;
            border-radius: 999px;
            background: color-mix(in srgb, var(--accent, #1f7a4d) 18%, transparent);
            color: var(--text);
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            white-space: nowrap;
        }
        .player-card-row .char-line2 {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px 7px;
            margin-top: 1px;
        }
        .player-card-row .char-species {
            color: var(--muted);
            font-size: 12px;
            font-weight: 400;
            overflow-wrap: anywhere;
        }
        .player-card-row .char-meta {
            flex: none;
            color: var(--muted);
            font-size: 12px;
            text-align: right;
        }
        .player-card-row .char-marks strong {
            font-family: var(--font-data);
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
            font-variant-numeric: tabular-nums;
        }
        .player-card-row .char-played {
            display: block;
            margin-top: 1px;
            font-size: 11.5px;
            white-space: nowrap;
        }
        /* Top hunters scoreboard (2.28): rides inside the Field Report
           block under the species counts, same row language. */
        .scoreboard-block {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid rgba(127, 148, 128, 0.35);
        }
        .scoreboard-row .scoreboard-counts {
            color: var(--muted);
            font-size: 12.5px;
            white-space: nowrap;
        }
        .scoreboard-row .scoreboard-counts strong {
            color: var(--text);
        }
        /* Donate tab boxes are plain insets, not glass cards (2.7.8). */
        html:root .donate-wrap .donate-bill,
        html:root .donate-wrap .donate-meter {
            background: rgba(31, 61, 40, 0.14) !important;
            -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
            box-shadow: none !important;
        }

        html:root[data-theme="dark"] .donate-wrap .donate-bill,
        html:root[data-theme="dark"] .donate-wrap .donate-meter {
            background: rgba(255, 255, 255, 0.05) !important;
            -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
            box-shadow: none !important;
        }
        /* Breathing room between the title bar and the tabs bar (2.7.14). */
        :root .tabs-bar {
            margin-top: 14px;
        }
        /* Install App joins the glass pill family, slimmer (2.7.15, restored 2.7.20). */
        :root .install-button {
            min-height: 32px;
            padding: 0 11px;
            gap: 5px;
            border-radius: 999px;
            background: var(--glass-card) !important;
            -webkit-backdrop-filter: blur(10px) saturate(160%);
            backdrop-filter: blur(10px) saturate(160%);
        }

        /* Forget this browser: readable in both themes (2.7.20). */
        #forgetBtn {
            border: 1px solid rgba(40, 59, 46, 0.55) !important;
            background: #dde3df !important;
            color: #22392a !important;
        }

        :root[data-theme="dark"] #forgetBtn {
            border-color: rgba(240, 249, 235, 0.55) !important;
            background: rgba(255, 255, 255, 0.16) !important;
            color: #f4f6ec !important;
        }

        :root .install-button svg {
            width: 9px;
            height: 9px;
        }
        /* The island backdrop shows behind the title on small screens too (2.7.22). */
        @media (max-width: 760px) {
            :root .brand-backdrop {
                display: block;
                width: 200px;
                height: 49px;
            }
        }
        /* Discord Sign out / Unlink: readable in both themes (2.7.27). */
        #discordSignOutBtn,
        #discordUnlinkBtn {
            border: 1px solid rgba(40, 59, 46, 0.55) !important;
            background: #dde3df !important;
            color: #22392a !important;
        }

        :root[data-theme="dark"] #discordSignOutBtn,
        :root[data-theme="dark"] #discordUnlinkBtn {
            border-color: rgba(240, 249, 235, 0.55) !important;
            background: rgba(255, 255, 255, 0.16) !important;
            color: #f4f6ec !important;
        }
        /* Sign out: compact size + distinct color (2.7.35). */
        #discordSignOutBtn {
            flex: 0 1 auto !important;
            width: auto !important;
            min-height: 32px !important;
            padding: 8px 18px !important;
            font-size: 13px !important;
            border: none !important;
            background: #dc2626 !important;
            color: #ffffff !important;
            box-shadow: none !important;
        }
        :root[data-theme="dark"] #discordSignOutBtn {
            background: #dc2626 !important;
            color: #ffffff !important;
        }
        /* Signed-in row: center the buttons (2.7.36) so the compact Sign out does not sit left. */
        #discordSignedIn .button-row {
            justify-content: center;
        }
        /* Visual refresh (2.8.0): canonical button system for the login and
           Discord areas. Button rules grew in layers (radii of 5px, 7px,
           10px, and 12px in different blocks), so this block sits last and
           sets one language: 48px touch height, 12px radius, flat accent
           primary, quiet glass secondary. Scoped to .login-layout on
           purpose: the voice console, site tabs, theme toggle, install
           button, and mute buttons keep their own look, and the ID-scoped
           fixes (Sign out, Unlink, Forget) still win wherever they set
           a value. */
        .login-layout button {
            min-height: 48px;
            border-radius: 12px;
            padding: 13px 18px;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.02em;
            border: 1px solid var(--accent);
            background: var(--accent);
            color: #ffffff;
            box-shadow: none;
            cursor: pointer;
            transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
        }
        :root[data-theme="dark"] .login-layout button:not(.secondary) {
            color: #052e16;
        }
        .login-layout button:hover {
            filter: brightness(1.05);
            transform: translateY(-1px);
        }
        .login-layout button.secondary {
            border: 1px solid var(--line);
            background: rgba(23, 38, 31, 0.06);
            color: var(--text);
            box-shadow: none;
        }
        :root[data-theme="dark"] .login-layout button.secondary {
            border-color: rgba(255, 255, 255, 0.25);
            background: rgba(255, 255, 255, 0.08);
        }
        .login-layout button.secondary:hover {
            background: rgba(23, 38, 31, 0.12);
        }
        :root[data-theme="dark"] .login-layout button.secondary:hover {
            background: rgba(255, 255, 255, 0.16);
        }
        button:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            transform: none;
            filter: none;
        }
        input {
            border-radius: 12px;
        }
        /* Footer: white text in the light theme (2.8.5). The 2.8.4
           light bar is reverted: it rendered as a short strip under the
           card and looked out of place. The footer sits over the dark
           jungle backdrop even in the light theme, so white text reads
           directly on it. Dark theme untouched. */
        :root:not([data-theme="dark"]) .site-footer {
            color: #ffffff !important;
        }
        :root:not([data-theme="dark"]) .site-footer a {
            color: #ffffff !important;
        }
        /* Code box label (2.8.7): the instruction paragraph inside the
           box is gone (clutter); a short label above the box says what
           goes in it, matching the combination mockup. */
        .code-field-label {
            grid-column: 1 / -1;
            display: block;
            margin: 0 0 6px;
            color: var(--muted);
            font-size: 13px;
            font-weight: 600;
        }
        .code-help {
            grid-column: 1 / -1;
            margin: 8px 0 0;
            font-size: 13px;
            color: var(--muted);
        }
        .code-help summary {
            cursor: pointer;
            font-weight: 600;
        }
        .code-help p {
            margin: 6px 0 0;
            line-height: 1.5;
        }
        /* Signed-in row: slimmer buttons (2.8.9). */
        #discordSignedIn .button-row button {
            min-height: 40px;
            padding: 10px 12px;
            font-size: 13px;
        }
        /* Hidden-attribute rules for the code section (2.8.11): without
           these, the author display rules above beat the browser's
           built-in hidden styling and setCodeSectionVisible cannot
           hide the label, box, or Connect row. */
        .code-field-label[hidden],
        .join-code-box[hidden],
        .code-help[hidden],
        #connectRow[hidden] {
            display: none;
        }
        /* Welcome line above the Voice Link card (2.8.15): shown while
           signed out, hidden once signed in with Discord. */
        .welcome-line {
            margin: 0 0 14px;
            text-align: center;
            font-size: 14px;
            color: var(--muted);
        }
        .welcome-line[hidden] {
            display: none;
        }
        /* Console section headings (2.8.15): a touch more weight for the
           diagnostics section. */
        .diagnostics-box .mini-title {
            font-size: 12px;
        }
        /* Why-link-Discord benefits list (2.7.28). */
        .discord-benefits {
            margin-top: 10px;
            text-align: left;
            font-size: 0.92em;
            opacity: 0.85;
        }
        .discord-benefits-title {
            margin: 0 0 4px;
            font-weight: 700;
            color: var(--text);
        }
        .discord-benefits ul {
            margin: 0;
            padding-left: 18px;
            line-height: 1.6;
        }
        /* Unlink confirmation panel (Bill 2026-11-19). */
        .discord-unlink-confirm {
            margin-top: 10px;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            text-align: left;
            font-size: 0.92em;
        }
        .discord-unlink-confirm ul {
            margin: 6px 0;
            padding-left: 18px;
            line-height: 1.6;
        }
        .discord-unlink-confirm .button-row {
            margin-top: 8px;
        }
        .tabs-bar > .discord-link {
            color: var(--text);
        }
        .discord-link-label {
            display: none;
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
        }
        @media (min-width: 761px) {
            .tabs-bar > .discord-link {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                width: auto;
                padding: 0 10px;
            }
            .tabs-bar > .discord-link .discord-link-label {
                display: inline;
            }
        }
        /* ===== 2.10.2: four tabs in the stacked tabs bar. The 2.6.5/2.6.8 grid areas
           named three tabs, and 2.6.9 floated Server Status centered over the bar;
           with the Game tab added it auto placed into that same center spot and the
           two overlapped. All four tabs now get a named area in one row. ===== */
        @media (max-width: 760px) {
            .tabs-bar {
                grid-template-columns: repeat(4, minmax(0, 1fr));
                grid-template-areas:
                    "social game health donate"
                    "discord . . install";
            }

            #gameTab {
                grid-area: game;
                justify-self: center;
            }

            #healthTab {
                grid-area: health;
                position: static;
                width: auto;
                margin-inline: 0;
                justify-self: center;
            }
        }

        /* ===== 2.10.4: breathing room between the voice cards.
           Measured live: the wrapper grids had no gap at all, so
           cards stacked flush (0px). ===== */
        .controls {
            gap: 20px;
        }

        .voice-side,
        .player-rosters {
            gap: 16px;
        }


        /* ===== Donor tier cards on the Donate tab =====
           One hybrid design at every size (Bill, 2026-11-06): the
           same swipe row on phone, tablet, PC, and in an app shell.
           Cards size fluidly, the next one peeks in at the edge so
           the row shows it scrolls, and the arrow buttons cover
           mouse users. No per-device layout swap. */
        .tier-grid {
            display: flex;
            gap: 12px;
            margin: 12px 0 6px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            padding-bottom: 8px;
            scrollbar-width: thin;
        }

        .tier-grid .tier-card {
            flex: 0 0 min(85%, 340px);
            scroll-snap-align: start;
        }

        .tier-card {
            border: 1px solid var(--line);
            background: var(--panel);
            border-radius: 12px;
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .tier-card h4 {
            margin: 0;
            font-size: 1.05rem;
        }

        .tier-price {
            font-size: 1.3rem;
            font-weight: 700;
        }

        .tier-card ul {
            margin: 0;
            padding-left: 18px;
            display: grid;
            gap: 3px;
        }

        .tier-buy {
            margin-top: auto;
            display: block;
            text-align: center;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid var(--line);
            background: var(--panel-strong);
            color: var(--text);
            font-weight: 600;
            text-decoration: none;
        }

        .tier-note {
            font-size: 0.92rem;
            opacity: 0.85;
        }

        .buy-nudge {
            position: fixed;
            inset: 0;
            z-index: 120;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 18px;
            background: rgba(8, 10, 14, 0.55);
        }

        .buy-nudge[hidden] {
            display: none;
        }

        .buy-nudge-card {
            width: 100%;
            max-width: 380px;
            background: var(--panel-strong);
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 20px;
            color: var(--text);
            display: grid;
            gap: 12px;
            text-align: center;
            box-shadow: var(--shadow);
        }

        .buy-nudge-card h4 {
            margin: 0;
            font-size: 1.05rem;
        }

        .buy-nudge-card p {
            margin: 0;
        }

        .buy-nudge-skip {
            font-size: 0.88rem;
            opacity: 0.8;
        }

        .buy-nudge-card .secondary {
            padding: 11px 14px;
            border-radius: 999px;
            border: 1px solid var(--line);
            background: transparent;
            color: var(--text);
            font-weight: 600;
            cursor: pointer;
        }

        /* ===== 2.12.0: multitasking pass. On narrow screens the tabs bar
           spent two rows (tabs, then a near empty row holding only the
           Discord icon) — about 60px of chrome a split screen pane cannot
           spare. It is one row now. In short panes the status strip and
           welcome line hide and the header slims down, so the join code
           box and Connect button fit a short landscape window without
           scrolling; both come back in taller windows. ===== */
        #popoutButton[hidden] {
            display: none;
        }

        #popoutButton {
            white-space: nowrap;
            padding-left: 8px;
            padding-right: 8px;
        }

        @media (max-width: 760px) {
            /* 2.16.0: back to the two row grid the bar was designed with.
               The 2.12.0 flex row packed the Discord icon in at the top
               left; Bill wants it bottom left, under the tabs, with
               Install App at the bottom right. */
            .tabs-bar {
                display: grid;
                /* First column is one tab wide (the four tabs share
                   the row equally), so the Discord link centered in
                   it sits exactly under the Voice Link tab
                   (Bill, 2026-11-06). */
                grid-template-columns: minmax(0, 25%) minmax(0, 1fr) auto;
                grid-template-areas:
                    "tabs tabs tabs"
                    "discord install status";
                align-items: center;
                column-gap: 8px;
                row-gap: 6px;
            }

            .tabs-bar > .discord-link {
                border-top: none;
                margin-left: 0;
                align-self: center;
            }

            .tabs-bar-install {
                border-top: none;
                align-self: center;
                justify-self: end;
                margin-left: 0;
            }
        }

        @media (max-width: 420px) {
            .tabs-bar {
                column-gap: 6px;
            }

            .tabs-bar .site-tab {
                /* Keep 4px side padding so the fluid labels keep
                   their room at the narrowest widths. */
                padding-left: 4px;
                padding-right: 4px;
            }
        }

        @media (max-height: 540px) {
            .status-strip {
                display: none;
            }

            .welcome-line {
                display: none;
            }

            .tabs-bar-install {
                display: none;
            }

            .topbar {
                min-height: 0;
                padding: 8px 14px;
            }

            .topbar .brand-dino-mark {
                width: 60px;
            }

            .topbar .brand-backdrop {
                display: none;
            }

            .login-intro .eyebrow {
                display: none;
            }

            .join-code-box textarea {
                min-height: 40px;
            }

            .login-layout {
                padding: 8px;
            }

            .login-layout .login-box {
                padding: 8px 16px;
            }
        }

        /* Voice pop out (Document Picture in Picture). The pop out window
           receives a copy of this stylesheet, so these rules style it
           there too. It is a controls window only: no audio moves. */
        .pip-voice {
            position: absolute;
            inset: 0;
            overflow-y: auto;
            box-sizing: border-box;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: var(--panel);
            color: var(--text);
        }

        .pip-voice .pip-state {
            font-size: 15px;
            font-weight: 700;
        }

        .pip-voice .pip-mute {
            flex: 0 0 auto;
            width: 100%;
            min-height: 44px;
        }

        .pip-voice .pip-title {
            margin: 2px 0 0;
        }

        .pip-voice .speaker-list {
            margin: 0;
        }

        /* ===== 2.13.0: microphone picker in the voice console. Players pick
           their mic on the page instead of digging through browser settings.
           The row stays hidden until the browser can list microphones. ===== */
        .mic-picker-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
        }

        .mic-picker-row[hidden] {
            display: none;
        }

        .mic-picker-row label {
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
        }

        .mic-picker-row select {
            flex: 1 1 auto;
            min-width: 0;
            min-height: 36px;
        }

        /* ===== 2.15.0: the voice console tidied into one audio card. The
           big mic circle becomes a small live indicator in the button row,
           and the microphone and speaker pickers become slim icon pills:
           just an icon, the device name, and a chevron. ===== */
        .voice-console .console-actions {
            align-items: center;
        }

        .voice-console .mic.mic-inline {
            width: 38px;
            height: 38px;
            flex: 0 0 auto;
        }

        .voice-console .mic.mic-inline svg {
            width: 19px;
            height: 19px;
        }

        /* ===== Voice console tidy (Bill, 2026-11-14, restyled
           2026-11-15): the console is dark in both themes, so the
           mic/speaker picker pills are dark too (they used the theme
           panel color and went white in light theme). Rows share one
           width so the console reads as a single column. The lower
           controls are compact and equal-width: slim picker pills
           and a smaller Spatial Audio button, all capped at the same
           280px as the button rows. ===== */
        .voice-console {
            gap: 10px;
        }

        .voice-console .mic-picker-row {
            width: min(100%, 280px);
            padding: 2px 8px 2px 10px;
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(255, 255, 255, 0.16);
        }

        /* Compact lower controls (Bill, 2026-11-15): the picker pills
           and the Spatial Audio button were tall and loose, and the
           long Spatial label made its row feel wider than the rest.
           Slimmer pills, a smaller Spatial button, same 280px cap
           on every row. */
        .voice-console .mic-picker-row select {
            min-height: 28px;
            font-size: 13px;
        }

        .voice-console #spatialAudioBtn {
            min-height: 40px;
            padding: 8px 12px;
            font-size: 12.5px;
        }

        .voice-console .mic-picker-row .picker-ico {
            color: #b9cdb9;
        }

        .voice-console .mic-picker-row select {
            color: #eef4ee;
        }

        /* ===== Players list (Bill, 2026-11-17): the card splits
           into two groups that each scroll inside it — in-voice on
           top with the bigger share, not-in-voice below it, so both
           stay visible at once and neither can push the list out of
           the card. The Nov 14 combined-scroll design is retired:
           one shared scroller let the two lists squeeze each other
           (the divider collapsed to 4px and the list spilled into
           Voice Health). The heading stays put; each group scrolls
           on its own. ===== */
        .players-scroll {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1 1 auto;
            min-height: 0;
            overflow: hidden;
            scrollbar-width: thin;
            padding-right: 2px;
        }

        /* Players card needs real height: the equal-height flex floor (150px) left
           the list area ~56px tall (one row). Force the card tall enough to show
           several players, so the scroll area above fits inside it. The card
           clips anything past its edge: no row may paint into the card below. */
        #controls > .speaker-box#playersBox {
            min-height: 380px;
            overflow: hidden;
        }

        /* Each group scrolls inside the card: in-voice and
           not-in-voice split the list height equally (Bill,
           2026-11-19), and neither may collapse to nothing — the
           not-in-voice floor still fits its divider plus one row.
           When a group is empty it leaves the layout entirely
           (Bill's 2026-11-10 rule), and the other group takes the
           full height. */
        #controls > .speaker-box .players-scroll #connectedPlayers {
            flex: 1 1 0;
            min-width: 0;
            min-height: 150px;
            overflow-y: auto;
        }

        #controls > .speaker-box .players-scroll #gamePlayersNotInVoice {
            flex: 1 1 0;
            min-width: 0;
            min-height: 110px;
            overflow-y: auto;
        }

        .mic-picker-row {
            background: var(--panel-strong);
            border: 1px solid var(--line);
            border-radius: 999px;
            padding: 3px 8px 3px 12px;
            gap: 6px;
        }

        .mic-picker-row .picker-ico {
            display: inline-flex;
            align-items: center;
            align-self: center;
            flex: 0 0 auto;
            color: var(--muted);
            line-height: 0;
            margin: 0;
        }

        .mic-picker-row .picker-ico svg {
            display: block;
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .mic-picker-row select {
            appearance: none;
            -webkit-appearance: none;
            background-color: transparent;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.4' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>");
            background-repeat: no-repeat;
            background-position: right 2px center;
            background-size: 12px;
            border: none;
            box-shadow: none;
            color: var(--text);
            font: inherit;
            font-size: 13.5px;
            min-height: 30px;
            padding: 2px 20px 2px 0;
            text-overflow: ellipsis;
        }

        .mic-picker-row select:focus-visible {
            outline: 2px solid var(--blue);
            outline-offset: 1px;
        }

        /* ===== 2.15.1: the selected teleport place looked faded, above all
           in dark theme, where the old grayish green at low opacity washed
           out against the dark panels. The selection now uses the vivid end
           of the palette with a soft glow, and the base selection green is
           deepened a step in light theme too. ===== */
        .teleport-place.selected {
            border-color: #2e9e52;
            background: rgba(46, 158, 82, 0.16);
        }

        :root[data-theme="dark"] .teleport-place.selected {
            border-color: #6fa287;
            background: linear-gradient(180deg, rgba(111, 162, 135, 0.34), rgba(84, 124, 103, 0.20));
            box-shadow: 0 0 0 1px rgba(111, 162, 135, 0.35), 0 4px 16px rgba(84, 124, 103, 0.25);
            color: #effff5;
        }

        :root[data-theme="dark"] .teleport-place.selected small {
            color: #a7e8c0;
        }

        /* ===== 2.16.0: dark theme livened up. The flat near black page got
           a soft green glow from the top and a whisper from the bottom
           corner over the faint grid, and the dark palette itself was
           lifted a step (see the variable blocks): greener panels,
           brighter borders, sage muted text instead of flat gray. ===== */
        html:root[data-theme="dark"] body {
            background-image:
                radial-gradient(880px 460px at 50% -120px, rgba(111, 162, 135, 0.14), transparent 65%),
                radial-gradient(760px 520px at 88% 112%, rgba(31, 157, 97, 0.09), transparent 62%),
                linear-gradient(var(--grid-line) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
        }

        /* ===== 2.16.0 (tabs bar, final word): several layout eras stack
           media rules for this bar, including one that dissolves the tab
           nav with display: contents and gives each tab its own grid
           area. This block settles the phone layout in one place: the
           nav is a real flex row in the top area, Discord sits bottom
           left, Install App bottom right. ===== */
        @media (max-width: 760px) {
            .tabs-bar {
                display: grid;
                /* First column one tab wide + the Discord link
                   centered in it = the icon centered under the
                   Voice Link tab (Bill, 2026-11-06). */
                grid-template-columns: minmax(0, 25%) minmax(0, 1fr) auto;
                grid-template-areas:
                    "tabs tabs tabs"
                    "discord install status";
                align-items: center;
                column-gap: 8px;
                row-gap: 6px;
            }

            .tabs-bar .site-tabs {
                display: flex;
                grid-area: tabs;
                gap: 4px;
                /* No side inset: the tab row spans the bar's full
                   content width, so the first tab's center lands
                   on the first grid column's center (where the
                   Discord link sits) instead of 10px right of it. */
                padding-left: 0;
                padding-right: 0;
            }

            .tabs-bar .site-tab {
                flex: 1 1 auto;
            }

            .tabs-bar > .discord-link {
                grid-area: discord;
                justify-self: center;
            }

            .tabs-bar-install {
                grid-area: install;
                justify-self: end;
            }

            .tabs-bar-status {
                grid-area: status;
                justify-self: end;
            }
        }
        .maintenance-banner {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            margin: 14px 0;
            padding: 12px 14px;
            border-radius: 14px;
            border: 1px solid var(--amber);
            background: color-mix(in srgb, var(--amber) 14%, transparent);
            font-size: 0.95rem;
            line-height: 1.45;
        }

        .maintenance-banner[hidden] {
            display: none;
        }

        .maintenance-banner p {
            margin: 0;
        }

        .maintenance-banner-icon {
            font-size: 1.1rem;
            line-height: 1.3;
        }

        .status-pill.warning .status-dot {
            background: var(--amber);
        }

        /* Warning means yellow (2026-11-04): maintenance and caution
           states read yellow; red is reserved for down and error. The
           site amber variable had drifted to salmon, which read as red,
           so pin it back to a true yellow for both themes. Every
           warning surface (status dots, state labels, health meter,
           maintenance banner, Voice Link pill) reads this one variable. */
        :root {
            --amber: #ca8a04;
        }

        :root[data-theme="dark"] {
            --amber: #facc15;
            /* Dark theme accent is sage (Bill, 2026-11-07): the old
               mint read as a highlighter next to the dark panels. */
            --green: #6fa287;
            --green-deep: #547c67;
        }

        /* Recent supporters (Buy Me a Coffee feed): plain rows inside
           the same inset box family as the running cost bill. The whole
           block stays hidden until the feed returns someone to show. */
        #supportersSection[hidden] {
            display: none;
        }

        /* Slideshow fade for the two at a time rotation. */
        #supportersList {
            transition: opacity 0.45s ease;
        }

        #supportersList.supporters-fading {
            opacity: 0;
        }

        .supporter-row {
            align-items: baseline;
        }

        .supporter-note {
            color: var(--muted, inherit);
        }

        .supporter-coffees {
            white-space: nowrap;
        }

        /* Account actions row (2026-11-04, Bill): the signed in buttons
           stretched the full card width and Unlink was a washed out
           gray. Modernized as one language: compact pills that size to
           their labels, centered, with real colors — blurple for sign
           in, amber for unlink, red for sign out. */
        #discordSignedIn .button-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            align-items: center;
            max-width: 600px;
            margin-inline: auto;
            margin-top: 16px;
        }

        #discordSignedIn .button-row>button {
            flex: 0 1 auto !important;
            width: auto !important;
            min-height: 44px !important;
            padding: 10px 22px !important;
            font-size: 14px !important;
            font-weight: 700;
            border-radius: 999px !important;
            border: none !important;
            box-shadow: 0 1px 3px rgba(18, 35, 24, 0.25) !important;
            cursor: pointer;
        }

        #discordConnectBtn {
            background: #5865F2 !important;
            color: #ffffff !important;
        }

        #discordUnlinkBtn {
            background: linear-gradient(180deg, #718096, #4a5568) !important;
            color: #ffffff !important;
        }

        :root[data-theme="dark"] #discordUnlinkBtn {
            background: linear-gradient(180deg, #7d8ea3, #55677c) !important;
            color: #ffffff !important;
        }

        #discordSignOutBtn {
            background: #dc2626 !important;
            color: #ffffff !important;
        }

        /* Banner band (2.23.0): the herd banner art carries the top of the
           page on its own. The line art mark, the brand backdrop outline and
           the header theme switch are gone from the band; the Light/Dark
           switch lives in the footer now. A soft wash keeps the title
           readable over the art in both themes. */
        .topbar {
            min-height: 210px;
            padding: 22px 24px 20px;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            border-bottom: none;
        }

        /* 2.24.0: the banner art (banner-cloud.webp) carries the Dino
           Island title in its own clouds, so the text title is hidden and
           the art is the title. The topbar keeps an aria-label for screen
           readers. Bill's pick (2026-11-05): the puffy cloud letters (B);
           variant A (cloud letters on the previous herd scene) is saved
           as the rollback. */
        .topbar .brand {
            display: none;
        }

        /* The Aero glass block pins .topbar to var(--glass-card) with
           !important, so the banner needs the same weight and the :root
           selector to win. */
        :root .topbar {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.12) 82%, rgba(255, 255, 255, 0.28) 100%), url('images/banner-cloud.webp') center 30% / cover no-repeat !important;
        }

        :root[data-theme="dark"] .topbar {
            background: linear-gradient(180deg, rgba(10, 18, 13, 0.04) 0%, rgba(10, 18, 13, 0.10) 55%, rgba(10, 18, 13, 0.58) 100%), url('images/banner-cloud.webp') center 30% / cover no-repeat !important;
        }

        /* Wide screens: cover at the phone band height slices the cloud
           letters in half. A taller band and a higher crop window show the
           whole title and most of the herd. */
        @media (min-width: 701px) {
            .topbar {
                min-height: clamp(300px, 24vw, 350px);
            }

            :root .topbar {
                background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.12) 82%, rgba(255, 255, 255, 0.28) 100%), url('images/banner-cloud.webp') 50% 22% / cover no-repeat !important;
            }

            :root[data-theme="dark"] .topbar {
                background: linear-gradient(180deg, rgba(10, 18, 13, 0.04) 0%, rgba(10, 18, 13, 0.10) 55%, rgba(10, 18, 13, 0.58) 100%), url('images/banner-cloud.webp') 50% 22% / cover no-repeat !important;
            }
        }

        .topbar .brand {
            text-shadow: 0 1px 12px rgba(255, 255, 255, 0.75), 0 0 3px rgba(255, 255, 255, 0.6);
        }

        .topbar .brand {
            text-align: center;
        }

        .topbar .brand span {
            font-size: clamp(28px, 6.5vw, 36px);
            line-height: 1.1;
        }

        :root[data-theme="dark"] .topbar .brand {
            color: #eef7ea;
            text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
        }

        .site-footer {
            flex-wrap: wrap;
            row-gap: 10px;
        }

        .site-footer .theme-switch {
            margin: 0 6px;
        }

        /* ---------------------------------------------------------
           Fight Night versus card (3.3.3): a standing dark arena
           card under the tab bar. Deliberately dark in both
           themes (the artwork is a moody night arena). One fluid
           component at every size: as it shrinks the artwork and
           the VS shrink first; the names, the VS, and the fight
           time are the last things standing.
           --------------------------------------------------------- */
        .fight-card {
            margin: 14px 0 4px;
            padding: 16px 18px 14px;
            border-radius: 18px;
            border: 1px solid rgba(255, 190, 90, 0.35);
            background:
                radial-gradient(120% 150% at 12% 0%, rgba(64, 190, 190, 0.16), transparent 55%),
                radial-gradient(120% 150% at 88% 0%, rgba(255, 110, 60, 0.16), transparent 55%),
                linear-gradient(180deg, #101820 0%, #0a0f16 70%, #070a0f 100%);
            color: #f4f7f2;
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
        }

        .fight-card[hidden] {
            display: none;
        }

        .fight-card-tonight {
            border-color: rgba(255, 180, 60, 0.85);
            box-shadow: 0 0 0 1px rgba(255, 180, 60, 0.35), 0 14px 38px rgba(255, 140, 40, 0.22);
        }

        .fight-card-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .fight-card-eyebrow {
            margin: 0;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: #ffcf87;
        }

        .fight-card-place {
            margin: 0;
            font-size: 12.5px;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(244, 247, 242, 0.65);
        }

        /* Result phase (Bill, 2026-11-22): the "Last fight" label
           over the settled bout, so it never reads as the upcoming
           fight. */
        .fight-phase-label {
            margin: 0 0 8px;
            text-align: center;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: rgba(244, 247, 242, 0.6);
        }

        .fight-versus {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            gap: clamp(8px, 2.5vw, 22px);
        }

        .fight-side {
            min-width: 0;
            text-align: center;
        }

        .fight-tag {
            display: inline-block;
            margin: 0 0 4px;
            padding: 2px 10px;
            border-radius: 999px;
            border: 1px solid rgba(255, 207, 135, 0.55);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: #ffcf87;
        }

        .fight-tag[hidden],
        .fight-species[hidden],
        .fight-when[hidden],
        .fight-phase-label[hidden],
        .fight-next[hidden],
        .fight-bet[hidden],
        .fight-countdown[hidden],
        .fight-action[hidden] {
            display: none;
        }

        .fight-name {
            margin: 0;
            font-size: clamp(19px, 4.6vw, 31px);
            font-weight: 800;
            line-height: 1.08;
            overflow-wrap: break-word;
            color: #ffffff;
            text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
        }

        .fight-species {
            margin: 3px 0 0;
            font-size: clamp(12px, 2.6vw, 15px);
            font-weight: 600;
            letter-spacing: 0.04em;
            overflow-wrap: break-word;
            color: rgba(244, 247, 242, 0.72);
        }

        .fight-art {
            position: relative;
            margin-top: 9px;
            aspect-ratio: 3 / 2;
            border-radius: 12px;
            overflow: hidden;
            background: radial-gradient(90% 90% at 50% 30%, #1c2836 0%, #0a0f16 78%);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
        }

        .fight-art img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .fight-art img[hidden] {
            display: none;
        }

        .fight-art-flip {
            transform: scaleX(-1);
        }

        .fight-art-fallback {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            padding: 10px;
            font-size: clamp(20px, 4.8vw, 40px);
            font-weight: 800;
            line-height: 1.05;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            color: rgba(255, 255, 255, 0.88);
            text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
            overflow-wrap: anywhere;
        }

        .fight-art-fallback[hidden] {
            display: none;
        }

        /* Weekly poll in the "?" box (Bill, 2026-11-16): the same
           tally as Discord, one vote per Discord-linked viewer.
           The panel replaces side B's art box while a poll is
           open; the box itself is dark on both themes. */
        .fight-poll {
            margin-top: 9px;
            display: grid;
            gap: 6px;
            text-align: left;
        }

        .fight-poll[hidden] {
            display: none;
        }

        .fight-poll-title {
            margin: 0;
            font-size: clamp(11px, 2.4vw, 12.5px);
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #ffcf87;
        }

        .fight-poll-note {
            margin: 0;
            padding: 6px 8px;
            border-radius: 8px;
            background: rgba(255, 180, 90, 0.14);
            font-size: clamp(11px, 2.4vw, 12.5px);
            line-height: 1.4;
            color: #ffd9a0;
        }

        .fight-poll-option {
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 5px 8px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            color: #f4f7f2;
            font: inherit;
            text-align: left;
            cursor: pointer;
        }

        div.fight-poll-option {
            cursor: default;
        }

        button.fight-poll-option:hover:not(:disabled) {
            border-color: rgba(255, 207, 135, 0.55);
            background: rgba(255, 255, 255, 0.09);
        }

        button.fight-poll-option:disabled {
            cursor: wait;
            opacity: 0.7;
        }

        .fight-poll-option[aria-pressed="true"] {
            border-color: rgba(255, 207, 135, 0.8);
            background: rgba(255, 207, 135, 0.14);
        }

        .fight-poll-fill {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            background: rgba(255, 180, 90, 0.16);
        }

        .fight-poll-thumb,
        .fight-poll-namewrap,
        .fight-poll-name,
        .fight-poll-record,
        .fight-poll-check,
        .fight-poll-count {
            position: relative;
        }

        .fight-poll-thumb {
            flex: 0 0 28px;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            overflow: hidden;
            background: radial-gradient(90% 90% at 50% 30%, #1c2836 0%, #0a0f16 78%);
            display: grid;
            place-items: center;
        }

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

        .fight-poll-letter {
            font-size: 15px;
            font-weight: 800;
            color: rgba(244, 247, 242, 0.85);
        }

        .fight-poll-namewrap {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
        }

        .fight-poll-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: clamp(12px, 2.6vw, 14px);
            font-weight: 700;
        }

        .fight-poll-record {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: clamp(10.5px, 2.3vw, 11.5px);
            color: rgba(244, 247, 242, 0.62);
        }

        .fight-poll-check {
            font-size: 13px;
            font-weight: 800;
            color: #ffcf87;
        }

        .fight-poll-count {
            font-size: clamp(12px, 2.6vw, 13.5px);
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            color: rgba(244, 247, 242, 0.85);
        }

        .fight-poll-foot {
            margin: 0;
            text-align: center;
            font-size: clamp(11px, 2.4vw, 12px);
            color: rgba(244, 247, 242, 0.66);
        }

        .fight-poll-link-note {
            margin: 2px 0 0;
            text-align: center;
            font-size: clamp(11.5px, 2.5vw, 13px);
            font-weight: 600;
            color: rgba(244, 247, 242, 0.8);
        }

        .fight-poll-signin {
            justify-self: center;
        }

        .fight-poll-error {
            margin: 0;
            text-align: center;
            font-size: clamp(11.5px, 2.5vw, 13px);
            color: #ffb3a0;
        }

        .fight-center {
            min-width: 104px;
            text-align: center;
        }

        .fight-vs {
            display: block;
            font-size: clamp(32px, 7vw, 62px);
            font-weight: 900;
            font-style: italic;
            line-height: 1;
            background: linear-gradient(180deg, #ffe9b0 0%, #ffb347 45%, #ff7043 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: none;
            filter: drop-shadow(0 3px 10px rgba(255, 120, 40, 0.35));
        }

        .fight-when {
            margin: 7px auto 0;
            max-width: 250px;
            font-size: clamp(12.5px, 2.8vw, 15.5px);
            font-weight: 700;
            line-height: 1.3;
            color: #ffffff;
        }

        .fight-countdown {
            margin: 4px 0 0;
            font-size: clamp(12px, 2.6vw, 14.5px);
            font-weight: 700;
            letter-spacing: 0.05em;
            color: #ffcf87;
        }

        .fight-prize {
            margin: 8px auto 0;
            max-width: 210px;
            font-size: 12px;
            line-height: 1.4;
            color: rgba(244, 247, 242, 0.66);
        }

        /* Betting line: same family as the prize line, in the VS
           block on every phase. It advertises betting as part of
           the event, never as open right now — bets open only
           once the bout is staged (both fighters checked in), in
           game with !bet, from 100 marks. */
        .fight-bet {
            margin: 6px auto 0;
            max-width: 210px;
            font-size: 12px;
            line-height: 1.4;
            color: rgba(244, 247, 242, 0.66);
        }

        .fight-line {
            margin: 12px 0 0;
            text-align: center;
            font-size: 13.5px;
            color: rgba(244, 247, 242, 0.88);
        }

        /* Result phase (Bill, 2026-11-22): the next fight, below
           the settled bout — champion vs "?" with the date. */
        .fight-next {
            margin: 12px 0 0;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid rgba(255, 207, 135, 0.35);
            background: rgba(255, 207, 135, 0.08);
            text-align: center;
            font-size: 14px;
            font-weight: 700;
            color: #f4f7f2;
        }

        .fight-card-foot {
            margin-top: 9px;
            text-align: center;
        }

        .fight-action {
            display: inline-block;
            padding: 8px 18px;
            border-radius: 999px;
            background: linear-gradient(180deg, #ffc966, #ff9d45);
            color: #22160a;
            font-size: 13.5px;
            font-weight: 800;
            letter-spacing: 0.02em;
            text-decoration: none;
        }

        .fight-action:hover {
            filter: brightness(1.06);
        }

        /* Phone arrangement: the center column keeps only the VS
           between the dinosaurs (the center box dissolves so its
           lines become full-width rows under the versus row),
           which leaves the two sides wide enough for real names. */
        @media (max-width: 620px) {
            .fight-card {
                padding: 13px 12px 12px;
            }

            .fight-versus {
                grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
                gap: 6px;
            }

            .fight-center {
                display: contents;
            }

            .fight-side-a {
                grid-column: 1;
                grid-row: 1;
            }

            .fight-side-b {
                grid-column: 3;
                grid-row: 1;
            }

            .fight-vs {
                font-size: 27px;
            }

            .fight-when {
                grid-column: 1 / -1;
                margin-top: 8px;
                max-width: none;
            }

            .fight-countdown {
                grid-column: 1 / -1;
            }

            .fight-prize {
                grid-column: 1 / -1;
                max-width: 260px;
                margin-top: 6px;
                font-size: 11.5px;
            }

            .fight-bet {
                grid-column: 1 / -1;
                max-width: 260px;
                margin-top: 6px;
                font-size: 11.5px;
            }

            .fight-name {
                font-size: clamp(15px, 4.2vw, 20px);
            }

            .fight-tag {
                font-size: 10.5px;
                padding: 2px 8px;
            }
        }

/* Update notice (2026-11-14, Bill): the page reloads itself when a
   new version is ready, and rejoins voice on load. The notice says
   so before the reload, and confirms it after. */
/* Update notice (Bill, 2026-11-14): a small dark toast at the bottom
   of the screen, not a white box over the banner. It never covers
   the Dino Island banner or the tab bar. */
/* Update notice anchor (Bill, 2026-11-16): on Android Chrome a
   bottom-anchored fixed element sits against the LAYOUT viewport,
   which is taller than the visible area while the URL bar is shown,
   so the toast hung half below the screen until a scroll hid the
   bar. Modern browsers anchor it to the DYNAMIC viewport instead
   (100dvh tracks the visible bottom as the bar shows and hides);
   the top + translateY(-100%) puts its bottom edge 16px above the
   visible bottom whatever its height. Older browsers keep bottom. */
.update-notice {
    /* In-flow banner (Bill, 2026-11-19, v447): the fixed bottom
       toast sat in the voice console's tap band in split-screen, so
       taps on the top of Mute/Leave hit the toast (v441: nothing
       happened) or its Reload button (v446: reloaded the page).
       As an in-flow banner at the top of the page it pushes content
       down and can never cover a button. The toast itself never
       takes taps; only its Reload button does. */
    position: static;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    margin: 12px auto;
    width: max-content;
    max-width: min(92vw, 420px);
    padding: 12px 16px;
    background: linear-gradient(150deg, rgba(49, 70, 51, 0.96), rgba(30, 47, 34, 0.98));
    color: #f4f6ec;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    line-height: 1.4;
}

.update-notice[hidden] {
    display: none;
}

/* While the toast is up, reserve its height at the bottom of the
   page so every footer control can be scrolled clear of the toast
   band, including clear of the Reload button: without this the
   Release notes link sits under the button on short pages and no
   amount of scrolling frees it. */
body.update-notice-visible {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

.update-notice #updateNoticeText {
    flex: 1 1 auto;
}

.update-notice #updateNoticeReload {
    flex: 0 0 auto;
    pointer-events: auto;
    background: var(--green);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    box-shadow: none;
}

.update-notice #updateNoticeReload:hover {
    filter: brightness(1.12);
}

.update-notice #updateNoticeReload[hidden] {
    display: none;
}

/* ===== Voice console restyle (Bill, 2026-11-15) — READ THIS FIRST:
   the console's live look does NOT come from the original rules near
   the top of this file. Glossy eras below them win the cascade: the
   lime Mute gradient (button rule ~1873), the glossy mic orb (~1840),
   the soft active-mic radial (~2262), and the speaking keyframes
   (~3286, no scale, pale rings) are what renders. The .voice-side
   rules are dead (no .voice-side element exists in the DOM). This
   block sits last so it is the effective restyle. Console-scoped
   colors: the console is dark in both themes, so Mute is sage, not
   lime, and the speaking pulse is a bright emerald ring with real
   scale. ===== */
#controls .voice-console {
    --console-accent: #6fa287;
    --console-accent-text: #0c130f;
    --console-speak: #4ade80;
}

/* Scoped under #controls (1,2,1): beats the later accent button
   rules and the dark-theme white-text rule (~3173, 0,5,2), which
   otherwise win over a plain .voice-console selector. */
#controls .voice-console button:not(.secondary) {
    background: var(--console-accent, #6fa287);
    color: var(--console-accent-text, #0c130f);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-shadow: none;
    box-shadow: none;
}

/* Tap-to-restore-sound (Bill, 2026-11-17, SW v441): switching apps
   suspends the AudioContext and every gesture-less resume fails, so
   a failed restore shows a big tappable button instead of only a
   status line. The console is dark in both themes, so the note is
   light text and the button reuses the sage console accent. */
#controls .voice-console .restore-sound-wrap {
    width: 100%;
    margin-top: 18px;
}

#controls .voice-console .restore-sound-note {
    margin: 0 0 10px;
    font-size: clamp(14px, 3.8vw, 15.5px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

#controls .voice-console #restoreSoundBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    font-size: clamp(16px, 4.4vw, 18px);
    font-weight: 700;
    border-radius: 12px;
}

#controls .voice-console #restoreSoundBtn svg {
    width: 22px;
    height: 22px;
    flex: none;
    fill: var(--console-accent-text, #0c130f);
}

#controls .voice-console .mic {
    background: var(--mic-rest);
    border: 1px solid var(--topbar-border);
    box-shadow: inset 0 0 0 8px rgba(244, 246, 236, 0.035);
}

#controls .voice-console .mic.active {
    background: var(--console-accent, #6fa287);
    border-color: var(--console-accent, #6fa287);
    box-shadow: inset 0 0 0 8px rgba(23, 38, 31, 0.08);
}

#controls .voice-console .mic.active svg {
    fill: var(--night);
}

#controls .voice-console .mic.speaking {
    animation: mic-speaking 0.6s ease-in-out infinite alternate;
}

@keyframes mic-speaking {
    from {
        transform: scale(1);
        box-shadow: inset 0 0 0 8px rgba(23, 38, 31, 0.08), 0 0 0 0 rgba(74, 222, 128, 0), 0 0 0 0 rgba(74, 222, 128, 0);
    }

    to {
        transform: scale(1.12);
        box-shadow: inset 0 0 0 8px rgba(23, 38, 31, 0.08), 0 0 0 4px rgba(244, 246, 236, 0.9), 0 0 0 9px var(--console-speak, #4ade80), 0 0 22px 6px rgba(74, 222, 128, 0.45);
    }
}

/* Small inline mic (38px): its own pulse, no inset ring, bigger
   scale — the big-mic keyframes would swallow it and scale 1.1 on
   38px is ~2px a side, invisible. */
#controls .voice-console .mic.mic-inline.speaking {
    animation: mic-speaking-inline 0.6s ease-in-out infinite alternate;
}

@keyframes mic-speaking-inline {
    from {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0), 0 0 0 0 rgba(244, 246, 236, 0);
    }

    to {
        transform: scale(1.22);
        box-shadow: 0 0 0 3px rgba(244, 246, 236, 0.95), 0 0 0 7px var(--console-speak, #4ade80), 0 0 16px 4px rgba(74, 222, 128, 0.5);
    }
}

/* Button system (3.5.6, Bill 2026-11-20): buttons had grown in layers
   (radii of 5/7/10/12px, heights from 26px to 56px, siblings sized by
   content), so this block sits LAST and sets one scale. Colours and
   labels are untouched — layout and sizing only.
   Scale: large 48px / 14px (primary actions), medium 40px / 13px
   (tabs, segmented controls, secondary rows), small 32px / 12px
   (pills, chips, toggles). One radius for rectangular buttons (12px);
   pills stay 999px; the tab pattern keeps its 16px; dense teleport
   tiles keep 10px. Heights are fixed px — a touch target must not
   shrink with the viewport — while widths stay fluid (flex/grid share
   the row), so one design fits all screens with no per-device swap.
   Groups share evenly: siblings in a flex row use flex: 1 1 0 (basis
   zero, so widths come from the share, not the label length), with an
   8px gap; tab grids keep their 4px gap. Deliberate exceptions, left
   alone: the 88px mic (hero control), the .pc-tile stat tiles (big
   number + label), and the status strip (a div, not a button). */
:root {
    --btn-lg: 48px;
    --btn-md: 40px;
    --btn-sm: 32px;
    --btn-gap: 8px;
    --btn-radius: 12px;
}

/* Large: the default button. Any button that sets no size of its own
   lands here instead of inheriting a stray 48px floor with 5px padding. */
button {
    min-height: var(--btn-lg);
    padding: 12px 18px;
    border-radius: var(--btn-radius);
    font-size: 14px;
}

/* Button rows: one gap, even shares. */
.button-row {
    gap: var(--btn-gap);
}

.button-row > button,
.button-row > .discord-button {
    flex: 1 1 0;
    min-height: var(--btn-lg);
}

/* Growth cap (Bill 2026-11-20): a button may shrink with the window
   — split screen included — but never grows past its cutoff. Rows
   are width: min(100%, cap) and centred, so on a narrow screen the
   button is still full-width while on a wide screen it stops at the
   cap instead of stretching across the whole panel. The lone Connect
   row caps at 280px, the same cap the voice console already used
   for its button row; the remembered Rejoin/Forget pair caps at
   twice that plus the gap (568px). The four-digit join-code box gets
   the same 280px cap (Bill 2026-11-20): it measured 812px wide at
   desktop, and at 280px it lines up with the Connect button below
   it instead of spanning the whole panel. The "How do I get a
   code?" help sits between the code box and Connect, so it gets
   the same 280px cap (Bill 2026-11-20): before this it spanned
   the full panel and sat hard left while the box and button were
   centred at 280px. */
#connectRow {
    width: min(100%, 280px);
    margin-inline: auto;
}

.join-code-box {
    width: min(100%, 280px);
    margin-inline: auto;
}

#codeHelp {
    width: min(100%, 280px);
    margin-inline: auto;
}

#rememberedBox .button-row {
    width: min(100%, 568px);
    margin-inline: auto;
}

/* Site tabs: equal quarters on phone widths, where the tab row spans
   the full bar (the fluid label + ellipsis, 2.8vw clamp, already in
   place keeps long labels inside their share). Desktop keeps its
   content-sized tabs: the row there is a centered ~390px cluster, and
   an even 93px share makes "Server Status" spill into "Donate". */
@media (max-width: 760px) {
    .tabs-bar .site-tab {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Game subtabs + player-card tabs: medium, one line each. "Field
   Report" used to wrap and stretch its whole row to 50px while the
   other row sat at 38px; nowrap + 13px keeps every tab at 40px. */
.game-subtab,
.pc-tab {
    min-height: var(--btn-md);
    padding: 8px 4px;
    font-size: 13px;
    white-space: nowrap;
}

/* Medium: segmented controls and secondary rows. */
.share-toggle {
    gap: var(--btn-gap);
}

.share-toggle button {
    min-height: var(--btn-md);
    padding: 10px 14px;
    font-size: 13px;
}

.map-big-bar button {
    min-height: var(--btn-md);
    padding: 10px 14px;
    font-size: 13px;
}

.fight-poll-option {
    min-height: var(--btn-md);
}

.discord-button.fight-poll-signin {
    min-height: var(--btn-md);
}

/* Small: pills, chips, toggles, and quiet text rows. These all set
   slim padding but no min-height, so the 48px base floor made them
   ~48px tall — roughly double their content. */
.vote-btn,
.vote-keep-btn,
.vote-up-btn,
.vote-down-btn,
.list-more-btn,
.gift-tab,
.gift-chip,
.gift-purpose-btn,
.reserved-release,
.map-big-layers button,
.map-layer-group button,
.map-poi-tip button,
button.referral-copy {
    min-height: var(--btn-sm);
    font-size: 12px;
    line-height: 1.25;
}

/* Player mute keeps its fluid 9–10px label (Bill 2026-11-19); only
   its height joins the small size. */
.player-mute-button {
    min-height: var(--btn-sm);
}

.map-big-layers,
.gift-chips,
.gift-purpose {
    gap: var(--btn-gap);
}

/* Legend toggles are full-width text rows, not filled buttons; the
   48px base floor made them read as giant highlighter bars. */
.vote-legend-toggle,
.map-legend-toggle {
    min-height: var(--btn-sm);
}

/* Theme switch: two even halves instead of 45px vs 43px. */
.theme-switch {
    gap: var(--btn-gap);
}

.theme-switch .theme-option {
    flex: 1 1 0;
    min-height: var(--btn-sm);
}

/* Update toast reload: a 48px button inside a slim toast bar. */
.update-notice #updateNoticeReload {
    min-height: var(--btn-sm);
    padding: 6px 12px;
    font-size: 12px;
}

/* Fight "Sign up in Discord" link-button: give it the small height
   instead of content height so it matches the other small actions. */
.fight-action {
    min-height: var(--btn-sm);
}

/* Teleport rail: rows sized to their own content instead of 1fr (one
   long name stretched every tile to 56px). Tiles are two-line buttons
   (name + code), so they sit on the LARGE size: a tile with a
   two-line name measures 48px, a one-line name the same 48px floor.
   No name is truncated. */
.teleport-grid {
    grid-template-rows: repeat(3, auto);
}

.teleport-place {
    min-height: var(--btn-lg);
    padding: 4px 4px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.2;
}

