:root {
  color-scheme: dark;
  --bg: #0b1317;
  --surface: #132329;
  --line: #344b50;
  --text: #eee9df;
  --muted: #a4b9bd;
  --copper: #c99a76;
  --chapter-art: url("assets/volt-clouds-dark.webp");
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
select,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
select:focus-visible {
  outline: 2px solid #ebbe98;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.shell-head {
  max-width: 720px;
  margin: auto;
  padding: calc(16px + env(safe-area-inset-top)) 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  color: var(--text);
  font:
    30px Georgia,
    serif;
  letter-spacing: 0.18em;
}
.wordmark span {
  display: block;
  color: var(--muted);
  font: 8px system-ui;
  letter-spacing: 0.19em;
  margin-top: 7px;
}
.quiet,
.info {
  border: 1px solid #876c5266;
  border-radius: 50%;
  background: #17282d;
  color: #dfb896;
  width: 44px;
  height: 44px;
  font-size: 21px;
}
.chapterbar {
  max-width: 720px;
  margin: auto;
  display: flex;
  align-items: center;
  padding: 0 22px 14px;
  gap: 10px;
}
.chapterbar label {
  font-size: 8px;
  letter-spacing: 0.16em;
  flex: 1;
  color: var(--muted);
}
select {
  display: block;
  width: 100%;
  font-size: 14px;
  background: transparent;
  border: 0;
  color: #e1bb99;
  padding: 8px 0;
  min-height: 40px;
  letter-spacing: 0;
}
.info {
  font-size: 22px;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
}
.landscape {
  max-width: 720px;
  height: 280px;
  margin: auto;
  position: relative;
  background:
    linear-gradient(
      180deg,
      #0b131722,
      transparent 22%,
      #0b131722 45%,
      #0b1317 100%
    ),
    var(--chapter-art);
  background-size: cover;
  background-position: center 52%;
}
.contour {
  padding: 20px 24px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #d2d4ce;
}
.hero-copy {
  position: absolute;
  bottom: 10px;
  left: 24px;
  right: 22px;
}
.hero-copy > p:first-child {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5bd98;
}
h1 {
  font:
    40px/1.08 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.035em;
  margin: 14px 0 18px;
}
h2 {
  font:
    26px Georgia,
    serif;
  margin: 8px 0 16px;
}
.hero-copy > p:last-child {
  color: #bdcdce;
  font-size: 13px;
  line-height: 1.5;
}
.home-content,
.content {
  max-width: 720px;
  margin: auto;
  padding: 15px 22px calc(24px + env(safe-area-inset-bottom));
}
.section-line {
  display: flex;
  justify-content: space-between;
  color: #93aaaf;
  font-size: 8px;
  letter-spacing: 0.12em;
  padding-bottom: 14px;
}
.route-card {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  border: 1px solid #425359;
  border-radius: 13px;
  background: linear-gradient(130deg, #1d3036, #122228);
  padding: 20px 15px;
  margin-bottom: 11px;
  text-align: left;
  color: var(--text);
}
.route-icon {
  font: 29px Georgia;
  color: #d9ad88;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.route-card > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.route-card small {
  display: block;
  color: #96aeb3;
  font-size: 7px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.route-card strong {
  font:
    24px Georgia,
    serif;
  display: block;
}
.route-card em {
  font: 12px system-ui;
  font-style: normal;
  color: #b1c2c5;
  white-space: nowrap;
}
.route-card strong + span {
  display: block;
  color: #b0c0c1;
  font-size: 10px;
  line-height: 1.4;
  margin-top: 8px;
}
.route-card b {
  color: #cd9f7b;
  font-weight: 400;
}
.primary,
.secondary,
.file-button {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 9px;
  min-height: 48px;
  border: 1px solid #826b55;
  background: #c99a76;
  color: #112128;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  margin: 12px 0;
}
.secondary,
.file-button {
  background: #182b31;
  color: #e0bd9d;
}
.meal-action {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 19px;
}
.meal-action span {
  font-size: 11px;
  font-weight: 400;
  align-self: center;
}
.logbook-link {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid #2a4047;
  color: #e4d8c8;
  font: 23px Georgia;
}
.logbook-link span {
  font: 12px system-ui;
  color: #aabec0;
}
.logbook-link b {
  margin-left: auto;
  font-size: 21px;
  font-weight: 400;
}
.signoff {
  color: #738f96;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-align: center;
  margin-top: 27px;
}
.area-nav {
  display: flex;
  max-width: 720px;
  margin: auto;
  border-block: 1px solid #2d454b;
  padding: 0 14px;
  background: #102027;
}
.area-nav button {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 13px 8px;
  color: #b2c5c6;
  min-height: 46px;
  font-size: 12px;
}
.area-nav button[aria-current="true"] {
  color: #e5b78e;
  border-bottom-color: #c99a76;
}
#frames {
  height: calc(100dvh - 213px - env(safe-area-inset-top));
  min-height: 400px;
}
iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1317;
}
body.in-progress #frames {
  height: 75dvh;
}
.content p,
#progressIntro p {
  font-size: 14px;
  line-height: 1.7;
  color: #b4c5c7;
}
.panel {
  padding: 20px;
  background: #14272d;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 24px 0;
}
.muted {
  font-size: 12px !important;
  color: #9eb2b5 !important;
}
.file-button input {
  display: block;
  margin: 10px auto 0;
  max-width: 100%;
  font-size: 12px;
}
#error {
  max-width: 680px;
  margin: 12px auto;
  background: #542f2c;
  color: #ffdfd5;
  border: 1px solid #b57567;
  padding: 14px;
  line-height: 1.5;
  font-size: 13px;
}
dialog {
  max-width: 480px;
  width: calc(100% - 28px);
  border: 1px solid #8d7159;
  background: #14272d;
  border-radius: 14px;
  padding: 25px;
  color: var(--text);
}
dialog p {
  line-height: 1.7;
  font-size: 14px;
}
dialog::backdrop {
  background: #030b0fdd;
}
#progressIntro {
  max-width: 680px;
  padding: 20px 22px;
  margin: auto;
}
#progressIntro h1 {
  font-size: 30px;
}
#achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#achievements span {
  border: 1px solid #53605a;
  border-radius: 7px;
  padding: 9px;
  color: #e1bd99;
  font-size: 11px;
}
.eyebrow {
  font-size: 9px !important;
  letter-spacing: 0.17em;
  color: #dbb18c !important;
}
@media (min-width: 760px) {
  .landscape {
    height: 320px;
    border-radius: 16px;
  }
  .hero-copy h1 {
    font-size: 48px;
  }
}
@media (max-width: 360px) {
  .shell-head,
  .chapterbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home-content {
    padding-left: 14px;
    padding-right: 14px;
  }
  .route-card {
    padding: 17px 11px;
    gap: 9px;
  }
  .route-card strong {
    font-size: 22px;
  }
  .route-card em {
    font-size: 11px;
  }
  .landscape {
    height: 240px;
  }
  h1 {
    font-size: 36px;
  }
}
