*{box-sizing:border-box}
body{margin:0;font-family:system-ui,sans-serif;background:black;color:white;min-height:100vh;overflow:hidden}

#stars{position:fixed;inset:0;background:radial-gradient(1px 1px at 20% 30%,white,transparent),radial-gradient(1px 1px at 80% 40%,white,transparent),radial-gradient(1px 1px at 60% 70%,white,transparent);background-size:200px 200px;animation:drift 15s linear infinite;z-index:0}
@keyframes drift{from{transform:translateY(0)}to{transform:translateY(-200px)}}
#app{position:relative;z-index:1;max-width:420px;margin:auto;min-height:50vh;padding:24px;display:flex;flex-direction:column;justify-content:space-between;text-align:center}

@keyframes pulseBlue{0%,100%{text-shadow:0 0 12px #2b6cff}50%{text-shadow:0 0 50px #2b6cff}}
@keyframes pulseRed{0%,100%{text-shadow:0 0 12px #ff3b3b}50%{text-shadow:0 0 50px #ff3b3b}}
.claim {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: rgba(255,255,255,0.95);
  text-shadow:
    0 0 10px rgba(255,255,255,0.4),
    0 0 30px rgba(80,140,255,0.3);
  margin: 6px 0;
}

button {
  width: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.4);
  margin: 14px 0;
  background: linear-gradient(
    135deg,
    rgba(120,160,255,0.6),
    rgba(255,120,120,0.6)
  );
  backdrop-filter: blur(10px);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.8),
    inset 0 -4px 10px rgba(0,0,0,0.5),
    0 10px 30px rgba(0,0,0,0.7),
    0 0 40px rgba(80,140,255,0.5);
  transition: all 0.3s ease;
}
button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.9),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}
button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    inset 0 1px 5px rgba(255,255,255,1),
    inset 0 -6px 14px rgba(0,0,0,0.6),
    0 20px 50px rgba(0,0,0,0.9),
    0 0 70px rgba(120,160,255,0.7);
}
button:active {
  transform: scale(0.96);
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.8),
    0 6px 20px rgba(0,0,0,0.7);
}


.primary{border:1px solid rgba(80,140,255,.8)}
.secondary{border:1px solid rgba(255,140,80,.8)}
input{width:100%;padding:14px;border-radius:12px;border:none;background:#111827;color:white}
.heat-container{width:100%;height:14px;background:rgba(255,255,255,.1);border-radius:10px;overflow:hidden;margin-bottom:20px}
#heat{height:100%;width:0;background:linear-gradient(90deg,#2b6cff,#ff3b3b)}
#log {
  font-size: .85rem;
  opacity: .8;
  margin-top: 10px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Scrollbar elegante */
#log::-webkit-scrollbar {
  width: 4px;
}
#log::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
}

#hint {
  font-size: .85rem;
  opacity: .7;
  margin-top: 10px;
}

.hidden{display:none}
footer{font-size:.7rem;opacity:.6}
.logo {
  display: flex;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 4px;
}

.logo img {
  width: auto;
  max-width: 220px;
  height: auto;
  max-height: 90px;
  filter: drop-shadow(0 0 12px rgba(80,140,255,0.5))
          drop-shadow(0 0 24px rgba(255,80,80,0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(80,140,255,0.8))
          drop-shadow(0 0 40px rgba(255,80,80,0.7));
}

button.primary,
button.secondary {
  background: linear-gradient(
    135deg,
    rgba(0,195,255,0.45),
    rgba(255,0,0,0.45)
  ) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
}
@keyframes shine {
  0% { left: -150%; }
  50% { left: 150%; }
  100% { left: 150%; }
}
button .subtext {
  display: block;
  margin-top: 6px;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: none;
  opacity: 0.85;
}
/* Heat colors */
.heat-0 { color: #2b6cff; }   /* Blu */
.heat-1 { color: #5ecbff; }   /* Azzurro */
.heat-2 { color: #ffd84d; }   /* Giallo */
.heat-3 { color: #ff9f3f; }   /* Arancione */
.heat-4 { color: #ff6b6b; }   /* Rosso chiaro */

/* Victory cinematic card */
.victory-card {
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(255,80,80,0.8),
    rgba(180,30,30,0.9)
  );
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.6),
    0 20px 60px rgba(255,0,0,0.7),
    0 0 80px rgba(255,80,80,0.9);
  text-align: center;
  animation: victoryPulse 2s infinite;
}

/* Victory text */
.victory-claim {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-shadow:
    0 0 20px rgba(255,255,255,0.8),
    0 0 50px rgba(255,80,80,1);
}

/* Pulse animation */
@keyframes victoryPulse {
  0%, 100% {
    box-shadow:
      inset 0 2px 6px rgba(255,255,255,0.6),
      0 20px 60px rgba(255,0,0,0.7),
      0 0 80px rgba(255,80,80,0.9);
  }
  50% {
    box-shadow:
      inset 0 2px 10px rgba(255,255,255,0.9),
      0 30px 80px rgba(255,0,0,0.9),
      0 0 120px rgba(255,80,80,1);
  }
}
#victory-word {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.25em;
  margin: 18px 0 12px;
  color: white;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(255,255,255,0.9),
    0 0 50px rgba(255,80,80,1),
    0 0 90px rgba(255,80,80,1);
  animation: wordGlow 1.8s infinite alternate;
}
/* FLOATING IMAGE ICONS */
.floating-icons {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 18px;
  z-index: 5;
}

.float-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: linear-gradient(145deg, #020617, #1e293b);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 0 20px rgba(80,140,255,0.4),
    inset 0 0 12px rgba(255,255,255,0.15);

  transition: all 0.3s ease;
  animation: floaty 3.5s ease-in-out infinite;
}

.float-btn img {
  width: 32px;
  height: 32px;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(80,140,255,0.9));
}

.float-btn:hover {
  transform: scale(1.15);
  box-shadow:
    0 0 35px rgba(80,140,255,0.9),
    inset 0 0 18px rgba(255,255,255,0.25);
}

.float-btn:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes floaty {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
/* RESPONSIVE FIX - MOBILE */
@media (max-width: 600px) {
  .floating-icons {
    gap: 20px;
    margin-bottom: 12px;
  }

  .float-btn {
    width: 52px;
    height: 52px;
  }

  .float-btn img {
    width: 26px;
    height: 26px;
  }
}

/* SAFE AREA (iOS notch) */
@supports (padding: env(safe-area-inset-top)) {
  .floating-icons {
    padding-top: env(safe-area-inset-top);
  }
}
/* Nick globale – coerente su tutte le pagine */
#nick-tag {
  font-family: 'Orbitron', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
