/* Direction: Chroma Pour — midnight indigo stage, glass tubes, jewel-bright balls */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0e1124;
  --surface: #181c38;
  --surface-2: #20254a;
  --border: #323969;
  --border-strong: #565866;
  --ink: #eef0ff;
  --muted: #a2abd1;
  --accent: #5a48ee;
  --accent-hover: #7363f1;
  --accent-ink: #ffffff;
  --accent-text: #b8afff;
  --accent-strong: #887bf2;
  --accent-soft: #1f1d50;
  --accent-border: #302a7f;
  --success: #4ade80;
  --success-ink: #ffffff;
  --success-soft: #1b3e38;
  --success-strong: #4ade80;
  --warning: #fbbf24;
  --warning-ink: #ffffff;
  --warning-soft: #423724;
  --warning-strong: #fbbf24;
  --danger: #f87171;
  --danger-ink: #ffffff;
  --danger-soft: #412635;
  --danger-strong: #f87171;
  --chart-1: #5f4ff5;
  --chart-2: #e13ab9;
  --chart-3: #d64c0f;
  --chart-4: #988719;
  --chart-5: #149763;
  --chart-6: #1098b7;

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius-card: 20px;
  --radius-btn: 16px;
  --x-bg-a: #1d2150;
  --x-bg-b: #0b0d1c;
  --x-glow: #4a3bb0;
  --x-sym: #ffffff;
  --x-sym-edge: #14142b;
  --x-ball-0: #ef4444;
  --x-ball-1: #3b82f6;
  --x-ball-2: #facc15;
  --x-ball-3: #22c55e;
  --x-ball-4: #fb923c;
  --x-ball-5: #a855f7;
  --x-ball-6: #22d3ee;
  --x-ball-7: #f472b6;
  --x-ball-8: #b5e61d;
  --x-ball-9: #92603a;
  --x-ball-10: #e8ebf2;
  --x-ball-11: #64748b;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Nunito", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f4;
  --border: #dddde0;
  --border-strong: #b6b6bc;
  --ink: #0e1124;
  --muted: #656772;
  --accent: #5a48ee;
  --accent-hover: #4d3dca;
  --accent-ink: #ffffff;
  --accent-text: #5a48ee;
  --accent-strong: #5a48ee;
  --accent-soft: #e8e5fd;
  --accent-border: #b5adf7;
  --success: #4ade80;
  --success-ink: #0e1124;
  --success-soft: #e9fbf0;
  --success-strong: #297b48;
  --warning: #fbbf24;
  --warning-ink: #0e1124;
  --warning-soft: #fff7e5;
  --warning-strong: #8d6b14;
  --danger: #f87171;
  --danger-ink: #0e1124;
  --danger-soft: #feeeee;
  --danger-strong: #a44b4b;
  --chart-1: #5a48ee;
  --chart-2: #d932b3;
  --chart-3: #932e00;
  --chart-4: #92810c;
  --chart-5: #0f623f;
  --chart-6: #2091ad;
}

/* Chroma Pour — stage, glass tubes, glossy balls. Colors come from theme.css tokens. */

.cp-body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }
.cp { position: relative; min-height: 100dvh; overflow: hidden; background:
  radial-gradient(900px 600px at 50% -10%, var(--x-glow), transparent 70%),
  linear-gradient(180deg, var(--x-bg-a), var(--x-bg-b)); }
.cp button { font-family: inherit; color: inherit; cursor: pointer; }
.cp button:disabled { cursor: default; }
.cp [hidden] { display: none !important; }
.cp .icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- ball colors ---------- */
.c0 { --c: var(--x-ball-0); } .c1 { --c: var(--x-ball-1); } .c2 { --c: var(--x-ball-2); } .c3 { --c: var(--x-ball-3); }
.c4 { --c: var(--x-ball-4); } .c5 { --c: var(--x-ball-5); } .c6 { --c: var(--x-ball-6); } .c7 { --c: var(--x-ball-7); }
.c8 { --c: var(--x-ball-8); } .c9 { --c: var(--x-ball-9); } .c10 { --c: var(--x-ball-10); } .c11 { --c: var(--x-ball-11); }

.ball, .fball {
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--c) 35%, white) 0 10%, transparent 34%),
    radial-gradient(circle at 36% 32%, color-mix(in srgb, var(--c) 82%, white) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 62%, black) 100%);
  box-shadow:
    inset 0 -3px 5px color-mix(in srgb, black 28%, transparent),
    inset 0 0 0 1px color-mix(in srgb, white 22%, transparent),
    0 3px 5px color-mix(in srgb, black 35%, transparent);
}
.ball { position: relative; flex: none; display: block; width: calc(var(--ball) * .9); height: calc(var(--ball) * .9); margin-top: calc(var(--ball) * .1); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.ball::after { content: ""; position: absolute; left: 20%; top: 14%; width: 30%; height: 20%; border-radius: 50%; background: color-mix(in srgb, white 70%, transparent); transform: rotate(-30deg); }
.ball.lifted { transform: translateY(calc(var(--ball) * -.85)); }
.ball.incoming { visibility: hidden; }
.ball.fly { position: absolute; margin: 0; transition: none; z-index: 2; }
.sym { display: none; position: absolute; inset: 22%; width: 56%; height: 56%; color: var(--x-sym-edge); fill: var(--x-sym); stroke: var(--x-sym-edge); stroke-width: 1.4; paint-order: stroke fill; z-index: 1; }
.cb .sym { display: block; }

/* ---------- screens ---------- */
.screen { display: none; position: relative; z-index: 1; height: 100dvh; flex-direction: column; overflow-y: auto; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.screen.active { display: flex; }
.cp[data-screen="play"] .cp-bg { display: none; }
.cp-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: .5; }
.hidden-tab .fball { animation-play-state: paused; }
.fball { position: absolute; bottom: -80px; animation: cp-float linear infinite; }
@keyframes cp-float { from { transform: translateY(0) rotate(0); } to { transform: translateY(-115vh) rotate(180deg); } }

.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; flex: none; }
.cp-top-end { justify-content: flex-end; }
.cp-left { display: flex; gap: 8px; }
.cp-center { text-align: center; }
.cp-head { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.1; margin: 0; }
.cp-hud { margin: 2px 0 0; font-size: .85rem; color: var(--muted); display: flex; gap: 8px; justify-content: center; }
.cp-hud b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cp-iconbtn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent); transition: transform .12s, border-color .15s; }
.cp-iconbtn:hover { border-color: var(--accent-text); transform: translateY(-1px); }
.cp-iconbtn:active { transform: scale(.94); }
.cp-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); font-weight: 800; }
.cp-pill .icon { color: var(--warning); }

/* ---------- buttons ---------- */
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 800; font-size: 1.05rem; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; position: relative; }
.cp-btn:hover { border-color: var(--accent-text); transform: translateY(-1px); }
.cp-btn:active { transform: scale(.97); }
.cp-btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, white), var(--accent)); border-color: transparent; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 50%, transparent); }
.cp-btn-primary:hover { border-color: transparent; box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 70%, transparent); }
.cp-btn-xl { min-height: 68px; font-size: 1.25rem; }
.cp-btn-xl span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.cp-btn-xl small { font-weight: 700; font-size: .8rem; opacity: .85; }
.cp-btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.cp button:focus-visible, .tube:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.cp-dot { font-style: normal; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--success); color: var(--canvas); }

/* ---------- home ---------- */
.cp-home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 20px 40px; text-align: center; }
.cp-logo { --ball: 52px; display: flex; gap: 4px; align-items: flex-end; margin-bottom: 4px; }
.cp-logo .ball:nth-child(1) { animation: cp-bob 3s ease-in-out infinite; }
.cp-logo .ball:nth-child(2) { animation: cp-bob 3s ease-in-out -1s infinite; }
.cp-logo .ball:nth-child(3) { animation: cp-bob 3s ease-in-out -2s infinite; }
@keyframes cp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.cp-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 12vw, 5.5rem); line-height: .95; letter-spacing: -.02em; margin: 0; text-transform: uppercase; }
.cp-title span { display: block; background: linear-gradient(90deg, var(--x-ball-7), var(--x-ball-4), var(--x-ball-2), var(--x-ball-3), var(--x-ball-6), var(--x-ball-5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-tagline { color: var(--muted); font-weight: 700; margin: 0 0 22px; letter-spacing: .08em; }
.cp-menu { display: flex; flex-direction: column; gap: 12px; width: min(100%, 340px); }

/* ---------- level select ---------- */
.cp-chest { margin: 0 16px 8px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); flex: none; }
.cp-chest small { color: var(--muted); font-size: .8rem; }
.cp-chestrow { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cp-chestrow .icon { color: var(--warning); width: 1.6em; height: 1.6em; }
.cp-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--x-ball-4), var(--x-ball-2)); transition: width .4s; }
.cp-opened { display: flex; align-items: center; gap: 10px; color: var(--warning); justify-content: center; }
.cp-levels { padding: 0 16px 40px; width: 100%; max-width: 760px; margin: 0 auto; }
.cp-section { font-family: var(--font-display); font-size: 1.1rem; margin: 22px 4px 10px; display: flex; align-items: baseline; gap: 10px; }
.cp-section small { color: var(--muted); font-family: var(--font-body); font-size: .8rem; font-weight: 700; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.tile { min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: transform .12s, border-color .15s; }
.tile:hover:not(.locked) { transform: translateY(-2px); border-color: var(--accent-text); }
.tile:active { transform: scale(.96); }
.tile b { font-family: var(--font-display); font-size: 1.3rem; display: flex; }
.tile small { font-size: .7rem; color: var(--muted); }
.tile .stars { display: flex; height: 14px; }
.tile .stars i { display: flex; color: var(--border); }
.tile .stars i.on { color: var(--warning); }
.tile .stars .icon { width: 13px; height: 13px; }
.tile .stars i.on .icon { fill: currentColor; }
.tile.done { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.tile.current { border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.tile.locked { opacity: .5; }

/* ---------- gameplay ---------- */
.screen[data-screen="play"] { overflow: hidden; }
.cp-tip { text-align: center; color: var(--muted); font-weight: 700; font-size: .92rem; margin: 0; padding: 0 20px; min-height: 1.3em; flex: none; }
.cp-boardwrap { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 12px 4px; touch-action: manipulation; }
.cp-board { --ball: 44px; --cap: 4; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; column-gap: calc(var(--ball) * .3); row-gap: calc(var(--ball) * .8); width: 100%; touch-action: manipulation; }
.cp-msg { position: absolute; top: 4px; left: 50%; transform: translate(-50%, -8px); margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; z-index: 3; }
.cp-msg.show { opacity: 1; transform: translate(-50%, 0); }
.cp-controls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 8px 12px 14px; width: 100%; max-width: 520px; margin: 0 auto; flex: none; }
.cp-ctl { position: relative; min-height: 60px; min-width: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 16px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent); font-weight: 800; font-size: .76rem; transition: transform .12s, border-color .15s, opacity .15s; }
.cp-ctl:hover:not(:disabled) { border-color: var(--accent-text); transform: translateY(-1px); }
.cp-ctl:active:not(:disabled) { transform: scale(.94); }
.cp-ctl:disabled { opacity: .38; }
.cp-badge { position: absolute; top: -6px; right: -4px; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-style: normal; font-size: .72rem; line-height: 1.4; text-align: center; }
.cp-badge.free { background: var(--success); border-color: transparent; color: var(--canvas); }

/* tubes */
.tube { --ball: 44px; position: relative; flex: none; display: flex; flex-direction: column-reverse; align-items: center; box-sizing: border-box; width: calc(var(--ball) * 1.3); height: calc(var(--ball) * (var(--cap) + .5) + 2px); padding: 0 0 calc(var(--ball) * .2); border: 2px solid color-mix(in srgb, white 36%, transparent); border-top: 0; border-radius: calc(var(--ball) * .22) calc(var(--ball) * .22) calc(var(--ball) * .66) calc(var(--ball) * .66); background:
  linear-gradient(100deg, color-mix(in srgb, white 20%, transparent) 0%, transparent 24%, transparent 72%, color-mix(in srgb, white 10%, transparent) 100%),
  color-mix(in srgb, white 5%, transparent);
  box-shadow: inset 0 -8px 14px color-mix(in srgb, white 8%, transparent), 0 12px 18px color-mix(in srgb, black 30%, transparent);
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s, border-color .2s; }
.tube::before { content: ""; position: absolute; left: -4px; right: -4px; top: -4px; height: calc(var(--ball) * .22); border-radius: 50%; border: 2px solid color-mix(in srgb, white 40%, transparent); background: color-mix(in srgb, white 8%, transparent); pointer-events: none; }
.tube::after { content: ""; position: absolute; left: 13%; top: 5%; bottom: 20%; width: 7%; border-radius: 99px; background: linear-gradient(180deg, color-mix(in srgb, white 50%, transparent), color-mix(in srgb, white 4%, transparent)); pointer-events: none; }
.tube.sel { transform: translateY(calc(var(--ball) * -.3)); border-color: var(--accent-text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 calc(var(--ball) * .8) color-mix(in srgb, var(--accent) 80%, transparent), 0 16px 20px color-mix(in srgb, black 25%, transparent); }
.tube.done { border-color: var(--success); animation: cp-pulse .6s ease-out; }
.tube.done::before { border-color: var(--success); }
.tube.flash { border-color: var(--danger); }
.tube.hint-from, .tube.hint-to { animation: cp-hint 1s ease-in-out infinite; }
.tube.hint-from { border-color: var(--warning); }
.tube.hint-to { border-color: var(--success); }
@keyframes cp-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes cp-hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--ball) * -.14)); } }
.tube.mini { width: calc(var(--ball) * 1.3); }
.tube.mini::before, .tube.mini::after { display: none; }

/* particles + overlay (popover keeps it above open dialogs) */
.cp-fx { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; pointer-events: none; z-index: 100; color: inherit; }
.spark { position: absolute; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.confetti { position: absolute; top: -24px; width: 10px; height: 16px; border-radius: 3px; background: var(--c); }

/* ---------- daily ---------- */
.cp-daily { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 20px 40px; width: 100%; max-width: 520px; margin: 0 auto; }
.cp-date { margin: 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--accent-text); }
.cp-preview { --ball: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 12px; padding: 22px 16px; width: 100%; min-height: 150px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); align-items: flex-end; }
.cp-loading { color: var(--muted); font-weight: 700; margin: auto; }
.cp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.cp-facts li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.cp-facts li .icon { color: var(--accent-text); }
.cp-facts li b { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.cp-status { margin: 0; text-align: center; color: var(--muted); font-weight: 700; }
.cp-daily .cp-btn-xl { width: min(100%, 340px); }

/* ---------- settings ---------- */
.cp-settings { width: 100%; max-width: 520px; margin: 0 auto; padding: 8px 16px 40px; display: flex; flex-direction: column; gap: 10px; }
.cp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.cp-row > div { display: flex; align-items: center; gap: 14px; }
.cp-row > div .icon { width: 1.5em; height: 1.5em; color: var(--accent-text); }
.cp-row span { display: flex; flex-direction: column; font-weight: 800; }
.cp-row small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.cp-danger > div .icon { color: var(--danger); }
.cp-foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 12px; }
.switch { position: relative; flex: none; width: 56px; height: 32px; min-width: 56px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.switch[aria-checked="true"] { background: var(--accent); border-color: transparent; }
.switch[aria-checked="true"] i { transform: translateX(24px); }
.switch::after { content: ""; position: absolute; inset: -8px -2px; }

/* ---------- dialogs ---------- */
.cp-dialog { margin: auto; width: min(92vw, 400px); padding: 26px 22px 22px; border: 1px solid var(--border); border-radius: 26px; background: linear-gradient(170deg, var(--surface-2), var(--surface)); color: var(--ink); box-shadow: 0 30px 80px color-mix(in srgb, black 55%, transparent); text-align: center; }
.cp-dialog::backdrop { background: color-mix(in srgb, black 55%, transparent); backdrop-filter: blur(3px); }
.cp-dialog[open] { animation: cp-pop .28s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes cp-pop { from { transform: scale(.9) translateY(14px); } to { transform: none; } }
.cp-dialog h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 14px; }
.cp-stack { display: flex; flex-direction: column; gap: 10px; }
.cp-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
@media (min-width: 420px) { .cp-actions { flex-direction: row; } .cp-actions .cp-btn { flex: 1; padding: 0 12px; } }
.cp-ktext { color: var(--muted); font-weight: 700; margin: 0; }
.cp-stars { display: flex; justify-content: center; gap: 8px; margin: 6px 0 12px; }
.cp-stars span { display: grid; place-items: center; color: var(--border); transition: color .2s; }
.cp-stars span .icon { width: 52px; height: 52px; }
.cp-stars span.on { color: var(--warning); animation: cp-star .5s cubic-bezier(.3, 1.8, .5, 1); }
.cp-stars span.on .icon { fill: currentColor; }
@keyframes cp-star { from { transform: scale(.3) rotate(-30deg); } to { transform: none; } }
.cp-result { margin: 0 0 6px; font-weight: 700; color: var(--muted); }
.cp-result b { color: var(--ink); }
.cp-earned { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.3rem; color: var(--warning); }
.cp-complete .cp-chest { margin: 0; text-align: left; }

/* ---------- toast ---------- */
.cp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); max-width: min(92vw, 420px); margin: 0; padding: 12px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.cp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- landscape phones: tighten chrome ---------- */
@media (max-height: 520px) {
  .cp-top { padding: 6px 12px; }
  .cp-iconbtn { width: 44px; height: 44px; }
  .cp-tip { display: none; }
  .cp-controls { padding-bottom: 8px; }
  .cp-ctl { min-height: 48px; }
  .cp-ctl span { display: none; }
  .cp-home { padding-bottom: 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fball, .cp-logo .ball, .tube.done, .tube.hint-from, .tube.hint-to, .cp-dialog[open], .cp-stars span.on { animation: none; }
  .ball, .tube, .cp-btn, .tile { transition-duration: .01s; }
}
html.reduced-motion .fball, html.reduced-motion .cp-logo .ball, html.reduced-motion .tube.done, html.reduced-motion .tube.hint-from, html.reduced-motion .tube.hint-to { animation: none; }
html.reduced-motion .ball, html.reduced-motion .tube { transition-duration: .01s; }
