:root {
  --ink: #211b3d;
  --cream: #fff5d8;
  --paper: #fffdf4;
  --pink: #f2548b;
  --pink-dark: #c82c68;
  --orange: #ff7a45;
  --yellow: #ffd84d;
  --blue: #45c8c1;
  --blue-dark: #168d91;
  --purple: #7347c6;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --radius: 22px;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --mono: "Courier New", Courier, monospace;
  --body: "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10px 10px, rgba(33, 27, 61, 0.08) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    var(--cream);
  font-family: var(--body);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 12px;
}

.mini-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 1px;
  text-decoration: none;
  transform: rotate(-2deg);
}

.mini-logo span {
  color: var(--pink);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  padding: 5px 2px;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--pink-dark);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 42px 0 56px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-left: 18px;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--pink-dark);
}

.hero h1,
.section h2,
.reveal-banner h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(5.4rem, 10vw, 9.2rem);
}

.hero h1 span {
  display: block;
}

.hero .title-pop {
  width: max-content;
  color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--yellow);
  transform: rotate(-3deg);
}

.hero-deck {
  max-width: 540px;
  margin: 28px 0;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 14px 24px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button-primary {
  color: white;
  background: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--purple);
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 570px;
}

.hero-art img {
  position: absolute;
  z-index: 4;
  right: -9%;
  bottom: 2%;
  width: 112%;
  height: auto;
  filter: drop-shadow(8px 13px 0 rgba(33, 27, 61, 0.22));
}

.sunburst {
  position: absolute;
  z-index: 1;
  top: 3%;
  right: -10%;
  width: 590px;
  aspect-ratio: 1;
  border: var(--border);
  border-radius: 50%;
  background: repeating-conic-gradient(var(--yellow) 0deg 12deg, var(--orange) 12deg 24deg);
  box-shadow: 10px 10px 0 rgba(33, 27, 61, 0.14);
  animation: slow-spin 80s linear infinite;
}

.sticker {
  position: absolute;
  z-index: 7;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: var(--border);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--display);
  line-height: 0.9;
  text-align: center;
  transform: rotate(-8deg);
}

.sticker-wow {
  top: 8%;
  left: 3%;
  width: 88px;
  color: white;
  background: var(--purple);
  font-size: 1.55rem;
}

.sticker-mystery {
  right: 0;
  bottom: 9%;
  width: 112px;
  background: var(--blue);
  font-size: 1.25rem;
  transform: rotate(10deg);
}

.spark {
  position: absolute;
  z-index: 6;
  color: var(--ink);
  font-size: 3.4rem;
  line-height: 1;
}

.spark-one {
  right: 4%;
  top: 5%;
  color: var(--pink);
}

.spark-two {
  left: 9%;
  bottom: 10%;
  color: var(--orange);
}

.ticker {
  width: calc(100% + 20px);
  margin-left: -10px;
  overflow: hidden;
  color: white;
  background: var(--ink);
  border-top: var(--border);
  border-bottom: var(--border);
  transform: rotate(-1.1deg);
}

.ticker-track {
  display: flex;
  justify-content: center;
  gap: 26px;
  min-width: max-content;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.ticker-track i {
  color: var(--yellow);
  font-style: normal;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0;
}

.section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.section h2,
.reveal-banner h2 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

.kicker {
  color: var(--pink-dark);
}

.kicker.light {
  color: var(--yellow);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-1.1deg);
}

.step-card:nth-child(2) {
  transform: rotate(1.1deg);
}

.step-card h3 {
  margin: 26px 0 12px;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.step-card p {
  margin: 0;
  font-weight: 700;
}

.step-pink {
  background: #ff90b8;
}

.step-yellow {
  background: var(--yellow);
}

.step-blue {
  background: var(--blue);
}

.step-number {
  font-family: var(--mono);
  font-weight: 900;
}

.step-icon {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 3.6rem;
  transform: rotate(9deg);
}

.guess-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  width: min(1180px, calc(100% - 40px));
  padding: 70px;
  color: white;
  background:
    linear-gradient(135deg, transparent 75%, rgba(255, 216, 77, 0.16) 75%) 0 0 / 30px 30px,
    var(--purple);
  border: var(--border);
  border-radius: 34px;
  box-shadow: 11px 11px 0 var(--ink);
}

.guess-copy p:not(.kicker) {
  max-width: 460px;
  font-size: 1.08rem;
}

.guess-copy .fine-print {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.guess-form {
  align-self: center;
  padding: 34px;
  color: var(--ink);
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--yellow);
}

.form-field + .form-field {
  margin-top: 24px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.optional-label {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  color: white;
  background: var(--pink-dark);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.form-field input {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  background: white;
  border: 2px solid var(--ink);
  border-radius: 9px;
  outline: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.form-field input:focus {
  box-shadow: 4px 4px 0 var(--pink);
  transform: translate(-1px, -1px);
}

.form-field input[aria-invalid="true"] {
  background: #fff0f3;
  border-color: #b41d4f;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: #5f5973;
  font-size: 0.8rem;
}

.form-message {
  min-height: 24px;
  margin: 16px 0 8px;
  color: #a61c49;
  font-size: 0.88rem;
  font-weight: 800;
}

.button-submit {
  width: 100%;
  color: var(--ink);
  background: var(--yellow);
}

.button-submit:disabled {
  cursor: wait;
  filter: grayscale(0.6);
  opacity: 0.75;
}

.closed-entries[hidden] {
  display: none;
}

.closed-entries {
  align-self: center;
  padding: 34px;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--pink);
  text-align: center;
  transform: rotate(1deg);
}

.closed-entries > span {
  display: block;
  font-size: 3rem;
}

.closed-entries h3 {
  margin: 4px 0 10px;
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.closed-entries p {
  margin: 0 0 24px;
  font-weight: 800;
}

.closed-entries .button {
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
}

.leaderboard-section {
  padding-bottom: 82px;
}

.board-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.refresh-button {
  padding: 10px 16px;
  color: var(--ink);
  background: white;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.refresh-button:hover,
.refresh-button:focus-visible {
  background: var(--yellow);
}

.refresh-button.is-spinning span {
  display: inline-block;
  animation: fast-spin 700ms linear infinite;
}

.mode-notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: #fff1ae;
  border: 2px dashed var(--ink);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.theory-strip {
  margin-bottom: 24px;
  padding: 24px;
  background: white;
  border: var(--border);
  border-radius: 16px;
}

.theory-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.theory-strip h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  text-transform: uppercase;
}

.theory-title p {
  margin: 0;
  color: #6a6478;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.muted-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
}

.theory-chart {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.theory-row {
  display: grid;
  grid-template-columns: 62px minmax(155px, 230px) minmax(120px, 1fr) 88px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 5px 0;
}

.breed-avatar {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0 rgba(33, 27, 61, 0.18));
}

.theory-identity strong,
.theory-identity span {
  display: block;
}

.theory-identity strong {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.theory-identity span {
  margin-top: 4px;
  color: #6a6478;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.theory-progress {
  width: 100%;
  height: 30px;
  overflow: hidden;
  appearance: none;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.theory-progress::-webkit-progress-bar {
  background: var(--cream);
  border-radius: 999px;
}

.theory-progress::-webkit-progress-value {
  background: repeating-linear-gradient(135deg, var(--pink) 0 13px, #ff90b8 13px 26px);
  border-right: 2px solid var(--ink);
  border-radius: 999px;
}

.theory-progress::-moz-progress-bar {
  background: repeating-linear-gradient(135deg, var(--pink) 0 13px, #ff90b8 13px 26px);
  border-right: 2px solid var(--ink);
  border-radius: 999px;
}

.theory-row:nth-child(3n + 2) .theory-progress::-webkit-progress-value {
  background: repeating-linear-gradient(135deg, var(--yellow) 0 13px, #ffe98c 13px 26px);
}

.theory-row:nth-child(3n + 3) .theory-progress::-webkit-progress-value {
  background: repeating-linear-gradient(135deg, var(--blue) 0 13px, #8fe4df 13px 26px);
}

.theory-total {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
}

.muted-chip {
  color: #6d677c;
  background: #f1efe7;
  border-style: dashed;
}

.guess-board {
  min-height: 250px;
  overflow: hidden;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.board-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.35fr 130px;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 15px 22px;
  border-bottom: 2px solid var(--ink);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row:nth-child(even) {
  background: #fff1b8;
}

.board-labels {
  min-height: 48px;
  color: white;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board-rank {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.25rem;
}

.board-name {
  font-weight: 900;
}

.board-breed {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.board-time {
  color: #6a6478;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: right;
}

.loading-card,
.empty-card,
.error-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 245px;
  padding: 30px;
  text-align: center;
}

.loading-card p,
.empty-card p,
.error-card p {
  flex-basis: 100%;
  margin: 7px 0 0;
  font-weight: 800;
}

.empty-card strong,
.error-card strong {
  flex-basis: 100%;
  font-family: var(--display);
  font-size: 2.1rem;
  text-transform: uppercase;
}

.loading-dot {
  width: 13px;
  aspect-ratio: 1;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  animation: bounce 800ms ease-in-out infinite alternate;
}

.loading-dot:nth-child(2) {
  animation-delay: 150ms;
  background: var(--yellow);
}

.loading-dot:nth-child(3) {
  animation-delay: 300ms;
  background: var(--blue);
}

.reveal-banner {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: center;
  gap: 30px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 100px;
  padding: 52px;
  color: white;
  background: var(--pink-dark);
  border: var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.reveal-banner h2 {
  font-size: clamp(3rem, 6vw, 5rem);
}

.reveal-banner p:last-child {
  max-width: 650px;
  margin: 18px auto 0;
  font-weight: 700;
}

.reveal-results[hidden] {
  display: none;
}

.reveal-banner.is-revealed {
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  color: var(--ink);
  background:
    linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%) 0 0 / 28px 28px,
    var(--yellow);
  text-align: left;
}

.reveal-banner.is-revealed .kicker {
  color: var(--pink-dark);
}

.reveal-banner.is-revealed .retro-flower {
  display: none;
}

.reveal-banner.is-revealed .reveal-intro {
  max-width: none;
  margin: 18px 0 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.reveal-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: 22px;
  margin-top: 30px;
}

.dna-chart,
.winner-panel {
  padding: 22px;
  background: var(--paper);
  border: var(--border);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

.dna-chart {
  display: grid;
  gap: 12px;
}

.dna-row {
  display: grid;
  grid-template-columns: 54px minmax(125px, 0.8fr) minmax(120px, 1fr) 54px;
  align-items: center;
  gap: 12px;
}

.dna-row.is-top-result {
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--ink);
}

.dna-avatar {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.dna-breed {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.dna-progress {
  width: 100%;
  height: 24px;
  overflow: hidden;
  appearance: none;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.dna-progress::-webkit-progress-bar {
  background: var(--cream);
}

.dna-progress::-webkit-progress-value {
  background: repeating-linear-gradient(135deg, var(--pink) 0 11px, #ff9abe 11px 22px);
  border-right: 2px solid var(--ink);
}

.dna-progress::-moz-progress-bar {
  background: repeating-linear-gradient(135deg, var(--pink) 0 11px, #ff9abe 11px 22px);
  border-right: 2px solid var(--ink);
}

.dna-percentage {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-align: right;
}

.winner-panel {
  align-self: start;
  background: var(--blue);
  transform: rotate(1deg);
}

.winner-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.winner-panel strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.winner-panel p {
  margin: 14px 0 0;
  font-weight: 800;
}

.reveal-results .reveal-note {
  grid-column: 1 / -1;
  max-width: none;
  margin: 2px 0 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 2px dashed var(--ink);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: center;
}

.burst-small {
  display: grid;
  place-items: center;
  width: 110px;
  aspect-ratio: 1;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border);
  border-radius: 35% 65% 44% 56% / 61% 37% 63% 39%;
  font-family: var(--display);
  font-size: 5rem;
  transform: rotate(-8deg);
}

.retro-flower {
  color: var(--yellow);
  font-size: 7rem;
  line-height: 1;
  transform: rotate(12deg);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(20px, calc((100% - 1120px) / 2));
  color: white;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  width: min(390px, calc(100% - 48px));
  padding: 17px 20px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: translateY(160%);
  transition: transform 250ms ease;
}

.toast.is-visible {
  transform: translateY(0);
}

.toast-icon {
  font-size: 2rem;
}

.toast strong,
.toast div span {
  display: block;
}

.toast strong {
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

@keyframes fast-spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  to { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero-copy {
    padding-left: 0;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero .title-pop {
    margin-inline: auto;
  }

  .hero-deck {
    margin-inline: auto;
  }

  .hero-art {
    min-height: 550px;
  }

  .hero-art img {
    right: -3%;
    width: 105%;
  }

  .sunburst {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    animation: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 225px;
  }

  .guess-section {
    grid-template-columns: 1fr;
    padding: 48px;
  }

  .board-row {
    grid-template-columns: 50px 0.85fr 1.15fr;
  }

  .board-time,
  .board-labels span:last-child {
    display: none;
  }

  .reveal-banner {
    grid-template-columns: 90px 1fr;
  }

  .reveal-results {
    grid-template-columns: 1fr;
  }

  .reveal-results .reveal-note {
    grid-column: 1;
  }

  .retro-flower {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    font-size: 0.68rem;
  }

  .hero {
    width: min(100% - 26px, 1180px);
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(4.8rem, 25vw, 7rem);
  }

  .hero-art {
    min-height: 380px;
  }

  .hero-art img {
    right: -8%;
    width: 116%;
  }

  .sunburst {
    width: 390px;
  }

  .sticker-wow {
    left: -2%;
    width: 72px;
    font-size: 1.2rem;
  }

  .sticker-mystery {
    right: -2%;
    width: 86px;
    font-size: 0.98rem;
  }

  .spark {
    font-size: 2.5rem;
  }

  .section {
    width: min(100% - 26px, 1120px);
    padding: 78px 0;
  }

  .section h2,
  .reveal-banner h2 {
    font-size: 3.35rem;
  }

  .guess-section {
    width: min(100% - 26px, 1180px);
    padding: 28px 18px 32px;
    gap: 32px;
  }

  .guess-form {
    padding: 24px 18px;
  }

  .board-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .theory-strip {
    padding: 18px 14px;
  }

  .theory-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .theory-row {
    grid-template-columns: 52px minmax(0, 1fr) 58px;
    gap: 10px;
    padding: 8px 0;
  }

  .breed-avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 50px;
    height: 50px;
  }

  .theory-identity strong {
    font-size: 1rem;
  }

  .theory-progress {
    grid-column: 2 / -1;
    grid-row: 2;
    height: 24px;
  }

  .theory-total {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.62rem;
  }

  .board-row {
    grid-template-columns: 42px 1fr;
    gap: 10px 14px;
    padding: 15px;
  }

  .board-labels {
    display: none;
  }

  .board-breed {
    grid-column: 2;
    font-size: 1.25rem;
  }

  .board-rank {
    grid-row: 1 / span 2;
    width: 36px;
  }

  .reveal-banner {
    grid-template-columns: 1fr;
    width: min(100% - 26px, 1120px);
    padding: 36px 20px;
  }

  .burst-small {
    width: 80px;
    margin: 0 auto;
    font-size: 3.7rem;
  }

  .reveal-banner.is-revealed {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reveal-banner.is-revealed .reveal-intro {
    text-align: center;
  }

  .dna-chart,
  .winner-panel {
    padding: 16px 14px;
  }

  .dna-row {
    grid-template-columns: 46px minmax(0, 1fr) 50px;
    gap: 8px;
  }

  .dna-avatar {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
  }

  .dna-progress {
    grid-column: 2 / -1;
    height: 20px;
  }

  .dna-percentage {
    grid-column: 3;
    grid-row: 1;
  }

  .dna-breed {
    font-size: 0.95rem;
    text-align: left;
  }

  .winner-panel {
    transform: none;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
