/* The game and both outcomes sit directly on the campaign's star field. */
.journey {
  width: min(100%, 34rem);
  min-width: 0;
  margin-inline: auto;
  color: var(--cream);
  font-family: Poppins, sans-serif;
}
.journey h2, .journey h3, .journey p { margin: 0; }
.journey h2 { color: inherit; text-wrap: balance; }
.journey [tabindex="-1"]:focus { outline: none; }
.journey .route-back {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 40px;
  margin: 0 0 .55rem;
  padding: .15rem .05rem;
  border: 0;
  color: var(--cream);
  background: transparent;
  font: 600 .84rem/1.4 Poppins, sans-serif;
}
.route-back::before {
  content: '';
  width: .49em;
  height: .49em;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(45deg);
}
.journey .journey-primary {
  display: block;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 99rem;
  padding: .68rem 1.35rem;
  color: var(--navy);
  background: var(--pink);
  font: 700 1rem/1.45 Poppins, sans-serif;
  cursor: pointer;
}
.journey .journey-primary:hover { background: #ffd5ed; }
.journey button:disabled { opacity: .65; cursor: wait; }
.journey :focus-visible { outline: 3px solid #fcd900; outline-offset: 3px; }
.entry-paper :focus-visible, .result-note :focus-visible { outline-color: #77527b; }

.entry-paper {
  padding: clamp(1.25rem, 3.4vw, 2.4rem);
  border-radius: 1.25rem;
  color: var(--navy);
  background: var(--cream);
  color-scheme: light;
}
.entry-paper h2 {
  font: 700 clamp(1.7rem, 2.8vw, 2.35rem)/1.15 Poppins, sans-serif;
  letter-spacing: -.05em;
}
.entry-paper .entry-intro { margin-top: .45rem; font-size: .96rem; line-height: 1.5; }
.entry-paper form { margin: 1.15rem 0 0; }
.entry-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.entry-fields .entry-email { grid-column: 1/-1; }
.entry-fields label { position: relative; }
.entry-fields .field-caption {
  position: absolute;
  left: .95rem;
  top: .3rem;
  color: #444d61;
  font: 600 .72rem/1.25 Poppins, sans-serif;
  pointer-events: none;
}
.entry-fields input {
  width: 100%;
  min-width: 0;
  min-height: 53px;
  display: block;
  margin: 0;
  padding: 1.18rem .9rem .3rem;
  border: 1px solid #777c88;
  border-radius: .95rem;
  color: var(--navy);
  background: #fffef7;
  font: 400 1rem/1.35 Poppins, sans-serif;
}
.entry-fields input:placeholder-shown:not(:focus) + .field-caption {
  top: 50%;
  transform: translateY(-50%);
  color: #444d61;
  font-size: .96rem;
  font-weight: 400;
}
.entry-consents { display: grid; gap: .65rem; border-top: 1px solid #141d3b26; margin: 1.08rem 0; padding-top: .85rem; }
.entry-consents label {
  display: grid;
  grid-template-columns: 1.1rem minmax(0,1fr);
  align-items: start;
  gap: .55rem;
  font: 400 .855rem/1.5 Poppins, sans-serif;
  cursor: pointer;
}
.entry-consents input { width: 1.1rem; height: 1.1rem; margin: .12em 0 0; accent-color: var(--navy); }
.entry-consents a { color: inherit; text-underline-offset: .16em; }
.entry-paper .journey-primary { width: 100%; }
#recover .journey-primary { margin-top: 1rem; }
.entry-paper .entry-recover {
  display: block;
  min-height: 38px;
  margin: .4rem auto -.35rem;
  padding: .3rem .5rem;
  border: 0;
  color: var(--navy);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .2em;
  font: 600 .83rem/1.4 Poppins, sans-serif;
}
.entry-paper .entry-response { margin-top: 1rem; padding: .8rem 1rem; border-left: 3px solid #a55a8c; background: #f6eee8; }

.scratch-play { text-align: center; }
.scratch-play .route-back { display: flex; width: fit-content; }
.journey .journey-date {
  font: 600 .78rem/1.5 Poppins, sans-serif;
  color: var(--pink);
  letter-spacing: .085em;
  text-transform: uppercase;
}
.scratch-heading h2 {
  margin: .05rem 0 1.2rem;
  font: 700 clamp(2.1rem, 4vw, 3.5rem)/1.12 Poppins, sans-serif;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.scratch-frame {
  position: relative;
  width: min(100%, 21.6rem);
  aspect-ratio: 1389 / 1432;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  border-radius: 3.5%;
  background: var(--navy);
  box-shadow: 0 .85rem 2.25rem #0a102b48;
}
#scratch-image, #scratch-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#scratch-layer { z-index: 1; border: 2px solid var(--pink); border-radius: inherit; touch-action: none; cursor: grab; transition: opacity .3s; }
.scratch-frame.scratching #scratch-layer { cursor: grabbing; }
.scratch-pearl {
  position: absolute;
  z-index: 2;
  left: var(--pearl-x, 78%);
  top: var(--pearl-y, 73%);
  width: clamp(2.7rem, 16%, 3.6rem);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border: 1px solid #fff1fb;
  border-radius: 50%;
  background: radial-gradient(circle at 29% 23%, #fffafa 0%, #ffe8f6 10%, #fbbde5 35%, #ec99ca 60%, #b86fa0 83%, #925d8d 100%);
  box-shadow: inset -.18rem -.27rem .48rem #6b3a7b38, inset .1rem .12rem .2rem #fff8fc88, .11rem .32rem .45rem #27214459;
}
.scratch-frame.done #scratch-layer, .scratch-frame.done .scratch-pearl { opacity: 0; pointer-events: none; }
.scratch-play .scratch-help { margin: .9rem auto .4rem; font-size: .9rem; line-height: 1.5; }
.scratch-play .scratch-alternative, .result-screen .result-back {
  min-height: 40px;
  padding: .35rem .8rem;
  border: 0;
  border-radius: .4rem;
  color: var(--cream);
  background: transparent;
  font: 600 .84rem/1.45 Poppins, sans-serif;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.scratch-play .journey-primary { margin: .6rem auto 0; width: min(100%, 17.5rem); }
.scratch-play .scratch-draw { margin: 1.35rem auto 0; color: var(--cream); font-size: .82rem; line-height: 1.45; }
.scratch-draw strong { font-weight: 600; }

.result-screen { width: min(100%, 29rem); text-align: center; }
.result-screen > .journey-date { margin-bottom: .65rem; }
.result-box { position: relative; }
.result-box #result-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#result-image { display: block; width: min(100%, 23rem); height: auto; margin-inline: auto; }
.result-description {
  margin: .8rem 0 0;
  padding: .85rem clamp(.6rem, 3vw, 1.4rem);
  color: var(--cream);
  text-align: center;
}
.result-description:has(#result-copy:empty) { display: none; }
.result-box #result-copy {
  font: 600 clamp(.95rem,1.65vw,1.12rem)/1.5 Poppins, sans-serif;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.result-box .prize-join { display: block; color: var(--pink); margin: .17rem 0; font: 600 1.03em/1.35 Poppins, sans-serif; }
.result-note {
  margin-top: .85rem;
  padding: 1rem clamp(1rem, 3vw, 1.42rem);
  border-radius: .85rem;
  background: var(--cream);
  color: var(--navy);
  text-align: left;
}
.result-note h3 {
  display: inline-block;
  border-radius: .31rem;
  padding: .21rem .55rem;
  background: var(--pink);
  font: 700 .77rem/1.32 Poppins, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.result-note p { margin-top: .6rem; font: 400 .94rem/1.58 Poppins, sans-serif; white-space: pre-line; overflow-wrap: anywhere; }
.festival-link {
  display: inline-block;
  margin-top: .5rem;
  padding-block: .12rem;
  color: var(--navy);
  font: 600 .85rem/1.5 Poppins,sans-serif;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.offer-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-top: .75rem; }
.offer-coupon .promo-code {
  padding: .3rem .65rem; border: 1px dashed #727180; border-radius: .35rem;
  font: 700 1.06rem/1.4 Poppins,sans-serif; overflow-wrap: anywhere;
}
.copy-promo {
  display: inline-block; min-height: 35px; border: 0; padding: .2rem 0; color: var(--navy);
  background: transparent; font: 600 .84rem/1.4 Poppins,sans-serif; text-decoration: underline; text-underline-offset: .2em;
}
.copy-feedback { font-size: .82rem; }
.result-screen .result-back { margin-top: .65rem; }
@media (max-width:600px) {
  .journey .route-back { margin-bottom: .25rem; }
  .entry-fields { grid-template-columns: minmax(0,1fr); gap: .5rem; }
  .scratch-frame { width: min(100%, 18.5rem); }
  .scratch-heading h2 { margin-bottom: .8rem; }
  .scratch-play .scratch-draw { margin-top: 1.1rem; }
}
@media (max-width:360px) {
  .entry-paper { padding: 1rem; }
  .entry-fields { gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scratch-frame #scratch-layer { transition: none; }
}
