.cg-landscape-guide{display:none}.ioc-game-root .cg-duel-shell.is-open{--hand-zone:150px;--bottom-zone:30px;--top-zone:18px;--terrain-width:46px}.ioc-game-root .cg-duel-shell.is-open .cg-battle-layout{top:94px!important;bottom:0!important;overflow:visible!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll{overscroll-behavior:contain;box-sizing:border-box;scrollbar-width:thin;inset:18px 12px calc(var(--hand-zone) + 34px)!important;justify-content:center!important;align-items:center!important;width:auto!important;height:auto!important;padding:8px 50px!important;display:flex!important;position:absolute!important;overflow:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll:before{inset:4px 20px;transform:none}.ioc-game-root .cg-duel-shell.is-open .cg-board{aspect-ratio:1.2;box-sizing:border-box;transform-origin:50%;flex:none;width:var(--table-width,540px)!important;height:var(--table-height,450px)!important;gap:4px!important;min-width:300px!important;max-width:none!important;min-height:250px!important;max-height:none!important;padding:8px!important;transform:perspective(1000px)rotateX(6deg)!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell{flex-direction:column;justify-content:center;align-items:center;min-width:0;min-height:0;display:flex;overflow:visible;padding:1px!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell>img,.ioc-game-root .cg-duel-shell.is-open .cg-cell>svg.cg-written-card{object-fit:contain;height:var(--cell-art-height,50px)!important;max-height:var(--cell-art-height,50px)!important;width:auto!important;max-width:86%!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell-hp{height:12px!important;min-height:12px!important;margin:1px 0!important;font-size:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell-name{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-section{box-sizing:border-box;height:var(--hand-zone)!important;padding:5px 130px 5px 85px!important;overflow:hidden!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-cards{scrollbar-width:thin;justify-content:flex-start!important;gap:8px!important;max-width:100%!important;padding:4px!important;overflow:auto hidden!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-cards>article{box-sizing:border-box;overflow:visible;flex:0 0 86px!important;width:86px!important;min-width:86px!important;max-width:86px!important;height:auto!important;margin:0!important;padding:4px!important;transform:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-art{width:100%!important;height:78px!important;padding:0!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-art :is(img,svg){object-fit:contain;width:100%!important;height:100%!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-cards>article>strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:10px!important;line-height:1.2!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-cards>article>button:last-child{white-space:normal;min-height:30px!important;padding:4px!important;font-size:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-instruction{box-sizing:border-box;z-index:12;left:8px!important;right:8px!important;bottom:var(--hand-zone)!important;height:28px!important;padding:3px 8px!important;font-size:11px!important;position:absolute!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-list,.ioc-game-root .cg-duel-shell.is-open .cg-pending{box-sizing:border-box;overscroll-behavior:contain;z-index:225!important;background:#10271ffa!important;border-radius:12px!important;width:min(650px,100vw - 32px)!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;margin:0!important;padding:18px!important;position:fixed!important;inset:50% auto auto 50%!important;overflow:auto!important;transform:translate(-50%,-50%)!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-list>p,.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-list>.cg-selection-summary{display:block!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-list .cg-selection-options{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;display:grid;overflow:visible;max-height:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-list .cg-selection-options>button{overflow-wrap:anywhere;white-space:normal!important;text-align:left!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board{box-sizing:border-box;z-index:180!important;width:min(720px,100vw - 24px)!important;max-height:min(190px,42dvh)!important;padding:10px 14px!important;position:fixed!important;inset:auto auto 10px 50%!important;overflow:auto!important;transform:translate(-50%)!important}.cg-unit-target-options{scrollbar-width:thin;gap:8px;padding:5px 2px;display:flex;overflow:auto}.cg-unit-target-options>button{align-items:center;gap:8px;min-width:160px;white-space:normal!important;text-align:left!important;flex:0 0 190px!important;display:flex!important}.cg-unit-target-options img,.cg-unit-target-options svg{object-fit:contain;flex:none;width:32px!important;height:44px!important}.cg-unit-target-options span{min-width:0;font-size:12px}.cg-unit-target-options small{display:block;font-size:11px!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-actions{z-index:2;background:#10271f!important;padding:7px 0!important;position:sticky!important;bottom:0!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-summary{gap:10px;display:flex!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-summary :is(img,svg){width:45px!important;height:63px!important}.ioc-game-root .cg-duel-shell.is-open .cg-history{box-sizing:border-box;z-index:185!important;width:min(520px,100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;position:fixed!important;inset:50% auto auto 50%!important;overflow:auto!important;transform:translate(-50%,-50%)!important}.ioc-game-root .cg-duel-shell.is-open .cg-inspector button,.ioc-game-root .cg-duel-shell.is-open .cg-history button{min-height:40px!important}.ioc-game-root .cg-duel-shell.is-open .cg-result{box-sizing:border-box;z-index:230!important;width:min(620px,100vw - 28px)!important;max-height:calc(100dvh - 28px)!important;position:fixed!important;inset:50% auto auto 50%!important;overflow:auto!important;transform:translate(-50%,-50%)!important}.ioc-game-root .cg-duel-shell.is-open .cg-grave-popover{box-sizing:border-box;z-index:190!important;width:min(500px,100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;position:fixed!important;inset:50% auto auto 50%!important;overflow:auto!important;transform:translate(-50%,-50%)!important}.cg-in-duel .cg-music section{max-height:calc(100dvh - 24px)!important;position:fixed!important;inset:50% auto auto 50%!important;overflow:auto!important;transform:translate(-50%,-50%)!important}.ioc-game-root dialog.cg-effect-dialog,.ioc-game-root dialog.cg-preview,.ioc-game-root dialog.cg-surrender-dialog{box-sizing:border-box;overscroll-behavior:contain;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}.cg-in-duel .cg-global-announcement{display:none!important}body:has(.ioc-game-window[data-area=decks]:not([hidden])) .cg-global-announcement{max-width:calc(100vw - 24px);height:28px;top:auto;bottom:4px}.ioc-game-root .cg-deck-list-heading{margin:0 0 10px!important;position:static!important;top:auto!important}.ioc-game-root .cg-deck-king-section{box-sizing:border-box;flex:none;height:auto!important;min-height:115px!important;overflow:visible!important}.ioc-game-root .cg-deck-king-feature{height:auto!important;min-height:85px!important;overflow:visible!important}.ioc-game-root .cg-deck-king-feature>:is(img,svg){object-fit:contain;width:52px!important;height:73px!important;max-height:73px!important}.ioc-game-root .cg-deck-list-panel{scroll-padding-top:10px;max-height:calc(100dvh - 130px)!important}@media (pointer:coarse) and (max-width:1100px) and (orientation:portrait){.cg-landscape-guide{z-index:100010;text-align:center;color:#f6e7c4;box-sizing:border-box;background:radial-gradient(at top,#284635,#08121c 70%);flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:28px;display:flex;position:fixed;inset:0;overflow:auto}.cg-landscape-guide>span{color:#e9c787;font-size:64px}.cg-landscape-guide h2{margin:0;font:28px Georgia}.cg-landscape-guide p{max-width:420px;line-height:1.7}.cg-landscape-guide small{color:#b9cdcc;max-width:420px;line-height:1.7}.cg-landscape-guide button{color:#241b0d;background:#e6c182;border:1px solid #ffe0a7;border-radius:8px;min-height:44px;padding:12px 22px}}@media (max-height:600px) and (orientation:landscape){.ioc-game-root .cg-duel-shell.is-open{--hand-zone:0px;--terrain-width:34px}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu{box-sizing:border-box;top:2px;left:4px;right:4px;height:42px!important;min-height:42px!important;padding:3px 7px!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu>strong{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu>div{scrollbar-width:none;min-width:0;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu button{min-height:34px!important;padding:5px 9px!important;font-size:11px!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-toolbar{box-sizing:border-box;height:28px!important;padding:2px 8px!important;top:46px!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-toolbar small{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-layout{top:78px!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll{justify-content:safe center!important;align-items:safe center!important;padding:8px 50px!important;inset:5px 168px 34px 84px!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll:before{inset:0}.ioc-game-root .cg-duel-shell.is-open .cg-board{transform:perspective(1000px)rotateX(3deg)!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar{border-radius:8px;gap:3px!important;width:76px!important;padding:4px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cpu{top:4px!important;left:4px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.player{inset:auto auto 34px 4px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar .cg-king-life{width:40px!important;height:36px!important;padding:1px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar .cg-king-life small{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar .cg-king-life b{font-size:20px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar>div:first-child strong{font-size:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:first-child{top:4px!important;right:168px!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:not(:first-child){bottom:34px!important;left:84px!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section{width:30px!important;padding:2px!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-section{border:1px solid #c3a36b55;border-radius:8px;background:#0a211cdf!important;width:154px!important;height:auto!important;max-height:none!important;padding:4px!important;display:block!important;inset:0 4px 34px auto!important;overflow-y:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-heading{margin:0 0 5px;width:auto!important;height:auto!important;position:static!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-heading .cg-kicker{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-heading h3{margin:0;font-size:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start!important;gap:5px!important;width:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;display:grid!important;overflow:visible!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-cards>article{flex:none!important;width:auto!important;min-width:0!important;max-width:none!important;padding:2px!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-art{height:65px!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-cards>article>small{font-size:9px!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-cards>article>button:last-child{min-height:32px!important;font-size:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-end-turn-float{box-sizing:border-box;width:146px!important;height:30px!important;min-height:30px!important;padding:3px!important;font-size:11px!important;position:fixed!important;inset:auto 8px 4px auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-instruction{height:30px!important;font-size:10px!important;bottom:2px!important;left:84px!important;right:168px!important}.ioc-game-root .cg-duel-shell.is-open .cg-opponent-hand{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board{width:min(600px,100vw - 32px)!important;max-height:50dvh!important;bottom:4px!important;left:50%!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board>p{margin:3px 0!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board>small{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-list{padding:12px!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-list .cg-selection-summary{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-list .cg-grave-options{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));max-height:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-grave-options>button{min-height:150px!important}.ioc-game-root .cg-duel-shell.is-open .cg-grave-options>button>:is(img,svg){height:90px!important;min-height:80px!important}.ioc-game-root .ioc-game-header{box-sizing:border-box;min-height:44px;flex-wrap:nowrap!important;gap:8px!important;padding:4px 8px!important}.ioc-game-root .ioc-game-header nav{flex:1;gap:2px;flex-basis:auto!important;order:0!important;width:auto!important}.ioc-game-root .ioc-game-header nav button{padding:8px!important;font-size:11px!important}.ioc-game-root .ioc-player>span{display:none!important}.ioc-game-root .ioc-game-content{padding:10px!important}.ioc-game-root .cg-deck-editor{font-size:12px}.ioc-game-root .cg-deck-editor>.cg-section-title h2{font-size:24px}.ioc-game-root .cg-deck-editor>.cg-section-title{flex-direction:row!important;align-items:center!important}.ioc-game-root .cg-deck-editor>p{line-height:1.5;font-size:11px!important}.ioc-game-root .cg-deck-builder{align-items:start;grid-template-columns:minmax(0,1fr) 260px!important;gap:12px!important;display:grid!important}.ioc-game-root .cg-deck-list-panel{grid-area:1/2!important;height:calc(100dvh - 80px)!important;max-height:calc(100dvh - 80px)!important;padding:9px!important;position:sticky!important;top:0!important}.ioc-game-root .cg-owned-grid{grid-template-columns:repeat(auto-fit,minmax(98px,1fr))!important;gap:8px!important}.ioc-game-root .cg-owned-art :is(img,svg){object-fit:contain;height:130px!important}.ioc-game-root .cg-deck-copy-controls button{min-width:34px!important;min-height:36px!important}.ioc-game-root .cg-deck-toolbar{flex-wrap:wrap;gap:8px;display:flex!important}.ioc-game-root .cg-deck-toolbar input{flex:1;min-width:140px}.ioc-game-root .cg-deck-toolbar select{max-width:230px}.ioc-game-root .cg-deck-toolbar button{min-height:36px!important;font-size:11px!important}.ioc-game-root .cg-deck-list-name{font-size:11px!important}.ioc-game-root .cg-deck-list-grid{grid-template-columns:1fr!important}.ioc-game-root .cg-deck-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media (prefers-reduced-motion:reduce){.ioc-game-root .cg-duel-shell.is-open .cg-board{transform:none!important}}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-list .cg-selection-options>button,.cg-unit-target-options>button{min-height:44px!important}.ioc-game-root dialog.cg-preview[open]{padding:40px 12px 12px!important;overflow:auto!important}.ioc-game-root dialog.cg-preview[open]>:is(img,svg.cg-written-card),.ioc-game-root dialog.cg-preview[open] .cg-preview-details{max-height:calc(100dvh - 90px)!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-alert{box-sizing:border-box;overflow-wrap:anywhere;width:min(620px,100vw - 24px);max-height:calc(100dvh - 100px);overflow:auto}.ioc-game-root .cg-duel-shell.is-open .cg-ranked-disconnect{overflow-wrap:anywhere;max-width:calc(100vw - 24px)}.ioc-game-root .cg-turn-announcement{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:hidden}@media (max-height:600px){.ioc-game-root dialog.cg-preview[open]{grid-template-columns:minmax(120px,34%) minmax(0,1fr)!important;gap:12px!important}.ioc-game-root dialog.cg-preview[open]>:is(img,svg.cg-written-card){width:100%!important;height:auto!important;max-height:calc(100dvh - 80px)!important}.ioc-game-root dialog.cg-preview[open] .cg-preview-details{max-height:calc(100dvh - 80px)!important;font-size:12px!important}}.ioc-game-root .cg-duel-shell.is-open .cg-inspector{box-sizing:border-box;max-height:calc(100dvh - 24px)!important;overflow:auto!important}@media (pointer:coarse),(max-height:600px){.ioc-game-root .cg-duel-shell.is-open .cg-inspector{z-index:185!important;width:min(520px,100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;position:fixed!important;inset:50% auto auto 50%!important;overflow:auto!important;transform:translate(-50%,-50%)!important}}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-selection-kind=cell]{width:min(440px,100vw - 24px)!important;max-height:110px!important;padding:8px 12px!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-selection-kind=cell]>.cg-selection-summary,.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-selection-kind=cell]>small{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-selection-kind=cell] h3{margin:0 0 4px!important;font-size:14px!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-selection-kind=cell] p{margin:3px 0!important;font-size:12px!important;line-height:1.4!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-selection-kind=cell] .cg-selection-actions{padding:3px 0!important}.ioc-game-root .cg-duel-shell.is-open .cg-board{transform:perspective(1100px)rotateX(18deg)!important}@media (max-height:600px) and (orientation:landscape){.ioc-game-root .cg-duel-shell.is-open .cg-board{transform:perspective(1100px)rotateX(12deg)!important}}@media (prefers-reduced-motion:reduce){.ioc-game-root .cg-duel-shell.is-open .cg-board{transform:none!important}}.ioc-game-root .cg-duel-shell.is-open{--royal-zone:158px;--pile-zone:210px;--hand-zone:230px;--terrain-width:88px}.ioc-game-root .cg-duel-shell.is-open .cg-battle-layout{top:88px!important;overflow:visible!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll{z-index:5;inset:8px var(--pile-zone) calc(var(--hand-zone) + 30px) var(--royal-zone)!important;justify-content:safe center!important;align-items:safe center!important;padding:8px 94px!important;overflow:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-board{transform-origin:50%!important;transform:perspective(1100px)rotateX(18deg)!important}.ioc-game-root .cg-duel-shell.is-open .cg-terrain-slot{width:var(--terrain-width)!important;min-width:var(--terrain-width)!important;left:calc(-1 * var(--terrain-width) - 12px)!important;right:auto!important;overflow:visible!important;transform:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-terrain-slot.cpu{top:0!important;bottom:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-terrain-slot.player{top:auto!important;bottom:0!important}.ioc-game-root .cg-duel-shell.is-open .cg-terrain-card{width:var(--terrain-width)!important;height:calc(var(--terrain-width) * 1.38)!important;min-height:0!important}.ioc-game-root .cg-duel-shell.is-open .cg-terrain-card :is(img,svg){object-fit:contain;width:100%!important;height:100%!important}.ioc-game-root .cg-duel-shell.is-open .cg-terrain-slot>div:last-child{text-align:center;padding:4px 0!important;font-size:10px!important;display:block!important;position:static!important}.ioc-game-root .cg-duel-shell.is-open .cg-terrain-slot :is(strong,p),.ioc-game-root .cg-duel-shell.is-open .cg-terrain-slot>div:last-child>button{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail{pointer-events:auto;z-index:14;scrollbar-width:thin;flex-direction:column;justify-content:space-between;gap:12px;overflow:auto;inset:8px 8px calc(var(--hand-zone) + 32px) auto!important;width:calc(var(--pile-zone) - 20px)!important;display:flex!important;position:absolute!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section{box-sizing:border-box;border:1px solid #b69b60;border-radius:12px;background:linear-gradient(135deg,#132c28ed,#071510f5)!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important;padding:10px!important;display:grid!important;position:relative!important;inset:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section>small{letter-spacing:1px;grid-column:1/-1;font-size:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-rail-deck,.ioc-game-root .cg-duel-shell.is-open .cg-rail-grave{box-sizing:border-box;background:#071511;border:1px solid #b69b6066;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;flex:none!important;width:100%!important;height:124px!important;min-height:90px!important;padding:4px!important;display:flex!important;position:relative!important}.ioc-game-root .cg-duel-shell.is-open .cg-rail-deck :is(img,svg),.ioc-game-root .cg-duel-shell.is-open .cg-rail-grave :is(img,svg){object-fit:contain;width:100%!important;height:93px!important}.ioc-game-root .cg-duel-shell.is-open .cg-rail-deck b,.ioc-game-root .cg-duel-shell.is-open .cg-rail-grave b{color:#fff1ce;background:#071311e8;border:1px solid #b69b60;border-radius:20px;min-width:22px;padding:2px;font-size:12px;position:absolute;top:3px;right:3px}.ioc-game-root .cg-duel-shell.is-open .cg-rail-deck span,.ioc-game-root .cg-duel-shell.is-open .cg-rail-grave small{font-size:11px!important;display:block!important}.ioc-game-root .cg-duel-shell.is-open .cg-grave-popover{z-index:240!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status{box-sizing:border-box;color:#f8ebcd;text-align:center;z-index:12;border-radius:15px;box-shadow:0 8px 24px #0008;width:calc(var(--royal-zone) - 20px)!important;background:linear-gradient(#07141044,#07141099),url(/card-game/ui/royal-panel.webp) 50%/100% 100%!important;border:1px solid #b79a5c!important;flex-direction:column!important;gap:5px!important;height:auto!important;min-height:0!important;padding:12px 8px 14px!important;display:flex!important;position:absolute!important;inset:auto auto auto 8px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status.cpu{top:8px!important;bottom:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status.player{top:auto!important;bottom:calc(var(--hand-zone) + 32px)!important}.cg-royal-totem{background-image:url(/card-game/ui/royal-totems.webp);background-size:400% 300%;border:2px solid #d7b875;border-radius:50%;flex:none;align-self:center;width:72px;height:72px;min-height:72px;overflow:hidden;box-shadow:0 0 0 4px #081613,0 0 18px #d4b36644}.cg-royal-title{flex-direction:column;gap:2px;display:flex}.cg-royal-title>span{letter-spacing:1.2px;color:#d6bf8b;font-size:8px}.cg-royal-title strong{font:17px Georgia!important}.cg-royal-title small{max-width:130px;font-size:10px;line-height:1.3}.cg-royal-values{grid-template-columns:1fr 1fr;gap:6px;width:100%;display:grid!important}.cg-royal-values>div{background:#081613b8;border:1px solid #c3a66b33;border-radius:8px;flex-direction:column;align-items:center;gap:1px;padding:4px;display:flex}.cg-royal-values b{font-size:17px}.cg-royal-values small{color:#c7cbb5;font-size:9px!important}.ioc-game-root .cg-royal-status .cg-royal-values .cg-king-life{grid-column:1/-1;background:#11241dcc!important;border:0!important;border-radius:7px!important;width:auto!important;height:auto!important;min-height:0!important;padding:4px!important}.cg-royal-status .cg-king-life b{font-size:24px!important}.cg-siege-status{font-size:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-section.cg-player-hand{z-index:30;width:100%!important;height:var(--hand-zone)!important;background:linear-gradient(#0000,#071714f2)!important;border:0!important;max-height:none!important;padding:0!important;display:block!important;position:absolute!important;inset:auto 0 0!important;overflow:visible!important}.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-heading{z-index:2;color:#d0c3a1;font-size:11px;width:115px!important;height:auto!important;margin:0!important;position:absolute!important;top:auto!important;bottom:10px!important;left:16px!important}.cg-player-hand .cg-hand-heading h3{margin:3px 0!important;font-size:16px!important}.cg-player-hand .cg-hand-heading small{font-size:10px;line-height:1.4;display:block}.cg-hand-fan{height:100%;position:absolute;bottom:0;left:140px;right:145px;overflow:visible}.cg-fan-card{width:145px;height:200px;z-index:var(--fan-z);transform:translateX(calc(-50% + var(--fan-x))) translateY(var(--fan-drop)) rotate(var(--fan-angle));transform-origin:bottom;filter:drop-shadow(0 8px 8px #0009);transition:transform .18s,filter .18s;position:absolute;bottom:-10px;left:50%}.cg-fan-card.is-hovered{z-index:70;transform:translateX(calc(-50% + var(--fan-x))) translateY(-24px) rotate(0deg);filter:drop-shadow(0 0 8px #e4be79aa)}.cg-fan-card.is-selected{z-index:80;transform:translateX(calc(-50% + var(--fan-x))) translateY(-46px) rotate(0deg);filter:drop-shadow(0 0 10px #f7ce7ccc)}.ioc-game-root .cg-player-hand .cg-fan-card>.cg-hand-art{position:relative;overflow:visible;background:0 0!important;border:0!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;display:block!important}.ioc-game-root .cg-player-hand .cg-hand-art :is(img,svg){object-fit:contain;pointer-events:none;display:block;width:100%!important;height:100%!important;max-height:none!important}.ioc-game-root .cg-player-hand .cg-hand-art .cg-hand-cost{color:#ffe3a6;background:#0c2119e8;border:1px solid #d4b56f;border-radius:20px;padding:3px 7px;font-size:11px;position:absolute;inset:5px 5px auto auto;display:block!important}.cg-hand-detail{z-index:95;box-sizing:border-box;background:#0d211df5;border:1px solid #c8a76c;border-radius:12px;flex-direction:column;gap:6px;width:285px;max-height:min(390px,60dvh);padding:12px;display:flex;position:absolute;bottom:15px;right:156px;box-shadow:0 12px 35px #0009}.cg-hand-detail>header{justify-content:space-between;align-items:start;gap:8px;display:flex}.cg-hand-detail>header strong{color:#f9e8be;font:17px Georgia}.cg-hand-detail>header button{flex:none;min-width:32px;min-height:32px}.cg-hand-detail>p{color:#e9ce8e;margin:0;font-size:12px}.cg-hand-detail-copy{overscroll-behavior:contain;min-height:0;max-height:240px;font-size:12px;line-height:1.5;overflow:auto}.cg-hand-detail-copy details>summary{font-size:11px}.cg-hand-detail-copy h4{margin:6px 0;font-size:13px}.cg-hand-detail-actions{flex:none;gap:7px;display:flex}.cg-hand-detail-actions button{flex:1;min-height:40px;padding:7px}.cg-hand-empty{color:#b8c5b5;font-size:13px;position:absolute;bottom:20px;left:30%}.ioc-game-root .cg-duel-shell.is-open .cg-end-turn-float{z-index:40;width:130px!important;height:auto!important;min-height:42px!important;font-size:12px!important;position:absolute!important;inset:auto 12px 14px auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-instruction{z-index:40;left:var(--royal-zone)!important;right:var(--pile-zone)!important;bottom:var(--hand-zone)!important;height:27px!important}.cg-player-hand[data-targeting=true] .cg-hand-fan,.cg-player-hand[data-targeting=true] .cg-hand-detail{display:none!important}.cg-player-hand[data-targeting=true] .cg-hand-heading{width:auto!important;bottom:6px!important;left:16px!important;right:150px!important}.cg-player-hand[data-targeting=true] .cg-hand-heading :is(h3,.cg-kicker){display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-direct-equip=true]{justify-content:space-between;align-items:center;gap:10px;display:flex;inset:auto var(--pile-zone) 4px var(--royal-zone)!important;z-index:200!important;width:auto!important;max-height:74px!important;padding:8px 12px!important;position:absolute!important;transform:none!important}.cg-selection-panel[data-direct-equip=true] :is(h3,.cg-selection-summary,.cg-unit-target-options,small){display:none!important}.cg-selection-panel[data-direct-equip=true]>p{margin:0!important;font-size:12px!important}.cg-selection-panel[data-direct-equip=true] .cg-selection-actions{background:0 0!important;padding:0!important;position:static!important}@keyframes cg-target-pulse{50%{box-shadow:inset 0 0 0 3px #ffe6a3,0 0 18px #e3b86199}}.ioc-game-root .cg-duel-shell.is-open[data-targeting=true] .cg-cell.legal{animation:1.3s ease-in-out infinite cg-target-pulse;border-color:#ffe6a3!important}@media (max-width:1100px),(max-height:650px){.ioc-game-root .cg-duel-shell.is-open{--royal-zone:92px;--pile-zone:142px;--hand-zone:132px;--terrain-width:56px}.ioc-game-root .cg-duel-shell.is-open .cg-battle-layout{top:78px!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll{padding:6px 60px!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail{gap:6px}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section{gap:4px!important;padding:5px!important}.ioc-game-root .cg-duel-shell.is-open .cg-rail-deck,.ioc-game-root .cg-duel-shell.is-open .cg-rail-grave{height:86px!important;min-height:70px!important}.ioc-game-root .cg-duel-shell.is-open .cg-rail-deck :is(img,svg),.ioc-game-root .cg-duel-shell.is-open .cg-rail-grave :is(img,svg){height:62px!important}.ioc-game-root .cg-duel-shell.is-open .cg-rail-deck span,.ioc-game-root .cg-duel-shell.is-open .cg-rail-grave small{font-size:9px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status{gap:3px!important;min-height:0!important;padding:6px 4px!important}.cg-royal-totem{width:42px;height:42px;min-height:42px}.cg-royal-title strong{font-size:12px!important}.cg-royal-title small{display:none}.cg-royal-title>span{font-size:7px}.cg-royal-values{gap:3px}.cg-royal-values>div{padding:2px}.cg-royal-values b{font-size:12px}.cg-royal-values small{font-size:7px!important}.cg-royal-status .cg-king-life b{font-size:18px!important}.cg-fan-card{width:90px;height:124px;bottom:-7px}.cg-hand-fan{left:90px;right:135px}.cg-fan-card.is-selected{transform:translateX(calc(-50% + var(--fan-x))) translateY(-22px) rotate(0deg)}.cg-fan-card.is-hovered{transform:translateX(calc(-50% + var(--fan-x))) translateY(-14px) rotate(0deg)}.cg-hand-detail{right:var(--pile-zone);width:240px;max-height:min(260px,68dvh);padding:9px;bottom:12px}.cg-hand-detail-copy{max-height:155px}.cg-hand-detail>header strong{font-size:14px}.cg-hand-detail-actions button{min-height:36px;font-size:11px}.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-heading{width:74px!important;left:8px!important}.cg-player-hand .cg-hand-heading h3{font-size:12px!important}.cg-player-hand .cg-hand-heading small{font-size:9px}.ioc-game-root .cg-duel-shell.is-open .cg-board{transform:perspective(1100px)rotateX(12deg)!important}}@media (prefers-reduced-motion:reduce){.cg-fan-card{transition:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell.legal{animation:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-board{transform:none!important}}@media (max-height:650px){.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status.player{bottom:8px!important}.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-heading{display:none!important}}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status>div{min-width:0!important;margin:0!important;position:static!important;inset:auto!important;transform:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status .cg-king-life{order:0!important;min-width:0!important;position:static!important;inset:auto!important;transform:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status .cg-king-life small{display:block!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:first-child,.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:not(:first-child){flex:none!important;width:100%!important;position:relative!important;inset:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-terrain-slot{height:auto!important;min-height:0!important;padding:0!important;display:block!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-direct-equip=true] .cg-selection-summary{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-direct-equip=true] .cg-selection-actions{padding:0!important;position:static!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail :is(.cg-rail-deck,.cg-rail-grave)>b{box-sizing:border-box;white-space:nowrap;border-radius:20px;place-items:center;min-width:24px;max-width:calc(100% - 6px);padding:2px 5px;line-height:18px;display:grid;width:max-content!important;height:24px!important;inset:3px 3px auto auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-detail.is-summary{pointer-events:none;width:270px;max-height:none;bottom:calc(var(--hand-zone) + 12px)}.cg-hand-detail.is-summary>header>button{display:none}.cg-hand-quick-summary{flex-direction:column;gap:6px;display:flex}.cg-hand-quick-summary p{margin:0;font-size:12px;line-height:1.45}.cg-hand-quick-summary small{color:#c8c8aa;font-size:10px}.cg-hand-quick-summary b{color:#e5c989;font-size:11px}.ioc-game-root .cg-duel-shell.is-open:has(.cg-player-hand[data-inspecting=true][data-targeting=false]) .cg-instruction{pointer-events:none;visibility:hidden!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-section.cg-player-hand{z-index:60}@media (max-width:1100px),(max-height:650px){.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-detail.is-summary{width:240px;bottom:calc(var(--hand-zone) + 8px)}}.cg-opening-hand{z-index:260;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);box-sizing:border-box;color:#eee5cc;background:#07120aeb;flex-direction:column;gap:16px;padding:24px clamp(16px,4vw,64px);display:flex;position:absolute;inset:0;overflow:auto}.cg-opening-hand>header{justify-content:space-between;align-items:start;gap:14px;display:flex}.cg-opening-hand h2{margin:7px 0;font:clamp(24px,3vw,44px) Georgia}.cg-opening-hand header small{letter-spacing:2px;color:#d8bb78}.cg-opening-hand header p{font-size:13px}.cg-opening-hand button{color:#fff0c9;cursor:pointer;background:#122b24;border:1px solid #bca16c;border-radius:10px;min-height:44px;padding:10px 16px}.cg-opening-hand button:disabled{opacity:.45;cursor:default}.cg-opening-content{flex:1;grid-template-columns:minmax(0,1fr) minmax(220px,290px);gap:22px;min-height:0;display:grid}.cg-opening-cards{grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:12px;min-width:0;display:grid}.cg-opening-cards button{background:#081b14;min-width:0;padding:5px;transition:transform .16s,border-color .16s}.cg-opening-cards button[aria-pressed=true]{border-color:#ffe7a1;transform:translateY(-7px);box-shadow:0 0 20px #d4b86966}.cg-opening-cards :is(img,svg){object-fit:contain;width:100%;height:auto;max-height:48dvh;display:block}.cg-opening-cards strong{margin:7px 3px;font-size:11px;display:block}.cg-opening-content>aside{overscroll-behavior:contain;background:#10271fea;border:1px solid #9e895266;border-radius:12px;min-height:0;padding:14px;overflow:auto}.cg-opening-content h3{margin:0 0 10px;font:19px Georgia}.cg-opening-content .cg-effects-text{font-size:13px;line-height:1.5}.cg-opening-hand footer{flex:none;justify-content:space-between;align-items:center;gap:20px;display:flex}.cg-opening-hand footer p{max-width:650px;margin:0;font-size:13px;line-height:1.5}.cg-opening-hand footer small{color:#bdbfa8;font-size:11px;display:block}.cg-opening-hand footer>div{flex:none;gap:12px;display:flex}.cg-opening-hand.is-board-view{-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none;background:0 0;justify-content:space-between}.cg-opening-hand.is-board-view :is(header,footer){pointer-events:auto;background:#091b15f5;border-radius:10px;padding:10px}@media (max-height:650px),(max-width:1000px){.cg-opening-hand{gap:8px;padding:12px 18px}.cg-opening-hand h2{margin:3px 0;font-size:24px}.cg-opening-hand header p{margin:4px 0}.cg-opening-content{grid-template-columns:minmax(0,1fr) 220px;gap:12px}.cg-opening-cards{gap:6px}.cg-opening-cards strong{display:none}.cg-opening-hand footer p{font-size:11px}.cg-opening-hand footer>div{gap:6px}.cg-opening-hand button{padding:8px 10px;font-size:12px}.cg-opening-content>aside{padding:10px}}@media (max-width:600px) and (orientation:portrait){.cg-opening-content{flex-direction:column;display:flex;overflow:auto}.cg-opening-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-opening-cards :is(img,svg){max-height:30dvh}.cg-opening-content>aside{flex:none;min-height:140px}.cg-opening-hand footer{flex-direction:column;align-items:stretch;gap:6px}.cg-opening-hand footer>div>button{flex:1}}@keyframes cg-unit-flight{0%,to{transform:translateY(-5px)}50%{transform:translateY(-11px)}}.ioc-game-root .cg-duel-shell.is-open .cg-cell.cg-flying>img,.ioc-game-root .cg-duel-shell.is-open .cg-cell.cg-flying>svg.cg-written-card{filter:drop-shadow(0 12px 6px #000b);will-change:transform;animation:3s ease-in-out infinite cg-unit-flight}.cg-cell.cg-flying:after{content:"🪽";pointer-events:none;font-size:12px;position:absolute;top:4px;right:4px}@media (prefers-reduced-motion:reduce){.ioc-game-root .cg-duel-shell.is-open .cg-cell.cg-flying>img,.ioc-game-root .cg-duel-shell.is-open .cg-cell.cg-flying>svg.cg-written-card{animation:none;transform:translateY(-6px)}.cg-opening-cards button{transition:none}}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll{scrollbar-width:none!important;justify-content:center!important;align-items:center!important;padding:20px 0!important;overflow:hidden!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll::-webkit-scrollbar{display:none}.ioc-game-root .cg-duel-shell.is-open .cg-board{min-width:0!important;max-width:100%!important;min-height:0!important;max-height:100%!important}.ioc-game-root .cg-duel-shell.is-open .cg-board>.cg-terrain-slot.cpu{left:auto!important;right:calc(-1 * var(--terrain-width) - 12px)!important;top:12px!important;bottom:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-board>.cg-terrain-slot.player{left:calc(-1 * var(--terrain-width) - 12px)!important;top:auto!important;bottom:12px!important;right:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-board>.cg-terrain-slot>div:last-child{box-sizing:border-box;text-align:center;overflow:hidden;width:100%!important;max-width:100%!important;margin:0!important;padding:5px 3px!important;position:static!important;inset:auto!important;transform:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-board>.cg-terrain-slot>div:last-child>small{overflow-wrap:anywhere;white-space:normal!important;letter-spacing:.02em!important;width:100%!important;font-size:8px!important;line-height:1.25!important;display:block!important}.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-detail{pointer-events:auto;left:var(--hand-panel-x,0px)!important;top:var(--hand-panel-y,-340px)!important;gap:5px!important;width:min(280px,100vw - 16px)!important;height:min(340px,100dvh - 104px)!important;max-height:none!important;padding:10px!important;position:absolute!important;bottom:auto!important;right:auto!important;overflow:hidden!important}.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-detail.is-summary{pointer-events:none;height:auto!important;max-height:210px!important}.cg-hand-detail>header{flex:none}.cg-hand-detail>header strong{max-height:36px;line-height:1.2;overflow:hidden;font-size:15px!important}.cg-hand-detail>p{flex:none}.cg-card-detail-select{color:#f4e5bc;background:#142c24;border:1px solid #a18a59;border-radius:6px;flex:none;width:100%;min-height:30px;padding:4px;font-size:12px}.cg-card-detail-text{overflow-wrap:anywhere;white-space:pre-wrap;flex:1;min-height:0;margin:0;font-size:12px;line-height:1.4;overflow:hidden}.cg-card-detail-pages{flex:none;justify-content:space-between;align-items:center;gap:8px;font-size:10px;display:flex}.cg-card-detail-pages button{min-width:32px;min-height:28px;padding:2px 8px}.cg-hand-detail-actions{flex:none!important}.cg-hand-detail-actions button{font-size:12px;min-height:36px!important}@media (max-height:450px){.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-detail{height:min(300px,100dvh - 104px)!important}.cg-card-detail-text{font-size:11px}.cg-hand-detail>header strong{font-size:13px!important}}@media (max-height:650px){.ioc-game-root .cg-duel-shell.is-open .cg-cell-hp{height:6px!important;min-height:6px!important;margin:0!important;font-size:6px!important;line-height:6px!important}}.ioc-game-root .cg-duel-shell.is-open .cg-board>.cg-terrain-slot{aspect-ratio:auto!important}.cg-opening-cards{padding:16px 8px;overflow:hidden}.cg-opening-hand.is-dealing .cg-opening-deal-card{animation:.45s cubic-bezier(.2,.65,.3,1) both cg-opening-draw-in;animation-delay:var(--deal-delay);pointer-events:none}.cg-opening-hand.is-dealing .cg-opening-cards{perspective:900px}@keyframes cg-opening-draw-in{0%{opacity:0;transform:translate(min(70vw,720px))rotate(12deg)scale(.88)}to{opacity:1;transform:translate(0)rotate(0)scale(1)}}@media (prefers-reduced-motion:reduce){.cg-opening-hand.is-dealing .cg-opening-deal-card{animation:none!important}}@media (pointer:coarse),(hover:none){.ioc-game-root .cg-duel-shell.is-open .cg-cell.occupied{padding:2px!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell.occupied>:is(img,svg.cg-written-card){object-fit:contain!important;flex:none!important;width:calc(100% - 4px)!important;min-width:0!important;max-width:calc(100% - 4px)!important;height:calc(100% - 4px)!important;min-height:0!important;max-height:calc(100% - 4px)!important;margin:0!important;display:block!important;position:absolute!important;inset:2px!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell :is(.cg-cell-hp,.cg-cell-name,.cg-action-marks,.cg-effect-badges,.cg-crown,.cg-engaged-mark),.ioc-game-root .cg-duel-shell.is-open .cg-cell.occupied>.cg-coordinate,.ioc-game-root .cg-duel-shell.is-open .cg-cell.cg-flying:after{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell.cg-flying>:is(img,svg.cg-written-card){will-change:transform;animation:3s ease-in-out infinite cg-mobile-card-flight}.ioc-game-root .cg-duel-shell.is-open .cg-cell .cg-field-card-art>:is(img,svg.cg-written-card){object-fit:contain!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell .cg-field-card-art>b{display:none!important}}@keyframes cg-mobile-card-flight{0%,to{transform:translateY(0)}50%{transform:translateY(-1px)}}@media (pointer:coarse) and (prefers-reduced-motion:reduce),(hover:none) and (prefers-reduced-motion:reduce){.ioc-game-root .cg-duel-shell.is-open .cg-cell.cg-flying>:is(img,svg.cg-written-card){animation:none!important;transform:none!important}}@media (pointer:coarse),(hover:none){.ioc-game-root .cg-duel-shell.is-open .cg-cell.occupied.enemy-unit{background:radial-gradient(#c43a3438,#6e1a2b66)!important;border-color:#ff746c!important;box-shadow:inset 0 0 10px #fa493b50,0 0 7px #ff453c99!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell.occupied.enemy-unit:is(.selected,.pick-selected,.legal){border-color:#ffe196!important;box-shadow:inset 0 0 0 1px #ffe196bb,inset 0 0 10px #fa493b50,0 0 9px #ff453cbb!important}}.cg-hand-discard-notice{display:none}@media (pointer:coarse),(hover:none){.ioc-game-root .cg-duel-shell.is-open .cg-player-hand>.cg-hand-discard-notice{z-index:55;box-sizing:border-box;color:#ffe3a2;text-align:center;pointer-events:none;background:#392315f2;border:1px solid #f6c56c;border-radius:10px;flex-direction:column;align-items:center;gap:2px;width:max-content;max-width:calc(100% - 24px);margin:0;padding:7px 14px;display:flex;position:absolute;top:-48px;left:50%;transform:translate(-50%);box-shadow:0 3px 14px #0009}.cg-hand-discard-notice strong{font-size:14px;line-height:1.2}.cg-hand-discard-notice small{color:#f1dfc0;font-size:10px;line-height:1.2}}.cg-opening-king-shield{color:#f1ddaa;background:#173337;border:1px solid #bca36577;border-radius:6px;margin:4px 10px;padding:6px 10px;font-size:11px;line-height:1.4}@media (max-width:1100px),(max-height:650px),(pointer:coarse){.ioc-game-root .cg-duel-shell.is-open{--hand-zone:68px;--terrain-width:28px;--royal-zone:56px;--pile-zone:56px}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu{box-sizing:border-box;overflow:auto hidden;height:40px!important;min-height:40px!important;padding:2px 4px!important;inset:2px 4px auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu>strong{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu>div{gap:4px;flex-wrap:nowrap!important;justify-content:flex-start!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu>div>button{min-height:34px!important;padding:4px 7px!important;font-size:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-toolbar{box-sizing:border-box;align-items:center;flex-direction:row!important;height:22px!important;min-height:0!important;margin:0!important;padding:0!important;display:flex!important;position:absolute!important;inset:44px 8px auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-toolbar strong{font-size:12px!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-toolbar small{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-toolbar button{min-height:22px!important;padding:2px 6px!important;font-size:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-layout{top:68px!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll{--arena-compact:1;inset:48px 54px calc(var(--hand-zone) + 22px)!important;padding:0!important}.ioc-game-root .cg-duel-shell.is-open .cg-board{aspect-ratio:auto!important;border-radius:8px!important;gap:2px!important;padding:3px!important;transform:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell{align-self:stretch;box-sizing:border-box!important;border-radius:4px!important;min-width:0!important;min-height:0!important;margin:0!important;position:relative!important;overflow:hidden!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell.occupied>:is(img,svg.cg-written-card){object-fit:contain!important;width:calc(100% - 2px)!important;min-width:0!important;max-width:calc(100% - 2px)!important;height:calc(100% - 2px)!important;min-height:0!important;max-height:calc(100% - 2px)!important;margin:0!important;position:absolute!important;inset:1px!important}.ioc-game-root .cg-duel-shell.is-open .cg-cell :is(.cg-cell-hp,.cg-cell-name,.cg-action-marks,.cg-effect-badges,.cg-crown,.cg-engaged-mark),.ioc-game-root .cg-duel-shell.is-open .cg-cell.occupied>.cg-coordinate{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-coordinate{font-size:8px!important}.ioc-game-root .cg-duel-shell.is-open .cg-board>.cg-terrain-slot.cpu{top:0!important;right:-34px!important}.ioc-game-root .cg-duel-shell.is-open .cg-board>.cg-terrain-slot.player{bottom:0!important;left:-34px!important}.ioc-game-root .cg-duel-shell.is-open .cg-board>.cg-terrain-slot>div:last-child{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status:is(.player,.cpu){border-radius:8px;align-items:center;background:linear-gradient(120deg,#102b26f5,#071810f5)!important;flex-direction:row!important;gap:5px!important;width:calc(50% - 10px)!important;height:42px!important;padding:3px 5px!important;display:flex!important;top:2px!important;bottom:auto!important;overflow:hidden!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status.player{left:6px!important;right:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status.cpu{left:auto!important;right:6px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status>.cg-royal-totem{width:24px!important;height:24px!important;min-height:24px!important;box-shadow:none!important;flex:0 0 24px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status>.cg-royal-title{text-align:left;overflow:hidden;flex:40px!important;align-items:flex-start!important;gap:0!important;min-width:0!important}.ioc-game-root .cg-duel-shell.is-open .cg-royal-title strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden;font-size:11px!important}.ioc-game-root .cg-duel-shell.is-open .cg-royal-title>span{letter-spacing:.3px;font-size:7px!important}.ioc-game-root .cg-duel-shell.is-open .cg-royal-title small{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status>.cg-royal-values{flex-direction:row!important;flex:0 144px!important;align-items:stretch!important;gap:3px!important;width:auto!important;min-width:112px!important;display:flex!important}.ioc-game-root .cg-duel-shell.is-open .cg-royal-values>div{box-sizing:border-box;white-space:nowrap;flex:1 1 0!important;grid-area:auto!important;gap:0!important;width:auto!important;min-width:0!important;height:auto!important;padding:1px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status .cg-royal-values .cg-king-life{box-shadow:none!important;flex:1 1 0!important;grid-area:auto!important;align-self:stretch!important;padding:1px!important}.ioc-game-root .cg-duel-shell.is-open .cg-royal-values b,.ioc-game-root .cg-duel-shell.is-open .cg-king-life b{line-height:16px;font-size:13px!important}.ioc-game-root .cg-duel-shell.is-open .cg-royal-values small{line-height:9px;font-size:7px!important}.ioc-game-root .cg-duel-shell.is-open .cg-siege-status{flex:none;max-width:55px;line-height:10px;font-size:8px!important;position:static!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail{pointer-events:none;inset:50px 3px calc(var(--hand-zone) + 23px)!important;width:auto!important;display:block!important;overflow:visible!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:first-child,.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:not(:first-child){pointer-events:auto;grid-template-columns:1fr!important;gap:2px!important;width:46px!important;padding:2px!important;position:absolute!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:first-child{inset:0 0 auto auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:not(:first-child){inset:auto auto 0 0!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section>small{text-align:center;letter-spacing:0!important;font-size:6px!important}.ioc-game-root .cg-duel-shell.is-open :is(.cg-rail-deck,.cg-rail-grave){gap:0!important;height:34px!important;min-height:34px!important;padding:0!important}.ioc-game-root .cg-duel-shell.is-open :is(.cg-rail-deck,.cg-rail-grave)>:is(img,svg){display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail :is(.cg-rail-deck,.cg-rail-grave)>b{background:0 0!important;border:0!important;min-width:0!important;height:17px!important;padding:0 3px!important;font-size:12px!important;line-height:17px!important;position:static!important}.ioc-game-root .cg-duel-shell.is-open .cg-rail-deck span,.ioc-game-root .cg-duel-shell.is-open .cg-rail-grave small{font-size:7px!important;line-height:10px!important}.ioc-game-root .cg-duel-shell.is-open .cg-rail-grave>span{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-instruction{white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;overflow:hidden;left:6px!important;right:6px!important;bottom:var(--hand-zone)!important;height:20px!important;min-height:0!important;margin:0!important;padding:1px 4px!important;font-size:10px!important;line-height:17px!important}.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-heading{display:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-fan{scrollbar-width:thin;overscroll-behavior-x:contain;box-sizing:border-box;justify-content:safe center;align-items:center;gap:6px;padding:2px 4px;display:flex;overflow:auto hidden;height:68px!important;inset:0 104px 0 6px!important}.ioc-game-root .cg-duel-shell.is-open .cg-fan-card{filter:none!important;flex:0 0 44px!important;width:44px!important;height:61px!important;position:relative!important;inset:auto!important;transform:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-fan-card:is(.is-selected,.is-hovered){filter:drop-shadow(0 0 3px #ffe3a6)!important;transform:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-art .cg-hand-cost{padding:0 3px!important;font-size:8px!important;line-height:11px!important;top:0!important;right:0!important}.ioc-game-root .cg-duel-shell.is-open .cg-end-turn-float{width:92px!important;min-height:44px!important;font-size:11px!important;inset:auto 6px 10px auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-selection-panel.is-board[data-direct-equip=true]{left:6px!important;right:6px!important}}@media (max-height:350px){.ioc-game-root .cg-duel-shell.is-open{--hand-zone:60px}.ioc-game-root .cg-duel-shell.is-open .cg-battle-layout{top:64px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status:is(.player,.cpu){height:38px!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll{top:44px!important;bottom:80px!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-fan{height:60px!important}.ioc-game-root .cg-duel-shell.is-open .cg-fan-card{height:55px!important}}@media (max-width:1100px) and (orientation:portrait){.ioc-game-root .cg-duel-shell.is-open{--hand-zone:96px}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll{--arena-portrait:1;inset:48px 8px calc(var(--hand-zone) + 112px)!important}.ioc-game-root .cg-duel-shell.is-open .cg-board-scroll:before{background-position:50%!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status:is(.player,.cpu){width:calc(100% - 16px)!important;height:40px!important;left:8px!important;right:8px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status.cpu{top:2px!important;bottom:auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status.player{top:auto!important;bottom:calc(var(--hand-zone) + 64px)!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail{inset:auto 8px calc(var(--hand-zone) + 28px)!important;height:32px!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:first-child,.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:not(:first-child){box-sizing:border-box;flex-direction:row;align-items:center;gap:3px!important;width:calc(50% - 4px)!important;height:32px!important;display:flex!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:first-child{inset:0 auto auto 0!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section:not(:first-child){inset:0 0 auto auto!important}.ioc-game-root .cg-duel-shell.is-open .cg-pile-rail>section>small{overflow-wrap:anywhere;flex:1;min-width:0;line-height:9px;font-size:7px!important}.ioc-game-root .cg-duel-shell.is-open :is(.cg-rail-deck,.cg-rail-grave){flex:0 0 48px!important;width:48px!important;height:26px!important;min-height:26px!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-fan{gap:7px;height:var(--hand-zone)!important;right:90px!important}.ioc-game-root .cg-duel-shell.is-open .cg-fan-card{flex-basis:56px!important;width:56px!important;height:78px!important}.ioc-game-root .cg-duel-shell.is-open .cg-end-turn-float{width:80px!important;bottom:24px!important}.ioc-game-root .cg-duel-shell.is-open .cg-instruction{height:24px!important;line-height:21px!important}.ioc-game-root .cg-duel-shell.is-open .cg-hand-empty{font-size:11px;bottom:18px;right:90px;left:8px!important}.ioc-game-root .cg-duel-shell.is-open .cg-opening-content{flex-direction:column;display:flex;overflow:auto}.ioc-game-root .cg-duel-shell.is-open .cg-opening-cards{flex:none;grid-template-columns:repeat(2,minmax(0,1fr))}.ioc-game-root .cg-duel-shell.is-open .cg-opening-cards :is(img,svg){max-height:24dvh}.ioc-game-root .cg-duel-shell.is-open .cg-opening-content>aside{flex:none;min-height:120px}.ioc-game-root .cg-duel-shell.is-open .cg-opening-hand footer{flex-direction:column;align-items:stretch;gap:6px}.ioc-game-root .cg-duel-shell.is-open .cg-opening-hand footer>div>button{flex:1}}@media (max-width:1100px) and (orientation:portrait) and (max-height:700px){.ioc-game-root .cg-duel-shell.is-open{--hand-zone:76px}.ioc-game-root .cg-duel-shell.is-open .cg-fan-card{flex-basis:48px!important;width:48px!important;height:66px!important}.ioc-game-root .cg-duel-shell.is-open .cg-end-turn-float{bottom:14px!important}}.ioc-game-root:has(.cg-duel-shell.is-open) .cg-landscape-guide{display:none!important}@media (max-width:1100px) and (orientation:portrait){.ioc-game-root .cg-duel-shell.is-open{--portrait-width:min(calc(100vw - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)),calc((100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * 9 / 19));--portrait-height:calc(var(--portrait-width) * 19 / 9);aspect-ratio:9/19;box-sizing:border-box;inset:auto!important;left:calc((100vw - var(--portrait-width) + env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)) / 2)!important;top:calc((100dvh - var(--portrait-height) + env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) / 2)!important;width:var(--portrait-width)!important;height:var(--portrait-height)!important;background-position:50%!important;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;position:fixed!important;transform:none!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu{align-items:stretch!important;height:78px!important;min-height:78px!important;padding:3px!important;overflow:hidden!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu>div{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:34px;width:100%;gap:3px!important;display:grid!important;overflow:visible!important}.ioc-game-root .cg-duel-shell.is-open .cg-arena-menu>div>button{text-align:center;width:100%;white-space:normal!important;min-width:0!important;min-height:34px!important;padding:2px!important;font-size:9px!important;line-height:11px!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-toolbar{height:20px!important;top:82px!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-layout{top:104px!important}.ioc-game-root .cg-duel-shell.is-open .cg-battle-toolbar strong{font-size:11px!important}.ioc-game-root .cg-duel-shell.is-open .cg-resource-bar.cg-royal-status>.cg-royal-values{flex-basis:138px!important}.ioc-game-root .cg-duel-shell.is-open .cg-instruction{justify-content:center;align-items:center;gap:4px;display:flex;white-space:normal!important;font-size:9px!important;line-height:11px!important}.ioc-game-root .cg-duel-shell.is-open .cg-instruction>span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.ioc-game-root .cg-duel-shell.is-open .cg-instruction>button{flex:none;min-height:20px!important;padding:2px 4px!important;font-size:9px!important}}.cg-portrait-label{display:none}@media (max-width:1100px) and (orientation:portrait){.ioc-game-root .cg-duel-shell.is-open .cg-battle-toolbar .cg-portrait-label{color:#eed39a;vertical-align:middle;border:1px solid #c6ad7277;border-radius:4px;align-items:center;margin-left:6px;padding:1px 5px;font:9px/12px system-ui;display:inline-flex}.ioc-game-root .cg-duel-shell.is-open .cg-player-hand .cg-hand-detail{width:min(280px,calc(var(--portrait-width) - 16px))!important}}
