.mode-chip b{font-weight:600}.mode-chip:hover{border-color:#ead39a;filter:brightness(1.15)}.turn-timer{font:700 14px 'Segoe UI',sans-serif;color:#ffdd88;padding:4px 10px;border:1px solid #be934e99;border-radius:6px;background:#241524aa}
.hand-panel{margin-top:24px;text-align:left;padding:23px;scroll-margin-top:12px}.hand-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.hand-heading h2{margin-bottom:5px;font-size:22px}.hand-heading p{font:12px/1.5 'Segoe UI',sans-serif;color:#d6c7df;margin:0;text-wrap:balance}.hand-heading .main-action{font-size:12px;flex-shrink:0;padding:11px 16px}.hand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:12px;position:relative;z-index:1}.hand-card{padding:4px 4px 7px;border:1px solid #ae8c4a70;background:#150f1ddd;border-radius:7px;min-width:0;transition:transform .15s,border-color .15s}.hand-card img{display:block;width:100%;aspect-ratio:822/1122;object-fit:contain;border-radius:3px}.hand-card>span{display:block;font:600 9px/1.4 var(--title);margin:5px 0 3px;min-height:25px;text-wrap:balance}.hand-card small{display:block;font:9px 'Segoe UI',sans-serif;color:#e8c786}.hand-card.selected{border-color:#ffd985;box-shadow:0 0 0 2px #d7a344,0 0 16px #e8ac4955;transform:translateY(-4px)}.hand-card:not(:disabled):hover{border-color:#ffda93;transform:translateY(-3px)}.hand-card:disabled{opacity:.44}.slot-card{height:40px;width:31px;object-fit:contain;cursor:zoom-in}.equipment-slot.active{min-height:63px}.dice-rack{margin:0 auto 9px;min-height:61px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.dice-faces{display:flex;gap:7px}.die{font:42px/1 Georgia,serif;color:#fff0ca;filter:drop-shadow(0 2px 4px #000);animation:die-in .32s ease-out}.dice-equation{font:12px 'Segoe UI',sans-serif;color:#e2d2e9}.dice-equation b{color:#ffdf89}.dice-wait{font:11px var(--title);color:#dbc8ac}.power-options{display:grid;gap:10px;margin:20px 0}.power-options button{border:1px solid #c89e65;background:linear-gradient(#46293f,#201326);padding:15px;text-align:left;border-radius:8px}.power-options strong{font:600 15px var(--title);display:block;color:#ffdda2;margin-bottom:5px}.power-options span{font:12px/1.5 'Segoe UI',sans-serif;color:#e1cfe6}.checkbox-label{display:flex;align-items:center;gap:10px}.checkbox-label input{width:18px;height:18px;margin:0;accent-color:#c98743}
@keyframes die-in{from{transform:rotate(-25deg) scale(.7);opacity:.25}to{transform:rotate(0) scale(1);opacity:1}}
.hand-heading{position:sticky;top:0;z-index:3;background:#17101cf5;border-bottom:1px solid #ad884950;padding:10px 0 12px}.hand-heading>div{flex:1;min-width:0}.counter-open{display:block;margin:9px auto 0;color:#f6da9c}
.table-panel{overflow:clip}
@media(max-width:520px){.mode-chip{max-width:100%;flex-wrap:wrap;justify-content:center}.mode-chip b{font-size:9px}.mode-chip span{font-size:8px}.turn-timer{font-size:11px;padding:3px 6px}.hand-panel{padding:18px 12px}.hand-heading{flex-wrap:wrap;gap:10px}.hand-heading h2{font-size:17px}.hand-heading p{font-size:10px}.hand-heading .main-action{font-size:10px;padding:9px 13px;min-height:36px}.hand-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.hand-card{padding:3px}.hand-card>span{font-size:7px;min-height:22px}.hand-card small{font-size:8px}.die{font-size:32px}.dice-equation{font-size:10px}.slot-card{height:30px;width:23px}.equipment-slot.active{min-height:51px}.rules-list{font-size:12px}}
@media(prefers-reduced-motion:reduce){.die,.hand-card{animation:none;transition:none}}
@media(max-width:520px){.hand-heading>div{flex-basis:100%}.hand-heading .main-action{margin-left:auto}}

/* A single combat D12, using numbers 1–12 rather than six-face glyphs. */
.die-d12{display:grid;place-items:center;position:relative;width:54px;height:60px;box-sizing:border-box;border:1px solid #f0c477;border-radius:12px;background:radial-gradient(ellipse at 35% 15%,#7c447d,#251526 70%);box-shadow:inset 0 0 0 3px #d7ad6526,0 3px 9px #0006;color:#ffe6a4;font:700 27px/1 Georgia,serif}
.die-d12 b{font:inherit;margin-top:-6px}.die-d12 small{position:absolute;bottom:6px;font:700 9px/1 system-ui,sans-serif;letter-spacing:.12em;color:#e6cbdc}.dice-legacy{font:12px/1.4 system-ui,sans-serif;color:#e7d5c0}
@media(max-width:520px){.die-d12{width:46px;height:52px;font-size:23px}}
