/* The homepage: the toy first, then the real game, then three facts as keys you can press. Always the game's dark
   plum (its default look), with one cream band like its light theme and one candy-pink band. Shares style.css. */

.home {
  --bg: #1D1724; --surface: #2B2235; --well: #3A2F46; --ink: #F7EEF5; --dim: #B9A9BF; --line: #4B3E57; --link: #FF8FB2;
  --cream: #FFF4E8; --cream-ink: #3A2B3C; --cream-dim: #7A6676;
  --pink: #FF6F9C; --pink-deep: #D9487A;
  color-scheme: dark;
  overflow-x: clip;
}
.home ::selection { background: var(--pink); color: #fff; }
.home :focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 12px; }
.home header { position: relative; z-index: 3; }
.hero2 > header, .hero2 > main { width: 100%; }
html:has(.home) { overflow-x: clip; }
.band { overflow-x: clip; }

/* ---------- keycaps: a skirt and a top face; pressing sinks the face into the skirt ---------- */
.kc {
  --d: 9px;            /* how much skirt shows below the top face */
  --top-hi: #FF9CBB; --top: var(--pink); --top-lo: #F2558A;
  --side-hi: #D44A7C; --side-lo: #9E2C57;
  --label: #fff;
  position: relative; display: inline-grid; padding-bottom: var(--d);
  text-decoration: none; color: var(--label); cursor: pointer; border: 0; background: none;
  font: 700 19px/1 var(--display); -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation;
}
.kc-skirt {
  position: absolute; inset: 7px -3px 0; border-radius: 20px;
  background: linear-gradient(180deg, var(--side-hi), var(--side-lo));
  box-shadow: 0 18px 30px -12px rgba(8, 4, 12, 0.75), 0 4px 10px -4px rgba(8, 4, 12, 0.5);
}
.kc-top {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 28px 19px; border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 0%, var(--top-hi), var(--top) 55%, var(--top-lo));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 90ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 120ms;
}
.kc-top svg { width: 22px; height: 22px; flex: none; }
.kc:hover .kc-top { filter: brightness(1.05); transform: translateY(1px); }
.kc:active .kc-top, .kc[aria-pressed="true"] .kc-top { transform: translateY(calc(var(--d) - 3px)); }
.kc:active .kc-top { transition-duration: 40ms; }

.kc--big { --d: 12px; font-size: 22px; }
.kc--big .kc-top { padding: 22px 34px 23px; border-radius: 20px; }
.kc--big .kc-skirt { border-radius: 24px; }
.kc--cream { --top-hi: #FFFFFF; --top: #FFF4E8; --top-lo: #F1DFCC; --side-hi: #D9C2AC; --side-lo: #A88E78; --label: #3A2B3C; }
.kc--plum { --top-hi: #4A3D58; --top: #3A2F46; --top-lo: #30263B; --side-hi: #251C2E; --side-lo: #120C17; --label: #F7EEF5; }
.kc--small { --d: 6px; font-size: 15px; }
.kc--small .kc-top { padding: 10px 14px 11px; border-radius: 12px; gap: 8px; }
.kc--small .kc-skirt { inset: 5px -2px 0; border-radius: 14px; }
.kc--small .kc-top svg { width: 18px; height: 18px; }
/* a picker that is on stays down, with its top lit */
.kc--plum[aria-pressed="true"] { --top-hi: #FF9CBB; --top: #FF6F9C; --top-lo: #F2558A; --side-hi: #D44A7C; --side-lo: #9E2C57; --label: #fff; }

.swatch { width: 18px; height: 18px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.swatch--candy { background: conic-gradient(#F6B6C8 0 25%, #F9E08A 0 50%, #A9D8F2 0 75%, #B9E6C8 0); }
.swatch--klik { background: linear-gradient(135deg, #FF8FB0 0 50%, #FFF4E8 0); box-shadow: inset 0 0 0 3px #BDE8CE; }
.swatch--night { background: radial-gradient(circle at 50% 50%, #7CC6F2 0 28%, #22314D 30%); }

/* ---------- hero ---------- */
.hero2 {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr;
  background:
    radial-gradient(60% 55% at 70% 58%, rgba(255, 111, 156, 0.22), transparent 70%),
    radial-gradient(40% 40% at 78% 70%, rgba(124, 198, 242, 0.12), transparent 70%),
    var(--bg);
}
.hero2-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); align-items: center; gap: 24px;
  padding-bottom: 48px;
}
.hero2 h1 {
  font-size: clamp(56px, 8.6vw, 112px); line-height: 0.92; letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance;
}
.hero2 h1 em { font-style: normal; color: var(--pink); display: block; }
.hero2-line { color: var(--dim); font-size: 20px; margin: 0 0 34px; max-width: 26ch; }
.cta { display: flex; flex-wrap: wrap; gap: 18px 16px; align-items: flex-start; }

.toy {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: 82svh; margin-inline: auto; touch-action: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none;
}
.toy canvas { position: absolute; inset: 21% 0 14%; width: 100%; height: 65%; display: block; cursor: pointer; outline: none; }
.toy-poster {
  position: absolute; inset: 22% 4% 15%; width: 92%; height: 63%; object-fit: contain; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent);
  transition: opacity 400ms ease-out;
}
.toy[data-live] .toy-poster { opacity: 0; }
.toy-count {
  position: absolute; top: 2%; left: 0; right: 0; text-align: center; pointer-events: none;
  font: 700 clamp(44px, 6vw, 72px)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink);
}
.toy-count small { display: block; font: 800 15px/1.4 Nunito, sans-serif; color: var(--dim); letter-spacing: 0.02em; margin-top: 4px; }
.toy-hint {
  position: absolute; left: 50%; top: calc(2% + clamp(44px, 6vw, 72px) + 34px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(29, 23, 36, 0.78); color: var(--ink); font-size: 15px; font-weight: 800;
  pointer-events: none; white-space: nowrap; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.toy-hint svg { width: 20px; height: 20px; color: var(--pink); }
.toy-hint[data-gone] { opacity: 0; transform: translate(-50%, -6px); }
.toy-hint kbd { font: inherit; color: var(--dim); }
@media (hover: none) { .toy-hint .keys-hint { display: none; } }
.toy-picks { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px; }
.toy .sound { position: absolute; top: 4px; right: 0; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }

/* ---------- bands ---------- */
.band { padding: clamp(64px, 10vw, 120px) 0; border: 0; }
.band h2 { font-size: clamp(40px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
.band-line { font-size: 19px; margin: 0; max-width: 40ch; }

.band--cream { background: var(--cream); color: var(--cream-ink); }
.band--cream .band-line { color: var(--cream-dim); }
.band--cream h2 em { font-style: normal; color: var(--pink-deep); }
.make { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 40px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-top: 34px; padding: 0; list-style: none; }
.chips li {
  display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 14px 26px 15px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 0 #EAD6C4, 0 10px 20px -10px rgba(58, 43, 60, 0.4); font-weight: 800; font-size: 21px; line-height: 1.1; color: var(--cream-ink);
}
.chips b { color: var(--pink-deep); font: 700 32px/1 var(--display); }
@media (max-width: 560px) {
  .chips li { padding: 11px 20px 12px; font-size: 18px; }
  .chips b { font-size: 26px; }
}

.phone {
  position: relative; aspect-ratio: 390 / 844; border-radius: 13.5% / 6.2%; padding: 3.2%;
  background: linear-gradient(160deg, #3b3142, #120d16 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 40px 60px -30px rgba(29, 12, 30, 0.6), 0 12px 24px -12px rgba(29, 12, 30, 0.5);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 11% / 5.1%; background: #1D1724; }
.fan { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 0; padding: 20px 0; }
.fan .phone:nth-child(1) { transform: rotate(-7deg) translate(18%, 6%); z-index: 1; }
.fan .phone:nth-child(2) { transform: translateY(-4%) scale(1.08); z-index: 2; }
.fan .phone:nth-child(3) { transform: rotate(7deg) translate(-18%, 6%); z-index: 1; }

.band--games { background: #15101B; }
.band--games .band-line { color: var(--dim); }
.games-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.games {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none;
}
.games li { margin: 0; }
.games figcaption { margin-top: 18px; text-align: center; font: 700 20px/1.2 var(--display); }
.games figcaption span { display: block; font: 700 15px/1.4 Nunito, sans-serif; color: var(--dim); margin-top: 4px; }
.games figure { margin: 0; }
.games li:nth-child(even) { transform: translateY(36px); }

.band--pink { background: radial-gradient(80% 120% at 50% 0%, #FF86AC, var(--pink) 55%, #F0588B); color: #fff; text-align: center; }
.band--pink h2 { color: #fff; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px 22px; margin: 44px 0 64px; padding: 0; list-style: none; }
.facts li { margin: 0; }
.facts .kc { --d: 14px; font-size: clamp(22px, 2.6vw, 30px); }
.facts .kc-top { padding: 30px 34px 32px; border-radius: 22px; flex-direction: column; gap: 12px; min-width: 190px; }
.facts .kc-skirt { border-radius: 26px; }
.facts .kc-top svg { width: 34px; height: 34px; color: var(--pink-deep); }
.end-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 16px; }
.end-note { margin: 26px 0 0; font-weight: 800; color: rgba(255, 255, 255, 0.92); }
.end-note a { color: #fff; text-underline-offset: 3px; }

.home footer { border-top: 0; background: var(--bg); }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .hero2-grid { grid-template-columns: 1fr; gap: 0; text-align: center; padding-bottom: 40px; }
  .hero2-copy { display: contents; }
  .hero2 h1 { order: 1; margin-bottom: 10px; }
  .hero2-line { order: 2; margin: 0 auto 6px; font-size: 18px; }
  .toy { order: 3; aspect-ratio: 1 / 1.02; max-height: none; margin-top: -4px; }
  .cta { order: 4; justify-content: center; margin-top: 28px; }
  .make { grid-template-columns: 1fr; text-align: center; }
  .make .band-line { margin: 0 auto; }
  .chips { justify-content: center; }
  .games {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none;
  }
  .games::-webkit-scrollbar { display: none; }
  .games li { scroll-snap-align: center; }
  .games li:nth-child(even) { transform: none; }
}
@media (max-width: 560px) {
  .hero2 h1 { font-size: 58px; }
  .hero2 h1 em { display: inline; }
  .toy-count { font-size: 42px; }
  .toy-hint { top: calc(2% + 42px + 30px); }
  .cta .kc--big { width: 100%; }
  .cta .kc { width: 100%; }
  .fan { margin: 0 -10px; }
  .facts .kc-top { min-width: 0; width: 150px; padding: 24px 12px 26px; }
  .facts .kc { font-size: 20px; }
  .end-cta .kc { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .kc-top, .toy-poster, .toy-hint { transition: none; }
}

.i { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 11% / 5.1%; background: #1D1724; }

/* the other games: their own card art from the game's Play list, and what is still to come */
.more-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 84px 0 0; padding: 0; list-style: none; }
.tile { margin: 0; border-radius: 22px; background: #3A2F46; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.tile img { display: block; width: 100%; height: auto; }
.tile h3 { margin: 0; padding: 16px 18px 4px; font-size: 20px; }
.tile p { margin: 0; padding: 0 18px 18px; color: var(--dim); font-size: 15px; line-height: 1.45; }
.tile--soon {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 100%;
  background: transparent; box-shadow: none; border: 2px dashed var(--line); padding: 24px 12px;
}
.tile--soon .i { width: 44px; height: 44px; color: var(--pink); margin-bottom: 6px; }
.tile--soon h3 { padding-top: 8px; }
@media (max-width: 900px) {
  .more-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
  .tile h3 { font-size: 17px; padding: 12px 14px 2px; }
  .tile p { font-size: 14px; padding: 0 14px 14px; }
}

/* store marks are filled shapes, not strokes */
.i.i-fill { fill: currentColor; stroke: none; }
/* a store that isn't out yet: a key that can't be pressed, with a tag on its corner */
.kc--soon { cursor: default; }
.kc--soon .kc-top { opacity: 0.7; }
.kc--soon:hover .kc-top, .kc--soon:active .kc-top { filter: none; transform: none; }
.kc-tag {
  position: absolute; top: -10px; right: -8px; z-index: 1;
  padding: 5px 9px 6px; border-radius: 999px; background: var(--pink); color: #fff;
  font: 700 12px/1 var(--display); letter-spacing: 0.02em; white-space: nowrap;
  box-shadow: 0 4px 10px -3px rgba(8, 4, 12, 0.6);
}
