@font-face {
  font-family: "Barlow Condensed";
  src: url(/fonts/barlow-bold.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #120e22;
  --deep: #0e0c1b;
  --panel: #201831;
  --raised: #2a1d3b;
  --ink: #fff5fa;
  --muted: #d0c2d8;
  --pink: #ff65cd;
  --aqua: #63d9ff;
  --line: #57415e;
  --head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--night); color: var(--ink); font: 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--aqua); text-underline-offset: .22em; }
button, a, input, summary { touch-action: manipulation; }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }
main:focus { outline: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 1rem; top: -8rem; padding: .6rem 1rem; background: var(--aqua); color: var(--deep); z-index: 5; }
.skip:focus { top: .5rem; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4, .footbrand { font-family: var(--head); font-weight: 700; }
h2 { font-size: clamp(2.7rem, 4.25vw, 4.4rem); line-height: .99; letter-spacing: -.025em; margin: 0 0 15px; }
.sitehead { background: #100d1d; border-bottom: 1px solid #513052; }
.headinner, .footinner, .routeblock, .howblock {
  width: min(90%, 1390px); margin-inline: auto;
}
.headinner, .footinner { display: flex; align-items: center; justify-content: space-between; }
.headinner { min-height: 76px; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; flex: none; }
.wordmark, .footbrand {
  color: #ff8cda;
  font: italic 700 clamp(2rem, 3.75vw, 3rem)/1.12 var(--head);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: .012em;
  text-shadow: 1px 2px #8f285f, 0 0 .35em #ff36b66b;
}
.initial {
  font: inherit;
  font-size: 1.4625em;
  line-height: 1;
  color: #7de6ff;
  text-shadow: 1px 1px #12629a, 0 0 .28em #249eff78;
}
.headinner nav, .footlinks { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.headinner nav a, .footlinks a { font-size: .94rem; font-weight: 650; text-decoration: none; color: #f1e6f3; }
.headinner nav a:hover, .footlinks a:hover, .textlink:hover { color: var(--aqua); }
.headinner nav .passnav { border: 1px solid #a56d98; color: #ffd2e9; border-radius: 6px; padding: 8px 16px; display: flex; align-items: center; gap: .55rem; }
.passnav:hover { background: #322033; }
.passicon, .mapicon { flex: none; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; min-height: clamp(460px, 38vw, 655px); max-width: 1920px; margin: auto; background: #20102d; border-bottom: 1px solid #9e4377; }
.herophoto { position: absolute; inset: 0 0 0 24%; margin: 0; z-index: -2; overflow: hidden; }
.herophoto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 59%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#1c102a 2%,#23132f 23%,#24102ef7 30%,#21102ae8 36%,#21102aa8 44%,#21102a54 53%,transparent 67%),linear-gradient(0deg,#1b102e5c,transparent 23%); pointer-events: none; }
.heroleft { padding: clamp(44px,4.3vw,78px) 0; margin-left: max(5%, calc((100% - 1390px) / 2)); width: min(49%, 650px); }
.eyebrow, .meta { font: 700 .81rem/1.4 var(--body); text-transform: uppercase; letter-spacing: .13em; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--aqua); margin: 0 0 12px; }
.roadstripes { width: 25px; height: 10px; display: inline-block; transform: skew(-22deg); flex: none; background: repeating-linear-gradient(90deg,var(--aqua) 0 4px,transparent 4px 9px); }
h1 { text-transform: uppercase; margin: 14px 0 22px; font-size: clamp(3.1rem, 7.05vw, 6.6rem); line-height: .94; letter-spacing: -.033em; }
h1 span, h1 em { display: block; width: max-content; }
h1 span { color: #effaff; }
h1 em { font-style: normal; padding-right: .08em; transform: skewX(-8deg); transform-origin: bottom left; color: #ff89c8; text-shadow: 2px 3px 0 #8e296b, 0 0 .17em #ff38b595, 0 0 .4em #ff56bd3d; }
.lede { font-size: clamp(1rem, 1.15vw, 1.18rem); line-height: 1.55; max-width: 37ch; color: #f1e5f4; margin: 0 0 26px; }
.herobuttons, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 25px; }
.btn { border: 1px solid transparent; border-radius: 5px; font: 750 1rem/1.2 var(--body); min-height: 46px; padding: 12px 21px; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; text-align: center; transition: background .15s, box-shadow .15s; }
.coral, .dark { background: var(--pink); color: #250d2b; }
.coral:hover, .dark:hover { background: #ff9bd2; box-shadow: 0 0 22px #ff50aa35; }
.hero .coral { box-shadow: 0 0 19px #ff43bd60; }
.outline { background: transparent; border-color: var(--aqua); color: var(--aqua); }
.outline:hover { background: #273443; }
.btn:disabled { opacity: .65; cursor: wait; }
.textlink { color: #fff4fc; text-decoration-color: #ff9fd1; text-underline-offset: 6px; font-weight: 700; font-size: .96rem; }
.routeblock, .howblock { padding-block: clamp(35px,4.25vw,70px); }
.secthead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.secthead .eyebrow, .howblock .eyebrow { margin-bottom: 6px; }
.secthead h2 { margin-bottom: 0; }
.maplink { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; font-size: .95rem; font-weight: 700; padding: .5rem 0; }
.maplink:hover { text-decoration: underline; }
.routegrid { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 29px 0 0; }
.routegrid li { display: flex; flex-direction: column; align-items: flex-start; position: relative; min-width: 0; padding-right: 20px; }
.routegrid li::before { content: ""; position: absolute; height: 2px; top: 17px; left: 22px; right: 0; background: linear-gradient(90deg,#f46dce,#8b83ed 55%,#51bcff); }
.routegrid li:last-child::before { display: none; }
.routeindex { color: var(--aqua); background: #182135; border: 1px solid #60c7c5; border-radius: 50%; font: 700 1.1rem/32px var(--head); width: 35px; height: 35px; text-align: center; z-index: 1; }
.routegrid li:first-child .routeindex { background: var(--pink); color: #270b29; border-color: var(--pink); box-shadow: 0 0 14px #fb58a333; }
.routegrid .meta { color: #cfa9c9; font-size: .765rem; letter-spacing: .095em; margin: 14px 0 5px; }
.routegrid h3 { margin: 0 0 6px; font-size: clamp(1.6rem,2vw,2.15rem); line-height: 1; }
.routegrid p { color: var(--muted); font-size: 1rem; line-height: 1.48; max-width: 30ch; margin: 0; }
.howblock { border-top: 1px solid var(--line); display: grid; grid-template-columns: .87fr 1fr; gap: 8%; align-items: center; }
.howphoto { background: #291c36; padding: 9px; border: 1px solid #775576; transform: rotate(-1.5deg); box-shadow: 5px 6px 0 #36223f; }
.howphoto img { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; display: block; }
.howphoto p { color: #e0cadd; font-size: .83rem; margin: 8px 5px 1px; }
.howlist { padding-left: 1.4rem; }
.howlist li { margin-bottom: 10px; color: #e1d6e6; }
.howlist li::marker { color: var(--pink); font-weight: 700; }
.howlist b { color: var(--ink); }
.muted, .small { color: var(--muted); }
.small { font-size: .9rem; }
footer { background: var(--deep); border-top: 1px solid #412c4b; }
.footinner { min-height: 75px; padding-block: 18px; gap: 16px; }
.footbrand { font-size: clamp(1.15rem, 4.2vw, 1.48rem); }
.footlinks { gap: 20px; }
#screen { width: min(92%,1060px); margin: auto; min-height: 68vh; padding: clamp(24px,3.7vw,55px) 0 55px; }
.gamewrap { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(215px,.75fr); align-items: start; gap: clamp(16px,2.5vw,32px); }
.sheet, .aside { border-radius: 9px; border: 1px solid var(--line); }
.sheet { background: linear-gradient(130deg,#1c2041,var(--panel) 70%); box-shadow: -3px 0 18px #368dff15, 0 -3px 16px #ff49c81f; padding: clamp(22px,3vw,40px); border-top: 3px solid var(--pink); }
.sheet h2 { text-shadow: 0 0 .28em #4583fa55; font-size: clamp(2.6rem,4.2vw,4.4rem); }
.sheet h3, .aside h3 { font-size: 1.65rem; margin: 17px 0 8px; line-height: 1.1; }
.aside { padding: 23px; background: #191829; border-color: #454251; }
.aside p { font-size: 1rem; }
.aside h3:first-child { margin-top: 0; }
.back, .linkbutton { border: 0; padding: 5px 0; background: none; color: var(--aqua); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.back { display: inline-block; margin-bottom: 16px; }
.clue { font-size: clamp(1.08rem,1.4vw,1.23rem); line-height: 1.55; margin-bottom: 21px; color: #f7edf6; }
.formlabel { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 7px; }
.entry { display: flex; gap: 9px; align-items: stretch; }
.entry input { flex: 1; min-width: 0; border: 1px solid #966d93; border-radius: 4px; padding: 10px 12px; color: var(--ink); background: #14101f; caret-color: var(--aqua); }
.entry input::placeholder { color: #bcaac1; }
.feedback, #storage-note { color: #ffb3d2; }
.feedback { font-weight: 650; margin: 9px 0 0; }
.feedback:empty { display: none; }
.hints { margin-top: 25px; }
.hintbox { border-top: 1px solid var(--line); padding: 12px 0; }
.hintbox summary { color: var(--aqua); cursor: pointer; font-weight: 650; }
.hintbox p { margin: 8px 0 0; }
.reveal, .notice { border-radius: 5px; padding: 15px 18px; }
.reveal { background: #182e32; border: 1px solid #3e7b77; margin: 18px 0; }
.reveal b { color: #a0fbe5; }
.notice { background: #36213b; border: 1px solid #865178; }
.notice b { color: #ffb5db; }
.reveal p:last-child, .notice p:last-child { margin-bottom: 0; }
.stampstrip { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 15px; }
.stamp { display: grid; place-items: center; width: 39px; height: 43px; border-radius: 6px; border: 1px dashed #a084a7; font: 700 1.6rem var(--head); color: #c9b8cd; }
.stamp.on { color: #2c1330; background: var(--pink); border: 1px solid var(--pink); }
.progresslist { list-style: none; padding: 0; margin: 0; }
.progresslist li { border-top: 1px solid var(--line); }
.progresslist a { display: flex; gap: 10px; align-items: center; padding: 10px 1px; font-size: .96rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.progresslist a[aria-current] { text-decoration: underline; text-decoration-color: var(--pink); }
.stopdot { display: grid; place-items: center; border: 1px solid #a084a7; border-radius: 50%; width: 23px; height: 23px; font-size: .81rem; }
.stopdot.on { background: var(--aqua); color: #15252a; border-color: var(--aqua); }
.mediafield { display: block; border: 1px dashed #927e99; padding: 13px; border-radius: 5px; background: var(--night); margin: 9px 0 15px; }
.mediafield input { max-width: 100%; display: block; margin-top: 6px; font-size: .9rem; }
.mediafield input::file-selector-button { border: 1px solid #947e98; border-radius: 3px; background: var(--raised); color: var(--ink); padding: 5px 9px; }
.crewshot { display: block; width: 100%; max-height: 340px; object-fit: contain; background: var(--deep); }
.rowlinks { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.shotgrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.shotgrid figure { margin: 0; background: var(--raised); padding: 8px; }
.shotgrid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.shotgrid figcaption, #storage-note { font-size: .9rem; }
.source-list { padding-left: 1.2rem; }
.source-list li { margin-bottom: 8px; }
.plain { max-width: 790px; }
.accessblock { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
@media(max-width: 880px) {
  .hero { min-height: 445px; }
  .heroleft { width: 52%; }
  h1 { font-size: clamp(3rem,7.6vw,4.4rem); }
  .lede { max-width: 31ch; }
  .routegrid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .routegrid li:nth-child(2)::before { display: none; }
  .howblock { gap: 6%; }
}
@media(max-width: 650px) {
  .headinner { min-height: 63px; }
  .brand { gap: 7px; }
  .brand img { width: 36px; height: 36px; }
  .headinner nav { gap: 12px; }
  .headinner nav a { font-size: .9rem; }
  .headinner nav a:nth-child(2) { display: none; }
  .headinner nav .passnav { padding: 7px 10px; gap: 5px; }
  .passicon { width: 16px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero::before { display: none; }
  .heroleft { position: relative; z-index: 1; width: 90%; margin: 0 auto; padding: 30px 0 17px; }
  .hero { background: linear-gradient(120deg,#21122d,#2b1436 72%,#40203f); }
  .heroleft .eyebrow { font-size: .74rem; gap: 8px; margin-bottom: 12px; }
  .roadstripes { width: 20px; height: 8px; }
  h1 { font-size: clamp(2.3rem,14vw,5.1rem); margin: 12px 0 18px; }
  .lede { max-width: 40ch; margin-bottom: 18px; }
  .herobuttons { gap: 12px 19px; }
  .herophoto { position: relative; inset: auto; z-index: 0; height: clamp(180px,48vw,278px); }
  .herophoto img { object-position: center 57%; }
  .herophoto::before { content: ""; position: absolute; inset: 0 0 auto; height: 20%; background: linear-gradient(180deg,#29163188,transparent); }
  .secthead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .maplink { padding: 5px 0; }
  .routegrid { margin-top: 20px; gap: 24px 0; }
  .routegrid li { padding-right: 13px; }
  .routegrid p { font-size: .95rem; }
  .routegrid .meta { font-size: .74rem; }
  .howblock { display: flex; flex-direction: column-reverse; gap: 30px; align-items: stretch; }
  .howphoto { width: 96%; align-self: center; }
  .footinner { flex-wrap: wrap; gap: 7px 17px; }
  .footlinks { gap: 14px; }
  .footlinks a { font-size: .87rem; }
  .gamewrap { grid-template-columns: minmax(0,1fr); }
  .aside, .sheet { padding: 19px; }
  .entry { flex-wrap: wrap; }
  .entry input { min-width: min(145px,100%); }
}
@media(max-width: 355px) {
  .headinner nav { gap: 8px; }
  .passicon { display: none; }
  .routegrid { grid-template-columns: 1fr; }
  .routegrid li { padding-left: 47px; }
  .routeindex { position: absolute; top: 0; left: 0; }
  .routegrid li::before { display: none; }
  .routegrid .meta { margin-top: 0; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.direction { margin: 1.2rem 0; border:0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem 1.15rem; }
.direction legend { font-weight:700; color:var(--muted); padding:0; margin-bottom:.35rem; }
.direction label { cursor:pointer; padding:.35rem 0; } .direction input {accent-color:var(--pink);}
.editions {border-top:1px solid var(--line); width:min(90%,1390px); margin:auto; padding-block:clamp(32px,4vw,64px);}
.editiongrid {display:grid;gap:1.5rem;grid-template-columns:repeat(3,1fr);margin:1.3rem 0;}
.editiongrid h3 {font-size:1.5rem;margin-bottom:.3rem;color:var(--pink);}
.editiongrid p {max-width:38ch;margin:0;color:var(--muted);}
.sample-frame { width:100%; height:clamp(10.5rem,36vw,18rem); overflow:hidden; background:var(--deep); margin:0 0 1rem; border-radius:.3rem; }
.sample-frame img {width:100%;height:100%;object-fit:cover;} .sample-frame.detail img {transform:scale(1.8); transform-origin:48% 45%;}
@media(max-width:650px){.editiongrid{grid-template-columns:1fr;gap:1rem;}.direction{gap:.4rem .9rem;}}
@media (max-width: 820px) {
  .wordmark { font-size: clamp(1.2rem, calc(8.6vw - 6px), 2.7rem); }
  .headinner { flex-wrap: wrap; gap: .25rem; padding-block: .6rem .4rem; }
  .headinner .brand { min-height: 2rem; flex-basis: 100%; }
  .headinner nav { width: 100%; gap: 1rem; }
  .headinner nav a:nth-child(2) { display: inline-flex; }
  .headinner nav .passnav { margin-left: auto; }
}

.preview-choices { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }

.routegrid .stop-preview { display: inline-block; margin-top: .6rem; color: var(--aqua); }
@media (min-width: 851px) { .routegrid { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 1.4rem; } }
