/* La Côte enchevêtrée — ton de la page (ciel mauve du Récif, Éther noir des Infâmes, lampes
   de l'Araignée), ambiance par section (data-mood sur <body> : scorn, spider, kell, voir
   js/rituals.js), carte du Rivage et son voile (js/chart.js), pastilles.
   La traque des Barons est dans css/hunt.css. */

.shore {
  --dusk: #b79bff;
  --dusk-hi: #e4d9ff;
  --ether: #6fd3ff;
  --ether-hi: #cdf1ff;
  --lamp: #ff9d4a;
  --lamp-hi: #ffdcb6;
  --kell: #ff5d7a;
  --kell-hi: #ffc4cf;
  --hive: #a8e06a;
  --page-accent: var(--dusk);
  --page-accent-hi: var(--dusk-hi);
}
.shore[data-mood="scorn"] { --page-accent: var(--ether); --page-accent-hi: var(--ether-hi); }
.shore[data-mood="spider"] { --page-accent: var(--lamp); --page-accent-hi: var(--lamp-hi); }
.shore[data-mood="kell"] { --page-accent: var(--kell); --page-accent-hi: var(--kell-hi); }
.shore ::selection { background: rgba(183, 155, 255, .34); }
.shore main { background: radial-gradient(ellipse 70% 18% at 80% 5%, rgba(183, 155, 255, .1), transparent 70%), radial-gradient(ellipse 55% 16% at 8% 28%, rgba(111, 211, 255, .06), transparent 70%); }
.shore .sec-title { transition: text-shadow .8s; text-shadow: 0 0 34px color-mix(in srgb, var(--page-accent) 24%, transparent); }
.shore .kicker, .shore .tag { transition: color .6s; }

/* ---------- Héros ---------- */
.shore .hero-title span:last-child { margin-top: .18em; font-size: .36em; font-weight: 500; letter-spacing: .3em; color: var(--page-accent-hi); }
.hero-fact { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-fact b { color: var(--page-accent-hi); font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.shore .steps { margin-bottom: clamp(30px, 4vw, 44px); }
.shore .quarters + .raid, .shore .raid + .quarters, .shore .raid + .raid { margin-top: clamp(30px, 4vw, 44px); }
.scorn-sec { background: radial-gradient(ellipse 60% 22% at 84% 6%, rgba(111, 211, 255, .1), transparent 70%), radial-gradient(ellipse 50% 20% at 8% 62%, rgba(60, 90, 200, .08), transparent 70%); }
.spider-sec { background: radial-gradient(ellipse 60% 26% at 16% 8%, rgba(255, 157, 74, .1), transparent 70%), radial-gradient(ellipse 50% 22% at 92% 70%, rgba(255, 90, 60, .05), transparent 70%); }
.kell-sec { background: radial-gradient(ellipse 60% 26% at 80% 6%, rgba(255, 93, 122, .09), transparent 70%); }
.secrets-sec { background: radial-gradient(ellipse 60% 45% at 30% 30%, color-mix(in srgb, var(--page-accent) 7%, transparent), transparent 70%); }
.shore .secrets-layout .games { gap: 28px; }
/* un câble tendu entre deux sections, avec ses deux grappins */
.tether-rule { position: relative; height: 3px; margin: 0 6vw; border: 0; overflow: visible; background: repeating-linear-gradient(90deg, rgba(190, 196, 214, .7) 0 10px, rgba(90, 96, 116, .7) 10px 14px); transform-origin: 0 50%; animation: tether-sway 9s ease-in-out infinite; }
.tether-rule::before, .tether-rule::after { content: ''; position: absolute; top: -7px; width: 16px; height: 16px; border: 3px solid rgba(190, 196, 214, .85); border-radius: 50%; border-right-color: transparent; }
.tether-rule::before { left: -14px; transform: rotate(180deg); }
.tether-rule::after { right: -14px; }
@keyframes tether-sway { 0%, 100% { transform: rotate(-.25deg); } 50% { transform: rotate(.25deg); } }
/* deux colonnes : un portrait et son texte */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); margin-bottom: clamp(30px, 4vw, 44px); background: var(--panel-solid); border: 1px solid var(--line); }
.duo-photo { position: relative; min-height: 360px; margin: 0; overflow: hidden; }
.duo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo-photo figcaption { position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: rgba(6, 8, 16, .78); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.duo-body { padding: clamp(22px, 3vw, 36px); }
.duo-body h3 { margin: 4px 0 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--pearl); }
.duo-body > p:not(.tag) { margin: 0 0 14px; font-size: .95rem; line-height: 1.65; color: var(--muted); }
.duo-line { margin: 0 0 12px; padding: 12px 16px; border-left: 3px solid var(--page-accent); background: color-mix(in srgb, var(--page-accent) 7%, transparent); }
.duo-line q { quotes: '« ' ' »'; font-family: var(--font-lore); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: #e9e3d6; }
.duo-line cite { display: block; margin-top: 4px; font-size: .62rem; font-style: normal; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--page-accent-hi); }
/* petite fiche d'arme, quatre par rangée */
.arm-note { margin: 8px 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.arms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(30px, 4vw, 44px); }

/* ---------- Carte du Rivage (brique commune : css/components/depths.css) ---------- */
.shore .depths { aspect-ratio: 10 / 9.4; }
.stratum--ciel { background: radial-gradient(ellipse 70% 130% at 30% -20%, rgba(228, 217, 255, .5), rgba(120, 96, 200, .38) 55%, transparent 85%), linear-gradient(180deg, #2a2350, #3b2f6a); }
.stratum--rochers { background: linear-gradient(180deg, #3b2f6a 0%, #2a2646 30%, #1b1a2c 100%); }
.stratum--dessous { background: linear-gradient(180deg, #1b1a2c, #0f1220 60%, #0b0e18); }
.stratum--ailleurs { background: radial-gradient(ellipse 60% 90% at 62% 70%, rgba(168, 224, 106, .14), transparent 75%), radial-gradient(ellipse 40% 80% at 14% 60%, rgba(111, 211, 255, .12), transparent 75%), linear-gradient(180deg, #0b0e18, #070910); }
.shore .stratum--ciel .stratum-name, .shore .stratum--ciel .stratum-note { text-shadow: 0 1px 6px rgba(10, 6, 30, .9); }
.ring { fill: none; stroke: rgba(228, 217, 255, .55); stroke-width: 1.4; }
.ring--inner { stroke: rgba(228, 217, 255, .22); stroke-width: .8; stroke-dasharray: 2 4; }
.rock { fill: rgba(12, 12, 24, .5); stroke: rgba(228, 217, 255, .2); stroke-width: .8; stroke-linejoin: round; }
.tether { stroke: rgba(190, 196, 214, .75); stroke-width: 1.2; stroke-dasharray: 3 2; }
.tether--long { stroke: rgba(190, 196, 214, .28); }
.veil { stroke: rgba(168, 224, 106, .35); stroke-width: 1; stroke-dasharray: 1 6; stroke-linecap: round; }
.way-line { stroke: rgba(231, 235, 245, .34); }
.way-line--sector { stroke: rgba(231, 235, 245, .4); stroke-dasharray: 2 4; }
.way-line--lair { stroke: rgba(111, 211, 255, .6); }
.way-line--strike { stroke: rgba(183, 155, 255, .7); }
.way-line--spider { stroke: rgba(255, 157, 74, .6); }
.way-line--awoken { stroke: rgba(228, 217, 255, .55); }
.way-line--lead { stroke: rgba(255, 157, 74, .55); stroke-dasharray: 6 5; }
.way-line--rift { stroke: rgba(168, 224, 106, .7); stroke-dasharray: 1 5; stroke-linecap: round; }
.way-line.is-unknown { display: none; }
.room-node--zone { color: #f3f1fa; }
.room-node--spider { color: var(--lamp); }
.room-node--path { color: #aab2c8; }
.room-node--sector { color: #cfd6e6; }
.room-node--lair { color: var(--ether); }
.room-node--strike { color: var(--dusk); }
.room-node--awoken { color: var(--dusk-hi); }
.room-node--kell { color: var(--kell); }
.room-node--beyond { color: var(--hive); }
.room-node--sector i, .room-node--path i { transform: none; }
.shore .room-label { text-shadow: 0 1px 6px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .9); }
/* le voile : un lieu inconnu n'a ni couleur ni nom */
.room-node.is-unknown { color: rgba(200, 204, 222, .34); cursor: default; }
.room-node.is-unknown i { border-style: dashed; background: transparent; box-shadow: none; }
.room-node.is-unknown .room-label { color: rgba(200, 204, 222, .42); font-weight: 700; }
.room-node.just-found i { animation: node-found 1.6s ease-out; }
@keyframes node-found { 0% { box-shadow: 0 0 0 0 currentColor; transform: rotate(45deg) scale(1.9); } 100% { box-shadow: 0 0 0 16px transparent; } }
.chart-status { min-height: 1.5em; margin: 10px 0 0; font-family: var(--font-lore); font-style: italic; font-size: 1.05rem; color: var(--page-accent-hi); }

/* ---------- Pastilles ---------- */
.shore .spot[hidden] { display: none; }
.spot[data-secret="winks"] { color: #e9e2ff; border-color: rgba(183, 155, 255, .75); }
.spot[data-secret="wanted"] { color: #ffd9d2; border-radius: 0; border-color: rgba(255, 96, 80, .9); box-shadow: 0 0 14px rgba(255, 96, 80, .45); }
.spot[data-secret="wanted"].found { box-shadow: none; }
.spot[data-secret="ace"] { color: #ffe3a6; border-color: rgba(255, 210, 122, .85); box-shadow: 0 0 14px rgba(255, 210, 122, .5); }
.spot[data-secret="memento"], .spot[data-secret="draw"], .spot[data-secret="presage"], .spot[data-secret="kell"] { color: #ffe3a6; border-color: rgba(255, 210, 122, .8); }

@media (max-width: 1020px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-photo { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  .shore .depths { aspect-ratio: 10 / 13; }
  .arms { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tether-rule, .room-node.just-found i { animation: none; }
}
/* le lien de la visionneuse occupe tout le portrait */
.duo .duo-photo > a { position: absolute; inset: 0; display: block; }
/* le juke-box du Réservoir vide : lance « Hope for the Future » (js/components/hope-player.js) */
.jukebox { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; cursor: pointer; background: rgba(8, 11, 18, .82); border: 1px solid var(--lamp); font: inherit; font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--lamp-hi); box-shadow: 0 0 18px rgba(255, 157, 74, .35); transition: background .25s, color .25s, box-shadow .25s; }
.jukebox:hover, .jukebox:focus-visible { outline: 0; background: var(--lamp); color: #0a0d16; box-shadow: 0 0 26px rgba(255, 157, 74, .7); }
.jukebox-eq { display: flex; align-items: flex-end; gap: 2px; width: 14px; height: 12px; }
.jukebox-eq i { flex: 1; height: 40%; background: currentColor; animation: jukebox-eq 1s ease-in-out infinite; }
.jukebox-eq i:nth-child(2) { animation-delay: -.3s; } .jukebox-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes jukebox-eq { 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .jukebox-eq i { animation: none; } }
