:root{
  --sw-yellow:#ffe81f;
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  height:100%;
  background:#000;
  color:#fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
body {
  background-image: url('galaxy_background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #000;
  overflow: hidden;
}
/* Canvas stack */
#clouds, #stars{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
#clouds{ z-index:0; }
#stars { z-index:1; }

/* Centered logo */
.logo{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(52vw,900px);
  height:auto;
  z-index:2;
  pointer-events:none;
}

/* Countdown */
#countdown{
  position:fixed;
  top:10px;
  left:10px;
  z-index:3;
  font-family:"Courier New", monospace;
  font-size:.95rem;
  color:var(--sw-yellow);
  background:rgba(0,0,0,.45);
  padding:4px 8px;
  border-radius:4px;
  letter-spacing:.02em;
}

/* Music button */
#music-toggle{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:3;
  padding:10px 16px;
  font-size:1rem;
  background:#000;
  color:var(--sw-yellow);
  border:2px solid var(--sw-yellow);
  border-radius:10px;
  font-family:'Arial Black', Gadget, sans-serif;
  text-shadow:0 0 5px var(--sw-yellow);
  cursor:pointer;
}
#music-toggle:hover{ background:#111; }

/* Info button + panel */
#info-btn{
  position:fixed;
  left:16px;
  bottom:70px; /* clears the footer */
  width:36px;
  height:36px;
  z-index:4;
  border-radius:50%;
  border:2px solid var(--sw-yellow);
  background:#000;
  color:var(--sw-yellow);
  font-size:1rem;
  text-shadow:0 0 5px var(--sw-yellow);
  cursor:pointer;
}

#info-panel{
  position:fixed;
  left:16px;
  bottom:16px;
  max-width:min(460px, 90vw);
  transform:translateY(110%);
  transition:transform .22s ease-out;
  z-index:4;
  pointer-events:none;
}
#info-panel.open{
  transform:translateY(0);
  pointer-events:auto;
}
#info-panel .info-content{
  background:rgba(0,0,0,.85);
  border:2px solid var(--sw-yellow);
  border-radius:10px;
  padding:12px 12px 10px;
  color:var(--sw-yellow);
  font-family:"Courier New", monospace;
  box-shadow:0 8px 24px rgba(0,0,0,.6);
}
.info-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:4px;
}
#info-title{ font-size:1rem; letter-spacing:.02em; }
#info-close{
  background:transparent; border:0; color:var(--sw-yellow);
  font-size:1rem; cursor:pointer;
}
#info-text{ margin:6px 0 10px; line-height:1.35; }
.info-actions{ display:flex; justify-content:flex-end; }
#info-next{
  background:#000; color:var(--sw-yellow);
  border:2px solid var(--sw-yellow); border-radius:8px;
  padding:6px 10px; cursor:pointer;
  font-family:'Arial Black', Gadget, sans-serif;
  text-shadow:0 0 5px var(--sw-yellow);
}
#info-next:hover, #info-btn:hover{ background:#111; }

/* Footer */
footer{
  position:fixed;
  bottom:0; left:0; right:0;
  text-align:center;
  font-size:.8rem;
  color:var(--sw-yellow);
  background:rgba(0,0,0,.25);
  padding:5px 0;
  z-index:3;
}

/* Small screens */
@media (max-width: 560px){
  .logo{ width:min(78vw,700px); }
  #info-btn{ bottom:78px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  #clouds, #stars{ animation:none; }
}
