:root { --bg: #0d2a1d; --glow: #1a6945; --accent: #ffcf62; }
.game-area { inset: 54px 0 0; padding: clamp(10px, 2.2vw, 28px); }
.sort-wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 12px; width: 100%; height: 100%; }
.tubes { display: flex; align-content: center; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: clamp(12px, 2.1vw, 28px); width: min(100%, 1120px); height: 100%; padding: clamp(8px, 2vh, 20px); }
.tube { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; width: clamp(54px, 7vw, 82px); height: clamp(180px, 45vh, 330px); border: 4px solid rgba(242, 249, 255, .8); border-top-color: transparent; border-radius: 10px 10px 30px 30px; padding: 10px 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.22), rgba(255,255,255,.035)); box-shadow: inset 8px 0 14px rgba(255,255,255,.06), 0 14px 25px rgba(0,0,0,.24); cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.tube::before { position: absolute; left: -8px; right: -8px; top: -5px; height: 10px; border: 4px solid rgba(242,249,255,.84); border-radius: 50%; content: ""; }
.tube.selected { transform: translateY(-12px); border-color: #ffe17c; border-top-color: transparent; filter: drop-shadow(0 0 14px rgba(255,225,124,.68)); }
.ball { width: min(88%, 62px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 31% 25%, #fff 0 7%, color-mix(in srgb, var(--ball) 65%, white) 9%, var(--ball) 44%, color-mix(in srgb, var(--ball) 72%, black) 100%) !important; box-shadow: inset -7px -9px 12px rgba(0,0,0,.18), inset 5px 5px 8px rgba(255,255,255,.3), 0 4px 9px color-mix(in srgb,var(--ball) 38%,transparent) !important; animation: ball-in .2s ease; }
.moves { margin: 0 0 4px; padding: 6px 12px; border-radius: 999px; background: rgba(3,39,22,.76); color: #d7e7dd; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.moves strong { color: #ffe17c; }
.level-label { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 13px; color: #cbd1e0; font-size: 11px; font-weight: 800; }
.level-label select { border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: 7px 10px; background: #123b2a; color: #fff; font: inherit; }
@keyframes ball-in { from { transform: translateY(-15px); opacity: .3; } }
@media (max-width: 620px) { .game-area { inset: 88px 0 0; padding: 6px; } .tubes { align-content: center; gap: 12px; padding: 4px; } .tube { width: clamp(48px, 15vw, 62px); height: clamp(150px, 29vh, 220px); padding: 7px 4px; border-width: 3px; } .tube::before { border-width: 3px; } }
@media (max-height: 520px) { .game-area { inset: 49px 0 0; } .tubes { align-content: center; gap: 8px 14px; } .tube { width: 48px; height: min(66vh, 210px); } .ball { width: 36px; } }
