:root{color-scheme:dark;--bg:#0b141b;--panel:#101d25;--line:#263a42;--text:#e8eee9;--muted:#8ca1a9;--gold:#efcf86;--green:#92d1b4;font-family:"Malgun Gothic","Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);overflow:hidden}button{font:inherit;cursor:pointer;border:1px solid var(--line);color:var(--text);background:#172a32;border-radius:7px;transition:background .16s,border-color .16s,transform .16s}button:hover{background:#244049;border-color:#80b8a6}button:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button:disabled{opacity:.4;cursor:default}kbd{font:10px "Segoe UI",sans-serif;border:1px solid #34484e;background:#14242c;color:#b4c5ca;padding:3px 5px;border-radius:4px;white-space:nowrap}.shell{height:100dvh;display:flex;flex-direction:column;max-width:1920px;margin:auto}.topbar{height:83px;flex-shrink:0;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#0e1a22}.brand{display:flex;align-items:center;gap:13px}.brand-mark{color:var(--gold);font-size:38px}.brand strong{font-size:19px;letter-spacing:-.6px}.brand small{display:block;font-size:8px;letter-spacing:2.1px;color:var(--muted);margin-top:7px}.clock{display:flex;align-items:center;gap:12px}.clock small{font-size:9px;letter-spacing:1px;color:var(--muted)}.clock strong{display:block;font:30px/1.1 "Segoe UI",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:2px}.live-dot{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 13px #94d6b968}.top-actions{display:flex;gap:20px;align-items:center;font-size:11px;color:var(--muted)}.quiet{padding:10px 12px;font-size:11px}.quiet kbd{margin-left:10px}main{display:flex;flex:1;min-height:0;padding:16px 20px 0;gap:18px}.arena{position:relative;flex:1;min-width:0;overflow:hidden;border:1px solid #30464c;border-radius:10px;background:#162a2c}canvas{display:block;width:100%;height:100%}.field-label{position:absolute;left:22px;top:19px;font-size:12px;color:#d8e7de;display:flex;align-items:center;gap:9px;pointer-events:none}.field-label i{width:4px;height:4px;background:var(--gold);transform:rotate(45deg)}.field-label span{margin-left:7px;border:1px solid #55757066;font-size:9px;padding:4px 7px;border-radius:4px;color:#9db5ad}.leader-health{position:absolute;bottom:37px;left:50%;transform:translateX(-50%);width:240px;background:#081217b8;padding:10px 14px;border:1px solid #52615280;border-radius:6px;pointer-events:none}.leader-health>div:first-child{display:flex;justify-content:space-between;font-size:10px;margin-bottom:7px;color:var(--gold)}.track{height:5px;background:#26343a;border-radius:8px;overflow:hidden}.track>div{height:100%;width:100%;background:var(--gold);border-radius:8px;transition:width .12s}.world-hint{position:absolute;bottom:15px;width:100%;text-align:center;color:#9cb4ae;font-size:10px;pointer-events:none}.sidebar{width:246px;flex-shrink:0;overflow-y:auto;scrollbar-width:thin;padding:5px 0 0}.eyebrow{color:#74978f;font-size:8px;font-weight:bold;letter-spacing:2px}.level-row{display:flex;justify-content:space-between;align-items:center;margin:9px 0 12px}.level-row>span{font-size:12px}.level-row strong{font:26px "Segoe UI",sans-serif;color:var(--green)}.level-row small{font-size:12px;color:#617d84}.xp{height:4px}.xp>div{background:var(--green);width:0}.xp-label{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;margin-top:7px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:22px 0 11px}.section-title h2{font-size:12px;font-weight:600;margin:0}.section-title>span{font-size:10px;color:var(--muted)}.party-member{display:flex;gap:10px;align-items:center;padding:9px 10px;background:#12232b;border:1px solid #243841;border-radius:6px;margin-bottom:6px;min-height:58px}.member-icon{width:30px;height:30px;border-radius:50%;border:1px solid var(--member-color);display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--member-color);background:#09171e;flex-shrink:0}.member-info{flex:1;min-width:0}.member-heading{display:flex;justify-content:space-between;gap:4px;align-items:center}.member-heading strong{font-size:11px}.member-heading small{font-size:8px;color:var(--muted)}.member-detail{font-size:8px;color:var(--muted);margin:4px 0 5px;display:flex;justify-content:space-between}.member-info .track{height:3px}.member-info .track>div{background:var(--member-color)}.party-member.down{opacity:.6}.empty-member{border:1px dashed #2b4146;color:#718b91;padding:12px 8px;font-size:10px;border-radius:6px;text-align:center;margin-top:8px}.passive-row{display:flex;gap:9px;align-items:center;border-bottom:1px solid #23353c;padding:8px 0}.passive-symbol{font:9px "Segoe UI",sans-serif;color:#95b8ab;background:#1a3035;border-radius:3px;width:28px;padding:5px 0;text-align:center}.passive-name{font-size:10px;flex:1}.ranks{display:flex;gap:3px}.ranks i{width:5px;height:5px;border-radius:1px;background:#294048}.ranks i.active{background:var(--gold)}.empty-passive{font-size:10px;color:#718b91;line-height:1.8;padding:10px 0}.sidebar-note{color:#66838c;font-size:9px;line-height:1.8;border-top:1px solid #253a41;padding-top:15px;margin-top:20px}footer{height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 23px;color:#7e99a0;font-size:9px}footer kbd{margin-right:5px}footer i{font-style:normal;margin:0 8px}.divider{margin:0 15px;color:#3c5a63}.notice{position:absolute;top:65px;left:50%;transform:translateX(-50%);padding:10px 18px;color:var(--gold);background:#0b1922d9;border:1px solid #5a6150;border-radius:30px;white-space:nowrap;font-size:12px;opacity:0;transition:opacity .2s;pointer-events:none}.notice.visible{opacity:1}.overlay{position:fixed;inset:0;background:#050e16ce;backdrop-filter:blur(6px);z-index:5;display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}.overlay.hidden{display:none}.modal{max-width:850px;width:100%;text-align:center;padding:35px 40px;border:1px solid #3e5558;border-radius:16px;background:radial-gradient(ellipse at 50% 0,#243d40 0,#12232d 52%,#101c26 100%);box-shadow:0 30px 100px #0007}.modal.compact{max-width:490px}.modal .eyebrow{color:var(--gold);font-size:10px;letter-spacing:3px}.modal h1{font-size:40px;line-height:1.3;letter-spacing:-2px;margin:13px 0}.modal p{font-size:12px;color:#a4bbc0;line-height:1.9;margin:10px 0}.modal .intro{font-size:14px}.emblem{height:106px;display:flex;align-items:center;justify-content:center;gap:12px;margin:4px 0 8px}.hero-token{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border:1px solid currentColor;transform:rotate(45deg);background:#12232d;box-shadow:0 0 25px #a6ddb514}.hero-token span{transform:rotate(-45deg);font-size:19px}.hero-token.leader{height:62px;width:62px;margin:0 5px;box-shadow:0 0 35px #edce7930}.hero-token.leader span{font-size:30px}.intro-facts{display:flex;justify-content:center;gap:32px;margin:25px 0 27px}.intro-facts strong{display:block;font:20px "Segoe UI",sans-serif;color:#dce9de}.intro-facts small{display:block;font-size:9px;color:#7c9a9f;margin-top:7px}.primary{background:var(--gold);color:#18262a;border-color:var(--gold);padding:14px 35px;font-weight:bold;min-width:190px}.primary:hover{background:#ffe5a8;border-color:#ffe5a8;transform:translateY(-1px)}.modal-help{margin-top:18px!important;font-size:10px!important;color:#7b99a1!important}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:27px;text-align:left}.choice-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:237px;padding:20px 18px;border:1px solid #3e555b;background:#10222b;text-align:left;border-radius:9px;--card-color:var(--green)}.choice-card:hover{border-color:var(--card-color);background:#1c333d;transform:translateY(-4px)}.card-top{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:9px;color:#9db4bb}.card-top>span{color:var(--card-color)}.card-icon{width:43px;height:43px;display:flex;align-items:center;justify-content:center;border:1px solid var(--card-color);border-radius:9px;color:var(--card-color);margin:18px 0 13px;font-size:18px}.choice-card h2{margin:0 0 7px;font-size:18px;letter-spacing:-.8px;color:#edf3ee;line-height:1.4}.choice-card .card-sub{color:var(--card-color);font-size:11px;line-height:1.6}.choice-card p{font-size:10px;line-height:1.7;color:#9db1b9;margin:11px 0 0}.choice-footnote{font-size:10px;color:#78959e;margin-top:21px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:24px 0}.result-stats strong{display:block;font:25px "Segoe UI",sans-serif;color:var(--gold)}.result-stats small{font-size:10px;color:#8ba6ac}.secondary{padding:12px 24px;margin-top:11px;min-width:190px}.pause-buttons{display:flex;flex-direction:column;align-items:center;margin:24px 0 8px}@media(max-width:1000px){.sidebar{width:215px}main{gap:12px;padding:12px 12px 0}.topbar{padding:0 18px}.modal{padding:26px}.choice-card{padding:15px 12px}.top-actions{gap:12px}.brand small{letter-spacing:1px}}@media(max-height:760px){.topbar{height:65px}.section-title{margin-top:15px}.party-member{padding:6px 8px;min-height:49px;margin-bottom:4px}.sidebar-note{display:none}.modal{padding:25px 32px}.emblem{height:90px}.intro-facts{margin:18px 0}.passive-row{padding:6px 0}.modal h1{font-size:34px}}@media(max-width:720px){.sidebar{width:185px}.brand small{display:none}.brand strong{font-size:14px}.brand-mark{font-size:28px}.clock strong{font-size:24px}.top-actions>span{display:none}.quiet kbd{display:none}footer>span{display:none}.cards{gap:7px}.choice-card h2{font-size:14px}.choice-card{padding:12px 9px}.modal{padding:25px 18px}.intro-facts{gap:20px}.hero-token{width:32px;height:32px}.emblem{gap:8px}.member-heading small{display:none}.leader-health{width:190px}.field-label{left:12px}.field-label span{display:none}}
.start-modal .title-logo{margin:14px auto 12px;line-height:1.1}
.start-modal .title-logo img{display:block;width:100%;height:190px;object-fit:contain;filter:drop-shadow(0 3px 2px #0009)}
@media(max-height:760px){.start-modal .title-logo img{height:145px}.start-modal .title-logo{margin:10px auto}}
@media(max-width:720px){.start-modal .title-logo img{height:clamp(105px,24vw,170px)}}
.boss-hud{position:absolute;top:55px;left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 34px));padding:12px 16px;background:#0b1220de;border:1px solid #6c8eaf;border-radius:7px;box-shadow:0 4px 20px #0008;pointer-events:none}
.boss-hud[hidden]{display:none}.boss-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.boss-heading strong{font-size:14px;color:#bedcff}.boss-heading small{font-size:9px;font-weight:normal;color:#92aac6;margin-left:9px}.boss-heading>span{font-size:10px;color:#aebfd1}.boss-hud .track{height:7px;background:#273849}.boss-hud .track>div{background:linear-gradient(90deg,#366eae,#a4d7fa)}.notice.boss-notice{top:125px}

.start-modal{padding:60px 40px 54px}.start-modal .title-logo{margin:0 auto 46px;max-width:600px}.start-modal .title-logo img{height:220px}.round-intro{padding:52px 26px}.round-intro h1{font-size:29px;letter-spacing:-1px;color:var(--gold);margin:0 0 36px;line-height:1.5}@media(max-width:720px){.start-modal{padding:42px 24px}.start-modal .title-logo img{height:clamp(130px,28vw,210px)}.round-intro h1{font-size:clamp(21px,5vw,29px)}}@media(max-height:600px){.start-modal{padding:28px}.start-modal .title-logo{margin-bottom:24px}.start-modal .title-logo img{height:150px}}

/* 원작 풍경과 현재 SURVIVAL 로고를 조합한 4:3 타이틀 */
.overlay.title-screen{padding:0;background:#10170f;backdrop-filter:none;overflow:hidden}
.title-scene{position:relative;width:min(100vw,133.333333vh);height:min(75vw,100vh);flex:none;isolation:isolate}
.title-landscape,.title-sky,.title-shade{position:absolute;inset:0;width:100%;height:100%}
.title-landscape{object-fit:fill;image-rendering:pixelated}
.title-sky{height:38%;background:linear-gradient(#a8ccd0,#dce8e8);pointer-events:none}
.title-shade{background:linear-gradient(transparent 50%,#0a120a18 70%,#03080372);pointer-events:none}
.title-scene .title-logo{position:absolute;right:3%;top:4%;width:54%;height:34%;margin:0;line-height:1}
.title-scene .title-logo img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(2px 4px 1px #26311b88)}
.title-menu{position:absolute;left:5%;right:5%;bottom:12%;display:flex;align-items:center;justify-content:center;gap:clamp(12px,3vw,50px)}
.title-menu button{border:0;background:none;border-radius:0;padding:10px 4px;font-family:Papyrus,'Palatino Linotype',Georgia,serif;font-size:clamp(17px,2.3vw,32px);font-weight:bold;color:#f4f0cf;text-shadow:2px 3px #101507,-1px -1px #4a4a29;letter-spacing:1px;white-space:nowrap}
.title-menu button:hover,.title-menu button:focus-visible{color:#ffe995;transform:translateY(-2px);background:none}
.title-music{position:absolute;right:3%;bottom:3%;padding:6px 10px;font:10px 'Segoe UI',sans-serif;background:#142015b0;color:#e5e7cc;border:1px solid #96996b66}
.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}
.collection-grid article{padding:15px 5px;background:#0b1a22;border:1px solid #3e5558;border-radius:6px}.collection-grid article>span{font-size:26px}.collection-grid h2{font-size:16px;margin:10px 0 0}.collection-grid p{margin:4px 0;font-size:11px}
body.cinematic .topbar,body.cinematic .sidebar,body.cinematic footer,body.cinematic .leader-health,body.cinematic .world-hint,body.cinematic .field-label,body.cinematic .notice,body.cinematic .boss-hud{display:none}
body.cinematic main{padding:0;gap:0}body.cinematic .arena{border:0;border-radius:0}
.overlay.dialogue-screen{background:linear-gradient(#050a1044,#050a1000 40%,#050a1044);backdrop-filter:none;padding:24px}
.dialogue-layout{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.dialogue-location{align-self:flex-start;margin:15px;padding:10px 18px;background:#111814ce;border:1px solid #a38e63;color:#f2dfaa;font-size:14px;letter-spacing:1px}
.dialogue-box{pointer-events:auto;position:relative;display:flex;gap:24px;align-items:flex-start;min-height:185px;padding:24px 28px;margin:0 auto 10px;width:min(100%,1000px);border:3px double #9d9e8a;background:linear-gradient(145deg,#343b38f5,#141f1ef5);box-shadow:0 8px 30px #0008}
.dialogue-portrait{width:116px;height:116px;object-fit:contain;object-position:bottom;image-rendering:pixelated;flex:none}
.dialogue-copy{flex:1;min-width:0}.dialogue-copy>strong{font-size:19px;color:#f8e5b8}.dialogue-copy>p{font-size:clamp(16px,2vw,24px);line-height:1.65;white-space:pre-line;margin:12px 0 16px;color:#f4f0db}
.dialogue-actions{display:flex;justify-content:flex-end;gap:12px}.dialogue-actions button{padding:6px 12px;font-size:12px;background:#1b2a26;color:#e7dcbe;border-color:#74785e}
@media(max-width:600px){.dialogue-box{padding:18px 14px;gap:12px}.dialogue-portrait{width:76px;height:90px}.title-menu{gap:10px}.title-menu button{font-size:clamp(13px,3vw,20px);letter-spacing:0}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.title-menu button img{display:block;height:clamp(28px,min(4.7vw,6.3vh),72px);width:auto;image-rendering:pixelated}.title-menu button:hover img,.title-menu button:focus-visible img{filter:brightness(1.2) drop-shadow(0 0 5px #ffe68088)}

.title-credit-band{position:absolute;left:0;right:0;bottom:0;height:10%;background:linear-gradient(#10190b00,#0b1409 38%);pointer-events:none}.title-credit{position:absolute;left:50%;bottom:3.4%;transform:translateX(-50%);padding:5px 8px;background:none;border:0;color:#c9c9b4;font-size:13px;white-space:nowrap}.title-credit:hover{background:none;color:#eee5b8;text-decoration:underline}.credits-modal h1{font-size:25px;letter-spacing:0}.original-credits{margin:20px -12px;overflow:hidden}.original-credits img{width:100%;height:auto;display:block}

.overlay.prologue-screen{padding:28px;background:#050a1038;backdrop-filter:none;overflow-y:auto}
.prologue-stage{width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;padding:28px 0}
.prologue-card{width:min(100%,1000px);max-height:calc(100dvh - 70px);overflow-y:auto;display:block;padding:28px 36px;border:0;background:#6b6b6b var(--dialogue-texture) center/100% 100% no-repeat;image-rendering:pixelated;box-shadow:0 7px 28px #0009;color:#fffdf2;text-shadow:2px 2px 0 #000;font-family:'Malgun Gothic',Dotum,Gulim,sans-serif;font-weight:900}
.prologue-card h1{font-size:36px;margin:0 0 24px;color:#f1dfaf;letter-spacing:1px}
.prologue-card p{font-size:clamp(32px,3.4vw,44px);line-height:1.45;white-space:pre-line;word-break:keep-all;margin:0 0 12px}
.prologue-card .dialogue-actions{margin-top:24px}
.dialogue-box{display:block;height:auto;aspect-ratio:303/85;min-height:0;flex-shrink:0;padding:20px 32px 16px;border:0;background:#6b6b6b var(--dialogue-texture) center/100% 100% no-repeat;image-rendering:pixelated;box-shadow:0 7px 28px #0009}
.dialogue-portrait{position:absolute;left:15px;bottom:100%;width:174px;height:180px;object-fit:contain;object-position:left bottom;filter:none}
.dialogue-copy{height:100%;display:flex;flex-direction:column}.dialogue-copy>.dialogue-actions{flex:none;margin-top:auto}.dialogue-copy>strong{flex:none;font-family:'Malgun Gothic',Dotum,Gulim,sans-serif;font-size:34px;line-height:1.2;font-weight:900;color:#fffdf2;text-shadow:2px 2px 0 #000}
.dialogue-copy>p{flex:1;min-height:0;overflow-y:auto;font-family:'Malgun Gothic',Dotum,Gulim,sans-serif;font-size:clamp(32px,3.2vw,44px);font-weight:900;line-height:1.1;color:#fffdf2;text-shadow:2px 2px 0 #000;margin:8px 0 12px;word-break:keep-all}
.dialogue-actions button{background:#222a22cc;font-size:12px;color:#eee9d3;border-color:#9b9b83}
.wallet-balance{margin:22px auto 15px;display:flex;align-items:center;justify-content:center;gap:15px;color:var(--gold)}.wallet-balance>span{font-size:12px;letter-spacing:2px}.wallet-balance strong{font:32px 'Segoe UI',sans-serif}.gold-count,.gold-summary{color:var(--gold)!important}.wallet-warning{color:#e8b28c!important}
@media(max-width:720px){.dialogue-box{padding:10px 14px;min-height:0}.dialogue-copy>strong{font-size:26px}.dialogue-copy>p{font-size:26px}.dialogue-portrait{width:145px;height:150px}.prologue-card{padding:24px 20px}.prologue-card h1{font-size:32px}.prologue-card p{font-size:32px}.title-credit{font-size:10px}}

/* 최초 생성 동료 외형과 히로 직업 선택 */
.character-preview{width:96px;height:104px;display:block;image-rendering:pixelated;flex:none}.recruit-preview{align-self:center;margin:8px auto 4px}.hero-choice{align-items:center;text-align:center;min-height:240px}.hero-selection .cards{margin-top:20px}.collection-modal{max-height:88dvh;overflow-y:auto}.collection-grid .character-preview{margin:auto}.collection-grid article{padding:8px 5px}.choice-card .recruit-preview+h2{margin-top:4px}

.collection-entry{padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:9px;background:#0b1a22}.collection-entry>strong{font-size:17px}.collection-entry>small{font-size:11px;color:var(--muted)}.collection-filters{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin-top:18px}.collection-filters button{padding:7px 10px;font-size:12px}.collection-filters button[aria-pressed="true"]{border-color:var(--gold);color:var(--gold);background:#384037}.collection-portraits{display:flex;justify-content:center;align-items:flex-end;gap:30px;margin:25px auto}.collection-face{width:225px;height:190px;object-fit:contain;object-position:center bottom;image-rendering:pixelated}.collection-detail h2{font-size:20px;color:var(--gold)}

/* 전투 후 컷씬: 창 크기와 초상화 기준은 기존 대화창 규칙을 공유한다. */
.overlay.dialogue-screen[data-scene="robbery"]{background:linear-gradient(#05080bc9,#05080b33 50%,#05080b99)}

.title-music.title-sfx{bottom:7.8%}

.title-audit{position:absolute;left:3%;bottom:3%;padding:6px 10px;font:11px "Segoe UI",sans-serif;background:#142015b0;color:#e5e7cc;border-color:#96996b66}.sound-audit{max-width:1400px;max-height:92dvh;overflow-y:auto;text-align:left;padding:28px}.sound-audit h1{text-align:center;font-size:28px;letter-spacing:0}.sound-audit>.eyebrow,.sound-audit>p{text-align:center}.sound-audit h2{font-size:17px;margin:28px 0 12px}.audit-filter{display:flex;justify-content:center;gap:10px;margin:18px 0}.audit-filter button{padding:9px 16px}.audit-filter button[aria-pressed="true"]{color:var(--gold);border-color:var(--gold)}.audit-rule{color:var(--gold)!important}.audit-table-wrap{overflow-x:auto}.sound-audit table{width:100%;border-collapse:collapse;min-width:900px;font-size:13px}.sound-audit th,.sound-audit td{border:1px solid #4b6264;padding:12px;vertical-align:top}.sound-audit thead th{background:#24383b;font-size:12px}.sound-audit tbody th{color:var(--gold);width:100px}.sound-audit td strong{display:block;font-size:13px}.sound-audit td small{display:block;color:var(--muted);margin:7px 0}.audit-audio{width:245px;height:34px;display:block;margin-top:9px}.sound-audit details{min-width:200px}.sound-audit details div{font-size:11px;color:#b5c5c5;margin:10px 0;line-height:1.7}.sound-audit summary{cursor:pointer;line-height:1.6}.audit-muted{color:var(--muted)}

#sceneTransition{position:fixed;inset:0;background:#050709;z-index:6;pointer-events:auto}#sceneTransition[hidden]{display:none}#sceneTransition>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ending-transition .topbar,.ending-transition .sidebar,.ending-transition footer,.ending-transition .leader-health,.ending-transition .field-label,.ending-transition .world-hint,.ending-transition .notice,.ending-transition .boss-hud{opacity:0;transition:opacity .25s}

/* 아벤지아의 질문: 원본 초상화 + 도트 직업 카드. */
.oracle-selection{width:min(850px,100%);max-height:94dvh;overflow-y:auto;padding:180px 12px 12px;text-align:left;background:none;border:0;box-shadow:none}
.oracle-question{position:relative;background:#555 var(--dialogue-texture) center/100% 100% no-repeat;padding:22px 30px 24px;color:#fffdf2;image-rendering:pixelated;text-shadow:2px 2px #000;font-weight:900}
.oracle-portrait{position:absolute;bottom:100%;left:24px;width:112px;height:176px;object-fit:contain;image-rendering:pixelated;object-position:bottom}
.oracle-question strong{font-size:27px}.oracle-question h1{font-size:clamp(26px,3.2vw,36px);line-height:1.3;margin:12px 0 8px;letter-spacing:0}.oracle-question p{font-size:18px;margin:0;color:#eee6ce}
.oracle-selection .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 12px}
.oracle-selection .hero-choice{min-height:185px;padding:10px;border:3px solid transparent;border-radius:0;background:#6b6b6b var(--dialogue-texture) center/100% 100% no-repeat;image-rendering:pixelated;box-shadow:0 4px 12px #0006;color:#fffdf2;text-shadow:2px 2px #000;align-items:center;justify-content:center;transition:background .15s,border-color .15s}
.oracle-selection .hero-choice:hover,.oracle-selection .hero-choice:focus-visible{border-color:transparent;outline:2px solid #f1d689;outline-offset:2px;transform:none}
.oracle-selection .hero-choice h2{font-size:24px;margin:4px 0 8px}.oracle-selection .card-sub{color:#e8d8ab;font-size:17px}.oracle-selection .recruit-preview{margin:0 auto}.oracle-actions{text-align:center}.oracle-actions button{border-radius:0;background:#6b6b6b var(--dialogue-texture) center/100% 100% no-repeat;image-rendering:pixelated;color:#fffdf2;text-shadow:2px 2px #000;border:0;padding:12px 36px}
@media(max-width:600px){.oracle-selection{padding:144px 4px 8px}.oracle-portrait{width:90px;height:141px;left:16px}.oracle-question{padding:18px 20px}.oracle-question strong{font-size:23px}.oracle-question h1{font-size:25px}.oracle-question p{font-size:16px}.oracle-selection .cards{gap:8px}.oracle-selection .hero-choice{min-height:164px;padding:6px}.oracle-selection .hero-choice h2{font-size:20px}.oracle-selection .card-sub{font-size:15px}}

/* 원작 설문을 중앙의 작은 창으로 표시한다. */
.overlay.oracle-screen{padding:24px;background:#100e0bdb;backdrop-filter:blur(4px);overflow:auto}
.oracle-selection{position:relative;width:min(850px,100%);height:600px;min-height:0;max-height:none;margin:auto;padding:0;overflow:hidden;background:#b3ae8b var(--oracle-background) center/100% 100% no-repeat;image-rendering:pixelated;box-shadow:0 12px 40px #0009}
.oracle-question{position:absolute;left:4%;right:4%;top:6%;padding:12px 16px;background:#000;border:16px solid transparent;border-image:var(--oracle-frame) 16 / 16px / 0 stretch;box-shadow:none}
.oracle-question h1{font-size:32px;font-weight:900;line-height:1.35;margin:0;color:#fff;text-shadow:2px 2px #000;word-break:keep-all}
.oracle-selection>.oracle-portrait{position:absolute;left:2%;bottom:4%;width:18%;height:auto;max-height:38%;object-fit:contain;object-position:left bottom;image-rendering:pixelated}
.oracle-selection .cards{position:absolute;left:22%;right:4%;bottom:14%;height:230px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
.oracle-selection .hero-choice{min-height:0;padding:6px;background:#a99f87;border:6px solid transparent;border-image:var(--oracle-frame) 5 / 6px / 0 stretch;box-shadow:none;outline:none;justify-content:center;color:#fffdf2}
.oracle-selection .hero-choice:hover,.oracle-selection .hero-choice:focus-visible{background:#c2b69a;outline:2px solid #fff;outline-offset:2px;transform:none;color:#fff}
.oracle-selection .hero-choice h2{font-size:24px;margin:4px 0}.oracle-selection .card-sub{font-size:18px;color:#fffdf2;text-shadow:2px 2px #32291f}
.oracle-selection .character-preview[data-preview-attack]{width:128px;height:128px;max-width:100%;object-fit:contain;flex-shrink:0}
.oracle-actions{position:absolute;right:4%;bottom:4%}.oracle-actions button{padding:8px 24px;background:#000;border:8px solid transparent;border-image:var(--oracle-frame) 16 / 8px / 0 stretch;color:#fff}
@media(max-width:600px){.overlay.oracle-screen{padding:12px}.oracle-selection{height:520px;min-height:520px;background-size:auto 100%}.oracle-question{padding:10px;border-width:10px;border-image-width:10px}.oracle-question h1{font-size:26px}.oracle-selection .cards{left:20%;right:3%;gap:5px;height:200px;bottom:15%}.oracle-selection .hero-choice{border-width:5px;border-image-width:5px;padding:2px}.oracle-selection .hero-choice h2{font-size:18px}.oracle-selection .hero-choice .card-sub{font-size:15px}.oracle-selection>.oracle-portrait{width:18%;bottom:5%}.oracle-selection .character-preview[data-preview-attack]{width:86px;height:110px}}
/* 2026-10-29: original portraits and compact mobile HUD */
.member-portrait{width:54px;flex:0 0 54px;border:2px solid #797870;background:#292936;image-rendering:pixelated;overflow:hidden}.member-portrait img{display:block;width:50px;height:48px;object-fit:cover;object-position:top}.member-portrait span{display:block;background:#3b3b4b;border-top:2px solid #777;color:#d3db93;font:bold 13px monospace;text-align:center;text-shadow:1px 1px #000}.party-member{border-radius:0;background:#292c2b;border-color:#73766c;gap:10px;padding:7px}.party-member .track>div{background:#c5ab73!important}.party-member.down .member-portrait{filter:grayscale(1);opacity:.55}.member-info{min-width:0;flex:1}.member-heading{gap:4px}.member-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-heading small{white-space:nowrap}.camp-modal{background:#000;border:0;box-shadow:none;border-radius:0;min-height:360px}.camp-scene{width:192px;height:96px;margin:25px auto 35px;background-image:var(--camping-image);background-size:960px 96px;image-rendering:pixelated;animation:camp-fire .75s steps(5) infinite}@keyframes camp-fire{to{background-position:-960px 0}}.camp-modal .pause-buttons{margin:0 auto}.camp-modal button{background:#171717;border-color:#777;color:#e7dfc6;min-height:44px}.touch-stick{display:none;position:fixed;z-index:12;width:96px;height:96px;margin:-48px;border:2px solid #e7dfc688;border-radius:50%;background:#0004;pointer-events:none}.touch-stick.active{display:grid;place-items:center}.touch-stick i{width:36px;height:36px;border:2px solid #e7dfc6;border-radius:50%;background:#b7ad8c77}#battle{touch-action:none;user-select:none}.overlay{overscroll-behavior:contain}.modal>.secondary{margin-top:12px}
@media(max-width:1000px){
 .topbar{height:48px;padding:4px 10px;gap:8px}.brand{display:none}.top-actions{gap:6px}.top-actions button{min-height:40px;padding:5px 9px}.top-actions kbd{display:none}.clock strong{font-size:20px}.clock small{font-size:9px}.shell main{padding:5px;gap:5px;min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 150px}.sidebar{display:block;width:150px;padding:7px;overflow-y:auto;min-height:0}.sidebar .eyebrow,.sidebar-note,.brand-mark{display:none}.sidebar section{padding:0;margin:0 0 8px}.sidebar h2{font-size:12px}.level-row{margin:0;font-size:11px}.level-row strong{font-size:22px}.level-row strong small{font-size:10px}.xp-label{font-size:9px}.section-title{margin-bottom:4px}.party-member{padding:3px;gap:4px;margin-bottom:4px}.member-portrait{width:34px;flex-basis:34px}.member-portrait img{width:30px;height:30px}.member-portrait span{font-size:10px}.member-heading{display:block}.member-heading strong{display:block;font-size:11px}.member-heading small{font-size:9px}.member-detail{font-size:9px}.member-detail>span:first-child{display:none}.party-member .track{height:4px}.passive-row{font-size:10px;padding:3px;gap:3px}.passive-symbol{display:none}.field-label{font-size:10px}.field-label span{display:none}.leader-health{width:170px;bottom:8px}.overlay:not(.title-screen):not(.dialogue-screen):not(.oracle-screen){padding:12px;overflow-y:auto;align-items:safe center}.modal{max-height:calc(100dvh - 24px);overflow:auto;padding:18px;width:min(900px,100%)}.modal h1{font-size:26px;margin:10px 0}.modal .cards{gap:8px;margin:12px 0}.choice-card{padding:12px;min-height:0}.choice-card h2{font-size:17px}.choice-card p{font-size:12px}.card-icon{width:38px;height:38px;font-size:20px;margin:10px 0}.card-sub{font-size:12px}.recruit-preview canvas{max-height:75px}.primary,.secondary{min-height:44px}.result-stats{margin:16px 0}.camp-modal{min-height:0}.camp-scene{margin:0 auto 10px}.camp-modal .pause-buttons{gap:6px}.camp-modal .pause-buttons button{margin:0;padding:8px 14px}.dialogue-box{font-size:20px!important}.dialogue-actions button,.prologue-actions button{min-height:40px}.oracle-selection{height:min(600px,94dvh)!important}.oracle-question h1{font-size:24px!important}.oracle-selection .hero-choice-grid{bottom:12%;height:45%}.oracle-selection canvas{max-width:85px;max-height:85px}.title-menu button{min-height:44px}
}
@media(max-width:600px) and (orientation:portrait){.shell main{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 115px}.sidebar{width:100%;display:flex;gap:8px;overflow:auto;padding:4px}.level-section{min-width:85px;width:85px}.party-section{flex:1}.party-section .section-title,.passive-section{display:none}#partyList{display:flex;gap:4px;height:100%}.party-member{flex-direction:column;gap:2px;flex:1;min-width:35px}.member-portrait{flex-basis:auto}.member-heading{display:none}.member-detail{font-size:8px}.member-info{width:100%}.top-actions #killCount{display:none}.choice-card{padding:7px}.choice-card h2{font-size:14px}.card-sub,.choice-card p{font-size:11px}.modal .cards{gap:5px}.prologue-copy{font-size:20px!important}.dialogue-box{font-size:19px!important}}
@media(max-width:1000px){.overlay.oracle-screen{padding:8px}.oracle-selection{height:calc(100dvh - 16px)!important;min-height:0!important;max-height:none!important}.oracle-question{top:4%;padding:6px 10px;border-width:8px;border-image-width:8px}.oracle-question h1{font-size:21px!important}.oracle-selection .cards{height:51%;bottom:17%;gap:7px}.oracle-selection .character-preview[data-preview-attack]{width:65px;height:65px}.oracle-selection .hero-choice h2{font-size:18px}.oracle-selection .hero-choice .card-sub{font-size:13px}.oracle-actions button{padding:4px 18px;min-height:40px}.oracle-selection>.oracle-portrait{max-height:39%}}
@media(max-width:1000px) and (orientation:landscape){.sidebar .party-member{min-height:0;height:38px;padding:2px;margin-bottom:3px}.sidebar .member-portrait{width:26px;flex-basis:26px;border-width:1px}.sidebar .member-portrait img{width:24px;height:22px}.sidebar .member-portrait span{font-size:9px;line-height:10px;border-top-width:1px}.sidebar .member-heading small{display:none}.sidebar .member-detail{margin:1px 0;font-size:9px}.sidebar .member-heading{margin:0;line-height:12px}.sidebar .level-section{margin-bottom:4px}.sidebar .section-title{margin:3px 0}.sidebar .xp-label{margin:2px 0}.sidebar .level-row strong{font-size:18px}.sidebar .party-member .track{margin:0}.sidebar .level-row{line-height:20px}}

/* Title controls scale with the actual 4:3 scene, including mobile browser chrome. */
.title-scene{width:min(100vw,133.333333dvh);height:min(75vw,100dvh);container-type:inline-size}
.title-menu{left:4%;right:4%;bottom:15%;gap:3cqw}
.title-menu button{min-width:0;min-height:0;padding:1cqw .5cqw;flex:0 1 auto}
.title-menu button img{height:6cqw;min-height:0;max-width:100%;object-fit:contain}
.title-credit{bottom:2%;font-size:1.7cqw;padding:.6cqw 1cqw}
.title-music,.title-music.title-sfx{top:2%;bottom:auto;right:auto;left:2%;font-size:1.6cqw;padding:1cqw 1.3cqw;min-height:0;line-height:1.2}
.title-music.title-sfx{top:9%}
@media(max-width:1000px){.title-menu button{min-height:0}.title-menu button img{height:6cqw}.title-credit{font-size:1.8cqw}}

/* Inline companion level leaves room for the passive list. */
.member-level{flex:none;color:#d3db93;font:11px monospace;white-space:nowrap}.member-heading strong{min-width:0}.member-heading small{margin-left:auto}.party-member{min-height:0;padding:4px 6px;margin-bottom:4px;gap:7px}.member-portrait{width:42px;flex-basis:42px}.member-portrait img{width:38px;height:38px}.section-title{margin-top:14px}.passive-row{padding:5px 0}
@media(max-width:1000px){.member-heading{display:flex;flex-wrap:wrap;gap:2px 4px}.member-heading strong{font-size:10px}.member-level{font-size:9px}.member-heading small{display:none}.member-portrait{width:26px;flex-basis:26px}.member-portrait img{width:22px;height:24px}.party-member{padding:2px;margin-bottom:3px;gap:4px}.section-title{margin-top:7px}.passive-row{padding:3px 0}}
@media(max-width:600px) and (orientation:portrait){.member-heading{display:flex;justify-content:center}.member-heading strong,.member-heading small{display:none}.member-level{font-size:9px}}
