.spot-game-page {
  --spot-ink: #26364e;
  --spot-muted: #75829a;
  --spot-yellow: #ffd768;
  --spot-coral: #ff8b82;
  --spot-purple: #8572dc;
  color: var(--spot-ink);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(255, 220, 128, .21), transparent 27rem),
    radial-gradient(ellipse at 90% 16%, rgba(172, 224, 255, .23), transparent 30rem),
    #fffaf2;
}

.spot-game {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 74px;
}

.spot-game__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #68758b;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.spot-game__back:hover { color: #5e50b2; transform: translateX(-3px); }
.spot-game__back span { font-size: 1.25rem; }

.spot-game__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 8px 25px;
}

.spot-game__intro-copy { max-width: 760px; }
.spot-game__eyebrow {
  margin: 0 0 10px;
  color: #8272d4;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .15em;
}
.spot-game__eyebrow span { color: #ffb939; font-size: 1.1rem; }
.spot-game__intro h1 {
  margin: 0;
  color: #283852;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.spot-game__intro h1 span { color: #fb9589; }
.spot-game__lead { margin: 13px 0 0; color: #6a7890; font-size: 1.06rem; line-height: 1.55; }
.spot-game__mascot { position: relative; display: flex; flex: 0 0 130px; align-items: center; justify-content: center; height: 120px; }
.spot-game__mascot-glass { display: grid; width: 96px; height: 96px; place-items: center; border: 4px solid #fff; border-radius: 32px; background: linear-gradient(145deg, #d9f4ff, #f5e9ff); box-shadow: 0 12px 28px rgba(96, 112, 159, .15); font-size: 3.55rem; transform: rotate(-8deg); }
.spot-game__mascot-flower { position: absolute; right: 0; bottom: 5px; font-size: 2.3rem; transform: rotate(12deg); }
.spot-game__mascot-spark { position: absolute; color: #ffbd42; font-size: 1.1rem; }
.spot-game__mascot-spark--one { top: 4px; left: 14px; }
.spot-game__mascot-spark--two { top: 22px; right: 8px; color: #ff8b82; }

.spot-game__card {
  overflow: hidden;
  padding: clamp(18px, 3.3vw, 34px);
  border: 1px solid rgba(229, 218, 201, .8);
  border-radius: 30px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 54px rgba(60, 70, 95, .10), 0 3px 10px rgba(60, 70, 95, .04);
}

.spot-game__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.spot-game__round { display: flex; align-items: center; gap: 13px; }
.spot-game__round-icon { display: grid; width: 51px; height: 51px; place-items: center; border-radius: 17px; background: #fff3d1; font-size: 1.7rem; }
.spot-game__round-label { display: block; margin-bottom: 3px; color: #8a95a8; font-size: .67rem; font-weight: 900; letter-spacing: .13em; }
.spot-game__round strong { display: block; color: #2d3d57; font-size: 1.05rem; font-weight: 850; }
.spot-game__dictionary-link { color: inherit; text-decoration: underline; text-decoration-color: #a69be3; text-decoration-style: dotted; text-underline-offset: .16em; }
.spot-game__dictionary-link:hover { color: #5c50af; text-decoration-style: solid; }
.spot-game__dictionary-link:focus-visible { border-radius: 2px; outline: 3px solid #8572dc; outline-offset: 2px; }
.spot-game__score { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; min-width: 122px; padding: 8px 13px 8px 10px; border-radius: 17px; background: #fff7df; }
.spot-game__score-icon { grid-row: span 2; font-size: 1.45rem; }
.spot-game__score strong { color: #283852; font-size: 1.08rem; }
.spot-game__score-divider { color: #a3a9b5; font-weight: 700; }
.spot-game__score-caption { color: #8a7d57; font-size: .66rem; font-weight: 800; }

.spot-game__progress { display: flex; gap: 7px; margin: 22px 0 6px; }
.spot-game__progress-star { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #ebe9e3; border-radius: 10px; background: #f7f7f5; color: #d7d9dd; font-size: .95rem; transition: color .25s ease, background .25s ease, transform .25s ease; }
.spot-game__progress-star.is-found { border-color: #ffe2a0; background: #fff2cd; color: #efb331; transform: rotate(-8deg) scale(1.06); }
.spot-game__debug[hidden] { display: none; }
.spot-game__debug { margin: 14px 0 12px; padding: 12px 14px; border: 1px dashed #c9bddf; border-radius: 15px; background: #faf8ff; }
.spot-game__debug-title { margin: 0 0 9px; color: #76649f; font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.spot-game__debug-list { display: flex; flex-wrap: wrap; gap: 7px; }
.spot-game__debug-button { min-height: 34px; padding: 0 10px; border: 1px solid #e4ddef; border-radius: 10px; background: #fff; color: #665b7c; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.spot-game__debug-button.is-current { border-color: #7969d2; background: #7969d2; color: #fff; }
.spot-game__debug-button:focus-visible { outline: 3px solid #8572dc; outline-offset: 2px; }
.spot-game__instruction { min-height: 25px; margin: 11px 0 18px; color: #65748a; font-size: .92rem; font-weight: 700; }
.spot-game__instruction.is-success { color: #29846d; }

.spot-game__boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.spot-game__board { min-width: 0; margin: 0; padding: 10px; border: 1px solid #ececf0; border-radius: 21px; background: #fbfcff; box-shadow: 0 5px 13px rgba(64, 80, 115, .035); }
.spot-game__board figcaption { display: flex; align-items: center; gap: 9px; padding: 1px 3px 10px; color: #7e8aa0; font-size: .66rem; font-weight: 900; letter-spacing: .12em; }
.spot-game__board-letter { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 9px; background: #e5f5ff; color: #4c8cb6; font-size: .78rem; letter-spacing: 0; }
.spot-game__board-letter--pink { background: #ffe8e5; color: #cd6f71; }
.spot-game__art { position: relative; overflow: hidden; border-radius: 14px; background: #d9eefe; aspect-ratio: 1 / 1; }
.spot-game__book-image { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.spot-game__marker-layer { position: absolute; inset: 0; pointer-events: none; }
.spot-game__found-marker,
.spot-game__hint-marker,
.spot-game__hotspot { position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; transform: translate(-50%, -50%); }
.spot-game__found-marker { border: 3px solid #fff; background: rgba(48, 174, 123, .3); box-shadow: 0 1px 5px rgba(22, 66, 51, .45), inset 0 0 0 2px #27a875; animation: spot-found-pop .38s cubic-bezier(.2,.8,.2,1.5) both; }
.spot-game__hint-marker { border: 3px solid #f3a82f; background: rgba(255, 215, 104, .28); box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 2px 8px rgba(70, 60, 27, .3); animation: spot-hint-pulse .75s ease-in-out 3; }
.spot-game__hotspot { z-index: 2; appearance: none; padding: 0; border: 2px solid transparent; background: transparent; color: inherit; font: inherit; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.spot-game__marker-layer.is-easy .spot-game__hotspot { width: 64px; height: 64px; }
.spot-game__hotspot:focus-visible { border-color: #5545b8; outline: 3px solid #fff; outline-offset: 1px; }
.spot-game__source { display: flex; align-items: center; gap: 11px; margin-top: 15px; padding: 11px 14px; border: 1px solid #eee8d9; border-radius: 15px; background: #fffdf8; }
.spot-game__source-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 12px; background: #fff4d6; font-size: 1.15rem; }
.spot-game__source-copy { display: grid; gap: 2px; }
.spot-game__source-label { color: #8a8c96; font-size: .7rem; font-weight: 750; }
.spot-game__source-title { color: #273953; font-size: .9rem; font-weight: 850; }
.spot-game__source-link { width: fit-content; color: #5c50af; font-size: .9rem; font-weight: 850; text-decoration: none; }
.spot-game__source-link:hover { color: #3e338f; text-decoration: underline; text-underline-offset: 3px; }
.spot-game__source-link:focus-visible { border-radius: 3px; outline: 3px solid #8572dc; outline-offset: 3px; }
@keyframes spot-found-pop { from { opacity: 0; scale: .65; } to { opacity: 1; scale: 1; } }
@keyframes spot-hint-pulse { 50% { opacity: .38; } }

.spot-game__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.spot-game__button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 0; border-radius: 15px; font: inherit; font-size: .86rem; font-weight: 850; cursor: pointer; transition: transform .17s ease, box-shadow .17s ease, background .17s ease; }
.spot-game__button:hover { transform: translateY(-2px); box-shadow: 0 8px 17px rgba(49, 61, 90, .13); }
.spot-game__button:focus-visible { outline: 3px solid #8572dc; outline-offset: 3px; }
.spot-game__button--hint { background: #fff3d0; color: #8a6820; }
.spot-game__button--reset { background: #f0efff; color: #6258ad; }
.spot-game__button--next { margin-left: auto; background: #7969d2; color: #fff; box-shadow: 0 7px 15px rgba(110, 95, 199, .2); }
.spot-game__button[hidden] { display: none; }
.spot-game__button span { font-size: 1.15rem; }
.spot-game__footer-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 21px 0 0; color: #7d8798; font-size: .83rem; text-align: center; }

.spot-game__celebration[hidden] { display: none; }
.spot-game__celebration { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(31, 42, 65, .48); backdrop-filter: blur(5px); }
.spot-game__celebration-card { width: min(440px, 100%); padding: 34px 28px 30px; border: 4px solid rgba(255, 255, 255, .9); border-radius: 30px; background: #fffdf7; box-shadow: 0 25px 65px rgba(22, 31, 52, .25); text-align: center; animation: spot-card-pop .35s cubic-bezier(.2,.8,.2,1.3) both; }
.spot-game__celebration-card { max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; }
@keyframes spot-card-pop { from { opacity: 0; transform: translateY(12px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
.spot-game__celebration-art { display: block; margin-bottom: 8px; font-size: 4rem; }
.spot-game__celebration-card h2 { margin: 0; color: #2c3c57; font-size: 2rem; letter-spacing: -.04em; }
.spot-game__celebration-card > p:not(.spot-game__eyebrow) { margin: 12px 0 22px; color: #718096; line-height: 1.6; }
.spot-game__celebration-stores { justify-content: center; gap: 10px; margin: 0 0 20px; }
.spot-game__celebration-stores .store-btn { min-height: 48px; padding: 9px 13px; border-radius: 13px; }
.spot-game__celebration-stores .store-btn__icon { width: 23px; height: 23px; }
.spot-game__celebration-card .spot-game__button { margin: 0 auto; }

@media (max-width: 720px) {
  .spot-game { width: min(100% - 28px, 560px); padding-top: 21px; }
  .spot-game__intro { padding: 24px 2px 20px; }
  .spot-game__mascot { flex-basis: 92px; height: 90px; }
  .spot-game__mascot-glass { width: 72px; height: 72px; border-radius: 25px; font-size: 2.65rem; }
  .spot-game__mascot-flower { right: -1px; bottom: 0; font-size: 1.8rem; }
  .spot-game__boards { grid-template-columns: 1fr; gap: 12px; }
  .spot-game__board { padding: 8px; }
  .spot-game__board figcaption { padding-bottom: 7px; }
  .spot-game__instruction { margin-bottom: 14px; }
  .spot-game__source { margin-top: 12px; }
}

@media (max-width: 440px) {
  .spot-game { width: calc(100% - 22px); padding-bottom: 48px; }
  .spot-game__intro { gap: 7px; }
  .spot-game__intro h1 { font-size: 2.2rem; }
  .spot-game__lead { max-width: 255px; font-size: .95rem; }
  .spot-game__mascot { flex-basis: 72px; }
  .spot-game__mascot-glass { width: 63px; height: 63px; font-size: 2.3rem; }
  .spot-game__card { padding: 16px 12px 17px; border-radius: 23px; }
  .spot-game__toolbar { gap: 8px; }
  .spot-game__round { gap: 9px; }
  .spot-game__round-icon { width: 43px; height: 43px; border-radius: 14px; font-size: 1.45rem; }
  .spot-game__round-label { font-size: .59rem; }
  .spot-game__round strong { font-size: .94rem; }
  .spot-game__score { min-width: 98px; padding-right: 9px; column-gap: 5px; }
  .spot-game__actions { gap: 8px; margin-top: 17px; }
  .spot-game__button { min-height: 44px; padding: 0 12px; font-size: .78rem; }
  .spot-game__button--next { margin-left: 0; }
  .spot-game__footer-note { align-items: flex-start; font-size: .77rem; }
}

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

/* A compact invitation on the existing content catalogue. */
.spot-game-promo { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 28px; width: min(1080px, calc(100% - 44px)); margin: 0 auto 54px; padding: 29px 36px; overflow: hidden; border: 1px solid rgba(231, 215, 178, .85); border-radius: 28px; background: linear-gradient(115deg, #fff7de 0%, #fffdf7 62%, #f1f5ff 100%); box-shadow: 0 16px 35px rgba(74, 77, 104, .07); }
.spot-game-promo__copy { position: relative; z-index: 1; }
.spot-game-promo__eyebrow { margin: 0 0 8px; color: #8b74c5; font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.spot-game-promo h2 { margin: 0; color: #273953; font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.045em; }
.spot-game-promo__description { max-width: 660px; margin: 10px 0 17px; color: #69778d; line-height: 1.6; }
.spot-game-promo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.spot-game-promo__button { display: inline-flex; min-height: 47px; align-items: center; gap: 10px; padding: 0 19px; border-radius: 14px; background: #7968d0; box-shadow: 0 7px 16px rgba(110, 95, 199, .18); color: white; font-weight: 850; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.spot-game-promo__button:hover { transform: translateY(-2px); box-shadow: 0 11px 21px rgba(110, 95, 199, .23); }
.spot-game-promo__note { color: #858ba0; font-size: .78rem; font-weight: 750; }
.spot-game-promo__art { position: relative; display: grid; min-height: 140px; place-items: center; }
.spot-game-promo__lens { display: grid; width: 112px; height: 112px; place-items: center; border: 7px solid #fff; border-radius: 36px; background: linear-gradient(145deg, #d5f3ff, #f7e6ff); box-shadow: 0 15px 28px rgba(79, 99, 148, .15); font-size: 4rem; transform: rotate(-8deg); }
.spot-game-promo__spark { position: absolute; color: #f3b738; font-size: 1.5rem; }
.spot-game-promo__spark--one { top: 5px; left: 15px; }
.spot-game-promo__spark--two { right: 10px; bottom: 7px; color: #ee8b88; }
@media (max-width: 680px) {
  .spot-game-promo { grid-template-columns: 1fr 90px; gap: 10px; width: calc(100% - 28px); margin-bottom: 40px; padding: 22px 18px; }
  .spot-game-promo__lens { width: 74px; height: 74px; border-width: 5px; border-radius: 26px; font-size: 2.7rem; }
  .spot-game-promo__art { min-height: 100px; }
  .spot-game-promo__actions { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (max-width: 390px) { .spot-game-promo { grid-template-columns: 1fr; } .spot-game-promo__art { display: none; } }
