/* ---------------------------------------------------------------------------
   Bubblewrap — app styles
   Theme tokens are set per body[data-theme]; everything else reads tokens.
--------------------------------------------------------------------------- */

:root {
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --hud-h: 72px;
  --dock-h: 96px;
  --radius: 22px;
  --ease-spring: cubic-bezier(.2, 1.4, .4, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --bg0: #e6edf5;
  --bg1: #c5d3e3;
  --ink: #1a2536;
  --ink-soft: rgba(26, 37, 54, .65);
  --accent: #3b82f6;
  --accent-ink: #ffffff;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .8);
  --glass-border: rgba(255, 255, 255, .7);
  --shadow: 0 10px 30px rgba(20, 40, 70, .18), 0 2px 6px rgba(20, 40, 70, .08);
  --chip: rgba(0, 0, 0, .05);
  --chip-active: rgba(59, 130, 246, .14);
}

body[data-theme="bubblegum"] { --bg0: #ffdcea; --bg1: #ffb0cf; --ink: #4a1a33; --ink-soft: rgba(74,26,51,.65); --accent: #ec4899; --chip-active: rgba(236,72,153,.16); }
body[data-theme="mint"]      { --bg0: #dcf7ec; --bg1: #a6e5cd; --ink: #123d2e; --ink-soft: rgba(18,61,46,.65); --accent: #10b981; --chip-active: rgba(16,185,129,.16); }
body[data-theme="lavender"]  { --bg0: #eae4ff; --bg1: #c9bdf7; --ink: #2c2352; --ink-soft: rgba(44,35,82,.65); --accent: #8b5cf6; --chip-active: rgba(139,92,246,.16); }
body[data-theme="sunset"]    { --bg0: #ffe0b8; --bg1: #ffab94; --ink: #4a2415; --ink-soft: rgba(74,36,21,.65); --accent: #f97316; --chip-active: rgba(249,115,22,.16); }
body[data-theme="gold"]      { --bg0: #fff2c4; --bg1: #f3c548; --ink: #4a3300; --ink-soft: rgba(74,51,0,.65); --accent: #d97706; --chip-active: rgba(217,119,6,.16); }
body[data-theme="holo"]      { --bg0: #dff6ff; --bg1: #f6dcff; --ink: #2a1f45; --ink-soft: rgba(42,31,69,.65); --accent: #a855f7; --chip-active: rgba(168,85,247,.16); }
body[data-theme="midnight"] {
  --bg0: #1a2140; --bg1: #090c18; --ink: #e6f0ff; --ink-soft: rgba(230,240,255,.65); --accent: #22d3ee; --accent-ink: #06202a;
  --glass: rgba(18, 24, 44, .62); --glass-strong: rgba(18, 24, 44, .86); --glass-border: rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3); --chip: rgba(255,255,255,.07); --chip-active: rgba(34,211,238,.18);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg0) 0%, var(--bg1) 100%) fixed;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: background .6s ease;
  position: fixed;
  inset: 0;
}
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

#app { position: fixed; inset: 0; }

#sheet {
  position: absolute; inset: 0; display: block; touch-action: none; cursor: pointer;
}

/* Slow light sweep across the plastic — pure CSS, GPU-composited. */
#sheen {
  position: absolute; inset: -60% -60%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.22) 50%, transparent 58%);
  mix-blend-mode: soft-light;
  animation: sheen 11s linear infinite;
  will-change: transform;
}
@keyframes sheen { from { transform: translateX(-38%); } to { transform: translateX(38%); } }

/* ---- HUD ------------------------------------------------------------- */
#hud {
  position: absolute; left: 0; right: 0; top: 0;
  padding: calc(var(--safe-top) + 10px) calc(var(--safe-right) + 14px) 0 calc(var(--safe-left) + 14px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  pointer-events: none;
}
#hud > * { pointer-events: auto; }
#settings-btn { justify-self: end; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--shadow); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .18s var(--ease-spring), background .3s;
}
.pill:active { transform: scale(.94); }
.icon-btn { width: 44px; padding: 0; justify-content: center; }

#counter { text-align: center; line-height: 1; min-width: 96px; }
#count {
  font-size: 44px; font-weight: 900; letter-spacing: -1.5px;
  text-shadow: 0 2px 12px rgba(255,255,255,.35);
  transition: transform .12s var(--ease-spring);
  font-variant-numeric: tabular-nums;
}
#count.bump { transform: scale(1.14); }
#count-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

/* ---- Timer ----------------------------------------------------------- */
#timer {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--safe-top) + var(--hud-h) + 6px); width: min(320px, 70vw);
  display: flex; align-items: center; gap: 10px; pointer-events: none;
}
#timer-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(0,0,0,.12); overflow: hidden; }
#timer-fill { height: 100%; width: 100%; background: var(--accent); border-radius: 99px; transition: width .1s linear, background .3s; }
#timer-fill.urgent { background: #ef4444; }
#timer-text { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

/* ---- Combo ----------------------------------------------------------- */
#combo {
  position: absolute; left: 50%; top: calc(var(--safe-top) + var(--hud-h) + 34px);
  transform: translate(-50%, -8px) scale(.6); opacity: 0; pointer-events: none;
  display: flex; align-items: baseline; gap: 4px;
  color: var(--accent); font-weight: 900; font-size: 34px; letter-spacing: -1px;
  text-shadow: 0 2px 14px rgba(255,255,255,.5);
  transition: opacity .25s, transform .25s var(--ease-spring);
}
#combo.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
#combo.pulse { animation: comboPulse .32s var(--ease-spring); }
#combo .x { font-size: 20px; }
#combo .combo-word { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; opacity: .8; margin-left: 6px; }
@keyframes comboPulse { 0% { transform: translate(-50%, 0) scale(1.35) rotate(-3deg); } 100% { transform: translate(-50%, 0) scale(1); } }

#floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; touch-action: none; }
.floater {
  position: absolute; transform: translate(-50%, -50%); font-weight: 900; font-size: 22px; color: var(--accent);
  text-shadow: 0 2px 10px rgba(255,255,255,.6); animation: floatUp .9s var(--ease-out) forwards; will-change: transform, opacity;
}
.floater.golden { color: #d99a06; font-size: 28px; }
.floater.storm { color: var(--ink); font-size: 26px; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }

/* ---- Dock ------------------------------------------------------------ */
#dock {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 calc(var(--safe-right) + 22px) calc(var(--safe-bottom) + 14px) calc(var(--safe-left) + 22px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px;
  pointer-events: none;
}
#dock > * { pointer-events: auto; }
#stats-btn { justify-self: start; }
#share-btn { justify-self: end; }
.dock-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 70px; height: 62px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--glass-border);
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--shadow); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  transition: transform .18s var(--ease-spring);
}
.dock-btn:active { transform: scale(.94); }
.dock-btn.primary {
  width: 76px; height: 76px; padding: 0; border-radius: 50%; position: relative; background: var(--glass-strong);
}
.dock-btn.primary .big-emoji { font-size: 30px; line-height: 1; position: relative; }
#ring { position: absolute; inset: 5px; width: auto; height: auto; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(0,0,0,.08); stroke-width: 5; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 175.93; stroke-dashoffset: 175.93; transition: stroke-dashoffset .25s var(--ease-out); }

/* ---- Countdown / banner --------------------------------------------- */
#countdown { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
#countdown-num { font-size: 160px; font-weight: 900; color: var(--accent); text-shadow: 0 10px 40px rgba(0,0,0,.15); animation: cdPop .8s var(--ease-out); }
#countdown-num.go { font-size: 110px; }
@keyframes cdPop { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }

#banner { position: absolute; left: 0; right: 0; top: 40%; display: grid; place-items: center; pointer-events: none; z-index: 5; }
#banner-text {
  padding: 16px 28px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 900; font-size: 26px; letter-spacing: -.5px; box-shadow: var(--shadow);
  animation: bannerIn 1.3s var(--ease-spring) forwards;
}
@keyframes bannerIn { 0% { transform: scale(.4) rotate(-4deg); opacity: 0; } 20% { transform: scale(1.05) rotate(1deg); opacity: 1; } 75% { transform: scale(1); opacity: 1; } 100% { transform: translateY(-20px) scale(.9); opacity: 0; } }

body.flash::after {
  content: ""; position: fixed; inset: 0; background: #fff; pointer-events: none; z-index: 4;
  animation: flash .5s ease-out forwards;
}
@keyframes flash { from { opacity: .55; } to { opacity: 0; } }

/* ---- Toasts ---------------------------------------------------------- */
#toasts { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + var(--dock-h) + 6px); display: grid; gap: 8px; justify-items: center; pointer-events: none; z-index: 6; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: toastIn .45s var(--ease-spring), toastOut .4s ease-in 3.2s forwards;
}
.toast .ico { font-size: 26px; line-height: 1; }
.toast .t { font-weight: 800; font-size: 14px; }
.toast .d { font-size: 12px; color: var(--ink-soft); }
@keyframes toastIn { from { transform: translateY(16px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(12px); opacity: 0; } }

/* ---- Overlays & panels ---------------------------------------------- */
.overlay {
  position: absolute; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 16, 30, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
.overlay[hidden] { display: none; }
.overlay.full { align-items: stretch; background: linear-gradient(160deg, var(--bg0), var(--bg1)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.overlay.closing { animation: fadeOut .22s ease forwards; }
.overlay.closing .sheet-panel { animation: sheetOut .22s ease-in forwards; }
.overlay.closing .center-panel { animation: popOut .2s ease-in forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.panel {
  background: var(--glass-strong); color: var(--ink);
  backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--glass-border); box-shadow: 0 -10px 40px rgba(0,0,0,.18);
}
.sheet-panel {
  width: 100%; max-width: 560px; border-radius: 28px 28px 0 0; padding: 8px 20px calc(var(--safe-bottom) + 16px);
  display: flex; flex-direction: column; gap: 14px; max-height: 88%;
  animation: sheetIn .42s var(--ease-spring);
}
.sheet-panel.tall { height: 88%; }
.sheet-panel .scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; touch-action: pan-y; display: grid; gap: 22px; padding-bottom: 8px; }
.grabber { width: 40px; height: 5px; border-radius: 99px; background: var(--ink-soft); opacity: .35; margin: 4px auto 2px; }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }

.center-panel {
  border-radius: 32px; width: min(92vw, 420px); padding: 32px 26px 22px; margin-bottom: 30vh; text-align: center;
  display: flex; flex-direction: column; gap: 8px; align-items: center; animation: popIn .45s var(--ease-spring);
  align-self: center;
}
@keyframes popIn { from { transform: scale(.7); opacity: 0; } }
@keyframes popOut { to { transform: scale(.85); opacity: 0; } }

h2 { font-size: 24px; font-weight: 900; letter-spacing: -.5px; }
h3 { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
h3 .sub { text-transform: none; letter-spacing: 0; font-weight: 600; }
.sub { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.fineprint { font-size: 12px; color: var(--ink-soft); line-height: 1.5; text-align: center; padding: 0 8px 12px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
body[data-theme="midnight"] .row { border-color: rgba(255,255,255,.08); }
.row:last-child { border-bottom: none; }
.row label { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.row strong { font-weight: 800; }

/* Switch */
.switch { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 99px; background: rgba(0,0,0,.15); position: relative; cursor: pointer; transition: background .25s; flex-shrink: 0; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s var(--ease-spring); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }

/* Range */
input[type="range"] { appearance: none; -webkit-appearance: none; width: 55%; height: 8px; border-radius: 99px; background: rgba(0,0,0,.12); outline: none; margin: 0; }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; cursor: pointer; }

/* Chips */
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip-row { display: flex; gap: 10px; }
.chip {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left;
  padding: 12px 14px; border-radius: 16px; border: 2px solid transparent; background: var(--chip); cursor: pointer;
  transition: transform .15s var(--ease-spring), background .2s, border-color .2s; flex: 1;
}
.chip:active { transform: scale(.96); }
.chip.active { background: var(--chip-active); border-color: var(--accent); }
.chip .name { font-weight: 800; font-size: 15px; }
.chip .desc { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.chip-row .chip { align-items: center; text-align: center; padding: 12px 6px; }
.chip .dot { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, var(--dot, #cbd5e1) 60%, rgba(0,0,0,.15) 100%); margin-bottom: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-card {
  position: relative; aspect-ratio: 1; border-radius: 18px; border: 3px solid transparent; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 800; font-size: 11px; color: var(--tc-ink);
  transition: transform .15s var(--ease-spring), border-color .2s; padding: 0;
}
.theme-card:active { transform: scale(.95); }
.theme-card.active { border-color: var(--accent); }
.theme-card .swatch { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.theme-card.locked { opacity: .55; filter: saturate(.5); }
.theme-card .lock { position: absolute; top: 6px; right: 8px; font-size: 12px; }
.theme-card .req { font-size: 10px; opacity: .8; font-weight: 700; }

.mode-list { display: grid; gap: 12px; }
.mode-card {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px;
  background: var(--chip); border: 2px solid transparent; cursor: pointer; text-align: left; transition: transform .15s var(--ease-spring), border-color .2s, background .2s;
}
.mode-card:active { transform: scale(.98); }
.mode-card.active { border-color: var(--accent); background: var(--chip-active); }
.mode-card .emoji { font-size: 36px; text-align: center; }
.mode-card .name { font-weight: 900; font-size: 18px; }
.mode-card .desc { font-size: 13px; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.mode-card .best { font-size: 12px; font-weight: 800; color: var(--accent); text-align: right; white-space: nowrap; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stat { background: var(--chip); border-radius: 18px; padding: 14px 10px; text-align: center; }
.stat .v { font-size: 26px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }

.ach-list { display: grid; gap: 8px; }
.ach { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--chip); }
.ach .ico { font-size: 28px; text-align: center; }
.ach .t { font-weight: 800; font-size: 14px; }
.ach .d { font-size: 12px; color: var(--ink-soft); }
.ach.locked { opacity: .45; filter: grayscale(1); }

.btn { height: 52px; padding: 0 22px; border-radius: 999px; border: none; font-weight: 800; font-size: 16px; cursor: pointer; transition: transform .15s var(--ease-spring); flex: 1; }
.btn:active { transform: scale(.95); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn.secondary { background: var(--chip); color: var(--ink); }
.btn-row { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
.link-btn { background: none; border: none; color: var(--ink-soft); font-weight: 700; padding: 10px; cursor: pointer; }
.close-btn { height: 48px; border-radius: 999px; border: none; background: var(--chip); font-weight: 800; font-size: 15px; cursor: pointer; }
.mini-btn { height: 38px; padding: 0 16px; border-radius: 999px; border: none; background: var(--accent); color: var(--accent-ink); font-weight: 800; cursor: pointer; }
.mini-btn.danger { background: #ef4444; color: #fff; }

#result-score { font-size: 84px; font-weight: 900; letter-spacing: -3px; line-height: 1; color: var(--accent); }
#result-sub { color: var(--ink-soft); font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.chips .c { padding: 8px 14px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 700; }
.chips .c b { font-weight: 900; }
#result-kicker.record { color: #d99a06; }

.share-preview { width: 100%; display: grid; place-items: center; }
.share-preview canvas, .share-preview img { width: min(62vw, 300px); height: auto; border-radius: 16px; box-shadow: var(--shadow); }

/* ---- Splash ---------------------------------------------------------- */
#splash { z-index: 20; cursor: pointer; }
.splash-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.splash-inner h1 { font-size: 46px; font-weight: 900; letter-spacing: -2px; }
.tagline { font-size: 18px; font-weight: 700; color: var(--ink-soft); }
.hint { margin-top: 32px; font-weight: 800; font-size: 16px; animation: breathe 2.2s ease-in-out infinite; }
.hint.small { margin-top: 6px; font-size: 13px; color: var(--ink-soft); animation: none; font-weight: 600; }
@keyframes breathe { 0%, 100% { opacity: .55; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.hero-bubble {
  width: 150px; height: 150px; border-radius: 50%; position: relative; margin-bottom: 14px;
  background: radial-gradient(circle at 32% 28%, #fff 0%, rgba(255,255,255,.95) 12%, var(--bg0) 45%, rgba(120,150,190,.55) 100%);
  box-shadow: 0 20px 50px rgba(20,40,70,.25), inset 0 -10px 30px rgba(255,255,255,.6), inset 0 0 0 1px rgba(255,255,255,.8);
  animation: heroFloat 3.4s ease-in-out infinite;
}
.hero-glint { position: absolute; left: 24%; top: 18%; width: 46px; height: 28px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,1), rgba(255,255,255,0) 70%); transform: rotate(-35deg); }
@keyframes heroFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.03); } }

/* ---- Reduced motion -------------------------------------------------- */
body.reduce-motion #sheen, body.reduce-motion .hero-bubble, body.reduce-motion .hint { animation: none; }
body.reduce-motion .sheet-panel, body.reduce-motion .center-panel, body.reduce-motion .toast, body.reduce-motion #banner-text { animation-duration: .01s; }
@media (prefers-reduced-motion: reduce) {
  #sheen, .hero-bubble, .hint { animation: none; }
}

@media (min-width: 720px) {
  #sheet { cursor: pointer; }
  .theme-grid { grid-template-columns: repeat(8, 1fr); }
}
