:root { color-scheme: light; --cream: #fbf2e1; --blue: #12354b; --muted: #456274; --orange: #f98136; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--blue); font-family: system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #19374a; outline-offset: 4px; }
header, footer { padding-inline: clamp(1.15rem, 6vw, 6rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.wordmark, .mission-link, .start { font-weight: 800; text-decoration: none; }
.wordmark { display: flex; align-items: center; gap: .55rem; font-size: 1.25rem; }
.wordmark span { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--orange); border-radius: 50%; }
.mission-link { font-size: .92rem; }
.mission-link:hover, footer a:hover { text-decoration: underline; }
.cover { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(530px, 65vw, 760px); background: #387ba1; overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 63% center; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #062b49ed, #0a345ab5 30%, transparent 63%); }
.intro { position: relative; z-index: 1; width: min(29rem, 55%); margin-left: clamp(1.15rem, 7vw, 8rem); color: #fff; padding-block: 2rem; }
.kicker { margin: 0; font: 750 .75rem ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.intro .kicker { color: #ffbe8c; }
.intro .kicker span { display: inline-block; width: .62rem; height: .62rem; border-radius: 50%; background: #ffa25e; margin-right: .38rem; }
h1, h2 { font-weight: 900; margin: 0; letter-spacing: -.075em; line-height: .92; }
h1 { margin-block: .75rem 1rem; font-size: clamp(4.1rem, 9.1vw, 9rem); }
.intro > p:not(.kicker) { max-width: 24ch; font-size: clamp(1rem, 2vw, 1.38rem); line-height: 1.4; }
.start, #replay { display: inline-flex; align-items: center; gap: .65rem; background: #ff9e54; color: #142f43; border: 0; border-radius: 100px; padding: .85rem 1.25rem; font: inherit; font-weight: 850; cursor: pointer; }
.start:focus-visible { outline-color: #fff; }
.start:hover, #replay:hover { background: #ffc28f; }
.mission { max-width: 73rem; padding: clamp(2.5rem, 6vw, 6rem) clamp(1.15rem, 6vw, 6rem); margin: 0 auto; }
.mission-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.35rem; }
.mission .kicker { color: #754422; }
h2 { margin-top: .5rem; font-size: clamp(2.55rem, 6vw, 5rem); }
.counter { margin: 0; color: var(--muted); text-align: right; }
#tally { font-weight: 800; color: var(--blue); white-space: nowrap; }
.pool { position: relative; isolation: isolate; min-height: clamp(270px, 42vw, 420px); border-radius: 1.7rem; overflow: hidden; background: radial-gradient(ellipse at 30% 30%, #b6e5df, #6abac9 57%, #469ab0); border: 3px solid #12354b; }
.ripples { position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 58% 15%, transparent 0 17px, #ffffff36 19px 20px, transparent 22px 36px); }
.duck { position: absolute; display: grid; place-items: center; width: clamp(65px, 12vw, 104px); aspect-ratio: 1; border: 2px solid #153b51; border-radius: 50%; background: #fff0ad; box-shadow: 0 .4rem 0 #153b5145; font-size: clamp(1.8rem, 4vw, 3.3rem); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.duck:nth-of-type(1) { left: 9%; top: 23%; }
.duck:nth-of-type(2) { left: 42%; top: 58%; }
.duck:nth-of-type(3) { right: 8%; top: 17%; }
.duck:hover:not(:disabled) { transform: translateY(-4px); background: #fff8d6; }
.duck:disabled { color: #154737; background: #d7f1d5; box-shadow: none; opacity: .85; cursor: default; }
.victory { position: absolute; inset-inline: 0; top: 1rem; margin: 0 auto; width: max-content; max-width: 100%; color: #173b37; background: #fff4b4; padding: .55rem .9rem; border-radius: 100px; font-weight: 850; }
#replay { margin-top: 1.1rem; }
[hidden] { display: none !important; }
footer { border-top: 1px solid #ddcbb5; font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) {
  .cover { align-items: end; min-height: 620px; }
  .cover img { object-position: 70% center; }
  .cover::after { background: linear-gradient(0deg, #092b48 0%, #092b48ed 18%, #092b4866 47%, transparent 69%); }
  .intro { width: auto; margin-inline: 1.2rem; padding-bottom: 1.8rem; }
  h1 { font-size: clamp(3.65rem, 15vw, 5.2rem); }
  .mission-head { align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .duck { transition: none; } }
.rescue-board { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 .8rem; padding: .6rem .9rem; border-radius: .7rem; background: #eee1c9; }
.rescue-board p { margin: 0; font-weight: 650; }
.rescue-marks { display: flex; gap: .35rem; }
.rescue-marks span { width: 1.1rem; aspect-ratio: 1; border: 2px solid #674e32; border-radius: 50%; }
.rescue-marks .is-rescued { background: #ff9e54; box-shadow: inset 0 0 0 2px #eee1c9; }
.pool[data-round="1"] .duck:nth-of-type(1) { top: 58%; }
.pool[data-round="1"] .duck:nth-of-type(2) { top: 26%; }
.pool[data-round="1"] .duck:nth-of-type(3) { top: 53%; }
.pool[data-round="2"] .duck:nth-of-type(1) { top: 33%; }
.pool[data-round="2"] .duck:nth-of-type(2) { top: 49%; }
.pool[data-round="2"] .duck:nth-of-type(3) { top: 27%; }
