.db-hist {
    display: flex; gap: 6px; margin: -6px -6px 6px; padding: 6px; overflow-x: auto; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.db-hist::-webkit-scrollbar { display: none; }
.db-hist .h {
    flex: none; position: relative; width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
    background: var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}
.db-hist .h.bolt {
    width: auto; padding: 0 9px 0 7px; display: flex; align-items: center; gap: 4px; overflow: hidden;
    background:
        radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.28), transparent 60%),
        linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b0f1a));
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.3), inset 0 0 0 1.5px rgba(255,214,90,.9), 0 0 12px rgba(255,200,60,.45);
}
.db-hist .h.bolt svg {
    width: 10px; height: 15px; flex: none; fill: #ffd84a;
    filter: drop-shadow(0 0 3px rgba(255,214,74,.9)) drop-shadow(0 1px 0 rgba(0,0,0,.35));
}
.db-hist .h.bolt b {
    font-size: 13px; font-weight: 900; letter-spacing: 0; line-height: 1; color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.35), 0 0 6px rgba(255,214,74,.55);
}
.db-hist .h.bolt::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
    transform: translateX(-120%); animation: dbHistShine 3.2s ease-in-out infinite;
}
@keyframes dbHistShine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.db-hist .h.new { animation: dbHistIn .5s var(--ease); }
@keyframes dbHistIn { from { transform: translateX(-12px) scale(.6); opacity: 0; } }

.db-stage, .db-cols, .db-hist, .db-stats {
    --red: #ff3d5e; --red-2: #b8173a;
    --blk: #2b3246; --blk-2: #11151f;
    --grn: #1fe39a; --grn-2: #0b8f5a;
    --volt: #8fd3ff;
}

.db-stage {
    --cell: 76px;
    position: relative; overflow: hidden; height: 440px; border-radius: var(--r-xl);
    background:
        radial-gradient(120% 70% at 50% 0%, #1b2f66 0%, #0c1633 45%, #060a18 100%);
    box-shadow: var(--sh-screen), inset 0 0 0 1px rgba(143,211,255,.12);
    transition: background .8s;
    isolation: isolate;
}
.db-stage::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(90% 60% at 50% 20%, rgba(4,6,16,.2), rgba(2,3,10,.85));
    opacity: 0; transition: opacity .9s;
}
.db-stage[data-phase="strike"]::after { opacity: 1; }
.db-stage[data-phase="spin"]::after { opacity: .55; }
.db-stage[data-storm="1"]::after { background: radial-gradient(90% 60% at 50% 20%, rgba(20,10,40,.35), rgba(2,2,8,.92)); }

.db-sky { position: absolute; inset: 0; z-index: 0; }
.db-sky::before {
    content: ''; position: absolute; inset: 0; opacity: .55;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #cfe3ff, transparent),
        radial-gradient(1.4px 1.4px at 46% 22%, #fff, transparent), radial-gradient(1px 1px at 63% 12%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 78% 26%, #dfeaff, transparent), radial-gradient(1px 1px at 90% 9%, #fff, transparent),
        radial-gradient(1px 1px at 6% 36%, #fff, transparent), radial-gradient(1.2px 1.2px at 94% 38%, #fff, transparent);
    animation: dbTwinkle 5s ease-in-out infinite alternate;
}
@keyframes dbTwinkle { to { opacity: .25; } }
.db-sky i, .db-clouds i {
    position: absolute; border-radius: 50%; filter: blur(18px);
    background: radial-gradient(closest-side, rgba(120,150,220,.55), rgba(60,80,150,.25) 60%, transparent);
    animation: dbDrift 38s linear infinite;
}
.db-sky .c1 { width: 420px; height: 150px; top: 4%; left: -10%; }
.db-sky .c2 { width: 520px; height: 170px; top: 10%; left: 45%; animation-duration: 52s; animation-delay: -20s; }
.db-sky .c3 { width: 360px; height: 120px; top: 26%; left: 15%; animation-duration: 44s; animation-delay: -8s; }
.db-sky .c4 { width: 300px; height: 110px; top: 2%; left: 70%; animation-duration: 60s; animation-delay: -30s; }
@keyframes dbDrift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
.db-sky i { animation-direction: alternate; }

.db-clouds { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 3; pointer-events: none; }
.db-clouds i {
    filter: blur(14px); animation-direction: alternate;
    background: radial-gradient(closest-side, rgba(40,52,96,.95), rgba(28,36,72,.7) 55%, transparent);
}
.db-clouds i:nth-child(1) { width: 300px; height: 120px; left: 2%;  top: 52%; animation-duration: 30s; }
.db-clouds i:nth-child(2) { width: 360px; height: 130px; left: 30%; top: 60%; animation-duration: 36s; animation-delay: -12s; }
.db-clouds i:nth-child(3) { width: 300px; height: 120px; left: 62%; top: 50%; animation-duration: 33s; animation-delay: -5s; }
.db-clouds i:nth-child(4) { width: 240px; height: 90px;  left: 18%; top: 38%; animation-duration: 41s; animation-delay: -22s; opacity: .7; }
.db-clouds i:nth-child(5) { width: 260px; height: 100px; left: 55%; top: 34%; animation-duration: 47s; animation-delay: -17s; opacity: .7; }
.db-stage[data-phase="strike"] .db-clouds i,
.db-stage[data-storm="1"] .db-clouds i { background: radial-gradient(closest-side, rgba(22,26,52,.98), rgba(14,18,40,.8) 55%, transparent); }

.db-lion {
    position: absolute; left: 50%; top: 3%; z-index: 2; width: 250px; height: 250px;
    transform: translate(-50%, 18px) scale(.86); opacity: 0; pointer-events: none;
    transition: opacity .8s, transform 1s var(--ease);
}
.db-lion img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.db-lion .roar {
    filter: grayscale(1) sepia(1) hue-rotate(175deg) saturate(2.4) brightness(1.15) contrast(1.15) drop-shadow(0 0 22px rgba(143,211,255,.9));
    mix-blend-mode: screen; opacity: .78;
    -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
}
.db-lion .storm { opacity: 0; filter: drop-shadow(0 0 22px rgba(143,211,255,.8)); }

.db-stage[data-phase="betting"] .db-lion { opacity: .1; filter: blur(3px); transform: translate(-50%, 30px) scale(.8); }
.db-stage[data-phase="strike"] .db-lion { opacity: 1; transform: translate(-50%, 0) scale(1); }
.db-stage[data-phase="spin"] .db-lion { opacity: .22; transform: translate(-50%, -6px) scale(.96); }
.db-lion.roaring { animation: dbRoar .9s ease-out; }
@keyframes dbRoar {
    0% { filter: none; } 15% { transform: translate(-50%, -4px) scale(1.07); filter: brightness(1.6); }
    30% { transform: translate(calc(-50% + 3px), 0) scale(1.05); } 45% { transform: translate(calc(-50% - 3px), 0) scale(1.05); }
    100% { transform: translate(-50%, 0) scale(1); }
}

.db-stage[data-storm="1"] .db-lion { width: 300px; height: 300px; top: 0; }
.db-stage[data-storm="1"] .db-lion .roar { opacity: 0; }
.db-stage[data-storm="1"] .db-lion .storm { opacity: 1; }

.db-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.db-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #e8f5ff; opacity: 0; mix-blend-mode: screen; }
.db-flash.on { animation: dbFlash .45s ease-out; }
@keyframes dbFlash { 0% { opacity: .75; } 30% { opacity: .15; } 45% { opacity: .5; } 100% { opacity: 0; } }
.db-stage.shake { animation: dbShake .5s; }
@keyframes dbShake {
    10%, 90% { transform: translate(-1px, 1px); } 20%, 80% { transform: translate(3px, -2px); }
    30%, 50%, 70% { transform: translate(-5px, 2px); } 40%, 60% { transform: translate(5px, -1px); }
}

.db-head {
    position: absolute; left: 14px; right: 14px; top: 12px; z-index: 6;
    display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: rgba(214,228,255,.75);
}
.db-head .hash { margin-left: auto; font-family: ui-monospace, monospace; opacity: .6; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-head .rid { font-weight: 800; }
.db-storm-tag {
    padding: 3px 10px; border-radius: 999px; font-weight: 800; color: #fff;
    background: linear-gradient(90deg, #6b4dff, #2b8cff); box-shadow: 0 0 16px rgba(107,77,255,.7);
    animation: dbPulse 1s ease-in-out infinite alternate;
}
@keyframes dbPulse { to { box-shadow: 0 0 26px rgba(143,211,255,.9); } }

.db-center {
    position: absolute; left: 50%; top: 22%; z-index: 6; transform: translateX(-50%);
    display: grid; justify-items: center; gap: 4px; text-align: center; transition: opacity .4s, transform .4s;
}
.db-center .cap { color: rgba(214,228,255,.72); font-weight: 700; letter-spacing: .02em; }
.db-timer {
    font-family: var(--f-display); font-size: 58px; line-height: 1; font-variant-numeric: tabular-nums;
    color: #fff; text-shadow: 0 0 24px rgba(143,211,255,.55);
}
.db-bar { width: 220px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
.db-bar i { display: block; height: 100%; width: 100%; transform-origin: left; border-radius: inherit;
            background: linear-gradient(90deg, #8fd3ff, #4d8dff); box-shadow: 0 0 10px #8fd3ff; }
.db-stage:not([data-phase="betting"]) .db-center { opacity: 0; transform: translate(-50%, -10px); pointer-events: none; }

.db-charges {
    position: absolute; left: 12px; right: 12px; bottom: 150px; z-index: 6;
    display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 26px;
}
.db-charges .ch {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px;
    font-size: 12px; font-weight: 800; color: #fff;
    background: rgba(10,16,36,.72); backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(143,211,255,.45), 0 0 14px rgba(143,211,255,.35);
    animation: dbChIn .45s var(--ease);
}
.db-charges .ch i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.db-charges .ch.hit { background: linear-gradient(90deg, #6b4dff, #2b8cff); animation: dbChIn .45s var(--ease), dbPulse .5s ease-in-out infinite alternate; }
@keyframes dbChIn { from { transform: translateY(8px) scale(.6); opacity: 0; } }

.db-tape {
    position: absolute; left: 0; right: 0; bottom: 34px; height: 104px; z-index: 6;
    background: linear-gradient(180deg, rgba(8,12,28,.3), rgba(8,12,28,.85));
    border-block: 1px solid rgba(143,211,255,.16);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    overflow: hidden;
}
.db-strip { position: absolute; left: 50%; top: 14px; height: var(--cell); display: flex; will-change: transform; }
.db-cell {
    position: relative; flex: none; width: calc(var(--cell) - 8px); height: calc(var(--cell) - 2px); margin: 0 4px;
    border-radius: 14px; display: grid; place-items: center;
    font-family: var(--f-display); font-size: 13px; color: rgba(255,255,255,.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -5px 0 rgba(0,0,0,.28);
}
.db-cell.red   { background: linear-gradient(160deg, var(--red), var(--red-2)); }
.db-cell.black { background: linear-gradient(160deg, var(--blk), var(--blk-2)); }
.db-cell.green { background: linear-gradient(160deg, var(--grn), var(--grn-2)); }
.db-cell .ic { width: 26px; height: 26px; opacity: .35; }
.db-cell.green .ic { opacity: .6; }

.db-cell.charged { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 2px var(--volt), 0 0 18px 2px rgba(143,211,255,.8); animation: dbCrackle .18s steps(2) infinite; }
.db-cell.charged::after {
    content: attr(data-x); position: absolute; left: 50%; top: -2px; transform: translate(-50%, -50%);
    padding: 1px 7px; border-radius: 999px; font-size: 12px; color: #06122a; background: #e6f6ff;
    box-shadow: 0 0 12px #8fd3ff; white-space: nowrap;
}
.db-cell.charged .ic { opacity: .95; filter: drop-shadow(0 0 6px #fff); }
@keyframes dbCrackle { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 2px #fff, 0 0 26px 4px rgba(143,211,255,1); } }
.db-cell.win { transform: translateY(-6px) scale(1.08); transition: transform .35s var(--ease); z-index: 1; }
.db-cell.win::before {
    content: ''; position: absolute; inset: -6px; border-radius: 18px; border: 2px solid #ffe08a;
    box-shadow: 0 0 22px rgba(255,224,138,.8); animation: dbPulse .6s ease-in-out infinite alternate;
}
.db-pointer {
    position: absolute; left: 50%; top: 4px; bottom: 4px; width: 3px; margin-left: -1.5px; z-index: 2;
    background: linear-gradient(180deg, #ffe08a, #f0a62c); border-radius: 3px; box-shadow: 0 0 12px rgba(255,210,110,.9);
}
.db-pointer::before, .db-pointer::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    border: 8px solid transparent;
}
.db-pointer::before { top: -6px; border-top-color: #ffe08a; }
.db-pointer::after { bottom: -6px; border-bottom-color: #f0a62c; }

.db-stage[data-tense="1"] { animation: dbHeart .8s ease-in-out infinite; }
.db-stage[data-tense="1"] .db-tape { box-shadow: inset 0 0 40px rgba(143,211,255,.35); }
@keyframes dbHeart { 0%, 100% { box-shadow: var(--sh-screen), inset 0 0 0 1px rgba(143,211,255,.12); }
                     50% { box-shadow: var(--sh-screen), inset 0 0 60px rgba(143,211,255,.35); } }

.db-result {
    position: absolute; left: 50%; top: 24%; z-index: 7; transform: translateX(-50%);
    display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none;
    animation: dbResIn .5s var(--ease);
}
.db-result .m { font-family: var(--f-display); font-size: 52px; line-height: 1; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.db-result .t { font-weight: 700; color: rgba(230,240,255,.85); }
.db-result.red .m { color: #ff8298; } .db-result.green .m { color: #6ff5bd; } .db-result.black .m { color: #c9d2ea; }
.db-result.bolt .m {
    font-size: 76px; background: linear-gradient(180deg, #fff, #8fd3ff 55%, #4d8dff); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 22px rgba(143,211,255,.9)); animation: dbResIn .5s var(--ease), dbBoltText .12s steps(2) 8;
}
@keyframes dbResIn { from { transform: translateX(-50%) scale(.4); opacity: 0; } }
@keyframes dbBoltText { 50% { filter: drop-shadow(0 0 40px #fff); } }

.db-bet .acts .btn:disabled { opacity: .4; pointer-events: none; }

.db-stage.hurry .db-timer { color: #ffd0d8; text-shadow: 0 0 26px rgba(255,61,94,.7); animation: dbHurry 1s ease-in-out infinite; }
.db-stage.hurry .db-bar i { background: linear-gradient(90deg, #ff8298, #ff3d5e); box-shadow: 0 0 10px #ff3d5e; }
@keyframes dbHurry { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.06); } }

.db-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.db-col {
    --c: var(--red); --c2: var(--red-2);
    border-radius: var(--r-lg); padding: 10px; background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; min-height: 220px;
    transition: box-shadow .3s, opacity .3s;
}
.db-col[data-color="black"] { --c: #4a5470; --c2: var(--blk-2); }
.db-col[data-color="green"] { --c: var(--grn); --c2: var(--grn-2); }
.db-pick {
    position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; width: 100%;
    min-height: 64px; padding: 12px 14px; border-radius: 14px;
    color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; border: 0; text-align: left;
    background: linear-gradient(160deg, var(--c), var(--c2));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -4px 0 rgba(0,0,0,.25), 0 8px 20px -8px var(--c);
    transition: transform .15s, filter .2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.db-pick:hover { filter: brightness(1.1); }
.db-pick:active { transform: translateY(2px) scale(.98); }
.db-pick:disabled { filter: grayscale(.6) brightness(.7); cursor: default; }

.db-pick.blocked, .db-dock-picks button.blocked { filter: grayscale(.85) brightness(.55); cursor: not-allowed; }
.db-pick.blocked::after, .db-dock-picks button.blocked::after {
    content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; border-radius: 2px;
    background: rgba(255,255,255,.55); transform: rotate(-8deg);
}
.db-pick .chip { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.28); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.db-pick b { margin-left: auto; font-family: var(--f-display); font-size: 17px; }

.db-pick .stake { flex-basis: 100%; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.9); font-variant-numeric: tabular-nums; }
.db-pick .stake:empty { display: none; }
.db-pick .stake::before { content: 'ваша ставка · '; font-weight: 600; opacity: .75; }

.db-pick.placed { animation: dbPlaced .35s var(--ease); }
@keyframes dbPlaced { 30% { transform: scale(1.04); filter: brightness(1.25); } }
.db-fly {
    position: absolute; left: 50%; top: 0; z-index: 3; pointer-events: none; font-style: normal;
    padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap;
    color: #1a1204; background: linear-gradient(180deg, #ffe08a, #f0a62c); box-shadow: 0 6px 16px -6px rgba(0,0,0,.6);
    animation: dbFly .8s var(--ease) forwards;
}
@keyframes dbFly { from { transform: translate(-50%, 4px) scale(.7); opacity: 0; } 25% { opacity: 1; transform: translate(-50%, -18px) scale(1); }
                   to { transform: translate(-50%, -46px); opacity: 0; } }
.db-sum { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.db-sum span { font-weight: 800; font-variant-numeric: tabular-nums; }
.db-sum small { color: var(--dim); }

.db-mine { display: none !important; }
.db-mine-old {
    padding: 7px 10px; border-radius: 10px; font-weight: 800; font-size: 13px;
    background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent);
}
.db-list { display: grid; gap: 4px; max-height: 260px; overflow: auto; scrollbar-width: thin; }
.db-list .row {
    display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; font-size: 12.5px;
    background: var(--panel-2); animation: dbRowIn .35s var(--ease);
}
.db-list .row .av { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: var(--a); flex: none; }
.db-list .row .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.db-list .row b { font-variant-numeric: tabular-nums; }
.db-list .row.me .n { color: var(--text); font-weight: 700; }
.db-list .empty { color: var(--faint); font-size: 12.5px; text-align: center; padding: 16px 0; }
@keyframes dbRowIn { from { transform: translateY(-6px); opacity: 0; } }

.db-cols.settled .db-col:not(.won) { opacity: .45; }
.db-col.won { box-shadow: inset 0 0 0 2px var(--c), 0 0 30px -6px var(--c); }
.db-col.won .row b { color: var(--mint); }

.db-stats {
    background:
        radial-gradient(90% 60% at 0% 0%, rgba(255,61,94,.1), transparent 60%),
        radial-gradient(90% 60% at 100% 0%, rgba(143,211,255,.08), transparent 60%),
        var(--panel);
}
.dbs-head { display: flex; align-items: center; margin-bottom: 12px; }
.dbs-head b { color: var(--text); }
.db-ratio {
    display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 3px; margin-bottom: 14px;
    padding: 2px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.db-ratio i { height: 100%; border-radius: 999px; transition: flex-grow .6s var(--ease); flex: 1 1 0; min-width: 4px; }
.db-ratio .r { background: linear-gradient(90deg, #ff5f7a, var(--red)); box-shadow: 0 0 10px rgba(255,61,94,.55); }
.db-ratio .g { background: linear-gradient(90deg, #5ff5c0, var(--grn)); box-shadow: 0 0 10px rgba(31,227,154,.6); }
.db-ratio .b { background: linear-gradient(90deg, #5a6582, #3a4258); }

.dbs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dbs-tiles .t {
    --c: var(--red); position: relative; overflow: hidden;
    display: grid; gap: 2px; padding: 10px 11px 9px; border-radius: 14px;
    background: linear-gradient(170deg, color-mix(in srgb, var(--c) 20%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.dbs-tiles .t.g { --c: var(--grn); }
.dbs-tiles .t.b { --c: #7b88aa; }
.dbs-tiles .t::before {
    content: ''; position: absolute; left: 11px; right: 11px; top: 0; height: 2px; border-radius: 0 0 2px 2px;
    background: var(--c); box-shadow: 0 0 10px var(--c);
}
.dbs-tiles small { font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--c) 55%, #fff); }
.dbs-tiles b { font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.dbs-tiles em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }

.dbs-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dbs-extra .x {
    --c: #8fd3ff; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 14px;
    background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.dbs-extra .x.storm { --c: #b48cff; }
.dbs-extra .ic {
    flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 16px -4px var(--c), inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
}
.dbs-extra .ic svg { width: 18px; height: 18px; filter: drop-shadow(0 0 4px var(--c)); }
.dbs-extra b { display: block; font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.1; color: #fff; }
.dbs-extra small { display: block; font-size: 11px; font-weight: 600; color: var(--dim); line-height: 1.25; }

.dbs-since {
    display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 11px; border-radius: 12px;
    font-size: 12px; font-weight: 600; color: var(--dim); background: rgba(31,227,154,.06);
}
.dbs-since i { flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--grn); box-shadow: 0 0 8px var(--grn); }
.dbs-since b { color: #6ff5bd; }

@media (max-width: 760px) {
    .db-stage { --cell: 58px; height: 380px; }
    .db-lion { width: 200px; height: 200px; }
    .db-stage[data-storm="1"] .db-lion { width: 240px; height: 240px; }
    .db-timer { font-size: 46px; }
    .db-tape { height: 84px; bottom: 26px; }
    .db-strip { top: 12px; }

    .db-stage { --ch-bot: 122px; }
    .db-charges { bottom: var(--ch-bot); gap: 4px; }
    .db-charges .ch { gap: 4px; padding: 3px 8px 3px 5px; font-size: 11px; }
    .db-charges .ch i { width: 10px; height: 10px; border-radius: 3px; }
    .db-result { top: auto; bottom: calc(var(--ch-bot) + var(--ch-h, 0px) + 10px); width: calc(100% - 24px); gap: 2px; }
    .db-result .t { font-size: 13px; line-height: 1.3; }
    .db-result .m { font-size: 42px; } .db-result.bolt .m { font-size: 58px; }

    .db-cols { gap: 6px; margin-top: 10px; }
    .db-col {
        min-height: 0; padding: 9px 8px 8px; gap: 4px; position: relative; overflow: hidden;
        border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--panel)), var(--panel) 70%);
    }
    .db-col::before {
        content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
        background: var(--c); box-shadow: 0 0 12px var(--c);
    }
    .db-col::after {
        order: -1; text-align: center; font-size: 11.5px; font-weight: 800; color: color-mix(in srgb, var(--c) 45%, #fff);
    }
    .db-col[data-color="red"]::after   { content: 'Красный ×2'; }
    .db-col[data-color="green"]::after { content: 'Зелёный ×12'; }
    .db-col[data-color="black"]::after { content: 'Чёрный ×2'; color: #aab4cf; }
    .db-pick { display: none; }
    .db-sum { flex-direction: column; align-items: center; gap: 0; padding: 0; }
    .db-sum span { font-size: 15px; }
    .db-sum small { font-size: 10.5px; }
    .db-list { max-height: 118px; margin-top: 2px; }
    .db-list:has(> .empty:only-child) { display: none; }
    .db-list .row { padding: 5px 6px; gap: 5px; font-size: 11px; }
    .db-list .row .av { display: none; }
    .db-cols.settled .db-col:not(.won) { opacity: .5; }
}

@media (max-width: 760px) and (max-height: 760px) {
    .db-stage { height: clamp(250px, calc(var(--free, 999px) - 66px), 380px); }
    .db-center { top: 40px; }
    .db-timer { font-size: 36px; }
    .db-lion { width: 150px; height: 150px; }
    .db-stage[data-storm="1"] .db-lion { width: 180px; height: 180px; }
    .db-stage { --ch-bot: 116px; }
    .db-result .m { font-size: 36px; } .db-result.bolt .m { font-size: 48px; }
}

.db-dock-picks { display: flex; gap: 6px; flex: 1; }
.db-dock-picks button {
    position: relative; flex: 1; min-height: 52px; border: 0; border-radius: 12px; padding: 6px 0; color: #fff;
    display: grid; place-items: center; align-content: center; gap: 1px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(0,0,0,.25);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .12s, filter .2s;
}
.db-dock-picks button b { font-family: var(--f-display); font-size: 16px; font-weight: 700; }
.db-dock-picks button small { font-size: 10.5px; font-weight: 800; opacity: .9; font-variant-numeric: tabular-nums; }
.db-dock-picks button small:empty { display: none; }
.db-dock-picks button:active { transform: scale(.96); }
.db-dock-picks button.placed { animation: dbPlaced .35s var(--ease); }
.db-dock-picks .r { background: linear-gradient(160deg, #ff3d5e, #b8173a); }
.db-dock-picks .g { background: linear-gradient(160deg, #1fe39a, #0b8f5a); }
.db-dock-picks .b { background: linear-gradient(160deg, #3a4258, #11151f); }
.db-dock-picks button:disabled { filter: grayscale(.6) brightness(.6); }
.db-dock-picks .db-fly { top: -6px; }

html.is-lite .db-sky i, html.is-lite .db-clouds i { animation: none; filter: blur(10px); }
html.is-lite .db-cell.charged { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .db-stage.shake, .db-stage[data-tense="1"], .db-lion.roaring, .db-stage.hurry .db-timer, .db-pick.placed, .db-dock-picks button.placed { animation: none; }
    .db-hist .h.bolt::after { display: none; }
}

.db-stage > .brandmark { --bm-y: 54%; --bm-o: .5; }
