/* ============================================================
   Base & Reset
   ============================================================ */

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

:root {
  --yellow: #F0E010;
  --yellow-card: #F5CC00;
  --black: #000000;
  --black-soft: #1a1a1a;
  --gray: #555555;
  --font: 'Poppins', sans-serif;
  --max-width: 760px;
  --container-width: 1100px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--yellow);
  color: var(--black);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Global link style for blog/games sections
   ============================================================ */

.site-main a {
  text-decoration: none;
  color: inherit;
}

.site-main a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Exceptions: elements with their own hover treatment */
.site-main .tag:hover,
.site-main .callout-button:hover {
  text-decoration: none;
  color: var(--yellow);
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main {
  flex: 1;
  padding: 3rem 0 4rem;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background-color: var(--yellow);
  border-bottom: 3px solid var(--black);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-title--hidden {
  visibility: hidden;
  pointer-events: none;
}

.site-title:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-nav-waitlist {
  background-color: var(--black);
  color: var(--yellow) !important;
  padding: 0.35em 1em;
  border-radius: 100px;
  font-weight: 600;
}

.site-nav-waitlist:hover {
  text-decoration: none !important;
  opacity: 0.85;
}

/* ============================================================
   Home Page — full-width layout overrides
   ============================================================ */

body.is-home .site-main {
  padding: 0;
}

body.is-home .site-header,
body.is-games-list .site-header {
  border-bottom: none;
  position: static;
}

body.is-games-list .site-header {
  background-color: #C6EFE0;
}

body.is-game-single {
  background-color: #f5f4f0;
}

body.is-game-single .site-header {
  background-color: #f5f4f0;
  border-bottom: none;
}

body.is-home .site-header .container {
  justify-content: flex-end;
}

body.is-home .site-main > .container {
  max-width: none;
  padding: 0;
}

/* Colored sections */

.home-first {
  background-color: #F0E010;
  text-align: center;
}

.home-second {
  background-color: #10E0F0;
  min-height: 30vh;
}

.home-second-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 6rem 8vw;
}

@media (max-width: 700px) {
  .home-second-inner {
    flex-direction: column;
  }

  .home-second-image-placeholder {
    width: 100%;
  }
}

.home-second-text {
  flex: 1 1 50%;
}

.home-second-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--black);
  margin: 0 0 1.5rem 0;
}

.home-second-heading .fw-bold {
  font-weight: 700;
}

.home-second-heading .fw-light {
  font-weight: 300;
}

.home-second-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  margin: 0;
  max-width: 38em;
}

.home-second-image-placeholder {
  flex: 1 1 45%;
  aspect-ratio: 4 / 3;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-height: 240px;
}

.home-second-image {
  flex: 1 1 45%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.home-third {
  background-color: #2133F5;
  min-height: 30vh;
}

.home-third-inner {
  padding: 6rem 8vw;
}

.home-third-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--yellow);
  margin: 0 0 3rem 0;
}

.home-third-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.home-third-card {
  border-radius: 12px;
  padding: 2rem;
}

.home-third-card.card-a { background-color: #DFF5A8; }
.home-third-card.card-b { background-color: #FFF0D6; }
.home-third-card.card-c { background-color: #C6EFE0; }
.home-third-card.card-d { background-color: #FFD6C4; }
.home-third-card.card-e { background-color: #B8D8FF; }
.home-third-card.card-f { background-color: #CABFFF; }

.home-third-card-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.home-third-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.5rem 0;
}

.home-third-card-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.home-third-image-wrap {
  text-align: center;
  margin-top: 3rem;
}

.home-third-image {
  max-width: min(1200px, 100%);
  height: auto;
  display: inline-block;
}

@media (max-width: 900px) {
  .home-third-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .home-third-grid {
    grid-template-columns: 1fr;
  }
}

.home-fourth {
  background-color: #FFC0CB;
  min-height: 30vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 8vw 0;
}

.home-fourth-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--black);
  margin: 0 0 1.5rem;
  align-self: flex-start;
}

.home-fourth-heading-bold {
  font-weight: 700;
}

.home-fourth-heading-light {
  font-weight: 300;
}

.home-fourth-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--black);
  text-align: left;
  align-self: flex-start;
  margin: 0 0 4rem;
}

@media (min-width: 800px) {
  .home-fourth-text {
    max-width: 33%;
  }
}

.home-fourth-image {
  width: 100%;
  height: auto;
  display: block;
}

.home-games {
  background-color: #C6EFE0;
  padding: 6rem 8vw;
}

.home-games-outer {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.home-games-left {
  width: 100%;
}

.home-games-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--black);
  margin: 0;
}

.home-games-subheading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.65);
  margin: 1rem 0 0;
}

.home-games-link {
  color: var(--black);
  font-weight: 600;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.home-games-link:hover {
  opacity: 0.65;
}

.home-games-heading-bold {
  font-weight: 700;
}

.home-games-heading-light {
  font-weight: 300;
}

.home-games-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.home-games-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* Card deck: all cards stacked in same grid cell */
.home-games-deck {
  display: grid;
  width: 100%;
  max-width: 380px;
  /* padding gives room for rotated cards to peek out */
  padding: 20px;
  box-sizing: border-box;
}

.home-games-deck-card {
  grid-area: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.35s ease;
  cursor: pointer;
}

.home-games-deck-card.is-leaving {
  opacity: 0;
}

.home-games-deck-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stack positions set via JS data-stack-pos attribute */
.home-games-deck-card[data-stack-pos="0"] {
  transform: rotate(0deg) translate(0, 0);
  z-index: 10;
}
.home-games-deck-card[data-stack-pos="1"] {
  transform: rotate(-5deg) translate(-14px, 8px);
}
.home-games-deck-card[data-stack-pos="2"] {
  transform: rotate(4deg) translate(10px, 14px);
}
.home-games-deck-card[data-stack-pos="3"] {
  transform: rotate(-2deg) translate(-6px, 18px);
}

/* Info panel: text + dots */
.home-games-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* All text panels stacked; active one visible */
.home-games-text {
  display: grid;
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.home-games-text.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Wrap text panels in a grid so they overlap cleanly */
.home-games-info {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
}

.home-games-texts {
  display: grid;
  /* All text children stack in the same cell */
}

.home-games-texts .home-games-text {
  grid-area: 1 / 1;
}

.home-games-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  margin: 0 0 0.5rem;
}

.home-games-card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.65);
  margin: 0;
}

.home-games-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.home-games-dots {
  display: flex;
  gap: 0.5rem;
}

.home-games-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.home-games-dot.is-active {
  background-color: var(--black);
  transform: scale(1.3);
}

.home-games-prev,
.home-games-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.3);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.home-games-prev:hover,
.home-games-next:hover {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.5);
}

/* Wide layout: heading left, cards+controls right */
@media (min-width: 1100px) {
  .home-games-outer {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
  }

  .home-games-left {
    flex: 0 0 40%;
  }

  .home-games-right {
    flex: 1;
  }

  .home-games-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .home-games-deck {
    flex: 0 0 380px;
  }

  .home-games-info {
    flex: 1;
    text-align: left;
    align-items: flex-start;
  }

  .home-games-controls {
    justify-content: center;
  }

  .home-games-card-title {
    font-size: 1.8rem;
  }

  .home-games-card-desc {
    font-size: 1.05rem;
  }
}

.home-fifth {
  min-height: 30vh;
}

/* Title */

.home-title {
  font-family: var(--font);
  font-size: 9vw;
  font-weight: 700;
  padding-top: 5vh;
  padding-bottom: 5vh;
  text-align: center;
  color: var(--black);
}

/* Hero image — full viewport width, breaking out of any remaining constraints */

.home-hero-image {
  width: 100vw;
  height: auto;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Waitlist form */

.home-form-wrap {
  max-width: 360px;
  margin: 64px auto 64px;
  padding: 0 1.5em;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#waitlist-form input {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.35em 0.75em;
  border: 1px solid #999;
  border-radius: 4px;
  background-color: #fff;
  color: var(--black);
  width: 100%;
}

#waitlist-form input:focus {
  outline: none;
  border-color: var(--black);
}

.waitlist-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 0.25rem;
}

#waitlist-form input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  accent-color: var(--black);
}

#waitlist-form button[type="submit"] {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6em 1.2em;
  background-color: rgb(242, 255, 0);
  color: var(--black);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: opacity 0.2s ease;
}

#waitlist-form button[type="submit"]:hover:not(:disabled) {
  opacity: 0.8;
}

#waitlist-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: default;
}

#form-status {
  font-family: var(--font);
  font-size: 0.9rem;
  margin-top: 0.6rem;
  min-height: 1.4em;
}

#back-btn {
  font-family: var(--font);
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0.4rem;
  text-decoration: underline;
  color: var(--black);
}

/* ============================================================
   Post List
   ============================================================ */

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  border-bottom: 3px solid var(--black);
  padding-bottom: 0.75rem;
}

.post-list {
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-card {
  border: 2px solid var(--black);
  background-color: var(--yellow-card);
  margin-bottom: 1.75rem;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.post-card-inner {
  padding: 1.5rem 1.75rem;
}

.post-card-inner.has-image {
  display: flex;
  align-items: stretch;
}

.post-card-content {
  flex: 1;
  min-width: 0;
}

.post-card-image {
  flex-shrink: 0;
  width: 220px;
  /* Negative margins on top, right, and bottom cancel out .post-card-inner's
     padding so the image extends flush to the card's border on three sides.
     The positive left margin preserves the gap between text and image. */
  margin: -1.5rem -1.75rem -1.5rem 1.5rem;
  border-left: 2px solid var(--black);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 480px) {
  .post-card-inner.has-image {
    flex-direction: column;
  }

  .post-card-image {
    width: auto;
    /* On mobile the image stacks below the text. Negative margins on left,
       right, and bottom cancel the parent padding so it spans the full card
       width and sits flush at the bottom. Positive top margin adds spacing
       above the image. */
    margin: 1.5rem -1.75rem -1.5rem -1.75rem;
    border-left: none;
    border-top: 2px solid var(--black);
  }

  .post-card-image img {
    height: 180px;
  }
}

.no-posts {
  font-size: 1.1rem;
  color: var(--gray);
}

/* ============================================================
   Post Meta
   ============================================================ */

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-meta time {
  color: var(--black-soft);
}

.post-author::before {
  content: '·';
  margin-right: 0.75rem;
}

.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-main .tag {
  display: inline-block;
  background-color: var(--yellow);
  color: var(--black);
  border: 1.5px solid var(--black);
  padding: 0.1em 0.55em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.site-main .tag:hover {
  background-color: var(--black);
}

/* ============================================================
   Post Titles & Summaries
   ============================================================ */

.post-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.post-title a {
  color: var(--black);
}

.post-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}


.post-summary {
  font-size: 0.97rem;
  color: var(--black-soft);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.read-more {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  padding: 0.15em 0.4em 0.15em 0;
  background-color: transparent;
  position: relative;
  z-index: 1;
}



/* ============================================================
   Single Post
   ============================================================ */

.post-single {
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2.5rem;
  border-bottom: 3px solid var(--black);
  padding-bottom: 1.5rem;
}

.post-header .post-title {
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ============================================================
   Post Content (Markdown Rendering)
   ============================================================ */

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}

.post-content h1 { font-size: 1.9rem; }
.post-content h2 { font-size: 1.55rem; border-bottom: 2px solid var(--black); padding-bottom: 0.3rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.05rem; }

.post-content p {
  margin-bottom: 1.3rem;
}

.post-content a,
.game-section a {
  color: var(--black);
  font-weight: 600;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.3rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.35rem;
}

.post-content blockquote {
  border-left: 4px solid var(--black);
  background-color: var(--yellow);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88em;
  background-color: var(--yellow);
  border: 1.5px solid var(--black);
  padding: 0.1em 0.35em;
}

.post-content pre {
  background-color: var(--black-soft);
  color: #f8f8f2;
  border: 2px solid var(--black);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--black);
  display: block;
  margin: 1.5rem auto;
}

/* ============================================================
   Video Shortcode
   ============================================================ */

.video-embed {
  margin: 1.5rem 0;
}

.video-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--black);
}

.video-embed video {
  width: 100%;
  border: 2px solid var(--black);
  display: block;
}

.video-embed figcaption {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.5rem;
  text-align: center;
}

.video-error {
  color: var(--gray);
  font-style: italic;
}

/* ============================================================
   Callout Button Shortcode
   ============================================================ */

.callout-button {
  display: block;
  width: fit-content;
  margin: 1rem auto;
  background-color: #FF6600;
  color: var(--black);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.4em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.callout-button:hover {
  background-color: #4DA8DA;
}

.post-content hr {
  border: none;
  border-top: 2px solid var(--black);
  margin: 2rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.post-content th,
.post-content td {
  border: 2px solid var(--black);
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.post-content th {
  background-color: var(--yellow);
  font-weight: 600;
}

/* ============================================================
   Post Footer
   ============================================================ */

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--black);
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}

.back-link--top {
  margin-bottom: 1.5rem;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background-color: var(--black);
  color: var(--yellow);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
  .page-title {
    font-size: 1.7rem;
  }

  .post-card-inner {
    padding: 1.25rem;
  }

  .post-header .post-title {
    font-size: 1.8rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.35rem;
  }
}

/* ============================================================
   Game Badges (shared between list and single)
   ============================================================ */

.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.game-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15em 0.6em;
  border: 1.5px solid var(--black);
}

.game-badge--age {
  background-color: var(--yellow);
}

.game-badge--players {
  background-color: var(--yellow);
}

.game-badge--input {
  background-color: var(--black);
  color: var(--yellow);
}

/* ============================================================
   Games Index (list page)
   ============================================================ */

body.is-games-list {
  background-color: #C6EFE0;
}

.games-page {
  max-width: 1060px;
  margin: 0 auto;
}

.games-page .page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.04em;
  color: var(--black);
  border-bottom-color: var(--black);
}

.games-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.games-filter-select {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.07);
  color: var(--black);
  border: none;
  border-radius: 100px;
  padding: 0.4em 2em 0.4em 1em;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75em top 55%;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.game-card {
  background-color: var(--yellow-card);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}

/* Cycle through the 6 home-section pastel colors */
.game-card:nth-child(6n+1) { background-color: #DFF5A8; }
.game-card:nth-child(6n+2) { background-color: #FFF0D6; }
.game-card:nth-child(6n+3) { background-color: #C6EFE0; }
.game-card:nth-child(6n+4) { background-color: #FFD6C4; }
.game-card:nth-child(6n+5) { background-color: #B8D8FF; }
.game-card:nth-child(6n+6) { background-color: #CABFFF; }

.game-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  padding: 1.1rem 1.4rem 1.4rem;
  flex: 1;
}

.game-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.game-card-title a {
  color: var(--black);
}

.game-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.game-card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.6;
  margin: 0;
}

.game-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Editorial badge style on single game pages */
.game-single .game-badge {
  background-color: transparent;
  border: none;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.45);
}

.game-single .game-badge--input {
  color: rgba(0, 0, 0, 0.45);
}

.game-single .game-badges {
  gap: 1rem;
}

.games-no-results {
  font-size: 1rem;
  color: var(--gray);
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Game Single Page
   ============================================================ */

.game-single {
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.game-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.game-header .game-badges {
  margin-bottom: 1rem;
}

.game-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 1rem;
}

.game-lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.65);
  margin: 0;
}

.game-section {
  margin-bottom: 3rem;
}

.game-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 1rem;
  padding-bottom: 0;
  border-bottom: none;
}

.game-section-content {
  font-size: 1rem;
  line-height: 1.75;
}

.game-section-content ul {
  padding-left: 1.2em;
  margin: 0;
}

.game-screenshots-soon {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
  margin: 0;
}

.game-parent-instructions {
  background-color: #e8f4e8;
  border: none;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}

.game-parent-instructions .game-section-title {
  border-bottom: none;
}

/* ============================================================
   Screenshot Carousel
   ============================================================ */

.carousel {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background-color: #e8e7e3;
}

.carousel-slides {
  position: relative;
  background-color: #e8e7e3;
  line-height: 0;
}

.carousel-slide {
  display: none;
  position: absolute;
  inset: 0;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background-color: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-prev,
.carousel-next {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2em 0.8em;
  cursor: pointer;
  line-height: 1;
  color: rgba(0, 0, 0, 0.6);
  transition: background-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--black);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.carousel-dot.active {
  background-color: var(--black);
  transform: scale(1.3);
}

/* ============================================================
   Buy Page
   ============================================================ */

body.is-buy {
  background-color: #fafaf8;
}

body.is-buy .site-header {
  background-color: #fafaf8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.buy-page {
  padding: 3rem 0 6rem;
}

.buy-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 860px) {
  .buy-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
}

/* Images */

.buy-images {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 1.5rem;
}

.buy-image-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #efefec;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.buy-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(0, 0, 0, 0.3);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

.buy-image-thumbs {
  display: flex;
  gap: 0.5rem;
}

.buy-thumb-placeholder {
  flex: 1;
  aspect-ratio: 1 / 1;
  background-color: #efefec;
  border-radius: 10px;
}

/* Config panel */

.buy-config {
  flex: 0 0 40%;
}

.buy-config-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.buy-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}

.buy-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.5);
  margin-top: -1.25rem;
}

.buy-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.buy-base-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.buy-shipping-note {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.45);
}

/* Sections */

.buy-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.buy-section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.buy-selected-name {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--black);
  font-size: 0.85rem;
}

/* Color swatches */

.buy-colors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}

.buy-color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.4rem;
  cursor: pointer;
  transition: border-color 0.15s;
  position: relative;
}

.buy-color-swatch img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.buy-color-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.6);
}

.buy-color-swatch:hover:not(:disabled) {
  border-color: rgba(0, 0, 0, 0.2);
}

.buy-color-swatch.is-selected {
  border-color: var(--black);
}

.buy-color-swatch.is-out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
}

.buy-color-oos {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.55rem;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Add-ons */

.buy-addons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.buy-addon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.buy-addon:has(input:checked) {
  border-color: var(--black);
}

.buy-addon input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--black);
}

.buy-addon-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.buy-addon-image {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}

.buy-addon-image--placeholder {
  background-color: #efefec;
}

.buy-addon-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.buy-addon-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.buy-addon-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.45);
}

.buy-addon-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  margin-left: auto;
}

/* CTA */

.buy-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.buy-total {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.buy-total span {
  font-size: 1.5rem;
}

.buy-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9em 1.5em;
  background-color: var(--black);
  color: var(--yellow);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}

.buy-btn:hover:not(:disabled) {
  opacity: 0.85;
}

.buy-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.buy-error {
  font-size: 0.85rem;
  color: #c00;
  min-height: 1.2em;
}

/* Success page */

.buy-success {
  max-width: 520px;
  margin: 6rem auto;
  text-align: center;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.buy-success-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.buy-success-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.65);
}

.buy-success-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: var(--black);
}

/* ============================================================
   Buy Elements — payment form (phase 2)
   ============================================================ */

.pe-dev-banner {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: #fffbe6;
  border-bottom: 1px solid #f0d800;
  color: #7a6000;
  text-align: center;
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
}

.pe-dev-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.pe-dev-card .pe-input {
  background-color: #f8f8f5;
  color: rgba(0, 0, 0, 0.45);
  font-family: monospace;
  font-size: 0.9rem;
}

.pe-dev-card-note {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.35);
  font-style: italic;
}

.pe-back-btn {
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

.pe-back-btn:hover {
  color: var(--black);
}

.pe-order-summary {
  background-color: #f0f0ec;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(0, 0, 0, 0.7);
}

.pe-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pe-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pe-input {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.6em 0.85em;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background-color: #fff;
  color: var(--black);
  width: 100%;
  transition: border-color 0.15s;
}

.pe-input:focus {
  outline: none;
  border-color: var(--black);
}

.pe-input--short {
  width: auto;
  flex: 1;
}

.pe-address {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pe-address-row {
  display: flex;
  gap: 0.5rem;
}

.pe-stripe-wrap {
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
  min-height: 60px;
}

.pe-stripe-loading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 0.5rem;
}

/* Phase 3: inline success */

.pe-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 1rem;
}

.pe-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #2ecc71;
  color: #fff;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-success-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pe-success-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.6);
  max-width: 28em;
}
