:root {
  color-scheme: light;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  color: #213f33;
  background: #f8f6ed;
  font-synthesis: none;
  --ink: #213f33;
  --subtle: #526458;
  --green: #275e48;
  --line: #e8e5d8;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #287255; outline-offset: 4px; }
[hidden] { display: none !important; }
.top { background: #fffefa; border-bottom: 1px solid var(--line); }
.top-inner, .layout, footer { width: min(1192px, calc(100% - 72px)); margin-inline: auto; }
.top-inner { height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1; font-weight: 850; letter-spacing: -.045em; font-size: 21px; }
.brand { color: inherit; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--green); color: #ffdc73; font-size: 32px; }
.audio { background: #f2f6eb; border: 1px solid #dce6d9; border-radius: 100px; color: var(--green); min-height: 44px; padding: 0 17px; font-weight: 750; display: flex; align-items: center; gap: 9px; }
.audio:hover { background: #e7f1e5; }
.audio > span:first-child { font-weight: 900; font-size: 17px; letter-spacing: -.09em; }
.layout { display: grid; grid-template-columns: minmax(0, 385px) minmax(0, 1fr); gap: 24px; padding-block: 45px 0; }
.intro { background: #ffde79; border: 1px solid #f1cb60; border-radius: 29px; padding: 34px 31px 0; display: flex; flex-direction: column; overflow: hidden; }
h1 { font-size: clamp(47px, 5.7vw, 83px); letter-spacing: -.087em; font-weight: 900; line-height: .94; margin: 0; }
h1 span { color: #346a50; }
.intro p { margin: 25px 0 0; font-size: 17px; line-height: 1.55; font-weight: 650; }
.scene { position: relative; display: grid; align-content: end; justify-items: center; margin-top: auto; min-height: 270px; isolation: isolate; }
.scene img { width: min(100%, 305px); height: auto; z-index: 1; margin-bottom: 12px; filter: drop-shadow(0 12px 8px #b5772840); }
.sun { position: absolute; width: min(86%, 266px); aspect-ratio: 1; left: 50%; bottom: -20%; transform: translateX(-50%); background: #fff0b4; border-radius: 50%; }
.spark { position: absolute; font-size: 28px; color: #b57423; line-height: 1; z-index: 2; }
.spark-first { top: 21%; left: 1%; }
.spark-second { top: 14%; right: 10%; font-size: 39px; }
.spark-third { bottom: 22%; right: 0; font-size: 19px; }
.spark-fourth { bottom: 17%; left: 7%; font-size: 20px; }
.board { border: 1px solid var(--line); border-radius: 29px; background: #fffefa; padding: 27px; box-shadow: 0 10px 26px #3a301007; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-top p { margin: 0; font-weight: 750; }
.stars { display: flex; gap: 7px; align-items: center; border-radius: 100px; padding: 6px 13px; background: #fff2c2; color: #4a4324; }
.stars span:first-child { color: #935b00; }
.track { display: flex; gap: 5px; margin: 15px 0 21px; }
.track span { flex: 1; height: 7px; border-radius: 10px; background: #ecebe0; }
.track .filled { background: #528b6f; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.card { min-width: 0; min-height: 130px; height: clamp(138px, 23vh, 200px); display: grid; place-items: center; position: relative; border: 2px solid #eae8dc; border-radius: 21px; background: #fbfaf4; transition: background .18s, border-color .18s, transform .18s; }
.card:not(:disabled):hover { background: #f3f7ed; border-color: #96b299; transform: translateY(-2px); }
.card:not(:disabled):active { transform: translateY(0); }
.card img { display: block; width: 67%; height: 72%; max-width: 153px; max-height: 138px; object-fit: contain; filter: drop-shadow(0 5px 4px #3c2f181c); pointer-events: none; }
.card.correct { background: #e4f4e6; border-color: #549065; }
.card.tried { background: #fff3d9; border-color: #e0b860; }
.marker { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; font-weight: 850; }
.correct .marker { background: #2e6747; color: white; }
.tried .marker { background: #f9de9e; color: #664510; }
.feedback { min-height: 81px; margin-top: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; background: #f2f4e9; border-radius: 17px; }
.feedback.retry { background: #fff1ce; }
.feedback.success { background: #e6f3e6; }
#feedback-icon { flex: none; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 11px; background: #ffde79; color: #6b4c16; font-size: 19px; font-weight: 850; }
.success #feedback-icon { background: #cce7d1; color: #275e48; }
.feedback-copy { flex: 1; }
.feedback strong { display: block; font-size: 16px; }
.feedback p { margin: 3px 0 0; color: var(--subtle); font-size: 14px; line-height: 1.32; }
.primary { min-height: 45px; border: 0; border-radius: 13px; padding: 9px 16px; background: var(--green); color: white; font-weight: 750; white-space: nowrap; }
.primary span { margin-left: 4px; }
.primary:hover { background: #1a4836; }
.finish { min-height: 402px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #f1f6e9; border-radius: 21px; }
.medal { display: grid; place-items: center; width: 96px; aspect-ratio: 1; border: 5px solid #ffeab1; border-radius: 50%; background: #ffdc73; color: #855108; font-size: 58px; }
.finish h2 { font-size: clamp(43px, 6vw, 74px); letter-spacing: -.08em; margin: 13px 0 0; }
.finish p { margin: 6px 0 22px; color: var(--subtle); }
footer { color: var(--subtle); padding-block: 18px 24px; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .top-inner, .layout, footer { width: min(700px, calc(100% - 40px)); }
  .layout { grid-template-columns: 1fr; gap: 16px; padding-top: 23px; }
  .intro { position: relative; min-height: 160px; justify-content: center; padding: 25px 31% 25px 24px; }
  .desktop-break { display: none; }
  h1 { font-size: clamp(37px, 7vw, 62px); }
  .intro p { margin-top: 13px; }
  .scene { position: absolute; inset: 0 7px 0 auto; width: 30%; min-height: 0; }
  .scene img { margin-bottom: 5px; }
  .sun { bottom: -20%; }
  .spark { font-size: 17px; }
  .spark-second { font-size: 24px; }
}
@media (max-width: 480px) {
  .top-inner, .layout, footer { width: calc(100% - 26px); }
  .top-inner { height: 61px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-icon { width: 36px; height: 36px; border-radius: 12px; font-size: 24px; }
  .layout { padding-top: 13px; gap: 12px; }
  .intro { padding: 18px 25% 18px 17px; min-height: 133px; border-radius: 19px; }
  .intro p { font-size: 14px; line-height: 1.4; }
  .scene { right: 3px; width: 26%; }
  .spark-first, .spark-fourth { display: none; }
  .board { padding: 13px; border-radius: 19px; }
  .track { margin-block: 10px 12px; }
  .cards { gap: 8px; }
  .card { height: clamp(105px, 16vh, 135px); min-height: 0; border-radius: 15px; }
  .feedback { margin-top: 11px; min-height: 73px; padding: 8px; gap: 7px; }
  #feedback-icon { width: 25px; height: 25px; font-size: 15px; }
  .feedback strong { font-size: 14px; }
  .feedback p { font-size: 12px; }
  .next { padding-inline: 9px; font-size: 14px; }
  .next span { display: none; }
  .finish { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
