:root {
  color-scheme: dark;
  --ink: #eee9d7;
  --muted: #b9b29f;
  --dim: #898371;
  --gold: #c7ad71;
  --line: rgba(231, 220, 187, .17);
  --panel: rgba(25, 24, 18, .82);
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --radius: 22px;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -10%, rgba(191, 157, 91, .17), transparent 34rem),
    linear-gradient(180deg, #1c1c15 0%, #11120f 100%);
  color: var(--ink);
}

body { min-height: 100vh; }

button, a { font: inherit; }

a { color: inherit; }

.app-shell,
.scene-stage {
  min-height: 100vh;
}

.world-frame {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.world-frame::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.009) 1px, transparent 1px);
  background-size: 7px 7px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 90%);
}

.site-mark {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  color: rgba(238, 233, 215, .66);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .69rem;
  pointer-events: none;
}

.site-mark__version {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
}

.world-content { min-height: 100vh; }

.portal-scene,
.placeholder-scene {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 5rem 1.25rem 3rem;
  position: relative;
}

.portal-glow {
  position: absolute;
  width: min(68vw, 42rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(201, 170, 106, .14), rgba(201, 170, 106, .04) 42%, transparent 69%);
  filter: blur(2px);
  transform: translateY(-7%);
  pointer-events: none;
}

.portal-card,
.placeholder-card {
  position: relative;
  width: min(100%, 48rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.028), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 4rem);
  backdrop-filter: blur(18px);
}

.portal-card { text-align: center; }

.eyebrow {
  color: var(--gold);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin: 0 0 1rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.placeholder-card h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
}

.lead,
.placeholder-card > p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
  max-width: 39rem;
}

.lead { margin: 1.6rem auto 0; }

.principles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin: 2rem 0;
}

.principles span,
.migration-seal {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem .82rem;
  color: #d8d1bd;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-actions,
.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .78rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.action:hover { transform: translateY(-1px); }

.action--primary {
  background: var(--ink);
  color: #191913;
  border: 1px solid var(--ink);
}

.action--secondary {
  border: 1px solid rgba(238,233,215,.42);
  background: rgba(238,233,215,.04);
}

.action--ghost {
  color: var(--muted);
  border: 1px solid transparent;
}

.quiet-note {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: var(--dim);
  font-size: .83rem;
  line-height: 1.55;
}

.migration-seal {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold);
}

.dev-panel {
  position: fixed;
  z-index: 999;
  right: 1rem;
  bottom: 1rem;
  width: min(25rem, calc(100vw - 2rem));
  max-height: 72vh;
  overflow: auto;
  border: 1px solid rgba(224, 204, 155, .25);
  border-radius: 14px;
  padding: .85rem;
  background: rgba(10, 10, 8, .94);
  box-shadow: 0 18px 50px rgba(0,0,0,.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
}

.dev-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dev-panel__head button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

.dev-panel dl { margin: .8rem 0; }

.dev-panel dl div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: .5rem;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.dev-panel dt { color: var(--dim); }
.dev-panel dd { margin: 0; overflow-wrap: anywhere; }

.dev-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .6rem;
  background: rgba(255,255,255,.04);
  color: var(--ink);
  cursor: pointer;
}

.dev-output {
  white-space: pre-wrap;
  line-height: 1.55;
  color: #cfc8b4;
}

.noscript { padding: 3rem; }

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


.dev-link {
  display: block;
  margin-top: .55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .6rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255,255,255,.025);
}

.test-page { min-height: 100vh; }
.test-console {
  width: min(100% - 2rem, 62rem);
  margin: 0 auto;
  padding: 7vh 0 5rem;
}
.test-console h1 { font-size: clamp(2.2rem, 7vw, 5rem); }
.test-console .lead { margin-left: 0; }
.test-toolbar { display:flex; flex-wrap:wrap; gap:.7rem; margin:1.5rem 0 2rem; }
.test-toolbar button { cursor:pointer; }
.test-results { display:grid; gap:.55rem; }
.test-summary,
.test-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18,18,14,.72);
  padding: .8rem 1rem;
}
.test-summary { display:flex; justify-content:space-between; gap:1rem; color:var(--muted); }
.test-summary strong { color:var(--ink); }
.test-row { display:grid; grid-template-columns:1.6rem 1fr auto; gap:.7rem; align-items:start; }
.test-row strong { font-weight:500; }
.test-row small { display:block; margin-top:.25rem; color:#d7a9a0; }
.test-row time { color:var(--dim); font: .68rem/1.4 ui-monospace, monospace; }
.test-status { color:var(--gold); font-weight:700; }
.test-row--fail { border-color: rgba(210,112,92,.42); }
.test-summary--fail { border-color: rgba(210,112,92,.42); }


/* =========================================================
   VNEW.0.3 — Shell commun du Livre vivant
   ========================================================= */

.book-lab-scene {
  min-height: 100vh;
  padding: 6rem clamp(1rem, 4vw, 4rem) 4rem;
}

.book-lab__intro {
  width: min(100%, 72rem);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.book-lab__intro h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.book-lab__intro .lead {
  max-width: 48rem;
}

.book-lab__toolbar,
.book-lab__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.5rem;
}

.book-lab__mount {
  width: min(100%, 74rem);
  margin: 0 auto;
}

.book-lab__event {
  width: min(100%, 58rem);
  margin: 1rem auto 0;
  min-height: 2rem;
  color: var(--dim);
  text-align: center;
  font: .76rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.living-book-shell {
  --paper: #e8dfc8;
  --paper-2: #d9ceb3;
  --paper-ink: #272319;
  --paper-muted: #6c624f;
  --paper-line: rgba(74, 62, 38, .17);
  width: 100%;
}

.living-book-closed {
  display: grid;
  place-items: center;
  min-height: 21rem;
}

.living-book-closed__button {
  width: min(17rem, 76vw);
  aspect-ratio: 1.46;
  border: 1px solid rgba(225, 207, 160, .26);
  border-radius: 5px 16px 16px 5px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 5%, transparent 93%, rgba(0,0,0,.18)),
    linear-gradient(145deg, #5a4d34, #332b1d);
  color: #efe5c9;
  box-shadow:
    -8px 9px 0 #c7b992,
    -12px 13px 0 rgba(61, 50, 31, .85),
    0 32px 70px rgba(0,0,0,.42);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .78rem;
}

.living-book {
  position: relative;
  border-radius: 7px 20px 20px 7px;
  background: #50452f;
  padding: clamp(.55rem, 1.4vw, 1rem);
  box-shadow:
    0 34px 90px rgba(0,0,0,.5),
    inset 0 0 0 1px rgba(235,220,183,.14);
}

.living-book::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4.5rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(63,49,27,.2) 8%, rgba(63,49,27,.31) 50%, transparent);
  pointer-events: none;
}

.living-book__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: .75rem .9rem 1rem;
  color: #eadfc4;
}

.living-book__header h2 {
  margin: .1rem 0 0;
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.living-book__header p:not(.living-book__eyebrow) {
  margin: .35rem 0 0;
  color: rgba(234,223,196,.65);
  font-size: .82rem;
}

.living-book__eyebrow {
  margin: 0;
  color: #cbb47a;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .65rem;
}

.living-book__close {
  border: 0;
  background: transparent;
  color: rgba(239,229,201,.75);
  cursor: pointer;
  padding: .45rem;
  text-decoration: underline;
  text-decoration-color: rgba(239,229,201,.25);
  text-underline-offset: .25rem;
}

.living-book__spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 31rem;
  overflow: hidden;
  border-radius: 3px 12px 12px 3px;
  background: var(--paper);
  color: var(--paper-ink);
}

.living-book__page {
  min-width: 0;
  padding: clamp(1.35rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.42), transparent 22rem),
    linear-gradient(90deg, rgba(91,71,39,.035), transparent 8%, transparent 92%, rgba(91,71,39,.04)),
    var(--paper);
}

.living-book__page--left {
  border-right: 1px solid rgba(74,62,38,.13);
}

.living-book__page--right {
  background-color: var(--paper-2);
}

.living-book__intro {
  margin: 0 0 2.2rem;
  color: var(--paper-muted);
  font-style: italic;
  line-height: 1.65;
  max-width: 28rem;
}

.book-priority {
  border-top: 1px solid var(--paper-line);
  padding-top: 1.5rem;
}

.book-priority__eyebrow,
.living-book__section-title {
  margin: 0 0 .65rem;
  color: #847655;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .64rem;
  font-weight: 700;
}

.book-priority h3 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.025em;
}

.book-priority > p:not(.book-priority__eyebrow) {
  color: var(--paper-muted);
  line-height: 1.6;
  max-width: 28rem;
}

.book-text-action {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  padding: .45rem 0 .3rem;
  color: #3c3322;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.book-text-action:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.book-chapters,
.book-library {
  display: grid;
  gap: .35rem;
}

.book-chapter,
.book-library__item {
  width: 100%;
  display: grid;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--paper-line);
  background: transparent;
  color: var(--paper-ink);
  cursor: pointer;
  text-align: left;
}

.book-chapter {
  grid-template-columns: 2.6rem 1fr auto;
  gap: .6rem;
  padding: .9rem 0;
}

.book-chapter:disabled,
.book-library__item:disabled {
  cursor: not-allowed;
  opacity: .43;
}

.book-chapter__numeral {
  color: #8b7c59;
  font-size: .8rem;
  letter-spacing: .08em;
}

.book-chapter__copy strong,
.book-library__item strong {
  display: block;
  font-size: .88rem;
  letter-spacing: .07em;
}

.book-chapter__copy small,
.book-library__item small {
  display: block;
  margin-top: .16rem;
  color: var(--paper-muted);
  line-height: 1.35;
}

.book-chapter__status {
  justify-self: end;
  color: #81724f;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.book-chapter--active {
  background: rgba(126, 103, 55, .055);
}

.book-chapter--ready .book-chapter__status {
  color: #705b2f;
  font-weight: 700;
}

.book-chapter--acquired .book-chapter__status {
  color: #5d684a;
}

.living-book__section-title--library {
  margin-top: 2rem;
}

.book-library__item {
  grid-template-columns: 1fr auto;
  gap: .8rem;
  padding: .75rem 0;
}

.book-library__action {
  color: #776748;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

@media (max-width: 760px) {
  .living-book::after { display: none; }

  .living-book__spread {
    grid-template-columns: 1fr;
  }

  .living-book__page--left {
    border-right: 0;
    border-bottom: 1px solid rgba(74,62,38,.13);
  }

  .book-chapter {
    grid-template-columns: 2.2rem 1fr;
  }

  .book-chapter__status {
    grid-column: 2;
    justify-self: start;
    margin-top: .12rem;
  }
}


/* =========================================================
   VNEW.0.4 — Portail natif · Choisis ton chemin
   ========================================================= */

.portal-scene--migrated {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(4.5rem, 8vh, 7rem) 1rem 2rem;
}

.portal-scene__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) brightness(.74);
}

.portal-scene__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(20, 20, 14, .08), rgba(10, 11, 8, .52) 62%, rgba(7, 8, 7, .78) 100%),
    linear-gradient(180deg, rgba(8, 9, 7, .26), rgba(8, 9, 7, .56));
  backdrop-filter: blur(1.4px);
}

.portal-entry {
  position: relative;
  z-index: 2;
  width: min(100%, 58rem);
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: clamp(1.15rem, 3vw, 2.1rem);
  border: 1px solid rgba(233, 206, 137, .32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(151, 104, 38, .11), transparent 42%),
    linear-gradient(155deg, rgba(17, 17, 13, .84), rgba(10, 12, 10, .76));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(15px) saturate(.92);
}

.portal-entry__header {
  max-width: 48rem;
  margin: 0 auto 1.3rem;
  padding: .25rem 1rem;
  text-align: center;
}

.portal-entry__eyebrow {
  display: block;
  margin-bottom: .55rem;
  color: #d7b96d;
  font: 800 .68rem/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .21em;
}

.portal-entry__header h1 {
  margin: 0;
  color: #fff0c8;
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: .035em;
}

.portal-entry__header p {
  max-width: 42rem;
  margin: .9rem auto 0;
  color: rgba(249, 237, 207, .86);
  font-size: clamp(.98rem, 1.6vw, 1.18rem);
  font-style: italic;
  line-height: 1.5;
}

.portal-entry__header small {
  display: inline-block;
  margin-top: .7rem;
  color: rgba(224, 205, 154, .46);
  font: 700 .56rem/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .12em;
}

.portal-entry__hero {
  display: grid;
  gap: .35rem;
  max-width: 49rem;
  margin: 0 auto .8rem;
}

.portal-entry__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  max-width: 49rem;
  margin: 0 auto;
}

.portal-path-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  width: 100%;
  min-height: 6.4rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(229, 194, 107, .22);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.035), rgba(8,12,13,.42));
  color: #f7e8be;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.portal-path-card:hover,
.portal-path-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(244, 207, 111, .68);
  background: linear-gradient(150deg, rgba(115,82,32,.17), rgba(9,13,20,.52));
}

.portal-path-card--hero {
  min-height: 7.9rem;
  border-color: rgba(245, 210, 118, .66);
  background: linear-gradient(145deg, rgba(129,88,31,.27), rgba(13,17,22,.58));
  box-shadow: 0 16px 42px rgba(0,0,0,.22), inset 0 0 30px rgba(235,185,75,.035);
}

.portal-path-card.is-pending {
  opacity: .68;
}

.portal-path-icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(238, 201, 111, .3);
  border-radius: 50%;
  color: #edc86f;
  background: radial-gradient(circle, rgba(225,174,65,.1), rgba(15,20,24,.2));
  font-size: 1.2rem;
}

.portal-path-copy {
  display: grid;
  gap: .3rem;
  min-width: 0;
}

.portal-path-copy strong {
  color: #f8e8bd;
  font-size: .94rem;
  line-height: 1.2;
  letter-spacing: .035em;
}

.portal-path-copy small {
  color: rgba(240, 235, 222, .73);
  font: 500 .78rem/1.45 ui-sans-serif, system-ui, sans-serif;
}

.portal-path-copy em {
  margin-top: .18rem;
  color: rgba(220, 195, 130, .63);
  font: 650 .65rem/1.35 ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
  letter-spacing: .035em;
}

.portal-entry__resume,
.portal-entry__message,
.portal-entry__freedom {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.portal-entry__resume {
  margin-top: .1rem;
  margin-bottom: 0;
  color: rgba(236, 222, 188, .65);
  font: 600 .68rem/1.4 ui-sans-serif, system-ui, sans-serif;
}

.portal-entry__resume strong { color: rgba(248, 224, 167, .9); }

.portal-entry__message {
  min-height: 1.2rem;
  margin-top: .7rem;
  margin-bottom: 0;
  color: #dfc77f;
  font: 650 .7rem/1.4 ui-sans-serif, system-ui, sans-serif;
}

.portal-entry__freedom {
  margin-top: .55rem;
  margin-bottom: 0;
  color: rgba(231, 221, 197, .5);
  font: 600 .64rem/1.42 ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 760px) {
  .portal-scene--migrated {
    place-items: end center;
    padding: 4rem .4rem .4rem;
  }

  .portal-entry {
    width: 100%;
    max-height: calc(100vh - 4.4rem);
    padding: 1rem .8rem max(1.2rem, env(safe-area-inset-bottom));
    border-radius: 22px 22px 16px 16px;
  }

  .portal-entry__header {
    text-align: left;
    padding: .15rem .25rem;
  }

  .portal-entry__header h1 {
    font-size: clamp(2.15rem, 10vw, 3.35rem);
  }

  .portal-entry__header p {
    font-size: .92rem;
  }

  .portal-entry__grid {
    grid-template-columns: 1fr;
  }

  .portal-path-card,
  .portal-path-card--hero {
    min-height: 0;
    grid-template-columns: 2.55rem minmax(0,1fr);
    gap: .7rem;
    padding: .82rem;
  }

  .portal-path-icon {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1rem;
  }

  .portal-entry__freedom,
  .portal-entry__message,
  .portal-entry__resume {
    text-align: left;
    margin-left: .25rem;
    margin-right: .25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-path-card { transition: none !important; }
}


/* =========================================================
   VNEW.0.5 — Jardin I · entrée + Livre vivant
   ========================================================= */

.garden1-scene {
  min-height: 100vh;
  background: #11140d;
}

.garden1-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.garden1-stage__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .55s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.garden1-stage__image--sleep {
  opacity: 1;
}

.garden1-stage__image--awake {
  opacity: 0;
}

.garden1-scene.is-awake .garden1-stage__image--sleep {
  opacity: 0;
}

.garden1-scene.is-awake .garden1-stage__image--awake {
  opacity: 1;
}

.garden1-stage__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,10,6,.28), transparent 20%, transparent 70%, rgba(8,10,6,.36)),
    linear-gradient(90deg, rgba(8,10,6,.18), transparent 32%, transparent 75%, rgba(8,10,6,.12));
}

.garden1-heading {
  position: absolute;
  z-index: 3;
  top: clamp(3.2rem, 7vh, 5.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .35rem;
  color: rgba(247,241,220,.88);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,.48);
  pointer-events: none;
}

.garden1-heading span {
  font-size: .67rem;
  letter-spacing: .22em;
  color: rgba(239,220,171,.8);
}

.garden1-heading strong {
  font-size: clamp(.78rem, 1.5vw, 1rem);
  letter-spacing: .16em;
  font-weight: 500;
}

.garden1-book-hotspot {
  position: absolute;
  z-index: 4;
  left: 13.5%;
  top: 73%;
  width: 18%;
  height: 16%;
  min-width: 7rem;
  min-height: 4.4rem;
  border: 1px solid rgba(255,239,184,.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,221,136,.12), transparent 66%);
  color: #fff1c8;
  cursor: pointer;
  opacity: .82;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.garden1-book-hotspot::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255,232,165,.28);
  box-shadow: 0 0 26px rgba(247,205,106,.14);
}

.garden1-book-hotspot span {
  position: absolute;
  left: 50%;
  bottom: -1.6rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .63rem;
  letter-spacing: .13em;
  text-shadow: 0 2px 12px #000;
}

.garden1-book-hotspot:hover,
.garden1-book-hotspot:focus-visible {
  opacity: 1;
  transform: scale(1.025);
  box-shadow: 0 0 38px rgba(246,210,121,.12);
}

.garden1-scene.is-awake .garden1-book-hotspot {
  opacity: 0;
  pointer-events: none;
}

.garden1-back {
  position: absolute;
  z-index: 5;
  left: 1.25rem;
  bottom: 1.15rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(10,12,8,.44);
  color: rgba(249,244,226,.82);
  padding: .58rem .82rem;
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: .72rem;
}

.garden1-whisper {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  margin: 0;
  width: min(34rem, calc(100% - 12rem));
  color: rgba(250,245,226,.66);
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
  font-size: clamp(.72rem, 1.2vw, .88rem);
  font-style: italic;
  pointer-events: none;
}

.garden1-scene.is-awake .garden1-whisper {
  opacity: 0;
}

.garden1-book-layer {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  align-items: center;
  padding: clamp(4rem, 9vh, 6.5rem) clamp(1rem, 5vw, 5rem) 3.5rem;
  background: rgba(13,14,9,.22);
  backdrop-filter: blur(2px);
}

.garden1-book-layer[hidden] {
  display: none;
}

.garden1-book-layer .living-book-shell {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.garden1-book-layer .living-book-closed {
  display: none !important;
}

.garden1-message {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  margin: 0;
  width: min(54rem, calc(100% - 2rem));
  min-height: 1.5rem;
  color: rgba(251,242,215,.82);
  text-align: center;
  text-shadow: 0 2px 12px #000;
  font-size: .74rem;
  pointer-events: none;
}

@media (max-width: 760px) {
  .garden1-stage__image {
    object-position: 46% center;
  }

  .garden1-heading {
    top: 4rem;
    width: calc(100% - 4rem);
  }

  .garden1-book-hotspot {
    left: 5%;
    top: 69%;
    width: 34%;
    height: 18%;
  }

  .garden1-whisper {
    width: min(24rem, calc(100% - 7rem));
    bottom: 1.15rem;
    font-size: .68rem;
  }

  .garden1-book-layer {
    padding: 4.3rem .65rem 2.8rem;
    align-items: start;
    overflow: auto;
  }

  .garden1-message {
    position: fixed;
    bottom: .55rem;
    font-size: .68rem;
  }
}


/* =========================================================
   VNEW.0.6 — Jardin I · ASSOCIER
   ========================================================= */

.garden1-exercise-layer {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(4.2rem, 8vh, 6.4rem) clamp(.8rem, 4vw, 3.5rem) 3rem;
  background: rgba(12, 14, 9, .36);
  backdrop-filter: blur(3px);
}

.garden1-exercise-layer[hidden] {
  display: none;
}

.association-panel {
  width: min(100%, 64rem);
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: clamp(1.2rem, 3.6vw, 2.8rem);
  border: 1px solid rgba(238, 219, 168, .24);
  border-radius: 5px 18px 18px 5px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .45), transparent 27rem),
    linear-gradient(90deg, rgba(91, 71, 39, .04), transparent 8%, transparent 92%, rgba(91, 71, 39, .05)),
    #e4dbc2;
  color: #292319;
  box-shadow:
    -7px 8px 0 rgba(196, 181, 143, .92),
    0 32px 90px rgba(0, 0, 0, .5);
}

.association-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(83, 68, 40, .16);
  padding-bottom: 1.15rem;
}

.association-panel__kicker {
  margin: 0 0 .45rem;
  color: #82704a;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.association-panel h2 {
  margin: 0;
  max-width: 43rem;
  font-size: clamp(1.7rem, 4.5vw, 3.4rem);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -.025em;
}

.association-panel__quit {
  border: 0;
  border-bottom: 1px solid rgba(60, 49, 29, .35);
  background: transparent;
  color: #685b42;
  cursor: pointer;
  padding: .2rem 0;
}

.association-panel__pair {
  min-height: 6.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin: clamp(1.5rem, 4vw, 3rem) 0 1.3rem;
  text-align: center;
}

.association-panel__pair strong {
  font-size: clamp(1.45rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: .08em;
}

.association-panel__pair i {
  color: #917f57;
  font-size: 1.6rem;
}

.association-pair__hidden {
  color: #887a5d;
  letter-spacing: .14em;
  font-size: clamp(.72rem, 2vw, .95rem);
}

.association-panel__copy,
.association-panel__help,
.association-panel__note {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.association-panel__copy {
  color: #514834;
  font-size: clamp(.92rem, 1.6vw, 1.04rem);
}

.association-panel__help {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-left: 2px solid rgba(121, 95, 47, .48);
  background: rgba(122, 99, 53, .06);
  color: #65583d;
}

.association-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  max-width: 52rem;
  margin: 1.7rem auto 0;
}

.association-action {
  border: 1px solid rgba(70, 58, 34, .24);
  border-radius: 999px;
  background: transparent;
  color: #403622;
  padding: .7rem 1rem;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.association-action:hover,
.association-action:focus-visible {
  border-color: rgba(70, 58, 34, .58);
}

.association-action:disabled {
  opacity: .32;
  cursor: not-allowed;
}

.association-action--primary {
  background: #403622;
  color: #f0e6ca;
  border-color: #403622;
}

.association-choice-grid,
.association-quality-grid {
  width: 100%;
  display: grid;
  gap: .7rem;
}

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

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

.association-choice-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

.association-action--choice,
.association-action--quality {
  border-radius: 7px;
  min-height: 6.6rem;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  display: grid;
  align-content: center;
  gap: .35rem;
}

.association-action--choice strong,
.association-action--quality strong {
  letter-spacing: .08em;
  font-size: .74rem;
}

.association-action--choice small,
.association-action--quality small {
  display: block;
  color: #6f634b;
  line-height: 1.45;
  font-size: .78rem;
  font-weight: 400;
}

.association-action.is-selected,
.association-action--choice.is-selected,
.association-action--quality.is-selected {
  background: rgba(74, 62, 38, .11);
  border-color: rgba(74, 62, 38, .56);
  box-shadow: inset 0 0 0 1px rgba(74, 62, 38, .16);
}

.association-panel__note {
  margin-top: 1.5rem;
  color: #81745b;
  text-align: center;
  font-size: .74rem;
  font-style: italic;
}

@media (max-width: 760px) {
  .garden1-exercise-layer {
    align-items: start;
    overflow: auto;
    padding: 4.4rem .55rem 1.4rem;
  }

  .association-panel {
    max-height: none;
    padding: 1.15rem;
  }

  .association-panel__header {
    gap: .6rem;
  }

  .association-choice-grid,
  .association-quality-grid {
    grid-template-columns: 1fr;
  }

  .association-action--choice,
  .association-action--quality {
    min-height: 4.8rem;
  }

  .association-panel__pair {
    min-height: 5rem;
    margin-top: 1.2rem;
  }
}
