.ct-stage, .ct-board, .ct-hist, .ct-stats, .ct-list, .ct-dock-picks {
    --gold: #ffd36b; --cyan: #37d7f2; --violet: #b48cff; --green: #3cc98c;
}

.ct-hist {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 7px 8px 7px 14px;
    border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 8px 24px -14px rgba(0,0,0,.7);
}
.ct-hist .cap { flex: none; display: grid; line-height: 1.15; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.08); }
.ct-hist .cap b { font-size: 12.5px; font-weight: 800; color: #fff; }
.ct-hist .cap small { font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.45); white-space: nowrap; }
.ct-hist .rail {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 7px 7px 9px 5px;
    overflow: hidden; mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.ct-hist .rail::-webkit-scrollbar { display: none; }
.ct-hist .h {
    position: relative; flex: none; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    font-family: var(--f-display); font-size: 14px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums;
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35);
    background:
        radial-gradient(120% 80% at 30% 0%, rgba(255,255,255,.35), transparent 55%),
        linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 70%, #120c26));
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.22), 0 4px 12px -4px color-mix(in srgb, var(--c) 70%, transparent);
    transition: transform .2s var(--ease);
}
.ct-hist .h:hover { transform: translateY(-2px); }
.ct-hist .h.lt { color: #3a2a00; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.ct-hist .h.b {
    color: color-mix(in srgb, var(--c) 35%, #fff); text-shadow: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 34%, #1b1538), #140f2c);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 80%, transparent), 0 0 14px -4px var(--c);
}
.ct-hist .h.b b { color: #ffe9a8; }
.ct-hist .h .die { width: 17px; height: 17px; color: #fff; filter: drop-shadow(0 0 4px var(--c)); }
.ct-hist .h.last { outline: 2px solid rgba(255,255,255,.85); outline-offset: 2px; }
.ct-hist .h.ch::after {
    content: '?'; position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
    display: grid; place-items: center; font-family: inherit; font-size: 10px; color: #04232a; text-shadow: none;
    background: var(--cyan); box-shadow: 0 0 0 2px #110c24, 0 0 10px var(--cyan);
}
.ct-hist .h .t {
    position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 1px 5px; border-radius: 6px;
    font-size: 9.5px; line-height: 1.3; color: #2a1a00; text-shadow: none;
    background: linear-gradient(180deg, #ffe48f, var(--gold)); box-shadow: 0 0 0 2px #110c24;
}
.ct-hist .h.new { animation: ctIn .55s var(--ease); }
@keyframes ctIn { from { transform: translateX(-14px) scale(.5); opacity: 0; } }

.ct-stage {
    position: relative; overflow: hidden; border-radius: 22px; isolation: isolate;
    height: clamp(480px, 56vw, 620px); container-type: size;
    background: #1b1240 url(../assets/art/city/studio.webp) center 72% / cover no-repeat;
    box-shadow: var(--sh-screen), inset 0 0 0 1px rgba(255,255,255,.06);
}
.ct-sky {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(60% 45% at 56% 66%, rgba(255,196,90,.18), transparent 70%),
        linear-gradient(180deg, rgba(8,6,24,.55) 0%, rgba(8,6,24,0) 18%, rgba(8,6,24,0) 70%, rgba(8,6,24,.5) 100%);
}
.ct-beam {
    position: absolute; top: -10%; z-index: 1; width: 22cqw; height: 120%; pointer-events: none;
    background: linear-gradient(180deg, rgba(190,170,255,.32), rgba(190,170,255,0) 80%);
    clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
    transform-origin: 50% 0; mix-blend-mode: screen; filter: blur(6px);
    animation: ctBeam 9s ease-in-out infinite alternate;
}
.ct-beam.b1 { left: 4%; rotate: -24deg; }
.ct-beam.b2 { right: 4%; rotate: 24deg; animation-delay: -4.5s; animation-direction: alternate-reverse; }
@keyframes ctBeam { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
.ct-stage[data-phase="spin"] .ct-beam, .ct-stage[data-phase="chance"] .ct-beam { animation-duration: 2.2s; background: linear-gradient(180deg, rgba(255,214,120,.4), rgba(255,214,120,0) 80%); }

.ct-head {
    position: absolute; top: 12px; left: 14px; right: 14px; z-index: 9; display: flex; gap: 10px;
    font-size: 12px; color: rgba(255,255,255,.72); pointer-events: none;
}
.ct-head .rid { font-weight: 800; padding: 3px 9px; border-radius: 8px; background: rgba(10,6,28,.45); backdrop-filter: blur(4px); }
.ct-head .hash { margin-left: auto; font-family: ui-monospace, monospace; opacity: .55; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ct-wheel-wrap {
    --ws: min(60cqw, 104cqh);
    position: absolute; left: 57%; top: calc(50cqh - var(--ws) / 2); z-index: 2;
    width: var(--ws); height: var(--ws); translate: -50% 0; pointer-events: none;
    transition: transform .8s var(--ease), opacity .5s, filter .5s;
}
.ct-floor {
    position: absolute; left: 50%; top: 54%; width: 112%; height: 62%; translate: -50% -50%;
    background: radial-gradient(closest-side, rgba(4,2,14,.75), rgba(4,2,14,.35) 60%, transparent);
}
.ct-rl {
    position: absolute; inset: 0; transform-style: preserve-3d;
    transform: perspective(calc(var(--ws) * 2.4)) rotateX(44deg);
}
.ct-side {
    position: absolute; inset: .6%; border-radius: 50%;
    background: linear-gradient(90deg, #4a2c08, #c99436 30%, #ffe6a0 46%, #b07a22 62%, #3e2406);
}
.ct-side.s1 { transform: translateZ(calc(var(--ws) * -.018)); }
.ct-side.s2 { transform: translateZ(calc(var(--ws) * -.036)); filter: brightness(.75); }
.ct-side.s3 { transform: translateZ(calc(var(--ws) * -.054)); filter: brightness(.45); box-shadow: 0 0 calc(var(--ws) * .06) rgba(0,0,0,.6); }
.ct-wheel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: translateZ(0); }

.ct-hub {
    position: absolute; left: 50%; top: 50%; width: 14.5%; aspect-ratio: 255 / 560; translate: -50% -93%; z-index: 3;
    filter: drop-shadow(0 calc(var(--ws) * .012) calc(var(--ws) * .014) rgba(0,0,0,.6)) drop-shadow(0 0 calc(var(--ws) * .022) rgba(140,110,255,.45));
    transition: filter .4s;
}
.ct-hub img { width: 100%; height: 100%; display: block; }
.ct-hub .glint {
    position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
    -webkit-mask: url(../assets/art/city/hub2.webp) center / 100% 100% no-repeat; mask: url(../assets/art/city/hub2.webp) center / 100% 100% no-repeat;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 48%, rgba(255,255,255,0) 60%) 0 0 / 100% 300% no-repeat;
    animation: ctGlint 4.5s ease-in-out infinite;
}
@keyframes ctGlint { 0%, 55% { background-position: 0 150%; } 100% { background-position: 0 -150%; } }
.ct-stage.sp-go .ct-hub { filter: drop-shadow(0 calc(var(--ws) * .012) calc(var(--ws) * .014) rgba(0,0,0,.6)) drop-shadow(0 0 calc(var(--ws) * .045) rgba(110,220,255,.7)); }
.ct-stage.sp-go .ct-hub .glint { animation-duration: 1.1s; }
.ct-stage[data-bonus="1"] .ct-wheel-wrap { transform: translateY(30%) scale(.7); opacity: 0; filter: blur(4px); }

.ct-wheel-wrap { transform-origin: 50% 74%; transition: transform .8s var(--ease), opacity .5s, filter .5s, scale 1.4s cubic-bezier(.2,.7,.2,1); }
.ct-stage.sp-go .ct-wheel-wrap { scale: 1.07; }
.ct-stage.sp-end .ct-wheel-wrap { scale: 1.16; transition-duration: .8s, .5s, .5s, 2.2s; }
.ct-stage.sp-hit .ct-wheel-wrap { animation: ctHit .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes ctHit { 30% { translate: -50% 1.2%; } 60% { translate: -50% -.4%; } }
.ct-vig {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s;
    background: radial-gradient(52% 58% at 57% 54%, transparent 55%, rgba(4,2,14,.78));
}
.ct-stage.sp-go .ct-vig { opacity: .7; }
.ct-stage.sp-end .ct-vig { opacity: 1; }

.ct-pop {
    position: absolute; left: 50%; top: 76%; z-index: 4; translate: -50% -50%; pointer-events: none;
    min-width: calc(var(--ws) * .15); padding: calc(var(--ws) * .012) calc(var(--ws) * .03); border-radius: 999px;
    font: 900 calc(var(--ws) * .075) / 1 Unbounded, Manrope, sans-serif; text-align: center; color: #fff;
    background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 55%, #000));
    border: 3px solid #ffe6a0; text-shadow: 0 3px 0 rgba(0,0,0,.35);
    box-shadow: 0 0 0 4px rgba(60,36,6,.55), 0 0 calc(var(--ws) * .08) var(--c), 0 12px 30px rgba(0,0,0,.5);
    animation: ctSecPop 2.4s cubic-bezier(.2,1.5,.4,1) both;
}
.ct-pop small { display: block; font-size: .3em; letter-spacing: .08em; text-transform: uppercase; margin-top: .3em; opacity: .9; }
@keyframes ctSecPop {
    0% { scale: .2; opacity: 0; translate: -50% 10%; }
    18% { scale: 1.25; opacity: 1; translate: -50% -70%; }
    30% { scale: 1; translate: -50% -60%; }
    82% { scale: 1; opacity: 1; translate: -50% -66%; }
    100% { scale: .85; opacity: 0; translate: -50% -90%; }
}

.ct-lion {
    position: absolute; left: 0; bottom: 1cqh; z-index: 4; height: 50cqh; aspect-ratio: 328 / 409; pointer-events: none;
    filter: drop-shadow(0 16px 18px rgba(20,14,40,.4));
    transition: translate .6s var(--ease), opacity .4s;
}
.ct-lion .poster, .ct-lion canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.ct-lion canvas { opacity: 0; }
.ct-lion.on canvas { opacity: 1; }
.ct-lion.on .poster { opacity: 0; }
.ct-stage[data-bonus="1"] .ct-lion { translate: -80% 0; opacity: 0; }

.ct-timer {
    --p: 1; --tc: #ffd36b;
    position: absolute; left: 16px; top: 44px; z-index: 5; color: #fff;
    display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
    background: rgba(12,8,32,.6); backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.3);
    transition: opacity .3s, transform .3s;
}
.ct-timer .ring {
    position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--tc) calc(var(--p) * 1turn), rgba(255,255,255,.1) 0);
}
.ct-timer .ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #120c2c; }
.ct-timer b { position: relative; font-family: var(--f-display); font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; }
.ct-timer .tx small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tc); }
.ct-timer .tx span { display: block; font-size: 12.5px; color: rgba(255,255,255,.7); }
.ct-stage.hurry .ct-timer { --tc: #ff7a8a; }
.ct-stage.hurry .ct-timer b { animation: ctHurry 1s ease-in-out infinite; }
@keyframes ctHurry { 50% { transform: scale(1.12); } }
.ct-stage:not([data-phase="betting"]) .ct-timer { opacity: 0; transform: translateY(-8px); pointer-events: none; }

.ct-chance { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.ct-chance[hidden] { display: none; }
.ct-chance .tosha {
    position: absolute; right: 1%; bottom: 2%; height: 46%; z-index: 2;
    filter: drop-shadow(0 14px 20px rgba(0,0,0,.55));
    animation: ctToshaIn .7s cubic-bezier(.2,1.3,.4,1) both;
    transition: height .6s var(--ease), right .6s var(--ease), bottom .6s var(--ease);
}
@keyframes ctToshaIn { from { transform: translate(40%, 20%) scale(.6); opacity: 0; } }
.ct-chance.spin .tosha { height: 30%; right: 1%; bottom: 1%; }
.ct-chance .card-ch {
    position: absolute; left: 50%; top: 46px; translate: -50% 0; z-index: 3; text-align: center; color: #fff;
    padding: 10px 22px 12px; border-radius: 18px; min-width: 240px;
    background: linear-gradient(160deg, rgba(20,60,80,.88), rgba(10,20,44,.88)); backdrop-filter: blur(8px);
    box-shadow: 0 0 0 2px var(--cyan), 0 0 40px rgba(55,215,242,.45);
    animation: ctPop .6s cubic-bezier(.2,1.4,.4,1) both;
}
.ct-chance .card-ch small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.ct-chance .card-ch b { display: block; font-family: var(--f-display); font-size: clamp(17px, 2.2vw, 22px); line-height: 1.25; }
.ct-chance .card-ch span { display: block; font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; }
.ct-chance.rev .card-ch { box-shadow: 0 0 0 2px var(--gold), 0 0 50px rgba(255,211,107,.55); }
.ct-chance .note {
    position: absolute; left: 57%; top: 46%; translate: -50% -50%; z-index: 4;
    display: flex; align-items: baseline; gap: 2px; padding: 14px 34px; border-radius: 14px;
    font-family: var(--f-display); color: #0b3a1c;
    background:
        radial-gradient(circle at 12% 50%, rgba(255,255,255,.35) 0 14%, transparent 15%),
        radial-gradient(circle at 88% 50%, rgba(255,255,255,.35) 0 14%, transparent 15%),
        linear-gradient(160deg, #d9fbc4, #5fcf7a 55%, #2f9d50);
    box-shadow: 0 0 0 4px #fff6d6, 0 0 0 9px color-mix(in srgb, var(--c, #ffd36b) 80%, transparent), 0 18px 40px rgba(0,0,0,.5), 0 0 90px color-mix(in srgb, var(--c, #5fcf7a) 70%, transparent);
    animation: ctNote 1.1s cubic-bezier(.2,1.5,.4,1) both;
}
.ct-chance .note[hidden] { display: none; }
.ct-chance .note i { font-style: normal; font-size: 34px; }
.ct-chance .note b { font-size: 72px; line-height: 1; }
@keyframes ctNote { from { transform: rotate(-200deg) scale(.1); opacity: 0; } 55% { transform: rotate(8deg) scale(1.2); opacity: 1; } 75% { transform: rotate(-3deg) scale(.96); } }

.ct-notes { display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.ct-notes:not(:empty) { margin-top: 10px; padding-top: 4px; }
.ct-notes .bill {
    position: relative; display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 7px 8px 6px; border-radius: 10px;
    background:
        radial-gradient(circle at 50% 62%, rgba(255,255,255,.28) 0 22%, transparent 23%),
        linear-gradient(160deg, #d9fbc4, #5fcf7a 55%, #2f9d50);
    box-shadow: 0 0 0 2px #fff6d6, inset 0 0 0 3px rgba(11,58,28,.25), 0 8px 18px rgba(0,0,0,.45);
    visibility: hidden; transform-origin: 50% 0; transition: transform .25s var(--ease), filter .3s, opacity .3s, box-shadow .25s;
}
.ct-notes .bill i {
    font-style: normal; font-family: var(--f-display); font-size: 12px; line-height: 1; padding: 3px 8px; border-radius: 999px;
    color: #fff; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); white-space: nowrap;
}
.ct-notes .bill[data-sp="1"] i, .ct-notes .bill[data-sp="r4"] i { color: #2a1a00; }
.ct-notes .bill b { font-family: var(--f-display); font-size: 22px; line-height: 1.05; color: #0b3a1c; }
.ct-notes .bill.now { visibility: visible; }
.ct-notes .bill.in { visibility: visible; animation: ctBill .7s cubic-bezier(.25,1.2,.4,1) both; }
@keyframes ctBill {
    from { transform: translate(var(--fx, 0), var(--fy, 60px)) rotate(-160deg) scale(.3); opacity: .2; }
    70% { transform: translate(0, -6px) rotate(6deg) scale(1.12); opacity: 1; }
}
.ct-notes .bill.near { transform: translateY(3px) scale(1.14); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c), 0 0 30px var(--c), 0 10px 20px rgba(0,0,0,.45); }
.ct-notes.done .bill:not(.win) { filter: grayscale(.8) brightness(.5); opacity: .55; transform: scale(.9); }
.ct-notes .bill.win { transform: translateY(4px) scale(1.2); z-index: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--gold), 0 0 44px rgba(255,211,107,.9), 0 10px 20px rgba(0,0,0,.45); animation: ctBillWin .8s ease-in-out 3; }
@keyframes ctBillWin { 50% { transform: translateY(6px) scale(1.28) rotate(-3deg); } }

.ct-tile .nt, .ct-dock-picks .nt {
    position: absolute; top: -9px; right: -6px; z-index: 3; padding: 2px 8px; border-radius: 7px; rotate: 8deg;
    font: 800 12.5px/1.2 var(--f-display); color: #0b3a1c; white-space: nowrap;
    background: linear-gradient(160deg, #d9fbc4, #5fcf7a 60%, #2f9d50); box-shadow: 0 0 0 2px #fff6d6, 0 6px 14px rgba(0,0,0,.4);
    transition: filter .3s, opacity .3s;
}
.ct-tile .nt[hidden], .ct-dock-picks .nt[hidden] { display: none; }
.ct-tile .nt.in, .ct-dock-picks .nt.in { animation: ctNt .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes ctNt { from { scale: .2; opacity: 0; rotate: -30deg; } }
.ct-tile .nt.lost, .ct-dock-picks .nt.lost { filter: grayscale(1); opacity: .45; }
.ct-dock-picks button { position: relative; }
.ct-dock-picks .nt { top: -12px; right: -4px; font-size: 10px; padding: 1px 5px; }
@keyframes ctPop { from { transform: scale(.5); opacity: 0; } }

.ct-city {
    position: absolute; inset: 0; z-index: 5; overflow: hidden;
    perspective: 1100px; perspective-origin: 50% 20%;
    background:
        radial-gradient(80% 60% at 50% 110%, rgba(255,190,90,.25), transparent 70%),
        linear-gradient(180deg, rgba(12,8,34,.92), rgba(18,12,46,.75) 40%, rgba(10,8,26,.95));
    animation: ctCityIn .7s ease both;
}
.ct-city[hidden] { display: none; }
@keyframes ctCityIn { from { opacity: 0; } }
.ct-plane {
    --c: 110px; --tilt: 0deg;
    position: absolute; left: 0; top: 0; width: calc(var(--c) * 7); height: calc(var(--c) * 7);
    transform-style: preserve-3d; will-change: transform;
    border-radius: calc(var(--c) * .22);
    background: linear-gradient(135deg, #2f8a4a, #1f6b39);
    box-shadow: 0 0 0 calc(var(--c) * .08) #f3e3b6, 0 0 0 calc(var(--c) * .14) #b98a3e, 0 40px 80px rgba(0,0,0,.6);
}
.ct-park {
    position: absolute; inset: var(--c); border-radius: calc(var(--c) * .2);
    display: grid; place-content: center; text-align: center; gap: 4px;
    background:
        linear-gradient(90deg, transparent 47%, rgba(255,240,200,.18) 47% 53%, transparent 53%),
        linear-gradient(0deg, transparent 47%, rgba(255,240,200,.18) 47% 53%, transparent 53%),
        radial-gradient(circle at 50% 50%, #3fae63 0 22%, #2d8a4c 23% 60%, #237541 61%);
    box-shadow: inset 0 0 0 calc(var(--c) * .05) rgba(255,240,200,.25), inset 0 0 60px rgba(0,0,0,.25);
}
.ct-park b {
    font-family: var(--f-display); font-size: calc(var(--c) * .62); line-height: 1; letter-spacing: -.02em;
    background: linear-gradient(180deg, #fff6d6, #ffd36b 50%, #b8862b); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 0 rgba(0,0,0,.25));
}
.ct-park small { font-weight: 800; font-size: calc(var(--c) * .17); color: #fff6d6; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.ct-cells { position: absolute; inset: 0; transform-style: preserve-3d; }
.ct-cells .cell {
    position: absolute; left: calc(var(--gx) * var(--c)); top: calc(var(--gy) * var(--c));
    width: var(--c); height: var(--c); transform-style: preserve-3d;
}
.ct-cells .tile {
    position: absolute; inset: calc(var(--c) * .035); border-radius: calc(var(--c) * .12); overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 1px;
    padding: 0 3px calc(var(--c) * .06); text-align: center;
    background: linear-gradient(180deg, #fffaf0, #f1e4c4);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--d) 60%, #fff), 0 3px 0 #b99a5e;
    transition: box-shadow .3s, transform .3s;
}
.ct-cells .tile .band { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: var(--d); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.ct-cells .tile .nm { font-size: calc(var(--c) * .105); font-weight: 800; color: #5a4a2e; line-height: 1.05; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-cells .tile .val { font-family: var(--f-display); font-size: calc(var(--c) * .19); line-height: 1.05; color: #2a1a00; white-space: nowrap; }
.ct-cells .k-to .tile { background: linear-gradient(180deg, #f5edff, #ddcdf7); }
.ct-cells .k-to .val { font-size: calc(var(--c) * .15); color: #4a2a8a; }
.ct-cells .k-jl .tile { background: linear-gradient(180deg, #eef1f6, #c9cfdb); }
.ct-cells .k-jl .val { font-size: calc(var(--c) * .14); color: #3a4256; }
.ct-cells .k-ch .tile { background: linear-gradient(180deg, #e3fbff, #a9e8f2); }
.ct-cells .k-ch .val { color: #0f6d80; font-size: calc(var(--c) * .26); }
.ct-cells .k-go .tile { background: linear-gradient(180deg, #fff3c4, #ffd36b); }

.ct-cells .bb {
    position: absolute; left: 50%; bottom: 52%; width: 74%; height: auto;
    transform-origin: 50% 100%; transform: translateX(-50%) rotateX(calc(var(--tilt) * -1));
    filter: drop-shadow(0 6px 4px rgba(0,0,0,.3)); pointer-events: none;
}
.ct-cells .corner .bb { width: 84%; }
.ct-cells .bb.q {
    width: calc(var(--c) * .5); height: calc(var(--c) * .5); bottom: 50%; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--f-display); font-size: calc(var(--c) * .34); color: #fff;
    background: radial-gradient(circle at 35% 30%, #9ff0ff, var(--cyan) 55%, #0f7f95);
    box-shadow: 0 0 0 3px #fff, 0 0 20px rgba(55,215,242,.8);
    animation: ctQ 2.4s ease-in-out infinite;
}
@keyframes ctQ { 50% { margin-bottom: calc(var(--c) * .06); } }
.ct-cells .cell.hit .tile { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--d), 0 0 30px var(--d); animation: ctHit .6s var(--ease); }
@keyframes ctHit { 40% { transform: translateZ(10px) scale(1.06); } }
.ct-cells .cell.up .val { animation: ctUp .8s var(--ease); color: #b8173a; }
@keyframes ctUp { 40% { transform: scale(1.5); } }
.ct-float {
    position: absolute; left: 50%; bottom: 70%; z-index: 3; pointer-events: none; white-space: nowrap;
    font-family: var(--f-display); font-size: calc(var(--c) * .3); color: #fff;
    transform-origin: 50% 100%; transform: translateX(-50%) rotateX(calc(var(--tilt) * -1));
    text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 18px var(--fc, var(--gold));
    animation: ctFloat 1.6s ease-out forwards;
}
.ct-float.gold { --fc: var(--gold); color: #fff3c4; }
.ct-float.cyan { --fc: var(--cyan); color: #d8fbff; }
.ct-float.violet { --fc: var(--violet); color: #efe4ff; }
@keyframes ctFloat { from { opacity: 0; margin-bottom: 0; } 15% { opacity: 1; } to { opacity: 0; margin-bottom: calc(var(--c) * .9); } }
.ct-token {
    position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
    width: calc(var(--c) * .88); height: calc(var(--c) * 1.25);
    margin-left: calc(var(--c) * -.44); margin-top: calc(var(--c) * -1.25);
    transform-origin: 50% 100%;
}
.ct-token img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 6px rgba(0,0,0,.45)); }

.ct-token .walk {
    position: absolute; inset: 0; display: none; background-repeat: no-repeat; background-position: 0 0;
    filter: drop-shadow(0 8px 6px rgba(0,0,0,.45));
}
.ct-token.has-walk img { display: none; }
.ct-token.has-walk .walk { display: block; }

.ct-hud {
    position: absolute; left: 12px; right: 12px; top: 36px; z-index: 6; pointer-events: none;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.ct-hud .rolls {
    display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 14px;
    background: rgba(14,9,36,.62); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.ct-hud .rolls small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-right: 3px; }
.ct-hud .rolls i {
    width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-style: normal;
    font-size: 11px; font-weight: 800; color: rgba(255,255,255,.65); background: rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background .3s, color .3s, transform .3s;
}
.ct-hud .rolls i.extra { box-shadow: inset 0 0 0 1px var(--gold); }
.ct-hud .rolls i.was { background: rgba(60,201,140,.3); color: #c9ffe6; }
.ct-hud .rolls i.now { background: var(--gold); color: #2a1a00; transform: scale(1.15); box-shadow: 0 0 14px rgba(255,211,107,.7); }
.ct-hud .rolls i.skip { font-size: 12px; }
.ct-hud .sum {
    text-align: right; padding: 8px 14px 10px; border-radius: 16px;
    background: rgba(14,9,36,.62); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,211,107,.3), 0 0 30px rgba(255,211,107,.15);
}
.ct-hud .sum small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ct-hud .sum b { display: block; font-family: var(--f-display); font-size: clamp(26px, 3.6vw, 40px); line-height: 1.05; color: #fff3c4; text-shadow: 0 0 20px rgba(255,211,107,.6); }
.ct-hud .sum b.bump { animation: ctBump .6s var(--ease); }
@keyframes ctBump { 35% { transform: scale(1.25); color: #fff; } }
.ct-hud .sum em {
    display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 8px; font-style: normal;
    font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(160deg, #8a93a8, #4a5268);
    box-shadow: 0 0 12px rgba(200,210,230,.4);
}
.ct-hud .sum em[hidden] { display: none; }

.ct-dice {
    position: absolute; left: 50%; bottom: 18px; z-index: 6; translate: -50% 0; display: flex; gap: 18px;
    perspective: 500px; pointer-events: none; transition: opacity .3s, transform .3s;
}
.ct-dice.off { opacity: 0; transform: translateY(20px); }
.ct-dice.toss { animation: ctToss 1.35s cubic-bezier(.3,.6,.3,1); }
@keyframes ctToss { 0% { transform: translateY(-160px) scale(.6); } 55% { transform: translateY(0) scale(1.05); } 70% { transform: translateY(-18px); } 85% { transform: translateY(0); } }
.ct-dice .die { --s: 46px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; }
.ct-dice .die i {
    position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden;
    background-color: #fff; box-shadow: inset 0 0 0 2px #f0e6e6, inset 0 -4px 8px rgba(0,0,0,.12);
}
.ct-dice .die .f1 { transform: translateZ(calc(var(--s) / 2)); background-image: radial-gradient(circle at 50% 50%, #e0203c 0 13%, transparent 14%); }
.ct-dice .die .f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2));
    background-image: radial-gradient(circle at 28% 24%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 72% 24%, #1d1b33 0 9%, transparent 10%),
                      radial-gradient(circle at 28% 50%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 72% 50%, #1d1b33 0 9%, transparent 10%),
                      radial-gradient(circle at 28% 76%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 72% 76%, #1d1b33 0 9%, transparent 10%); }
.ct-dice .die .f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2));
    background-image: radial-gradient(circle at 26% 26%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 50% 50%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 74% 74%, #1d1b33 0 9%, transparent 10%); }
.ct-dice .die .f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2));
    background-image: radial-gradient(circle at 28% 28%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 72% 28%, #1d1b33 0 9%, transparent 10%),
                      radial-gradient(circle at 28% 72%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 72% 72%, #1d1b33 0 9%, transparent 10%); }
.ct-dice .die .f5 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2));
    background-image: radial-gradient(circle at 28% 28%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 72% 28%, #1d1b33 0 9%, transparent 10%),
                      radial-gradient(circle at 50% 50%, #1d1b33 0 9%, transparent 10%),
                      radial-gradient(circle at 28% 72%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 72% 72%, #1d1b33 0 9%, transparent 10%); }
.ct-dice .die .f2 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
    background-image: radial-gradient(circle at 28% 28%, #1d1b33 0 9%, transparent 10%), radial-gradient(circle at 72% 72%, #1d1b33 0 9%, transparent 10%); }

.ct-event {
    position: absolute; left: 14px; bottom: 14px; z-index: 7; max-width: min(420px, 60%);
    display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; color: #fff;
    background: rgba(16,10,40,.82); backdrop-filter: blur(8px);
    box-shadow: 0 0 0 1px rgba(255,211,107,.35), 0 16px 40px rgba(0,0,0,.45);
    pointer-events: none;
}
.ct-event[hidden] { display: none; }
.ct-event.in { animation: ctEvent .55s cubic-bezier(.2,1.3,.4,1); }
@keyframes ctEvent { from { transform: translateY(30px) scale(.8); opacity: 0; } }
.ct-event img { width: 84px; height: 84px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.ct-event b { display: block; font-family: var(--f-display); font-size: 17px; line-height: 1.2; color: #fff3c4; }
.ct-event span { display: block; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.85); margin-top: 2px; }

.ct-dice .dsum {
    position: absolute; left: 50%; top: -34px; translate: -50% 0; white-space: nowrap;
    padding: 3px 12px; border-radius: 999px; font-family: var(--f-display); font-size: 16px; color: #2a1a00;
    background: linear-gradient(180deg, #fff6d6, var(--gold)); box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.ct-dice .dsum:empty { display: none; }
.ct-dice .dsum.dbl { background: linear-gradient(180deg, #d9fbff, var(--cyan)); color: #053540; }
.ct-dice.toss .dsum { animation: ctDsum .45s 1.2s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes ctDsum { from { transform: scale(.3); opacity: 0; } }

.ct-cells .star {
    position: absolute; left: 50%; bottom: 96%; z-index: 2; display: none; font-style: normal; white-space: nowrap;
    font-size: calc(var(--c) * .2); line-height: 1; color: #ffd36b; letter-spacing: -.05em;
    transform-origin: 50% 100%; transform: translateX(-50%) rotateX(calc(var(--tilt) * -1));
    text-shadow: 0 0 10px rgba(255,211,107,.9), 0 2px 0 #8a5d17;
}
.ct-cells[data-lv="1"] .star, .ct-cells[data-lv="2"] .star { display: block; }
.ct-cells[data-lv="2"] .star::after { content: '★'; }
.ct-cells[data-lv="1"] .k-st .bb, .ct-cells[data-lv="2"] .k-st .bb { filter: drop-shadow(0 6px 4px rgba(0,0,0,.3)) drop-shadow(0 0 10px rgba(255,211,107,.75)); }
.ct-cells[data-lv="1"] .k-st .tile, .ct-cells[data-lv="2"] .k-st .tile { background: linear-gradient(180deg, #fff8dc, #ffe39a); }
.ct-cells .bb.grow { animation: ctGrow .8s cubic-bezier(.2,1.5,.4,1); }
@keyframes ctGrow { from { scale: .3; opacity: .2; } }

.ct-token::after {
    content: ''; position: absolute; left: -8%; right: -8%; top: 18%; bottom: 0; opacity: 0; transition: opacity .35s;
    border-radius: 8px 8px 0 0; pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0 13%, #3a4256 13% 19%), linear-gradient(180deg, #3a4256 0 5%, transparent 5% 95%, #3a4256 95%);
    filter: drop-shadow(0 0 2px rgba(255,255,255,.4));
}
.ct-token.jailed::after { opacity: 1; }

.ct-card {
    position: absolute; left: 76%; top: 50%; z-index: 7; width: min(200px, 38%); aspect-ratio: 5 / 7;
    translate: -50% -50%; perspective: 900px; pointer-events: none;
}
.ct-card[hidden] { display: none; }
.ct-card.in { animation: ctCardIn .6s cubic-bezier(.2,1.2,.4,1); }
@keyframes ctCardIn { from { transform: translateY(60%) rotate(-12deg) scale(.4); opacity: 0; } }
.ct-card .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.3,.5,1); }
.ct-card.flip .in { transform: rotateY(180deg); }
.ct-card .bk, .ct-card .fr {
    position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
    background: linear-gradient(160deg, rgba(40,32,96,.97), rgba(14,10,38,.98));
    border: 1.5px solid rgba(160,245,255,.75);
    box-shadow: 0 0 0 1px rgba(55,215,242,.35), 0 0 28px rgba(55,215,242,.45), inset 0 0 30px rgba(55,215,242,.18), 0 24px 48px rgba(0,0,0,.55);
}

.ct-card .bk::before, .ct-card .fr::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(rgba(120,230,255,.07) 1px, transparent 1px) 0 0 / 100% 14px,
                linear-gradient(90deg, rgba(120,230,255,.07) 1px, transparent 1px) 0 0 / 14px 100%;
}
.ct-card .bk::after, .ct-card .fr::after {
    content: ''; position: absolute; top: -60%; left: -80%; width: 60%; height: 220%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: rotate(20deg); animation: ctCardShine 2.4s ease-in-out infinite;
}
@keyframes ctCardShine { 0%, 30% { left: -80%; } 70%, 100% { left: 130%; } }
.ct-card .bk { color: #e9feff; }
.ct-card .bk b {
    position: relative; font-family: var(--f-display); font-size: 92px; line-height: 1;
    color: #effeff; text-shadow: 0 0 12px #37d7f2, 0 0 32px rgba(55,215,242,.8);
    animation: ctCardQ 1.6s ease-in-out infinite;
}
@keyframes ctCardQ { 50% { transform: translateY(-4px) scale(1.05); text-shadow: 0 0 18px #37d7f2, 0 0 48px rgba(55,215,242,.95); } }
.ct-card .bk small, .ct-card .fr small { position: relative; font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(190,240,255,.85); }
.ct-card .fr { transform: rotateY(180deg); padding: 12px; border-color: rgba(255,214,110,.8); box-shadow: 0 0 0 1px rgba(255,190,60,.35), 0 0 30px rgba(255,190,60,.45), inset 0 0 30px rgba(255,190,60,.15), 0 24px 48px rgba(0,0,0,.55); }
.ct-card .fr img { position: relative; width: 74%; height: auto; filter: drop-shadow(0 0 14px rgba(120,255,190,.45)) drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.ct-card .fr b {
    position: relative; font-family: var(--f-display); font-size: 42px; line-height: 1;
    background: linear-gradient(180deg, #fff6d0, #ffb300); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 10px rgba(255,180,0,.6));
}
.ct-card .fr small { letter-spacing: .02em; text-transform: none; font-size: 12px; color: rgba(255,240,210,.85); }

.ct-fly2 {
    position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; white-space: nowrap;
    font-family: var(--f-display); font-size: 26px; color: #fff3c4; text-shadow: 0 2px 0 rgba(0,0,0,.4), 0 0 18px rgba(255,211,107,.9);
}

.ct-total {
    position: absolute; left: 50%; top: 42%; z-index: 7; translate: -50% -50%; min-width: min(340px, 80%);
    padding: 18px 28px 20px; border-radius: 24px; text-align: center; color: #fff; pointer-events: none;
    background: radial-gradient(120% 100% at 50% 0%, rgba(80,50,140,.95), rgba(16,10,40,.95));
    box-shadow: 0 0 0 2px rgba(255,211,107,.7), 0 0 60px rgba(255,211,107,.35), 0 24px 60px rgba(0,0,0,.55);
}
.ct-total[hidden] { display: none; }
.ct-total.in { animation: ctRes .6s cubic-bezier(.2,1.3,.4,1); }
.ct-total small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.ct-total b { display: block; font-family: var(--f-display); font-size: clamp(44px, 7vw, 76px); line-height: 1.05; color: #fff3c4; text-shadow: 0 0 30px rgba(255,211,107,.8); }
.ct-total span { display: block; font-size: 14px; color: rgba(255,255,255,.85); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .ct-card.in, .ct-total.in, .ct-cells .bb.grow, .ct-card .bk::after, .ct-card .fr::after, .ct-card .bk b { animation: none; } .ct-card .in { transition: none; } }

.ct-fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; width: 100%; height: 100%; }
.ct-flash { position: absolute; inset: 0; z-index: 8; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.65), transparent 70%); opacity: 0; }
.ct-flash.on { animation: ctFlash .6s ease-out; }
@keyframes ctFlash { 15% { opacity: 1; } }
.ct-stage.shake { animation: ctShake .45s ease-in-out; }
@keyframes ctShake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-3px, 2px); } }

.ct-result {
    position: absolute; left: 57%; top: 26%; z-index: 9; translate: -50% -50%; text-align: center; color: #fff;
    padding: 16px 26px; border-radius: 20px; min-width: 230px;
    background: rgba(16,10,40,.84); backdrop-filter: blur(8px);
    box-shadow: 0 0 0 2px var(--c, var(--gold)), 0 0 60px color-mix(in srgb, var(--c, var(--gold)) 55%, transparent);
    animation: ctRes .6s cubic-bezier(.2,1.4,.4,1);
}
.ct-result.over { top: 50%; }
@keyframes ctRes { from { transform: scale(.4); opacity: 0; } }
.ct-result small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--gold)); }
.ct-result b { display: block; font-family: var(--f-display); font-size: clamp(38px, 6vw, 58px); line-height: 1.1; }
.ct-result span { display: block; font-size: 14px; color: rgba(255,255,255,.8); margin-top: 2px; }
.ct-result.win span { color: var(--green); font-weight: 800; font-size: 16px; }

.ct-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.ct-tile {
    position: relative; border: 0; border-radius: 16px; padding: 14px 8px 12px; color: #fff; cursor: pointer; text-align: center;
    display: grid; justify-items: center; align-content: start; gap: 6px; isolation: isolate;
    background:
        radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%),
        linear-gradient(180deg, #1b1538, #110d26);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 10px 26px rgba(0,0,0,.35);
    transition: transform .2s var(--ease), box-shadow .25s, filter .25s;
    overflow: visible; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ct-tile::after {
    content: ''; position: absolute; left: 18%; right: 18%; top: 0; height: 3px; border-radius: 0 0 3px 3px; pointer-events: none;
    background: var(--c); box-shadow: 0 0 14px var(--c), 0 0 4px var(--c);
}
.ct-tile::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.12) 45%, transparent 60%);
    background-size: 250% 100%; background-position: 120% 0; transition: background-position .7s;
}
.ct-tile:hover:not(:disabled)::before { background-position: -20% 0; }
.ct-tile:hover:not(:disabled) { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 75%, transparent), 0 14px 34px color-mix(in srgb, var(--c) 28%, transparent); }
.ct-tile:active:not(:disabled) { transform: scale(.97); }
.ct-tile:disabled { cursor: default; filter: saturate(.55) brightness(.7); }
.ct-tile .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 65%, #fff); }
.ct-tile .coin {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--f-display); font-size: 22px; color: #fff;
    background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 55%, #000));
    box-shadow: 0 0 0 3px rgba(255,255,255,.14), 0 0 0 5px color-mix(in srgb, var(--c) 35%, transparent), 0 8px 18px color-mix(in srgb, var(--c) 40%, transparent), inset 0 -4px 8px rgba(0,0,0,.25);
    text-shadow: 0 2px 4px rgba(0,0,0,.35);
    transition: transform .3s var(--ease);
}
.ct-tile:hover:not(:disabled) .coin { transform: translateY(-2px) rotate(-6deg); }
.ct-tile[data-spot="1"] .coin, .ct-tile[data-spot="r4"] .coin { color: #2a1a00; text-shadow: 0 1px 0 rgba(255,255,255,.4); }

.ct-tile .die {
    width: 26px; height: 26px; border-radius: 7px; background-color: #fff;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.14), 0 3px 6px rgba(0,0,0,.3);
    --dot: radial-gradient(circle, #241a4a 0 2.6px, transparent 3.2px);
}
.ct-tile .die.p2 { background-image: var(--dot), var(--dot); background-size: 26px 26px; background-repeat: no-repeat; background-position: -6px -6px, 6px 6px; }
.ct-tile .die.p4 { background-image: var(--dot), var(--dot), var(--dot), var(--dot); background-size: 26px 26px; background-repeat: no-repeat; background-position: -6px -6px, 6px -6px, -6px 6px, 6px 6px; }
.ct-tile .bn { font-family: var(--f-display); font-size: 13.5px; line-height: 1.1; }
.ct-tile .tot { display: block; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.ct-tile .mine {
    position: absolute; top: -10px; left: 50%; translate: -50% 0; z-index: 2; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap;
    color: #2a1a00; background: linear-gradient(180deg, #fff6d6, var(--gold)); box-shadow: 0 4px 12px rgba(0,0,0,.35), 0 0 12px rgba(255,211,107,.5);
}
.ct-tile .mine[hidden] { display: none; }
.ct-tile.placed, .ct-dock-picks button.placed { animation: ctPlaced .35s var(--ease); }
@keyframes ctPlaced { 40% { transform: scale(1.05); filter: brightness(1.3); } }
.ct-fly {
    position: absolute; left: 50%; top: 0; translate: -50% 0; z-index: 3; pointer-events: none; white-space: nowrap;
    font-style: normal; font-size: 13px; font-weight: 800; color: #fff3c4; text-shadow: 0 2px 6px rgba(0,0,0,.6);
    animation: ctFly .8s ease-out forwards;
}
@keyframes ctFly { to { transform: translateY(-38px); opacity: 0; } }
.ct-tile.won { filter: none; box-shadow: inset 0 0 0 2px var(--c), 0 0 40px color-mix(in srgb, var(--c) 60%, transparent); animation: ctWon 1s ease-in-out 3; }
.ct-tile.won .coin { animation: ctCoin 1s ease-in-out 3; }
@keyframes ctWon { 50% { transform: translateY(-4px); } }
@keyframes ctCoin { 50% { transform: scale(1.12); } }
.ct-board.settled .ct-tile:not(.won) { filter: saturate(.35) brightness(.55); }

.ct-list { display: grid; gap: 6px; max-height: 290px; overflow: auto; }
.ct-list .row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ct-list .row.me { color: var(--gold); }
.ct-list .av { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--a); flex: none; }
.ct-list .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-list .dots { display: flex; gap: 2px; }
.ct-list .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ct-list b.w { color: var(--green); }
.ct-list .empty { font-size: 13px; color: var(--dim); }
.ct-stats .r { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.ct-stats .r .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.ct-stats .r .bar i { display: block; height: 100%; border-radius: 4px; background: var(--c); transition: width .6s var(--ease); }
.ct-stats .r b { text-align: right; }

.ct-dock-picks { display: flex; gap: 5px; flex: 1; }
.ct-dock-picks button {
    position: relative; flex: 1; min-width: 0; min-height: 50px; border: 0; border-radius: 12px; padding: 5px 0; color: #fff;
    display: grid; place-items: center; align-content: center; gap: 1px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c) 90%, #fff), color-mix(in srgb, var(--c) 50%, #000));
    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;
}
.ct-dock-picks button[data-spot="1"], .ct-dock-picks button[data-spot="r4"] { color: #1f2430; }
.ct-dock-picks button b { font-family: var(--f-display); font-size: 16px; font-weight: 700; white-space: nowrap; }
.ct-dock-picks button small { font-size: 10px; font-weight: 800; opacity: .95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-dock-picks button small:empty, .ct-dock-picks button small[hidden] { display: none; }
.ct-dock-picks button:active { transform: scale(.95); }
.ct-dock-picks button:disabled { filter: grayscale(.6) brightness(.6); }
.ct-dock-picks button.won { box-shadow: 0 0 0 2px #fff, 0 0 18px var(--c); }
.ct-dock-picks .ct-fly { top: -8px; }

@media (max-width: 1200px) and (min-width: 761px) {
    .ct-board { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    .ct-stage { height: clamp(300px, calc(var(--free, 999px) - 50px), 470px); border-radius: 18px; }
    .ct-wheel-wrap { --ws: min(88cqw, 104cqh); left: 53%; top: calc(48cqh - var(--ws) / 2); }
    .ct-lion { height: 32cqh; left: -4cqw; bottom: 0; }
    .ct-timer { top: 36px; left: 10px; padding: 4px; gap: 0; }
    .ct-timer .ring { width: 46px; height: 46px; }
    .ct-timer .ring::before { inset: 4px; }
    .ct-timer b { font-size: 14px; }
    .ct-timer .tx { display: none; }
    .ct-chance .tosha { height: 46%; }
    .ct-chance.spin .tosha { height: 28%; }
    .ct-chance .card-ch { top: 36px; min-width: 0; width: calc(100% - 28px); padding: 8px 12px 10px; }
    .ct-chance .card-ch span { font-size: 12px; }
    .ct-chance .note { left: 50%; padding: 10px 22px; }
    .ct-chance .note b { font-size: 52px; }
    .ct-notes { gap: 4px; }
    .ct-notes:not(:empty) { margin-top: 6px; }
    .ct-notes .bill { min-width: 0; flex: 1; max-width: 58px; padding: 5px 3px 4px; }
    .ct-notes .bill i { font-size: 10px; padding: 2px 5px; }
    .ct-notes .bill b { font-size: 16px; }
    .ct-hud { top: 32px; left: 8px; right: 8px; }
    .ct-hud .rolls { padding: 5px 7px; gap: 3px; }
    .ct-hud .rolls small { display: none; }
    .ct-hud .rolls i { width: 20px; height: 20px; font-size: 10px; border-radius: 6px; }
    .ct-hud .sum { padding: 5px 10px 7px; }
    .ct-hud .sum small { font-size: 9px; }
    .ct-dice { bottom: 10px; gap: 12px; }
    .ct-dice .die { --s: 34px; }
    .ct-dice .die i { border-radius: 7px; }

    .ct-event { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 6px 10px 6px 6px; gap: 8px; border-radius: 14px; }
    .ct-event img { width: 54px; height: 54px; }
    .ct-event b { font-size: 14px; }
    .ct-event span { font-size: 11.5px; }
    .ct-result { left: 50%; top: 30%; min-width: 0; width: calc(100% - 36px); padding: 12px 14px; }
    .ct-result b { font-size: 40px; }

    .ct-board { display: none; }
    .ct-hist { margin-bottom: 8px; padding: 4px 6px; border-radius: 13px; }
    .ct-hist .cap { display: none; }
    .ct-hist .h { height: 30px; min-width: 30px; padding: 0 8px; font-size: 13px; }
}
@media (max-width: 760px) and (max-height: 700px) {
    .ct-lion { height: 34cqh; }
}
@media (min-width: 761px) { .ct-dock-picks { display: none; } }

html.is-lite .ct-cells .bb.q { animation: none; }
html.is-lite .ct-beam, html.is-lite .ct-hub .glint { display: none; }
html.is-lite .ct-beam { display: none; }
html.is-lite .ct-timer, html.is-lite .ct-hud .rolls, html.is-lite .ct-hud .sum, html.is-lite .ct-event, html.is-lite .ct-result { backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) {
    .ct-tile.won, .ct-tile.won .coin, .ct-cells .bb.q, .ct-dice.toss, .ct-stage.hurry .ct-timer b, .ct-beam, .ct-hub .glint, .ct-stage.sp-hit .ct-wheel-wrap, .ct-pop, .ct-notes .bill, .ct-tile .nt { animation: none; }
}

.ct-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ct-city.is-3d { background: #0d0822; perspective: none; }
.ct-city.is-3d .ct-plane { display: none; }
.ct-city.is-3d .ct-dice { bottom: 22px; }
.ct-city.is-3d .ct-dice .die { display: none; }
.ct-city.is-3d .ct-dice.toss { animation: none; }

.ct-city.is-3d .ct-dice { display: none; }

.ct-stage[data-bonus="1"] .ct-head .hash { opacity: 0; }
.ct-city.is-3d::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(6,3,18,.55) 100%);
}

.ct-city.is-3d .ct-hud { z-index: 6; }
.ct-city.is-3d .ct-hud .sum {
    position: relative; min-width: 128px; padding: 9px 16px 11px;
    background: linear-gradient(160deg, rgba(40,24,90,.78), rgba(12,8,30,.82));
    box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 40px rgba(255,190,80,.18);
}
.ct-city.is-3d .ct-hud .sum::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: conic-gradient(from var(--ct-a, 0deg), #ffd36b, #ff6685, #b48cff, #37d7f2, #3cc98c, #ffd36b);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: ctRing 4s linear infinite;
}
@property --ct-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ctRing { to { --ct-a: 360deg; } }
.ct-city.is-3d .ct-hud .rolls { background: linear-gradient(160deg, rgba(40,24,90,.72), rgba(12,8,30,.8)); box-shadow: 0 10px 24px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.1); }
.ct-city.is-3d .ct-event {
    background: linear-gradient(100deg, rgba(48,28,104,.9), rgba(14,9,36,.88));
    box-shadow: inset 3px 0 0 #ffd36b, 0 0 0 1px rgba(255,211,107,.3), 0 18px 44px rgba(0,0,0,.5);
}
@media (prefers-reduced-motion: reduce) { .ct-city.is-3d .ct-hud .sum::before { animation: none; } }
html.is-lite .ct-city.is-3d .ct-hud .sum::before { animation: none; }

.ct-stage > .brandmark { --bm-y: 11%; }
