* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: #fff;
}

/* natuke keerulisem piltide tõmbamine/dragimine */
body.nosave {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.no-drag {
  -webkit-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
}

/* taustpilt – SAMA bg.jpg, mis sul juba on */
.bg {
  position: fixed;
  inset: 0;
  background: url("assets/img/bg.jpg") center/cover no-repeat;
  filter: brightness(0.62);
  z-index: -2;
}

/* lume kiht */
.snow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.snowflake {
  position: absolute;
  color: #ffffff;
  opacity: 0.9;
  animation-name: snow-fall, snow-twinkle;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

.snowflake.red {
  color: #ff4a4a;
}

/* kukub lõpuni alla ja läheb uuesti ringi */
@keyframes snow-fall {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 120vh, 0); }
}

/* väike sähvimine / vilkumine */
@keyframes snow-twinkle {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}

/* wrapper */
.wrap {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card {
  background: radial-gradient(circle at top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
  border-radius: 22px;
  padding: 32px 44px 36px;
  max-width: 1040px;
  width: 92%;
  box-shadow: 0 0 40px rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.1);
}

/* logo ~240px */
.logo-top {
  height: 240px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 18px rgba(0,0,0,0.9));
}

h1 {
  font-size: 42px;
  margin: 0 0 6px;
  text-shadow: 0 0 18px #000;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 26px;
}

.icons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.icon-box {
  width: 230px;
  height: 230px;
  background: radial-gradient(circle at top, rgba(255,255,255,0.08), rgba(0,0,0,0.95));
  border-radius: 24px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 12px rgba(0,0,0,0.9);
}

.icon-box.locked {
  cursor: not-allowed;
}

/* jõulune sära – vaikimisi */
.icon-box.glow-white {
  animation: box-glow-white 2.4s ease-in-out infinite;
}

.icon-box.glow-red {
  animation: box-glow-red 2.4s ease-in-out infinite;
}

@keyframes box-glow-white {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255,255,255,0.15);
  }
  50% {
    box-shadow: 0 0 26px rgba(255,255,255,0.35);
  }
}

@keyframes box-glow-red {
  0%, 100% {
    box-shadow: 0 0 14px rgba(255,70,70,0.18);
  }
  50% {
    box-shadow: 0 0 30px rgba(255,70,70,0.45);
  }
}

/* hover – kast läheb veidi punakam ja tõuseb natuke */
.icon-box.locked:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(255,60,90,0.7);
  border-color: rgba(255,120,140,0.9);
}

/* skeleton pilt kastis */
.icon-main {
  max-height: 120px;
  max-width: 100%;
  margin-bottom: 6px;
}

/* luku ikoonid */
.lock-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 52px;
  height: 52px;
  animation: lock-pulse 1.5s ease-in-out infinite;
}

.icon-box.glow-red .lock-icon {
  animation-duration: 1.2s;
}

@keyframes lock-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

.icon-title {
  font-size: 18px;
  font-weight: bold;
}

.icon-desc {
  font-size: 13px;
  opacity: 0.85;
}

.bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-top: 12px;
}

.fun-text {
  max-width: 520px;
  text-align: left;
  font-size: 14px;
  background: rgba(0,0,0,0.65);
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.16);
}

.fun-text strong {
  color: #ffd16b;
}

.fun-text .tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0,0,0,0.8);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wave-skel {
  height: 150px;
  filter: drop-shadow(0 0 14px rgba(0,0,0,1));
}

.version {
  position: fixed;
  bottom: 8px;
  left: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 10px #000;
}

/* mobiil */
@media (max-width: 768px) {
  .card {
    padding: 22px 16px 26px;
  }

  .logo-top {
    height: 190px;
  }

  h1 {
    font-size: 32px;
  }

  .icons-row {
    gap: 18px;
  }

  .icon-box {
    width: 190px;
    height: 210px;
  }

  .bottom-row {
    flex-direction: column-reverse;
  }

  .wave-skel {
    height: 120px;
  }
}
