/* ===== Typefaces: Oswald and Open Sans, kept with the site so visitors' browsers never ask Google for them.
   Both under the SIL Open Font License 1.1 (fonts/OFL-*.txt). Variable weight; Latin and Latin Extended. ===== */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 200 700; font-display: swap; src: url("fonts/Oswald-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 200 700; font-display: swap; src: url("fonts/Oswald-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/OpenSans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/OpenSans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #050505;
  --bg-secondary: #0c0c0c;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --red-primary: #e63028;
  --red-dark: #c41e18;
  --red-text: #ef4a40;   /* red words on the dark: 5:1 on the cards */
  --red-button: #d92c24; /* behind white button text: 4.8:1 */
  --red-glow: rgba(230, 48, 40, 0.35);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #8a8a8a; /* (5.3:1 on the cards: readable small print) */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html {
  color-scheme: dark; /* (the browser's own parts, too: scrollbars, and the list a dropdown opens, which on Windows was white text on white) */
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip; /* (clip, where the browser knows it: the blurred backdrop can't widen the page on phones) */
}
html { overflow-x: clip; }

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 1px 30px rgba(230, 48, 40, 0.08);
}

.nav-container {
  width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s;
}

.nav-logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(230, 48, 40, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 20%, rgba(230, 48, 40, 0.05) 0%, transparent 50%),
    var(--bg-primary);
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='0.5' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-logo-wrap {
  margin-bottom: 32px;
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.hero-logo-img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(230, 48, 40, 0.3));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 10px;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 16px;
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s both;
}

.hero-title span {
  color: var(--red-text);
  font-size: 3.2rem;
  letter-spacing: 14px;
  display: block;
  margin-top: 4px;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--red-primary);
  margin: 24px auto;
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 48px;
  font-weight: 400;
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.45s both;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 1.2s both;
}

.scroll-indicator span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--red-button);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 30px var(--red-glow);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid #333;
}

.btn-outline:hover {
  border-color: var(--red-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
}

.btn-play {
  margin-top: 12px;
  display: inline-block;
  text-align: center;
  font-size: 0.9rem;
  padding: 10px 24px;
}

/* ===== Sections ===== */
.section {
  padding: 120px 0;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: 12px;
  color: #ffffff;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--red-primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 16px;
  margin-bottom: 56px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.5px;
}

/* ===== Scroll Reveal ===== */
/* (hidden only where a script is running to bring them in: with scripts off, the sections are simply there) */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== About ===== */
.about-content {
  max-width: 900px;
  margin: 40px auto 0;
}

.about-text {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 56px;
}

.founder-credit {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.founder-credit strong {
  color: var(--red-text);
  font-weight: 600;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--red-text);
  letter-spacing: 2px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ===== Games ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 0;
}

.game-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(230, 48, 40, 0.1);
  border-color: rgba(230, 48, 40, 0.3);
}

.game-image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.game-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.02) 50%, transparent 60%);
  transition: transform 0.6s;
}

.game-card:hover .game-image-placeholder::before {
  transform: translateX(100%);
}

.game-info {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}

.game-info-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Each card now carries two actions: play the thing, or read its page.
   Full-width container so the mobile rule that stretches .btn-play has
   something to stretch against; wrapping so the pair stacks when it must. */
.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.game-actions .btn-play {
  margin-top: 0;
}

.game-status {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-development {
  background: rgba(230, 48, 40, 0.12);
  color: var(--red-text);
  border: 1px solid rgba(230, 48, 40, 0.4);
}

.status-concept {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-completed {
  background: rgba(40, 200, 80, 0.12);
  color: #28c850;
  border: 1px solid rgba(40, 200, 80, 0.4);
}

.status-waiting {
  background: rgba(255, 190, 50, 0.12);
  color: #ffbe32;
  border: 1px solid rgba(255, 190, 50, 0.4);
}

.status-beta {
  background: rgba(255, 165, 0, 0.12);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.4);
}

.status-alpha {
  background: rgba(120, 200, 245, 0.12);
  color: #8fd3f7;
  border: 1px solid rgba(120, 200, 245, 0.45);
}

.status-released {
  background: rgba(70, 190, 100, 0.12);
  color: #5fd27d;
  border: 1px solid rgba(70, 190, 100, 0.45);
}

.beta-badge.alpha-badge { background: rgba(95, 185, 235, 0.92); color: #06243a; }
.beta-badge.released-badge { background: #1f7a3c; color: #fff; }

/* the Alpha (or Beta) tag beside a game's name on its own page */
.sp-alpha {
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  padding: 3px 12px 4px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #06243a;
  background: rgba(95, 185, 235, 0.92);
  border-radius: 3px;
}

.sp-beta { color: #1a1000; background: #ffa500; } /* dark words: white on orange is too faint */

.beta-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: #ffa500;
  color: #1a1000;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* ===== Subsection Title ===== */
.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
}

/* ===== Contact ===== */
.contact-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 20px rgba(230, 48, 40, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 36px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-logo img:hover {
  opacity: 0.8;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Animations ===== */
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .nav-container {
    padding: 0 24px;
  }

  .hero-title {
    font-size: 4rem;
    letter-spacing: 6px;
  }

  .hero-title span {
    font-size: 2.4rem;
    letter-spacing: 10px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.6rem;
    letter-spacing: 3px;
  }

  .about-stats {
    gap: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 28px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-container {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 16px 60px;
    min-height: 90vh;
  }

  .hero-logo-wrap {
    margin-bottom: 20px;
  }

  .hero-logo-img {
    width: 110px;
  }

  .hero-title {
    font-size: 2.6rem;
    letter-spacing: 4px;
  }

  .hero-title span {
    font-size: 1.5rem;
    letter-spacing: 6px;
  }

  .hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 32px;
  }

  .hero-divider {
    width: 50px;
    margin: 16px auto;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 16px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 36px;
    padding: 0 8px;
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 36px;
  }

  .about-stats {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game-image-placeholder {
    height: 180px;
  }

  .game-info {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .game-info h3 {
    font-size: 1.2rem;
  }

  .subsection-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    padding: 0;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .btn-play {
    width: 100%;
    text-align: center;
  }

  .footer {
    padding: 24px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer p {
    font-size: 0.75rem;
  }

  .scroll-indicator {
    display: none;
  }

  /* Prevent body scroll when mobile nav is open */
  body.nav-open {
    overflow: hidden;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero-title span {
    font-size: 1.2rem;
    letter-spacing: 4px;
  }

  .hero-logo-img {
    width: 90px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    width: 85%;
  }
}

/* ===================================================================
   Game Pages — a storefront layout in the studio's own colours.

   The shape is a store page: media player, a sidebar of facts, a play
   box, About This Game, requirements, reviews. The palette is the one
   the rest of the site runs on — black, with red doing the pointing.
   Everything is namespaced .sp-* (store page) so nothing here can
   reach index.html, which still owns .game-card and friends.
   =================================================================== */

body.sp {
  background: var(--bg-primary);
  color: var(--text-secondary);
}

/* The art of the game, blurred out behind the top of the page, fading
   into the flat background — the page is dressed by the game itself. */
.sp-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 720px;
  background-size: cover;
  background-position: center top;
  filter: blur(18px) saturate(0.7);
  transform: scaleY(1.1); /* (not wider: a backdrop wider than the screen made phones scroll sideways) */
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.sp-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
              rgba(5, 5, 5, 0.6) 0%,
              rgba(5, 5, 5, 0.8) 45%,
              var(--bg-primary) 100%);
}

.sp-page {
  position: relative;
  z-index: 1;
  padding: 104px 0 80px;
}

.sp-wrap {
  width: 100%;
  max-width: 972px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Breadcrumb + title ------------------------------------------ */
.sp-crumbs {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sp-crumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-crumbs a:hover {
  color: var(--red-text);
}

.sp-crumbs span {
  margin: 0 6px;
  color: #333;
}

.sp-crumbs .sp-here {
  margin: 0;
  color: var(--text-secondary);
}

.sp-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* --- Top block: media on the left, the facts on the right --------- */
.sp-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

/* --- Media player ------------------------------------------------- */

/* A grid item's automatic minimum is its content, and this column's
   content includes a filmstrip as wide as every thumbnail in a row.
   Without this the column — and the page with it — refuses to narrow. */
.sp-media {
  min-width: 0;
}

.sp-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid #1e1e1e;
  overflow: hidden;
}

.sp-stage img,
.sp-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.sp-stage.pixel img {
  image-rendering: pixelated;
}

/* An image in the stage can be opened full size; a video cannot. */
.sp-stage.is-image {
  cursor: zoom-in;
}

.sp-stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  font-size: 0.82rem;
  color: #e8e8e8;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.sp-strip-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.sp-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  /* A flex item defaults to min-width:auto, which here means "as wide as
     all the thumbnails laid out in a row" — that pushed the whole page
     sideways on a phone. This lets it shrink and scroll instead. */
  min-width: 0;
}

.sp-strip::-webkit-scrollbar {
  display: none;
}

.sp-thumb {
  flex: 0 0 auto;
  width: 116px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  position: relative;
  opacity: 0.45;
  transition: opacity 0.15s ease;
  outline-offset: 2px;
}

.sp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-thumb.pixel img {
  image-rendering: pixelated;
}

.sp-thumb:hover,
.sp-thumb:focus-visible {
  opacity: 1;
}

.sp-thumb.is-active {
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--red-primary);
}

/* The trailer's thumbnail wears a play triangle so it reads as video. */
.sp-thumb.is-video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.9));
}

.sp-strip-arrow {
  flex: 0 0 auto;
  width: 22px;
  height: 65px;
  border: 1px solid #1e1e1e;
  background: var(--bg-card);
  color: var(--red-text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sp-strip-arrow:hover {
  background: var(--bg-card-hover);
  border-color: var(--red-primary);
}

.sp-strip-arrow[disabled] {
  opacity: 0.25;
  cursor: default;
}

/* --- Sidebar ------------------------------------------------------- */
.sp-side {
  background: var(--bg-card);
  border: 1px solid #1e1e1e;
  padding: 14px;
}

.sp-capsule {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.sp-capsule.pixel {
  image-rendering: pixelated;
}

.sp-blurb {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.sp-blurb strong {
  color: var(--text-primary);
}

.sp-meta {
  border-top: 1px solid #222;
  padding-top: 12px;
  margin-bottom: 16px;
}

.sp-meta > div {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 5px;
}

.sp-meta dt {
  color: var(--text-muted);
  flex: 0 0 auto;
}

.sp-meta dd {
  color: var(--text-secondary);
}

.sp-meta dd a {
  color: var(--red-text);
  text-decoration: none;
}

.sp-meta dd a:hover {
  text-decoration: underline;
}

.sp-tag-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sp-tag {
  background: rgba(230, 48, 40, 0.12);
  border: 1px solid rgba(230, 48, 40, 0.28);
  color: #ff7b74;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 2px;
}

/* --- Play box (a storefront's purchase panel) ---------------------- */
.sp-buy {
  background: var(--bg-card);
  border: 1px solid #1e1e1e;
  padding: 16px;
  margin-bottom: 30px;
}

.sp-buy h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.sp-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 14px 16px;
}

.sp-buy-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sp-buy-act {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.sp-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sp-btn-play {
  display: inline-block;
  padding: 11px 26px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: var(--red-button);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sp-btn-play:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 24px var(--red-glow);
  transform: translateY(-2px);
}

.sp-btn-ghost {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: 1px solid #333;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sp-btn-ghost:hover {
  border-color: var(--red-primary);
  color: var(--text-primary);
}

/* --- Section headings and body copy -------------------------------- */
.sp-h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  background: linear-gradient(to right, rgba(230, 48, 40, 0.16), rgba(230, 48, 40, 0));
  padding: 10px 14px;
  margin: 36px 0 18px;
  border-left: 3px solid var(--red-primary);
}

.sp-about p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.sp-about strong {
  color: var(--text-primary);
  font-weight: 600;
}

.sp-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.sp-features li {
  background: var(--bg-card);
  border: 1px solid #1e1e1e;
  border-left: 2px solid var(--red-primary);
  padding: 14px 16px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.sp-features strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 5px;
}

/* --- System requirements ------------------------------------------- */
.sp-sysreq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid #1e1e1e;
  padding: 18px;
}

.sp-sysreq h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.sp-sysreq ul {
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.sp-sysreq strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Reviews -------------------------------------------------------- */
.sp-reviews-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid #1e1e1e;
  padding: 16px;
  margin-bottom: 16px;
}

.sp-reviews-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* The verdict keeps the familiar traffic light: a red "Very Positive"
   would read as a warning no matter what the rest of the page is. */
.sp-reviews-verdict {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7ac36a;
}

.sp-reviews-verdict.mixed {
  color: #d9a441;
}

.sp-reviews-verdict.negative {
  color: var(--red-text);
}

.sp-reviews-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sp-review {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid #1e1e1e;
  padding: 16px;
  margin-bottom: 10px;
}

.sp-review-who {
  border-right: 1px solid #222;
  padding-right: 16px;
}

.sp-review-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--red-text);
  word-break: break-word;
}

.sp-review-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sp-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #7ac36a;
  margin-bottom: 6px;
}

.sp-verdict.down {
  color: var(--red-text);
}

.sp-thumbicon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.sp-verdict.down .sp-thumbicon {
  transform: rotate(180deg);
}

.sp-review-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sp-review-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sp-review-body {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.sp-reviews-empty {
  background: var(--bg-card);
  border: 1px solid #1e1e1e;
  padding: 30px 20px;
  text-align: center;
}

.sp-reviews-empty p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 18px;
}

.sp-reviews-foot {
  margin-top: 16px;
}

.sp-reviews-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- Write-a-review form --------------------------------------------- */
.sp-write {
  margin-top: 16px;
}

.sp-form {
  background: var(--bg-card);
  border: 1px solid #1e1e1e;
  padding: 20px;
  margin-top: 14px;
  max-width: 620px;
}

.sp-field {
  display: block;
  border: 0;
  margin-bottom: 16px;
}

.sp-field > span,
.sp-field legend {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.sp-field em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.sp-field input[type="text"],
.sp-field input[type="email"],
.sp-field input[type="password"],
.sp-field textarea {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 10px 12px;
  transition: border-color 0.15s ease;
}

.sp-field input[type="text"]:focus,
.sp-field input[type="email"]:focus,
.sp-field input[type="password"]:focus,
.sp-field textarea:focus {
  outline: none;
  border-color: var(--red-primary);
}

.sp-field textarea {
  resize: vertical;
}

/* The radios sit in the DOM 5 → 1 and are flipped on screen, so that a
   checked star can paint every star before it with a sibling selector. */
.sp-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.sp-stars input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.sp-stars label {
  font-size: 1.7rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 0 3px;
  transition: color 0.15s ease;
}

.sp-stars input:checked ~ label {
  color: var(--red-text);
}

.sp-stars label:hover,
.sp-stars label:hover ~ label {
  color: #ff7b74;
}

.sp-stars input:focus-visible + label {
  outline: 2px solid var(--red-primary);
  outline-offset: 2px;
}

.sp-star-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.sp-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 18px;
  cursor: pointer;
}

.sp-check input {
  margin-top: 3px;
  accent-color: var(--red-primary);
  flex: 0 0 auto;
}

/* Bots fill every field they can see; this one is not for people. */
.sp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sp-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.sp-form-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sp-write > .sp-form-msg { display: block; margin-top: 10px; }

.sp-form-msg.bad {
  color: #ff7b74;
}

.sp-form-msg a {
  color: var(--red-text);
}

.sp-form-done {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.sp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Lightbox -------------------------------------------------------- */
.sp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 2, 2, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}

.sp-lightbox.open {
  display: flex;
}

.sp-lightbox figure {
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}

.sp-lightbox img {
  max-width: 100%;
  max-height: 82vh;
  display: block;
  margin: 0 auto;
}

.sp-lightbox.pixel img {
  image-rendering: pixelated;
}

.sp-lightbox figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sp-lb-count {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sp-lb-btn {
  position: absolute;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid #333;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sp-lb-btn:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
}

.sp-lb-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
}

.sp-lb-prev,
.sp-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  font-size: 1.8rem;
}

.sp-lb-prev { left: 12px; }
.sp-lb-next { right: 12px; }

/* --- Back to the studio ---------------------------------------------- */
.sp-back {
  margin-top: 40px;
  text-align: center;
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .sp-top {
    grid-template-columns: minmax(0, 1fr);
  }

  /* On one column the capsule is redundant — the stage is already the art. */
  .sp-capsule {
    display: none;
  }

  .sp-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .sp-page {
    padding: 88px 0 60px;
  }

  .sp-title {
    font-size: 1.7rem;
  }

  .sp-review {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sp-review-who {
    border-right: 0;
    border-bottom: 1px solid #222;
    padding-right: 0;
    padding-bottom: 10px;
  }

  .sp-buy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-buy-act {
    justify-content: space-between;
  }

  .sp-lightbox {
    padding: 56px 12px;
  }

  .sp-lb-prev,
  .sp-lb-next {
    width: 34px;
    height: 52px;
    font-size: 1.4rem;
  }

  .sp-thumb {
    width: 96px;
  }
}

/* a game that is announced but not yet playable: the button stands where Play would, and does nothing */
.btn-soon, .sp-btn-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* --- Reviews: signing in, and your own reviews ----------------------- */
.sp-acct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.sp-acct-who {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.sp-acct-who b { color: var(--text-primary); font-weight: 600; }
.sp-btn-ghost { cursor: pointer; }
.sp-btn-small {
  padding: 5px 12px;
  font-size: 0.72rem;
}
.sp-form-head {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.sp-review-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.sp-review-stars {
  margin-left: 10px;
  color: #d9a93b;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

/* ---------- A sale: its banner over the buy box, and a strip at the top of the game's page ---------- */
.sp-sale {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #2a1206, #1a0d06 70%, #0a0a0a);
  border: 1px solid #7a3a10;
  border-left: 4px solid #f07a1a;
}
.sp-sale-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f59a3c;
}
.sp-sale-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.sp-sale-price s, .sp-sale-strip s { color: var(--text-muted); margin-right: 4px; }
.sp-sale-ends { font-size: 0.85rem; color: #d8a070; }
.sp-sale-strip {
  display: block;
  margin: 0 0 18px;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  background: #1c0e05;
  border: 1px solid #5a2a0c;
}
.sp-sale-strip b { color: #f59a3c; font-family: var(--font-heading); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.sp-sale-strip:hover { border-color: #f07a1a; color: var(--text-primary); }
.sale-badge {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a0d06;
  background: #f07a1a;
}
.sale-badge.on { display: inline-block; }

/* the owner's Admin button (only ever shown on the owner's computer) */
.nav-links a.nav-admin { color: var(--text-primary); padding: 6px 14px; border: 1px solid var(--red-primary); border-radius: 99px; }
.nav-links a.nav-admin::after { display: none; }
.nav-links a.nav-admin:hover { background: var(--red-primary); }

/* Commissions: what we can make, each shown with our own work */
.service-image { height: 200px; overflow: hidden; background: #0a0a0a; }
.service-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.service-card:hover .service-image img { transform: scale(1.05); }
.service-card .game-info { flex-direction: column; align-items: flex-start; gap: 0; }
.service-card .game-info p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin: 8px 0 0; }
.service-cta { text-align: center; margin-top: 36px; }
@media (max-width: 768px) { .service-image { height: 180px; } }

/* the buy box's details: a lead, three points, and the install help folded away */
.sp-buy-info { flex: 1 1 340px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }
.sp-buy-info b { color: var(--text-primary); font-weight: 600; }
.sp-buy-lead { margin: 0 0 8px; font-size: 0.98rem; }
.sp-buy-list { margin: 0 0 10px; padding: 0; list-style: none; }
.sp-buy-list li { position: relative; padding-left: 20px; margin: 4px 0; }
.sp-buy-list li::before { content: ''; position: absolute; left: 3px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--red-primary); }
.sp-buy-help { font-size: 0.85rem; color: var(--text-muted); }
.sp-buy-help summary { cursor: pointer; color: var(--text-secondary); width: max-content; max-width: 100%; }
.sp-buy-help summary:hover { color: var(--text-primary); }
.sp-buy-help p { margin: 8px 0 0; }
.sp-buy-help a { color: var(--red-text); }

/* after Send: the address, for people whose email app didn't open */
.form-after { margin: 14px 0 0; font-size: 0.9rem; color: var(--text-secondary); text-align: center; line-height: 1.7; }
.form-after a { color: var(--text-primary); }
.copy-mail { font: inherit; font-size: 0.8rem; margin-left: 6px; padding: 3px 10px; color: var(--text-secondary); background: transparent; border: 1px solid #333; border-radius: 99px; cursor: pointer; }
.copy-mail:hover { color: var(--text-primary); border-color: var(--red-primary); }

/* a game page pointing to its sibling */
.sp-xpromo { display: flex; align-items: center; gap: 16px; margin: -14px 0 30px; padding: 12px; background: linear-gradient(90deg, rgba(220, 60, 40, 0.10), transparent 70%), var(--bg-card); border: 1px solid #2a1a18; text-decoration: none; color: var(--text-secondary); transition: border-color 0.2s; }
.sp-xpromo:hover { border-color: var(--red-primary); }
.sp-xpromo img { width: 150px; height: 84px; object-fit: cover; flex: none; }
.sp-xpromo-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; line-height: 1.5; }
.sp-xpromo-kicker { font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); }
.sp-xpromo b { color: var(--text-primary); font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; }
.sp-xpromo-go { margin-left: auto; font-size: 2rem; color: var(--text-muted); padding: 0 8px; }
@media (max-width: 560px) { .sp-xpromo img { width: 96px; height: 96px; } .sp-xpromo-go { display: none; } }

/* the newest game, above the hero's buttons */
.hero-news { animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.55s both; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 auto 26px; padding: 7px 16px 7px 7px; border: 1px solid rgba(220, 60, 40, 0.45); border-radius: 99px; background: rgba(220, 60, 40, 0.08); color: var(--text-primary); text-decoration: none; font-size: 0.9rem; transition: background 0.2s, border-color 0.2s; }
.hero-news:hover { background: rgba(220, 60, 40, 0.18); border-color: var(--red-primary); }
.hero-news-tag { font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--red-button); color: #fff; padding: 3px 9px; border-radius: 99px; }
.hero-news-sale { display: none; color: #ffb35c; }
.hero-news-sale.on { display: inline; }
@media (max-width: 560px) { .hero-news { font-size: 0.82rem; border-radius: 18px; } .hero-news-dot { display: none; } }

/* footer: the games and the address, between the logo and the copyright */
.footer-content { gap: 20px 28px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
@media (max-width: 768px) { .footer-content { flex-direction: column; text-align: center; } }

/* keyboard users can see where they are (mouse clicks don't draw the ring) */
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; background: var(--red-button); color: #fff; text-decoration: none; font-family: var(--font-heading); letter-spacing: 0.06em; text-transform: uppercase; transition: top 0.15s; }
.skip-link:focus { top: 12px; }

/* behind the hero: a battle from Forester: Reckoning, faint and soft, drifting slowly */
.hero-bg { position: absolute; inset: -4%; background: url("media/cards/01-harbour.jpg") center 55% / cover no-repeat; opacity: 0.16; filter: blur(5px) saturate(0.6); pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 75%);
  animation: heroDrift 40s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: scale(1.04) translateX(-1.5%); } to { transform: scale(1.1) translateX(1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }

/* ===== Press kit ===== */
.pk-download { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin: 6px 0 34px; background: linear-gradient(90deg, rgba(220, 60, 40, 0.12), transparent 70%), var(--bg-card); border: 1px solid #2a1a18; }
.pk-download div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; color: var(--text-secondary); font-size: 0.92rem; }
.pk-download b { color: var(--text-primary); font-family: var(--font-heading); font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.pk-grid { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 28px; margin-bottom: 34px; align-items: start; }
.pk-facts { margin: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.pk-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.pk-facts dt { color: var(--text-muted); }
.pk-facts dd { margin: 0; color: var(--text-primary); }
.pk-facts a, .pk-links a, .sp-about a { color: var(--red-text); }
.pk-grid .pk-facts { padding: 16px; background: var(--bg-card); border: 1px solid #1e1e1e; }
.pk-game { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; margin-bottom: 16px; }
.pk-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border: 1px solid #222; }
.pk-art.pixel, .pk-shots img.pixel { image-rendering: pixelated; }
.pk-pitch { color: var(--text-secondary); line-height: 1.7; margin: 14px 0 10px; }
.pk-links { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.pk-links span { color: var(--text-muted); }
.pk-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 40px; }
.pk-shots a { display: block; overflow: hidden; border: 1px solid #1e1e1e; }
.pk-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform 0.4s; }
.pk-shots a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .pk-grid, .pk-game { grid-template-columns: minmax(0, 1fr); } .pk-facts div { grid-template-columns: 96px minmax(0, 1fr); } }
.pk-facts dd { overflow-wrap: anywhere; } /* (a long address in a fact breaks rather than pushing the box off a small phone) */

/* What's new: the latest updates, the newest open */
.sp-news { margin-bottom: 34px; }
.sp-news-wait, .sp-news-more { color: var(--text-muted); font-size: 0.88rem; }
.sp-news-item { background: var(--bg-card); border: 1px solid #1e1e1e; margin-bottom: 6px; }
.sp-news-item summary { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.sp-news-item summary::-webkit-details-marker { display: none; }
.sp-news-item summary b { color: var(--text-primary); font-weight: 600; flex: 1; }
.sp-news-v { font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--red-text); min-width: 58px; }
.sp-news-d { color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; }
.sp-news-item[open] summary { border-bottom: 1px solid #1e1e1e; }
.sp-news-item ul { margin: 0; padding: 10px 14px 12px 32px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.sp-news-item li { margin: 4px 0; }
@media (max-width: 560px) { .sp-news-item summary { flex-wrap: wrap; gap: 4px 10px; } .sp-news-d { width: 100%; padding-left: 68px; } }

/* the "scroll" hint needs room under the buttons; on short windows it would sit on top of them */
@media (max-height: 900px) { .scroll-indicator { display: none; } }

/* questions, folded */
.sp-faq { margin-bottom: 34px; }
.sp-faq details { background: var(--bg-card); border: 1px solid #1e1e1e; margin-bottom: 6px; }
.sp-faq summary { padding: 13px 16px; cursor: pointer; color: var(--text-primary); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: '+'; color: var(--red-text); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.sp-faq details[open] summary::after { content: '\2013'; }
.sp-faq p { margin: 0; padding: 0 16px 14px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* the buy box on a phone: a word that the game is played on a computer */
.sp-buy-phone { flex-basis: 100%; margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--red-primary); background: rgba(255, 255, 255, 0.03); color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }
.sp-buy-phone b { color: var(--text-primary); }
.sp-buy-send { display: block; margin-top: 10px; padding: 9px 14px; background: transparent; border: 1px solid #444; color: var(--text-primary); font: inherit; font-size: 0.85rem; cursor: pointer; }
.sp-buy-send:hover, .sp-buy-send:focus-visible { border-color: var(--red-primary); }

/* for anyone who has asked their computer for less motion: no pop-ins, no drifting, no smooth-scroll glide */
@media (prefers-reduced-motion: reduce) {
  html, .sp-strip { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* the game cards: each a column, so the status and buttons sit along one line at the foot of the row whatever the blurb's length */
.games-grid .game-card { display: flex; flex-direction: column; }
.games-grid .game-info-stacked { flex: 1; }
.games-grid .game-info-stacked .game-status { margin-top: auto; }
.games-grid .game-actions .btn-play { flex: 1 1 100%; text-align: center; }

/* ===== Privacy ===== */
.pv { max-width: 820px; }
.pv-lead { font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); margin: 6px 0 28px; }
.pv-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.pv-list li { position: relative; padding-left: 18px; line-height: 1.7; color: var(--text-secondary); }
.pv-list li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; background: var(--red-primary); }
.pv-list b { color: var(--text-primary); }
.pv-list code { font-size: 0.88em; background: rgba(255, 255, 255, 0.06); padding: 1px 6px; }
.pv-p { line-height: 1.7; color: var(--text-secondary); margin: 0 0 14px; }
.pv-p a, .pv-list a { color: var(--red-text); }
.pv-date { color: var(--text-muted); font-size: 0.88rem; margin-top: 18px; }

/* the menu never breaks a link over two lines; on middling widths it closes up instead */
.nav-links a { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1100px) { .nav-links { gap: clamp(14px, 2.2vw, 28px); } .nav-links a { font-size: 0.88rem; letter-spacing: 1px; } }

/* ===== Every update (Reckoning) ===== */
.up { max-width: 860px; }
.up-lead { font-size: 1.02rem; line-height: 1.7; color: var(--text-secondary); margin: 6px 0 22px; }
.up-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; position: sticky; top: 90px; z-index: 5; padding: 10px 0; background: var(--bg-primary); box-shadow: 0 10px 14px -10px var(--bg-primary); }
.up-search { flex: 1 1 280px; }
.up-search input { width: 100%; padding: 12px 14px; background: var(--bg-card); border: 1px solid #2a2a2a; color: var(--text-primary); font: inherit; font-size: 0.95rem; border-radius: 0; }
.up-search input:focus { outline: none; border-color: var(--red-primary); }
.up-count { color: var(--text-muted); font-size: 0.88rem; }
.up-day { font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-text); margin: 26px 0 10px; }
.up-dayl { display: grid; gap: 10px; }
.up-item { background: var(--bg-card); border: 1px solid #222; padding: 14px 18px; }
.up-item header { display: flex; gap: 12px; align-items: baseline; }
.up-item h3 { font-size: 1rem; color: var(--text-primary); margin: 0; font-weight: 600; }
.up-v { font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-muted); min-width: 58px; }
.up-item ul { margin: 8px 0 0 70px; padding: 0; color: var(--text-secondary); line-height: 1.65; font-size: 0.93rem; }
.up-item li { margin: 4px 0; }
.up-item mark { background: rgba(239, 74, 64, 0.3); color: inherit; padding: 0 2px; }
.up-wait { color: var(--text-muted); padding: 20px 0; }
.up-more-wrap { text-align: center; margin: 24px 0 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .up-item ul { margin-left: 18px; } .up-item header { flex-direction: column; gap: 2px; } .up-bar { position: static; background: none; box-shadow: none; } }
.sp-news-more a { color: var(--red-text); white-space: nowrap; }
.sp-review-stars-off { opacity: 0.22; }

/* the sidebar's review summary: a jump down to the reviews, in the verdict's own colour */
#spReviewSummary a { text-decoration: none; border-bottom: 1px dotted currentColor; }
#spReviewSummary.sp-tone-positive a { color: #7ac36a; }
#spReviewSummary.sp-tone-mixed a { color: #d9a441; }
#spReviewSummary.sp-tone-negative a { color: var(--red-text); }

/* ===== The mailing list band (news.js) ===== */
.news-band { padding: 56px 0; background: var(--bg-secondary); border-top: 1px solid #1f1f1f; }
.news-inner { display: grid; grid-template-columns: 1fr minmax(280px, 440px); gap: 32px; align-items: start; }
.news-copy h2 { font-family: var(--font-heading); font-weight: 600; font-size: 1.9rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.news-copy p { color: var(--text-secondary); max-width: 52ch; }
.news-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.news-label { grid-column: 1 / -1; font-size: .85rem; color: var(--text-muted); }
.news-form input[type=email] { min-width: 0; padding: 12px 14px; font: inherit; color: var(--text-primary); background: var(--bg-card); border: 1px solid #333; border-radius: 4px; }
.news-form input[type=email]:focus { outline: 2px solid var(--red-primary); outline-offset: 1px; border-color: transparent; }
.news-form .btn { margin: 0; }
.news-form .btn:disabled { opacity: .6; cursor: wait; }
.news-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news-msg { grid-column: 1 / -1; min-height: 1.4em; font-size: .95rem; color: var(--text-secondary); }
.news-msg.good { color: #8fd18f; }
.news-msg.bad { color: var(--red-text); }
.news-small { grid-column: 1 / -1; font-size: .8rem; color: var(--text-muted); }
.news-small a { color: var(--text-secondary); }
@media (max-width: 760px) { .news-inner { grid-template-columns: 1fr; gap: 18px; } .news-band { padding: 40px 0; } }

.sp-features a {
  color: var(--red-text);
}

/* --- Historical starts: one small card a year ------------------------ */
.sp-starts-intro {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 16px;
}

.sp-starts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.sp-starts li {
  background: var(--bg-card);
  border: 1px solid #1e1e1e;
  border-top: 2px solid var(--red-primary);
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.sp-starts .sp-start-year {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--red-text);
  line-height: 1.1;
}

.sp-starts b {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin: 2px 0 4px;
}
