/* ── ТЕМА ICE (Ледяной Океан): aurora shimmer, секции-глубины ── */
@keyframes iceShimmer { 0%{background-position:0% 50%} 100%{background-position:100% 50%} }
@keyframes auroraPulse {
  0%   { opacity:0.0; transform:translateY(0) scaleX(1); }
  40%  { opacity:0.18; }
  100% { opacity:0.06; transform:translateY(-12px) scaleX(1.06); }
}
@keyframes iceSnowFall {
  0%   { transform: translateY(-10px) rotate(0deg) translateX(0); opacity:0; }
  10%  { opacity:0.6; }
  90%  { opacity:0.25; }
  100% { transform: translateY(105vh) rotate(360deg) translateX(20px); opacity:0; }
}
@keyframes iceWaveDrift { 0%{transform:translateX(0)} 100%{transform:translateX(50%)} }
@keyframes iceMoonPulse {
  0%   { box-shadow: 0 0 18px rgba(160,200,240,0.35), 0 0 50px rgba(100,160,220,0.1); }
  100% { box-shadow: 0 0 30px rgba(160,200,240,0.55), 0 0 80px rgba(100,160,220,0.2); }
}

/* Фоновая сцена — арктическая ночь */
#ice-scene {
  position: fixed; inset: 0; pointer-events: none; z-index: -8;
  opacity: 0; transition: opacity 0.8s ease; overflow: hidden;
}
#ice-scene.active { opacity: 1; }

.ice-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #020408 0%, #040c18 20%, #061428 45%, #081830 65%, #061020 80%, #040c18 100%);
}
.ice-aurora-wrap {
  position: absolute; top: 0; left: 0; right: 0; height: 50%; overflow: hidden;
}
.ice-aurora-band {
  position: absolute; border-radius: 50%; filter: blur(28px);
  animation: auroraPulse ease-in-out infinite alternate; opacity: 0;
}
.ice-ab1 { width:70%; height:90px; top:5%; left:-5%; background:linear-gradient(90deg,transparent,#00c8a0,#0090d8,transparent); animation-duration:8s; }
.ice-ab2 { width:60%; height:75px; top:18%; left:20%; background:linear-gradient(90deg,transparent,#0070c0,#00a8e0,#40e0d0,transparent); animation-duration:11s; animation-delay:-3s; }
.ice-ab3 { width:50%; height:65px; top:8%; right:-5%; background:linear-gradient(90deg,transparent,#4080ff,#00d0c0,transparent); animation-duration:9s; animation-delay:-5s; }
.ice-ab4 { width:40%; height:55px; top:25%; left:40%; background:linear-gradient(90deg,transparent,#00b8a0,#3090e0,transparent); animation-duration:13s; animation-delay:-2s; }

.ice-moon {
  position: absolute; top: 8%; right: 14%;
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #f0f8ff, #c8e8f8 50%, #a0c8e8);
  box-shadow: 0 0 20px rgba(160,200,240,0.4), 0 0 60px rgba(100,160,220,0.12);
  animation: iceMoonPulse 7s ease-in-out infinite alternate;
}
.ice-moon::before { content:''; position:absolute; width:10px; height:10px; border-radius:50%; top:10px; right:8px; background:rgba(160,200,230,0.22); }

.ice-stars-wrap { position: absolute; inset: 0; }

.ice-ocean {
  position: absolute; bottom: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(180deg, #0a2040 0%, #081830 35%, #061020 70%, #040c18 100%);
  overflow: hidden;
}
.ice-wave {
  position: absolute; left: -100%; right: -100%;
  height: 2px; border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(100,180,240,0.35), rgba(160,220,255,0.55), rgba(100,180,240,0.35), transparent);
  animation: iceWaveDrift linear infinite;
}
.ice-wv1 { top:5%;  animation-duration:9s; opacity:0.7; }
.ice-wv2 { top:15%; animation-duration:12s; animation-delay:-3s; height:1px; opacity:0.45; }
.ice-wv3 { top:28%; animation-duration:10s; animation-delay:-6s; opacity:0.55; }
.ice-wv4 { top:48%; animation-duration:14s; animation-delay:-2s; height:1px; opacity:0.35; }
.ice-wv5 { top:68%; animation-duration:11s; animation-delay:-8s; opacity:0.4; }

.ice-horizon {
  position: absolute; bottom: 35%;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80,160,220,0.25), rgba(120,200,240,0.45), rgba(80,160,220,0.25), transparent);
}

/* Снежинки */
.ice-snow-layer { position: absolute; inset: 0; overflow: hidden; }
.ice-snowflake {
  position: absolute; color: rgba(200,230,255,0.65);
  animation: iceSnowFall linear infinite; user-select: none;
}

/* Шапка в теме ice */
body.theme-ice .header {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg,#0a3060,#2080c0,#60c0f0,#40e0d0,#60c0f0,#2080c0,#0a3060) 1;
  box-shadow: 0 4px 24px rgba(64,144,200,0.12);
  position: sticky; top: 0;
}
body.theme-ice .header::before {
  content: '❄  ✦  ❄  ✦  ❄  ✦  ❄  ✦  ❄  ✦  ❄  ✦  ❄';
  position: absolute; top: 3px; left: 0; right: 0;
  font-size: 7px; letter-spacing: 4px; text-align: center;
  color: rgba(96,192,240,0.15); pointer-events: none; white-space: nowrap; overflow: hidden; clip-path: inset(0);
}
@media (max-width: 768px) { body.theme-ice .header::before { display: none; } }
body.theme-ice .header-title {
  background: linear-gradient(90deg,#60c0f0,#a0d8ff,#40e0d0,#80c8f8,#60c0f0,#a0d8ff,#40e0d0,#80c8f8,#60c0f0);
  background-size: 400%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: iceShimmer 9s linear infinite;
}
body.theme-ice .progress-bar {
  background: linear-gradient(90deg,#0a6090,#2090c0,#60c0f0,#40e0d0,#60c0f0,#2090c0,#0a6090,#2090c0,#60c0f0);
  background-size: 400%;
  animation: iceShimmer 9s linear infinite;
  box-shadow: 0 0 12px rgba(64,192,240,0.5);
}
body.theme-ice .progress-triangle { border-bottom-color: #60c0f0; }
body.theme-ice .progress-pct {
  background: linear-gradient(90deg,#60c0f0,#40e0d0,#a0d8ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-ice .section-header { color: #fff !important; position:relative; overflow:hidden; }
body.theme-ice .section-header::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.09) 0%,transparent 60%);
  pointer-events:none; border-radius:inherit;
}

