/* R8: reserve real layout space for decisions, keep art and combat roots separate. */
body[data-content-active=true] .series-footer{display:none!important}
:root body[data-content-active=true] #commandDock{position:fixed!important;left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;width:auto!important;height:64px!important;min-height:64px!important;padding:7px!important;box-sizing:border-box!important;transform:none!important;z-index:180}
:root body[data-content-active=true] #commandDock button{min-height:44px;max-height:48px;box-sizing:border-box}
body[data-content-active=true] .player-hero-row{transform:none!important}
body[data-content-active=true] .hero{overflow:visible;position:relative}
body[data-content-active=true] .hero .avatar{opacity:1;outline:none;flex-shrink:0}
body[data-content-active=true] .hero.r75-preview-safe{outline:none!important;box-shadow:none!important;background:none!important}
.card .taunt-crest{clip-path:none!important;background:none!important;box-shadow:none!important;border:0!important;animation:none!important;width:30px!important;height:26px!important;right:-4px!important;top:35%!important;font-size:0}
.card .taunt-crest:after{display:none}.taunt-crest img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 2px #10152d)}
.r8-shield-icon{position:absolute;right:-7px;top:5px;width:32px;height:38px;z-index:27;object-fit:contain;pointer-events:none}
body[data-content-active=true] .shield-ring{display:none!important}
.r8-plain{display:block;font:400 13px/20px Arial;color:#f2f1fa;white-space:normal;margin-top:2px}
.r75-tide-channel>.r6-board-signal:not(.r6-hand-signal){max-width:95%;width:auto;text-align:center;left:50%!important;right:auto!important;top:0!important;transform:translateX(-50%)!important;white-space:nowrap}
.r75-tide-channel>.r6-hand-signal{left:8px!important;right:auto!important;top:-130px!important;transform:none!important;width:100px!important;height:122px;display:flex;flex-direction:column;gap:2px;padding:3px;white-space:normal;box-sizing:border-box}
.r75-tide-channel>.r6-hand-signal img{width:54px;height:78px;object-fit:cover}
.r75-tide-channel>.r6-hand-signal span{max-width:94px;font-size:12px;line-height:16px;text-align:center}
.r75-tide-channel>span:first-child{white-space:nowrap;position:absolute;bottom:0;left:8px;font-size:11px}
.r75-tide-channel .r75-tide-pips{position:absolute;right:8px;bottom:0}
.r6-exchange-path{z-index:43}.r6-exchange-path path{stroke-width:3;stroke-dasharray:none;filter:drop-shadow(0 0 2px #10152d)}
[data-exchange-role=other] .r6-hp-preview{opacity:.8}
[data-exchange-role=source],[data-exchange-role=target]{outline:2px solid #e9bd74!important;outline-offset:3px}
.r6-hp-preview{bottom:3px;left:2px;right:2px;z-index:40;transform:translateY(100%);background:#201c3d}
.r6-exchange-preview{z-index:44}
.r6-moen-stage{left:4px!important;width:108px!important;height:112px!important;max-width:none!important;pointer-events:none;z-index:6!important}
.r6-moen-stage>img{width:100%!important;height:100%!important;object-fit:contain!important}
.r7-moen-side{left:0;top:-12px;font-size:12px;line-height:18px;padding:1px 4px;white-space:nowrap}
#moenPressure{font-size:11px!important;bottom:0!important;left:0!important;right:0!important}
.r6-moen-bond{z-index:5!important;border-bottom:2px solid #b6a0ec;padding:4px 0;max-width:225px}
.r7-moen-heal{left:0;right:auto;top:52px;animation:none;font-size:14px;line-height:22px;padding:4px;transform:none;z-index:100}
.r7-shield-owner{bottom:auto;top:36px;right:-11px;left:auto;transform:none;width:64px;font-size:11px;line-height:18px;border:0}
.card[data-shell-state=intact] .r3-shell-badge{width:34px!important;height:42px!important;right:-8px!important;top:2px!important;object-fit:contain!important}
.card[data-shell-state=breaking] .r3-shell-badge,.card[data-shell-state=broken] .r3-shell-badge{width:116%!important;height:95%!important;left:-8%!important;right:auto!important;top:-5%!important;object-fit:fill!important;pointer-events:none}
.card[data-shell-state=intact] .r8-shield-icon{visibility:hidden}
.r6-shield-label{bottom:-20px!important;white-space:nowrap}
body[data-content-active=true] .tide-full-burst{display:none!important}
#forecastPanel{inset:auto 8px 88px!important;padding:0!important;background:none!important;pointer-events:none}
#forecastPanel .content-sheet{pointer-events:auto;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:44px auto 70px auto!important;width:min(680px,100%);max-height:40dvh;gap:5px!important;padding:8px!important;overflow:auto;box-sizing:border-box}
#forecastPanel header{display:flex!important;grid-column:1!important;grid-row:1!important;min-height:44px}
#forecastTitle{font-size:18px!important;margin:0}#forecastClose{min-height:44px;font-size:12px}
#forecastRule{font-size:12px!important;line-height:18px!important;margin:0!important}
#forecastRounds{margin:0!important;gap:6px!important;grid-row:3}
#forecastRounds button{height:70px;min-height:70px!important;width:100%;padding:4px;font-size:12px;line-height:18px}
#forecastRounds strong,#forecastRounds span,#forecastRounds small{display:block;white-space:nowrap;font-size:12px!important}
#forecastCompare{grid-template-columns:1fr;padding:0!important;border:0;min-height:0}
#forecastCompare>div{padding:4px 6px!important;font-size:12px!important;line-height:18px!important}
#forecastCompare strong{font-size:12px!important;margin:0!important}
#forecastPanel .forecast-note{display:none!important}
body[data-content-id=forecast] #tideChartTitle{font-size:18px;min-height:26px;padding-right:0;letter-spacing:0;white-space:nowrap}
body[data-content-id=forecast] #tideChartPanel .tide-chart-sheet{max-height:40dvh}
body[data-content-id=forecast] #tideChartPanel .tide-choices button{min-height:52px!important}
body[data-content-id=forecast] #tideChartPanel .tide-choices .r75-icon{width:28px;height:28px;float:left;margin:0 5px}
body[data-content-id=forecast] #tideChartPanel{bottom:88px!important}
/* Tall touch displays use five non-overlapping rows; the hero has its own row. */
@media(min-height:651px){
 :root body[data-content-active=true] .board{position:absolute!important;top:var(--r8-content-top,144px)!important;bottom:94px!important;left:0!important;width:100%!important;height:auto!important;flex:none!important;min-height:0!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:44px minmax(112px,1fr) minmax(90px,.8fr) minmax(112px,1fr) 44px!important;gap:6px!important;padding:4px 12px!important;overflow:visible!important;box-sizing:border-box}
 body[data-content-active=true] .board>.hero-row{position:relative!important;grid-column:1!important;width:100%!important;min-height:44px!important;height:44px!important;margin:0!important;padding:3px 8px!important;box-sizing:border-box}
 body[data-content-active=true] .board>.hero-row:not(.player-hero-row){grid-row:1!important}
 body[data-content-active=true] #enemyField{grid-row:2!important}
 body[data-content-active=true] .r75-tide-channel{grid-row:3!important;grid-column:1!important;align-self:center;position:relative!important;height:70px!important;min-height:0!important;margin:0!important}
 body[data-content-active=true] #playerField{grid-row:4!important}
 body[data-content-active=true] .board>.player-hero-row{grid-row:5!important}
 :root body[data-content-active=true] .battlefield{position:relative!important;min-height:0!important;height:100%!important;max-height:none!important;padding:8px 0 24px!important;align-items:center!important;justify-content:center!important;overflow:visible!important;box-sizing:border-box}
 :root body[data-content-active=true] .battlefield .card{height:min(160px,calc((100dvh - 420px)/2))!important;width:min(105px,calc((100vw - 60px)/4))!important;min-width:44px}
 :root body[data-content-id=forecast]:has(#forecastPanel:not([hidden]),#tideChartPanel:not([hidden])) .board{bottom:330px!important;grid-template-rows:44px minmax(108px,1fr) 20px minmax(108px,1fr) 44px!important;gap:4px!important}
 :root body[data-content-id=forecast]:has(#forecastPanel:not([hidden]),#tideChartPanel:not([hidden])) .battlefield .card{height:108px!important;width:82px!important}
 body[data-content-id=forecast]:has(#forecastPanel:not([hidden]),#tideChartPanel:not([hidden])) .r75-tide-channel{height:18px!important}
 body[data-content-id=forecast] .r7-moen-heal{top:4px}
 .r6-exchange-preview{top:50%!important}
}
@media(max-height:650px) and (min-width:600px){
 body[data-content-id=forecast] #tideChartPanel .tide-chart-sheet{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:44px auto auto auto!important;gap:2px!important;padding:6px!important;max-height:calc(100dvh - 165px)!important;overflow:visible!important}
 body[data-content-id=forecast] #tideChartTitle{grid-column:1!important;grid-row:1!important;display:flex;align-items:center;min-height:44px!important;padding-right:80px!important}
 body[data-content-id=forecast] #tideChartStatus{display:none!important}
 body[data-content-id=forecast] #tideChartPanel .tide-choices{grid-column:1!important;grid-row:2!important;margin:2px 0!important;gap:6px!important}
 body[data-content-id=forecast] #tideChartPanel .tide-choices button{min-height:58px!important;padding:4px!important;font-size:11px!important;line-height:15px!important}
 body[data-content-id=forecast] #tidePreview{grid-column:1!important;grid-row:3!important;margin:0!important;padding:3px 0!important;font-size:11px!important;line-height:14px!important}
 body[data-content-id=forecast] #tideChartPanel .tide-chart-footer{grid-column:1!important;grid-row:4!important;margin:2px 0 0!important}
 body[data-content-id=forecast] #tideChartPanel .tide-chart-footer button{min-height:44px!important;padding:4px!important;font-size:11px!important}
 .r6-exchange-preview{bottom:84px!important}
 #forecastPanel{left:50%!important;right:8px!important;bottom:80px!important;top:88px!important;align-items:center}
 #forecastPanel .content-sheet{max-height:calc(100dvh - 165px)}
 :root body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) .board{display:block!important;position:relative!important;left:0!important;right:auto!important;width:49vw!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;align-self:flex-start!important;height:calc(100dvh - 165px)!important;overflow:visible!important}
 body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) .board>.hero-row{position:absolute!important;top:4px!important;left:8px!important;width:calc(50% - 12px)!important;height:44px!important;margin:0!important;padding:3px!important;transform:none!important;box-sizing:border-box}
 body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) .board>.hero-row:not(.player-hero-row){left:auto!important;right:8px!important}
 body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) .hero .name,body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) .tide-style{display:none}
 body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) .hero .avatar{width:26px;height:26px;min-width:26px}
 :root body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) .battlefield{position:absolute!important;top:56px!important;bottom:28px!important;left:8px!important;width:calc(50% - 12px)!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;transform:none!important;align-items:center!important;justify-content:center!important;box-sizing:border-box}
 :root body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) #enemyField{left:auto!important;right:8px!important}
 :root body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) .battlefield .card{width:76px!important;height:106px!important}
 body[data-content-id=forecast]:has(#forecastPanel:not([hidden])) .r75-tide-channel{position:absolute!important;bottom:4px!important;left:8px!important;right:8px!important;height:16px!important;min-height:0!important}
 body[data-content-id=moen] .r6-moen-stage{left:calc(50% - 45px)!important;top:48px!important;width:90px!important;height:95px!important}
 body[data-content-id=moen] .r7-moen-side{top:0}
 body[data-content-id=moen] #playerField{padding-right:90px}
 body[data-content-id=moen] #enemyField{padding-left:50px}
 body[data-content-id=moen] #playerField .card{width:clamp(44px,calc((100vw - 220px)/8),68px)!important;height:100px!important}
 body[data-content-id=moen] .battlefield .card .cardname{left:2px!important;right:2px!important;bottom:22px!important;font-size:clamp(10px,1.3vw,11px)!important;line-height:15px!important;background:#201c3df5}
 body[data-content-id=moen] #moenBond{display:none}
 .r7-moen-heal{top:42px;right:0;font-size:12px}
 .r8-plain{font-size:12px;line-height:16px}
}
