:root {
  --character-ink: #211b28;
  --character-purple: #6847e8;
  --character-orange: #ec922f;
  --character-line: rgba(35, 28, 41, .15);
}

/* Small, decorative hobby stickers. They sit beside copy without changing line flow. */
.has-sticker {
  position: relative;
  padding-right: clamp(48px, 6vw, 78px);
}

.has-sticker::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: clamp(38px, 5vw, 62px);
  height: clamp(38px, 5vw, 62px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 8px 9px rgba(45, 34, 54, .13));
  transform: translateY(-50%) rotate(4deg);
}

.sticker-d20::after { background-image: url('sticker-d20.svg'); }
.sticker-meeple::after { background-image: url('sticker-meeple.svg'); }
.sticker-bricks::after { background-image: url('sticker-bricks.svg'); }
.sticker-goblet::after { background-image: url('sticker-goblet.svg'); }
.sticker-coffee::after { background-image: url('sticker-coffee.svg'); }

.sticker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.sticker-row img {
  width: 38px;
  height: 38px;
  display: block;
  transform: rotate(-4deg);
}

.sticker-row img:nth-child(2) { transform: rotate(5deg); }
.sticker-row img:nth-child(3) { transform: rotate(-2deg); }

/* Compact illustrated moments break up longer pages without becoming another hero gallery. */
.moment-band {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 72px;
}

.moment-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--character-line);
  border-radius: 28px;
  background: rgba(255, 254, 250, .86);
  box-shadow: 0 18px 50px rgba(40, 32, 49, .08);
}

.moment-layout.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }
.moment-layout.reverse .moment-art { order: 2; }

.moment-art {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 21px;
  background: #eee9ff;
}

.moment-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.moment-label {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 19px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #f5f0f6;
  background: rgba(30, 24, 34, .8);
  font-size: 7px;
  font-weight: 720;
  letter-spacing: .025em;
}

.moment-copy small {
  display: block;
  margin-bottom: 10px;
  color: #6545dc;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.moment-copy h2 {
  margin: 0 0 14px;
  color: #1e1b22;
  font-size: clamp(31px, 4.2vw, 50px);
  line-height: 1;
  letter-spacing: -.047em;
}

.moment-copy p {
  margin: 0;
  color: #68636d;
  font-size: 15px;
  line-height: 1.62;
}

.moment-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.moment-points span {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(104, 71, 232, .15);
  border-radius: 999px;
  color: #584f60;
  background: #f4f0ff;
  font-size: 10px;
  font-weight: 790;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.character-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--character-line);
  border-radius: 23px;
  background: #fffefa;
  box-shadow: 0 14px 36px rgba(40, 32, 49, .07);
}

.character-card img {
  width: 100%;
  height: 205px;
  display: block;
  object-fit: cover;
}

.character-card-copy { padding: 17px 18px 22px; }
.character-card-copy small { display: block; margin-bottom: 5px; color: #6847e8; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.character-card-copy strong { display: block; color: #211b28; font-size: 18px; line-height: 1.15; letter-spacing: -.03em; }
.character-card .moment-label { bottom: auto; top: 186px; }

/* Adventure guide */
.page-guide .quest-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 12px;
  border-color: rgba(76, 52, 91, .18);
  background: linear-gradient(145deg, rgba(108, 74, 222, .13), rgba(244, 154, 56, .13));
}

.page-guide .quest {
  position: relative;
  min-height: 590px;
  padding: clamp(24px, 4.5vw, 52px);
  border-color: rgba(49, 36, 58, .16);
  background: radial-gradient(circle at 100% 0, rgba(116, 84, 244, .08), transparent 30rem), linear-gradient(180deg, #fffefa, #fff9ee);
}

.page-guide .quest::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 22px;
  bottom: 18px;
  width: min(210px, 22vw);
  aspect-ratio: 1.7;
  background: url('quest-props.svg') center / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}

.page-guide .quest > * { position: relative; z-index: 1; }

.page-guide .progress {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}

.page-guide .progress-step {
  min-height: 50px;
  padding: 17px 12px 8px 42px;
  border: 1px solid #ded7e2;
  border-radius: 14px;
  color: #756d79;
  background: rgba(255, 255, 255, .78);
  font-size: 9px;
}

.page-guide .progress-step::before {
  top: 50%;
  right: auto;
  left: 12px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: #e8e3ea;
  transform: translateY(-50%);
}

.page-guide .progress-step::after {
  position: absolute;
  top: 50%;
  left: 22px;
  color: #6e6672;
  font-size: 10px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.page-guide .progress-step:nth-child(1)::after { content: "1"; }
.page-guide .progress-step:nth-child(2)::after { content: "2"; }
.page-guide .progress-step:nth-child(3)::after { content: "3"; }
.page-guide .progress-step.active { border-color: rgba(104, 71, 232, .34); color: #5637d8; background: #f4f0ff; }
.page-guide .progress-step.active::before { background: #7454f4; }
.page-guide .progress-step.active::after { color: white; }

.page-guide .stage-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(104, 71, 232, .2);
  border-radius: 999px;
  color: #5637d8;
  background: #f0ebff;
}

.page-guide .stage h2 { max-width: 900px; color: var(--character-ink); }
.page-guide .result-copy h2 { color: #fff; }
.page-guide .stage-intro { max-width: 760px; color: #5f5863; }

.page-guide .guide-hero { position: relative; }

.quest-kit {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.quest-kit span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(45, 34, 54, .12);
  border-radius: 14px;
  color: #4f4655;
  background: rgba(255, 254, 250, .86);
  box-shadow: 0 8px 24px rgba(45, 34, 54, .07);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.quest-kit img { width: 30px; height: 30px; display: block; }

.quest-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px dashed rgba(104, 71, 232, .35);
  border-radius: 16px;
  color: #5f5863;
  background: rgba(246, 242, 255, .72);
  font-size: 12px;
  line-height: 1.45;
}

.roll-route {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #7454f4, #5637d8);
  box-shadow: 0 9px 22px rgba(86, 55, 216, .22);
  cursor: pointer;
  font-size: 12px;
  font-weight: 840;
}

.page-guide .choice-grid {
  position: relative;
  isolation: isolate;
  gap: 18px;
  padding: 11px;
  border-radius: 26px;
  background:
    radial-gradient(circle, rgba(104, 71, 232, .24) 1.5px, transparent 1.8px) 0 0 / 18px 18px,
    linear-gradient(145deg, rgba(238,233,255,.52), rgba(255,240,220,.52));
}

.page-guide .choice-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 34px 48px;
  border: 3px dashed rgba(104, 71, 232, .22);
  border-radius: 999px 32px 999px 42px;
  transform: rotate(-2deg);
  pointer-events: none;
}

.page-guide .choice {
  position: relative;
  border-color: #d9d1dd;
  border-bottom-width: 3px;
  color: var(--character-ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(42, 31, 50, .07);
}

.page-guide .choice:hover { border-color: rgba(104, 71, 232, .52); background: white; box-shadow: 0 18px 38px rgba(49, 37, 62, .13); }
.page-guide .choice::after { content: none; }

.choice--illustrated {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) 38px;
  gap: 18px;
  align-items: center;
  min-height: 202px;
  padding: 10px 14px 10px 10px;
  overflow: hidden;
}

.choice--illustrated[data-route="solo"] { background: linear-gradient(135deg,#fff,#f5f1ff); }
.choice--illustrated[data-route="group"] { background: linear-gradient(135deg,#fff,#fff5e7); }
.choice--illustrated[data-route="meet"] { background: linear-gradient(135deg,#fff,#edf9f2); }
.choice--illustrated[data-route="team"] { background: linear-gradient(135deg,#fff,#fff0f4); }

.choice-art {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border: 1px solid rgba(45, 34, 54, .12);
  border-radius: 18px;
  background: #eee9ff;
}

.choice-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.choice-art::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 8px;
  width: 42px;
  height: 42px;
  background: center / contain no-repeat;
  filter: drop-shadow(0 5px 6px rgba(45,34,54,.18));
  transform: rotate(5deg);
}
.choice--illustrated[data-route="solo"] .choice-art::after { background-image: url('sticker-bricks.svg'); }
.choice--illustrated[data-route="group"] .choice-art::after { background-image: url('sticker-goblet.svg'); }
.choice--illustrated[data-route="meet"] .choice-art::after { background-image: url('sticker-meeple.svg'); }
.choice--illustrated[data-route="team"] .choice-art::after { background-image: url('sticker-d20.svg'); }
.choice-art-note { position: absolute; right: 0; bottom: 0; left: 0; padding: 3px 2px; color: #f5f1f7; background: rgba(31,25,35,.8); font-size: 4px; font-weight: 720; line-height: 1; text-align: center; white-space: nowrap; }
.choice-copy { min-width: 0; }
.quest-class { display: inline-flex !important; width: max-content; margin-bottom: 9px; padding: 5px 8px; border-radius: 999px; color: #5c3be0 !important; background: #eee9ff; font-size: 8px !important; font-weight: 900; letter-spacing: .09em; line-height: 1 !important; text-transform: uppercase; }
.choice--illustrated[data-route="group"] .quest-class { color: #925617 !important; background: #fff0dc; }
.choice--illustrated[data-route="meet"] .quest-class { color: #267b57 !important; background: #e3f5eb; }
.choice--illustrated[data-route="team"] .quest-class { color: #aa3f61 !important; background: #ffe7ee; }
.choice-copy b { margin-bottom: 8px; color: #211b28; font-size: clamp(18px, 2vw, 22px); line-height: 1.08; }
.choice-copy span { color: #5f5863; font-size: 13px; line-height: 1.5; }
.page-guide .choice .choice-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #5637d8; background: #eee9ff; font-size: 0; line-height: 1; }
.page-guide .choice .choice-arrow::before { content: ""; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; }

.choice--text {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
  min-height: 126px;
  padding: 16px;
}

.choice--text .choice-icon { margin: 0; }

@media (max-width: 820px) {
  .moment-layout,
  .moment-layout.reverse { grid-template-columns: 1fr; }
  .moment-layout.reverse .moment-art { order: 0; }
  .moment-art { min-height: 300px; }
  .character-grid { grid-template-columns: 1fr 1fr; }
  .page-guide .choice-grid { grid-template-columns: 1fr; }
  .choice--illustrated { grid-template-columns: 134px minmax(0, 1fr) 34px; min-height: 176px; }
  .choice-art { height: 154px; }
}

@media (max-width: 600px) {
  .moment-band { width: min(100% - 24px, 1160px); margin-bottom: 54px; }
  .moment-layout { padding: 14px; border-radius: 23px; }
  .moment-art { min-height: 235px; }
  .character-grid { grid-template-columns: 1fr; }
  .has-sticker { padding-right: 48px; }
  .has-sticker::after { width: 40px; height: 40px; }
  .page-guide .progress { gap: 6px; }
  .page-guide .progress-step { min-height: 44px; padding: 13px 6px 6px; font-size: 7px; text-align: center; }
  .page-guide .progress-step::before,
  .page-guide .progress-step::after { display: none; }
  .quest-toolbar { align-items: stretch; flex-direction: column; }
  .roll-route { width: 100%; }
  .page-guide .choice-grid { padding: 7px; gap: 10px; }
  .page-guide .choice-grid::before { display: none; }
  .choice--illustrated { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; min-height: 154px; padding: 8px; }
  .choice--illustrated .choice-arrow { display: none; }
  .choice-art { height: 136px; }
  .choice-art::after { width: 31px; height: 31px; }
  .quest-class { margin-bottom: 6px; }
  .choice--text { grid-template-columns: 46px minmax(0, 1fr); min-height: 116px; padding: 13px; }
  .choice--text .choice-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .roll-route,
  .page-guide .choice { transition: none; }
}
