/* RedClan Games — one stylesheet for every page.
   Colours come from the studio logo: charcoal #1f1f1f, clan red #c8102e, white. */
:root {
  --bg: #1f1f1f;
  --bg-deep: #161616;
  --panel: #262626;
  --line: #333;
  --red: #c8102e;
  --red-hi: #e3223f;
  --text: #f2f2f2;
  --muted: #a6a6a6;
  --radius: 14px;
  --wrap: 1080px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--red-hi);
  text-underline-offset: 3px;
}
a:hover {
  color: #ff5068;
}
:focus-visible {
  outline: 3px solid var(--red-hi);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  z-index: 10;
}

/* ── header / footer ─────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(22, 22, 22, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 15px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand b {
  color: var(--red-hi);
}
.nav {
  display: flex;
  gap: 22px;
}
.nav a {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}
.foot {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 14px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 36px;
}
.foot a {
  color: var(--muted);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ── shared pieces ───────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 10px;
  color: var(--red-hi);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 14px;
}
h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.01em;
}
.lead {
  color: #d6d6d6;
  font-size: clamp(18px, 2.2vw, 21px);
  max-width: 40em;
}
section {
  padding: 72px 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: var(--red-hi);
  color: #fff;
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px #4a4a4a;
}
.btn.ghost:hover {
  box-shadow: inset 0 0 0 2px var(--text);
}
.btn[aria-disabled='true'] {
  background: #3a3a3a;
  color: #cfcfcf;
  cursor: default;
  transform: none;
}
.slash {
  height: 6px;
  width: 64px;
  background: var(--red);
  transform: skewX(-24deg);
  margin: 0 0 22px;
}

/* ── studio home ─────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 0 24px;
  background: radial-gradient(60% 55% at 50% 38%, rgba(200, 16, 46, 0.16), transparent 70%);
}
.hero img {
  width: min(520px, 86vw);
  margin: 0 auto;
}
.hero p {
  margin: 26px auto 0;
  max-width: 34em;
  color: #d0d0d0;
  font-size: clamp(18px, 2.4vw, 22px);
}
.games {
  display: grid;
  gap: 22px;
}
.game-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.game-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  color: var(--text);
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card .body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.game-card h3 {
  font-size: 28px;
}
.game-card p {
  color: #cfcfcf;
  margin: 0 0 18px;
}
.tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.more {
  font-weight: 700;
  color: var(--red-hi);
}
.next {
  margin-top: 22px;
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px dashed #444;
  color: var(--muted);
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.values li {
  background: var(--panel);
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
}
.values b {
  display: block;
}
.values span {
  color: var(--muted);
  font-size: 15px;
}
.contact {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2a1015, #1f1f1f 60%);
  border: 1px solid #3a1d22;
}
.contact p {
  color: #d0d0d0;
  margin: 0 auto 22px;
  max-width: 32em;
}

/* ── game page ───────────────────────────────────────────────────── */
.game-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 56px 0 8px;
}
.game-hero .icon {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.game-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 8px;
}
.game-hero .by {
  color: var(--muted);
  margin: 0 0 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-color: #555 transparent;
}
.shots img {
  flex: 0 0 auto;
  width: min(240px, 62vw);
  border-radius: 16px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.feature h3::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--red);
  transform: skewX(-20deg);
}
.feature p {
  margin: 0;
  color: #cbcbcb;
  font-size: 16px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0;
}
.facts div {
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 14px 16px;
}
.facts dt {
  color: var(--muted);
  font-size: 13px;
}
.facts dd {
  margin: 2px 0 0;
  font-weight: 700;
}

/* ── legal pages ─────────────────────────────────────────────────── */
.doc {
  max-width: 760px;
  padding-top: 48px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
}
.doc h2 {
  font-size: 22px;
  margin-top: 40px;
}
.doc .muted {
  color: var(--muted);
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.table {
  overflow-x: auto;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 560px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.doc th {
  color: var(--muted);
  font-weight: 700;
}

/* ── small screens ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav {
    gap: 16px;
  }
  .nav .wide {
    display: none;
  }
  .game-card,
  .about {
    grid-template-columns: 1fr;
  }
  .game-card img {
    aspect-ratio: 1024 / 500;
  }
  .game-card .body {
    padding: 22px;
  }
  .game-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .game-hero .icon {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }
  .actions {
    justify-content: center;
  }
  section {
    padding-top: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .game-card {
    transition: none;
  }
}
