@font-face {
  font-family: "TVC";
  src: url("tvc.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "TVC", monospace;
  color: #eaf2ff;
  background:
    radial-gradient(circle at top, #0000ff 0%, #000092 40%, #060311 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.035) 0px,
      rgba(255,255,255,0.035) 1px,
      transparent 2px,
      transparent 4px
    );
}

/* ===================== HEADER ===================== */

header {
  text-align: center;
  padding: 1.5rem 1rem 1.5rem;
}

header h1 {
  margin: 0 0 1.2rem;
  font-size: 3.8rem;
  letter-spacing: 0.28em;
  color: #ff0000;
  text-shadow:
    6px 6px 0 #000000,
    0 0 12px rgba(120,200,255,0.8);
}

.subtitle-frame {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #39f, #6ff, #f6f);
  box-shadow: 0 0 18px rgba(120,200,255,0.9);
}

header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  color: #ffff00;
}

.gradient-frame {
    display: inline-block;
    position: relative;
    padding: 1.2rem 1.6rem 0.8rem 1.6rem; /* ettől nyúlik kicsit túl a keret */
    color: #ffff00;
}

    .gradient-frame::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient( 90deg, #920000 0%, #ffff00 20%, #920092 40%, #FF00FF 60%, #ffff00 80%, #920000 100% );
        box-shadow: 0 0 8px rgba(255,120,200,0.8);
    }

    .gradient-frame::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient( 90deg, #0000ff 0%, #00ffff 20%, #ff00ff 40%, #920092 60%, #00ffff 80%, #0000ff 100% );
        box-shadow: 0 0 6px rgba(0,255,200,0.7);
    }

/* ===================== MAIN LAYOUT ===================== */

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0rem 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 2.6rem;
  }
}

/* ===================== MENU CARDS (INDEX) ===================== */

.menu-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(50,40,100,0.95), rgba(10,8,30,0.98));
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow:
    inset 0 0 0 2px rgba(120,220,255,0.45),
    0 0 35px rgba(120,200,255,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  border: 2px solid rgba(146,0,146,1.0);
  pointer-events: none;
}

.menu-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    inset 0 0 0 2px rgba(180,240,255,0.85),
    0 0 55px rgba(160,220,255,0.9);
}

.menu-card img {
  width: 100%;
  border-radius: 14px;
  image-rendering: pixelated;
  display: block;
}

.menu-card span {
  display: block;
  margin-top: 1.2rem;
  text-align: center;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: #e9f3ff;
  text-shadow:
    0 0 6px rgba(120,200,255,0.9),
    0 0 14px rgba(200,120,255,0.7);
}

/* ===================== GAME LIST CARDS ===================== */

.game-card {
  position: relative;
  background: linear-gradient(180deg, rgba(50,40,100,0.95), rgba(10,8,30,0.98));
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow:
    inset 0 0 0 2px rgba(120,220,255,0.45),
    0 0 35px rgba(120,200,255,0.45);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  border: 2px solid rgba(146,0,146,1.0);
  pointer-events: none;
}

h3 {
  margin: 1rem 0 1rem;
  text-align: center;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(120,200,255,0.9);
}

.game-card img {
  width: 100%;
  border-radius: 14px;
  image-rendering: pixelated;
  display: block;
  margin-bottom: 1rem;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.0rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #ffff00;
  text-shadow: 0 0 8px rgba(255,217,102,0.7);
}

.meta span {
        display:;
        margin-top: 0rem;
        text-align: center;
        font-size: 0.85rem;
        letter-spacing: 0.15em;
        color: black;
    }

.badge {
    padding: 0.25rem 0.7rem 0rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    font-size: 1.0rem;
    vertical-align: middle;
}

.desc {
    font-size: 0.9rem;
    color: #00ffff;
    margin-top: 1rem;    
}

.links a {
  color: #ffff00;
  text-decoration: none;
  margin-right: 1rem;
  letter-spacing: 0.1em;
}

.back {
  display: inline-block;
  margin: 2rem 0 1rem 0;
  color: #ff00ff;
  text-decoration: none;
  letter-spacing: 0.15em;
}

/* ===================== CRT MODE ===================== */

body.crt {
  filter: contrast(1.05) brightness(1.05) saturate(1.1);
}

body.crt::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;

  /* scanlines */
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.25) 0px,
      rgba(0,0,0,0.25) 1px,
      rgba(0,0,0,0.05) 2px,
      rgba(0,0,0,0.05) 4px
    );
}

body.crt::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;

  /* vignette + RGB glow */
  background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,0.03) 0%,
      rgba(0,0,0,0.35) 70%
    );
  mix-blend-mode: overlay;
}

/* enyhe RGB szétcsúszás */
body.crt header,
body.crt main {
  text-shadow:
    1px 0 rgba(255,0,0,0.25),
   -1px 0 rgba(0,255,255,0.25);
}

/* ===== HISTORY PAGE ===== */

.history-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* Bevezető */
.history-intro .lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #e6faff;
    margin-bottom: 3rem;
}

/* Korszak blokk */
.history-era {
    margin-bottom: 3.5rem;
}

    .history-era h3 {
        margin-bottom: 1rem;
        font-size: 1.25rem;
        letter-spacing: 0.12em;
        color: #7fe7ff;
        text-shadow: 0 0 6px rgba(120,200,255,0.6);
    }

    .history-era p {
        margin-bottom: 1rem;
        line-height: 1.7;
        color: #d8f6ff;
    }

/* PDF linkek */
.pdf-links {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pdf-link {
    color: #ffe66d;
    text-decoration: none;
    position: relative;
    padding-left: 1.4rem;
}

    .pdf-link::before {
        content: "📄";
        position: absolute;
        left: 0;
    }

    .pdf-link:hover {
        text-decoration: underline;
        text-shadow: 0 0 6px rgba(255,230,120,0.6);
    }

/* Záró rész */
.history-outro {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-style: italic;
    color: #cdefff;
}