:root {
  --ink: #204f49;
  --muted: #6d827d;
  --paper: #fffdf7;
  --cream: #fff7e6;
  --line: #ded5b8;
  --green: #4ea27e;
  --green-dark: #24705c;
  --yellow: #f3c75c;
  --coral: #df7467;
  --shadow: 0 11px 0 rgba(111, 91, 48, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 212, 111, 0.2), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(106, 197, 174, 0.18), transparent 29%),
    #f5f7eb;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

button,
a {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(58, 145, 116, 0.34);
  outline-offset: 3px;
}

button:disabled {
  cursor: default;
}

.app {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 54px;
}

.loading-card {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 3px solid var(--line);
  border-radius: 36px;
  background: var(--paper);
}

.loading-card span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: white;
  background: var(--green);
  font-size: 42px;
}

.loading-card p {
  margin: 0;
  font-weight: 800;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand-button,
.sound-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
}

.brand-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid white;
  border-radius: 19px;
  color: white;
  background: linear-gradient(145deg, #6bb48b, #3e9275);
  box-shadow: 0 5px 0 rgba(56, 92, 64, 0.16);
  font-size: 28px;
}

.brand-button strong,
.brand-button small {
  display: block;
}

.brand-button strong {
  font-size: 23px;
}

.brand-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sound-button,
.plain-button {
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 247, 0.82);
  font-weight: 900;
}

.sound-button span {
  margin-right: 7px;
}

.hero,
.settings-shell,
.play-shell,
.result-shell,
.album-shell,
.collection-callout {
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: 0 22px 44px rgba(67, 82, 55, 0.12);
}

.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  overflow: hidden;
  border-radius: 38px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 48px;
}

.eyebrow {
  margin: 0 0 11px;
  color: #3b806d;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
}

.hero h1 {
  max-width: 610px;
  margin-bottom: 20px;
  font-size: clamp(46px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions,
.result-actions,
.album-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 2px solid transparent;
  border-radius: 17px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 8px 0 var(--green-dark);
}

.button-primary:hover {
  background: #58ad88;
}

.button-primary:active {
  transform: translateY(3px);
  box-shadow: 0 5px 0 var(--green-dark);
}

.button-outline {
  border-color: var(--line);
  background: #fffdf7;
}

.button-outline:hover {
  border-color: #bfb38c;
  background: #fffaf0;
}

.button-hint {
  border-color: #e6bd55;
  background: #fff5d8;
}

.button-hint:hover:not(:disabled) {
  background: #ffedbd;
}

.button-hint:disabled {
  opacity: 0.48;
}

.hero-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: 148px 148px;
  place-content: center;
  gap: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.82) 0 150px, transparent 152px),
    linear-gradient(145deg, #e2f5e9, #fff0ce);
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  border: 18px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.hero-stage::before {
  width: 270px;
  height: 270px;
}

.hero-stage::after {
  width: 390px;
  height: 390px;
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-card {
  position: relative;
  z-index: 2;
  aspect-ratio: 0.82;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 6px solid white;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}

.hero-card b {
  font-size: 68px;
}

.hero-card small {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card-back {
  color: white;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 4px, transparent 5px) 0 0 / 28px 28px,
    #668f83;
}

.hero-card-front {
  background: #fffaf0;
  transform: rotate(5deg);
}

.season-orbit {
  position: absolute;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid white;
  border-radius: 18px;
  background: #fffdf7;
  box-shadow: 0 7px 12px rgba(49, 75, 57, 0.13);
  font-size: 30px;
}

.orbit-spring {
  top: 38px;
  left: 42px;
  transform: rotate(-6deg);
}

.orbit-summer {
  top: 45px;
  right: 44px;
  transform: rotate(5deg);
}

.orbit-autumn {
  right: 35px;
  bottom: 42px;
  transform: rotate(-4deg);
}

.orbit-winter {
  bottom: 38px;
  left: 44px;
  transform: rotate(6deg);
}

.settings-shell {
  margin-top: 42px;
  padding: 36px;
  border-radius: 34px;
}

.section-heading,
.album-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.album-heading h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 380px;
  margin-bottom: 5px;
  color: var(--muted);
  line-height: 1.45;
  text-align: right;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.season-card {
  min-width: 0;
  min-height: 184px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 18px 12px;
  border: 2px solid color-mix(in srgb, var(--season) 35%, #dcd5bd);
  border-radius: 23px;
  background: var(--season-soft);
  box-shadow: 0 7px 0 rgba(110, 93, 53, 0.12);
  cursor: pointer;
  text-align: center;
}

.season-card:hover {
  border-color: var(--season);
  transform: translateY(-2px);
}

.season-card.is-selected {
  border-color: var(--season);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--season) 22%, transparent), 0 7px 0 rgba(110, 93, 53, 0.12);
}

.season-card > span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 5px solid white;
  border-radius: 21px;
  background: color-mix(in srgb, var(--season-soft) 72%, white);
  font-size: 38px;
}

.season-card strong {
  font-size: 20px;
}

.season-card small {
  color: var(--muted);
  line-height: 1.35;
}

.size-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 2px dashed #ded7c1;
}

.size-panel h2 {
  margin-bottom: 0;
  font-size: 32px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.size-card {
  min-height: 136px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 15px;
  border: 2px solid #d8d6c8;
  border-radius: 21px;
  background: #fffdf8;
  box-shadow: 0 6px 0 rgba(95, 92, 68, 0.11);
  cursor: pointer;
}

.size-card:hover,
.size-card.is-selected {
  border-color: var(--green);
  background: #eef8ef;
}

.size-card.is-selected {
  box-shadow: 0 0 0 4px rgba(78, 162, 126, 0.18), 0 6px 0 rgba(95, 92, 68, 0.11);
}

.size-preview {
  width: 72px;
  display: grid;
  grid-template-columns: repeat(3, 17px);
  justify-content: center;
  gap: 4px;
}

.size-preview i {
  width: 17px;
  height: 20px;
  border-radius: 5px;
  background: #83aa9e;
}

.size-card strong {
  font-size: 18px;
}

.size-card small {
  color: var(--muted);
  font-weight: 800;
}

.start-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 2px solid color-mix(in srgb, var(--season) 35%, #dcd5bd);
  border-radius: 24px;
  background: var(--season-soft);
}

.start-panel > span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: white;
  font-size: 35px;
}

.start-panel strong,
.start-panel small {
  display: block;
}

.start-panel strong {
  margin-bottom: 4px;
  font-size: 20px;
}

.start-panel small {
  color: var(--muted);
  line-height: 1.4;
}

.collection-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 26px 28px;
  border-color: #cadfd4;
  border-radius: 30px;
  background: #f2f8ef;
}

.collection-icons {
  display: flex;
  width: 150px;
}

.collection-icons span {
  width: 54px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-right: -15px;
  border: 4px solid white;
  border-radius: 17px;
  background: #fffdf7;
  box-shadow: 0 6px 12px rgba(50, 84, 61, 0.13);
  font-size: 28px;
}

.collection-icons span:nth-child(even) {
  transform: translateY(9px);
}

.collection-callout h2 {
  margin-bottom: 5px;
  font-size: 28px;
}

.collection-callout p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.play-shell {
  padding: 30px;
  overflow: hidden;
  border-radius: 36px;
}

.play-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.play-heading h1 {
  margin-bottom: 6px;
  font-size: clamp(39px, 5vw, 58px);
  letter-spacing: -0.035em;
}

.progress-summary {
  min-width: 190px;
  display: grid;
  gap: 7px;
  padding-bottom: 9px;
}

.progress-summary span {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e2d7;
}

.progress-summary i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--season);
  transition: width 0.25s ease;
}

.progress-summary b {
  text-align: right;
}

.instruction-strip {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 17px 0 20px;
  padding: 14px 18px;
  border: 2px solid #e9ca76;
  border-radius: 20px;
  background: #fff5d7;
  font-weight: 900;
}

.instruction-strip span:last-child {
  color: #5d7771;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 12px;
  padding: 19px;
  border: 2px solid color-mix(in srgb, var(--season) 28%, #d6ded5);
  border-radius: 27px;
  background:
    radial-gradient(circle at 10px 10px, color-mix(in srgb, var(--season) 10%, transparent) 0 2px, transparent 2.5px) 0 0 / 27px 27px,
    color-mix(in srgb, var(--season-soft) 60%, #f5f7ef);
}

.memory-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 0.82;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
}

.card-inner {
  position: absolute;
  inset: 0;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

.memory-card.is-open .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #d7cca8;
  border-radius: 20px;
  backface-visibility: hidden;
  box-shadow: 0 7px 0 rgba(107, 94, 57, 0.14);
}

.card-back {
  align-content: center;
  gap: 7px;
  color: white;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 4px, transparent 5px) 0 0 / 28px 28px,
    var(--season);
}

.card-back b {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 17px;
  font-size: 29px;
}

.card-back small {
  font-weight: 900;
  letter-spacing: 0.1em;
}

.card-front {
  grid-template-rows: minmax(0, 1fr) auto auto;
  padding: 9px 7px 8px;
  background: var(--item-soft);
  transform: rotateY(180deg);
}

.card-front > i {
  align-self: center;
  font-size: clamp(34px, 4.3vw, 56px);
  font-style: normal;
  line-height: 1;
  filter: drop-shadow(0 3px 0 rgba(50, 68, 48, 0.1));
}

.card-front strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-front small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.memory-card.is-matched .card-front {
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(78, 162, 126, 0.17), 0 7px 0 rgba(107, 94, 57, 0.14);
}

.memory-card.is-matched::after {
  content: "✓";
  position: absolute;
  z-index: 3;
  top: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-weight: 900;
}

.memory-card.is-hint .card-front {
  border-color: var(--yellow);
  box-shadow: 0 0 0 7px rgba(244, 199, 92, 0.27), 0 7px 0 rgba(107, 94, 57, 0.14);
}

.feedback {
  min-height: 94px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 2px solid #d2ded5;
  border-radius: 23px;
  background: #f3f7f1;
}

.feedback > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: #72968e;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 900;
}

.feedback strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.feedback p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.feedback-success,
.feedback-complete {
  border-color: #80bd9d;
  background: #eaf7ed;
}

.feedback-success > span,
.feedback-complete > span {
  background: var(--green);
}

.feedback-try {
  border-color: #e69a91;
  background: #fff0ed;
}

.feedback-try > span {
  background: var(--coral);
}

.feedback-hint {
  border-color: #e3bf5c;
  background: #fff6d9;
}

.feedback-hint > span {
  background: #d9a82d;
}

.game-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.result-shell {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(410px, 1.06fr);
  overflow: hidden;
  border-radius: 37px;
}

.result-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.result-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 5vw, 63px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.result-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.stars {
  display: flex;
  gap: 7px;
  margin: 3px 0 22px;
  color: #dedbd0;
  font-size: 46px;
}

.stars .filled {
  color: #efb638;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.stats span {
  display: grid;
  gap: 3px;
  padding: 14px 8px;
  border: 2px solid #d4e1d7;
  border-radius: 17px;
  background: #eff7ee;
  text-align: center;
}

.stats b {
  font-size: 27px;
}

.stats small {
  color: var(--muted);
  font-weight: 800;
}

.result-display {
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.75) 0 165px, transparent 167px),
    linear-gradient(145deg, var(--season-soft), #fff1d0);
}

.result-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 125px));
  gap: 12px;
}

.result-items span {
  aspect-ratio: 0.92;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 10px;
  border: 5px solid white;
  border-radius: 24px;
  background: var(--item-soft);
  box-shadow: 0 8px 14px rgba(54, 80, 60, 0.13);
  text-align: center;
}

.result-items i {
  font-size: 48px;
  font-style: normal;
}

.result-items strong {
  font-size: 13px;
}

.album-shell {
  padding: 34px;
  border-radius: 36px;
}

.album-heading p:last-child {
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 900;
}

.album-seasons {
  display: grid;
  gap: 22px;
}

.album-season {
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--season) 30%, #d7d3bf);
  border-radius: 27px;
  background: var(--season-soft);
}

.album-season-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--season-soft) 72%, white);
}

.album-season-heading > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid white;
  border-radius: 18px;
  background: var(--season-soft);
  font-size: 32px;
}

.album-season-heading h2 {
  margin-bottom: 3px;
  font-size: 25px;
}

.album-season-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.album-season-heading b {
  padding: 8px 11px;
  border-radius: 12px;
  color: white;
  background: var(--season);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.collection-card {
  min-width: 0;
  min-height: 166px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 13px 10px;
  border: 2px solid rgba(91, 121, 105, 0.19);
  border-radius: 19px;
  background: rgba(255, 253, 247, 0.82);
  text-align: center;
}

.collection-card > span {
  font-size: 44px;
}

.collection-card > strong {
  font-size: 15px;
}

.collection-card > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.collection-card.is-locked {
  place-content: center;
  color: #98a29b;
  background: rgba(238, 239, 230, 0.82);
}

.collection-card.is-locked span {
  font-size: 38px;
  font-weight: 900;
}

.collection-card.is-locked small {
  font-weight: 900;
}

.album-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.plain-button {
  cursor: pointer;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 420px;
  }

  .season-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .size-panel {
    grid-template-columns: 1fr;
  }

  .result-shell {
    grid-template-columns: 1fr;
  }

  .result-display {
    min-height: 430px;
    order: -1;
  }

  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .sound-button {
    width: 50px;
    padding: 0;
    font-size: 0;
  }

  .sound-button span {
    margin: 0;
    font-size: 20px;
  }

  .hero-copy,
  .result-copy {
    padding: 36px 28px;
  }

  .section-heading,
  .album-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-heading > p {
    text-align: left;
  }

  .settings-shell,
  .play-shell,
  .album-shell {
    padding: 21px;
    border-radius: 28px;
  }

  .season-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .start-panel,
  .collection-callout {
    grid-template-columns: auto 1fr;
  }

  .start-panel .button,
  .collection-callout .button {
    grid-column: 1 / -1;
  }

  .collection-icons {
    width: 132px;
  }

  .play-heading {
    grid-template-columns: 1fr;
  }

  .progress-summary {
    width: 100%;
  }

  .memory-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 13px;
  }

  .feedback {
    grid-template-columns: auto 1fr;
  }

  .feedback .button {
    grid-column: 1 / -1;
  }

  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: 62px;
  }

  .brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 17px;
  }

  .brand-button strong {
    font-size: 19px;
  }

  .brand-button small {
    max-width: 180px;
    font-size: 10px;
  }

  .hero {
    min-height: 0;
    border-radius: 29px;
  }

  .hero-copy {
    padding: 34px 24px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 51px);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 330px;
    grid-template-columns: 112px 112px;
    gap: 14px;
  }

  .hero-card {
    border-width: 5px;
    border-radius: 23px;
  }

  .hero-card b {
    font-size: 52px;
  }

  .hero-card small {
    font-size: 10px;
  }

  .season-orbit {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 24px;
  }

  .orbit-spring,
  .orbit-winter {
    left: 20px;
  }

  .orbit-summer,
  .orbit-autumn {
    right: 20px;
  }

  .settings-shell {
    margin-top: 24px;
    padding: 18px;
  }

  .section-heading h2,
  .album-heading h1 {
    font-size: 34px;
  }

  .season-card {
    min-height: 165px;
    padding: 15px 9px;
  }

  .season-card > span {
    width: 58px;
    height: 58px;
    font-size: 32px;
  }

  .season-card strong {
    font-size: 18px;
  }

  .season-card small {
    font-size: 11px;
  }

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

  .size-card {
    min-height: 104px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .size-preview {
    grid-row: 1 / span 2;
  }

  .start-panel {
    grid-template-columns: 1fr;
  }

  .start-panel > span {
    display: none;
  }

  .start-panel .button {
    grid-column: auto;
    width: 100%;
  }

  .collection-callout {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .collection-callout .button {
    grid-column: auto;
    width: 100%;
  }

  .play-shell {
    padding: 15px;
  }

  .play-heading h1 {
    font-size: 37px;
  }

  .instruction-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .memory-board {
    gap: 7px;
    padding: 9px;
    border-radius: 21px;
  }

  .memory-card {
    border-radius: 14px;
  }

  .card-face {
    border-width: 2px;
    border-radius: 14px;
    box-shadow: 0 5px 0 rgba(107, 94, 57, 0.14);
  }

  .card-back b {
    width: 40px;
    height: 40px;
    border-width: 3px;
    border-radius: 13px;
    font-size: 22px;
  }

  .card-back small,
  .card-front small {
    display: none;
  }

  .card-front {
    grid-template-rows: 1fr auto;
    padding: 5px 3px 7px;
  }

  .card-front > i {
    font-size: clamp(26px, 8vw, 36px);
  }

  .card-front strong {
    font-size: 10px;
  }

  .memory-card.is-matched::after {
    top: -5px;
    right: -5px;
    width: 27px;
    height: 27px;
    border-width: 3px;
    font-size: 12px;
  }

  .feedback {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .feedback > span {
    display: none;
  }

  .feedback .button {
    grid-column: auto;
  }

  .game-actions {
    flex-direction: column-reverse;
  }

  .game-actions .button {
    width: 100%;
  }

  .result-copy {
    padding: 34px 24px;
  }

  .result-copy h1 {
    font-size: 43px;
  }

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

  .result-display {
    min-height: 390px;
    padding: 24px 16px;
  }

  .result-items {
    grid-template-columns: repeat(3, minmax(0, 96px));
    gap: 8px;
  }

  .result-items span {
    border-width: 4px;
    border-radius: 19px;
  }

  .result-items i {
    font-size: 38px;
  }

  .result-items strong {
    font-size: 10px;
  }

  .album-shell {
    padding: 16px;
  }

  .album-season-heading {
    grid-template-columns: auto 1fr;
    padding: 14px;
  }

  .album-season-heading > b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .album-season-heading p {
    font-size: 12px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .collection-card {
    min-height: 154px;
  }

  .album-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .album-actions .button,
  .album-actions .plain-button {
    width: 100%;
  }
}

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