:root {
  --ink: #25170f;
  --ink-soft: #6f4d2c;
  --paper: #d9b77a;
  --paper-light: #ebcf94;
  --paper-shadow: #9f6b35;
  --violet: #30205f;
  --violet-deep: #171036;
  --violet-bright: #7958b8;
  --pink: #d94c80;
  --pink-light: #ff9bb8;
  --gold: #d99635;
  --green: #7ee052;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: #050a21; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
}

button, input { font: inherit; }
input { font-size: 16px; }

.scene,
.access-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: 26px 18px 42px;
  display: grid;
  place-items: start center;
  background: #060b27;
}

.access-scene { background: #030821; }

.scene-background,
.access-background {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.scene::after,
.access-scene::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: rgba(3, 7, 28, 0.1);
}

.access-scene::after { background: rgba(2, 5, 22, 0.22); }

.quest-card {
  position: relative;
  width: min(100%, 560px);
  padding: 22px 27px 18px;
  background: radial-gradient(circle at 20% 12%, rgba(255, 246, 201, 0.2), transparent 22%), repeating-linear-gradient(0deg, rgba(87, 49, 21, 0.025) 0 1px, transparent 1px 5px), var(--paper);
  border: 4px solid #4e2e17;
  box-shadow: 0 0 0 5px #d79535, 0 0 0 9px #6d421d, 0 0 0 12px #d99a3f, 0 18px 50px rgba(2, 4, 18, 0.75), inset 0 0 0 4px rgba(255, 229, 160, 0.38), inset 0 0 32px rgba(88, 48, 17, 0.22);
  image-rendering: pixelated;
  animation: card-in 360ms steps(5, end) both;
}

.access-screen { width: min(100%, 430px); align-self: center; }
.access-screen.is-leaving { pointer-events: none; animation: access-screen-out 360ms steps(5, end) both; }
.quest-form.is-leaving { pointer-events: none; animation: quest-form-out 300ms steps(5, end) both; }
.access-card { width: 100%; padding: 30px 30px 26px; text-align: center; }
.access-card h1 { margin: 18px 0 16px; font-size: 30px; }
.access-copy { margin: 0 auto 20px; max-width: 410px; color: #442914; font-weight: 700; line-height: 1.55; }
.expired-card {
  align-self: center;
  width: min(100%, 520px);
  padding: 30px 30px 28px;
  text-align: center;
}
.expired-card h1 { margin: 18px 0 16px; font-size: 30px; }
.expired-copy {
  margin: 0 auto;
  max-width: 410px;
  color: #442914;
  font-weight: 700;
  line-height: 1.55;
}
.access-form { display: grid; gap: 12px; width: min(100%, 300px); margin: 0 auto; }
.password-field { position: relative; }
.access-form input {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 8px 42px 8px 10px;
  color: var(--ink);
  background: #f2d89e;
  border: 3px solid #704722;
  box-shadow: inset 2px 2px 0 rgba(107, 66, 28, 0.2), 0 0 0 2px #c68737;
  text-align: center;
}
.access-form input:focus { outline: 3px solid #8d6cd0; outline-offset: 2px; }
.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #321d10;
  background: #d49a47;
  box-shadow: inset 0 0 0 2px #f2d89e;
  transform: translateY(-50%);
  cursor: pointer;
}
.password-toggle::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 14px;
  height: 8px;
  background: #30205f;
  clip-path: polygon(0 50%, 24% 0, 76% 0, 100% 50%, 76% 100%, 24% 100%);
}
.password-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 5px;
  height: 5px;
  background: #fff0c3;
  box-shadow: 0 0 0 2px #171036;
}
.password-toggle.is-visible::before {
  background: #aa2852;
}
.password-toggle.is-visible::after {
  left: 5px;
  top: 12px;
  width: 16px;
  height: 3px;
  background: #fff0c3;
  box-shadow: 0 0 0 1px #171036;
  transform: rotate(-35deg);
}
.access-submit { min-height: 42px; font-size: 15px; background: linear-gradient(#554087, #2a1d57); border-color: #1b1032; box-shadow: 0 0 0 3px #8d6cd0, 0 5px 0 #120c24; }
.access-error { min-height: 18px; margin: 0; color: #aa2852; font-size: 12px; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.quest-card.is-entering { animation: quest-unlock 480ms steps(6, end) both; }
.success-panel.is-entering { animation: preview-unlock 420ms steps(6, end) both; }

.corner {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 5px solid #5f3719;
  box-shadow: inset 0 0 0 2px #c78330;
}

.corner-tl { left: 5px; top: 5px; border-right: 0; border-bottom: 0; }
.corner-tr { right: 5px; top: 5px; border-left: 0; border-bottom: 0; }
.corner-bl { left: 5px; bottom: 5px; border-right: 0; border-top: 0; }
.corner-br { right: 5px; bottom: 5px; border-left: 0; border-top: 0; }
.quest-header { text-align: center; }

.label-chip, .section-heading h2 {
  display: inline-block;
  margin: 0;
  padding: 4px 13px 5px;
  color: #fff0c3;
  background: linear-gradient(#4d347d, #281a51);
  border: 3px solid #17102f;
  box-shadow: 0 0 0 2px var(--violet-bright), 0 4px 0 #160d2b;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #080510;
  line-height: 1;
}

.label-chip { font-size: 14px; font-weight: 700; }

h1 {
  position: relative;
  z-index: 1;
  width: calc(100% + 14px);
  margin: 12px -7px 15px;
  padding: 8px 15px 11px;
  color: #fff0c5;
  background: linear-gradient(#4b337a, #291c55);
  border: 4px solid #17102f;
  box-shadow: 0 0 0 3px #7855ac, 0 6px 0 #160d2b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.05;
  text-shadow: 3px 3px 0 #090611;
  overflow-wrap: anywhere;
}

.quest-description {
  max-width: 480px;
  margin: 0 auto 15px;
  padding: 7px 10px;
  color: #351f11;
  background: rgba(255, 238, 190, 0.32);
  border-block: 2px solid rgba(103, 66, 30, 0.36);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 13px 0 25px;
  color: #fff0c6;
  background: #1c1649;
  border: 4px solid #130d2d;
  box-shadow: 0 0 0 2px #7355aa, 0 5px 0 rgba(29, 17, 48, 0.55);
}

.stat { min-width: 0; padding: 4px 5px 5px; text-align: center; border-right: 2px solid #6b4b9d; }
.stat:last-child { border-right: 0; }
.stat-label, .stat strong { display: block; }
.stat-label { margin-top: 2px; color: #d6c8ee; font-size: 12px; }
.stat strong { margin-top: 2px; font-size: 13px; white-space: nowrap; }
.difficulty-unknown { color: #f4c85e; font-size: 10px !important; }

.infinity-symbol {
  display: inline;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 0;
  vertical-align: -1px;
}

.pixel-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  background: #aa80e6;
  border: 3px solid #0b0718;
  box-shadow: inset 0 0 0 3px #462473;
}

.party { clip-path: polygon(12% 15%, 42% 15%, 42% 42%, 58% 42%, 58% 15%, 88% 15%, 88% 47%, 100% 47%, 100% 100%, 0 100%, 0 47%, 12% 47%); }
.clock { border-radius: 50%; }
.clock::after, .hourglass::after, .shield::after { content: ""; width: 10px; height: 10px; background: #fff3cd; }
.clock::after { clip-path: polygon(40% 0, 65% 0, 65% 45%, 100% 45%, 100% 68%, 40% 68%); }
.hourglass::after { clip-path: polygon(0 0, 100% 0, 68% 33%, 68% 66%, 100% 100%, 0 100%, 32% 66%, 32% 33%); }
.shield { background: #e1a330; }
.shield::after { background: #7b4018; clip-path: polygon(50% 0, 100% 20%, 82% 72%, 50% 100%, 18% 72%, 0 20%); }

.quest-section {
  position: relative;
  min-height: 100px;
  padding: 14px 4px 10px 102px;
  border-top: 2px solid rgba(103, 66, 30, 0.48);
}

.quest-section::before, .quest-section::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 7px;
  height: 7px;
  background: #8d602d;
  transform: rotate(45deg);
}

.quest-section::before { left: 0; }
.quest-section::after { right: 0; }
.section-heading { margin: -17px 0 9px; text-align: left; }
.section-heading h2 { padding: 3px 10px 4px; font-size: 14px; }

.item-sprite {
  position: absolute;
  left: 5px;
  top: 7px;
  display: block;
  width: 75px;
  height: 100px;
  background-image: url("assets/quest-items.png");
  background-size: 300px 100px;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 4px 0 rgba(58, 32, 18, 0.34));
}

.sprite-calendar { background-position: 0 0; }
.sprite-blades { background-position: -75px 0; }
.sprite-pack { background-position: -150px 0; }
.sprite-chest { background-position: -225px 0; }
.option-list { display: grid; grid-template-columns: 1fr; gap: 2px; }
.option-tile { position: relative; min-height: 24px; }

.option-tile input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.option-tile span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 1px 4px;
  color: var(--ink);
  line-height: 1.25;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.option-tile span::before {
  content: "";
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: #d49a47;
  border: 3px solid #321d10;
  box-shadow: inset 0 0 0 2px #8b5327;
}

.option-tile input:hover + span { background: rgba(255, 238, 190, 0.34); }
.option-tile input:checked + span { color: #4c1832; font-weight: 700; }
.option-tile input:checked + span::before { background: var(--pink); box-shadow: inset 0 0 0 3px var(--pink-light); }
.option-tile input:focus-visible + span, .custom-date input:focus-visible, button:focus-visible { outline: 3px solid #fff0a5; outline-offset: 2px; }
.activity-icon { display: none; }

.custom-date { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 13px; }
.alternate-date-button + .custom-date { justify-content: center; margin: 12px auto 0; }
.custom-date input { min-height: 31px; padding: 3px 6px; color: var(--ink); background: #f2d495; border: 2px solid #75502c; }
.custom-date-submit {
  min-height: 31px;
  padding: 4px 9px;
  color: #fff0c4;
  background: linear-gradient(#df5f8e, #ad3767);
  border: 2px solid #571938;
  box-shadow: 0 3px 0 #6a2148;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 1px 1px 0 #45142d;
  cursor: pointer;
}
.custom-date-submit:active { transform: translateY(2px); }
.field-error { min-height: 0; margin: 4px 0 0; color: #7c153c; font-size: 12px; font-weight: 700; }
.quest-section.is-missing { background: rgba(213, 55, 108, 0.1); outline: 2px solid rgba(139, 33, 78, 0.42); outline-offset: -2px; }

.reward-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.reward-list li { display: flex; align-items: center; gap: 8px; font-weight: 700; line-height: 1.25; }
.reward-mark { display: inline-grid; place-items: center; flex: 0 0 19px; width: 19px; height: 19px; color: #fff1bd; background: var(--pink); border: 2px solid #32190f; font-size: 8px; font-weight: 900; }

.accept-button, .confirm-button, .alternate-date-button {
  width: 100%;
  min-height: 49px;
  margin-top: 9px;
  border: 4px solid #571938;
  color: #fff1c7;
  background: linear-gradient(#ee6996, #b63c6d);
  box-shadow: 0 0 0 3px #f293b0, 0 6px 0 #6a2148;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 25px;
  text-shadow: 3px 3px 0 #45142d;
  cursor: pointer;
}

.accept-button:hover { filter: brightness(1.08); }
.alternate-date-button {
  display: block;
  width: min(100%, 310px);
  min-height: 36px;
  margin: 15px auto 0;
  padding: 7px 12px;
  color: #fff0c4;
  background: linear-gradient(#554087, #2a1d57);
  border: 3px solid #1b1032;
  box-shadow: 0 0 0 2px #8d6cd0, 0 4px 0 #120c24;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 2px 2px 0 #120c24;
  cursor: pointer;
}
.alternate-date-button:hover { filter: brightness(1.12); }
.alternate-date-button:active { transform: translateY(2px); }
.accept-button:active, .confirm-button:active, .reset-link:active, .quest-id:active { transform: translateY(2px); }
.success-panel { position: relative; padding: 24px 4px 8px; text-align: center; }
.success-panel > :not(.success-burst) { position: relative; z-index: 1; }
.success-panel h2 { margin: 16px 0 13px; font-size: 24px; text-transform: uppercase; }

.success-burst {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  display: none;
  width: 6px;
  height: 6px;
  background: #f4ca63;
  box-shadow: 0 -40px 0 #f4ca63, 0 40px 0 #f4ca63, -40px 0 0 #f4ca63, 40px 0 0 #f4ca63, -29px -29px 0 #e95f94, 29px 29px 0 #8d6cd0, 29px -29px 0 #e95f94, -29px 29px 0 #8d6cd0;
  opacity: 0;
  pointer-events: none;
}
.success-burst::before,
.success-burst::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 4px;
  height: 4px;
  background: #e95f94;
  box-shadow: 0 -25px 0 #f4ca63, 0 25px 0 #8d6cd0, -25px 0 0 #f4ca63, 25px 0 0 #8d6cd0, -18px -18px 0 #fff0c6, 18px 18px 0 #fff0c6;
  opacity: 0;
}
.success-burst::before { left: -104px; }
.success-burst::after { left: 100px; background: #8d6cd0; }
.success-panel.is-animating .success-burst { display: block; animation: firework-center 1380ms steps(8, end) both; }
.success-panel.is-animating .success-burst::before { animation: firework-side 1120ms steps(7, end) 100ms both; }
.success-panel.is-animating .success-burst::after { animation: firework-side 1120ms steps(7, end) 180ms both; }

.summary-list { position: relative; display: grid; gap: 7px; margin: 0; text-align: left; }
.summary-list div { padding: 8px 10px; background: rgba(255, 235, 181, 0.38); border: 2px solid #7c542d; }
.summary-list dt { color: var(--ink-soft); font-weight: 700; }
.summary-list dd { margin: 2px 0 0; font-weight: 900; }
.acceptance-message { display: none; margin: 12px auto 0; max-width: 390px; color: #fff0c6; font-size: 13px; font-weight: 700; line-height: 1.45; text-align: center; }
.success-panel.is-accepted .acceptance-message { display: block; }
.delivery-panel {
  display: none;
  margin: 15px auto 0;
  padding: 12px 24px 13px;
  width: min(100%, 430px);
  color: #fff0c6;
  background: #1c1649;
  border: 3px solid #130d2d;
  box-shadow: 0 0 0 2px #7355aa;
  font-family: "Courier New", Courier, monospace;
  text-align: left;
}
.success-panel.is-accepted .delivery-panel { display: block; }
.delivery-panel p {
  margin: 0 0 10px;
  color: #f4c85e;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.delivery-panel .acceptance-message {
  margin-top: 15px;
  color: #fff0c6;
  text-transform: none;
}
.delivery-panel ul {
  display: grid;
  gap: 5px;
  justify-items: start;
  width: 160px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.delivery-panel li {
  position: relative;
  width: 100%;
  min-height: 15px;
  padding-left: 19px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}
.delivery-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 9px;
  height: 9px;
  background: var(--green);
  border: 2px solid #0b0718;
  box-shadow: inset 0 0 0 2px #d6ff9a;
}

.confirm-button { width: min(100%, 320px); min-height: 42px; font-size: 15px; background: linear-gradient(#554087, #2a1d57); border-color: #1b1032; box-shadow: 0 0 0 3px #8d6cd0, 0 5px 0 #120c24; }
.success-panel.is-animating h2 { animation: quest-title-reveal 760ms steps(6, end) 480ms both; }
.quest-footer { margin-top: 14px; padding-top: 8px; color: #63401f; border-top: 2px solid rgba(93, 59, 28, 0.34); text-align: center; font-size: 12px; }
.quest-footer p { margin: 0 0 4px; }
.quest-footer p::before, .quest-footer p::after { content: "+"; margin: 0 8px; color: #5b3192; font-weight: 900; }
.copy-email {
  display: grid;
  gap: 5px;
  width: min(100%, 430px);
  margin: 9px auto 6px;
  color: #573419;
  font-weight: 700;
  line-height: 1.35;
}
.copy-email span {
  display: block;
  max-width: 410px;
  margin: 0 auto;
}
.copy-email input {
  width: min(100%, 310px);
  margin: 0 auto;
  min-width: 0;
  height: 31px;
  padding: 4px 8px;
  color: var(--ink);
  background: #f2d495;
  border: 2px solid #75502c;
  box-shadow: inset 2px 2px 0 rgba(107, 66, 28, 0.15);
  text-align: center;
}
.copy-email input:focus-visible { outline: 3px solid #8d6cd0; outline-offset: 2px; }
.copy-email-error { min-height: 14px; color: #aa2852; font-size: 11px; font-weight: 700; }
.quest-id, .reset-link { display: block; margin: 3px auto 0; padding: 2px 4px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.quest-id {
  position: relative;
  padding: 1px 0 2px;
  color: #63401f;
  background: transparent;
  border-bottom: 1px dashed rgba(91, 49, 146, 0.45);
  box-shadow: none;
  font-size: 11px;
  font-weight: 400;
  text-shadow: none;
  transition: color 120ms steps(2, end), border-color 120ms steps(2, end);
}
.quest-id::before { content: ""; }
.quest-id::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 22px;
  height: 2px;
  background: #8a4caf;
  box-shadow: 4px 0 0 #f4ca63;
  opacity: 0;
  pointer-events: none;
}
.quest-id:hover { color: #5b3192; border-bottom-color: #5b3192; }
.quest-id.is-investigating { animation: quest-id-pulse 260ms steps(3, end); }
.quest-id.is-investigating::after { animation: quest-id-scan 360ms steps(4, end); }
.reset-link { font-size: 11px; opacity: 0.65; }
.secret { margin-top: 8px; padding: 8px; color: #fff2c8; background: #2c1d57; border: 2px solid #8d6cd0; box-shadow: 0 0 0 2px #190e32; }
.secret span, .secret strong { display: block; }

@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes access-screen-out {
  0% { opacity: 1; transform: translateY(0); }
  55% { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(-18px); }
}
@keyframes quest-unlock {
  0% { opacity: 0; transform: translateY(20px); }
  32% { opacity: 1; transform: translateY(8px); }
  70% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes quest-form-out {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-12px); }
}
@keyframes preview-unlock {
  0% { opacity: 0; transform: translateY(16px); }
  35% { opacity: 1; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes firework-center {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(0.42); }
  55% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  76% { opacity: 0.78; transform: translate(-50%, -9px) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -16px) scale(1.45); }
}
@keyframes firework-side {
  0% { opacity: 0; transform: scale(0); }
  28% { opacity: 1; transform: scale(0.55); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-13px) scale(1.45); }
}
@keyframes quest-title-reveal {
  0% { opacity: 0; transform: translateY(10px); }
  55% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes quest-id-pulse {
  50% { color: #8a4caf; border-bottom-color: #8a4caf; }
}
@keyframes quest-id-scan {
  12% { opacity: 1; transform: translateX(0); }
  78% { opacity: 1; transform: translateX(220px); }
  100% { opacity: 0; transform: translateX(220px); }
}

@media (min-width: 1100px) {
  .scene { padding-top: 32px; }
  .quest-card { width: 560px; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .scene, .access-scene { padding: 16px 28px 30px; }
  .quest-card { padding: 18px 15px 15px; box-shadow: 0 0 0 4px #d79535, 0 0 0 7px #6d421d, 0 14px 34px rgba(2, 4, 18, 0.72), inset 0 0 0 3px rgba(255, 229, 160, 0.35); }
  h1 { width: calc(100% + 6px); margin: 11px -3px 14px; padding: 8px 9px 10px; font-size: clamp(23px, 8vw, 34px); }
  .quest-description { font-size: 13px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 2px solid #6b4b9d; }
  .quest-section { min-height: 82px; padding-left: 82px; }
  .item-sprite { top: 7px; width: 60px; height: 80px; background-size: 240px 80px; }
  .sprite-calendar { background-position: 0 0; }
  .sprite-blades { background-position: -60px 0; }
  .sprite-pack { background-position: -120px 0; }
  .sprite-chest { background-position: -180px 0; }
  .section-heading { margin-top: -16px; }
  .accept-button { min-height: 48px; font-size: clamp(19px, 6.4vw, 25px); }
  .alternate-date-button { width: min(100%, 270px); margin-top: 14px; font-size: 13px; }
  .delivery-panel { width: min(100%, 360px); padding-inline: 14px; }
  .copy-email { width: min(100%, 330px); }
}

@media (max-width: 410px) {
  .label-chip { font-size: 11px; }
  .scene, .access-scene { padding-inline: 21px; }
  .quest-card { padding-inline: 11px; }
  .quest-section { padding-left: 74px; }
  .item-sprite { left: 0; width: 54px; height: 72px; background-size: 216px 72px; }
  .sprite-calendar { background-position: 0 0; }
  .sprite-blades { background-position: -54px 0; }
  .sprite-pack { background-position: -108px 0; }
  .sprite-chest { background-position: -162px 0; }
  .section-heading h2 { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }

  /* This is a user-triggered confirmation, so keep its short visual response. */
  .success-panel.is-animating .success-burst { animation-duration: 1200ms !important; }
  .success-panel.is-animating .success-burst::before,
  .success-panel.is-animating .success-burst::after,
  .success-panel.is-animating h2 { animation-duration: 980ms !important; }
  .access-screen.is-leaving { animation-duration: 360ms !important; }
  .quest-card.is-entering { animation-duration: 480ms !important; }
  .quest-form.is-leaving { animation-duration: 300ms !important; }
  .success-panel.is-entering { animation-duration: 420ms !important; }
}
