/* RC2: reserved HUD rows, no rule/art changes. Last stylesheet intentionally owns layout. */
.combat-screen>.arena{grid-row:3}.combat-screen>.hand-zone{grid-row:4}
.combat-screen .combat-title>strong{display:block!important;visibility:visible!important}.combat-screen .combo-ribbon{pointer-events:none;animation:rc2-feedback 1.4s both!important}@keyframes rc2-feedback{0%,65%{opacity:1}100%{opacity:0;visibility:hidden}}
.combat-screen .hand-scroll{margin:0!important}.combat-screen .card-info{padding:1px!important;display:flex!important;align-items:center;justify-content:center}.combat-screen .summon-unit>button{padding:2px 4px!important}.combat-screen .rc2-player-status>button{padding:2px!important}.combat-screen .hud-right button{padding:2px 5px!important}.teacher-page #review-toggle{padding:1px!important}.combat-screen .enemy-team .enemy .enemy-art{translate:none!important;margin:0!important}.combat-screen .actors .player.actor>.actor-title{display:flex!important;opacity:1!important;visibility:visible!important}.combat-screen .player-status>.motion-reservations{display:none!important}
*{box-sizing:border-box}.combat-screen button,.overlay button,.overlay summary{touch-action:manipulation}
.game-shell.combat-screen{width:100%;max-width:100%;height:100dvh!important;min-height:0!important;margin:0;padding:0!important;display:grid!important;grid-template-rows:48px 0 minmax(0,1fr) 278px!important;gap:0!important;overflow:hidden}
.combat-screen>.hud{height:48px!important;min-height:48px!important;padding:2px 8px;display:flex;align-items:center;justify-content:space-between;gap:4px}.combat-screen .brand-seal,.combat-screen .brand small,.combat-screen .runline{display:none}.combat-screen .brand h1{font-size:17px;white-space:nowrap;margin:0}.combat-screen .hud-right{display:flex;gap:4px;flex:none}.combat-screen .hud-right button{height:44px;min-height:44px;min-width:44px;padding:3px 8px;font-size:13px}.combat-screen .hud-relic{display:none}
.combat-screen>.notice{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);padding:0!important;border:0!important;white-space:nowrap}.combat-screen>.notice.notice-error{clip-path:none;width:94%!important;height:auto!important;max-height:70px;white-space:normal;top:50px;left:3%;z-index:30;background:#452825;padding:8px!important;font-size:14px}.recovery-version{display:none}
.combat-screen>.arena{position:relative;inset:auto;min-height:0;height:auto!important;display:grid!important;grid-template-rows:24px minmax(0,1fr);padding:0 8px 4px!important;gap:0;overflow:hidden!important}.combat-screen>.arena:has(.summon-slots){grid-template-rows:24px minmax(0,1fr) 78px}.combat-screen .combat-title{position:static!important;display:flex;align-items:center;justify-content:space-between;padding:0 4px;min-height:24px;font-size:12px;height:24px;line-height:1.2}.combat-screen .combat-title strong{font-size:12px}.combat-screen .actors{position:relative!important;inset:auto!important;min-height:0;height:100%;width:100%;display:grid!important;grid-template-columns:minmax(100px,25%) minmax(0,1fr)!important;gap:12px!important;align-items:stretch!important}
.combat-screen .actors .player.actor{position:relative!important;inset:auto!important;height:100%!important;max-height:none!important;width:100%!important;margin:0!important;padding:0!important;display:grid!important;grid-template-rows:26px minmax(0,1fr) 32px 48px!important;align-self:stretch!important;min-width:0;border:0;background:transparent}.combat-screen .player .actor-title{position:static!important;height:26px;display:flex;align-items:center;justify-content:center;line-height:1.1;min-width:0}.combat-screen .player .actor-title strong{font-size:13px;white-space:normal;text-align:center}.combat-screen .art-label{display:none!important}
.combat-screen .actors .player.actor .player-art{position:relative!important;width:100%!important;height:100%!important;max-height:180px!important;min-height:0!important;align-self:end!important;inset:auto!important;overflow:visible}.combat-screen .actors .player .s4i-hero-stage{height:100%!important;width:100%!important;top:0!important}.combat-screen .actors .player-art img{max-height:100%!important}.combat-screen .actors .player-art .hero-final{height:100%!important;max-height:100%!important;width:100%!important;object-fit:contain!important}
.combat-screen .player .actor-health{position:relative!important;inset:auto!important;height:32px!important;min-height:32px;display:grid;grid-template-rows:22px 4px;gap:2px;margin:0;padding:0;background:#102c34e8;border-radius:5px}.combat-screen .player .actor-health>div{display:flex;justify-content:space-between;align-items:center;gap:2px;min-width:0}.combat-screen .player .actor-health b{font-size:14px;white-space:nowrap}.combat-screen .player .actor-health small{font-size:12px;opacity:1}.combat-screen .player .actor-health span{font-size:13px;white-space:nowrap;color:#a8f0e4}.combat-screen .health-track{position:relative;height:4px;min-height:4px;overflow:hidden}.combat-screen meter{width:100%;height:4px}
.combat-screen .actors .player .rc2-player-status{position:static!important;display:grid!important;grid-template-columns:minmax(44px,1fr) minmax(44px,1fr);height:48px!important;max-height:none!important;padding:2px 0!important;gap:3px;overflow:visible!important;background:none}.combat-screen .rc2-player-status>button{min-width:44px;min-height:44px!important;height:44px!important;margin:0;padding:2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.2;background:#183a42;color:#f5e7bf;border:1px solid #6a8888;border-radius:6px}.combat-screen .rc2-player-status b{font-size:12px;white-space:nowrap}.combat-screen .rc2-player-status span{font-size:11px;white-space:nowrap}
.combat-screen .enemy-team{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0;display:flex!important;gap:8px!important;align-items:stretch!important}.combat-screen .enemy-team .enemy.actor{position:relative!important;inset:auto!important;flex:1 1 0!important;width:100%!important;height:100%!important;max-height:none!important;min-width:0!important;display:grid!important;grid-template-rows:48px minmax(0,1fr) 24px 34px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important;transform:none}
.combat-screen .enemy-team .enemy .intent{position:relative!important;inset:auto!important;transform:none!important;height:46px!important;min-height:44px!important;width:100%!important;max-width:none!important;margin:0;padding:3px 18px 3px 5px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:#15323ee8!important;border:1px solid #647c84!important;border-radius:8px;font-size:14px;z-index:6}.combat-screen .intent .threat-title{font-size:14px!important;line-height:1.1;white-space:normal!important}.combat-screen .intent .threat-meta{font-size:11px!important;line-height:1.15;max-height:none!important;white-space:normal!important;overflow:visible!important}.combat-screen .intent .threat-more{position:absolute;right:4px;top:4px}
.combat-screen .enemy-team .enemy .enemy-art{position:relative!important;inset:auto!important;grid-row:2;height:100%!important;max-height:none!important;width:100%!important;min-height:0!important;display:grid!important;align-items:end;justify-items:center;transform:none!important;padding:0!important;container-type:size}.combat-screen .enemy-team .enemy .monster-target{height:min(64cqh,calc(68cqw / var(--body-ratio)))!important;width:min(68cqw,calc(64cqh * var(--body-ratio)))!important;max-width:100%;max-height:100%;align-self:end;justify-self:center;transform:none}.combat-screen .enemy-team .tier-elite .monster-target{height:min(84cqh,calc(88cqw / var(--body-ratio)))!important;width:min(88cqw,calc(84cqh * var(--body-ratio)))!important}.combat-screen .enemy-team .tier-boss .monster-target{height:min(100cqh,calc(100cqw / var(--body-ratio)))!important;width:min(100cqw,calc(100cqh * var(--body-ratio)))!important}.combat-screen .enemy-team .enemy .actor-title{position:relative!important;inset:auto!important;height:24px!important;display:flex!important;gap:4px;align-items:center;justify-content:center;line-height:1.1;overflow:visible!important;margin:0}.combat-screen .enemy-team .actor-title strong{font-size:14px!important;white-space:normal!important}.combat-screen .enemy-rank{font-size:9px}.combat-screen .enemy-team .actor-title small{font-size:11px}.combat-screen .enemy-team .enemy .actor-health{position:relative!important;inset:auto!important;width:100%!important;height:34px!important;display:grid;grid-template-rows:26px 4px;padding:0 4px;margin:0;background:#102c34d9;border-radius:5px}.combat-screen .enemy .actor-health>div{display:flex;align-items:center;justify-content:center;gap:10px}.combat-screen .enemy .actor-health b{font-size:18px}.combat-screen .enemy .actor-health small{font-size:13px}.combat-screen .enemy .actor-health span{font-size:14px;white-space:nowrap}.combat-screen .enemy-team:not(.count-1) .actor-title strong{font-size:11px!important}.combat-screen .enemy-team:not(.count-1) .actor-title small,.combat-screen .enemy-team:not(.count-1) .enemy-rank{display:none}.combat-screen .enemy-team:not(.count-1) .actor-health b{font-size:14px}.combat-screen .enemy-team:not(.count-1) .intent .threat-title{font-size:12px!important}.combat-screen .boss-seal{display:none}
.combat-screen .summon-slots{position:relative!important;inset:auto!important;width:100%!important;height:78px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:58px 18px;gap:0 8px;padding:2px 0 0!important;z-index:5;min-width:0}.combat-screen .summon-slots .summon-unit,.combat-screen .summon-slots .summon-empty{width:100%!important;min-width:0!important;height:56px!important;display:flex!important;align-items:stretch;min-height:0}.combat-screen .summon-unit>button{width:100%!important;height:56px!important;min-height:44px!important;display:grid!important;grid-template-columns:44px minmax(0,1fr);grid-template-rows:25px 25px;gap:0 4px;padding:2px 5px;align-items:center;text-align:left;border-radius:8px;overflow:hidden}.combat-screen .summon-unit img{grid-row:1/3;width:44px!important;height:48px!important;min-height:0;object-fit:contain}.combat-screen .summon-unit b{font-size:13px!important;line-height:1.15;white-space:normal!important;max-width:none!important;overflow:visible!important;text-overflow:clip!important}.combat-screen .summon-unit span{font-size:11px!important;line-height:1.15;white-space:normal!important;max-width:none!important;overflow:visible!important}.combat-screen .summon-unit.selected{outline:2px solid #ffe6a1;border-radius:8px}.combat-screen .summon-empty{border:1px dashed #618382;border-radius:8px;align-items:center;justify-content:center;background:#102b34d9;font-size:13px}.combat-screen .summon-empty>button{width:100%;min-height:44px;font-size:13px}.combat-screen .summon-cap{position:static!important;grid-column:1/-1;display:block;font-size:11px!important;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contract-summary{display:flex;flex-direction:column;justify-content:center;padding:2px 6px;background:#211d37;border:1px solid #6b6185;border-radius:8px;font-size:11px;line-height:15px}.contract-summary b{font-size:12px}
.combat-screen .hand-zone{min-height:0!important;height:auto!important;display:grid!important;grid-template-rows:48px minmax(0,1fr) 44px!important;padding:0!important;gap:0;overflow:hidden;background:#102b34;border-top:1px solid #6e9692}.combat-screen .hand-top{height:48px!important;min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:2px 8px;gap:6px}.combat-screen .energy{display:flex;align-items:center;gap:5px}.combat-screen .energy-orb{height:36px!important;width:36px!important;font-size:23px;line-height:32px;flex:none}.combat-screen .energy strong{font-size:12px}.combat-screen .hand-title{display:block;font-size:12px;white-space:nowrap}.combat-screen .hand-title:after{content:' ↔';color:#c6dfdc}.combat-screen .end-turn{min-height:44px!important;max-height:44px;width:120px;min-width:110px;font-size:15px;margin:0;padding:6px 10px}
.combat-screen .hand-scroll{min-height:0!important;min-width:0;width:100%;overflow-x:auto!important;overflow-y:hidden!important;padding:0;scroll-snap-type:x proximity;touch-action:pan-x;scrollbar-width:thin}.combat-screen .hand.cards{display:flex!important;align-items:stretch;justify-content:flex-start!important;gap:8px!important;padding:3px 8px!important;margin:0!important;width:max-content;min-width:100%;height:100%!important;min-height:0!important;transform:none!important}.combat-screen .hand-entry{position:relative;flex:0 0 174px;width:174px;height:100%;min-height:0;scroll-snap-align:start}.combat-screen .hand .hand-entry .card{position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;max-height:none;display:grid!important;grid-template-rows:36px 50px minmax(50px,1fr) 20px!important;padding:0!important;gap:0!important;margin:0!important;transform:none!important;overflow:hidden;border-radius:10px;text-align:left}.combat-screen .card-heading{height:auto!important;min-height:0;display:block!important;padding:3px 46px 2px 33px!important;line-height:14px}.combat-screen .card-heading strong{font-size:13px!important;line-height:14px;white-space:normal!important;display:block;overflow:visible!important}.combat-screen .card-heading>span{display:none}.combat-screen .card-cost{position:absolute!important;top:3px!important;left:3px!important;width:27px!important;height:27px!important;line-height:25px!important;font-size:18px!important}.combat-screen .hand .card-art{height:100%!important;max-height:none!important;min-height:0;grid-row:2}.combat-screen .card-art .experimental-art{font-size:9px;position:absolute;bottom:0;right:1px}.combat-screen .card-copy{min-height:0!important;display:flex!important;flex-direction:column;justify-content:center;gap:3px;padding:3px 5px!important;overflow:visible!important;background:#e8dec2}.combat-screen .card-copy>.core-effect{font-size:14px!important;line-height:1.2;display:block;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;-webkit-line-clamp:unset!important}.combat-screen .card-copy p{font-size:12px!important;line-height:1.2!important;margin:0;display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;-webkit-line-clamp:unset!important}.combat-screen .card-copy small{display:none}.combat-screen .card-footer{height:20px!important;padding:2px 4px!important;display:flex!important;justify-content:space-between;font-size:10px!important;line-height:14px;white-space:nowrap}.combat-screen .card-info{position:absolute;right:0;top:0;width:44px;height:44px;min-width:44px;min-height:44px;z-index:3;padding:1px;font-size:11px;line-height:14px;background:#163b43;color:#f4e5b7;border:1px solid #9ea97b;border-radius:0 9px 0 8px}.combat-screen .hand-entry:has(.unaffordable){opacity:.78}.combat-screen .card-info:focus-visible{outline:3px solid #fff0a8;outline-offset:-3px}
.combat-screen .hand-bottom{height:44px!important;min-height:44px!important;display:flex!important;gap:0!important;padding:0!important;margin:0!important;align-items:stretch}.combat-screen .hand-bottom button{flex:1;min-height:44px!important;min-width:44px;font-size:12px;padding:3px;border-radius:0}.combat-screen .hand-zone .card-echo{pointer-events:none}
.overlay{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#06131de8;z-index:1000!important}.overlay>.modal,.overlay>.selection-panel,.overlay>.peek-panel{position:relative!important;inset:auto!important;transform:none!important;width:min(840px,96vw)!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:88dvh!important;overflow:auto!important;padding:16px!important;margin:0!important;display:flex!important;flex-direction:column;gap:8px;box-sizing:border-box;background:#152f3b;color:#f5ead3;border:1px solid #799c9e;border-radius:14px}.overlay .modal p{font-size:16px;line-height:1.5;margin:5px 0}.overlay .modal h2{font-size:22px;line-height:1.25}.overlay .modal h3{font-size:18px}.overlay .close-modal{position:sticky!important;top:0;align-self:flex-end;min-height:44px;min-width:88px;z-index:8;background:#1b414d;color:#fff0c9;margin:0}.overlay label{display:block;font-size:15px;line-height:1.5;margin:6px 0}.overlay select,.overlay input:not([type=checkbox]){width:100%;min-height:44px;font-size:16px}.overlay button,.overlay summary{min-height:44px;white-space:normal}.overlay summary{cursor:pointer;padding:10px 2px}.overlay details{border:1px solid #41616a;border-radius:8px;padding:0 8px}.overlay .selection-art{float:right;max-width:110px;width:28%;height:150px!important;margin:0 0 8px 8px}.overlay .selection-art img{height:100%;width:100%;object-fit:contain}.overlay .selection-buttons{position:sticky!important;inset:auto!important;bottom:0!important;background:#152f3bf5;display:flex;gap:8px;padding:8px 0 0;z-index:6;flex:none;clear:both}.overlay .selection-buttons button{min-height:48px;flex:1;font-size:16px}.card-info-grid{display:grid;grid-template-columns:200px minmax(0,1fr);gap:18px}.card-info-grid>img{width:100%;max-height:320px;object-fit:contain}.card-info-grid .full-effect{font-size:18px!important;line-height:1.5}.status-modal dl{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0}.status-modal dt,.status-modal dd{margin:0;padding:5px;background:#203f4a;font-size:15px}.status-modal dd{text-align:right}.overlay .preview-text,.overlay .cost-preview{background:#22494b;border-radius:6px;padding:8px;font-size:15px!important}.overlay .summon-help-summary{color:#c5e4d8}.overlay .peek-panel{min-height:180px}
.teacher-page #review-toggle{top:2px!important;right:4px!important;bottom:auto!important;width:44px!important;max-width:44px!important;height:44px;min-height:44px;font-size:0;z-index:100}.teacher-page #review-toggle:after{content:'검수';font-size:12px}.teacher-page:has(#c05-tools[hidden]) .combat-screen>.hud{padding-right:52px}.teacher-page:has(#c05-tools[hidden]) #review-applied{display:none!important}body:has(.combat-screen):not(.teacher-page),.teacher-page:has(#c05-tools[hidden]){overflow:hidden!important}.teacher-page:has(#c05-tools:not([hidden])){overflow:auto!important}.teacher-page #c05-tools{padding-right:54px}.teacher-page #review-applied{overflow-wrap:anywhere}
@media(max-width:700px){.game-shell.combat-screen{grid-template-rows:48px 0 minmax(0,1fr) 256px!important}.combat-screen .brand h1{font-size:14px}.combat-screen>.hud{padding-left:5px;padding-right:5px}.combat-screen .hud-right{gap:3px}.combat-screen .hud-right button{font-size:12px;padding:2px 5px}.combat-screen>.arena{padding:0 6px 3px!important}.combat-screen .actors{grid-template-columns:104px minmax(0,1fr)!important;gap:5px!important}.combat-screen .actors .player.actor{grid-template-rows:26px minmax(0,1fr) 32px 48px!important}.combat-screen .actors .player.actor .player-art{max-height:148px!important}.combat-screen .enemy-team{gap:3px!important}.combat-screen .enemy .actor-health b{font-size:16px}.combat-screen .hand-entry{flex-basis:164px;width:164px}.combat-screen .hand .hand-entry .card{grid-template-rows:34px 42px minmax(50px,1fr) 20px!important}.combat-screen .summon-unit b{font-size:12px!important}.combat-screen .summon-unit span{font-size:11px!important}.card-info-grid{grid-template-columns:1fr;gap:8px}.card-info-grid>img{height:110px;width:90px;margin:0 auto}.overlay>.modal,.overlay>.selection-panel{padding:12px!important;max-height:88dvh!important}.overlay .modal h2{font-size:20px}}
@media(max-width:700px) and (max-height:700px){.game-shell.combat-screen{grid-template-rows:48px 0 minmax(0,1fr) 216px!important}.combat-screen>.arena:has(.summon-slots){grid-template-rows:22px minmax(0,1fr) 72px}.combat-screen .combat-title{height:22px;min-height:22px;font-size:11px}.combat-screen .summon-slots{height:72px!important;grid-template-rows:54px 16px}.combat-screen .summon-slots .summon-unit,.combat-screen .summon-slots .summon-empty{height:52px!important}.combat-screen .summon-unit>button{height:52px!important;grid-template-rows:23px 23px;padding:2px 3px;grid-template-columns:38px minmax(0,1fr)}.combat-screen .summon-unit img{width:38px!important;height:44px!important}.combat-screen .summon-unit b{font-size:12px!important}.combat-screen .summon-unit span{font-size:10px!important}.combat-screen .summon-cap{font-size:10px!important;line-height:15px}.combat-screen .hand-zone{grid-template-rows:44px minmax(0,1fr) 44px!important}.combat-screen .hand-top{height:44px!important;padding:0 6px}.combat-screen .hand-entry{flex-basis:158px;width:158px}.combat-screen .hand .hand-entry .card{grid-template-rows:30px 18px minmax(50px,1fr) 18px!important}.combat-screen .card-footer{height:18px!important;font-size:10px!important}.combat-screen .card-copy{gap:1px;padding:2px 4px!important}.combat-screen .card-copy>.core-effect{font-size:13px!important}.combat-screen .card-copy p{font-size:11px!important}.combat-screen .enemy-team .enemy.actor{grid-template-rows:44px minmax(0,1fr) 22px 30px!important}.combat-screen .enemy-team .enemy .intent{height:44px!important}.combat-screen .enemy .actor-title{height:22px!important}.combat-screen .enemy-team .enemy .actor-health{height:30px!important;grid-template-rows:24px 4px}.combat-screen .actors .player.actor .player-art{max-height:112px!important}}
@media(prefers-reduced-motion:reduce){.hand-entry,.card-info{scroll-behavior:auto!important;transition:none!important}}
.hand-scroll{scroll-behavior:auto!important;scroll-snap-type:none!important}
.combat-screen .hand .hand-entry .card{min-height:0!important;height:100%!important}
@media(max-width:700px) and (max-height:700px){.combat-screen .hand .hand-entry .card{grid-template-rows:30px 12px minmax(46px,1fr) 18px!important}}
