/* L'épave du Léviathan — les deux mini-jeux de Dualité : les statues (js/statues.js) et les cloches de
   conquête (js/bells.js). Royaume de l'Éveil : tons dorés ; royaume du Cauchemar : rouges.
   Le cadre commun (.game, .game-hud…) est dans css/components/game.css. */

#statues-time.is-urgent, #bells-time.is-urgent { color: #ff9a8a; }

/* ---------- Les statues ---------- */
.statues { padding: clamp(18px, 3vw, 30px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(217, 178, 106, .14), transparent 70%), linear-gradient(180deg, #121008, #0a0906); transition: background .6s; }
.statues[data-realm="nightmare"] { background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 70, 50, .2), transparent 70%), linear-gradient(180deg, #1a0606, #0c0303); }
.statue-ring { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; }
.statue-ring::before { content: ''; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(217, 178, 106, .4); background: rgba(0, 0, 0, .35); }
.statues[data-phase="done"] .statue-ring::before { border-color: var(--spore, #7fd6a8); box-shadow: 0 0 24px rgba(127, 214, 168, .5); }
.st-statue { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 30%; transform: translate(-50%, -50%); }
.st-statue--0 { left: 50%; top: 16%; }
.st-statue--1 { left: 84%; top: 50%; }
.st-statue--2 { left: 50%; top: 84%; }
.st-statue--3 { left: 16%; top: 50%; }
.st-body { position: relative; display: grid; place-items: center; width: 62px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(217, 178, 106, .55); background: radial-gradient(circle at 40% 35%, #4a3e28, #1c170e 70%); }
.st-body i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -13px 0 0 -9px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 26px solid #f6e6c2; transform-origin: 50% 50%; transform: rotate(var(--rot)); transition: transform .5s ease; filter: drop-shadow(0 0 6px rgba(246, 230, 194, .6)); }
.st-statue.is-aligned .st-body { border-color: var(--spore, #7fd6a8); box-shadow: 0 0 16px rgba(127, 214, 168, .45); }
.st-statue.is-aligned .st-body i { border-bottom-color: #c9ffe4; }
.statues[data-realm="nightmare"] .st-body { border-color: rgba(255, 95, 82, .4); background: radial-gradient(circle, #2a0c0a, #120403 70%); }
.statues[data-realm="nightmare"] .st-body i { opacity: 0; }
.st-name { font-size: .6rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.st-lever { display: grid; place-items: center; width: 40px; height: 26px; padding: 0; border: 1px solid rgba(255, 95, 82, .7); background: rgba(255, 95, 82, .12); cursor: pointer; transition: background .2s, transform .2s; }
.st-lever span { width: 18px; height: 4px; border-radius: 2px; background: #ffd9d4; box-shadow: 0 0 8px rgba(255, 95, 82, .8); }
.st-lever:hover:not(:disabled), .st-lever:focus-visible { background: rgba(255, 95, 82, .3); transform: translateY(-1px); }

/* ---------- Les cloches de conquête ---------- */
.bells { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .8fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d0a08; }
.bells > div { padding: clamp(14px, 2.2vw, 20px); }
.bells-label { margin: 0 0 10px; font-size: .6rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bells-waking { background: radial-gradient(ellipse 90% 80% at 50% 0%, rgba(217, 178, 106, .16), transparent 70%); border-right: 1px solid var(--line); transition: opacity .4s; }
.bells-nightmare { background: radial-gradient(ellipse 90% 80% at 50% 0%, rgba(255, 70, 50, .14), transparent 70%); border-right: 1px solid var(--line); transition: opacity .4s; }
.bells[data-realm="waking"] .bells-nightmare, .bells[data-realm="nightmare"] .bells-waking { opacity: .45; }
.bl-foe { margin: 0 0 12px; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.bl-foe b { color: var(--nightmare-hi, #ffd9d4); }
.bl-plinths { display: flex; gap: 10px; }
.bl-plinth { display: grid; place-items: center; width: 54px; aspect-ratio: 1; border: 1px dashed rgba(217, 178, 106, .6); color: rgba(246, 230, 194, .6); }
.bl-plinth.is-planted { border-style: solid; border-color: var(--spore, #7fd6a8); background: rgba(127, 214, 168, .12); color: #c9ffe4; box-shadow: 0 0 14px rgba(127, 214, 168, .35); }
.bl-icon { width: 26px; height: 26px; }
.bells-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bl-room { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid rgba(255, 95, 82, .45); background: rgba(255, 95, 82, .06); color: var(--pearl); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: left; cursor: pointer; transition: background .2s; }
.bl-room:hover:not(:disabled), .bl-room:focus-visible { background: rgba(255, 95, 82, .2); }
.bl-room:disabled { cursor: default; }
.bl-room.is-taken { border-color: var(--tarnish, #d9b26a); color: var(--tarnish-hi, #f6e6c2); }
.bells-keepers { display: flex; gap: 10px; margin-bottom: 12px; }
.bl-keeper { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); cursor: pointer; transition: transform .2s, opacity .3s; }
.bl-keeper span { width: 14px; height: 14px; transform: rotate(45deg); background: #f3eee4; }
.bells[data-realm="nightmare"] .bl-keeper span { background: #ff8a7d; }
.bl-keeper:hover:not(:disabled) { transform: scale(1.08); }
.bl-keeper.is-down { opacity: .25; cursor: default; }
.bells-carry { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.bl-carried { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--tarnish, #d9b26a); color: var(--tarnish-hi, #f6e6c2); }
.bl-carried .bl-icon { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .bells { grid-template-columns: minmax(0, 1fr); }
  .bells-waking, .bells-nightmare { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .st-body i { transition: none; }
}
