/* --- หน้าเมนูตัวละคร --- */
.screen {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

html.mobile-desktop-stage .screen {
    max-width: none;
}

.screen.active {
    display: flex;
}

.screen-menu {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(76, 175, 80, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 213, 79, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #1a2830 0%, #0d1218 50%, #1a3020 100%);
    color: #fff;
    padding: 16px 12px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
}


.menu-logo {
    text-align: center;
    margin-bottom: 20px;
}

.menu-logo h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(11px, 3.2vw, 14px);
    color: var(--px-gold);
    text-shadow:
        2px 2px 0 #000,
        0 0 20px var(--px-glow-gold);
    line-height: 1.6;
    margin: 0 0 8px;
}

.menu-logo p {
    font-size: var(--text-sm);
    color: #aaa;
    margin: 0;
}

.menu-section-title {
    font-size: var(--text-md);
    color: #888;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-char-list] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    min-height: 80px;
}

.char-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    width: 100%;
    background: linear-gradient(145deg, rgba(36, 28, 22, 0.75) 0%, rgba(12, 10, 8, 0.85) 100%);
    border: 3px solid var(--px-border);
    box-shadow: 0 3px 0 rgba(8, 6, 4, 0.5);
    color: #fff;
}

.char-card-select {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.char-card-delete {
    flex-shrink: 0;
    padding: 10px 12px;
    min-height: var(--touch-min);
    font-size: var(--text-sm);
    background: linear-gradient(180deg, #6b2c2c, #4a1515);
    border-color: #8b0000;
    color: #ffcdd2;
}

.char-card-delete:active {
    transform: translateY(2px);
}

.char-card.selected {
    border-color: var(--px-gold);
    box-shadow:
        0 0 16px var(--px-glow-gold),
        0 4px 0 rgba(8, 6, 4, 0.5),
        inset 0 0 20px rgba(255, 213, 79, 0.08);
    background: linear-gradient(145deg, rgba(56, 48, 20, 0.85) 0%, rgba(24, 20, 8, 0.9) 100%);
}

.char-preview-canvas {
    flex-shrink: 0;
    width: 80px;
    height: 96px;
    image-rendering: pixelated;
    border: 2px solid #000;
}

.char-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.char-card-name {
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    word-break: break-word;
}

.char-card-lock {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    padding: 2px 6px;
    border: 2px solid rgba(255, 107, 107, 0.8);
    color: #ff8a80;
    background: rgba(0, 0, 0, 0.35);
    vertical-align: middle;
}

.char-card-lv {
    font-size: var(--text-sm);
    font-weight: bold;
    color: var(--px-gold);
    text-shadow: 1px 1px 0 #000;
}

[data-char-empty] {
    text-align: center;
    padding: 24px 12px;
    color: #888;
    font-size: var(--text-md);
    border: 2px dashed #444;
    border-radius: 8px;
    margin-bottom: 16px;
}

.screen-hub {
    max-width: 500px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: #07090e;
    color: #fff;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.hub-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        linear-gradient(180deg, #0c1218 0%, #101820 42%, #0a100e 100%);
}

.hub-atmosphere-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.hub-atmosphere-glow-a {
    width: 140%;
    height: 55%;
    left: -20%;
    top: -18%;
    background: radial-gradient(ellipse at center, rgba(255, 213, 79, 0.16) 0%, transparent 68%);
    animation: hub-glow-drift 7s ease-in-out infinite alternate;
}

.hub-atmosphere-glow-b {
    width: 90%;
    height: 50%;
    right: -25%;
    bottom: 5%;
    background: radial-gradient(ellipse at center, rgba(76, 175, 80, 0.12) 0%, transparent 70%);
    animation: hub-glow-drift 9s ease-in-out infinite alternate-reverse;
}

.hub-atmosphere-stars {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 28% 8%, rgba(255, 236, 179, 0.65), transparent),
        radial-gradient(1.5px 1.5px at 46% 22%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 68% 12%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 82% 28%, rgba(255, 213, 79, 0.55), transparent),
        radial-gradient(1px 1px at 18% 42%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 74% 38%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 90% 16%, rgba(255, 255, 255, 0.45), transparent);
    animation: hub-stars-twinkle 3.8s ease-in-out infinite;
}

.hub-atmosphere-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background:
        linear-gradient(180deg, transparent 0%, rgba(8, 12, 10, 0.55) 35%, rgba(6, 10, 8, 0.92) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 213, 79, 0.035) 0 2px,
            transparent 2px 18px
        );
}

.hub-atmosphere-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hub-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 16px 14px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    gap: 14px;
}

.hub-shell::before,
.hub-shell::after {
    content: '';
    flex: 1 0 0;
    min-height: 0;
}

.hub-hero {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    animation: hub-hero-in 0.55s ease-out;
}

.hub-eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 236, 210, 0.55);
}

.hub-brand {
    margin: 0 0 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(12px, 3.4vw, 15px);
    line-height: 1.65;
    color: var(--px-gold);
    text-shadow:
        2px 2px 0 #000,
        0 0 22px var(--px-glow-gold);
    animation: hub-brand-pulse 3.2s ease-in-out infinite;
}

.hub-tagline {
    margin: 0 0 12px;
    font-size: var(--text-md);
    color: rgba(255, 236, 210, 0.78);
    line-height: 1.45;
}

.hub-world-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 2px solid rgba(255, 213, 79, 0.28);
    background: rgba(0, 0, 0, 0.28);
    font-size: 12px;
    color: rgba(255, 236, 210, 0.82);
}

.hub-world-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #66bb6a;
    box-shadow: 0 0 10px rgba(102, 187, 106, 0.85);
    animation: hub-dot-blink 1.6s ease-in-out infinite;
}

.hub-gates {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.hub-gate {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        'badge badge badge'
        'icon body cta';
    align-items: center;
    gap: 6px 12px;
    width: 100%;
    padding: 14px 14px 14px 12px;
    border: 3px solid var(--px-border);
    background:
        linear-gradient(145deg, rgba(42, 34, 26, 0.92) 0%, rgba(14, 12, 10, 0.96) 100%);
    box-shadow:
        0 4px 0 rgba(8, 6, 4, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
    animation: hub-gate-in 0.5s ease-out both;
}

.hub-gate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.06) 50%, transparent 65%);
    transform: translateX(-120%);
    pointer-events: none;
}

.hub-gate:hover::before,
.hub-gate:focus-visible::before {
    animation: hub-gate-sheen 0.85s ease-out;
}

.hub-gate:nth-child(1) { animation-delay: 0.06s; }
.hub-gate:nth-child(2) { animation-delay: 0.14s; }
.hub-gate:nth-child(3) { animation-delay: 0.22s; }

.hub-gate:hover,
.hub-gate:focus-visible {
    outline: none;
    transform: translateY(-2px);
    border-color: var(--px-gold);
    box-shadow:
        0 0 18px var(--px-glow-gold),
        0 5px 0 rgba(8, 6, 4, 0.5),
        inset 0 0 24px rgba(255, 213, 79, 0.08);
}

.hub-gate:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(8, 6, 4, 0.55);
}

.hub-gate-badge {
    grid-area: badge;
    justify-self: start;
    padding: 2px 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 236, 210, 0.7);
    border: 1px solid rgba(255, 213, 79, 0.25);
    background: rgba(0, 0, 0, 0.35);
}

.hub-gate-icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255, 213, 79, 0.28);
    background:
        radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.1), transparent 55%),
        linear-gradient(180deg, #2a221c, #14100c);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.hub-gate-icon svg {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.hub-gate-icon-img {
    display: block;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.hub-gate-body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hub-gate-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.55;
    color: #ffe082;
    text-shadow: 1px 1px 0 #000;
}

.hub-gate-desc {
    font-size: var(--text-sm);
    line-height: 1.4;
    color: rgba(255, 236, 210, 0.72);
}

.hub-gate-cta {
    grid-area: cta;
    align-self: center;
    padding: 8px 10px;
    min-width: 44px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #1b140c;
    background: linear-gradient(180deg, #ffe082, #ffc107);
    border: 2px solid #c79100;
    box-shadow: 0 2px 0 #7a5600;
}

.hub-gate-play {
    background:
        linear-gradient(145deg, rgba(36, 56, 40, 0.95) 0%, rgba(14, 18, 14, 0.98) 100%);
    border-color: #3e5c40;
}

.hub-gate-play .hub-gate-badge {
    color: #c8e6c9;
    border-color: rgba(102, 187, 106, 0.35);
}

.hub-gate-play:hover,
.hub-gate-play:focus-visible {
    border-color: #81c784;
    box-shadow:
        0 0 18px rgba(129, 199, 132, 0.35),
        0 5px 0 rgba(8, 6, 4, 0.5),
        inset 0 0 24px rgba(129, 199, 132, 0.08);
}

.hub-gate-wiki {
    background:
        linear-gradient(145deg, rgba(48, 38, 28, 0.95) 0%, rgba(16, 12, 10, 0.98) 100%);
}

.hub-gate-studio {
    background:
        linear-gradient(145deg, rgba(48, 36, 28, 0.95) 0%, rgba(18, 12, 10, 0.98) 100%);
}

.hub-gate-studio .hub-gate-badge {
    color: #ffcc80;
    border-color: rgba(255, 167, 38, 0.35);
}

.hub-logout {
    flex-shrink: 0;
    width: 100%;
    min-height: var(--touch-min);
    opacity: 0.88;
}

.hub-flavor {
    flex-shrink: 0;
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 236, 210, 0.45);
    line-height: 1.4;
}

@keyframes hub-hero-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hub-gate-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hub-brand-pulse {
    0%,
    100% {
        text-shadow:
            2px 2px 0 #000,
            0 0 18px var(--px-glow-gold);
    }
    50% {
        text-shadow:
            2px 2px 0 #000,
            0 0 28px rgba(255, 213, 79, 0.75);
    }
}

@keyframes hub-dot-blink {
    0%,
    100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes hub-glow-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(2%, 3%, 0) scale(1.05); }
}

@keyframes hub-stars-twinkle {
    0%,
    100% { opacity: 0.45; }
    50% { opacity: 0.7; }
}

@keyframes hub-gate-sheen {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
    .hub-hero,
    .hub-gate,
    .hub-brand,
    .hub-world-dot,
    .hub-atmosphere-glow,
    .hub-atmosphere-stars {
        animation: none !important;
    }

    .hub-gate::before {
        display: none;
    }
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.menu-actions .pixel-btn {
    width: 100%;
    min-height: var(--touch-min);
    padding: 14px 16px;
    font-size: var(--text-lg);
}

.menu-actions .pixel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.menu-actions .pixel-btn.primary {
    background: linear-gradient(180deg, #27ae60, #1e8449);
    border-color: #145a32;
}

.menu-actions .pixel-btn.secondary {
    background: linear-gradient(180deg, #5d4e37, #3e2723);
}

/* --- หน้าสร้างตัวละคร (ฟีลเกมออนไลน์) --- */
.screen-create.active {
    display: flex;
}

/* แท็บ/แผงปรับแต่ง — สไตล์ฐาน (หน้าสร้างแบบใหม่ทับด้วย .screen-create …) */
.create-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.create-tab {
    appearance: none;
    cursor: pointer;
}

.customize-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-error {
    margin: 0;
}

.create-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customize-section {
    margin-bottom: 10px;
}

.customize-label {
    font-size: var(--text-sm);
    color: var(--px-gold);
    margin-bottom: 8px;
    font-weight: bold;
}

.customize-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customize-opt {
    min-width: 40px;
    min-height: 36px;
    padding: 6px 10px;
    font-size: var(--text-xs);
    border: 2px solid var(--px-border);
}

.customize-opt.color-swatch {
    width: 40px;
    height: 36px;
    padding: 0;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    background-color: var(--swatch-color, #888);
    background-image: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 0 #0d0907;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.customize-opt.color-swatch:active {
    transform: translateY(1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1px 0 #0d0907;
}

.customize-opt.color-swatch.selected {
    border-color: #fff;
    box-shadow:
        0 0 0 2px var(--px-gold),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        0 2px 0 #0d0907;
}

.customize-opt.style-opt.selected {
    border-color: var(--px-gold);
    color: var(--px-gold);
    background: rgba(241, 196, 15, 0.15);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- หน้าโหลด --- */
.screen-loading {
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 24px 16px;
    padding-top: max(24px, env(safe-area-inset-top));
    background:
        radial-gradient(ellipse 70% 45% at 50% 20%, rgba(66, 165, 245, 0.1) 0%, transparent 55%),
        linear-gradient(180deg, #1a2830 0%, #0d1218 60%, #1a3020 100%);
    color: #fff;
    /* ทับจอเกมตอนวาร์ปแผนที่ — กันรู้สึกค้าง */
    position: fixed;
    inset: 0;
    z-index: 12000;
    max-width: none;
    margin: 0;
}

.loading-logo {
    text-align: center;
}

.loading-logo h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(11px, 3.2vw, 14px);
    color: var(--px-gold);
    text-shadow: 2px 2px 0 #000;
    margin: 0 0 8px;
}

.loading-logo p {
    margin: 0;
    font-size: var(--text-sm);
    color: #aaa;
}

.loading-version {
    margin: 10px 0 0;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #6a8a72;
}

.loading-stage {
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
}

[data-loading-canvas] {
    display: block;
    width: 160px;
    height: 140px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.loading-bar-wrap {
    width: 100%;
    max-width: 320px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.45);
}

.loading-bar-track {
    height: 14px;
    background: #111;
    border: 2px solid #000;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #43a047 0%, #66bb6a 35%, #ffd54f 70%, #ffb300 100%);
    box-shadow: 0 0 8px rgba(102, 187, 106, 0.5);
    transition: width 0.15s ease-out;
}

.loading-bar-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: var(--text-xs);
    color: #aaa;
}

/* --- เข้าสู่ระบบ (หน้าแรก / ประตูสู่โลก) --- */
/* --- หน้าเข้าสู่ระบบ (cinematic full-bleed) --- */
.screen-login {
    --login-gold: #d4af37;
    --login-gold-hi: #f0d78c;
    --login-ink: #1a1614;
    --login-panel: rgba(18, 14, 12, 0.78);
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
    background: #07060a;
    color: #f5f0e6;
    padding: 0;
    overflow: hidden;
    gap: 0;
    position: relative;
    font-family: 'Kanit', 'Segoe UI', Tahoma, sans-serif;
    touch-action: pan-y;
}

.screen-login input,
.screen-login textarea,
.screen-login a {
    user-select: text;
    -webkit-user-select: text;
}

.login-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-bg {
    position: absolute;
    inset: -4%;
    background:
        url('/assets/main/bg.webp') center / cover no-repeat;
    transform-origin: 58% 42%;
    animation: login-kenburns 48s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes login-kenburns {
    from {
        transform: scale(1) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.08) translate3d(-1.2%, 0.6%, 0);
    }
}

.login-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.login-particle {
    position: absolute;
    bottom: -8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(240, 215, 140, 0.75);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.55);
    animation: login-particle-rise linear infinite;
    opacity: 0;
}

@keyframes login-particle-rise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.6);
    }
    12% {
        opacity: 0.85;
    }
    80% {
        opacity: 0.35;
    }
    100% {
        opacity: 0;
        transform: translate3d(12px, -110vh, 0) scale(1);
    }
}

.login-scene-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            105deg,
            rgba(6, 5, 8, 0.72) 0%,
            rgba(6, 5, 8, 0.28) 38%,
            rgba(6, 5, 8, 0.18) 58%,
            rgba(6, 5, 8, 0.55) 100%
        ),
        linear-gradient(
            180deg,
            rgba(6, 5, 8, 0.35) 0%,
            transparent 28%,
            transparent 62%,
            rgba(6, 5, 8, 0.72) 100%
        );
}

.login-scene-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 70% at 50% 45%,
            transparent 0%,
            rgba(0, 0, 0, 0.5) 100%
        );
}

.login-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        'brand'
        'main'
        'foot';
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 14px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    gap: 12px;
    align-content: start;
    touch-action: pan-y;
}

.login-brand-col {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    position: relative;
    z-index: 2;
    animation: login-hero-in 0.7s ease-out both;
}

.login-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

.login-page-footer {
    grid-area: foot;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    text-align: center;
    opacity: 0.85;
    position: relative;
    z-index: 2;
}

.login-hero {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    margin: 0;
}

@keyframes login-hero-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-brand {
    margin: 0 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.login-brand-tabard {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(28px, 8vw, 42px);
    letter-spacing: 0.06em;
    color: var(--login-gold-hi);
    background: linear-gradient(180deg, #fff3c4 0%, #d4af37 42%, #8a6a18 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.35));
    animation: login-brand-pulse 3.6s ease-in-out infinite;
}

.login-brand-online {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 600;
    font-size: clamp(12px, 3.2vw, 16px);
    letter-spacing: 0.42em;
    color: var(--login-gold);
    text-indent: 0.42em;
    text-shadow: 0 1px 0 #000, 0 0 12px rgba(212, 175, 55, 0.35);
}

@keyframes login-brand-pulse {
    0%,
    100% {
        filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px rgba(212, 175, 55, 0.3));
    }
    50% {
        filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.65)) drop-shadow(0 0 28px rgba(212, 175, 55, 0.55));
    }
}

.login-hero-eyebrow {
    margin: 8px 0 10px;
    font-size: clamp(11px, 2.8vw, 13px);
    letter-spacing: 0.22em;
    color: rgba(245, 240, 230, 0.88);
    text-transform: uppercase;
    text-shadow: 0 1px 0 #000, 0 2px 10px rgba(0, 0, 0, 0.75);
}

.login-hero-tagline {
    margin: 0 0 8px;
    font-size: clamp(15px, 3.6vw, 18px);
    font-weight: 500;
    color: var(--login-gold-hi);
    line-height: 1.4;
    text-shadow: 0 1px 0 #000, 0 2px 12px rgba(0, 0, 0, 0.85);
}

.login-hero-desc {
    margin: 0 0 12px;
    font-size: var(--text-sm);
    font-weight: 300;
    color: rgba(245, 240, 230, 0.82);
    line-height: 1.55;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.login-world-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 5px 12px;
    font-size: var(--text-xs);
    font-weight: 500;
    color: #b8e0a8;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(102, 187, 106, 0.4);
    border-radius: 999px;
}

.login-world-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #66bb6a;
    box-shadow: 0 0 8px rgba(102, 187, 106, 0.9);
    animation: login-dot-blink 1.6s ease-in-out infinite;
}

@keyframes login-dot-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.login-hero-figure {
    display: none;
    pointer-events: none;
}

.login-hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}

.login-social {
    display: none;
}

.login-social-title {
    margin: 0 0 8px;
    font-size: 12px;
    color: rgba(245, 240, 230, 0.7);
    letter-spacing: 0.06em;
}

.login-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    margin: 0 0 4px;
    color: #ebe4d6;
    text-decoration: none;
    font-size: 13px;
    background: rgba(10, 8, 7, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 4px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.login-social-link:hover {
    background: rgba(30, 24, 18, 0.75);
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateX(2px);
}

.login-social-ext {
    margin-left: auto;
    opacity: 0.55;
    font-size: 11px;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    padding: 28px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(32, 26, 22, 0.88) 0%, rgba(12, 10, 9, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 18px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: login-card-in 0.55s ease-out 0.1s both;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    pointer-events: none;
}

@keyframes login-card-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: var(--login-gold-hi);
    background: linear-gradient(180deg, #2a2218 0%, #16120e 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.login-notice {
    padding: 10px 12px;
    background: rgba(48, 36, 12, 0.55);
    border: 1px solid rgba(184, 134, 11, 0.45);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: #f0ebe0;
}

.login-notice strong {
    color: var(--login-gold);
    display: block;
    margin-bottom: 4px;
    font-size: var(--text-sm);
    text-shadow: 0 1px 0 #000;
}

.login-notice p {
    margin: 0;
    color: #e8e0d0;
}

.login-notice p strong {
    display: inline;
    margin: 0;
    font-size: inherit;
}

.login-guest-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 4px 0 0;
}

.login-guest-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    min-height: calc(var(--touch-min) + 8px);
    border: 1px solid #1a5c34;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    text-align: left;
    background: linear-gradient(180deg, #3dd87a 0%, #1f9a4f 48%, #157a3c 100%);
    box-shadow:
        inset 0 1px 0 rgba(200, 255, 210, 0.35),
        0 4px 0 #0d3d22,
        0 0 22px rgba(46, 204, 113, 0.28);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.login-guest-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.28) 48%,
        transparent 62%
    );
    transform: translateX(-120%);
    animation: login-shimmer 4.5s ease-in-out infinite;
}

@keyframes login-shimmer {
    0%,
    55% {
        transform: translateX(-120%);
    }
    75%,
    100% {
        transform: translateX(120%);
    }
}

.login-guest-btn:hover {
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(200, 255, 210, 0.4),
        0 5px 0 #0d3d22,
        0 0 28px rgba(46, 204, 113, 0.42);
}

.login-guest-btn:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 1px 0 rgba(200, 255, 210, 0.25),
        0 1px 0 #0d3d22,
        0 0 12px rgba(46, 204, 113, 0.2);
}

.login-guest-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.login-guest-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.login-guest-btn-text strong {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.login-guest-btn-text small {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

.login-guest-btn-arrow {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 600;
    opacity: 0.92;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
}

.login-divider-text {
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(232, 220, 190, 0.75);
    letter-spacing: 0.08em;
}

.guest-notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    align-self: stretch;
}

.guest-notice strong {
    display: block;
    margin-bottom: 6px;
    color: var(--px-gold, #ffd54f);
    font-size: var(--text-sm);
}

.guest-notice p {
    margin: 0;
    font-size: var(--text-xs);
    color: #c8bfb0;
    line-height: 1.45;
}

.login-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 2px;
}

.login-panel-heading {
    margin: 0 0 2px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #e8dcc8;
    letter-spacing: 0.04em;
    text-align: center;
    text-shadow: 0 1px 0 #000;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-field > span:not(.login-field-box),
.login-field-label-row {
    font-size: 13px;
    color: #d8d0c0;
}

.login-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.login-forgot-inline {
    color: #7dcea0;
    text-decoration: none;
    font-size: 12px;
}

.login-forgot-inline:hover {
    color: #a8ecc4;
    text-decoration: underline;
}

.login-field-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    min-height: var(--touch-min);
    border: 1px solid #4a3a2a;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.login-field-box:focus-within {
    border-color: var(--login-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.22);
}

.login-field-ico {
    flex-shrink: 0;
    display: inline-flex;
    opacity: 0.7;
    color: #5c534a;
}

.login-field-ico svg,
.login-social-ico svg,
.login-register-ico svg,
.login-lang-ico svg {
    display: block;
}

.login-social-ico {
    display: inline-flex;
    width: 1.2em;
    justify-content: center;
    color: var(--login-gold);
}

.login-register-ico {
    display: inline-flex;
    opacity: 0.9;
    color: var(--login-gold-hi);
}

.login-lang-ico {
    display: inline-flex;
    opacity: 0.85;
}

.login-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 12px 0 12px 0.6ch;
    min-height: var(--touch-min);
    font: inherit;
    font-size: var(--text-md);
    border: none;
    background: #ffffff;
    color: #1a1410;
    outline: none;
    box-shadow: none;
}

.login-field input::placeholder {
    color: #7a7268;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 0;
    font-size: 13px;
    color: #c8bfb0;
    cursor: pointer;
}

.login-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--login-gold);
    cursor: pointer;
}

.login-submit {
    margin-top: 4px;
    padding: 13px 16px;
    min-height: var(--touch-min);
    width: 100%;
    border: 1px solid #6b5318;
    border-radius: 4px;
    color: #1a1208;
    font: inherit;
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    background: linear-gradient(180deg, #f0d78c 0%, #d4af37 45%, #9a7420 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 3px 0 #5c4512,
        0 0 16px rgba(212, 175, 55, 0.22);
    transition:
        filter 0.15s ease,
        transform 0.15s ease;
}

.login-submit:hover {
    filter: brightness(1.05);
}

.login-submit:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 0 #5c4512;
}

.login-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    min-height: var(--touch-min);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 4px;
    background: rgba(10, 8, 7, 0.72);
    color: #ebe4d6;
    font: inherit;
    font-size: var(--text-md);
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.login-register-btn:hover {
    background: rgba(28, 22, 16, 0.88);
    border-color: rgba(212, 175, 55, 0.6);
}

.login-switch {
    text-align: center;
    font-size: var(--text-sm);
    color: #b8b0a0;
    margin: 0;
}

.login-switch a {
    color: var(--login-gold);
    text-decoration: none;
}

.login-switch a:hover {
    text-decoration: underline;
}

.login-password-hint {
    font-size: var(--text-xs);
    color: #a09888;
    margin: -2px 0 4px;
    line-height: 1.4;
}

.login-forgot-panel,
.login-verify-panel {
    text-align: center;
    line-height: 1.5;
    font-size: var(--text-md);
    color: #eee8dc;
}

.verify-title {
    color: var(--login-gold);
    font-weight: 600;
    margin: 0 0 8px;
}

.login-error {
    min-height: 20px;
    margin: 0;
    font-size: var(--text-sm);
    color: #ff8a80;
    text-align: center;
    text-shadow: 0 1px 2px #000;
}

.login-copy {
    margin: 0;
    width: 100%;
    font-size: 11px;
    color: rgba(200, 195, 185, 0.65);
}

.login-legal {
    margin: 0;
    font-size: 11px;
    color: rgba(200, 195, 185, 0.55);
}

.login-legal a {
    color: rgba(230, 210, 150, 0.75);
    text-decoration: none;
}

.login-legal a:hover {
    color: var(--login-gold-hi);
}

.login-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #ebe4d6;
    background: rgba(10, 8, 7, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 4px;
}

.menu-logout {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* คอม / จอกว้าง — เลย์เอาต์เต็มจอแบบ mockup */
@media (min-width: 960px) {
    .login-shell {
        grid-template-columns: minmax(280px, 1.15fr) minmax(360px, 420px) minmax(40px, 0.55fr);
        grid-template-rows: 1fr auto;
        grid-template-areas:
            'brand main .'
            'foot foot foot';
        align-items: stretch;
        padding: 28px 40px 18px;
        gap: 20px 32px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .login-brand-col {
        justify-content: space-between;
        padding: 12px 0 8px;
        max-width: 520px;
        /* เว้นที่ให้ตัวละครยืนขอบล่าง + กล่องโซเชียลอยู่เหนือตัว */
        padding-bottom: clamp(200px, 38vh, 420px);
    }

    .login-hero {
        text-align: left;
    }

    .login-brand {
        align-items: flex-start;
    }

    .login-brand-tabard {
        font-size: clamp(40px, 4.6vw, 64px);
    }

    .login-brand-online {
        font-size: clamp(14px, 1.4vw, 18px);
    }

    .login-hero-eyebrow {
        margin-top: 10px;
    }

    .login-hero-tagline {
        font-size: clamp(18px, 1.7vw, 22px);
    }

    .login-hero-desc {
        font-size: 15px;
        max-width: 28em;
    }

    .login-world-status {
        margin: 0;
    }

    /* ยืนขอบล่างจอ — ดันลงมุมซ้ายล่างเล็กน้อยให้เท้าชิดขอบ */
    .login-hero-figure {
        display: block;
        position: absolute;
        left: clamp(-12px, -0.5vw, 8px);
        bottom: clamp(-36px, -4.5vh, -18px);
        z-index: 1;
        width: min(460px, 34vw);
        margin: 0;
        line-height: 0;
        pointer-events: none;
    }

    .login-hero-img {
        width: 100%;
        height: auto;
        vertical-align: bottom;
    }

    .login-social {
        display: block;
        position: relative;
        z-index: 2;
        width: max-content;
        min-width: 168px;
        margin-top: auto;
        padding: 10px 12px;
        background: rgba(10, 8, 7, 0.62);
        border: 1px solid rgba(212, 175, 55, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        animation: login-hero-in 0.7s ease-out 0.25s both;
    }

    .login-main {
        justify-content: center;
        padding: 24px 0;
    }

    .login-card {
        max-width: 400px;
        padding: 32px 22px 18px;
    }

    .login-page-footer {
        position: relative;
        justify-content: center;
        padding-top: 4px;
    }

    .login-lang {
        position: absolute;
        right: 0;
        bottom: 0;
    }

    .login-scene-veil {
        background:
            linear-gradient(
                95deg,
                rgba(6, 5, 8, 0.55) 0%,
                rgba(6, 5, 8, 0.12) 42%,
                rgba(6, 5, 8, 0.22) 70%,
                rgba(6, 5, 8, 0.5) 100%
            ),
            linear-gradient(
                180deg,
                rgba(6, 5, 8, 0.25) 0%,
                transparent 30%,
                transparent 70%,
                rgba(6, 5, 8, 0.65) 100%
            );
    }
}

@media (min-width: 1280px) {
    .login-shell {
        padding: 36px 56px 22px;
        grid-template-columns: minmax(340px, 1.2fr) minmax(380px, 440px) minmax(80px, 0.7fr);
    }

    .login-hero-figure {
        width: min(520px, 36vw);
        left: clamp(-16px, -0.4vw, 12px);
        bottom: clamp(-44px, -5vh, -22px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-bg,
    .login-brand-tabard,
    .login-guest-btn::after,
    .login-particle,
    .login-world-dot {
        animation: none !important;
    }
}

#screen-game {
    max-width: calc(var(--game-col-w) * var(--view-cols));
    margin: 0 auto;
    height: 100%;
    width: 100%;
    flex: 1;
    min-height: 0;
}

html.mobile-desktop-stage #screen-game {
    max-width: none;
    width: 100%;
    height: 100%;
}

#screen-game.active {
    display: flex;
    flex-direction: column;
}

/* --- ติดตั้งแอป (PWA) — กล่องหน้า login / เลือกวีรยุทธ์ --- */
.pwa-install-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding: 10px 12px;
    background: rgba(18, 22, 20, 0.88);
    border-color: rgba(255, 213, 79, 0.4);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pwa-install-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
}

.pwa-install-banner[hidden] {
    display: none !important;
}

.login-shell > .pwa-install-banner,
.login-main > .pwa-install-banner {
    margin-top: 0;
    flex-shrink: 0;
    max-width: 400px;
    width: 100%;
}

.screen-menu > .pwa-install-banner {
    margin-top: 12px;
    flex-shrink: 0;
}

.pwa-install-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-banner-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: var(--text-sm);
    color: var(--px-gold, #ffd54f);
    text-shadow: 0 1px 0 #000;
}

.pwa-install-banner-text p {
    margin: 0;
    font-size: var(--text-xs);
    color: #c8bfb0;
    line-height: 1.4;
}

.pwa-install-banner-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: var(--text-xs);
    padding: 8px 10px;
}

.pwa-install-root {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.pwa-install-root[hidden] {
    display: none !important;
}

.pwa-install-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.pwa-install-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
    max-height: min(90vh, 520px);
    overflow-y: auto;
    padding: 14px 14px 16px;
    background: linear-gradient(165deg, #3a2c22 0%, #1a1410 55%, #120e0a 100%);
    border: 3px solid var(--px-border);
    box-shadow:
        inset 0 1px 0 var(--px-border-light),
        0 6px 0 var(--px-shadow-deep),
        0 0 28px rgba(0, 0, 0, 0.55);
    text-align: left;
}

.pwa-install-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.pwa-install-title {
    margin: 0;
    font-size: var(--text-md);
    color: var(--px-gold, #ffd54f);
    text-shadow: 0 1px 0 #000;
    line-height: 1.35;
}

.pwa-install-platform {
    margin: 0 0 12px;
    font-size: var(--text-xs);
    color: #9a9080;
    letter-spacing: 0.02em;
}

.pwa-install-steps {
    margin: 0;
    padding-left: 1.25em;
    font-size: var(--text-sm);
    color: #e8e0d0;
    line-height: 1.55;
}

.pwa-install-steps li + li {
    margin-top: 8px;
}

.pwa-install-steps strong {
    color: #fff3c4;
}

.pwa-install-note {
    margin: 12px 0 0;
    font-size: var(--text-xs);
    color: #9a9080;
    line-height: 1.4;
}

.pwa-install-native {
    display: block;
    width: 100%;
    margin-top: 14px;
}

.pwa-install-native[hidden] {
    display: none !important;
}
