:root {
  --color-sand: #d7c2a3;
  --color-sand-deep: #b89a6b;
  --color-pergament: #f4ecdc;
  --color-gold: #c7a24a;
  --color-gold-soft: rgba(199, 162, 74, 0.2);
  --color-turquoise: #2f8f97;
  --color-brown: #4a3423;
  --color-brown-soft: rgba(74, 52, 35, 0.72);
  --color-ink: #20170f;
  --color-white: #fffdf8;
  --shadow-soft: 0 18px 48px rgba(45, 29, 12, 0.18);
  --shadow-strong: 0 28px 80px rgba(27, 16, 8, 0.24);
  --radius-card: 24px;
  --radius-pill: 999px;
  --content-width: 1200px;
  --nav-height: 84px;
  --transition-base: 220ms ease;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top, rgba(255, 248, 229, 0.95), rgba(244, 236, 220, 0.72) 45%, rgba(215, 194, 163, 0.9) 100%),
    linear-gradient(160deg, #f7f0df 0%, #ead9bb 52%, #d2b98b 100%);
}

body.page-has-hero {
  background-color: #1e1914;
}

.access-pending {
  overflow: hidden;
}

.page-home {
  background:
    linear-gradient(180deg, #24170f 0%, #f3e6d0 34%, #ead8b3 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(19, 13, 9, 0.08), rgba(19, 13, 9, 0.34)),
    radial-gradient(circle at top, rgba(255, 232, 171, 0.1), transparent 42%);
  backdrop-filter: blur(6px);
}

.access-gate-dialog {
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid rgba(255, 241, 204, 0.28);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(95, 67, 34, 0.26), rgba(51, 35, 20, 0.14)),
    rgba(247, 234, 205, 0.18);
  box-shadow: 0 22px 54px rgba(23, 15, 9, 0.2);
  color: var(--color-white);
}

.access-gate-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  text-align: center;
}

.access-gate-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 20px;
}

.access-gate-input,
.access-gate-submit {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 241, 204, 0.3);
  border-radius: 18px;
  font: inherit;
}

.access-gate-input {
  background:
    linear-gradient(180deg, rgba(255, 244, 219, 0.14), rgba(255, 244, 219, 0.06)),
    rgba(72, 50, 28, 0.14);
  color: var(--color-white);
}

.access-gate-input::placeholder {
  color: rgba(255, 248, 229, 0.66);
}

.access-gate-input:focus {
  outline: none;
  border-color: rgba(255, 236, 183, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 236, 183, 0.12);
}

.access-gate-input[aria-invalid="true"] {
  border-color: rgba(255, 183, 143, 0.78);
}

.access-gate-submit {
  background: linear-gradient(135deg, #d2ac57 0%, #f0d288 100%);
  color: #34230f;
  cursor: pointer;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base);
}

.access-gate-submit:hover,
.access-gate-submit:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 236, 183, 0.58);
}

.access-gate-error {
  margin: 12px 0 0;
  color: #ffe2cb;
  line-height: 1.5;
}

.site-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 24px), var(--content-width));
  min-height: var(--nav-height);
  padding: 14px 20px;
  border: 1px solid rgba(255, 248, 229, 0.18);
  border-radius: 999px;
  background: rgba(43, 30, 18, 0.84);
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
}

.site-nav-home {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.site-nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  min-height: 0;
  margin: 22px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    backdrop-filter var(--transition-base);
  pointer-events: auto;
}

.site-nav-home.is-scrolled .site-nav-bar,
.site-nav-home.is-open .site-nav-bar {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-brand-home {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 180px), 520px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.site-brand-logo {
  width: min(100%, 440px);
  max-height: 78px;
  object-fit: contain;
  filter:
    drop-shadow(0 4px 10px rgba(41, 23, 8, 0.22))
    drop-shadow(0 10px 22px rgba(30, 17, 7, 0.14))
    drop-shadow(0 0 18px rgba(255, 235, 184, 0.18));
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.site-nav-home.is-below-hero .site-brand-home {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  pointer-events: none;
}

.site-nav-home.is-below-hero .site-brand-logo {
  opacity: 0;
  transform: translateY(-6px);
}

.nav-toggle {
  display: inline-flex;
  position: relative;
  width: 50px;
  height: 50px;
  margin-left: clamp(12px, 4vw, 32px);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 245, 216, 0.84);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(126, 91, 49, 0.38), rgba(84, 58, 31, 0.28)),
    rgba(255, 245, 222, 0.12);
  box-shadow: 0 14px 32px rgba(27, 16, 8, 0.16);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle-line:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle-line:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle-line:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-brand-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 244, 214, 0.82);
}

.site-brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-nav-links-home {
  position: absolute;
  top: 74px;
  left: clamp(12px, 4vw, 32px);
  transform: none;
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  width: min(calc(100% - 24px), 300px);
  margin: 10px auto 0;
  padding: 14px;
  border: 1px solid rgba(255, 243, 210, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(115, 81, 42, 0.38), rgba(71, 49, 28, 0.24)),
    rgba(244, 225, 187, 0.22);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.site-nav-home.is-open .site-nav-links-home {
  display: grid;
}

.site-nav-link {
  padding: 11px 14px;
  border-radius: 18px;
  color: rgba(255, 250, 238, 0.96);
  font-size: 1rem;
  text-align: left;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  background: rgba(255, 243, 214, 0.16);
  color: var(--color-white);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 124px 24px 56px;
  color: var(--color-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.2) 0%, rgba(12, 10, 8, 0.58) 48%, rgba(12, 10, 8, 0.85) 100%),
    radial-gradient(circle at 20% 20%, rgba(47, 143, 151, 0.22), transparent 32%);
  pointer-events: none;
}

.page-home .hero::before {
  background:
    linear-gradient(90deg, rgba(16, 11, 8, 0.76) 0%, rgba(16, 11, 8, 0.54) 30%, rgba(16, 11, 8, 0.14) 58%, rgba(16, 11, 8, 0.08) 100%),
    linear-gradient(180deg, rgba(16, 11, 8, 0.18) 0%, rgba(16, 11, 8, 0.34) 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: calc(100vh - 180px);
  max-width: var(--content-width);
  margin: 0 auto;
}

.page-home .hero-content {
  align-content: end;
  min-height: calc(100vh - 60px);
}

.page-home .hero-background {
  object-position: 64% center;
}

.page-day .hero-content {
  align-content: end;
  min-height: calc(100vh - 220px);
}

.page-day .hero-day {
  min-height: 84vh;
  padding-bottom: 34px;
}

.page-day .site-brand-logo {
  max-height: 70px;
}

.page-day .hero::before {
  background:
    linear-gradient(180deg, rgba(16, 11, 8, 0.03) 0%, rgba(16, 11, 8, 0.12) 62%, rgba(16, 11, 8, 0.2) 100%);
}

.hero-panel {
  width: min(100%, 640px);
  padding: 28px;
  border: 1px solid rgba(255, 248, 229, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(30, 22, 15, 0.82), rgba(30, 22, 15, 0.64));
  box-shadow: var(--shadow-strong);
}

.home-hero-panel {
  width: min(100%, 700px);
  padding: 34px 32px 30px;
  border-color: rgba(255, 232, 171, 0.22);
  background:
    linear-gradient(180deg, rgba(27, 19, 13, 0.78), rgba(27, 19, 13, 0.58)),
    radial-gradient(circle at top left, rgba(199, 162, 74, 0.14), transparent 40%);
}

.hero-home {
  min-height: 100vh;
  padding: 0 24px 28px;
}

.home-hero-minimal {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: min(100%, 420px);
  margin-bottom: 22px;
}

.home-hero-kicker {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(22, 15, 11, 0.32);
  color: rgba(255, 243, 204, 0.94);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.home-hero-button {
  min-width: 220px;
}

.access-reset-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 245, 222, 0.86);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.access-reset-button:hover,
.access-reset-button:focus-visible {
  color: var(--color-white);
}

.page-home .khepri-anchor {
  right: 24px;
  bottom: 22px;
  width: auto;
}

.page-home .khepri-character {
  width: 88px;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f6df9f;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 0.96;
  text-wrap: balance;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 248, 229, 0.9);
}

.page-home .hero-text {
  max-width: 35rem;
  color: rgba(255, 248, 229, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.button-primary {
  background: linear-gradient(135deg, #d2ac57 0%, #f0d288 100%);
  color: #34230f;
  box-shadow: 0 14px 30px rgba(199, 162, 74, 0.24);
}

.button-secondary {
  border-color: rgba(255, 248, 229, 0.28);
  background: rgba(255, 248, 229, 0.08);
  color: var(--color-white);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
}

.content-section {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 36px 24px 72px;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.section-card {
  padding: 28px;
  border: 1px solid rgba(74, 52, 35, 0.08);
  border-radius: var(--radius-card);
  background: rgba(255, 252, 245, 0.82);
  box-shadow: var(--shadow-soft);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  color: var(--color-brown);
}

.section-text {
  margin: 0;
  max-width: 44rem;
  line-height: 1.7;
  color: rgba(32, 23, 15, 0.82);
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.placeholder-tile {
  min-height: 180px;
  padding: 20px;
  border: 1px dashed rgba(74, 52, 35, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(47, 143, 151, 0.08), rgba(199, 162, 74, 0.08)),
    rgba(255, 252, 245, 0.72);
}

.placeholder-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--color-brown);
}

.placeholder-text {
  margin: 0;
  line-height: 1.6;
  color: rgba(32, 23, 15, 0.74);
}

.day-panel-stations {
  background:
    radial-gradient(circle at top right, rgba(199, 162, 74, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(246, 237, 221, 0.94));
}

.placeholder-grid-stacked {
  grid-template-columns: 1fr;
  gap: 14px;
}

.placeholder-tile-station {
  position: relative;
  min-height: 0;
  padding: 18px 18px 18px 68px;
  border-style: solid;
  border-color: rgba(199, 162, 74, 0.18);
  border-width: 1px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(246, 237, 220, 0.92));
  box-shadow: 0 12px 26px rgba(130, 95, 40, 0.08);
}

.placeholder-step {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(222, 186, 99, 0.96), rgba(242, 214, 145, 0.94));
  color: rgba(66, 43, 17, 0.92);
  font-weight: 800;
  box-shadow:
    0 8px 18px rgba(139, 103, 38, 0.18),
    inset 0 1px 0 rgba(255, 247, 218, 0.66);
}

.journey-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-home .journey-ribbon {
  margin-top: 22px;
}

.journey-stop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 248, 229, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 248, 229, 0.08);
  color: rgba(255, 248, 229, 0.92);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.page-home .hero-facts {
  margin-top: 22px;
}

.hero-fact {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 248, 229, 0.08);
  border: 1px solid rgba(255, 248, 229, 0.12);
}

.hero-fact-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 232, 171, 0.88);
}

.hero-fact-value {
  display: block;
  font-size: 1rem;
  color: var(--color-white);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.portal-card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(74, 52, 35, 0.08);
  background:
    radial-gradient(circle at top right, rgba(47, 143, 151, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(244, 236, 220, 0.92));
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.portal-card:hover,
.portal-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(45, 29, 12, 0.16);
}

.portal-card-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--color-brown);
}

.portal-card-text {
  margin: 0;
  line-height: 1.65;
  color: rgba(32, 23, 15, 0.76);
}

.portal-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--color-turquoise);
  font-weight: 700;
}

.portal-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
}

.portal-card-links .portal-card-link {
  margin-top: 0;
}

.route-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.feature-kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.72);
}

.countdown-card,
.glyph-card {
  height: 100%;
}

.language-card,
.voice-card {
  height: 100%;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.countdown-box {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 18px 12px 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(242, 209, 125, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 249, 234, 0.98), rgba(248, 238, 211, 0.94));
  border: 1px solid rgba(191, 144, 47, 0.18);
}

.countdown-value {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(70, 46, 24, 0.96);
}

.countdown-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.78);
}

.countdown-note {
  margin: 18px 0 0;
  line-height: 1.6;
  color: rgba(79, 57, 33, 0.8);
}

.glyph-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 24px;
}

.glyph-input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(122, 93, 54, 0.16);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.9);
  color: rgba(54, 35, 18, 0.94);
  font: inherit;
}

.glyph-input:focus {
  outline: none;
  border-color: rgba(199, 162, 74, 0.42);
  box-shadow: 0 0 0 3px rgba(199, 162, 74, 0.12);
}

.glyph-button {
  min-width: 140px;
}

.glyph-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.glyph-preset {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(122, 93, 54, 0.14);
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.72);
  color: rgba(79, 57, 33, 0.82);
  cursor: pointer;
}

.glyph-output {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 132px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(47, 143, 151, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(244, 236, 220, 0.92));
  border: 1px solid rgba(74, 52, 35, 0.08);
}

.glyph-tile {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 58px;
  padding: 10px 8px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(242, 209, 125, 0.14), transparent 48%),
    rgba(255, 252, 245, 0.92);
  border: 1px solid rgba(191, 144, 47, 0.16);
}

.glyph-symbol {
  font-size: 1.8rem;
  line-height: 1;
  color: rgba(70, 46, 24, 0.96);
}

.glyph-letter {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.82);
}

.glyph-space {
  width: 18px;
  height: 1px;
}

.glyph-spellout {
  margin: 14px 0 0;
  line-height: 1.55;
  color: rgba(79, 57, 33, 0.82);
}

.language-toolbar,
.voice-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 24px;
}

.language-input,
.voice-input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(122, 93, 54, 0.16);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.9);
  color: rgba(54, 35, 18, 0.94);
  font: inherit;
}

.language-input:focus,
.voice-input:focus {
  outline: none;
  border-color: rgba(199, 162, 74, 0.42);
  box-shadow: 0 0 0 3px rgba(199, 162, 74, 0.12);
}

.language-actions,
.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.language-presets,
.voice-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.language-preset,
.voice-preset {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(122, 93, 54, 0.14);
  border-radius: 999px;
  background: rgba(255, 249, 238, 0.72);
  color: rgba(79, 57, 33, 0.82);
  cursor: pointer;
}

.language-output-panel,
.voice-output-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(47, 143, 151, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(244, 236, 220, 0.92));
  border: 1px solid rgba(74, 52, 35, 0.08);
}

.arabic-script,
.voice-chant {
  margin: 0;
  color: rgba(70, 46, 24, 0.96);
}

.arabic-script {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
  font-family: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.voice-chant-label {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.72);
}

.voice-chant {
  font-size: clamp(1.25rem, 2.9vw, 1.8rem);
  line-height: 1.5;
  word-break: break-word;
}

.language-phonetic,
.language-status {
  margin: 12px 0 0;
  line-height: 1.6;
  color: rgba(79, 57, 33, 0.82);
}

.language-status {
  font-size: 0.95rem;
}

.language-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(132, 94, 43, 0.7);
}

.route-panel {
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(74, 52, 35, 0.94), rgba(51, 35, 24, 0.9));
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.route-panel-title {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  line-height: 1.08;
}

.travel-map {
  position: relative;
  margin-top: 18px;
}

.travel-map-canvas {
  position: relative;
  min-height: 252px;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.08), rgba(255, 249, 236, 0.02)),
    rgba(255, 248, 229, 0.05);
  border: 1px solid rgba(255, 248, 229, 0.12);
}

.travel-map-canvas::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 248, 229, 0.08);
}

.travel-map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.92;
  filter: saturate(0.92) contrast(1.02);
}

.travel-map-land,
.travel-map-river,
.travel-map-segment {
  display: none;
}

.travel-map-marker {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 48px;
  transform: translate(-50%, -50%);
}

.travel-map-marker--duesseldorf { left: 15%; top: 21%; }
.travel-map-marker--hurghada { left: 57%; top: 74%; }
.travel-map-marker--luxor { left: 64%; top: 60%; }
.travel-map-marker--nil { left: 66.5%; top: 54%; }
.travel-map-marker--edfu { left: 68.5%; top: 48%; }
.travel-map-marker--komombo { left: 70.5%; top: 42%; }
.travel-map-marker--assuan { left: 73%; top: 35%; }
.travel-map-marker--kairo { left: 80%; top: 24%; }

.travel-map-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 248, 229, 0.58);
  border: 2px solid rgba(255, 248, 229, 0.5);
  box-shadow: 0 0 0 6px rgba(255, 248, 229, 0.06);
}

.travel-map-marker.is-active .travel-map-dot,
.travel-map-marker.is-current .travel-map-dot {
  width: 16px;
  height: 16px;
  background: #f0d48c;
  border-color: rgba(116, 78, 24, 0.78);
  box-shadow:
    0 0 0 7px rgba(240, 212, 140, 0.2),
    0 0 22px rgba(240, 212, 140, 0.28);
}

.travel-map-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26, 18, 12, 0.76);
  border: 1px solid rgba(255, 248, 229, 0.12);
  color: rgba(255, 248, 229, 0.92);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.travel-map-marker--duesseldorf .travel-map-label { transform: translateX(-10px); }
.travel-map-marker--hurghada .travel-map-label { transform: translateX(6px); }
.travel-map-marker--luxor .travel-map-label { transform: translateX(-18px); }
.travel-map-marker--nil .travel-map-label { transform: translateX(18px); }
.travel-map-marker--edfu .travel-map-label { transform: translateX(22px); }
.travel-map-marker--komombo .travel-map-label { transform: translateX(28px); }
.travel-map-marker--assuan .travel-map-label { transform: translateX(20px); }
.travel-map-marker--kairo .travel-map-label { transform: translateX(10px); }

.travel-map--full .travel-map-marker--hurghada { left: 74.12%; top: 50.39%; }
.travel-map--full .travel-map-marker--luxor { left: 53.03%; top: 64.97%; }
.travel-map--full .travel-map-marker--nil { left: 52.5%; top: 72.1%; }
.travel-map--full .travel-map-marker--edfu { left: 52.34%; top: 72.14%; }
.travel-map--full .travel-map-marker--komombo { left: 52.34%; top: 78.84%; }
.travel-map--full .travel-map-marker--assuan { left: 49.90%; top: 85.16%; }
.travel-map--full .travel-map-marker--kairo { left: 39.45%; top: 18.75%; }

.travel-map--compact .travel-map-marker--duesseldorf { display: none; }

.travel-map--compact {
  margin-top: 2px;
}

.travel-map--full .travel-map-canvas {
  min-height: 430px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(248, 241, 225, 0.22), rgba(248, 241, 225, 0.08));
}

.travel-map-stage {
  position: relative;
  height: 100%;
  aspect-ratio: 1024 / 1536;
  max-width: 100%;
}

.travel-map--full .travel-map-stage {
  height: min(100%, 430px);
}

.travel-map--full .travel-map-stage .travel-map-image {
  object-fit: cover;
  object-position: center center;
}

.travel-map--full .travel-map-label {
  display: none;
}

.travel-map--full .travel-map-marker {
  opacity: 0;
  pointer-events: none;
}

.travel-map--full .travel-map-dot {
  width: 13px;
  height: 13px;
}

.travel-map--full .travel-map-marker.is-current .travel-map-dot {
  width: 20px;
  height: 20px;
  background: #f4ddb0;
  border-color: rgba(116, 78, 24, 0.92);
  box-shadow:
    0 0 0 12px rgba(240, 212, 140, 0.18),
    0 0 28px rgba(240, 212, 140, 0.34);
}

.travel-map--full .travel-map-marker.is-current {
  opacity: 1;
}

.travel-map--compact .travel-map-canvas {
  min-height: clamp(300px, 52vw, 420px);
  background: linear-gradient(180deg, rgba(248, 241, 225, 0.18), rgba(248, 241, 225, 0.06));
}

.travel-map--compact .travel-map-marker {
  display: none;
}

.travel-map--focus-overview .travel-map-image {
  object-fit: cover;
  object-position: center center;
}

.travel-map--focus-hurghada-luxor .travel-map-image {
  object-position: 58% 66%;
  transform: scale(1.38);
}

.travel-map--focus-hurghada .travel-map-image {
  object-position: 76% 39%;
  transform: scale(1.58);
}

.travel-map--focus-hurghada-arrival .travel-map-image {
  transform: translate(-150px, -60px) scale(1.58);
}

.travel-map--focus-upper-nile .travel-map-image {
  object-position: 50% 80%;
  transform: scale(1.48);
}

.travel-map--focus-assuan .travel-map-image {
  object-position: 49% 96%;
  transform: scale(1.62);
}

.travel-map--focus-kairo .travel-map-image {
  object-position: 44% 20%;
  transform: scale(1.5);
}

.travel-map--focus-kairo-hurghada .travel-map-image {
  object-position: 58% 36%;
  transform: scale(1.36);
}

.travel-map--focus-hurghada-luxor .travel-map-marker--hurghada { left: 72%; top: 36%; }
.travel-map--focus-hurghada-luxor .travel-map-marker--luxor { left: 34%; top: 78%; }
.travel-map--focus-hurghada-luxor .travel-map-marker--kairo,
.travel-map--focus-hurghada-luxor .travel-map-marker--assuan,
.travel-map--focus-hurghada-luxor .travel-map-marker--komombo,
.travel-map--focus-hurghada-luxor .travel-map-marker--edfu,
.travel-map--focus-hurghada-luxor .travel-map-marker--nil { display: none; }

.travel-map--arrival-only .travel-map-marker--hurghada { left: 83.5%; top: 30%; }
.travel-map--arrival-only .travel-map-marker--hurghada .travel-map-label { display: none; }
.travel-map--arrival-only .travel-map-marker--luxor,
.travel-map--arrival-only .travel-map-marker--kairo,
.travel-map--arrival-only .travel-map-marker--assuan,
.travel-map--arrival-only .travel-map-marker--komombo,
.travel-map--arrival-only .travel-map-marker--edfu,
.travel-map--arrival-only .travel-map-marker--nil { display: none; }

.travel-map--focus-upper-nile .travel-map-marker--luxor { left: 49%; top: 28%; }
.travel-map--focus-upper-nile .travel-map-marker--nil { left: 44%; top: 42%; }
.travel-map--focus-upper-nile .travel-map-marker--edfu { left: 49%; top: 58%; }
.travel-map--focus-upper-nile .travel-map-marker--komombo { left: 50%; top: 75%; }
.travel-map--focus-upper-nile .travel-map-marker--assuan { left: 50%; top: 90%; }
.travel-map--focus-upper-nile .travel-map-marker--hurghada,
.travel-map--focus-upper-nile .travel-map-marker--kairo { display: none; }

.travel-map--focus-assuan .travel-map-marker--assuan { left: 50%; top: 62%; }
.travel-map--focus-assuan .travel-map-marker--komombo { left: 49%; top: 32%; }
.travel-map--focus-assuan .travel-map-marker--kairo,
.travel-map--focus-assuan .travel-map-marker--hurghada,
.travel-map--focus-assuan .travel-map-marker--luxor,
.travel-map--focus-assuan .travel-map-marker--nil,
.travel-map--focus-assuan .travel-map-marker--edfu { display: none; }

.travel-map--focus-kairo .travel-map-marker--kairo { left: 48%; top: 44%; }
.travel-map--focus-kairo .travel-map-marker--hurghada { left: 72%; top: 84%; }
.travel-map--focus-kairo .travel-map-marker--kairo .travel-map-label { transform: translateX(14px); }
.travel-map--focus-kairo .travel-map-marker--hurghada,
.travel-map--focus-kairo .travel-map-marker--luxor,
.travel-map--focus-kairo .travel-map-marker--nil,
.travel-map--focus-kairo .travel-map-marker--edfu,
.travel-map--focus-kairo .travel-map-marker--komombo,
.travel-map--focus-kairo .travel-map-marker--assuan { display: none; }

.travel-map--focus-kairo-hurghada .travel-map-marker--kairo { left: 32%; top: 24%; }
.travel-map--focus-kairo-hurghada .travel-map-marker--hurghada { left: 74%; top: 68%; }
.travel-map--focus-kairo-hurghada .travel-map-marker--luxor,
.travel-map--focus-kairo-hurghada .travel-map-marker--nil,
.travel-map--focus-kairo-hurghada .travel-map-marker--edfu,
.travel-map--focus-kairo-hurghada .travel-map-marker--komombo,
.travel-map--focus-kairo-hurghada .travel-map-marker--assuan { display: none; }

.travel-map-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 16px;
}

.travel-map-legend-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 248, 229, 0.06);
  border: 1px solid rgba(255, 248, 229, 0.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.travel-map-legend-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 234, 175, 0.22);
}

.travel-map-legend-dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0d48c;
  color: #5d3d12;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 0 0 5px rgba(240, 212, 140, 0.1);
}

.travel-map-legend-item.is-current {
  border-color: rgba(255, 234, 175, 0.22);
  background: rgba(255, 248, 229, 0.11);
}

.travel-map-legend-text {
  color: rgba(255, 248, 229, 0.9);
  line-height: 1.45;
}

.travel-map-caption {
  margin: 14px 0 0;
  line-height: 1.7;
}

.travel-route-figure {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 229, 0.14);
  background: rgba(255, 248, 229, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 229, 0.05);
}

.travel-route-image {
  display: block;
  width: 100%;
  height: auto;
}

.leaflet-route-shell {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 229, 0.14);
  background: rgba(255, 248, 229, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 229, 0.05);
}

.leaflet-route-shell-wide {
  padding: 18px;
}

.leaflet-route-map {
  width: 100%;
  min-height: clamp(300px, 52vw, 420px);
  border-radius: 22px;
  overflow: hidden;
}

.leaflet-route-map-overview {
  min-height: clamp(320px, 48vw, 520px);
  margin-bottom: 16px;
}

.leaflet-route-map .leaflet-control-attribution {
  font-size: 0.64rem;
}

.leaflet-route-map .leaflet-popup-content-wrapper,
.leaflet-route-map .leaflet-popup-tip {
  background: rgba(39, 28, 19, 0.94);
  color: rgba(255, 248, 229, 0.96);
}

.leaflet-route-map .leaflet-popup-content {
  margin: 10px 12px;
  font-family: var(--font-body);
}

.route-note {
  margin: 16px 0 0;
  line-height: 1.65;
  color: rgba(255, 248, 229, 0.84);
}

.day-hero-panel {
  width: min(100%, 440px);
  padding: 16px 18px 15px;
  border-color: rgba(255, 238, 195, 0.12);
  background:
    linear-gradient(180deg, rgba(28, 20, 14, 0.3), rgba(28, 20, 14, 0.16)),
    radial-gradient(circle at top left, rgba(199, 162, 74, 0.06), transparent 42%);
  box-shadow: 0 14px 36px rgba(22, 14, 8, 0.12);
  backdrop-filter: blur(4px);
}

.day-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 248, 229, 0.12);
  border: 1px solid rgba(255, 248, 229, 0.18);
  color: rgba(255, 248, 229, 0.94);
}

.day-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.day-utility-section {
  padding-top: 24px;
  padding-bottom: 28px;
}

.day-utility-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.84);
  box-shadow: 0 14px 30px rgba(134, 102, 55, 0.12);
}

.day-utility-copy {
  display: grid;
  gap: 8px;
  max-width: 40rem;
}

.day-utility-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.72);
}

.day-utility-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  line-height: 1.05;
  color: rgba(54, 35, 18, 0.94);
}

.day-utility-lead {
  margin: 0;
  max-width: 34rem;
  line-height: 1.55;
  color: rgba(79, 57, 33, 0.82);
}

.day-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.day-utility-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.day-utility-actions + .day-utility-meta {
  padding-top: 2px;
}

.tripday-nav-section {
  padding-top: 10px;
  padding-bottom: 10px;
}

.tripday-nav-card {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  overflow: hidden;
  padding: 0 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.tripday-nav-shell {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.tripday-nav-title {
  display: none;
}

.tripday-nav-track {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.tripday-nav-track::-webkit-scrollbar {
  display: none;
}

.tripday-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(74, 52, 35, 0.16);
  border-radius: 999px;
  background: rgba(157, 117, 49, 0.12);
  color: rgba(70, 46, 24, 0.88);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    opacity var(--transition-base);
}

.tripday-nav-arrow:hover,
.tripday-nav-arrow:focus-visible {
  transform: translateY(-1px);
  background: rgba(199, 162, 74, 0.24);
  border-color: rgba(199, 162, 74, 0.34);
}

.tripday-nav-arrow[disabled] {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.tripday-nav-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(122, 93, 54, 0.16);
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.58);
  color: rgba(63, 44, 24, 0.84);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
}

.tripday-nav-link:hover,
.tripday-nav-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 247, 231, 0.9);
  border-color: rgba(199, 162, 74, 0.28);
  box-shadow: 0 6px 14px rgba(125, 88, 33, 0.08);
}

.tripday-nav-link[aria-current="page"] {
  background: linear-gradient(135deg, rgba(220, 184, 95, 0.94), rgba(240, 210, 137, 0.92));
  border-color: rgba(177, 128, 33, 0.52);
  color: rgba(58, 38, 16, 0.96);
  font-weight: 700;
  box-shadow:
    0 10px 20px rgba(125, 88, 33, 0.16),
    inset 0 1px 0 rgba(255, 247, 220, 0.52);
}

.tripday-nav-group {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.tripday-nav-subtrack {
  display: inline-flex;
  gap: 6px;
}

.tripday-nav-sublink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(122, 93, 54, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.44);
  color: rgba(79, 57, 33, 0.72);
  font-size: 0.68rem;
  font-weight: 500;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
}

.tripday-nav-sublink:hover,
.tripday-nav-sublink:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 247, 231, 0.76);
  border-color: rgba(199, 162, 74, 0.22);
  box-shadow: 0 5px 10px rgba(125, 88, 33, 0.06);
}

.tripday-nav-sublink[aria-current="step"] {
  background: linear-gradient(135deg, rgba(184, 219, 225, 0.92), rgba(214, 236, 239, 0.9));
  border-color: rgba(84, 139, 149, 0.3);
  color: rgba(44, 57, 60, 0.92);
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(73, 111, 118, 0.12);
}

.page-day .day-page-nav-section {
  display: none;
}

.page-day main {
  display: flex;
  flex-direction: column;
}

.page-day .tripday-nav-section {
  order: 1;
  padding-top: 14px;
  padding-bottom: 4px;
}

.page-day .day-utility-section {
  order: 2;
  padding-top: 8px;
  padding-bottom: 24px;
}

.page-day main > section:not(.tripday-nav-section):not(.day-utility-section) {
  order: 3;
}

.page-day .tripday-nav-card {
  padding-left: 2px;
  padding-right: 2px;
}

@media (max-width: 900px) {
  .page-day .hero-day {
    min-height: 76vh;
    padding-bottom: 24px;
  }

  .page-day .hero-content {
    min-height: calc(76vh - 140px);
  }

  .page-day .tripday-nav-section {
    padding-top: 10px;
    padding-bottom: 2px;
  }

  .page-day .day-utility-section {
    padding-top: 6px;
    padding-bottom: 18px;
  }

  .page-day .day-utility-card {
    padding: 18px 18px 16px;
    border-radius: 22px;
  }
}

.day-page-nav-section {
  padding-top: 0;
  padding-bottom: 26px;
}

.day-page-nav-card {
  display: grid;
  gap: 14px;
  align-items: center;
}

.day-page-nav-info {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(74, 52, 35, 0.72);
}

.day-page-nav-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.day-page-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(74, 52, 35, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(74, 52, 35, 0.04);
  color: rgba(32, 23, 15, 0.84);
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base);
}

.day-page-nav-link:hover,
.day-page-nav-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(199, 162, 74, 0.14);
  border-color: rgba(199, 162, 74, 0.28);
}

.day-page-nav-link.is-home {
  background: linear-gradient(135deg, rgba(210, 172, 87, 0.16), rgba(240, 210, 136, 0.18));
  border-color: rgba(199, 162, 74, 0.22);
}

.day-utility-meta .day-badge,
.day-utility-meta .day-meta-chip {
  background: rgba(74, 52, 35, 0.05);
  border-color: rgba(74, 52, 35, 0.1);
  color: rgba(32, 23, 15, 0.82);
}

.day-hero-panel .hero-kicker {
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.day-hero-panel .hero-title {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1;
}

.day-hero-panel .hero-text {
  margin-top: 8px;
  max-width: 20rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 248, 229, 0.84);
}

.page-day .section-card:first-child .section-text {
  max-width: 54rem;
}

.day-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 248, 229, 0.06);
  border: 1px solid rgba(255, 248, 229, 0.14);
  color: rgba(255, 248, 229, 0.9);
}

.day-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.day-panel {
  padding: 26px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.day-panel-dark {
  background: linear-gradient(180deg, rgba(55, 36, 21, 0.96), rgba(33, 22, 15, 0.92));
  color: var(--color-white);
}

.day-panel-light {
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(244, 236, 220, 0.92));
  border: 1px solid rgba(74, 52, 35, 0.08);
}

.day-panel-title {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.day-panel-text {
  margin: 0;
  line-height: 1.7;
}

.day-panel-dark .travel-map-canvas {
  background:
    radial-gradient(circle at 18% 14%, rgba(250, 213, 125, 0.16), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(47, 143, 151, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 249, 236, 0.07), rgba(255, 249, 236, 0.02)),
    rgba(255, 248, 229, 0.04);
}

.day-panel-dark .travel-map-caption {
  color: rgba(255, 248, 229, 0.9);
}

.day-timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.day-timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
}

.day-timeline-time {
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 248, 229, 0.1);
  border: 1px solid rgba(255, 248, 229, 0.16);
  color: #f6df9f;
  font-weight: 700;
}

.day-timeline-copy {
  color: rgba(255, 248, 229, 0.9);
  line-height: 1.6;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.experience-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(74, 52, 35, 0.08);
  background:
    radial-gradient(circle at top right, rgba(47, 143, 151, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(244, 236, 220, 0.92));
  box-shadow: var(--shadow-soft);
}

.experience-card-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--color-brown);
}

.experience-card-text {
  margin: 0;
  line-height: 1.65;
  color: rgba(32, 23, 15, 0.76);
}

.flight-discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 24px;
}

.flight-discovery-card {
  border-radius: 24px;
  border: 1px solid rgba(74, 52, 35, 0.08);
  background:
    radial-gradient(circle at top right, rgba(199, 162, 74, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(244, 236, 220, 0.92));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.flight-discovery-summary {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  cursor: pointer;
}

.flight-discovery-summary::-webkit-details-marker {
  display: none;
}

.flight-discovery-badge {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(156, 114, 31, 0.86);
}

.flight-discovery-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-brown);
}

.flight-discovery-content {
  padding: 0 24px 24px;
}

.flight-discovery-text {
  margin: 0;
  line-height: 1.7;
  color: rgba(32, 23, 15, 0.78);
}

.flight-tip-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.flight-tip-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(74, 52, 35, 0.08);
}

.flight-tip-title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--color-brown);
}

.flight-tip-text {
  margin: 0;
  line-height: 1.65;
  color: rgba(32, 23, 15, 0.76);
}

.arrival-story {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(199, 162, 74, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(243, 234, 217, 0.94));
  border: 1px solid rgba(74, 52, 35, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.arrival-story-figure {
  float: right;
  width: min(42%, 360px);
  margin: 2px 0 14px 22px;
}

.arrival-story-figure-secondary {
  clear: right;
  width: min(32%, 250px);
  margin-top: 0;
}

.arrival-story-figure-tertiary {
  clear: right;
  width: min(32%, 250px);
  margin-top: 0;
}

.arrival-story-image {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(88, 61, 31, 0.16);
}

.arrival-story-caption {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(88, 61, 31, 0.72);
}

.arrival-story-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--color-brown);
}

.arrival-story-text {
  margin: 0 0 12px;
  line-height: 1.72;
  color: rgba(32, 23, 15, 0.8);
}

.arrival-story-text:last-child {
  margin-bottom: 0;
}

.habu-detective-shell {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(199, 162, 74, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(242, 233, 215, 0.95));
  border: 1px solid rgba(74, 52, 35, 0.08);
  box-shadow: var(--shadow-soft);
}

.habu-detective-intro {
  max-width: 48rem;
}

.habu-detective-kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(156, 114, 31, 0.86);
}

.habu-detective-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

.habu-detective-wall {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 248, 234, 0.9);
  box-shadow: 0 20px 36px rgba(88, 61, 31, 0.14);
}

.habu-detective-zoom {
  display: block;
  width: 100%;
}

.habu-detective-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.habu-detective-spot {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 250, 241, 0.92);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(240, 208, 118, 0.98) 0%, rgba(227, 177, 52, 0.96) 42%, rgba(227, 177, 52, 0.18) 70%, transparent 72%);
  box-shadow:
    0 0 0 7px rgba(230, 185, 74, 0.16),
    0 10px 16px rgba(103, 69, 27, 0.22);
  cursor: pointer;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    opacity var(--transition-base);
  animation: habu-pulse 2.6s ease-in-out infinite;
}

.habu-detective-spot:hover,
.habu-detective-spot:focus-visible {
  transform: scale(1.08);
}

.habu-detective-spot.is-found {
  background:
    radial-gradient(circle, rgba(111, 202, 136, 0.98) 0%, rgba(63, 170, 96, 0.95) 44%, rgba(63, 170, 96, 0.16) 72%, transparent 74%);
  box-shadow:
    0 0 0 7px rgba(100, 194, 129, 0.16),
    0 10px 16px rgba(59, 112, 73, 0.24);
}

.habu-detective-spot.is-bird {
  left: 20%;
  top: 24%;
}

.habu-detective-spot.is-eye {
  left: 67%;
  top: 45%;
}

.habu-detective-spot.is-sun {
  left: 48%;
  top: 66%;
}

.habu-detective-spot.is-khepri {
  left: 59%;
  top: 77%;
}

.habu-detective-panel {
  display: grid;
  gap: 16px;
}

.habu-detective-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.habu-detective-progress {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(78, 55, 28, 0.9);
}

.habu-detective-reset {
  white-space: nowrap;
}

.habu-detective-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.habu-detective-target {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid rgba(122, 93, 54, 0.14);
  border-radius: 20px;
  background: rgba(255, 251, 244, 0.82);
  color: rgba(62, 42, 22, 0.9);
  text-align: left;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.habu-detective-target:hover,
.habu-detective-target:focus-visible,
.habu-detective-target.is-selected {
  transform: translateY(-1px);
  border-color: rgba(199, 162, 74, 0.3);
  box-shadow: 0 10px 22px rgba(125, 88, 33, 0.08);
}

.habu-detective-target.is-found {
  background: rgba(236, 248, 236, 0.92);
  border-color: rgba(92, 170, 108, 0.32);
}

.habu-detective-target-symbol {
  font-size: 2rem;
  line-height: 1;
}

.habu-detective-target-label {
  font-size: 1rem;
  font-weight: 700;
}

.habu-detective-detail,
.habu-detective-finale {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 248, 234, 0.92);
  border: 1px solid rgba(199, 162, 74, 0.16);
}

.habu-detective-detail-symbol,
.habu-detective-finale-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.habu-detective-detail-title,
.habu-detective-finale-title {
  margin: 0 0 6px;
  font-size: 1.16rem;
  color: var(--color-brown);
}

.habu-detective-detail-text,
.habu-detective-finale-text {
  margin: 0;
  line-height: 1.65;
  color: rgba(47, 31, 16, 0.82);
}

.habu-detective-finale[hidden] {
  display: none;
}

@keyframes habu-pulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.flight-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.flight-discovery-card-clouds {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.7), transparent 16%),
    radial-gradient(circle at 84% 16%, rgba(205, 230, 255, 0.34), transparent 20%),
    radial-gradient(circle at 68% 78%, rgba(255, 255, 255, 0.45), transparent 22%),
    linear-gradient(180deg, rgba(251, 247, 238, 0.98), rgba(237, 229, 214, 0.95));
}

.flight-discovery-card-clouds .flight-discovery-summary {
  position: relative;
}

.flight-discovery-card-clouds .flight-discovery-summary::after {
  content: "☁";
  position: absolute;
  top: 18px;
  right: 24px;
  color: rgba(194, 161, 92, 0.55);
  font-size: 1.2rem;
  transform: rotate(-7deg);
}

.flight-gallery-grid-clouds {
  gap: 18px;
}

.flight-gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(74, 52, 35, 0.08);
  box-shadow: 0 16px 28px rgba(92, 64, 29, 0.12);
  position: relative;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.flight-gallery-grid-clouds .flight-gallery-card:nth-child(1) {
  transform: rotate(-1.3deg);
}

.flight-gallery-grid-clouds .flight-gallery-card:nth-child(2) {
  transform: rotate(1.4deg);
}

.flight-gallery-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 54px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.94), rgba(231, 212, 179, 0.82));
  box-shadow: 0 8px 14px rgba(97, 70, 36, 0.1);
  transform: translateX(-50%) rotate(-2deg);
  z-index: 2;
  pointer-events: none;
}

.flight-gallery-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.flight-gallery-card:hover,
.flight-gallery-card:focus-within {
  transform: translateY(-4px) rotate(0deg);
  border-color: rgba(199, 162, 74, 0.22);
  box-shadow: 0 24px 40px rgba(92, 64, 29, 0.16);
}

.flight-gallery-button:focus-visible {
  outline: 2px solid rgba(199, 162, 74, 0.72);
  outline-offset: -2px;
}

.flight-gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  filter: saturate(1.03) brightness(1.02);
}

.flight-gallery-note {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px 4px;
  border-radius: 999px;
  background: rgba(255, 248, 233, 0.88);
  color: rgba(96, 65, 31, 0.92);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 18px rgba(90, 63, 31, 0.16);
}

.flight-gallery-grid-clouds .flight-gallery-note {
  top: auto;
  bottom: 16px;
  left: 14px;
  background: rgba(255, 251, 242, 0.84);
  backdrop-filter: blur(6px);
}

.flight-gallery-caption {
  padding: 12px 14px 14px;
  line-height: 1.55;
  color: rgba(32, 23, 15, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(248, 241, 226, 0.92));
}

.flight-gallery-hint {
  margin-top: 14px;
  font-size: 0.96rem;
  color: rgba(88, 61, 31, 0.7);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}

.flight-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(34, 24, 14, 0.78);
  backdrop-filter: blur(10px);
}

.flight-image-lightbox[hidden] {
  display: none;
}

.flight-image-lightbox-dialog {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  margin: 0;
  padding: 18px 18px 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(242, 231, 212, 0.97));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.flight-image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(96, 65, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.9);
  color: rgba(64, 43, 22, 0.88);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.flight-image-lightbox-frame {
  margin: 0;
}

.flight-image-lightbox-title {
  margin: 0 0 12px;
  padding-right: 52px;
  color: rgba(96, 65, 31, 0.92);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 700;
}

.flight-image-lightbox-image {
  display: block;
  width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
}

.flight-image-lightbox-caption {
  margin-top: 12px;
  color: rgba(66, 46, 25, 0.82);
  line-height: 1.6;
}

body.has-flight-lightbox {
  overflow: hidden;
}

.flight-discovery-card-wide {
  margin-top: 18px;
}

.flight-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
  margin-top: 18px;
}

.flight-story-card {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(199, 162, 74, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(243, 233, 214, 0.94));
  border: 1px solid rgba(74, 52, 35, 0.08);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.flight-story-image-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.flight-story-image-button:focus-visible {
  outline: 2px solid rgba(199, 162, 74, 0.72);
  outline-offset: 4px;
  border-radius: 22px;
}

.flight-story-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.flight-story-card::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 24px;
  width: 124px;
  height: 16px;
  border-radius: 999px;
  background: rgba(213, 178, 103, 0.34);
  filter: blur(8px);
  opacity: 0.65;
}

.flight-story-card:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.flight-story-card:nth-child(even) {
  transform: rotate(1.1deg);
}

.flight-story-card:nth-child(3n) {
  transform: rotate(-0.6deg);
}

.flight-story-card:nth-child(4n) {
  transform: rotate(1.8deg);
}

.flight-story-card:hover {
  transform: rotate(0deg) translateY(-2px);
}

.flight-story-card .flight-story-image {
  background: #fffdf8;
  padding: 10px 10px 22px;
  box-shadow: 0 18px 28px rgba(59, 40, 21, 0.14);
}

.flight-story-card .flight-story-image {
  box-sizing: border-box;
}

.flight-story-card .flight-story-copy {
  padding-top: 6px;
}

.flight-story-copy {
  min-width: 0;
}

.flight-story-title {
  margin: 0 0 8px;
  font-size: 1.04rem;
  color: var(--color-brown);
}

.flight-story-text {
  margin: 0;
  line-height: 1.65;
  color: rgba(32, 23, 15, 0.78);
}

.flight-highlight-strip {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(47, 143, 151, 0.1), transparent 36%),
    rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(74, 52, 35, 0.08);
}

.flight-highlight-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--color-brown);
}

.flight-highlight-text {
  margin: 0;
  line-height: 1.7;
  color: rgba(32, 23, 15, 0.78);
}

.khepri-spotlight-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(199, 162, 74, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(245, 236, 217, 0.94));
}

.khepri-spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(47, 143, 151, 0.06), transparent 42%);
}

.khepri-spotlight-head,
.khepri-spotlight-grid {
  position: relative;
  z-index: 1;
}

.khepri-spotlight-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.khepri-symbol {
  display: inline-grid;
  place-items: center;
  width: 68px;
  min-width: 68px;
  height: 68px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(242, 209, 125, 0.24), transparent 48%),
    rgba(255, 252, 245, 0.92);
  border: 1px solid rgba(191, 144, 47, 0.2);
  box-shadow: 0 14px 28px rgba(60, 40, 20, 0.08);
  font-size: 2rem;
  color: rgba(70, 46, 24, 0.96);
}

.khepri-spotlight-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  color: var(--color-brown);
}

.khepri-spotlight-text {
  margin: 10px 0 0;
  line-height: 1.68;
  color: rgba(54, 37, 21, 0.82);
}

.khepri-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.khepri-spotlight-tile {
  padding: 16px 16px 15px;
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(122, 93, 54, 0.12);
}

.khepri-spotlight-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.7);
}

.khepri-spotlight-value {
  margin: 0;
  line-height: 1.6;
  color: rgba(54, 37, 21, 0.88);
}

.khepri-spotlight-note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  line-height: 1.62;
  color: rgba(79, 57, 33, 0.78);
}

.serdab-shell {
  display: grid;
  gap: 22px;
}

.serdab-intro {
  display: grid;
  gap: 12px;
}

.serdab-kicker {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.72);
}

.serdab-copy {
  display: grid;
  gap: 8px;
}

.serdab-copy p {
  margin: 0;
  line-height: 1.65;
  color: rgba(32, 23, 15, 0.78);
}

.serdab-instruction {
  font-weight: 700;
  color: rgba(88, 59, 21, 0.92);
}

.serdab-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(122, 93, 54, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(255, 226, 153, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(239, 221, 185, 0.98), rgba(209, 178, 120, 0.96));
  box-shadow: 0 20px 46px rgba(115, 83, 42, 0.16);
}

.serdab-wall,
.serdab-view,
.serdab-found {
  position: absolute;
  inset: 0;
}

.serdab-wall {
  transform-origin: center;
  transition: transform 1500ms ease, filter 1500ms ease, opacity 1200ms ease;
}

.serdab-wall-image,
.serdab-view-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.serdab-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 239, 201, 0.08), transparent 28%),
    radial-gradient(circle at center, transparent 30%, rgba(83, 56, 27, 0.06) 74%, rgba(83, 56, 27, 0.14) 100%);
  pointer-events: none;
}

.serdab-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition:
    opacity 220ms ease,
    opacity 600ms ease;
}

.serdab-trigger:hover {
  cursor: zoom-in;
}

.serdab-trigger:focus-visible {
  outline: 3px solid rgba(255, 241, 204, 0.78);
  outline-offset: -10px;
}

.serdab-hint {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  max-width: 290px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 249, 238, 0.78);
  border: 1px solid rgba(150, 112, 58, 0.14);
  box-shadow: 0 12px 26px rgba(115, 83, 42, 0.12);
  backdrop-filter: blur(10px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.serdab-hint-badge {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.78);
}

.serdab-hint-text {
  margin: 0;
  line-height: 1.5;
  color: rgba(70, 46, 24, 0.9);
}

.serdab-view {
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.76);
  transition: opacity 900ms ease 320ms, transform 1400ms ease;
}

.serdab-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(10, 7, 5, 0.08) 0%, rgba(10, 7, 5, 0.26) 46%, rgba(10, 7, 5, 0.64) 100%);
  pointer-events: none;
}

.serdab-lightbeam {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 34%;
  height: 72%;
  background: linear-gradient(180deg, rgba(255, 221, 145, 0.22), rgba(255, 221, 145, 0.02));
  clip-path: polygon(50% 0%, 78% 0%, 100% 100%, 0% 100%, 22% 0%);
  transform: translateX(-50%);
  filter: blur(8px);
}

.serdab-dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 28% 36%, rgba(255, 230, 172, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 30%, rgba(255, 230, 172, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 58%, rgba(255, 230, 172, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 54%, rgba(255, 230, 172, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 68%, rgba(255, 230, 172, 0.16) 0 2px, transparent 3px);
  animation: serdab-dust-float 7s linear infinite;
  opacity: 0.72;
}

.serdab-statue {
  position: relative;
  width: min(38vw, 230px);
  height: min(54vw, 320px);
  z-index: 1;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 900ms ease 860ms, transform 900ms ease 860ms;
}

.serdab-statue-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 18px rgba(255, 225, 157, 0.12));
}

.serdab-found {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 10px;
  padding: 28px 28px 32px;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease 1080ms, transform 700ms ease 1080ms;
  pointer-events: none;
}

.serdab-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 241, 204, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.12);
  color: rgba(255, 248, 229, 0.94);
  cursor: pointer;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base);
}

.serdab-close:hover,
.serdab-close:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 248, 229, 0.2);
  border-color: rgba(255, 241, 204, 0.42);
}

.serdab-found-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 222, 159, 0.92);
}

.serdab-found-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  color: rgba(255, 250, 241, 0.98);
}

.serdab-found-text {
  margin: 0;
  max-width: 34rem;
  line-height: 1.65;
  color: rgba(255, 245, 223, 0.88);
}

.serdab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.serdab-actions[hidden] {
  display: none;
}

.serdab-fact {
  padding: 18px 20px;
  border: 1px solid rgba(191, 144, 47, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(242, 209, 125, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(255, 249, 234, 0.98), rgba(248, 238, 211, 0.94));
}

.serdab-fact[hidden] {
  display: none;
}

.serdab-fact-kicker {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.78);
}

.serdab-fact-text {
  margin: 0;
  line-height: 1.6;
  color: rgba(79, 57, 33, 0.82);
}

.serdab-stage.is-zooming .serdab-wall,
.serdab-stage.is-found .serdab-wall {
  transform: scale(1.65);
  filter: brightness(0.48) blur(5px);
}

.serdab-stage.is-zooming .serdab-trigger,
.serdab-stage.is-found .serdab-trigger,
.serdab-stage.is-zooming .serdab-hint,
.serdab-stage.is-found .serdab-hint {
  opacity: 0;
  pointer-events: none;
}

.serdab-stage.is-zooming .serdab-view,
.serdab-stage.is-found .serdab-view {
  opacity: 1;
  transform: scale(1);
}

.serdab-stage.is-found .serdab-statue {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.serdab-stage.is-found .serdab-found {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes serdab-dust-float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.bingo-shell {
  display: grid;
  gap: 20px;
}

.bingo-intro {
  display: grid;
  gap: 12px;
}

.bingo-kicker {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(132, 94, 43, 0.72);
}

.bingo-copy {
  display: grid;
  gap: 8px;
}

.bingo-copy p {
  margin: 0;
  line-height: 1.65;
  color: rgba(32, 23, 15, 0.78);
}

.bingo-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.bingo-progress {
  margin: 0;
  font-weight: 700;
  color: rgba(79, 57, 33, 0.84);
}

.bingo-reset {
  min-height: 42px;
}

.bingo-feedback {
  min-height: 40px;
}

.bingo-alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(236, 193, 87, 0.18);
  border: 1px solid rgba(191, 144, 47, 0.22);
  color: rgba(70, 46, 24, 0.92);
  box-shadow: 0 10px 22px rgba(134, 102, 55, 0.08);
}

.bingo-board-wrap {
  position: relative;
  overflow: hidden;
  padding: 2px;
}

.bingo-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bingo-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  aspect-ratio: 1 / 1;
  padding: 14px 12px 12px;
  border: 1px solid rgba(122, 93, 54, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(214, 188, 125, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(244, 236, 220, 0.92));
  color: rgba(40, 28, 17, 0.86);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.bingo-card:hover,
.bingo-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(199, 162, 74, 0.28);
  box-shadow: 0 14px 26px rgba(134, 102, 55, 0.12);
}

.bingo-card.is-found {
  border-color: rgba(86, 146, 93, 0.42);
  background:
    radial-gradient(circle at top right, rgba(121, 201, 136, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(242, 255, 244, 0.98), rgba(225, 244, 228, 0.94));
  box-shadow:
    0 14px 28px rgba(77, 133, 84, 0.14),
    0 0 0 1px rgba(100, 163, 109, 0.14);
}

.bingo-card.is-found::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(73, 153, 87, 0.94);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

.bingo-card.is-selected {
  border-color: rgba(199, 162, 74, 0.34);
  box-shadow:
    0 14px 26px rgba(134, 102, 55, 0.12),
    0 0 0 2px rgba(199, 162, 74, 0.14);
}

.bingo-card-icon {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 251, 241, 0.96), rgba(243, 232, 210, 0.92));
  box-shadow: 0 10px 20px rgba(115, 83, 42, 0.08);
}

.bingo-card-title {
  margin: 0;
  font-size: 1rem;
  color: rgba(54, 35, 18, 0.94);
}

.bingo-card-description {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(79, 57, 33, 0.76);
}

.bingo-detail {
  display: none;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(122, 93, 54, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(214, 188, 125, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(244, 236, 220, 0.92));
}

.bingo-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 247, 231, 0.8);
  font-size: 1.75rem;
  line-height: 1;
}

.bingo-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bingo-detail-copy {
  display: grid;
  gap: 6px;
}

.bingo-detail-title {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(54, 35, 18, 0.94);
}

.bingo-detail-text {
  margin: 0;
  line-height: 1.55;
  color: rgba(79, 57, 33, 0.8);
}

.bingo-finale {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(242, 209, 125, 0.24), transparent 44%),
    linear-gradient(180deg, rgba(255, 249, 234, 0.98), rgba(248, 238, 211, 0.94));
  border: 1px solid rgba(191, 144, 47, 0.18);
  text-align: center;
}

.bingo-finale[hidden] {
  display: none;
}

.bingo-finale-icon {
  margin: 0;
  font-size: 2rem;
}

.bingo-finale-title {
  margin: 0;
  font-size: 1.35rem;
  color: rgba(70, 46, 24, 0.94);
}

.bingo-finale-text {
  margin: 0;
  color: rgba(79, 57, 33, 0.78);
}

.bingo-confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bingo-confetti-piece {
  position: absolute;
  top: -18px;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  opacity: 0.9;
  animation: bingo-confetti-fall 2200ms ease-out forwards;
}

@keyframes bingo-confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    transform: translate3d(var(--confetti-x, 0), var(--confetti-y, 220px), 0) rotate(var(--confetti-rotate, 180deg));
    opacity: 0;
  }
}

.reference-note {
  margin-top: 16px;
  color: rgba(32, 23, 15, 0.74);
}

.reference-disclosure {
  padding: 0;
  overflow: hidden;
}

.reference-disclosure-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  cursor: pointer;
}

.reference-disclosure-summary::-webkit-details-marker {
  display: none;
}

.reference-disclosure-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  font-weight: 700;
  color: var(--color-brown);
}

.reference-disclosure-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(74, 52, 35, 0.12);
  background: rgba(255, 252, 245, 0.72);
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base);
}

.reference-disclosure-icon::before,
.reference-disclosure-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(74, 52, 35, 0.78);
  transform: translate(-50%, -50%);
}

.reference-disclosure-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.reference-disclosure[open] .reference-disclosure-icon {
  transform: rotate(180deg);
  background: rgba(199, 162, 74, 0.14);
  border-color: rgba(199, 162, 74, 0.24);
}

.reference-disclosure[open] .reference-disclosure-icon::after {
  opacity: 0;
}

.reference-disclosure-content {
  padding: 0 28px 28px;
}

.reference-disclosure-content .section-text {
  margin: 0;
}

.reference-state {
  padding: 22px;
  border: 1px solid rgba(74, 52, 35, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(199, 162, 74, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(244, 236, 220, 0.92));
  color: rgba(32, 23, 15, 0.78);
  line-height: 1.7;
}

.khepri-anchor {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(260px, calc(100vw - 32px));
}

.khepri-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.khepri-bubble {
  display: none;
  max-width: 220px;
  padding: 14px 16px;
  border-radius: 18px 18px 4px 18px;
  background: rgba(255, 252, 245, 0.92);
  color: var(--color-brown);
  box-shadow: var(--shadow-soft);
}

.khepri-panel.is-speaking .khepri-bubble {
  display: block;
}

.khepri-character-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.khepri-character {
  width: 104px;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(33, 21, 10, 0.28));
  animation: khepri-float 3.6s ease-in-out infinite;
}

.book-spread-frame {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(74, 52, 35, 0.12);
  border-radius: 26px;
  background: rgba(255, 252, 245, 0.88);
  box-shadow: var(--shadow-soft);
}

.book-spread-image {
  width: 100%;
  border-radius: 18px;
}

.page-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  color: rgba(32, 23, 15, 0.7);
}

@keyframes khepri-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .site-nav:not(.site-nav-home) {
    position: static;
    width: calc(100% - 24px);
    margin: 12px auto 0;
    transform: none;
    border-radius: 28px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-content {
    min-height: calc(100vh - 120px);
  }

  .page-home .hero-content {
    align-content: end;
  }

  .page-day .hero-content {
    min-height: calc(100vh - 170px);
  }

  .page-day .day-hero-panel {
    width: min(100%, 420px);
  }

  .home-hero-panel {
    width: min(100%, 620px);
  }

  .site-brand-logo {
    width: min(100%, 380px);
    max-height: 70px;
  }

  .placeholder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-grid,
  .route-band,
  .feature-grid,
  .language-grid,
  .hero-facts,
  .day-intro-grid,
  .khepri-spotlight-grid,
  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .travel-map-legend {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .page-home .hero-background {
    object-position: 72% center;
  }

  .page-home .khepri-anchor {
    right: 16px;
    bottom: 16px;
  }

  .page-home .khepri-character {
    width: 72px;
  }

  .page-day .site-brand-logo {
    width: min(100%, 330px);
    max-height: 58px;
  }

  .page-day .hero-content {
    min-height: calc(76vh - 150px);
  }

  .page-day .day-hero-panel {
    width: min(100%, 400px);
    margin-bottom: 14px;
    padding: 18px 18px 16px;
  }

  .page-day .hero-kicker {
    font-size: 0.69rem;
    letter-spacing: 0.12em;
  }

  .page-day .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .page-day .hero-text {
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .page-home .section-title,
  .page-home .route-panel-title {
    font-size: clamp(1.45rem, 3.2vw, 1.95rem);
    line-height: 1.1;
  }

  .page-home .section-text,
  .page-home .portal-card-text,
  .page-home .route-note {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .route-band,
  .feature-grid,
  .page-day .day-intro-grid {
    grid-template-columns: 1fr;
  }

  .flight-discovery-grid,
  .flight-story-grid {
    grid-template-columns: 1fr;
  }

  .page-day .section-card,
  .page-day .day-panel,
  .page-home .route-panel,
  .page-home .section-card {
    padding: 22px;
  }

  .page-day .day-panel-title {
    font-size: 1.34rem;
  }

  .page-day .day-panel-text,
  .page-day .placeholder-text,
  .page-day .experience-card-text,
  .page-day .day-utility-lead {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .page-day .placeholder-tile-station {
    padding: 17px 17px 17px 64px;
  }

  .flight-story-card {
    display: block;
    padding: 18px;
    transform: none;
  }

  .flight-story-card::after {
    content: "";
    display: block;
    clear: both;
  }

  .flight-story-card::before {
    left: 26px;
    top: 20px;
    width: 112px;
  }

  .flight-story-card:nth-child(odd),
  .flight-story-card:nth-child(even),
  .flight-story-card:nth-child(3n),
  .flight-story-card:nth-child(4n) {
    transform: none;
  }

  .flight-story-image-button {
    float: left;
    width: min(44%, 230px);
    margin: 0 18px 12px 0;
  }

  .flight-story-card .flight-story-copy {
    display: block;
    padding-top: 2px;
  }
}

@media (max-width: 640px) {
  .site-nav:not(.site-nav-home) {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .site-nav:not(.site-nav-home) .site-nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 18px 12px 32px;
  }

  .hero-home {
    min-height: 100svh;
    padding: 0 12px 18px;
  }

  .site-nav-bar {
    gap: 12px;
    margin-top: 18px;
  }

  .hero-content {
    min-height: auto;
    align-content: start;
  }

  .page-home .hero-content {
    align-content: end;
    min-height: calc(100svh - 18px);
  }

  .page-day .hero-content {
    align-content: end;
    min-height: calc(72svh - 118px);
  }

  .page-day .hero-day {
    min-height: 72svh;
    padding-bottom: 18px;
  }

  .page-day .day-hero-panel {
    width: min(100%, 90%);
    margin-top: 0;
    margin-bottom: 4px;
    padding: 13px 14px 12px;
    background:
      linear-gradient(180deg, rgba(28, 20, 14, 0.28), rgba(28, 20, 14, 0.12)),
      radial-gradient(circle at top left, rgba(199, 162, 74, 0.05), transparent 42%);
    box-shadow: 0 12px 28px rgba(22, 14, 8, 0.08);
    backdrop-filter: blur(4px);
  }

  .page-day .hero-kicker {
    margin-bottom: 5px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .page-day .hero-title {
    font-size: clamp(1.7rem, 8.4vw, 2.45rem);
    line-height: 1;
  }

  .page-day .hero-text {
    margin-top: 7px;
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .page-home .hero-background {
    object-position: 72% center;
  }

  .site-brand-logo {
    width: min(100%, 340px);
    max-height: 64px;
  }

  .hero-panel,
  .section-card {
    padding: 22px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glyph-toolbar {
    grid-template-columns: 1fr;
  }

  .glyph-button {
    width: 100%;
    min-width: 0;
  }

  .hero-title {
    font-size: clamp(2.05rem, 12vw, 3.4rem);
    line-height: 0.98;
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .home-hero-minimal {
    width: 100%;
    justify-items: start;
    margin-bottom: 12px;
  }

  .home-hero-kicker {
    font-size: 0.7rem;
  }

  .home-hero-button {
    width: min(100%, 280px);
  }

  .journey-ribbon {
    gap: 8px;
  }

  .journey-stop,
  .day-meta-chip,
  .day-badge {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.95rem;
  }

  .page-day .day-meta-row {
    gap: 8px;
    margin-top: 0;
  }

  .day-utility-section {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .page-day .tripday-nav-section {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 6px;
    padding-right: 6px;
  }

  .content-section.tripday-nav-section {
    padding-left: 6px;
    padding-right: 6px;
  }

  .page-day .day-utility-section {
    padding-top: 4px;
    padding-bottom: 16px;
  }

  .page-day .tripday-nav-card {
    padding-left: 0;
    padding-right: 0;
  }

  .page-day .day-utility-card {
    padding: 16px 16px 14px;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(134, 102, 55, 0.1);
  }

  .arrival-story {
    padding: 18px 16px;
  }

  .arrival-story-figure {
    float: none;
    width: 100%;
    margin: 0 0 14px;
  }

  .habu-detective-shell {
    padding: 18px 16px;
  }

  .habu-detective-stage {
    grid-template-columns: 1fr;
  }

  .habu-detective-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .habu-detective-targets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .habu-detective-detail,
  .habu-detective-finale {
    grid-template-columns: 1fr;
  }

  .habu-detective-detail-symbol,
  .habu-detective-finale-icon {
    font-size: 2rem;
  }

  .flight-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flight-discovery-grid,
  .flight-story-grid {
    grid-template-columns: 1fr;
  }

  .flight-discovery-summary {
    padding: 18px 18px 14px;
  }

  .flight-discovery-title {
    font-size: 1.02rem;
    line-height: 1.24;
  }

  .flight-discovery-content {
    padding: 0 18px 18px;
  }

  .flight-story-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    transform: none;
  }

  .flight-story-card::before {
    left: 24px;
    top: 18px;
    width: 104px;
  }

  .flight-story-card:nth-child(odd),
  .flight-story-card:nth-child(even),
  .flight-story-card:nth-child(3n),
  .flight-story-card:nth-child(4n) {
    transform: none;
  }

  .flight-story-card .flight-story-copy {
    padding-top: 0;
  }

  .flight-gallery-note {
    left: 12px;
    top: 12px;
    font-size: 0.92rem;
  }

  .flight-image-lightbox {
    padding: 14px;
  }

  .flight-image-lightbox-dialog {
    width: min(100%, calc(100vw - 28px));
    padding: 14px 14px 12px;
    border-radius: 22px;
  }

  .flight-image-lightbox-title {
    margin-bottom: 10px;
    padding-right: 44px;
  }

  .bingo-board {
    gap: 8px;
  }

  .bingo-card {
    gap: 6px;
    place-content: start center;
    padding: 10px 7px 8px;
    border-radius: 16px;
    text-align: center;
  }

  .bingo-card-icon {
    border-radius: 12px;
  }

  .bingo-card-title {
    position: relative;
    min-height: 0.8rem;
    font-size: 0;
    line-height: 1;
  }

  .bingo-card-title::before {
    content: attr(data-mobile-title);
    display: block;
    font-size: 0.64rem;
    line-height: 1.15;
    color: rgba(54, 35, 18, 0.94);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bingo-card-description {
    display: none;
  }

  .bingo-card.is-found::after {
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }

  .bingo-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .bingo-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.4rem;
  }

  .bingo-detail-title {
    font-size: 0.96rem;
  }

  .bingo-detail-text {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .day-utility-copy {
    gap: 7px;
  }

  .day-utility-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .day-utility-title {
    font-size: clamp(1.05rem, 5.6vw, 1.35rem);
  }

  .day-utility-lead {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .day-page-nav-links {
    grid-template-columns: 1fr;
  }

  .tripday-nav-shell {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 4px;
    width: 100%;
  }

  .tripday-nav-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
  }

  .tripday-nav-track {
    gap: 6px;
    scroll-snap-type: x proximity;
    padding: 0 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 1) 10px, rgba(0, 0, 0, 1) calc(100% - 10px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 1) 10px, rgba(0, 0, 0, 1) calc(100% - 10px), transparent 100%);
  }

  .tripday-nav-link {
    width: 34px;
    height: 34px;
    font-size: 0.86rem;
    scroll-snap-align: center;
  }

  .tripday-nav-group {
    gap: 5px;
  }

  .tripday-nav-subtrack {
    gap: 5px;
  }

  .tripday-nav-sublink {
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
    scroll-snap-align: center;
  }

  .serdab-stage {
    min-height: 460px;
    border-radius: 24px;
  }

  .serdab-hint {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    padding: 12px 14px;
  }

  .serdab-found {
    padding: 24px 18px 24px;
  }

  .serdab-close {
    top: 14px;
    right: 14px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .serdab-found-title {
    font-size: 1.35rem;
  }

  .serdab-found-text {
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .serdab-actions {
    flex-direction: column;
  }

  .hero-fact {
    padding: 12px 14px;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .portal-grid,
  .route-band,
  .feature-grid,
  .language-grid,
  .hero-facts,
  .day-intro-grid,
  .khepri-spotlight-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .day-timeline-item {
    grid-template-columns: 1fr;
  }

  .khepri-anchor {
    right: 14px;
    bottom: 16px;
    width: 64px;
  }

  .khepri-panel {
    gap: 8px;
  }

  .khepri-character {
    width: 64px;
  }

  .page-footer {
    padding: 0 16px 28px;
  }

  .access-gate-dialog {
    padding: 22px;
  }

  .access-gate-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-day .tripday-nav-section {
    padding-left: 2px;
    padding-right: 2px;
  }

  .content-section.tripday-nav-section {
    padding-left: 2px;
    padding-right: 2px;
  }

  .countdown-grid {
    gap: 10px;
  }

  .countdown-box {
    padding: 14px 8px 12px;
    border-radius: 18px;
  }

  .countdown-value {
    font-size: 1.6rem;
  }

  .glyph-output {
    gap: 8px;
    min-height: 112px;
    padding: 14px;
  }

  .glyph-tile {
    min-width: 50px;
    padding: 8px 6px;
    border-radius: 16px;
  }

  .glyph-symbol {
    font-size: 1.5rem;
  }

  .khepri-spotlight-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .khepri-symbol {
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.7rem;
  }

  .language-output-panel,
  .voice-output-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .arabic-script {
    font-size: 1.8rem;
  }

  .voice-chant {
    font-size: 1.1rem;
  }

  .page-day .tripday-nav-card {
    padding-left: 0;
    padding-right: 0;
  }

  .tripday-nav-shell {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 2px;
  }

  .tripday-nav-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.84rem;
  }

  .tripday-nav-track {
    gap: 5px;
    padding: 0 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 1) 8px, rgba(0, 0, 0, 1) calc(100% - 8px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 1) 8px, rgba(0, 0, 0, 1) calc(100% - 8px), transparent 100%);
  }

  .tripday-nav-link {
    width: 31px;
    height: 31px;
    font-size: 0.78rem;
  }

  .tripday-nav-group,
  .tripday-nav-subtrack {
    gap: 4px;
  }

  .tripday-nav-sublink {
    width: 18px;
    height: 18px;
    font-size: 0.56rem;
  }

  .site-nav-bar {
    margin-top: 8px;
  }

  .site-brand-home {
    width: calc(100% - 112px);
  }

  .site-brand-logo {
    width: 100%;
    max-width: 278px;
    max-height: 56px;
  }

  .site-nav-links-home {
    width: calc(100% - 16px);
    top: 66px;
    left: 8px;
    padding: 12px;
  }

  .site-nav-link {
    padding: 10px 12px;
  }

  .page-day .day-hero-panel {
    width: min(100%, 94%);
    margin-bottom: 4px;
    border-radius: 22px;
  }

  .page-day .hero-text {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .page-home .hero-background {
    object-position: 79% center;
  }

  .home-hero-kicker {
    padding: 8px 12px;
  }

  .journey-ribbon {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-stop {
    justify-content: center;
    text-align: center;
  }

  .hero-fact-label {
    font-size: 0.72rem;
  }

  .khepri-bubble {
    max-width: 180px;
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .access-gate {
    padding: 14px;
  }

  .access-gate-dialog {
    padding: 20px;
    border-radius: 24px;
  }

  .serdab-stage {
    min-height: 360px;
  }

  .serdab-view-image {
    object-position: center top;
  }

  .serdab-statue {
    display: none;
  }

  .serdab-found {
    align-content: end;
    justify-items: start;
    gap: 8px;
    padding: 18px 14px 16px;
    text-align: left;
    background:
      linear-gradient(180deg, rgba(10, 7, 5, 0) 20%, rgba(10, 7, 5, 0.66) 48%, rgba(10, 7, 5, 0.9) 100%);
  }

  .serdab-close {
    top: 12px;
    right: 12px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .serdab-found-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .serdab-found-title {
    font-size: 0.95rem;
    line-height: 1.2;
    max-width: 13rem;
  }

  .serdab-found-text {
    max-width: none;
    font-size: 0.72rem;
    line-height: 1.42;
    color: rgba(255, 245, 223, 0.9);
  }

  .serdab-fact-text {
    font-size: 0.88rem;
  }

}

@media (max-height: 500px) and (orientation: landscape) {
  .page-day .hero-day {
    min-height: 100svh;
    padding-bottom: 14px;
  }

  .page-day .hero-content {
    min-height: calc(100svh - 92px);
  }

  .page-day .day-hero-panel {
    width: min(100%, 440px);
    padding: 12px 14px 11px;
  }

  .page-day .hero-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .page-day .hero-title {
    font-size: clamp(1.55rem, 4.2vw, 2.2rem);
  }

  .page-day .hero-text {
    margin-top: 5px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .page-day .tripday-nav-section,
  .page-day .day-utility-section {
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .page-day .day-utility-card,
  .page-day .day-panel,
  .page-day .section-card {
    padding: 18px;
  }

  .page-day .khepri-anchor {
    right: 10px;
    bottom: 10px;
    width: 58px;
  }

  .page-day .khepri-character {
    width: 58px;
  }
}

.resort-discovery-map {
  margin: 24px 0 0;
  border-color: rgba(255, 248, 229, 0.22);
  background: rgba(255, 248, 229, 0.1);
}

.resort-discovery-map::before {
  content: none;
}

.resort-discovery-map .flight-gallery-caption {
  padding: 0;
  background: none;
}

.resort-discovery-map-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.resort-discovery-map-button > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resort-discovery-map-button:focus-visible {
  outline: 3px solid #f6df9f;
  outline-offset: 3px;
}

.resort-discovery-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.resort-discovery-route path {
  fill: none;
  stroke: #fff7d9;
  stroke-width: 0.9;
  stroke-dasharray: 2 1.5;
  filter: drop-shadow(0 1px 2px rgba(40, 24, 13, 0.9));
}

.resort-map-pin {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px 4px 4px;
  border: 1px solid rgba(105, 69, 30, 0.18);
  border-radius: 999px;
  background: rgba(255, 251, 239, 0.94);
  box-shadow: 0 3px 10px rgba(45, 27, 14, 0.28);
  color: var(--color-brown);
  font-size: clamp(0.62rem, 1.2vw, 0.82rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.resort-map-pin-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-turquoise);
  color: #fff;
  font-size: 0.68rem;
}

.resort-map-pin-pool {
  left: 12%;
  bottom: 17%;
}

.resort-map-pin-bridges {
  left: 43%;
  top: 39%;
}

.resort-map-pin-sea {
  right: 5%;
  top: 7%;
}

.resort-discovery-hint {
  margin: 12px 0 0;
  color: rgba(255, 248, 229, 0.86);
  font-size: 0.9rem;
}

.fish-discovery {
  margin-top: 24px;
}

.fish-discovery-hint {
  margin: 0 0 12px;
  color: rgba(255, 248, 229, 0.86);
  font-size: 0.92rem;
}

.fish-discovery-grid,
.hurghada-day-pictures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fish-discovery-card {
  background: rgba(255, 248, 229, 0.12);
  border-color: rgba(255, 248, 229, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.fish-discovery-card::before {
  content: none;
}

.fish-discovery-card .flight-gallery-caption {
  padding: 0;
  background: none;
}

.fish-discovery-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 17px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.fish-discovery-button img,
.hurghada-day-pictures img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.fish-discovery-button:focus-visible {
  outline: 3px solid #f6df9f;
  outline-offset: 3px;
}

.fish-discovery-mark {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 249, 235, 0.94);
  color: var(--color-brown);
  font-weight: 800;
}

.hurghada-day-pictures {
  margin-top: 24px;
}

.hurghada-day-pictures figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 229, 0.22);
  border-radius: 16px;
  background: rgba(255, 248, 229, 0.12);
}

.hurghada-day-pictures figcaption {
  padding: 9px 5px 10px;
  color: rgba(255, 248, 229, 0.96);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.return-flight-story {
  display: grid;
  gap: 14px;
  line-height: 1.65;
}

.return-flight-story p {
  margin: 0;
}

.return-flight-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 248, 229, 0.18);
  border-radius: 16px;
  background: rgba(255, 248, 229, 0.08);
  font-size: 0.88rem;
  text-align: center;
}

.return-flight-facts strong {
  display: block;
  color: #f6df9f;
  font-size: 1.02rem;
}

.resort-place-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.resort-place-copy {
  display: grid;
  gap: 16px;
  align-content: center;
}

.resort-place-copy .feature-kicker,
.resort-place-copy .section-title,
.resort-place-copy .section-text {
  margin: 0;
}

.resort-place-prompt {
  margin: 4px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--color-turquoise);
  border-radius: 0 12px 12px 0;
  background: rgba(47, 143, 151, 0.1);
  color: var(--color-brown);
  font-weight: 700;
}

.resort-place-figure {
  margin: 0;
}

.resort-place-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(52, 32, 17, 0.18);
}

.resort-place-figure figcaption {
  margin-top: 10px;
  color: var(--color-brown);
  font-size: 0.86rem;
  opacity: 0.78;
}

@media (max-width: 760px) {
  .resort-place-card {
    grid-template-columns: 1fr;
  }
}

.companion-activity {
  display: grid;
  gap: 16px;
}

.companion-activity .section-title,
.companion-activity .section-text {
  margin: 0;
}

.companion-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.companion-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(122, 93, 54, 0.2);
  border-radius: 18px;
  background: rgba(255, 249, 238, 0.85);
  color: var(--color-brown);
  font-weight: 700;
  cursor: pointer;
}

.companion-check:has(input:checked) {
  border-color: rgba(35, 128, 114, 0.5);
  background: rgba(221, 245, 231, 0.9);
}

.companion-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-turquoise);
  flex: none;
}

.companion-progress {
  margin: 0;
  color: var(--color-turquoise);
  font-weight: 700;
}

.companion-note-label {
  color: var(--color-brown);
  font-weight: 700;
}

.companion-note {
  width: 100%;
  min-height: 116px;
  padding: 14px 16px;
  border: 1px solid rgba(122, 93, 54, 0.25);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.96);
  color: var(--color-brown);
  font: inherit;
  resize: vertical;
}

.companion-note:focus-visible {
  outline: 3px solid rgba(47, 143, 151, 0.35);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .companion-checks {
    grid-template-columns: 1fr;
  }
}
