/* ============================================
   GRAPAT STORE THEME — Main Stylesheet
   ============================================ */

/* DESIGN TOKENS */
:root {
  --cream: #F4EFE6;
  --paper: #FAF6EE;
  --ink: #2B2418;
  --ink-soft: #5C5142;
  --wood: #C9A876;
  --wood-dark: #8B6F47;
  --r-red:    #C8553D;
  --r-orange: #E29A4E;
  --r-yellow: #E8C547;
  --r-green:  #87A878;
  --r-blue:   #6B95B5;
  --r-purple: #9B7AA8;
  --r-pink:   #D89AA8;
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --max-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
p { color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px;
  overflow: hidden;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(43, 36, 24, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 2rem;
}
.site-logo-text, .custom-logo-link {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  color: var(--ink);
}
.site-logo-text .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--r-red);
  display: inline-block;
  transform: translateY(-2px);
}
.custom-logo { max-height: 50px; width: auto; }

.nav-links, .primary-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.92rem;
}
.nav-links a, .primary-menu a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover, .primary-menu a:hover { color: var(--ink); }
.nav-links a::after, .primary-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .primary-menu a:hover::after { width: 100%; }

.nav-cta {
  display: flex; gap: 1.25rem; align-items: center;
  font-size: 0.92rem;
}
.cart-icon { display: inline-flex; gap: 0.4rem; }

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 900px) {
  .nav-links, .primary-navigation { display: none; }
  .mobile-menu-toggle { display: flex; }
  .nav-cta .account-link { display: none; }
  .primary-navigation.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid rgba(43, 36, 24, 0.1);
  }
  .primary-navigation.open .nav-links,
  .primary-navigation.open .primary-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* HERO */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 8rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}
.hero-eyebrow .line { width: 32px; height: 1px; background: var(--ink-soft); }
.hero h1 { margin-bottom: 1.75rem; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--wood-dark); }
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 32em;
  margin-bottom: 2.5rem;
  color: var(--ink-soft);
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
}
.hero-visual svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 25px 40px rgba(43, 36, 24, 0.15));
}
.hero-callout {
  margin-top: 3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 24em;
  padding-left: 1rem;
  border-left: 1px solid var(--wood);
}

/* BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* MARQUEE */
.marquee {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(43, 36, 24, 0.1);
  border-bottom: 1px solid rgba(43, 36, 24, 0.1);
  overflow: hidden;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: grapat-scroll 35s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  width: max-content;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 4rem;
}
.marquee-track span::after {
  content: '✦';
  color: var(--wood);
  font-style: normal;
}
@keyframes grapat-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 12em; }
.section-head .sub { max-width: 22em; font-size: 0.95rem; }

/* COLLECTIONS */
.collections {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.collection-card:hover { transform: translateY(-6px); }
.collection-card:hover .card-bg { transform: scale(1.05); }
.collection-card:hover .card-arrow { transform: translate(4px, -4px); }
.card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-content {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 500;
}
.card-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}
.card-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.card-title small {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
.c-large { grid-column: span 7; aspect-ratio: 5/4; }
.c-small { grid-column: span 5; }
.c-third { grid-column: span 4; }
@media (max-width: 900px) {
  .c-large, .c-small, .c-third { grid-column: span 12; }
}
.bg-nins { background: var(--r-red); }
.bg-mandala { background: var(--r-blue); }
.bg-loose { background: var(--r-green); }
.bg-calendar { background: var(--r-yellow); }
.bg-seasonal { background: var(--r-purple); }

/* PHILOSOPHY */
.philosophy { background: var(--paper); }
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .philosophy-grid { grid-template-columns: 1fr; } }
.philosophy-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.philosophy-lead em { font-style: italic; color: var(--wood-dark); }
.philosophy-body p { font-size: 1.02rem; margin-bottom: 1.5rem; }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding-top: 2rem;
  border-top: 1px solid rgba(43, 36, 24, 0.15);
}
.pillar-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--wood-dark);
  margin-bottom: 0.5rem;
  font-style: italic;
}
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.pillar p { font-size: 0.92rem; }

/* PRODUCTS */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
@media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .products { grid-template-columns: 1fr; } }
.product-card {
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-img {
  aspect-ratio: 4/5;
  background: var(--cream);
  border-radius: 2px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-label {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--paper);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: var(--ink);
}
.product-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.product-card .price {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.placeholder-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

/* JOURNAL */
.journal { background: var(--ink); color: var(--paper); }
.journal h2 { color: var(--paper); }
.journal p { color: rgba(250, 246, 238, 0.7); }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 800px) { .journal-grid { grid-template-columns: 1fr; } }
.article {
  padding: 2rem 0;
  border-top: 1px solid rgba(250, 246, 238, 0.2);
  cursor: pointer;
  transition: padding 0.3s ease;
  display: block;
}
.article:hover { padding-left: 1rem; }
.article-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 1rem;
}
.article h3 {
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.article p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.article-read {
  font-size: 0.85rem;
  color: var(--wood);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(43, 36, 24, 0.15);
  padding: 1.75rem 0;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 400;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 1rem;
  font-size: 0.98rem;
  max-width: 60ch;
}

/* NEWSLETTER */
.newsletter {
  background: var(--wood);
  color: var(--ink);
  text-align: center;
}
.newsletter h2 {
  font-style: italic;
  max-width: 14em;
  margin: 0 auto 1.5rem;
}
.newsletter p {
  color: var(--ink);
  max-width: 30em;
  margin: 0 auto 2.5rem;
}
.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 0.5rem;
  background: var(--paper);
  padding: 0.4rem;
  border-radius: 999px;
}
.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
}

/* FOOTER */
.site-footer {
  background: var(--paper);
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-menu li { margin-bottom: 0.65rem; }
.footer-menu a {
  color: var(--ink);
  transition: color 0.2s;
}
.footer-menu a:hover { color: var(--wood-dark); }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 22em;
  line-height: 1.4;
  color: var(--ink);
  margin-top: 1rem;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(43, 36, 24, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--ink); }
.disclaimer {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 50em;
  margin-top: 1rem;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* SINGLE POST & PAGES */
.single-post-main, .page-main { padding: clamp(2rem, 5vw, 4rem) 0; }
.entry-header { margin-bottom: 3rem; text-align: center; }
.entry-header h1 { margin-bottom: 1rem; }
.entry-meta { color: var(--ink-soft); font-size: 0.9rem; }
.entry-thumbnail { margin: 2rem 0; }
.entry-thumbnail img { border-radius: 4px; }
.entry-content {
  font-size: 1.05rem;
  line-height: 1.7;
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2 { margin: 3rem 0 1rem; }
.entry-content h3 { margin: 2rem 0 1rem; }
.entry-content a {
  color: var(--wood-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content img { border-radius: 4px; margin: 2rem 0; }

/* POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 4rem 0;
}
@media (max-width: 800px) { .posts-grid { grid-template-columns: 1fr; } }
.article-card { display: block; }
.article-thumb { display: block; margin-bottom: 1.25rem; }
.article-thumb img { aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.article-body h2 {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}
.article-body h2 a { color: var(--ink); transition: color 0.2s; }
.article-body h2 a:hover { color: var(--wood-dark); }
.article-body p { font-size: 0.95rem; margin-bottom: 1rem; }

/* WOOCOMMERCE GRID */
.woo-main { padding: 3rem 0; }
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.75rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 500px) { .woocommerce ul.products { grid-template-columns: 1fr !important; } }
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  text-align: left !important;
}
.woocommerce ul.products li.product a img {
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 1rem !important;
}
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--serif) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  padding: 0 !important;
  margin: 0 0 0.25rem !important;
  color: var(--ink);
}
.woocommerce ul.products li.product .price {
  color: var(--ink-soft) !important;
  font-size: 0.9rem !important;
  font-family: var(--sans) !important;
}
.woocommerce ul.products li.product .button {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 999px !important;
  padding: 0.7rem 1.2rem !important;
  font-family: var(--sans) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  margin-top: 0.75rem !important;
}

/* SINGLE PRODUCT */
.woocommerce div.product .product_title {
  font-family: var(--serif) !important;
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  margin-bottom: 1rem !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--sans) !important;
  font-size: 1.5rem !important;
  color: var(--ink) !important;
  font-weight: 500 !important;
}
.woocommerce div.product .single_add_to_cart_button {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 999px !important;
  padding: 1rem 2rem !important;
  font-family: var(--sans) !important;
  font-weight: 500 !important;
}

/* ============================================
   MANDALA GAME — Interactive section
   ============================================ */

.game-section {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, #EFE7D6 50%, var(--paper) 100%);
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

/* Soft animated glow behind the game */
.game-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(232, 197, 71, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(135, 168, 120, 0.12), transparent 50%),
    radial-gradient(circle at 60% 20%, rgba(216, 154, 168, 0.1), transparent 50%);
  animation: glow-drift 20s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.15) rotate(8deg); }
}

.game-intro {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.game-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wood-dark);
  margin-bottom: 1.5rem;
}
.game-eyebrow .line {
  width: 40px;
  height: 1px;
  background: var(--wood-dark);
}

.game-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.game-title em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--wood-dark);
  margin-top: 0.3rem;
}

.game-lead {
  max-width: 32em;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* Game stage layout */
.game-stage {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .game-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* The play board — circular mandala area */
.mandala-board {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 50%;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  filter: drop-shadow(0 30px 60px rgba(43, 36, 24, 0.15));
  transition: filter 0.4s ease;
}
.mandala-board:hover {
  filter: drop-shadow(0 35px 70px rgba(43, 36, 24, 0.2));
}
.mandala-board.is-drop-over {
  filter: drop-shadow(0 35px 80px rgba(200, 85, 61, 0.3));
}

.mandala-guides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.mandala-pieces-placed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.mandala-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--wood-dark);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.mandala-hint span {
  letter-spacing: 0.05em;
}
.mandala-board.has-pieces .mandala-hint {
  opacity: 0;
}

/* Placed pieces — absolutely positioned via JS */
.placed-piece {
  position: absolute;
  pointer-events: none;
  animation: piece-drop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

@keyframes piece-drop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Piece tray */
.piece-tray {
  background: var(--paper);
  border-radius: 4px;
  padding: 1.5rem;
  border: 1px solid rgba(43, 36, 24, 0.08);
  box-shadow: 0 10px 30px rgba(43, 36, 24, 0.06);
}

.tray-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(43, 36, 24, 0.08);
}
.tray-label > span:first-child {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}
.tray-hint {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-style: italic;
}

.piece-categories {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.piece-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

/* Individual piece — clickable + draggable */
.piece {
  aspect-ratio: 1 / 1;
  cursor: grab;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
  touch-action: none;
  -webkit-user-drag: element;
}
.piece:hover {
  background: rgba(201, 168, 118, 0.12);
  transform: scale(1.12);
}
.piece:active {
  cursor: grabbing;
  transform: scale(0.95);
}
.piece.is-dragging {
  opacity: 0.4;
}

/* Piece color variables */
.p-red    { --piece-color: #C8553D; }
.p-orange { --piece-color: #E29A4E; }
.p-yellow { --piece-color: #E8C547; }
.p-green  { --piece-color: #87A878; }
.p-blue   { --piece-color: #6B95B5; }
.p-purple { --piece-color: #9B7AA8; }
.p-pink   { --piece-color: #D89AA8; }

/* Piece shapes — drawn with pure CSS */
.p-dot::before {
  content: '';
  width: 65%;
  height: 65%;
  background: var(--piece-color);
  border-radius: 50%;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1), 0 2px 4px rgba(43,36,24,0.15);
}
.p-flower::before {
  content: '';
  width: 70%;
  height: 70%;
  background:
    radial-gradient(circle at 50% 20%, var(--piece-color) 22%, transparent 23%),
    radial-gradient(circle at 80% 50%, var(--piece-color) 22%, transparent 23%),
    radial-gradient(circle at 50% 80%, var(--piece-color) 22%, transparent 23%),
    radial-gradient(circle at 20% 50%, var(--piece-color) 22%, transparent 23%),
    radial-gradient(circle at 50% 50%, var(--piece-color) 18%, transparent 19%);
  filter: drop-shadow(0 2px 3px rgba(43,36,24,0.15));
}
.p-leaf::before {
  content: '';
  width: 65%;
  height: 65%;
  background: var(--piece-color);
  border-radius: 0 100% 0 100%;
  transform: rotate(-45deg);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1);
}
.p-diamond::before {
  content: '';
  width: 60%;
  height: 60%;
  background: var(--piece-color);
  transform: rotate(45deg);
  border-radius: 4px;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1), 0 2px 4px rgba(43,36,24,0.15);
}

/* Selected piece state */
.piece.is-selected {
  background: var(--ink);
}
.piece.is-selected::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid var(--paper);
  border-radius: 6px;
  opacity: 0.4;
}

/* Game controls */
.game-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(43, 36, 24, 0.08);
}

.symmetry-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--ink);
  flex: 1;
}
.symmetry-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(43, 36, 24, 0.2);
  border-radius: 999px;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.symmetry-toggle input:checked + .toggle-slider {
  background: var(--r-red);
}
.symmetry-toggle input:checked + .toggle-slider::after {
  transform: translateX(16px);
}
.toggle-label {
  font-weight: 500;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 1px solid rgba(43, 36, 24, 0.1);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-10deg);
}
.btn-icon:active { transform: scale(0.92); }

/* Outro CTA */
.game-outro {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}
.game-outro p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 36em;
  margin: 0 auto;
}
.game-link {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--r-red);
  font-weight: 500;
  font-style: normal;
  text-decoration: none;
  border-bottom: 1px solid var(--r-red);
  padding-bottom: 1px;
  transition: all 0.2s ease;
}
.game-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ============================================
   ENHANCED SECTION ANIMATIONS
   ============================================ */

/* Hero — staggered fade up on load */
.hero h1 {
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .hero-eyebrow {
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero .hero-lead {
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero .hero-cta {
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero .hero-callout {
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}
.hero-visual {
  animation: fade-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-visual svg {
  animation: gentle-float 8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-1deg); }
}

/* Collection cards — staggered reveal */
.collections .collection-card {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.collections .collection-card.reveal { opacity: 0; transform: translateY(40px); }
.collections .collection-card.reveal.in { opacity: 1; transform: translateY(0); }
.collections .collection-card:nth-child(1).in { transition-delay: 0.05s; }
.collections .collection-card:nth-child(2).in { transition-delay: 0.15s; }
.collections .collection-card:nth-child(3).in { transition-delay: 0.25s; }
.collections .collection-card:nth-child(4).in { transition-delay: 0.35s; }
.collections .collection-card:nth-child(5).in { transition-delay: 0.45s; }

/* Pillars — sequential reveal */
.pillars .pillar:nth-child(1).in { transition-delay: 0.1s; }
.pillars .pillar:nth-child(2).in { transition-delay: 0.25s; }
.pillars .pillar:nth-child(3).in { transition-delay: 0.4s; }

/* Product cards — sequential reveal */
.products .product-card:nth-child(1).in { transition-delay: 0.05s; }
.products .product-card:nth-child(2).in { transition-delay: 0.15s; }
.products .product-card:nth-child(3).in { transition-delay: 0.25s; }
.products .product-card:nth-child(4).in { transition-delay: 0.35s; }

/* Article (journal) — sequential reveal */
.journal-grid .article:nth-child(1).in { transition-delay: 0.05s; }
.journal-grid .article:nth-child(2).in { transition-delay: 0.2s; }
.journal-grid .article:nth-child(3).in { transition-delay: 0.35s; }

/* Subtle hero text underline animation on words */
.hero h1 em {
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 2px;
  background: var(--wood);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}
@keyframes underline-grow {
  to { transform: scaleX(1); }
}

/* Marquee — pause on hover so people can read */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Card hover — add a subtle shine sweep */
.collection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}
.collection-card:hover::before {
  transform: translateX(100%);
}

/* Section heading underline reveal */
.section-head h2 {
  position: relative;
  display: inline-block;
}

/* FAQ items — smooth content reveal */
.faq-item[open] p {
  animation: faq-expand 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes faq-expand {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .game-bg-glow { animation: none; }
}
