/* ── 遊戲大廳 ── */
.games-page { padding-bottom: var(--space-2xl); }
.games-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.wallet-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-full);
    background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.wallet-pill svg { width: 18px; height: 18px; color: var(--color-accent); }
.wallet-pill-amount { font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
.wallet-pill-unit { font-size: 0.72rem; color: var(--color-text-muted); }

.games-link-note {
    display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-lg);
    border-radius: var(--radius-xl); background: var(--color-surface); border: 1px dashed var(--color-border);
    margin-bottom: var(--space-xl);
}
.games-link-note > svg { width: 32px; height: 32px; color: #5865F2; flex-shrink: 0; }
.games-link-note b { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.games-link-note p { font-size: 0.82rem; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: var(--space-sm); }
.games-link-note code { font-family: ui-monospace, Menlo, monospace; background: var(--color-surface-elevated); padding: 1px 6px; border-radius: 4px; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-md); }
.game-card {
    display: flex; flex-direction: column; border-radius: var(--radius-xl); overflow: hidden;
    background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}
.game-card.is-live:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.game-card.is-soon { opacity: 0.7; }
.game-card-art { height: 140px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 2.6rem; position: relative; overflow: hidden; }
.game-art-slots { background: radial-gradient(600px 200px at 50% 120%, rgba(243,159,90,0.35), transparent 60%), linear-gradient(160deg, #2a1440, #451952 60%, #662549); }
.game-art-reel { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 76px; border-radius: 10px; background: rgba(255,255,255,0.92); box-shadow: inset 0 -8px 16px rgba(0,0,0,0.15), 0 6px 18px rgba(0,0,0,0.35); animation: art-bob 2.4s ease-in-out infinite; }
.game-art-reel:nth-child(2) { animation-delay: 0.2s; } .game-art-reel:nth-child(3) { animation-delay: 0.4s; }
@keyframes art-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.game-art-soon { background: var(--color-surface-elevated); color: var(--color-text-muted); font-size: 2.2rem; }
.game-card-body { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.game-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.game-card h2 { font-size: 1.05rem; font-weight: var(--font-weight-semibold); }
.game-card p { font-size: 0.82rem; line-height: 1.6; color: var(--color-text-secondary); }
.game-card-jackpot { margin-top: 10px; font-size: 0.76rem; color: var(--color-text-muted); }
.game-card-jackpot b { color: var(--color-accent); font-variant-numeric: tabular-nums; }

.game-art-bj { background: radial-gradient(500px 200px at 50% 110%, rgba(245,197,107,0.25), transparent 60%), linear-gradient(160deg, #17513a, #0b2e21); gap: 0; }
.game-art-bj .art-card { display: inline-block; margin-left: -22px; transform: rotate(calc((var(--i) - 1) * 10deg)) translateY(calc(abs(var(--i) - 1) * 4px)); filter: drop-shadow(0 8px 14px rgba(0,0,0,0.45)); animation: art-bob 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.15s); }
.game-art-bj .art-card:first-child { margin-left: 0; }
.game-art-sicbo { background: radial-gradient(500px 200px at 50% 110%, rgba(208,38,62,0.3), transparent 60%), linear-gradient(160deg, #3a1a2e, #1f0f22); gap: 14px; }
.game-art-sicbo .svg-die { filter: drop-shadow(0 8px 14px rgba(0,0,0,0.5)); animation: art-bob 2.4s ease-in-out infinite; }
.game-art-sicbo .svg-die:nth-child(2) { animation-delay: 0.2s; } .game-art-sicbo .svg-die:nth-child(3) { animation-delay: 0.4s; }

.games-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rules-btn { display: inline-flex; align-items: center; gap: 6px; }
.rules-btn svg { width: 14px; height: 14px; }
.btn-cluster { display: inline-flex; gap: 6px; }

/* ═══════════════ 星爺遊戲大廳（RPG 風地圖） ═══════════════ */
.arcade-map { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px; max-height: 620px; margin-top: var(--space-lg); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 30px 80px rgba(0,0,0,0.5); background: #07060f; user-select: none; }
.arcade-sky { position: absolute; inset: 0 0 42% 0; background: radial-gradient(900px 300px at 50% 110%, rgba(120,80,200,0.35), transparent 60%), linear-gradient(180deg, #05040c 0%, #120d2a 60%, #24164a 100%); }
.arcade-star { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: arcade-twinkle var(--d, 3s) ease-in-out infinite; }
@keyframes arcade-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.3); } }
.arcade-moon { position: absolute; right: 9%; top: 9%; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff7d6, #e9d8a0 60%, #c9b77a); box-shadow: 0 0 40px rgba(255,240,200,0.45), inset -8px -6px 14px rgba(0,0,0,0.15); }
.arcade-title { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); font-family: var(--font-heading, var(--font-primary)); font-weight: 800; letter-spacing: 0.22em; font-size: clamp(0.8rem, 1.8vw, 1.15rem); color: #ffe9b0; text-shadow: 0 0 10px rgba(255,205,120,0.9), 0 0 30px rgba(255,160,60,0.6); white-space: nowrap; }
.arcade-floor { position: absolute; left: -20%; right: -20%; top: 58%; bottom: 0; background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 60px 100%,
    linear-gradient(0deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(180deg, #2b1f4a, #1a1233 70%, #120c24); transform: perspective(700px) rotateX(48deg); transform-origin: 50% 0; }
.arcade-rug { position: absolute; left: 50%; top: 61%; width: 44%; height: 42%; transform: translateX(-50%) perspective(700px) rotateX(48deg); transform-origin: 50% 0; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(180,40,70,0.55) 0 14px, rgba(150,30,60,0.55) 14px 28px); border: 3px solid rgba(245,197,107,0.55); box-shadow: 0 0 40px rgba(180,40,70,0.3); }

/* 廳 */
.hall { position: absolute; bottom: 30%; width: 17%; min-width: 150px; transform: translateX(-50%); text-decoration: none; color: inherit; transition: transform 0.25s, filter 0.25s; z-index: 2; }
.hall-slots { left: 10%; } .hall-bj { left: 30%; } .hall-sicbo { left: 50%; } .hall-horses { left: 70%; } .hall-poker { left: 90%; }
.hall:hover, .hall.is-sel { transform: translateX(-50%) translateY(-6px); filter: brightness(1.12); z-index: 3; }
.hall.is-entering { transform: translateX(-50%) scale(1.04); }
.hall-sign { position: relative; z-index: 2; margin: 0 auto -8px; width: max-content; max-width: 100%; padding: 6px 14px; border-radius: 8px; font-weight: 800; font-size: clamp(0.72rem, 1.4vw, 0.95rem); letter-spacing: 0.06em; color: #fff; background: #1a1230; border: 2px solid currentColor; }
.neon-amber { color: #ffd166; box-shadow: 0 0 12px rgba(255,209,102,0.7), inset 0 0 10px rgba(255,209,102,0.25); text-shadow: 0 0 8px rgba(255,209,102,0.9); }
.neon-green { color: #7cf5b0; box-shadow: 0 0 12px rgba(124,245,176,0.7), inset 0 0 10px rgba(124,245,176,0.25); text-shadow: 0 0 8px rgba(124,245,176,0.9); }
.neon-red { color: #ff7a8a; box-shadow: 0 0 12px rgba(255,122,138,0.7), inset 0 0 10px rgba(255,122,138,0.25); text-shadow: 0 0 8px rgba(255,122,138,0.9); }
@keyframes neon-flicker { 0%, 94%, 100% { opacity: 1; } 95% { opacity: 0.7; } 97% { opacity: 1; } 98% { opacity: 0.8; } }
.hall-building { position: relative; padding: 16px 12px 0; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, #3a2a63, #261b47); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 18px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12); }
.hall-slots .hall-building { background: linear-gradient(180deg, #4a2a5c, #2f1a3c); }
.hall-bj .hall-building { background: linear-gradient(180deg, #1f5b45, #123a2d); }
.hall-sicbo .hall-building { background: linear-gradient(180deg, #5a2440, #35152a); }
.hall-window { height: 74px; border-radius: 8px; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.hall-reels span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 44px; border-radius: 6px; background: rgba(255,255,255,0.92); font-size: 1.3rem; box-shadow: inset 0 -6px 10px rgba(0,0,0,0.15); animation: art-bob 2.4s ease-in-out infinite; }
.hall-reels span:nth-child(2) { animation-delay: 0.3s; } .hall-reels span:nth-child(3) { animation-delay: 0.6s; }
@keyframes art-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hall-felt { background: radial-gradient(circle at 50% 120%, #2c7a52, #14432f); }
.hall-felt .art-card { display: inline-block; margin-left: -18px; transform: rotate(calc(var(--i) * 10deg - 10deg)) translateY(calc(var(--i) * -2px)); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); }
.hall-felt .art-card:first-child { margin-left: 0; }
.hall-dice .art-die { display: inline-block; animation: art-bob 2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.25s); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); }
.hall-door { position: relative; width: 44px; height: 40px; margin: 10px auto 0; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #14101f, #0a0810); border: 2px solid rgba(255,255,255,0.18); border-bottom: none; overflow: hidden; }
.hall-door i { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,220,140,0) 0%, rgba(255,220,140,0.55) 100%); opacity: 0; transition: opacity 0.3s; }
.hall:hover .hall-door i, .hall.is-sel .hall-door i, .hall.is-entering .hall-door i { opacity: 1; }
.hall-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: #3a2a0a; border: 1px solid #e9c46a; color: #ffe9b0; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; z-index: 4; }
.hall.is-locked { filter: saturate(0.35) brightness(0.75); cursor: not-allowed; }
.hall.is-locked:hover { transform: translateX(-50%); filter: saturate(0.35) brightness(0.8); }
.hall.is-locked .hall-door::after { content: '🔒'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; }
.hall-info { margin-top: 8px; text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.65); }
.hall-info b { display: block; font-weight: 500; }
.hall-info-num { display: block; font-size: 0.95rem; font-weight: 700; color: #ffe9b0; font-variant-numeric: tabular-nums; }
.hall-info-num small { font-size: 0.68rem; font-weight: 500; color: rgba(255,255,255,0.6); }

/* 櫃台 */
.arcade-counter { position: absolute; right: 3%; bottom: 6%; width: 22%; min-width: 150px; z-index: 2; }
.counter-top { height: 10px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #8a6b3c, #5c4526); box-shadow: 0 -2px 0 rgba(255,255,255,0.12) inset; }
.counter-face { padding: 8px 12px 10px; border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #4a3620, #2f2214); border: 1px solid rgba(255,255,255,0.1); border-top: none; color: #ffe9b0; }
.counter-label { display: block; font-size: 0.68rem; letter-spacing: 0.08em; color: rgba(255,233,176,0.75); }
.counter-bal { display: block; font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.counter-bal small { font-size: 0.68rem; font-weight: 500; color: rgba(255,233,176,0.7); }
.counter-bal.is-link { color: #ffd166; text-decoration: none; font-size: 0.82rem; }
.counter-bal.is-link:hover { text-decoration: underline; }

/* 玩家 */
.walker { position: absolute; left: var(--wx, 50%); bottom: 9%; transform: translateX(-50%); z-index: 4; transition: left 0.8s cubic-bezier(.4,.1,.3,1); pointer-events: none; }
.walker-bubble { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -8px); padding: 4px 10px; border-radius: 10px; background: #fff; color: #1a1230; font-size: 0.68rem; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.walker-bubble::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff; }
.walker-body { display: flex; flex-direction: column; align-items: center; animation: walker-idle 2.2s ease-in-out infinite; }
.walker-head { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #ffe9b0; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; }
.walker-head img { width: 100%; height: 100%; object-fit: cover; }
.walker-head svg { width: 20px; height: 20px; color: #1a1230; }
.walker-torso { width: 24px; height: 22px; margin-top: -2px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #5b7cff, #3d55c4); }
.walker-legs { display: flex; gap: 4px; }
.walker-legs i { width: 8px; height: 12px; border-radius: 0 0 3px 3px; background: #2a2340; transform-origin: top; }
.walker-shadow { display: block; width: 34px; height: 8px; margin: 2px auto 0; border-radius: 50%; background: rgba(0,0,0,0.45); filter: blur(2px); }
@keyframes walker-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.walker.is-walking .walker-body { animation: walker-step 0.32s ease-in-out infinite; }
.walker.is-walking .walker-legs i:first-child { animation: leg-a 0.32s ease-in-out infinite; }
.walker.is-walking .walker-legs i:last-child { animation: leg-b 0.32s ease-in-out infinite; }
.walker.is-walking .walker-bubble { opacity: 0; }
.walker.is-left .walker-body { transform: scaleX(-1); }
@keyframes walker-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes leg-a { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }
@keyframes leg-b { 0%, 100% { transform: rotate(22deg); } 50% { transform: rotate(-22deg); } }
.walker.is-in { transition: left 0.3s, bottom 0.3s, opacity 0.3s, transform 0.3s; bottom: 30%; opacity: 0; transform: translateX(-50%) scale(0.6); }
.walker.is-in .walker-bubble { opacity: 0; }
.arcade-hint { position: absolute; left: 3%; bottom: 5%; font-size: 0.66rem; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; }

/* 文字清單 */
.arcade-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-sm); margin-top: var(--space-lg); }
.arcade-list-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.ali-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.ali-icon { font-size: 1.5rem; flex: none; }
.ali-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.76rem; color: var(--color-text-muted); }
.ali-text b { font-size: 0.92rem; color: var(--color-text); }
.ali-rules { flex: none; padding: 5px 10px; border-radius: var(--radius-full); font-size: 0.72rem; color: var(--color-text-secondary); border: 1px solid var(--color-border); text-decoration: none; }
.ali-rules:hover { color: var(--color-text); border-color: var(--color-text-muted); }

@media (max-width: 760px) {
    .arcade-map { aspect-ratio: 4 / 3; min-height: 380px; }
    .hall { width: 30%; min-width: 108px; bottom: 32%; }
    .hall-window { height: 58px; }
    .hall-reels span { width: 26px; height: 36px; font-size: 1rem; }
    .hall-info { font-size: 0.62rem; }
    .hall-info-num { font-size: 0.8rem; }
    .hall-felt .svg-card { width: 32px; height: auto; }
    .hall-dice svg { width: 30px; height: 30px; }
    .arcade-counter { display: none; }
    .arcade-hint { display: none; }
    .arcade-moon { width: 30px; height: 30px; }
}

/* ── 整頁版大廳 ── */
.arcade-full { width: 100%; }
.arcade-full .arcade-map { height: calc(100vh - var(--navbar-height)); min-height: 520px; max-height: none; aspect-ratio: auto; margin: 0; border-radius: 0; border: none; box-shadow: none; }
.arcade-full .arcade-title { top: 7%; font-size: clamp(1rem, 2.4vw, 1.6rem); }
.arcade-full .arcade-sky { inset: 0 0 40% 0; }
.arcade-full .arcade-floor { top: 60%; }
.arcade-full .arcade-rug { top: 63%; }
.arcade-full .hall { width: min(22%, 300px); bottom: 24%; }
.arcade-full .hall-window { height: clamp(74px, 12vh, 120px); }
.arcade-full .hall-reels span { width: clamp(34px, 4.6vw, 52px); height: clamp(44px, 6vh, 66px); font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.arcade-full .walker { bottom: 7%; }
.arcade-full .arcade-counter { bottom: 5%; }
.arcade-note { position: absolute; left: 3%; bottom: 5%; z-index: 5; max-width: 420px; margin: 0; }
.arcade-full .arcade-hint { left: 50%; transform: translateX(-50%); bottom: 2%; }
@media (max-width: 760px) {
    .arcade-full .arcade-map { min-height: 460px; }
    .arcade-full .hall { width: 30%; bottom: 30%; }
    .arcade-full .hall-window { height: 58px; }
    .arcade-full .hall-reels span { width: 26px; height: 36px; font-size: 1rem; }
    .arcade-note { left: 3%; right: 3%; max-width: none; top: 14%; bottom: auto; padding: 12px 14px; }
    .arcade-note svg { display: none; }
}

.neon-cyan { color: #9be7ff; box-shadow: 0 0 12px rgba(155,231,255,0.7), inset 0 0 10px rgba(155,231,255,0.25); text-shadow: 0 0 8px rgba(155,231,255,0.9); }
.hall-horses .hall-building { background: linear-gradient(180deg, #24435c, #14283a); }
.hall-turf { background: linear-gradient(180deg, #2f7d4a 0 45%, #b8845a 45% 100%); gap: 2px; }
.hall-runner { display: inline-block; font-size: 1.5rem; transform: scaleX(-1); animation: hall-run 0.9s ease-in-out infinite; animation-delay: calc(var(--i) * 0.15s); }
@keyframes hall-run { 0%, 100% { transform: scaleX(-1) translateY(0); } 50% { transform: scaleX(-1) translateY(-4px); } }
.arcade-full .hall { width: min(17%, 260px); }
@media (max-width: 760px) {
    .hall { width: 18%; min-width: 64px; }
    .arcade-full .hall { width: 18.5%; }
    .hall-info b { display: none; }
    .hall-sign { padding: 4px 8px; font-size: 0.62rem; letter-spacing: 0; }
    .hall-sign { padding: 4px 8px; font-size: 0.62rem; letter-spacing: 0; }
    .hall-runner { font-size: 1rem; }
}


.hall-poker .hall-building { background: linear-gradient(180deg, #1f4d5b, #12303a); }

.arcade-back { position: absolute; left: 3%; top: 4%; z-index: 6; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,0.45); color: rgba(255,255,255,0.85); font-size: 0.76rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.15); }
.arcade-back:hover { color: #fff; border-color: #ffd166; }
/* 主大廳：三棟建築 */
.hall-arcade { left: 10%; } .hall-checkin { left: 26%; } .hall-rpg { left: 50%; } .hall-lounge { left: 74%; } .hall-obs { left: 90%; }
/* 星穹遠征：大廳裡最大的一間 */
.arcade-full .hall-rpg { width: min(30%, 400px); bottom: 20%; z-index: 3; }
.hall-rpg .hall-building { background: linear-gradient(180deg, #3d2a6b, #1a1030); border-color: rgba(184,155,255,.55); box-shadow: 0 0 46px rgba(150,110,255,.35), inset 0 0 30px rgba(90,60,160,.4); }
.hall-rpg .hall-sign { font-size: 1.05em; }
.hall-rpg .hall-window-emoji span { font-size: 1.25em; }
.hall-rpg .hall-info b { font-size: .78rem; }
.neon-violet { color: #e7d8ff; text-shadow: 0 0 10px rgba(184,140,255,.95), 0 0 26px rgba(120,70,220,.75); border-color: rgba(184,140,255,.6) !important; }
.hall-rpg::after { content: ''; position: absolute; inset: -6% -4% 8%; border-radius: 18px; background: radial-gradient(60% 55% at 50% 40%, rgba(150,110,255,.20), transparent 70%); pointer-events: none; z-index: -1; }
@media (max-width: 900px) { .arcade-full .hall-rpg { width: 36%; } }
.hall-checkin .hall-building { background: linear-gradient(180deg, #4a3a1c, #2e2412); }
.lobby-map .hall { width: 20%; min-width: 130px; }
.arcade-full.lobby-map .hall { width: min(20%, 280px); }
.hall-arcade .hall-building { background: linear-gradient(180deg, #4a2a5c, #2f1a3c); }
.hall-lounge .hall-building { background: linear-gradient(180deg, #24435c, #14283a); }
.hall-obs .hall-building { background: linear-gradient(180deg, #2b2b55, #17172f); }
.neon-blue { color: #86b4f5; box-shadow: 0 0 12px rgba(134,180,245,0.7), inset 0 0 10px rgba(134,180,245,0.25); text-shadow: 0 0 8px rgba(134,180,245,0.9); }
.neon-violet { color: #c9a3ff; box-shadow: 0 0 12px rgba(201,163,255,0.7), inset 0 0 10px rgba(201,163,255,0.25); text-shadow: 0 0 8px rgba(201,163,255,0.9); }
.hall-window-emoji { font-size: 2rem; gap: 10px; }
.hall-window-emoji span { animation: art-bob 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.3s); }
.lobby-map .hall { width: 22%; min-width: 150px; }
.arcade-full.lobby-map .hall { width: min(22%, 320px); }
@media (max-width: 760px) { .lobby-map .hall, .arcade-full.lobby-map .hall { width: 28%; min-width: 92px; } }

/* ═══ 手機版大廳（≤ 640px）：地圖改成兩欄卡片，不再用絕對定位擠在一起 ═══ */
@media (max-width: 640px) {
    .arcade-map, .arcade-full .arcade-map {
        display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; align-content: start;
        height: auto; min-height: calc(100vh - var(--navbar-height)); max-height: none; aspect-ratio: auto;
        padding: 84px 14px 110px;
    }
    .arcade-sky, .arcade-full .arcade-sky { inset: 0; }
    .arcade-floor, .arcade-rug, .arcade-full .arcade-floor, .arcade-full .arcade-rug { display: none; }
    .arcade-title, .arcade-full .arcade-title { top: 26px; }
    .arcade-moon { top: 18px; right: 6%; }
    .hall, .lobby-map .hall, .arcade-full .hall, .arcade-full.lobby-map .hall {
        position: relative; left: auto !important; bottom: auto; width: auto; min-width: 0; transform: none;
        padding-top: 16px;   /* 留位置給上方的標籤 */
    }
    .hall:hover, .hall.is-sel { transform: translateY(-4px); }
    .hall.is-entering { transform: scale(1.03); }
    .hall-sign { font-size: 0.68rem; padding: 5px 8px; letter-spacing: 0; white-space: normal; text-align: center; }
    .hall-tag { top: 2px; }
    .hall-window, .arcade-full .hall-window { height: 64px; }
    .hall-info { font-size: 0.66rem; }
    .hall-info-num { font-size: 0.85rem; }
    .walker, .arcade-full .walker { position: absolute; bottom: 18px; }
    .arcade-hint, .arcade-full .arcade-hint { display: none; }
    .arcade-back { top: 12px; left: 12px; }
    .arcade-counter { display: none; }
}

/* ═══ 遊戲大廳下方：多人房即時狀態 ═══ */
.live-wrap { padding: var(--space-xl) var(--space-md) var(--space-2xl); }
.live-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: var(--space-md); }
.live-sub { font-size: 0.74rem; color: var(--color-text-muted); }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-md); }
.live-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); text-decoration: none; color: inherit; transition: transform 0.2s, border-color 0.2s; }
.live-card:hover { transform: translateY(-3px); border-color: #f5c56b; }
.live-card.is-bj { border-left: 4px solid #7cf5b0; } .live-card.is-poker { border-left: 4px solid #86b4f5; }
.live-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--color-text-muted); }
.live-phase { padding: 2px 8px; border-radius: 999px; background: rgba(124,245,176,0.12); color: #7cf5b0; font-weight: 600; }
.live-card.is-full .live-phase { background: rgba(255,107,122,0.12); color: #ff8b98; }
.live-name { font-size: 0.95rem; }
.live-sub2 { font-size: 0.72rem; color: var(--color-text-secondary); }
.live-players { font-size: 0.74rem; color: var(--color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-cta { margin-top: 4px; font-size: 0.74rem; font-weight: 700; color: #f5c56b; }
.room-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--color-text-muted); border: 1px dashed var(--color-border); border-radius: 14px; font-size: 0.82rem; }
@media (max-width: 640px) { .live-wrap { padding: var(--space-lg) 12px var(--space-2xl); } }

/* ═══ 18 歲驗證 ═══ */
.age-gate { min-height: calc(100vh - var(--navbar-height)); display: flex; align-items: center; justify-content: center; padding: var(--space-xl) var(--space-md); background: radial-gradient(800px 400px at 50% 0%, rgba(227,93,106,0.18), transparent 60%), var(--color-bg); }
.age-card { width: min(560px, 100%); text-align: center; padding: 36px 32px 28px; border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; border: 4px solid #e35d6a; color: #e35d6a; font-weight: 900; font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.age-card h1 { font-size: 1.5rem; margin: 0 0 12px; }
.age-card p { font-size: 0.88rem; line-height: 1.7; color: var(--color-text-secondary); margin: 0 0 10px; }
.age-note { font-size: 0.76rem !important; color: var(--color-text-muted) !important; }
.age-actions { display: grid; gap: 10px; margin: 22px 0 14px; }
.age-actions form { display: contents; }
.age-yes { width: 100%; padding: 14px 18px; font-size: 1rem; font-weight: 700; }
.age-no { width: 100%; padding: 12px 18px; }
.age-back { font-size: 0.78rem; color: var(--color-text-muted); text-decoration: none; }
.age-back:hover { color: var(--color-text); }
@media (max-width: 480px) { .age-card { padding: 28px 18px 22px; } .age-card h1 { font-size: 1.25rem; } }

/* ═══════════ 兩層大廳：1F 一般廳、2F 觀星甲板（星穹遠征） ═══════════ */
.lobby-two .arcade-sky { inset: 0 0 30% 0; }
.lobby-two .arcade-floor { top: 70%; }
.lobby-two .arcade-rug { top: 72%; height: 30%; width: 34%; }

/* 甲板本體：懸空的觀測平台 */
.lobby-two .deck { position: absolute; left: 4%; right: 4%; bottom: 49%; height: 0; z-index: 1; pointer-events: none; }
.lobby-two .deck-slab { position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 4px;
    background: linear-gradient(180deg, #3d2f6b 0%, #241a45 55%, #17102e 100%);
    box-shadow: 0 10px 26px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16); }
.lobby-two .deck-edge { position: absolute; left: 0; right: 0; top: 14px; height: 6px;
    background: repeating-linear-gradient(90deg, rgba(184,140,255,.55) 0 10px, rgba(184,140,255,0) 10px 24px);
    filter: blur(0.4px); opacity: .8; }
/* 甲板護欄：站在上面的人不會掉下來（大概） */
.lobby-two .deck-rail { position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
    border-top: 2px solid rgba(184,140,255,.45); border-left: 2px solid rgba(184,140,255,.3); border-right: 2px solid rgba(184,140,255,.3);
    border-radius: 6px 6px 0 0;
    background: repeating-linear-gradient(90deg, rgba(184,140,255,.28) 0 2px, transparent 2px 26px); }
.lobby-two .deck-label { position: absolute; left: 1.2%; bottom: 49.8%; z-index: 2; pointer-events: none;
    font-size: .62rem; font-weight: 800; letter-spacing: .16em; color: rgba(201,163,255,.85);
    text-shadow: 0 0 10px rgba(150,110,255,.6); }
.lobby-two .deck-label-1f { bottom: 2.5%; left: 1.2%; color: rgba(255,233,176,.55); text-shadow: none; }

/* 樓梯：右側連接兩層 */
.lobby-two .stairs { position: absolute; left: 50%; transform: translateX(-50%); bottom: 6%; width: 15%; min-width: 130px; height: 43%;
    display: flex; flex-direction: column-reverse; z-index: 1; pointer-events: none;
    clip-path: polygon(26% 0, 74% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, #2b1f4d 0%, #1b1436 60%, #120d26 100%);
    box-shadow: 0 -6px 24px rgba(120,80,200,.25); }
.lobby-two .stairs i { display: block; width: 100%; flex: 1 1 0;
    border-top: 2px solid rgba(184,140,255,.32);
    box-shadow: inset 0 4px 8px rgba(0,0,0,.42); }
.lobby-two .stairs i:nth-child(odd) { background: rgba(255,255,255,.035); }

/* 樓層定位 */
.lobby-two.arcade-full .hall[data-floor="0"] { bottom: 6%; width: min(19%, 250px); }
.lobby-two.arcade-full .hall[data-floor="1"] { bottom: 41%; }
.lobby-two.arcade-full .hall-rpg { width: min(34%, 460px); bottom: 41%; z-index: 3; }
.lobby-two.arcade-full .hall[data-floor="0"] .hall-window { height: clamp(56px, 8vh, 84px); }
.lobby-two .hall[data-floor="1"] .hall-info { margin-top: 0; padding: 6px 10px 7px; border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, rgba(20,14,40,.92), rgba(20,14,40,.55) 85%, transparent);
    backdrop-filter: blur(2px); }

/* 玩家：多一個垂直座標，才能上樓 */
.lobby-two .walker, .lobby-two.arcade-full .walker { bottom: var(--wy, 7%);
    transition: left .8s cubic-bezier(.4,.1,.3,1), bottom .7s cubic-bezier(.45,.05,.35,1); }
.lobby-two .walker.is-climbing .walker-body { animation: walker-step .26s ease-in-out infinite; }
.lobby-two .walker.is-in { bottom: var(--wy, 7%); }


@media (max-width: 900px) {
    .lobby-two.arcade-full .hall-rpg { width: 44%; }
    .lobby-two.arcade-full .hall[data-floor="0"] { width: 22%; min-width: 100px; }
    .lobby-two .deck-label, .lobby-two .stairs { display: none; }
}
/* 手機版沿用卡片式排版，兩層在這裡沒有意義 */
@media (max-width: 640px) {
    .lobby-two .deck, .lobby-two .deck-label, .lobby-two .stairs { display: none; }
    .lobby-two.arcade-full .hall[data-floor="0"],
    .lobby-two.arcade-full .hall[data-floor="1"],
    .lobby-two.arcade-full .hall-rpg { position: relative; bottom: auto; width: auto; min-width: 0; }
    .lobby-two.arcade-full .hall-rpg { grid-column: 1 / -1; }
}
