/* ===== U2short's Games — theme: black + neon green, gamer/teen, professional ===== */

:root {
  --bg-void: #05070a;
  --bg-panel: #0c1210;
  --bg-panel-raised: #101913;
  --border-dim: #1c2a20;
  --green: #39ff88;
  --green-dim: #1f8f4f;
  --green-glow: rgba(57, 255, 136, 0.35);
  --text-main: #e8fff0;
  --text-muted: #8fa89a;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Subtle scanline / grid backdrop for a techy gamer feel */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(57, 255, 136, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-dim);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo-accent { color: var(--green); }
.logo-bracket { color: var(--green-dim); }

.nav { display: flex; gap: 32px; }

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  position: relative;
}

.nav a:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero-inner { max-width: 720px; margin: 0 auto; }

.glitch-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 64px);
  letter-spacing: 2px;
  color: var(--text-main);
  text-shadow: 0 0 24px var(--green-glow);
  line-height: 1.15;
}

.hero-sub {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 500;
}

.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: #05130a;
  box-shadow: 0 0 20px var(--green-glow);
}

.btn-primary:hover {
  background: #5dffa2;
  box-shadow: 0 0 32px var(--green-glow);
  transform: translateY(-2px);
}

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.title-accent { color: var(--green); }

/* ---------- Games grid ---------- */
.games-section { padding: 60px 0 100px; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.game-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--green-dim);
}

.game-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-panel-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--green-dim);
  overflow: hidden;
  border-bottom: 1px solid var(--border-dim);
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.game-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.game-card-desc {
  color: var(--text-muted);
  font-size: 15px;
  flex: 1;
}

.game-card-tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-dim);
  border-radius: 999px;
}

.game-card-tag.coming-soon {
  color: var(--text-muted);
  border-color: var(--border-dim);
}

.game-card.disabled {
  cursor: default;
  opacity: 0.7;
}

.game-card.disabled:hover {
  transform: none;
  border-color: var(--border-dim);
  box-shadow: none;
}

/* ---------- About ---------- */
.about-section {
  padding: 40px 0 100px;
  border-top: 1px solid var(--border-dim);
}

.about-inner { max-width: 720px; }

.about-inner p { color: var(--text-muted); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Play page ---------- */
.play-page { padding: 48px 0 100px; }

.play-header { margin-bottom: 32px; }

.play-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.5px;
}

.play-desc { margin-top: 10px; color: var(--text-muted); font-size: 18px; max-width: 640px; }

.play-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.game-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  overflow: hidden;
}

.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  background: rgba(5, 7, 10, 0.75);
  color: var(--green);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.fullscreen-btn:hover { border-color: var(--green-dim); color: #5dffa2; }

.play-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 18px 20px;
}

.info-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.info-panel p { color: var(--text-muted); font-size: 15px; }

.controls-list { display: flex; flex-direction: column; gap: 8px; }

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.control-key {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}

.control-action { color: var(--text-muted); }

.changelog-list { list-style: none; }

.changelog-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--border-dim);
}

.changelog-entry:first-child { border-top: none; padding-top: 0; }

.changelog-date {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--green-dim);
}

.changelog-note { color: var(--text-muted); font-size: 14px; }

.play-missing {
  text-align: center;
  padding: 80px 0;
}

.play-missing h1 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 12px;
}

.play-missing p { color: var(--text-muted); margin-bottom: 28px; }

@media (max-width: 900px) {
  .play-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { gap: 20px; }
  .hero { padding: 80px 0 60px; }
}
