@charset "utf-8";
/* ============================================================
   SOPHIA'S OCEAN — fishcareers.outright.io
   Mobile-first, scroll-driven, zero dependencies.
   ============================================================ */

:root {
  /* type */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  /* validated chart palette (dark surface #0f2e46) */
  --series-1: #22a3c2;
  --series-2: #cc812f;

  /* dark-zone tokens */
  --panel: #0f2e46;
  --panel-edge: rgba(255,255,255,0.14);
  --panel-soft: rgba(6, 26, 43, 0.45);
  --ink-d1: #eef7fb;
  --ink-d2: #b8d4e2;
  --ink-d3: #8fb0c2;
  --grid-d: rgba(255,255,255,0.12);
  --accent: #5fd0e8;
  --accent-warm: #ffb457;

  /* light-zone tokens */
  --ink-l1: #06283a;
  --ink-l2: #12455c;
  --ink-l3: #2a5f76;
  --panel-l: rgba(255,255,255,0.72);
  --panel-l-edge: rgba(6, 40, 58, 0.18);

  /* scroll-driven background (JS writes these) */
  --bg1: #74d2e7;
  --bg2: #4cb6d7;

  --maxw: 42rem;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  color: var(--ink-d1);
  overflow-x: hidden;
}
@supports (-webkit-touch-callout: none) {
  /* iOS: fixed attachment is janky — fall back to a solid lerped color */
  body { background: var(--bg1); }
}

::selection { background: #ffb457; color: #06283a; }

a { color: inherit; }
main { display: block; }

/* ============ zones (per-section ink) ============ */
.zone-light { color: var(--ink-l1); }
.zone-light .lede, .zone-light .prose p { color: var(--ink-l2); }
.zone-dark { color: var(--ink-d1); }
.zone-dark .lede { color: var(--ink-d2); }

/* ============ layout primitives ============ */
.chapter, .finale, .sources {
  position: relative;
  padding: clamp(4rem, 10vh, 7rem) 1.25rem;
}
.chapter > *, .finale > *, .sources > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.chapter-head { margin-bottom: 2.25rem; }
.kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 0.75rem;
}
.chapter-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 7.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
.lede { font-size: 1.125rem; margin: 0; }
.lede strong { color: inherit; }

.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.callout-line {
  border-left: 3px solid var(--accent-warm);
  padding-left: 1rem;
  font-size: 1.1rem;
}
.zone-light .callout-line { border-color: #c96f16; }

.sub-head {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 3rem auto 1.25rem;
}

.fine { font-size: 0.9rem; color: var(--ink-d3); }

/* ============ panels ============ */
.panel {
  background: var(--panel-soft);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin: 1.5rem auto;
  backdrop-filter: none;
}
.panel h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.75rem; }
.panel h4 { margin: 0 0 0.5rem; font-size: 1.02rem; }
.panel p { margin: 0 0 0.9rem; }
.panel p:last-child { margin-bottom: 0; }

.zone-light .panel {
  background: var(--panel-l);
  border-color: var(--panel-l-edge);
}

/* ============ quotes ============ */
.quote {
  margin: 2.5rem auto;
  padding: 0;
  border: 0;
}
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 4.5vw, 1.65rem);
  line-height: 1.42;
  margin: 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}
.zone-light .quote p { border-color: #0a7d9c; color: var(--ink-l1); }
.quote.inset { margin: 1.5rem 0 0.25rem; }
.quote.inset p { font-size: 1.15rem; }
.quote.grand { margin: 3.5rem auto; }
.quote.grand p {
  border: 0; padding: 0; text-align: center;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  color: #cfeefb;
}

/* ============ drift lines (scroll bait) ============ */
.drift {
  margin: 3.25rem auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  opacity: 0.9;
}
.drift-arrow { display: inline-block; margin-left: 0.3rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 40rem; }

.sunrays {
  position: absolute; inset: -20% -10%;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.16) 46%, transparent 52%),
    linear-gradient(115deg, transparent 60%, rgba(255,255,255,0.12) 65%, transparent 72%),
    linear-gradient(115deg, transparent 24%, rgba(255,255,255,0.10) 28%, transparent 33%);
  animation: rays 11s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes rays { from { transform: translateX(-2.5%); opacity: 0.85; } to { transform: translateX(2.5%); opacity: 1; } }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #084b63;
  margin: 0 0 1rem;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  /* floor kept small enough that the unbreakable word "SOPHIA'S" never
     overflows a narrow phone (was 3.4rem, which clipped below ~430px) */
  font-size: clamp(2.5rem, 14vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem;
  color: #063346;
  text-shadow: 0 2px 0 rgba(255,255,255,0.25);
}

.hero-fish { position: relative; display: inline-block; margin: 0.25rem 0 1.25rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hf-swim { animation: swim 5.5s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes swim {
  0%,100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-7px) rotate(-3deg); }
  65% { transform: translateY(5px) rotate(2.5deg); }
}
.hero-bubbles i, .ascent-bubbles i {
  position: absolute;
  bottom: 60%;
  left: 20%;
  width: 7px; height: 7px;
  border: 1.5px solid rgba(255,255,255,0.75);
  border-radius: 50%;
  opacity: 0;
  animation: bubble 4.2s linear infinite;
}
.hero-bubbles i:nth-child(2) { left: 30%; width: 5px; height: 5px; animation-delay: 1.3s; }
.hero-bubbles i:nth-child(3) { left: 12%; width: 9px; height: 9px; animation-delay: 2.6s; }
@keyframes bubble {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translateY(-90px) translateX(8px); opacity: 0; }
}

.hero-lede { font-size: 1.15rem; color: #0a3d52; max-width: 34rem; margin: 0 auto 2rem; }
.hero-lede strong { color: #052736; }

.dive-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: #f2fbfd;
  background: #075a75;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(4, 48, 66, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dive-cta:hover { transform: translateY(2px); box-shadow: 0 6px 18px rgba(4, 48, 66, 0.4); }
.hero-alt { margin: 1.1rem 0 0; font-size: 0.9rem; color: #0a4a61; }

.linklike {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.hero-egg {
  position: absolute;
  bottom: 1.4rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: #063346;
  animation: eggin 0.6s ease;
  z-index: 3;
}
@keyframes eggin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wide-only { display: none; }
@media (min-width: 640px) { .wide-only { display: inline; } }

/* ============================================================
   VERDICT
   ============================================================ */
.verdict-stamp { text-align: center; margin: 2.5rem auto; }
.vs-small { font-size: 1.05rem; color: var(--ink-l2); margin: 0 0 0.4rem; }
.vs-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 22vw, 8rem);
  line-height: 1;
  margin: 0;
  color: #05303f;
}
.vs-sub { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; margin: 0.6rem 0 0; color: var(--ink-l2); }

.power-grid { display: grid; gap: 1rem; margin: 2rem auto; }
@media (min-width: 640px) { .power-grid { grid-template-columns: 1fr 1fr; } }
.power-card {
  background: var(--panel-l);
  border: 1px solid var(--panel-l-edge);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.power-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a7d9c;
}
.power-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0.45rem 0 0.6rem; color: var(--ink-l1); }
.power-card p { margin: 0; font-size: 0.98rem; color: var(--ink-l2); }

/* ============================================================
   ACCORDIONS (lanes / experiments / routes / sectors)
   ============================================================ */
.lane, .exp, .route, .sector {
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: var(--panel-soft);
  margin: 0 0 0.8rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.lane.is-open, .exp.is-open, .route.is-open, .sector.is-open { border-color: rgba(95, 208, 232, 0.55); }
.lane.is-matched { border-color: var(--accent-warm); box-shadow: 0 0 0 1px var(--accent-warm), 0 8px 30px rgba(255, 180, 87, 0.12); }

.lane-toggle, .exp-toggle, .route-toggle, .sector-toggle {
  display: grid;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.lane-toggle { grid-template-columns: auto 1fr auto; grid-template-areas: "icon title plus" "icon hook plus"; column-gap: 0.9rem; }
.lane-icon { grid-area: icon; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(95,208,232,0.13); color: var(--accent); }
.lane-icon svg { width: 22px; height: 22px; }
.lane-title { grid-area: title; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.lane-hook { grid-area: hook; font-size: 0.85rem; color: var(--ink-d3); font-style: italic; }
.lane-plus {
  grid-area: plus;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
}
.is-open .lane-plus { transform: rotate(45deg); }

html.js .lane-body, html.js .exp-body, html.js .route-body, html.js .sector-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.lane-body > *, .exp-body > *, .route-body > *, .sector-body > * { margin-left: 1.15rem; margin-right: 1.15rem; }
.lane-body > :first-child, .exp-body > :first-child, .route-body > :first-child, .sector-body > :first-child { margin-top: 0.15rem; }
.lane-body > :last-child, .exp-body > :last-child, .route-body > :last-child, .sector-body > :last-child { margin-bottom: 1.25rem; }

.lane-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.meta-pill {
  font-size: 0.78rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--grid-d);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  color: var(--ink-d2);
}
.meta-pill b { color: var(--ink-d1); }
.lane-fit { font-size: 0.95rem; color: var(--ink-d2); border-left: 2px solid var(--accent); padding-left: 0.8rem; }

.lane-grid { display: grid; gap: 0; }
@media (min-width: 760px) { .lane-grid { grid-template-columns: 1fr 1fr; gap: 0 0.8rem; align-items: start; } }

/* honest panel */
.honest { margin-top: 2rem; }
.tier-list { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.tier-list li { padding: 0.5rem 0; border-bottom: 1px dashed var(--grid-d); font-size: 0.97rem; color: var(--ink-d2); }
.tier-list li:last-child { border-bottom: 0; }
.tier-list b { color: var(--ink-d1); }

/* ============================================================
   JOURNEY (home waters)
   ============================================================ */
.journey { max-width: var(--maxw); margin: 0 auto; }
.stop {
  display: grid;
  /* minmax(0,1fr) lets the content column shrink below its min-content
     width; without it the nowrap 7-column log table blows the track (and
     the whole page) wider than the viewport */
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 1.1rem;
  margin: 0 0 2.2rem;
  position: relative;
}
.stop-body { min-width: 0; }
.stop-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(95,208,232,0.12);
  border: 1px solid rgba(95,208,232,0.4);
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  display: grid; place-items: center;
}
.stop:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.28rem;
  top: 3rem;
  bottom: -1.6rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(95,208,232,0.4), rgba(95,208,232,0.08));
}
.stop-body h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0.15rem 0 0.35rem; }
.stop-where { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-d3); margin: 0 0 0.8rem; }
.stop-body p { margin: 0 0 0.9rem; }
.stop-note { font-size: 0.95rem; color: var(--ink-d2); background: rgba(255,255,255,0.05); border-radius: 12px; padding: 0.8rem 0.95rem; }

.checkline { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkline li { padding: 0.32rem 0 0.32rem 1.5rem; position: relative; font-size: 0.98rem; }
.checkline li::before { content: "\2014"; position: absolute; left: 0; color: var(--accent); }
.checkline.ticks li::before { content: "\2713"; color: #7fe0c0; }
.checkline.plus-marks li::before { content: "+"; color: var(--accent-warm); }
.checkline.compact li { padding-top: 0.2rem; padding-bottom: 0.2rem; font-size: 0.94rem; }

.train-callout {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: linear-gradient(135deg, rgba(255,180,87,0.14), rgba(255,180,87,0.05));
  border: 1px solid rgba(255,180,87,0.4);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  margin: 0 0 0.9rem;
}
.train-icon { color: var(--accent-warm); flex: none; margin-top: 0.15rem; }
.train-icon svg { width: 26px; height: 26px; }
.train-callout p { margin: 0; font-size: 0.97rem; }

/* source links */
.src {
  font-size: 0.78em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(95,208,232,0.5);
  white-space: nowrap;
}
.zone-light .src { color: #0a6d8c; border-color: rgba(10,109,140,0.4); }
.src:hover { border-bottom-style: solid; }

/* tables */
.mini-table-wrap { overflow-x: auto; margin: 0 0 0.5rem; }
.mini-table-label { font-size: 0.9rem; color: var(--ink-d3); margin: 0 0 0.5rem; }
.datatable {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
}
.datatable th, .datatable td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--grid-d);
  white-space: nowrap;
}
.datatable th { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-d3); }
.log-hint { white-space: normal; color: var(--ink-d3); font-style: italic; }

/* ============================================================
   EXPERIMENTS + SCORECARD
   ============================================================ */
.exp-toggle { grid-template-columns: auto 1fr auto; grid-template-areas: "letter name plus" "letter q plus"; column-gap: 1rem; }
.exp-letter {
  grid-area: letter;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-warm);
  width: 2.7rem; height: 2.7rem;
  border: 1.5px solid rgba(255,180,87,0.55);
  border-radius: 50%;
  display: grid; place-items: center;
}
.exp-name { grid-area: name; font-weight: 700; font-size: 1.05rem; }
.exp-q { grid-area: q; font-style: italic; font-size: 0.88rem; color: var(--ink-d3); }

.score-panel { margin-top: 2.5rem; }
.score-intro { font-size: 0.97rem; }
.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--grid-d);
}
.score-row:last-child { border-bottom: 0; }
.sr-text b { display: block; font-size: 0.97rem; }
.sr-text span { font-size: 0.82rem; color: var(--ink-d3); }
.sr-dots { display: flex; gap: 0.45rem; }
.sr-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(95,208,232,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.sr-dot.is-lit { background: var(--series-1); border-color: var(--series-1); }
.sr-dot:active { transform: scale(1.2); }
.score-total {
  display: flex; align-items: baseline; gap: 0.9rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-edge);
}
.st-num { font-size: 2rem; font-weight: 700; }
.st-num em { font-style: normal; font-size: 1rem; color: var(--ink-d3); }
.st-note { font-size: 0.88rem; color: var(--ink-d3); }

/* ============================================================
   SALTWATER
   ============================================================ */
.two-col { display: grid; gap: 1rem; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.col-title { font-size: 1.1rem; }
.col-title.carries { color: #7fe0c0; }
.col-title.new { color: var(--accent-warm); }

.timeline { margin: 2.25rem auto; }
.timeline-title { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 1.25rem; }
.tl { list-style: none; padding: 0; margin: 0; }
.tl-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0 0 1.4rem 0;
  position: relative;
}
.tl-when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(95,208,232,0.1);
  border: 1px solid rgba(95,208,232,0.35);
  align-self: start;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
}
.tl-what { font-size: 0.98rem; color: var(--ink-d2); }
.tl-what b { color: var(--ink-d1); }
.panel.gentle { border-color: rgba(255,180,87,0.45); }

/* ============================================================
   ROUTES
   ============================================================ */
.route-toggle { grid-template-columns: auto 1fr auto auto; column-gap: 0.8rem; align-items: center; }
.route-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(95,208,232,0.4);
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}
.route-name { font-weight: 700; font-size: 1rem; }
.route-cost { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-d3); white-space: nowrap; }
@media (max-width: 480px) {
  .route-toggle { grid-template-columns: auto 1fr auto; grid-template-areas: "badge name plus" "badge cost plus"; row-gap: 0.2rem; }
  .route-badge { grid-area: badge; } .route-name { grid-area: name; } .route-cost { grid-area: cost; } .route-toggle .lane-plus { grid-area: plus; }
}
.school-list { list-style: none; padding: 0; margin: 0 0 0.9rem; }
.school-list li { padding: 0.65rem 0; border-bottom: 1px dashed var(--grid-d); font-size: 0.96rem; color: var(--ink-d2); }
.school-list li:last-child { border-bottom: 0; }
.school-list b { color: var(--ink-d1); }

.warn-panel {
  background: rgba(255, 180, 87, 0.08);
  border: 1px solid rgba(255,180,87,0.45);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  margin: 0 1.15rem 1.25rem !important;
}
.warn-panel h4 { color: var(--accent-warm); margin: 0 0 0.5rem; }
.warn-panel p, .warn-panel ul { margin-left: 0 !important; margin-right: 0 !important; }

/* ============================================================
   MONEY
   ============================================================ */
.posting-grid { display: grid; gap: 0.9rem; }
@media (min-width: 760px) { .posting-grid { grid-template-columns: 1fr 1fr 1fr; align-items: stretch; } }
.posting { margin: 0; }
.posting p { font-size: 0.92rem; color: var(--ink-d2); }
.posting-pay { font-weight: 700; font-size: 1.05rem !important; color: var(--ink-d1) !important; }

.skills-cloud { margin: 2rem auto; }
.sc-label { font-size: 0.95rem; color: var(--ink-d2); margin: 0 0 0.7rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 0.8rem; }
.chips li {
  font-size: 0.85rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--grid-d);
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-d2);
}
.chips.small li { font-size: 0.78rem; padding: 0.3rem 0.6rem; }
.chips.terms li { font-family: var(--font-mono); font-size: 0.78rem; }
.chips.doors li { border-color: rgba(95,208,232,0.45); color: var(--ink-d1); }
.sc-note { font-size: 0.9rem; color: var(--ink-d3); margin: 0; }

/* ---- the chart (dataviz spec: thin bars, 4px rounded data-end, direct labels, text tokens) ---- */
.viz-root {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.1rem;
  margin: 1.5rem auto;
}
.chart-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 0.25rem; color: var(--ink-d1); }
.chart-sub { font-size: 0.85rem; color: var(--ink-d3); margin: 0 0 1.4rem; }
.bar-row { margin: 0 0 1.05rem; }
.bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; margin-bottom: 0.3rem; }
.bar-label b { font-size: 0.94rem; font-weight: 600; color: var(--ink-d1); }
.bar-label span { font-size: 0.78rem; color: var(--ink-d3); text-align: right; }
.bar-track { display: flex; align-items: center; gap: 0.6rem; }
.bar {
  height: 18px;
  width: var(--w);
  min-width: 3px;
  background: var(--series-1);
  border-radius: 0 4px 4px 0;   /* rounded data-end, square baseline */
  transform-origin: left center;
}
.reveal.in .bar { animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes grow { from { transform: scaleX(0.05); } }
.bar-val { font-size: 0.88rem; font-weight: 700; color: var(--ink-d1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-table summary { cursor: pointer; font-size: 0.88rem; color: var(--ink-d2); padding: 0.4rem 0; }
.chart-table .datatable td, .chart-table .datatable th { white-space: normal; }

.panel.insight { border-color: rgba(95,208,232,0.5); }
.insight-fine { font-size: 0.9rem; color: var(--ink-d3); }

/* ============================================================
   WIDER OCEAN
   ============================================================ */
.sector-toggle { grid-template-columns: 1fr auto; grid-template-areas: "name plus" "hint plus"; }
.sector-name { grid-area: name; font-weight: 700; font-size: 1.02rem; }
.sector-hint { grid-area: hint; font-size: 0.82rem; color: var(--ink-d3); }
.sector-note { font-size: 0.92rem; color: var(--ink-d2); font-style: italic; }

.aquaculture { border-color: rgba(255,180,87,0.4); margin-top: 2.25rem; }

.nation-grid { display: grid; gap: 0.9rem; }
@media (min-width: 700px) { .nation-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 700px) { .nation-grid.four { grid-template-columns: 1fr 1fr; } }
.stat-tile { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; }
.tile-label { font-size: 0.82rem; color: var(--ink-d3); }
.tile-value { font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: var(--ink-d1); }
.tile-sub { font-size: 0.82rem; color: var(--ink-d2); }

.searchbox { margin-top: 1.5rem; }

/* copy buttons + message boxes */
.msgbox {
  background: rgba(2, 14, 24, 0.55);
  border: 1px solid var(--grid-d);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  margin: 0.9rem 0;
}
.zone-light .msgbox { background: rgba(255,255,255,0.85); border-color: var(--panel-l-edge); }
.msg-text { font-size: 0.95rem; white-space: pre-line; margin: 0 0 0.9rem !important; color: var(--ink-d2); }
.zone-light .msg-text { color: var(--ink-l2); }
.copy-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #052736;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.copy-btn:active { transform: scale(0.96); }
.copy-btn.copied { background: #7fe0c0; }

/* ============================================================
   KIT
   ============================================================ */
.kit-list { list-style: none; padding: 0; margin: 0; }
.kit-item {
  display: flex; gap: 0.85rem; align-items: flex-start;
  width: 100%; text-align: left;
  background: none; border: 0; color: inherit; font: inherit;
  padding: 0.65rem 0;
  cursor: pointer;
  border-bottom: 1px dashed var(--grid-d);
  -webkit-tap-highlight-color: transparent;
}
.kit-list li:last-child .kit-item { border-bottom: 0; }
.kit-box {
  flex: none;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(95,208,232,0.55);
  border-radius: 7px;
  margin-top: 0.15rem;
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.kit-item[aria-pressed="true"] .kit-box { background: var(--series-1); border-color: var(--series-1); }
.kit-item[aria-pressed="true"] .kit-box::after { content: "\2713"; color: #04202f; font-size: 0.85rem; font-weight: 800; }
.kit-item[aria-pressed="true"] .kit-text { opacity: 0.65; }
.kit-text { font-size: 0.96rem; color: var(--ink-d2); transition: opacity 0.2s ease; }
.kit-text b { color: var(--ink-d1); }
.kit-progress { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin: 1rem 0 0; }

.resume-note { font-size: 0.95rem; }

/* ============================================================
   PLAN
   ============================================================ */
.plan-tabs { display: flex; gap: 0.5rem; margin: 0 auto 1.4rem; }
.plan-tab {
  flex: 1;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-d2);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--grid-d);
  border-radius: 12px;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.plan-tab.is-active { background: var(--accent); color: #052736; border-color: var(--accent); }
html.js .plan-pane { display: none; }
html.js .plan-pane.is-active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.plan-list { margin: 0; padding: 0 0 0 1.3rem; }
.plan-list li { padding: 0.45rem 0 0.45rem 0.4rem; font-size: 1rem; color: var(--ink-d2); }
.plan-list li::marker { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }

/* ============================================================
   COMPASS (quiz + recommendation)
   ============================================================ */
.quiz { display: grid; gap: 0.6rem; margin: 0 auto 2.5rem; }
.quiz-item {
  font: inherit;
  font-size: 0.98rem;
  text-align: left;
  color: var(--ink-d2);
  background: var(--panel-soft);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.quiz-item[aria-pressed="true"] {
  border-color: var(--accent-warm);
  background: rgba(255,180,87,0.1);
  color: var(--ink-d1);
}
.quiz-result {
  margin-top: 0.9rem;
  padding: 1.1rem 1.15rem;
  border: 1px dashed rgba(255,180,87,0.6);
  border-radius: 14px;
}
.qr-head { margin: 0 0 0.35rem; font-size: 0.85rem; color: var(--ink-d3); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.qr-lanes { margin: 0 0 0.6rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--accent-warm); }
.quiz-result .linklike { font-size: 0.9rem; color: var(--accent); }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 0.5rem; }
#scoreCopy { margin-top: 1rem; }

.rec-panel {
  background: linear-gradient(160deg, rgba(95,208,232,0.12), rgba(255,180,87,0.08));
  border: 1px solid rgba(95,208,232,0.45);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  margin: 0 auto 1rem;
}
.rec-kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-d3); margin: 0 0 0.7rem; }
.rec-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--ink-d1);
}
.rec-title span { color: var(--accent-warm); }
.rec-panel p { color: var(--ink-d2); }

/* ---- compass in the sunlight zone (chapter 1 sits on a light background) ---- */
.zone-light .quiz-item {
  background: var(--panel-l);
  border-color: var(--panel-l-edge);
  color: var(--ink-l2);
}
.zone-light .quiz-item[aria-pressed="true"] {
  border-color: #c96f16;
  background: rgba(255, 214, 165, 0.85);
  color: var(--ink-l1);
}
.zone-light .quiz-result { border-color: rgba(201, 111, 22, 0.55); }
.zone-light .qr-head { color: var(--ink-l3); }
.zone-light .qr-lanes { color: #a85a0f; }
.zone-light .quiz-result .linklike { color: #0a6d8c; }
.zone-light .rec-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.78), rgba(255,214,165,0.55));
  border-color: rgba(10, 109, 140, 0.3);
}
.zone-light .rec-kicker { color: var(--ink-l3); }
.zone-light .rec-title { color: var(--ink-l1); }
.zone-light .rec-title span { color: #a85a0f; }
.zone-light .rec-panel p { color: var(--ink-l2); }
.zone-light .chips li { background: rgba(255,255,255,0.6); border-color: var(--panel-l-edge); color: var(--ink-l2); }
.zone-light .chips.doors li { border-color: rgba(10,109,140,0.4); color: var(--ink-l1); }
.zone-light .quote.grand p { color: var(--ink-l1); }

/* ---- compass-driven personalization (the needle set in chapter 1
        highlights matching lanes, experiments and routes downstream;
        everything stays reachable — non-matches only dim) ---- */
body.compass-set .lane:not(.is-matched),
body.compass-set .exp:not(.compass-match),
body.compass-set .route:not(.compass-match),
body.compass-set .sector[data-lanes]:not(.compass-match) {
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
body.compass-set .lane:not(.is-matched):hover,
body.compass-set .lane:not(.is-matched):focus-within,
body.compass-set .exp:not(.compass-match):hover,
body.compass-set .exp:not(.compass-match):focus-within,
body.compass-set .route:not(.compass-match):hover,
body.compass-set .route:not(.compass-match):focus-within,
body.compass-set .sector[data-lanes]:not(.compass-match):hover,
body.compass-set .sector[data-lanes]:not(.compass-match):focus-within { opacity: 1; }
body.compass-set .lane.is-matched { order: -1; }
.exp.compass-match, .route.compass-match, .sector.compass-match {
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 1px var(--accent-warm), 0 8px 30px rgba(255, 180, 87, 0.12);
}
.exp.compass-match .exp-name::after,
.route.compass-match .route-name::after,
.sector.compass-match .sector-name::after {
  content: "compass match";
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  border: 1px solid rgba(255, 180, 87, 0.5);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin-left: 0.55rem;
  vertical-align: 0.12em;
  white-space: nowrap;
}

/* ============================================================
   FINALE
   ============================================================ */
.finale {
  padding-bottom: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    #071b33 16%,
    #12264d 32%,
    #35335f 48%,
    #6d4a6c 64%,
    #b56b67 78%,
    #e89a6b 90%,
    #ffc98f 100%);
}
.floor-mark { text-align: center; padding: 3rem 0 4rem; }
.floor-depth { font-family: var(--font-mono); letter-spacing: 0.25em; color: var(--accent); margin: 0 0 1.2rem; }
.floor-note { max-width: 33rem; margin: 0 auto; color: var(--ink-d2); font-size: 1.02rem; }
.floor-note em { color: var(--ink-d1); }

.ascent { text-align: center; padding: 5rem 0 3.5rem; }
.ascent-copy p { max-width: 30rem; margin: 0 auto 1.2rem; font-size: 1.1rem; color: #fdf3e6; }
.ascent-big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.25;
  color: #fffdf9 !important;
  padding-top: 1.2rem;
}
.ascent-fish { position: relative; display: inline-block; margin: 2rem 0 1rem; transform: rotate(-38deg); }
.ascent-bubbles i { border-color: rgba(255,253,249,0.8); animation-duration: 3.4s; }
.ascent-bubbles i:nth-child(2) { left: 35%; animation-delay: 0.8s; }
.ascent-bubbles i:nth-child(3) { left: 55%; animation-delay: 1.6s; }
.ascent-bubbles i:nth-child(4) { left: 15%; animation-delay: 2.2s; }
.ascent-bubbles i:nth-child(5) { left: 70%; width: 5px; height: 5px; animation-delay: 2.9s; }
.dedication {
  font-family: var(--font-display);
  font-style: italic;
  color: #7a4a33;
  font-size: 0.98rem;
  margin: 2.5rem auto 2rem;
}
.resurface {
  display: inline-block;
  font-weight: 700;
  color: #6b3a24;
  text-decoration: none;
  border: 1.5px solid rgba(107,58,36,0.5);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  margin-bottom: 3.5rem;
  transition: background 0.2s ease;
}
.resurface:hover { background: rgba(255,255,255,0.25); }

/* ============================================================
   SOURCES
   ============================================================ */
.sources { padding-top: 2.5rem; padding-bottom: 3rem; background: #04121f; }
.sources-fold summary {
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-d3);
  font-family: var(--font-mono);
  padding: 0.5rem 0;
}
.sources-cols { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
@media (min-width: 700px) { .sources-cols { grid-template-columns: 1fr 1fr; } }
.sources-cols h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-d3); margin: 0 0 0.5rem; }
.sources-cols h4:not(:first-child) { margin-top: 1.25rem; }
.sources-cols ul { list-style: none; padding: 0; margin: 0; }
.sources-cols li { padding: 0.22rem 0; }
.sources-cols a { font-size: 0.85rem; color: var(--ink-d2); text-decoration: none; border-bottom: 1px dotted var(--grid-d); }
.sources-cols a:hover { color: var(--accent); }

/* ============================================================
   FIXED CHROME: depth meter, dive line, FAB, overlay
   ============================================================ */
.depth-meter {
  position: fixed;
  top: max(0.9rem, env(safe-area-inset-top));
  right: 0.9rem;
  z-index: 40;
  text-align: right;
  font-family: var(--font-mono);
  background: rgba(3, 16, 28, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.depth-meter.show { opacity: 1; transform: none; }
.dm-depth { display: block; font-size: 0.95rem; font-weight: 700; color: #dff4fb; font-variant-numeric: tabular-nums; }
.dm-zone { display: block; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8fc7da; }

.dive-line {
  position: fixed;
  top: 0; bottom: 0; left: 0.45rem;
  width: 2px;
  z-index: 39;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.dive-line.show { opacity: 0.85; }
.dive-fish {
  position: absolute;
  left: -12px;
  top: 0;
  color: #cdeef8;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
  transition: top 0.15s linear;
}

.fab {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: 0.9rem;
  z-index: 41;
  display: flex; align-items: center; gap: 0.45rem;
  font: inherit; font-size: 0.85rem; font-weight: 700;
  color: #052736;
  background: #ffd9a0;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  box-shadow: 0 8px 24px rgba(2, 12, 22, 0.45);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fab:active { transform: scale(0.97); }

.chart-overlay {
  position: fixed; inset: 0;
  z-index: 50;
  background: rgba(2, 10, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chart-overlay[hidden] { display: none; }
.chart-inner { max-width: 30rem; margin: 0 auto; padding: 2.2rem 1.4rem 3rem; }
.chart-head { position: relative; margin-bottom: 1.5rem; }
.chart-head h2 { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 0.3rem; color: #eef7fb; }
.chart-head p { margin: 0; color: #8fb0c2; font-style: italic; font-family: var(--font-display); }
.chart-close {
  position: absolute; top: -0.4rem; right: -0.2rem;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.08);
  color: #eef7fb;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 2.4rem; height: 2.4rem;
  cursor: pointer;
}
.chart-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.chart-list a {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  grid-template-areas: "depth title" "depth sub";
  column-gap: 0.9rem;
  text-decoration: none;
  padding: 0.72rem 0.6rem;
  border-radius: 12px;
  border-left: 2px solid rgba(95,208,232,0.35);
  margin-bottom: 0.35rem;
  transition: background 0.15s ease;
}
.chart-list a:hover, .chart-list a:focus-visible { background: rgba(255,255,255,0.06); }
.chart-list em { grid-area: depth; font-family: var(--font-mono); font-style: normal; font-size: 0.78rem; color: #5fd0e8; align-self: center; text-align: right; padding-right: 0.2rem; font-variant-numeric: tabular-nums; }
.chart-list strong { grid-area: title; color: #eef7fb; font-size: 0.98rem; }
.chart-list span { grid-area: sub; color: #8fb0c2; font-size: 0.8rem; }
.chart-list a.visited { border-left-color: #7fe0c0; }
.chart-list a.visited strong::after { content: " \2713"; color: #7fe0c0; font-size: 0.8em; }

/* ============================================================
   ANIMATED AQUATIC BACKGROUND (issue #1)
   The canvas is created by JS and sits behind everything;
   translucent panes keep every text column readable over the fish.
   ============================================================ */
.fishfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main { position: relative; z-index: 2; }

.chapter { --pane: rgba(3, 16, 28, 0.32); }
/* Stronger scrim: dark ink stays legible as the scroll lerp darkens the bg toward Twilight. */
.chapter.zone-light { --pane: rgba(226, 244, 252, 0.64); }
.chapter::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 0.8rem), calc(var(--maxw) + 3.2rem));
  background: var(--pane);
  border-radius: 26px;
  pointer-events: none;
}
.chapter > * { position: relative; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  .hf-swim, .drift-arrow, .sunrays, .hero-bubbles i, .ascent-bubbles i { animation: none !important; }
  html.js .reveal.in .bar, .reveal.in .bar { animation: none; }
  .dive-fish { transition: none; }
  html.js .lane-body, html.js .exp-body, html.js .route-body, html.js .sector-body { transition: none; }
  html.js .plan-pane.is-active { animation: none; }
  body.compass-set .lane:not(.is-matched),
  body.compass-set .exp:not(.compass-match),
  body.compass-set .route:not(.compass-match),
  body.compass-set .sector[data-lanes]:not(.compass-match) { transition: none; }
  .fishfield { display: none; }
}

/* ============================================================
   PRINT — the whole ocean, on paper (File → Print / Save as PDF)
   ============================================================ */
@media print {
  body { background: #fff !important; color: #111; }
  .fishfield, .depth-meter, .dive-line, .fab, .chart-overlay, .sunrays,
  .hero-bubbles, .ascent-bubbles, .hero-fish, .drift, .dive-cta, .hero-alt,
  .copy-btn, #quizReset, .resurface, .hero-egg { display: none !important; }
  .chapter, .finale, .sources, .hero { padding: 1.2rem 0.5rem; }
  .hero { min-height: 0; }
  .chapter::before { display: none; }
  .chapter *, .finale *, .sources *, .hero * { color: #111 !important; }
  .hero-name, .vs-big { text-shadow: none; }
  .finale { background: none; }
  .panel, .lane, .exp, .route, .sector, .power-card, .viz-root, .msgbox,
  .quiz-item, .quiz-result, .rec-panel, .warn-panel, .train-callout,
  .stop-note, .stat-tile { background: #fff !important; border-color: #bbb !important; box-shadow: none !important; }
  html.js .lane-body, html.js .exp-body, html.js .route-body,
  html.js .sector-body { max-height: none !important; overflow: visible !important; }
  .lane-plus { display: none !important; }
  .plan-tabs { display: none !important; }
  html.js .plan-pane { display: block !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  body.compass-set .lane, body.compass-set .exp, body.compass-set .route,
  body.compass-set .sector[data-lanes] { opacity: 1 !important; }
  .quiz-item[aria-pressed="true"],
  .lane.is-matched, .exp.compass-match, .route.compass-match,
  .sector.compass-match { border: 2px solid #333 !important; }
  .bar { background: #999 !important; }
  a { text-decoration: none; }
  .panel, .lane, .exp, .route, .sector, .stop, .power-card, .stat-tile { break-inside: avoid; }
}

/* ============================================================
   WIDER SCREENS
   ============================================================ */
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
  .chapter, .finale { padding-left: 2rem; padding-right: 2rem; }
  .depth-meter { right: 1.4rem; }
  .fab { right: 1.4rem; bottom: 1.4rem; }
  .dive-line { left: 1rem; }
}
