/* Slinger Games — site styles
   Colours and sizes match the original design mockup. */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --text: #D5E0E1;
  --muted: #93A9AC;
  --cyan: #00F5E1;
  --orange: #FF5A1F;
  --deep: #06171A;
  --deep-2: #0A2226;
  --hover: #0E2A2E;
  --line: #1B3A3F;
  --line-2: #2B5A60;
  --stripe-cyan: repeating-linear-gradient(135deg, rgba(0,245,225,.16) 0, rgba(0,245,225,.16) 12px, transparent 12px, transparent 24px);
  --stripe-orange: repeating-linear-gradient(135deg, rgba(255,90,31,.2) 0, rgba(255,90,31,.2) 12px, transparent 12px, transparent 24px);
  --display: 'Dela Gothic One', Impact, 'Arial Black', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.disp { font-family: var(--display); font-weight: 400; }
.px { padding-left: 48px; padding-right: 48px; }
.wrap { max-width: 1344px; margin: 0 auto; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--black); font-weight: 800;
  padding: 10px 18px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-weight: 800; white-space: nowrap;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn-primary { background: var(--cyan); color: var(--black); border: 0; }
.btn-outline { border: 3px solid var(--white); color: var(--white); background: transparent; }
.btn-sm { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-md { height: 52px; padding: 0 26px; font-size: 17px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 18px; }
.btn-outline.btn-sm { border-width: 2px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); display: block; flex: none; }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 60px; width: auto; display: block; }
.navlinks { display: flex; gap: 36px; align-items: center; font-weight: 600; font-size: 17px; color: var(--white); }
.navlink:hover { color: var(--cyan); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  border: 2px solid var(--line-2); background: transparent; color: var(--white);
  align-items: center; justify-content: center;
}
.mobile-nav {
  display: none; flex-basis: 100%;
  flex-direction: column; gap: 4px; padding: 8px 0 4px;
  border-top: 2px solid var(--line); margin-top: 4px;
}
.mobile-nav a { padding: 12px 4px; font-weight: 700; font-size: 19px; color: var(--white); }
.mobile-nav a:hover { color: var(--cyan); }
.site-header.open .mobile-nav { display: flex; }

/* ---------- Late Night Trivia "Live now" banner ---------- */
.live-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
  padding-top: 14px; padding-bottom: 14px; margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(255,90,31,.18), rgba(0,245,225,.14));
  border-top: 2px solid var(--orange); border-bottom: 2px solid var(--cyan);
  color: var(--white); font-size: 17px; text-align: center;
}
.live-banner[hidden] { display: none; }
.live-banner:hover .live-cta { filter: brightness(1.12); }
.live-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--orange);
}
.live-text strong { color: var(--cyan); }
.live-cta {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--cyan); color: var(--black); font-weight: 800; white-space: nowrap;
}
.live-code { letter-spacing: .12em; }

/* ---------- Hero ---------- */
.hero { padding-top: 8px; padding-bottom: 64px; }
.hero-grid { display: flex; justify-content: center; }
.hero-copy { flex: 0 1 640px; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { line-height: 0; align-self: stretch; }
.hero-logo {
  display: block; width: calc(100% + 140px); max-width: 780px; height: auto;
  margin: -60px -70px -50px -70px; mix-blend-mode: screen;
}
.neon { animation: flicker 1.5s ease-out 1; }
@keyframes flicker { 0% { opacity: 0 } 6% { opacity: 1 } 9% { opacity: .3 } 12% { opacity: 1 } 16% { opacity: .55 } 21%, 100% { opacity: 1 } }
.tagline { position: relative; font-size: 24px; line-height: 1.35; color: var(--white); font-weight: 600; max-width: 30ch; }
.hero-ctas { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* ---------- Tape band ---------- */
.band { overflow: hidden; padding: 22px 0 26px; }
.band-inner {
  width: 106%; margin-left: -3%; transform: rotate(-1.2deg);
  background: var(--cyan); color: var(--black); padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.band-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.band-set { display: flex; align-items: center; gap: 36px; padding-right: 36px; flex: none; }
.band-set span { font-family: var(--display); font-size: 24px; line-height: 1.2; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section headings ---------- */
.h2 { font-family: var(--display); font-weight: 400; font-size: 60px; line-height: 1.05; color: var(--white); }
.lede { margin-top: 12px; max-width: 52ch; font-size: 19px; }

/* ---------- Mission ---------- */
.mission { padding-top: 96px; padding-bottom: 40px; }
.mission-grid { display: flex; flex-wrap: wrap; gap: 24px 72px; align-items: flex-start; }
.mission-title { flex: 0 0 260px; color: var(--cyan); }
.mission-body { flex: 1 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.mission-lead { font-size: 36px; line-height: 1.25; font-weight: 800; color: var(--white); }
.mission-text { max-width: 62ch; font-size: 20px; line-height: 1.65; }
.mission-sign { font-family: var(--display); font-size: 34px; line-height: 1.2; color: var(--cyan); }
@media (max-width: 760px) {
  .mission { padding-top: 64px; }
  .mission-title { flex-basis: 100%; }
  .mission-lead { font-size: 26px; }
  .mission-text { font-size: 18px; }
  .mission-sign { font-size: 26px; }
}

/* ---------- Streams ---------- */
.streams { padding-top: 88px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rail {
  display: flex; gap: 44px; overflow-x: auto; padding: 44px 24px 36px 16px; margin: 0 -16px;
  scroll-snap-type: x proximity; scrollbar-color: var(--cyan) var(--deep); scrollbar-width: thin;
}
.pl { flex: 0 0 340px; scroll-snap-align: start; display: block; }
.pl-stack { position: relative; }
.pl-stack::before, .pl-stack::after {
  content: ""; position: absolute; height: 60px; border-radius: 14px;
}
.pl-stack::before { left: 28px; right: 28px; top: -20px; border: 2px solid var(--line); background: var(--deep); }
.pl-stack::after { left: 14px; right: 14px; top: -10px; border: 2px solid var(--line-2); background: var(--deep-2); }
.pl-thumb {
  position: relative; z-index: 1; aspect-ratio: 16/9; border-radius: 14px; border: 2px solid var(--white);
  background-color: var(--deep); background-image: var(--stripe-cyan); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: transform .2s ease;
}
.pl-thumb.warm { background-color: #1E0E06; background-image: var(--stripe-orange); }
.pl:hover .pl-thumb { transform: translateY(-4px); }
/* Cards with real thumbnail art: show the play button only on hover/focus. */
.pl-thumb.has-art .play { opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.pl:hover .pl-thumb.has-art .play, .pl:focus-visible .pl-thumb.has-art .play { opacity: 1; transform: none; }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--cyan); display: flex; align-items: center; justify-content: center; }
.count { position: absolute; right: 10px; bottom: 10px; background: var(--black); color: var(--white); font-weight: 700; font-size: 14px; padding: 3px 10px; border-radius: 8px; }
.pl-title { margin-top: 16px; font-size: 21px; font-weight: 800; color: var(--white); line-height: 1.25; }
.pl:hover .pl-title { color: var(--cyan); }
.pl-desc { margin-top: 4px; font-size: 16px; color: var(--muted); }

/* ---------- Games library ---------- */
.games { background: var(--deep); border-top: 2px solid var(--line); padding-top: 88px; padding-bottom: 96px; }
.library { margin-top: 40px; border: 2px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--black); }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 20px;
  border-bottom: 2px solid var(--line); background: var(--deep);
}
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search svg { position: absolute; left: 14px; top: 14px; }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; background: var(--black); color: var(--white);
  border: 2px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 16px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--line-2);
  background: transparent; color: var(--white); font-weight: 700; font-size: 15px;
}
.chip[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan); color: var(--black); font-weight: 800; }

/* Cover-art row on top, selected game's details full width underneath. */
.lib-detail { width: 100%; }
.lib-detail[hidden] { display: none; }
.keyart {
  position: relative; height: 360px; background-color: var(--deep); background-image: var(--stripe-cyan);
  background-size: cover; background-position: center;
  border-bottom: 2px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
}
.keyart-img { border-bottom: 2px solid var(--line); line-height: 0; background: var(--deep); }
.keyart-img img { display: block; width: 100%; height: auto; }
.detail-pitch { font-size: 20px; font-weight: 700; color: var(--cyan); margin-bottom: 10px; max-width: 66ch; }
.keyart.has-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.75)); }
.keyart > * { position: relative; }
.keyart-title { font-family: var(--display); font-size: 76px; line-height: 1; color: var(--white); text-shadow: 0 0 28px rgba(0,245,225,.7); }
.keyart-pitch { margin-top: 8px; font-size: 20px; font-weight: 600; color: var(--cyan); }
.detail-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 20px 32px;
  border-bottom: 2px solid var(--line); background: var(--deep);
}
.detail-bar .btn { border-radius: 12px; }
.detail-bar .btn-outline { border-width: 2px; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; margin-left: auto; }
.facts dt { display: inline; color: var(--muted); }
.facts dd { display: inline; margin: 0 0 0 4px; color: var(--white); font-weight: 700; }
.detail-text { padding: 28px 32px 36px; }
.detail-text p { max-width: 66ch; font-size: 18px; line-height: 1.65; }
.covers-wrap { padding: 28px 32px; border-bottom: 2px solid var(--line); }
.covers { display: flex; flex-wrap: wrap; gap: 22px; }
.cover {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 190px; aspect-ratio: 2/3; border: 4px solid var(--line-2); border-radius: 14px;
  background-color: var(--deep); background-image: var(--stripe-cyan); background-size: cover; background-position: center;
  text-align: center; transition: filter .15s ease, border-color .15s ease; padding: 0;
}
.cover:hover { filter: brightness(1.12); }
.cover[aria-current="true"] { border-color: var(--white); box-shadow: 0 0 36px rgba(0,245,225,.3); }
.cover .disp { font-size: 40px; line-height: 1; color: var(--white); text-shadow: 0 0 18px rgba(0,245,225,.7); }
.cover .disp + .disp { color: var(--cyan); }
.badge { position: absolute; left: 10px; bottom: 10px; font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 8px; color: var(--black); }
.badge.dev { background: var(--orange); }
.badge.out { background: var(--cyan); }
.cover-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 190px; aspect-ratio: 2/3;
  border: 3px dashed var(--line-2); border-radius: 14px; text-align: center; padding: 12px; gap: 6px; color: var(--muted); font-size: 15px;
}
.no-results { padding: 20px 0; font-size: 18px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-top: 96px; padding-bottom: 96px; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.contact-copy { flex: 1 1 380px; min-width: 0; }
.contact-copy p { max-width: 44ch; font-size: 19px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.social {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border: 2px solid var(--line-2);
  border-radius: 999px; color: var(--white); font-weight: 700; font-size: 16px;
}
.social:hover { color: var(--cyan); border-color: var(--cyan); }
.social[hidden] { display: none; }
.contact-form {
  flex: 1 1 520px; min-width: 0; border: 5px solid var(--white); border-radius: 28px; padding: 36px;
  background: var(--black); box-shadow: 0 0 60px rgba(0,245,225,.25);
}
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.field + .field, .row + .field { margin-top: 20px; }
.row .field + .field { margin-top: 0; }
.field label { font-weight: 700; font-size: 16px; color: var(--white); }
.field input, .field select, .field textarea {
  height: 52px; padding: 0 16px; background: var(--deep); color: var(--white);
  border: 2px solid var(--line-2); border-radius: 12px; font-family: inherit; font-size: 17px;
}
.field select { padding: 0 14px; }
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { width: 100%; height: 58px; margin-top: 26px; font-size: 19px; }
.send[disabled] { opacity: .6; cursor: progress; }
.form-note { margin-top: 14px; font-size: 15px; color: var(--muted); text-align: center; }
.form-status { margin-top: 14px; font-size: 16px; font-weight: 700; text-align: center; min-height: 1em; }
.form-status.ok { color: var(--cyan); }
.form-status.err { color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--line); padding-top: 36px; padding-bottom: 36px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner img { height: 72px; width: auto; display: block; }
.footer-inner p { font-size: 15px; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 48px 20px; }
.notfound .h2 { font-size: 96px; color: var(--cyan); text-shadow: 0 0 28px rgba(0,245,225,.7); }

/* ---------- Motion + small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  .neon, .band-track, .dot.live { animation: none; }
}
@media (max-width: 960px) {
  .facts { margin-left: 0; }
}
@media (max-width: 760px) {
  .px { padding-left: 20px; padding-right: 20px; }
  .h2 { font-size: 38px; }
  .navlinks, .header-actions .btn-outline { display: none; }
  .menu-btn { display: inline-flex; }
  .brand img { height: 48px; }
  .hero-logo { width: calc(100% + 80px); margin: -36px -40px -30px -40px; }
  .tagline { font-size: 21px; }
  .pl { flex-basis: 280px; }
  .keyart { height: 260px; padding: 22px; }
  .keyart-title { font-size: 48px; }
  .detail-bar, .detail-text, .covers-wrap { padding-left: 20px; padding-right: 20px; }
  .cover, .cover-slot { width: calc(50% - 11px); }
  .contact-form { padding: 24px 20px; border-width: 4px; }
}
@media (max-width: 340px) {
  .header-actions .btn-primary { display: none; }
}
