/* 經典天堂倖存者：建角第二步「職業能力選擇」（原版 p10934、p10935）、免責聲明、背景不硬放大 */
.st-stage { background: #000 center / 100% 100% no-repeat; }
.st-stage::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); pointer-events: none; }
.st-title { position: absolute; left: 3%; top: 2.5%; width: 24.5%; }
.st-left, .st-right { position: absolute; top: 14%; }
.st-left { left: 2.5%; width: 47.9%; aspect-ratio: 383 / 350; }
.st-right { left: 50.6%; width: 47%; aspect-ratio: 406 / 350; }
.st-right.closed { display: none; }
.st-panel { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-pre { position: absolute; top: 16%; width: 27.4%; aspect-ratio: 105 / 31; border: 0; padding: 0; background: transparent center / 100% 100% no-repeat; cursor: pointer; }
.st-bar { position: absolute; left: 41.2%; width: 44.6%; height: 3.3%; overflow: hidden; }
.st-bar i { display: block; height: 100%; background: url(../assets/ui/orig/s6509.png?v=2) left center no-repeat; }
.st-v, .st-left-n { position: absolute; width: 5.5%; height: 4.6%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: clamp(11px, 1.6vw, 15px); font-weight: 700; text-shadow: 0 1px 1px #000; }
.st-left-n { left: 46%; top: 79.6%; width: 8.9%; height: 6.9%; color: #ffe28a; font-size: clamp(12px, 1.9vw, 17px); }
.st-arr { position: absolute; width: 4.7%; aspect-ratio: 18 / 16; border: 0; padding: 0; background: transparent center / 100% 100% no-repeat; cursor: pointer; }
.st-arr:disabled { opacity: .35; cursor: default; }
.st-arr:not(:disabled):hover { filter: brightness(1.4); }
.st-hot, .st-ghot { position: absolute; border: 0; padding: 0; background: transparent; cursor: help; }
.st-hot { width: 12%; height: 4.6%; }
.st-ghot { width: 6%; height: 25%; }
.st-rl, .st-rv { position: absolute; height: 4.86%; display: flex; align-items: center; font-size: clamp(10px, 1.4vw, 13px); color: #d8cba8; white-space: nowrap; overflow: hidden; cursor: help; }
.st-rl { width: 26.6%; padding-left: 4px; box-sizing: border-box; }
.st-rv { width: 9.4%; justify-content: center; color: #fff; }
.st-rl.base { color: #ffe28a; font-weight: 700; }
.st-x { position: absolute; right: 2.2%; top: 2.2%; width: 4.5%; aspect-ratio: 16 / 15; border: 0; padding: 0; background: url(../assets/ui/orig/s6125.png?v=2) center / 100% 100% no-repeat; cursor: pointer; }
.st-tip { position: absolute; left: 0; right: 0; top: 101%; font-size: clamp(11px, 1.5vw, 13px); color: #ffe9a8; text-shadow: 0 1px 2px #000, 0 0 6px #000; text-align: center; }
.st-btns2 { position: absolute; left: 2.5%; top: 74%; width: 47.9%; display: flex; justify-content: center; gap: 4%; }
.st-btns2 .obtn { position: static; width: 35.8%; aspect-ratio: 137 / 30; }
.st-reset { background-image: url(../assets/ui/orig/s6527.png?v=2); }
.st-reset:hover { background-image: url(../assets/ui/orig/s6528.png?v=2); }
.st-reset:active { background-image: url(../assets/ui/orig/s6529.png?v=2); }
.st-detail { background-image: url(../assets/ui/orig/p10886.png?v=2); }
.st-detail:hover { background-image: url(../assets/ui/orig/p10887.png?v=2); }
.st-detail:active { background-image: url(../assets/ui/orig/p10888.png?v=2); }
.st-name { left: 32%; bottom: 4.6%; width: 33%; }
.st-msg { position: absolute; left: 0; right: 0; bottom: 10.5%; text-shadow: 0 1px 2px #000, 0 0 6px #000; }
.st-stage .obtn.st-back { left: 3%; right: auto; }
.st-stage .obtn.st-ok { left: auto; right: 3%; bottom: 3.5%; }
@media (max-width: 640px), (max-aspect-ratio: 4 / 5) {
  .st-stage { width: 100vw; aspect-ratio: auto; min-height: 100vh; background-size: cover; background-position: 60% top;
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 70px; box-sizing: border-box; }
  .st-title, .st-left, .st-right, .st-btns2, .st-name, .st-msg { position: relative; left: auto; top: auto; bottom: auto; }
  .st-title { width: 170px; align-self: flex-start; }
  .st-left, .st-right, .st-btns2 { width: min(100%, 420px); }
  .st-right { margin-bottom: 22px; }
  .st-name { width: min(266px, 92vw); }
  .st-stage .obtn.st-back, .st-stage .obtn.st-ok { position: fixed; bottom: 12px; }
  .st-stage .obtn.st-back { left: 10px; width: 100px; }
  .st-stage .obtn.st-ok { right: 10px; width: 150px; }
}

/* 免責聲明 */
#legal { z-index: 30; background: rgba(0, 0, 0, .78); }
.legal-box { width: min(620px, 94vw); max-height: 90vh; display: flex; flex-direction: column; }
.legal-txt { overflow-y: auto; font-size: 14px; line-height: 1.75; color: #e2d6b4; padding: 0 6px; touch-action: pan-y; }
.legal-txt p { margin: 0 0 8px; }
.legal-txt b { color: #ffe28a; }

/* 背景不硬放大：原圖最多放大到 1067 寬（1.33 倍）置中，四周用同一張圖的模糊暗底補滿 */
.title-bg, .load-bg { background-image: none !important; background-color: #000; overflow: hidden; }
.title-bg::before, .load-bg::before { content: ""; position: absolute; inset: -40px; background-position: center; background-size: cover; background-repeat: no-repeat; filter: blur(22px) brightness(.38); }
.title-bg::before { background-image: url(../assets/ui/login.webp?v=2); }
.load-bg::before { background-image: url(../assets/ui/loading.webp?v=2); }
.title-bg::after, .load-bg::after { background-position: center !important; background-repeat: no-repeat !important; background-size: 100% 100%, min(100vw, 1067px, calc(100vh * 4 / 3)) auto !important; }
.title-bg::after { background-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .6)), url(../assets/ui/login.webp?v=2) !important; }
.load-bg::after { background-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .6)), url(../assets/ui/loading.webp?v=2) !important; }
.sel-stage, .cr-stage { width: min(100vw, calc(100vh * 4 / 3), 1067px); }
.sel-scr, .cr-scr { background: #050403; }
