* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Sfondo Goldrake in Trasparenza */
body.goldrake-bg {
  background: #0d0e15 url('https://images.alphacoders.com/830/830722.jpg') center/cover no-repeat fixed;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

body.goldrake-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 14, 21, 0.78);
  z-index: 0;
}

header, main, footer, .modal-overlay, .vumeter {
  position: relative;
  z-index: 1;
}

/* Header Titolo con Vinile Rotante */
.main-header {
  text-align: center;
  margin: 2rem 1rem 1rem 1rem;
}

.vinyl-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.vinyl-record {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, #222 15%, #111 16%, #111 30%, #000 31%, #222 35%, #000 65%, #111 100%);
  border-radius: 50%;
  border: 2px solid #333;
  box-shadow: 0 0 15px rgba(0,0,0,0.8), inset 0 0 10px rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinVinyl 3s linear infinite;
}

.vinyl-label {
  width: 32px;
  height: 32px;
  background: #ffcc00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 2px solid #000;
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.main-header h1 {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
  color: #ffcc00;
}

.main-header p {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

/* VU Meter Animati ai Lati */
.vumeter {
  position: fixed;
  top: 20%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  background: rgba(0,0,0,0.5);
  padding: 12px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.vumeter-left { left: 15px; }
.vumeter-right { right: 15px; }

.vumeter .bar {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.3;
  animation: vuPulse 0.6s ease-in-out infinite alternate;
}

.bar-red { background: #ff3333; box-shadow: 0 0 8px #ff3333; animation-delay: 0.1s !important; }
.bar-orange { background: #ff9900; box-shadow: 0 0 8px #ff9900; animation-delay: 0.2s !important; }
.bar-yellow { background: #ffff00; box-shadow: 0 0 8px #ffff00; animation-delay: 0.3s !important; }
.bar-green { background: #33cc33; box-shadow: 0 0 8px #33cc33; animation-delay: 0.4s !important; }

@keyframes vuPulse {
  0% { opacity: 0.2; transform: scaleX(0.8); }
  100% { opacity: 1; transform: scaleX(1.2); }
}

/* Container Pentagoni */
.pentagon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  padding: 2rem 1rem;
  margin: auto;
}

.pentagon-card {
  text-decoration: none;
  color: white;
  cursor: pointer;
  width: 190px;
  height: 190px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
}

.pentagon-card:hover {
  transform: translateY(-12px) scale(1.1) !important;
  filter: drop-shadow(0 15px 30px rgba(255,255,255,0.3));
}

/* Animazione Pentagoni A Tempo di Musica */
.beat-1 { animation: beatAnim 0.8s ease-in-out infinite alternate; }
.beat-2 { animation: beatAnim 0.8s ease-in-out 0.2s infinite alternate; }
.beat-3 { animation: beatAnim 0.8s ease-in-out 0.4s infinite alternate; }
.beat-4 { animation: beatAnim 0.8s ease-in-out 0.15s infinite alternate; }
.beat-5 { animation: beatAnim 0.8s ease-in-out 0.35s infinite alternate; }

@keyframes beatAnim {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Forma Geometrica Pentagono */
.pentagon-shape {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.pentagon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.pentagon-content .icon {
  font-size: 2.3rem;
}

.pentagon-content h2 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pentagon-content .subtext {
  font-size: 0.68rem;
  opacity: 0.85;
  word-break: break-all;
}

/* Colori Sfolgoranti Pentagoni */
.p-red .pentagon-shape { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.p-blue .pentagon-shape { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.p-green .pentagon-shape { background: linear-gradient(135deg, #11998e, #38ef7d); }
.p-yellow .pentagon-shape { background: linear-gradient(135deg, #ff9900, #ff5500); }
.p-purple .pentagon-shape { background: linear-gradient(135deg, #8e2de2, #4a00e0); }

/* Modal Password */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #181922;
  border: 2px solid #ffcc00;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.modal-box h3 { color: #ffcc00; margin-bottom: 0.5rem; }
.modal-box p { font-size: 0.9rem; color: #ccc; margin-bottom: 1.2rem; }

.modal-box input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #222;
  color: white;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  outline: none;
}

.modal-buttons { display: flex; gap: 0.8rem; }

.btn-confirm {
  flex: 1;
  background: #28a745;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.btn-cancel {
  flex: 1;
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.hub-footer {
  margin-top: auto;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Responsive per Display Piccoli */
@media (max-width: 768px) {
  .vumeter { display: none; }
}