/* ===================================
   8-BIT AGE - RETRO GAMING MAGAZINE THEME
   Inspired by classic gaming magazines
   =================================== */

/* Import retro-style fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Orbitron:wght@400;700;900&family=Bebas+Neue&display=swap');

:root {
  /* Retro Gaming Magazine Color Palette */
  --primary-red: #ff0040;
  --primary-blue: #0066ff;
  --primary-yellow: #ffcc00;
  --primary-green: #00ff88;
  --dark-purple: #2a0845;
  --dark-blue: #0a1929;
  --neon-cyan: #00ffff;
  --neon-pink: #ff00ff;
  --paper-white: #fef9f3;
  --ink-black: #1a1a1a;
  --grid-gray: #333333;
}

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--dark-blue) 100%);
  background-attachment: fixed;
  margin: 0;
  padding: 20px 0;
  font-family: 'Arial', 'Verdana', sans-serif;
  font-size: 14px;
  color: var(--ink-black);
  position: relative;
}

/* Retro grid background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
  pointer-events: none;
  z-index: 1;
}

/* Main container with magazine page effect */
div.topdiv,
div.navigationdiv,
div.middlediv,
div.footerdiv,
div.signupdiv,
div.confirmdiv {
  background: var(--paper-white);
  margin: 0 auto 15px;
  width: 1400px;
  max-width: 99%;
  border: 4px solid var(--ink-black);
  box-shadow:
    0 0 0 2px var(--primary-yellow),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 100px rgba(255, 204, 0, 0.1);
  position: relative;
  z-index: 2;
}

/* Magazine masthead header */
div.topdiv {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper-white) 100%);
  border-top: 8px solid var(--primary-red);
  border-bottom: 4px solid var(--primary-blue);
  padding: 15px;
}

div.topdiv::before {
  content: 'ISSUE #001 • EST. 2005 • CLASSIC GAMING FOREVER';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-red);
  color: white;
  padding: 4px 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  border: 2px solid var(--ink-black);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

/* Navigation bar - magazine style tabs */
div.navigationdiv {
  background: var(--ink-black);
  border-top: none;
  margin-top: -15px;
  padding: 0;
  overflow: hidden;
}

td.topnavbarcell1 {
  height: 50px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
  border-top: 3px solid var(--primary-yellow);
  border-bottom: 3px solid var(--primary-red);
  width: 100%;
}

div.navigationdiv table {
  width: 100%;
}

td.topnavbarcell1 a {
  color: var(--neon-cyan);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 20px;
  display: inline-block;
  transition: all 0.3s;
  text-shadow: 0 0 10px var(--neon-cyan);
  letter-spacing: 1px;
}

td.topnavbarcell1 a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 20px var(--neon-pink), 0 0 30px var(--neon-pink);
  transform: scale(1.05);
  text-decoration: none;
}

/* Header container - flexbox layout */
.header-container {
  display: block;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  gap: 15px;
  width: 100%;
}

.logo-section {
  text-align: center;
}

#site-logo {
  max-width: 75%;
  height: auto;
  /*filter:
    drop-shadow(2px 2px 0 var(--grid-gray))
    drop-shadow(4px 4px 0 rgba(218, 218, 218, 0.4))
    brightness(1.1)
    contrast(1.2)
    saturate(1.3);
  transition: all 0.3s;*/
  /*image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;*/
}

#site-logo:hover {
  transform: scale(1.05);
  filter:
    /*drop-shadow(4px 4px 0 var(--primary-red))
    drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.5))
    brightness(1.2)
    contrast(1.3)
    saturate(1.4)*/
    hue-rotate(-5deg);
}

.auth-section-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-section-wrapper .auth-layout {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.auth-section-wrapper .auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Auth section styling */
.auth-section-wrapper form {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border: 3px solid var(--primary-blue);
  border-radius: 5px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.auth-section-wrapper a {
  color: var(--primary-red);
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  padding: 8px 15px;
  background: var(--primary-yellow);
  border: 2px solid var(--ink-black);
  display: inline-block;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.auth-section-wrapper a:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

a.a_logout {
  font-weight: bold;
  background: var(--primary-red);
  color: white !important;
}

/* Legacy table cell styles - kept for compatibility */
td.leftlogocell {
  padding: 10px;
  width: auto;
}

td.leftlogocell img {
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.3));
  transition: transform 0.3s;
}

td.leftlogocell img:hover {
  transform: scale(1.05) rotate(-2deg);
}

td.rightlogocell {
  padding: 10px 20px;
  text-align: right;
  vertical-align: middle;
}

td.rightlogocell form {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border: 3px solid var(--primary-blue);
  border-radius: 5px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

td.rightlogocell a {
  color: var(--primary-red);
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  padding: 8px 15px;
  background: var(--primary-yellow);
  border: 2px solid var(--ink-black);
  display: inline-block;
  margin-top: 5px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

td.rightlogocell a:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

/* Main content area */
div.middlediv {
  background: var(--paper-white);
  min-height: 500px;
  padding: 0;
}

div.middlediv > table {
  width: 100%;
}

/* Sidebar column - magazine sidebar style */
td.main_left_column {
  width: 300px;
  vertical-align: top;
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
  border-right: 4px solid var(--ink-black);
  padding: 5px;
  text-align: center;
}

td.main_left_column > table {
  width: 100%;
}

td.main_right_column {
  border-left: none;
  vertical-align: top;
  padding: 5px;
  background: var(--paper-white);
}

/* Make layout responsive */
@media screen and (max-width: 768px) {
  div.middlediv table,
  div.middlediv tbody,
  div.middlediv tr {
    display: block;
    width: 100%;
  }

  td.main_left_column,
  td.main_right_column {
    display: block;
    width: 100%;
    border: none;
    text-align: center;
  }

  td.main_left_column {
    border-bottom: 4px solid var(--ink-black);
    border-right: none;
  }

  /* Footer responsive */
  div.footerdiv table,
  div.footerdiv tbody,
  div.footerdiv tr {
    display: block;
    width: 100%;
  }

  td.footercell1,
  td.footercell2 {
    display: block;
    width: 100% !important;
    text-align: center;
    padding: 10px;
  }

  td.footercell2,
  td.footercell2 p {
    text-align: right;
  }
}

/* Section headers - magazine section style (sidebar only) */
td.gowheader,
td.top10header,
td.pollheader {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
  color: white;
  text-align: center;
  height: 40px;
  padding: 10px;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  position: relative;
  margin: 0 0 10px 0;
  border-bottom: 3px solid var(--primary-yellow);
  width: 100%;
  display: block;
  box-sizing: border-box;
}

td.gowheader::before,
td.top10header::before,
td.pollheader::before {
  content: '★';
  position: absolute;
  left: 10px;
  color: var(--primary-yellow);
  font-size: 24px;
}

td.gowheader::after,
td.top10header::after,
td.pollheader::after {
  content: '★';
  position: absolute;
  right: 10px;
  color: var(--primary-yellow);
  font-size: 24px;
}

/* Content page headers - Features, Mailbag, Reviews, etc. */
td.contentheader,
div.contentheader {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
  color: white;
  text-align: center;
  display: block;
  width: 100%;
  padding: 5px;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  border-bottom: 3px solid var(--primary-yellow);
  box-sizing: border-box;
}

td.contentheader_forgot_password,
td.contentheader_reset_password,
div.contentheader_forgot_password,
div.contentheader_reset_password {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
  color: white;
  text-align: center;
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  border-bottom: 3px solid var(--primary-yellow);
  box-sizing: border-box;
}

/* News header (for home page news) */
td.newsheader,
div.newsheader {
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-red) 100%);
  color: white;
  text-align: center;
  padding: 5px;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  margin: 0 0 0 0;
  border-bottom: 3px solid var(--primary-yellow);
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Content cells */
td.gowcell,
td.top10cell,
td.pollcell {
  padding: 20px;
  background: white;
  border-bottom: 2px dashed #ccc;
  width: 100%;
  display: block;
  box-sizing: border-box;
  text-align: center;
}

td.newscell,
div.newscell {
  padding: 20px;
  line-height: 1.8;
  background: white;
  display: block;
  width: 100%;
  min-height: 200px;
  box-sizing: border-box;
}

td.newscell_forgot_password,
td.newscell_reset_password,
div.newscell_forgot_password,
div.newscell_reset_password {
  padding: 20px;
  line-height: 1.8;
  background: white;
  width: 100%;
  display: block;
  min-height: 200px;
  box-sizing: border-box;
}

/* Game of the Week canvas/image */
td.gowcell img,
td.gowcell canvas {
  border: 4px solid var(--primary-yellow);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  width: 256px;
  height: 240px;
  display: inline-block;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

td.gowcell img:hover,
td.gowcell canvas:hover {
  transform: scale(1.05) rotate(2deg);
  cursor: pointer;
}

/* Canvas specific styling for retro feel */
#nes-canvas {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Top 10 Games list */
ol.gamelist {
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-black);
  padding-left: 30px;
  margin: 10px 0;
  text-align: left;
}

ol.gamelist li {
  margin: 8px 0;
  transition: all 0.3s;
  padding: 5px;
}

ol.gamelist li:hover {
  background: var(--primary-yellow);
  transform: translateX(5px);
  cursor: pointer;
}

ol.gamelist b li {
  color: var(--primary-red);
  font-size: 22px;
  background: rgba(255, 204, 0, 0.2);
  border-left: 4px solid var(--primary-red);
  padding-left: 10px;
}

/* Poll section */
td.pollcell {
  padding: 15px;
  text-align: left;
}

td.pollcell table {
  width: 100%;
}

td.pollcell input[type="radio"] {
  margin-right: 10px;
  transform: scale(1.3);
  cursor: pointer;
}

td.pollcell td {
  padding: 8px;
  font-family: 'VT323', monospace;
  font-size: 18px;
}

/* News/Article styling */
p.newstitle {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: bold;
  font-size: 32px;
  line-height: 1.2;
  color: var(--primary-blue);
  margin: 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

p.newstitle img {
  vertical-align: middle;
  margin-right: 10px;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.3));
}

p.newspost {
  font-size: 15px;
  line-height: 1.8;
  margin: 15px 0;
  text-align: justify;
  font-family: Georgia, serif;
}

p.timestamp {
  font-family: 'VT323', monospace;
  font-style: italic;
  font-size: 16px;
  color: #666;
  background: #f0f0f0;
  padding: 10px;
  border-left: 4px solid var(--primary-blue);
  margin-top: 30px;
}

/* Forms and inputs */
input.l_user,
input.l_password,
input.r_user,
input.r_email,
input.r_password {
  height: 32px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  border: 3px solid var(--ink-black);
  background: white;
  font-family: 'Courier New', monospace;
  transition: all 0.3s;
}

input.l_user,
input.l_password {
  width: 150px;
}

/* Mobile responsive inputs */
@media screen and (max-width: 768px) {
  input.l_user,
  input.l_password {
    width: 200px;
    display: block;
  }

  .auth-section-wrapper form {
    padding: 15px;
  }

  #login-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  #login-form input.l_user,
  #login-form input.l_password,
  #login-form input.p_button {
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto;
  }

  .auth-section-wrapper .auth-layout {
    flex-direction: column;
  }

  .auth-section-wrapper .auth-actions {
    width: 100%;
    flex-direction: column;
    margin-top: 8px;
  }
}

input.r_user,
input.r_email {
  width: 300px;
}

input.r_password {
  width: 100%;
}

input.l_user:focus,
input.l_password:focus,
input.r_user:focus,
input.r_email:focus,
input.r_password:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
  transform: scale(1.02);
}

/* Buttons - arcade button style */
input.p_button {
  border: 3px solid var(--ink-black);
  width: 110px;
  height: 36px;
  background: linear-gradient(180deg, var(--primary-red) 0%, #cc0033 100%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

input.p_button:hover {
  background: linear-gradient(180deg, var(--primary-blue) 0%, #0044cc 100%);
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
}

input.p_button:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

/* Signup form */
div.signupdiv {
  padding: 40px;
}

td.signupcell {
  padding: 40px;
}

td.signupcell p {
  font-size: 15px;
  line-height: 1.8;
}

td.signupcell b {
  color: var(--primary-blue);
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

/* Footer - magazine footer style */
div.footerdiv {
  background: var(--ink-black);
  color: white;
  border-top: 4px solid var(--primary-yellow);
  padding: 10px;
}

td.footercell1,
td.footercell2 {
  padding: 10px 15px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  vertical-align: top;
}

td.footercell1 {
  width: auto;
  text-align: left;
}

td.footercell2 {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

td.footercell2 p {
  margin: 0;
  line-height: 1.8;
  text-align: right;
}

div.footerdiv a {
  color: var(--neon-cyan);
  font-weight: bold;
  transition: all 0.3s;
}

div.footerdiv a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

/* Links */
a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: all 0.3s;
}

a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

/* Images */
img {
  border: none;
  max-width: 100%;
  height: auto;
}

.crt-frame-wrap {
  text-align: center;
  margin-top: 20px;
}

.crt-frame {
  display: inline-block;
  position: relative;
  padding: 8px;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.35),
    inset 0 0 12px rgba(0, 0, 0, 0.6);
}

.crt-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0,
    rgba(0, 0, 0, 0.18) 1px,
    rgba(0, 0, 0, 0) 3px,
    rgba(0, 0, 0, 0) 5px
  );
  opacity: 0.4;
  pointer-events: none;
}

.crt-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 55%);
  opacity: 0.5;
  pointer-events: none;
}

.crt-image,
.crt-screen {
  display: block;
  border-radius: 12px;
  filter: saturate(1.15) contrast(1.05) brightness(1.05);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.15);
}

/* Slideshow styles */
.slideshow {
  position: relative;
  width: 256px;
  height: 240px;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.slideshow .slide.active {
  opacity: 1;
}

.slideshow .slide.fade-out {
  opacity: 0;
}

/* Responsive design */
@media (max-width: 1000px) {
  div.topdiv,
  div.navigationdiv,
  div.middlediv,
  div.footerdiv,
  div.signupdiv {
    width: 95%;
  }

  td.main_left_column {
    display: block;
    width: 100%;
    border-right: none;
    border-bottom: 4px solid var(--ink-black);
  }

  td.main_right_column {
    display: block;
    width: 100%;
  }

  /* Center content on mobile - EXCEPT game details page */
  td.newscell:not(.game-details-cell),
  td.main_right_column {
    text-align: center;
  }

  td.newscell:not(.game-details-cell) p,
  td.newscell:not(.game-details-cell) div {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  /* Game details page - left alignment on mobile */
  td.game-details-cell {
    text-align: left !important;
  }

  td.game-details-cell p,
  td.game-details-cell div {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Keep title section centered in game details */
  td.game-details-cell div[style*="text-align: center"] {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Ensure flex/grid containers maintain left alignment */
  td.game-details-cell div[style*="display: grid"],
  td.game-details-cell div[style*="display: flex"] {
    text-align: left !important;
  }

  td.game-details-cell div[style*="display: flex"] strong,
  td.game-details-cell div[style*="display: flex"] span {
    text-align: left !important;
  }

  /* Reduce game columns to 2 on mobile */
  .games-column-layout {
    column-count: 2 !important;
  }

  /* Navigation items stack better on mobile */
  td.topnavbarcell1 a {
    padding: 10px 8px;
    font-size: 14px;
  }
}

/* Pixel art corner decorations */
div.topdiv::after {
  content: '▲';
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--primary-yellow);
  font-size: 20px;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

/* Loading animation for retro feel */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Play page emulator styles */
.play-emulator-wrap {
  display: inline-block;
  margin: 0 auto;
}

.play-crt-frame {
  display: inline-block;
  position: relative;
  padding: 12px;
  background: #111;
  border-radius: 20px;
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.play-crt-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  border-radius: 20px;
  z-index: 2;
}

.play-crt-frame.drag-over {
  box-shadow:
    0 0 30px var(--neon-cyan),
    0 15px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.play-crt-frame #nes-canvas {
  display: block;
  border-radius: 12px;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 512px;
  height: 480px;
}

.play-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 12px;
  z-index: 3;
}

.play-overlay span {
  font-family: 'Press Start 2P', monospace;
  font-size: 24px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
  animation: blink 1.5s infinite;
}

.play-overlay:hover span {
  color: var(--neon-pink);
  text-shadow: 0 0 20px var(--neon-pink);
}

.play-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  padding: 10px 20px;
  margin: 5px;
  background: linear-gradient(180deg, var(--primary-red) 0%, #cc0033 100%);
  color: white;
  border: 3px solid var(--ink-black);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.play-btn:hover {
  background: linear-gradient(180deg, var(--primary-blue) 0%, #0044cc 100%);
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

.play-btn:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* Responsive play page */
@media (max-width: 600px) {
  .play-crt-frame #nes-canvas {
    width: 288px;
    height: 270px;
  }

  .play-overlay span {
    font-size: 14px;
  }

  .play-btn {
    font-size: 14px;
    padding: 8px 12px;
  }
}
