body[data-page="tower"] { --gem: #5ff2d0; --gem-2: #1fc7a4; --fire: #ff7a3d; --fire-2: #ff3d5e; --gold: #ffd35a; --vio: #8b5cff; }

.tl {
    --rh: 58px;
    --tw: 470px;
    --lab: 74px;
    --n: 4;
    --cam: 0px;
    --par: 0;
    position: relative; overflow: hidden; border-radius: var(--r-xl); height: 720px;
    background: #0d0726;
    box-shadow: var(--sh-screen), 0 0 0 1px rgba(139,92,255,.32), 0 0 54px -12px rgba(120,80,255,.5);
    isolation: isolate; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}

.tl-bg { position: absolute; inset: -6% 0; z-index: 0;
    background: url(../assets/art/tower/sky-wide.webp) center / cover no-repeat;
    transform: translate3d(0, calc(var(--par) * 5%), 0) scale(1.06);
    transition: transform 1.1s cubic-bezier(.22,.9,.3,1); }
.tl-bg::after { content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 55% at 50% 52%, rgba(13,7,38,.5), rgba(13,7,38,0) 70%),
                linear-gradient(180deg, rgba(13,7,38,.25), rgba(13,7,38,0) 30%, rgba(13,7,38,.4)); }
.tl.is-tall .tl-bg { background-image: url(../assets/art/tower/sky-tall.webp); }
.tl-sky, .tl-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.tl-sky { z-index: 1; }
.tl-fx { z-index: 8; }

.tl-view { position: absolute; inset: 0; z-index: 3; overflow: hidden; }
.tl-view.shake { animation: tlShake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes tlShake {
    10%, 90% { transform: translate3d(-2px, 1px, 0); } 20%, 80% { transform: translate3d(4px, -2px, 0); }
    30%, 50%, 70% { transform: translate3d(-7px, 2px, 0); } 40%, 60% { transform: translate3d(7px, -1px, 0); }
}
.tl-track {
    position: absolute; left: 50%; bottom: 0; width: var(--tw); margin-left: calc(var(--tw) / -2);
    display: flex; flex-direction: column; padding: 0 14px;
    transform: translate3d(0, var(--cam), 0);
    transition: transform .9s cubic-bezier(.22,.9,.25,1);
}
.tl-track.snap { transition: none; }

.tl-track::before {
    content: ""; position: absolute; inset: 40px 0 -80px; z-index: -1; border-radius: 26px 26px 0 0;
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 2px, transparent 2px var(--rh)),
        linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, rgba(255,255,255,.035)),
        linear-gradient(180deg, rgba(48,30,108,.86), rgba(26,16,64,.92) 60%, rgba(18,10,46,.96));
    box-shadow: inset 0 0 0 1px rgba(180,150,255,.16), inset 14px 0 0 rgba(255,255,255,.03), inset -14px 0 0 rgba(255,255,255,.03),
                0 30px 80px -20px rgba(0,0,0,.8), 0 0 60px -10px rgba(139,92,255,.35);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.tl-summit { position: relative; flex: none; height: calc(var(--rh) * 1.6); display: grid; place-items: center; }
.tl-summit img { height: calc(var(--rh) * 1.25); width: auto; filter: drop-shadow(0 0 18px rgba(255,211,90,.55)); animation: tlCrown 3.4s ease-in-out infinite; }
.tl-summit span { position: absolute; bottom: 4px; font: 800 9.5px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,230,160,.7); }
.tl-summit::before { content: ""; position: absolute; inset: 10% 26%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,211,90,.38), transparent); animation: tlGlow 2.6s ease-in-out infinite; }
@keyframes tlCrown { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes tlGlow { 50% { opacity: .5; transform: scale(.9); } }
.tl[data-phase="done"].is-top .tl-summit img { animation: tlCrownWin .9s cubic-bezier(.3,1.6,.5,1) both, tlCrown 3.4s 1s ease-in-out infinite; }
@keyframes tlCrownWin { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } }

.tl-rows { display: flex; flex-direction: column-reverse; gap: 0; }

.tl-base { flex: none; height: calc(var(--rh) * 1.42); display: grid; align-items: end; justify-items: end; padding: 0 10px 8px; position: relative; }

.tl-base::before { content: ""; position: absolute; left: -10px; right: -10px; top: 10px; bottom: -80px; border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, #4a3592, #2a1a5e); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 -8px 26px -10px rgba(139,92,255,.6); }
.tl-base span { position: relative; font: 800 9.5px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(220,205,255,.55); }

.tl-row { position: relative; flex: none; height: var(--rh); display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; gap: 10px;
    padding: 5px 0; transition: opacity .4s; }
.tl-x { justify-self: start; display: grid; place-items: center; min-width: calc(var(--lab) - 8px); height: calc(var(--rh) * .52); padding: 0 8px; border-radius: 10px;
    font: 800 12px/1 Unbounded, sans-serif; letter-spacing: -.02em; color: rgba(225,215,255,.5);
    background: rgba(10,6,30,.5); box-shadow: inset 0 0 0 1px rgba(180,150,255,.14); transition: color .3s, background .3s, box-shadow .3s, transform .3s; white-space: nowrap; }
.tl-tiles { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; height: 100%; }

.tl-tile { position: relative; height: 100%; padding: 0; border: 0; background: none; cursor: default; perspective: 600px;
    -webkit-tap-highlight-color: transparent; outline: none; }
.tl-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,1.35,.5,1); }
.tl-tile .f, .tl-tile .b { position: absolute; inset: 0; border-radius: 12px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.tl-tile .f {
    background: linear-gradient(160deg, rgba(76,56,160,.75), rgba(36,24,88,.85) 55%, rgba(26,16,66,.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -3px 0 rgba(0,0,0,.28), inset 0 0 0 1px rgba(170,140,255,.18);
    transition: box-shadow .3s, background .3s, filter .3s;
}

.tl-tile .f::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--rh) * .34); height: calc(var(--rh) * .34);
    transform: translate(-50%, -50%) rotate(45deg); border-radius: 4px;
    border: 2px solid rgba(190,170,255,.28); box-shadow: 0 0 0 4px rgba(190,170,255,.05); transition: border-color .3s, box-shadow .3s; }

.tl-tile .f::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-18deg); opacity: 0; }
.tl-tile .b { transform: rotateY(180deg); display: grid; place-items: center; }
.tl-tile .b img { position: absolute; left: 7%; top: 9%; width: 86%; height: 82%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.tl-tile.is-open .tl-in { transform: rotateY(180deg); }

.tl-tile.is-gem .b { background: radial-gradient(90% 120% at 50% 60%, rgba(95,242,208,.55), rgba(20,90,90,.85) 60%, rgba(10,40,50,.95));
    box-shadow: inset 0 0 0 1.5px rgba(150,255,230,.7), 0 0 22px -2px rgba(95,242,208,.65); }
.tl-tile.is-trap .b { background: radial-gradient(90% 120% at 50% 60%, rgba(255,122,61,.65), rgba(130,20,50,.9) 62%, rgba(50,6,24,.95));
    box-shadow: inset 0 0 0 1.5px rgba(255,170,120,.8), 0 0 26px 0 rgba(255,80,60,.7); }
.tl-tile.is-trap.is-pick .b img { animation: tlDragon .6s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes tlDragon { 0% { transform: translateY(40%) scale(.3); } 70% { transform: translateY(-8%) scale(1.25); } 100% { transform: none; } }
.tl-tile.is-gem.is-pick .b img { animation: tlGem .55s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes tlGem { 0% { transform: scale(.2) rotate(-30deg); } 70% { transform: scale(1.2) rotate(6deg); } 100% { transform: none; } }

.tl-tile.is-ghost .b { filter: saturate(.6) brightness(.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.tl-tile.is-ghost .b img { left: 18%; top: 18%; width: 64%; height: 64%; opacity: .8; }

.tl-row.is-lock .tl-tile .f { filter: brightness(.66) saturate(.7); }
.tl-row.is-done .tl-x { color: #06281f; background: linear-gradient(180deg, #c8fff0, var(--gem)); box-shadow: 0 0 14px -2px rgba(95,242,208,.6); }
.tl-row.is-lost .tl-x { color: #fff; background: linear-gradient(180deg, #ff8a6a, var(--fire-2)); }
.tl-row.is-act .tl-x { color: #fff; background: linear-gradient(180deg, #a07bff, #6a3cf0); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 22px -2px rgba(139,92,255,.9); transform: scale(1.06); }
.tl-row.is-act::before { content: ""; position: absolute; left: calc(var(--lab) + 2px); right: -6px; top: 1px; bottom: 1px; border-radius: 16px;
    background: linear-gradient(90deg, rgba(139,92,255,.0), rgba(139,92,255,.22) 30%, rgba(95,242,208,.18) 70%, rgba(95,242,208,0));
    box-shadow: inset 0 0 0 1px rgba(160,130,255,.35); animation: tlRow 2s ease-in-out infinite; pointer-events: none; }
@keyframes tlRow { 50% { opacity: .55; } }
.tl-row.is-act .tl-tile { cursor: pointer; }
.tl-row.is-act .tl-tile .f { background: linear-gradient(160deg, rgba(120,92,230,.9), rgba(60,40,140,.92) 55%, rgba(38,24,96,.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.25), inset 0 0 0 1.5px rgba(150,240,220,.45), 0 8px 18px -8px rgba(95,242,208,.55); }
.tl-row.is-act .tl-tile .f::before { border-color: rgba(150,255,230,.6); box-shadow: 0 0 12px rgba(95,242,208,.45); }
.tl-row.is-act .tl-tile .f::after { animation: tlSheen 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
@keyframes tlSheen { 0% { left: -60%; opacity: 0; } 15% { opacity: 1; } 45%, 100% { left: 130%; opacity: 0; } }
.tl-row.is-act .tl-tile .tl-in { animation: tlFloat 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.3s); }
@keyframes tlFloat { 50% { transform: translateY(-3px); } }
@media (hover: hover) {
    .tl-row.is-act .tl-tile:hover .tl-in { animation: none; transform: translateY(-5px) scale(1.04); }
    .tl-row.is-act .tl-tile:hover .f { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 0 2px var(--gem), 0 12px 26px -8px rgba(95,242,208,.8); }
}
.tl-row.is-act .tl-tile:active .tl-in { transform: scale(.96); }
.tl-row.is-act .tl-tile:focus-visible .f { box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgba(95,242,208,.6); }
.tl-tile.is-aim .f { box-shadow: inset 0 0 0 2px #fff, 0 0 22px rgba(255,255,255,.4) !important; }
.tl[data-phase="wait"] .tl-row.is-act .tl-tile:not(.is-aim) .f { filter: brightness(.75); }

.tl-lion { position: absolute; left: 0; top: 0; z-index: 4; height: calc(var(--rh) * 1.28); width: auto; pointer-events: none;
    transform-origin: 50% 100%; will-change: transform; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5));
    transition: opacity .3s; }

.tl-shadow { position: absolute; left: 0; top: 0; z-index: 3; width: 60px; height: 12px; margin: -6px 0 0 -30px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(5,2,20,.6), rgba(5,2,20,0)); transition: opacity .3s; }

.tl-top { position: absolute; left: 16px; right: 16px; top: 14px; z-index: 10; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.tl-sign { flex: none; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 10px; border-radius: 12px; white-space: nowrap;
    background: rgba(16,9,44,.7); box-shadow: inset 0 0 0 1px rgba(190,170,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .4s; }
.tl-sign i { width: 18px; height: 18px; border-radius: 4px; transform: rotate(45deg) scale(.8);
    background: linear-gradient(135deg, #c8fff0, var(--gem) 50%, var(--gem-2)); box-shadow: 0 0 12px rgba(95,242,208,.7); }
.tl-sign span { font: 800 14px/1 Unbounded, sans-serif; letter-spacing: .02em; color: #fff; }
.tl-sign em { font-style: normal; color: var(--gem); }

.tl-recent { flex: 0 1 auto; min-width: 0; margin-left: auto; max-width: calc((100% - var(--tw)) / 2 - 12px); display: flex; justify-content: flex-end;

    flex-wrap: wrap; align-content: flex-start; gap: 40px 6px; max-height: 28px; overflow: hidden; }
.tl-recent span { flex: none; display: flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 10px;
    font: 800 11.5px/1 Unbounded, sans-serif; color: rgba(255,255,255,.55);
    background: rgba(16,9,44,.66); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tl-recent span.w { color: #05281f; background: linear-gradient(180deg, #d8fff4, var(--gem)); }
.tl-recent span.big { color: #2a1606; background: linear-gradient(180deg, #fff3c4, var(--gold)); }
.tl-recent span.new { animation: tlChip .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes tlChip { from { transform: translateX(24px) scale(.6); opacity: 0; } }
.tl:not([data-phase="idle"]):not([data-phase="done"]) .tl-top { opacity: 0; transition: opacity .3s; }

.tl-meter { position: absolute; z-index: 9; left: 18px; top: 66px; display: grid; justify-items: start; gap: 5px; min-width: 150px;
    padding: 12px 18px 13px; border-radius: 18px; pointer-events: none;
    background: rgba(16,9,44,.72); box-shadow: 0 16px 34px -16px rgba(0,0,0,.9), inset 0 0 0 1px rgba(190,170,255,.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
    transition: top .4s, opacity .4s, transform .4s; }
.tl:not([data-phase="idle"]):not([data-phase="done"]) .tl-meter { top: 18px; }
.tl-meter small { font: 800 9.5px/1 Manrope, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: rgba(225,215,255,.62); }
.tl-meter b { font: 800 34px/1 Unbounded, sans-serif; letter-spacing: -.03em;
    background: linear-gradient(180deg, #fff, #d6fff4 55%, var(--gem)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(95,242,208,.45)); }
.tl-meter span { font: 800 12.5px/1 Manrope, sans-serif; color: rgba(225,215,255,.8); }
.tl-meter span em { font-style: normal; color: var(--gold); }
.tl-meter.bump b { animation: tlBump .55s cubic-bezier(.3,1.7,.5,1); }
@keyframes tlBump { 0% { transform: scale(.6); } 40% { transform: scale(1.18); } }
.tl[data-phase="idle"] .tl-meter { opacity: 0; transform: translateY(-6px); }

.tl.is-narrow .tl-meter, .tl.is-narrow:not([data-phase="idle"]):not([data-phase="done"]) .tl-meter { left: 50%; top: 10px; transform: translateX(-50%); min-width: 0;
    grid-auto-flow: column; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; white-space: nowrap; }
.tl.is-narrow[data-phase="idle"] .tl-meter { transform: translate(-50%, -6px); }
.tl.is-narrow .tl-meter b { font-size: 22px; }
.tl.is-narrow .tl-meter span { font-size: 11.5px; }
.tl.is-narrow .tl-top { display: none; }
.tl.is-narrow .tl-summit { height: calc(var(--rh) * 1.25); }
.tl.is-narrow .tl-summit img { height: calc(var(--rh) * 1.05); }
.tl.is-narrow .tl-summit span { display: none; }

.tl.is-narrow .tl-view { top: 54px; -webkit-mask: linear-gradient(180deg, transparent, #000 18px); mask: linear-gradient(180deg, transparent, #000 18px); }

.tl-ask { position: absolute; z-index: 9; left: 18px; top: 66px; display: grid; justify-items: start; gap: 6px;
    padding: 13px 18px; border-radius: 16px; text-align: left; pointer-events: none; width: max-content;
    max-width: max(200px, calc((100% - var(--tw)) / 2 - 36px));
    background: rgba(16,9,44,.78); box-shadow: inset 0 0 0 1px rgba(190,170,255,.2), 0 16px 34px -14px rgba(0,0,0,.9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .35s, transform .35s; }
.tl-ask b { font: 800 15px/1.1 Unbounded, sans-serif; color: #fff; }
.tl-ask small { font: 600 12.5px/1.3 Manrope, sans-serif; color: rgba(225,215,255,.72); }
.tl:not([data-phase="idle"]) .tl-ask { opacity: 0; transform: translateY(12px); }

.tl.is-narrow .tl-ask { left: 50%; top: 10px; transform: translateX(-50%); justify-items: center; text-align: center; max-width: calc(100% - 32px);
    padding: 9px 16px; border-radius: 14px; }
.tl.is-narrow .tl-ask b { font-size: 13px; white-space: nowrap; }
.tl.is-narrow .tl-ask small { display: none; }
.tl.is-narrow:not([data-phase="idle"]) .tl-ask { transform: translate(-50%, 12px); }

.tl-win { position: absolute; z-index: 11; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px;
    padding: 16px 30px 18px; border-radius: 22px; text-align: center; pointer-events: none; min-width: 220px;
    background: rgba(16,9,44,.86); box-shadow: inset 0 0 0 1.5px rgba(95,242,208,.55), 0 0 60px -6px rgba(95,242,208,.5), 0 24px 50px -16px rgba(0,0,0,.9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: tlWin .6s cubic-bezier(.3,1.6,.5,1) both; }
.tl-win small { font: 800 10px/1 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(225,215,255,.7); }
.tl-win b { font: 800 44px/1 Unbounded, sans-serif; letter-spacing: -.03em;
    background: linear-gradient(180deg, #fff, #d6fff4 55%, var(--gem)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tl-win span { font: 800 16px/1 Manrope, sans-serif; color: var(--gem); }
.tl-win.big { box-shadow: inset 0 0 0 1.5px rgba(255,211,90,.7), 0 0 80px -4px rgba(255,211,90,.55), 0 24px 50px -16px rgba(0,0,0,.9); }
.tl-win.big b { background-image: linear-gradient(180deg, #fff, #fff1b8 55%, var(--gold)); font-size: 52px; }
.tl-win.big span { color: var(--gold); }
.tl-win.lose { box-shadow: inset 0 0 0 1.5px rgba(255,110,80,.6), 0 0 60px -6px rgba(255,80,60,.45), 0 24px 50px -16px rgba(0,0,0,.9); }
.tl-win.lose b { background-image: linear-gradient(180deg, #fff, #ffd0c0 55%, var(--fire)); font-size: 30px; }
.tl-win.lose span { color: rgba(255,200,180,.85); font-size: 13.5px; }
.tl-win.out { animation: tlWinOut .35s ease-in both; }
@keyframes tlWin { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
@keyframes tlWinOut { to { transform: translate(-50%, -40%) scale(.9); opacity: 0; } }

.tl-flash { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; }
.tl-flash.red { animation: tlFlash .7s ease-out; background: radial-gradient(70% 60% at 50% 55%, rgba(255,90,40,.45), rgba(120,0,30,.35)); }
.tl-flash.gold { animation: tlFlash 1s ease-out; background: radial-gradient(60% 60% at 50% 30%, rgba(255,220,120,.45), transparent 70%); }
.tl-flash.gem { animation: tlFlash .5s ease-out; background: radial-gradient(50% 40% at var(--fx, 50%) var(--fy, 50%), rgba(95,242,208,.3), transparent 70%); }
@keyframes tlFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
.tl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.tl-opts { margin-top: 14px; }
.tl-lv-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tl-lv-h .push { margin-left: auto; }
.tl-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tl-levels button { display: grid; justify-items: center; gap: 6px; padding: 9px 2px 8px; border-radius: 12px; border: 0; cursor: pointer;
    color: rgba(255,255,255,.62); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    transition: background .2s, color .2s, box-shadow .2s, transform .15s; font: inherit; }
.tl-levels button b { font: 800 10.5px/1 Manrope, sans-serif; letter-spacing: .01em; }
.tl-levels button i { display: flex; gap: 3px; }
.tl-levels button i u { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gem); box-shadow: 0 0 6px rgba(95,242,208,.5); }
.tl-levels button i u.t { background: var(--fire); box-shadow: 0 0 6px rgba(255,122,61,.6); }
.tl-levels button:hover { color: #fff; background: rgba(255,255,255,.07); }
.tl-levels button:active { transform: scale(.95); }
.tl-levels button.on { color: #fff; background: linear-gradient(180deg, rgba(139,92,255,.38), rgba(139,92,255,.16)); box-shadow: inset 0 0 0 1.5px rgba(170,140,255,.85), 0 6px 16px -8px rgba(139,92,255,.9); }
.tl-levels button:disabled { cursor: default; opacity: .4; transform: none; }
.tl-levels button.on:disabled { opacity: .85; }

.tl-acts { display: grid; gap: 8px; margin-top: 14px; }
.tl-acts .btn { flex-direction: column; gap: 3px; height: auto; min-height: 56px; padding: 9px 12px; }
.tl-acts .l1 { font-weight: 800; font-size: 15px; }
.tl-acts .l2 { font-weight: 700; font-size: 12px; opacity: .78; }
.tl-go.is-cash { background: linear-gradient(180deg, #8affe2, var(--gem-2)); color: #032a20; box-shadow: 0 10px 26px -10px rgba(95,242,208,.9); }
.tl-go.is-wait, .tl-rand.is-wait { opacity: .6; pointer-events: none; }
.tl-go.is-dim { opacity: .55; }
.tl-rand { background: rgba(139,92,255,.16); box-shadow: inset 0 0 0 1px rgba(170,140,255,.4); color: #fff; }

.tl-top-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tl-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); }
.tl-top-row { --c: 255,211,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); }
.tl-top-row + .tl-top-row { margin-top: 8px; }
.tl-top-row.is-mult { --c: 95,242,208; }
.tl-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); }
.tl-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); }
.tl-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)); }
.tl-top-row .v { min-width: 0; }
.tl-top-row small { display: block; font: 800 10px/1 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.tl-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; }
.tl-top-row em { display: grid; justify-items: end; gap: 6px; font-style: normal; min-width: 0; }
.tl-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; }
.tl-top-row .nm.is-empty { color: var(--faint); }
.tl-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))); }
.tl-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); }
.tl-top-row.is-empty b { color: var(--faint); text-shadow: none; }

@media (max-width: 1300px), (max-height: 900px) { .tl { height: 640px; } }
@media (min-width: 761px) and (max-height: 800px) { .tl { height: 580px; } }

@media (max-width: 760px) {

    .tl { height: max(300px, calc(var(--free, 640px) - 10px)); border-radius: var(--r-lg); }
    .tl-top { display: none; }
    .tl-ask { top: 10px; padding: 10px 16px; }
    .tl-ask b { font-size: 13.5px; }
    .tl-ask small { font-size: 11.5px; }
    .tl-x { font-size: 10.5px; padding: 0 5px; border-radius: 8px; }
    .tl-tiles { gap: 6px; }
    .tl-tile .f, .tl-tile .b { border-radius: 10px; }
    .tl-win b { font-size: 36px; }
    .tl-win.big b { font-size: 42px; }
    .tl-opts { margin-top: 0; }
    .tl-lv-h { margin-bottom: 6px; }
    .tl-levels { gap: 4px; }
    .tl-levels button { padding: 8px 0 7px; gap: 5px; border-radius: 10px; }
    .tl-levels button b { font-size: 9.5px; }
    .tl-levels button i u { width: 6px; height: 6px; }

    body[data-page="tower"] .dock-main.is-live .info { display: none; }
    body[data-page="tower"] .dock-main .pair .btn[hidden] { display: none; }
    body[data-page="tower"] .dock-main .tl-rand { flex: 0 0 auto; padding: 0 16px; }
}

.is-lite .tl-track::before, .is-lite .tl-recent span, .is-lite .tl-sign, .is-lite .tl-meter, .is-lite .tl-ask, .is-lite .tl-win { -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-lite .tl-meter, .is-lite .tl-ask, .is-lite .tl-win { background: rgba(16,9,44,.95); }
.is-lite .tl-row.is-act .tl-tile .tl-in, .is-lite .tl-row.is-act .tl-tile .f::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .tl *, .tl { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
    .tl-track, .tl-bg { transition-duration: .01s !important; }
}

.tl > .brandmark { z-index: 4; --bm-x: 2%; --bm-w: clamp(70px, 15%, 120px); }
