:root {
  --nile-navy: #10253f;
  --nile-sand: #e7cf9d;
  --nile-gold: #c6922d;
  --nile-cream: #fff8e8;
  --nile-ink: #1c2633;
  --nile-teal: #1d736d;
  --nile-clay: #b76647;
  --nile-cloud: #f5ead4;
  --nile-border: rgba(16, 37, 63, 0.16);
  --nile-shadow: 0 18px 45px rgba(16, 37, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--nile-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  background: #5d6609;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

.skip-current {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1200;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--nile-navy);
  color: #fff;
}

.skip-current:focus {
  transform: translateY(0);
}

/* Header */
.nile-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--nile-border);
  background: rgba(255, 248, 232, 0.96);
  backdrop-filter: blur(12px);
}

.nile-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  position: relative;
}

.nile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--nile-navy);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
}

.nile-brand-glyph {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--nile-cream);
  background: linear-gradient(135deg, var(--nile-navy), var(--nile-teal));
  box-shadow: 0 8px 20px rgba(16, 37, 63, 0.18);
}

.nile-menu-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--nile-border);
  border-radius: 8px;
  background: #fff;
}

.nile-menu-lines,
.nile-menu-lines::before,
.nile-menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--nile-navy);
  content: "";
}

.nile-menu-lines {
  position: relative;
}

.nile-menu-lines::before,
.nile-menu-lines::after {
  position: absolute;
  left: 0;
}

.nile-menu-lines::before {
  top: -7px;
}

.nile-menu-lines::after {
  top: 7px;
}

.nile-paths {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(100% + 0.4rem);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--nile-border);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: var(--nile-shadow);
}

.nile-paths[data-open="true"] {
  display: flex;
}

.nile-paths a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  color: var(--nile-navy);
  font-weight: 700;
  text-decoration: none;
}

.nile-paths a:hover,
.nile-paths a:focus,
.nile-paths .is-current {
  background: rgba(29, 115, 109, 0.11);
}

/* Shared buttons and text */
.nile-kicker {
  margin: 0 0 0.6rem;
  color: var(--nile-teal);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nile-primary,
.nile-secondary,
.nile-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.nile-primary {
  background: var(--nile-navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 37, 63, 0.18);
}

.nile-secondary {
  color: var(--nile-navy);
  border-color: rgba(16, 37, 63, 0.22);
  background: #fffdf6;
}

.nile-plain {
  color: var(--nile-navy);
  background: transparent;
  border-color: transparent;
}

.nile-primary:hover,
.nile-secondary:hover,
.nile-plain:hover,
.nile-primary:focus,
.nile-secondary:focus,
.nile-plain:focus {
  transform: translateY(-1px);
}

.small-action {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
}

/* Landing */
.nile-intro,
.papyrus-entry {
  padding: 4rem 0 2.5rem;
}

.intro-grid {
  display: grid;
  gap: 1.5rem;
}

.intro-copy h1,
.narrow-copy h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  color: var(--nile-navy);
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 900;
}

.intro-copy p,
.narrow-copy p {
  max-width: 720px;
  font-size: 1.05rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.cairo-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--nile-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 234, 212, 0.95)),
    var(--nile-cloud);
  box-shadow: var(--nile-shadow);
}

.cairo-panel:not(.wide-panel) {
  padding: 1.2rem;
}

.cairo-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(45deg, transparent 46%, var(--nile-gold) 47%, var(--nile-gold) 53%, transparent 54%) 0 0 / 42px 42px;
  content: "";
}

.cairo-panel > * {
  position: relative;
}

.cairo-compass {
  width: 88px;
  height: 88px;
  margin-bottom: 1rem;
  border: 10px solid rgba(16, 37, 63, 0.09);
  border-radius: 50%;
  background:
    conic-gradient(from 45deg, var(--nile-gold), var(--nile-teal), var(--nile-clay), var(--nile-gold));
  box-shadow: inset 0 0 0 14px #fff8e8;
}

.panel-label {
  color: var(--nile-navy);
  font-weight: 900;
  font-size: 1.25rem;
}

.panel-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.1rem;
}

.nile-warning-ribbon {
  border-block: 1px solid rgba(183, 102, 71, 0.28);
  background: #fff1d4;
  color: var(--nile-navy);
}

.warning-layout {
  display: grid;
  gap: 0.35rem;
  padding: 1rem var(--bs-gutter-x, 0.75rem);
}

.desert-ranking,
.review-lens,
.player-care-zone,
.question-deck,
.delta-manual,
.contact-bazaar,
.policy-scroll {
  padding: 3.25rem 0;
}

.oasis-title {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.oasis-title h2,
.review-lens h2,
.player-care-zone h2,
.manual-tile h2,
.policy-panel h2,
.contact-card h2 {
  margin: 0 0 0.75rem;
  color: var(--nile-navy);
  font-weight: 900;
  line-height: 1.14;
}

.operator-grid {
  display: grid;
  gap: 1rem;
}

.operator-oasis,
.manual-tile,
.question-tile,
.policy-panel,
.message-reed {
  border: 1px solid var(--nile-border);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.94);
  box-shadow: 0 12px 34px rgba(16, 37, 63, 0.08);
}

.operator-oasis {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.operator-crown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rank-shell,
.adult-chip,
.adult-badge,
.care-marker,
.manual-index {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--nile-teal);
  font-weight: 900;
}

.rank-shell {
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
  background: var(--nile-navy);
}

.operator-copy h3 {
  margin: 0 0 0.45rem;
  color: var(--nile-navy);
  font-weight: 900;
}

.operator-facts {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.operator-facts div {
  padding: 0.7rem;
  border-radius: 8px;
  background: rgba(231, 207, 157, 0.22);
}

.operator-facts dt {
  color: var(--nile-navy);
  font-weight: 900;
}

.operator-facts dd {
  margin: 0.2rem 0 0;
}

.care-note {
  padding: 0.8rem;
  border-left: 4px solid var(--nile-clay);
  border-radius: 6px;
  background: rgba(183, 102, 71, 0.1);
  font-weight: 700;
}

.operator-action {
  width: 100%;
}

.lens-grid,
.care-grid,
.contact-grid,
.split-note {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.trust-meter {
  display: grid;
  gap: 0.7rem;
}

.meter-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--nile-border);
  border-radius: 8px;
  background: #fffdf6;
}

.meter-row span {
  color: var(--nile-clay);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.meter-row strong {
  color: var(--nile-navy);
}

.player-care-zone {
  background: linear-gradient(135deg, rgba(29, 115, 109, 0.12), rgba(198, 146, 45, 0.14));
}

.care-marker {
  width: 76px;
  height: 76px;
  font-size: 1.25rem;
  background: var(--nile-clay);
}

.question-list,
.manual-grid,
.policy-stack {
  display: grid;
  gap: 1rem;
}

.question-trigger {
  width: 100%;
  padding: 1rem;
  border: 0;
  border-radius: 8px;
  color: var(--nile-navy);
  background: transparent;
  text-align: left;
  font-weight: 900;
}

.question-trigger::after {
  float: right;
  color: var(--nile-teal);
  content: "+";
}

.question-trigger[aria-expanded="true"]::after {
  content: "-";
}

.question-answer {
  padding: 0 1rem 1rem;
}

/* Interior pages */
.papyrus-entry {
  background: linear-gradient(180deg, rgba(231, 207, 157, 0.26), rgba(255, 248, 232, 0));
}

.narrow-copy {
  max-width: 860px;
}

.manual-tile,
.policy-panel,
.message-reed {
  padding: 1.15rem;
}

.manual-index {
  min-width: 48px;
  min-height: 34px;
  width: max-content;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.9rem;
  background: var(--nile-gold);
  color: var(--nile-navy);
}

.wide-panel {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}

.wide-panel .container {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.safety-board {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.process-panel {
  padding-top: 2rem;
}

.contact-grid {
  align-items: start;
}

.message-reed {
  display: grid;
  gap: 1rem;
}

.field-wrap {
  display: grid;
  gap: 0.35rem;
}

.field-wrap label {
  color: var(--nile-navy);
  font-weight: 900;
}

.field-wrap input,
.field-wrap select,
.field-wrap textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem;
  border: 1px solid rgba(16, 37, 63, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--nile-ink);
  font: inherit;
}

.field-wrap textarea {
  min-height: 150px;
  resize: vertical;
}

.field-wrap input:focus,
.field-wrap select:focus,
.field-wrap textarea:focus {
  outline: 3px solid rgba(29, 115, 109, 0.2);
  border-color: var(--nile-teal);
}

.field-wrap.has-error input,
.field-wrap.has-error select,
.field-wrap.has-error textarea {
  border-color: var(--nile-clay);
}

.field-note {
  min-height: 1.25rem;
  color: #8c3424;
  font-weight: 700;
}

.form-receipt {
  margin: 0;
  color: var(--nile-teal);
  font-weight: 900;
}

.contact-card address {
  margin-bottom: 1rem;
  font-style: normal;
}

/* Footer */
.nile-footer {
  padding: 2.5rem 0;
  background: var(--nile-navy);
  color: #eef6f2;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  color: #fff;
  margin-bottom: 0.8rem;
}

.nile-footer h2 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.nile-footer nav {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.nile-footer a {
  color: #fff;
}

.adult-chip {
  width: 48px;
  height: 34px;
  background: var(--nile-gold);
  color: var(--nile-navy);
}

/* Consent and age gate */
.consent-dock {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: grid;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--nile-border);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: var(--nile-shadow);
}

.consent-copy h2 {
  margin: 0 0 0.35rem;
  color: var(--nile-navy);
  font-size: 1.15rem;
  font-weight: 900;
}

.consent-copy p {
  margin: 0;
}

.consent-actions,
.consent-panel-actions,
.adult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.consent-board {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--nile-border);
}

.switch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(231, 207, 157, 0.2);
}

.switch-line span {
  display: grid;
  gap: 0.15rem;
}

.switch-line small {
  color: #52616f;
}

.switch-line input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.adult-veil {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 37, 63, 0.78);
}

.adult-card {
  width: min(100%, 520px);
  padding: 1.4rem;
  border-radius: 8px;
  background: var(--nile-cream);
  color: var(--nile-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.adult-card h2 {
  margin: 0.7rem 0;
  color: var(--nile-navy);
  font-weight: 900;
}

.adult-badge {
  width: 62px;
  height: 42px;
  background: var(--nile-clay);
}

.adult-message {
  margin: 1rem 0 0;
  color: #8c3424;
  font-weight: 900;
}

.nile-locked {
  overflow: hidden;
}

@media (min-width: 768px) {
  .nile-menu-button {
    display: none;
  }

  .nile-paths {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nile-paths a {
    padding: 0.55rem 0.7rem;
  }

  .intro-grid,
  .lens-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  }

  .care-grid {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .operator-oasis {
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 1.2rem;
  }

  .operator-crown {
    display: grid;
    align-content: start;
    justify-items: center;
  }

  .operator-action {
    width: auto;
  }

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

  .footer-grid {
    grid-template-columns: 1.4fr 0.75fr 0.75fr 1fr;
  }

  .consent-dock {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .consent-board {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .intro-copy h1,
  .narrow-copy h1 {
    font-size: 3.35rem;
  }

  .nile-intro,
  .papyrus-entry {
    padding-top: 5.5rem;
  }

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

  .operator-oasis {
    grid-template-columns: 1fr;
  }

  .operator-crown {
    display: flex;
  }

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

.footer-regulation {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 28px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.footer-regulation h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 64px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-logos a:hover {
  transform: translateY(-3px);
  background: #ffffff;
}

.footer-logos img {
  max-width: 120px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .footer-regulation {
    margin-top: 32px;
    padding: 24px 16px 0;
  }

  .footer-logos {
    gap: 14px;
  }

  .footer-logos a {
    width: 100%;
    max-width: 260px;
    height: 60px;
  }
}


.nile-intro {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      rgba(16, 37, 63, 0.72),
      rgba(16, 37, 63, 0.78)
    ),
    url("../img/hero-bg.jpg") center center / cover no-repeat;
}

.nile-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(198, 146, 45, 0.22),
      transparent 42%
    );
  pointer-events: none;
}

.nile-intro .intro-grid {
  position: relative;
  z-index: 2;
}

.nile-intro .intro-copy h1,
.nile-intro .intro-copy p,
.nile-intro .nile-kicker {
  color: #ffffff;
}

.nile-intro .nile-kicker {
  color: var(--nile-sand);
}

.nile-intro .cairo-panel {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 248, 232, 0.08)
    );
    
  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(10px);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24);
}

.nile-intro .panel-label,
.nile-intro .panel-list li {
  color: #ffffff;
}

.nile-intro .cairo-compass {
  box-shadow:
    inset 0 0 0 14px rgba(255, 248, 232, 0.88);
}

.responsible-steps {
  padding: 88px 0;
  background:
    radial-gradient(circle at top left, rgba(218, 171, 92, 0.22), transparent 34%),
    linear-gradient(135deg, #fff8ec 0%, #f4ead8 100%);
}

.responsible-steps-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 42px;
  align-items: center;
}

.steps-content h2 {
  margin-bottom: 18px;
  color: #2b2118;
}

.steps-content p {
  color: #625447;
  line-height: 1.75;
}

.steps-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  padding: 28px 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(99, 72, 43, 0.12);
  box-shadow: 0 18px 45px rgba(73, 51, 28, 0.09);
}

.step-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #2b2118;
  color: #f7d89a;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 12px;
  color: #2b2118;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  color: #66594b;
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .responsible-steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-cards {
    grid-template-columns: 1fr;
  }
}