:root {
  --bg: #09070b;
  --panel: rgba(20, 15, 18, 0.78);
  --panel-solid: #151014;
  --text: #f7f0e8;
  --muted: #cabfb5;
  --line: rgba(255, 231, 212, 0.12);
  --accent: #c05739;
  --accent-strong: #f07c44;
  --accent-soft: rgba(240, 124, 68, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(192, 87, 57, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(88, 28, 18, 0.3), transparent 30%),
    linear-gradient(180deg, #0f0b0f 0%, #09070b 48%, #050406 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0 16px;
  backdrop-filter: blur(18px);
}

.brand,
h1,
h2,
h3 {
  font-family: "Cinzel", serif;
}

.brand {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.link-grid a:hover {
  color: var(--text);
}

.hero,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(24, 18, 22, 0.86), rgba(17, 13, 16, 0.92));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 32px;
  padding: 44px;
  min-height: 680px;
}

.hero::after,
.panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 87, 57, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.lede,
.section-heading p,
.copy-columns p,
.feature-grid p,
.faq-list p,
.support-note,
.tips-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.lede {
  max-width: 63ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff8f3;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.hero-card {
  align-self: end;
  display: grid;
  gap: 24px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(11, 9, 12, 0.8);
}

.hero-card img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
}

.hero-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.hero-card dt {
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.panel {
  margin-top: 26px;
  padding: 32px;
}

.section-heading {
  max-width: 66ch;
  margin-bottom: 24px;
}

.game-frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #060608;
}

.game-frame__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.game-frame__bar span {
  font-size: 0.95rem;
  color: var(--muted);
}

.game-frame__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-frame__actions button,
.game-frame__actions a {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.game-frame__actions button:hover,
.game-frame__actions a:hover {
  border-color: rgba(255, 231, 212, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

#game-player {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  background: #000;
}

.support-note {
  margin: 16px 2px 0;
}

.feature-grid,
.tips-grid,
.link-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
}

.feature-grid article,
.tips-grid article,
.faq-list article,
.link-grid a {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.copy-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.controls-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.controls-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.controls-row:first-child {
  border-top: 0;
}

.controls-row--head {
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.tips-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-grid a {
  display: flex;
  align-items: center;
  min-height: 92px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .copy-columns,
  .feature-grid,
  .tips-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .panel {
    padding: 24px;
    border-radius: 22px;
  }

  .controls-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #game-player {
    min-height: 540px;
  }
}
