:root {
  --paper:#ffffff;
  --ink:#282044;
  --muted:#51466b;
  --wine:#c51663;
  --wine-dark:#a30d50;
  --rose:#ff58a6;
  --sage:#ffce32;
  --gold:#ffb800;
  --line:#d9cff0;
  --serif:'Playfair Display',Georgia,serif;
  --poem-font:'Lora',Georgia,serif;
  --sans:'DM Sans',sans-serif
}
* {
  box-sizing:border-box
}
html {
  min-width:0;
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:1.25rem;
  line-height:1.6;
  -webkit-tap-highlight-color:transparent
}
button,input,a {
  touch-action:manipulation
}
button,input {
  font:inherit
}
button,a,input {
  outline-offset:5px
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:2px solid var(--wine)
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default
}
a {
  color:inherit
}
.page-grain {
  position:fixed;
  inset:0;
  z-index:20;
  opacity:.028;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E")
}
.site-header {
  max-width:1280px;
  margin:auto;
  height:112px;
  padding:0 56px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  font-size:1.25rem;
  font-weight:700;
  line-height:1.5;
  letter-spacing:2px
}
.brand-flower {
  font-size:2.6875rem;
  font-weight:400;
  line-height:1;
  color:var(--wine)
}
.header-note {
  color:var(--muted);
  font-size:1.25rem;
  letter-spacing:.2px;
  display:flex;
  gap:9px;
  align-items:center
}
.header-note>span {
  font-size:1.375rem;
  color:var(--wine)
}
.header-heart {
  font-size:1.6875rem;
  color:var(--wine);
  display:none
}
#app {
  min-height:calc(100svh - 197px)
}
.site-footer {
  max-width:1168px;
  margin:0 auto;
  padding:27px 0;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:1.25rem;
  letter-spacing:.35px
}
.footer-center {
  color:var(--wine);
  font-size:1.25rem
}
.screen {
  animation:arrive .55s cubic-bezier(.2,.8,.2,1) both
}
.screen.leaving {
  animation:leave .2s ease both
}
.home {
  max-width:1168px;
  margin:16px auto 0;
  padding:24px 0 58px
}
.hero {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
  min-height:485px
}
.eyebrow {
  font-size:1.25rem;
  font-weight:650;
  letter-spacing:2.4px;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--wine);
  margin:0 0 23px
}
.eyebrow .tiny-star {
  font-size:1.25rem;
  font-weight:400
}
.hero h1 {
  font:500 clamp(3rem,5.4vw,4.75rem)/1.12 var(--serif);
  letter-spacing:-2.9px;
  margin:0 0 25px
}
.hero h1 em {
  font-weight:500;
  color:var(--wine);
  position:relative;
  white-space:nowrap
}
.hero h1 em:after {
  content:'';
  position:absolute;
  left:0;
  right:-4px;
  bottom:-8px;
  height:9px;
  border-top:2px solid var(--wine);
  border-radius:50%;
  transform:rotate(-4deg);
  opacity:.7
}
.hero-copy {
  font-size:1.25rem;
  line-height:1.8;
  color:#51466b;
  margin:0 0 29px
}
.hero-copy strong {
  font-weight:550;
  color:var(--ink)
}
.primary-button {
  border:1px solid var(--wine);
  background:var(--wine);
  color:var(--paper);
  border-radius:9px;
  min-height:54px;
  padding:13px 24px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:30px;
  font-size:1.25rem;
  font-weight:600;
  letter-spacing:.25px;
  box-shadow:0 4px 0 #a30d5016;
  transition:background .2s,transform .2s,box-shadow .2s
}
.primary-button:hover {
  background:var(--wine-dark);
  transform:translateY(-2px);
  box-shadow:0 7px 0 #a30d5012
}
.primary-button:active {
  transform:translateY(1px);
  box-shadow:none
}
.arrow {
  font-size:1.4375rem;
  font-weight:400;
  line-height:1
}
.hero-facts {
  display:flex;
  align-items:center;
  gap:20px;
  font-size:1.25rem;
  color:var(--muted);
  margin-top:24px
}
.hero-facts span {
  display:flex;
  align-items:center;
  gap:7px
}
.hero-facts svg {
  width:16px;
  height:16px;
  stroke:var(--wine);
  fill:none;
  stroke-width:1.5
}
.hero-art {
  position:relative;
  align-self:center
}
.scene {
  display:block;
  width:100%;
  height:auto;
  overflow:visible
}
.hero-art .scene {
  filter:drop-shadow(0 15px 20px #c5166308)
}
.art-note {
  position:absolute;
  bottom:14px;
  right:8px;
  transform:rotate(-8deg);
  font:italic 1.25rem var(--serif);
  color:var(--wine);
  display:flex;
  gap:8px;
  align-items:center
}
.art-note span {
  font-size:2.125rem;
  transform:rotate(10deg)
}
.adventure-path {
  margin-top:41px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);
  border-radius:13px;
  background:#ffffff36;
  overflow:hidden
}
.path-item {
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px 24px;
  position:relative
}
.path-item+.path-item:before {
  content:'';
  height:27px;
  width:1px;
  background:var(--line);
  position:absolute;
  left:0
}
.path-number {
  border:1px solid #8d72ba;
  border-radius:50%;
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  font:italic 1.25rem var(--serif);
  color:#4a3269;
  flex-shrink:0
}
.path-label {
  font-size:1.25rem;
  letter-spacing:.2px;
  font-weight:550
}
.path-item:last-child .path-number {
  background:var(--rose);
  border-color:var(--rose);
  color:var(--wine)
}
.home-small-note {
  text-align:center;
  color:var(--muted);
  font-size:1.25rem;
  margin:16px 0 0;
  letter-spacing:.2px
}
.text-button {
  border:0;
  background:none;
  color:var(--muted);
  font-size:1.25rem;
  text-decoration:underline;
  text-underline-offset:4px;
  padding:10px 0
}
.resume-actions {
  display:flex;
  align-items:center;
  gap:22px
}
.puzzle {
  max-width:1080px;
  margin:11px auto 0;
  padding:0 0 47px
}
.game-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:32px;
  gap:12px
}
.back-button {
  padding:7px 0;
  border:0;
  background:none;
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:1.25rem
}
.back-button:hover {
  color:var(--wine)
}
.progress {
  display:flex;
  align-items:center;
  gap:9px
}
.progress-dot {
  height:7px;
  width:7px;
  border-radius:50%;
  background:#ded3f3;
  transition:background .3s
}
.progress-dot.current {
  background:var(--wine);
  box-shadow:0 0 0 4px #c5166310
}
.progress-dot.complete {
  background:#00896b
}
.progress-label {
  font-size:1.25rem;
  letter-spacing:1.2px;
  margin-left:9px;
  color:var(--muted)
}
.puzzle-grid {
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr);
  gap:76px;
  align-items:center
}
.puzzle-art-panel {
  position:relative;
  background:var(--sage);
  border-radius:190px 190px 18px 18px;
  padding:27px 15px 34px;
  isolation:isolate;
  min-width:0
}
.puzzle-art-panel.tone-rose {
  background:#ff58a6
}
.puzzle-art-panel.tone-blue {
  background:#1ccede
}
.puzzle-art-panel.tone-gold {
  background:#7941db
}
.puzzle-art-panel .scene {
  position:relative;
  z-index:1
}
.puzzle-art-panel .scene.puzzle-scene {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  flex-shrink: 1;
}
.illustration-caption {
  text-align:center;
  font:italic 1.25rem var(--serif);
  margin:0 0 3px;
  color:#282044
}
.tone-rose .illustration-caption {
  color:#491137
}
.tone-blue .illustration-caption {
  color:#043b4a
}
.tone-gold .illustration-caption {
  color:#ffffff
}
.illustration-subcaption {
  font-size:1.25rem;
  letter-spacing:2px;
  text-transform:uppercase;
  text-align:center;
  opacity:.65
}
.art-seal {
  position:absolute;
  right:-18px;
  top:48px;
  z-index:2;
  border:1px dashed #c51663;
  outline:7px solid var(--paper);
  background:var(--paper);
  border-radius:50%;
  height:83px;
  width:83px;
  display:grid;
  place-content:center;
  text-align:center;
  transform:rotate(13deg);
  color:var(--wine);
  font-size:1.25rem;
  line-height:1.6;
  letter-spacing:1px
}
.art-seal strong {
  font:italic 1.875rem var(--serif)
}
.puzzle-body .eyebrow {
  margin-bottom:11px
}
.puzzle h1 {
  font:500 2.375rem/1.2 var(--serif);
  letter-spacing:-1.1px;
  margin:0 0 21px
}
.poem {
  text-align:center;
  font-family:var(--poem-font);
  font-weight:500;
  font-size:1.25rem;
  line-height:1.85;
  color:#413553
}
.poem p {
  margin:0 0 16px
}
.poem p:last-child {
  margin-bottom:0
}
.poem-line {
  display:block
}
.answer-area {
  margin-top:27px;
  padding-top:22px;
  border-top:1px solid var(--line)
}
.answer-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
  font-size:1.25rem;
  letter-spacing:1.2px;
  font-weight:650;
  text-transform:uppercase
}
.letter-help {
  font-weight:400;
  letter-spacing:0;
  text-transform:none;
  color:var(--muted);
  font-size:1.25rem;
  display:flex;
  gap:5px;
  align-items:center
}
.letter-help i {
  display:inline-block;
  border-radius:3px;
  width:9px;
  height:11px;
  background:var(--sage)
}
.letter-board {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px
}
.letter-row {
  display:flex;
  gap:5px;
  max-width:100%;
  width:100%
}
.letter-group {
  display:flex;
  gap:5px;
  min-width:0
}
.letter-row.name-row {
  gap:13px
}
.letter-wrap {
  position:relative;
  display:block;
  flex:0 1 40px;
  min-width:0
}
.letter-input {
  display:block;
  width:100%;
  height:46px;
  padding:0;
  text-align:center;
  background:#ffffff;
  border:1px solid #a184c6;
  border-bottom-width:3px;
  border-radius:6px;
  color:var(--ink);
  font-family:var(--sans);
  font-size:1.25rem;
  font-weight:600;
  caret-color:var(--wine);
  transition:border-color .2s,background .2s,transform .2s;
  text-transform:uppercase;
  box-shadow:0 2px 2px #29311f03
}
.letter-input:focus {
  border-color:var(--wine);
  outline:2px solid #c5166313;
  outline-offset:2px;
  transform:translateY(-2px)
}
.letter-input.given {
  background:var(--sage);
  border-color:#b07d00;
  color:#493700
}
.letter-input.given:focus {
  transform:none
}
.letter-input.correct {
  background:#58e5a5;
  border-color:#008f5d;
  color:#06482f
}
.name-row .letter-group {
  flex:0 1 auto
}
.name-row .letter-wrap {
  width:34px;
  flex-basis:34px
}
.input-hint {
  font-size:1.25rem;
  color:var(--muted);
  margin:9px 0 0;
  line-height:1.6
}
.feedback {
  font-size:1.25rem;
  min-height:25px;
  margin:10px 0 9px;
  color:var(--wine)
}
.feedback.is-success {
  color:#007343;
  font-weight:550
}
.answer-area .primary-button {
  width:100%;
  min-height:49px;
  font-size:1.25rem;
  justify-content:space-between;
  padding:11px 19px
}
.answer-area.is-shaking .letter-board {
  animation:shake .36s ease
}
.hint-button {
  display:block;
  margin:9px auto -6px;
  padding:7px 12px;
  background:transparent;
  border:0;
  color:#5b367c;
  font-size:1.25rem
}
.hint-button:hover {
  color:var(--wine)
}
.hint-text {
  padding:9px 12px;
  border-radius:6px;
  background:#ffe55c;
  font-size:1.25rem;
  color:#282044;
  margin:13px 0 0
}
.finale {
  max-width:970px;
  margin:10px auto 0;
  text-align:center;
  padding-bottom:48px;
  position:relative
}
.finale .eyebrow {
  justify-content:center;
  margin-bottom:12px
}
.finale h1 {
  font:500 clamp(2.5rem,5vw,3.8125rem)/1.18 var(--serif);
  letter-spacing:-1.6px;
  margin:0 0 17px
}
.finale h1 em {
  color:var(--wine);
  font-weight:500
}
.finale-intro {
  font-size:1.25rem;
  color:var(--muted);
  margin:0 0 26px
}
.gift-ticket {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  background:#ffd231;
  border-radius:15px;
  margin:0 auto 35px;
  max-width:850px;
  text-align:left;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  box-shadow:0 9px 25px #5c51360a
}
.gift-ticket:before,.gift-ticket:after {
  content:'';
  position:absolute;
  left:44.7%;
  height:22px;
  width:22px;
  border-radius:50%;
  background:var(--paper);
  z-index:4;
  transform:translateX(-50%)
}
.gift-ticket:before {
  top:-11px
}
.gift-ticket:after {
  bottom:-11px
}
.ticket-art {
  background:#1ccede;
  display:grid;
  place-items:center;
  padding:0 12px;
  border-right:1px dashed #186a92
}
.ticket-art .scene {
  width:100%
}
.ticket-copy {
  padding:32px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center
}
.ticket-kicker {
  font-size:1.25rem;
  letter-spacing:2.2px;
  color:#433052;
  margin:0 0 14px
}
.ticket-copy h2 {
  font:500 2rem/1.2 var(--serif);
  letter-spacing:-.6px;
  margin:0 0 11px;
  color:var(--wine)
}
.ticket-venue {
  font:500 1.25rem/1.5 var(--serif);
  margin:0 0 18px
}
.ticket-ship {
  display:inline-flex;
  align-self:flex-start;
  align-items:center;
  gap:7px;
  border:1px solid #8a5700;
  border-radius:20px;
  padding:5px 12px;
  font-size:1.25rem;
  font-weight:550;
  letter-spacing:.3px
}
.ticket-ship svg {
  height:14px;
  width:14px;
  stroke:currentColor;
  stroke-width:1.5;
  fill:none
}
.finale-poem {
  max-width:680px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 35px;
  text-align:center;
  font-size:1.25rem;
  line-height:1.95
}
.finale-poem p {
  margin:0 0 17px
}
.finale-outro {
  font-size:1.25rem;
  color:#413553;
  margin:11px 0 23px
}
.finale-quote {
  font:italic 1.4375rem/1.5 var(--serif);
  color:var(--wine);
  margin:22px auto 29px;
  max-width:630px
}
.finale-signoff {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  font-size:1.25rem;
  letter-spacing:2.4px;
  text-transform:uppercase;
  color:var(--muted);
  margin:22px auto 15px
}
.finale-signoff:before,.finale-signoff:after {
  content:'';
  width:45px;
  height:1px;
  background:var(--line)
}
.restart-button {
  border:1px solid #7941db;
  background:transparent;
  color:var(--ink);
  border-radius:8px;
  padding:12px 22px;
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-size:1.25rem;
  transition:background .2s
}
.restart-button:hover {
  background:#ffdf4b
}
.curtain {
  position:fixed;
  top:0;
  bottom:0;
  width:51%;
  z-index:40;
  background:repeating-linear-gradient(90deg,#841354 0,#e92591 7%,#c51663 13%,#64194e 19%);
  pointer-events:none;
  box-shadow:0 0 80px #29101766
}
.curtain.left {
  left:0;
  animation:curtain-left 1.8s cubic-bezier(.6,0,.2,1) forwards
}
.curtain.right {
  right:0;
  animation:curtain-right 1.8s cubic-bezier(.6,0,.2,1) forwards
}
.curtain-label {
  position:fixed;
  inset:0;
  display:grid;
  place-content:center;
  z-index:41;
  color:#ffffff;
  text-align:center;
  pointer-events:none;
  animation:curtain-label 1.1s ease forwards
}
.curtain-label span {
  font:italic 2.75rem var(--serif)
}
.curtain-label small {
  font-size:1.25rem;
  letter-spacing:3px;
  margin-bottom:13px;
  text-transform:uppercase
}
#confetti {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:45
}
.float-object {
  animation:float 4.5s ease-in-out infinite;
  transform-box:fill-box;
  transform-origin:center
}
.float-object.slow {
  animation-duration:6s;
  animation-delay:-2s
}
.sparkle {
  animation:twinkle 3.5s ease-in-out infinite;
  transform-box:fill-box;
  transform-origin:center
}
.sparkle.delay {
  animation-delay:-1.7s
}
.steam {
  animation:steam 3.4s ease-in-out infinite
}
.sea-wave {
  animation:wave 5s ease-in-out infinite
}
.noscript {
  padding:30px;
  text-align:center;
  color:var(--wine)
}
@keyframes arrive {
  from {
    opacity:0;
    transform:translateY(13px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@keyframes leave {
  to {
    opacity:0;
    transform:translateY(-8px)
  }
}
@keyframes float {
  50% {
    transform:translateY(-8px) rotate(2deg)
  }
}
@keyframes twinkle {
  50% {
    opacity:.35;
    transform:scale(.75) rotate(12deg)
  }
}
@keyframes steam {
  0%,100% {
    opacity:.2;
    transform:translateY(3px)
  }
  50% {
    opacity:.8;
    transform:translateY(-5px)
  }
}
@keyframes wave {
  50% {
    transform:translateX(9px)
  }
}
@keyframes shake {
  20%,60% {
    transform:translateX(-5px)
  }
  40%,80% {
    transform:translateX(5px)
  }
}
@keyframes curtain-left {
  0%,15% {
    transform:translateX(0)
  }
  100% {
    transform:translateX(-105%)
  }
}
@keyframes curtain-right {
  0%,15% {
    transform:translateX(0)
  }
  100% {
    transform:translateX(105%)
  }
}
@keyframes curtain-label {
  0%,35% {
    opacity:1
  }
  75%,100% {
    opacity:0
  }
}
@media(min-width:1500px) {
  .site-header {
    height:140px
  }
  .home {
    padding-top:44px
  }
  .hero {
    min-height:530px
  }
  #app {
    min-height:calc(100svh - 225px)
  }
  .puzzle {
    padding-top:23px
  }
}
@media(max-width:1250px) {
  .site-header {
    padding:0 40px
  }
  .home {
    margin-left:40px;
    margin-right:40px
  }
  .site-footer {
    margin:0 40px
  }
  .puzzle {
    margin-left:60px;
    margin-right:60px
  }
  .puzzle-grid {
    gap:52px
  }
  .finale {
    margin-left:40px;
    margin-right:40px
  }
}
@media(max-width:950px) {
  .hero {
    gap:20px;
    min-height:430px
  }
  .hero h1 {
    font-size:3.625rem
  }
  .hero-copy {
    font-size:1.25rem
  }
  .eyebrow {
    font-size:1.25rem;
    letter-spacing:1.8px
  }
  .path-item {
    padding:18px 16px;
    gap:9px
  }
  .path-label {
    font-size:1.25rem
  }
  .puzzle {
    margin-left:38px;
    margin-right:38px
  }
  .puzzle-grid {
    gap:35px;
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)
  }
  .puzzle h1 {
    font-size:2.0625rem
  }
  .poem {
    font-size:1.25rem
  }
  .puzzle-art-panel {
    padding:28px 8px
  }
  .art-seal {
    right:-9px;
    width:65px;
    height:65px;
    font-size:1.25rem
  }
  .art-seal strong {
    font-size:1.5rem
  }
  .illustration-caption {
    font-size:1.25rem
  }
  .letter-row {
    gap:4px
  }
  .letter-input {
    font-size:1.25rem;
    height:41px
  }
  .letter-row.name-row {
    gap:8px
  }
  .name-row .letter-group {
    gap:3px
  }
  .name-row .letter-wrap {
    width:26px;
    flex-basis:26px
  }
  .letter-help {
    font-size:1.25rem
  }
}
@media(max-width:700px) {
  .site-header {
    height:88px;
    padding:0 25px
  }
  .brand {
    font-size:1.25rem;
    letter-spacing:1.65px;
    gap:8px
  }
  .brand-flower {
    font-size:2.25rem
  }
  .header-note {
    font-size:1.25rem;
    gap:5px
  }
  .header-note>span {
    font-size:1.25rem
  }
  #app {
    min-height:calc(100svh - 165px)
  }
  .home {
    margin:5px 25px 0;
    padding:14px 0 30px
  }
  .hero {
    display:flex;
    flex-direction:column;
    gap:0;
    text-align:center;
    min-height:0
  }
  .hero-content {
    display:contents
  }
  .hero .eyebrow {
    order:0;
    justify-content:center;
    margin-bottom:18px;
    font-size:1.25rem;
    letter-spacing:1.9px
  }
  .hero h1 {
    order:1;
    font-size:3.375rem;
    line-height:1.12;
    letter-spacing:-2px;
    margin-bottom:0
  }
  .hero-art {
    order:2;
    width:min(340px,92%);
    margin:11px auto 1px
  }
  .hero-art .scene {
    max-height:285px
  }
  .art-note {
    bottom:4px;
    right:-2px;
    font-size:1.25rem
  }
  .art-note span {
    font-size:1.625rem
  }
  .hero-copy {
    order:3;
    font-size:1.25rem;
    line-height:1.8;
    margin:16px 0 22px
  }
  .resume-actions {
    order:4;
    flex-direction:column;
    gap:3px;
    width:100%
  }
  .hero .primary-button {
    width:min(100%,310px);
    min-height:51px;
    font-size:1.25rem;
    gap:50px
  }
  .hero-facts {
    order:5;
    margin-top:18px;
    gap:22px;
    font-size:1.25rem
  }
  .hero-facts svg {
    height:14px;
    width:14px
  }
  .adventure-path {
    margin-top:30px;
    border-radius:10px
  }
  .path-item {
    flex-direction:column;
    padding:16px 5px 14px;
    gap:8px
  }
  .path-item+.path-item:before {
    height:37px;
    top:26px
  }
  .path-number {
    width:25px;
    height:25px;
    font-size:1.25rem
  }
  .path-label {
    font-size:1.25rem;
    letter-spacing:.1px
  }
  .home-small-note {
    font-size:1.25rem;
    margin-top:12px
  }
  .site-footer {
    margin:0 25px;
    padding:21px 0;
    font-size:1.25rem;
    gap:8px
  }
  .footer-center {
    font-size:1.25rem
  }
  .puzzle {
    margin:0 25px;
    padding-bottom:32px
  }
  .game-top {
    margin-bottom:20px
  }
  .puzzle-grid {
    display:flex;
    flex-direction:column;
    gap:24px
  }
  .puzzle-art-panel {
    width:100%;
    height:180px;
    border-radius:95px 95px 13px 13px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:visible
  }
  .puzzle-art-panel .scene {
    width:220px;
    height:180px;
    flex-shrink:0
  }
  .illustration-captions {
    position:absolute;
    right:18px;
    bottom:19px;
    max-width:92px;
    text-align:center
  }
  .illustration-caption {
    font-size:1.25rem;
    line-height:1.3;
    margin-bottom:5px
  }
  .illustration-subcaption {
    font-size:1.25rem;
    letter-spacing:1px
  }
  .puzzle-art-panel .scene {
    margin-right:55px
  }
  .art-seal {
    right:13px;
    top:16px;
    outline:5px solid var(--paper);
    height:53px;
    width:53px;
    font-size:1.25rem;
    line-height:1.35
  }
  .art-seal strong {
    font-size:1.3125rem
  }
  .puzzle-body {
    width:100%;
    max-width:470px
  }
  .puzzle-body .eyebrow {
    font-size:1.25rem;
    margin-bottom:9px
  }
  .puzzle h1 {
    font-size:2rem;
    margin-bottom:16px;
    letter-spacing:-.8px
  }
  .poem {
    font-size:1.25rem;
    line-height:1.85
  }
  .poem p {
    margin-bottom:13px
  }
  .answer-area {
    margin-top:20px;
    padding-top:19px
  }
  .letter-wrap {
    flex-basis:40px
  }
  .letter-input {
    height:44px;
    font-size:1.25rem
  }
  .letter-board {
    gap:7px
  }
  .letter-help {
    font-size:1.25rem
  }
  .answer-label {
    font-size:1.25rem;
    letter-spacing:1.1px
  }
  .name-row .letter-wrap {
    width:28px;
    flex-basis:28px
  }
  .name-row .letter-group {
    gap:4px
  }
  .letter-row.name-row {
    gap:10px
  }
  .input-hint {
    font-size:1.25rem;
    margin-top:8px
  }
  .feedback {
    margin:9px 0 8px;
    min-height:23px;
    font-size:1.25rem
  }
  .finale {
    margin:12px 25px 0;
    padding-bottom:34px
  }
  .finale h1 {
    font-size:2.5625rem
  }
  .finale .eyebrow {
    font-size:1.25rem;
    letter-spacing:2px
  }
  .finale-intro {
    font-size:1.25rem;
    margin-bottom:22px
  }
  .gift-ticket {
    grid-template-columns:1fr;
    text-align:center;
    margin-bottom:27px;
    border-radius:12px
  }
  .ticket-art {
    height:165px;
    border-right:0;
    border-bottom:1px dashed #186a92;
    padding:0;
    overflow:hidden
  }
  .ticket-art .scene {
    width:260px;
    margin-top:-17px
  }
  .gift-ticket:before,.gift-ticket:after {
    top:154px;
    bottom:auto;
    left:-11px;
    transform:none
  }
  .gift-ticket:after {
    left:auto;
    right:-11px
  }
  .ticket-copy {
    padding:23px 17px 26px
  }
  .ticket-kicker {
    font-size:1.25rem;
    letter-spacing:2px;
    margin-bottom:11px
  }
  .ticket-copy h2 {
    font-size:1.8125rem
  }
  .ticket-venue {
    font-size:1.25rem;
    margin-bottom:15px
  }
  .ticket-ship {
    align-self:center
  }
  .finale-poem {
    display:block;
    text-align:center;
    font-size:1.25rem;
    line-height:1.9
  }
  .finale-poem p {
    margin-bottom:18px
  }
  .finale-outro {
    font-size:1.25rem;
    line-height:1.9
  }
  .finale-quote {
    font-size:1.4375rem;
    max-width:310px;
    margin:22px auto
  }
  .finale-signoff {
    font-size:1.25rem;
    letter-spacing:1.8px
  }
  .curtain-label span {
    font-size:2.3125rem
  }
}
@media(max-width:365px) {
  .site-header {
    padding:0 18px
  }
  .home,.puzzle,.finale {
    margin-left:18px;
    margin-right:18px
  }
  .site-footer {
    margin-left:18px;
    margin-right:18px
  }
  .hero h1 {
    font-size:3.0625rem
  }
  .header-note {
    font-size:1.25rem
  }
  .poem {
    font-size:1.25rem
  }
  .puzzle h1 {
    font-size:1.8125rem
  }
  .name-row .letter-wrap {
    width:24px;
    flex-basis:24px
  }
  .letter-row.name-row {
    gap:8px
  }
  .name-row .letter-group {
    gap:3px
  }
  .letter-help {
    font-size:1.25rem
  }
  .puzzle-art-panel {
    height:155px
  }
  .puzzle-art-panel .scene {
    height:155px;
    width:190px
  }
  .illustration-captions {
    right:12px;
    bottom:15px
  }
  .site-footer {
    font-size:1.25rem
  }
  .answer-label {
    letter-spacing:.6px
  }
}
@media(max-width:700px) {
  .finale-poem>div+div {
    margin-top:18px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important
  }
  .curtain,.curtain-label {
    display:none
  }
  #confetti {
    display:none
  }
}
/* Comfortable reading sizes at every breakpoint. Allow wrapping instead of shrinking text. */
body  {
  font-size: 1.25rem;
}
.site-header  {
  height: auto;
  min-height: 120px;
  gap: 24px;
  padding-block: 24px;
}
.brand  {
  letter-spacing: 1px;
}
.header-note  {
  line-height: 1.5;
}
.header-note > span  {
  flex-shrink: 0;
}
.eyebrow, .hero .eyebrow, .puzzle-body .eyebrow, .finale .eyebrow  {
  font-size: 1.25rem;
  letter-spacing: .5px;
  text-transform: none;
  line-height: 1.5;
}
.eyebrow .tiny-star  {
  flex-shrink: 0;
}
.hero-copy, .poem, .finale-outro  {
  color: var(--ink);
}
.hero-copy  {
  font-size: 1.375rem;
}
.hero-facts  {
  flex-wrap: wrap;
  gap: 12px 24px;
}
.hero-facts svg  {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.hero-facts span  {
  gap: 10px;
}
.resume-actions  {
  flex-wrap: wrap;
}
.primary-button, .hero .primary-button, .answer-area .primary-button, .restart-button  {
  font-size: 1.25rem;
  min-height: 60px;
  line-height: 1.5;
  gap: 16px;
  padding: 14px 20px;
}
.primary-button > .arrow  {
  flex-shrink: 0;
}
.primary-button > span:first-child  {
  min-width: 0;
}
.text-button, .back-button, .hint-button  {
  min-height: 48px;
  font-size: 1.25rem;
}
.hint-button  {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.art-note  {
  font-size: 1.5rem;
}
.adventure-path  {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.path-item  {
  gap: 14px;
  padding: 22px;
}
.path-number  {
  width: 38px;
  height: 38px;
  color: #422057;
}
.path-label  {
  font-size: 1.25rem;
  line-height: 1.5;
}
.home-small-note  {
  margin-top: 24px;
}
.site-footer  {
  flex-wrap: wrap;
  font-size: 1.25rem;
  letter-spacing: 0;
  line-height: 1.6;
}
.puzzle  {
  max-width: 1200px;
}
.puzzle-grid  {
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 54px;
}
.puzzle-body  {
  min-width: 0;
  max-width: none;
}
.puzzle h1  {
  line-height: 1.3;
}
.poem, .finale-poem  {
  font-size: 1.375rem;
  line-height: 1.75;
}
.poem p  {
  margin-bottom: 24px;
}
.poem-line  {
  overflow-wrap: break-word;
}
.illustration-caption  {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #282044;
}
.tone-rose .illustration-caption  {
  color: #491137;
}
.tone-blue .illustration-caption  {
  color: #043b4a;
}
.tone-gold .illustration-caption  {
  color: #ffffff;
}
.art-seal  {
  width: 94px;
  height: 94px;
  font-size: 1.25rem;
  letter-spacing: 0;
  line-height: 1.3;
}
.art-seal strong  {
  font-size: 2rem;
}
.game-top  {
  flex-wrap: wrap;
}
.progress  {
  gap: 7px;
}
.progress-dot  {
  width: 10px;
  height: 10px;
}
.progress-label  {
  font-size: 1.25rem;
  letter-spacing: .4px;
  margin-left: 5px;
}
.answer-label  {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.375rem;
}
.letter-help  {
  font-size: 1.25rem;
  gap: 9px;
  line-height: 1.5;
}
.letter-help i  {
  width: 15px;
  height: 20px;
  flex-shrink: 0;
}
.letter-board  {
  gap: 10px;
}
.letter-row  {
  display: grid;
  grid-template-columns: repeat(var(--letter-columns), minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 580px;
}
.letter-wrap  {
  min-width: 0;
}
.letter-input  {
  height: 60px;
  font-size: 1.5rem;
  font-weight: 650;
  border-color: #8564b0;
}
.letter-row.name-row  {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.name-row .letter-group  {
  display: flex;
  gap: 6px;
  max-width: 100%;
}
.name-row .letter-wrap  {
  width: 48px;
  flex: 0 1 48px;
  min-width: 0;
}
.input-hint  {
  font-size: 1.25rem;
  margin-top: 14px;
}
.feedback  {
  font-size: 1.25rem;
  line-height: 1.6;
  min-height: 32px;
  margin: 14px 0;
}
.feedback.is-success  {
  color: #06482f;
}
.hint-text  {
  font-size: 1.25rem;
  line-height: 1.7;
  padding: 16px;
  color: var(--ink);
}
.finale-intro  {
  font-size: 1.375rem;
}
.finale-poem  {
  display: block;
  max-width: 640px;
  text-align: center;
}
.finale-poem > div + div  {
  margin-top: 24px;
}
.finale-signoff  {
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.6;
}
.finale-signoff:before, .finale-signoff:after  {
  flex: 0 1 35px;
}
.ticket-kicker  {
  font-size: 1.25rem;
  letter-spacing: .5px;
  line-height: 1.5;
}
.ticket-venue  {
  font-size: 1.5rem;
}
.ticket-ship  {
  font-size: 1.25rem;
  padding: 9px 14px;
  gap: 10px;
}
.ticket-ship svg  {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.finale-outro  {
  font-size: 1.375rem;
  line-height: 1.75;
}
.finale-quote  {
  font-size: 1.75rem;
  max-width: 680px;
}
.curtain-label  {
  padding: 20px;
}
.curtain-label small  {
  font-size: 1.25rem;
  letter-spacing: .5px;
  text-transform: none;
}
@media (max-width: 1100px)  {
  .puzzle  {
    margin: 10px auto 0;
    padding: 0 24px 40px;
    max-width: 720px;
  }
  .puzzle-grid  {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .puzzle-art-panel  {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 20px 30px;
    border-radius: 90px 90px 16px 16px;
  }
  .puzzle-art-panel .scene  {
    width: 200px;
    height: 190px;
    margin: 0;
    flex-shrink: 0;
  }
  .illustration-captions  {
    position: static;
    max-width: 240px;
    text-align: center;
  }
  .art-seal  {
    right: 12px;
    top: 12px;
    width: 84px;
    height: 84px;
  }
  .puzzle-body  {
    width: 100%;
    max-width: none;
  }
  .adventure-path  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finale-poem  {
    font-size: 1.375rem;
  }
}
@media (max-width: 700px)  {
  .site-header  {
    padding: 24px;
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .brand  {
    font-size: 1.25rem;
  }
  .header-note  {
    font-size: 1.25rem;
    text-align: center;
  }
  .hero .eyebrow  {
    max-width: 330px;
  }
  .hero-copy  {
    font-size: 1.375rem;
    margin-top: 24px;
  }
  .hero-facts  {
    justify-content: center;
    font-size: 1.25rem;
    gap: 12px 20px;
  }
  .hero .primary-button  {
    max-width: 100%;
  }
  .adventure-path  {
    grid-template-columns: 1fr;
  }
  .path-item  {
    flex-direction: row;
    text-align: left;
    padding: 18px 22px;
  }
  .path-item + .path-item:before  {
    top: 0;
    left: 22px;
    right: 22px;
    height: 1px;
    width: auto;
  }
  .site-footer  {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .puzzle  {
    margin-inline: 0;
    padding-inline: 24px;
  }
  .puzzle-art-panel  {
    flex-direction: column;
    gap: 0;
    padding: 10px 18px 18px;
  }
  .puzzle-art-panel .scene  {
    width: 210px;
    height: 175px;
  }
  .illustration-captions  {
    max-width: 100%;
  }
  .illustration-caption  {
    margin-bottom: 0;
  }
  .poem, .finale-poem  {
    font-size: 1.375rem;
    line-height: 1.75;
  }
  .letter-row:not(.name-row)  {
    grid-template-columns: repeat(var(--letter-columns), minmax(0, 1fr));
    max-width: 400px;
    gap: clamp(2px, .8vw, 6px);
  }
  .name-row .letter-group  {
    gap: 6px;
  }
  .name-row .letter-wrap  {
    width: 48px;
    flex-basis: 48px;
  }
  .gift-ticket  {
    grid-template-columns: 1fr;
  }
  .ticket-copy  {
    padding: 24px 18px;
  }
  .ticket-venue  {
    font-size: 1.5rem;
  }
  .ticket-ship  {
    align-self: center;
  }
  .finale-poem  {
    text-align: center;
  }
  .finale-quote  {
    font-size: 1.75rem;
    max-width: 100%;
  }
}
@media (max-width: 365px)  {
  .site-header  {
    padding-inline: 18px;
  }
  .puzzle  {
    padding-inline: 18px;
  }
  .home, .finale, .site-footer  {
    margin-inline: 18px;
  }
  .puzzle-art-panel .scene  {
    width: 180px;
    height: 150px;
  }
  .art-seal  {
    width: 74px;
    height: 74px;
  }
  .art-seal strong  {
    font-size: 1.75rem;
  }
  .name-row .letter-wrap  {
    width: 40px;
    flex-basis: 40px;
  }
  .name-row .letter-group  {
    gap: 4px;
  }
  .letter-input  {
    height: 58px;
  }
}


/* A joyful, saturated palette with dark reading text and white button labels. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 6px;
  z-index: 50;
  pointer-events: none;
  background: linear-gradient(90deg, #f82791 0% 20%, #ffc928 20% 40%, #00c9b0 40% 60%, #9252f5 60% 80%, #ff7a24 80% 100%);
}
.page-grain { opacity: .008; }
.hero h1 em::after { border-color: #ffbd00; opacity: 1; }
.primary-button { color: #ffffff; box-shadow: 0 5px 0 #8d0b48; }
.primary-button:hover { box-shadow: 0 7px 0 #8d0b48; }
.primary-button:active { box-shadow: 0 2px 0 #8d0b48; }
.hero-art .scene { filter: drop-shadow(0 14px 18px #6d24ba12); }
.adventure-path { background: #ffffff; border-color: #bba5df; }
.path-number { border: 0; color: #282044; background: #ffc928; }
.path-item:nth-child(2) .path-number { background: #ff58a6; color: #491137; }
.path-item:nth-child(3) .path-number { background: #19d5b2; color: #064b3c; }
.path-item:last-child .path-number { background: #7941db; color: #ffffff; }
.puzzle-art-panel { box-shadow: 0 7px 0 #6433d514; }
.letter-input.given { color: #493700; }
.letter-input.correct { color: #06482f; }
.art-seal { background: #ffffff; outline-color: #ffffff; }
.ticket-copy h2 { color: #9c084b; }
.ticket-ship { color: #282044; }
.restart-button { border-color: #7941db; color: #51209c; }

/* The welcome screen has one clear action and no secondary copy or navigation. */
body[data-screen="home"] > .site-header,
body[data-screen="home"] > .site-footer {
  display: none;
}
body[data-screen="home"] #app {
  min-height: 100svh;
}
.home.home-simple {
  display: grid;
  place-items: center;
  max-width: 800px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 40px 24px;
}
.home-simple .hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  gap: 24px;
  text-align: center;
}
.home-simple .hero h1 {
  order: 0;
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -1.5px;
}
.home-simple .hero-art {
  order: 1;
  width: min(360px, 100%);
  margin: 0;
  align-self: center;
}
.home-simple .hero-art .scene {
  width: 100%;
  max-height: none;
}
.home-simple .senders-portrait {
  width: min(330px, 100%);
}
.portrait-photo {
  position: relative;
  isolation: isolate;
  width: min(290px, 100%);
  margin: 0 auto;
}
.portrait-photo::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 46% 46% 22% 22%;
  background: #ffce32;
  transform: rotate(5deg);
}
.portrait-photo > img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #ffffff;
  border-radius: 46% 46% 22% 22%;
  box-shadow: 0 8px 18px #51209c22;
}
.portrait-present {
  position: absolute;
  right: -18px;
  bottom: -32px;
  width: 132px;
  pointer-events: none;
}
.senders-portrait figcaption {
  margin-top: 36px;
  color: #9c084b;
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.35px;
}
.sender-heart {
  color: #ed2788;
  font-size: 1.5rem;
}
@media (max-width: 365px), (max-height: 740px) {
  .portrait-photo { width: min(210px, 100%); }
  .portrait-present { width: 108px; right: -16px; bottom: -24px; }
}
.home-simple .primary-button {
  order: 2;
  width: min(320px, 100%);
  min-height: 64px;
  gap: 24px;
}
@media (max-width: 700px) {
  .home.home-simple { padding: 28px 24px; }
  .home-simple .hero { gap: 22px; }
  .home-simple .hero-art { width: min(300px, 100%); }
}
@media (max-width: 365px) {
  .home.home-simple { padding-inline: 20px; }
  .home-simple .hero h1 { font-size: 2.875rem; }
}

/* Keep the guided game focused on the poem and its answer. */
#app { min-height: 100svh; }
.puzzle { margin-top: 0; padding-top: 32px; }
.puzzle > h1 { margin-bottom: 28px; text-align: center; }
.puzzle-art-panel { padding-block: 16px; }
.feedback:empty { display: none; }
.answer-area .primary-button { margin-top: 18px; }
.primary-button.is-counting-down {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: default;
  background: #c51663;
  transform: none;
}
.primary-button.is-counting-down::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #51209c;
  transform: scaleX(var(--continue-progress, 0));
  transform-origin: left center;
}
.countdown-seconds { font-variant-numeric: tabular-nums; }
.finale { margin-top: 0; padding-top: 32px; }
.finale > h1 { margin-bottom: 32px; }
@media (max-width: 1100px) {
  .puzzle { padding-top: 28px; }
  .puzzle-art-panel { padding: 0 18px; }
  .puzzle-art-panel .scene { height: 170px; }
}
@media (max-width: 700px) {
  .puzzle-grid { gap: 24px; }
  .puzzle-art-panel .scene { height: 145px; }
}

/* A colorful party backdrop surrounds a quiet, warm reading surface. */
body {
  isolation: isolate;
  background: #ffcf32;
}
.party-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 0%, #ff529b 0% 24%, transparent 24.2%),
    radial-gradient(ellipse at 100% 100%, #12cdb8 0% 29%, transparent 29.2%),
    radial-gradient(ellipse at 100% 0%, #8c46e3 0% 20%, transparent 20.2%),
    linear-gradient(135deg, #ffdc3d, #ffb52b);
}
.party-background::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .65;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23fff8de' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='260' cy='62' r='9'/%3E%3Cpath d='M191 257q12-18 23 0t23 0M65 174l8 10M244 163l-7 8'/%3E%3C/g%3E%3Cpath d='m42 28 4 11 12 4-12 4-4 12-4-12-12-4 12-4Z' fill='%23fff8de'/%3E%3Cpath d='m104 108 6-3 8 17-6 3Z' fill='%237941db'/%3E%3Cpath d='m84 263 13-19 8 23Z' fill='%2300a99e'/%3E%3Ccircle cx='27' cy='243' r='5' fill='%23ed2788'/%3E%3Ccircle cx='192' cy='28' r='3' fill='%23fff8de'/%3E%3Cpath d='m279 284 8 11-5 4-8-11Z' fill='%23fff8de'/%3E%3C/svg%3E");
  background-size: 320px 320px;
}
#app { display: flow-root; }
.home-simple .hero,
.puzzle,
.finale {
  background: rgb(255 248 231 / 90%);
  border: 1px solid #ffffff;
  border-radius: 32px;
  box-shadow: 0 12px 0 #6b227418, 0 22px 65px #71326826;
}
.home-simple .hero {
  max-width: 560px;
  margin: auto;
  padding: 32px;
}
.puzzle,
.finale {
  width: calc(100% - 40px);
  margin: 24px auto;
  padding: 32px 32px 40px;
}
@media (max-width: 700px) {
  .home.home-simple { padding: 20px 12px; }
  .home-simple .hero { padding: 24px 16px; border-radius: 28px; }
  .puzzle,
  .finale {
    width: calc(100% - 16px);
    margin: 16px auto;
    padding: 24px 8px 32px;
    border-radius: 24px;
  }
}
