/* foldparty.com's home page (Oct 9): the store's navy wall, the neon sign, the app's real screens
   on iPhone Duo and iPhone, and the arcade's shelf, which keeps getting new games. The fonts are the
   app's own (Website-tools/build_site_assets.py). */
@font-face { font-family: "Monoton"; src: url("assets/fonts/monoton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bungee"; src: url("assets/fonts/bungee.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("assets/fonts/bebas-neue.woff2") format("woff2"); font-display: swap; }

:root {
  --navy-top: #151c47;
  --navy: #0c1130;
  --navy-deep: #080b22;
  --pink: #ff4fb3;
  --cyan: #00f0ff;
  --yellow: #ffd23f;
  --orange: #ff8b1e;
  --plate: #9ea8e6;
  --text: #eef0ff;
  --muted: #b7bddf;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { background: var(--navy-deep); }
body.home {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(60vw 48vw at 76% 26%, rgba(255, 79, 179, 0.16), transparent 70%),
    radial-gradient(48vw 42vw at 94% 68%, rgba(0, 240, 255, 0.11), transparent 70%),
    radial-gradient(42vw 22vw at 10% 12%, rgba(255, 79, 179, 0.10), transparent 70%),
    repeating-linear-gradient(180deg, transparent 0 89px, rgba(7, 8, 20, 0.38) 89px 92px),
    linear-gradient(180deg, var(--navy-top), var(--navy) 55%, var(--navy-deep));
  overflow-x: hidden;
}
a { color: var(--cyan); }

/* The hero: the pitch on the left, the phone on the right. */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.neon {
  font-family: "Monoton", "Bungee", sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
  margin: 0 0 0.4em;
  white-space: nowrap;
}
.neon .fold { color: #ff86c9; text-shadow: 0 0 0.03em #fff, 0 0 0.12em var(--pink), 0 0 0.42em rgba(255, 79, 179, 0.75); }
.neon .party { color: #74f7ff; text-shadow: 0 0 0.03em #fff, 0 0 0.12em var(--cyan), 0 0 0.42em rgba(0, 240, 255, 0.6); }
.line {
  font-family: "Bungee", sans-serif;
  font-size: clamp(36px, 5.4vw, 74px);
  line-height: 1.08;
  margin: 0;
  color: #fff;
  text-shadow: 0 0.06em 0.1em rgba(3, 4, 14, 0.75);
}
.line span { display: block; }
.line .hot { color: var(--yellow); }
.bar { width: 120px; height: 10px; border-radius: 5px; background: var(--orange); margin: 24px 0 14px; }
.plate {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: 0.03em;
  color: var(--plate);
  margin: 0 0 12px;
}
.plate .hot { color: var(--yellow); }
.lead { max-width: 32em; color: var(--muted); margin: 0 0 26px; }
.get { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.store { display: inline-block; line-height: 0; border-radius: 12px; }
.store img { display: block; width: 200px; height: auto; }
.store:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.store .plain-text { display: none; }
.store.plain {
  line-height: 1.3;
  padding: 12px 18px;
  border: 2px solid var(--cyan);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.store.plain .plain-text { display: inline; }
.launch {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--yellow);
  border: 2px solid rgba(255, 210, 63, 0.6);
  border-radius: 999px;
  padding: 4px 14px 2px;
}
.devices { color: var(--muted); font-size: 15px; margin: 18px 0 0; }

/* The iPhone Duo: Apple's own product images, as is (no shadow, glow, crop, tilt or motion on
   the phone), with the app's real screen playing in the screen opening underneath. One way of
   holding it at a time; the page cuts between them. Website-tools/fit_duo_bezels.py. */
.duo { display: flex; flex-direction: column; align-items: center; width: 100%; }
.duo-stage { position: relative; width: min(100%, 540px); }
.duo-state {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
  cursor: pointer;
}
.duo-state.is-on { opacity: 1; visibility: visible; transition: opacity 0.45s ease, visibility 0s; }
.duo-screen { position: absolute; object-fit: cover; background: #000; }
.duo-bezel { position: relative; display: block; width: 100%; height: 100%; }
.duo-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 540px);
  margin-top: 22px;
}
.duo-tabs button {
  font: inherit;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(158, 168, 230, 0.35);
  border-radius: 12px;
  padding: 8px 4px 7px;
  cursor: pointer;
  line-height: 1.15;
}
.duo-tabs .pose { display: block; font-family: "Bebas Neue", sans-serif; font-size: 21px; letter-spacing: 0.05em; color: var(--text); }
.duo-tabs .game { display: block; font-size: 12.5px; margin-top: 2px; }
.duo-tabs button[aria-current="true"] { border-color: var(--yellow); background: rgba(255, 210, 63, 0.1); }
.duo-tabs button[aria-current="true"] .pose { color: var(--yellow); }
.duo-tabs button:focus-visible, .play:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.play {
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: none;
  border: 1px solid rgba(158, 168, 230, 0.45);
  border-radius: 999px;
  padding: 3px 12px 1px;
  margin-top: 14px;
  cursor: pointer;
}

/* The same games on iPhone and iPad: the plain screenshots, no device drawn around them. */
.also { max-width: 1200px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.also h2 { font-family: "Bungee", sans-serif; font-weight: 400; font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; }
.also-lead { color: var(--muted); margin: 0 0 20px; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 9% / 4.2%; border: 1px solid rgba(158, 168, 230, 0.25); }

/* Questions (Oct 20): written with the structured data by Website-tools/build_seo.py, so the two match. */
.faq { max-width: 1200px; margin: 0 auto; padding: 8px var(--gutter) 56px; }
.faq h2 { font-family: "Bungee", sans-serif; font-weight: 400; font-size: clamp(24px, 3vw, 34px); margin: 0 0 18px; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-item {
  min-width: 0;
  padding: 18px 22px 20px;
  border: 1px solid rgba(158, 168, 230, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}
.faq-item:first-child { grid-column: 1 / -1; }
.faq h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }   /* not an all-caps face: "iPhone Duo" keeps its case */
.faq p { color: var(--muted); margin: 0; max-width: 46em; }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* New releases: the newest pack in its first week, and the next one, sealed (no dates). */
.drops { max-width: 1200px; margin: 0 auto; padding: 8px var(--gutter) 16px; }
.drops-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3.4vw, 36px);
  border: 2px solid rgba(255, 210, 63, 0.45);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}
.kicker {
  font-family: "Bebas Neue", sans-serif;
  font-size: 21px;
  letter-spacing: 0.1em;
  color: var(--plate);
  margin: 0 0 2px;
}
.drops h2 {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.04;
  margin: 0 0 14px;
  text-shadow: 0 0.06em 0.1em rgba(3, 4, 14, 0.75);
}
.drops h2 .hot { color: var(--yellow); display: block; }
.drops-copy p { color: var(--muted); max-width: 34em; margin: 0 0 10px; }
.drops-copy .drops-when { color: var(--text); font-weight: 600; max-width: 42em; margin: 0; }
.packs { display: grid; gap: 26px; width: clamp(300px, 31vw, 380px); }
.pack-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0 0 12px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.05;
}
.pack-label .k { font-size: 18px; color: var(--muted); }
.pack-label .v { font-size: 25px; color: var(--yellow); }
.pack-boxes { list-style: none; margin: 0; padding: 0 0 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pack-boxes .box-art::after { left: -6px; right: -6px; bottom: -8px; height: 8px; }
.mystery {
  position: relative;
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(158, 168, 230, 0.4);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #1b2257, #0b0f2b);
  box-shadow: 0 6px 14px rgba(3, 4, 14, 0.55);
}
.mystery .q {
  font-family: "Bungee", sans-serif;
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1;
  color: #ff86c9;
  text-shadow: 0 0 0.03em #fff, 0 0 0.12em var(--pink), 0 0 0.42em rgba(255, 79, 179, 0.75);
}
/* Still in its shrink-wrap. */
.mystery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 24%, rgba(255, 255, 255, 0.16) 30%, transparent 37% 58%, rgba(255, 255, 255, 0.09) 63%, transparent 69%);
}

/* The arcade: every game that's out, as its box on its aisle's shelf (Website-tools/build_arcade.py). */
.arcade { max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 16px; }
.arcade h2 { font-family: "Bungee", sans-serif; font-weight: 400; font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; }
.arcade-lead { color: var(--muted); margin: 0 0 22px; }
.aisles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px 36px; }
.aisle-sign {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--aisle);
  text-shadow: 0 0 0.4em var(--aisle-glow);
  margin: 0 0 14px;
}
.aisle-new {
  display: none;
  margin-left: 8px;
  padding: 4px 7px 2px;
  vertical-align: 0.2em;
  font-size: 0.6em;
  letter-spacing: 0.08em;
  border-radius: 5px;
  color: var(--navy-deep);
  background: var(--yellow);
  text-shadow: none;
}
.shelf.is-new .aisle-new { display: inline-block; }
.boxes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.box { position: relative; min-width: 0; }   /* keeps the hidden screen-reader notes inside the shelf's scroller */
.box-art { position: relative; }
.box-art img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 14px rgba(3, 4, 14, 0.55); }
/* The shelf the boxes stand on: each box's piece reaches into the gaps, so the pieces join up. */
.box-art::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2c3578, #141a44);
  box-shadow: 0 6px 10px rgba(3, 4, 14, 0.45);
}
.sticker { position: absolute; z-index: 1; font-family: "Bebas Neue", sans-serif; letter-spacing: 0.06em; line-height: 1; color: var(--navy-deep); }
.sticker.free { top: 8px; right: -6px; padding: 3px 7px 1px; font-size: 17px; border-radius: 5px; background: var(--cyan); transform: rotate(6deg); }
.sticker.new {
  top: -10px;
  left: -8px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding-top: 3px;
  font-size: 19px;
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(-12deg);
  box-shadow: 0 3px 8px rgba(3, 4, 14, 0.5);
}
.shelf:not(.is-new) .sticker.new { display: none; }   /* a new pack's boxes wear NEW for its first week */
.box-name { font-family: "Bebas Neue", sans-serif; font-size: 22px; letter-spacing: 0.03em; line-height: 1.05; margin: 22px 0 3px; }
.box-line { font-size: 13.5px; line-height: 1.38; color: var(--muted); margin: 0; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { border: 1px solid rgba(158, 168, 230, 0.4); border-radius: 999px; padding: 6px 14px; color: var(--muted); font-size: 15px; }

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid rgba(158, 168, 230, 0.2);
  color: var(--muted);
  font-size: 14px;
}
footer nav a { margin-right: 18px; }
footer .legal { font-size: 12px; opacity: 0.8; max-width: 60em; }

@media (min-width: 1080px) {
  .aisles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots li { scroll-snap-align: start; }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .drops-panel { grid-template-columns: minmax(0, 1fr); }
  .packs { width: 100%; max-width: 400px; justify-self: center; }
  /* Each aisle's shelf scrolls sideways, with room for the stickers and the shelf's ends. */
  .boxes {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 38%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -8px;
    padding: 12px 8px 6px;
  }
  .box { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .duo-state, .duo-state.is-on { transition: none; }
}
