/* Fixed HUD rows: skill visibility never changes the board's available space. */
.shared-board-duel main{gap:4px;padding-left:12px;padding-right:12px}
.shared-board-duel main>header{height:44px;min-height:44px}
.shared-board-duel #arcade-heading b{font-size:22px}.shared-board-duel #arcade-heading small{font-size:10px}
.shared-board-duel #combat-hud{height:126px;padding:6px 9px;margin:0;display:grid;grid-template-rows:38px 30px 40px;gap:2px;overflow:hidden}
.shared-board-duel .combat-top{min-height:0;height:38px}.shared-board-duel .combat-portrait{width:34px;height:36px}
.shared-board-duel .combat-name{font-size:13px}.shared-board-duel .combat-name-row{flex-wrap:nowrap;gap:5px;min-width:0}.shared-board-duel .combat-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shared-board-duel .boss-hp-value{font-size:11px;white-space:nowrap}
.shared-board-duel #combat-hud .intent-badge{display:flex!important;height:30px;min-height:30px;max-height:30px;margin:0;padding:2px 0;gap:5px;overflow:hidden;border-top:1px solid #ffffff20}
.shared-board-duel #combat-hud .intent-badge[hidden]{visibility:hidden;pointer-events:none}
.shared-board-duel .intent-badge>span:last-child{display:flex;align-items:center;justify-content:space-between;gap:5px;flex:1;min-width:0}
.shared-board-duel .intent-badge strong{font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shared-board-duel .intent-badge small{font-size:12px;margin:0;white-space:nowrap}.shared-board-duel .intent-icon{font-size:21px;width:24px;flex:none}
.shared-board-duel #boss-hand{height:40px;min-height:40px;padding:0;gap:6px}.shared-board-duel .boss-piece{height:36px;width:48px}.shared-board-duel #boss-hand>small{font-size:9px}
.shared-board-duel #turn-status{height:26px;min-height:26px;max-height:26px;margin:0;padding:4px 15px;font-size:11px;white-space:nowrap}
#turn-status[data-bonus=true]{border-color:#ffec99;background:#345979;color:#fff0a6;box-shadow:0 0 10px #ffd06444}
.shared-board-duel #board-wrap{margin:5px auto}
.shared-board-duel #duel-player-panel{height:30px;min-height:30px;margin:0;padding:4px 9px;gap:8px}.shared-board-duel #duel-player-panel .player-hp-value{font-size:11px;white-space:nowrap}
.shared-board-duel #boss-aids{height:40px;min-height:40px;margin:0}.shared-board-duel #boss-aids>button,.shared-board-duel #boss-aids>.aid-shield{min-height:40px;padding:2px 4px;gap:4px}.shared-board-duel #boss-aids small{font-size:9px}.shared-board-duel #boss-aids b{font-size:12px}.shared-board-duel #boss-aids svg,.shared-board-duel #boss-aids .orb-art{width:22px;height:25px}
.shared-board-duel #tray{height:62px;min-height:62px;margin:0}.shared-board-duel #tray .piece{height:62px}
.extra-turn-burst{position:absolute;left:50%;top:38%;z-index:40;transform:translate(-50%,-50%);pointer-events:none;text-align:center;width:max-content;max-width:96%;filter:drop-shadow(0 5px 0 #153c67);color:#fff4b5}
.extra-turn-burst strong{display:block;font-size:clamp(28px,8vw,43px);line-height:1.1;font-weight:1000;letter-spacing:-1px;-webkit-text-stroke:1px #6c450a;text-shadow:0 2px 0 #aa6817,0 0 22px #ffc94c}
.extra-turn-burst span{display:block;font-size:17px;font-weight:950;color:#fff;margin-top:5px;letter-spacing:2px}.extra-turn-burst[data-side=boss]{filter:drop-shadow(0 5px 0 #633453)}
@media(max-height:650px){.shared-board-duel main>header{height:38px;min-height:38px}.shared-board-duel #combat-hud{height:116px;grid-template-rows:34px 28px 34px}.shared-board-duel .combat-top{height:34px}.shared-board-duel #combat-hud .intent-badge{height:28px;min-height:28px;max-height:28px}.shared-board-duel #boss-hand{height:34px;min-height:34px}.shared-board-duel .boss-piece{height:32px}.shared-board-duel #tray,.shared-board-duel #tray .piece{height:56px;min-height:56px}}

.vs-mode.shared-board-duel #combat-hud{height:94px;grid-template-rows:38px 40px}.vs-mode.shared-board-duel #combat-hud .intent-badge{display:none!important}
@media(max-height:650px){.vs-mode.shared-board-duel #combat-hud{height:86px;grid-template-rows:34px 34px}}
