:root {
  color-scheme: dark;
  --night: #07101b;
  --night-soft: #0d1a29;
  --ink: #edf2ef;
  --muted: #93a7ad;
  --air: #a8e6ef;
  --water: #5574c9;
  --fire: #f47b45;
  --earth: #b89266;
  --life: #8bd19a;
  --danger: #df6f73;
  --line: rgba(199, 223, 222, 0.15);
  --panel: rgba(9, 23, 36, 0.82);
  --world-accent: #a8e6ef;
  --world-glow: rgba(94, 190, 214, .24);
  --world-night: #07101b;
  --world-temperature: .18;
  --world-pressure: .12;
  --world-entropy: .08;
  --world-vitality: .75;
  --phase-burst: rgba(168, 230, 239, .2);
  --pulse-duration: 5.4s;
  --pulse-offset: -2.7s;
  --world-overlay-opacity: .11;
  --world-noise-opacity: .18;
  --world-aura-opacity: .13;
  --world-scale: 1.01;
  --turn-duration: 82s;
  --globe-breathe-scale: 1.002;
  --vitality-opacity: .88;
  --vitality-brightness: 1.16;
  --world-life-glow: rgba(139, 209, 154, .19);
  --globe-shadow: 78px;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, var(--world-glow), transparent 38rem),
    linear-gradient(180deg, var(--world-night) 0%, #06101a 64%, #09131a 100%);
  color: var(--ink);
  font-family: var(--sans);
  transition: background 1.8s ease, color 1.2s ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: var(--world-overlay-opacity);
  background:
    radial-gradient(circle at 18% 72%, var(--world-glow), transparent 30%),
    radial-gradient(circle at 82% 24%, var(--world-glow), transparent 24%);
  transform: scale(var(--world-scale));
  transition: opacity 1.8s ease, transform 1.8s ease;
}

body::after {
  z-index: 80;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, var(--phase-burst), transparent 62%);
}

body.event-burst::after { animation: event-burst 1.6s ease-out; }
body.birth-burst::after { background: radial-gradient(circle at 50% 50%, rgba(139, 209, 154, .35), transparent 58%); }
body.refusal-burst::after { background: radial-gradient(circle at 50% 50%, rgba(244, 123, 69, .24), transparent 54%); }
body.season-burst main { animation: season-arrival 1.6s ease both; }

body[data-season="croissance"] { --life: #91d5a2; }
body[data-season="récolte"] { --earth: #d0a56f; }
body[data-season="repos"] { --water: #7770c8; }
body[data-mood="tendu"] .sky-noise { opacity: .34; }
body[data-dominant="eau"] .sky-noise { animation: sky-drift 18s ease-in-out infinite alternate; }
body[data-dominant="air"] .sky-noise { animation: sky-drift 9s linear infinite alternate; }

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--air);
  outline-offset: 4px;
}

.sky-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--world-noise-opacity);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 83% 75%, rgba(168,230,239,.22) 0 1px, transparent 1.5px);
  background-size: 137px 151px, 211px 197px, 181px 223px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.world-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--world-night) 76%, transparent);
  backdrop-filter: blur(18px);
}

.identity {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.identity small { color: var(--muted); font-weight: 400; }

.identity-mark {
  width: 13px;
  height: 13px;
  align-self: center;
  border: 1px solid var(--world-accent);
  border-radius: 50%;
  box-shadow: inset 3px -2px 0 var(--world-glow), 0 0 18px var(--world-glow);
  animation: world-breathe var(--pulse-duration) ease-in-out infinite;
  transition: border-radius 1.6s ease, border-color 1.6s ease;
}

body[data-season="croissance"] .identity-mark { border-radius: 70% 30% 65% 35%; transform: rotate(18deg); }
body[data-season="récolte"] .identity-mark { border-radius: 35% 65% 42% 58%; transform: rotate(-14deg); }
body[data-season="repos"] .identity-mark { border-radius: 50% 50% 45% 55%; opacity: .76; }

.world-clock { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.world-clock span + span { padding-left: 12px; border-left: 1px solid var(--line); }
.connection-dot { width: 7px; height: 7px; padding: 0 !important; border: 0 !important; border-radius: 50%; background: var(--danger); }
.connection-dot.live { background: var(--life); box-shadow: 0 0 10px rgba(139,209,154,.7); }

main { position: relative; min-height: calc(100vh - 74px); }

.loading-state {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  color: var(--muted);
}

.seed { width: 18px; height: 28px; border-radius: 50% 50% 48% 52%; background: var(--earth); animation: breathe 1.8s ease-in-out infinite; }

.view-switcher {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px;
  border: 1px solid rgba(168,230,239,.26);
  border-radius: 18px;
  background: rgba(5, 13, 22, 0.88);
  box-shadow: 0 18px 48px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}

.view-switcher button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(168,230,239,.08);
  color: var(--air);
  font-size: 20px;
  cursor: pointer;
}

.view-switcher div { min-width: 130px; text-align: center; line-height: 1.1; }
.view-switcher small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.view-switcher strong { font-size: 13px; font-weight: 600; }

.guide-layout {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px 38px 130px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 64px;
}

.guide-title { padding: 24px 0; }
.guide-title h1 {
  max-width: 11ch;
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
}
.guide-title > p { max-width: 65ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.now-card {
  align-self: center;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--world-accent) 26%, transparent);
  border-radius: 22px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--world-accent) 8%, transparent), rgba(4, 11, 18, .7));
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
}
.now-card > span { color: var(--world-accent); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.now-card h2 { margin: 18px 0 12px; font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.08; }
.now-card > p { margin: 0; color: var(--muted); line-height: 1.6; }
.now-next { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.now-next strong { color: var(--ink); font-weight: 500; }

.guide-block { padding: 50px 0 60px; border-top: 1px solid var(--line); }
.guide-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; max-width: 760px; margin-bottom: 34px; }
.guide-heading > span { color: var(--world-accent); font-family: var(--serif); font-size: 21px; }
.guide-heading h2 { margin: 0 0 7px; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -.025em; }
.guide-heading p { margin: 0; color: var(--muted); line-height: 1.55; }

.cycle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cycle-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  min-height: 166px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.016);
}
.cycle-step::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--world-accent); opacity: .18; }
.cycle-step.current { border-color: color-mix(in srgb, var(--world-accent) 52%, transparent); background: color-mix(in srgb, var(--world-accent) 8%, transparent); box-shadow: inset 0 0 44px var(--world-glow); }
.cycle-step.current::after { height: 3px; opacity: 1; }
.cycle-number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-family: var(--serif); }
.cycle-step.current .cycle-number { border-color: var(--world-accent); color: var(--world-accent); }
.cycle-step strong { display: block; margin: 2px 0 4px; font-size: 14px; }
.cycle-step small { color: var(--world-accent); font-size: 10px; }
.cycle-step p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.actor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.actor-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.016);
}
.actor-card.system-card { grid-column: span 2; border-color: color-mix(in srgb, var(--world-accent) 32%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--world-accent) 7%, transparent), rgba(255,255,255,.01)); }
.actor-card-head { display: grid; gap: 12px; margin-bottom: 16px; }
.actor-card-head span { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.actor-card-head h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.actor-card-head > strong { color: var(--world-accent); font-size: 11px; font-weight: 500; }
.actor-card > p { min-height: 58px; margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.actor-now { padding: 9px 10px; border-left: 2px solid var(--world-accent); background: rgba(255,255,255,.025); color: var(--ink); font-size: 10px; line-height: 1.45; }
.actor-card details { margin-top: 16px; border-top: 1px solid var(--line); }
.actor-card summary { padding-top: 14px; color: var(--world-accent); font-size: 11px; cursor: pointer; }
.actor-card details ul { display: grid; gap: 7px; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.actor-card details p { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.actor-card details b { color: var(--ink); font-weight: 500; }

.guide-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 28px; align-items: start; }
.plain-events { display: grid; gap: 8px; }
.plain-event { padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.014); }
.plain-event > div { display: flex; justify-content: space-between; gap: 12px; }
.plain-event > div span { color: var(--world-accent); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.plain-event > div small { color: var(--muted); font-size: 9px; }
.plain-event h3 { margin: 10px 0 6px; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.plain-event p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.plain-event[data-type="réalité"] { border-left: 2px solid var(--earth); }
.plain-event[data-type="connaissance"] { border-left: 2px solid var(--air); }
.plain-event[data-type="croyance"] { border-left: 2px solid var(--water); }
.plain-event[data-type="possibilité"] { border-left: 2px solid #9c8ee4; }
.plain-event[data-type="action"] { border-left: 2px solid var(--fire); }

.truth-legend { position: sticky; top: 94px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--world-night) 86%, transparent); backdrop-filter: blur(16px); }
.truth-legend h3 { margin: 0 0 20px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.truth-legend > div { padding: 13px 0; border-top: 1px solid var(--line); }
.truth-legend strong { font-size: 11px; }
.truth-legend p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.truth-legend [data-type="réalité"] strong { color: var(--earth); }
.truth-legend [data-type="connaissance"] strong { color: var(--air); }
.truth-legend [data-type="croyance"] strong { color: #8da1ee; }
.truth-legend [data-type="possibilité"] strong { color: #b5a9f2; }

.orbit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  min-height: calc(100vh - 74px);
}

.observatory {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 710px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.observatory-copy {
  position: absolute;
  z-index: 4;
  top: 42px;
  left: 42px;
  max-width: 430px;
}

.season-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--world-accent);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.observatory-copy h1 {
  margin: 0 0 12px;
  max-width: 10ch;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
}

.observatory-copy p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 48ch; }

.globe-shell {
  position: relative;
  width: min(68vw, 680px);
  aspect-ratio: 1;
  margin-top: 80px;
}

.globe {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(168,230,239,.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, var(--world-glow), transparent 20%),
    radial-gradient(circle at 58% 58%, var(--world-life-glow), transparent 22%),
    radial-gradient(circle at 48% 46%, color-mix(in srgb, var(--world-accent) 34%, transparent), rgba(9,30,42,.9) 62%, #050a10 100%);
  box-shadow: inset -38px -24px 68px rgba(0,0,0,.72), inset 12px 8px 34px var(--world-glow), 0 0 var(--globe-shadow) var(--world-glow);
  animation: globe-breathe var(--pulse-duration) ease-in-out infinite;
  transition: background 1.8s ease, box-shadow 1.8s ease;
}

.globe::before, .globe::after {
  content: "";
  position: absolute;
  inset: 8% -12%;
  border: 1px solid rgba(168,230,239,.16);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.globe::after { inset: -5% 22%; transform: rotate(12deg); }

.being-node {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--night);
  color: var(--air);
  box-shadow: 0 0 0 6px rgba(168,230,239,.04), 0 0 18px currentColor;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(var(--node-scale));
  transition: left 1.8s ease, top 1.8s ease, transform .5s ease, box-shadow .5s ease;
  animation: inhabit var(--pulse-duration) ease-in-out var(--node-delay) infinite;
}

.being-node.selected {
  box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 14%, transparent), 0 0 28px currentColor;
}

.being-node::after {
  content: attr(data-label);
  position: absolute;
  left: 22px;
  width: max-content;
  max-width: 120px;
  color: var(--ink);
  font-size: 11px;
  text-shadow: 0 2px 8px #000;
}

.being-node[data-phase="eau"] { color: #7e9bee; }
.being-node[data-phase="feu"] { color: var(--fire); }
.being-node[data-phase="terre"] { color: var(--earth); }

.climate-ring {
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(168,230,239,.13);
  border-radius: 50%;
  animation: turn var(--turn-duration) linear infinite;
}

.world-aura {
  position: absolute;
  inset: 5%;
  border: 1px solid color-mix(in srgb, var(--world-accent) 28%, transparent);
  border-radius: 50%;
  opacity: var(--world-aura-opacity);
  animation: world-ripple var(--pulse-duration) ease-out infinite;
}

.world-aura.aura-two { animation-delay: var(--pulse-offset); }

.world-sidebar { padding: 34px 30px 110px; background: rgba(5,14,23,.56); }
.world-sidebar h2, .atlas-panel h2, .depth-inspector h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 0 0 10px; }
.world-sidebar > p { color: var(--muted); line-height: 1.55; }

.element-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0; }
.element-meter { min-height: 86px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.element-meter span { display: block; color: var(--muted); font-size: 11px; }
.element-meter strong { display: block; margin-top: 9px; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.element-meter.air strong { color: var(--air); }
.element-meter.water strong { color: #819bea; }
.element-meter.fire strong { color: var(--fire); }
.element-meter.earth strong { color: var(--earth); }

.climate { display: grid; gap: 13px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.climate-row { display: grid; grid-template-columns: 86px 1fr 34px; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); }
.track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--air); border-radius: inherit; }

.bulletin { margin: 24px 0; padding-left: 18px; border-left: 2px solid var(--life); font-family: var(--serif); font-size: 18px; line-height: 1.55; }

.world-expression {
  margin: 20px 0 24px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--world-accent) 24%, transparent);
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--world-accent) 8%, transparent), rgba(255,255,255,.012));
  transition: border-color 1.6s ease, background 1.6s ease;
}

.expression-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.expression-head span { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.expression-head strong { color: var(--world-accent); font-family: var(--serif); font-size: 18px; font-weight: 400; }
.world-expression p { margin: 13px 0; color: var(--ink); font-family: var(--serif); font-size: 15px; line-height: 1.45; }
.expression-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.expression-facts span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; }
.phase-seed { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--world-accent); box-shadow: 0 0 8px currentColor; }
.phase-seed.eau { background: var(--water); }
.phase-seed.feu { background: var(--fire); }
.phase-seed.terre { background: var(--earth); }

.inspector { margin-top: 26px; }
.inspector-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.inspector-head button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.being-kind { color: var(--muted); font-size: 11px; }
.reflection { display: grid; gap: 12px; margin-top: 18px; }
.reflection dt { color: var(--muted); font-size: 10px; }
.reflection dd { margin: 4px 0 0; font-family: var(--serif); line-height: 1.45; }
.origin-chain { display: flex; flex-wrap: wrap; gap: 6px; }
.origin-chain span { padding: 4px 8px; border: 1px solid rgba(184,146,102,.25); border-radius: 999px; color: #d9c4a8; font-family: var(--sans); font-size: 10px; }

.atlas-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; min-height: calc(100vh - 74px); }
.being-list, .event-river { padding: 28px 20px 100px; border-right: 1px solid var(--line); }
.being-list h1 { margin: 0 0 22px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.being-button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.being-button i { width: 8px; height: 8px; border-radius: 50%; background: var(--earth); }
.being-button small { display: block; color: var(--muted); margin-top: 2px; }

.field-map { position: relative; min-height: 760px; overflow: hidden; background: radial-gradient(circle at 55% 45%, var(--world-glow), transparent 46%); }
.contour { position: absolute; border: 1px solid rgba(168,230,239,.12); border-radius: 48% 52% 56% 44%; }
.relation-field { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.relation-field line { stroke: color-mix(in srgb, var(--world-accent) 30%, transparent); stroke-width: .13; stroke-dasharray: 1.2 1.8; vector-effect: non-scaling-stroke; animation: relation-flow var(--pulse-duration) linear infinite; }
.field-node { position: absolute; transform: translate(-50%, -50%); border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: left 1.8s ease, top 1.8s ease; }
.field-node i { display: block; width: 22px; height: 22px; margin: 0 auto 7px; border: 1px solid var(--air); border-radius: 50%; background: var(--night-soft); box-shadow: 0 0 22px rgba(168,230,239,.18); }
.field-node span, .field-node small { display: block; }
.field-node small { color: var(--muted); }
.field-line { position: absolute; height: 1px; transform-origin: left center; background: linear-gradient(90deg, rgba(168,230,239,.28), transparent); }
.map-narrative { position: absolute; left: 32px; right: 32px; bottom: 92px; max-width: 540px; }
.map-narrative .world-expression { margin: 0 0 8px; background: color-mix(in srgb, var(--world-night) 82%, transparent); backdrop-filter: blur(12px); }
.map-bulletin { margin: 0; padding: 15px 20px; background: color-mix(in srgb, var(--world-night) 82%, transparent); border-left: 2px solid var(--life); font-family: var(--serif); line-height: 1.5; backdrop-filter: blur(10px); }

.event-river { border-right: 0; border-left: 1px solid var(--line); }
.event-river h2 { margin-top: 0; font-family: var(--serif); font-weight: 400; }
.event { position: relative; padding: 0 0 20px 18px; border-left: 1px solid var(--line); }
.event::before { content: ""; position: absolute; left: -4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--air); }
.event[data-phase="eau"]::before { background: var(--water); }
.event[data-phase="feu"]::before { background: var(--fire); }
.event[data-phase="terre"]::before { background: var(--earth); }
.event strong { display: block; font-size: 12px; font-weight: 600; }
.event small { color: var(--muted); font-size: 10px; }

.depth-layout { min-height: calc(100vh - 74px); padding-bottom: 100px; }
.depth-header { max-width: 720px; padding: 42px 40px 24px; }
.depth-header h1 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(42px, 7vw, 82px); line-height: .95; font-weight: 400; letter-spacing: -.045em; }
.depth-header p { color: var(--muted); line-height: 1.6; }
.strata { display: grid; grid-template-columns: minmax(0, 1fr) 350px; border-top: 1px solid var(--line); }
.layers { min-width: 0; }
.layer { display: grid; grid-template-columns: 120px 160px 1fr; min-height: 145px; padding: 22px 34px; border-bottom: 1px solid var(--line); }
.layer-name { font-family: var(--serif); font-size: 28px; }
.layer-value { font-family: var(--serif); font-size: 46px; font-weight: 400; }
.layer-events { display: flex; gap: 8px; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; }
.event-chip { flex: 0 0 150px; min-height: 86px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.event-chip strong { display: block; font-size: 11px; }
.event-chip small { color: var(--muted); }
.layer.air { background: linear-gradient(90deg, rgba(168,230,239,.07), transparent 65%); }
.layer.water { background: linear-gradient(90deg, rgba(85,116,201,.11), transparent 65%); }
.layer.fire { background: linear-gradient(90deg, rgba(244,123,69,.08), transparent 65%); }
.layer.earth { background: linear-gradient(90deg, rgba(184,146,102,.09), transparent 65%); }
.depth-inspector { padding: 26px; border-left: 1px solid var(--line); background: rgba(5,14,23,.54); }

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.16); box-shadow: 0 0 30px rgba(184,146,102,.4); } }
@keyframes globe-breathe { 50% { transform: scale(var(--globe-breathe-scale)); } }
@keyframes world-breathe { 50% { opacity: var(--vitality-opacity); box-shadow: inset 3px -2px 0 var(--world-glow), 0 0 25px var(--world-glow); } }
@keyframes world-ripple { 0% { transform: scale(.82); opacity: 0; } 45% { opacity: var(--world-aura-opacity); } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes inhabit { 50% { filter: brightness(var(--vitality-brightness)); } }
@keyframes relation-flow { to { stroke-dashoffset: -6; } }
@keyframes sky-drift { to { transform: translate3d(2.4%, -1.6%, 0) scale(1.03); } }
@keyframes event-burst { 0% { opacity: 0; transform: scale(.7); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes season-arrival { 0% { filter: saturate(.35) brightness(.78); } 100% { filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (max-width: 980px) {
  .guide-hero, .guide-columns { grid-template-columns: 1fr; }
  .actor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .truth-legend { position: static; }
  .orbit-layout, .atlas-layout, .strata { grid-template-columns: 1fr; }
  .observatory { min-height: 650px; border-right: 0; border-bottom: 1px solid var(--line); }
  .world-sidebar { padding-bottom: 110px; }
  .being-list { display: none; }
  .event-river, .depth-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .field-map { min-height: 620px; }
}

@media (max-width: 860px) {
  #world-mood { display: none; }
  .world-clock { gap: 8px; white-space: nowrap; }
}

@media (max-width: 640px) {
  .world-header { min-height: 64px; padding: 0 16px; }
  .identity small, #season, #world-mood { display: none; }
  .guide-layout { padding: 30px 18px 110px; }
  .guide-hero { gap: 20px; margin-bottom: 38px; }
  .guide-title { padding: 10px 0; }
  .guide-title h1 { font-size: 50px; }
  .guide-title > p { font-size: 15px; }
  .now-card { padding: 21px; }
  .now-card h2 { font-size: 27px; }
  .guide-block { padding: 38px 0 46px; }
  .guide-heading { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .cycle-list, .actor-grid { grid-template-columns: 1fr; }
  .actor-card.system-card { grid-column: auto; }
  .cycle-step { min-height: 0; }
  .observatory-copy { top: 26px; left: 20px; right: 20px; }
  .observatory-copy h1 { font-size: 44px; }
  .globe-shell { width: 120vw; margin-top: 80px; }
  .world-sidebar { padding: 24px 18px 110px; }
  .being-node::after { display: none; }
  .depth-header { padding: 30px 20px 22px; }
  .layer { grid-template-columns: 76px 78px 1fr; padding: 18px 14px; }
  .layer-name { font-size: 20px; }
  .layer-value { font-size: 28px; }
  .event-chip { flex-basis: 125px; }
  .map-narrative { left: 18px; right: 18px; bottom: 88px; }
  .map-narrative .world-expression { display: none; }
}
