/* R94: Coin Battle remains the original color reference. Do not override its
   choices, MAX/+100/+10/+1, library cards, hero or wallet action buttons. */
/* Match the original Coin participation action, including disabled opacity. */
.db-overlay .db-form>.db-action,.sol-battle-overlay .sb-form>.sb-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;height:auto;padding:12px 18px;border:0!important;border-radius:28px!important;background:#76f1ce!important;color:#241137!important;font-family:inherit;font-size:16px!important;font-weight:700!important;line-height:1.35;white-space:normal;box-shadow:none!important;transform:none!important;opacity:1;filter:none}
.db-overlay .db-form>.db-action:hover:enabled,.sol-battle-overlay .sb-form>.sb-action:hover:enabled{background:#42dcbb!important;color:#241137!important;filter:none}
.db-overlay .db-form>.db-action:disabled,.sol-battle-overlay .sb-form>.sb-action:disabled{background:#76f1ce!important;color:#241137!important;filter:none;opacity:.55;cursor:default}
/* SOL directions reuse Coin heads/tails surfaces and selected highlights. */
.sol-battle-overlay .sb-choices button[data-sb-side]{background:#d5f5e9!important;color:#194d3c!important;border:0!important;border-radius:999px!important;box-shadow:none!important;outline:0!important;transform:none!important}
.sol-battle-overlay .sb-choices button[data-sb-side=down]{background:#eadbf8!important;color:#5e2e84!important}
.sol-battle-overlay .sb-choices button[data-sb-side=up][aria-pressed=true]{box-shadow:inset 0 0 0 2px #22b78d,0 0 10px #39dcaf24!important}
.sol-battle-overlay .sb-choices button[data-sb-side=down][aria-pressed=true]{box-shadow:inset 0 0 0 2px #8b3acd,0 0 10px #8b3acd24!important}
.sol-battle-overlay .sb-choices button[data-sb-side=up]:hover:enabled{background:#39d8ac!important;color:#123f31!important;filter:brightness(.97)}
.sol-battle-overlay .sb-choices button[data-sb-side=down]:hover:enabled{background:#8b3acd!important;color:#fff!important;filter:brightness(.97)}
 .sol-battle-overlay .sb-choices button:disabled{opacity:1}
/* Dice keeps its original rounded rectangle; only match Coin's mint states. */
.db-overlay .db-choices button[data-db-side]{background:#d5f5e9!important;color:#194d3c!important;border-radius:14px!important;box-shadow:none!important}
.db-overlay .db-choices button[data-db-side][aria-pressed=true]{box-shadow:inset 0 0 0 2px #22b78d,0 0 10px #39dcaf24!important}
.db-overlay .db-choices button[data-db-side]:hover:enabled{background:#39d8ac!important;color:#123f31!important;filter:brightness(.97)}

.db-overlay .db-choices button:disabled{opacity:1}

/* Equal outer insets and consistent spacing; mobile uses a single 16px inset. */
.cb-overlay .cb-dialog header,.db-overlay .db-dialog header,.sol-battle-overlay .sb-dialog header{padding:24px;height:auto;min-height:0}
.cb-overlay .cb-scroll,.db-overlay .db-scroll,.sol-battle-overlay .sb-scroll{padding:24px}
.cb-overlay .cb-form,.db-overlay .db-form,.sol-battle-overlay .sb-form{gap:16px}
.cb-overlay .battle-stake-row,.db-overlay .battle-stake-row,.sol-battle-overlay .battle-stake-row{margin-top:0}
.cb-overlay .cb-dialog details,.db-overlay .db-dialog details,.sol-battle-overlay .sb-dialog details{margin-top:16px;padding:16px}
.sol-battle-overlay .sol-chart-panel{padding:16px;border:0}.sol-battle-overlay .sol-chart-overlay{padding:0}
.sol-battle-overlay .sol-round-clocks{margin:0 0 16px}.sol-battle-overlay .sol-source{margin:0 0 16px}
.sol-error-overlay .sol-fixed-dialog{padding:24px}
@media(max-width:600px){.cb-overlay .cb-dialog header,.db-overlay .db-dialog header,.sol-battle-overlay .sb-dialog header,.cb-overlay .cb-scroll,.db-overlay .db-scroll,.sol-battle-overlay .sb-scroll{padding:16px}.sol-battle-overlay .sol-chart-panel{padding:12px}}

/* R95: center both the payout label and amount vertically inside the box. */
.cb-overlay .cb-estimate,.db-overlay .db-estimate,.sol-battle-overlay .sb-estimate{align-items:center}
.cb-overlay .cb-estimate>span,.db-overlay .db-estimate>span,.sol-battle-overlay .sb-estimate>span,.cb-overlay .cb-estimate>strong,.db-overlay .db-estimate>strong,.sol-battle-overlay .sb-estimate>strong{align-self:center}

/* R119: scope effects to battle choices and round numbers only. */
.battle-round-badge{display:inline-block;position:relative;isolation:isolate;border:0!important;border-radius:999px;padding:3px 9px;background:#ede2fa;color:#512078;font-size:1.08em;font-weight:800;line-height:1.25;white-space:nowrap;vertical-align:middle}
.battle-round-badge.is-active:before{content:"";position:absolute;inset:0;border-radius:inherit;background:#d9c2f3;z-index:-1;animation:battle-round-light 4s ease-in-out infinite}
@keyframes battle-round-light{0%,100%{opacity:0}50%{opacity:.55}}
[data-cb-side],[data-db-side],[data-sb-side]{position:relative;isolation:isolate;overflow:hidden}
[data-cb-side]:after,[data-db-side]:after,[data-sb-side]:after{content:"";pointer-events:none;position:absolute;inset:0;border-radius:inherit;background:radial-gradient(ellipse at center,rgba(255,255,255,.3),transparent 75%);animation:battle-round-light 4s ease-in-out infinite}
.battle-history-result{display:block;font-size:1em;font-weight:800}.battle-history-result.is-win{color:#087f67}.battle-history-result.is-lose{color:#6e438a}
.sol-result-overlay .sol-reveal-digits{color:#a526f4!important;font-weight:850}
.sol-result-countdown{position:absolute;right:65px;top:27px;font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;color:#6c3197}
.sol-reveal-outcome{display:flex!important;align-items:center;justify-content:space-between;gap:14px;min-height:68px}
.sol-reveal-outcome h3,.sol-reveal-outcome [data-sol-outcome-direction]{margin:0;font-size:clamp(24px,5vw,36px);font-weight:850}
.sol-reveal-outcome [data-sol-outcome-direction]{color:#66248f}
.sol-reveal-money>div{min-height:116px!important;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.sol-reveal-money>div>span{font-size:15px!important;font-weight:700}
.sol-reveal-money [data-sol-reveal-payout]{font-size:clamp(22px,5vw,32px)!important;text-align:right}
.sol-stake-breakdown{display:grid!important;gap:5px;font-size:18px!important;width:100%;font-weight:750}
.sol-stake-breakdown span{display:flex;align-items:center;justify-content:space-between;gap:12px}.sol-stake-breakdown strong{font-size:inherit;text-align:right}
.battle-result-overlay{position:fixed;inset:0;z-index:10050;background:#21162f88;display:grid;place-items:center;padding:16px}.battle-result-overlay .sol-fixed-dialog{position:relative;width:min(560px,100%);max-height:90dvh;overflow:auto;background:#fdfbff;border-radius:25px;padding:26px;color:#301840}.battle-result-overlay h2{font-size:22px;padding-right:100px}.battle-result-overlay .sol-reveal-money{display:grid;grid-template-columns:1fr 1fr;gap:12px}.battle-result-overlay .sol-reveal-money>div{background:#d5f4e9;border-radius:12px;padding:14px}.battle-result-overlay .sol-reveal-money>div+div{background:#e9daf6}.battle-popup-symbol{text-align:center;font-size:64px;line-height:1.4;min-height:90px}.battle-result-overlay .sol-dialog-close{position:absolute;right:20px;top:18px}.battle-result-overlay .sol-reveal-outcome{margin:12px 0}
@media(prefers-reduced-motion:reduce){.battle-round-badge.is-active:before,[data-cb-side]:after,[data-db-side]:after,[data-sb-side]:after{animation:none;opacity:0}}
@media(max-width:380px){.sol-reveal-money>div{padding:10px!important}.sol-stake-breakdown{font-size:15px!important}.sol-reveal-outcome h3,.sol-reveal-outcome [data-sol-outcome-direction]{font-size:24px}.battle-round-badge{padding:2px 6px}}

.sol-result-overlay .sol-reveal-outcome,.battle-result-overlay .sol-reveal-outcome{justify-content:space-between;gap:12px;height:76px;min-height:76px}
.sol-result-overlay .sol-reveal-money,.battle-result-overlay .sol-reveal-money{height:auto;min-height:116px}
.sol-result-overlay .sol-reveal-money>div,.battle-result-overlay .sol-reveal-money>div{display:flex;flex-direction:column;justify-content:space-between}
.sol-result-overlay .sol-reveal-money>div>span,.battle-result-overlay .sol-reveal-money>div>span{font-size:15px;font-weight:750}
.sol-result-overlay .sol-reveal-outcome [data-sol-outcome-direction],.battle-result-overlay [data-battle-direction]{font-size:clamp(24px,5vw,36px);font-weight:850;white-space:nowrap}
.sol-result-overlay .sol-reveal-outcome [data-sol-outcome],.battle-result-overlay [data-battle-outcome]{font-size:clamp(24px,5vw,36px);text-align:right}
.sol-result-overlay .sol-fixed-dialog h2{padding-right:98px;margin-right:0}
@media(max-width:420px){.sol-result-countdown{right:52px;top:25px;font-size:18px}.sol-result-overlay .sol-fixed-dialog h2{padding-right:88px;font-size:17px}}

.battle-popup-symbol{height:130px;display:flex;align-items:center;justify-content:center;perspective:600px}.battle-popup-symbol .pp-coin-object{position:relative;width:100px;height:100px}.battle-popup-symbol .pp-coin-art{width:100px;height:100px;display:block}.battle-popup-symbol .pp-coin-back,.battle-popup-symbol .pp-coin-edge{display:none}.battle-popup-symbol.is-rolling .pp-coin-object{animation:battle119-flip .7s linear infinite}.battle-popup-symbol.is-rolling .dice-model{animation:battle119-die 1s ease-in-out infinite}@keyframes battle119-flip{to{transform:rotateY(360deg)}}@keyframes battle119-die{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}@media(prefers-reduced-motion:reduce){.battle-popup-symbol *{animation:none!important}}

/* R120: targeted labels and neutral system note. */
.sol-battle-overlay .sol-entry-round-label{margin:10px 0 8px;font-size:13px;line-height:1.5;text-align:left}
.sol-reference-tag{display:flex;align-items:center;gap:4px;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important}
.sol-reference-tag .sol-reference-name,.sol-reference-tag .battle-round-badge{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border:0;border-radius:999px;font:700 10px/1.3 Arial,sans-serif}
.sol-reference-tag .sol-reference-name{background:#7332b3;color:#fff}
.sol-reference-tag .battle-round-badge{background:#eee5f8;color:#512175;animation:none}
.battle-stat-line .battle-system-note{font:inherit;font-weight:400;color:inherit;background:none;border:0;padding:0}
input[inputmode="decimal"]::placeholder,#promotionPurchaseQuantity::placeholder{color:#8b8b93;opacity:1;font-weight:400}

.sol-result-overlay .sol-result-countdown{font-size:clamp(36px,7vw,48px);line-height:1;font-weight:800;min-width:2ch;text-align:center;font-variant-numeric:tabular-nums}

.sol-result-overlay .sol-reveal-outcome,.battle-result-overlay .sol-reveal-outcome{justify-content:center;gap:clamp(24px,6vw,48px)}
.sol-result-overlay .sol-reveal-outcome [data-sol-outcome],.battle-result-overlay [data-battle-outcome]{text-align:center}
[data-sol-outcome-direction]:empty,[data-battle-direction]:empty{display:none}
.sol-result-overlay .sol-stake-breakdown>span{gap:6px}
.sol-result-overlay .sol-stake-breakdown>span>strong{font-size:clamp(20px,4vw,26px);font-weight:850;white-space:nowrap}

.sol-result-overlay .sol-stake-breakdown>span{min-height:30px;line-height:1.15}
.sol-result-overlay .sol-stake-breakdown>span>strong{display:flex;align-items:baseline;justify-content:flex-end;gap:4px}
.sol-result-overlay .sol-stake-breakdown .sol-stake-value{font-size:inherit;line-height:inherit;font-weight:inherit;display:inline}
.sol-result-overlay .sol-stake-breakdown>span>strong>small{font-size:11px;line-height:1;font-weight:400}
.sol-result-overlay .sol-reveal-money>div:last-child{gap:0}
.sol-result-overlay .sol-reveal-money [data-sol-reveal-payout]{flex:1;display:flex;align-items:center;justify-content:flex-end;align-self:stretch;line-height:1.2}
/* Content sets the height; both cells stretch to the same row height. */
.sol-result-overlay .sol-reveal-money{height:auto;min-height:0;align-items:stretch}
.sol-result-overlay .sol-reveal-money>div{height:auto;min-height:0!important;padding:12px!important;gap:10px}
.sol-result-overlay .sol-reveal-money>div:last-child{gap:0}

/* R120 result-only: center the header countdown and final pop-art pair. */
.sol-result-overlay .sol-result-heading{position:relative;padding-right:94px;min-height:94px;display:flex;flex-direction:column;justify-content:center}
.sol-result-overlay .sol-result-heading h2{padding-right:0;margin-right:0}
.sol-result-overlay .sol-result-heading .sol-result-countdown{right:12px;top:50%;transform:translateY(-50%);font-size:clamp(40px,9vw,52px);line-height:1;min-width:2ch}
.sol-result-overlay .sol-result-heading .sol-reveal-round{height:auto;min-height:52px}
.sol-result-overlay .sol-reveal-price-panel .sol-reveal-digits{font-size:clamp(32px,8.6vw,50px);font-size:min(clamp(32px,8.6vw,50px),calc(100cqw / var(--sol-digit-count,6) / .61));color:#9825e8!important}
.sol-result-overlay[data-phase=final] .sol-reveal-outcome{justify-content:center;gap:clamp(28px,7vw,48px)}
.sol-result-overlay[data-phase=final] .sol-reveal-outcome [data-sol-outcome-direction],.sol-result-overlay[data-phase=final] .sol-reveal-outcome [data-sol-outcome]{flex:0 1 auto;width:auto;font-size:clamp(28px,7vw,42px);font-weight:950;line-height:1.2;letter-spacing:-.035em;text-align:center;color:#9825e8;-webkit-text-stroke:1px #542075;paint-order:stroke fill;text-shadow:2px 2px 0 #fdfbff,4px 4px 0 #d3a8ed}
.sol-result-overlay[data-phase=final] .sol-reveal-outcome [data-sol-outcome]{color:#552077;text-shadow:2px 2px 0 #fdfbff,4px 4px 0 #c4eedf}
@media(max-width:380px){.sol-result-overlay .sol-result-heading{padding-right:76px}.sol-result-overlay .sol-result-heading .sol-result-countdown{right:4px;font-size:40px}.sol-result-overlay .sol-result-heading .sol-reveal-round>b{font-size:17px}.sol-result-overlay .sol-result-heading .sol-reveal-round>span{font-size:10px}}

/* Full-height glyph cells: ascenders and descenders have breathing room. */
.sol-result-overlay .sol-reveal-price-panel .sol-reveal-stage{grid-template-rows:22px 78px 20px}
.sol-result-overlay .sol-reveal-price-panel .sol-reveal-digits{height:78px;overflow:visible;align-items:center}
.sol-result-overlay .sol-reveal-digits>span{height:1.25em;line-height:1.25}
.sol-result-overlay .sol-digit-strip{height:13.75em}
.sol-result-overlay .sol-digit-strip>span{flex:0 0 1.25em;height:1.25em;line-height:1.25}

/* R122 requested marker, SYS type size, and result countdown alignment. */
.sol-reference-tag .battle-round-badge{background:#39d8ac;color:#000}
.battle-stat-line .battle-system-note{font-size:.85em}
.sol-result-overlay .sol-result-heading .sol-result-countdown{right:clamp(48px,17vw,106px)}
.sol-result-overlay[data-phase=final] .sol-reveal-outcome [data-sol-outcome-direction],.sol-result-overlay[data-phase=final] .sol-reveal-outcome [data-sol-outcome]{font-style:italic;letter-spacing:-.05em;text-shadow:2px 2px 0 #fff,4px 4px 0 #bd83e0,5px 5px 0 #562479}

.sol-result-overlay .sol-result-heading .sol-result-countdown{font-style:italic;font-weight:950;color:#9825e8;-webkit-text-stroke:1px #542075;paint-order:stroke fill;text-shadow:2px 2px 0 #fff,4px 4px 0 #d3a8ed;letter-spacing:-.04em}

/* Keep the pop-art countdown in its reserved header area on narrow screens. */
.sol-result-overlay .sol-result-heading{padding-right:190px}
@media(max-width:520px){.sol-result-overlay .sol-result-heading{padding-right:100px}.sol-result-overlay .sol-result-heading .sol-result-countdown{right:12px}}
@media(max-width:380px){.sol-result-overlay .sol-result-heading{padding-right:80px}.sol-result-overlay .sol-result-heading .sol-result-countdown{right:4px}}

/* R123 upright pop-art and unclipped, upright changing price digits. */
.sol-result-overlay .sol-result-heading .sol-result-countdown{font-style:normal;color:#000;-webkit-text-stroke:1px #000;text-shadow:2px 2px 0 #fff,4px 4px 0 #777;letter-spacing:0}
.sol-result-overlay[data-phase=final] .sol-reveal-outcome [data-sol-outcome-direction]{font-style:normal;color:#1766e8;-webkit-text-stroke:1px #16386e;text-shadow:2px 2px 0 #fff,4px 4px 0 #16386e;letter-spacing:0}
.sol-result-overlay[data-phase=final] .sol-reveal-outcome [data-sol-outcome]{font-style:normal;color:#e74839;-webkit-text-stroke:1px #79231b;text-shadow:2px 2px 0 #fff,4px 4px 0 #79231b;letter-spacing:0}
.sol-result-overlay .sol-reveal-digits{overflow:visible;height:auto;min-height:1.7em;line-height:1.3;padding:.2em .08em .24em;box-sizing:border-box;color:#9825ed;text-shadow:1px 1px 0 #e9c5ff,2px 2px 0 #6c1aad,3px 3px 0 #5b158f;align-items:center}
.sol-result-overlay .sol-reveal-stage{overflow:visible;min-width:0}
.sol-number-live,.sol-number-mark{display:inline-block;line-height:1.3;transform-origin:50% 50%;backface-visibility:visible;flex:0 0 auto}
@media(prefers-reduced-motion:reduce){.sol-number-live{transform:none!important}}

.sol-result-overlay .sol-reveal-price-panel .sol-reveal-stage{grid-template-rows:22px minmax(92px,auto) 20px}
.sol-result-overlay .sol-reveal-price-panel .sol-reveal-digits{height:auto;min-height:92px;font-weight:900;font-style:normal;line-height:1.35;padding:12px 4px 15px;overflow:visible}
.sol-result-overlay .sol-reveal-digits>span{height:auto;line-height:1.35;overflow:visible}

.sol-result-overlay .sol-reveal-digits,.sol-result-overlay .sol-result-countdown{font-family:Arial,Helvetica,sans-serif;font-variant-numeric:tabular-nums;font-weight:900}
.sol-result-overlay .sol-number-live{width:.64em;text-align:center}
