:root {
  --color-pink: #f32867;
  --color-magenta: #db1b6d;
  --color-yellow: #f7d117;
  --color-green: #b9e645;
  --color-teal: #6cd3a7;
  --color-dark: #1a1a2e;
  --color-darker: #0f0f1e;
  --color-white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #f32867 0%, #db1b6d 100%);
  --gradient-secondary: linear-gradient(135deg, #f7d117 0%, #b9e645 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.demo-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-darker);
  color: #f5f5f5;
  line-height: 1.6;
  min-height: 100vh;
}

.demo-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(15, 15, 30, 0.92);
  border-bottom: 1px solid rgba(108, 211, 167, 0.2);
}

.demo-header a {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.demo-header a:hover {
  color: var(--color-yellow);
}

.demo-header-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.demo-hero {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  overflow: hidden;
}

.demo-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.demo-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 30, 0.55) 0%, rgba(15, 15, 30, 0.85) 55%, var(--color-darker) 100%),
    radial-gradient(circle at 50% 20%, rgba(247, 209, 23, 0.12) 0%, transparent 55%);
}

.demo-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.demo-game-logo {
  width: min(320px, 80vw);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.demo-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--color-white);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.demo-tagline {
  margin: 0 auto 1.5rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.demo-btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(243, 40, 103, 0.35);
}

.demo-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(108, 211, 167, 0.45);
}

.demo-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

.game-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(247, 209, 23, 0.35);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.game-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-frame-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(15, 15, 30, 0.98)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.03) 12px,
      rgba(255, 255, 255, 0.03) 24px
    );
  color: rgba(255, 255, 255, 0.7);
}

.game-frame-placeholder strong {
  color: var(--color-yellow);
  font-size: 1.1rem;
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem;
}

.demo-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.demo-specs th,
.demo-specs td {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.demo-specs th {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  width: 42%;
}

.demo-specs td {
  color: rgba(255, 255, 255, 0.92);
}

.demo-features {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.demo-features li + li {
  margin-top: 0.35rem;
}

.demo-prose {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-prose h2 {
  margin: 0 0 0.75rem;
  color: var(--color-white);
  font-size: 1.35rem;
}

.demo-prose p {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.78);
}

.demo-prose p:last-child {
  margin-bottom: 0;
}

.demo-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(247, 209, 23, 0.08);
  border: 1px solid rgba(247, 209, 23, 0.25);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.demo-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.demo-footer a {
  color: var(--color-teal);
  text-decoration: none;
}

.demo-footer a:hover {
  color: var(--color-yellow);
}

@media (max-width: 960px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .game-frame-wrap {
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  .demo-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-hero {
    padding-top: 2rem;
  }

  .demo-actions {
    width: 100%;
  }

  .demo-btn {
    width: 100%;
  }
}
