body[data-page="toast"] { --gold: #ffd65a; --gold-2: #f0a422; --butter: #ffe07a; --crust: #c97a32; --mint: #6ff5c4; --tomato: #ff6a52; }
.bt {
    position: relative; overflow: hidden; border-radius: var(--r-xl); height: 680px;
    background: #2a1608;
    box-shadow: var(--sh-screen), 0 0 0 1px rgba(255,214,90,.28), 0 0 40px -8px rgba(255,176,46,.35);
    isolation: isolate; user-select: none; -webkit-user-select: none;
}
.bt-bg { position: absolute; inset: -8px; z-index: 0; pointer-events: none;
    background: url(../assets/art/toast/kitchen.webp) 50% 100% / cover no-repeat;
    filter: saturate(1.04) brightness(.94); transition: filter .5s; will-change: transform; }
.bt-bg::after { content: ''; position: absolute; inset: 0; transition: opacity .5s;
    background: radial-gradient(80% 70% at 50% 60%, transparent 45%, rgba(40,16,4,.45) 100%), linear-gradient(180deg, rgba(40,16,4,.25), transparent 28%); }

.bt.is-slow .bt-bg, .bt.is-hang .bt-bg { filter: saturate(.75) brightness(.6); }
.bt-cv { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.bt-sign { position: absolute; left: 16px; top: 14px; z-index: 6; display: flex; align-items: center; gap: 10px; pointer-events: none;
    height: 40px; padding: 0 14px 0 8px; border-radius: 14px; white-space: nowrap;
    background: linear-gradient(180deg, #fff4c8, #ffd65a 60%, #f0a422);
    box-shadow: 0 0 0 2px rgba(120,60,10,.5), 0 10px 24px -10px rgba(120,60,10,.8), inset 0 2px 0 rgba(255,255,255,.7); }
.bt-sign b { font: 800 16px/1 Unbounded, sans-serif; letter-spacing: .01em; color: #4a2508; }
.bt-sign b span { color: #b5470e; }

.bt-pat { width: 26px; height: 20px; border-radius: 6px; transform: rotate(-8deg);
    background: linear-gradient(160deg, #fffbe0, #ffe27a 55%, #f7c63a); box-shadow: 0 3px 0 #d79a1e, inset 0 1px 0 #fff; }

.bt-chain { position: absolute; left: 16px; top: 64px; z-index: 6; display: flex; align-items: center; gap: 5px; pointer-events: none; flex-wrap: wrap; max-width: 60%;
    padding: 5px; border-radius: 12px; background: rgba(42,20,6,.7); box-shadow: inset 0 0 0 1px rgba(255,214,90,.3);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: btChip .4s cubic-bezier(.3,1.6,.5,1); }
.bt-chain span, .bt-chain i, .bt-chain b { display: flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font: 800 11.5px/1 Manrope, sans-serif; font-style: normal; white-space: nowrap; }
.bt-chain span { color: #fff; background: rgba(255,255,255,.1); }
.bt-chain i { color: #2a1404; background: var(--c); }
.bt-chain b { font: 800 12.5px/1 Unbounded, sans-serif; color: #2a1404; background: linear-gradient(180deg, #fff4c8, var(--gold)); }

.bt-hud { position: absolute; right: 16px; top: 16px; z-index: 6; display: flex; justify-content: flex-end; width: min(46%, 420px); pointer-events: none; }
.bt-recent { flex: 1; min-width: 0; display: flex; justify-content: flex-end;

    flex-wrap: wrap; align-content: flex-start; gap: 40px 6px; max-height: 28px; overflow: hidden; }
.bt-recent span { flex: none; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 6px; border-radius: 10px;
    font: 800 11.5px/1 Unbounded, sans-serif; color: rgba(255,255,255,.62);
    background: rgba(42,20,6,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bt-recent span .bt-ic { width: 16px; height: 13px; }
.bt-recent span.w { color: #05281b; background: linear-gradient(180deg, #d8fff0, var(--mint)); box-shadow: 0 4px 12px -6px rgba(111,245,196,.9); }
.bt-recent span.big { color: #2a1404; background: linear-gradient(180deg, #fff4c8, var(--gold)); box-shadow: 0 4px 14px -6px rgba(255,190,40,.9); }
.bt-recent span.new { animation: btChip .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes btChip { from { transform: translateX(24px) scale(.6); opacity: 0; } }

.bt-ic { position: relative; display: inline-block; flex: none; width: 26px; height: 20px; }
.bt-ic::before { content: ''; position: absolute; left: 0; right: 0; top: 30%; height: 44%; border-radius: 4px 4px 3px 3px;
    background: linear-gradient(180deg, #e9a65a, #b8682a); box-shadow: inset 0 -2px 0 rgba(90,40,8,.35); }

.bt-ic::after { content: ''; position: absolute; left: 2px; right: 2px; height: 28%; border-radius: 3px;
    background: linear-gradient(180deg, #fffbe0, #ffd84a); box-shadow: 0 0 6px rgba(255,214,74,.7); }
.bt-ic.u::after { top: 6%; }
.bt-ic.d::after { bottom: 4%; border-radius: 0 0 4px 4px; background: linear-gradient(0deg, #f7c63a, #ffe789); }
.bt-ic.d::before { top: 18%; }

.bt-ic.e::before { left: 32%; right: 32%; top: 0; bottom: 0; height: auto; border-radius: 6px 6px 2px 2px; }
.bt-ic.e::after { left: 26%; right: auto; width: 14%; top: 8%; bottom: 8%; height: auto; border-radius: 3px; }

.bt-say { position: absolute; left: 50%; top: 18%; z-index: 7; translate: -50% 0; max-width: min(46%, 340px); pointer-events: none;
    padding: 10px 14px; border-radius: 16px; text-align: center;
    font: 700 13px/1.35 Manrope, sans-serif; color: #fff;
    background: rgba(42,20,6,.84); box-shadow: 0 10px 26px -12px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,214,90,.35);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bt-say.pop { animation: btSay .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes btSay { from { transform: translateY(-8px) scale(.9); opacity: 0; } }
.bt[data-phase="law"] .bt-say, .bt:has(.bt-res:not([hidden])) .bt-say { display: none; }

.bt-res { position: absolute; left: 62%; top: 12%; z-index: 8; translate: -50% 0; display: grid; justify-items: center; gap: 5px; min-width: 220px;
    padding: 12px 22px 15px; border-radius: 22px; text-align: center; pointer-events: none;
    background: linear-gradient(180deg, rgba(58,26,8,.93), rgba(30,12,4,.95));
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,214,90,.5), 0 0 34px -4px rgba(255,190,40,.4);
    animation: btRes .5s cubic-bezier(.2,1.5,.4,1); }
.bt-res.out { animation: btResOut .26s ease-in forwards; }
@keyframes btRes { from { transform: scale(.5) translateY(20px); opacity: 0; } }
@keyframes btResOut { to { transform: scale(.85); opacity: 0; } }
.bt-res small { font: 700 12px/1.3 Manrope, sans-serif; color: rgba(255,255,255,.7); }
.bt-res .o { display: flex; align-items: center; gap: 8px; font: 800 14px/1 Manrope, sans-serif; color: var(--butter); text-transform: uppercase; letter-spacing: .04em; }
.bt-res .o-e { color: #fff3b0; text-shadow: 0 0 12px rgba(255,214,90,.9); }
.bt-res strong { font: 800 48px/1 Unbounded, sans-serif; letter-spacing: -.03em;
    background: linear-gradient(180deg, #fff, #ffe7a8 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 14px rgba(255,190,40,.45)); }
.bt-res .w { font: 800 18px/1 Unbounded, sans-serif; color: var(--mint); }
.bt-res .l { font: 700 12.5px/1.2 Manrope, sans-serif; color: rgba(255,255,255,.6); }
.bt-res.miss { box-shadow: 0 24px 60px -20px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.14); }
.bt-res strong.z { background: none; -webkit-text-fill-color: rgba(255,255,255,.42); color: rgba(255,255,255,.42); filter: none; font-size: 36px; }
.bt-res.t3, .bt-res.edge { box-shadow: 0 0 0 2px rgba(255,214,90,.85), 0 0 60px 6px rgba(255,214,90,.45), 0 24px 60px -20px rgba(0,0,0,.9); }
.bt-res.t3 strong, .bt-res.edge strong:not(.z) { font-size: 58px; background: linear-gradient(180deg, #fff6cf, var(--gold) 55%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; }
.bt-res.taken strong { font-size: 40px; }

.bt-law { position: absolute; right: 18px; top: 50%; translate: 0 -50%; z-index: 9; width: min(330px, 44%); display: grid; gap: 12px;
    padding: 16px; border-radius: 22px; text-align: center;
    background: linear-gradient(180deg, rgba(64,30,8,.95), rgba(34,14,4,.96));
    box-shadow: 0 0 0 2px rgba(255,214,90,.75), 0 0 46px -4px rgba(255,190,40,.5), 0 30px 60px -20px rgba(0,0,0,.9); }
.bt-law.pop { animation: btLaw .5s cubic-bezier(.2,1.5,.4,1); }
@keyframes btLaw { from { transform: scale(.7); opacity: 0; } }
.bt-law-h { display: grid; gap: 5px; }
.bt-law-h b { font: 800 20px/1.1 Unbounded, sans-serif; color: var(--gold); text-shadow: 0 0 16px rgba(255,190,40,.55); }
.bt-law-h small { font: 700 12.5px/1.3 Manrope, sans-serif; color: rgba(255,255,255,.78); }
.bt-law-x { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bt-law-x span { display: grid; gap: 4px; padding: 8px 6px; border-radius: 12px; font: 700 11px/1.2 Manrope, sans-serif; color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.bt-law-x b { font: 800 14px/1.1 Unbounded, sans-serif; color: #fff; }
.bt-law-x b.up { color: var(--mint); }
.bt-law-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bt-pick { display: grid; justify-items: center; gap: 7px; padding: 12px 6px 11px; border-radius: 16px; color: #2a1404; cursor: pointer;
    background: linear-gradient(180deg, #fff6d2, var(--gold) 60%, var(--gold-2));
    box-shadow: 0 10px 22px -10px rgba(255,190,40,.95), inset 0 2px 0 rgba(255,255,255,.7); transition: transform .15s;
    animation: btAsk 1.6s ease-in-out infinite; }
.bt-pick + .bt-pick { animation-delay: .3s; }
@keyframes btAsk { 50% { box-shadow: 0 10px 26px -6px rgba(255,190,40,1), inset 0 2px 0 rgba(255,255,255,.7); } }
.bt-pick .bt-ic { width: 40px; height: 30px; }
.bt-pick span { display: grid; gap: 3px; }
.bt-pick b { font: 800 13.5px/1 Manrope, sans-serif; }
.bt-pick small { font: 800 11px/1 Manrope, sans-serif; color: rgba(42,20,4,.7); }
.bt-pick:active { transform: scale(.96); }
@media (hover: hover) { .bt-pick:hover { transform: translateY(-2px); } }
.bt-law-n { font: 600 11px/1.3 Manrope, sans-serif; color: rgba(255,255,255,.5); }

.bt-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.bt-flash.on { animation: btFlash .7s ease-out; background: radial-gradient(45% 45% at var(--fx, 60%) var(--fy, 85%), rgba(255,226,140,.55), rgba(255,160,40,.2) 45%, transparent 75%); }
.bt-flash.on.gold { background: radial-gradient(70% 60% at var(--fx, 60%) var(--fy, 80%), rgba(255,240,170,.85), rgba(255,190,40,.4) 45%, transparent 80%); }
@keyframes btFlash { 0% { opacity: 1; } 25% { opacity: .35; } 40% { opacity: .8; } 100% { opacity: 0; } }

.bt-bet.is-live .field, .bt-bet.is-live .quick-row, .bt-bet.is-live .bt-sides { opacity: .45; pointer-events: none; transition: opacity .3s; }
.bt-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 12px 0 2px; }
.bt-bet .bt-go { margin-top: 12px; }
.bt-sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 4px; border-radius: 14px;
    background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.bt-sides button { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; height: 70px; border-radius: 11px; color: var(--dim); transition: .2s; }
.bt-sides .bt-ic { width: 30px; height: 22px; margin-bottom: 1px; }
.bt-sides b { font: 800 13px/1 Manrope, sans-serif; color: var(--text); }
.bt-sides small { font: 800 12px/1 Unbounded, sans-serif; color: var(--gold); }
.bt-sides button.edge small { color: #ffb06a; }
.bt-sides button.on { background: linear-gradient(180deg, #fff6d2, var(--gold) 55%, var(--gold-2)); box-shadow: 0 8px 18px -8px rgba(255,190,40,.95); }
.bt-sides button.on b, .bt-sides button.on small { color: #2a1404; }
.bt-fast { display: flex; justify-content: center; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 11px; font: 800 12px/1 Manrope, sans-serif; color: var(--dim);
    background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.bt-fast .ic { filter: grayscale(1); opacity: .6; transition: .2s; }
.bt-fast[aria-pressed="true"] { color: #2a1404; background: linear-gradient(180deg, #fff6d2, var(--gold) 55%, var(--gold-2)); box-shadow: 0 6px 18px -8px rgba(255,190,40,.9); }
.bt-fast[aria-pressed="true"] .ic { filter: none; opacity: 1; }
.bt-go, .dock [data-bt-go] { color: #2a1404 !important; background: linear-gradient(180deg, #fff6d2, var(--gold) 50%, var(--gold-2)) !important; box-shadow: 0 14px 30px -12px rgba(255,190,40,.95) !important; }
.bt-go.is-take, .dock [data-bt-go].is-take { color: #04291b !important; background: linear-gradient(180deg, #d8fff0, var(--mint) 55%, #2fc48d) !important; box-shadow: 0 14px 30px -12px rgba(111,245,196,.9) !important; }
.bt-go.is-wait, .dock [data-bt-go].is-wait { opacity: .6; pointer-events: none; }

.bt-top-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bt-top-tag { padding: 4px 8px; border-radius: 999px; font: 800 10px/1 Manrope, sans-serif; letter-spacing: .06em; color: var(--dim); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.bt-top-row { --c: 255,214,90; position: relative; overflow: hidden; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; border-radius: 14px;
    background: linear-gradient(100deg, rgba(var(--c),.13), rgba(var(--c),.03) 55%, transparent), var(--surface-3); box-shadow: inset 0 0 0 1px rgba(var(--c),.16); }
.bt-top-row + .bt-top-row { margin-top: 8px; }
.bt-top-row.is-mult { --c: 255,140,80; }
.bt-top-row::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: rgb(var(--c)); box-shadow: 0 0 12px rgba(var(--c),.8); }
.bt-top-row i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-style: normal; background: rgba(var(--c),.1); box-shadow: inset 0 0 0 1px rgba(var(--c),.25); }
.bt-top-row svg { width: 20px; height: 20px; fill: none; stroke: rgb(var(--c)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(var(--c),.6)); }
.bt-top-row.is-mult svg { fill: rgba(var(--c),.25); }
.bt-top-row .v { min-width: 0; }
.bt-top-row small { display: block; font: 800 10px/1 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.bt-top-row b { display: block; font: 800 17px/1 Unbounded, sans-serif; letter-spacing: -.02em; color: rgb(var(--c)); text-shadow: 0 0 16px rgba(var(--c),.35); white-space: nowrap; }
.bt-top-row em { display: grid; justify-items: end; gap: 6px; font-style: normal; min-width: 0; }
.bt-top-row .nm { display: flex; align-items: center; gap: 6px; max-width: 110px; font: 700 12px/1 Manrope, sans-serif; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-top-row .nm.is-empty { color: var(--faint); }
.bt-top-row .av { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font: 800 9.5px/1 Manrope, sans-serif; color: #1b1206; background: linear-gradient(180deg, #fff1bf, rgb(var(--c))); }
.bt-top-row .px { padding: 4px 7px; border-radius: 7px; font: 800 11px/1 Manrope, sans-serif; color: var(--dim); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.bt-top-row.is-empty b { color: var(--faint); text-shadow: none; }

@media (max-width: 1300px), (max-height: 900px) {
    .bt { height: 600px; }
}

@media (min-width: 761px) and (max-height: 800px) {
    .bt { height: calc(100vh - 110px); min-height: 440px; }
}

.bt.is-narrow .bt-say { top: auto; bottom: 10px; max-width: calc(100% - 24px); width: max-content; border-radius: 14px; font-size: 12px; padding: 7px 12px; }
.bt.is-narrow[data-phase="done"] .bt-say { display: none; }
.bt.is-narrow .bt-res { left: 50%; top: 54px; min-width: 190px; padding: 10px 18px 12px; }
.bt.is-narrow .bt-res strong { font-size: 36px; }
.bt.is-narrow .bt-res.t3 strong, .bt.is-narrow .bt-res.edge strong:not(.z) { font-size: 44px; }
.bt.is-narrow .bt-res .w { font-size: 15px; }

.bt.is-narrow .bt-law { left: 10px; right: 10px; top: auto; bottom: 10px; translate: none; width: auto; gap: 9px; padding: 12px; border-radius: 18px; }
.bt.is-narrow .bt-law-h b { font-size: 16px; }
.bt.is-narrow .bt-law-h small { font-size: 11.5px; }
.bt.is-narrow .bt-law-x span { padding: 6px; }
.bt.is-narrow .bt-law-x b { font-size: 13px; }
.bt.is-narrow .bt-pick { grid-auto-flow: column; justify-content: center; align-items: center; gap: 9px; padding: 12px 6px; }
.bt.is-narrow .bt-pick span { justify-items: start; }
.bt.is-narrow .bt-pick .bt-ic { width: 32px; height: 24px; }
.bt.is-narrow .bt-chain { left: 10px; top: 52px; max-width: calc(100% - 20px); }
.bt.is-narrow[data-phase="law"] .bt-res { display: none; }

@media (max-width: 760px) {

    .bt { height: max(300px, calc(var(--free, 640px) - 10px)); border-radius: var(--r-lg); }
    .bt-sign { left: 10px; top: 10px; height: 32px; padding: 0 10px 0 6px; gap: 7px; border-radius: 11px; }
    .bt-sign b { font-size: 12.5px; }
    .bt-pat { width: 20px; height: 15px; }
    .bt-hud { right: 10px; top: 12px; width: 38%; }
    .bt-recent span:nth-child(n+4) { display: none; }
    .bt-opts { margin-top: 0; grid-template-columns: minmax(0, 1fr) 46px; }
    .bt-opts .bt-fast { padding: 0; height: auto; }
    .bt-opts .bt-fast span:not(.ic) { display: none; }
    .bt-opts .bt-fast .ic { font-size: 16px; }
    .bt-sides button { height: 54px; gap: 3px; }
    .bt-sides .bt-ic { width: 24px; height: 18px; }
    .bt-sides b { font-size: 12px; }
    .bt-sides small { font-size: 11px; }
}

.bt.is-short .bt-res { min-width: 0; gap: 2px; padding: 6px 16px 8px; border-radius: 14px; }
.bt.is-short .bt-res strong, .bt.is-short .bt-res.t3 strong, .bt.is-short .bt-res.edge strong:not(.z) { font-size: 28px; }
.bt.is-short .bt-res .w { font-size: 13px; }
.bt.is-short .bt-law-x { display: none; }
.bt.is-short .bt-law-n { display: none; }

.is-lite .bt-recent span, .is-lite .bt-say, .is-lite .bt-chain { -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-lite .bt-pick { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .bt *, .bt { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}

.bt.is-narrow.is-short .bt-law { top: 8px; bottom: auto; gap: 7px; padding: 10px; }
.bt.is-narrow.is-short .bt-law-h small { display: none; }
.bt.is-narrow.is-short .bt-pick { padding: 10px 6px; }
.bt.is-narrow.is-short[data-phase="law"] .bt-chain { display: none; }

@media (max-width: 760px) {

    .bt > .brandmark { --bm-y: 10%; }
}
