:root
{
  --max: 1200px;

  --bg: #000;            /* page background */
  --text: #e9e9e9;       /* body text */
  --muted: #a7a7a7;      /* secondary text */

  --line: #1c2330;       /* subtle borders */
  --panel: #0b0f1715;    /* panel fill base */

  --accent: #00c8ff;     /* neon cyan */
  --accent-2: #0078ff;   /* deep blue helper */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: transparent; /* let the video show through */
  color: var(--text);
  font-family: system-ui, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Gradient layer has been moved to background.css, so no extra work here */
/* body::after { } */

main {
  padding: 2rem 0 3rem;
}

a {
  color: #5bbdff;
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}

/* ===== GAME AREA SIZING ===== */

#game {
  position: relative;
  z-index: 50;
}

/* Gives the panel some height even before the iframe loads */
#game .game-frame {
  min-height: 70vh;
}

/* Legacy: if an iframe ends up directly inside game-frame */
#game .game-frame iframe {
  display: block;
  width: 100%;
  height: 70vh;
}

/* Slot that the dynamic iframe gets inserted into */
#game-slot {
  width: 100%;
  aspect-ratio: 16 / 9;    /* Or set a fixed height if you prefer */
  background: #000;        /* fallback while loading */
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* Iframe inside slot */
#game-slot > iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

/* The framed area that visually holds the game */
.game-frame {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 60vh, 820px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

/* Dynamic iframe (when you give it this id) */
#gameIframe {
  position: block;
  z-index: 1001;
  display: block;
  width: 100%;
  height: 70vh;
  border: 0;
}

/* Layers for animated logo / extra FX (kept separate from game-frame) */
.logo-layer,
.fx-layer {
  position: absolute;
  z-index: 10;          /* lower than the game iframe */
  pointer-events: none; /* so they don’t block clicks */
}

/* ===== ABOUT GRID / CARDS ===== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

/* About cards now only handle layout + typography.
   Glow/borders are handled by fx- classes in effects.css. */
.about-card {
  background: rgba(10, 25, 35, 0.48);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  color: #eaf9ff;
  border: none;
  box-shadow: none;
}

.about-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.about-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* no hover glow here – use fx-glow / fx-glow-hover etc. */

/* Keep hidden blocks out of layout */
.about-hidden {
  display: none;
}

/* =========================================================
   ABOUT DIALOG – single card, centered, no inner scrollbars
   ========================================================= */

/* Full-screen overlay that sits on top of the page */
.about-overlay {
 position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

/* When open */
.about-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Dark, slightly glowing background that blocks interaction
   with the page behind the dialog */
.about-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 255, .16), transparent 55%),
    rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
}

/* The outer shell of the dialog (no visual styling here) */
.about-dialog {
  position: relative;
  max-width: min(900px, 90vw);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  z-index: 1;
}

/* The actual glowing card.
   In your HTML give this div the fx classes:
   class="about-dialog-inner fx-layer fx-soft fx-rim fx-glow" */
.about-dialog-inner {
  position: relative;
  border-radius: 18px;
  padding: 0;              /* 🔴 no padding here = no gaps around header */
  overflow: hidden;        /* lets the rounded corners clip header/bg */
}

/* Header bar: title on the left, red close button on the right */
.about-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;


  padding: 0.75rem 1.25rem;


  background: #000000;
}

/* Title text */
.about-dialog-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

/* Main article text */
.about-dialog-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e4f3ff;
  justify: left;
  padding: 1.1rem 1.1rem 1rem;
  font-size: 1.2rem;
}

/* Optional: little bit of responsiveness */
@media (max-width: 768px) {
  .about-dialog-inner {
    padding: 1.25rem 1.25rem 1.75rem;
    border-radius: 20px;
  }

}