.find-game-page {
  --game-panel: #fffdf7;
  --game-blue: #28778a;
  --game-gold: #efb64f;
  background: #f7f1e4;
}

.find-game-page [hidden] {
  display: none !important;
}

.find-game-main {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding-block: clamp(2.5rem, 5vw, 4.7rem) clamp(2rem, 4vw, 3.5rem);
}

.game-hero h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
}

.game-hero > div:first-child > p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.game-hero-note {
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 21rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 253, 247, .82);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 14px 40px rgba(43, 52, 40, .09);
}

.game-hero-note span {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  place-items: center;
  background: var(--sun);
  border-radius: 50%;
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
}

.game-hero-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.game-shell {
  min-height: 35rem;
}

.game-loading,
.game-error {
  padding: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.picker-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.picker-heading h2 {
  margin-bottom: .6rem;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
}

.picker-heading p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.scene-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 14px 36px rgba(40, 55, 44, .09);
  color: var(--ink);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.scene-card:hover {
  border-color: rgba(49, 91, 70, .45);
  box-shadow: 0 19px 40px rgba(40, 55, 44, .15);
  transform: translateY(-3px);
}

.scene-card img {
  width: 100%;
  aspect-ratio: 2438 / 3075;
  object-fit: cover;
  background: #eadfca;
}

.scene-card-copy {
  display: grid;
  gap: .15rem;
  padding: .9rem 1rem 1rem;
}

.scene-card-copy strong {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.2;
}

.scene-card-copy small {
  color: var(--ink-soft);
  font-weight: 700;
}

.scene-card.is-complete::after {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  background: var(--green-deep);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .22);
  color: white;
  content: '✓';
  font-size: 1.2rem;
  font-weight: 900;
}

.play-topbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.game-text-button {
  min-height: 44px;
  padding: .55rem .8rem;
  background: transparent;
  border: 0;
  border-radius: .7rem;
  color: var(--green-deep);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(23, 61, 46, .3);
  text-underline-offset: .24em;
}

.game-text-button:hover {
  background: rgba(49, 91, 70, .08);
}

.scene-progress {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 800;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18.5rem, 23rem);
  gap: clamp(1rem, 2.6vw, 2rem);
  align-items: start;
}

.game-layout.panel-left {
  grid-template-columns: minmax(18.5rem, 23rem) minmax(0, 1fr);
}

.game-layout.panel-left .scene-column {
  grid-column: 2;
}

.game-layout.panel-left .control-panel {
  grid-column: 1;
  grid-row: 1;
}

.scene-column,
.control-panel {
  min-width: 0;
}

.scene-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: .85rem;
}

.scene-heading .eyebrow {
  margin-bottom: .25rem;
}

.scene-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.scene-help {
  margin: 0 0 .25rem;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 700;
  text-align: right;
}

.scene-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 2438 / 3075;
  overflow: hidden;
  background: #d7cbb4;
  border: 5px solid white;
  border-radius: 1.4rem;
  box-shadow: 0 24px 60px rgba(31, 43, 35, .2);
  touch-action: none;
  user-select: none;
}

.scene-transform {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.scene-transform picture,
.scene-transform img,
.hotspot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-transform img {
  object-fit: contain;
  pointer-events: none;
}

.hotspot-layer {
  pointer-events: none;
}

.find-hotspot {
  --hotspot-x: 0%;
  --hotspot-y: 0%;
  --hotspot-width: 5%;
  --hotspot-height: 5%;
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  width: max(var(--hotspot-width), 44px);
  min-height: 44px;
  height: max(var(--hotspot-height), 44px);
  padding: 0;
  pointer-events: auto;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.find-hotspot:focus-visible {
  background: rgba(255, 249, 237, .16);
  border-color: white;
  box-shadow: 0 0 0 4px var(--beet);
  outline: 0;
}

.find-hotspot.is-hinting {
  border-color: rgba(255, 248, 194, .95);
  box-shadow: 0 0 0 8px rgba(244, 189, 88, .38), 0 0 28px 12px rgba(255, 224, 120, .52);
  animation: hint-pulse 1.35s ease-in-out infinite;
}

.found-sparkle {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  pointer-events: none;
  background: var(--sun);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 53, 41, .28);
  color: var(--green-deep);
  font-size: 1.7rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  animation: found-pop 700ms ease both;
}

.wrong-ripple {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  pointer-events: none;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: quiet-ripple 600ms ease-out both;
}

.view-controls {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-top: .85rem;
}

.view-controls button,
.view-controls output {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: .45rem .75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .75rem;
  font-weight: 850;
}

.view-controls output {
  min-width: 4.25rem;
  color: var(--ink-soft);
}

.view-instruction {
  margin: .55rem 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.control-panel {
  position: sticky;
  top: 6rem;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  background: var(--game-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(40, 55, 44, .14);
}

.panel-heading {
  display: flex;
  gap: .75rem;
  align-items: start;
  justify-content: space-between;
}

.panel-heading .eyebrow {
  margin-bottom: .35rem;
}

.panel-heading h2 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.panel-heading > strong {
  flex: none;
  padding: .4rem .7rem;
  background: rgba(244, 189, 88, .23);
  border-radius: 999px;
  color: #6c4510;
  font-size: .78rem;
}

.target-list {
  display: grid;
  gap: .7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.target-card {
  display: grid;
  grid-template-columns: 3.7rem minmax(0, 1fr) 2rem;
  gap: .85rem;
  align-items: center;
  min-height: 5rem;
  padding: .65rem .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.target-card img {
  width: 3.7rem;
  height: 3.7rem;
  padding: .2rem;
  object-fit: contain;
  background: #f5efe2;
  border-radius: .8rem;
}

.target-card strong,
.target-card small {
  display: block;
}

.target-card strong {
  line-height: 1.25;
}

.target-card small {
  margin-top: .2rem;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 700;
}

.target-check {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 2px solid rgba(49, 91, 70, .28);
  border-radius: 50%;
  color: transparent;
  font-weight: 900;
}

.target-card.is-found {
  background: rgba(124, 161, 107, .17);
  opacity: .72;
  transform: scale(.98);
}

.target-card.is-found .target-check {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: white;
}

.encouragement {
  min-height: 3.2rem;
  margin: 1rem 0;
  padding: .75rem .85rem;
  background: rgba(220, 239, 240, .55);
  border-radius: .85rem;
  color: #234d58;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.45;
}

.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.panel-actions .button {
  min-width: 0;
  padding-inline: .8rem;
}

.panel-actions .move-panel,
.panel-actions .reset-scene {
  grid-column: 1 / -1;
}

.scene-complete {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  padding: 2rem;
  background: rgba(255, 253, 247, .97);
  border-radius: inherit;
  text-align: center;
}

.scene-complete[hidden] {
  display: none;
}

.scene-complete h2 {
  margin: .7rem 0;
  font-size: 2.6rem;
}

.celebration-mark {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  place-items: center;
  background: var(--sun);
  border-radius: 50%;
  font-size: 2rem;
  animation: celebration-pop 850ms ease both;
}

.scene-complete .button-row {
  justify-content: center;
}

.reset-dialog {
  width: min(31rem, calc(100% - 2rem));
  padding: 0;
  background: var(--paper);
  border: 0;
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.reset-dialog::backdrop {
  background: rgba(20, 40, 32, .58);
}

.reset-dialog form {
  padding: 2rem;
}

.reset-dialog h2 {
  margin-bottom: .7rem;
  font-size: 2rem;
}

.no-script-game {
  display: grid;
  grid-template-columns: minmax(15rem, 25rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.no-script-game img {
  border-radius: 1rem;
}

@keyframes found-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.45) rotate(-15deg); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(1.14) rotate(5deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes celebration-pop {
  0% { opacity: 0; transform: scale(.45) rotate(-15deg); }
  55% { opacity: 1; transform: scale(1.14) rotate(5deg); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes quiet-ripple {
  from { opacity: .95; transform: translate(-50%, -50%) scale(.4); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(2.1); }
}

@keyframes hint-pulse {
  50% { box-shadow: 0 0 0 13px rgba(244, 189, 88, .18), 0 0 34px 15px rgba(255, 224, 120, .38); }
}

@media (max-width: 1050px) {
  .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-layout,
  .game-layout.panel-left {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem);
  }
}

@media (max-width: 780px) {
  .game-hero,
  .no-script-game {
    grid-template-columns: 1fr;
  }

  .game-hero-note {
    max-width: none;
  }

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

  .game-layout,
  .game-layout.panel-left {
    display: flex;
    flex-direction: column;
  }

  .game-layout .scene-column,
  .game-layout.panel-left .scene-column,
  .game-layout .control-panel,
  .game-layout.panel-left .control-panel {
    width: 100%;
  }

  .control-panel {
    position: relative;
    top: auto;
    order: 2;
  }

  .scene-column {
    order: 1;
  }

  .move-panel {
    display: none;
  }

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

  .target-card {
    grid-template-columns: 1fr;
    gap: .35rem;
    min-height: 0;
    text-align: center;
  }

  .target-card img {
    margin-inline: auto;
  }

  .target-check {
    display: none;
  }

  .scene-complete {
    position: relative;
    margin: -1rem;
  }
}

@media (max-width: 540px) {
  .game-hero {
    padding-top: 2.3rem;
  }

  .game-hero h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .picker-heading,
  .scene-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .game-continue {
    width: 100%;
  }

  .scene-grid {
    gap: .75rem;
  }

  .scene-card-copy {
    padding: .7rem;
  }

  .scene-card-copy strong {
    font-size: 1rem;
  }

  .scene-help {
    display: none;
  }

  .scene-viewport {
    border-width: 3px;
    border-radius: 1rem;
  }

  .panel-heading {
    display: block;
  }

  .panel-heading > strong {
    display: inline-block;
    margin-bottom: .8rem;
  }

  .target-card {
    padding: .5rem .3rem;
  }

  .target-card img {
    width: 3rem;
    height: 3rem;
  }

  .target-card small {
    display: none;
  }

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

  .panel-actions > * {
    grid-column: 1;
  }

  .view-controls {
    flex-wrap: wrap;
  }

  .view-instruction {
    line-height: 1.4;
  }
}

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

@media (forced-colors: active) {
  .find-hotspot:focus-visible,
  .find-hotspot.is-hinting {
    border-color: ButtonText;
  }
}

/* Progression, score and bonus-round interface. */
.progress-dashboard,
.bonus-trail,
.collection-drawer {
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  background: rgba(255, 253, 247, .92);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  box-shadow: 0 14px 36px rgba(40, 55, 44, .08);
}

.dashboard-heading,
.section-heading-row,
.score-road-copy {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.dashboard-heading h3,
.section-heading-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.dashboard-heading .eyebrow,
.section-heading-row .eyebrow {
  margin-bottom: .25rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1.15rem;
}

.dashboard-stats > div,
.result-score > div {
  display: grid;
  gap: .2rem;
  padding: .8rem;
  background: #f6efe0;
  border-radius: .85rem;
}

.dashboard-stats span,
.result-score span {
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-stats strong {
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
}

.score-road {
  margin-top: 1rem;
}

.score-road-copy {
  margin-bottom: .45rem;
  font-size: .82rem;
}

.score-road-copy span {
  color: var(--ink-soft);
}

.score-road-track {
  height: .72rem;
  overflow: hidden;
  background: #e3dac7;
  border-radius: 999px;
}

.score-road-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green-deep), var(--sun));
  border-radius: inherit;
  transition: width 400ms ease;
}

.score-rules-note {
  margin: .8rem 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.45;
}

.parent-print-link {
  flex: none;
  min-height: 44px;
}

.bonus-trail {
  margin-top: 1.5rem;
}

.section-heading-row {
  align-items: end;
  margin-bottom: 1rem;
}

.section-heading-row p:last-child {
  max-width: 48rem;
  margin: .35rem 0 0;
  color: var(--ink-soft);
}

.section-heading-row > strong {
  flex: none;
  padding: .4rem .7rem;
  background: rgba(244, 189, 88, .23);
  border-radius: 999px;
  color: #6c4510;
  font-size: .78rem;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}

.bonus-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  min-height: 4.7rem;
  padding: .65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  color: var(--ink);
  text-align: left;
}

.bonus-card.is-unlocked:hover {
  border-color: var(--green-deep);
  box-shadow: 0 8px 18px rgba(40, 55, 44, .12);
}

.bonus-card.is-locked {
  background: #eee9df;
  opacity: .7;
}

.bonus-number {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  background: var(--green-deep);
  border-radius: 50%;
  color: white;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 900;
}

.bonus-card.is-locked .bonus-number {
  background: #8b928d;
}

.bonus-card-copy,
.bonus-card-copy strong,
.bonus-card-copy small {
  display: block;
}

.bonus-card-copy strong {
  line-height: 1.2;
}

.bonus-card-copy small {
  margin-top: .18rem;
  color: var(--ink-soft);
  font-size: .7rem;
}

.bonus-check {
  position: absolute;
  top: .35rem;
  right: .45rem;
  color: var(--green-deep);
  font-weight: 900;
}

.collection-drawer {
  margin-bottom: 1rem;
}

.collection-drawer summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 800;
}

.collection-drawer summary span {
  margin-left: .45rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .75rem;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1rem;
}

.award-card {
  min-width: 0;
  padding: .8rem;
  background: #f7f1e5;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-align: center;
}

.award-card.is-locked {
  opacity: .65;
}

.award-card.is-earned {
  background: linear-gradient(145deg, #fff9e8, #f3e1af);
  border-color: #c8972f;
}

.award-mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto .55rem;
  place-items: center;
  background: #ded7ca;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(40, 55, 44, .14);
  color: #6c716d;
  font-size: 1.65rem;
  font-weight: 900;
}

.award-card.is-earned .award-mark {
  background: var(--sun);
  color: var(--green-deep);
}

.award-card h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.award-card p {
  margin: .4rem 0;
  color: var(--ink-soft);
  font-size: .74rem;
  line-height: 1.35;
}

.award-earned-label {
  color: var(--green-deep);
  font-size: .72rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 1rem;
}

.album-item {
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: 0;
  padding: .45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .8rem;
  text-align: center;
}

.album-item img {
  width: 100%;
  max-width: 4.25rem;
  aspect-ratio: 1;
  object-fit: contain;
}

.album-item span {
  margin-top: .25rem;
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.2;
}

.album-item.is-missing img {
  filter: grayscale(1) brightness(0);
  opacity: .13;
}

.album-item.is-missing span {
  color: #858b87;
}

.live-score {
  display: flex;
  gap: .4rem;
  align-items: center;
  justify-content: center;
}

.live-score > span {
  display: grid;
  min-width: 5rem;
  padding: .35rem .6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .7rem;
  color: var(--ink-soft);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
}

.live-score output,
.live-score time {
  color: var(--green-deep);
  font-size: .98rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0;
}

.score-flash {
  position: absolute;
  z-index: 8;
  top: 1rem;
  left: 50%;
  padding: .55rem .9rem;
  pointer-events: none;
  background: var(--sun);
  border: 3px solid white;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 53, 41, .28);
  color: var(--green-deep);
  font-weight: 900;
  transform: translateX(-50%);
}

.score-flash.is-showing {
  animation: score-rise 1.1s ease both;
}

.bonus-instruction {
  margin: 0 0 .8rem;
  padding: .7rem .8rem;
  background: rgba(244, 189, 88, .2);
  border-radius: .8rem;
}

.bonus-instruction p {
  margin: .2rem 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.bonus-silhouette .target-card img,
.bonus-mixed:not(.mixed-lantern-wave) .target-card img {
  filter: brightness(0);
  opacity: .78;
}

.memory-list-hidden .target-card img {
  filter: blur(12px) grayscale(1);
  opacity: .15;
}

.memory-list-hidden .target-card strong {
  font-size: 0;
}

.memory-list-hidden .target-card strong::after {
  content: 'Remember!';
  font-size: .9rem;
}

.scene-viewport.is-lantern {
  --lantern-x: 50%;
  --lantern-y: 50%;
}

.scene-viewport.is-lantern::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 7.5rem at var(--lantern-x) var(--lantern-y), transparent 0 50%, rgba(9, 18, 16, .1) 66%, rgba(9, 18, 16, .83) 100%);
  content: '';
}

.scene-complete {
  align-content: start;
  overflow-y: auto;
}

.control-panel.is-showing-result > :not(.scene-complete) {
  display: none;
}

.control-panel.is-showing-result .scene-complete {
  position: relative;
  inset: auto;
  min-height: 0;
  padding: .5rem;
  overflow: visible;
}

.scene-complete > .eyebrow {
  margin: .55rem 0 0;
}

.result-score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin: .85rem 0;
}

.result-score > div {
  padding: .55rem .35rem;
}

.result-score strong {
  color: var(--green-deep);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.result-stars {
  display: flex;
  gap: .3rem;
  justify-content: center;
  color: #b3aa98;
  font-size: 2rem;
}

.result-stars .is-earned {
  color: #d3981d;
  filter: drop-shadow(0 2px 1px rgba(96, 60, 5, .18));
}

.score-breakdown {
  display: grid;
  gap: .22rem;
  padding: 0;
  margin: .65rem 0 1rem;
  list-style: none;
}

.score-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: .2rem .35rem;
  color: var(--ink-soft);
  font-size: .75rem;
}

.score-breakdown strong {
  color: var(--green-deep);
}

.new-award {
  padding: .65rem;
  background: #fff0b9;
  border: 1px solid #d3a43c;
  border-radius: .75rem;
  color: #65420a;
  font-size: .8rem;
  font-weight: 850;
}

@keyframes score-rise {
  0% { opacity: 0; transform: translate(-50%, .6rem) scale(.8); }
  30% { opacity: 1; transform: translate(-50%, 0) scale(1.04); }
  100% { opacity: 0; transform: translate(-50%, -1.3rem) scale(1); }
}

@media (max-width: 1050px) {
  .bonus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .play-topbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 780px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .live-score {
    order: 3;
    width: 100%;
  }

  .live-score > span {
    flex: 1;
  }

  .scene-complete {
    overflow: visible;
  }
}

@media (max-width: 540px) {
  .dashboard-heading,
  .section-heading-row,
  .score-road-copy {
    align-items: stretch;
    flex-direction: column;
  }

  .parent-print-link {
    width: 100%;
  }

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

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

  .live-score {
    gap: .25rem;
  }

  .live-score > span {
    min-width: 0;
    padding-inline: .3rem;
  }
}
