:root {
  color-scheme: dark;
  --night-950: #03111f;
  --night-900: #071b2f;
  --night-800: #0c2a46;
  --night-700: #123b5c;
  --cream: #fff7dd;
  --snow: #f4fbff;
  --ice: #9ee8f2;
  --mint: #7fe1c3;
  --evergreen: #14745d;
  --berry: #b92e4d;
  --gold: #f4bd55;
  --gold-deep: #9b6423;
  --violet: #9b82e6;
  --ink: #102436;
  --shadow: 0 22px 60px rgb(0 8 18 / 38%);
  --focus: #fff2a9;
  --topbar-height: 72px;
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--night-950);
  color: var(--cream);
  font-family: "Trebuchet MS", "Avenir Next", Avenir, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
svg { display: block; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(14px, 3vw, 46px);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(4 18 32 / 87%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  gap: 11px;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 245 196 / 52%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff9cf, #efb747 45%, #92531f 100%);
  box-shadow: 0 0 24px rgb(244 189 85 / 35%);
}
.brand-mark svg { width: 22px; height: 22px; fill: #6b3a16; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 17px/1.05 Georgia, serif; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: var(--ice); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.utility-nav { display: flex; align-items: center; gap: 6px; }
.utility-button {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #e9f7ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.utility-button:hover { border-color: rgb(255 255 255 / 15%); background: rgb(255 255 255 / 7%); }
.utility-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.utility-button b {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
}
.directory-button { border-color: rgb(158 232 242 / 35%); background: rgb(158 232 242 / 8%); }
.board-announcement { max-width: 650px; margin: 9px auto 18px; color: #b9d7de; font-size: clamp(12px, 1.1vw, 15px); }
.today-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; text-align: left; }
.today-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 13px;
  background: linear-gradient(150deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 2%));
  color: #effbff;
  cursor: pointer;
}
.today-card:hover { border-color: rgb(244 189 85 / 58%); background: linear-gradient(150deg, rgb(244 189 85 / 13%), rgb(255 255 255 / 3%)); }
.today-card small { color: #7ddbc8; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.today-card strong { display: block; margin: 6px 0 5px; font: 800 15px/1.2 Georgia, serif; }
.today-card p { margin: 0; color: #a9c7d1; font-size: 11px; line-height: 1.35; }
.today-card-cta { margin-top: auto; padding-top: 8px; color: #ffd77d; font-size: 10px; font-weight: 900; }
.board-directory {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  background: #163748;
  color: #dff7fb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.board-directory svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.info-light { position: absolute; left: 15px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.section-heading { max-width: 730px; margin: 0 auto 38px; text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.section-heading h2, .grownups h2 { margin: 0; font: 800 clamp(30px, 4vw, 52px)/1.05 Georgia, serif; color: #fff3d1; }
.section-heading > p:last-child { color: #b5d3dc; }

.grownups { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; padding: clamp(54px, 7vw, 90px) clamp(22px, 7vw, 110px); background: var(--cream); color: var(--ink); }
.grownups h2 { color: #173149; }
.grownups ul { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 0; padding: 0; list-style: none; }
.grownups li { position: relative; min-height: 68px; padding: 15px 14px 15px 48px; border-radius: 16px; background: #e6f2ee; color: #1b423c; font-size: 13px; font-weight: 800; }
.grownups li::before { content: "✓"; position: absolute; left: 17px; top: 16px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #287966; color: white; }

footer { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 35px clamp(20px, 5vw, 72px); color: #9db9c3; }
footer p { max-width: 520px; font-size: 12px; }
footer button { min-height: 44px; padding: 9px 14px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 12px; background: transparent; color: #d5e7ec; cursor: pointer; }

dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(780px, calc(100dvh - 30px));
  padding: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 26px;
  overflow: auto;
  background: linear-gradient(145deg, #12384b, #071b2b);
  color: var(--cream);
  box-shadow: 0 28px 90px rgb(0 0 0 / 70%);
}
dialog::backdrop { background: rgb(0 8 16 / 76%); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 25px 25px 18px; background: rgb(10 38 54 / 94%); border-bottom: 1px solid rgb(255 255 255 / 10%); }
.dialog-header h2 { margin: 0; font: 800 clamp(25px, 4vw, 37px)/1.1 Georgia, serif; }
.icon-button { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 15%); border-radius: 50%; background: rgb(255 255 255 / 7%); color: white; cursor: pointer; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.dialog-intro, .journey-dialog > p { padding: 0 25px; color: #b8d2da; }
.directory-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 15px 25px 28px; }
.directory-item { min-height: 104px; display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; padding: 14px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 16px; background: rgb(255 255 255 / 5%); color: white; cursor: pointer; text-align: left; }
.directory-item:hover { border-color: rgb(244 189 85 / 50%); }
.directory-item svg { width: 36px; height: 36px; fill: none; stroke: var(--item-accent); stroke-width: 1.5; }
.directory-item strong, .directory-item small { display: block; }
.directory-item strong { font: 800 16px/1.15 Georgia, serif; }
.directory-item small { margin-top: 5px; color: #9abac4; }
.directory-district { min-width: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / 10%); border-radius: 18px; background: rgb(255 255 255 / 3%); }
.directory-district .directory-item { width: 100%; min-height: 88px; border: 0; border-radius: 0; background: transparent; }
.directory-district .directory-item:hover { background: rgb(255 255 255 / 4%); }
.directory-activity-list { display: grid; gap: 7px; padding: 0 10px 11px; }
.directory-activity-button { min-height: 58px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--item-accent) 38%, transparent); border-radius: 12px; background: rgb(0 0 0 / 18%); color: white; text-align: left; cursor: pointer; }
.directory-activity-button:hover, .directory-activity-button:focus-visible { border-color: var(--item-accent); background: color-mix(in srgb, var(--item-accent) 10%, rgb(0 0 0 / 20%)); }
.directory-activity-button strong, .directory-activity-button small { display: block; }
.directory-activity-button strong { font: 800 13px/1.18 Georgia, serif; }
.directory-activity-button small { margin-top: 3px; color: #a9c4cc; font-size: 9px; line-height: 1.3; }
.directory-activity-button b { color: var(--item-accent); font-size: 10px; white-space: nowrap; }
.journey-activity-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 8px 25px 6px; }
.journey-activity-card { min-height: 132px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 16px; background: rgb(255 255 255 / 5%); color: white; text-align: left; }
.journey-activity-card.is-playable { cursor: pointer; }
.journey-activity-card.is-playable:hover, .journey-activity-card.is-playable:focus-visible { border-color: rgb(244 189 85 / 58%); background: linear-gradient(145deg,rgb(244 189 85 / 10%),rgb(255 255 255 / 4%)); }
.journey-activity-card:disabled { opacity: .58; cursor: default; }
.journey-activity-card small, .journey-activity-card strong, .journey-activity-card p { display: block; }
.journey-activity-card small { color: #7ddbc8; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.journey-activity-card strong { margin-top: 5px; font: 800 16px/1.15 Georgia, serif; }
.journey-activity-card p { margin: 6px 0 0; color: #a9c7d1; font-size: 10px; line-height: 1.35; }
.journey-activity-card b { color: #ffd77d; font-size: 11px; white-space: nowrap; }
.passport-card { display: flex; gap: 18px; align-items: center; margin: 24px; padding: 22px; border: 2px solid #d1a857; border-radius: 20px; background: linear-gradient(135deg, #ebd898, #f8efcb); color: #23423d; }
.passport-card svg { width: 62px; height: 62px; fill: none; stroke: #426c63; stroke-width: 1.3; }
.passport-card p { margin: 6px 0 0; font-size: 12px; }
.stamp-list { min-height: 72px; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0 24px 24px; list-style: none; }
.stamp-list li { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 999px; background: rgb(255 255 255 / 6%); font-size: 12px; }
.text-button { min-height: 44px; margin: 0 24px 25px; padding: 8px 13px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px; background: transparent; color: #c4dbe2; cursor: pointer; }
.journey-notice[hidden] { display: none; }
.journey-notice { display: flex; gap: 15px; align-items: center; margin: 22px 25px 28px; padding: 18px; border-radius: 17px; background: rgb(126 225 195 / 10%); color: #bfe2d9; }
.journey-notice svg { flex: 0 0 auto; width: 35px; height: 35px; fill: var(--gold); }
.journey-notice p { margin: 0; font-size: 13px; }
.journey-notice strong { color: #f6e8bd; }
.toast { pointer-events: none; position: fixed; z-index: 90; left: 50%; bottom: 24px; max-width: min(430px, calc(100% - 28px)); padding: 13px 18px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 999px; background: #173f39; color: white; box-shadow: 0 15px 40px rgb(0 0 0 / 45%); font-weight: 800; text-align: center; transform: translate(-50%, 150%); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.noscript { position: fixed; z-index: 100; inset: auto 12px 12px; padding: 14px; border-radius: 12px; background: #7c2638; color: white; }

.accent-berry { --card-accent: #ee7189; --item-accent: #ee7189; --gate-accent: #ee7189; }
.accent-evergreen { --card-accent: #78ddbd; --item-accent: #78ddbd; --gate-accent: #78ddbd; }
.accent-ice { --card-accent: #81dce9; --item-accent: #81dce9; --gate-accent: #81dce9; }
.accent-gold { --card-accent: #f4bd55; --item-accent: #f4bd55; --gate-accent: #f4bd55; }
.accent-violet { --card-accent: #b19be9; --item-accent: #b19be9; --gate-accent: #b19be9; }

@media (max-width: 1050px) {
  .utility-button span { display: none; }
  .directory-button span { display: inline; }
  .today-card p { display: none; }
}

@media (max-width: 760px) {
  :root { --topbar-height: 64px; }
  .topbar { gap: 8px; padding: 8px 11px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .utility-nav { margin-left: auto; }
  .utility-button { min-width: 44px; padding: 7px; }
  .utility-button:nth-child(1), .utility-button:nth-child(2) { display: none; }
  .directory-button span { display: none; }
  .today-slots { grid-template-columns: 1fr; }
  .today-card { min-height: 88px; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
  .today-card small, .today-card strong { grid-column: 1; }
  .today-card strong { margin: 2px 0; }
  .today-card p { display: none; }
  .today-card-cta { grid-column: 2; grid-row: 1 / span 2; padding: 8px; border-radius: 9px; background: rgb(244 189 85 / 12%); }
  .board-directory { width: 100%; justify-content: center; }
  .grownups { grid-template-columns: 1fr; gap: 30px; }
  .grownups ul { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  .directory-list { grid-template-columns: 1fr; }
  .journey-activity-list { grid-template-columns: 1fr; padding-inline: 17px; }
  .directory-activity-button small { display: none; }
}

@media (max-width: 430px) {
  .brand > span:last-child { display: none; }
  .utility-button b { position: absolute; top: 3px; right: 1px; }
  .today-card-cta { max-width: 92px; text-align: center; }
  .directory-dialog, .passport-dialog, .journey-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .dialog-header { padding: 19px 17px 15px; }
  .dialog-intro, .journey-dialog > p { padding-inline: 17px; }
  .directory-list { padding-inline: 17px; }
  .passport-card { margin-inline: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.board-announcement { margin: 5px auto 9px; font-size: clamp(9px, .76vw, 12px); line-height: 1.25; }
.today-slots { gap: 6px; }
.today-card { min-height: 86px; padding: 9px; }
.today-card small { font-size: 7px; }
.today-card strong { margin: 3px 0; font-size: clamp(10px, .85vw, 14px); }
.today-card p { display: none; }
.today-card-cta { padding-top: 5px; font-size: 8px; }
.board-directory { min-height: 44px; margin-top: 8px; padding: 6px 10px; font-size: 10px; }

@media (max-width: 900px) and (orientation: portrait) {
  .board-clock, .board-announcement { display: none; }
  .today-slots { grid-template-columns: repeat(3, 1fr); gap: clamp(3px, .8vw, 7px); }
  .today-card {
    min-height: clamp(44px, 11vw, 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    text-align: center;
  }
  .today-card small, .today-card p, .today-card-cta { display: none; }
  .today-card strong { margin: 0; font-size: clamp(9px, 2vw, 12px); }
  .board-directory { width: 100%; min-height: 44px; margin-top: 5px; padding: 3px 7px; font-size: clamp(9px, 1.8vw, 11px); }
  .board-directory svg { width: 13px; height: 13px; }
}

@media (max-width: 430px) and (orientation: portrait) {
  .board-directory { min-height: 44px; }
}

@keyframes snow-wander {
  0% { transform: translate3d(0, -12px, 0) scale(.75); opacity: 0; }
  14% { opacity: .62; }
  55% { transform: translate3d(14px, 34px, 0) scale(1); opacity: .72; }
  100% { transform: translate3d(-8px, 78px, 0) scale(.7); opacity: 0; }
}

@keyframes discovery-glint {
  0%, 62%, 100% { transform: scale(.76); opacity: .28; }
  73% { transform: scale(1.12); opacity: .9; }
  82% { transform: scale(.9); opacity: .55; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .today-card-cta { display: none; }
  .today-card-status { margin-top: auto; }
}

/* The Today panel and destination links remain available when the illustrated station is retired. */
.today-dialog { width: min(790px, calc(100% - 24px)); padding-bottom: 22px; }
.today-dialog .today-meta { justify-content: flex-start; margin: 18px 25px 8px; }
.today-dialog .board-announcement { margin: 0 25px 18px; }
.today-dialog .today-slots { margin: 0 25px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.today-dialog .today-card { min-height: 150px; }
.today-dialog .board-directory { margin-left: 25px; }
#legacyDiscoveries[hidden] { display: none; }
.noscript { max-height: min(80dvh, 650px); overflow: auto; }
.fallback-destinations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; text-align: left; }
.fallback-destinations a { display: block; padding: 9px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(255,255,255,.09); color: #fff; font-size: 13px; text-decoration: none; }
.fallback-destinations a:hover, .fallback-destinations a:focus-visible { border-color: #f1ca65; }
@media (max-width: 600px) {
  .today-dialog .today-slots, .fallback-destinations { grid-template-columns: 1fr; }
  .today-dialog .today-card { min-height: 115px; }
}
