:root {
  color-scheme: dark;
  --ink: #f3f5ff;
  --muted: #a4acc7;
  --panel: #18213b;
  --panel-light: #202b49;
  --line: rgba(212, 221, 255, .13);
  --mint: #91efc4;
  --yellow: #f8d77e;
  --violet: #c1a8ff;
  --font-display: "Space Grotesk", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(67, 111, 73, .24), transparent 58%),
    linear-gradient(180deg, #111827 0%, #142321 52%, #111827 100%);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(165, 201, 140, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 201, 140, .045) 1px, transparent 1px),
    linear-gradient(180deg, transparent 49%, rgba(5, 14, 18, .16) 50%);
  background-size: 64px 64px, 64px 64px, 128px 128px;
  content: "";
  opacity: .14;
  pointer-events: none;
}

button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.app-shell { max-width: 1240px; margin: 0 auto; padding: 0 56px; }

.topbar {
  display: flex;
  height: 85px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark { display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.5; }
.wordmark strong { color: #fff; font-size: 12px; letter-spacing: 2px; }
.wordmark-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(145, 239, 196, .45); border-radius: 10px; color: var(--mint); font-size: 19px; }
.team-status { display: flex; align-items: center; gap: 9px; color: #c7d2ec; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.status-dot, .caption-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(145, 239, 196, .72); }
.parent-menu { position: relative; }
.parent-menu summary { cursor: pointer; list-style: none; padding: 10px 0 10px 12px; color: #dce5ff; font-size: 12px; font-weight: 600; }
.parent-menu summary::-webkit-details-marker { display: none; }
.parent-menu summary span { margin-left: 4px; color: var(--mint); }
.parent-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 5; display: grid; width: min(250px, calc(100vw - 38px)); gap: 3px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #18213b; box-shadow: 0 15px 40px rgba(4, 9, 18, .45); }
.parent-menu-panel p { margin: 0 0 6px; color: var(--mint); font-size: 8px; font-weight: 800; letter-spacing: 1.1px; line-height: 1.6; }
.parent-menu-panel p small { color: #aab6d0; font-size: 9px; font-weight: 500; letter-spacing: 0; }
.parent-menu-panel a, .parent-menu-action { border-radius: 7px; padding: 8px; color: #e5eafb; font-size: 10px; }
.parent-menu-panel a:hover, .parent-menu-panel a:focus-visible { outline: none; background: rgba(145, 239, 196, .1); color: var(--mint); }
.parent-menu-action { border: 0; background: transparent; text-align: left; }
.parent-menu-action:hover, .parent-menu-action:focus-visible { outline: none; background: rgba(145, 239, 196, .1); color: var(--mint); }
.print-link { padding: 10px 0 10px 12px; color: #dce5ff; font-size: 12px; font-weight: 600; }
.print-link span { margin-left: 5px; color: var(--mint); }

.hero { position: relative; display: grid; min-height: 425px; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 30px; padding: 52px 0 43px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 5px; }
.eyebrow { margin: 0 0 15px; color: #b6c1de; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.eyebrow-star { margin-right: 7px; color: var(--mint); }
h1, h2, p { margin-top: 0; }
.hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(48px, 5.2vw, 64px); font-weight: 600; letter-spacing: -3px; line-height: .96; }
.hero h1 span { color: var(--mint); }
.hero-description { max-width: 385px; margin: 19px 0 24px; color: #b7c0d8; font-size: 13px; line-height: 1.8; }
.primary-button, .secondary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 22px; border: 0; border-radius: 9px; padding: 0 16px; background: var(--mint); color: #14251f; font-size: 12px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(145, 239, 196, .2); }
.button-arrow { font-size: 17px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 18px; color: #9da8c2; font-size: 10px; }
.scan-callout { display: flex; max-width: 365px; align-items: center; gap: 12px; border: 1px solid rgba(145, 239, 196, .25); border-radius: 10px; padding: 11px 13px; background: rgba(145, 239, 196, .06); }
.scan-icon { color: var(--mint); font-size: 23px; }
.scan-callout strong, .scan-callout small { display: block; }.scan-callout strong { margin-bottom: 4px; font-size: 11px; }.scan-callout small { color: #aab6d0; font-size: 9px; line-height: 1.5; }

.hero-art { position: relative; height: 325px; overflow: hidden; border: 1px solid rgba(188, 208, 255, .18); border-radius: 15px; background: #172820; box-shadow: 0 24px 70px rgba(5, 10, 23, .3); }
.hero-art-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(8, 15, 17, .58)); content: ""; }
.art-caption { position: absolute; z-index: 1; right: 15px; bottom: 13px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(225, 236, 206, .2); border-radius: 6px; padding: 7px 9px; background: rgba(12, 24, 21, .68); color: #eef5df; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.caption-dot { width: 5px; height: 5px; }

.mission-strip { display: grid; grid-template-columns: 1.1fr 1.2fr auto; align-items: center; gap: 23px; min-height: 86px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission-label { display: flex; align-items: center; gap: 12px; }
.mission-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(145, 239, 196, .29); border-radius: 10px; color: var(--mint); }
.mission-label strong, .mission-label small { display: block; }.mission-label strong { margin-bottom: 4px; font-size: 11px; }.mission-label small { color: #9da8c2; font-size: 9px; }
.progress-track { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 7px; }
.progress-segment { height: 4px; border-radius: 5px; background: #303b59; }.progress-segment.is-done { background: var(--mint); box-shadow: 0 0 9px rgba(145, 239, 196, .22); }
.progress-caption { margin: 0; color: #a8b4ce; font-size: 9px; text-align: right; white-space: nowrap; }
.mission-instructions { margin: 13px 0 0; border: 1px solid rgba(145, 239, 196, .18); border-radius: 10px; padding: 13px 16px; background: rgba(145, 239, 196, .045); color: #d3ddf2; font-size: 11px; line-height: 1.7; }

.resource-section { padding: 30px 0 5px; }
.resource-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.resource-heading .eyebrow { margin-bottom: 6px; font-size: 8px; }.resource-heading h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.resource-heading > p { max-width: 240px; margin: 0; color: #aab4cc; font-size: 9px; line-height: 1.6; text-align: right; }
.resource-inventory { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.resource-item { --resource-accent: #d6ad70; --resource-tint: rgba(155, 106, 52, .12); display: grid; min-height: 48px; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 5px 9px; background: rgba(27, 38, 63, .76); color: #d1d8e8; font-size: 10px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.resource-item[data-resource="wood"] { --resource-accent: #d6ad70; --resource-tint: rgba(155, 106, 52, .12); }
.resource-item[data-resource="stone"] { --resource-accent: #b6c3d3; --resource-tint: rgba(116, 144, 169, .14); }
.resource-item[data-resource="coal"] { --resource-accent: #c1b6e8; --resource-tint: rgba(112, 99, 158, .17); }
.resource-item[data-resource="iron"] { --resource-accent: #ed9c73; --resource-tint: rgba(167, 80, 46, .15); }
.resource-item[data-resource="diamond"] { --resource-accent: #83e6ef; --resource-tint: rgba(64, 157, 181, .16); }
.resource-item-icon { display: grid; min-width: 20px; place-items: center; color: var(--resource-accent); font-size: 17px; }.resource-item-icon .resource-icon-art { display: block; width: 17px; height: 17px; }
.resource-item-label { min-width: 0; }
.resource-item-count { display: grid; min-width: 23px; height: 23px; place-items: center; border: 1px solid var(--resource-accent); border-radius: 7px; background: var(--resource-tint); color: var(--resource-accent); font-size: 10px; font-variant-numeric: tabular-nums; }
.resource-item.is-collected { border-color: var(--resource-accent); background: var(--resource-tint); color: #f0f3fb; }
.resource-item.is-collected .resource-item-icon { color: var(--resource-accent); }

.levels-section { padding: 44px 0 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 8px; font-size: 8px; }.section-heading h2 { margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -.8px; }
.section-heading > p { max-width: 236px; margin: 0 0 2px; color: #aab4cc; font-size: 10px; line-height: 1.6; }
.level-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.level-card { position: relative; min-height: 166px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; padding: 17px 15px; background: linear-gradient(150deg, rgba(33, 45, 73, .9), rgba(23, 31, 54, .9)); }
.level-card::after { position: absolute; right: -14px; bottom: -18px; width: 79px; height: 79px; border: 1px solid rgba(198, 169, 255, .12); border-radius: 22px; background: rgba(190, 166, 255, .04); content: ""; transform: rotate(30deg); }
.level-card.is-locked { opacity: .57; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.level-number { color: #9facca; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.level-character { position: relative; display: block; width: 48px; height: 48px; }
.level-character img { width: 100%; height: 100%; border: 1px solid rgba(210, 221, 255, .22); border-radius: 10px; object-fit: cover; object-position: center 26%; }
.level-icon { position: absolute; right: -6px; bottom: -5px; display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(248, 215, 126, .24); border-radius: 7px; background: #1d2942; color: var(--yellow); font-size: 12px; }.level-icon .resource-icon-art { display: block; width: 15px; height: 15px; }
.level-card h3 { margin: 0 0 7px; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.level-card p { margin: 0; color: #a5b0ca; font-size: 9px; line-height: 1.55; }
.level-card .resource-name { margin: -7px 0 6px; color: #a5b0ca; font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.card-state { position: absolute; right: 14px; bottom: 13px; color: #aab6d0; font-size: 8px; }
.level-card.is-current { border-color: rgba(145, 239, 196, .46); background: linear-gradient(145deg, rgba(43, 82, 77, .44), rgba(25, 39, 62, .92)); box-shadow: inset 0 0 24px rgba(145, 239, 196, .04); }
.level-card.is-current .level-icon { border-color: rgba(145, 239, 196, .4); color: var(--mint); background: rgba(145, 239, 196, .08); }
.level-card.is-current .card-state { color: var(--mint); }
.level-card.is-collected { border-color: rgba(145, 239, 196, .25); }.level-card.is-collected .level-icon { border-color: rgba(145, 239, 196, .3); color: var(--mint); background: rgba(145, 239, 196, .07); }
.level-card.is-in-progress { box-shadow: inset 0 0 24px rgba(145, 239, 196, .08), 0 0 18px rgba(145, 239, 196, .06); }

.video-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.video-gallery-card { display: flex; min-width: 0; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: rgba(24, 33, 59, .82); color: var(--ink); text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.video-gallery-card:hover { transform: translateY(-2px); border-color: rgba(145, 239, 196, .45); box-shadow: 0 8px 24px rgba(5, 10, 23, .25); }
.video-gallery-card:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.video-gallery-poster { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; background: #15231f; }
.video-gallery-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-gallery-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 10, 16, .18); color: white; font-size: 24px; text-shadow: 0 2px 12px #000; transition: background .18s ease; }
.video-gallery-card:hover .video-gallery-play { background: rgba(5, 10, 16, .38); }
.video-gallery-kicker { color: var(--mint); font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.video-gallery-title { min-height: 34px; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.video-gallery-action { display: flex; justify-content: space-between; color: #aab6d0; font-size: 9px; font-weight: 700; }
.video-gallery-action span { color: var(--mint); font-size: 14px; line-height: 10px; }

.team-tip { display: flex; align-items: center; gap: 13px; margin: 3px 0 31px; border: 1px solid rgba(145, 239, 196, .16); border-radius: 10px; padding: 13px 15px; background: rgba(145, 239, 196, .045); }
.stage-page { --stage-accent: var(--mint); --stage-glow: rgba(145, 239, 196, .16); --stage-border: rgba(145, 239, 196, .28); padding: 25px 0 34px; }
.stage-page[data-resource="wood"] { --stage-accent: #d6ad70; --stage-glow: rgba(155, 106, 52, .22); --stage-border: rgba(214, 173, 112, .3); }
.stage-page[data-resource="stone"] { --stage-accent: #b6c3d3; --stage-glow: rgba(116, 144, 169, .22); --stage-border: rgba(182, 195, 211, .3); }
.stage-page[data-resource="coal"] { --stage-accent: #c1b6e8; --stage-glow: rgba(112, 99, 158, .24); --stage-border: rgba(193, 182, 232, .3); }
.stage-page[data-resource="iron"] { --stage-accent: #ed9c73; --stage-glow: rgba(167, 80, 46, .22); --stage-border: rgba(237, 156, 115, .3); }
.stage-page[data-resource="diamond"] { --stage-accent: #83e6ef; --stage-glow: rgba(64, 157, 181, .24); --stage-border: rgba(131, 230, 239, .32); }
.stage-back-link { display: inline-flex; margin-bottom: 15px; color: #c4cce0; font-size: 11px; font-weight: 700; }
.stage-back-link:hover { color: var(--stage-accent); }
.stage-experience { overflow: hidden; border: 1px solid var(--stage-border); border-radius: 19px; padding: clamp(20px, 4vw, 38px); background: radial-gradient(ellipse at 82% 13%, var(--stage-glow), transparent 40%), linear-gradient(145deg, #1a2338, #111827 75%); box-shadow: 0 18px 55px rgba(4, 9, 18, .24); }
.stage-heading { margin-bottom: 25px; }.stage-heading .eyebrow { margin-bottom: 10px; color: var(--stage-accent); }
.stage-heading h1 { margin: 0 0 9px; font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -1.5px; }
.stage-heading > p:last-child { max-width: 700px; margin: 0; color: #bdc7dc; font-size: 13px; line-height: 1.65; }
.stage-experience-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); align-items: start; gap: 22px; }
.stage-video-panel, .stage-activity { min-width: 0; border: 1px solid rgba(212, 221, 255, .13); border-radius: 13px; background: rgba(10, 16, 29, .45); }
.stage-panel-heading { display: flex; min-height: 45px; align-items: center; gap: 9px; padding: 0 13px; color: #c2cbe0; font-size: 8px; font-weight: 800; letter-spacing: 1.3px; }
.stage-resource-icon { display: grid; width: 23px; height: 23px; place-items: center; color: var(--stage-accent); font-size: 17px; }.stage-resource-icon .resource-icon-art { width: 19px; height: 19px; }
.stage-video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #070b13; }
.stage-video-frame video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.stage-sound-button { position: absolute; right: 12px; bottom: 45px; z-index: 1; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; padding: 8px 11px; background: rgba(12, 18, 33, .85); color: white; font-size: 10px; font-weight: 700; }
.stage-video-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 25px; background: #111827; color: #e7eaf3; font-size: 12px; line-height: 1.6; text-align: center; }
.stage-video-fallback[hidden], .stage-sound-button[hidden] { display: none; }
.stage-video-caption { margin: 0; padding: 10px 13px 12px; color: #aab6d0; font-size: 9px; line-height: 1.5; }
.stage-details { display: flex; flex-direction: column; gap: 13px; }
.stage-character { display: grid; min-height: 180px; place-items: center; overflow: hidden; margin: 0; border: 1px solid var(--stage-border); border-radius: 13px; background: radial-gradient(ellipse at 50% 70%, var(--stage-glow), transparent 68%), rgba(10, 16, 29, .38); }
.stage-character img { display: block; width: 100%; max-height: 230px; object-fit: contain; }
.stage-activity { padding: 17px; }.stage-activity-kicker { margin: 0 0 7px; color: var(--stage-accent); font-size: 8px; font-weight: 800; letter-spacing: 1.4px; }
.stage-activity h2 { margin: 0 0 9px; font-family: var(--font-display); font-size: 17px; }.stage-activity > p:last-child { margin: 0; color: #c2cce1; font-size: 12px; line-height: 1.7; }
.tip-icon { color: var(--yellow); font-size: 17px; }.team-tip p { flex: 1; margin: 0; color: #b5c1d9; font-size: 10px; line-height: 1.6; }.team-tip strong { color: #e8f4ec; }.tip-spark { color: var(--mint); font-size: 15px; }
.footer { display: flex; min-height: 57px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #78839e; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }.heart { color: #f294a2; }

.video-dialog, .qr-dialog { width: min(810px, calc(100vw - 32px)); max-width: none; overflow: hidden; border: 1px solid rgba(210, 221, 255, .15); border-radius: 16px; padding: 0; background: #121b30; color: var(--ink); box-shadow: 0 28px 100px rgba(0, 0, 0, .7); }
.video-dialog::backdrop, .qr-dialog::backdrop, .gallery-dialog::backdrop { background: rgba(5, 9, 19, .82); backdrop-filter: blur(7px); }
.video-frame { position: relative; display: grid; min-height: min(56vw, 455px); place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 65%, #536e83 0, #263752 35%, #151d35 74%); }
.video-frame video, .video-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }.video-frame video { object-fit: cover; }
.video-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 62%, rgba(141, 112, 205, .45), transparent 36%), linear-gradient(150deg, #263c5c, #141b32 73%); text-align: center; }
.fallback-stars { position: absolute; top: 15%; color: var(--yellow); font-size: 22px; }.fallback-stars span { margin: 0 58px; color: var(--mint); font-size: 15px; }
.fallback-portal { display: grid; width: 76px; height: 103px; place-items: center; border: 2px solid rgba(203, 178, 255, .9); border-radius: 40px 40px 4px 4px; background: radial-gradient(ellipse at center, rgba(200, 163, 255, .65), rgba(96, 75, 162, .15) 70%); box-shadow: 0 0 48px rgba(184, 146, 255, .5), inset 0 0 22px rgba(221, 202, 255, .5); color: white; font-size: 29px; animation: portal-pulse 2.7s ease-in-out infinite; }
.fallback-kicker { margin: 26px 0 7px; color: var(--mint); font-size: 9px; font-weight: 800; letter-spacing: 2px; }.video-fallback h2 { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 5vw, 32px); }
.video-shade { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(10, 14, 28, .8)); pointer-events: none; }
.video-message { position: absolute; right: 48px; bottom: 34px; left: 48px; z-index: 1; text-align: center; }.video-message p { margin: 0; font-family: var(--font-display); font-size: clamp(15px, 3.2vw, 22px); font-weight: 500; text-shadow: 0 2px 15px #10172a; }
.sound-button, .close-video { position: absolute; z-index: 2; top: 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 7px 10px; background: rgba(12, 18, 33, .6); color: white; font-size: 10px; }
.sound-button { right: 55px; }.close-video { right: 14px; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; font-size: 19px; }
.video-controls { display: flex; min-height: 64px; align-items: center; justify-content: space-between; padding: 10px 17px; }.video-controls > span { color: #aab6d0; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.secondary-button { min-height: 37px; gap: 12px; padding: 0 14px; font-size: 10px; }

.qr-dialog { width: min(900px, calc(100vw - 32px)); padding: 27px; }.qr-print-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }.qr-print-header .eyebrow { margin: 0 0 8px; color: var(--mint); }.qr-print-header h1 { margin: 0 0 7px; font-family: var(--font-display); font-size: 24px; letter-spacing: -.7px; }.qr-print-header p:not(.eyebrow) { max-width: 510px; margin-bottom: 0; color: #aeb8d0; font-size: 11px; line-height: 1.6; }.print-actions { display: flex; align-items: center; gap: 12px; }.qr-close { position: static; flex: 0 0 30px; }
.gallery-dialog { width: min(950px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; padding: 25px; background: #111a30; color: var(--ink); box-shadow: 0 20px 70px rgba(0, 0, 0, .45); }
.gallery-dialog-header { position: relative; display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding-right: 35px; }
.gallery-dialog-header .eyebrow { margin-bottom: 8px; color: var(--mint); }.gallery-dialog-header h2 { margin: 0 0 7px; font-family: var(--font-display); font-size: 23px; }.gallery-dialog-header p:last-child { margin: 0; color: #aab6d0; font-size: 11px; line-height: 1.5; }
.gallery-close { top: 0; right: 0; }
.gallery-dialog .video-gallery-grid { padding-bottom: 2px; }
.qr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 23px 0 13px; }.qr-card { display: flex; min-width: 0; flex-direction: column; align-items: center; border: 1px dashed rgba(184, 200, 233, .3); border-radius: 11px; padding: 14px 10px; background: #1a2440; text-align: center; }.qr-card img { width: 142px; height: 142px; border-radius: 6px; background: white; }.qr-card h2 { margin: 11px 0 5px; font-family: var(--font-display); font-size: 14px; }.qr-card p { margin: 0; color: #aab6d0; font-size: 9px; line-height: 1.5; }.qr-print-note { margin: 0; color: #9eaac4; font-size: 10px; }
.qr-card-start { border-color: rgba(145, 239, 196, .4); }.qr-card-finish { border-color: rgba(248, 215, 126, .42); }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 4; max-width: min(370px, calc(100vw - 48px)); transform: translateY(15px); border: 1px solid rgba(248, 215, 126, .3); border-radius: 10px; padding: 13px 16px; background: #282641; color: #fff2ca; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }.toast.is-visible { transform: translateY(0); opacity: 1; }
.video-dialog.is-finale .video-fallback { background: radial-gradient(ellipse at 50% 62%, rgba(248, 215, 126, .3), transparent 38%), radial-gradient(ellipse at 50% 65%, rgba(141, 112, 205, .42), transparent 54%), linear-gradient(150deg, #263c5c, #141b32 73%); }
.video-dialog.is-finale .video-fallback h2 { color: #ffe395; text-shadow: 0 0 25px rgba(248, 215, 126, .45); }
.video-dialog.is-finale .video-message p { color: #fff0c0; font-weight: 700; }
.is-hidden { display: none !important; }
@keyframes portal-pulse { 50% { transform: scale(1.05); box-shadow: 0 0 70px rgba(184, 146, 255, .72), inset 0 0 30px rgba(221, 202, 255, .7); } }

@media (max-width: 800px) {
  .app-shell { padding: 0 25px; }.hero { min-height: unset; grid-template-columns: 1fr 1fr; gap: 20px; padding: 43px 0 35px; }.hero-art { height: auto; aspect-ratio: 16 / 9; }.hero h1 { font-size: clamp(45px, 6vw, 58px); }.hero-description { font-size: 12px; }    .mission-strip { grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px 0; }.progress-caption { grid-column: 2; }.level-grid, .video-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.level-card { min-height: 145px; }.stage-experience-grid { grid-template-columns: 1fr; }.stage-details { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); align-items: stretch; }.stage-character { min-height: 220px; }
}
@media (max-width: 560px) {
  .app-shell { padding: 0 19px; }.topbar { height: 69px; }.wordmark { font-size: 8px; }.wordmark-icon { width: 29px; height: 29px; }.team-status { display: none; }.parent-menu summary, .print-link { font-size: 10px; }.parent-menu summary { padding-left: 0; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 25px; padding: 37px 0 27px; }.hero-copy { padding: 0; }.hero h1 { font-size: 54px; }.hero-description { max-width: 360px; }
  .mission-strip { grid-template-columns: 1fr auto; gap: 11px 17px; }.progress-track { grid-column: 1; grid-row: 2; }.progress-caption { grid-column: 2; grid-row: 2; }.mission-instructions { font-size: 10px; }.resource-heading { align-items: start; }.resource-heading > p { max-width: 135px; }.resource-inventory { gap: 5px; }.resource-item { min-height: 58px; grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; gap: 1px; padding: 4px 2px; font-size: 8px; }.resource-item-icon { font-size: 15px; }.resource-item-count { min-width: 19px; height: 19px; font-size: 9px; }.section-heading { display: block; }.section-heading h2 { font-size: 22px; }.section-heading > p { max-width: 310px; margin-top: 9px; }.levels-section { padding-top: 34px; }.level-grid, .video-gallery-grid { gap: 9px; }.level-card { min-height: 150px; padding: 14px 11px; }.card-top { margin-bottom: 14px; }.level-card h3 { font-size: 13px; }.video-gallery-card { padding: 8px; }.video-gallery-title { font-size: 11px; }.stage-experience { padding: 18px 14px; }.stage-heading h1 { font-size: 31px; }.stage-heading > p:last-child { font-size: 11px; }.stage-experience-grid { gap: 13px; }.stage-details { grid-template-columns: 1fr; }.stage-character { min-height: 150px; }.stage-character img { max-height: 180px; }.stage-activity { padding: 14px; }.team-tip { align-items: start; }.footer { font-size: 7px; letter-spacing: .8px; }
  .video-frame { min-height: 72vw; }.video-message { right: 19px; bottom: 25px; left: 19px; }.qr-dialog { padding: 18px; }.gallery-dialog { padding: 18px 14px; }.gallery-dialog-header h2 { font-size: 20px; }.qr-print-header { flex-direction: column; }.print-actions { width: 100%; justify-content: space-between; }.qr-cards { grid-template-columns: 1fr; }.qr-card { display: grid; grid-template-columns: 94px 1fr; justify-items: start; gap: 0 12px; text-align: left; }.qr-card img { width: 92px; height: 92px; grid-row: 1 / span 2; }.qr-card h2 { align-self: end; margin: 0 0 5px; }.qr-card p { align-self: start; }.qr-cards { max-height: 54vh; overflow-y: auto; }
}

@media print {
  @page { margin: 12mm; }
  body { min-width: 0; background: #fff; color: #111827; }.app-shell, .video-dialog, .toast { display: none !important; }.qr-dialog { position: static; display: block !important; width: auto; max-width: none; max-height: none; overflow: visible; border: 0; border-radius: 0; padding: 0; background: #fff; color: #111827; box-shadow: none; }.qr-dialog::backdrop { display: none; }.qr-print-header h1 { font-size: 23px; }.qr-print-header p:not(.eyebrow) { color: #4b5563; }.qr-print-header .eyebrow { color: #334155; }.qr-close, .print-actions .secondary-button { display: none; }.qr-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }.qr-card { min-height: 224px; border: 1px dashed #7b8495; background: #fff; break-inside: avoid; }.qr-card img { width: 145px; height: 145px; }.qr-card h2 { color: #111827; }.qr-card p, .qr-print-note { color: #374151; }.qr-print-note { margin-top: 10px; }.video-dialog { display: none !important; }
}
