/* Comet Drift: a WebGL canvas fills the stage; the HUD, title and menus are HTML on top */
.cd { display: flex; flex-direction: column; color: #fff; }
.cd-stage { position: relative; width: 100%; height: min(80vh, 780px); min-height: 420px; overflow: hidden; border-radius: 10px; outline: none;
  background: linear-gradient(#ff9a6b, #ffcf8a 45%, #8fd3ff);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@media (max-width: 600px) { .cd-stage { height: auto; aspect-ratio: 9 / 15; max-height: 82vh; min-height: 0; border-radius: 8px; } }
.cd-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: pointer; }
.cd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cd [hidden] { display: none !important; }
.cd svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- HUD ---------- */
.cd-hud { position: absolute; inset: 0; pointer-events: none; }
.cd-tl { position: absolute; left: 10px; top: 10px; right: calc(50% + 86px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }   /* left of the clock, never under it */
@media (max-width: 640px) { .cd-tl { top: calc(max(8px, env(safe-area-inset-top, 0px)) + 82px); right: 10px; justify-content: center; } }   /* a phone: under the clock */
.cd-mode { padding: 5px 10px; border-radius: 99px; background: rgba(10,10,34,0.42); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cd-mode:empty { display: none; }
.cd-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; background: rgba(10,10,34,0.42); font-size: 13px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-chip i { font-style: normal; color: #ffd166; }
.cd-falls { background: rgba(255,90,90,0.75); }
.cd-shards { display: inline-flex; gap: 4px; padding: 6px 10px; border-radius: 99px; background: rgba(10,10,34,0.42); }
.cd-shards i { width: 12px; height: 15px; background: rgba(255,255,255,0.28); clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); }
.cd-shards i.on { background: linear-gradient(#e6fbff, #6fd8ff); animation: cd-bump .3s ease-out; }
.cd-tr { position: absolute; right: 10px; top: 10px; pointer-events: auto; }
.cd-ibtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(10,10,34,0.38); color: #fff; cursor: pointer; touch-action: manipulation; transition: background .15s, transform .1s; }
.cd-ibtn:hover { background: rgba(10,10,34,0.55); } .cd-ibtn:active { transform: scale(0.94); }
.cd-ibtn svg { width: 22px; height: 22px; stroke-width: 3; }
.cd-score { position: absolute; left: 50%; top: max(8px, env(safe-area-inset-top, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1; pointer-events: none; }
.cd-score b { font-size: clamp(42px, 10vmin, 70px); font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 0 rgba(10,10,34,0.35), 0 0 18px rgba(10,10,34,0.25); }
.cd-score span { margin-top: 2px; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.92); text-shadow: 0 2px 0 rgba(10,10,34,0.35); white-space: nowrap; }
@keyframes cd-bump { 50% { transform: scale(1.3); } }
.cd-prog { position: absolute; left: 50%; top: calc(max(8px, env(safe-area-inset-top, 0px)) + clamp(62px, 13vmin, 92px)); transform: translateX(-50%); width: clamp(110px, 30vw, 220px); height: 8px; border-radius: 99px; background: rgba(10,10,34,0.32); overflow: hidden; }
.cd-prog i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffd166, #ffffff); }
.cd-combo { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; white-space: nowrap; font-size: clamp(22px, 5.6vmin, 36px); font-weight: 900; letter-spacing: 0.08em; color: #fff;
  text-shadow: 0 0 14px rgba(120,200,255,0.95), 0 3px 0 rgba(10,10,34,0.35); }
.cd-combo[data-t="0"] { text-shadow: 0 0 14px rgba(140,255,190,0.95), 0 3px 0 rgba(10,10,34,0.35); }
.cd-combo[data-t="2"] { color: #fff3dc; text-shadow: 0 0 16px rgba(255,160,60,1), 0 3px 0 rgba(10,10,34,0.35); }
.cd-combo[data-t="3"] { color: #fbeaff; text-shadow: 0 0 18px rgba(200,110,255,1), 0 0 34px rgba(255,90,220,0.7), 0 3px 0 rgba(10,10,34,0.35); }
.cd-combo.is-on { animation: cd-combo .9s cubic-bezier(.2,1.2,.3,1) forwards; }
@keyframes cd-combo { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 30% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
/* the drift meter: fills while you hold, in the colour of the boost it will fire */
.cd-meter { position: absolute; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 4px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: rgba(10,10,34,0.42);
  font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cd-meter.is-on { opacity: 1; }
.cd-meter b { width: clamp(90px, 26vw, 160px); height: 8px; border-radius: 99px; background: rgba(255,255,255,0.22); overflow: hidden; }
.cd-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: #ffffff; }
.cd-meter[data-t="1"] i { background: #5ed2ff; } .cd-meter[data-t="2"] i { background: #ff9a3c; } .cd-meter[data-t="3"] i { background: linear-gradient(90deg, #b06bff, #ff5fd8); }
.cd-go { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 16px; background: rgba(10,10,34,0.5); font-size: 18px; font-weight: 900; white-space: nowrap; animation: cd-gopulse 1.4s ease-in-out infinite; }
.cd-go kbd, .cd-tap kbd { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 6px; background: rgba(10,10,34,0.35); font: inherit; }
.cd-hint { position: absolute; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 40px); transform: translateX(-50%); max-width: min(92%, 440px); padding: 9px 14px; border-radius: 14px; background: rgba(10,10,34,0.55);
  font-size: 14px; font-weight: 800; line-height: 1.35; text-align: center; animation: cd-fadein .4s ease both; }
@keyframes cd-fadein { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- title ---------- */
.cd-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 14px 14px; pointer-events: none; text-align: center;
  background: linear-gradient(rgba(10,10,34,0.14), rgba(10,10,34,0) 30%, rgba(10,10,34,0) 60%, rgba(10,10,34,0.34)); }
.cd-logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 0.84; font-size: clamp(50px, 13vmin, 92px); font-weight: 900; letter-spacing: 0.01em; text-transform: uppercase; font-style: italic;
  color: #fff; text-shadow: 0 5px 0 #ff5d6c, 0 10px 0 #9a1f45, 0 16px 24px rgba(10,10,34,0.3); animation: cd-logo-in .7s cubic-bezier(.2,1.4,.4,1) both; }
.cd-logo span:last-child { color: #ffd166; text-shadow: 0 5px 0 #e0732e, 0 10px 0 #8a3b16, 0 16px 24px rgba(10,10,34,0.3); }
@keyframes cd-logo-in { from { transform: translateX(-40px) skewX(-8deg); opacity: 0; } }
.cd-best { margin: 16px 0 0; min-height: 1.2em; font-size: 14px; font-weight: 900; letter-spacing: 0.05em; text-shadow: 0 2px 0 rgba(10,10,34,0.35); }
.cd-tap { margin: auto 0 14px; font-size: 17px; font-weight: 900; text-shadow: 0 2px 0 rgba(10,10,34,0.4); animation: cd-pulse 1.5s ease-in-out infinite; }
.cd .hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .cd .hint-kb { display: none; } .cd .hint-touch { display: inline; } }
@keyframes cd-pulse { 50% { transform: scale(1.05); opacity: 0.85; } }
@keyframes cd-gopulse { 50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.85; } }
.cd-menu { display: flex; gap: 7px; width: 100%; max-width: 440px; justify-content: center; pointer-events: auto; }
.cd-mbtn { flex: 1 1 0; max-width: 104px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 66px; padding: 8px 3px; border: 0; border-radius: 16px;
  background: rgba(255,255,255,0.95); color: #22183f; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; touch-action: manipulation; box-shadow: 0 4px 0 rgba(10,10,34,0.25); transition: transform .1s, box-shadow .1s, opacity .2s; }
.cd-mbtn span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.cd-mbtn:hover { transform: translateY(-1px); } .cd-mbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(10,10,34,0.25); }
.cd-mbtn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.cd-mbtn svg { width: 24px; height: 24px; }
.cd-go-btn { background: #ffd166; color: #4a2a00; box-shadow: 0 4px 0 #c9781e; } .cd-go-btn svg { fill: currentColor; }
.cd-dbest { margin: 8px 0 0; min-height: 1em; font-size: 12px; font-weight: 800; text-shadow: 0 1px 0 rgba(10,10,34,0.4); }
.cd-dbest:empty, .cd-dbest span:empty { display: none; }
.cd-toggles { display: flex; gap: 6px; margin-top: 8px; pointer-events: auto; }
.cd-tog { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 11px; border: 0; border-radius: 99px; background: rgba(10,10,34,0.38); color: #fff; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; touch-action: manipulation; }
.cd-tog svg { width: 18px; height: 18px; }
.cd-tog .off { display: none; } .cd-tog[aria-pressed="false"] .on { display: none; } .cd-tog[aria-pressed="false"] .off { display: inline; } .cd-tog[aria-pressed="false"] { color: rgba(255,255,255,0.6); }
.cd-ibtn:focus-visible, .cd-mbtn:focus-visible, .cd-btn:focus-visible, .cd-card:focus-visible, .cd-lv:focus-visible, .cd-wtab:focus-visible, .cd-tog:focus-visible, .cd-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(34,24,63,0.6); }

/* ---------- toast, loading ---------- */
.cd-toast { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 14px; background: rgba(10,10,34,0.55); font-size: 19px; font-weight: 900;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s; text-shadow: 0 2px 0 rgba(10,10,34,0.3); z-index: 2; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.cd-toast.is-on { opacity: 1; animation: cd-toast-in .35s cubic-bezier(.2,1.5,.4,1); }
@keyframes cd-toast-in { from { transform: translate(-50%, -50%) scale(0.7); } }
.cd-loading { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 99px; background: rgba(10,10,34,0.4); font-size: 13px; font-weight: 800; pointer-events: none; white-space: nowrap; max-width: 92%; }
.cd-loading i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: cd-spin .8s linear infinite; }
@keyframes cd-spin { to { transform: rotate(360deg); } }
.cd-nogl { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: #120f2a; color: #e9e3ff; text-align: center; z-index: 5; }

/* ---------- panels ---------- */
.cd-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(10,10,34,0.42); z-index: 3; }
.cd-overlay.is-sheet { align-items: flex-end; padding-bottom: 0; background: linear-gradient(rgba(10,10,34,0.05) 20%, rgba(10,10,34,0.6)); }
.cd-panel { position: relative; width: min(100%, 410px); max-height: 100%; overflow: auto; overscroll-behavior: contain; text-align: center; padding: 22px 18px 18px; border-radius: 22px; background: #fff; color: #22183f;
  box-shadow: 0 8px 0 rgba(10,10,34,0.18), 0 20px 50px rgba(10,10,34,0.35); animation: cd-in .3s cubic-bezier(.2,1.3,.4,1); }
.is-sheet .cd-panel { width: min(100%, 580px); max-height: 76%; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(10,10,34,0.3); animation: cd-up .3s cubic-bezier(.2,1,.3,1); padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
@keyframes cd-in { from { opacity: 0; transform: scale(0.9) translateY(10px); } }
@keyframes cd-up { from { transform: translateY(40px); opacity: 0; } }
.cd-panel h3 { margin: 0 0 4px; padding: 0 40px; font-size: 22px; font-weight: 900; }
.cd-kicker { margin: 0 0 2px; padding: 0 40px; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #857aa3; }
.cd-big { margin: 2px 0 0; font-size: 60px; line-height: 1; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cd-big small { font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: #857aa3; margin-left: 4px; }
.cd-big .cd-new { margin-left: 8px; vertical-align: middle; letter-spacing: 0.06em; }
.cd-sub { margin: 6px 0 12px; font-size: 14px; font-weight: 700; color: #5d567e; line-height: 1.45; }
.cd-new { display: inline-block; padding: 3px 10px; border-radius: 99px; background: #ffd166; color: #5a3d00; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; animation: cd-pulse 1s ease-in-out 3; }
.cd-stats { display: flex; justify-content: center; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.cd-stat { min-width: 76px; padding: 7px 9px; border-radius: 12px; background: #f3f1fa; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #857aa3; }
.cd-stat b { display: block; margin-top: 2px; font-size: 19px; letter-spacing: 0; text-transform: none; color: #22183f; font-variant-numeric: tabular-nums; }
.cd-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cd-btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 14px; background: #efecf8; color: #22183f; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer;
  touch-action: manipulation; box-shadow: 0 4px 0 #d3cde6; transition: transform .1s, box-shadow .1s; white-space: nowrap; }
.cd-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #d3cde6; }
.cd-btn-primary { background: #ff5d6c; color: #fff; box-shadow: 0 4px 0 #b02a48; font-size: 17px; }
.cd-btn-primary:active { box-shadow: 0 1px 0 #b02a48; }
.cd-btn-wide { flex-basis: 100%; }
.cd-btn:disabled { opacity: 0.5; cursor: default; }
.cd-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #efecf8; color: #22183f; font-size: 22px; font-weight: 900; cursor: pointer; touch-action: manipulation; }
.cd-unlock { margin: 10px 0 0; padding: 8px 10px; border-radius: 12px; background: #e8f9f0; font-size: 13px; font-weight: 800; color: #1f7a4a; }
.cd-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 2px; }
.cd-stars span { font-size: 44px; line-height: 1; color: #e3dfef; transform: scale(0.6); animation: cd-star .4s cubic-bezier(.2,1.6,.4,1) forwards; }
.cd-stars span.on { color: #ffc93c; text-shadow: 0 3px 0 #d99a12; }
@keyframes cd-star { to { transform: scale(1); } }
.cd-rules { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; color: #5d567e; }
.cd-rules li { margin: 3px 0; } .cd-rules b { color: #ffb400; }
.cd-how { margin: 6px 0 0; padding: 0; list-style: none; text-align: left; font-size: 14px; font-weight: 700; color: #423a68; line-height: 1.45; }
.cd-how li { display: flex; gap: 10px; margin: 9px 0; } .cd-how li > b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #efecf8; color: #ff5d6c; font-size: 13px; }

/* levels */
.cd-worlds { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; margin: 10px -4px 0; scrollbar-width: none; }
.cd-wtab { flex: none; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: #efecf8; color: #22183f; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; touch-action: manipulation; }
.cd-wtab[aria-selected="true"] { background: #22183f; color: #fff; }
.cd-wtab:disabled { opacity: 0.45; cursor: default; }
.cd-wdesc { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #5d567e; }
.cd-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.cd-lv { position: relative; min-width: 0; min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; border: 0; border-radius: 14px; background: #efecf8; color: #22183f;
  font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; touch-action: manipulation; box-shadow: 0 3px 0 #d3cde6; }
.cd-lv em { font-style: normal; font-size: 10px; font-weight: 800; color: #5d567e; max-width: 100%; overflow: hidden; line-height: 1.15; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; }
.cd-lv small { font-size: 12px; letter-spacing: 1px; color: #d3cde6; } .cd-lv small i { font-style: normal; color: #ffc93c; }
.cd-lv.is-done { background: #e8f9f0; box-shadow: 0 3px 0 #b7e6cb; }
.cd-lv.is-boss { background: #fff0f2; box-shadow: 0 3px 0 #f3c3cb; } .cd-lv.is-boss.is-done { background: #ffe3e8; }
.cd-lv:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.cd-brief { margin: 12px 0 0; padding: 12px; border-radius: 16px; background: #f6f4fb; text-align: left; }
.cd-brief p { margin: 0; font-size: 14px; font-weight: 700; color: #423a68; line-height: 1.45; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cd-tag { padding: 3px 9px; border-radius: 99px; background: #e6e0f7; font-size: 12px; font-weight: 900; color: #4a3a8a; }

/* garage */
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 12px; }
.cd-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 2px solid transparent; border-radius: 16px; background: #f5f3fb; color: #22183f;
  font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; touch-action: manipulation; min-height: 112px; }
.cd-card small { font-size: 10.5px; font-weight: 800; color: #5d567e; line-height: 1.25; }
.cd-card.is-sel { border-color: #ff5d6c; background: #fff0f1; }
.cd-card.is-locked { cursor: default; } .cd-card.is-locked .cd-swatch { filter: grayscale(1) brightness(0.7); opacity: 0.55; }
/* a little top-down drawing of each car: body colour --c, trim --t */
.cd-swatch { position: relative; width: 70px; height: 46px; border-radius: 12px; background: linear-gradient(#2b2350, #463a7a); overflow: hidden; }
.cd-swatch::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 20px; transform: translate(-50%, -50%); border-radius: 7px 9px 9px 7px; background: var(--c); box-shadow: 0 3px 0 rgba(0,0,0,0.25); }
.cd-swatch i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-30%, -50%); border-radius: 4px; background: var(--t); opacity: 0.9; }
.cd-swatch[data-shape="long"]::before { width: 50px; height: 16px; border-radius: 5px 10px 10px 5px; }
.cd-swatch[data-shape="long"] i { width: 18px; height: 6px; border-radius: 3px; }
.cd-swatch[data-shape="buggy"]::before { width: 36px; height: 24px; border-radius: 6px; box-shadow: -14px -11px 0 -6px #222, -14px 11px 0 -6px #222, 14px -11px 0 -6px #222, 14px 11px 0 -6px #222; }
.cd-swatch[data-shape="rocket"]::before { width: 48px; height: 16px; border-radius: 4px 50% 50% 4px; }
.cd-swatch[data-shape="rocket"] i { left: 14px; width: 10px; height: 10px; border-radius: 0 3px 3px 0; transform: translate(-50%, -50%); background: linear-gradient(90deg, transparent, var(--t)); }
.cd-swatch[data-shape="saucer"]::before { width: 38px; height: 38px; border-radius: 50%; }
.cd-swatch[data-shape="saucer"] i { width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); }

/* ---------- full screen and small screens ---------- */
.stage.is-immersive .stage-body > .cd { min-height: 0; flex: 1 1 auto; }
.stage.is-immersive .cd-stage { flex: 1 1 auto; height: auto; aspect-ratio: auto; max-height: none; min-height: 0; border-radius: 0; }
@media (orientation: landscape) and (max-height: 520px) {
  .cd-logo { font-size: 42px; flex-direction: row; gap: 0.3em; }
  .cd-best { margin-top: 6px; }
  .cd-tap { margin-bottom: 6px; font-size: 14px; }
  .cd-mbtn { min-height: 50px; padding: 5px 3px; }
  .cd-mbtn svg { width: 20px; height: 20px; }
  .cd-title { padding: 10px 14px 8px; }
  .cd-toggles { margin-top: 5px; }
  .cd-tog { min-height: 32px; }
  .cd-score b { font-size: 40px; }
  .cd-prog { top: 56px; }
  .is-sheet .cd-panel { max-height: 90%; }
  .cd-overlay { padding: 8px; }
  .cd-panel { padding: 14px 16px 14px; }
  .cd-big { font-size: 46px; }
}
@media (max-width: 440px) { .cd-hint { font-size: 13px; padding: 7px 12px; max-width: 86%; } .cd-menu { gap: 5px; } .cd-mbtn { padding: 8px 1px; font-size: 11px; } .cd-levels { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 380px) { .cd-mbtn { font-size: 10.5px; } .cd-tog span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cd-tap, .cd-go, .cd-logo, .cd-new, .cd-panel, .is-sheet .cd-panel, .cd-shards i.on { animation: none; }
  .cd-combo.is-on { animation-duration: 1.2s; }
}
