/* The last departure point keeps the original world and real game links. */
#begin .begin-content {
  position: relative;
}

#begin .begin-content::after {
  content: "";
  position: absolute;
  left: 7vw;
  bottom: 0;
  width: min(44%, 240px);
  height: 1px;
  background: linear-gradient(90deg, #efb27d80, #c8dedc26 70%, transparent);
  pointer-events: none;
}

#begin .begin-content .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #c3d6d3;
}

#begin .begin-content .eyebrow::before {
  content: "";
  width: 22px;
  height: 8px;
  flex-shrink: 0;
  background: repeating-linear-gradient(90deg, #efb27d 0 3px, transparent 3px 7px);
  transform: skewX(-20deg);
  pointer-events: none;
}

#begin .launch-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 1px #ffe1bb, inset 0 -4px #743c2859;
  transition: background .18s, box-shadow .18s, transform .15s;
}

#begin .launch-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px;
  border: 1px solid #623b2b3d;
  clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 19px, 100% 100%, 0 100%);
  pointer-events: none;
}

#begin .launch-cross {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  flex-shrink: 0;
  color: #ffd1a5;
  background: #163039;
  font-size: 24px;
  border-bottom: 2px solid #0a2027;
}

#begin .launch-power {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

#begin .launch-button > span:last-child {
  transition: transform .18s;
}

#begin .launch-button:is(:hover, :focus-visible) {
  background: #ffc38e;
  box-shadow: inset 0 0 0 2px #ffddb8, inset 0 -4px #743c2840;
}

#begin .launch-button:is(:hover, :focus-visible) > span:last-child {
  transform: translate(2px, -2px);
}

#begin .launch-button:focus-visible {
  outline: 2px solid #18323b;
  outline-offset: -8px;
}

#begin .launch-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 8px #743c2861;
}

#begin .continue-link {
  margin-top: 5px;
  border-bottom: 1px solid #b5cece3d;
}

#begin .continue-link:is(:hover, :focus-visible) { color: #ffcca0; }

#begin .site-footer {
  position: relative;
  background: #06161cbd;
  border-color: #a8cbc940;
}

#begin .site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 4.4%;
  width: 64px;
  height: 2px;
  background: #dba474;
  pointer-events: none;
}

#begin .site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

#begin .continue-link:focus-visible,
#begin .site-footer a:focus-visible {
  outline: 2px solid #aedfdc;
  outline-offset: 4px;
}

/* The header names the actual chapter; no separate page-state display is added. */
.scroll-nav a {
  position: relative;
  transition: color .18s;
}

.scroll-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #efb27d;
  opacity: 0;
  pointer-events: none;
}

.scroll-nav a[aria-current="location"] { color: #ffc08a; }
.scroll-nav a[aria-current="location"]::after { opacity: 1; }

.site-header .wordmark:focus-visible,
.site-header .menu-toggle:focus-visible,
.scroll-nav a:focus-visible {
  outline: 2px solid #b9e6df;
  outline-offset: 4px;
}

.site-header .header-play:focus-visible {
  outline: 2px solid #17323a;
  outline-offset: -6px;
}

/* One navigation manifest: chapters on the left, grouped game access on the right. */
.site-menu {
  background: #0a1e26;
  color: #f5f1e7;
}

.site-menu .menu-top {
  border-color: #9fc7c84d;
}

.site-menu .menu-close {
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid #a7c8c64d;
  background: #102b34;
}

.site-menu .menu-close:hover { background: #1a3b44; }

.site-menu .menu-content {
  gap: 8%;
}

.site-menu .menu-content .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b8d2cc;
  letter-spacing: .16em;
}

.site-menu .menu-content .eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: #dba474;
  flex-shrink: 0;
  pointer-events: none;
}

.site-menu .menu-chapters > a {
  min-height: 54px;
  border-bottom: 1px solid #98bcbd26;
  transition: color .18s, background .18s;
}

.site-menu .menu-chapters > a small {
  display: grid;
  place-items: center;
  min-width: 26px;
  min-height: 26px;
  border: 1px solid #98bcbd4d;
  color: #efb27d;
  font-variant-numeric: tabular-nums;
}

.site-menu .menu-chapters > a span { color: #a9c9c6; }
.site-menu .menu-chapters > a:is(:hover, :focus-visible) { background: #17333b; color: #ffd0a8; }

.site-menu .menu-game {
  padding-left: 28px;
  border-left: 1px solid #9bbfc03b;
}

.site-menu .menu-game > .light-button {
  min-height: 56px;
  border-left: 3px solid #efb27d;
  background: #e7e9dc;
  color: #183139;
}

.site-menu .menu-game > .light-button:is(:hover, :focus-visible) { background: #ffd0a5; }

.site-menu .menu-route-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  border-color: #9bbfc03b;
}

.site-menu .menu-route-group h3 {
  grid-column: 1 / -1;
  color: #d5b28b;
  letter-spacing: .12em;
}

.site-menu .menu-route-group a {
  min-height: 44px;
  padding: 10px 4px 10px 14px;
  border-bottom: 1px solid #92b4b41a;
  position: relative;
}

.site-menu .menu-route-group a::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 4px;
  background: #87bbb9;
  pointer-events: none;
}

.site-menu .menu-route-group a:is(:hover, :focus-visible) { color: #ffd0a8; background: #153039; }
.site-menu .menu-route-group a:is(:hover, :focus-visible)::before { background: #efb27d; }

.site-menu a:focus-visible,
.site-menu button:focus-visible {
  outline: 2px solid #b6e6df;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .scroll-nav a::after { left: 12px; right: 12px; }
  .scroll-nav a:focus-visible { outline-offset: -4px; }
  .site-menu .menu-game { padding-left: 20px; }
}

@media (max-width: 760px) {
  #begin .begin-content::after { left: 6vw; width: 46%; }
  #begin .begin-content .eyebrow { gap: 10px; }
  #begin .launch-cross { width: 32px; height: 36px; font-size: 21px; }
  #begin .launch-power { width: 29px; height: 29px; }
  #begin .site-footer::before { left: 6%; width: 45px; }
  .scroll-nav a::after { left: 8px; right: 8px; }
  .site-header .wordmark:focus-visible,
  .site-header .menu-toggle:focus-visible { outline-offset: 2px; }
  .site-menu .menu-game { padding-left: 0; border-left: 0; }
  .site-menu .menu-chapters > a { gap: 16px; }
  .site-menu .menu-content .eyebrow { gap: 8px; letter-spacing: .12em; }
  .site-menu .menu-route-group { gap: 0 14px; }
  .site-menu .menu-close { padding-inline: 9px; }
}

@media (max-width: 370px) {
  #begin .launch-button { gap: 9px; padding-inline: 14px; }
  #begin .launch-cross { width: 29px; height: 34px; }
  .site-menu .menu-chapters > a { font-size: 21px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #begin .launch-button,
  #begin .launch-button > span:last-child,
  .scroll-nav a,
  .site-menu .menu-chapters > a { transition: none; }
  #begin .launch-button:is(:hover, :focus-visible) > span:last-child,
  #begin .launch-button:active { transform: none; }
}
