:root {
  --bg: #0b0f14;
  --bg-accent: #1b2533;
  --card: rgba(255, 255, 255, 0.06);
  --text: #f7f4ef;
  --muted: #b6c2d0;
  --accent: #7A2D8C;
  --accent-2: #2ec4b6;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(46, 196, 182, 0.15), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255, 159, 28, 0.2), transparent 40%),
    linear-gradient(140deg, #0b0f14 0%, #0b1220 55%, #101b2a 100%);
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 32px 40px 24px;
  gap: 32px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
}

.brand h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.tagline {
  color: var(--muted);
  margin-top: 4px;
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(200px, 280px);
  gap: 24px;
  align-items: start;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.info-card {
  background: rgba(11, 18, 32, 0.72);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.info-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.info-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.info-card li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.description h2 {
  font-size: 32px;
  line-height: 1.1;
}

.description p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.actions button {
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.actions button:first-child {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
  box-shadow: var(--shadow);
}

.actions button:last-child {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stats {
  display: grid;
  gap: 12px;
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats .value {
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.game-area {
  flex: 1;
  display: flex;
}

.frame-shell {
  position: relative;
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  min-height: 60vh;
}

.frame-shell iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #0b0f14;
}

.frame-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.9), rgba(11, 15, 20, 0.65));
  color: var(--muted);
  gap: 8px;
  padding: 24px;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.frame-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .page {
    padding: 24px;
  }

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

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

@media (max-width: 600px) {
  .frame-shell {
    min-height: 55vh;
  }

  .description h2 {
    font-size: 26px;
  }
}
