/* ====== GLOBAL ====== */

:root {
  --accent: #6fa8ff;
  --accent-soft: #9dbfff;
  --accent-strong: #4b78ff;
  --text: #e6ecf8;
  --bg-desktop: #0a1018;
  --bg-window: #c3cadb;
  --bg-window-dark: #111316;
  --bg-header: #1d2330;
  --bg-card: #181c24;
  --border-strong: #4a5fa5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #1b2233 0, #05070b 60%);
  color: var(--text);
  font-family: "Verdana", "Arial", sans-serif;
  line-height: 1.5;
  cursor: default;
}

/* Retro cursors (replace URLs with .cur/.ani files if you have them) */
/* body { cursor: url("cursors/arrow.cur"), default; } */
a,
button,
.cta-button {
  cursor: pointer;
}

.content p,
.content span,
.content li {
  cursor: text;
}

/* ====== DESKTOP BACKGROUND ====== */

.desktop {
  min-height: 100vh;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== WINDOW (WIN95-STYLE SHELL) ====== */

.window {
  width: 100%;
  max-width: 960px;
  background: var(--bg-window);
  border: 2px solid #000000;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(60, 90, 160, 0.8);
  display: flex;
  flex-direction: column;
}

/* Titlebar */

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #004e98, #3b78c8);
  color: #ffffff;
  padding: 4px 8px;
  border-bottom: 2px solid #000000;
}

.window-title {
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 16px;
  background: #c3cadb;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #4b4b4b;
  border-bottom: 2px solid #4b4b4b;
  font-size: 10px;
  color: #000000;
}

/* Scanline toggle button styled like a toolbar button */

.scanline-toggle {
  font-size: 10px;
  padding: 1px 6px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #4b4b4b;
  border-bottom: 2px solid #4b4b4b;
  background: #dce2f2;
  color: #000000;
}

/* ====== BBS-STYLE NAV BAR ====== */

.nav-bbs {
  background: #1d2330;
  color: #a5b0d8;
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-bottom: 2px solid #000000;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-bbs .bbs-label {
  margin-right: 12px;
  color: #f6f7ff;
}

.nav-bbs a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: bold;
}

.nav-bbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.nav-bbs .bbs-sep {
  margin: 0 6px;
  color: #6a7399;
}

/* ====== WINDOW BODY ====== */

.window-body {
  padding: 10px;
  background: #808aa0;
  background-image: linear-gradient(135deg, #7a8498 0, #8d95aa 50%, #7d8598 100%);
}

/* ====== CRT SHELL ====== */

.crt-shell {
  background: radial-gradient(circle at top, #3b4252 0, #101320 50%, #05060a 100%);
  padding: 14px 12px 18px 12px;
  border-radius: 14px;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(0, 0, 0, 0.9);
  border: 2px solid #000000;
}

/* Status bar above screen */

.crt-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #c9d6ff;
  margin-bottom: 6px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-led {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #6fffba 0, #0a8f5a 60%, #00281a 100%);
  box-shadow: 0 0 6px rgba(144, 255, 210, 0.8);
}

.status-text {
  letter-spacing: 0.08em;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.accent-gif {
  width: 24px;
  height: 12px;
  image-rendering: pixelated;
}

/* ====== CRT SCREEN ====== */

.crt-screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-window-dark);
  padding: 10px 6px 10px 6px;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(83, 121, 255, 0.7);
  transform: perspective(900px) translateZ(0);
}

/* CRT glass vignette / curvature */

.crt-screen::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0, rgba(0, 0, 0, 0.55) 80%),
    linear-gradient(to top, rgba(255, 255, 255, 0.08), transparent 45%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
}

/* CRT scanlines */

.crt-screen::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.36) 0px,
    rgba(0, 0, 0, 0.36) 1px,
    transparent 2px,
    transparent 3px
  );
  opacity: 0.35;
}

/* Disable scanlines when body has .no-scanlines */

body.no-scanlines .crt-screen::after {
  opacity: 0;
}

/* ====== MARQUEE WRAPPER ====== */

.marquee-wrapper {
  margin: 4px auto 8px auto;
  max-width: 820px;
  font-size: 11px;
  color: var(--accent-soft);
}

.marquee-wrapper marquee {
  width: 100%;
}

/* ====== PAGE WRAPPER / MAIN CONTENT ====== */

.page-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border: 3px double var(--accent);
  background-color: #111316;
  padding-bottom: 4px;
}

/* HEADER INSIDE CRT */

.header {
  text-align: center;
  padding: 14px 10px;
  background: var(--bg-header);
  border-bottom: 2px solid var(--accent);
}

.logo-text {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #bcd9ff;
  text-shadow: 0 0 6px #8bb6ff;
}

.subtitle {
  font-size: 12px;
  color: #a5b0d8;
  margin-top: 4px;
}

/* CONTENT */

.content {
  padding: 18px 20px 20px 20px;
  font-size: 14px;
  color: var(--text);
}

/* HEADERS */

h2 {
  font-size: 17px;
  color: #d2e4ff;
  text-transform: uppercase;
  border-bottom: 1px dotted #4a5fa5;
  padding-bottom: 4px;
  margin-top: 24px;
}

/* STORY DATE */

.story-date {
  font-size: 12px;
  color: #a2c8ff;
  font-weight: bold;
  margin-top: 4px;
}

/* SECTION SEPARATOR */

.section-separator {
  text-align: center;
  color: #9dbeff;
  margin: 32px 0 10px 0;
  font-family: monospace;
  font-size: 12px;
  opacity: 0.6;
}

/* LINKS INSIDE CONTENT */

.content a {
  color: #77b5ff;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
  color: #c7dcff;
}

/* CTA BOX */

.cta-box {
  border: 2px solid var(--accent-soft);
  background: #1a212f;
  padding: 14px;
  margin: 20px 0;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(140, 170, 255, 0.15);
}

.cta-title {
  font-size: 16px;
  font-weight: bold;
  color: #d7e6ff;
  text-transform: uppercase;
}

.cta-subtext {
  font-size: 12px;
  margin-top: 4px;
  color: #b7c4eb;
}

/* CTA BUTTONS */

.cta-buttons table {
  margin: 10px auto 0 auto;
}

.cta-button {
  background: #2b3242;
  border: 2px outset var(--accent-soft);
  padding: 7px 16px;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  color: #c8dbff;
  display: inline-block;
  white-space: nowrap;
}

.cta-button:hover {
  background: #3b4561;
}

/* WARNING BOX */

.warning-box {
  border: 1px solid #ff6b6b;
  background: #351c1c;
  padding: 8px;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
  color: #ffb5b5;
}

/* FOOTER */

.footer {
  text-align: center;
  font-size: 11px;
  color: #9aa7d8;
  padding: 10px;
  border-top: 1px solid #4a5fa5;
  background: #171c28;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 768px) {
  .desktop {
    padding: 8px;
  }

  .window {
    max-width: 100%;
  }

  .window-body {
    padding: 6px;
  }

  .crt-shell {
    padding: 10px 8px 12px 8px;
    border-radius: 10px;
  }

  .crt-screen {
    border-radius: 10px;
    padding: 8px 4px 8px 4px;
  }

  .page-wrapper {
    border-width: 2px;
  }

  .content {
    padding: 14px 12px 16px 12px;
    font-size: 13px;
  }

  .logo-text {
    font-size: 22px;
  }

  .window-title {
    max-width: 60%;
  }

  .nav-bbs {
    font-size: 10px;
  }

  .accent-gif {
    width: 20px;
    height: 10px;
  }
}

@media (max-width: 768px) {
  .cta-buttons table {
    width: 100%;
    table-layout: fixed;
  }

  .cta-buttons td {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }

  .cta-button {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    white-space: normal; /* allow wrapping */
  }
}

/* ===========================
   TEAM SECTION (CRT STYLE)
   =========================== */

.team-section {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
  flex-wrap: wrap;
}

.team-member {
  text-align: center;
  max-width: 260px;
}

/* CRT-style photo frame */
.team-crt-frame {
  position: relative;
  background: #0b0e13;
  padding: 10px;
  border-radius: 14px;
  border: 2px solid #000;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(70, 110, 255, 0.55);
  overflow: hidden;
}

.team-crt-frame img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Glass vignette */
.team-crt-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center,
      rgba(255,255,255,0.06) 0%,
      rgba(0,0,0,0.55) 85%);
  mix-blend-mode: soft-light;
}

/* Scanlines */
.team-crt-scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.28) 0px,
    rgba(0,0,0,0.28) 1px,
    transparent 2px,
    transparent 3px
  );
  opacity: 0.35;
}

/* Labels under each frame */
.team-label {
  margin-top: 10px;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}

.team-role {
  color: #9fc4ff;
  font-size: 11px;
  text-transform: uppercase;
}

.team-name {
  color: #dfe9ff;
  font-size: 14px;
  font-weight: bold;
  margin-top: 2px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .team-section {
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    max-width: 70%;
  }

  .team-role {
    font-size: 10px;
  }

  .team-name {
    font-size: 13px;
  }
}

/* Force all team images to same size */
.team-crt-frame {
  width: 240px;          /* fixed width */
  height: 300px;         /* fixed height */
  padding: 10px;
}

.team-crt-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* crops to fit nicely */
  border-radius: 10px;
  display: block;
}