/* Welcome landing page — standalone before connecting to the game.
   Visual design from docs/design/Welcome screen.png. The spaceship/planet
   artwork is used as a background image; all UI elements are real HTML. */

:root {
    --welcome-bg-deep: #02060f;
    --welcome-bg-mid: #061226;
    --welcome-bg-edge: #03070f;
    --welcome-accent: #6fc3ff;
    --welcome-accent-soft: #9fd6ff;
    --welcome-accent-dim: #2b6da3;
    --welcome-border: rgba(95, 170, 230, 0.45);
    --welcome-border-soft: rgba(95, 170, 230, 0.25);
    --welcome-text: #d6e8fb;
    --welcome-text-dim: #8fb3d4;
    --welcome-online: #28d96b;
    --welcome-offline: #ff4d5a;
    --welcome-disabled: #7f8b96;
    --welcome-disabled-dim: #65727e;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: var(--welcome-text);
    font-family: "Rajdhani", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.welcome-page {
    min-height: 100vh;
    display: flex;
}

/* Background scene: spaceships + planet artwork from design doc */
.welcome-scene {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 100vh;
    padding: 32px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    row-gap: 16px;
    background-color: var(--welcome-bg-deep);
    background-image:
        radial-gradient(ellipse at 18% 50%,
            rgba(2, 6, 15, 0.92) 0%,
            rgba(2, 6, 15, 0.78) 28%,
            rgba(2, 6, 15, 0.45) 45%,
            rgba(2, 6, 15, 0.0) 60%),
        url("assets/welcome/welcome-bg.png");
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-position: center, center;
    overflow: hidden;
}

.welcome-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.welcome-scene.video-unavailable .welcome-video {
    display: none;
}

/* Subtle starfield/vignette on edges */
.welcome-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 18% 50%,
            rgba(2, 6, 15, 0.92) 0%,
            rgba(2, 6, 15, 0.78) 28%,
            rgba(2, 6, 15, 0.45) 45%,
            rgba(2, 6, 15, 0.0) 60%),
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* === Top bar === */
.welcome-topbar {
    position: absolute;
    top: 32px;
    right: 48px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding: 4px 8px;
}

.welcome-topbar-status {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 77, 90, 0.5);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(8, 22, 42, 0.78), rgba(4, 12, 24, 0.82));
    box-shadow: 0 0 18px rgba(255, 77, 90, 0.08) inset;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.welcome-topbar-status.is-online {
    border-color: rgba(40, 217, 107, 0.5);
    box-shadow: 0 0 18px rgba(40, 217, 107, 0.08) inset;
}

.welcome-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--welcome-offline);
    box-shadow: 0 0 8px rgba(255, 77, 90, 0.85);
}

.welcome-topbar-status.is-online .welcome-status-dot {
    background: var(--welcome-online);
    box-shadow: 0 0 8px rgba(40, 217, 107, 0.85);
}

.welcome-status-label {
    color: var(--welcome-offline);
    font-weight: 600;
}

.welcome-topbar-status.is-online .welcome-status-label {
    color: var(--welcome-online);
}

.welcome-status-count {
    color: #ff9aa3;
    font-weight: 500;
}

.welcome-topbar-status.is-online .welcome-status-count {
    color: var(--welcome-text);
}

.welcome-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.welcome-icon-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--welcome-border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(8, 22, 42, 0.78), rgba(4, 12, 24, 0.82));
    color: var(--welcome-accent);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.welcome-icon-button svg { width: 22px; height: 22px; }

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

.welcome-icon-button-disabled {
    border-color: rgba(140, 156, 170, 0.26);
    background: linear-gradient(180deg, rgba(35, 43, 52, 0.54), rgba(16, 22, 30, 0.66));
    color: var(--welcome-disabled);
    cursor: not-allowed;
}

.welcome-icon-button-disabled:hover,
.welcome-icon-button-disabled:focus-visible {
    border-color: rgba(180, 194, 205, 0.45);
    color: var(--welcome-disabled);
    background: linear-gradient(180deg, rgba(48, 58, 68, 0.64), rgba(22, 30, 39, 0.76));
    box-shadow: 0 0 16px rgba(170, 190, 205, 0.08);
    outline: none;
    transform: none;
}

.welcome-music-icon-off,
.welcome-music-toggle.is-muted .welcome-music-icon-on {
    display: none;
}

.welcome-music-toggle.is-muted .welcome-music-icon-off {
    display: block;
}

.welcome-audio-panel {
    width: min(520px, 100%);
    min-width: 360px;
    height: 44px;
    display: grid;
    grid-template-columns: repeat(4, 30px) auto minmax(180px, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--welcome-border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(8, 22, 42, 0.78), rgba(4, 12, 24, 0.82));
    box-shadow: 0 0 18px rgba(80, 170, 240, 0.08) inset;
}

.welcome-audio-dock {
    position: relative;
    z-index: 5;
    grid-row: 3;
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 44px;
    pointer-events: none;
}

.welcome-audio-dock[hidden] {
    display: none;
}

.welcome-audio-dock .welcome-audio-panel {
    pointer-events: auto;
}

.welcome-audio-button {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(95, 170, 230, 0.35);
    border-radius: 6px;
    background: rgba(6, 18, 34, 0.62);
    color: var(--welcome-accent);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.welcome-audio-button:hover,
.welcome-audio-button:focus-visible {
    outline: none;
    border-color: var(--welcome-accent);
    color: var(--welcome-accent-soft);
    background: rgba(12, 36, 66, 0.82);
}

.welcome-audio-button svg {
    width: 16px;
    height: 16px;
}

.welcome-audio-volume-group {
    position: relative;
    display: flex;
    align-items: center;
}

.welcome-audio-volume-group::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 40px;
    height: 10px;
    transform: translateX(-50%);
}

.welcome-audio-volume-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 2px);
    transform: translateX(-50%);
    width: 40px;
    height: 0;
    opacity: 0;
    pointer-events: none;
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 5px;
    padding: 8px 4px;
    overflow: hidden;
    border: 1px solid var(--welcome-border);
    border-radius: 6px;
    background: rgba(6, 18, 34, 0.92);
    box-shadow: 0 0 16px rgba(80, 170, 240, 0.12);
    transition: height 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.welcome-audio-volume-group:hover .welcome-audio-volume-popover,
.welcome-audio-volume-group:focus-within .welcome-audio-volume-popover {
    height: 148px;
    opacity: 1;
    pointer-events: auto;
    border-color: var(--welcome-border);
}

.welcome-audio-volume-icon {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    color: var(--welcome-accent-soft);
}

.welcome-audio-volume-slider-wrap {
    position: relative;
    width: 18px;
    height: 84px;
    display: grid;
    place-items: center;
}

.welcome-audio-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    left: calc(50% - 2px);
    top: 50%;
    width: 84px;
    min-width: 84px;
    height: 18px;
    margin: 0;
    background: transparent;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
    cursor: pointer;
}

.welcome-audio-volume-slider:focus-visible {
    outline: none;
}

.welcome-audio-volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(95, 170, 230, 0.22);
    border: 1px solid var(--welcome-border);
}

.welcome-audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border: 1px solid rgba(215, 242, 255, 0.8);
    border-radius: 50%;
    background: #d7f2ff;
    box-shadow: 0 0 8px rgba(111, 195, 255, 0.45);
    cursor: pointer;
}

.welcome-audio-volume-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    border: 1px solid var(--welcome-border);
    border-radius: 999px;
    background: rgba(95, 170, 230, 0.22);
}

.welcome-audio-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(215, 242, 255, 0.8);
    border-radius: 50%;
    background: #d7f2ff;
    box-shadow: 0 0 8px rgba(111, 195, 255, 0.45);
    cursor: pointer;
}

.welcome-music-icon-off-cross {
    color: #ff4d5a;
}

.welcome-audio-button .welcome-play-icon,
.welcome-audio-button.is-paused .welcome-pause-icon {
    display: none;
}

.welcome-audio-button.is-paused .welcome-play-icon {
    display: block;
}

.welcome-audio-meta {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-audio-track-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
}

.welcome-audio-track-mask {
    display: block;
    min-width: 0;
    overflow: hidden;
}

.welcome-audio-track {
    display: inline-block;
    max-width: 100%;
    padding-right: 28px;
    overflow: visible;
    white-space: nowrap;
    text-overflow: clip;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--welcome-text);
    transform: translateX(0);
}

.welcome-audio-counter {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--welcome-accent);
    white-space: nowrap;
}

.welcome-audio-time {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--welcome-text-dim);
    white-space: nowrap;
}

.welcome-audio-track.is-overflowing {
    max-width: none;
    animation: welcome-track-scroll 10s linear infinite;
}

.welcome-audio-track-mask:hover .welcome-audio-track.is-overflowing {
    animation-play-state: paused;
}

@keyframes welcome-track-scroll {
    0%, 14% { transform: translateX(0); }
    50%, 64% { transform: translateX(var(--welcome-track-scroll-distance, -40px)); }
    100% { transform: translateX(0); }
}

.welcome-audio-progress {
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(95, 170, 230, 0.22);
    cursor: pointer;
}

.welcome-audio-progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--welcome-accent), #d7f2ff);
    box-shadow: 0 0 8px rgba(111, 195, 255, 0.55);
}

.welcome-icon-button:hover,
.welcome-icon-button:focus-visible {
    border-color: var(--welcome-accent);
    color: var(--welcome-accent-soft);
    background: linear-gradient(180deg, rgba(14, 38, 70, 0.88), rgba(6, 18, 36, 0.9));
    outline: none;
    transform: translateY(-1px);
}

/* === Main content (brand + welcome panel) === */
.welcome-main {
    position: relative;
    grid-row: 1 / 3;
    grid-column: 1 / -1;
    justify-self: start;
    width: min(720px, 100%);
    z-index: 2;
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 34px;
    padding: 0;
    min-height: 0;
    max-height: 100%;
    overflow: visible;
}

.welcome-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-left: 4px;
}

.welcome-brand-emblem {
    width: 128px;
    height: 128px;
    color: var(--welcome-accent);
    filter: drop-shadow(0 0 12px rgba(80, 170, 240, 0.45));
}

.welcome-brand-emblem img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.welcome-brand-text { line-height: 1; }

.welcome-brand-title {
    margin: 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #eaf4ff;
    background: linear-gradient(180deg, #ffffff 0%, #6fc3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px rgba(80, 170, 240, 0.25);
}

.welcome-brand-subtitle {
    margin: 6px 0 0 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.42em;
    color: var(--welcome-accent);
}

/* Welcome panel */
.welcome-panel {
    position: relative;
    align-self: start;
    overflow: visible;
    padding: 28px 32px;
    border: 1px solid var(--welcome-border);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(6, 16, 32, 0.78), rgba(2, 8, 18, 0.85));
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.45), 0 0 1px rgba(80, 170, 240, 0.4) inset;
}

/* Corner notches like the design */
.welcome-panel::before,
.welcome-panel::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid var(--welcome-accent);
    pointer-events: none;
}
.welcome-panel::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 10px;
}
.welcome-panel::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 10px;
}

.welcome-heading {
    margin: 0 0 14px 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #eaf4ff;
}

.welcome-tagline {
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.015em;
    color: #c7e6f7;
    text-shadow: 0 0 10px rgba(75, 180, 255, 0.16);
}

/* Action buttons */
.welcome-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.welcome-action {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(6, 18, 34, 0.6), rgba(3, 10, 20, 0.7));
    color: var(--welcome-text);
    text-align: left;
    cursor: pointer;
    font-family: "Rajdhani", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.welcome-action:hover,
.welcome-action:focus-visible {
    outline: none;
    border-color: var(--welcome-accent);
    background: linear-gradient(180deg, rgba(12, 36, 66, 0.78), rgba(5, 16, 30, 0.85));
    transform: translateX(2px);
    box-shadow: 0 0 18px rgba(80, 170, 240, 0.18);
}

.welcome-action.is-active {
    border-color: var(--welcome-accent);
    background: linear-gradient(180deg, rgba(15, 54, 92, 0.84), rgba(5, 18, 34, 0.9));
    box-shadow: 0 0 20px rgba(45, 178, 255, 0.3), 0 0 18px rgba(45, 178, 255, 0.18) inset;
}

.welcome-action-unavailable {
    border-color: rgba(140, 156, 170, 0.26);
    background: linear-gradient(180deg, rgba(35, 43, 52, 0.54), rgba(16, 22, 30, 0.66));
    color: var(--welcome-disabled);
}

.welcome-action-unavailable .welcome-action-title,
.welcome-action-unavailable .welcome-action-icon,
.welcome-action-unavailable .welcome-action-chevron {
    color: var(--welcome-disabled);
}

.welcome-action-unavailable .welcome-action-description {
    color: var(--welcome-disabled-dim);
}

.welcome-action-unavailable:hover,
.welcome-action-unavailable:focus-visible {
    border-color: rgba(180, 194, 205, 0.45);
    background: linear-gradient(180deg, rgba(48, 58, 68, 0.64), rgba(22, 30, 39, 0.76));
    box-shadow: 0 0 16px rgba(170, 190, 205, 0.1);
}

.welcome-action-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-action-title {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--welcome-accent);
}

.welcome-action-description {
    font-size: 17px;
    font-weight: 500;
    color: var(--welcome-text-dim);
    line-height: 1.25;
}

.welcome-action-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--welcome-accent);
}

.welcome-action-icon svg { width: 100%; height: 100%; }

.welcome-action-chevron {
    font-size: 22px;
    font-weight: 700;
    color: var(--welcome-accent);
    letter-spacing: -1px;
    padding-right: 6px;
}

/* News panel */
.welcome-news-panel {
    position: absolute;
    z-index: 4;
    top: 108px;
    right: 48px;
    bottom: 200px;
    width: min(760px, calc(100vw - 864px));
    min-width: 520px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--welcome-border);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(4, 14, 28, 0.94), rgba(2, 8, 18, 0.94));
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.5), 0 0 26px rgba(45, 178, 255, 0.16) inset;
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.welcome-news-panel::before,
.welcome-news-panel::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.welcome-news-panel::before {
    top: -1px;
    left: -1px;
    border-top: 1px solid var(--welcome-accent);
    border-left: 1px solid var(--welcome-accent);
    border-top-left-radius: 10px;
}

.welcome-news-panel::after {
    bottom: -1px;
    right: -1px;
    border-right: 1px solid var(--welcome-accent);
    border-bottom: 1px solid var(--welcome-accent);
    border-bottom-right-radius: 10px;
}

.welcome-news-panel.is-open {
    opacity: 1;
    transform: translateX(0);
}

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

.welcome-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.welcome-news-title {
    margin: 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #eaf4ff;
}

.welcome-news-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--welcome-accent);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.welcome-news-close:hover,
.welcome-news-close:focus-visible {
    color: var(--welcome-accent-soft);
    outline: none;
    transform: scale(1.04);
}

.welcome-news-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
}

.welcome-news-tab {
    min-width: 0;
    height: 36px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 2px;
    background: rgba(5, 18, 34, 0.72);
    color: var(--welcome-text-dim);
    cursor: pointer;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.05em;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.welcome-news-tab:hover,
.welcome-news-tab:focus-visible,
.welcome-news-tab.is-active {
    border-color: var(--welcome-accent);
    background: linear-gradient(180deg, rgba(18, 83, 128, 0.72), rgba(4, 28, 52, 0.88));
    color: var(--welcome-accent-soft);
    box-shadow: 0 0 14px rgba(45, 178, 255, 0.22) inset;
    outline: none;
}

.welcome-news-list {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 0 8px 2px 0;
    scrollbar-gutter: stable;
    scrollbar-color: var(--welcome-accent) rgba(95, 170, 230, 0.12);
}

.welcome-news-list::-webkit-scrollbar { width: 8px; }
.welcome-news-list::-webkit-scrollbar-track { background: rgba(95, 170, 230, 0.12); }
.welcome-news-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--welcome-accent);
}

.welcome-news-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    min-height: 108px;
    padding: 16px 18px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(6, 18, 34, 0.72), rgba(3, 10, 20, 0.82));
    box-shadow: 0 0 18px rgba(45, 178, 255, 0.08) inset;
}

.welcome-news-item[role="button"] {
    cursor: pointer;
}

.welcome-news-item[role="button"]:hover,
.welcome-news-item[role="button"]:focus-visible {
    border-color: var(--welcome-accent);
    box-shadow:
        0 0 20px rgba(45, 178, 255, 0.16) inset,
        0 0 18px rgba(45, 178, 255, 0.16);
    outline: none;
}

.welcome-news-item--release {
    grid-template-columns: 54px minmax(0, 1fr);
    background:
        linear-gradient(135deg, rgba(47, 228, 138, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(6, 18, 34, 0.82), rgba(3, 10, 20, 0.9));
    box-shadow:
        0 0 24px rgba(47, 228, 138, 0.12) inset,
        0 0 18px rgba(45, 178, 255, 0.08) inset;
}

.welcome-news-item[hidden] {
    display: none;
}

.welcome-news-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    color: var(--welcome-accent);
    filter: drop-shadow(0 0 8px rgba(45, 178, 255, 0.35));
}

.welcome-news-icon svg {
    width: 100%;
    height: 100%;
}

.welcome-news-icon--faction { color: #9d66ff; }
.welcome-news-icon--war { color: #ff5c65; }
.welcome-news-icon--events { color: #2fe48a; }
.welcome-news-icon--trade { color: #f3c74d; }

.welcome-news-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.welcome-news-copy strong {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--welcome-accent);
    overflow-wrap: anywhere;
}

.welcome-news-copy span {
    font-size: 15px;
    line-height: 1.32;
    color: #c7e6f7;
    overflow-wrap: anywhere;
}

.welcome-news-item--release .welcome-news-copy strong {
    color: #8fffc1;
}

.welcome-news-item--release .welcome-news-copy em {
    color: var(--welcome-accent);
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    font-size: 13px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.welcome-news-item--release .welcome-news-time {
    grid-column: 2;
    justify-self: start;
    padding-top: 0;
}

.welcome-news-time {
    align-self: start;
    padding-top: 3px;
    color: var(--welcome-accent);
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    font-size: 13px;
    white-space: nowrap;
}

.welcome-news-panel.is-detail-open .welcome-news-tabs,
.welcome-news-panel.is-detail-open .welcome-news-list {
    display: none;
}

.welcome-news-panel.is-detail-open {
    grid-template-rows: auto minmax(0, 1fr);
}

.welcome-release-detail {
    min-height: 0;
    overflow-y: auto;
    padding: 0 8px 2px 0;
    scrollbar-gutter: stable;
    color: #c7e6f7;
}

.welcome-release-detail[hidden] {
    display: none;
}

.welcome-release-back {
    height: 34px;
    margin-bottom: 14px;
    padding: 0 13px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 3px;
    background: rgba(5, 18, 34, 0.72);
    color: var(--welcome-accent-soft);
    cursor: pointer;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.welcome-release-back:hover,
.welcome-release-back:focus-visible {
    border-color: var(--welcome-accent);
    color: var(--welcome-accent);
    outline: none;
}

.welcome-release-kicker {
    color: #8fffc1;
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-release-detail h3 {
    margin: 6px 0 14px;
    color: var(--welcome-accent);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.welcome-release-detail p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.38;
}

.welcome-universe-panel {
    gap: 14px;
    display: flex;
    flex-direction: column;
}

.welcome-universe-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 6px;
    background: rgba(5, 18, 34, 0.58);
    color: #c7e6f7;
    font-size: 16px;
}

.welcome-universe-summary-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--welcome-online);
    box-shadow: 0 0 8px rgba(40, 217, 107, 0.85);
}

.welcome-universe-list {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 0 8px 2px 0;
    scrollbar-color: var(--welcome-accent) rgba(95, 170, 230, 0.12);
}

.welcome-universe-list::-webkit-scrollbar { width: 8px; }
.welcome-universe-list::-webkit-scrollbar-track { background: rgba(95, 170, 230, 0.12); }
.welcome-universe-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--welcome-accent);
}

.welcome-universe-item {
    width: 100%;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 104px;
    padding: 16px 18px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(6, 18, 34, 0.72), rgba(3, 10, 20, 0.82));
    color: var(--welcome-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.welcome-universe-item:hover,
.welcome-universe-item:focus-visible,
.welcome-universe-item.is-selected {
    outline: none;
    border-color: var(--welcome-accent);
    background: linear-gradient(180deg, rgba(12, 42, 72, 0.82), rgba(4, 16, 31, 0.9));
    box-shadow: 0 0 18px rgba(45, 178, 255, 0.2), 0 0 18px rgba(45, 178, 255, 0.12) inset;
}

.welcome-universe-item:hover,
.welcome-universe-item:focus-visible {
    transform: translateX(2px);
}

.welcome-universe-item.is-offline {
    border-color: rgba(140, 156, 170, 0.24);
    background: linear-gradient(180deg, rgba(35, 43, 52, 0.5), rgba(16, 22, 30, 0.66));
    color: var(--welcome-disabled);
    cursor: not-allowed;
}

.welcome-universe-item.is-offline:hover,
.welcome-universe-item.is-offline:focus-visible {
    border-color: rgba(180, 194, 205, 0.42);
    background: linear-gradient(180deg, rgba(48, 58, 68, 0.58), rgba(22, 30, 39, 0.74));
    box-shadow: 0 0 16px rgba(170, 190, 205, 0.08);
    transform: none;
}

.welcome-universe-item.is-offline .welcome-universe-map,
.welcome-universe-item.is-offline .welcome-universe-copy strong {
    color: var(--welcome-disabled);
}

.welcome-universe-item.is-offline .welcome-universe-copy span {
    color: var(--welcome-disabled-dim);
}

.welcome-universe-item.is-maintenance {
    border-color: rgba(255, 193, 91, 0.55);
    background: linear-gradient(180deg, rgba(58, 39, 12, 0.68), rgba(23, 17, 9, 0.82));
}

.welcome-universe-item.is-maintenance:hover,
.welcome-universe-item.is-maintenance:focus-visible {
    border-color: rgba(255, 210, 118, 0.72);
    box-shadow: 0 0 18px rgba(255, 193, 91, 0.18), 0 0 18px rgba(255, 193, 91, 0.1) inset;
}

.welcome-universe-item.is-paused {
    border-color: rgba(126, 207, 255, 0.42);
    background: linear-gradient(180deg, rgba(10, 39, 61, 0.72), rgba(4, 19, 34, 0.86));
}

.welcome-universe-map {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    color: var(--welcome-accent);
    filter: drop-shadow(0 0 8px rgba(45, 178, 255, 0.35));
}

.welcome-universe-map svg {
    width: 100%;
    height: 100%;
}

.welcome-universe-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.welcome-universe-copy strong {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--welcome-accent);
}

.welcome-universe-copy span {
    color: #c7e6f7;
    font-size: 16px;
    line-height: 1.28;
}

.welcome-universe-meta {
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    color: var(--welcome-text-dim);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 11px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.welcome-universe-status {
    color: var(--welcome-online);
}

.welcome-universe-status--offline {
    color: var(--welcome-offline);
}

.welcome-universe-status--maintenance {
    color: #ffc15b;
}

.welcome-universe-status--paused {
    color: #7ecfff;
}

.welcome-universe-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 8px;
    background: rgba(4, 14, 27, 0.7);
}

.welcome-universe-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    text-transform: uppercase;
}

.welcome-universe-details-header h3 {
    margin: 0;
    color: var(--welcome-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.welcome-universe-details-header span {
    color: var(--welcome-text-dim);
    font-size: 11px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.welcome-universe-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.welcome-universe-detail-grid div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(111, 195, 255, 0.16);
    border-radius: 6px;
    background: rgba(6, 22, 40, 0.72);
}

.welcome-universe-detail-grid dt {
    margin: 0 0 3px;
    color: var(--welcome-text-dim);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-universe-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #eaf4ff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.welcome-universe-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 2px;
    color: var(--welcome-text-dim);
    font-size: 15px;
}

.welcome-universe-connect {
    min-width: 132px;
    height: 40px;
    border: 1px solid rgba(111, 195, 255, 0.7);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(26, 94, 160, 0.95), rgba(10, 54, 112, 0.95));
    color: #eaf4ff;
    cursor: pointer;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-universe-connect:hover,
.welcome-universe-connect:focus-visible {
    outline: none;
    border-color: var(--welcome-accent-soft);
    box-shadow: 0 0 18px rgba(111, 195, 255, 0.24);
}

.welcome-universe-connect:disabled,
.welcome-universe-connect[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* === Faction step (shown when isNewProfile) === */
.welcome-universe-panel.faction-step-active .welcome-universe-summary,
.welcome-universe-panel.faction-step-active .welcome-universe-list,
.welcome-universe-panel.faction-step-active .welcome-universe-details,
.welcome-universe-panel.faction-step-active .welcome-universe-footer {
    display: none;
}

.welcome-faction-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.welcome-faction-step[hidden] {
    display: none;
}

.welcome-faction-step-copy {
    margin: 0;
    font-size: 15px;
    color: #a8c8e0;
    line-height: 1.4;
}

.welcome-faction-step-copy strong {
    color: #eaf4ff;
    font-weight: 600;
}

.welcome-faction-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 4px;
    scrollbar-color: var(--welcome-accent) rgba(95, 170, 230, 0.12);
}

.welcome-faction-list::-webkit-scrollbar { width: 6px; }
.welcome-faction-list::-webkit-scrollbar-track { background: rgba(95, 170, 230, 0.1); }
.welcome-faction-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--welcome-accent);
}

.welcome-faction-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 13px;
    border: 1px solid rgba(95, 170, 230, 0.2);
    border-radius: 6px;
    background: rgba(4, 12, 26, 0.5);
    color: var(--welcome-text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.welcome-faction-item:hover,
.welcome-faction-item:focus-visible {
    outline: none;
    border-color: rgba(111, 195, 255, 0.46);
    background: rgba(8, 22, 44, 0.72);
}

.welcome-faction-item.is-selected {
    border-color: var(--welcome-accent);
    background: rgba(14, 36, 66, 0.8);
    box-shadow: 0 0 10px rgba(111, 195, 255, 0.14);
}

.welcome-faction-name {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #eaf4ff;
}

.welcome-faction-bonus {
    font-family: "Rajdhani", sans-serif;
    font-size: 12px;
    color: #7dc8f0;
}

.welcome-faction-step-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    padding-top: 4px;
    flex-shrink: 0;
}

/* Auth hint label suffix */
.welcome-auth-hint {
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--welcome-text-dim);
    font-family: "Rajdhani", sans-serif;
    font-weight: 400;
}

.welcome-settings-panel {
    gap: 14px;
}

.welcome-settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-settings-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(6, 18, 34, 0.72), rgba(3, 10, 20, 0.82));
    cursor: pointer;
}

.welcome-settings-option--slider {
    cursor: default;
}

.welcome-settings-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-settings-copy strong {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--welcome-accent);
}

.welcome-settings-copy span {
    color: #c7e6f7;
    font-size: 16px;
    line-height: 1.28;
}

.welcome-settings-switch {
    position: relative;
    width: 58px;
    height: 30px;
    flex: 0 0 auto;
}

.welcome-settings-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.welcome-settings-switch span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(95, 170, 230, 0.42);
    border-radius: 999px;
    background: rgba(6, 18, 34, 0.72);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.welcome-settings-switch span::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--welcome-text-dim);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.welcome-settings-switch input:checked + span {
    border-color: var(--welcome-accent);
    background: rgba(18, 83, 128, 0.72);
    box-shadow: 0 0 14px rgba(45, 178, 255, 0.18) inset;
}

.welcome-settings-switch input:checked + span::before {
    transform: translateX(28px);
    background: var(--welcome-accent);
    box-shadow: 0 0 10px rgba(111, 195, 255, 0.65);
}

.welcome-settings-option:focus-within {
    border-color: var(--welcome-accent);
    box-shadow: 0 0 18px rgba(45, 178, 255, 0.16);
}

.welcome-settings-slider-group {
    min-width: 220px;
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
}

.welcome-settings-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 18px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.welcome-settings-slider:focus-visible {
    outline: none;
}

.welcome-settings-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(95, 170, 230, 0.22);
    border: 1px solid var(--welcome-border);
}

.welcome-settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border: 1px solid rgba(215, 242, 255, 0.8);
    border-radius: 50%;
    background: #d7f2ff;
    box-shadow: 0 0 8px rgba(111, 195, 255, 0.45);
}

.welcome-settings-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    border: 1px solid var(--welcome-border);
    border-radius: 999px;
    background: rgba(95, 170, 230, 0.22);
}

.welcome-settings-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(215, 242, 255, 0.8);
    border-radius: 50%;
    background: #d7f2ff;
    box-shadow: 0 0 8px rgba(111, 195, 255, 0.45);
}

.welcome-settings-value {
    min-width: 42px;
    text-align: right;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--welcome-accent-soft);
}

.welcome-settings-mute {
    min-width: 76px;
    justify-self: end;
    padding: 9px 12px;
    border: 1px solid rgba(111, 195, 255, 0.32);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(10, 28, 52, 0.82), rgba(4, 14, 28, 0.88));
    color: var(--welcome-accent-soft);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.welcome-settings-mute:hover,
.welcome-settings-mute:focus-visible {
    outline: none;
    border-color: var(--welcome-accent);
    color: #eef8ff;
    background: linear-gradient(180deg, rgba(14, 40, 74, 0.92), rgba(6, 18, 36, 0.94));
    box-shadow: 0 0 18px rgba(45, 178, 255, 0.18);
}

.welcome-settings-mute[aria-pressed="true"] {
    border-color: rgba(255, 77, 90, 0.58);
    background: linear-gradient(180deg, rgba(94, 28, 42, 0.82), rgba(48, 15, 24, 0.88));
    color: #ffd5da;
}

.welcome-settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.welcome-settings-reset {
    min-width: 168px;
    padding: 12px 16px;
    border: 1px solid rgba(111, 195, 255, 0.42);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(10, 28, 52, 0.86), rgba(4, 14, 28, 0.9));
    color: var(--welcome-accent-soft);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.welcome-settings-reset:hover,
.welcome-settings-reset:focus-visible {
    outline: none;
    border-color: var(--welcome-accent);
    color: #eaf4ff;
    background: linear-gradient(180deg, rgba(14, 40, 74, 0.92), rgba(6, 18, 36, 0.94));
    box-shadow: 0 0 18px rgba(45, 178, 255, 0.18);
}

.welcome-auth-strip {
    grid-row: 3;
    grid-column: 1 / -1;
    justify-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding-left: 0;
    min-height: 44px;
    position: relative;
    z-index: 5;
}

.welcome-auth-strip .commander-setup-secondary,
.welcome-auth-strip .commander-setup-delete {
    height: 44px;
    min-height: 44px;
    margin-top: 0;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.welcome-auth-strip[hidden] {
    display: none;
}

.welcome-auth-strip [hidden] {
    display: none;
}

.welcome-commander-panel {
    gap: 14px;
}

.welcome-commander-copy {
    grid-column: 1 / -1;
    margin: 0 0 4px 0;
    color: #c7e6f7;
    font-size: 16px;
    line-height: 1.35;
}

.welcome-commander-form {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
}

.welcome-commander-identity {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 10px 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--welcome-border-soft);
}

.welcome-commander-section-title {
    grid-column: 1 / -1;
    margin: 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--welcome-accent);
}

.welcome-account-games {
    display: grid;
    gap: 10px;
    padding: 2px 0 6px;
}

.welcome-account-role {
    justify-self: start;
    padding: 8px 12px;
    border: 1px solid rgba(111, 195, 255, 0.28);
    border-radius: 999px;
    background: rgba(6, 18, 34, 0.72);
    color: var(--welcome-text-dim);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-account-role.is-admin {
    border-color: rgba(255, 193, 91, 0.58);
    background: rgba(58, 39, 12, 0.55);
    color: #ffc15b;
}

.welcome-account-admin-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 193, 91, 0.5);
    border-radius: 999px;
    background: rgba(58, 39, 12, 0.42);
    color: #ffd991;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.welcome-account-admin-link[hidden] {
    display: none;
}

.welcome-google-login {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-self: start;
}

.welcome-google-login[hidden] {
    display: none;
}

.welcome-account-games-empty {
    margin: 0;
    color: var(--welcome-text-dim);
    font-size: 14px;
    line-height: 1.4;
}

.welcome-account-games-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.welcome-account-games-list[hidden] {
    display: none;
}

.welcome-account-games-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(111, 195, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(8, 24, 44, 0.7), rgba(4, 12, 24, 0.82));
}

.welcome-account-games-name {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #eef7ff;
}

.welcome-account-games-state {
    color: var(--welcome-accent-soft);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-account-games-stats {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--welcome-text-dim);
    font-size: 13px;
}

.welcome-account-games-leave {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: start;
    padding: 8px 10px;
    min-width: 82px;
    font-size: 11px;
}

.welcome-commander-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 14px;
}

.welcome-commander-picker {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
}

.welcome-commander-factions {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-color: var(--welcome-accent) rgba(95, 170, 230, 0.12);
}

.welcome-commander-factions::-webkit-scrollbar { width: 8px; }
.welcome-commander-factions::-webkit-scrollbar-track { background: rgba(95, 170, 230, 0.12); }
.welcome-commander-factions::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--welcome-accent);
}

.welcome-commander-faction {
    min-width: 0;
    min-height: 132px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(6, 18, 34, 0.68), rgba(3, 10, 20, 0.78));
    color: var(--welcome-text-dim);
    cursor: pointer;
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.welcome-commander-faction:hover,
.welcome-commander-faction:focus-visible,
.welcome-commander-faction.is-selected {
    outline: none;
    border-color: var(--welcome-accent);
    background: linear-gradient(180deg, rgba(12, 42, 72, 0.82), rgba(4, 16, 31, 0.9));
    color: var(--welcome-accent-soft);
    box-shadow: 0 0 18px rgba(45, 178, 255, 0.26), 0 0 18px rgba(45, 178, 255, 0.18) inset;
}

.welcome-commander-faction:hover,
.welcome-commander-faction:focus-visible {
    transform: translateY(-1px);
}

.welcome-commander-faction img {
    width: 100%;
    height: min(96px, 100%);
    min-height: 0;
    flex: 1 1 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(111, 195, 255, 0.2));
}

.welcome-commander-faction span {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.welcome-commander-preview {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 16px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--welcome-border-soft);
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 88%, rgba(45, 178, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(4, 15, 29, 0.88), rgba(2, 8, 17, 0.92));
    scrollbar-color: var(--welcome-accent) rgba(95, 170, 230, 0.12);
}

.welcome-commander-preview::-webkit-scrollbar { width: 8px; }
.welcome-commander-preview::-webkit-scrollbar-track { background: rgba(95, 170, 230, 0.12); }
.welcome-commander-preview::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--welcome-accent);
}

.commander-faction-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--welcome-border-soft);
    color: #66c7ff;
}

.commander-faction-panel-header svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.commander-faction-panel-header h3 {
    margin: 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.commander-faction-hero {
    display: block;
}

.commander-faction-heading {
    min-width: 0;
}

.commander-faction-summary {
    margin: 8px 0 0;
    color: #78d9ff;
    font-size: 20px;
    line-height: 1.28;
}

.commander-faction-dossier {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) minmax(190px, 0.85fr);
    gap: 22px;
}

.commander-faction-story {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.commander-faction-art {
    min-height: 210px;
    border: 1px solid var(--welcome-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(5, 14, 27, 0.12), rgba(2, 8, 17, 0.12)),
        url("assets/welcome/welcome-bg.png") center / cover no-repeat;
    box-shadow:
        0 0 0 1px rgba(15, 114, 181, 0.34) inset,
        0 0 22px rgba(45, 178, 255, 0.12);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.commander-faction-stats {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 18px;
    padding-top: 10px;
}

.commander-faction-stat-block {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(95, 170, 230, 0.18);
}

.commander-faction-stat-block:last-child {
    border-bottom: 0;
}

.commander-faction-stat-block h4 {
    margin: 0 0 10px;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9be858;
}

.commander-faction-stat-block-weakness h4 {
    color: #ff7743;
}

.commander-faction-stat-block ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: #d8f2ff;
    font-size: 16px;
    line-height: 1.35;
}

.commander-faction-stat-block li::marker {
    color: #9be858;
}

.commander-faction-stat-block-weakness li::marker {
    color: #ff7743;
}

.welcome-commander-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.welcome-commander-actions .commander-setup-submit {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    font-size: 15px;
}

.commander-setup-secondary {
    min-width: 116px;
    padding: 12px 16px;
    border: 1px solid rgba(111, 195, 255, 0.32);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(10, 28, 52, 0.82), rgba(4, 14, 28, 0.88));
    color: var(--welcome-accent-soft);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.commander-setup-secondary:hover,
.commander-setup-secondary:focus-visible {
    outline: none;
    border-color: var(--welcome-accent);
    color: #eef8ff;
    background: linear-gradient(180deg, rgba(14, 40, 74, 0.92), rgba(6, 18, 36, 0.94));
    box-shadow: 0 0 18px rgba(45, 178, 255, 0.18);
}

/* === Commander setup === */
.commander-setup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(0, 5, 12, 0.72);
    backdrop-filter: blur(6px);
}

.commander-setup-overlay[hidden] {
    display: none;
}

.commander-setup-panel {
    position: relative;
    width: min(980px, 100%);
    max-height: min(820px, calc(100vh - 64px));
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--welcome-border);
    border-radius: 10px;
    background:
        radial-gradient(circle at 85% 12%, rgba(79, 195, 247, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(6, 16, 32, 0.96), rgba(2, 8, 18, 0.97));
    box-shadow:
        0 0 0 1px rgba(5, 20, 44, 0.95),
        0 20px 80px rgba(0, 0, 0, 0.72),
        inset 0 0 28px rgba(80, 170, 240, 0.08);
}

.commander-setup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--welcome-border);
    border-radius: 8px;
    background: rgba(4, 12, 24, 0.84);
    color: var(--welcome-accent);
    font: 600 24px/1 "Rajdhani", sans-serif;
    cursor: pointer;
}

.commander-setup-close:hover,
.commander-setup-close:focus-visible {
    outline: none;
    border-color: var(--welcome-accent);
    color: var(--welcome-accent-soft);
}

.commander-setup-header {
    max-width: 720px;
    margin-bottom: 22px;
}

.commander-setup-eyebrow,
.commander-faction-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--welcome-accent);
}

.commander-setup-title,
.commander-faction-name {
    margin: 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    color: #eaf4ff;
    letter-spacing: 0.05em;
}

.commander-setup-title {
    font-size: 30px;
}

.commander-setup-copy {
    margin: 10px 0 0 0;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.35;
    color: #c7e6f7;
}

.commander-setup-form {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
    gap: 18px;
}

.commander-setup-card {
    border: 1px solid var(--welcome-border-soft);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(6, 18, 34, 0.64), rgba(3, 10, 20, 0.72));
    box-shadow: inset 0 0 18px rgba(80, 170, 240, 0.06);
}

.commander-setup-card--form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.commander-setup-label {
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--welcome-accent);
}

.commander-setup-input,
.commander-setup-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(95, 170, 230, 0.4);
    border-radius: 6px;
    background: rgba(2, 8, 18, 0.8);
    color: var(--welcome-text);
    font: 500 17px/1.2 "Rajdhani", sans-serif;
}

.commander-setup-input:focus,
.commander-setup-select:focus {
    outline: none;
    border-color: var(--welcome-accent);
    box-shadow: 0 0 0 2px rgba(111, 195, 255, 0.18);
}

.commander-setup-submit {
    margin-top: 8px;
    padding: 13px 16px;
    border: 1px solid rgba(111, 195, 255, 0.7);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(26, 94, 160, 0.95), rgba(10, 54, 112, 0.95));
    color: #eaf4ff;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.commander-setup-submit:hover,
.commander-setup-submit:focus-visible {
    outline: none;
    border-color: var(--welcome-accent-soft);
    box-shadow: 0 0 18px rgba(111, 195, 255, 0.24);
}

.commander-setup-delete {
    margin-top: 8px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 77, 90, 0.58);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(94, 28, 42, 0.82), rgba(48, 15, 24, 0.88));
    color: #ffd5da;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.commander-setup-delete:hover,
.commander-setup-delete:focus-visible {
    outline: none;
    border-color: var(--welcome-offline);
    box-shadow: 0 0 18px rgba(255, 77, 90, 0.18);
}

.commander-setup-delete[hidden] {
    display: none;
}

.commander-setup-status {
    min-height: 20px;
    margin: 0;
    color: var(--welcome-accent-soft);
    font-size: 15px;
}

.commander-setup-status[data-tone="success"] {
    color: #82f4b0;
}

.commander-setup-status[data-tone="error"] {
    color: #ff9aa3;
}

.welcome-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 50% 45%, rgba(45, 178, 255, 0.18), transparent 34%),
        rgba(0, 5, 12, 0.82);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.welcome-loading-overlay.is-open {
    opacity: 1;
}

.welcome-loading-overlay[hidden] {
    display: none;
}

.welcome-loading-panel {
    width: min(560px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 34px 36px;
    border: 1px solid var(--welcome-border);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 0%, rgba(79, 195, 247, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(6, 16, 32, 0.96), rgba(2, 8, 18, 0.98));
    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.72),
        inset 0 0 28px rgba(80, 170, 240, 0.1);
    text-align: center;
}

.welcome-loading-orbit {
    position: relative;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(111, 195, 255, 0.32);
    border-radius: 50%;
}

.welcome-loading-orbit::before {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: var(--welcome-accent);
    box-shadow: 0 0 22px rgba(111, 195, 255, 0.7);
}

.welcome-loading-orbit span {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(111, 195, 255, 0.42);
    border-left-color: transparent;
    border-radius: 50%;
    animation: welcome-loading-spin 1.4s linear infinite;
}

.welcome-loading-orbit span:nth-child(2) {
    inset: 17px;
    animation-duration: 1.9s;
    animation-direction: reverse;
}

.welcome-loading-orbit span:nth-child(3) {
    inset: 26px;
    animation-duration: 1.1s;
}

@keyframes welcome-loading-spin {
    to { transform: rotate(360deg); }
}

.welcome-loading-eyebrow {
    margin: 4px 0 0 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--welcome-accent);
}

.welcome-loading-title {
    margin: 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #eaf4ff;
}

.welcome-loading-bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(95, 170, 230, 0.2);
}

.welcome-loading-bar span {
    display: block;
    width: 46%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--welcome-accent), #d7f2ff);
    animation: welcome-loading-progress 1.2s ease-in-out infinite;
}

@keyframes welcome-loading-progress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(230%); }
}

.welcome-loading-copy {
    margin: 0;
    color: #c7e6f7;
    font-size: 17px;
    line-height: 1.35;
}

.commander-setup-card--preview {
    display: grid;
    grid-template-columns: 190px 1fr;
    grid-template-areas:
        "image eyebrow"
        "image name"
        "image lore"
        "stats stats";
    gap: 10px 18px;
    padding: 18px;
}

.commander-faction-eyebrow { margin-bottom: 0; }
.commander-faction-name { font-size: 28px; }
.commander-faction-lore {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    color: var(--welcome-text);
}

.commander-faction-image-frame {
    align-self: start;
    aspect-ratio: 1 / 1;
    padding: 10px;
    border: 1px solid rgba(111, 195, 255, 0.45);
    border-radius: 8px;
    background: radial-gradient(circle at 50% 35%, rgba(48, 120, 220, 0.28), rgba(2, 8, 18, 0.86) 72%);
}

.commander-faction-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(111, 195, 255, 0.24));
}

.commander-setup-card--preview .commander-faction-stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 8px 0 0 0;
}

.commander-setup-card--preview .commander-faction-stats div {
    padding: 10px;
    border: 1px solid rgba(95, 170, 230, 0.24);
    border-radius: 6px;
    background: rgba(2, 8, 18, 0.54);
}

.commander-setup-card--preview .commander-faction-stats dt {
    margin: 0 0 4px 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--welcome-accent);
}

.commander-setup-card--preview .commander-faction-stats dd {
    margin: 0;
    color: var(--welcome-text);
    font-size: 15px;
    line-height: 1.25;
}

/* === Footer === */
.welcome-footer {
    position: relative;
    grid-row: 4;
    grid-column: 1 / -1;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 20px 8px 4px 8px;
    border-top: 1px solid var(--welcome-border-soft);
    margin-top: 0;
}

.welcome-footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-footer-emblem {
    width: 48px;
    height: 60px;
    color: var(--welcome-accent);
    filter: drop-shadow(0 0 8px rgba(80, 170, 240, 0.35));
}
.welcome-footer-emblem svg { width: 100%; height: 100%; }

.welcome-footer-title {
    margin: 0;
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--welcome-text);
}

.welcome-footer-subtitle {
    margin: 4px 0 0 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--welcome-text-dim);
}

.welcome-footer-center {
    text-align: center;
    color: var(--welcome-accent);
    font-family: "Orbitron", "Rajdhani", sans-serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.welcome-footer-center-mark {
    color: var(--welcome-accent);
    font-size: 10px;
    opacity: 0.85;
}

.welcome-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.welcome-social {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--welcome-border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(8, 22, 42, 0.8), rgba(4, 12, 24, 0.86));
    color: var(--welcome-accent);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.welcome-social svg { width: 22px; height: 22px; }
.welcome-social:hover,
.welcome-social:focus-visible {
    border-color: var(--welcome-accent);
    color: var(--welcome-accent-soft);
    background: linear-gradient(180deg, rgba(14, 38, 70, 0.9), rgba(6, 18, 36, 0.92));
    outline: none;
    transform: translateY(-1px);
}

/* === Responsive === */
@media (max-width: 1384px) {
    .welcome-news-panel {
        position: fixed;
        top: 96px;
        right: 28px;
        bottom: 200px;
        left: 28px;
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 1100px) {
    .welcome-scene {
        padding: 24px 28px;
        background-image:
            linear-gradient(180deg, rgba(2, 6, 15, 0.65), rgba(2, 6, 15, 0.85)),
            url("assets/welcome/welcome-bg.png");
        background-size: cover, cover;
        background-position: center, center;
    }
    .welcome-topbar {
        position: relative;
        top: auto;
        right: auto;
        justify-content: flex-end;
        padding: 4px 0;
    }
    .welcome-main {
        grid-row: 2;
        padding-top: 16px;
    }
    .welcome-news-panel {
        position: fixed;
        top: 96px;
        right: 28px;
        bottom: 230px;
        left: 28px;
        width: auto;
        min-width: 0;
    }
    /* auth-strip stays at grid-row 3; push audio and footer below it to prevent overlap */
    .welcome-audio-dock { grid-row: 4; }
    .welcome-footer { grid-row: 5; }
}

@media (max-width: 720px) {
    html, body { overflow: auto; }
    .welcome-page { min-height: 100vh; }
    .welcome-scene {
        padding: 20px 16px;
        grid-template-rows: auto auto auto auto auto;
    }
    .welcome-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        justify-content: flex-start;
    }
    .welcome-topbar-status {
        font-size: 12px;
        padding: 8px 14px;
        flex-wrap: wrap;
    }
    .welcome-topbar-actions {
        flex-wrap: wrap;
    }
    .welcome-audio-dock {
        justify-content: stretch;
    }
    .welcome-audio-panel {
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(4, 30px) auto minmax(0, 1fr);
    }
    .welcome-main { max-width: none; }
    .welcome-brand-title { font-size: 44px; }
    .welcome-brand-emblem { width: 88px; height: 88px; }
    .welcome-heading { font-size: 24px; }
    .welcome-action { grid-template-columns: 1fr auto; }
    .welcome-action-icon { display: none; }
    .welcome-news-panel {
        top: 72px;
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 18px 14px;
        gap: 12px;
    }
    .welcome-news-title { font-size: 19px; }
    .welcome-news-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .welcome-news-tab {
        height: 34px;
        font-size: 11px;
    }
    .welcome-news-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        min-height: 108px;
        padding: 14px 12px;
    }
    .welcome-news-icon {
        width: 38px;
        height: 38px;
    }
    .welcome-news-copy strong { font-size: 13px; }
    .welcome-news-copy span { font-size: 15px; }
    .welcome-news-item--release .welcome-news-copy span {
        max-height: none;
    }
    .welcome-news-time {
        grid-column: 2;
        padding-top: 0;
    }
    .welcome-release-detail {
        padding-right: 8px;
    }
    .welcome-release-detail h3 {
        font-size: 19px;
    }
    .welcome-release-detail p {
        font-size: 15px;
        line-height: 1.34;
    }
    .welcome-universe-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        min-height: 0;
        padding: 12px;
    }
    .welcome-universe-map {
        width: 38px;
        height: 38px;
    }
    .welcome-universe-copy strong { font-size: 13px; }
    .welcome-universe-copy span { font-size: 15px; }
    .welcome-universe-meta {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .welcome-universe-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .welcome-universe-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
    .welcome-universe-connect {
        width: 100%;
    }
    .welcome-commander-body {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 250px) minmax(0, 1fr);
    }
    .welcome-commander-picker {
        min-height: 0;
    }
    .welcome-commander-preview {
        grid-template-columns: 1fr;
    }
    .commander-faction-hero,
    .commander-faction-dossier {
        grid-template-columns: 1fr;
    }
    .welcome-commander-preview .commander-faction-image-frame {
        width: min(180px, 100%);
        justify-self: center;
    }
    .welcome-commander-actions {
        grid-template-columns: 1fr;
    }
    .welcome-commander-actions .commander-setup-submit,
    .welcome-commander-actions .commander-setup-delete {
        width: 100%;
    }
    .welcome-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .welcome-footer-left { justify-content: center; }
    .welcome-footer-social { justify-content: center; }
    .commander-setup-overlay {
        padding: 16px;
    }
    .commander-setup-panel {
        max-height: calc(100vh - 32px);
        padding: 22px 16px;
    }
    .commander-setup-form,
    .commander-setup-card--preview,
    .commander-faction-stats {
        grid-template-columns: 1fr;
    }
    .commander-setup-card--preview {
        grid-template-areas:
            "eyebrow"
            "name"
            "image"
            "lore"
            "stats";
    }
    .commander-faction-image-frame {
        width: min(220px, 100%);
        justify-self: center;
    }
}
