/* Color + typography system */
:root {
  --bg: #e9fbf7;
  --panel: #ffffff;
  --ink: #0c1f24;
  --muted: #56707a;
  --accent: #37d0c3;
  --accent-2: #ffb347;
  --accent-3: #7a5af8;
  --border: #d7e7e5;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

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

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  margin: 0;
  background: radial-gradient(circle at 10% 20%, #b8fff5 0, transparent 25%), radial-gradient(circle at 90% 10%, #d1c1ff 0, transparent 20%), linear-gradient(135deg, #dffff8 0%, #e9fbf7 60%, #e7f7ff 100%);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.background-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 50% at 20% 30%, rgba(55, 208, 195, 0.28), transparent 55%),
    radial-gradient(40% 40% at 80% 15%, rgba(122, 90, 248, 0.22), transparent 60%),
    radial-gradient(60% 60% at 70% 80%, rgba(255, 179, 71, 0.20), transparent 65%);
  z-index: 0;
}

.site-header {
  position: static;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin: 0 auto;
  max-width: 1200px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(215, 231, 229, 0.7);
  border-radius: var(--radius);
  margin-top: 16px;
  box-shadow: var(--shadow);
}

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

.logo {
  width: 44px;
  height: 44px;
}

.brand-text strong {
  display: block;
  font-family: "Cabinet Grotesk", "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(55, 208, 195, 0.15);
  color: #0d4f56;
}

.nav-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}

.pill.primary {
  background: linear-gradient(135deg, #37d0c3, #28b6a9);
  color: #08332f;
  box-shadow: 0 10px 30px rgba(55, 208, 195, 0.35);
}

.pill.ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
  color: var(--ink);
}

.pill.sm {
  padding: 8px 12px;
  font-size: 14px;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 32px auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  margin: 8px 0 12px;
  letter-spacing: -0.03em;
}

.lede {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 620px;
}

.hero-intro {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero-intro .lede {
  flex: 1 1 280px;
  margin: 0;
}


.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  flex-shrink: 0;
}

.hero-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(216, 255, 248, 0.9));
  border: 1px solid rgba(55, 208, 195, 0.2);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card .tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(122, 90, 248, 0.1);
  color: #5b3ed6;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-title {
  font-size: 20px;
  margin: 0 0 6px;
}

.card-sub {
  color: var(--muted);
  margin: 0 0 12px;
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat {
  font-weight: 700;
  color: #0d4f56;
}

.play-zone {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: minmax(170px, 200px) 1fr minmax(180px, 220px);
  gap: 16px;
  align-items: start;
  padding: 0 20px;
}

.rail {
  position: sticky;
  top: 100px;
  background: transparent;
  border: none;
  border-radius: 20px;
  box-shadow: none;
  padding: 4px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.rail .rail-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 6px;
}

.rail-item {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 0;
  display: block;
  overflow: hidden;
  text-align: center;
  transition: transform 0.15s ease;
}

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

.rail-item img {
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  width: 100%;
}

.rail-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  padding: 0 6px;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.rail-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 95%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.rail-item:hover::after,
.rail-item:hover span {
  opacity: 1;
  transform: translateY(0);
}

.embed-panel {
  background: var(--panel);
  border: 1px solid rgba(12, 31, 36, 0.06);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.embed-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.embed-head h2 {
  margin: 2px 0 6px;
  letter-spacing: -0.02em;
}

.embed-head .sub {
  margin: 0;
}

.embed-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.iframe-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 12px 0;
  background: #0c1f24;
}

.iframe-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.iframe-wrap iframe {
  width: 100%;
  height: 620px;
  display: block;
}

.embed-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.recommended {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 6px 0;
  letter-spacing: -0.02em;
}

.section-head .sub {
  margin: 0;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.game-row-6 {
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  overflow-x: auto;
}

.game-card {
  position: relative;
  background: transparent;
  border-radius: 20px;
  border: none;
  padding: 0;
  display: block;
  overflow: hidden;
  transition: transform 0.14s ease;
}

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

.game-card img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.game-card h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0;
  font-size: 17px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 95%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.game-card:hover::after,
.game-card:hover h3 {
  opacity: 1;
  transform: translateY(0);
}

.about {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

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

.info-card {
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-top: 0;
}

.info-card ul {
  padding-left: 18px;
  margin: 10px 0;
  color: var(--muted);
}

.info-card dl {
  margin: 0;
}

.info-card dt {
  font-weight: 700;
  margin-top: 10px;
}

.info-card dd {
  margin: 4px 0 0 0;
  color: var(--muted);
}

.blog-recs {
  max-width: 1200px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.blog-note {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.blog-note h2 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.blog-note p {
  margin: 8px 0;
  color: var(--muted);
}

.blog-note ul {
  margin: 10px 0 14px 18px;
  color: var(--muted);
}

.blog-note strong {
  color: var(--ink);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.blog-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

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

.blog-card .pill {
  align-self: flex-start;
}

.comments-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 60px;
  padding: 0 20px 30px;
}

#comments {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

#comments h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

#comments-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
  gap: 6px;
}

#comments-list {
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--muted);
}

.comment-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.comment-time {
  font-size: 12px;
  color: var(--muted);
}

.comment-content {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

#comment-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

#comment-form input,
#comment-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fffe;
  color: var(--ink);
  font-size: 14px;
}

#comment-form textarea {
  min-height: 100px;
  resize: vertical;
}

.comment-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  justify-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  line-height: 1.4;
}

.comment-checkbox input[type="checkbox"] {
  margin: 2px 0 0 0;
  width: 16px;
  height: 16px;
}

.comment-checkbox span {
  display: block;
  margin: 0;
  line-height: 1.5;
}

#comment-form button[type="submit"] {
  width: 200px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #37d0c3, #28b6a9);
  border: none;
  color: #08332f;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(55, 208, 195, 0.25);
}

#comment-form button[type="submit"]:hover {
  transform: translateY(-1px);
}

#load-more-comments {
  margin-top: 18px;
  padding: 8px 12px;
  background: rgba(12, 31, 36, 0.08);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

#load-more-comments:hover {
  background: rgba(55, 208, 195, 0.12);
}

/* Generic page layout */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 32px auto 60px;
  padding: 0 20px;
  display: grid;
  gap: 20px;
}

.page-hero {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(216, 255, 248, 0.88));
  border: 1px solid rgba(55, 208, 195, 0.2);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.page-content {
  display: grid;
  gap: 16px;
}

.page-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.page-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

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

.page-card ul {
  margin: 0 0 10px 18px;
  color: var(--muted);
}

.page-card li {
  margin-bottom: 6px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.contact-list li {
  margin-bottom: 8px;
}

.not-found {
  text-align: center;
  padding: 40px 20px;
}

.not-found h1 {
  margin-bottom: 10px;
}

.not-found p {
  color: var(--muted);
  margin: 0 0 14px;
}

.site-footer {
  background: #0c1f24;
  color: #e6f7f5;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at 10% 10%, rgba(55, 208, 195, 0.25), transparent 50%), radial-gradient(60% 60% at 90% 20%, rgba(122, 90, 248, 0.25), transparent 50%);
  opacity: 0.6;
}

.footer-top,
.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #d1eae7;
  font-weight: 600;
}

.footer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-bottom {
  margin-top: 18px;
  color: #a7c3c0;
}

code {
  background: rgba(12, 31, 36, 0.07);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .site-header {
    gap: 12px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .play-zone {
    grid-template-columns: 1fr;
  }

  .rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    position: static;
    max-height: none;
  }

  .iframe-wrap iframe {
    height: 520px;
  }

  .embed-head {
    flex-direction: column;
  }

  .embed-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .hero {
    margin-top: 12px;
  }

  .iframe-wrap iframe {
    height: 420px;
  }
}
