/* ═══════════════════════════════════════
   PLAYGROUND PAGE - WORLD-CLASS DESIGN SYSTEM
   ═══════════════════════════════════════ */

/* Page Container & Global Architecture */
.play-page {
  background: var(--paper, #fcfbf9);
  color: var(--ink, #111111);
}

.play-page main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 32px 120px;
}

/* Hide legacy index rail to keep layout ultra-clean */
.pg-index {
  display: none !important;
}

/* ─── HERO SECTION ─── */
.pg-hero {
  position: relative;
  margin-bottom: 80px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}

.pg-hero .label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #e34c26);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pg-hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2.5px;
  color: var(--ink, #111111);
  margin-bottom: 16px;
}

.pg-hero h1 em {
  font-style: italic;
  font-family: 'Georgia', serif;
  font-weight: 400;
  color: var(--accent, #e34c26);
}

.pg-hero>div>p:not(.label) {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted, #666666);
  max-width: 580px;
  margin-bottom: 28px;
}

/* Micro Stats Banner */
.pg-stats-banner {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 32px;
}

.pg-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-stat-pill .stat-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink, #111111);
}

.pg-stat-pill .stat-label {
  font-size: 11px;
  color: var(--muted, #777777);
  font-weight: 600;
}

.pg-stat-divider {
  width: 1px;
  height: 28px;
  background: #e5e0d8;
}

/* Filter Pill Switcher */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.filters button {
  padding: 11px 22px;
  background: #ffffff;
  border: 1.5px solid #e2dfdc;
  border-radius: 99px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #111111);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filters button:hover {
  border-color: var(--ink, #111111);
  transform: translateY(-2px);
}

.filters button.active {
  background: var(--ink, #111111);
  color: #ffffff;
  border-color: var(--ink, #111111);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.pg-hero-visual {
  width: 100%;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f0ece7;
}

.pg-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── SECTION HEADINGS ─── */
.pg-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e3dc;
}

.pg-section-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--ink, #111111);
  margin: 0;
}

.pg-section-header h2 em {
  font-style: italic;
  font-family: 'Georgia', serif;
  font-weight: 400;
  color: var(--accent, #e34c26);
}

.pg-section-header a {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #111111);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.pg-section-header a:hover {
  color: var(--accent, #e34c26);
  transform: translateX(3px);
}

/* ─── 1. EXPERIMENTS GRID & LOAD MORE ─── */
.experiment-grid-section {
  margin-bottom: 100px;
}

.load-more-wrapper {
  margin-top: 40px;
  text-align: center;
}

.load-more-btn {
  padding: 14px 34px;
  background: var(--ink, #111111);
  color: #ffffff;
  border: 1.5px solid var(--ink, #111111);
  border-radius: 99px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.load-more-btn b {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent, #ff7a59);
}

.load-more-btn:hover {
  background: var(--accent, #e34c26);
  border-color: var(--accent, #e34c26);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(227, 76, 38, 0.35);
}

.load-more-btn:hover b {
  color: #ffffff;
}


.experiment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.play-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.play-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(227, 76, 38, 0.3);
}

.play-card a.cms-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.play-card .card-art {
  width: 100%;
  height: 230px;
  overflow: hidden;
  position: relative;
  background: #f4efea;
}

.play-card .card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.play-card:hover .card-art img {
  transform: scale(1.06);
}

.play-card .card-text {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.play-card .card-text small {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent, #e34c26);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.play-card .card-text h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink, #111111);
  margin: 0 0 8px;
  line-height: 1.25;
}

.play-card .card-text p {
  font-size: 13px;
  line-height: 1.6;
  color: #555555;
  margin: 0 0 18px;
  flex-grow: 1;
}

.play-card .card-link-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink, #111111);
  margin-top: auto;
  transition: color 0.3s ease;
}

.play-card:hover .card-link-row {
  color: var(--accent, #e34c26);
}

.play-card .card-text b {
  display: inline-grid;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  place-items: center;
  font-size: 11px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.play-card:hover .card-text b {
  background: var(--accent, #e34c26);
  color: #ffffff;
  transform: translate(2px, -2px);
}

/* ─── 2. SKETCHES SECTION ─── */
.sketches-section {
  margin-bottom: 100px;
}

.sketch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.sketch-grid i {
  height: 160px;
  padding: 20px;
  color: #555555;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  text-align: center;
  background-color: #fcfbfa;
  background-image: radial-gradient(#d6d1c9 1px, transparent 1px);
  background-size: 12px 12px;
  border: 1.5px dashed #dcd6ce;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sketch-grid i:hover {
  transform: translateY(-4px);
  border-color: var(--accent, #e34c26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.cms-sketch {
  position: relative !important;
  height: 160px !important;
  padding: 10px !important;
  overflow: hidden !important;
  background-color: #fcfbfa !important;
  background-image: radial-gradient(#d6d1c9 1px, transparent 1px) !important;
  background-size: 12px 12px !important;
  border: 1.5px dashed #dcd6ce !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.cms-sketch:hover {
  transform: translateY(-4px) !important;
  border-color: var(--accent, #e34c26) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06) !important;
}

.cms-sketch img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.cms-sketch:hover img {
  transform: scale(1.03) !important;
}

.cms-sketch span {
  position: absolute !important;
  bottom: 8px !important;
  left: 8px !important;
  right: 8px !important;
  padding: 6px 10px !important;
  background: rgba(252, 251, 250, 0.94) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  color: #111111 !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-align: center !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.cms-sketch i {
  height: 100% !important;
  width: 100% !important;
  border: none !important;
  border-radius: 12px !important;
  background: transparent !important;
}


/* ─── 3. FUN ZONE SECTION ─── */
.fun-section {
  margin-bottom: 80px;
}

.fun-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.fun-card,
.fun-grid article {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.fun-card:hover,
.fun-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.fun-art {
  height: 130px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.fun-art.color {
  background: radial-gradient(circle at 30% 25%, #ffc6bd, transparent 27%), radial-gradient(circle at 70% 70%, #d4c0ff, transparent 40%), linear-gradient(130deg, #ffac9d, #d1baff);
}

.fun-art.type {
  color: #1269f4;
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(125deg, #fff5ef, #fde2ca);
}

.fun-art.doodle {
  color: #111111;
  font-size: 33px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.fun-art.micro {
  color: #dd70f9;
  font-size: 34px;
  letter-spacing: 12px;
  background: repeating-linear-gradient(135deg, #121225, #121225 2px, #201146 3px, #201146 17px);
}

.fun-art.glass {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #38bdf8;
  font-size: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fun-art.audio {
  background: linear-gradient(135deg, #09090b, #1c1917);
  color: #f43f5e;
  font-size: 26px;
  letter-spacing: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fun-card .fun-text,
.fun-grid article h3,
.fun-grid article p,
.fun-grid article small {
  padding: 0 20px;
}

.fun-grid article h3 {
  font-size: 16px;
  font-weight: 800;
  color: #111111;
  margin: 14px 0 6px;
}

.fun-grid article p {
  font-size: 12px;
  line-height: 1.55;
  color: #666666;
  margin: 0 0 12px;
}

.fun-grid article small {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent, #e34c26);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 16px;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .play-page main {
    padding: 30px 24px 80px;
  }

  .pg-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 50px;
  }

  .pg-hero h1 {
    font-size: 38px;
  }

  .pg-hero-visual {
    height: 220px;
  }

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