:root {
  /* Backgrounds */
  --sct-bg-dark: #000000;
  --sct-landing-bg: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
  --sct-panel-bg: #020617;
  --sct-game-panel-bg: #0f0f14;

  /* Text */
  /* --sct-text-main: #f9fafb; */
  --sct-text-main: #d6d9ff;
  --sct-text-sub: #9ca3af;
  --sct-text-accent: #dce6f5;
  --sct-text-accent-hover: #ed09ed;

  /* Borders */
  --sct-border-soft: rgba(237, 9, 237, 0.45);
  --sct-border-game: rgba(237, 9, 237, 0.50);

  /* Glows */
  --sct-glow-pink: rgba(236, 72, 153, 0.35);
  --sct-glow-blue: rgba(59, 130, 246, 0.25);

  /* Typography */
  --sct-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Frame sizing */
  --sct-frame-min-height: auto;          /* default: content-sized */
  --sct-frame-min-height-tall: 60vh;     /* tall panels */

}

.sct-page {
  margin: 0;
  background: var(--sct-bg-dark);
  color: var(--sct-text-main);
  font-family: var(--sct-font-main);
}

.sct-landing-page {
  background: var(--sct-landing-bg);
}

/* Full-page 3-column grid (left ad col / center / right ad col) */
.sct-grid {
  min-height: 100vh;
  display: grid;

  /* Center column is fixed-width; sides are flexible */
  grid-template-columns: 1fr minmax(0, 900px) 1fr;

  /* No accidental spacing; we can add later if needed */
  gap: 0;
}

/* Side columns reserved for ads later (empty now) */
.sct-side {
  background:
    radial-gradient(circle at 20% 10%, rgba(236,72,153,0.06), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(59,130,246,0.05), transparent 45%);
}

/* Center column: 3 rows (header / frame / footer) */
.sct-center {
  display: grid;
  grid-template-rows: auto 1fr auto;

  /* Inner padding so the frame doesn’t touch edges */
  padding: 1.5rem;
  box-sizing: border-box;

  /* NEW: consistent vertical spacing between header / frame / footer */
  gap: 1.25rem;
}

/* The “frame wrapper” ensures consistent width and prevents shrink-to-fit */
.sct-frame {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  /* NEW: vertically center the frame in the middle (1fr) row */
  align-self: center;
}

.sct-spacer {
  height: 1.25rem;
}

/* Shared “nav strip” styling */
.sct-header,
.sct-footer {
  display: block;
  width: 100%;
  padding: 1rem 0;
  font-size: 0.9rem;

  /* Use colour for subtlety, NOT opacity (opacity darkens everything inside) */
  color: var(--sct-text-sub);
}

/* Alignment difference (only difference) */
.sct-header { text-align: left; }
.sct-footer { text-align: center; }

.sct-sound-toggle {
  float: right;
  margin-left: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

/* Links in header/footer nav */
.sct-header a,
.sct-header a:visited,
.sct-footer a,
.sct-footer a:visited {
  color: var(--sct-text-accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.sct-header a:hover,
.sct-footer a:hover {
  color: var(--sct-text-accent-hover);
  opacity: 1;
}


/* Separator dot */
.sct-header .sep,
.sct-footer .sep {
  margin: 0 8px;
  opacity: 0.6;
}

.sct-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  background: linear-gradient(145deg, #020617, #020617);
  border-radius: 1.5rem;
  padding: 0.6rem 0.6rem 0.7rem;


  border: 1px solid var(--sct-border-soft);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.7);

  position: relative;
  overflow: hidden;
}

/* Decorative glow behind container */
.sct-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(232, 121, 249, 0.20), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

/* Content sits above glow */
.sct-content {
  position: relative;
  z-index: 1;

  /* Critical: prevents long text from forcing horizontal growth */
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sct-article {
  max-width: 100ch;
  margin: 0.75rem auto 0;
  line-height: 1.7;
  padding-bottom: 3rem;
}

.sct-article h2 {
  margin-top: 3rem;
}

.sct-article p,
.sct-article ul {
  margin-top: 0.9rem;
}

.sct-content a,
.sct-content a:visited,
.sct-article a,
.sct-article a:visited,
.sct-infotext a,
.sct-infotext a:visited,
.sct-related a,
.sct-related a:visited,
#more-silly-things a,
#more-silly-things a:visited,
#blog-link a,
#blog-link a:visited,
.sct-toy-link,
.sct-toy-link:visited {
  color: var(--sct-text-accent);
  font-family: var(--sct-font-main);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.sct-content a:hover,
.sct-article a:hover,
.sct-infotext a:hover,
.sct-related a:hover,
.sct-related a:hover:visited,
#more-silly-things a:hover,
#more-silly-things a:hover:visited,
#blog-link a:hover,
#blog-link a:hover:visited,
.sct-toy-link:hover,
.sct-toy-link:hover:visited {
  color: var(--sct-text-accent-hover);
  text-decoration: underline;
  opacity: 1;
}

html, body,
button, summary, label, input {
  -webkit-tap-highlight-color: transparent;
}
