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

:root {
    --bg-0: #02050b;
    --bg-1: #06101d;
    --panel: rgba(4, 11, 22, 0.9);
    --panel-soft: rgba(0, 238, 255, 0.08);
    --border: rgba(82, 233, 255, 0.42);
    --border-strong: rgba(135, 245, 255, 0.9);
    --text: #f4fbff;
    --muted: #9bb6cc;
    --cyan: #7efaff;
    --green: #8fffc1;
    --orange: #ffbd67;
    --red: #ff5878;
    --blue-core: #1de2ff;
    --blue-deep: #123a72;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
    --glow: 0 0 22px rgba(30, 226, 255, 0.26);
    --outline-glow: 0 0 0 1px rgba(126, 250, 255, 0.18), 0 0 22px rgba(30, 226, 255, 0.16);
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: "Rajdhani", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 18% 14%, rgba(0, 255, 255, 0.16), transparent 20%),
        radial-gradient(circle at 82% 10%, rgba(79, 127, 255, 0.14), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(0, 229, 255, 0.08), transparent 36%),
        linear-gradient(180deg, #04070d 0%, #02050a 46%, #010206 100%);
    color: var(--text);
    overflow: hidden;
}

body.desktop-mode {
    background: linear-gradient(180deg, #0d1427 0%, #060910 100%);
}

.app-shell {
    position: relative;
    width: 100%;
    height: 100%;
}

body.desktop-mode .app-shell {
    padding-top: 34px;
}

.menu-backdrop,
.hud-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.menu-backdrop {
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.12), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(29, 226, 255, 0.12), transparent 25%),
        radial-gradient(circle at 50% 85%, rgba(124, 242, 191, 0.06), transparent 28%);
}

.hud-overlay {
    background-image:
        linear-gradient(rgba(126, 250, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 250, 255, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent);
    opacity: 0.7;
}

.desktop-chrome {
    position: fixed;
    inset: 0 0 auto 0;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 14px;
    background: rgba(4, 8, 16, 0.92);
    border-bottom: 1px solid rgba(113, 215, 255, 0.16);
    -webkit-app-region: drag;
    z-index: 20;
}

.desktop-chrome.hidden {
    display: none;
}

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

.desktop-brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #4b7cff);
    box-shadow: 0 0 12px rgba(113, 215, 255, 0.6);
}

.desktop-controls {
    display: flex;
    -webkit-app-region: no-drag;
}

.window-control {
    width: 48px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.18s ease;
}

.window-control:hover {
    background: rgba(255, 255, 255, 0.08);
}

.window-control.close:hover {
    background: rgba(255, 54, 87, 0.75);
}

.screen {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.menu-container {
    position: relative;
    width: min(1240px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
    overflow: auto;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid var(--border-strong);
    background:
        linear-gradient(180deg, rgba(5, 11, 21, 0.98), rgba(2, 7, 14, 0.94)),
        linear-gradient(135deg, rgba(30, 226, 255, 0.08), transparent 55%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--outline-glow);
    backdrop-filter: blur(18px);
}

.main-menu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 24px;
    align-items: stretch;
}

.hero-panel,
.menu-card,
.browser-panel,
.lobby-panel,
.game-settings,
.lobby-info {
    border: 1px solid rgba(126, 250, 255, 0.24);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--outline-glow);
}

.menu-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(7, 14, 25, 0.96), rgba(3, 8, 15, 0.96)),
        linear-gradient(135deg, rgba(113, 215, 255, 0.08), transparent 64%);
}

.auth-card {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(113, 215, 255, 0.14);
}

.auth-status,
.auth-summary {
    border-radius: 14px;
    border: 1px solid rgba(113, 215, 255, 0.16);
    background: rgba(7, 14, 26, 0.76);
    color: var(--muted);
    padding: 12px 14px;
    line-height: 1.5;
}

.auth-status.online {
    color: var(--green);
    border-color: rgba(124, 242, 191, 0.34);
}

.auth-status.offline {
    color: var(--orange);
    border-color: rgba(255, 179, 107, 0.28);
}

.auth-fields {
    display: grid;
    gap: 12px;
}

.compact-setting input {
    width: 100%;
}

.field-hint {
    color: rgba(156, 182, 200, 0.9);
    font-size: 0.82rem;
    line-height: 1.45;
}

.auth-actions {
    flex-wrap: wrap;
}

.social-card {
    display: grid;
    gap: 16px;
    margin-bottom: 0;
    padding: 0;
    border-top: 0;
    border-bottom: 0;
}

.social-summary {
    color: var(--muted);
    line-height: 1.5;
}

.social-status {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(113, 215, 255, 0.18);
    background: rgba(113, 215, 255, 0.08);
    color: var(--cyan);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

.social-status.online {
    color: var(--green);
    border-color: rgba(124, 242, 191, 0.3);
}

.social-status.loading {
    color: var(--orange);
    border-color: rgba(255, 179, 107, 0.3);
}

.social-status.offline {
    color: var(--red);
    border-color: rgba(255, 107, 125, 0.3);
}

.social-search {
    display: grid;
    gap: 10px;
}

.friend-search-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.social-list-block {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(113, 215, 255, 0.14);
    background: rgba(7, 14, 26, 0.68);
}

.social-block-header {
    display: grid;
    gap: 6px;
}

.social-block-header h4 {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.social-block-caption {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.social-list {
    display: grid;
    gap: 10px;
    min-height: 84px;
    max-height: 260px;
    overflow: auto;
}

.social-search-results {
    grid-column: 1 / -1;
}

.social-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(113, 215, 255, 0.14);
    background: linear-gradient(180deg, rgba(10, 18, 31, 0.96), rgba(6, 11, 19, 0.92));
}

.social-entry-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.social-entry-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.social-entry-name {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.social-entry-meta {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(113, 215, 255, 0.18);
    background: rgba(113, 215, 255, 0.08);
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.social-badge.online,
.social-badge.lobby,
.social-badge.match {
    color: var(--green);
    border-color: rgba(124, 242, 191, 0.26);
    background: rgba(124, 242, 191, 0.08);
}

.social-badge.offline {
    color: var(--red);
    border-color: rgba(255, 107, 125, 0.26);
    background: rgba(255, 107, 125, 0.08);
}

.social-badge.request,
.social-badge.outgoing {
    color: var(--orange);
    border-color: rgba(255, 179, 107, 0.26);
    background: rgba(255, 179, 107, 0.08);
}

.social-entry-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-action-button {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(113, 215, 255, 0.24);
    background: rgba(10, 18, 31, 0.92);
    color: var(--text);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
}

.social-action-button.tertiary {
    border-color: rgba(255, 179, 107, 0.24);
}

.social-action-button:hover {
    border-color: var(--border-strong);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.social-empty {
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed rgba(113, 215, 255, 0.18);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    line-height: 1.45;
}

.hero-panel {
    padding: 48px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(2, 8, 16, 0.94), rgba(2, 6, 12, 0.72)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0 2px, transparent 2px 100%),
        linear-gradient(rgba(0, 0, 0, 0.24) 0 2px, transparent 2px 100%),
        radial-gradient(circle at top left, rgba(0, 255, 255, 0.28), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(21, 119, 255, 0.2), transparent 28%),
        radial-gradient(circle at 50% 82%, rgba(255, 79, 129, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(4, 11, 21, 0.98), rgba(2, 7, 14, 0.96));
    background-size: auto, 42px 42px, 42px 42px, auto, auto, auto;
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 12%, rgba(126, 250, 255, 0.18), transparent 28%),
        linear-gradient(140deg, rgba(126, 250, 255, 0.08), transparent 38%, rgba(255, 255, 255, 0.03) 55%, transparent 72%);
    opacity: 0.8;
    pointer-events: none;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(126, 250, 255, 0.12);
    border-radius: 20px;
    pointer-events: none;
}

.menu-card-stack,
.browser-layout,
.lobby-layout,
.settings-layout,
.settings-content,
.operations-layout {
    display: grid;
    gap: 20px;
}

.menu-card,
.browser-panel,
.lobby-panel,
.game-settings,
.lobby-info {
    padding: 22px;
}

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

.title-action {
    display: grid;
    gap: 6px;
    align-content: start;
    min-height: 118px;
    text-align: left;
    padding: 18px;
    border-radius: 18px;
}

.title-action strong {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.title-action span:last-child {
    color: rgba(237, 247, 255, 0.7);
    line-height: 1.45;
    font-size: 0.92rem;
}

.title-action-kicker {
    color: var(--cyan);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.title-action-primary {
    border-color: rgba(126, 250, 255, 0.68);
    background:
        linear-gradient(180deg, rgba(14, 48, 93, 0.92), rgba(5, 16, 30, 0.98)),
        linear-gradient(135deg, rgba(126, 250, 255, 0.12), transparent 60%);
    box-shadow: 0 0 24px rgba(30, 226, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.eyebrow {
    color: var(--cyan);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 16px;
    font-family: "Orbitron", "Rajdhani", sans-serif;
}

.game-title {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-shadow: 0 0 36px rgba(126, 250, 255, 0.26), 0 0 8px rgba(255, 255, 255, 0.18);
}

.hero-subtitle,
.section-copy,
.menu-help,
.section-caption,
.server-details,
.survivor-desc,
.survivor-stats,
.setting-item label,
.setting-row label {
    color: var(--muted);
}

.hero-subtitle,
.section-copy,
.menu-help {
    line-height: 1.6;
}

.status-strip {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.status-chip,
.summary-pill,
.lobby-meta-card {
    background: linear-gradient(180deg, rgba(7, 14, 26, 0.92), rgba(4, 9, 16, 0.94));
    border: 1px solid rgba(113, 215, 255, 0.18);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.status-chip,
.lobby-meta-card {
    padding: 12px 14px;
}

.status-label,
.meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 6px;
}

.status-value,
.meta-value {
    font-size: 14px;
    color: var(--text);
}

#platform-status {
    position: relative;
    color: transparent;
    display: inline-block;
    min-width: 96px;
}

#platform-status::before {
    content: "Live Client";
    color: var(--text);
    position: relative;
}

body.desktop-mode #platform-status::before {
    content: "Desktop Shell";
}

.status-value.online {
    color: var(--green);
}

.status-value.connecting {
    color: var(--orange);
}

.status-value.offline {
    color: var(--red);
}

h2 {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
}

h3 {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading,
.panel-header,
.server-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.summary-pill {
    padding: 12px 16px;
    color: var(--cyan);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    white-space: nowrap;
}

.menu-buttons,
.server-list,
.player-list {
    display: grid;
    gap: 12px;
}

.inline-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.neon-button,
.copy-button,
.window-control,
.survivor-option,
.server-item {
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.neon-button {
    width: 100%;
    padding: 15px 18px;
    border-radius: 16px;
    border: 1px solid rgba(126, 250, 255, 0.5);
    background:
        linear-gradient(180deg, rgba(17, 41, 79, 0.85), rgba(5, 16, 30, 0.96)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 40%);
    color: var(--text);
    font-size: 0.96rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: "Orbitron", "Rajdhani", sans-serif;
}

.secondary-button {
    border-color: rgba(255, 189, 103, 0.54);
    background: linear-gradient(180deg, rgba(61, 36, 13, 0.84), rgba(22, 13, 5, 0.96));
}

.tertiary-button {
    border-color: rgba(143, 255, 193, 0.5);
    background: linear-gradient(180deg, rgba(10, 54, 37, 0.82), rgba(3, 20, 14, 0.96));
}

.neon-button:hover:not(:disabled),
.copy-button:hover,
.survivor-option:hover,
.server-item:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.42), 0 0 24px rgba(126, 250, 255, 0.24);
}

.launch-card {
    background:
        linear-gradient(180deg, rgba(4, 12, 24, 0.96), rgba(2, 7, 14, 0.96)),
        linear-gradient(135deg, rgba(30, 226, 255, 0.08), transparent 68%);
}

.menu-hub-card {
    display: grid;
    gap: 18px;
    align-content: start;
    position: relative;
    background:
        linear-gradient(180deg, rgba(4, 11, 22, 0.96), rgba(2, 6, 12, 0.98)),
        linear-gradient(135deg, rgba(20, 126, 255, 0.08), transparent 70%);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hub-tile {
    display: grid;
    gap: 8px;
    text-align: left;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(126, 250, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(8, 19, 35, 0.96), rgba(3, 10, 18, 0.96)),
        linear-gradient(135deg, rgba(126, 250, 255, 0.08), transparent 60%);
    color: var(--text);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    min-height: 118px;
}

.hub-tile.static-tile {
    cursor: default;
}

.hub-tile.static-tile:hover {
    transform: none;
    border-color: rgba(126, 250, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hub-tile:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--outline-glow), 0 16px 26px rgba(0, 0, 0, 0.34);
}

.hub-tile strong {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-tile span:last-child {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.94rem;
}

.hub-tile-kicker {
    color: var(--cyan);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.menu-console-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.console-chip {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(126, 250, 255, 0.18);
    background: linear-gradient(180deg, rgba(6, 15, 28, 0.92), rgba(3, 8, 15, 0.96));
}

.console-chip-label {
    color: var(--cyan);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.console-chip-value {
    color: var(--text);
    line-height: 1.45;
}

.operations-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
}

.operations-sidecard {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(126, 250, 255, 0.16);
    background: linear-gradient(180deg, rgba(7, 16, 29, 0.92), rgba(3, 9, 17, 0.96));
}

.operations-spotlight {
    min-height: 100%;
}

.social-console-card {
    display: grid;
    gap: 16px;
}

.neon-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.menu-help {
    margin-top: 16px;
    font-size: 0.95rem;
    max-width: 640px;
}

.settings-summary-pill {
    align-self: center;
    justify-self: end;
    margin-top: 4px;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
    gap: 18px;
    align-items: start;
}

.settings-content,
.settings-sidebar {
    display: grid;
    gap: 18px;
}

.settings-sidebar {
    align-content: start;
}

.settings-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(113, 215, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(10, 18, 32, 0.94), rgba(6, 12, 22, 0.92)),
        linear-gradient(135deg, rgba(113, 215, 255, 0.08), transparent 62%);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.settings-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(113, 215, 255, 0.06) 38%, transparent 66%);
    transform: translateX(-120%);
    animation: hudSweep 8s linear infinite;
    pointer-events: none;
}

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

.floating-shell {
    position: absolute;
    z-index: 8;
    pointer-events: auto;
}

.floating-shell-inner {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(126, 250, 255, 0.3);
    background:
        linear-gradient(180deg, rgba(5, 11, 21, 0.98), rgba(2, 7, 14, 0.96)),
        linear-gradient(135deg, rgba(126, 250, 255, 0.08), transparent 65%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--outline-glow);
    backdrop-filter: blur(18px);
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.floating-shell-header {
    margin-bottom: 2px;
}

.auth-shell {
    top: 48px;
    right: 34px;
    width: min(420px, calc(100vw - 68px));
}

.auth-shell .auth-card {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.pause-shell {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 5, 11, 0.34);
    backdrop-filter: blur(6px);
    overflow: auto;
}

.friends-drawer-shell {
    top: 48px;
    right: 0;
    bottom: 0;
    width: min(560px, calc(100vw - 18px));
    display: flex;
    justify-content: flex-end;
    padding: 0 18px 18px 18px;
    pointer-events: none;
}

.friends-drawer-inner {
    width: min(100%, 510px);
    margin-left: auto;
    margin-top: 52px;
    max-height: calc(100vh - 96px);
    pointer-events: auto;
}

.drawer-rail {
    position: absolute;
    top: 112px;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.drawer-rail-right {
    right: 0;
}

.drawer-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px 14px 18px;
    border-radius: 18px 0 0 18px;
    border: 1px solid rgba(126, 250, 255, 0.34);
    border-right: 0;
    background:
        linear-gradient(180deg, rgba(7, 14, 26, 0.98), rgba(3, 8, 15, 0.96)),
        linear-gradient(135deg, rgba(126, 250, 255, 0.1), transparent 66%);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow), var(--outline-glow);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.drawer-tab-kicker {
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 0.22em;
}

.drawer-tab strong {
    font-size: 0.92rem;
}

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

.drawer-status-chip {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(113, 215, 255, 0.16);
    background: rgba(7, 14, 26, 0.76);
}

.drawer-status-label {
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.drawer-status-value {
    color: var(--text);
    line-height: 1.35;
}

.drawer-search {
    padding: 0;
}

.drawer-friends-grid {
    display: grid;
    gap: 12px;
}

.drawer-list-block {
    max-height: 200px;
}

.drawer-footer {
    display: grid;
    gap: 10px;
}

.drawer-footer-note {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.9rem;
}

.pause-menu-layout {
    width: min(860px, calc(100vw - 48px));
}

.pause-shell-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pause-shell-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pause-shell-chip {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(113, 215, 255, 0.14);
    background: rgba(7, 14, 26, 0.76);
    color: var(--muted);
    line-height: 1.45;
}

.settings-callout {
    display: grid;
    gap: 12px;
}

.settings-callout label,
.setting-row label,
.setting-item label {
    color: var(--cyan);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.settings-callout input[type="text"],
.settings-callout input[type="range"],
.setting-row select {
    width: 100%;
}

.settings-sidebar-card {
    display: grid;
    gap: 12px;
}

.control-guide-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.control-guide-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(113, 215, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    line-height: 1.4;
}

.control-guide-list li span:last-child {
    color: var(--text);
    text-align: right;
}

.subtle-card {
    background:
        linear-gradient(180deg, rgba(8, 14, 25, 0.9), rgba(5, 10, 18, 0.94)),
        linear-gradient(135deg, rgba(255, 179, 107, 0.06), transparent 60%);
}

.sidebar-copy {
    color: var(--muted);
    line-height: 1.65;
}

.compact-eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
}

.keybinds-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(113, 215, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(7, 14, 26, 0.96), rgba(4, 8, 16, 0.92)),
        linear-gradient(135deg, rgba(113, 215, 255, 0.1), transparent 60%);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.keybinds-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.keybinds-panel-badge {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(124, 242, 191, 0.3);
    background: rgba(124, 242, 191, 0.09);
    color: var(--green);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.keybinds-panel-body {
    display: grid;
    gap: 14px;
}

.keybinds-panel-note {
    color: var(--muted);
    line-height: 1.6;
}

#keybinds-panel > label {
    display: block;
    margin-bottom: 0 !important;
    color: var(--cyan) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
}

#keybinds-panel > div:nth-of-type(1) {
    display: grid !important;
    gap: 12px !important;
}

#keybinds-panel > div:nth-of-type(1) > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(113, 215, 255, 0.18) !important;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.94), rgba(6, 12, 22, 0.94)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#keybinds-panel > div:nth-of-type(1) > div strong {
    color: var(--text) !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.86rem !important;
}

#keybinds-panel > div:nth-of-type(1) > div span {
    color: var(--muted) !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
}

#keybinds-panel .keybind-rebind-btn {
    min-width: 190px !important;
    width: auto !important;
    justify-self: end;
}

#keybinds-panel .keybind-rebind-btn[data-rebinding="true"] {
    border-color: rgba(124, 242, 191, 0.8) !important;
    background: linear-gradient(180deg, rgba(18, 46, 38, 0.94), rgba(8, 20, 17, 0.96)) !important;
    box-shadow: 0 0 0 1px rgba(124, 242, 191, 0.18), 0 0 18px rgba(124, 242, 191, 0.14) !important;
}

#keybinds-panel > div:nth-of-type(2) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 2px !important;
}

#keybinds-panel > div:nth-of-type(2) span {
    color: var(--muted) !important;
    line-height: 1.5 !important;
}

#keybinds-panel #keybind-reset-btn {
    width: auto;
    min-width: 190px;
}

.menu-help code,
.boot-fallback-notice code {
    color: var(--text);
}

.boot-fallback-notice {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 107, 125, 0.35);
    border-radius: 16px;
    background: rgba(255, 107, 125, 0.08);
    color: #ffd3da;
    line-height: 1.5;
}

.browser-grid,
.lobby-grid {
    display: grid;
    gap: 18px;
}

.browser-grid {
    grid-template-columns: minmax(280px, 360px) 1fr;
}

.lobby-grid {
    grid-template-columns: 0.95fr 1.05fr;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.code-input-group {
    display: flex;
    gap: 10px;
}

.code-input,
.setting-item input[type="text"],
.setting-item input[type="email"],
.setting-item input[type="password"],
.setting-row select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(126, 250, 255, 0.34);
    background: rgba(2, 10, 19, 0.92);
    color: var(--text);
    font-size: 0.98rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.code-input {
    text-transform: uppercase;
    letter-spacing: 0.38em;
    text-align: center;
    font-family: "Consolas", "Courier New", monospace;
}

.code-input:focus,
.setting-item input[type="text"]:focus,
.setting-item input[type="email"]:focus,
.setting-item input[type="password"]:focus,
.setting-row select:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(126, 250, 255, 0.14), 0 0 18px rgba(30, 226, 255, 0.14);
}

.server-list,
.player-list {
    margin-top: 16px;
    max-height: 520px;
    overflow-y: auto;
}

.server-item {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(113, 215, 255, 0.18);
    background: linear-gradient(180deg, rgba(11, 20, 35, 0.92), rgba(7, 13, 24, 0.92));
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.server-item.disabled {
    opacity: 0.72;
}

.server-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.server-details {
    font-size: 0.9rem;
    line-height: 1.55;
}

.server-status {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid transparent;
}

.server-status.lobby {
    color: var(--green);
    background: rgba(124, 242, 191, 0.08);
    border-color: rgba(124, 242, 191, 0.28);
}

.server-status.playing {
    color: var(--orange);
    background: rgba(255, 179, 107, 0.08);
    border-color: rgba(255, 179, 107, 0.28);
}

.server-status.locked {
    color: var(--red);
    background: rgba(255, 107, 125, 0.08);
    border-color: rgba(255, 107, 125, 0.28);
}

.empty-state {
    padding: 28px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(113, 215, 255, 0.2);
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

.lobby-info {
    display: grid;
    gap: 16px;
}

.lobby-code-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.lobby-code-display label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.lobby-code-value {
    min-width: 180px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(113, 215, 255, 0.28);
    background: rgba(3, 9, 18, 0.86);
    color: var(--cyan);
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1.7rem;
    letter-spacing: 0.3em;
    text-align: center;
}

.copy-button {
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px solid rgba(113, 215, 255, 0.28);
    background: rgba(8, 16, 30, 0.92);
    color: var(--text);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
}

.lobby-meta-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lock-control {
    display: flex;
    align-items: center;
}

.lock-control.hidden {
    display: none;
}

.lock-control label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    cursor: pointer;
}

.lock-control input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cyan);
}

.player-item {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(113, 215, 255, 0.15);
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.92), rgba(6, 12, 22, 0.92));
    display: grid;
    gap: 10px;
}

.player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.player-name {
    font-size: 1rem;
    font-weight: 600;
}

.player-presence,
.player-survivor {
    color: var(--muted);
    font-size: 0.9rem;
}

.host-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 179, 107, 0.12);
    border: 1px solid rgba(255, 179, 107, 0.28);
    color: var(--orange);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.survivor-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.survivor-option {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(113, 215, 255, 0.18);
    background: rgba(8, 16, 30, 0.9);
    cursor: pointer;
}

.survivor-option.selected {
    border-color: rgba(124, 242, 191, 0.72);
    background: linear-gradient(180deg, rgba(14, 38, 33, 0.9), rgba(8, 18, 16, 0.94));
    box-shadow: 0 0 0 1px rgba(124, 242, 191, 0.22);
}

.survivor-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.survivor-desc {
    font-size: 0.88rem;
    line-height: 1.45;
}

.survivor-stats {
    margin-top: 10px;
    font-size: 0.78rem;
}

.game-settings {
    margin-top: 18px;
}

.setting-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
}

.setting-item {
    display: grid;
    gap: 10px;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

#game-screen {
    background: #0a0a0a;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    border: 2px solid var(--cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.26);
    background: #0a0a0a;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
}

.game-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}

.game-controls .copy-button {
    pointer-events: auto;
    font-size: 0.82rem;
}

#game-ui {
    position: absolute;
    inset: 20px;
    display: grid;
    grid-template-columns: minmax(300px, 1.08fr) minmax(260px, 0.84fr) minmax(260px, 0.92fr);
    gap: 18px;
    align-items: start;
    pointer-events: none;
    z-index: 4;
}

.hud-column {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.hud-panel {
    position: relative;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(113, 215, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(8, 14, 25, 0.94), rgba(4, 8, 15, 0.82)),
        linear-gradient(135deg, rgba(113, 215, 255, 0.06), transparent 60%);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(113, 215, 255, 0.04);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: hudPanelRise 0.5s ease both;
}

.hud-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(113, 215, 255, 0.08) 38%, transparent 64%);
    transform: translateX(-120%);
    animation: hudSweep 7s linear infinite;
    pointer-events: none;
}

.hud-panel::after {
    content: "";
    position: absolute;
    inset: auto -12% -24px -12%;
    height: 38px;
    background: radial-gradient(circle, rgba(113, 215, 255, 0.14), transparent 65%);
    opacity: 0.6;
    pointer-events: none;
}

.hud-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.hud-kicker {
    color: var(--cyan);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hud-panel-tag {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(113, 215, 255, 0.18);
    background: rgba(113, 215, 255, 0.08);
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hud-panel-copy {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.health-bar {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(113, 215, 255, 0.34);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(8, 15, 26, 0.96));
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 22px rgba(113, 215, 255, 0.12);
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff3d4f 0%, #ff934f 45%, #57f287 100%);
    transition: width 0.3s;
    width: 100%;
    box-shadow: 0 0 18px rgba(255, 64, 96, 0.45);
}

#health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.hud-stats {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.hud-stat {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(113, 215, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.35;
}

.hud-stat span {
    color: var(--text);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(113, 215, 255, 0.18);
}

.hud-stat-gold {
    border-color: rgba(255, 179, 107, 0.28);
    background: linear-gradient(180deg, rgba(255, 179, 107, 0.08), rgba(255, 255, 255, 0.03));
    color: #ffd8a8;
    overflow: hidden;
}

.hud-stat-gold span {
    min-width: 3ch;
    text-align: right;
    color: #ffe2bf;
    font-size: 1.03rem;
    letter-spacing: 0.1em;
}

.hud-stat-gold::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.16) 45%, transparent 68%);
    transform: translateX(-120%);
    animation: goldShimmer 4.5s linear infinite;
    pointer-events: none;
}

.hud-stat-interact {
    border-color: rgba(124, 242, 191, 0.22);
}

.teleporter-status {
    color: var(--cyan);
    font-weight: 700;
    text-shadow: 0 0 12px rgba(113, 215, 255, 0.5);
    margin-top: 2px;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
}

#player-list-mini {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.mini-player {
    position: relative;
    padding: 12px 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(113, 215, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(10, 18, 31, 0.95), rgba(6, 11, 19, 0.92));
    color: var(--cyan);
    font-size: 0.92rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mini-player::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(113, 215, 255, 0.16), rgba(124, 242, 191, 0.22), rgba(255, 179, 107, 0.18));
    box-shadow: 0 0 14px rgba(113, 215, 255, 0.16);
}

.mini-player::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 8px;
    width: 58%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(113, 215, 255, 0.8), rgba(124, 242, 191, 0.85));
    box-shadow: 0 0 12px rgba(113, 215, 255, 0.34);
    animation: rosterPulse 2.8s ease-in-out infinite;
}

.mini-player:last-child {
    margin-bottom: 0;
}

.mini-player .player-name {
    color: #ffffff;
    font-weight: 700;
}

.mini-player .player-health,
.mini-player .player-hp,
.mini-player .player-stats {
    color: var(--muted);
}

.items-display {
    position: relative;
    bottom: auto;
    right: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.items-display h4 {
    color: var(--cyan);
    margin: 0 0 12px;
    text-align: left;
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#items-list {
    display: grid;
    gap: 8px;
    overflow-y: auto;
    max-height: 268px;
}

.item-entry {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(113, 215, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.item-entry:last-child {
    margin-bottom: 0;
}

.item-name {
    color: var(--cyan);
    font-weight: 700;
}

.item-stacks {
    color: #ffe66d;
    font-weight: bold;
}

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

@keyframes hudSweep {
    0% {
        transform: translateX(-120%);
    }
    55% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes goldShimmer {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes rosterPulse {
    0%,
    100% {
        opacity: 0.7;
        transform: scaleX(0.92);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.hidden {
    display: none !important;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(113, 215, 255, 0.4);
    border-radius: 999px;
}

@media (max-width: 1080px) {
    .main-menu-layout,
    .browser-grid,
    .lobby-grid,
    .settings-grid,
    .operations-grid {
        grid-template-columns: 1fr;
    }

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

    .settings-summary-pill {
        justify-self: start;
    }

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

    .friends-drawer-shell {
        width: min(100vw - 18px, 560px);
    }
}

@media (max-width: 760px) {
    .screen.active {
        padding: 16px;
    }

    .menu-container {
        width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
        padding: 20px;
        border-radius: 18px;
    }

    .auth-shell {
        top: 18px;
        left: 16px;
        right: 16px;
        width: auto;
    }

    .friends-drawer-shell {
        top: 18px;
        left: 16px;
        right: 16px;
        width: auto;
        padding: 0;
    }

    .friends-drawer-inner {
        width: 100%;
        margin-top: 0;
        max-height: calc(100vh - 36px);
    }

    .drawer-rail {
        display: none;
    }

    .lobby-meta-grid,
    .survivor-options {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        gap: 14px;
    }

    .hero-panel {
        min-height: auto;
        padding: 24px;
    }

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

    .menu-console-strip {
        grid-template-columns: 1fr;
    }

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

    .pause-shell-grid,
    .pause-shell-footer {
        grid-template-columns: 1fr;
    }

    .drawer-status-row {
        grid-template-columns: 1fr;
    }

    .settings-card {
        padding: 16px;
        border-radius: 18px;
    }

    #keybinds-panel > div:nth-of-type(1) > div {
        grid-template-columns: 1fr !important;
    }

    #keybinds-panel .keybind-rebind-btn,
    #keybinds-panel #keybind-reset-btn {
        width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch;
    }

    .code-input-group,
    .lobby-code-display,
    .setting-row,
    .section-heading,
    .panel-header,
    .server-list-header {
        display: grid;
        gap: 12px;
    }

    .friend-search-row,
    .social-grid,
    .social-entry {
        grid-template-columns: 1fr;
    }

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

    .game-title {
        letter-spacing: 0.08em;
    }

    #game-ui {
        inset: 14px;
        grid-template-columns: 1fr;
    }

    #items-list {
        max-height: 200px;
    }
}

@media (min-width: 761px) and (max-width: 1200px) {
    #game-ui {
        grid-template-columns: minmax(280px, 1fr) minmax(250px, 0.92fr);
    }

    .hud-column-inventory {
        grid-column: 1 / -1;
    }
}
