:root {
  --ink: #0b0c10;
  --paper: #f4f0e8;
  --signal: #ff4d2e;
  --neon: #39e5c2;
  --duck-sky: #7dd3fc;
  --duck-water: #0284c7;
  --duck-deep: #0c4a6e;
  --duck-wood: #92400e;
  --duck-gold: #fbbf24;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(2, 132, 199, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 15%, rgba(251, 191, 36, 0.18), transparent 50%),
    linear-gradient(160deg, #07080c 0%, #12151d 48%, #0a0b10 100%);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.back {
  color: rgba(244, 240, 232, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.back:hover { color: var(--paper); }

.top h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ghost {
  border: 1px solid rgba(244, 240, 232, 0.25);
  background: transparent;
  color: rgba(244, 240, 232, 0.75);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ghost[aria-pressed="true"] {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
}

#timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--duck-gold);
  min-width: 3.5rem;
  text-align: right;
}

#timer.is-urgent {
  color: var(--signal);
  animation: pulse 0.6s ease infinite;
}

.duck-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 2.5rem;
}

.screen { animation: rise 0.4s ease both; }

.eyebrow {
  margin: 0 0 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.45);
}

.menu-title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-weight: 400;
}

.duck-hint {
  text-align: center;
  color: rgba(244, 240, 232, 0.65);
  line-height: 1.45;
  margin: 0 auto 1.25rem;
  max-width: 38ch;
  font-size: 1rem;
}

.difficulty {
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 16px;
  padding: 0.85rem 1rem 1rem;
  margin: 0 auto 1rem;
  max-width: 26rem;
}

.difficulty legend {
  padding: 0 0.35rem;
  color: rgba(244, 240, 232, 0.55);
  font-size: 0.82rem;
}

.diff-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.diff-btn {
  border: 1px solid rgba(244, 240, 232, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.55rem 0.4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.diff-btn.is-active {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #451a03;
  border-color: transparent;
  box-shadow: 0 3px 0 #92400e;
}

.best-line {
  text-align: center;
  color: rgba(244, 240, 232, 0.55);
  margin: 0 0 1.25rem;
}

.best-line strong { color: var(--duck-gold); }

.duck-scoreboard {
  display: flex;
  justify-content: center;
  gap: 1.1rem 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: rgba(244, 240, 232, 0.7);
}

.duck-scoreboard strong {
  display: block;
  color: var(--duck-gold);
  font-size: 1.35rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.duck-booth {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #f59e0b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, #38bdf8 0%, var(--duck-sky) 40%, #bae6fd 40%, #bae6fd 46%, transparent 46%),
    linear-gradient(180deg, #0ea5e9 46%, var(--duck-water) 72%, var(--duck-deep) 100%);
  min-height: 340px;
  margin: 0 auto 1rem;
  touch-action: manipulation;
  user-select: none;
  cursor: crosshair;
}

.duck-booth.is-shake {
  animation: shake 0.28s ease;
}

.duck-booth__lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #fbbf24 0 14px,
    #ef4444 14px 28px,
    #22c55e 28px 42px,
    #3b82f6 42px 56px
  );
  opacity: 0.9;
  animation: marquee 1.2s linear infinite;
  z-index: 5;
}

.duck-booth__sign {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #451a03;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 0 #92400e;
  white-space: nowrap;
  font-size: clamp(0.78rem, 2.8vw, 0.95rem);
}

.duck-booth__sign em {
  font-style: normal;
  background: #fff7ed;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  color: #9a3412;
}

.duck-clouds {
  position: absolute;
  inset: 12% 0 58%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 70px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(0.2px);
  animation: drift-cloud 18s linear infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before { width: 34px; height: 34px; top: -14px; left: 12px; }
.cloud::after { width: 28px; height: 28px; top: -10px; left: 34px; }

.c1 { top: 10%; left: -20%; animation-duration: 22s; }
.c2 { top: 35%; left: -30%; animation-duration: 28s; animation-delay: -8s; opacity: 0.7; }
.c3 { top: 55%; left: -15%; animation-duration: 19s; animation-delay: -3s; opacity: 0.5; width: 50px; }

.duck-water {
  position: absolute;
  inset: 46% 0 12%;
  overflow: hidden;
  z-index: 2;
}

.duck-water::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 28px,
      rgba(255, 255, 255, 0.08) 28px 30px
    );
  animation: water-flow 2.4s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

.duck-lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 32%;
}

.duck-lane:nth-child(1) { top: 4%; }
.duck-lane:nth-child(2) { top: 36%; }
.duck-lane:nth-child(3) { top: 68%; }

.duck-lane__ripple {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0.5;
  pointer-events: none;
  animation: ripple 1.8s ease-in-out infinite;
}

.duck {
  position: absolute;
  top: 0;
  width: clamp(74px, 18vw, 100px);
  height: clamp(54px, 13vw, 72px);
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: translateX(-120%);
  z-index: 2;
  animation: bob 0.7s ease-in-out infinite;
}

.duck:focus-visible {
  outline: 3px solid #fef08a;
  outline-offset: 4px;
  border-radius: 12px;
}

.duck.is-hit {
  pointer-events: none;
  animation: duck-splash 0.42s ease-out forwards;
}

.duck.is-gold svg { filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.85)); }
.duck.is-dark .duck__body { fill: #334155; }
.duck.is-dark .duck__wing { fill: #1e293b; }
.duck.is-dark .duck__head { fill: #475569; }
.duck.is-green .duck__body { fill: #4ade80; }
.duck.is-green .duck__wing { fill: #22c55e; }
.duck.is-green .duck__head { fill: #86efac; }

.duck svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.duck-booth__rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: linear-gradient(180deg, #b45309 0%, var(--duck-wood) 45%, #78350f 100%);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.12);
  z-index: 3;
}

.duck-booth__rail::before {
  content: '● ● ● ● ● ● ● ● ● ●';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.55rem;
  color: rgba(254, 243, 199, 0.55);
  font-size: 0.7rem;
}

.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.float-pts {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fffbeb;
  text-shadow: 0 2px 0 #92400e, 0 0 12px rgba(251, 191, 36, 0.7);
  animation: float-up 0.8s ease-out forwards;
  white-space: nowrap;
}

.float-pts.is-gold { color: #fde047; font-size: 1.9rem; }
.float-pts.is-combo { color: #fb7185; }

.combo-banner {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 7;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 2px solid #fb7185;
  color: #fecdd3;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  pointer-events: none;
  opacity: 0;
}

.combo-banner.is-pop {
  animation: combo-pop 0.55s ease both;
}

.status {
  text-align: center;
  color: rgba(244, 240, 232, 0.7);
  min-height: 1.4rem;
  margin: 0 0 1rem;
}

.duck-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #451a03;
  box-shadow: 0 4px 0 #92400e;
  margin: 0 auto;
  display: block;
}

#screen-menu .btn-primary { width: min(16rem, 100%); }

.btn-primary:hover { filter: brightness(1.05); }

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(244, 240, 232, 0.28);
}

.end-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 22rem;
  margin: 0 auto 1.25rem;
}

.end-stats > div {
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  text-align: center;
}

.end-stats span {
  display: block;
  color: rgba(244, 240, 232, 0.5);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.end-stats strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--duck-gold);
  font-weight: 400;
}

.hidden { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes duck-splash {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  35% { transform: translateY(-22px) scale(1.12) rotate(-8deg); opacity: 1; }
  100% { transform: translateY(48px) scale(0.65) rotate(12deg); opacity: 0; }
}

@keyframes float-up {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.85); }
  100% { opacity: 0; transform: translate(-50%, -56px) scale(1.15); }
}

@keyframes combo-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes marquee {
  from { background-position: 0 0; }
  to { background-position: 56px 0; }
}

@keyframes water-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-28px); }
}

@keyframes drift-cloud {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}

@keyframes ripple {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (max-width: 520px) {
  .duck-booth { min-height: 290px; }
  .top h1 { font-size: 1.1rem; }
  .end-stats { grid-template-columns: 1fr 1fr; }
}
:root {
  --ink: #0b0c10;
  --paper: #f4f0e8;
  --signal: #ff4d2e;
  --neon: #39e5c2;
  --duck-sky: #7dd3fc;
  --duck-water: #0284c7;
  --duck-deep: #0c4a6e;
  --duck-wood: #92400e;
  --duck-gold: #fbbf24;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(2, 132, 199, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 15%, rgba(251, 191, 36, 0.18), transparent 50%),
    linear-gradient(160deg, #07080c 0%, #12151d 48%, #0a0b10 100%);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.back {
  color: rgba(244, 240, 232, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.back:hover { color: var(--paper); }

.top h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ghost {
  border: 1px solid rgba(244, 240, 232, 0.25);
  background: transparent;
  color: rgba(244, 240, 232, 0.75);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ghost[aria-pressed="true"] {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
}

#timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--duck-gold);
  min-width: 3.5rem;
  text-align: right;
}

#timer.is-urgent {
  color: var(--signal);
  animation: pulse 0.6s ease infinite;
}

.duck-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 2.5rem;
}

.screen { animation: rise 0.4s ease both; }

.eyebrow {
  margin: 0 0 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.45);
}

.menu-title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-weight: 400;
}

.duck-hint {
  text-align: center;
  color: rgba(244, 240, 232, 0.65);
  line-height: 1.45;
  margin: 0 auto 1.25rem;
  max-width: 38ch;
  font-size: 1rem;
}

.difficulty {
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 16px;
  padding: 0.85rem 1rem 1rem;
  margin: 0 auto 1rem;
  max-width: 26rem;
}

.difficulty legend {
  padding: 0 0.35rem;
  color: rgba(244, 240, 232, 0.55);
  font-size: 0.82rem;
}

.diff-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.diff-btn {
  border: 1px solid rgba(244, 240, 232, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.55rem 0.4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.diff-btn.is-active {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #451a03;
  border-color: transparent;
  box-shadow: 0 3px 0 #92400e;
}

.best-line {
  text-align: center;
  color: rgba(244, 240, 232, 0.55);
  margin: 0 0 1.25rem;
}

.best-line strong { color: var(--duck-gold); }

.duck-scoreboard {
  display: flex;
  justify-content: center;
  gap: 1.1rem 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: rgba(244, 240, 232, 0.7);
}

.duck-scoreboard strong {
  display: block;
  color: var(--duck-gold);
  font-size: 1.35rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.duck-booth {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #f59e0b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, #38bdf8 0%, var(--duck-sky) 40%, #bae6fd 40%, #bae6fd 46%, transparent 46%),
    linear-gradient(180deg, #0ea5e9 46%, var(--duck-water) 72%, var(--duck-deep) 100%);
  min-height: 340px;
  margin: 0 auto 1rem;
  touch-action: manipulation;
  user-select: none;
  cursor: crosshair;
}

.duck-booth.is-shake {
  animation: shake 0.28s ease;
}

.duck-booth__lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #fbbf24 0 14px,
    #ef4444 14px 28px,
    #22c55e 28px 42px,
    #3b82f6 42px 56px
  );
  opacity: 0.9;
  animation: marquee 1.2s linear infinite;
  z-index: 5;
}

.duck-booth__sign {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #451a03;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 0 #92400e;
  white-space: nowrap;
  font-size: clamp(0.78rem, 2.8vw, 0.95rem);
}

.duck-booth__sign em {
  font-style: normal;
  background: #fff7ed;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  color: #9a3412;
}

.duck-clouds {
  position: absolute;
  inset: 12% 0 58%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 70px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(0.2px);
  animation: drift-cloud 18s linear infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before { width: 34px; height: 34px; top: -14px; left: 12px; }
.cloud::after { width: 28px; height: 28px; top: -10px; left: 34px; }

.c1 { top: 10%; left: -20%; animation-duration: 22s; }
.c2 { top: 35%; left: -30%; animation-duration: 28s; animation-delay: -8s; opacity: 0.7; }
.c3 { top: 55%; left: -15%; animation-duration: 19s; animation-delay: -3s; opacity: 0.5; width: 50px; }

.duck-water {
  position: absolute;
  inset: 46% 0 12%;
  overflow: hidden;
  z-index: 2;
}

.duck-water::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 28px,
      rgba(255, 255, 255, 0.08) 28px 30px
    );
  animation: water-flow 2.4s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

.duck-lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 32%;
}

.duck-lane:nth-child(1) { top: 4%; }
.duck-lane:nth-child(2) { top: 36%; }
.duck-lane:nth-child(3) { top: 68%; }

.duck-lane__ripple {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0.5;
  pointer-events: none;
  animation: ripple 1.8s ease-in-out infinite;
}

.duck {
  position: absolute;
  top: 0;
  width: clamp(74px, 18vw, 100px);
  height: clamp(54px, 13vw, 72px);
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: translateX(-120%);
  z-index: 2;
  animation: bob 0.7s ease-in-out infinite;
}

.duck:focus-visible {
  outline: 3px solid #fef08a;
  outline-offset: 4px;
  border-radius: 12px;
}

.duck.is-hit {
  pointer-events: none;
  animation: duck-splash 0.42s ease-out forwards;
}

.duck.is-gold svg { filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.85)); }
.duck.is-dark .duck__body { fill: #334155; }
.duck.is-dark .duck__wing { fill: #1e293b; }
.duck.is-dark .duck__head { fill: #475569; }
.duck.is-green .duck__body { fill: #4ade80; }
.duck.is-green .duck__wing { fill: #22c55e; }
.duck.is-green .duck__head { fill: #86efac; }

.duck svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.duck-booth__rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: linear-gradient(180deg, #b45309 0%, var(--duck-wood) 45%, #78350f 100%);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.12);
  z-index: 3;
}

.duck-booth__rail::before {
  content: '● ● ● ● ● ● ● ● ● ●';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.55rem;
  color: rgba(254, 243, 199, 0.55);
  font-size: 0.7rem;
}

.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.float-pts {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fffbeb;
  text-shadow: 0 2px 0 #92400e, 0 0 12px rgba(251, 191, 36, 0.7);
  animation: float-up 0.8s ease-out forwards;
  white-space: nowrap;
}

.float-pts.is-gold { color: #fde047; font-size: 1.9rem; }
.float-pts.is-combo { color: #fb7185; }

.combo-banner {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 7;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 2px solid #fb7185;
  color: #fecdd3;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  pointer-events: none;
  opacity: 0;
}

.combo-banner.is-pop {
  animation: combo-pop 0.55s ease both;
}

.status {
  text-align: center;
  color: rgba(244, 240, 232, 0.7);
  min-height: 1.4rem;
  margin: 0 0 1rem;
}

.duck-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #451a03;
  box-shadow: 0 4px 0 #92400e;
  margin: 0 auto;
  display: block;
}

#screen-menu .btn-primary { width: min(16rem, 100%); }

.btn-primary:hover { filter: brightness(1.05); }

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(244, 240, 232, 0.28);
}

.end-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 22rem;
  margin: 0 auto 1.25rem;
}

.end-stats > div {
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  text-align: center;
}

.end-stats span {
  display: block;
  color: rgba(244, 240, 232, 0.5);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.end-stats strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--duck-gold);
  font-weight: 400;
}

.hidden { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes duck-splash {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  35% { transform: translateY(-22px) scale(1.12) rotate(-8deg); opacity: 1; }
  100% { transform: translateY(48px) scale(0.65) rotate(12deg); opacity: 0; }
}

@keyframes float-up {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.85); }
  100% { opacity: 0; transform: translate(-50%, -56px) scale(1.15); }
}

@keyframes combo-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes marquee {
  from { background-position: 0 0; }
  to { background-position: 56px 0; }
}

@keyframes water-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-28px); }
}

@keyframes drift-cloud {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}

@keyframes ripple {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (max-width: 520px) {
  .duck-booth { min-height: 290px; }
  .top h1 { font-size: 1.1rem; }
  .end-stats { grid-template-columns: 1fr 1fr; }
}
