/* ============================================================
   YOUARETHEC.COM — Site Stylesheet v1.0
   Canonical arcade aesthetic with readable variant for legal pages.
   ============================================================ */

:root {
  --c-green: #00ff66;
  --c-green-dim: #00aa44;
  --c-yellow: #ffff00;
  --c-bg: #000000;
  --c-text-light: #d0d0d0;
  --c-text-mid: #888888;
  --c-glow-sm: 0 0 6px currentColor, 0 0 12px currentColor;
  --c-glow-md: 0 0 12px currentColor, 0 0 24px currentColor;
  --c-glow-lg: 0 0 20px currentColor, 0 0 40px currentColor;
}

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

html, body {
  background: var(--c-bg);
  color: var(--c-green);
  font-family: 'Courier New', Courier, monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== CRT SCANLINES OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 255, 102, 0.04) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 9998;
}

/* ===== LAYOUT ===== */
.site-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.site-header {
  text-align: center;
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--c-green-dim);
  margin-bottom: 50px;
}

.site-logo {
  display: inline-block;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: bold;
  color: var(--c-green);
  text-shadow: var(--c-glow-md);
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  animation: glow-pulse 3s ease-in-out infinite;
}

.site-logo .letter-c {
  font-size: 1.4em;
  display: inline-block;
  transform: translateY(0.05em);
}

.site-tagline {
  margin-top: 16px;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.4em;
  color: var(--c-green);
  text-shadow: var(--c-glow-sm);
  opacity: 0.85;
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 10px currentColor, 0 0 20px currentColor; }
  50%      { text-shadow: 0 0 16px currentColor, 0 0 32px currentColor, 0 0 48px currentColor; }
}

/* ===== NAV ===== */
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.2em;
}

.site-nav a {
  color: var(--c-green);
  text-shadow: var(--c-glow-sm);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: var(--c-green);
  background: rgba(0, 255, 102, 0.08);
}

/* ===== FEATURED GAME (HOMEPAGE) ===== */
.featured {
  text-align: center;
  margin: 60px 0 80px;
}

.featured-label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--c-yellow);
  text-shadow: 0 0 8px var(--c-yellow), 0 0 16px var(--c-yellow);
  margin-bottom: 24px;
  padding: 4px 16px;
  border: 1px solid var(--c-yellow);
}

.featured-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: bold;
  text-shadow: var(--c-glow-md);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.featured-desc {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.15em;
  margin-bottom: 36px;
  text-shadow: var(--c-glow-sm);
  opacity: 0.9;
}

/* ===== BUTTON (ARCADE STYLE) ===== */
.c-btn {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.3em;
  color: var(--c-green);
  background: transparent;
  border: 2px solid var(--c-green);
  padding: 14px 36px;
  text-decoration: none;
  text-shadow: var(--c-glow-sm);
  cursor: pointer;
  transition: all 0.2s;
  animation: btn-pulse 2s ease-in-out infinite;
}

.c-btn:hover {
  background: var(--c-green);
  color: var(--c-bg);
  text-shadow: none;
  box-shadow: var(--c-glow-md);
  animation: none;
}

.c-btn--lg {
  font-size: 22px;
  padding: 18px 48px;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--c-green), inset 0 0 6px rgba(0, 255, 102, 0.2); }
  50%      { box-shadow: 0 0 16px var(--c-green), inset 0 0 12px rgba(0, 255, 102, 0.3); }
}

/* ===== GAME GRID ===== */
.section-heading {
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.4em;
  text-shadow: var(--c-glow-sm);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-green-dim);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.game-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 2px solid var(--c-green-dim);
  background: rgba(0, 255, 102, 0.02);
  text-decoration: none;
  color: var(--c-green);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.08), transparent);
  transition: left 0.5s;
}

.game-card:hover {
  border-color: var(--c-green);
  background: rgba(0, 255, 102, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.3);
}

.game-card:hover::before {
  left: 100%;
}

.game-card-title {
  font-size: 24px;
  font-weight: bold;
  text-shadow: var(--c-glow-sm);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.game-card-desc {
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
  opacity: 0.9;
}

.game-card-play {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--c-yellow);
  text-shadow: 0 0 6px var(--c-yellow);
  text-align: right;
  margin-top: auto;
}

/* ===== GAME PAGE (with iframe) ===== */
.game-page-header {
  text-align: center;
  margin-bottom: 30px;
}

.game-page-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: bold;
  text-shadow: var(--c-glow-md);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.game-page-version {
  font-size: 14px;
  letter-spacing: 0.3em;
  opacity: 0.6;
  margin-bottom: 16px;
}

.game-page-desc {
  font-size: 15px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-shadow: var(--c-glow-sm);
}

.game-page-controls {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--c-green-dim);
  margin-bottom: 24px;
}

.game-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  border: 2px solid var(--c-green);
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.3);
  background: var(--c-bg);
}

.game-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: none;
  background: var(--c-bg);
}

@media (max-width: 768px) {
  .game-frame { height: 560px; }
}

.game-page-back {
  text-align: center;
  margin-top: 24px;
}

/* ===== ARCADE TEXT PAGES (About, Contact, 404) ===== */
.arcade-page {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.arcade-page-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: bold;
  text-shadow: var(--c-glow-md);
  letter-spacing: 0.15em;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-green-dim);
}

.arcade-page p {
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.9;
  margin-bottom: 22px;
  text-shadow: var(--c-glow-sm);
}

.arcade-page p.emphasis {
  color: var(--c-yellow);
  text-shadow: 0 0 8px var(--c-yellow);
  letter-spacing: 0.25em;
  font-size: 18px;
  margin: 36px 0;
}

.arcade-email {
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--c-yellow);
  text-shadow: 0 0 8px var(--c-yellow), 0 0 16px var(--c-yellow);
  margin: 12px 0;
  user-select: all;
}

/* ===== READABLE VARIANT (Privacy, Terms) ===== */
.readable {
  background: var(--c-bg);
}

.readable .readable-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: var(--c-text-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.readable h1 {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--c-green);
  text-shadow: var(--c-glow-sm);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-green-dim);
}

.readable h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  color: var(--c-green);
  text-shadow: 0 0 4px var(--c-green);
  letter-spacing: 0.05em;
  margin-top: 36px;
  margin-bottom: 14px;
}

.readable h3 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px;
  color: var(--c-green);
  letter-spacing: 0.04em;
  margin-top: 24px;
  margin-bottom: 10px;
}

.readable p, .readable li {
  margin-bottom: 14px;
  color: var(--c-text-light);
}

.readable ul, .readable ol {
  padding-left: 28px;
  margin-bottom: 14px;
}

.readable li {
  margin-bottom: 8px;
}

.readable strong {
  color: #ffffff;
}

.readable a {
  color: var(--c-green);
  text-decoration: underline;
}

.readable a:hover {
  text-shadow: 0 0 4px var(--c-green);
}

.readable .meta {
  color: var(--c-text-mid);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid var(--c-green-dim);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--c-green-dim);
}

.site-footer a {
  color: var(--c-green-dim);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--c-green);
  text-shadow: var(--c-glow-sm);
}

.site-footer .footer-copy {
  margin-top: 14px;
  opacity: 0.6;
}

/* ===== UTILITY ===== */
.center { text-align: center; }
.spacer-sm { height: 20px; }
.spacer-md { height: 40px; }
.spacer-lg { height: 60px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .site-wrap { padding: 24px 16px 60px; }
  .site-header { padding: 24px 0 20px; margin-bottom: 30px; }
  .site-nav { gap: 12px; font-size: 12px; }
  .site-nav a { padding: 4px 8px; }
  .featured { margin: 30px 0 50px; }
  .game-grid { gap: 16px; }
  .game-card { padding: 20px 18px; }
}
