/*
  Homepage-only playground direction.
  Keep this file scoped under body.home-playground so the new homepage look
  does not leak into the quiz, result, wall, or pricing flows.
*/

body.home-playground {
  --play-ink: #171412;
  --play-paper: #fffdf0;
  --play-cream: #fff8bb;
  --play-blue: #bff2ff;
  --play-pink: #ffc1df;
  --play-lime: #e7ff75;
  --play-yellow: #ffd872;
  --play-red: #ff4637;
  --play-shadow: 8px 8px 0 var(--play-ink);
  --play-shadow-soft: 5px 5px 0 rgba(23, 20, 18, 0.18);
  min-height: 100vh;
  color: var(--play-ink);
  background:
    linear-gradient(115deg, rgba(255, 216, 78, 0.72) 0 16%, transparent 16% 100%),
    linear-gradient(255deg, rgba(88, 205, 255, 0.6) 0 17%, transparent 17% 100%),
    linear-gradient(20deg, transparent 0 65%, rgba(255, 105, 169, 0.5) 65% 80%, transparent 80%),
    linear-gradient(135deg, #fff9bd 0%, #f8fff3 43%, #e7f7ff 100%);
}

body.home-playground::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 20, 18, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 18, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000 0 78%, transparent 100%);
}

body.home-playground .theme-page {
  width: min(1520px, calc(100% - 28px));
  margin: 14px auto 34px;
}

body.home-playground .theme-window {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--play-ink);
  border-radius: 30px;
  background: rgba(255, 253, 240, 0.62);
  box-shadow: 12px 12px 0 rgba(23, 20, 18, 0.16);
}

body.home-playground .theme-window::after {
  display: none;
}

body.home-playground .board-page {
  padding: 0;
  gap: 0;
}

body.home-playground .topbar {
  position: relative;
  z-index: 4;
  min-height: 72px;
  padding: 14px 22px;
  border-bottom: 3px solid var(--play-ink);
  background: rgba(255, 253, 240, 0.88);
}

body.home-playground .brand-mark {
  color: var(--play-ink);
  font-family: "Noto Serif SC", serif;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
}

body.home-playground .board-nav {
  gap: 8px;
}

body.home-playground .nav-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(23, 20, 18, 0.72);
  font-size: 13px;
  font-weight: 950;
}

body.home-playground .nav-link:hover,
body.home-playground .nav-link.active {
  border-color: var(--play-ink);
  background: var(--play-paper);
  color: var(--play-ink);
  box-shadow: 3px 3px 0 rgba(23, 20, 18, 0.22);
}

body.home-playground .btn {
  min-height: 50px;
  border: 3px solid var(--play-ink);
  border-radius: 999px;
  padding: 0 22px;
  background: var(--play-paper);
  color: var(--play-ink);
  font-weight: 1000;
  box-shadow: 5px 5px 0 rgba(23, 20, 18, 0.18);
}

body.home-playground .btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 rgba(23, 20, 18, 0.28);
}

body.home-playground .btn-primary {
  border-color: var(--play-ink);
  background: var(--play-red);
  color: #fffaf0;
  box-shadow: var(--play-shadow);
}

body.home-playground .btn-secondary {
  background: #fffef5;
}

body.home-playground .eyebrow,
body.home-playground .section-kicker,
body.home-playground .stat-kicker {
  color: var(--play-ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

body.home-playground .home-play-hero {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 54px 58px 46px;
}

body.home-playground .home-play-hero::before,
body.home-playground .home-play-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border: 3px solid var(--play-ink);
  border-radius: 8px;
}

body.home-playground .home-play-hero::before {
  width: 210px;
  height: 150px;
  left: -80px;
  top: 72px;
  background: rgba(255, 216, 78, 0.72);
  transform: rotate(-12deg);
}

body.home-playground .home-play-hero::after {
  width: 300px;
  height: 150px;
  right: -44px;
  bottom: 48px;
  background: rgba(255, 105, 169, 0.52);
  transform: rotate(10deg);
}

body.home-playground .play-copy-panel,
body.home-playground .play-tiles-panel {
  position: relative;
  z-index: 1;
}

body.home-playground .play-copy-panel {
  display: grid;
  gap: 22px;
  align-content: center;
}

body.home-playground .play-kicker {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 11px 15px;
  border: 3px solid var(--play-ink);
  border-radius: 999px;
  background: var(--play-paper);
  box-shadow: 5px 5px 0 var(--play-ink);
}

body.home-playground .hero-title {
  max-width: 670px;
  margin: 0;
  color: var(--play-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 132px;
  font-weight: 1000;
  line-height: 0.84;
  letter-spacing: 0;
}

body.home-playground .hero-title span {
  display: inline;
  color: #fffbd1;
  text-shadow:
    4px 0 0 var(--play-ink),
    -4px 0 0 var(--play-ink),
    0 4px 0 var(--play-ink),
    0 -4px 0 var(--play-ink),
    7px 7px 0 var(--play-ink);
}

body.home-playground .lead {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--play-ink);
  font-size: 23px;
  font-weight: 850;
  line-height: 1.46;
}

body.home-playground .muted {
  margin: 0;
  color: rgba(23, 20, 18, 0.68);
  font-weight: 800;
  line-height: 1.55;
}

body.home-playground .hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

body.home-playground .play-tiles-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

body.home-playground .play-tile {
  min-height: 182px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border: 3px solid var(--play-ink);
  border-radius: 8px;
  padding: 18px;
  background: var(--play-paper);
  box-shadow: var(--play-shadow);
  color: var(--play-ink);
  transform: rotate(-2deg);
}

body.home-playground .play-tile:nth-child(2) {
  transform: translateY(34px) rotate(-4deg);
}

body.home-playground .play-tile:nth-child(3) {
  transform: rotate(3deg);
}

body.home-playground .play-tile:nth-child(4) {
  transform: translateY(10px) rotate(-2deg);
}

body.home-playground .play-tile:nth-child(5) {
  transform: translateY(46px) rotate(2deg);
}

body.home-playground .play-tile:nth-child(6) {
  transform: translateY(10px) rotate(-3deg);
}

body.home-playground .play-tile:hover {
  transform: translate(-2px, -2px) rotate(-2deg);
  box-shadow: 11px 11px 0 var(--play-ink);
}

body.home-playground .play-tile.is-soon:hover {
  transform: rotate(-2deg);
}

body.home-playground .play-tile-main {
  background: #fffef6;
}

body.home-playground .play-tile-love {
  background: var(--play-lime);
}

body.home-playground .play-tile-mood {
  background: var(--play-pink);
}

body.home-playground .play-tile-social {
  background: var(--play-blue);
}

body.home-playground .play-tile-pass {
  background: #fffef6;
}

body.home-playground .play-tile-year {
  background: var(--play-yellow);
}

body.home-playground .tile-emoji {
  font-size: 42px;
  line-height: 1;
}

body.home-playground .play-tile strong {
  display: block;
  font-size: 25px;
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: 0;
}

body.home-playground .play-tile small {
  display: block;
  color: rgba(23, 20, 18, 0.64);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

body.home-playground .soft-chip {
  width: max-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--play-ink);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 253, 240, 0.8);
  color: var(--play-ink);
  font-size: 12px;
  font-weight: 950;
}

body.home-playground .play-marquee {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  overflow: hidden;
  border-top: 3px solid var(--play-ink);
  border-bottom: 3px solid var(--play-ink);
  background: var(--play-paper);
  color: var(--play-ink);
  white-space: nowrap;
}

body.home-playground .play-marquee span {
  min-width: 50%;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 1000;
}

body.home-playground .play-feature-row,
body.home-playground .play-matrix-section,
body.home-playground .play-metric-ribbon,
body.home-playground .play-bottom-cta {
  padding: 34px;
}

body.home-playground .play-feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border-bottom: 3px solid var(--play-ink);
  background: rgba(255, 253, 240, 0.36);
}

body.home-playground .theme-card,
body.home-playground .theme-panel {
  border: 3px solid var(--play-ink);
  border-radius: 8px;
  background: rgba(255, 253, 240, 0.82);
  box-shadow: var(--play-shadow-soft);
}

body.home-playground .board-feature-card {
  min-height: 166px;
  padding: 18px;
}

body.home-playground .feature-icon {
  width: 42px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 3px solid var(--play-ink);
  border-radius: 999px;
  background: var(--play-red);
  color: #fffaf0;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--play-ink);
}

body.home-playground .board-feature-card h3 {
  margin: 0;
  color: var(--play-ink);
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: 0;
}

body.home-playground .board-feature-card p,
body.home-playground .matrix-card p {
  margin: 0;
  color: rgba(23, 20, 18, 0.66);
  font-weight: 750;
  line-height: 1.6;
}

body.home-playground .play-matrix-section,
body.home-playground .play-metric-ribbon {
  border-width: 0 0 3px;
  border-radius: 0;
  box-shadow: none;
  background: rgba(255, 253, 240, 0.5);
}

body.home-playground .section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

body.home-playground .matrix-section h2,
body.home-playground .play-bottom-cta h2 {
  max-width: 760px;
  margin: 0;
  color: var(--play-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 48px;
  font-weight: 1000;
  line-height: 0.98;
  letter-spacing: 0;
}

body.home-playground .matrix-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding: 0 0 12px;
}

body.home-playground .matrix-card {
  min-height: 172px;
  display: grid;
  gap: 10px;
  align-content: start;
  border: 3px solid var(--play-ink);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 240, 0.86);
  box-shadow: 5px 5px 0 rgba(23, 20, 18, 0.14);
}

body.home-playground .matrix-card.active {
  background: #fff0c9;
  box-shadow: var(--play-shadow);
}

body.home-playground .matrix-card.is-muted {
  background: rgba(255, 253, 240, 0.46);
  color: rgba(23, 20, 18, 0.72);
}

body.home-playground .matrix-card strong {
  color: var(--play-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 23px;
  font-weight: 1000;
  letter-spacing: 0;
}

body.home-playground .play-metric-ribbon .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.home-playground .stat-card {
  border: 3px solid var(--play-ink);
  border-radius: 8px;
  background: rgba(255, 253, 240, 0.78);
  box-shadow: 5px 5px 0 rgba(23, 20, 18, 0.13);
}

body.home-playground .stat-card strong {
  color: var(--play-ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 46px;
  font-weight: 950;
}

body.home-playground .stat-copy {
  margin-top: 8px;
}

body.home-playground .play-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 253, 240, 0.58);
}

@media (max-width: 1100px) {
  body.home-playground .home-play-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 44px 34px 42px;
  }

  body.home-playground .play-tiles-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.home-playground .play-tile:nth-child(n) {
    transform: none;
  }

  body.home-playground .play-tile:hover,
  body.home-playground .play-tile.is-soon:hover {
    transform: translate(-2px, -2px);
  }

  body.home-playground .play-feature-row,
  body.home-playground .play-metric-ribbon .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.home-playground {
    background:
      linear-gradient(115deg, rgba(255, 216, 78, 0.66) 0 19%, transparent 19% 100%),
      linear-gradient(250deg, rgba(88, 205, 255, 0.5) 0 22%, transparent 22% 100%),
      linear-gradient(135deg, #fff9bd 0%, #f8fff3 48%, #e7f7ff 100%);
  }

  body.home-playground::before {
    background-size: 30px 30px;
  }

  body.home-playground .theme-page {
    width: 100%;
    margin: 0;
  }

  body.home-playground .theme-window {
    min-height: 100vh;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.home-playground .topbar {
    align-items: flex-start;
    padding: 13px 14px;
  }

  body.home-playground .brand-mark {
    font-size: 32px;
  }

  body.home-playground .board-nav {
    justify-content: flex-start;
  }

  body.home-playground .nav-link {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.home-playground .home-play-hero {
    padding: 42px 20px 28px;
    gap: 26px;
  }

  body.home-playground .home-play-hero::before {
    width: 130px;
    height: 92px;
    left: -54px;
    top: 78px;
  }

  body.home-playground .home-play-hero::after {
    width: 190px;
    height: 100px;
    right: -72px;
    bottom: 34px;
  }

  body.home-playground .play-kicker {
    padding: 8px 12px;
    font-size: 12px;
    box-shadow: 4px 4px 0 var(--play-ink);
  }

  body.home-playground .hero-title {
    font-size: 62px;
    line-height: 0.86;
  }

  body.home-playground .hero-title span {
    text-shadow:
      3px 0 0 var(--play-ink),
      -3px 0 0 var(--play-ink),
      0 3px 0 var(--play-ink),
      0 -3px 0 var(--play-ink),
      5px 5px 0 var(--play-ink);
  }

  body.home-playground .lead {
    margin-top: 18px;
    font-size: 17px;
  }

  body.home-playground .hero-actions-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.home-playground .btn {
    width: 100%;
    min-height: 48px;
  }

  body.home-playground .play-tiles-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.home-playground .play-tile {
    min-height: 142px;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 5px 5px 0 var(--play-ink);
  }

  body.home-playground .tile-emoji {
    font-size: 30px;
  }

  body.home-playground .play-tile strong {
    font-size: 19px;
  }

  body.home-playground .play-tile small {
    font-size: 12px;
  }

  body.home-playground .soft-chip {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  body.home-playground .play-marquee span {
    min-width: 100%;
    padding: 11px 18px;
    font-size: 13px;
  }

  body.home-playground .play-feature-row,
  body.home-playground .play-matrix-section,
  body.home-playground .play-metric-ribbon,
  body.home-playground .play-bottom-cta {
    padding: 22px 18px;
  }

  body.home-playground .play-feature-row,
  body.home-playground .play-metric-ribbon .stat-grid {
    grid-template-columns: 1fr;
  }

  body.home-playground .section-row,
  body.home-playground .play-bottom-cta {
    display: grid;
    align-items: stretch;
  }

  body.home-playground .matrix-section h2,
  body.home-playground .play-bottom-cta h2 {
    font-size: 32px;
    line-height: 1.02;
  }

  body.home-playground .matrix-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  body.home-playground .matrix-card {
    min-height: 132px;
  }
}
