/* ==========================================================================
   NORTHWISP RADIO - MAIN STYLESHEET (MODULAR ARCHITECTURE)
   ========================================================================== */

:root {
  --bg-dark: #040608;
  --card-bg: rgba(10, 15, 22, 0.88);
  --ice-cyan: #38bdf8;
  --ice-glow: rgba(56, 189, 248, 0.45);
  --fire-red: #ff2a00;
  --fire-orange: #ff7700;
  --fire-yellow: #ffcc00;
  --fire-glow: rgba(255, 68, 0, 0.6);
  --stone-border: rgba(90, 105, 120, 0.35);
  --text-gold: #e2d9c8;
  --text-muted: #8c9ba8;
  --purple-hel: #c084fc;
  --purple-hel-glow: rgba(192, 132, 252, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-gold);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 75px;
  padding-bottom: 90px;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 42, 0, 0.14), transparent 65%),
    linear-gradient(180deg, #040608 0%, #070b10 50%, #040608 100%);
}

section {
  scroll-margin-top: 95px;
}

/* CONTENITORE PARTICELLE OTTIMIZZATO GPU */
#ember-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -10px;
  background: radial-gradient(circle, #ffcc00 20%, #ff3300 80%);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 0 8px #ff4400;
  animation: rise 8s infinite linear;
}

@keyframes rise {
  0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  20% { opacity: 0.9; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-110vh) translateX(70px) scale(0.2); opacity: 0; }
}

/* HEADER FISSO IN ALTO */
header.fixed-top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 6, 8, 0.92);
  border-bottom: 1px solid var(--stone-border);
  padding: 0 1.25rem;
  box-shadow: 0 4px 25px rgba(0,0,0,0.85);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  header.fixed-top-header { padding: 0 2rem; }
}

.brand-mark {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--ice-cyan);
  text-shadow: 0 0 10px var(--ice-glow);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .brand-mark { font-size: 1.15rem; letter-spacing: 0.18em; }
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* EFFETTO HOVER NORRENO -> TRADUZIONE SULLO SLOGAN */
.header-slogan {
  display: none;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  padding: 0.35rem 0.4rem;
  background: transparent;
  border: none;
  user-select: none;
}

.header-slogan-stack {
  display: inline-grid;
  align-items: center;
  justify-items: center;
  position: relative;
}

.header-slogan .slogan-norse,
.header-slogan .slogan-trans {
  grid-area: 1 / 1;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: clip-path 1.15s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: clip-path;
}

.header-slogan .slogan-norse {
  color: var(--ice-cyan);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  clip-path: inset(0 0 0 0);
}

.header-slogan .slogan-trans {
  color: #e5a93c;
  text-shadow: 0 0 12px rgba(229, 169, 60, 0.55);
  clip-path: inset(0 100% 0 0);
}

.header-slogan:hover .slogan-norse,
.header-slogan.touch-translated .slogan-norse {
  clip-path: inset(0 0 0 100%);
}

.header-slogan:hover .slogan-trans,
.header-slogan.touch-translated .slogan-trans {
  clip-path: inset(0 0 0 0);
}

.slogan-ref {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-left: 0.45rem;
  font-style: normal;
  opacity: 0.85;
}

@media (min-width: 850px) {
  .header-slogan { display: flex; justify-content: center; align-items: center; }
}

/* ADESIVI E TIMBRI DIAGONALI COMING SOON PER SPECIALI WEEKEND */
.coming-soon-sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #ff7700 0%, #b82a0b 100%);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #ffcc00;
  box-shadow: 0 0 12px rgba(255, 119, 0, 0.6);
  text-transform: uppercase;
  flex-shrink: 0;
}

.coming-soon-sticker.hel-sticker {
  background: linear-gradient(135deg, #9333ea 0%, #4c1d95 100%);
  border-color: #e9d5ff;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
}

.card-diagonal-stamp {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  z-index: 6;
  pointer-events: none;
  width: max-content;
}

.card-diagonal-stamp .coming-soon-sticker {
  font-size: 0.9rem;
  padding: 0.45rem 1.4rem;
  letter-spacing: 0.18em;
  border-width: 1.5px;
  background: rgba(184, 42, 11, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.85), 0 0 18px rgba(255, 119, 0, 0.65);
}

.card-diagonal-stamp .coming-soon-sticker.hel-sticker {
  background: rgba(88, 28, 135, 0.88);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.85), 0 0 18px rgba(192, 132, 252, 0.65);
}

.header-right-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* MENU BTN */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(10, 15, 22, 0.95);
  border: 1px solid var(--stone-border);
  color: var(--ice-cyan);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  border-color: var(--ice-cyan);
  box-shadow: 0 0 10px var(--ice-glow);
}

/* DROPDOWN LINGUA MINIMALE */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-dropdown-btn {
  background: rgba(10, 15, 22, 0.95);
  border: 1px solid var(--stone-border);
  border-radius: 6px;
  color: var(--text-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
  border-color: var(--ice-cyan);
  color: var(--ice-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: rgba(4, 7, 12, 0.98);
  border: 1px solid var(--ice-cyan);
  border-radius: 6px;
  padding: 0.4rem 0;
  min-width: 100px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.9);
  flex-direction: column;
  z-index: 1001;
}

.lang-dropdown-wrapper.open .lang-dropdown-content {
  display: flex;
}

.lang-option {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-option:hover, .lang-option.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.15);
}

/* MENU A TENDINA MOBILE */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(4, 7, 12, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ice-cyan);
  padding: 1.2rem 1.5rem;
  z-index: 998;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.9);
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer a {
  color: var(--text-gold);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-drawer a:last-child {
  border-bottom: none;
}

/* PLAYER FISSO IN BASSO */
.sticky-bottom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 86px;
  z-index: 999;
  background: rgba(5, 8, 12, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 -8px 25px rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1rem;
}

.sticky-center-console {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

@media (min-width: 850px) {
  .sticky-center-console { 
    display: flex; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
  }
  .sticky-track-info { flex: 1; }
  .sticky-controls { flex: 1; justify-content: flex-end; }
}

.sticky-meta-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.sticky-up-next {
  color: var(--ice-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sticky-up-next:hover {
  text-shadow: 0 0 10px var(--ice-glow);
  color: #fff;
}

.sticky-norns-state {
  color: #e5a93c;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sticky-norns-state:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(229, 169, 60, 0.8);
  transform: scale(1.05);
}

.sticky-norns-state.ready {
  text-shadow: 0 0 12px rgba(229, 169, 60, 0.8);
  color: #fff;
}

.sticky-progress-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.6rem;
  font-size: 0.65rem;
  color: #94a3b8;
}

.sticky-progress-bg {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  position: relative;
}

.sticky-progress-fill {
  height: 100%;
  background: var(--pulse-color, var(--ice-cyan));
  box-shadow: 0 0 8px var(--pulse-glow-soft, var(--ice-glow));
  border-radius: 4px;
  width: 0%;
  transition: width 1s linear, background 0.8s ease, box-shadow 0.8s ease;
}

.sticky-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 24px;
}

.eq-bar {
  width: 4px;
  background: var(--pulse-color, var(--ice-cyan));
  border-radius: 1px;
  height: 2px;
  transition: height 0.05s ease, background 0.8s ease;
}

.sticky-track-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.sticky-mini-art {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pulse-color, var(--ice-cyan));
  background: #0d1520;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--pulse-color, var(--ice-cyan));
  box-shadow: 0 0 10px var(--pulse-glow-soft, rgba(56, 189, 248, 0.3));
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

.sticky-mini-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sticky-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.sticky-title {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sticky-sub {
  font-size: 0.74rem;
  color: var(--pulse-color, var(--ice-cyan));
  text-overflow: ellipsis;
  overflow: hidden;
  transition: color 0.8s ease;
}

.sticky-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.sticky-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #0e1a2b, #03060a);
  border: 1px solid var(--pulse-color, var(--ice-cyan));
  color: var(--pulse-color, var(--ice-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px var(--pulse-glow-soft, var(--ice-glow));
  transition: all 0.25s ease;
}

.sticky-play-btn:hover {
  transform: scale(1.08);
  border-color: #fff;
  box-shadow: 0 0 20px var(--pulse-color, var(--ice-cyan));
}

.sticky-play-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--pulse-color, var(--ice-cyan));
  transition: fill 0.8s ease;
}

.sticky-volume {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .sticky-volume { display: flex; }
}

.sticky-volume input[type="range"] {
  width: 95px;
  accent-color: var(--pulse-color, var(--ice-cyan));
  cursor: pointer;
}

/* CONTENUTI PRINCIPALI */
main {
  position: relative;
  z-index: 10;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.hero-title-group {
  position: relative;
  z-index: 25;
  pointer-events: none;
}

h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  letter-spacing: 0.2em;
  color: #f8fafc;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 55%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 22px rgba(4, 6, 8, 0.9)) drop-shadow(0 0 18px var(--ice-glow));
  line-height: 1.15;
}

.sub-quote {
  font-family: 'Cinzel', serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-gold);
  text-transform: uppercase;
  margin-top: 0.35rem;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 1),
    0 0 14px rgba(0, 0, 0, 0.98),
    0 0 24px rgba(4, 6, 8, 0.95),
    0 0 12px rgba(229, 169, 60, 0.35);
}

.player-altar {
  position: relative;
  z-index: 5;
  width: 290px;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

@media (min-width: 480px) {
  .player-altar { width: 310px; height: 310px; }
}

.rune-ring-outer {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 2px dashed var(--pulse-ring-border, rgba(56, 189, 248, 0.38));
  box-shadow: 0 0 45px var(--pulse-glow-soft, rgba(56, 189, 248, 0.22)), inset 0 0 35px rgba(0,0,0,0.9);
  animation: rotateRune 90s infinite linear;
  transition: border-color 1.2s ease, box-shadow 1.2s ease;
  pointer-events: none;
}

@keyframes rotateRune {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pulse-halo {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 3px solid var(--pulse-color, var(--ice-cyan));
  opacity: 0.32;
  box-shadow: 0 0 30px var(--pulse-glow-soft, rgba(56, 189, 248, 0.25));
  transition: border-color 0.8s ease;
  will-change: transform, opacity, box-shadow, filter;
  pointer-events: none;
}

.isPlaying .pulse-halo {
  opacity: 0.95;
  box-shadow:
    0 0 var(--pulse-glow-spread, 75px) var(--pulse-color, var(--ice-cyan)),
    0 0 var(--pulse-outer-aura, 120px) var(--pulse-glow-soft, rgba(56, 189, 248, 0.45)),
    inset 0 0 40px var(--pulse-color, var(--ice-cyan));
  animation: soundPulse var(--pulse-duration, 2.4s) infinite ease-in-out;
}

/* Quando il rilevatore Beat Web Audio è attivo, disattiva il keyframe fisso e guida l'anello col basso del brano */
.isPlaying.beat-synced .pulse-halo {
  animation: none;
  transition: transform 0.055s ease-out, opacity 0.065s ease-out, box-shadow 0.065s ease-out;
}

@keyframes soundPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(var(--pulse-scale, 1.09));
    opacity: 1;
    filter: drop-shadow(0 0 24px var(--pulse-color, #38bdf8));
  }
}

.logo-disk {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #14202d;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95);
  cursor: pointer;
  background: radial-gradient(circle, #0e1722, #040608);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-disk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  display: none;
  font-family: 'Cinzel', serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--ice-cyan);
  text-shadow: 0 0 30px var(--ice-cyan);
}

.altar-play-trigger {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 16, 24, 0.9) 40%, rgba(2, 6, 12, 0.98) 100%);
  border: 2px solid var(--pulse-color, var(--ice-cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px var(--pulse-glow-soft, var(--ice-glow)), inset 0 0 15px var(--pulse-glow-soft, rgba(56, 189, 248, 0.4));
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.8s ease, box-shadow 0.8s ease;
  z-index: 5;
}

.altar-play-trigger:hover {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: 0 0 40px var(--pulse-color, var(--ice-cyan));
}

.altar-play-trigger svg {
  width: 34px;
  height: 34px;
  fill: var(--pulse-color, var(--ice-cyan));
  transition: fill 0.8s ease;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--stone-border);
  border-radius: 10px;
  padding: 1.6rem;
  box-shadow: 0 12px 35px rgba(0,0,0,0.8);
  position: relative;
}

@media (min-width: 640px) {
  .glass-card { padding: 1.8rem; }
}

.stream-panel {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 20;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--fire-orange);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.live-torch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fire-orange);
  box-shadow: 0 0 10px var(--fire-orange);
  animation: flameFlicker 1.2s infinite alternate ease-in-out;
  flex-shrink: 0;
}

@keyframes flameFlicker {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.4); }
}

.track-name {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.track-author {
  font-size: 0.95rem;
  color: var(--pulse-color, var(--ice-cyan));
  margin-top: 0.25rem;
  transition: color 0.8s ease;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.volume-box input[type="range"] {
  width: 140px;
  accent-color: var(--pulse-color, var(--ice-cyan));
  cursor: pointer;
}

/* TASTO INSTALLA APP */
.btn-app {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 119, 0, 0.08);
  border: 1px solid rgba(255, 119, 0, 0.4);
  color: var(--text-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-app:hover {
  border-color: var(--fire-orange);
  color: var(--fire-orange);
  box-shadow: 0 0 12px rgba(255, 119, 0, 0.25);
}

/* TASTO FLUSSO ESTERNO */
.btn-pls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 20, 28, 0.9);
  border: 1px solid var(--stone-border);
  color: var(--text-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-pls:hover {
  border-color: var(--ice-cyan);
  color: var(--ice-cyan);
  box-shadow: 0 0 12px var(--ice-glow);
}
	
/* BARRA DONAZIONI MAGMA */
.fire-altar-card {
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.95) 0%, rgba(20, 8, 6, 0.95) 100%);
  border: 1px solid rgba(255, 68, 0, 0.35);
  box-shadow: 0 0 30px rgba(255, 42, 0, 0.15), 0 15px 40px rgba(0,0,0,0.9);
}

.fire-title-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  font-family: 'Cinzel', serif;
  margin-bottom: 0.9rem;
}

.fire-title-box h3 {
  font-size: 1rem;
  color: #ffebd8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fire-title-box .pct {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fire-orange);
  text-shadow: 0 0 12px var(--fire-glow);
  flex-shrink: 0;
}

.magma-channel {
  position: relative;
  width: 100%;
  height: 22px;
  background: #020305;
  border-radius: 11px;
  border: 1px solid rgba(255, 68, 0, 0.45);
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.9);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.magma-fill {
  height: 100%;
  background: linear-gradient(90deg, #7a0b00 0%, #d92200 40%, var(--fire-orange) 80%, #fff080 100%);
  box-shadow: 0 0 25px var(--fire-red), inset 0 0 6px #fff;
  border-radius: 11px;
  position: relative;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.magma-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: lavaFlow 2.5s infinite linear;
}

@keyframes lavaFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.magma-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-family: 'Cinzel', serif;
  color: #c99f92;
  letter-spacing: 0.08em;
}

.kofi-flame-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  background: linear-gradient(180deg, #b82a0b 0%, #611002 100%);
  border: 1px solid var(--fire-orange);
  color: #fff;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  padding: 0.95rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1.4rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 68, 0, 0.4);
  text-align: center;
}

.kofi-flame-btn:hover {
  background: linear-gradient(180deg, #e6380f 0%, #871704 100%);
  box-shadow: 0 0 35px var(--fire-glow);
  border-color: #ffd080;
  transform: translateY(-2px);
}

/* SEZIONE I NOVE REGNI & TITOLI SCHERMATI PER CONTRASTO SULL'AURORA */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 1),
    0 0 18px rgba(2, 4, 8, 0.98),
    0 0 32px rgba(2, 4, 8, 0.95),
    0 0 14px var(--pulse-glow-soft, rgba(56, 189, 248, 0.3));
}

.section-subtitle {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 2rem;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 1),
    0 0 14px rgba(2, 4, 8, 1),
    0 0 24px rgba(2, 4, 8, 0.98);
}

.realms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

/* IDENTITÀ CROMATICA PER CIASCUNO DEI 9 REGNI (GRIGLIA E CRONACHE) */
a[href="#sched-vanaheim"], #sched-vanaheim { --card-accent: #34d399; --card-glow: rgba(52, 211, 153, 0.30); }
a[href="#sched-midgard"], #sched-midgard { --card-accent: #38bdf8; --card-glow: rgba(56, 189, 248, 0.30); }
a[href="#sched-yggdrasil"], #sched-yggdrasil { --card-accent: #eab308; --card-glow: rgba(234, 179, 8, 0.30); }
a[href="#sched-jotunheim"], #sched-jotunheim { --card-accent: #f97316; --card-glow: rgba(249, 115, 22, 0.30); }
a[href="#sched-alfheim"], #sched-alfheim { --card-accent: #f59e0b; --card-glow: rgba(245, 158, 11, 0.30); }
a[href="#sched-niflheim"], #sched-niflheim { --card-accent: #60a5fa; --card-glow: rgba(96, 165, 250, 0.30); }
a[href="#sched-muspellsheim"], #sched-muspellsheim { --card-accent: #ff4500; --card-glow: rgba(255, 69, 0, 0.38); }
a[href="#sched-asgard"], #sched-asgard { --card-accent: #fbbf24; --card-glow: rgba(251, 191, 36, 0.38); }
a[href="#sched-helheim"], #sched-helheim, #sched-helheim-friday { --card-accent: #c084fc; --card-glow: rgba(192, 132, 252, 0.38); }

.realm-card-btn {
  position: relative;
  overflow: hidden;
  background: rgba(12, 17, 24, 0.78);
  border: 1px solid var(--stone-border);
  border-top: 2px solid var(--card-accent, var(--stone-border));
  border-radius: 8px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.realm-card-btn:hover {
  border-color: var(--card-accent, var(--ice-cyan));
  box-shadow: 0 0 25px var(--card-glow, rgba(56, 189, 248, 0.25));
  transform: translateY(-3px);
}

.realm-card-btn.special-card {
  border-color: rgba(255, 68, 0, 0.4);
  border-top: 2px solid var(--card-accent, var(--fire-orange));
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.85) 0%, rgba(28, 10, 8, 0.85) 100%);
}

.realm-card-btn.special-card:hover {
  border-color: var(--card-accent, var(--fire-orange));
  box-shadow: 0 0 25px var(--card-glow, rgba(255, 68, 0, 0.35));
}

.realm-card-btn.helheim-card {
  border-color: rgba(192, 132, 252, 0.45);
  border-top: 2px solid var(--purple-hel);
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.88) 0%, rgba(26, 10, 36, 0.85) 100%);
}

.realm-card-btn.helheim-card:hover {
  border-color: var(--purple-hel);
  box-shadow: 0 0 28px var(--purple-hel-glow);
}

.realm-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 48px;
}

.realm-rune {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--card-accent, rgba(56, 189, 248, 0.45));
  background: rgba(4, 6, 8, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--card-accent, var(--ice-cyan));
  box-shadow: 0 0 10px var(--card-glow, transparent);
  flex-shrink: 0;
}

.special-rune {
  border-color: var(--card-accent, var(--fire-orange));
  color: var(--card-accent, var(--fire-yellow));
}

.hel-rune {
  border-color: var(--purple-hel);
  color: var(--purple-hel);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.3);
}

.realm-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.realm-mood {
  font-size: 0.74rem;
  color: var(--card-accent, var(--ice-cyan));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  line-height: 1.3;
}

.realm-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.realm-read-more {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--card-accent, var(--fire-orange));
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hel-read-more {
  color: var(--purple-hel);
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.35);
}

/* PILASTRI SONORI INTERATTIVI */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.pillar-chip {
  background: rgba(12, 17, 24, 0.75);
  border: 1px solid var(--stone-border);
  border-radius: 8px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  user-select: none;
}

.pillar-chip:hover {
  border-color: var(--ice-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
}

.pillar-chip.active-pillar {
  border-color: var(--ice-cyan);
  background: linear-gradient(180deg, rgba(14, 25, 40, 0.95) 0%, rgba(8, 14, 22, 0.95) 100%);
  box-shadow: 0 0 25px var(--ice-glow);
}

.pillar-icon {
  font-size: 1.6rem;
  color: var(--ice-cyan);
  margin-bottom: 0.6rem;
  transition: transform 0.3s ease;
}

.pillar-chip:hover .pillar-icon {
  transform: scale(1.15);
}

.pillar-name {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.pillar-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* PANNELLO DI ESPLORAZIONE PILASTRO CLICCATO */
.pillar-detail-display {
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.95) 0%, rgba(4, 7, 12, 0.98) 100%);
  border: 1px solid var(--ice-cyan);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdd-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.pdd-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pdd-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--ice-cyan);
  color: var(--ice-cyan);
  background: rgba(56, 189, 248, 0.1);
  letter-spacing: 0.08em;
}

.pdd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.pdd-box strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--fire-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.pdd-box span, .pdd-box p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.pdd-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--fire-orange);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  cursor: pointer;
}

.pdd-jump-btn:hover {
  color: #ffd080;
  text-shadow: 0 0 8px var(--fire-glow);
}

/* SELETTORE PALINSESTI */
.schedule-days-selector {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 auto 2.2rem;
  max-width: 580px;
  width: 100%;
}

.day-tab-btn {
  width: 100%;
  background: rgba(14, 20, 28, 0.85);
  border: 1px solid var(--stone-border);
  color: var(--text-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}

.day-tab-btn:hover {
  border-color: var(--ice-cyan);
  color: var(--ice-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.day-tab-btn.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 116, 144, 0.35) 100%);
  border-color: var(--ice-cyan);
  color: #fff;
  box-shadow: 0 0 20px var(--ice-glow);
}

.day-tab-btn.special-btn.active {
  background: linear-gradient(180deg, rgba(255, 68, 0, 0.25) 0%, rgba(138, 20, 0, 0.4) 100%);
  border-color: var(--fire-orange);
  color: #fff;
  box-shadow: 0 0 20px var(--fire-glow);
}

.schedule-day-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.schedule-day-panel.active {
  display: flex;
}

.day-badge-banner {
  background: rgba(10, 15, 24, 0.8);
  border: 1px solid var(--stone-border);
  padding: 1rem 1.4rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.day-badge-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.day-badge-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

/* SCHEDE CRONACHE & PALINSESTI */
.chronicle-item {
  background: rgba(10, 15, 22, 0.92);
  border: 1px solid var(--stone-border);
  border-top: 2px solid var(--card-accent, var(--stone-border));
  border-radius: 10px;
  padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  scroll-margin-top: 95px;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .chronicle-item { padding: 1.8rem; }
}

.chronicle-item:hover {
  border-color: var(--card-accent, var(--ice-cyan));
  box-shadow: 0 0 25px var(--card-glow, rgba(56, 189, 248, 0.25));
}

.highlight-flash {
  animation: pulseHighlight 2.4s ease-out forwards;
}

@keyframes pulseHighlight {
  0% {
    border-color: #ffaa00;
    box-shadow: 0 0 40px 10px rgba(255, 170, 0, 0.7);
    transform: scale(1.015);
  }
  50% {
    border-color: var(--ice-cyan);
    box-shadow: 0 0 30px 6px var(--ice-glow);
    transform: scale(1.005);
  }
  100% {
    transform: scale(1);
  }
}

.chronicle-item.special-focus {
  border-color: rgba(255, 68, 0, 0.4);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.95) 0%, rgba(26, 9, 7, 0.95) 100%);
}

.chronicle-item.special-focus:hover {
  border-color: var(--fire-orange);
  box-shadow: 0 0 30px var(--fire-glow);
}

.chronicle-item.special-focus-hel {
  border-color: rgba(192, 132, 252, 0.45);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.95) 0%, rgba(28, 10, 36, 0.95) 100%);
}

.chronicle-item.special-focus-hel:hover {
  border-color: var(--purple-hel);
  box-shadow: 0 0 30px var(--purple-hel-glow);
}

.chronicle-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  gap: 0.8rem;
}

.chronicle-title-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chronicle-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.chronicle-schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6, 10, 16, 0.85);
  border: 1px solid var(--card-accent, rgba(56, 189, 248, 0.45));
  color: var(--card-accent, var(--ice-cyan));
  box-shadow: 0 0 10px var(--card-glow, transparent);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.07em;
}

.badge-special {
  background: rgba(255, 68, 0, 0.2);
  border-color: rgba(255, 68, 0, 0.5);
  color: var(--fire-yellow);
  box-shadow: 0 0 10px rgba(255, 68, 0, 0.3);
}

.badge-hel {
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.45);
  color: var(--purple-hel);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.25);
}

.chronicle-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  background: rgba(4, 6, 8, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.chronicle-meta-box strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--fire-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.chronicle-meta-box.hel-meta strong {
  color: var(--purple-hel);
}

.chronicle-meta-box span {
  font-size: 0.88rem;
  color: var(--text-gold);
}

.chronicle-narrative {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #94a3b8;
  border-left: 2px solid var(--card-accent, var(--ice-cyan));
  padding-left: 1rem;
  font-style: italic;
}

.chronicle-item.special-focus .chronicle-narrative {
  border-left-color: var(--fire-orange);
}

.chronicle-item.special-focus-hel .chronicle-narrative {
  border-left-color: var(--purple-hel);
}

/* MISSIONE */
.mission-box {
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #cbd5e1;
}

/* INVIA MUSICA */
.submit-track-card {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1), transparent 70%), var(--card-bg);
  border: 1px solid rgba(56, 189, 248, 0.3);
  scroll-margin-top: 100px;
}

.forge-track-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.25) 0%, rgba(14, 116, 144, 0.4) 100%);
  border: 1px solid var(--ice-cyan);
  color: #fff;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  padding: 1rem 1.4rem;
  border-radius: 8px;
  margin-top: 1.4rem;
  box-shadow: 0 0 25px var(--ice-glow);
  transition: all 0.3s ease;
  max-width: 100%;
}

@media (min-width: 640px) {
  .forge-track-btn { font-size: 1rem; padding: 1.1rem 2.2rem; }
}

.forge-track-btn:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.45) 0%, rgba(14, 116, 144, 0.6) 100%);
  box-shadow: 0 0 35px var(--ice-cyan);
  transform: translateY(-2px);
}

/* DOCUMENTI LEGALI */
.legal-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #94a3b8;
}

.legal-card h4 {
  font-family: 'Cinzel', serif;
  color: var(--ice-cyan);
  font-size: 1rem;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
}

.legal-card h4:first-child { margin-top: 0; }
.legal-card ul { margin-left: 1.2rem; margin-bottom: 1rem; }
.legal-card li { margin-bottom: 0.3rem; }

/* FOOTER RESPONSIVO */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2.5rem 1.25rem;
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: #556575;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #020305;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.2rem;
}

footer a {
  color: var(--fire-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffd080;
}
  
/* EVIDENZIAZIONE REGNO ATTIVO IN ONDA */
.realm-card-btn.active-live-realm {
  border-color: var(--card-accent, var(--ice-cyan));
  box-shadow: 0 0 32px var(--card-glow, rgba(56, 189, 248, 0.45));
  background: linear-gradient(180deg, rgba(18, 28, 42, 0.92) 0%, rgba(10, 15, 22, 0.95) 100%);
}

.live-realm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(4, 8, 14, 0.85);
  border: 1px solid var(--card-accent, var(--ice-cyan));
  color: var(--card-accent, var(--ice-cyan));
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-top: 0.3rem;
  text-transform: uppercase;
  box-shadow: 0 0 12px var(--card-glow, rgba(56, 189, 248, 0.35));
  animation: livePulseBadge 2s infinite ease-in-out;
}

@keyframes livePulseBadge {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); filter: drop-shadow(0 0 8px var(--card-accent, #38bdf8)); }
}

/* SLEEP TIMER & HISTORY DRAWER CONTROLS */
.player-extra-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  justify-content: center;
}

.sleep-timer-btn, .history-drawer-btn {
  background: rgba(14, 20, 28, 0.9);
  border: 1px solid var(--stone-border);
  color: var(--text-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.sleep-timer-btn:hover, .history-drawer-btn:hover, .sleep-timer-btn.active {
  border-color: var(--ice-cyan);
  color: var(--ice-cyan);
  box-shadow: 0 0 12px var(--ice-glow);
}

/* CASSETTO CRONOLOGIA BRANI RECENTI */
.recent-history-panel {
  display: none;
  background: rgba(6, 10, 16, 0.95);
  border: 1px solid var(--stone-border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: left;
  font-size: 0.82rem;
  animation: fadeIn 0.3s ease;
}

.recent-history-panel.open {
  display: block;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 0.8rem;
}
.history-item:last-child { border-bottom: none; }
.history-song { font-family: 'Cinzel', serif; color: #fff; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-time { font-size: 0.7rem; color: var(--text-muted); flex-shrink: 0; }


/* ==========================================================================
   NUOVE ESTENSIONI IMMERSIVE (V14): AURORA BOREALE VIVA, SPETTRO RUNICO, BUSSOLA, SANTUARIO, SOUNDSCAPES, HÁVAMÁL
   ========================================================================== */

/* AURORA BOREALE REALISTICA SU CANVAS (6 TENDE MULTILIVELLO A TUTTO SCHERMO & VELO DI SETA) */
.aurora-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  opacity: 0.38;
  transition: opacity 1.2s ease;
}

body.aurora-playing .aurora-sky {
  opacity: 0.56;
}

body.ritual-zen-mode .aurora-sky {
  opacity: 0.88;
}

#auroraCanvas {
  width: 100%;
  height: 100vh;
  display: block;
  mix-blend-mode: screen;
  filter: blur(11px) saturate(1.15);
  -webkit-filter: blur(11px) saturate(1.15);
  transform: scale(1.04);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.88) 78%, rgba(0,0,0,0.25) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.88) 78%, rgba(0,0,0,0.25) 100%);
}


/* PROGRESSIONE DEL BRANO, ASCOLTATORI E PROSSIMO BRANO */
.track-progress-wrapper {
  max-width: 440px;
  margin: 0.75rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.track-progress-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.track-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pulse-color, var(--ice-cyan)), #ffffff);
  box-shadow: 0 0 10px var(--pulse-color, var(--ice-cyan));
  transition: width 1s linear, background 0.8s ease, box-shadow 0.8s ease;
}

.track-time-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.up-next-banner {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.up-next-banner.visible {
  display: inline-flex;
}

.up-next-banner strong {
  font-family: 'Cinzel', serif;
  color: var(--pulse-color, var(--ice-cyan));
  letter-spacing: 0.06em;
  transition: color 0.8s ease;
}

/* MIXER AMBIENTALE NATURA NORDICA (WEB AUDIO SYNTH) */
.ambient-mixer-drawer {
  display: none;
  background: rgba(6, 10, 16, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 1.1rem;
  margin-top: 1rem;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.ambient-mixer-drawer.open {
  display: block;
}

.ambient-mixer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.9rem;
  margin-top: 0.65rem;
}

.ambient-channel-card {
  background: rgba(12, 18, 28, 0.85);
  border: 1px solid var(--stone-border);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ambient-channel-card.active-sound {
  border-color: var(--ice-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.ambient-channel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  color: #fff;
}

.ambient-toggle-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--stone-border);
  color: var(--text-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ambient-channel-card.active-sound .ambient-toggle-btn {
  background: var(--ice-cyan);
  color: #040608;
  border-color: #fff;
  font-weight: 700;
}

.ambient-channel-card input[type="range"] {
  width: 100%;
  accent-color: var(--ice-cyan);
  cursor: pointer;
}

/* BUSSOLA SOLARE DI YGGDRASIL (BARRA CRONOLOGICA 24H) */
.yggdrasil-compass-bar {
  background: rgba(8, 13, 20, 0.9);
  border: 1px solid var(--stone-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.65);
}

.compass-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
}

.compass-now-label {
  color: var(--pulse-color, var(--ice-cyan));
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  transition: color 0.8s ease;
}

.compass-countdown-label {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.compass-track {
  width: 100%;
  height: 8px;
  background: rgba(2, 4, 8, 0.9);
  border-radius: 99px;
  border: 1px solid var(--pulse-ring-border, rgba(56, 189, 248, 0.3));
  overflow: hidden;
  position: relative;
}

.compass-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--pulse-glow-soft, #0284c7), var(--pulse-color, var(--ice-cyan)), #ffffff);
  box-shadow: 0 0 12px var(--pulse-color, var(--ice-cyan));
  border-radius: 99px;
  transition: width 0.8s ease, background 0.8s ease, box-shadow 0.8s ease;
}

/* ORACOLO RUNICO HÁVAMÁL */
.oracle-card {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(229, 169, 60, 0.12), transparent 72%), var(--card-bg);
  border: 1px solid rgba(229, 169, 60, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.oracle-rune-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid #e5a93c;
  background: radial-gradient(circle, rgba(28, 20, 10, 0.95), rgba(6, 8, 12, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: #e5a93c;
  box-shadow: 0 0 25px rgba(229, 169, 60, 0.35), inset 0 0 12px rgba(229, 169, 60, 0.25);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.oracle-rune-circle.spin-rune {
  transform: rotateY(360deg) scale(1.12);
  box-shadow: 0 0 40px rgba(229, 169, 60, 0.85);
}

/* Contenitore a altezza fissa calibrata sulla runa più lunga (zero effetto scalino sul pulsante) */
.oracle-text-stage {
  width: 100%;
  max-width: 680px;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

@media (min-width: 640px) {
  .oracle-text-stage {
    min-height: 175px;
  }
}

.oracle-riddle-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.15rem;
  color: #e5a93c;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  min-height: 2.7em;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .oracle-riddle-name {
    min-height: 1.5em;
  }
}

.oracle-norse-verse {
  font-family: 'Cinzel', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ice-cyan);
  max-width: 680px;
  line-height: 1.6;
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oracle-trans-verse {
  font-size: 0.94rem;
  color: var(--text-gold);
  max-width: 680px;
  line-height: 1.7;
  min-height: 5.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .oracle-trans-verse {
    min-height: 3.4em;
  }
}

.oracle-btn {
  background: linear-gradient(180deg, rgba(229, 169, 60, 0.22) 0%, rgba(120, 75, 12, 0.4) 100%);
  border: 1px solid #e5a93c;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.oracle-btn:hover:not(.locked) {
  background: linear-gradient(180deg, rgba(229, 169, 60, 0.4) 0%, rgba(140, 88, 15, 0.6) 100%);
  box-shadow: 0 0 22px rgba(229, 169, 60, 0.5);
  transform: translateY(-2px);
}

.oracle-btn.locked {
  background: rgba(15, 22, 32, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.oracle-btn.needs-play {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 116, 144, 0.38) 100%);
  border-color: var(--ice-cyan);
  color: var(--ice-cyan);
  cursor: pointer;
}

.oracle-btn.needs-play:hover {
  box-shadow: 0 0 20px var(--ice-glow);
  color: #fff;
  transform: translateY(-2px);
}

.oracle-rune-circle.locked-veil {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
  box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

/* BARRA ENERGIA DELLE NORNE (FILO DEL FATO) */
.norns-energy-container {
  width: 100%;
  max-width: 560px;
  background: rgba(6, 10, 16, 0.92);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 10px;
  padding: 0.95rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.85);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.norns-energy-container.ready {
  border-color: #e5a93c;
  box-shadow: 0 0 22px rgba(229, 169, 60, 0.22), inset 0 2px 10px rgba(0,0,0,0.85);
}

.norns-energy-container.paused-warning {
  border-color: rgba(56, 189, 248, 0.35);
}

.norns-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.norns-label {
  color: #e5a93c;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.norns-pct {
  color: #fff;
  font-weight: 700;
}

.norns-bar-track {
  width: 100%;
  height: 11px;
  background: #020407;
  border-radius: 99px;
  border: 1px solid rgba(229, 169, 60, 0.35);
  overflow: hidden;
  position: relative;
}

.norns-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 45%, #e5a93c 85%, #fff3b0 100%);
  box-shadow: 0 0 15px #e5a93c;
  border-radius: 99px;
  position: relative;
  transition: width 0.35s linear;
}

.norns-bar-fill.charging::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  animation: threadShimmer 2s infinite linear;
}

@keyframes threadShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.norns-status-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 1.3em;
  line-height: 1.4;
}

/* MODALITÀ SANTUARIO CONTEMPLATIVO (FULLSCREEN ZEN) */
body.ritual-zen-mode header.fixed-top-header,
body.ritual-zen-mode main > section:not(#player),
body.ritual-zen-mode footer,
body.ritual-zen-mode .sticky-bottom-player {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

body.ritual-zen-mode {
  overflow: hidden;
}

body.ritual-zen-mode #player {
  min-height: calc(100vh - 120px);
  justify-content: center;
}

.exit-ritual-floating-btn {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2000;
  background: rgba(8, 14, 22, 0.92);
  border: 1px solid var(--ice-cyan);
  color: var(--ice-cyan);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  align-items: center;
  gap: 0.5rem;
}

body.ritual-zen-mode .exit-ritual-floating-btn {
  display: inline-flex;
}

/* TOAST FEEDBACK CONDIVISIONE E SCORCIATOIE */
.northwisp-toast {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(6, 12, 20, 0.96);
  border: 1px solid var(--ice-cyan);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.9), 0 0 15px var(--ice-glow);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.northwisp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
