:root {
  --bg: #0A0F0C;
  --bg-card: #11171A;
  --bg-card-hover: #161E22;
  --border: #1F2A26;
  --text: #F5F7F2;
  --text-muted: #8AA395;
  --green: #00A86B;
  --green-bright: #1FCB89;
  --gold: #F4C430;
  --orange-irish: #FF8C42;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  /* Snappy mobile taps — no 300ms click delay, no gray flash overlay. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button, a, .btn, .ho-btn, .ho-btn-primary, .ho-mission { touch-action: manipulation; }
body {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(0,168,107,0.15), transparent 40%),
    radial-gradient(ellipse at 110% 110%, rgba(244,196,48,0.08), transparent 40%),
    var(--bg);
  min-height: 100vh;
  position: relative;
}
.bg-grain {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  z-index: 0;
}
.hub-header {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-size: 16px; letter-spacing: 0.5px;
}
.brand img { width: 28px; height: 28px; }
.brand strong { color: var(--green-bright); font-weight: 800; }
.hub-nav { display: flex; gap: 22px; }
.hub-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.15s;
}
.hub-nav a:hover { color: var(--text); }
.hub-main {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 32px 28px 80px;
}
.hub-hero {
  text-align: center; padding: 40px 16px 56px;
}
.hub-hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hub-hero h1 .green { color: var(--green-bright); }
.hub-hero .tagline {
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 540px; margin: 0 auto;
  line-height: 1.5;
}
.game-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* ─── Section headings ─── */
.section-heading {
  margin-bottom: 24px;
  text-align: center;
}
.section-pill {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--gold) 100%);
  color: #082010;
  margin-bottom: 12px;
}
.section-pill.classics-pill {
  background: rgba(184,255,64,0.10);
  color: var(--green-bright);
  border: 1px solid rgba(184,255,64,0.3);
}
.section-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900; letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.section-sub {
  margin: 0; color: var(--text-muted); font-size: 14px;
}

.originals-section { margin-bottom: 56px; }
.classics-section { margin-bottom: 56px; }

/* Featured cards (originals) — beefier, with badge */
.originals-grid {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}
.game-card.featured {
  position: relative;
  border-color: rgba(184,255,64,0.35);
  box-shadow: 0 0 36px rgba(184, 255, 64, 0.10);
}
.game-card.featured:not(.coming-soon):hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 48px rgba(184, 255, 64, 0.22);
}
.featured-badge {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
  padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--gold) 100%);
  color: #082010;
  box-shadow: 0 4px 14px rgba(184,255,64,0.35);
}
.game-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.game-card:not(.coming-soon):hover {
  transform: translateY(-3px);
  border-color: var(--green);
  background: var(--bg-card-hover);
}
.game-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0E2620 0%, #051410 60%, #0A0F0C 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.game-cover img { width: 96px; height: 96px; opacity: 0.92; filter: drop-shadow(0 8px 24px rgba(0,168,107,0.35)); }
.game-cover-image { background: #060B08; padding: 0; }
.game-cover-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: none; opacity: 1;
  transition: transform 0.4s ease;
}
.game-card:hover .game-cover-image img { transform: scale(1.04); }

/* Battleship card cover — CSS-only grid pattern + title (no image asset yet) */
.game-cover-bs {
  background:
    linear-gradient(135deg, #0E2A24 0%, #051A14 60%, #0A0F0C 100%);
  position: relative;
  overflow: hidden;
}
.game-cover-bs .bs-cover-grid {
  position: absolute; inset: 12px;
  background-image:
    linear-gradient(rgba(0,168,107,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,107,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
}
.game-cover-bs::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 70%, rgba(255,140,66,0.18), transparent 40%),
    radial-gradient(circle at 30% 30%, rgba(0,168,107,0.16), transparent 40%);
  pointer-events: none;
}
.game-cover-bs .bs-cover-title {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; letter-spacing: 0.08em;
  font-size: clamp(28px, 5vw, 44px);
  color: var(--text);
  text-shadow: 0 4px 20px rgba(0, 168, 107, 0.45);
}
.game-cover-bs .bs-cover-title span { color: var(--green-bright); margin-left: 4px; }

/* 2048 card cover — animated tile cluster */
.game-cover-2048 {
  background: linear-gradient(135deg, #0E2A24 0%, #051A14 60%, #0A0F0C 100%);
  position: relative; overflow: hidden;
}
.game-cover-2048 .bs-cover-grid {
  position: absolute; inset: 12px;
  background-image:
    linear-gradient(rgba(0,168,107,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,107,0.13) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.5;
}
.game-cover-2048 .g2048-tiles {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
}
.g2048-t {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 800; font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.g2048-t.t2     { background: linear-gradient(135deg, #34D993 0%, #1FCB89 100%); color: #062018; }
.g2048-t.t4     { background: linear-gradient(135deg, #75D670 0%, #4ABE3D 100%); color: #062018; }
.g2048-t.t8     { background: linear-gradient(135deg, #F4C430 0%, #D9A410 100%); color: #2A1F00; font-size: 20px; }
.g2048-t.t2048  {
  background: linear-gradient(135deg, #F4C430 0%, #FF8C42 50%, #E84545 100%);
  color: #fff; font-size: 16px; letter-spacing: -0.02em;
  box-shadow: 0 0 24px rgba(244,196,48,0.5);
}

/* Blocks (Tetris) cover */
.game-cover-blocks {
  background: linear-gradient(180deg, #0E2A24 0%, #051A14 100%);
  position: relative; overflow: hidden;
}
.blocks-cover-art { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 24px; }
.bk { width: 24px; height: 24px; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.25); }
.bk.t1 { background: #4DA0FF; height: 70px; }
.bk.t2 { background: #FFD63A; height: 90px; }
.bk.t3 { background: #9F4DFF; height: 60px; }
.bk.t4 { background: #5BC020; height: 110px; }
.bk.t5 { background: #FF5A4A; height: 80px; }

/* Minesweeper cover */
.game-cover-ms {
  background: linear-gradient(180deg, #0E2A24 0%, #051A14 100%);
  position: relative; overflow: hidden;
}
.ms-cover-art { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(3, 50px); gap: 4px; place-content: center; }
.msc {
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 18px;
  border-radius: 4px;
}
.msc.r1 { color: #4DA0FF; } .msc.r2 { color: #5BC020; } .msc.r3 { color: #FF5A4A; }
.msc.rb { background: #B23A2C; }
.msc.rf { background: rgba(255,90,74,0.18); }

/* Asteroids cover */
.game-cover-asteroids {
  background: radial-gradient(ellipse at center, #112620 0%, #050A07 100%);
  position: relative; overflow: hidden;
}
.ast-cover-art { position: absolute; inset: 0; }
.ast-ship {
  position: absolute; left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  color: #fff;
  text-shadow: 0 0 14px rgba(184,255,64,0.6);
  animation: astSpin 8s linear infinite;
}
@keyframes astSpin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.ast-rock {
  position: absolute;
  border: 2px solid #B8FF40;
  border-radius: 50%;
  background: transparent;
}
.ast-rock.r1 { width: 36px; height: 36px; left: 18%; top: 25%; animation: astFloat1 6s linear infinite; }
.ast-rock.r2 { width: 28px; height: 28px; right: 15%; top: 30%; animation: astFloat2 8s linear infinite; }
.ast-rock.r3 { width: 22px; height: 22px; left: 30%; bottom: 20%; animation: astFloat3 10s linear infinite; }
@keyframes astFloat1 { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(40px, 30px) rotate(360deg); } }
@keyframes astFloat2 { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-30px, 20px) rotate(-360deg); } }
@keyframes astFloat3 { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(20px, -40px) rotate(360deg); } }

/* Flappy card cover */
.game-cover-flappy {
  background: linear-gradient(180deg, #0E2A24 0%, #051A14 100%);
  position: relative; overflow: hidden;
}
.flappy-cover-art { position: absolute; inset: 0; }
.flappy-bird {
  position: absolute; left: 25%; top: 45%;
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(244, 196, 48, 0.7);
  animation: flapBob 0.8s ease-in-out infinite alternate;
}
@keyframes flapBob { 0% { transform: translateY(-8px) rotate(-12deg); } 100% { transform: translateY(8px) rotate(12deg); } }
.flappy-pipe {
  position: absolute;
  width: 50px;
  background: linear-gradient(180deg, #5BC020, #2F6810);
  right: 18%;
}
.flappy-pipe.pipe-top { top: 0; height: 35%; border-bottom: 4px solid #B8FF40; }
.flappy-pipe.pipe-bot { bottom: 0; height: 35%; border-top: 4px solid #B8FF40; }

/* Breakout card cover */
.game-cover-breakout {
  background: linear-gradient(180deg, #0B1612 0%, #051410 100%);
  position: relative; overflow: hidden;
}
.breakout-cover-art {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.bo-row { display: flex; gap: 6px; }
.bo-brick { display: inline-block; width: 36px; height: 14px; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,0.4); }
.bo-brick.c1 { background: #FF5A4A; } .bo-brick.c2 { background: #FF8C42; }
.bo-brick.c3 { background: #FFD63A; } .bo-brick.c4 { background: #B8FF40; }
.bo-brick.c5 { background: #5BC020; } .bo-brick.c6 { background: #4DA0FF; }
.bo-brick.c7 { background: #9F4DFF; } .bo-brick.c8 { background: #FF4D9F; }
.bo-ball {
  position: absolute; left: 50%; top: 60%;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255,255,255,0.6);
  animation: ballBounce 1.4s ease-in-out infinite alternate;
}
@keyframes ballBounce { 0% { transform: translate(-30px, -10px); } 100% { transform: translate(20px, 20px); } }
.bo-paddle {
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  width: 80px; height: 8px;
  background: #B8FF40; border-radius: 3px;
  box-shadow: 0 0 14px rgba(184,255,64,0.5);
}

/* Snake card cover — animated snake segments */
.game-cover-snake {
  background:
    repeating-linear-gradient(0deg, rgba(184,255,64,0.04) 0 24px, transparent 24px 48px),
    repeating-linear-gradient(90deg, rgba(184,255,64,0.04) 0 24px, transparent 24px 48px),
    linear-gradient(135deg, #0E2A24 0%, #051A14 60%, #0A0F0C 100%);
  position: relative; overflow: hidden;
}
.game-cover-snake .snake-cover-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
}
.snake-cover-art .snake-seg {
  display: inline-block;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #B8FF40 0%, #5BC020 100%);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(184, 255, 64, 0.5);
}
.snake-cover-art .snake-head {
  background: linear-gradient(135deg, #D2FF6E 0%, #B8FF40 100%);
  box-shadow: 0 0 18px rgba(210, 255, 110, 0.7);
  position: relative;
}
.snake-cover-art .snake-food {
  display: inline-block;
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: 14px;
  box-shadow: 0 0 18px rgba(244, 196, 48, 0.7);
  animation: foodPulse 1.2s ease-in-out infinite alternate;
}
@keyframes foodPulse {
  0% { transform: scale(0.85); }
  100% { transform: scale(1.08); }
}

/* Rodent's Revenge card cover */
.game-cover-rr {
  background:
    repeating-linear-gradient(0deg, rgba(0,168,107,0.05) 0 30px, transparent 30px 60px),
    repeating-linear-gradient(90deg, rgba(0,168,107,0.05) 0 30px, transparent 30px 60px),
    linear-gradient(135deg, #0E2A24 0%, #051A14 60%, #0A0F0C 100%);
  position: relative; overflow: hidden;
}
.game-cover-rr .rr-cover-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  font-size: 48px;
}
.rr-cover-art .rr-mouse { filter: drop-shadow(0 0 6px rgba(255,255,255,0.4)); }
.rr-cover-art .rr-cheese { filter: drop-shadow(0 0 14px rgba(244,196,48,0.6)); animation: rrFloat 2.5s ease-in-out infinite alternate; }
.rr-cover-art .rr-cat { filter: drop-shadow(0 0 6px rgba(255,140,66,0.6)); }
@keyframes rrFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}
@media (max-width: 480px) {
  .g2048-t { width: 44px; height: 44px; font-size: 18px; }
  .g2048-t.t2048 { font-size: 13px; }
}
.game-cover.placeholder {
  background: linear-gradient(135deg, #1A1410 0%, #100A07 60%, #0A0F0C 100%);
  font-size: 64px; font-weight: 900; color: var(--text-muted);
  letter-spacing: 0.04em;
}
.game-status {
  position: absolute; top: 12px; right: 12px;
  background: var(--green); color: #001D12;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
}
.game-status.soon { background: var(--gold); color: #2A1F00; }
.game-info { padding: 20px 22px 22px; }
.game-info h2 {
  margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
}
.game-info h2 .green { color: var(--green-bright); }
.game-info p {
  margin: 0 0 14px; color: var(--text-muted); font-size: 14px; line-height: 1.55;
}
.game-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 11px; font-weight: 600;
  background: rgba(0,168,107,0.12); color: var(--green-bright);
  border: 1px solid rgba(0,168,107,0.25);
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em;
}
.game-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--green-bright); font-size: 14px;
  letter-spacing: 0.01em;
}
.game-cta .arrow { transition: transform 0.2s; }
.game-card:hover .game-cta .arrow { transform: translateX(4px); }
.coming-soon {
  opacity: 0.7;
  cursor: default;
}
.coming-soon .game-cta { color: var(--text-muted); }
.game-rating {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; font-size: 13px;
}
.game-rating .stars {
  font-size: 16px; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--gold) var(--fill, 0%), rgba(244,196,48,0.2) var(--fill, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.game-rating .rating-num { font-weight: 700; color: var(--gold); }
.game-rating .rating-count { color: var(--text-muted); font-size: 12px; }

.reviews-section {
  margin-top: 56px;
}
.reviews-section h2 {
  font-size: 20px; font-weight: 800; margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.reviews-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.review-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.review-name { font-weight: 700; color: var(--text); }
.review-date { color: var(--text-muted); font-size: 12px; }
.review-stars {
  color: var(--gold); font-size: 14px; letter-spacing: 1px;
  margin-bottom: 6px;
}
.review-msg {
  margin: 0; color: var(--text-muted);
  font-size: 13px; line-height: 1.5;
  white-space: pre-wrap;
}

.hub-footer-cta {
  margin-top: 56px; text-align: center; padding: 24px;
  color: var(--text-muted); font-size: 13px;
}
.hub-footer-cta a { color: var(--green-bright); text-decoration: none; }
.hub-footer-cta a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .hub-header { padding: 20px 18px; }
  .hub-nav { gap: 14px; }
  .hub-main { padding: 16px 18px 60px; }
  .hub-hero { padding: 24px 8px 36px; }
}
