:root {
  color-scheme: light;
  --paper: #fff3df;
  --ticket: #fffaf0;
  --ink: #292039;
  --muted: #574860;
  --violet: #4b2db2;
  --violet-dark: #392081;
  --lavender: #d8c8ff;
  --line: #aa96ad;
  --peach: #ff9a79;
  --citron: #e6ed96;
  --sage: #d9e7b6;
  --powder: #ccdfff;
  --petal: #ffced2;
  --fog: #e5dcf6;
  --dot: #271a4a20;
  --display: "Dela Gothic One", Manrope, system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --motion: 220ms cubic-bezier(.2, .75, .25, 1);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, textarea { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:where(button, a, summary, textarea):focus-visible {
  position: relative;
  z-index: 4;
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}
:where(h2)[tabindex="-1"]:focus { outline: none; }
p, h1, h2, h3, figure { margin: 0; }
.edition { max-width: 94rem; margin-inline: auto; padding: 0 clamp(1.25rem, 4vw, 4rem) 2.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.masthead {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  padding-block: .6rem;
  border-bottom: 1px solid var(--ink);
}
.brand {
  color: var(--violet-dark);
  font: 400 1rem/1.2 var(--display);
  text-decoration: none;
}

.cover {
  display: grid;
  grid-template-areas: "copy art" "actions art";
  grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 1rem;
  align-items: center;
  padding-block: clamp(2rem, 6.5vh, 4rem);
}
.cover-copy { grid-area: copy; align-self: end; min-width: 0; z-index: 2; }
#intro-title {
  color: var(--ink);
  font: 400 clamp(2.1rem, 6.1vw, 6.2rem)/1.01 var(--display);
  letter-spacing: -.038em;
  white-space: nowrap;
}
#intro-title span { position: relative; z-index: 0; color: var(--violet); }
#intro-title span::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -1% .03em 1%;
  height: .14em;
  background: var(--peach);
  clip-path: polygon(0 41%, 98% 0, 100% 52%, 2% 100%);
}
.cover-copy p {
  max-width: 33ch;
  margin-top: clamp(1rem, 2.7vw, 2rem);
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  font-weight: 700;
  line-height: 1.46;
}
.cover-actions {
  grid-area: actions;
  z-index: 2;
  align-self: start;
  display: grid;
  justify-items: start;
  gap: .85rem;
  margin-top: clamp(1rem, 2.7vw, 2rem);
  padding-bottom: clamp(.5rem, 3vh, 1.75rem);
}
.start-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.duration { color: var(--muted); font: 500 .875rem/1.35 var(--mono); }
.cover-prize {
  padding: .7rem .85rem;
  max-width: 32rem;
  background: var(--lavender);
  border: 1px solid var(--ink);
  border-radius: .4rem;
}
.prize-heading { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 800; }
.prize-copy { margin-top: .3rem; line-height: 1.45; }
.cover-steps { width: 100%; max-width: 32rem; }
.cover-steps summary, .stay-plan summary {
  min-height: 2.75rem;
  padding-block: .65rem;
  cursor: pointer;
  color: var(--violet-dark);
  font-size: .95rem;
  font-weight: 800;
}
.cover-steps ol { margin: .2rem 0 0; padding-left: 1.2rem; max-width: 43ch; line-height: 1.55; }

.cover-art {
  grid-area: art;
  isolation: isolate;
  position: relative;
  min-width: 0;
  height: clamp(22rem, 40vw, 34rem);
  margin-right: .4rem;
}
.cover-field {
  position: absolute;
  inset: 9% 1% 8% 2%;
  rotate: -8deg;
  background-color: var(--lavender);
  background-image: radial-gradient(var(--dot) .65px, transparent .85px);
  background-size: 5px 5px;
  clip-path: polygon(2% 6%, 91% 0, 100% 11%, 97% 97%, 6% 100%, 0 86%);
}
.cover-field::after {
  content: "";
  position: absolute;
  inset: 21% 15% 23% 13%;
  border: 1px dashed var(--violet-dark);
  border-radius: 48%;
  transform: rotate(25deg);
  opacity: .67;
}
.cover-art img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(.2rem .35rem 0 #29203931);
}
.cover-suitcase {
  z-index: 1;
  left: 18%;
  top: 0;
  width: 64%;
  height: 94%;
  rotate: -9deg;
}
.cover-pastry {
  z-index: 2;
  left: 0;
  bottom: 1%;
  width: 36%;
  height: 35%;
  rotate: 11deg;
}
.cover-blanket {
  z-index: 0;
  right: -1%;
  top: 1%;
  width: 34%;
  height: 34%;
  rotate: 12deg;
}
.baggage-tag {
  position: absolute;
  right: -1%;
  bottom: 7%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem .75rem .7rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: .75rem .18rem .18rem .75rem;
  color: var(--ink);
  background: var(--citron);
  box-shadow: .14rem .16rem var(--ink);
  font: 600 clamp(.7rem, 1.16vw, 1rem)/1.35 var(--mono);
  rotate: -9deg;
}
.baggage-tag::before {
  content: "";
  position: absolute;
  top: calc(50% - .19rem);
  left: .45rem;
  width: .38rem;
  height: .38rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.tag-arrow { color: var(--muted); }
.baggage-tag strong { font-weight: 600; }

.button {
  min-height: 2.875rem;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .55rem .95rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  color: var(--ink);
  background: transparent;
  font-weight: 850;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--motion), transform var(--motion), box-shadow var(--motion);
}
.button-main {
  color: var(--ticket);
  background: var(--violet);
  border-color: var(--violet-dark);
  box-shadow: .14rem .175rem var(--ink);
}
.button:active:not(:disabled) { transform: translate(.09rem, .12rem); box-shadow: 0 0 transparent; }
.button-main:disabled { color: var(--muted); background: transparent; border-color: var(--line); box-shadow: none; }
.button-link { padding-inline: .4rem; color: var(--violet-dark); text-decoration: underline; text-underline-offset: .18em; }
.button-link:disabled { color: var(--muted); text-decoration: none; opacity: .68; }
.cover-actions .button { min-height: 3.6rem; padding-inline: 1.25rem; }
.button span { font-size: 1.2rem; }
@media (hover: hover) and (pointer: fine) {
  .button-main:hover:not(:disabled) { background: var(--violet-dark); }
  .button-link:hover:not(:disabled) { background: var(--fog); }
  .choice:hover { background: var(--fog); }
}

.inspection {
  display: grid;
  grid-template-areas: "heading heading" "specimen controls";
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3.75vw, 3rem);
  max-width: 70rem;
  margin: clamp(1rem, 3.75vh, 2.75rem) auto 0;
}
.item-info { grid-area: heading; min-width: 0; }
.progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  max-width: 38rem;
  padding-bottom: .45rem;
  border-bottom: 1px dashed var(--line);
}
.item-number {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  color: var(--violet-dark);
  font: 600 1.05rem/1.35 var(--mono);
}
.item-number span:last-child { color: var(--muted); font-size: .8em; }
.progress-track { width: min(9rem, 40%); display: flex; gap: .3rem; }
.progress-track i { height: .34rem; flex: 1; background: var(--fog); border-radius: 1rem; }
.progress-track .progress-done { background: var(--lavender); }
.progress-track .progress-current { background: var(--violet); }
#item-title {
  margin: .6rem 0 .4rem;
  color: var(--ink);
  font-size: clamp(1.75rem, 4.25vw, 4rem);
  font-weight: 800;
  letter-spacing: -.032em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}
.item-description {
  max-width: 53ch;
  color: var(--muted);
  font-size: clamp(.98rem, 1.45vw, 1.18rem);
  line-height: 1.42;
}
.specimen {
  --field: var(--lavender);
  position: relative;
  min-width: 0;
  min-height: clamp(18rem, 31vw, 25rem);
  grid-area: specimen;
  isolation: isolate;
}
.specimen[data-item="call"] { --field: var(--citron); }
.specimen[data-item="laundry"] { --field: var(--sage); }
.specimen[data-item="chat"] { --field: var(--lavender); }
.specimen[data-item="croissant"] { --field: var(--petal); }
.specimen[data-item="blanket"] { --field: var(--powder); }
.specimen::before {
  content: "";
  position: absolute;
  inset: 2% 3% 3% 2%;
  rotate: -3deg;
  clip-path: polygon(1% 7%, 100% 0, 98% 89%, 89% 100%, 0 97%);
  background-color: var(--field);
  background-image: radial-gradient(var(--dot) .65px, transparent .85px);
  background-size: 5px 5px;
}
.scan-subject {
  position: absolute;
  inset: 6% 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--motion);
}
.scan-subject img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(.16rem .3rem 0 #29203931); }
.specimen[data-decision="take"] .scan-subject { transform: translateX(6%) rotate(5deg); }
.specimen[data-decision="defer"] .scan-subject { transform: translateX(-6%) rotate(-5deg); }
.stamp {
  position: absolute;
  bottom: 7%;
  right: 3%;
  padding: .45rem .7rem;
  border: 1px solid var(--ink);
  border-radius: .2rem;
  background: var(--citron);
  box-shadow: .13rem .16rem var(--ink);
  rotate: -7deg;
  white-space: nowrap;
  font: 600 clamp(.74rem, 1.35vw, 1.05rem)/1.35 var(--mono);
  text-transform: uppercase;
}
.specimen[data-decision="defer"] .stamp { right: auto; left: 5%; background: var(--petal); rotate: 5deg; }
.inspection-actions { grid-area: controls; min-width: 0; }
.decision {
  min-height: 5.5rem;
  margin-bottom: .8rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: .42rem .42rem .42rem 0;
  background: var(--ticket);
  color: var(--ink);
  font-size: 1.025rem;
  line-height: 1.36;
  font-weight: 750;
}
.inspection:has(#take[aria-pressed="true"]) .decision { background: var(--citron); border-color: var(--ink); }
.inspection:has(#defer[aria-pressed="true"]) .decision { background: var(--petal); border-color: var(--ink); }
.choices, .step-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.choice {
  border: 1px solid var(--ink);
  padding-inline: .375rem;
  background: var(--ticket);
  box-shadow: .12rem .13rem var(--ink);
  white-space: nowrap;
}
.choice[aria-pressed="true"] { background: var(--citron); }
#defer[aria-pressed="true"] { background: var(--petal); }
.step-actions {
  grid-template-columns: auto minmax(0, max-content);
  justify-content: space-between;
  align-items: center;
  margin-top: .75rem;
}

.result {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(1.35rem, 4.5vw, 4.6rem);
  max-width: 76rem;
  margin: clamp(1.25rem, 7vh, 4.5rem) auto 0;
}
.result-intro { min-width: 0; }
#result-title {
  color: var(--violet);
  font: 400 clamp(2rem, 4.65vw, 4.4rem)/1.09 var(--display);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
#result-note { margin-top: 1rem; max-width: 35ch; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.result-share {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem 1.5rem;
  border-top: 1px dashed var(--line);
  padding-top: clamp(1rem, 2.7vw, 1.8rem);
}
.result-share > p:first-child { max-width: 39ch; color: var(--muted); line-height: 1.48; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .75rem; }
.share-status:empty { position: absolute; }
.share-status, .share-fallback { grid-column: 1 / -1; font-size: .9rem; }
.share-fallback textarea { display: block; margin-top: .4rem; width: 100%; padding: .5rem; border: 1px solid var(--ink); background: var(--ticket); color: var(--ink); resize: vertical; }

.ticket {
  position: relative;
  min-width: 0;
  background: var(--ticket);
  border: 1px solid var(--ink);
  border-radius: .55rem;
  box-shadow: .35rem .4rem var(--lavender);
  animation: ticket-arrival 240ms cubic-bezier(.2, .75, .25, 1) both;
}
@keyframes ticket-arrival {
  from { opacity: .4; transform: translateY(9px) rotate(1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.ticket-top, .ticket-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem clamp(.8rem, 3vw, 2.25rem);
  font: 600 .875rem/1.35 var(--mono);
}
.ticket-top {
  background: var(--lavender);
  border-radius: .5rem .5rem 0 0;
  border-bottom: 1px solid var(--ink);
  text-transform: uppercase;
}
.ticket-body { padding: clamp(1rem, 3.4vw, 2.4rem) clamp(.8rem, 3vw, 2.25rem) 1.25rem; }
.ticket-destination {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .325em;
  font: 400 clamp(1.35rem, 2.8vw, 2.6rem)/1.2 var(--display);
  letter-spacing: -.025em;
}
.ticket-destination strong { font-weight: 400; color: var(--violet); }
.ticket-message { margin: .8rem 0 1.2rem; max-width: 38ch; font-size: clamp(1rem, 1.55vw, 1.35rem); font-weight: 800; line-height: 1.4; }
.ticket-lists { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.ticket h3 { margin-bottom: .5rem; font: 600 .84rem/1.3 var(--mono); color: var(--muted); }
.ticket ul { margin: 0; padding: 0; list-style: none; }
.ticket li { font-size: 1rem; font-weight: 650; line-height: 1.4; }
.ticket li + li { margin-top: .25rem; }
.ticket-end { position: relative; border-top: 1px dashed var(--line); color: var(--violet-dark); }
.ticket-end::before, .ticket-end::after {
  content: "";
  position: absolute;
  top: -.5rem;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.ticket-end::before { left: -.5rem; clip-path: inset(0 0 0 48%); }
.ticket-end::after { right: -.5rem; clip-path: inset(0 48% 0 0); }
.barcode { width: 33%; height: 1.15rem; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 7px, var(--ink) 7px 10px, transparent 10px 12px); }

.result-promotions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.8rem, 3vw, 2.25rem);
}
.promo-card {
  min-width: 0;
  padding: clamp(1rem, 2.7vw, 2rem);
  border: 1px solid var(--ink);
  border-radius: .5rem;
  background: var(--ticket);
}
.stay-card { padding: 0; }
.stay-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: .45rem .45rem 0 0;
  border-bottom: 1px solid var(--ink);
  background: var(--fog);
}
.stay-card-content { padding: clamp(1rem, 2.7vw, 2rem); }
.prize-card { background: var(--lavender); }
.promo-caption { color: var(--violet-dark); font: 600 .81rem/1.4 var(--mono); }
.promo-card h3 { margin-top: .5rem; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.17; }
.promo-copy { margin-top: .55rem; max-width: 44ch; color: var(--muted); line-height: 1.48; }
.stay-plan { margin-top: .55rem; border-top: 1px dashed var(--line); }
.stay-days { display: grid; gap: .6rem; margin: .2rem 0 0; line-height: 1.44; }
.stay-days dt { font-weight: 800; }
.stay-days dd { margin: .18rem 0 0; color: var(--muted); }
.prize-includes { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.prize-includes li {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  padding-block: .72rem;
  border-top: 1px dashed var(--line);
  line-height: 1.4;
}
.prize-includes li:last-child { border-bottom: 1px dashed var(--line); }
.prize-includes li::before {
  content: "";
  width: .43rem;
  height: .43rem;
  flex: 0 0 .43rem;
  border-radius: 50%;
  background: var(--violet);
}
.prize-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin-top: 1.2rem;
}
.promo-status:empty { position: absolute; }
.promo-status { color: var(--violet-dark); font-weight: 800; }

@media (max-width: 790px) {
  .edition { padding-inline: .95rem; }
  .masthead { min-height: 3.2rem; }
  .brand { font-size: .92rem; }
  .cover { grid-template-areas: "copy" "art" "actions"; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: .6rem; padding-block: .9rem 0; }
  #intro-title { font-size: clamp(2.14rem, 8.9vw, 4.25rem); }
  .cover-copy p { margin-top: .6rem; font-size: .98rem; }
  .cover-art { height: clamp(10.2rem, 53vw, 17.5rem); margin-inline: .5rem; }
  .cover-field { inset: 10% 12% 9% 11%; }
  .cover-pastry { left: 5%; bottom: 0; }
  .cover-blanket { right: 4%; top: 1%; }
  .baggage-tag { right: 6%; bottom: 9%; }
  .cover-actions { margin-top: 0; padding-bottom: 0; gap: .6rem; }
  .start-actions { gap: .55rem .65rem; }
  .cover-prize { padding: .55rem .7rem; }
  .prize-copy { font-size: .9rem; }
  .cover-actions .button { min-height: 2.95rem; }
  .duration { font-size: .78rem; }
  .inspection { grid-template-areas: "heading" "specimen" "controls"; grid-template-columns: minmax(0, 1fr); gap: .55rem; margin-top: .65rem; }
  .progress { padding-bottom: .28rem; }
  .item-number { font-size: .91rem; }
  #item-title { margin: .45rem 0 .32rem; font-size: clamp(1.65rem,6.6vw,2.7rem); }
  .item-description { font-size: .94rem; line-height: 1.35; }
  .specimen { min-height: clamp(7.5rem, 23.8svh, 13rem); }
  .specimen::before { inset-inline: 3%; rotate: -1.5deg; }
  .decision { padding: .4rem .55rem; min-height: 4.65rem; margin-bottom: .45rem; font-size: .91rem; }
  .step-actions { margin-top: .45rem; }
  .result { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin-top: 1.2rem; }
  .result-promotions { grid-template-columns: minmax(0, 1fr); }
  .result-share { grid-template-columns: minmax(0, 1fr); }
  #result-title { font-size: clamp(1.75rem, 7.5vw, 3rem); }
}
@media (max-width: 414px) {
  .edition { padding-inline: .7rem; }
  .cover-actions .button { padding-inline: .75rem; font-size: .95rem; }
  .choices { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .choice { font-size: .94rem; }
  .ticket-lists { grid-template-columns: minmax(0, 1fr); }
  .ticket-end { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .scan-subject { transition: none; }
  .specimen[data-decision] .scan-subject { transform: none; }
  .ticket { animation: none; }
}
