:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, sans-serif;
  --bg: #0d0a0e;
  --surface: #141018;
  --surface-soft: #1d171f;
  --primary: #ff3d3d;
  --primary-soft: rgba(255, 61, 61, 0.18);
  --primary-strong: #ff1a1a;
  --accent: #f04d4d;
  --text: #f4f2f5;
  --muted: #b6aab8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 90px rgba(255, 61, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, rgba(255, 61, 61, 0.14), transparent 32%),
              linear-gradient(180deg, #0d0a0e 0%, #0a060b 100%);
  color: var(--text);
}

body {
  position: relative;
  line-height: 1.6;
  background-image: url('subrosageLogo.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(9, 8, 12, 0.44);
  pointer-events: none;
  z-index: 0;
}

.page-shell,
main,
header,
section {
  position: relative;
  z-index: 1;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.6rem);
  margin: 18px 0 18px;
  line-height: 0.96;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.primary {
  color: #111;
  background: linear-gradient(135deg, #ff3d3d, #ff1a1a);
  box-shadow: 0 16px 35px rgba(255, 61, 61, 0.24);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual {
  position: relative;
}

.glow-card {
  background: linear-gradient(180deg, rgba(255, 17, 17, 0.16), rgba(20, 16, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glow-card__top span {
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glow-card__top h2 {
  margin: 14px 0 18px;
  font-size: 2rem;
}

.glow-card__stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.glow-card__stats strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.glow-card__stats p {
  margin: 0;
  color: var(--muted);
}

.glow-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.glow-card__tags span {
  background: rgba(255, 61, 61, 0.14);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.section {
  margin-top: 56px;
}

.visitor-counter-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.section-header h2 {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 3.3vw, 2.8rem);
}

.section-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
}

.cards-grid .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(255, 61, 61, 0.12);
  border-color: rgba(255, 61, 61, 0.22);
}

.card-tag {
  display: inline-flex;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: center;
  margin-top: 52px;
}

.spotlight-card {
  background: linear-gradient(180deg, rgba(255, 61, 61, 0.08), rgba(20, 16, 24, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 28px;
  display: grid;
  gap: 22px;
}

.video-placeholder {
  position: relative;
  padding-top: 56.25%;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(255, 61, 61, 0.35), transparent 24%),
              linear-gradient(180deg, #150b11 0%, #0b070c 100%);
  overflow: hidden;
}

.play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  background: rgba(255, 61, 61, 0.9);
  clip-path: polygon(30% 22%, 30% 78%, 78% 50%);
  filter: drop-shadow(0 16px 36px rgba(255, 61, 61, 0.25));
}

.game-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255, 61, 61, 0.08), rgba(20, 16, 24, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 28px;
}

.game-promo p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.game-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255, 61, 61, 0.14), transparent 28%),
              linear-gradient(180deg, #0d0a0e 0%, #09050a 100%);
}

.game-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.game-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.game-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.game-area {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #090b17, #121623 30%, #090b17 100%);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(180deg, #090b17 0%, #121623 38%, #090b17 100%);
}

.game-controls {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 680px) {
  .game-promo {
    align-items: flex-start;
  }

  .game-header {
    align-items: flex-start;
  }

  .hud {
    font-size: 0.85rem;
  }
}

.video-info strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.video-info p {
  margin: 0;
  color: var(--muted);
}

.footer-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 36px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 58px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.game-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.game-frame {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 40px;
}

.game-frame canvas {
  width: 100%;
  display: block;
  max-height: 540px;
}

.game-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: rgba(255, 61, 61, 0.05);
}

.game-legend p {
  margin: 0;
  color: var(--text);
}

.game-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 960px) {
  .hero-section,
  .spotlight {
    grid-template-columns: 1fr;
  }

  .game-legend {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-grid .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 24px 18px 40px;
  }

  .hero-section {
    gap: 24px;
  }

  .cards-grid .grid {
    grid-template-columns: 1fr;
  }

  .footer-panel {
    flex-direction: column;
    align-items: stretch;
  }
}
