/* Scoped Dice presentation; no shared Grimora or economy selectors. */
#root {height:calc(100% - var(--dice-safe-top, env(safe-area-inset-top, 0px)))!important;max-height:calc(844px - var(--dice-safe-top, env(safe-area-inset-top, 0px)))!important;margin-top:var(--dice-safe-top, env(safe-area-inset-top, 0px))}
.dice-match,.dice-tasks,.dice-modes {letter-spacing:0!important;font-variant-numeric:tabular-nums}
.dice-match *,.dice-tasks *,.dice-modes * {letter-spacing:0!important}
.dice-match button:focus-visible,.dice-tasks button:focus-visible,.dice-modes button:focus-visible {outline:2px solid #fff;outline-offset:2px}
.dice-match button:disabled {cursor:default}
.dice-tasks {background:#080c14!important}
.match-scoreboard {display:grid;grid-template-columns:1fr 90px 1fr;gap:8px;padding:14px 14px 6px;position:relative;z-index:1;flex-shrink:0}
.match-player {display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-bottom:3px solid transparent;background:#ffffff05;border-radius:8px 8px 0 0;color:#65dff4;min-width:0}
.match-player.opponent {color:#ff8da8}
.match-player[data-active=true] {border-bottom-color:currentColor;background:#ffffff0d}
.match-player>span {font-size:13px;font-weight:700}
.match-player>strong {font-size:34px;line-height:1.1}
.match-player>small {font-size:12px;white-space:nowrap;color:#dce3ed}
.match-round {display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;color:#a6afc0;text-align:center}
.match-round span {font-size:12px}.match-round b {font-size:17px;color:#fff}.match-round small {font-size:10px;line-height:1.3}
.match-turn {height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:750;color:#65dff4;position:relative;z-index:1}
.dice-match[data-phase=ai] .match-turn {color:#ff8da8}
.dice-match[data-phase=round-result] .match-turn {color:#ffdc78}
.match-table {min-height:130px}
.match-table>div {gap:8px!important;width:100%}
.match-table .g3d-slot {width:calc((100% - 16px)/2);max-width:180px;height:auto;aspect-ratio:1;flex:none}
.match-table .g3d-canvas {inset:0;width:100%;height:100%}
.match-actions button {min-height:48px;border-radius:8px!important;font-size:14px!important;animation:none!important}
.match-actions {max-height:52%;overflow-y:auto}
.dice-match:has(.match-payout) .match-table {flex:0 1 120px!important;min-height:100px}
.dice-match:has(.match-payout) .g3d-slot {max-width:100px}
.dice-match:has(.match-payout) .match-actions {flex:1;max-height:none;min-height:0}
.match-actions>div>div:first-child {font-size:24px!important;font-weight:800;color:#ffdc78!important;text-transform:none!important}
.match-payout {padding:12px 0 0;text-align:left}
.payout-label {text-align:center;font-size:13px;color:#bbc4d2}
.payout-value {display:flex;align-items:center;justify-content:center;gap:8px;font-size:34px;font-weight:800;padding:8px 0 12px}
.payout-value img {width:32px;height:32px;object-fit:contain}
.match-payout dl>div {display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid #ffffff12;font-size:13px}
.match-payout dt {color:#aeb8c7}.match-payout dd {font-weight:700}.positive {color:#91e8b0}.negative {color:#ff9fac}
.die-fallback {display:grid;place-items:center;height:100%;font-size:52px;font-weight:800;color:#fff;border:2px solid #65dff4;border-radius:8px;background:#14232a}
.mode-currency {display:flex;gap:4px;padding:4px;margin:4px 14px 14px;border-bottom:1px solid #ffffff20;position:relative;z-index:1}
.mode-currency button {flex:1;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:#9faabe;border-radius:6px;font-size:14px;font-weight:700}
.mode-currency button[aria-pressed=true] {color:#fff;background:#ffffff12}
.mode-currency img {width:23px;height:23px;object-fit:contain}
.mode-card {flex-shrink:0;min-height:114px}
.mode-card>img {width:52px!important;height:52px!important;grid-column:1;grid-row:1}
.mode-card>div:nth-child(2) {grid-column:2;grid-row:1/3}
.mode-card>div:nth-child(2)>div:first-child>div {font-size:15px!important;line-height:1.25!important;text-shadow:none!important}
.mode-card>div:nth-child(3) {grid-column:1;grid-row:2;justify-self:center}
.mode-card>button,.mode-card>div:last-child:not(:nth-child(3)) {grid-column:3;grid-row:1/3;min-width:44px;min-height:44px}
.mode-money>span {white-space:nowrap;gap:6px!important}.mode-money {gap:8px 18px!important;line-height:1.5;font-size:14px!important;margin-top:8px}
.mode-money b {font-size:16px}
.mode-money img {width:18px!important;height:18px!important}
.dice-tasks>div:first-child {margin:0!important;padding:12px 16px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
.dice-tasks>div:nth-child(3) {border-radius:8px!important;background:#ffffff05!important;padding:14px!important}
.task-milestone {background:transparent;min-width:64px;min-height:68px;gap:5px;color:#fff}
.task-milestone>div {animation:none!important;box-shadow:none!important}
.task-milestone>div:last-child {font-size:12px!important;line-height:1.25!important}
.milestone-amount {font-size:12px;font-weight:700;line-height:1.2;color:#dce3ed}
.task-friends {min-height:44px;min-width:80px;padding:8px 12px;background:#162637;border:1px solid #3d6077;border-radius:8px;color:#dbf5ff;font-size:13px;font-weight:700}
.task-friends:hover {background:#233b50}
.task-track {padding-top:4px}
.task-xp-bar {height:12px;background:#253244;border:1px solid #415066;border-radius:4px;overflow:hidden;margin:4px 0 14px}
.task-xp-bar>div {height:100%;background:#37cfe5;border-right:2px solid #b6f6ff;transition:width .35s ease-out}
.task-xp-bar>div[style*="width: 0%"] {border:0}
.task-milestone>div:first-child {background:#182536!important;opacity:1!important;border-color:#425369!important}
.dice-tasks>div:nth-child(3) {padding:10px 14px!important;margin-bottom:6px!important}
.dice-tasks>div:nth-child(3)>div:nth-child(2) {padding-bottom:0!important}
.task-row {flex-shrink:0;min-height:88px}
.task-row>div:first-child {width:40px!important;height:44px!important}
.task-row img {max-width:40px;max-height:44px}
.task-row>div:nth-child(2)>div:first-child {font-size:13px!important;line-height:1.4!important;text-decoration:none!important}
.task-row button {font-size:12px!important;min-width:78px!important;animation:none!important;padding:8px!important}
@media(max-height:680px){.match-scoreboard{padding-top:6px}.match-player{padding:6px 4px}.match-player strong{font-size:28px}.match-table{min-height:110px}.match-actions{padding-top:8px!important;padding-bottom:10px!important}.match-actions>div{padding:0!important}.payout-value{font-size:28px;padding:4px 0}.match-payout{padding-top:4px}}
@media(prefers-reduced-motion:reduce){.dice-match *,.dice-tasks *,.dice-modes *{animation:none!important;transition:none!important}}
