/* R12 repairs: the existing painted assets carry state; CSS only arranges UI. */
.card .taunt-crest{display:flex!important;flex-direction:column;align-items:center;justify-content:center;position:absolute!important;top:24%!important;left:-5px!important;right:auto!important;width:36px!important;height:34px!important;z-index:75!important;background:#201c3df5!important;border:1px solid #da8a6d!important;border-radius:2px!important;overflow:visible!important;pointer-events:none}
.card .taunt-crest img{width:30px!important;height:21px!important;object-fit:contain}
.card .taunt-crest::before{content:'嘲諷';position:absolute;bottom:0;left:0;right:0;text-align:center;color:#f2f1fa;font:700 11px/14px Arial}
.card:has(.taunt-crest){outline:2px double #da8a6d;outline-offset:2px}
#forecastTitle{white-space:normal!important;font-size:15px!important;line-height:20px!important;color:#e9bd74}
#forecastCompare strong{display:none!important}
#forecastCompare span{display:block;font:400 13px/18px Arial;color:#f2f1fa}
#forecastPanel .content-sheet{position:relative;height:214px!important;max-height:214px!important;grid-template-rows:44px 18px 64px 48px!important;gap:2px!important}
#forecastRounds .forecast-round:not(.forecast-locked) button:disabled{opacity:1!important;filter:none!important;background:#302544!important;color:#f2f1fa!important}
#forecastRounds .forecast-locked button{opacity:.5!important;filter:grayscale(1)!important}
#forecastRounds .r12-selected{border:2px solid #e9bd74!important}
#forecastLink{position:absolute;top:-23px;right:8px;color:#e9bd74;font:700 12px/20px Arial;pointer-events:none;background:#201c3de8;padding:0 5px;border-bottom:2px solid #e9bd74}
#forecastRoute{position:fixed;inset:0;width:100vw;height:100dvh;pointer-events:none;z-index:210;overflow:visible}
#forecastHoldCue{display:none;position:fixed;left:calc(var(--r12-ring-x) - 90px);right:auto;top:calc(var(--r12-ring-y) - 24px);width:250px;text-align:center;background:#201c3df5;color:#f2f1fa;font:700 13px/18px Arial;pointer-events:none}
#forecastPanel[data-gesture=holding] #forecastHoldCue{display:block}
#forecastPanel[data-gesture=holding] #forecastRule{visibility:hidden}
#forecastRounds .r11-hold-ring{position:fixed!important;right:auto!important;top:var(--r12-ring-y)!important;left:var(--r12-ring-x)!important;bottom:auto!important;width:60px!important;height:60px!important;mask:radial-gradient(farthest-side,transparent calc(100% - 7px),#000 0)!important;animation:none!important;background:conic-gradient(#e9bd74 var(--r12-hold,0deg),#f2f1fa55 0)!important;z-index:300}
#moenTideMeter{left:178px!important;right:12px!important;font:400 12px/17px Arial!important;padding:5px!important;gap:3px!important;border-left:3px solid #b6a0ec}
#moenTideMeter strong{font-size:13px!important;line-height:18px!important}
#moenTideMeter progress{height:9px;background:linear-gradient(90deg,#201c3d 32%,#e9bd74 32%,#e9bd74 34%,#201c3d 34%)}
body[data-content-id=moen] .r6-moen-stage{width:162px!important;height:168px!important}
body[data-content-id=moen] #moenBond{display:none!important}
body[data-content-id=moen] #enemyField{justify-content:center!important;padding-right:0!important}
body[data-content-id=moen] #moenPressure{background:#201c3de8}
#r12ResultReceipt{border-top:2px solid #da8a6d;padding-top:8px}
#r12ResultReceipt h3{font:700 18px/24px Georgia,'Microsoft JhengHei',serif;color:#e9bd74;margin:0 0 8px}
#r12ResultReceipt p{margin:3px 0;font:400 14px/21px Arial;color:#f2f1fa}
.r12-result-metrics{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.r12-result-metrics>div{background:#10152dd9;border-left:2px solid #b6a0ec;padding:7px}
.r12-result-metrics span,.r12-result-metrics strong{display:block;font:400 12px/18px Arial}
.r12-result-metrics strong{font:700 16px/22px Arial;color:#f2f1fa}
body[data-content-id=moen] #contentResult .content-result-art[src*='content-r12']{height:auto!important;max-height:230px!important;object-fit:cover;aspect-ratio:3/2}
#r12StepReceipt{position:absolute;left:4px;right:78px;bottom:0;color:#e9bd74;background:#201c3deb;border-left:2px solid #da8a6d;padding:5px;font:700 13px/19px Arial;white-space:normal;z-index:8}
.r75-tide-channel:has(#r12StepReceipt)>.r6-board-signal:not(.r6-hand-signal){visibility:hidden}
#r12SpellRules{position:absolute;left:140px;right:16px;bottom:-160px;height:145px;box-sizing:border-box;padding:10px;border:1px solid #9c766f;background:#201c3de6;font:400 14px/22px Arial}
#r12SpellRules strong,#r12SpellRules span{display:block;margin-bottom:5px}
@media(max-height:650px) and (max-width:599px){
 #forecastPanel .content-sheet{height:126px!important;max-height:126px!important;grid-template-rows:44px 44px 26px!important}
 #forecastTitle{font-size:12px!important;line-height:15px!important}
 #forecastCompare span{font:400 11px/12px Arial}
 #forecastLink{top:-20px;font-size:11px}
 #forecastHoldCue{font-size:11px;line-height:16px}
 #moenTideMeter{left:calc(50% + 2px)!important;right:6px!important;top:170px!important;font-size:10px!important;line-height:13px!important;padding:3px!important}
 #moenTideMeter strong{font-size:10px!important;line-height:13px!important}
 body[data-content-id=moen] .r6-moen-stage{width:90px!important;height:90px!important}
 #r12SpellRules{left:8px;right:8px;bottom:-55px;height:53px;padding:3px;font-size:10px;line-height:13px}
 #r12SpellRules strong{display:none}#r12SpellRules span{margin:0}
 #r12StepReceipt{font-size:11px;line-height:14px;padding:2px;right:48px}
 #r12ResultReceipt h3{font-size:15px;line-height:19px}#r12ResultReceipt p{font-size:12px;line-height:17px}
 .r12-result-metrics>div{padding:3px}.r12-result-metrics strong{font-size:13px;line-height:18px}
 #contentResultText{font-size:12px!important;line-height:18px!important}
 #contentResult .content-result-art[src*='content-r12']{max-height:140px!important}
}
@media(max-height:650px) and (min-width:600px){#moenTideMeter{left:calc(50% - 92px)!important;right:auto!important;width:184px!important;font-size:10px!important;line-height:13px!important}#r12SpellRules{display:none}}
@media(max-height:650px) and (min-width:600px){#forecastHoldCue{position:absolute;top:54px;left:8px;right:8px;width:auto}}
@media(prefers-reduced-motion:reduce){#forecastRounds .r11-hold-ring{animation:none!important}}
@media(max-height:650px) and (min-width:600px){
 #contentResult .content-sheet{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)!important;grid-template-rows:44px 20px minmax(0,1fr) auto 44px!important;width:min(900px,calc(100vw - 24px))!important;height:calc(100dvh - 24px)!important;padding:8px!important;gap:4px!important;box-sizing:border-box;overflow:hidden!important}
 #contentResult header{grid-column:1/-1;grid-row:1}
 #contentResultName{grid-column:1;grid-row:2;margin:0!important;font-size:13px!important;line-height:20px!important}
 #r12ResultReceipt{grid-column:1;grid-row:3;min-height:0;padding-top:4px;overflow:auto}
 #r12ResultReceipt h3{font-size:15px;line-height:20px;margin-bottom:3px}
 #r12ResultReceipt p{font-size:12px;line-height:17px;margin:2px 0}
 #contentResult #contentRecap:not([hidden]){grid-column:2;grid-row:2/4;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;min-height:0;overflow:hidden}
 #contentResult #contentRecap:has(figure:nth-child(3)){grid-template-columns:repeat(4,minmax(0,1fr))!important}
 #contentResult #contentRecap figure{margin:0;min-height:0}
 #contentResult #contentRecap img{width:100%;height:100px!important;max-height:100px!important;object-fit:cover}
 #contentResult #contentRecap figcaption{font-size:11px!important;line-height:15px!important;padding:3px!important}
 #contentResult .content-result-art:not([hidden]){display:block!important;grid-column:2;grid-row:2/4;width:100%;height:100%!important;min-height:0;max-height:none!important;object-fit:contain!important}
 body[data-content-id=moen] #contentResult .content-result-art:not([hidden]){height:100%!important;max-height:none!important;object-fit:contain!important}
 #contentResultText{grid-column:1/-1;grid-row:4;margin:0!important;font-size:12px!important;line-height:17px!important}
 #contentResult footer{grid-column:1/-1;grid-row:5;margin:0!important}
 #contentResult button{min-height:44px!important;box-sizing:border-box}
 .r12-result-metrics>div{padding:4px}.r12-result-metrics strong{font-size:13px;line-height:18px}
}
@media(max-height:650px) and (max-width:599px){
 #contentResult .content-sheet{padding:8px!important;gap:4px!important;max-height:calc(100dvh - 16px)!important}
 #contentResultName{margin:0!important;font-size:13px!important;line-height:19px!important}
 #r12ResultReceipt{padding-top:4px}#r12ResultReceipt h3{margin-bottom:3px}
 #contentResult #contentRecap img{height:90px!important;max-height:90px!important;object-fit:cover}
 #contentResult #contentRecap figcaption{font-size:11px!important;line-height:14px!important;padding:3px!important}
 #contentResult #contentRecap:has(figure:nth-child(3)){grid-template-columns:repeat(4,minmax(0,1fr))!important}
 #contentResult #contentRecap:has(figure:nth-child(3)) img{height:64px!important;max-height:64px!important}
 #contentResult #contentRecap:has(figure:nth-child(3)) figcaption{font-size:10px!important;line-height:12px!important}
 body[data-content-id=moen] #contentResult .content-result-art[src*='content-r12']{max-height:140px!important}
 body[data-content-id=moen] #contentResult .content-sheet{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:44px 20px auto minmax(70px,1fr) minmax(34px,76px) 44px;height:calc(100dvh - 16px)!important;overflow:hidden!important}
 body[data-content-id=moen] #contentResult header{grid-row:1}
 body[data-content-id=moen] #contentResultName{grid-row:2}
 body[data-content-id=moen] #r12ResultReceipt{grid-row:3}
 body[data-content-id=moen] #contentResult .content-result-art:not([hidden]){grid-row:4;min-height:0;height:100%!important;max-height:none!important;object-fit:contain!important}
 body[data-content-id=moen] #contentResultText{grid-row:5;min-height:0;overflow:auto;margin:0!important}
 body[data-content-id=moen] #contentResult footer{grid-row:6}
}
