/* JTF 0.1.0 Gate A: tokens / retained routes / HUD / battle / typed overlays. */
@font-face{font-family:Pretendard;src:url('../리소스/fonts/Pretendard-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Pretendard;src:url('../리소스/fonts/Pretendard-SemiBold.woff2') format('woff2');font-weight:600 900;font-display:swap}
@font-face{font-family:NalSun;src:url('../리소스/fonts/NalSun-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
:root{--bg:#211918;--bg-deep:#211918;--surface:#332624;--surface-raised:#49332c;--panel:#332624;--layer:rgba(35,25,23,.91);--ink:#fff1dc;--muted:#d9c1ac;--gold:#e9b879;--line:rgba(245,210,165,.22);--red:#c95c52;--jade:#7ec7d8;--motion-fast:140ms;--motion-normal:200ms;--owner-accent:#d45a4f;--owner-soft:#edaa90;--owner-deep:#4b2529}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 Pretendard,sans-serif;letter-spacing:-.15px}
h1,h2,h3,p{margin:0}
h1,h2,h3,button,.serif{font-family:Pretendard,sans-serif}
h1,h2,h3{font-weight:700}
h1{font-size:52px;line-height:1.25}
h2{font-size:30px;line-height:1.4}
h3{font-size:20px;line-height:1.5}
small{font-size:12px;color:var(--muted)}
button{color:inherit;cursor:pointer;background:var(--layer);border:1px solid var(--line);border-radius:3px;padding:10px 17px;transition:background var(--motion-fast),transform var(--motion-normal),border-color var(--motion-normal);font-size:14px;font-weight:600}
button:hover:not(:disabled){background:#443833;border-color:#e4d3a566}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{opacity:.45;cursor:not-allowed}
button:focus-visible{outline:2px solid var(--jade);outline-offset:4px}
.primary{background:var(--gold);color:#30241f;border-color:transparent}
.primary:hover:not(:disabled){background:#e0c18b}
.quiet{border:0;background:none;color:var(--muted)}
.ico{width:18px;height:18px;vertical-align:middle;stroke-width:1.6;flex-shrink:0}
.eyebrow{font-size:10px;letter-spacing:2.5px;color:#bcaa88;font-weight:600}
.muted{color:var(--muted)}
.content{padding:25px 40px 40px;max-width:1660px;width:100%;margin:auto}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:22px 0}
.page-head h2{font-size:30px;margin-top:7px}
.page-head p{font-size:15px;color:var(--muted);margin-top:8px}
.back-link{border:0;padding:8px 0;background:none;font-size:15px;color:#ddd7c9}
.pill{font-size:11px;color:var(--owner-soft)}
.card{position:relative;width:185px;min-height:280px;display:block;text-align:left;padding:0;overflow:hidden;border:1px solid #93a6ad66;border-radius:7px;background:var(--surface);box-shadow:0 6px 15px #0005;transform-origin:50% 90%;user-select:none;touch-action:none;font-weight:400;transition:transform var(--motion-normal),border-color var(--motion-fast)}
.card:hover:not(:disabled){transform:translateY(-8px);border-color:var(--owner-soft);z-index:3}
.card-art{height:112px;position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.card-art img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;filter:brightness(.9)}
.card .glyph{display:none}
.card .cost{position:absolute;left:8px;top:8px;width:29px;height:29px;line-height:29px;font-size:20px;font-weight:700;color:#322621;background:var(--gold);border-radius:4px;text-align:center;z-index:2}
.card .rarity{position:absolute;right:8px;top:11px;font-size:9px;z-index:2;color:#e7dcc4;background:#2216118c;padding:1px 4px}
.card h3{font-size:16px;padding:11px 12px 0;line-height:1.4}
.card .tag{font-size:10px;color:var(--owner-soft);display:block;padding:4px 12px}
.card p{font-size:14px;line-height:1.65;color:#e5e8e5;padding:2px 12px 14px;min-height:80px}
.card-hint{font-size:9px;display:block;color:var(--muted);text-align:center;padding:0 7px 7px;opacity:0}
.card:hover .card-hint{opacity:1}
.card .price{display:block;border-top:1px solid var(--line);padding:8px;text-align:center;color:var(--gold);font-size:12px}
.card.unaffordable{filter:saturate(.5);border-color:#c5b29f}
.card.unaffordable .cost{background:#7b6c63;color:#f0e7db}
.catalog{display:flex;flex-wrap:wrap;gap:24px;margin:15px 0}
.catalog .card{cursor:pointer}
.choice-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:30px;margin:30px 0}
.choice-grid .card{width:220px;min-height:320px}
.choice-grid .card-art{height:140px}
.choice-grid .card h3{font-size:20px}
.choice-grid .card p{font-size:15px}
.reward-center{text-align:center;margin:30px auto}
.reward-center h2{font-size:34px;margin-top:15px}
.reward-center>p{font-size:15px;line-height:1.8;color:var(--muted)}
.choice-tile{width:260px;min-height:205px;text-align:left;padding:25px;background:var(--surface)}
.choice-tile>span{display:block;font-size:35px;color:var(--gold);margin-bottom:15px}
.choice-tile h3{font-size:21px}
.choice-tile p{font-size:14px;color:var(--muted);margin-top:13px;line-height:1.8}
.chapter-clue{max-width:600px;text-align:left;border-left:2px solid var(--gold);background:var(--surface);padding:17px 20px;margin:20px auto}
.chapter-clue strong{font-size:14px;color:#ddc89f}
.chapter-clue p{font-size:14px;color:var(--muted);line-height:1.8;margin-top:8px}
.panel{padding:22px;background:var(--surface);border:1px solid var(--line);height:fit-content}
.panel h3{font-size:18px;margin-bottom:13px}
.trait{padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}
.trait strong{color:#ead9c7}
.trait p{font-size:13px;color:var(--muted);line-height:1.75;margin-top:5px}
.dots{font-size:11px;letter-spacing:2px}
.story-note{font-size:14px;color:var(--muted);line-height:1.8;margin:20px 0;border-left:2px solid var(--gold);padding-left:13px}
.map-wrap{display:grid;grid-template-columns:1fr 290px;gap:24px}
.map{position:relative;border:1px solid var(--line);padding:20px 45px;background:var(--surface)}
.map:before{content:'';position:absolute;top:60px;bottom:60px;left:50%;width:1px;background:var(--line)}
.map-row{position:relative;display:flex;justify-content:center;gap:80px;align-items:center;margin:15px 0}
.map-node{width:180px;min-height:83px;background:#372b26;font-size:15px}
.map-node .ico{display:block;margin:0 auto 5px}
.map-node small{display:block;font-size:11px;margin-top:3px}
.map-node.current{border-color:var(--gold);background:#483c37}
.map-node.done{opacity:.45}
.map-index{position:absolute;left:-20px;font-size:11px;color:var(--muted)}
.chapter-trail{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.chapter-trail span{font-size:11px;border:1px solid var(--line);padding:3px 10px;border-radius:20px;color:var(--muted)}
.chapter-trail .active{color:var(--gold);border-color:#e9b87977}
.story-layout{display:grid;grid-template-columns:310px 1fr;max-width:1100px;margin:25px auto;background:var(--surface);border:1px solid var(--line);min-height:460px;overflow:hidden}
.story-portrait{position:relative;min-height:400px;background:var(--bg)}
.story-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.story-name{position:absolute;left:25px;bottom:25px;background:#251914a6;padding:8px 15px}
.story-name h3{font-size:26px}
.story-text{padding:35px 40px;display:flex;flex-direction:column;justify-content:center}
.story-text h2{font-size:30px;margin:12px 0 24px}
.story-text p{font-size:16px;line-height:1.9;margin-bottom:15px;color:var(--muted)}
.story-text .quote{color:#d8c2a3;border-left:2px solid var(--gold);padding-left:13px}
.story-text .primary{align-self:flex-start;margin-top:15px}
.story-text button[hidden]{display:none}
.bond-note{font-size:12px;color:#ead9c7;margin-top:17px}
.reply-options button{display:block;text-align:left;width:100%;font-size:14px;margin:7px 0}
.end-grid{max-width:850px;display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px auto;text-align:left}
.end-grid p,.end-grid li{font-size:14px;line-height:1.85;color:var(--muted);margin:10px 0}
.catalog-filters{display:flex;flex-wrap:wrap;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:22px}
.catalog-filters>span{font-size:12px;margin-left:auto;color:var(--muted)}
.owner-tabs,.tag-tabs{display:flex;gap:8px}
.owner-tabs button{display:flex;align-items:center;gap:10px;padding:5px 17px 5px 5px;border:0;background:var(--surface)}
.owner-tabs img{width:35px;height:40px;object-fit:cover;object-position:50% 20%}
.tag-tabs button{font-size:13px;padding:8px 12px;border:0;background:none}
.shop-service{display:flex;align-items:center;justify-content:center;gap:25px;padding:15px;margin:20px auto 30px;border-block:1px solid var(--line);max-width:700px}
.shop-service p{font-size:13px;color:var(--muted)}
.empty{text-align:center;padding:45px;border:1px solid var(--line)}
.settings-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:0;font-size:15px;border-top:1px solid #e9eced12}
.settings-row button{font-size:13px;min-width:82px}
.help p{font-size:15px;line-height:1.85;margin:15px 0;color:var(--muted)}
.help strong{color:#e0c590}
#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);background:#3b2f2a;border:1px solid #b8bea666;color:var(--ink);padding:12px 22px;font-size:13px;max-width:80vw;opacity:0;pointer-events:none;transition:opacity var(--motion-normal);z-index:100}
#toast.show{opacity:1}
.card-fly,.drag-ghost{position:fixed;z-index:90;pointer-events:none;box-shadow:0 12px 35px #000b;transition:none}
.drag-ghost{transform:rotate(7deg) scale(1.05)}
.damage-pop{position:fixed;pointer-events:none;z-index:95;color:#ffe0a2;text-shadow:0 2px 5px #000;font-size:32px;font-weight:700}
.damage-pop.poison{color:#cbbfea}
.slash{position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(135deg,transparent 45%,#ffe7ba 49%,#df936c 50%,transparent 54%);opacity:0}
.combo-banner{position:absolute;top:62px;left:50%;transform:translateX(-50%);background:var(--layer);color:#e2c393;border:1px solid var(--line);padding:7px 18px;font-size:19px;z-index:6;pointer-events:none;white-space:nowrap}
.fx-locked .hand,.fx-locked .turn-actions,.fx-locked .enemy-unit{pointer-events:none}
.drag-over{outline:2px solid var(--gold);outline-offset:5px}
.crt-on:after{content:'';position:fixed;inset:0;pointer-events:none;z-index:50;opacity:.12;background:repeating-linear-gradient(0deg,transparent 0 3px,#000 4px 5px)}
.reduced-motion *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:1100px){.map-wrap{grid-template-columns:1fr 250px}
.map-row{gap:45px}
.content{padding:22px 25px}
.story-layout{grid-template-columns:260px 1fr}
.story-text{padding:30px}
.page-head h2{font-size:26px}}
@media(max-width:760px){.content{padding:20px 14px}
.map-wrap,.story-layout,.end-grid{grid-template-columns:1fr}
.map-wrap>aside{order:2}
.map{padding:15px 22px}
.map-row{gap:20px}
.map-node{width:135px;font-size:13px}
.map-node small{font-size:10px}
.story-portrait{min-height:230px}
.story-portrait img{object-fit:cover;object-position:center 20%}
.story-text{padding:25px}
.story-text h2{font-size:24px}
.story-text p{font-size:14px}
.catalog{gap:14px;justify-content:center}
.catalog .card{width:calc(50% - 7px)}
.catalog .card h3{font-size:14px}
.catalog .card p{font-size:13px}
.choice-grid .card{width:180px;min-height:280px}
.choice-grid .card h3{font-size:17px}
.choice-grid .card p{font-size:14px}
.choice-grid .card-art{height:110px}
.choice-tile{width:100%}
.reward-center h2{font-size:25px}
.page-head{align-items:start}
.page-head p{font-size:13px}
.owner-tabs button{font-size:13px;padding-right:10px}
.owner-tabs img{width:28px;height:32px}
.catalog-filters{gap:13px}
.tag-tabs{gap:3px}
.tag-tabs button{padding:6px 10px}
.shop-service{flex-direction:column;gap:12px}}
.is-fullscreen{overflow-x:hidden}
.title-screen,.character-screen,.expedition-screen{position:relative;min-height:100svh;overflow:hidden;isolation:isolate}
.title-backdrop,.select-backdrop{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;z-index:-3}
.title-backdrop{object-position:center}
.title-vignette{position:absolute;inset:0;z-index:-2;background:linear-gradient(270deg,#281915a6 0%,#28191536 31%,transparent 54%),linear-gradient(0deg,#24191666,transparent 30%)}
.title-main{position:absolute;right:7%;left:auto;top:50%;transform:translateY(-50%);width:38vw;max-width:600px;text-align:right}
.title-kicker{color:#e4d2b7;font-size:14px;letter-spacing:4px;font-family:Pretendard,sans-serif}
.title-main h1{font-size:clamp(72px,7.2vw,138px);letter-spacing:0;line-height:1.3;color:#f4e3c5;text-shadow:0 6px 20px #180c07cc;font-family:NalSun,Pretendard,sans-serif;font-weight:400;white-space:nowrap}
.title-main h1 span{display:block;font-size:24px;letter-spacing:5px;margin:16px 0 42px;color:#dfba83;font-family:Pretendard,sans-serif;font-weight:600}
.title-menu{display:flex;flex-direction:column;align-items:stretch;width:290px;gap:9px;margin-left:auto}
.title-menu button{border:none;text-align:right;padding:10px 15px;color:#ece0cd;font-size:20px;font-weight:600;position:relative;background:linear-gradient(270deg,#2d211cb0,transparent)}
.title-menu button:before{content:'◆';font-size:8px;position:absolute;right:-5px;top:22px;color:#d6b778;opacity:0;transition:opacity .15s}
.title-menu button:hover{background:linear-gradient(270deg,#d5b07025,transparent);transform:translateX(-7px);color:#fff1ce}
.title-menu button:hover:before{opacity:1}
.title-menu .menu-major{font-size:25px;padding:13px 15px}
.title-corner{position:absolute;left:42px;bottom:27px;font-size:10px;letter-spacing:2px;line-height:1.9;color:#ead9c7}
.title-corner b{font-weight:400;color:#dbbd85}
.title-help{position:absolute;right:30px;bottom:25px;font-size:13px;display:flex;gap:8px;align-items:center}
.screen-heading{position:relative;display:flex;justify-content:space-between;align-items:center;padding:28px 45px;color:#ead9c7;font-size:11px;letter-spacing:2px;z-index:4}
/* Character roster: ten independent portrait/keyart/combat-art slots. */
.roster-screen{height:100svh;min-height:680px;display:flex;flex-direction:column;padding:0 5%;background:#261a15}
.roster-screen .screen-heading{position:relative;flex:0 0 64px;padding:0;display:flex;align-items:center;justify-content:space-between}
.roster-stage{display:grid;grid-template-columns:minmax(270px,1fr) minmax(0,calc((100svh - 270px)*2/3)) minmax(170px,.55fr);gap:28px;flex:1;min-height:0;padding:10px 0 18px}
.roster-copy{align-self:center;max-width:430px}
.roster-copy h1{font-size:clamp(42px,5vw,80px);line-height:1.3;margin:16px 0;font-family:NalSun,Pretendard,sans-serif;font-weight:400;letter-spacing:0}
.roster-concept{font-size:18px;line-height:1.7;word-break:keep-all;color:#ead9c7}
.roster-copy dl{display:grid;grid-template-columns:80px 1fr;gap:10px;margin:24px 0;font-size:14px;line-height:1.6}.roster-copy dt{color:#ead9c7}.roster-copy dd{margin:0;color:#ead9c7}
.roster-availability{padding:14px 17px;border-left:2px solid #536174;background:#312520}.roster-availability strong{font-size:14px;color:#ead9c7}.roster-availability p{font-size:13px;line-height:1.6;margin:7px 0 0;color:#ead9c7;word-break:keep-all}.roster-availability.playable{border-color:var(--owner-accent)}.roster-availability.playable strong{color:var(--owner-soft)}
.roster-keyart{position:relative;min-height:0;aspect-ratio:2/3;height:100%;max-width:100%;justify-self:center;display:flex;align-items:center;justify-content:center;border:0;background:none;overflow:hidden}.roster-keyart>img{width:100%;height:100%;object-fit:contain;object-position:center bottom;mask-image:linear-gradient(0deg,transparent,black 5%,black 98%,transparent)}.roster-keyart>small{position:absolute;bottom:0;left:0;right:0;padding:10px;background:#261a15d9;color:#ead9c7;text-align:center;font-size:11px}
.roster-unit{display:flex;flex-direction:column;min-height:0;text-align:center;border:0;background:none;padding:16px 10px;color:#ead9c7;font-size:13px}.roster-unit>img{width:100%;height:calc(100% - 60px);object-fit:contain;object-position:center bottom}.roster-unit>small{font-size:11px;color:#c5b29f;line-height:1.5}.roster-unit>.roster-art-pending{flex:1}
.roster-art-pending{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#c5b29f;background:radial-gradient(ellipse,#40342f40,transparent 70%)}.roster-art-pending svg{width:56px;height:56px;opacity:.55}.roster-art-pending strong{font-size:18px;font-weight:600}.roster-art-pending span{font-size:12px;color:#c5b29f}
.roster-bottom{flex:0 0 auto;padding-bottom:18px}.roster-strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px;padding-top:4px}.roster-strip button{height:122px;padding:0;position:relative;overflow:hidden;border:1px solid #615550;background:#2e221d;transition:border-color .15s,transform .15s}.roster-strip button.selected{border:2px solid var(--owner-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--owner-accent) 20%,transparent);transform:translateY(-3px)}.roster-strip button>img{width:100%;height:100%;object-fit:cover;object-position:center 22%;opacity:.72}.roster-strip button.selected>img{opacity:1}.roster-thumb-pending{display:flex;height:80px;flex-direction:column;align-items:center;justify-content:center;color:#c5b29f;gap:4px}.roster-thumb-pending svg{width:28px;height:28px}.roster-thumb-pending small{font-size:10px}.roster-thumb-name{font-family:NalSun,Pretendard,sans-serif;font-weight:400;position:absolute;left:0;right:0;bottom:17px;background:#261a15db;font-size:15px;line-height:1.3;padding:5px 2px;display:flex;align-items:center;justify-content:center;gap:5px}.roster-thumb-name small{font-family:Pretendard,sans-serif;font-size:10px;color:#ead9c7}.roster-thumb-state{position:absolute;bottom:0;left:0;right:0;background:#261a15;font-size:10px;padding:3px;color:#c5b29f}.roster-strip button[data-id=sword] .roster-thumb-state{color:var(--owner-soft)}
.roster-actions{display:flex;align-items:center;gap:15px;margin-top:12px;min-height:48px}.roster-actions>.hero-arrow{width:38px;height:38px;padding:0}.roster-actions>span{font-size:13px;min-width:96px;text-align:center;color:#ead9c7}.roster-actions>p{flex:1;font-size:13px;color:#ead9c7;margin:0}.roster-actions>.character-confirm{margin-left:auto;min-width:224px;height:46px;font-size:15px}.roster-actions>.character-confirm:disabled{opacity:.55;cursor:not-allowed}
@media(max-height:760px) and (min-width:761px){.roster-screen{min-height:590px}.roster-screen .screen-heading{flex-basis:52px}.roster-copy h1{font-size:48px;margin:10px 0}.roster-concept{font-size:15px}.roster-copy dl{margin:15px 0;gap:5px}.roster-strip button{height:105px}.roster-thumb-pending{height:66px}.roster-stage{gap:18px;padding-top:0}.roster-bottom{padding-bottom:10px}}
@media(max-width:760px){.roster-screen{height:auto;min-height:100svh;padding:0 20px}.roster-stage{grid-template-columns:1fr 1fr;min-height:440px}.roster-copy{grid-column:1 / -1;max-width:none}.roster-keyart,.roster-unit{height:280px}.roster-strip{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.roster-strip button{height:100px}.roster-actions{flex-wrap:wrap}.roster-actions>p{flex-basis:100%}.roster-actions>.character-confirm{width:100%}}

.character-screen{background:#261a15}
.character-screen:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#261a15 8%,#261a15ed 34%,#261a1570 64%,#261a1538),linear-gradient(0deg,#261a15,transparent 25%);z-index:-1}
.character-screen .select-backdrop{opacity:.36}
.hero-shadow:before{background:linear-gradient(90deg,#151323 8%,#151323ed 34%,#221b3b70 64%,#15132338),linear-gradient(0deg,#151323,transparent 25%)}
.hero-snow:before{background:linear-gradient(90deg,#142331 8%,#142331ed 34%,#25475760 64%,#14233138),linear-gradient(0deg,#142331,transparent 25%)}
.character-copy{position:relative;margin:6vh 0 170px 13%;width:480px;z-index:2}
.character-sect{font-size:16px;color:var(--hero-color);letter-spacing:4px;font-family:Pretendard,sans-serif}
.character-copy h1{font-size:95px;line-height:1.2;margin:12px 0;letter-spacing:8px;font-family:Pretendard,sans-serif}
.character-copy h2{font-size:22px;color:#d5bb93;margin-bottom:27px}
.character-motive{font-size:19px;line-height:1.9;margin-bottom:18px;max-width:465px}
.character-desc{font-size:14px;color:#ead9c7;line-height:1.8;max-width:400px}
.character-facts{margin-top:28px;display:grid;gap:13px;border-left:2px solid var(--hero-color);padding-left:20px}
.character-facts div{display:flex;gap:22px;align-items:center}
.character-facts small{font-size:12px;color:#c5b29f;min-width:75px}
.character-facts strong{font-size:14px;font-weight:600}
.character-keyart{position:absolute;right:12%;top:9%;height:78vh;max-height:830px;width:39vw;z-index:0;filter:drop-shadow(0 15px 35px #0009);mask-image:linear-gradient(0deg,transparent,black 12%,black 91%,transparent)}
.character-keyart img{height:100%;width:100%;object-fit:contain;object-position:center}
.character-controls{position:absolute;bottom:35px;left:13%;right:12%;display:flex;align-items:center;gap:17px;z-index:5}
.hero-thumbnails{display:flex;gap:13px;overflow-x:auto;max-width:min(650px,48vw);padding:10px 3px 7px;scrollbar-width:thin;scrollbar-color:#c5b29f transparent}
.hero-thumbnails button{width:75px;height:99px;padding:0;border:1px solid #71809678;position:relative;background:#261a15;flex:0 0 75px}
.hero-thumbnails img{width:100%;height:100%;object-fit:cover;object-position:50% 19%;opacity:.55}
.hero-thumbnails .selected{border-color:var(--gold);transform:translateY(-7px);box-shadow:0 0 0 2px #e9b87922}
.hero-thumbnails .selected img{opacity:1}
.hero-thumbnails span{position:absolute;bottom:0;left:0;right:0;text-align:center;padding:3px;background:#261a15ca;font-size:11px}
.hero-arrow{font-size:35px;border:0;padding:8px;color:#e9b879}
.character-confirm{margin-left:auto;font-size:18px;min-width:230px;min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#e9b879;border-radius:0;color:#312520}
.expedition-screen:before{content:'';position:absolute;inset:0;background:#221611d9;z-index:-1}
.expedition-title{text-align:center;margin:4vh auto 35px}
.expedition-title h1{font-size:44px;letter-spacing:2px;margin:13px 0}
.expedition-title p{color:#ead9c7;font-size:15px}
.mode-cards{display:flex;gap:35px;justify-content:center;align-items:stretch;margin:0 auto 60px;max-width:1240px;padding:0 35px}
.mode-paper{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;width:345px;min-height:470px;border:0;border-radius:2px;background:linear-gradient(130deg,#f1e8d1,#ddd0b4);color:#3f332e;padding:35px 26px 24px;box-shadow:0 20px 45px #0007;clip-path:polygon(1% 0,99% 1%,100% 99%,1% 100%,0 70%)}
.mode-paper.active:hover{background:linear-gradient(130deg,#fff5db,#ebd7ae);transform:translateY(-8px);box-shadow:0 24px 50px #0009}
.mode-paper.locked{filter:saturate(.25);opacity:.55;background:linear-gradient(130deg,#b8b8ad,#8a9291);color:#3e322d}
.mode-number{font-family:Pretendard;font-size:13px;color:#9c6645;letter-spacing:4px}
.mode-art{height:130px;display:grid;place-items:center;margin:12px 0}
.mode-art .ico{width:83px;height:83px;stroke-width:1;color:#806e55}
.mode-paper h2{font-size:26px}
.mode-paper p{font-size:14px;line-height:1.9;margin:19px 0 20px;color:#665a55}
.mode-paper strong{font-size:14px;margin-top:auto;color:#714a35}
.mode-cta{display:flex;gap:12px;align-items:center;justify-content:center;font-size:14px;border-top:1px solid #776b5545;width:100%;padding-top:20px;margin-top:22px}
.mode-badge{font-size:11px}
@media(min-width:1600px){.character-copy{margin-top:8vh}
.character-keyart{right:16%}}
@media(max-height:820px) and (min-width:761px){.title-main h1{font-size:88px}
.title-main h1 span{margin-bottom:25px}
.title-menu{gap:4px}
.title-menu button{font-size:18px}
.title-menu .menu-major{font-size:23px}
.screen-heading{padding:19px 35px}
.character-copy{margin-top:3vh;margin-left:11%;width:410px}
.character-copy h1{font-size:72px;margin:7px 0}
.character-copy h2{font-size:19px;margin-bottom:19px}
.character-motive{font-size:17px}
.character-facts{margin-top:20px;gap:9px}
.character-controls{bottom:25px;left:11%;right:10%}
.character-keyart{height:74vh;top:9%}
.hero-thumbnails button{height:85px;width:65px}
.expedition-title{margin:1vh auto 25px}
.expedition-title h1{font-size:34px}
.mode-paper{min-height:410px;padding-top:25px}
.mode-art{height:100px}
.mode-paper h2{font-size:23px}}
@media(max-width:1100px) and (min-width:761px){.character-copy{margin-left:7%;width:390px}
.character-keyart{right:5%;width:44vw}
.character-controls{left:7%;right:7%}
.character-confirm{min-width:190px;font-size:16px}
.mode-cards{gap:20px;padding:0 28px}
.mode-paper{width:29vw;padding:24px 18px}
.mode-paper h2{font-size:20px}
.mode-paper p{font-size:13px}}
@media(max-width:760px){.title-main{left:auto;right:8%;width:84%;top:49%}
.title-main h1{font-size:75px}
.title-main h1 span{font-size:20px;letter-spacing:10px;margin-bottom:30px}
.title-kicker{font-size:11px;letter-spacing:2px}
.title-menu{width:220px}
.title-menu button{font-size:17px}
.title-menu .menu-major{font-size:22px}
.title-backdrop{object-position:65% center}
.title-vignette{background:linear-gradient(90deg,#1e120ddc,#1e120d50)}
.title-corner{left:25px;bottom:20px;font-size:8px}
.title-help{right:18px;bottom:18px;font-size:11px}
.screen-heading{padding:18px 20px}
.screen-heading>span{display:none}
.character-screen{min-height:950px}
.character-copy{margin:20px 25px 190px;width:calc(100% - 50px);padding-top:300px}
.character-copy h1{font-size:52px}
.character-copy h2{font-size:18px}
.character-motive{font-size:16px}
.character-desc{font-size:13px}
.character-keyart{top:65px;right:10%;height:340px;width:80%;max-height:none;mask-image:linear-gradient(0deg,transparent,black 15%,black)}
.character-controls{bottom:22px;left:20px;right:20px;gap:8px;flex-wrap:wrap;justify-content:center}
.hero-thumbnails{gap:12px}
.hero-thumbnails button{width:56px;height:76px}
.character-confirm{width:100%;margin:12px 0 0;min-height:48px;font-size:16px}
.hero-arrow{font-size:27px}
.expedition-title{padding:0 20px}
.expedition-title h1{font-size:25px}
.expedition-title p{font-size:13px}
.mode-cards{flex-direction:column;align-items:center;padding:0 20px;gap:20px}
.mode-paper{width:100%;min-height:350px}
.mode-art{height:80px}
.mode-paper h2{font-size:23px}
.mode-paper.locked{min-height:230px}}
.character-copy .character-facts strong{line-height:1.5}
.character-screen .character-copy{max-width:45vw}
@media(max-height:680px) and (min-width:761px){.character-copy{margin-top:0}
.character-copy h1{font-size:60px}
.character-motive{font-size:15px}
.character-desc{font-size:12px}
.character-facts{margin-top:14px;gap:6px}
.character-controls{bottom:18px}
.hero-thumbnails button{width:52px;height:70px}
.character-confirm{font-size:15px;min-height:45px}
.character-keyart{height:73vh}
.mode-paper{min-height:360px}
.mode-art{height:80px}
.expedition-title h1{font-size:30px}
.mode-paper p{margin:12px 0 15px}
.mode-cards{margin-bottom:25px}}
@media(max-width:760px){.character-screen .character-copy{max-width:none}}
.character-motive,.character-desc{word-break:keep-all}
.hero-lock-notice{border-left:2px solid #b19d7a;padding:8px 12px;margin:12px 0;color:#e1d5be;background:#261a15aa;border-color:var(--owner-accent)}
.hero-lock-notice strong{font-size:13px;color:var(--owner-soft)}
.hero-lock-notice p{font-size:13px;margin:3px 0;line-height:1.5}
.hero-lock-notice small{font-size:11px;color:#ead9c7}
.character-confirm:disabled{opacity:.58;background:#687079;color:#e4e5e1;box-shadow:none;cursor:not-allowed}
.hero-lock-notice+h1{margin-top:8px}
@media(max-height:820px) and (min-width:761px){.hero-lock-notice{margin:8px 0;padding:6px 10px}
.hero-lock-notice p{font-size:12px}
.hero-lock-notice small{font-size:10px}
.hero-lock-notice+h1{font-size:60px}}
.title-menu button,.title-menu .menu-major{font-family:Pretendard,sans-serif;font-weight:600;font-size:20px}
.title-menu button span{font-family:Pretendard,sans-serif}
.title-menu .menu-resume{display:flex;flex-direction:column;gap:7px;margin-bottom:13px;padding:17px 19px;border:1px solid var(--gold);border-right:4px solid var(--gold);border-radius:4px;background:linear-gradient(100deg,#e9b87933,#332624de);box-shadow:0 8px 22px #0003;color:var(--ink)}
.title-menu .menu-resume strong{font-size:22px;line-height:1.25;font-weight:700}
.title-menu .menu-resume .resume-meta{font-family:Pretendard,sans-serif;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:0;color:var(--muted);white-space:normal}
.title-menu .menu-resume:hover{background:linear-gradient(100deg,#e9b8794a,#332624f2);transform:translateY(-2px)}
.title-menu .menu-resume:before{content:none}
.hud-home{font-family:Pretendard,sans-serif;font-size:18px}
.game-hud .hud-tools button{display:flex;align-items:center;justify-content:center}
.game-hud .hud-tools button .ico{margin:0 5px 0 0}
.game-shell{min-height:100svh;background:var(--bg)}
.game-hud{height:86px;display:flex;align-items:center;gap:24px;padding:12px 30px;background:var(--layer);border-bottom:1px solid var(--line);position:relative;z-index:10;box-shadow:none;font-family:Pretendard}
.hud-portrait{display:flex;gap:12px;align-items:center;min-width:170px}
.hud-portrait img{width:38px;height:48px;object-fit:cover;object-position:center 20%;border:1px solid #b7a88355;border-color:var(--owner-accent);border-radius:3px}
.hud-portrait strong{font-family:Pretendard;font-size:17px;display:block;line-height:1.5;color:var(--owner-soft)}
.hud-portrait small{font-size:11px;color:var(--muted);display:block}
.hud-health{min-width:140px;font-size:14px;color:#f0c1ad}
.hud-health>span{display:flex;gap:7px;align-items:center}
.hud-health>i{display:block;height:5px;background:#20140f;margin-top:5px;border:0}
.hud-health b{height:100%;display:block;background:linear-gradient(90deg,#a06051,#d49679)}
.hud-gold{font-size:14px;color:#e7c58b;display:flex;gap:7px;align-items:center}
.game-hud button{border:1px solid transparent;background:transparent;padding:8px 12px;font-size:13px;color:var(--muted);border-radius:3px}
.game-hud button:hover{background:#fff1dc09;border-color:var(--line)}
.hud-tools{display:flex;gap:4px;margin-left:auto;align-items:center}
.hud-tools button{font-size:12px;min-width:36px}
.hud-location{font-size:16px;font-family:Pretendard}
.game-screen.content{max-width:1660px;padding-top:22px}
.combat-shell{height:100svh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.combat-shell .game-hud{flex:0 0 64px;height:82px;flex-basis:82px}
.combat-shell .game-screen{flex:1;min-height:0;position:relative;padding:0;width:100%;max-width:none}
.battle-screen{height:100%;display:grid;grid-template-rows:minmax(0,1fr) 360px;background:var(--bg);position:relative}
.battle-screen>.arena{position:relative;height:auto;min-height:0;border:0;border-radius:0;overflow:hidden;isolation:isolate;background:var(--bg)}
.battle-screen .arena-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;filter:brightness(.9) saturate(1);opacity:1;object-position:center 61%;z-index:-3}
.battle-scene-shade{position:absolute;inset:0;background:linear-gradient(0deg,#211918b0,transparent 35%);z-index:-1;pointer-events:none}
.battle-screen .arena:before,.battle-screen .arena:after{display:none}
.battle-stage-label{position:absolute;left:30px;top:18px;display:flex;align-items:center;gap:12px;z-index:3;background:none;padding:0;border-left:2px solid #d5b27b;border:0}
.battle-stage-label>span{font-size:13px;color:var(--gold)}
.battle-stage-label strong{font-size:15px;font-family:Pretendard}
.battle-stage-label small{font-size:11px;color:var(--muted)}
.battle-screen .combatants{height:100%;padding:66px 9% 44px;display:flex;align-items:end;justify-content:space-between;gap:6%;position:relative}
.battle-screen .player-unit{width:230px;position:relative;flex:0 0 230px;z-index:2}
.battle-screen .player-unit .portrait{width:100%;height:clamp(190px,29vh,330px);max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;mask-image:none;position:relative}
.battle-screen .portrait img{object-fit:contain;object-position:center;filter:brightness(1.12);width:100%;height:100%;mask-image:linear-gradient(0deg,transparent,black 12%,black 96%,transparent)}
.battle-screen .enemies{flex:1;max-width:1100px;gap:45px;align-items:end;justify-content:center;display:flex}
.battle-screen .enemy-unit{position:relative;width:225px;min-width:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;display:block;cursor:pointer;flex:0 1 225px}
.battle-screen .enemy-unit:hover{transform:translateY(-4px);filter:brightness(1.13)}
.battle-screen .enemy-unit.targeted{outline:2px solid var(--gold);outline-offset:5px;border-radius:4px}
.battle-screen .enemy-unit.targeted:before{content:'현재 표적';position:absolute;display:block;z-index:5;top:-29px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;background:var(--gold);border:0;color:#322621;padding:2px 9px;border-radius:3px}
.battle-screen .enemy-unit.targeted:after{content:'';position:absolute;display:block;height:2px;left:10%;right:10%;bottom:-4px;background:var(--gold);box-shadow:none}
.enemy-figure{position:relative;height:clamp(175px,24vh,285px);overflow:hidden;mask-image:linear-gradient(0deg,transparent,black 10%,black 95%,transparent)}
.battle-screen .enemy-unit .enemy-art{height:100%;width:100%;object-fit:contain;object-position:center;filter:saturate(.45) brightness(.8);transform:scaleX(-1)}
.battle-screen .enemy-unit .intent{position:absolute;left:50%;top:-2px;transform:translateX(-50%);background:rgba(49,24,34,.88);border:1px solid rgba(201,92,82,.45);color:#ecc0b5;font-size:13px;padding:5px 11px;border-radius:4px;z-index:3;display:flex;gap:7px;align-items:center;white-space:nowrap}
.battle-screen .enemy-unit .intent.guard{background:rgba(16,45,63,.9);border-color:#7ec7d855;color:#ead9c7}
.battle-screen .intent .ico{width:15px;height:15px;margin:0}
.actor-plaque{background:var(--layer);padding:7px 10px;position:relative;text-align:center;border:1px solid #e9eced17;border-radius:3px}
.battle-screen .actor-plaque h3{font-size:16px;line-height:1.45;margin:0 0 4px;white-space:nowrap;font-family:Pretendard;font-weight:600}
.battle-screen .actor-plaque small{font-size:12px;line-height:1.5;color:var(--muted)}
.actor-plaque small b{font-weight:500;margin-left:7px;color:#ead9c7}
.battle-screen .health-bar{height:6px;margin:5px auto;width:85%;background:#221611cf}
.actor-status{display:flex;justify-content:center;gap:5px;font-size:10px;min-height:15px;margin-top:3px;color:#c5b6ef}
.actor-status>span{border:1px solid #9c8dbf55;background:#2d211c80;padding:0 6px;border-radius:2px}
.battle-screen .enemy-placeholder{position:absolute;right:0;bottom:-18px;font-size:8px;color:#c5b29f}
.battle-target-line{position:absolute;left:0;right:0;bottom:0;height:33px;background:rgba(33,25,24,.82);display:flex;justify-content:space-between;align-items:center;padding:0 35px;font-size:12px;color:var(--muted);z-index:4;border-top:1px solid #e9eced10}
.battle-target-line b{color:#dbc496;font-weight:500}
.battle-screen .battle-dock{padding:0 28px 12px;position:relative;background:var(--surface);border-top:1px solid var(--line);display:grid;grid-template-rows:50px minmax(0,1fr) 56px;min-height:0}
.battle-screen .hand-head{margin:0;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:18px;height:50px;border-bottom:1px solid #e9eced0a;margin-bottom:10px}
.battle-screen .energy{font-size:14px;color:#e6cea0;gap:8px;display:flex;align-items:center}
.battle-screen .energy-orb{width:33px;height:33px;font-size:21px;display:grid;place-items:center;background:#e9b879;color:#332722;box-shadow:none;border:1px solid #efd29a55;border-radius:5px}
.battle-screen .resource-meter{font-size:13px;padding:0 12px;border-left:1px solid var(--line)}
.battle-screen .resource-meter small{font-size:11px}
.pile-summary{font-size:12px;padding:5px 9px;border:0;color:#ead9c7}
.battle-screen .hand{--card-width:clamp(140px,12vw,184px);--hand-gap:min(12px,calc((100vw - 94px - var(--hand-count)*var(--card-width))/(var(--hand-count) - 1)));position:relative;display:flex;align-items:start;justify-content:center;gap:0;flex-wrap:nowrap;min-height:0;padding:0;overflow:visible;isolation:isolate}
.battle-screen .hand>.card{width:var(--card-width);height:240px;min-height:240px;max-width:none;flex:0 0 var(--card-width);margin-left:var(--hand-gap);padding:0;background:var(--surface-raised);border:1px solid #ab9671a6;border-radius:5px;overflow:hidden;box-shadow:0 5px 13px #0005;position:relative;transition:transform .16s,box-shadow .16s;transform-origin:50% 100%;z-index:1;touch-action:none;border-color:color-mix(in srgb,var(--owner-accent) 48%,#82929b);border-width:1px}
.battle-screen .hand>.card:first-child{margin-left:0}
.battle-screen .hand>.card:hover,.battle-screen .hand>.card:focus-visible{transform:translateY(-8px);z-index:30;background:#40342f;box-shadow:0 10px 30px #000b;border-color:var(--owner-soft)}
.battle-screen .hand .card-art{height:91px}
.battle-screen .hand .card-art img{filter:brightness(.85) saturate(.8)}
.battle-screen .hand .card h3{font-size:15px;line-height:1.4;padding:9px 10px 0;white-space:nowrap;letter-spacing:-.3px}
.battle-screen .hand .card .tag{font-size:10px;line-height:1.5;padding:3px 10px;margin:0;color:var(--owner-soft)}
.battle-screen .hand .card p{font-size:14px;line-height:1.55;min-height:0;padding:2px 10px 7px;color:#e9e7dc;display:block;max-height:89px;overflow:auto}
.battle-screen .hand .card .cost{width:27px;height:27px;font-size:18px;line-height:27px;left:7px;top:7px;border-radius:3px}
.battle-screen .hand .card .rarity{font-size:8px;right:6px;top:10px}
.battle-screen .card-hint{display:none}
.hand-key{position:absolute;right:7px;bottom:4px;font-size:9px;color:#ead9c7;background:#221611b0;padding:0 4px;border-radius:2px;border:1px solid #d0d8d022}
.battle-screen .turn-actions{margin:0;padding:0 10px;display:flex;align-items:center;justify-content:space-between;gap:15px;height:56px}
.battle-screen .turn-actions .battle-skill{font-size:12px;padding:7px 12px;text-align:left;min-width:245px;max-width:350px;background:#21191845;border-color:#a0b9b533;display:block;border:1px solid var(--line);border-radius:3px}
.battle-skill strong{display:block;font-size:13px;font-weight:600}
.battle-skill span{display:block;font-size:11px;color:#ead9c7;line-height:1.6;font-weight:400}
.battle-input-hint{font-size:11px;line-height:1.7;color:#ead9c7;text-align:center;margin:0}
.battle-input-hint span{font-size:10px;color:#c5b29f}
.battle-screen .turn-actions .primary{font-size:15px;padding:9px 22px;min-width:165px;height:43px;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:none;background:var(--gold);color:#3d312c;border-radius:3px}
.turn-actions .primary small{font-size:9px;color:#5e524d}
.empty-hand{padding:65px;color:#ead9c7;font-size:15px}
dialog.overlay{position:fixed;width:min(1000px,calc(100vw - 60px));max-width:none;max-height:calc(100svh - 70px);padding:24px 28px;border-radius:5px;border:1px solid var(--line);background:var(--surface);box-shadow:0 22px 70px #0008;color:var(--ink);overflow:auto}
.overlay::backdrop{background:rgba(27,17,15,.72);backdrop-filter:blur(2px)}
.overlay-top{display:flex;align-items:center;justify-content:space-between;min-height:26px;border-bottom:1px solid #e9eced10;padding-bottom:12px;margin-bottom:14px}
.overlay-kicker{font-size:10px;letter-spacing:2px;color:#cfb6a0}
.overlay-close{border:0;padding:4px;background:none;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.overlay-close .ico{width:22px;height:22px;margin:0}
.overlay h2{font-size:25px;margin:5px 0 20px;line-height:1.5}
.overlay-body{position:relative}
.overlay-guide{width:min(1020px,calc(100vw - 60px))}
.guide-composition{display:grid;grid-template-columns:320px 1fr;gap:30px;align-items:stretch}
.guide-illustration{height:280px;position:relative;overflow:hidden;border:1px solid #cdb78844;background:#2f231e}
.guide-illustration img{width:100%;height:100%;object-fit:cover;object-position:76% center;filter:brightness(.58);opacity:.85}
.guide-illustration>span{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(circle,#2e221d26,#2e221d50)}
.guide-illustration .ico{width:85px;height:85px;stroke-width:.8;color:#e5c793;filter:drop-shadow(0 2px 10px #000)}
.guide-illustration small{position:absolute;bottom:20px;left:0;right:0;text-align:center;font-family:Pretendard;font-size:17px;color:#e9d4af}
.guide-copy{display:flex;flex-direction:column;justify-content:center}
.guide-page-label{font-size:10px;letter-spacing:1px;color:#ead9c7}
.guide-copy>p{font-size:18px;line-height:1.8;margin:13px 0 17px;word-break:keep-all;color:#ece7d7}
.guide-copy ul{margin:0;padding-left:20px;color:#ead9c7;font-size:14px;line-height:1.95}
.guide-pagination{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #c1b28f33;padding-top:18px;margin-top:25px;border-color:var(--line)}
.guide-pagination button{font-size:13px;padding:8px 18px;background:none;border-color:var(--line);border-radius:3px;color:#ead9c7}
.guide-pagination>div{display:flex;gap:3px}
.guide-pagination>div button{border:0;background:none;padding:5px;color:#c5b29f;font-size:14px}
.guide-pagination>div button[aria-current=page]{color:var(--gold)}
.overlay-detail{width:min(1000px,calc(100vw - 60px));background:var(--surface)}
.detail-composition{display:grid;grid-template-columns:290px 1fr;gap:38px;align-items:center}
.detail-display{display:grid;place-items:center;padding:12px 10px 20px;background:radial-gradient(ellipse,#e9b87910,transparent 70%)}
.detail-display>.card{width:255px;min-height:370px;pointer-events:none;transform:rotate(-3deg);box-shadow:0 15px 35px #0009}
.detail-display .card-art{height:165px}
.detail-display .card h3{font-size:22px}
.detail-display .card p{font-size:16px;line-height:1.65;padding:6px 16px 15px}
.detail-display .card .tag{font-size:12px;padding:4px 16px}
.detail-owner{font-size:12px;letter-spacing:1px;color:var(--owner-soft)}
.detail-copy h3{font-size:34px;margin:12px 0 20px;line-height:1.4}
.detail-facts{display:flex;gap:10px;flex-wrap:wrap}
.detail-facts span{font-size:12px;padding:6px 10px;border:1px solid #9baaaa33;background:var(--layer);color:#ead9c7}
.detail-facts b{color:#e2c183;font-family:Pretendard;font-size:17px;margin-left:4px}
.detail-effect{font-size:19px;line-height:1.85;color:#eee7d7;margin:24px 0 18px;word-break:keep-all}
.detail-context{font-size:14px;line-height:1.8;color:#ead9c7;border-left:2px solid #78969c;padding-left:12px;border-color:var(--owner-accent)}
.detail-copy small{font-size:11px;color:#c5b29f;display:block;margin:20px 0}
.detail-copy>button{font-size:13px;background:#4c403b;border-color:#a9b1a266;padding:10px 20px}
.overlay-confirm{width:min(540px,calc(100vw - 60px));padding:25px 30px 30px;background:var(--surface);border-color:var(--line)}
.overlay-confirm h2{font-size:26px;line-height:1.5;margin:10px 0 22px}
.overlay-confirm .help p{font-size:16px;line-height:1.85;margin:0 0 25px;color:#e4d1bf;word-break:keep-all}
.overlay-confirm .help button{padding:11px 18px;font-size:14px;margin-right:7px}
.overlay-confirm .help .primary{box-shadow:none;background:#d2b77f;color:#3e322d}
.overlay-menu{width:min(480px,calc(100vw - 60px));background:var(--surface)}
.game-menu-actions{display:grid;gap:9px;margin-bottom:20px}
.game-menu-actions button{font-size:15px;text-align:left;padding:11px 17px;background:#21191835;border-color:var(--line);border-radius:3px}
.overlay-menu small{font-size:11px;color:#c6ac95}
.overlay-legacy .catalog{justify-content:flex-start}
.overlay-legacy h3{margin-bottom:12px}
@media(max-height:850px){.combat-shell .game-hud{height:58px;flex-basis:58px}
.battle-screen{grid-template-rows:minmax(0,1fr) 300px}
.battle-screen .battle-dock{grid-template-rows:40px minmax(0,1fr) 49px;padding-bottom:6px}
.battle-screen .hand-head{height:40px}
.battle-screen .hand>.card{height:205px;min-height:205px}
.battle-screen .hand .card-art{height:63px}
.battle-screen .hand .card h3{font-size:14px;padding-top:8px}
.battle-screen .hand .card p{font-size:13px;max-height:91px;line-height:1.5}
.battle-screen .hand .card .tag{font-size:9px;padding-top:2px;padding-bottom:2px}
.battle-screen .turn-actions{height:49px}
.battle-screen .combatants{padding:57px 8% 37px}
.battle-screen .player-unit{width:180px;flex-basis:180px}
.battle-screen .player-unit .portrait{height:clamp(140px,26vh,220px)}
.battle-screen .enemy-unit{width:190px;flex-basis:190px}
.enemy-figure{height:clamp(135px,22vh,190px)}
.battle-screen .enemies{gap:32px}
.battle-screen .actor-plaque h3{font-size:15px}
.battle-screen .actor-plaque small{font-size:11px}
.battle-screen .enemy-unit .intent{font-size:12px}
.battle-stage-label{top:12px}
.battle-screen .resource-meter small{display:none}
.battle-screen .hand-head .energy-orb{width:29px;height:29px;font-size:19px}
.battle-screen .turn-actions .primary{height:39px;font-size:14px}
.battle-screen .turn-actions .battle-skill{padding:5px 10px}
.battle-skill strong{font-size:12px}
.battle-skill span{font-size:10px}
.battle-input-hint{font-size:10px}
.battle-input-hint span{font-size:9px}}
@media(max-height:680px) and (min-width:761px){.game-hud{gap:18px;padding:7px 22px}
.combat-shell .game-hud{height:53px;flex-basis:53px}
.battle-screen{grid-template-rows:minmax(0,1fr) 278px}
.battle-screen .battle-dock{grid-template-rows:36px minmax(0,1fr) 45px;padding:0 20px 5px}
.battle-screen .hand-head{height:36px;gap:8px}
.battle-screen .hand>.card{height:195px;min-height:195px}
.battle-screen .hand .card-art{height:55px}
.battle-screen .hand .card p{max-height:85px}
.battle-screen .turn-actions{height:45px}
.battle-screen .combatants{padding:44px 6% 34px;gap:3%}
.battle-screen .player-unit{width:145px;flex-basis:145px}
.battle-screen .player-unit .portrait{height:125px}
.battle-screen .enemy-unit{width:165px;flex-basis:165px}
.enemy-figure{height:110px}
.battle-screen .enemies{gap:25px}
.battle-screen .actor-plaque h3{font-size:13px}
.battle-screen .actor-plaque small{font-size:10px}
.battle-screen .actor-plaque{padding:3px 6px}
.battle-screen .health-bar{height:4px}
.battle-screen .enemy-unit .intent{font-size:11px;padding:3px 10px}
.battle-screen .enemy-unit.targeted:before{top:-27px;font-size:9px;padding:2px 7px}
.battle-stage-label{top:8px;font-size:11px;left:22px;padding:3px 9px}
.battle-stage-label strong{font-size:12px}
.battle-stage-label small{font-size:9px}
.battle-target-line{height:26px;padding:0 25px;font-size:10px}
.battle-screen .pile-summary{font-size:10px}
.battle-screen .hand-head .energy-orb{width:26px;height:26px;font-size:17px}
.battle-screen .resource-meter{font-size:11px}
.battle-screen .turn-actions .primary{min-width:140px;height:35px;font-size:13px;padding:7px 12px}
.battle-screen .turn-actions .battle-skill{min-width:225px}
.battle-input-hint{font-size:9px}
.hud-portrait{min-width:165px}
.hud-portrait img{height:38px;width:30px}
.hud-portrait strong{font-size:15px}
.hud-health{min-width:115px;font-size:12px}
.hud-gold{font-size:12px}
.game-hud button{padding:6px 9px;font-size:11px}
.hud-tools{gap:5px}
.overlay-guide .guide-illustration{height:240px}
.overlay h2{font-size:24px}
.guide-copy>p{font-size:16px}
.guide-copy ul{font-size:13px}
.guide-pagination{margin-top:18px;padding-top:14px}
.detail-display>.card{width:210px;min-height:315px}
.detail-display .card-art{height:125px}
.detail-display .card p{font-size:14px}
.detail-copy h3{font-size:28px}
.detail-effect{font-size:16px;margin-top:18px}
.detail-context{font-size:12px}
.detail-copy small{margin:12px 0}}
@media(max-width:1100px) and (min-width:761px){.game-hud{gap:15px;padding-left:20px;padding-right:20px}
.hud-portrait{min-width:165px}
.hud-tools button{font-size:11px;padding:7px 8px}
.battle-screen .combatants{padding-left:5%;padding-right:5%}
.battle-screen .enemies{gap:23px}
.battle-screen .resource-meter small{display:none}
.guide-composition{grid-template-columns:260px 1fr;gap:24px}
.detail-composition{grid-template-columns:250px 1fr;gap:25px}}
@media(max-width:760px){.game-hud{height:auto;min-height:60px;gap:10px;padding:8px 12px;flex-wrap:wrap}
.hud-portrait{min-width:0;gap:7px}
.hud-portrait strong{font-size:14px}
.hud-portrait small{font-size:9px}
.hud-portrait img{width:25px;height:33px}
.hud-health{min-width:95px;font-size:11px}
.hud-gold{font-size:11px}
.game-hud button{padding:5px 8px;font-size:10px}
.hud-tools{gap:3px;width:100%;justify-content:flex-end;border-top:1px solid #b6a27922;padding-top:4px}
.hud-tools button{font-size:10px}
.hud-deck{margin-left:auto}
.combat-shell{height:auto;min-height:100svh;overflow:visible}
.combat-shell .game-screen{flex:none;min-height:0}
.combat-shell .game-hud{height:auto;flex-basis:auto}
.battle-screen{height:auto;display:block}
.battle-screen>.arena{height:330px;min-height:330px}
.battle-screen .combatants{padding:52px 12px 32px;gap:10px}
.battle-screen .player-unit{width:82px;flex-basis:82px}
.battle-screen .player-unit .portrait{height:145px}
.battle-screen .enemies{gap:7px}
.battle-screen .enemy-unit{width:100px;flex-basis:100px}
.enemy-figure{height:120px}
.battle-screen .enemy-unit .intent{font-size:9px;padding:3px 5px}
.battle-screen .intent .ico{display:none}
.battle-screen .actor-plaque h3{font-size:11px;white-space:normal}
.battle-screen .actor-plaque small{font-size:9px}
.battle-screen .actor-plaque{padding:4px 2px}
.battle-screen .enemy-unit.targeted:before{font-size:8px;top:-24px}
.battle-stage-label{top:10px;left:12px}
.battle-stage-label strong{font-size:12px}
.battle-stage-label small{display:none}
.battle-target-line{font-size:9px;padding:0 12px;gap:12px}
.battle-screen .battle-dock{display:block;padding:0 12px 16px}
.battle-screen .hand-head{height:44px;gap:8px;padding:0}
.battle-screen .resource-meter{font-size:10px;border:0;padding:0}
.battle-screen .resource-track{display:none}
.battle-screen .pile-summary{font-size:9px;padding:3px}
.battle-screen .hand{flex-wrap:wrap;gap:9px;min-height:200px}
.battle-screen .hand>.card{width:calc((100% - 18px)/3);flex:0 0 calc((100% - 18px)/3);margin:0;min-height:210px;height:210px}
.battle-screen .hand .card h3{font-size:12px;padding:8px 7px 0}
.battle-screen .hand .card p{font-size:11px;padding:2px 7px 5px;max-height:85px}
.battle-screen .hand .card .tag{font-size:8px;padding:3px 7px}
.battle-screen .hand .card-art{height:65px}
.battle-screen .hand>.card:hover{transform:translateY(-8px)}
.battle-screen .turn-actions{height:auto;min-height:50px;flex-wrap:wrap;padding:13px 0 0;gap:9px}
.battle-screen .turn-actions .battle-skill{min-width:0;max-width:60%;font-size:10px}
.battle-skill strong{font-size:11px}
.battle-skill span{font-size:9px}
.battle-screen .turn-actions .primary{min-width:115px;padding:8px 10px;font-size:12px}
.battle-input-hint{order:3;width:100%;font-size:9px}
.battle-input-hint br{display:none}
.battle-input-hint span{margin-left:7px}
.guide-composition{grid-template-columns:1fr;gap:17px}
.guide-illustration{height:135px}
.guide-illustration .ico{width:50px;height:50px}
.guide-illustration small{bottom:10px;font-size:13px}
.guide-copy>p{font-size:15px}
.guide-copy ul{font-size:12px}
.guide-pagination{margin-top:18px}
.guide-pagination button{font-size:11px;padding:7px 10px}
.overlay h2{font-size:22px}
.detail-composition{grid-template-columns:1fr;gap:18px}
.detail-display>.card{width:190px;min-height:290px}
.detail-display .card-art{height:110px}
.detail-copy h3{font-size:25px}
.detail-effect{font-size:15px}
.detail-context{font-size:13px}
.detail-copy small{font-size:10px}
.overlay-confirm .help p{font-size:14px}
.overlay-confirm .help button{font-size:12px}
.overlay-confirm h2{font-size:22px}
dialog.overlay{padding:18px 20px;max-height:calc(100svh - 30px);width:calc(100vw - 30px)}}
.reduced-motion .battle-screen .hand>.card:hover{transform:none}
@media(prefers-reduced-motion:reduce){.battle-screen .hand>.card:hover{transform:none}}
dialog.overlay-guide{left:auto;right:24px;top:80px;bottom:auto;margin:0;width:min(600px,calc(100vw - 40px));height:min(670px,calc(100svh - 100px));max-height:calc(100svh - 100px);padding:23px 26px;background:var(--surface);border-left:1px solid var(--line);border:1px solid var(--line);border-radius:5px}
.overlay-guide::backdrop{background:#21191822;backdrop-filter:none}
.overlay-guide .overlay-body{height:calc(100% - 102px);display:flex;flex-direction:column}
.overlay-guide h2{font-size:24px;line-height:1.45;margin:6px 0 18px;word-break:keep-all}
.overlay-guide .guide-composition{display:flex;flex-direction:column;gap:18px;flex:1;min-height:0}
.overlay-guide .guide-illustration{height:170px;min-height:170px;width:100%;background:#21191865;border:1px solid var(--line);overflow:hidden;border-radius:3px}
.overlay-guide .guide-copy{justify-content:start}
.overlay-guide .guide-copy>p{font-size:15px;line-height:1.8;margin:7px 0 12px;color:var(--ink)}
.overlay-guide .guide-copy ul{font-size:13px;line-height:1.9;color:var(--muted)}
.overlay-guide .guide-pagination{margin-top:auto;padding-top:15px}
.overlay-guide .guide-pagination button{font-size:12px;padding:7px 13px}
.guide-example{height:100%;display:flex;align-items:center;justify-content:center;gap:24px;position:relative;padding:10px 20px}
.guide-sample-card{height:163px;width:115px;position:relative}
.guide-sample-card>.card{width:150px;min-height:220px;transform:scale(.72);transform-origin:0 0;pointer-events:none;background:#4a3e39}
.guide-sample-card .card-art{height:86px}
.guide-sample-card .card h3{font-size:15px}
.guide-sample-card .card p{font-size:13px}
.guide-sample-card .card .tag{font-size:10px}
.guide-flow-arrow{font-size:26px;color:#d9b57d}
.guide-sample-foe{width:142px;display:flex;flex-direction:column;align-items:center;gap:8px}
.guide-sample-foe>span{font-size:11px;padding:2px 8px;background:#5b303c88;color:#e9baa5;border:1px solid #b17d6755;border-radius:10px;white-space:nowrap}
.guide-sample-foe img{width:70px;height:103px;object-fit:contain;filter:saturate(.5);mask-image:linear-gradient(0deg,transparent,black 10%);display:none}
.guide-sample-foe small{font-size:10px;color:#ead9c7;white-space:nowrap;order:3}
.guide-example-resource>img{height:160px;width:85px;object-fit:contain;mask-image:linear-gradient(0deg,transparent,black 10%)}
.guide-example-resource>div{max-width:240px}
.guide-example-resource strong{font:21px Pretendard;color:var(--owner-soft);font-family:Pretendard,sans-serif}
.guide-resource-pips{display:flex;gap:6px;margin:13px 0 8px}
.guide-resource-pips i{display:block;width:16px;height:22px;background:#574b46;border:1px solid #b2cfcd33}
.guide-resource-pips i.on{background:var(--owner-accent);box-shadow:0 0 7px color-mix(in srgb,var(--owner-accent) 24%,transparent)}
.guide-example-resource small{font-size:11px;color:#ead9c7;position:static}
.guide-example-resource p{font-size:12px;color:#ead9c7;line-height:1.7;margin-top:9px}
.guide-example-journey{gap:14px;flex-wrap:wrap;align-content:center}
.guide-example-journey>span{font-size:12px;text-align:center;padding:17px 15px;border:1px solid #b6a47944;color:#ead9c7;background:#392d28}
.guide-example-journey b{font-family:Pretendard,sans-serif;font-size:18px;color:#e1c89c;line-height:1.8}
.guide-example-journey>i{font-size:21px;font-style:normal;color:#c3a674}
.guide-example-journey>small{position:static;width:100%;font-size:11px;color:#ead9c7;text-align:center;margin-top:3px}
@media(max-height:680px) and (min-width:761px){dialog.overlay-guide{top:65px;right:18px;height:calc(100svh - 82px);max-height:calc(100svh - 82px);padding:16px 23px 18px}
.overlay-guide h2{font-size:21px;margin-bottom:13px}
.overlay-guide .overlay-body{height:calc(100% - 73px)}
.overlay-guide .guide-illustration{height:145px;min-height:145px}
.overlay-guide .guide-composition{gap:14px}
.overlay-guide .guide-copy>p{font-size:14px;line-height:1.7;margin:8px 0}
.overlay-guide .guide-copy ul{font-size:12px;line-height:1.7}
.overlay-guide .guide-pagination{padding-top:10px}
.guide-sample-card{transform:scale(.8);transform-origin:50% 50%;margin:-15px 0}
.guide-sample-foe img{height:78px}
.guide-example-resource>img{height:130px}
.guide-example{padding:7px 20px}
.guide-example-journey>span{padding:12px 15px}}
@media(max-width:760px){dialog.overlay-guide{right:15px;top:15px;height:calc(100svh - 30px);max-height:calc(100svh - 30px);width:calc(100vw - 30px)}
.overlay-guide .guide-illustration{height:160px;min-height:160px}
.overlay-guide .guide-copy>p{font-size:14px}
.overlay-guide .guide-copy ul{font-size:12px}
.guide-example{gap:12px;padding:10px}
.guide-example-journey>span{padding:12px 10px}
.guide-example-resource>div{max-width:180px}
.guide-example-resource>img{width:65px}}
body,button,h1,h2,h3,.serif{font-family:Pretendard,'Malgun Gothic',sans-serif}
.title-menu button,.title-menu .menu-major,.hud-home{font-family:Pretendard,sans-serif}
.character-screen .character-sect{color:var(--owner-soft)}
.character-screen .character-facts{border-color:var(--owner-accent)}
.character-screen .hero-thumbnails .selected{border-color:var(--owner-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--owner-accent) 25%,transparent)}
.character-screen .hero-arrow{color:var(--owner-soft)}
.character-screen .character-confirm:not(:disabled){background:linear-gradient(120deg,var(--owner-soft),var(--owner-accent));color:#2d211c;box-shadow:0 3px 0 var(--owner-deep),0 8px 25px color-mix(in srgb,var(--owner-accent) 17%,transparent)}
.card.owner-sword,.card.owner-shadow,.card.owner-snow{border-color:color-mix(in srgb,var(--owner-accent) 48%,#82929b);background:linear-gradient(155deg,color-mix(in srgb,var(--owner-deep) 35%,#473b36),#352924)}
.game-hud .hud-deck{box-shadow:inset 0 -2px color-mix(in srgb,var(--owner-accent) 65%,transparent)}
.resource-meter{color:var(--owner-soft);display:flex;align-items:center;gap:8px}
.resource-track i.on{background:var(--owner-accent);box-shadow:none}
.resource-track i{background:color-mix(in srgb,var(--owner-deep) 60%,#463a35);display:block;width:8px;height:12px;border-radius:1px;box-shadow:none}
.trait.active strong{color:var(--owner-soft)}
.trait.active{border-color:color-mix(in srgb,var(--owner-accent) 35%,transparent)}
.trait .dots{color:var(--owner-accent)}
.owner-tabs .active{box-shadow:inset 0 -2px var(--owner-accent);color:var(--owner-soft)}
.tag-tabs .active{background:color-mix(in srgb,var(--owner-deep) 65%,transparent);color:var(--owner-soft)}
.settings-exit{display:flex;align-items:center;gap:20px;margin:22px 0;padding:17px 0;border-top:1px solid #aeb9b733;border-bottom:1px solid #aeb9b733}
.settings-exit button{color:#efc8b5;border-color:#b5806c66;font-size:14px;padding:10px 18px}
.settings-exit small{font-size:12px;color:#ead9c7}
.exit-screen{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse at 50% 30%,#463a35,#261a15 65%);padding:35px 20px}
.exit-seal{font-family:Pretendard,sans-serif;font-size:70px;color:#d2b789;margin-bottom:18px;opacity:.8}
.exit-screen h1{font-family:Pretendard,sans-serif;font-size:35px;letter-spacing:-1px;margin-bottom:22px}
.exit-screen p{font-size:16px;line-height:1.9;color:#ead9c7}
.exit-screen>div{display:flex;gap:15px;margin:35px 0 23px}
.exit-screen button{font-size:14px;padding:12px 20px}
.exit-screen small{font-size:12px;color:#c5b29f}
.health-bar i{height:100%;display:block;background:linear-gradient(90deg,#a3574b,#d6937c);transition:width var(--motion-normal)}
.resource-track{display:flex;gap:3px}
.battle-screen .enemy-unit.defeated{opacity:.35;filter:grayscale(1);cursor:default}
.hud-progress{padding-left:23px;border-left:1px solid var(--line);min-width:178px}
.hud-progress strong{font-size:14px;display:block;font-weight:600}
.hud-progress small{font-size:11px;display:block;color:#ead9c7;margin-top:3px}
.battle-background-pending{position:absolute;inset:0;background:linear-gradient(180deg,#2f231e,#423631 68%,#30241f);z-index:-3}
.battle-background-pending:after{content:'';position:absolute;left:0;right:0;bottom:27%;height:1px;background:#c6d1ce0f}
.battle-background-pending>span{position:absolute;right:25px;top:19px;font-size:10px;color:#a5bbc57a;letter-spacing:1px}
.unit-art-state{position:absolute;bottom:9px;left:0;right:0;text-align:center;font-size:9px;line-height:1.5;color:#ead9c7;background:#211918a3;padding:2px 5px}
.unit-pending{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;position:relative;color:#ead9c7;border:1px dashed #d9c1ac30;background:#291d1830;border-radius:3px;margin:10px 8px 8px}
.unit-pending .ico{width:52px;height:52px;stroke-width:.65;color:#c5b29f;margin:0}
.unit-pending span{font-size:11px;letter-spacing:.2px;color:#ead9c7}
.battle-screen .enemy-figure{mask-image:none;overflow:visible}
.battle-screen .enemy-unit.targeted .unit-pending{border-color:var(--gold);border-style:solid;background:#e9b87918}
.actor-status span{border-color:var(--line);border-radius:3px}
.overlay-settings{width:min(710px,calc(100vw - 60px));max-height:calc(100svh - 70px)}
.settings-layout{display:flex;flex-direction:column;gap:22px}
.settings-section{border:1px solid var(--line);border-radius:3px;padding:17px 20px;background:#21191835}
.settings-section>header{padding-bottom:11px}
.settings-section h3{font-size:15px;font-weight:600;color:#ead9c7}
.settings-section header p{font-size:12px;color:#ead9c7;margin-top:3px}
.settings-row>div strong{display:block;font-size:14px;font-weight:500}
.settings-row>div small{display:block;color:#ead9c7;font-size:11px;margin-top:3px}
.settings-toggle{display:flex;align-items:center;gap:10px;background:none;border:0;padding:5px 0;min-width:80px;justify-content:flex-end;font-size:12px;color:#ead9c7}
.settings-toggle i{width:30px;height:17px;background:#554944;border-radius:12px;position:relative;display:block}
.settings-toggle i:after{content:'';position:absolute;top:3px;left:3px;width:11px;height:11px;background:#9bacb9;border-radius:50%;transition:transform var(--motion-fast)}
.settings-toggle[aria-pressed=true]{color:#e1c698}
.settings-toggle[aria-pressed=true] i{background:#b49662}
.settings-toggle[aria-pressed=true] i:after{transform:translateX(13px);background:#f4dfb5}
.settings-session{display:flex;align-items:center;justify-content:space-between;padding:4px 1px}
.settings-session strong{font-size:14px;display:block;font-weight:500}
.settings-session small{font-size:11px;display:block;margin-top:3px;color:#ead9c7}
.settings-session button{color:#e6bdb3;border-color:#c95c5255;background:#c95c5209;font-size:13px;padding:9px 16px}
.guide-categories{display:flex;gap:5px;margin-bottom:14px}
.guide-categories button{font-size:11px;padding:6px 10px;color:#ead9c7;border:1px solid transparent;background:transparent;border-radius:3px}
.guide-categories button[aria-current=page]{color:#e4cca1;background:#e9b8790c;border-color:#e9b8794d}
.guide-example-play .guide-sample-foe:after{content:'인물 아트 pending';font-size:10px;color:#ead9c7;border:1px dashed #c8d1cf30;padding:25px 8px}
.title-main h1 .title-hanja{font-family:Pretendard,sans-serif;font-size:19px;font-weight:400;letter-spacing:8px;margin:12px 0 8px;display:block}
.title-main h1 .title-english{font-family:Pretendard,sans-serif;font-size:14px;font-weight:500;letter-spacing:2px;white-space:normal;margin:0 0 36px;display:block}
.title-art-state{font-size:9px;color:#ead9c7;letter-spacing:.5px}
@media(max-height:850px){.combat-shell .game-hud{height:68px;flex-basis:68px}
.game-hud{gap:18px;padding:9px 25px}
.hud-portrait{min-width:140px}
.hud-progress{padding-left:17px;min-width:155px}
.hud-progress strong{font-size:12px}
.hud-progress small{font-size:10px}
.battle-screen{grid-template-rows:minmax(0,1fr) 300px}
.battle-screen .battle-dock{grid-template-rows:40px minmax(0,1fr) 49px;padding-bottom:6px}
.battle-screen .hand-head{height:40px;margin-bottom:0}
.battle-screen .hand>.card{height:205px;min-height:205px}
.battle-screen .hand .card-art{height:63px}
.battle-screen .hand .card p{font-size:13px;max-height:89px}
.battle-screen .combatants{padding-top:56px}
.unit-pending .ico{width:40px;height:40px}
.unit-pending span{font-size:10px}
.battle-background-pending>span{font-size:9px;top:16px}
.overlay-settings{max-height:calc(100svh - 45px)}
.settings-layout{gap:15px}
.settings-section{padding:13px 17px}
.settings-section>header{padding-bottom:8px}
.settings-row{padding:10px 0}
.title-main h1{font-size:clamp(64px,7.1vw,108px)}
.title-main h1 .title-english{margin-bottom:27px}}
@media(max-height:680px) and (min-width:761px){.combat-shell .game-hud{height:57px;flex-basis:57px}
.game-hud{gap:12px;padding:7px 18px}
.hud-progress{min-width:125px;padding-left:13px}
.hud-progress strong{font-size:11px}
.hud-progress small{font-size:9px}
.hud-portrait{min-width:115px}
.hud-portrait small{font-size:9px}
.hud-health{min-width:112px}
.hud-health>span{font-size:11px}
.battle-screen{grid-template-rows:minmax(0,1fr) 278px}
.battle-screen .battle-dock{grid-template-rows:36px minmax(0,1fr) 45px}
.battle-screen .hand-head{height:36px}
.battle-screen .hand>.card{height:195px;min-height:195px}
.battle-screen .hand .card-art{height:55px}
.battle-screen .hand .card p{font-size:13px;max-height:85px}
.battle-screen .combatants{padding:43px 6% 33px}
.battle-screen .enemy-unit .intent{font-size:11px;padding:3px 9px}
.battle-screen .enemy-unit.targeted:before{top:-25px;font-size:9px;padding:2px 7px}
.unit-pending{gap:9px;margin:7px 4px}
.unit-pending .ico{width:29px;height:29px}
.unit-pending span{font-size:9px}
.unit-art-state{font-size:8px;bottom:4px}
.battle-stage-label{top:9px}
.battle-background-pending>span{top:11px;right:19px;font-size:8px}
.settings-layout{gap:12px}
.settings-section{padding:10px 14px}
.settings-section header p{font-size:10px}
.settings-section h3{font-size:13px}
.settings-row{padding:8px 0}
.settings-row>div strong{font-size:12px}
.settings-row>div small{font-size:10px}
.overlay-settings .overlay-top{padding-bottom:8px;margin-bottom:9px}
.overlay-settings h2{font-size:22px;margin-bottom:15px}
.settings-session button{font-size:12px;padding:7px 14px}
.settings-session small{font-size:10px}
.settings-session strong{font-size:12px}
dialog.overlay-guide{top:65px;right:18px;height:calc(100svh - 82px);max-height:calc(100svh - 82px);padding:17px 23px}
.overlay-guide .overlay-body{height:calc(100% - 92px)}
.overlay-guide .guide-illustration{height:130px;min-height:130px}
.overlay-guide .guide-composition{gap:13px}
.guide-categories{margin-bottom:8px}
.guide-categories button{font-size:10px;padding:4px 8px}
.overlay-guide .guide-copy>p{font-size:13px;line-height:1.7;margin:5px 0 8px}
.overlay-guide .guide-copy ul{font-size:11px;line-height:1.8}
.guide-example-resource>img{height:120px}
.guide-example-resource p{font-size:11px}
.guide-example-journey>span{padding:9px 12px}
.guide-sample-card{transform:scale(.72);margin:-22px 0}
.guide-example-play .guide-sample-foe:after{padding:17px 8px}
.guide-pagination{padding-top:9px}
.title-main h1 .title-english{margin-bottom:20px}}
@media(max-width:1100px) and (min-width:761px){.game-hud{gap:12px}
.hud-progress{min-width:130px;padding-left:12px}
.hud-portrait{min-width:125px}
.hud-tools button{padding:6px 7px;font-size:10px}
.battle-screen .enemies{gap:25px}
.hero-thumbnails{max-width:360px}
.title-main{width:48vw;left:auto;right:6%}}
@media(max-width:760px){.game-hud{height:auto;gap:9px}
.combat-shell .game-hud{height:auto;flex-basis:auto}
.hud-progress{min-width:0;border:0;padding-left:0}
.hud-progress strong{font-size:10px}
.hud-progress small{display:none}
.battle-screen{height:auto}
.battle-screen>.arena{height:330px;min-height:330px}
.battle-screen .battle-dock{display:block}
.battle-background-pending>span{font-size:8px;top:11px;right:12px}
.battle-screen .combatants{padding:52px 12px 33px}
.unit-pending .ico{width:24px;height:24px}
.unit-pending span{font-size:8px}
.unit-art-state{font-size:7px;line-height:1.3;bottom:3px}
.battle-screen .hand>.card{height:210px;min-height:210px}
.battle-screen .hand .card-art{height:65px}
.battle-screen .hand .card p{font-size:11px}
.settings-section{padding:12px 13px}
.settings-row>div strong{font-size:13px}
.settings-row>div small{font-size:10px}
.settings-session{gap:15px}
.settings-session small{font-size:10px}
.settings-session button{font-size:12px;white-space:nowrap}
.settings-session strong{font-size:13px}
.guide-categories{gap:3px}
.guide-categories button{font-size:10px;padding:5px 7px}
.title-main{left:auto;right:8%;width:84vw}
.title-main h1{font-size:clamp(60px,16vw,90px)}
.title-main h1 .title-hanja{font-size:15px;letter-spacing:7px}
.title-main h1 .title-english{font-size:11px;letter-spacing:1px}
.hero-thumbnails{max-width:70vw}
.hero-thumbnails button{flex-basis:56px}
.character-controls{gap:8px}}


/* 1024 x 1536 full silhouette staging at desktop height. */
@media(min-width:1200px) and (min-height:900px){
.battle-screen .player-unit{width:280px;flex-basis:280px}
.battle-screen .player-unit .portrait{height:420px;aspect-ratio:2/3;overflow:visible}
.battle-screen .enemy-unit{width:260px;flex-basis:260px}
.battle-screen .enemy-figure{height:390px;aspect-ratio:2/3;width:100%;margin:0 auto}
.battle-screen .combatants{padding:54px 7% 44px}
.battle-screen .enemies{gap:32px}
}
.battle-screen .enemy-unit img.actor-standing,.battle-screen .player-unit img.actor-standing{object-fit:contain;object-position:center bottom;filter:none;mask-image:none;transform:none}

/* b009: one command bar beside the hand, designed at 1920 x 1080. */
.battle-screen .battle-dock{grid-template-rows:100px minmax(0,1fr) 24px;padding:0 36px 10px;gap:10px}
.combat-command-bar{width:min(1320px,100%);margin:0 auto;display:grid;grid-template-columns:310px minmax(240px,1fr) 230px 180px;gap:16px;align-items:center;position:relative;z-index:35}
.command-resources{display:flex;align-items:center;gap:20px;min-width:0}
.command-energy{display:grid;grid-template-columns:auto auto;column-gap:12px;align-items:center}
.command-energy strong{grid-row:1/3;grid-column:2;font-size:42px;line-height:1;color:var(--gold)}
.command-energy small{font-size:18px;font-weight:600;color:var(--ink)}
.command-energy>span{font-size:13px;color:var(--muted)}
.combat-command-bar .resource-meter{border-left:1px solid var(--line);padding-left:20px;display:flex;flex-direction:column;gap:7px;font-size:19px}
.combat-command-bar .resource-meter small{display:none}
.combat-command-bar .resource-track{display:flex;gap:4px}.combat-command-bar .resource-track i{width:13px;height:8px}
.command-skill{min-height:76px;text-align:left;border-color:var(--owner-accent);background:color-mix(in srgb,var(--owner-deep) 48%,var(--surface));padding:12px 18px;display:flex;flex-direction:column;gap:6px}
.command-skill strong{font-size:21px;color:var(--owner-soft)}
.command-skill span{font-size:15px;line-height:1.45;color:var(--ink)}
.command-deck{display:flex;flex-direction:column;gap:5px}
.command-deck button{min-height:34px;padding:5px 10px;font-size:17px;display:flex;gap:8px;justify-content:center;align-items:center}
.command-deck button+button{font-size:14px;color:var(--muted);border:0;background:none}
.command-end{min-height:76px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.command-end strong{font-size:23px;display:flex;align-items:center;justify-content:center;gap:10px}.command-end span{font-size:13px;letter-spacing:1px;color:inherit}
.command-input-hint{text-align:center;font-size:14px;color:var(--muted);margin:0}
.game-loading{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px;background:radial-gradient(ellipse at center,#49332c,var(--bg));text-align:center;padding:40px}
.game-loading h1{font-family:NalSun,Pretendard,sans-serif;font-weight:400;font-size:88px}.game-loading p{font-size:24px}.game-loading span{font-size:18px;color:var(--muted)}
@media(min-width:1400px) and (min-height:900px){
.battle-screen{grid-template-rows:minmax(0,1fr) 410px}
.battle-screen .hand{--card-width:206px;--hand-gap:min(16px,calc((1520px - var(--hand-count)*var(--card-width))/(var(--hand-count) - 1)))}
.battle-screen .hand>.card{height:270px;min-height:270px}
.battle-screen .hand .card-art{height:100px}
.battle-screen .hand .card h3{font-size:18px}.battle-screen .hand .card p{font-size:16px;line-height:1.55;max-height:107px}
.battle-screen .hand .card .tag{font-size:12px}.hand-key{font-size:13px}
.battle-screen .player-unit .portrait{height:350px;width:234px;margin:0 auto}.battle-screen .enemy-figure{height:330px;width:220px}
.battle-screen .actor-plaque h3{font-size:20px}.battle-screen .actor-plaque small{font-size:16px}.battle-screen .enemy-unit .intent{font-size:18px}
.battle-target-line{height:38px;font-size:16px}.battle-stage-label{font-size:16px}.battle-stage-label strong{font-size:20px}.battle-stage-label small{font-size:14px}
.game-hud strong{font-size:19px}.game-hud small,.hud-tools button{font-size:14px}
.game-screen.content{max-width:1520px;padding:42px 50px 50px;font-size:18px}
.page-head h2,.reward-center h2{font-size:42px}.page-head p,.reward-center>p{font-size:20px}
.choice-grid{gap:36px;margin:40px 0}.choice-grid .card{width:290px;min-height:420px}.choice-grid .card-art{height:190px}.choice-grid .card h3{font-size:25px}.choice-grid .card p{font-size:19px}.choice-grid .card .tag,.choice-grid .price{font-size:15px}
.choice-tile{width:340px;min-height:250px;padding:30px}.choice-tile h3{font-size:26px}.choice-tile p{font-size:19px}.choice-tile>span{font-size:46px}
.reward-center>button,.shop-service button,.game-screen.content>.primary{font-size:20px;min-height:56px;padding:14px 24px}
.story-text h2{font-size:38px}.story-text p{font-size:21px}.story-text button,.reply-options button{font-size:20px;min-height:56px}.story-name{font-size:23px}
.mode-paper h2{font-size:32px}.mode-paper p{font-size:20px}.mode-paper strong,.mode-cta{font-size:20px}
.map-node{width:220px;min-height:104px;font-size:19px}.panel h3{font-size:24px}.panel p,.trait,.trait p{font-size:17px}
.overlay h2{font-size:32px}.overlay-body{font-size:18px}.overlay-body button{font-size:18px;min-height:44px}
}
@media(max-width:1399px),(max-height:899px){.battle-screen .battle-dock{grid-template-rows:86px minmax(0,1fr) 18px;gap:4px;padding:0 20px 6px}.combat-command-bar{grid-template-columns:260px minmax(210px,1fr) 210px 150px;gap:10px}.command-energy strong{font-size:34px}.command-energy small{font-size:16px}.combat-command-bar .resource-meter{font-size:16px}.command-skill strong{font-size:18px}.command-skill span{font-size:13px}.command-skill,.command-end{min-height:64px}.command-end strong{font-size:20px}.command-input-hint{font-size:12px}}
@media(max-width:900px){.combat-command-bar{grid-template-columns:1fr 1fr}.battle-screen .battle-dock{grid-template-rows:auto minmax(0,1fr) auto}.command-resources{justify-content:center}.command-deck{grid-column:1}.command-end{grid-column:2}.combat-command-bar{padding:8px 0}.battle-screen{height:auto}.battle-screen .hand{margin:12px 0}}

/* Faction accents, quiet enough to preserve command readability. */
.sect-symbol{display:inline-block;width:28px;height:28px;flex:0 0 auto;vertical-align:middle;background:var(--owner-soft);mask-image:var(--sect-icon);mask-size:contain;mask-repeat:no-repeat;mask-position:center}
.character-sect{display:flex;align-items:center;gap:12px}.character-sect .sect-symbol{width:46px;height:46px}
.roster-thumb-name small{display:flex;align-items:center;gap:3px}.roster-thumb-name .sect-symbol{width:18px;height:18px}
.hud-portrait small{display:flex;align-items:center;gap:5px}.hud-portrait .sect-symbol{width:22px;height:22px}
.command-sect{width:40px;height:40px;opacity:.65}.command-resources{gap:12px}.roster-lock{margin-top:28px;border-left:2px solid var(--line);padding:12px 18px;color:var(--muted)}.roster-lock strong{font-size:22px}.roster-lock p{font-size:17px}
.battle-screen .enemy-unit img.actor-standing{transform:scaleX(-1)}

/* Hover remains within the reserved hand lane; command targets never move. */
.battle-screen .hand{padding-top:10px}
.battle-screen .hand>.card:hover,.battle-screen .hand>.card:focus-visible{transform:translateY(-8px);z-index:20}
.battle-screen .combat-command-bar{z-index:35}
.exit-screen .exit-seal{font-family:NalSun,Pretendard,sans-serif;font-size:clamp(64px,6vw,110px);line-height:1.3;color:var(--ink);opacity:1}
.exit-screen p{font-size:20px;color:var(--muted)}.exit-screen button{font-size:18px;min-height:52px}

/* Tactical faces: clear costs, primary values, branch and condition chips. */
.tactical-card{--tactic:#dd8b6c}.tactical-card[data-effect=guard]{--tactic:#a4b5d0}.tactical-card[data-effect=cycle]{--tactic:#9cc6ad}.tactical-card[data-effect=stance]{--tactic:#e9c383}
.tactical-card .tactic-header{height:48px;background:color-mix(in srgb,var(--tactic) 15%,var(--surface));border-top:3px solid var(--tactic);position:relative;padding:0 9px 0 45px;display:flex;align-items:center}
.tactical-card .tactic-header .cost{top:8px;left:8px;width:29px;height:29px;line-height:29px;font-size:23px;color:var(--bg);background:var(--tactic)}
.tactical-card .tactic-header h3{font-size:18px;padding:0;line-height:1.35;white-space:normal;letter-spacing:-.5px}
.tactical-card .card-art{height:58px;position:relative}.tactical-card .card-art img{filter:brightness(.65);object-position:center 30%}
.tactic-type{position:absolute;left:10px;bottom:6px;display:flex;align-items:center;gap:5px;font-size:15px;font-weight:700;color:var(--ink);text-shadow:0 1px 3px #000;background:#211918bd;padding:2px 7px;border-radius:3px}.tactic-type .ico{width:17px;height:17px}
.tactic-metrics{display:flex;gap:16px;padding:6px 12px;min-height:49px;border-bottom:1px solid var(--line);background:#21191866}.tactic-metrics>span{display:flex;gap:7px;align-items:center}.tactic-metrics small{font-size:12px;color:var(--muted)}.tactic-metrics strong{font-size:28px;line-height:1;color:var(--tactic)}
.tactic-keywords{display:flex;flex-wrap:wrap;gap:4px;padding:7px 10px 3px}.tactic-keywords span{font-size:12px;line-height:1.4;font-weight:600;border:1px solid color-mix(in srgb,var(--tactic) 45%,transparent);color:var(--tactic);padding:2px 5px;border-radius:3px}
.tactical-card p{font-size:15px;line-height:1.5;min-height:64px;padding:5px 12px 10px}.tactical-card>.tag{font-size:11px;padding:2px 12px 8px;color:var(--muted)}
.battle-screen .hand>.tactical-card .card-art{height:52px}.battle-screen .hand>.tactical-card .tactic-header h3{padding:0;font-size:18px;white-space:normal}.battle-screen .hand>.tactical-card .cost{top:8px;left:8px;width:29px;height:29px;font-size:23px;line-height:29px}.battle-screen .hand>.tactical-card p{font-size:15px;line-height:1.5;max-height:none;overflow:visible;min-height:0;padding:6px 10px}.battle-screen .hand>.tactical-card .tag{font-size:10px;padding:0 10px}.battle-screen .hand>.tactical-card{border-top:0}
@media(min-width:1400px) and (min-height:900px){.battle-screen{grid-template-rows:minmax(0,1fr) 450px}.battle-screen .hand>.tactical-card{height:286px;min-height:286px}.battle-screen .hand>.tactical-card p{font-size:15px}.choice-grid .tactical-card .card-art{height:135px}.choice-grid .tactical-card .tactic-header{height:64px;padding-left:54px}.choice-grid .tactical-card .tactic-header h3{font-size:23px}.choice-grid .tactical-card .tactic-metrics strong{font-size:36px}.choice-grid .tactical-card .tactic-metrics small{font-size:17px}.choice-grid .tactical-card .tactic-keywords span{font-size:15px}.choice-grid .tactical-card p{font-size:18px}.choice-grid .tactical-card{min-height:440px}}
@media(max-height:899px){.battle-screen .hand>.tactical-card .card-art{height:30px}.battle-screen .hand>.tactical-card .tactic-header{height:38px}.battle-screen .hand>.tactical-card .tactic-header h3{font-size:15px}.battle-screen .hand>.tactical-card .cost{top:5px;width:25px;height:25px;font-size:18px;line-height:25px}.battle-screen .hand>.tactical-card .tactic-metrics{min-height:36px;padding:4px 8px}.battle-screen .hand>.tactical-card .tactic-metrics strong{font-size:23px}.battle-screen .hand>.tactical-card .tactic-keywords{padding-top:4px}.battle-screen .hand>.tactical-card p{font-size:12px}.battle-screen .hand>.tactical-card .tactic-type{font-size:12px;bottom:2px}}
/* Integrated character composition and unobstructed hand. */
.battle-screen .battle-dock{grid-template-rows:100px minmax(0,1fr);padding-bottom:14px}
.battle-screen .hand{--card-width:clamp(164px,calc((100vw - 160px)/var(--hand-count) - 12px),206px);--hand-gap:12px;align-items:flex-start}
.roster-stage{position:relative;grid-template-columns:minmax(300px,.8fr) minmax(0,1.5fr);gap:36px;isolation:isolate}
.roster-copy{position:relative;z-index:3}
.roster-keyart{grid-column:2;width:100%;max-width:none;aspect-ratio:auto;justify-self:stretch;overflow:visible}
.roster-keyart>img{object-position:42% bottom;mask-image:linear-gradient(90deg,transparent,black 8%,black 78%,transparent),linear-gradient(0deg,transparent,black 9%,black 92%,transparent);mask-composite:intersect}
.roster-unit{position:absolute;right:0;bottom:12px;width:36%;height:55%;padding:0;z-index:2;pointer-events:none}
.roster-unit>img{height:100%;filter:drop-shadow(0 12px 14px #20141180)}
.roster-thumb-name{font-family:Pretendard,sans-serif;font-weight:600;bottom:0;min-height:44px;padding:6px 8px;display:flex;flex-direction:column;gap:3px;line-height:1.2;font-size:17px}
.roster-thumb-name small{font-size:12px;line-height:18px;justify-content:center;white-space:nowrap;color:var(--owner-soft)}
.roster-thumb-state{top:6px;right:6px;left:auto;bottom:auto;font-size:11px;padding:3px 6px;border-radius:3px}
.roster-thumb-state:empty{display:none}
.roster-strip button{border-width:2px}.roster-strip button.selected{transform:none}
@media(max-width:1399px),(max-height:899px){.battle-screen .battle-dock{grid-template-rows:86px minmax(0,1fr);padding-bottom:10px}}
@media(max-width:760px){.roster-stage{grid-template-columns:1fr}.roster-keyart{grid-column:1;height:380px}.roster-unit{width:48%;height:260px}.roster-thumb-name{font-size:15px}.roster-thumb-name small{font-size:10px}}
/* Owner identifies the card body; tactical header identifies its role. */
.card.tactical-card{background:linear-gradient(150deg,color-mix(in srgb,var(--owner-accent) 27%,#201b1b),color-mix(in srgb,var(--owner-accent) 12%,#201b1b));border-color:color-mix(in srgb,var(--owner-soft) 65%,#3a2825)}
.card.tactical-card .tactic-header{background:color-mix(in srgb,var(--owner-accent) 20%,#251c1b)}
.card.tactical-card .tactic-metrics{background:color-mix(in srgb,var(--owner-accent) 13%,#171515)}
.roster-thumb-state svg{width:17px;height:17px;display:block}.roster-thumb-state{color:var(--ink);background:#201916cf}
.overlay-journal{width:min(1540px,94vw);max-width:none;background:#241b19}.overlay-journal>.overlay-body{padding:0}.fate-journal{display:grid;grid-template-columns:100px minmax(260px,.85fr) minmax(380px,1.15fr);height:min(760px,76vh);gap:26px}.fate-people{overflow:auto;display:flex;flex-direction:column;gap:7px;padding:6px}.fate-people button{padding:0;flex-shrink:0;border-color:transparent;position:relative;height:84px;overflow:hidden}.fate-people img{width:100%;height:100%;object-fit:cover}.fate-people span{position:absolute;bottom:0;left:0;right:0;background:#201916d9;padding:4px;font-size:14px}.fate-people button[aria-pressed=true]{border-color:var(--owner-soft)}.fate-art{position:relative;min-height:0;overflow:hidden}.fate-art>img{width:100%;height:100%;object-fit:cover;object-position:center;mask-image:linear-gradient(0deg,transparent,black 35%)}.fate-art>div{position:absolute;bottom:20px;left:24px;right:24px}.fate-art h3{font-family:NalSun,Pretendard,sans-serif;font-size:62px;font-weight:400;margin:10px 0}.fate-art small{color:var(--owner-soft);margin-left:10px}.fate-art p{font-size:17px;line-height:1.6}.fate-record{overflow:auto;padding:28px 24px 28px 0}.fate-record h3{font-size:28px}.fate-stats{display:flex;gap:22px;padding:20px 0;border-bottom:1px solid #81604a}.fate-stats span{font-size:15px}.fate-stats b{display:block;font-size:32px;color:var(--owner-soft);margin-top:8px}.fate-record h4{font-size:20px;margin-top:30px}.fate-record p{font-size:17px;line-height:1.8}.fate-moment,.fate-clue{padding:14px 18px;background:#342522;border-left:2px solid var(--owner-accent)}.fate-empty{color:var(--muted)}.fate-record footer{font-size:13px;color:var(--muted);margin-top:32px}
.overlay.overlay-journal{width:min(1540px,94vw);max-width:1540px}
/* Full viewport game canvas. Only bounded collections and dialogue scroll internally. */
html,body{height:100%;overflow:hidden}#app{height:100svh;overflow:hidden}.game-shell{height:100svh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.game-hud{flex:0 0 82px}.game-screen.content{flex:1;min-height:0;width:100%;max-width:1660px;margin:0 auto;padding:24px 40px;overflow:auto;overscroll-behavior:contain}.game-screen.content:has(.journey-screen),.game-screen.content:has(.story-layout),.game-screen.content:has(.reward-center){overflow:hidden}
.sect-symbol{background:none;mask-image:none;display:inline-flex;align-items:center;justify-content:center}.sect-symbol>img{width:100%;height:100%;object-fit:contain;border:0!important;border-radius:0!important;filter:drop-shadow(0 1px 2px #000);opacity:1}.hud-portrait .sect-symbol>img{width:22px;height:22px}.roster-thumb-name .sect-symbol>img{width:18px;height:18px}
.journey-screen{height:100%;display:flex;flex-direction:column;gap:18px}.journey-heading{flex:0 0 auto}.journey-heading h2{font-size:36px;margin:8px 0}.journey-heading p{font-size:17px;margin:8px 0;color:var(--muted)}.journey-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px}.journey-map{position:relative;min-height:0;isolation:isolate;background:radial-gradient(ellipse at 50% 50%,#65442f55,transparent 75%);border:1px solid #936f4640;border-radius:45% 45% 12px 12px}.journey-map-caption{position:absolute;top:12px;left:24px;font-size:14px;color:var(--muted)}.journey-paths{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible}.journey-paths path{fill:none;stroke:#b18b6055;stroke-width:.28;stroke-dasharray:1 1}.journey-paths path.travelled{stroke:var(--owner-accent)}.journey-node{position:absolute;transform:translate(-50%,-50%);width:188px;min-height:76px;padding:10px 12px;background:#2a211dec;border-radius:24px;border-color:#957a5150;display:grid;grid-template-columns:30px 1fr;align-items:center;gap:3px 8px}.journey-node .ico{grid-row:1/3;width:26px;height:26px}.journey-node strong{font-size:17px}.journey-node small{font-size:12px;line-height:1.3}.journey-node.current{border:2px solid var(--gold);background:#54402d;box-shadow:0 0 24px #e9b87925}.journey-node.current:hover{background:#705237;transform:translate(-50%,-50%) translateY(-3px)}.journey-node.done{opacity:.5}.journey-companion{min-height:0;overflow:auto;border-left:1px solid #916e4240;padding-left:22px}.journey-companion>img{width:130px;height:130px;object-fit:cover;border-radius:50%;border:2px solid var(--owner-accent)}.journey-companion h3{font-size:28px;margin:8px 0}.journey-companion p{font-size:17px;line-height:1.7}.journey-companion span{font-size:13px;color:var(--owner-soft)}.journey-companion button{font-size:15px;padding:12px}.journey-companion details{margin-top:24px}.journey-companion summary{cursor:pointer;color:var(--gold);font-size:17px;padding:12px 0}.journey-companion .panel{padding:14px}.journey-companion .panel p{font-size:15px}
.story-layout{height:100%;min-height:0}.story-portrait{min-height:0}.story-portrait>img{height:100%;object-fit:contain}.story-text{min-height:0;overflow:auto;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.story-name .dialogue-avatar{width:68px;height:68px;border-radius:50%;object-fit:cover;float:left;margin-right:14px;border:2px solid var(--owner-accent)}.encounter-speaker{display:flex;align-items:center;justify-content:center;gap:18px;margin:0 auto 18px;color:var(--owner-soft);font-size:18px}.encounter-speaker img{width:112px;height:112px;border-radius:50%;border:2px solid var(--owner-accent);object-fit:cover}.encounter-scene h2{font-size:32px}.encounter-scene .choice-tile{min-height:190px}.encounter-scene>p{font-size:18px;line-height:1.7}.reward-center{max-height:100%;overflow:auto}.catalog{max-height:calc(100svh - 310px);overflow:auto}

/* Neutral warm text, separate from character accents. */
:root{--tactic-guard:#d4c3a2;--tactic-cycle:#c5c79a}.card.tactical-card{--tactic-guard:#d4c3a2;--tactic-cycle:#c5c79a}.hud-portrait strong,.roster-thumb-name small,.roster-copy dl dd,.fate-art small,.journey-companion span,.encounter-speaker,.bond-note,.exit-screen p{color:var(--ink)}
/* Landscape route composition; no expanding sidebar. */
.journey-heading{padding:4px 0 0}.journey-layout{grid-template-columns:minmax(0,1fr) 290px;gap:36px}.journey-map{border:0;border-radius:0;background:linear-gradient(180deg,#6d482218,transparent 30%,#5e3c2820 85%,transparent)}.journey-map-caption{top:8px;left:0}.journey-node{width:160px;min-height:90px;border-radius:8px;grid-template-columns:1fr;gap:5px}.journey-node .ico{grid-row:auto;margin:auto;width:27px;height:27px}.journey-node strong{font-size:17px}.journey-node small{font-size:12px}.journey-companion{overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding-top:30px}.journey-companion>img{width:116px;height:116px}.journey-companion h3{margin:10px 0}.journey-companion p{font-size:16px}.companion-resonance{width:100%;text-align:left;margin-top:12px}.journey-layout{max-height:650px;align-self:stretch;width:100%}.journey-screen{justify-content:center}.journey-heading h2{font-size:34px}.journey-paths path{stroke-width:.35}
/* Paged content replaces long scrolling collections. */
.paged-region{display:flex;flex-direction:column;min-height:0;gap:12px}.paged-region>.catalog{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;max-height:none;overflow:hidden}.paged-region>.catalog>.card{width:100%;height:330px;min-height:0}.paged-region [hidden]{display:none!important}.page-controls{display:flex;justify-content:center;align-items:center;gap:24px;flex:0 0 44px}.page-controls button{min-height:40px;padding:8px 22px}.page-controls span{font-size:16px;color:var(--muted)}dialog.overlay:has(.paged-region>.catalog){width:min(1640px,94vw)}dialog.overlay{overflow:hidden;max-height:calc(100svh - 50px)}.overlay-body{max-height:calc(100svh - 220px);overflow:hidden}.overlay-body .catalog{max-height:none}.fate-people{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(5,minmax(0,1fr));overflow:hidden}.fate-people button{height:100%;min-height:0}.fate-journal{grid-template-columns:150px minmax(260px,.85fr) minmax(380px,1.15fr);height:min(730px,70vh)}.fate-record{overflow:hidden;padding-top:16px}.fate-record h4{margin-top:20px}.fate-record p{font-size:16px;line-height:1.6}.fate-journal>.paged-region{height:100%}.game-screen.content{overflow:hidden}.story-text,.reward-center{overflow:hidden}.overlay-body .help{overflow:hidden}.overlay-body>.panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;max-height:calc(100svh - 250px);overflow:hidden}.overlay-body>.panel>.eyebrow,.overlay-body>.panel>h3,.overlay-body>.panel>.muted{grid-column:1/-1}.overlay-body>.panel h3{margin:4px 0}.overlay-body>.panel p{font-size:16px}.overlay-body>.panel .trait{margin:0;padding:12px 0}
/* Dedicated dialogue composition: art, speaker and reply have independent tracks. */
.game-screen.content:has(.story-layout){padding:24px 40px;display:flex;align-items:center;justify-content:center}.story-layout{width:100%;max-width:1500px;height:min(850px,100%);margin:0;grid-template-columns:42% minmax(0,1fr);border:0;background:transparent;gap:34px;overflow:hidden}.story-portrait{height:100%;min-height:0;background:transparent;overflow:hidden}.story-portrait>img{position:static;inset:auto;width:100%;height:100%;object-fit:contain;object-position:center;mask-image:linear-gradient(0deg,transparent,black 14%,black 94%,transparent)}.story-name{position:absolute;left:20px;right:20px;bottom:22px;min-height:94px;display:grid;grid-template-columns:76px 1fr;grid-template-rows:26px 40px;gap:0 16px;align-items:center;padding:14px 20px;background:linear-gradient(90deg,#211918f2,#211918c0);border-left:2px solid var(--owner-accent)}.story-name img.dialogue-avatar{position:static;inset:auto;grid-row:1/3;width:76px;height:76px;float:none;margin:0;object-fit:cover;mask-image:none;border-radius:50%}.story-name small{grid-column:2;font-size:15px;line-height:1.5}.story-name h3{grid-column:2;font-size:28px;line-height:1.3;margin:0}.story-text{padding:30px 24px;justify-content:center;background:linear-gradient(90deg,#33262490,transparent);overflow:hidden}.story-text h2{font-size:34px;line-height:1.35;margin:12px 0 22px}.story-text p{font-size:19px;line-height:1.7;margin:0 0 20px}.story-text .reply-options p{font-size:15px!important;color:var(--muted)!important}.reply-options{margin-top:8px}.reply-options button{font-size:18px;min-height:58px;margin:10px 0;padding:14px 18px}.bond-note{margin-top:18px;font-size:14px;line-height:1.6}.story-text>.primary{font-size:18px;min-height:52px}.owner-tabs{display:flex;flex-wrap:wrap;gap:6px}.owner-tabs button{font-size:13px!important;padding:7px 9px!important}.owner-tabs button img{width:28px;height:34px}.ready-chain{background:#675636;color:#fff1dc!important;border-color:#e9b879!important}.paged-region>.catalog>.card .card-art{height:52px}.paged-region>.catalog>.card .tactic-header{height:48px}.paged-region>.catalog>.card>p{font-size:15px;line-height:1.5}.paged-region>.catalog>.card .tactic-keywords{font-size:12px}
.battle-stage-label{left:50%;top:16px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:14px;background:#241a16e8;border:1px solid #c3986655;border-radius:4px;padding:10px 22px;min-width:310px;text-align:center;z-index:4}.battle-stage-label>span{font-size:18px;color:var(--ink)}.battle-stage-label>strong{font-size:27px;line-height:1.2}.battle-stage-label>small{font-size:14px;color:var(--muted)}.intent{font-size:16px;white-space:normal;max-width:250px}
.player-unit{position:relative}.guard-aura{position:absolute;left:50%;top:40%;width:220px;height:270px;z-index:15;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;border:2px solid #ffe6a1;border-radius:45% 45% 50% 50%;background:radial-gradient(ellipse,#e9b87935,transparent 70%);box-shadow:0 0 30px #e9b87980,inset 0 0 24px #e9b87930;color:#fff0c2}.guard-aura>.ico{width:80px;height:90px;stroke-width:1.4;filter:drop-shadow(0 0 8px #e9b879)}.guard-aura strong{font-size:27px;text-shadow:0 2px 5px #000;background:#211918dd;padding:8px 14px}.actor-plaque .guard-emphasis{font-size:23px;color:#fff0c2;background:#70502c;padding:4px 9px}.guard-gain{color:#fff0c2;font-size:38px}.battle-screen .player-unit .actor-plaque b{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;background:#57432d;color:#fff0c2;border:1px solid #b99360}
.tactical-card[data-effect=guard]{--tactic:#d4c3a2}.tactical-card[data-effect=cycle]{--tactic:#c5c79a}.pile-tabs{display:flex;gap:10px;margin-bottom:12px}.pile-tabs button[aria-pressed=true]{border-color:var(--gold);background:#5a412d}
