/* Layout: one phone-width column on a sunny polka-dot ground, chunky "candy" buttons, tab bar pinned to the bottom.
   Bright on purpose: one light theme only (Lee: no dark colours). */
:root {
  --bg: #FFF6CC;         /* butter */
  --dot: #FFE47A;        /* polka dots */
  --sun: #FFE14D;        /* sunny yellow */
  --pink: #FF4FA3;       /* bubblegum, the main accent */
  --pink-deep: #E0347F;
  --blue: #2EB8FF;
  --blue-deep: #1592D6;
  --lime: #7CE04A;
  --lime-deep: #57B82A;
  --orange: #FF8A1F;
  --grape: #4B2A8C;      /* text: bright grape, not black */
  --grape-soft: #7B63B5;
  --card: #FFFFFF;
  --line: rgba(75, 42, 140, 0.14);
  --pink-tint: #FFE0EF;
  --blue-tint: #DDF3FF;
  --lime-tint: #E6F9DA;
  --orange-tint: #FFE8D2;
  --goo: #7CE04A;        /* bogey greens: bright and cartoony, never murky */
  --goo-2: #B2E83C;
  --goo-3: #5EDA9C;
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Fredoka", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 18%, transparent 19%), radial-gradient(var(--dot) 18%, transparent 19%);
  background-size: 44px 44px;
  background-position: 0 0, 22px 22px;
  color: var(--grape);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.01em; }

.app {
  position: relative; z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  min-height: 100%;
}
.view { display: flex; flex-direction: column; gap: 18px; padding-block: 18px 8px; }

/* ---------- logo ---------- */
.hero { text-align: center; display: grid; gap: 4px; }
.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 19vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  display: flex; justify-content: center;
  transform: rotate(-4deg);
}
.logo span {
  display: inline-block;
  color: var(--pink);
  -webkit-text-stroke: 3px var(--grape);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--grape);
  animation: bob 2.4s ease-in-out infinite;
}
.logo span:nth-child(2) { color: var(--blue); animation-delay: .1s; }
.logo span:nth-child(3) { color: var(--lime); animation-delay: .2s; }
.logo span:nth-child(4) { color: var(--orange); animation-delay: .3s; }
.logo span:nth-child(5) { color: var(--sun); animation-delay: .4s; }
.logo span:nth-child(6) { color: var(--pink); animation-delay: .5s; }
.logo span:nth-child(7) { color: var(--blue); animation-delay: .6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) rotate(2deg) } }
.tagline { margin: 6px 0 0; font-weight: 600; color: var(--grape-soft); }

.eyebrow { margin: 0; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--grape-soft); }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; }
.chip-sample { background: var(--orange-tint); color: #A44E00; }
.chip-pb { background: var(--lime-tint); color: #2F7A10; }
.chip-top { background: var(--pink-tint); color: var(--pink-deep); }
.chip-warn { background: var(--orange-tint); color: #A44E00; }

/* ---------- prize ---------- */
.prize {
  position: relative;
  margin-top: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--sun);
  border: 3px solid var(--grape);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 6px 0 var(--grape);
}
.prize-main { display: grid; gap: 2px; justify-items: start; }
.prize-amount { margin: 0; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--pink-deep); }
.prize-clock { text-align: right; }
.countdown { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

/* ---------- big shout button ---------- */
.big-shout {
  position: relative; align-self: center;
  width: min(62vw, 230px); aspect-ratio: 1; max-width: 100%;
  border: 4px solid var(--grape); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF8AC4, var(--pink) 60%);
  box-shadow: 0 10px 0 var(--grape);
  margin-block: 14px 18px;
  transition: transform .1s, box-shadow .1s;
}
.big-shout:active { transform: translateY(8px); box-shadow: 0 2px 0 var(--grape); }
.big-shout-label {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 2.6rem; color: #fff;
  -webkit-text-stroke: 2px var(--grape); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--grape);
}
.ring { position: absolute; inset: -4px; border-radius: 50%; border: 4px solid var(--pink); animation: ring 2s ease-out infinite; }
.ring.r2 { animation-delay: 1s; }
@keyframes ring { from { transform: scale(1); opacity: .8 } to { transform: scale(1.45); opacity: 0 } }

/* ---------- cards ---------- */
.card, .you {
  background: var(--card);
  border: 3px solid var(--grape);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid; gap: 12px;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.link-btn { background: none; border: 0; padding: 4px 0; font-weight: 700; color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.you { background: var(--blue-tint); border-style: dashed; grid-template-columns: 1fr auto; align-items: center; }
.you p { margin: 0; }
.you .you-score { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.you .you-rank { font-family: var(--font-display); font-size: 1.6rem; color: var(--pink-deep); text-align: right; }

.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.podium li { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.podium .name { font-weight: 700; font-size: .9rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .score { font-weight: 600; font-size: .85rem; color: var(--grape-soft); font-variant-numeric: tabular-nums; }
.podium .block { width: 100%; border: 3px solid var(--grape); border-radius: 14px 14px 6px 6px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; color: #fff; -webkit-text-stroke: 1.5px var(--grape); paint-order: stroke fill; }
.podium .p1 .block { height: 92px; background: var(--sun); }
.podium .p2 .block { height: 70px; background: var(--blue); }
.podium .p3 .block { height: 54px; background: var(--orange); }
.podium .p1 { order: 2; } .podium .p2 { order: 1; } .podium .p3 { order: 3; }

.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem;
  border: 3px solid var(--grape);
}
.av0 { background: var(--pink-tint); } .av1 { background: var(--blue-tint); } .av2 { background: var(--lime-tint); } .av3 { background: var(--orange-tint); } .av4 { background: #FFF3B0; }

.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.steps li::marker { font-family: var(--font-display); color: var(--pink); }

/* ---------- tester tools ---------- */
.tester { background: rgba(255,255,255,.7); border: 2px dashed var(--line); border-radius: 16px; padding: 10px 14px; }
.tester summary { font-weight: 700; cursor: pointer; color: var(--grape-soft); }
.tester-body { display: grid; gap: 8px; padding-top: 10px; }
.tester label { font-weight: 600; font-size: .95rem; }
.offset-row, .reset-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offset-row input { width: 6.5em; padding: 8px 10px; border: 2px solid var(--grape); border-radius: 12px; background: #fff; }
.hint { margin: 0; font-size: .85rem; color: var(--grape-soft); }
.small-btn { padding: 6px 12px; border: 2px solid var(--grape); border-radius: 99px; background: #fff; font-weight: 600; font-size: .9rem; }
.small-btn.danger { color: var(--pink-deep); border-color: var(--pink-deep); }

/* ---------- shout view ---------- */
.shout-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.back-btn { padding: 8px 16px; border: 3px solid var(--grape); border-radius: 99px; background: #fff; font-weight: 700; box-shadow: 0 4px 0 var(--grape); }
.back-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--grape); }
.shout-title { margin: 0; font-family: var(--font-display); font-size: 1.4rem; }
.shout-title b { color: var(--pink); font-weight: 400; }

/* The shout screen fills exactly the visible height: the camera box takes whatever is left,
   so the meter and the Ready button are never pushed below the browser's toolbars. */
body.in-shout .app { padding-bottom: env(safe-area-inset-bottom, 0px); }
body.in-shout #view-shout {
  height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding-block: 10px 12px; gap: 10px;
}
.stage {
  flex: 1 1 0; min-height: 150px;
  position: relative; width: 100%; max-width: 100%;
  border: 4px solid var(--grape); border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--blue-tint), var(--pink-tint));
  margin-inline: auto;
}
.stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.no-cam { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; padding: 20px; }
.no-cam p { margin: 0; font-family: var(--font-display); font-size: 1.4rem; }
.face-guide { position: absolute; left: 50%; top: 46%; height: 72%; max-width: 70%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 4px dashed rgba(255,255,255,.9); border-radius: 50%; pointer-events: none; }
.arm-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.92); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.overlay .count, .overlay .go {
  font-family: var(--font-display); color: #fff; line-height: 1;
  -webkit-text-stroke: 4px var(--grape); paint-order: stroke fill; text-shadow: 0 8px 0 var(--grape);
  animation: pop .6s cubic-bezier(.2, 1.6, .4, 1);
}
.overlay .count { font-size: 9rem; color: var(--sun); }
.overlay .go { font-size: 3.6rem; color: var(--pink); text-align: center; transform: rotate(-6deg); }
@keyframes pop { from { transform: scale(.3); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.stage.shouting { border-color: var(--pink); box-shadow: 0 0 0 6px var(--pink-tint); }
.timer { position: absolute; top: 12px; right: 12px; width: 56px; height: 56px; transform: rotate(-90deg); }
.timer-bg { fill: rgba(255,255,255,.9); stroke: var(--line); stroke-width: 10; }
.timer-fg { fill: none; stroke: var(--pink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 0; }

.meter-card { flex: none; background: var(--card); border: 3px solid var(--grape); border-radius: var(--radius); padding: 10px 16px 10px; display: grid; gap: 6px; }
.meter-read { display: flex; align-items: baseline; gap: 6px; }
.meter-num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.meter-unit { font-weight: 700; color: var(--grape-soft); }
.meter-peak-read { margin-left: auto; font-weight: 600; color: var(--grape-soft); }
.meter-peak-read b { color: var(--pink-deep); font-variant-numeric: tabular-nums; }
.meter { position: relative; height: 26px; border: 3px solid var(--grape); border-radius: 99px; overflow: hidden; background: var(--bg); }
.meter-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--lime) 0%, var(--sun) 45%, var(--orange) 70%, var(--pink) 100%); clip-path: inset(0 100% 0 0 round 99px); }
.meter-peak { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--grape); border-radius: 2px; }
.meter-scale { position: relative; height: 2.6em; font-size: .75rem; font-weight: 700; line-height: 1.1; }
.meter-scale span { position: absolute; left: var(--at); transform: translateX(-50%); text-align: center; }
.meter-scale small { font-weight: 500; color: var(--grape-soft); }

.shout-top, #view-shout .cta { flex: none; }
.shout-msg { flex: none; margin: 0; text-align: center; font-weight: 600; min-height: 1.4em; line-height: 1.25; }
.shout-msg.error { color: var(--pink-deep); }

/* ---------- buttons ---------- */
.cta {
  width: 100%; padding: 16px 20px;
  border: 3px solid var(--grape); border-radius: 20px;
  background: var(--pink); color: #fff;
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .02em;
  -webkit-text-stroke: 1px var(--grape); paint-order: stroke fill;
  box-shadow: 0 6px 0 var(--grape);
  transition: transform .08s, box-shadow .08s;
}
.cta:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 var(--grape); }
.cta:disabled { background: #F3E9FF; color: var(--grape-soft); -webkit-text-stroke: 0; cursor: default; }
.cta-alt { background: var(--blue); }

/* ---------- result ---------- */
.result-hero { text-align: center; display: grid; gap: 6px; justify-items: center; padding-top: 6px; }
.result-score { margin: 0; font-family: var(--font-display); line-height: .9; }
#result-num { font-size: clamp(5rem, 28vw, 7.5rem); color: var(--pink); -webkit-text-stroke: 4px var(--grape); paint-order: stroke fill; text-shadow: 0 8px 0 var(--grape); font-variant-numeric: tabular-nums; }
.result-unit { font-size: 2rem; margin-left: 6px; }
.result-compare { margin: 6px 0 0; font-weight: 700; font-size: 1.15rem; }
.result-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.result-video { width: 100%; max-width: 100%; max-height: 46vh; border: 4px solid var(--grape); border-radius: 24px; background: var(--blue-tint); }
.post-form { display: grid; gap: 8px; background: var(--card); border: 3px solid var(--grape); border-radius: var(--radius); padding: 16px; }
.post-form label { font-weight: 700; }
.post-form input { padding: 12px 14px; border: 3px solid var(--grape); border-radius: 14px; background: var(--bg); font-size: 1.1rem; }
.form-error { margin: 0; color: var(--pink-deep); font-weight: 600; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: .9rem; }
.details dt { font-weight: 700; }
.details dd { margin: 0; color: var(--grape-soft); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---------- leaderboard ---------- */
.board-head { display: grid; gap: 12px; }
.board-title { font-size: 2.2rem; color: var(--pink); -webkit-text-stroke: 2px var(--grape); paint-order: stroke fill; text-shadow: 0 4px 0 var(--grape); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 3px solid var(--grape); border-radius: 99px; padding: 4px; gap: 4px; }
.tab { border: 0; border-radius: 99px; padding: 8px; background: transparent; font-weight: 700; }
.tab[aria-selected="true"] { background: var(--sun); box-shadow: inset 0 0 0 2px var(--grape); }
.board-status { margin: 0; text-align: center; font-weight: 600; font-size: .9rem; color: var(--grape-soft); min-height: 1.3em; }
.board-status::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 3px var(--lime-tint); vertical-align: 1px; }
.board-status.offline { color: #A44E00; }
.board-status.offline::before { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.empty { display: grid; justify-items: center; gap: 6px; }
.empty p { margin: 0; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 2.2em auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  background: var(--card); border: 3px solid var(--grape); border-radius: 18px; padding: 10px 12px;
}
.row.mine { background: var(--blue-tint); }
.row.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0%, 40% { background: var(--sun); transform: scale(1.03) } 100% { transform: none } }
.rank { font-family: var(--font-display); font-size: 1.4rem; text-align: center; }
.row:nth-child(1) .rank { color: var(--orange); } .row:nth-child(2) .rank { color: var(--blue-deep); } .row:nth-child(3) .rank { color: var(--pink-deep); }
.who { display: grid; min-width: 0; }
.who .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--grape-soft); }
.end { display: flex; align-items: center; gap: 8px; }
.db { font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db small { font-family: var(--font-body); font-size: .75rem; font-weight: 700; margin-left: 2px; }
.play { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--grape); background: var(--pink); display: grid; place-items: center; padding: 0; }
.play svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.empty { text-align: center; padding: 16px; color: var(--grape-soft); font-weight: 600; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  max-width: 480px; margin: 0 auto;
  padding: 8px 24px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff; border: 3px solid var(--grape); border-bottom: 0; border-radius: 26px 26px 0 0;
}
.nav-btn { display: grid; justify-items: center; gap: 2px; border: 0; background: none; font-weight: 700; font-size: .8rem; color: var(--grape-soft); padding: 4px; }
.nav-btn svg { width: 26px; height: 26px; fill: currentColor; }
.nav-btn.on { color: var(--pink-deep); }
.nav-shout { width: 72px; height: 72px; margin-top: -34px; border-radius: 50%; border: 4px solid var(--grape); background: var(--pink); box-shadow: 0 5px 0 var(--grape); display: grid; place-items: center; }
.nav-shout svg { width: 34px; height: 34px; fill: #fff; }
.nav-shout:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--grape); }

/* ---------- video dialog ---------- */
.video-dialog { border: 4px solid var(--grape); border-radius: 26px; padding: 14px; background: var(--bg); width: min(92vw, 420px); display: grid; gap: 12px; }
.video-dialog:not([open]) { display: none; }
.video-dialog::backdrop { background: rgba(255, 225, 77, .75); }
.video-dialog video { width: 100%; max-height: 60vh; border-radius: 18px; background: var(--blue-tint); }

/* ---------- bogies ---------- */
.bogey { display: inline-block; width: 56px; aspect-ratio: 100 / 106; flex: none; }
.bogey svg { display: block; width: 100%; height: 100%; overflow: visible; }
.b-body, .b-drip { fill: var(--goo); stroke: var(--grape); stroke-width: 3.5; stroke-linejoin: round; }
.b-shine { fill: #fff; opacity: .6; }
.b-cheek { fill: #FFA8D3; }
.b-eye { fill: #fff; stroke: var(--grape); stroke-width: 3; }
.b-pupil, .b-mouth { fill: var(--grape); }
.b-tongue { fill: var(--pink); }
.b-line { fill: none; stroke: var(--grape); stroke-width: 4; stroke-linecap: round; }
.b-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1) } 96% { transform: scaleY(.1) } }

/* drifting background bogies, kept to the edges */
.goo-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.drift { position: absolute; animation: drift 7s ease-in-out infinite; }
.d1 { width: 46px; left: -8px; top: 18%; --goo: var(--goo-2); }
.d2 { width: 34px; right: -4px; top: 34%; animation-delay: -2s; --goo: var(--goo-3); }
.d3 { width: 40px; left: 2%; top: 58%; animation-delay: -4s; }
.d4 { width: 30px; right: 3%; top: 70%; animation-delay: -1s; --goo: var(--goo-2); }
.d5 { width: 38px; left: 8%; top: 4%; animation-delay: -5s; --goo: var(--goo-3); }
.d6 { width: 28px; right: 10%; top: 3%; animation-delay: -3s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-8deg) } 50% { transform: translate(6px, -18px) rotate(10deg) } }

/* mascot sitting on the prize card: tap to poke */
.mascot {
  position: absolute; right: 14px; top: -44px; width: 64px;
  padding: 0; border: 0; background: none;
  animation: bob 2.8s ease-in-out infinite;
}
.mascot.poked { animation: squish .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes squish { 0% { transform: scale(1.25, .7) } 60% { transform: scale(.9, 1.15) } 100% { transform: none } }
.bubble {
  position: absolute; right: 86px; top: -40px; z-index: 2;
  max-width: 60%;
  background: #fff; border: 3px solid var(--grape); border-radius: 16px;
  padding: 6px 12px; font-weight: 700; font-size: .9rem; line-height: 1.2;
  animation: pop .35s cubic-bezier(.2, 1.6, .4, 1);
}
.bubble::after { content: ""; position: absolute; right: -10px; top: 12px; border: 7px solid transparent; border-left-color: var(--grape); }

/* cheering bogies either side of the SHOUT button */
.shout-wrap { position: relative; display: grid; justify-items: center; }
.fan { position: absolute; bottom: 22px; width: 58px; animation: cheer 1.1s ease-in-out infinite; }
.fan-l { left: 0; }
.fan-r { right: 0; animation-delay: -.55s; }
@keyframes cheer { 0%, 100% { transform: translateY(0) rotate(-6deg) } 50% { transform: translateY(-14px) rotate(6deg) } }

/* shout screen: grows and yells with the live level (scale set from app.js) */
.stage-bogey { position: absolute; left: 12px; top: 12px; width: 58px; transform-origin: top left; transition: transform 80ms linear; }
.stage-bogey.loud { animation: shake .18s linear infinite; }
@keyframes shake { 0%, 100% { rotate: -5deg } 50% { rotate: 5deg } }

.result-bogey { width: 92px; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.board-title-row { display: flex; align-items: center; gap: 10px; }
.board-bogey { width: 46px; animation: bob 2.6s ease-in-out infinite; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
