/* Existing painted assets carry the art; geometry below communicates rules. */
#contentResult .content-sheet[data-r16=true]{gap:10px!important}
#r16Outcome{margin:0;font:700 15px/22px Arial;color:#f2f1fa}
#r16Details{flex:none;border-top:1px solid #da8a6d;color:#f2f1fa}
#r16Details>summary{min-height:44px;cursor:pointer;display:flex;align-items:center;font:700 14px/20px Arial;color:#e9bd74}
#r16Details:not([open])>*:not(summary){display:none!important}
#r16Details[open]{max-height:30dvh;overflow:auto}
#r16Details #contentRecap{display:none!important}
#r16Details .content-result-art{height:130px!important;object-fit:contain!important}
#r16Details .r16-preserved-copy{font:400 13px/19px Arial}
#r16Details #r13ViewBoard{width:100%;margin:4px 0}
.r16-hp{display:inline-block;white-space:nowrap;word-break:keep-all;font:700 16px/22px Arial;color:#f2f1fa;border:1px solid currentColor;padding:2px 8px}
.r15-side-label{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:13px}
.r15-final-lane{grid-template-columns:94px 1fr}
.r15-final-lane:has(.r15-final-unit:nth-child(4))>.r15-side-label{flex-direction:row;align-items:center}
.r15-final-unit,.r15-final-unit img{min-height:126px;height:126px}
.r15-final-unit figcaption strong{font-size:13px;line-height:17px}
.r15-final-unit figcaption b{font-size:15px;line-height:20px}
.r16-branch-metrics{display:flex;gap:8px;margin-top:6px}
.r16-branch-metrics strong{background:#10152d;padding:5px 8px;border-left:3px solid #69cfe9;white-space:nowrap;font-size:14px}
#r16Lesson{display:block;font-size:13px;line-height:18px;color:#e9bd74}
#twinStatus{grid-template-columns:1fr!important;gap:3px!important;min-height:110px!important;padding:4px 8px!important;border:2px solid #da8a6d;background:#201c3df8!important}
#twinStatus>img{display:none}
#twinStatus>span{display:none!important}
.r15-chain-track{grid-column:1;min-height:51px;position:relative;padding-top:16px;box-sizing:border-box}
.r16-chain-label{position:absolute;top:0;left:0;right:0;font:700 13px/18px Arial;color:#f2f1fa;letter-spacing:1px}
.r15-tide-anchor{grid-template-columns:30px auto;column-gap:4px;min-width:100px;padding:1px 6px;border:2px solid #da8a6d;background:#472b3b;box-sizing:border-box}
.r15-tide-anchor img{grid-row:1/3;width:30px;height:30px}
.r15-tide-anchor b{font-size:14px;line-height:17px}
.r15-tide-anchor small{font:700 10px/13px Arial}
.r15-tide-anchor[data-mode=ebb]{border-color:#69cfe9;background:#203e56}
.r15-copper-chain{position:relative;min-width:55px;height:40px}
.r15-copper-chain i{width:22px;height:15px;border-width:4px;margin-left:-6px}
[data-chain-state=first] .r15-tide-anchor[data-done=true]{outline:4px solid #e9bd74;outline-offset:1px;background:#5b422b}
[data-chain-state=reversed] .r15-copper-chain{transform:none;gap:16px}
[data-chain-state=reversed] .r15-copper-chain i:nth-child(3){display:none}
[data-chain-state=reversed] .r15-copper-chain::after{font:700 38px/40px Arial;left:50%;transform:translateX(-50%);text-shadow:0 2px #10152d}
[data-chain-state=reversed] .r15-tide-anchor{border-width:3px;border-style:dashed}
#r16TideResult{grid-column:1/-1;font:700 11px/14px Arial;margin:0;color:#f2f1fa;white-space:normal;text-align:left}
#r16TideResult>span{display:block}
.r16-impact{position:absolute;left:2px;right:2px;top:2px;padding:3px;background:#10152df5;color:#e9bd74;font:700 12px/16px Arial;z-index:8;white-space:normal;pointer-events:none}
.hero-row>.r16-impact{left:auto;right:50px;top:2px;max-width:210px;font-size:12px}
#r16MoenCost{display:block;margin:3px 0 0;font:700 12px/16px Arial;color:#e9bd74}
#moenTideMeter .r13-tide-slots{height:28px}
#moenTideMeter .r13-tide-slots i{font:700 13px/24px Arial}
#moenTideMeter .r13-tide-slots i[data-threshold=true]{border-width:2px;line-height:24px;color:#e9bd74}
#moenTideMeter[data-reached=true] .r13-tide-slots i[data-threshold=true]{color:#10152d}
@media(min-width:600px) and (min-height:651px){#moenTideMeter{width:210px!important;right:auto!important}}
#forecastCompare{height:auto!important;min-height:48px;overflow:visible!important}
#forecastCompare span{white-space:normal!important;overflow:visible!important;line-clamp:unset!important;-webkit-line-clamp:unset!important}
@media(min-height:651px){
 :root body[data-content-id=spell] .battlefield{padding:8px 0!important}
 :root body[data-content-id=spell] .battlefield .card{max-height:calc(100% + 16px)!important}
}
@media(max-height:650px){
 #r16Lesson,#r16MoenCost{font-size:11px;line-height:14px}
 #moenTideMeter .r13-tide-slots{height:22px}
 #moenTideMeter .r13-tide-slots i,#moenTideMeter .r13-tide-slots i[data-threshold=true]{font-size:11px;line-height:18px}
 #twinStatus{min-height:66px!important;padding:2px 6px!important}
 .r15-chain-track{min-height:41px;padding-top:14px}
 .r16-chain-label{font-size:11px;line-height:14px}
 .r15-tide-anchor{min-width:86px;padding:1px 3px;grid-template-columns:24px auto}
 .r15-tide-anchor img{height:24px;width:24px}
 .r15-tide-anchor b{font-size:12px;line-height:15px}
 .r15-tide-anchor small{display:none}
 #twinStatus>span{font-size:10px;line-height:12px}
 .r15-copper-chain{height:24px}
 #r16TideResult{font-size:10px;line-height:12px}
 .r15-final-unit,.r15-final-unit img{min-height:72px;height:72px}
 #r16Outcome{font-size:13px;line-height:18px}
}
@media(min-width:600px) and (max-height:650px){
 #contentResult .content-sheet[data-r16=true]{grid-template-rows:44px 22px minmax(0,1fr) 44px!important;gap:4px!important}
 #r16Outcome{grid-column:1;grid-row:3;align-self:start}
 #r16Details{grid-column:1;grid-row:3;align-self:end;max-height:70px}
 #r16Details[open]{max-height:130px}
 #contentResult .content-sheet[data-r16=true] footer{grid-row:4!important}
}
