/* Home page. Retro box-TV hero, an animated "signal tunnel", TV static, and
   90s jazz / Memphis pop-art cards. All motion stops for reduced-motion users. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--phosphor); }
.dim { color: var(--dim); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- signal tunnel: TV-screen outlines flying out from the centre ---------- */
.tunnel { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tunnel span {
  position: absolute; left: 50%; top: 50%; width: 60%; aspect-ratio: 4 / 3;
  border: 4px solid var(--slim); border-radius: 18% / 22%;
  transform: translate(-50%, -50%) scale(0); opacity: 0;
  animation: tunnel 4.2s linear infinite;
}
.tunnel span:nth-child(5n + 2) { border-color: var(--purple); }
.tunnel span:nth-child(5n + 3) { border-color: var(--teal); }
.tunnel span:nth-child(5n + 4) { border-color: var(--pink); }
.tunnel span:nth-child(5n + 5) { border-color: var(--yellow); }
.tunnel span:nth-child(2) { animation-delay: -0.6s; }
.tunnel span:nth-child(3) { animation-delay: -1.2s; }
.tunnel span:nth-child(4) { animation-delay: -1.8s; }
.tunnel span:nth-child(5) { animation-delay: -2.4s; }
.tunnel span:nth-child(6) { animation-delay: -3s; }
.tunnel span:nth-child(7) { animation-delay: -3.6s; }
@keyframes tunnel {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.6) rotate(18deg); opacity: 0.15; }
}

/* ---------- TV static ---------- */
.screen-static {
  position: absolute; inset: 0; pointer-events: none;
  background: url('../assets/static.png') 0 0 / 256px 1024px;
  opacity: 0.12; mix-blend-mode: screen;
  animation: static 0.32s steps(4) infinite;
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.lockup img { width: 200px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 500 14px var(--mono); }
.site-header nav a { color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.site-header nav a:hover { color: var(--yellow); }

/* ---------- the TV ---------- */
.hero { max-width: 1100px; margin: 8px auto 0; padding: 70px 24px 24px; }
.tv { position: relative; max-width: 980px; margin: 0 auto; }
.tv-ears { position: absolute; left: 50%; top: -60px; width: 0; height: 60px; }
.tv-ears span {
  position: absolute; bottom: 0; left: -3px; width: 6px; height: 110px; background: var(--ink); border-radius: 3px;
  transform-origin: bottom center;
}
.tv-ears span:first-child { transform: rotate(-32deg); }
.tv-ears span:last-child { transform: rotate(28deg); }
.tv-ears span::after { content: ''; position: absolute; top: -8px; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); border: 3px solid var(--ink); }
.tv-ears::after { content: ''; position: absolute; left: -34px; bottom: -6px; width: 68px; height: 22px; background: var(--ink); border-radius: 34px 34px 6px 6px; }
.tv-body {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 22px;
  padding: 26px; border: var(--outline); border-radius: 28px;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #c98a52, var(--wood));
  box-shadow: 10px 10px 0 var(--ink), 10px 10px 0 3px var(--pink);
}
.tv-screen {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at center, #241544 0%, var(--screen) 75%);
  border: 6px solid var(--ink); border-radius: 22% / 16%;
  min-height: 480px; padding: 44px 48px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), inset 0 0 0 10px #2b2b2b;
}
.tv-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, transparent 35%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px);
}
.osd {
  position: absolute; top: 22px; left: 42px; right: 42px; z-index: 2; display: flex; justify-content: space-between;
  font: 500 18px var(--mono); color: var(--phosphor); text-shadow: 0 0 8px rgba(93, 255, 110, 0.8);
}
.osd .rec { color: var(--pink); text-shadow: 0 0 8px rgba(255, 63, 164, 0.8); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.screen-content { position: relative; z-index: 1; text-align: center; padding-top: 18px; }
.screen-logo { width: 300px; margin: 0 auto 6px; filter: drop-shadow(0 0 14px rgba(18, 184, 0, 0.5)); }
.pop-title {
  font: 72px/0.92 var(--pop); letter-spacing: 0.02em; margin: 6px 0 12px; text-transform: uppercase;
  color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--ink);
}
.pop-title .alt { color: var(--phosphor); font-size: 0.62em; text-shadow: 3px 3px 0 var(--purple), 6px 6px 0 var(--ink); }
.pop-title.small { font-size: 42px; color: var(--cream); text-transform: none; text-shadow: 3px 3px 0 var(--purple), 6px 6px 0 var(--ink); }
.lede { font-size: 18px; margin: 0 auto; max-width: 40ch; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0 6px; }

.tv-panel {
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 0;
  background: #2b2b2b; border: var(--outline); border-radius: 16px;
}
.knob { width: 70px; height: 70px; border-radius: 50%; border: var(--outline); background: conic-gradient(var(--cream) 0 8%, #d9cfb8 8% 100%); box-shadow: 3px 3px 0 var(--ink); }
.knob.small { width: 48px; height: 48px; background: conic-gradient(var(--cream) 0 10%, #d9cfb8 10% 100%); }
.grille { width: 90px; flex: 1; min-height: 120px; border-radius: 8px; background: repeating-linear-gradient(0deg, #111 0 4px, #3a3a3a 4px 8px); }
.jacks { display: flex; gap: 10px; }
.jacks i, .rca i { display: block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink); }
.jacks .y, .rca i:nth-child(1) { background: var(--yellow); }
.jacks .w, .rca i:nth-child(2) { background: var(--cream); }
.jacks .r, .rca i:nth-child(3) { background: #ff4e45; }
.tv-feet { display: flex; justify-content: space-between; padding: 0 90px; }
.tv-feet span { width: 70px; height: 18px; background: var(--ink); border-radius: 0 0 10px 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; text-decoration: none; font: 700 15px var(--sans); }
.btn.pop { background: var(--yellow); color: var(--ink); border: var(--outline); box-shadow: 4px 4px 0 var(--pink); }
.btn.pop:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }
.btn.ghost { color: var(--phosphor); border: 3px solid var(--phosphor); background: rgba(0, 0, 0, 0.25); }

/* ---------- sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 48px 24px 8px; }
.section-title {
  font: 46px/1 var(--pop); letter-spacing: 0.03em; margin: 0 0 22px; display: flex; align-items: center; gap: 14px;
  color: var(--cream); text-shadow: 3px 3px 0 var(--purple), 5px 5px 0 var(--ink);
}
.rca { display: flex; gap: 6px; }
.section-title .sub { font: 500 14px var(--mono); color: var(--yellow); text-transform: uppercase; letter-spacing: 0.1em; text-shadow: none; }

.clip-grid, .game-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.clip-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 240px)); }
.clip-card { background: var(--cream); color: var(--ink); border: var(--outline); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--teal); overflow: hidden; }
.clip-card:nth-child(3n + 2) { box-shadow: 7px 7px 0 var(--pink); }
.clip-card:nth-child(3n + 3) { box-shadow: 7px 7px 0 var(--yellow); }
.clip-card img { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; border-bottom: var(--outline); }
.clip-body { padding: 12px 14px 14px; }
.clip-body h3 { font: 26px/1 var(--pop); letter-spacing: 0.03em; margin: 0 0 2px; }
.clip-body .dim { color: #5c5470; font: 13px var(--mono); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font: 500 13px var(--mono); text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); background: var(--cream); }
.chip.youtube { background: #ff5a4f; }
.chip.instagram { background: var(--pink); }
.chip.facebook { background: #7aa7ff; }
.chip.tiktok { background: var(--teal); }
.chip:hover { box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }

.follow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.follow-card { border: var(--outline); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.follow-latest { position: relative; flex: none; width: 92px; border: var(--outline); border-radius: 8px; overflow: hidden; background: var(--ink); color: var(--cream); text-decoration: none; }
.follow-latest img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.follow-latest img.wide { aspect-ratio: 16 / 9; }
.follow-latest span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; text-align: center; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; background: rgba(20, 20, 20, 0.8); }
.clip-card img.wide { aspect-ratio: 16 / 9; }
.follow-card.gamer { background: radial-gradient(circle, rgba(0, 0, 0, 0.14) 1.5px, transparent 1.6px) 0 0 / 12px 12px, var(--slim); box-shadow: 7px 7px 0 var(--purple); }
.follow-card.dev { background: radial-gradient(circle, rgba(0, 0, 0, 0.12) 1.5px, transparent 1.6px) 0 0 / 12px 12px, var(--teal); box-shadow: 7px 7px 0 var(--pink); }
.follow-card h3 { font: 36px/1 var(--pop); letter-spacing: 0.03em; margin: 2px 0 6px; }
.follow-role { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; margin: 0; }

.terminal { background: var(--screen); border: var(--outline); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--slim); font-family: var(--mono); color: var(--phosphor); overflow: hidden; }
.terminal-bar { display: flex; justify-content: space-between; padding: 6px 14px; background: var(--purple); color: var(--cream); font: 500 13px var(--mono); letter-spacing: 0.1em; border-bottom: var(--outline); }
.terminal-body { padding: 22px 26px; }
.terminal-body p { margin: 0 0 10px; }
.terminal-body p:not(.prompt) { color: var(--text); font-family: var(--sans); }
.prompt { text-shadow: 0 0 8px rgba(93, 255, 110, 0.6); }
.terminal .actions { justify-content: flex-start; }
.terminal.wide .two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.feature-list { margin: 0; padding: 0; list-style: none; color: var(--text); font-family: var(--sans); }
.feature-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.feature-list li::before { content: '▶ '; color: var(--pink); font-size: 12px; }

.game-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.game-card { border: var(--outline); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; box-shadow: 7px 7px 0 var(--ink); }
.game-card:hover { box-shadow: 7px 7px 0 var(--slim); }
.game-link { display: block; color: var(--text); text-decoration: none; padding-bottom: 12px; }
.game-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: var(--outline); }
.game-link h3 { font: 28px/1 var(--pop); letter-spacing: 0.03em; margin: 12px 14px 2px; color: var(--yellow); }
.game-link p { margin: 0 14px; font-size: 14px; }
.game-link .game-best { margin-top: 8px; font: 500 13px var(--mono); color: var(--phosphor); }

.everyone { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 30px; align-items: center; padding-bottom: 56px; }
.everyone p { font-size: 18px; max-width: 62ch; }
.burst {
  width: 190px; height: 190px; display: grid; place-items: center; text-align: center;
  font: 36px/0.95 var(--pop); color: var(--ink); background: var(--yellow);
  clip-path: polygon(50% 0, 61% 18%, 82% 10%, 80% 32%, 100% 38%, 86% 55%, 98% 74%, 76% 76%, 72% 98%, 55% 86%, 38% 100%, 30% 80%, 8% 84%, 14% 62%, 0 46%, 18% 34%, 12% 12%, 34% 18%);
}

.site-footer { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: var(--outline); }
.site-footer .half { display: flex; align-items: center; gap: 16px; padding: 22px 28px; color: var(--ink); }
.site-footer .gamer { background: var(--slim); }
.site-footer .dev { background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 1.5px, transparent 1.6px) 0 0 / 12px 12px, var(--cream); }
.site-footer img { width: 64px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); }
.site-footer .dev img { width: 96px; border-radius: 8px; padding: 8px 10px; background: var(--ink); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); font-weight: 700; }
.site-footer .legal { grid-column: 1 / -1; background: var(--ink); color: var(--dim); padding: 10px 28px; font: 13px var(--mono); }
.site-footer .legal a { color: var(--cream); font-weight: 400; }

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .lockup img { width: 160px; }
  .hero { padding: 72px 12px 16px; }
  .tv-body { grid-template-columns: 1fr; padding: 14px; border-radius: 20px; }
  .tv-panel { flex-direction: row; justify-content: center; padding: 10px; }
  .knob { width: 40px; height: 40px; } .knob.small { width: 30px; height: 30px; }
  .grille { min-height: 30px; height: 30px; width: 70px; flex: none; }
  .tv-screen { min-height: 0; padding: 48px 18px 26px; border-radius: 14% / 8%; }
  .osd { top: 16px; left: 22px; right: 22px; font-size: 14px; }
  .screen-logo { width: 200px; }
  .pop-title { font-size: 48px; }
  .tv-feet { padding: 0 40px; }
  .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .clip-body h3 { font-size: 20px; }
  .terminal.wide .two-col, .everyone, .site-footer { grid-template-columns: 1fr; }
  .burst { width: 130px; height: 130px; font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tunnel span, .screen-static, .osd .rec { animation: none; }
  .tunnel span { opacity: 0.5; }
  .tunnel span:nth-child(1) { transform: translate(-50%, -50%) scale(0.5); }
  .tunnel span:nth-child(2) { transform: translate(-50%, -50%) scale(0.9); }
  .tunnel span:nth-child(3) { transform: translate(-50%, -50%) scale(1.3); }
  .tunnel span:nth-child(n + 4) { display: none; }
}
