:root{
  --bnb-yellow:#F3BA2F;
  --bg-url: url("station_on.png");
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:#000;
  overflow:hidden;
  color:#fff;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* Full viewport blurred bg */
#root{ position:fixed; inset:0; overflow:hidden; }
#root::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  background: var(--bg-url) center / cover no-repeat;
  filter: blur(24px) brightness(0.55) saturate(1.08);
  transform: scale(1.12);
  pointer-events:none;
}

/* Stage */
.stage{ position:absolute; z-index:2; }

/* Image stack */
#stationPicture{ position:absolute; inset:0; z-index:0; pointer-events:none; }

/* Base + overlays sized exactly like original */
#station,
#stationOverlay,
#rewardsOverlay{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: fill; 
  pointer-events:none;
}

#station{ z-index:0; }
#stationOverlay{
  z-index:2;
  opacity:0;
  transition: opacity 0.25s ease-in-out;
  background: transparent;
  mix-blend-mode: normal;
}

/* Rewards on top but below modals */
#rewardsOverlay{
  z-index: 15000;
  pointer-events: none;
}

/* Hotspots */
.hotspot{
  position:absolute;
  z-index:14999;
  pointer-events:auto;
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  will-change: transform, left, top, width, height;
}

/* Modals */
.modal{ position:fixed; inset:0; z-index: 20000; display:none; }
.modal[aria-hidden="false"]{ display:block; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.modal-card{
  position:absolute; 
  left:50%; 
  top:50%; 
  transform:translate(-50%, -50%);
  background:#0b0b0b; 
  border:1px solid #222; 
  border-radius:12px; 
  color:#fff;
  min-width:min(92vw,460px);
  max-width:520px;
  padding:26px; 
  box-shadow:0 20px 60px rgba(0,0,0,.6);
}
.modal-card h2{ margin:0 0 10px; font-size:18px; color:var(--bnb-yellow); }
.modal-card code{
  display:block; 
  background:#111; 
  border:1px solid #1f1f1f; 
  padding:10px; 
  border-radius:8px; 
  font-size:14px; 
  word-break:break-all;
}
.modal-actions{ display:flex; gap:10px; margin-top:14px; }
.modal-actions button{
  background:var(--bnb-yellow); 
  color:#000; 
  border:0; 
  border-radius:10px;
  padding:10px 14px; 
  font-weight:800; 
  letter-spacing:.04em; 
  cursor:pointer;
}
.modal-actions button[data-close]{ 
  background:#1c1c1c; 
  color:#eee; 
  border:1px solid #2a2a2a; 
}

/* ✅ Links grid — 2 buttons per row */
.links-grid{ 
  display:grid; 
  grid-template-columns:repeat(2,minmax(0,1fr)); 
  gap:12px; 
  margin-top:12px; 
}
.link-btn{ 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  text-decoration:none; 
  border-radius:10px; 
  padding:12px 10px; 
  background:var(--bnb-yellow); 
  color:#000; 
  font-weight:800; 
  letter-spacing:.04em; 
  text-align:center; 
  white-space:normal; 
  line-height:1.3;
}

/* Tokenomics table */
.tok-table{ 
  width:100%; 
  border-collapse:separate; 
  border-spacing:0 8px; 
  margin-top:6px; 
}
.tok-table th,.tok-table td{ 
  padding:10px; 
  border:1px solid #1f1f1f; 
  background:#111; 
}
.tok-table th{ 
  color:#ddd; 
  text-align:left; 
  width:38%; 
}
.tok-table td{ 
  color:#fff; 
}

/* Mobile */
@supports (height: 100dvh) { #root { height: 100dvh; } }
#root { height: 100vh; }

@media (max-width: 640px){
  .modal-card{ 
    max-height: 90dvh; 
    overflow:auto; 
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0)); 
    min-width:min(92vw,360px);
  }
  .link-btn {
    font-size: 0.85rem;
    padding: 0.6em 0.8em;
  }
}

/* Focus rings */
.hotspot:focus-visible, .modal-actions button:focus-visible, .link-btn:focus-visible{
  outline:2px solid var(--bnb-yellow); outline-offset:2px; border-radius:8px;
}

/* About overlay — above everything but non-blocking */
#aboutOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 20000;
  pointer-events: none;
}

/* ✅ Removed debug box for About hotspot */
#hs-about {
  background: transparent;
  outline: none;
}

/* 📱 Hide About overlay on mobile only */
@media (max-width: 768px) {
  #aboutOverlay {
    display: none;
  }
}

/* Ensure spacing inside modals */
.modal-card p { 
  margin: 1rem 0; 
  line-height: 1.5;
}
.modal-card p:first-child { margin-top: 0; }
.modal-card p:last-child { margin-bottom: 0; }
.modal-card ul { 
  margin: 0.75rem 0 0.75rem 1.25rem; 
}
.modal-card li { 
  margin: 0.25rem 0; 
}
