/* Paytone One (SIL Open Font License, lib/fonts/OFL-PaytoneOne.txt). One weight, used for every weight. */
@font-face {
  font-family: "Paytone One";
  src: url("../lib/fonts/paytone-one-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: block;
}

:root {
  --u: clamp(7px, 1.25vmin, 13px);
  --vw: 1vw; /* 1% of the game's width and height; view.js sets them (the game may be turned sideways) */
  --vh: 1vh;
  --ink: #1b1a22;
  --font: "Paytone One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden; background: #5ab8ff;
  touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
  font-family: var(--font);
}
/* landscape only: a phone held upright gets the whole game turned sideways (view.js keeps the sizes exact) */
#view { position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; transform-origin: 0 0; }
@media (orientation: portrait) and (pointer: coarse) {
  #view { width: 100vh; width: 100dvh; height: 100vw; transform: translateX(100vw) rotate(90deg); }
}
#app, #app canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud button { pointer-events: auto; font-family: var(--font); cursor: pointer; }

/* white text with a thick dark outline */
.o {
  color: #fff;
  font-weight: 800;
  text-shadow:
    0.16em 0 0 var(--ink), -0.16em 0 0 var(--ink), 0 0.16em 0 var(--ink), 0 -0.16em 0 var(--ink),
    0.11em 0.11em 0 var(--ink), -0.11em 0.11em 0 var(--ink), 0.11em -0.11em 0 var(--ink), -0.11em -0.11em 0 var(--ink),
    0 0.3em 0.25em rgba(0, 0, 0, 0.25);
}

/* ---- top-left stats ---- */
.stats { position: absolute; left: calc(var(--u) * 1.6); top: calc(var(--u) * 1.4); display: grid; gap: calc(var(--u) * 0.4); }
.stat { display: flex; align-items: center; gap: calc(var(--u) * 0.6); font-size: calc(var(--u) * 3); line-height: 1; }
.stat svg { width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.stat.wins span { color: #ffd23f; }
.stat.bump span { animation: pop 0.45s ease-out; }
@keyframes pop { 40% { transform: scale(1.3); } }

/* ---- left: vinyl record buttons ---- */
.tiles { position: absolute; left: calc(var(--u) * 1.6); top: calc(var(--u) * 12); display: grid; grid-template-columns: repeat(2, auto); gap: calc(var(--u) * 2) calc(var(--u) * 1.5); }
.tile {
  position: relative; width: calc(var(--u) * 8); height: calc(var(--u) * 8); padding: 0; border-radius: 50%;
  border: calc(var(--u) * 0.3) solid #0d0c12; display: grid; place-items: center;
  background:
    radial-gradient(circle, var(--a) 0 30%, #0d0c12 30.5% 33%, transparent 33.5%),
    repeating-radial-gradient(circle, #1d1b24 0 calc(var(--u) * 0.3), #2c2934 calc(var(--u) * 0.3) calc(var(--u) * 0.48));
  box-shadow: 0 calc(var(--u) * 0.5) 0 rgba(0,0,0,.35);
  transition: transform .15s;
}
.tile::after { content: ''; position: absolute; inset: 7% 50% 50% 7%; border-radius: 100% 0 0 0; background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.tile:hover { transform: scale(1.06); }
.tile:active { transform: scale(0.95); }
.tile svg { position: relative; width: 40%; height: 40%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.tile .lbl {
  position: absolute; bottom: calc(var(--u) * -1.2); left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 0 calc(var(--u) * 0.7); border: calc(var(--u) * 0.22) solid #ffc93c; border-radius: 999px; background: #1b1a22;
  font-size: calc(var(--u) * 1.35); line-height: 1.35;
}
.tile .key {
  position: absolute; top: calc(var(--u) * -0.5); left: calc(var(--u) * -0.4);
  width: calc(var(--u) * 2.1); height: calc(var(--u) * 3); padding-top: calc(var(--u) * 1.25);
  border: calc(var(--u) * 0.22) solid #1b1a22; border-radius: 0 0 calc(var(--u) * 0.55) calc(var(--u) * 0.55);
  background: linear-gradient(180deg, #ffffff, #e6e0d2); color: #1b1a22;
  font-size: calc(var(--u) * 1.2); font-weight: 800; line-height: 1; text-align: center;
}
.tile .dot {
  position: absolute; top: calc(var(--u) * -0.6); right: calc(var(--u) * -0.5); display: none;
  width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); border-radius: 50%;
  border: calc(var(--u) * 0.25) solid #1b1a22; background: #ffc93c; color: #1b1a22; font-size: calc(var(--u) * 1.7); font-weight: 800;
  line-height: calc(var(--u) * 2.1); text-align: center; animation: pip 1.2s ease-in-out infinite;
}
.tile.ready .dot { display: block; }
@keyframes pip { 50% { transform: scale(1.2); } }
.tile.off { filter: saturate(0.3) brightness(0.8); }
body.touch .tile .key { display: none; }

/* ---- bottom centre: speed ---- */
.speed { position: absolute; left: 50%; bottom: calc(var(--u) * 1.4); transform: translateX(-50%); display: grid; justify-items: center; gap: calc(var(--u) * 0.3); width: min(calc(var(--vw) * 92), calc(var(--u) * 52)); }
.speed .big { font-size: calc(var(--u) * 5); line-height: 1; }
.speed .per { font-size: calc(var(--u) * 1.8); color: #ffe14a; line-height: 1; }
.bar { position: relative; width: 100%; height: calc(var(--u) * 3.2); border: calc(var(--u) * 0.4) solid var(--ink); border-radius: calc(var(--u) * 1.2); background: #fbf7ee; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(180deg, #ffe08a, #ff9f1a); transition: width 0.2s; }
.bar.ok .fill { background: linear-gradient(180deg, #8ff0b8, #2fbf71); }
.bar .txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: calc(var(--u) * 1.6); }

/* ---- centre: stage tag, banner, toast ---- */
.stage { position: absolute; top: calc(var(--u) * 1.2); left: 50%; transform: translateX(-50%); text-align: center; font-size: calc(var(--u) * 2.6); line-height: 1.05; white-space: nowrap; }
.stage small { display: block; font-size: 0.6em; color: #ffe14a; }
.banner { position: absolute; top: 26%; left: 0; right: 0; text-align: center; opacity: 0; }
.banner .b1 { font-size: calc(var(--u) * 6.5); line-height: 1; color: #ffd23f; }
.banner .b2 { font-size: calc(var(--u) * 2.8); }
.banner.run { animation: banner 2.2s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: scale(0.6); } 12% { opacity: 1; transform: scale(1.08); } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.toast { position: absolute; top: 42%; left: 0; right: 0; text-align: center; font-size: calc(var(--u) * 2.4); opacity: 0; }
.toast.run { animation: toast 1.6s ease-out forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

/* ---- "+N" step popups ---- */
.pop {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0.15em;
  font-size: calc(var(--u) * 2.3); line-height: 1; opacity: 0; white-space: nowrap; will-change: transform, opacity;
}
.pop svg { width: 1.1em; height: 1.1em; }
.daily { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: calc(var(--u) * 0.5); }
.daily .day { position: relative; background: #1b1a22; color: #fff; border-radius: .6em; padding: .45em .1em; text-align: center; font-size: calc(var(--u) * 1.65); line-height: 1.15; }
.daily .day b { display: block; color: #ffc93c; }
.daily .day.done { background: #2fd27a; }
.daily .day.done b { color: #fff; }
.daily .day.now { outline: .22em solid #ffc93c; }
.daily .day i { position: absolute; top: .1em; right: .35em; font-style: normal; }
.goal { margin-top: calc(var(--u) * 0.5); font-size: calc(var(--u) * 1.45); color: #fff; text-align: center; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--u) * 1); }
.pair .btn.big { width: 100%; white-space: nowrap; font-size: calc(var(--u) * 2); padding-left: calc(var(--u) * 0.4); padding-right: calc(var(--u) * 0.4); }
.clear-got { text-align: center; font-size: calc(var(--u) * 4.4); line-height: 1; color: #ffc93c; }
.clear-got svg { width: 1em; height: 1em; vertical-align: -0.14em; }
.blocker { position: absolute; inset: 0; pointer-events: auto; z-index: 40; cursor: default; }
.blocker[hidden] { display: none; }
.blocker::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 5); height: calc(var(--u) * 5); margin: calc(var(--u) * -2.5);
  border: calc(var(--u) * 0.7) solid #ffc93c; border-top-color: transparent; border-radius: 50%;
  opacity: 0; animation: blocker-show 0.1s 0.4s forwards, blocker-spin 0.8s linear infinite;
}
@keyframes blocker-show { to { opacity: 1; } }
@keyframes blocker-spin { to { transform: rotate(360deg); } }
.player { position: absolute; right: calc(var(--u) * 1.6); top: calc(var(--u) * 1.4); display: flex; align-items: center; gap: calc(var(--u) * 0.7); font-size: calc(var(--u) * 2); }
.player img { width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); border-radius: 50%; object-fit: cover; background: #fff; border: calc(var(--u) * 0.3) solid var(--ink); }
.band-slots { display: flex; gap: .5em; justify-content: center; margin: .3em 0 .6em; }
.band-slots .slot { flex: 1; max-width: 9em; background: #1b1a22; color: #fff; border-radius: .8em; padding: .4em .3em; text-align: center; border: .15em solid #ffc93c; }
.band-slots .slot.empty { opacity: .55; border-style: dashed; }
.band-slots .slot b { display: block; font-size: 2em; line-height: 1.15; }
.band-slots .slot span { font-size: .72em; }
.btn svg { width: 1.15em; height: 1.15em; vertical-align: -0.22em; margin-left: 0.15em; }
.pop.gold { color: #ffd23f; font-size: calc(var(--u) * 3.2); }
.pop.run { animation: rise 0.9s ease-out forwards; }
@keyframes rise { 0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.6); } 15% { opacity: 1; transform: translate(var(--x), calc(var(--y) - 10px)) scale(1.1); } 100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) - 70px)) scale(1); } }

/* ---- panel ---- */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(15, 12, 25, 0.45); pointer-events: auto; z-index: 30; }
.modal[hidden] { display: none; }
.panel { position: relative; width: min(calc(var(--vw) * 94), calc(var(--u) * 60)); max-height: calc(var(--vh) * 84); display: flex; flex-direction: column; border: calc(var(--u) * 0.5) solid var(--ink); border-radius: calc(var(--u) * 2.2); background: #fbf7ee; overflow: hidden; box-shadow: 0 calc(var(--u) * 1) 0 rgba(0,0,0,.25); }
.panel .head { position: relative; padding: calc(var(--u) * 1) calc(var(--u) * 6); text-align: center; font-size: calc(var(--u) * 3.4); background: linear-gradient(180deg, #2e2a36, #15131a); border-bottom: calc(var(--u) * 0.5) solid #ffc93c; box-shadow: inset 0 calc(var(--u) * 0.45) 0 var(--acc, #ffc93c); }
.panel .x { position: absolute; right: calc(var(--u) * 1); top: 50%; transform: translateY(-50%); width: calc(var(--u) * 4.4); height: calc(var(--u) * 4.4); border: calc(var(--u) * 0.4) solid var(--ink); border-radius: calc(var(--u) * 1); background: linear-gradient(180deg, #ff6a6a, #d12f3f); font-size: calc(var(--u) * 2.4); }
/* The column keeps content from widening the panel. No overflow-x: hidden: in Chrome a finger then cannot scroll the list when the game is turned on an upright phone. */
.panel .body { overflow-y: auto; padding: calc(var(--u) * 1.2); display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--u) * 0.9); scrollbar-width: none; }
.panel .body::-webkit-scrollbar { display: none; }
.panel.scrolls .body { padding-right: calc(var(--u) * 3); }
/* Our own scrollbar (hud.js), the same in every browser. */
.sb { position: absolute; right: 0; width: calc(var(--u) * 1.9); background: #2e2a36; touch-action: none; cursor: pointer; }
.sb[hidden] { display: none; }
.sb::before { content: ''; position: absolute; inset: 0 0 0 calc(var(--u) * -1); }
.sb-thumb { position: relative; width: 100%; background: linear-gradient(90deg, #ffe46a, #f0a020); border: calc(var(--u) * 0.3) solid #2e2a36; border-radius: calc(var(--u) * 1); }
.row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(var(--u) * 1); padding: calc(var(--u) * 0.8) calc(var(--u) * 1.2); border: calc(var(--u) * 0.35) solid var(--ink); border-radius: calc(var(--u) * 1.3); background: #fff; }
.row.lock { filter: saturate(0.2); opacity: 0.75; }
.row .num { width: calc(var(--u) * 4.2); height: calc(var(--u) * 4.2); border-radius: 50%; display: grid; place-items: center; background: #ffc93c; border: calc(var(--u) * 0.3) solid var(--ink); font-size: calc(var(--u) * 2); }
.row .name { font-size: calc(var(--u) * 2); color: var(--ink); font-weight: 800; line-height: 1.1; }
.row .meta { font-size: calc(var(--u) * 1.5); color: #6b6375; font-weight: 700; }
.btn { padding: calc(var(--u) * 0.6) calc(var(--u) * 1.6); border: calc(var(--u) * 0.35) solid var(--ink); border-radius: calc(var(--u) * 1); background: linear-gradient(180deg, #7dffb0, #2fbf71); font-size: calc(var(--u) * 1.8); box-shadow: 0 calc(var(--u) * 0.4) 0 rgba(0,0,0,.25); }
.btn:disabled { background: linear-gradient(180deg, #d9d2dc, #a99fae); cursor: default; }
.btn.gold { background: linear-gradient(180deg, #ffe46a, #f0a020); }
.btn.red { background: linear-gradient(180deg, #ff8a8a, #d12f3f); }
.btn.on:disabled { background: linear-gradient(180deg, #8fd8ff, #3f8fe0); }
.btn.big { justify-self: center; font-size: calc(var(--u) * 2.6); padding: calc(var(--u) * 0.8) calc(var(--u) * 3); }
.row .num svg { width: 70%; height: 70%; }
.note { text-align: center; font-size: calc(var(--u) * 1.6); color: #fff; }
.rb { display: grid; gap: calc(var(--u) * 1.2); padding: calc(var(--u) * 1); }
.rb-swap { display: flex; justify-content: center; align-items: center; gap: calc(var(--u) * 2); font-size: calc(var(--u) * 4.4); }
.rb-swap b { font-size: 0.6em; color: #ffd23f; }

/* ---- touch controls ---- */
.tc-layer { position: fixed; inset: 0; padding-left: env(safe-area-inset-left, 0px); pointer-events: none; z-index: 20; }
.tc-layer[hidden] { display: none; }
.tc-stick {
  --size: 120px; --rest-x: 72px; --rest-y: calc(100% - 100px); /* input.js fits these to the screen */
  position: fixed; left: var(--rest-x); top: var(--rest-y);
  width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); border-radius: 50%;
  border: 4px solid rgba(58, 24, 56, 0.6); background: rgba(255, 255, 255, 0.25); opacity: 0.55;
}
.tc-stick.on { opacity: 0.95; }
.tc-knob { position: absolute; left: 50%; top: 50%; width: calc(var(--size) * 0.43); height: calc(var(--size) * 0.43); margin: calc(var(--size) * -0.215) 0 0 calc(var(--size) * -0.215); border-radius: 50%; border: 4px solid rgba(58, 24, 56, 0.8); background: linear-gradient(180deg, #fff, #ffd3ef); }
.tc-jump {
  position: fixed; right: calc(env(safe-area-inset-right, 0px) + 30px); bottom: calc(env(safe-area-inset-bottom, 0px) + 36px);
  width: 92px; height: 92px; padding: 16px; border-radius: 50%; border: 4px solid rgba(58, 24, 56, 0.55); pointer-events: auto;
  background: rgba(255, 255, 255, 0.28); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.tc-jump svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.tc-jump.down { background: rgba(255, 159, 210, 0.6); transform: scale(0.93); }
.crosshair {
  position: fixed; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; z-index: 21;
  border: 3px solid #fff; background: rgba(58, 24, 56, 0.6); box-shadow: 0 0 0 2px rgba(58, 24, 56, 0.6); pointer-events: none;
}
.crosshair[hidden] { display: none; }
.lock-hint {
  position: fixed; left: 50%; top: calc(var(--u) * 11); transform: translateX(-50%); padding: calc(var(--u) * 0.5) calc(var(--u) * 1.8); border-radius: 999px; z-index: 21;
  background: rgba(27, 26, 34, 0.78); color: #fff; font: 700 calc(var(--u) * 1.8) var(--font); white-space: nowrap; pointer-events: none;
}
.lock-hint[hidden] { display: none; }
.hint {
  position: absolute; left: 50%; bottom: calc(var(--u) * 15); transform: translateX(-50%); white-space: nowrap;
  padding: calc(var(--u) * 0.4) calc(var(--u) * 1.8); border-radius: 999px; background: rgba(58, 24, 56, 0.5); font-size: calc(var(--u) * 2.2);
}
.hint[hidden] { display: none; }
body.touch .speed { bottom: calc(var(--u) * 1); width: min(calc(var(--vw) * 56), calc(var(--u) * 44)); }

/* ---- developer tools ---- */
.devbtn { position: absolute; right: calc(var(--u) * 1.2); top: calc(var(--u) * 1.2); padding: calc(var(--u) * 0.3) calc(var(--u) * 1.2); border: calc(var(--u) * 0.3) solid var(--ink); border-radius: calc(var(--u) * 0.8); background: linear-gradient(180deg, #ff8a8a, #d12f3f); font-size: calc(var(--u) * 1.6); }
.dev-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: calc(var(--u) * 0.6); }
.dev-grid .btn { padding: calc(var(--u) * 0.5) 0; }

/* ---- gift timer, boost chip, confetti, settings ---- */
.tile .timer { position: absolute; top: calc(var(--u) * 0.5); left: 0; right: 0; text-align: center; font-size: calc(var(--u) * 1.2); color: #ffe14a; }
.boost { padding: 0 calc(var(--u) * 1.2); border: calc(var(--u) * 0.3) solid var(--ink); border-radius: 999px; background: linear-gradient(180deg, #7dffb0, #2fbf71); font-size: calc(var(--u) * 1.8); line-height: 1.5; }
.boost[hidden] { display: none; }
.confetti { position: absolute; top: -14px; width: 10px; height: 16px; border-radius: 2px; animation-name: fall; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes fall { to { transform: translate(var(--dx), calc(var(--vh) * 105)) rotate(var(--r)); } }
.gift-art svg { display: block; width: calc(var(--u) * 14); height: calc(var(--u) * 14); margin: 0 auto; animation: wiggle 1.2s ease-in-out infinite; }
@keyframes wiggle { 50% { transform: rotate(-6deg) scale(1.06); } }
.set-row { display: grid; gap: calc(var(--u) * 0.6); padding: calc(var(--u) * 0.8) calc(var(--u) * 1.2); border: calc(var(--u) * 0.35) solid var(--ink); border-radius: calc(var(--u) * 1.3); background: #fff; }
.set-row .name { font-size: calc(var(--u) * 2); color: var(--ink); font-weight: 800; }
.choices { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 0.6); }
.choices .btn { font-size: calc(var(--u) * 1.6); }
.choices .btn:not(.gold) { background: linear-gradient(180deg, #f3eef7, #cfc6da); }

/* phones (always landscape): tiles in a short wide block at the top-left, away from the joystick.
   Classes come from view.js, because a turned game no longer matches the screen's media queries. */
html.compact { --u: clamp(6px, 1.6vmin, 9px); }
.compact .tiles { top: calc(var(--u) * 9.5); grid-template-columns: repeat(4, auto); gap: calc(var(--u) * 1.9) calc(var(--u) * 1.2); }
.compact body.touch .tiles { grid-template-columns: repeat(5, auto); } /* two rows: the corner under them is the joystick's */
.compact body.touch .combo { top: calc(var(--u) * 6); } /* above the jump button */
.compact .tile { width: calc(var(--u) * 6.6); height: calc(var(--u) * 6.6); }
.compact .tile .lbl { font-size: calc(var(--u) * 1.2); }
/* tall desktop windows */
.tall .tiles { top: calc(var(--u) * 11); }
.tall .tile { width: calc(var(--u) * 7); height: calc(var(--u) * 7); }

#boot { position: fixed; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; background: radial-gradient(circle at 50% 40%, #7fd0ff, #3f6fe0 70%); z-index: 50; transition: opacity .3s; }
#boot h1 { font: 800 clamp(26px, 6vmin, 54px)/1 var(--font); }
#boot p { font: 700 16px var(--font); color: #fff; }
#boot.gone { opacity: 0; pointer-events: none; }

/* ---- rhythm: beat bar, combo meter, judge pop-ups ---- */
.beatbar { position: absolute; top: calc(var(--u) * 6.4); left: 50%; width: 0; height: calc(var(--u) * 2.4); font-size: var(--u); }
.bb-line {
  position: absolute; left: -0.45em; top: 0; width: 0.9em; height: 2.4em; border-radius: 0.45em; background: #fff;
  border: 0.25em solid var(--ink); transform: scale(calc(1 + var(--p, 0) * 0.35)); box-shadow: 0 0 calc(var(--p, 0) * 1.4em) #ffc93c;
}
.bb-dot { position: absolute; left: -0.6em; top: 0.6em; width: 1.2em; height: 1.2em; border-radius: 50%; background: #ffc93c; border: 0.22em solid var(--ink); }
.combo { position: absolute; right: calc(var(--u) * 2); top: 36%; display: grid; justify-items: center; gap: calc(var(--u) * 0.35); }
.combo .cx { font-size: calc(var(--u) * 4.4); line-height: 1; color: #ffc93c; }
.combo .cn { font-size: calc(var(--u) * 1.5); line-height: 1; }
.combo .cb { display: flex; gap: calc(var(--u) * 0.35); align-items: flex-end; height: calc(var(--u) * 3.2); }
.combo .cb i { width: calc(var(--u) * 0.9); border: calc(var(--u) * 0.2) solid var(--ink); border-radius: calc(var(--u) * 0.3); background: rgba(255, 255, 255, 0.35); }
.combo .cb i:nth-child(1) { height: 30%; }
.combo .cb i:nth-child(2) { height: 45%; }
.combo .cb i:nth-child(3) { height: 62%; }
.combo .cb i:nth-child(4) { height: 80%; }
.combo .cb i:nth-child(5) { height: 100%; }
.combo .cb i.on { background: linear-gradient(180deg, #ffe08a, #ff9f1a); }
.combo.hot .cx { animation: pip 0.6s ease-in-out infinite; }
.combo.idle { opacity: 0.55; }
.judge { position: absolute; top: 30%; left: 0; right: 0; text-align: center; font-size: calc(var(--u) * 3.2); opacity: 0; pointer-events: none; }
.judge.perfect { color: #ffc93c; }
.judge.good { color: #7fd0ff; }
.judge.off { color: #c8c2d0; font-size: calc(var(--u) * 2.2); }
.judge.run { animation: judge 0.6s ease-out forwards; }
@keyframes judge { 0% { opacity: 0; transform: scale(0.6); } 15% { opacity: 1; transform: scale(1.15); } 30% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.tc-jump.beat { animation: beatring 0.35s ease-out; }
@keyframes beatring { 0% { box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.9); } 100% { box-shadow: 0 0 0 18px rgba(255, 201, 60, 0); } }
