/* Напёрстки: a big headline over a row of cups standing on the dark stage */
.thm-frame .g-stage { position: relative; padding: 40px 12px 8px; }
.thm-head { height: 80px; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; pointer-events: none; }
.thm-big { display: inline-flex; align-items: center; gap: 6px; font-size: 50px; font-weight: 900; line-height: 1; letter-spacing: -1.5px; color: var(--fg); white-space: nowrap; }
.thm-big img { width: 38px; height: 38px; }
.thm-big.thm-miss { font-size: 44px; color: var(--loss); letter-spacing: -1px; }
.thm-sub { height: 20px; display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; color: var(--fg); white-space: nowrap; }
.thm-sub img { width: 17px; height: 17px; }

.thm-board { position: relative; height: 200px; }
.thm-floor { position: absolute; left: -12px; right: -12px; top: 136px; height: 84px; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139,123,255,.24) 0%, rgba(139,123,255,.07) 55%, rgba(139,123,255,0) 100%); pointer-events: none; }
.thm-cup { position: absolute; left: 0; top: 0; z-index: 3; width: var(--cw); height: var(--ch); padding: 0; border: 0; background: none; transform-origin: 50% 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.thm-ci { position: relative; top: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.thm-ci svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.thm-ready .thm-ci svg { filter: drop-shadow(0 0 10px rgba(139,123,255,.6)) drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.thm-ready .thm-cup:active .thm-ci { top: 3px; }
.thm-sh { position: absolute; left: 0; top: 0; z-index: 1; width: var(--cw); height: 16px; border-radius: 50%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 100%); pointer-events: none; }
.thm-ball { position: absolute; left: 0; top: 0; z-index: 2; width: var(--bs); height: var(--bs); border-radius: 50%; opacity: 0; background: radial-gradient(circle at 36% 30%, #ffffff 0%, #efffa6 18%, #d4ff3a 52%, #7f9c10 100%); box-shadow: 0 3px 6px rgba(0,0,0,.5); pointer-events: none; }
.thm-glow { position: absolute; left: 0; top: 0; z-index: 1; width: 100px; height: 100px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(212,255,58,.6) 0%, rgba(212,255,58,.18) 40%, rgba(212,255,58,0) 70%); pointer-events: none; }

/* mode switch: raised chips, the chosen one violet */
.thm-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 4px; }
.thm-seg button { height: 50px; border-radius: 12px; background: var(--tile); box-shadow: 0 4px 0 var(--tile-edge), inset 0 1px 0 rgba(255,255,255,.07); display: grid; place-content: center; justify-items: center; gap: 3px; color: var(--fg); position: relative; top: 0; }
.thm-seg button b { font-size: 14px; font-weight: 800; line-height: 1; }
.thm-seg button small { font-size: 12px; font-weight: 700; line-height: 1; color: var(--fg2); }
.thm-seg button.on { background: var(--pick); color: #ffffff; box-shadow: 0 4px 0 #4b3fb8, inset 0 1px 0 rgba(255,255,255,.25); }
.thm-seg button.on small { color: rgba(255,255,255,.85); }
.thm-seg button:not(:disabled):active { top: 3px; box-shadow: 0 1px 0 var(--tile-edge); }
.thm-seg button.on:not(:disabled):active { box-shadow: 0 1px 0 #4b3fb8; }
.thm-seg button:disabled { opacity: .55; }
