/* ==========================================================================
   Irem Fan Site — css/style.css
   Neon organic dark theme — R-Type plasma beam meets Bydo biomechanics.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@700&family=Inter:wght@400;600&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #0a1406;
  --bg-card:       #0f1c09;
  --bg-alt:        #141f0c;
  --text:          #d4e8c2;
  --text-dim:      #7a9e6a;
  --accent:        #39ff14;
  --accent-dim:    #28cc0f;
  --accent-dark:   #1a8a0a;
  --border:        #1e3010;
  --border-accent: #39ff14;

  --font-heading:  'Syncopate', 'Arial Narrow', sans-serif;
  --font-body:     'Inter', 'Arial', sans-serif;

  --nav-height:    64px;
  --container-max: 1200px;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes bydo-pulse {
  0%, 100% { box-shadow: 0 0 6px #39ff14, 0 0 12px #39ff1440; }
  50%       { box-shadow: 0 0 18px #39ff14, 0 0 36px #39ff1466; }
}

@keyframes bydo-descend {
  0%   { transform: translate(-50%, -120%) rotate(-15deg) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  40%  { transform: translate(-30%, 20vh) rotate(5deg) scale(1); }
  70%  { transform: translate(-60%, 50vh) rotate(-8deg) scale(1.1); opacity: 1; }
  85%  { opacity: 0.7; }
  100% { transform: translate(-40%, 110vh) rotate(20deg) scale(0.9); opacity: 0; }
}

@keyframes neon-flicker {
  0%, 95%, 100% { opacity: 1; }
  96%, 99%      { opacity: 0.6; }
}

@keyframes scan-line {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* --------------------------------------------------------------------------
   Bydo Easter Egg
   -------------------------------------------------------------------------- */
.bydo-descend {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 9999;
  pointer-events: none;
  animation: bydo-descend 4s ease-in-out forwards;
}

.bydo-sprite {
  width: 120px;
  height: 100px;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, #39ff14 0%, #1a8a0a 40%, #0a4406 80%, transparent 100%);
  border-radius: 60% 40% 50% 50% / 50% 40% 60% 50%;
  box-shadow: 0 0 30px #39ff14, 0 0 60px #39ff1480, inset 0 0 20px #0a4406;
  position: relative;
}

.bydo-sprite::before {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 40px;
  background: radial-gradient(ellipse at 50% 0%, #39ff1466, transparent 70%);
  border-radius: 50%;
}

.bydo-sprite::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 20%;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #39ff14, 30px 5px 0 8px #39ff1480;
}

/* --------------------------------------------------------------------------
   Bydo mask reveal
   -------------------------------------------------------------------------- */
.bydo-reveal {
  mask-image: url('../images/bydo-mask.svg');
  mask-size: cover;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('../images/bydo-mask.svg');
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   Accent border pulse
   -------------------------------------------------------------------------- */
.accent-border {
  border: 1px solid var(--accent);
  animation: bydo-pulse 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

body.lightbox-open { overflow: hidden; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: var(--accent-dim);
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
}

ul, ol { list-style: none; }

hr {
  border: none;
  border-top: 1px solid var(--border-accent);
  opacity: 0.4;
  margin: 2.5rem 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.7rem); }
h4 { font-size: 1rem; letter-spacing: 0.08em; }

p + p { margin-top: 0.9em; }
strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-section {
  padding: 4rem 0;
}

.site-section + .site-section {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.8rem;
  animation: bydo-pulse 3s ease-in-out infinite;
}

.section-title {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 600;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 20, 6, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-accent);
  animation: bydo-pulse 3s ease-in-out infinite;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  animation: neon-flicker 8s ease-in-out infinite;
}

.nav-brand:hover, .nav-brand:focus {
  color: var(--accent);
  outline: none;
}

.nav-logo {
  height: 28px;
  width: auto;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(60deg);
}

.nav-menu {
  display: flex;
  gap: 0.1rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0.4rem 0.7rem;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover, .nav-link:focus {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
  animation: bydo-pulse 3s ease-in-out infinite;
}

.nav-link--active {
  color: var(--accent);
  border-color: var(--accent);
  animation: bydo-pulse 3s ease-in-out infinite;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--accent);
  padding: 0.5rem;
  cursor: pointer;
  margin-left: auto;
}

.burger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 20, 6, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--accent);
    margin-left: 0;
  }

  .nav-menu--open { display: flex; }

  .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   Hero (index.html)
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.5);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(57,255,20,0.08) 0%, transparent 60%),
              linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1rem;
  animation: neon-flicker 6s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: var(--accent);
  text-shadow: 0 0 20px #39ff1466, 0 0 60px #39ff1433;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(to bottom, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border-accent);
  padding: 3rem 0 2rem;
  animation: bydo-pulse 4s ease-in-out infinite;
}

.page-hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--accent);
  text-shadow: 0 0 15px #39ff1466;
  margin-bottom: 0.8rem;
}

.page-hero__subtitle {
  color: var(--text-dim);
  max-width: 700px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Screenshot strip
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.screenshot-strip figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.screenshot-strip figure:hover {
  border-color: var(--accent);
}

.screenshot-strip img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.screenshot-strip figure:hover img {
  transform: scale(1.04);
}

.screenshot-strip figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.6rem;
  background: rgba(10,20,6,0.85);
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .screenshot-strip { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Key games grid
   -------------------------------------------------------------------------- */
.key-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  animation: bydo-pulse 3s ease-in-out infinite;
}

.game-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.game-card__body {
  padding: 0.75rem;
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.game-card__meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Featured callout (R-Type banner on index)
   -------------------------------------------------------------------------- */
.featured-callout {
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  padding: 2rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: bydo-pulse 3s ease-in-out infinite;
}

.featured-callout img {
  width: 160px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.featured-callout h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.featured-callout p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: background 0.2s, color 0.2s;
}

.btn:hover, .btn:focus {
  background: var(--accent);
  color: #000;
  outline: none;
}

@media (max-width: 600px) {
  .featured-callout { flex-direction: column; }
  .featured-callout img { width: 100%; }
}

/* --------------------------------------------------------------------------
   Trivia callout
   -------------------------------------------------------------------------- */
.trivia {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  animation: bydo-pulse 3s ease-in-out infinite;
}

.trivia h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.trivia p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Dev quote
   -------------------------------------------------------------------------- */
.dev-quote {
  border-left: 3px solid var(--accent-dark);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  font-style: italic;
}

.dev-quote p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.dev-quote cite {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: normal;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   YouTube embeds
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.video-card__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Lite YouTube facade - clickable poster that defers iframe load until play. */
.video-card__embed.lite-youtube {
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.lite-youtube__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lite-youtube__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s;
  z-index: 2;
}
.lite-youtube__play:hover,
.lite-youtube__play:focus-visible {
  background: var(--accent);
  color: #0a1406;
  transform: scale(1.06);
  outline: none;
}
.lite-youtube__play-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 4px;
}
.lite-youtube--activated {
  cursor: default;
  background-image: none !important;
}

.video-card__info {
  padding: 1rem;
}

.video-card__title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.video-card__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.video-category {
  margin-bottom: 3rem;
}

.video-category h3 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   History timeline
   -------------------------------------------------------------------------- */
.history-body {
  max-width: 820px;
}

.era-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.era-section:last-child { border-bottom: none; }

.era-section h3 {
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.era-image {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.era-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.era-image figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   Games catalogue table
   -------------------------------------------------------------------------- */
.games-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.games-table-wrap {
  overflow-x: auto;
}

.games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.games-table th {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--accent);
  white-space: nowrap;
}

.games-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.games-table tr:hover td {
  background: var(--bg-alt);
}

.games-table .thumb {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.games-table .title-cell strong {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
}

.games-table .title-cell span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   People page
   -------------------------------------------------------------------------- */
.person-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}

.person-section:last-child { border-bottom: none; }

.person-portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border-accent);
  animation: bydo-pulse 4s ease-in-out infinite;
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: center;
  padding: 1rem;
  animation: bydo-pulse 4s ease-in-out infinite;
}

.person-body h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.person-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

.person-screenshots {
  display: flex;
  gap: 0.75rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.person-screenshots img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .person-section { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Flagship (R-Type deep dive)
   -------------------------------------------------------------------------- */
.flagship-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.flagship-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) saturate(0.6);
}

.flagship-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg) 100%);
}

.flagship-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.flagship-hero-content h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  color: var(--accent);
  text-shadow: 0 0 30px #39ff1466;
}

.flagship-body {
  max-width: 860px;
}

.flagship-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.flagship-section:last-child { border-bottom: none; }

.flagship-section h2 {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.flagship-image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.flagship-image-row figure {
  margin: 0;
}

.flagship-image-row img {
  width: 100%;
  border: 1px solid var(--border);
}

.flagship-image-row figcaption {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.4rem 0.1rem;
}

.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.version-table th {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-align: left;
  color: var(--accent);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--accent);
}

.version-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.version-table tr:hover td { background: var(--bg-alt); }

/* --------------------------------------------------------------------------
   Arcade page
   -------------------------------------------------------------------------- */
.hardware-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.hardware-section:last-child { border-bottom: none; }

.hardware-section h2 {
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hardware-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.hardware-table th {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-align: left;
  color: var(--accent);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--accent);
}

.hardware-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.hardware-table tr:hover td { background: var(--bg-alt); }

.arcade-image {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.arcade-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: var(--bg-card);
}

.arcade-image figcaption {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.4rem 0.75rem;
  background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   Gallery page
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery-filter-btn {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  background: var(--bg-card);
}

.gallery-item:hover {
  border-color: var(--accent);
  animation: bydo-pulse 3s ease-in-out infinite;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.6rem;
  background: rgba(10,20,6,0.88);
  font-size: 0.72rem;
  color: var(--text-dim);
  transform: translateY(100%);
  transition: transform 0.2s;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--accent);
}

.lightbox-caption {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(10,20,6,0.8);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  transition: background 0.2s;
}

.lightbox-close { top: -2.5rem; right: 0; }
.lightbox-prev  { left: -3.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: -3.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  color: #000;
}

/* --------------------------------------------------------------------------
   Resources page
   -------------------------------------------------------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.resources-category h3 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border-bottom: 1px solid var(--border-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.2rem;
}

.resources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.resources-list li {
  padding-left: 0;
}

.resources-list a {
  color: var(--text-dim);
  font-size: 0.9rem;
  border-bottom: 1px dotted var(--border);
  padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s;
  display: block;
}

.resources-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.resources-list .link-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Placeholder for missing images
   -------------------------------------------------------------------------- */
.placeholder {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: center;
  padding: 2rem;
  min-height: 120px;
}

/* --------------------------------------------------------------------------
   Bydo reveal panel (mask-image applied on 2+ panels)
   -------------------------------------------------------------------------- */
.bydo-reveal-panel {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.bydo-reveal-panel .bydo-reveal {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-accent { color: var(--accent); }
.text-dim    { color: var(--text-dim); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: var(--text-dim);
}

footer a:hover {
  color: var(--accent);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}
