/* arc3play.com, the Jack of Cribs pages: the landing page, the join page, Support, Privacy and the 404.
   From the Claude Design artboards SiteDesktop (1440 wide), SitePhone (390) and SiteJoin (390).
   Three layouts: the desktop design from 1100px, scaled by --u (1px at 1440); the phone design
   below 700px, scaled by --k (1px at 390); and between them the desktop pieces stacked, each
   section's art scaled to fit. Art is placed with --x/--y (design px) times --k.
   No inline styles: the CSP blocks them. jack.js sets transforms through the CSSOM. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond.woff2?v=2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic.woff2?v=2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans.woff2?v=2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #7D1524;
  --red-deep: #5E0E1B;
  --green: #1F4B31;
  --green-lt: #2F6B40;
  --cream: #F3ECDD;
  --sand: #EADFC8;
  --stone: #45494B;
  --walnut: #3A2414;
  --night: #0B2015;
  --screen: #0F221B;
  --amber: #E9A93A;
  --ink: #1C1F1D;
  --blue: #4A97CC;
  --crimson: #931A2C;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  /* 1 design px of the 1440 artboard; the page never grows past 1440 */
  --u: calc(min(100vw, 1440px) / 1440);
  --k: var(--u);
}
@supports (width: 1cqw) {
  /* Container units leave out the scrollbar, so nothing sized in --u spills past it. */
  :root { --u: calc(min(100cqw, 1440px) / 1440); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); }
/* The menu's links glide to their section, so the page keeps its place in your head. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
picture { display: contents; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 10px; background: var(--amber); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.page { container-type: inline-size; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Textures ---------- */

/* [FELT]: two tiles laid over the color, one soft-light and one multiply. */
.felt { isolation: isolate; }
.felt::before, .felt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-size: 128px 128px;
}
.felt::before {
  background-image: url("../img/jack/felt-light.png");
  background-image: image-set(url("../img/jack/felt-light.webp") type("image/webp"), url("../img/jack/felt-light.png") type("image/png"));
  opacity: .55;
  mix-blend-mode: soft-light;
}
.felt::after {
  background-image: url("../img/jack/felt-dark.png");
  background-image: image-set(url("../img/jack/felt-dark.webp") type("image/webp"), url("../img/jack/felt-dark.png") type("image/png"));
  opacity: .5;
  mix-blend-mode: multiply;
}
.walnut-bg, .pegboard, .yours .tear-in, .board-in, .c-top, .c-cab, .c-tray, .sw-wood {
  background-color: var(--walnut);
  background-image: url("../img/jack/walnut-1600.jpg");
  background-image: image-set(url("../img/jack/walnut-1100.webp") type("image/webp"), url("../img/jack/walnut-1600.jpg") type("image/jpeg"));
}
.medal, .frame-felt, .suit-felt {
  background-color: var(--red);
  background-image: url("../img/jack/bg-felt-500.jpg");
  background-image: image-set(url("../img/jack/bg-felt-500.webp") type("image/webp"), url("../img/jack/bg-felt-500.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}

/* [SHEEN]: the glimmer jack.js moves with the pointer */
.sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity .35s ease-out;
}
.tilt { transition: transform .35s ease-out; }
.depth { transition: transform .45s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .tilt, .depth, .sheen { transition: none; }
}

/* ---------- Sections ---------- */

.sec {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}
.stage {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  height: calc(var(--sh) * var(--u));
}
.copy {
  position: absolute;
  z-index: 1;
  left: calc(var(--cx, 120) * var(--u));
  top: calc(var(--cy) * var(--u));
  width: calc(var(--cw) * var(--u));
}
.art { position: absolute; inset: 0; }
.a {
  position: absolute;
  left: calc(var(--x) * var(--k));
  top: calc(var(--y) * var(--k));
}

.hero { --bg: var(--red); --sh: 900; z-index: 2; }
.play { --bg: var(--green); --sh: 860; --cx: 640; --cy: 150; --cw: 520; }
.friends { --bg: var(--cream); --sh: 900; --cy: 150; --cw: 480; }
.tv { --bg: var(--stone); --sh: 1220; --cx: 340; --cy: 110; --cw: 760; }
.pegboard { --bg: var(--walnut); --sh: 780; --cy: 140; --cw: 560; background-size: 1100px auto; }
.yours { --bg: var(--cream); --sh: 980; --cy: 120; --cw: 560; }
.suits { --bg: var(--red); --sh: 1020; --cy: 120; --cw: 640; }
.closing { --bg: var(--green); --sh: 560; --cy: 110; --cw: 560; }
.foot { --bg: var(--night); }

/* Torn felt: the section above hangs over the top of the next one. */
.tear {
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 46px;
  transform: scaleY(-1);
  filter: drop-shadow(3px -5px 0 rgba(0,0,0,.22)) drop-shadow(6px -12px 14px rgba(0,0,0,.3));
  pointer-events: none;
}
.tear-in { position: absolute; inset: 0; background-color: var(--prev); }
.play { --prev: var(--red); }
.friends { --prev: var(--green); }
.tv { --prev: var(--cream); }
.pegboard { --prev: var(--stone); }
.yours { --prev: var(--walnut); }
.suits { --prev: var(--cream); }
.closing { --prev: var(--red); }
.foot { --prev: var(--green); }
.yours .tear-in { background-size: 1100px auto; }
.play .tear-in { clip-path: polygon(0% 100%, 0.00% 6.6px, 9.51% 40.2px, 19.93% 5.4px, 26.74% 35.7px, 40.42% 7.7px, 51.53% 30.3px, 64.10% 7.7px, 77.78% 34.9px, 87.50% 5.2px, 95.07% 30.3px, 100% 20.7px, 100% 100%); }
.friends .tear-in { clip-path: polygon(0% 100%, 0.00% 37.7px, 13.26% 4.5px, 26.94% 37.6px, 37.85% 14.1px, 48.19% 38.2px, 56.60% 5.1px, 64.24% 28.6px, 74.65% 1.9px, 84.24% 34.8px, 95.56% 10.9px, 100% 20.7px, 100% 100%); }
.tv .tear-in { clip-path: polygon(0% 100%, 0.00% 9.1px, 7.43% 29.6px, 19.65% 14.4px, 30.35% 33.6px, 41.94% 13.3px, 53.06% 40.5px, 65.49% 13.9px, 75.07% 29.4px, 85.28% 0.7px, 95.28% 29.2px, 100% 20.7px, 100% 100%); }
.pegboard .tear-in { clip-path: polygon(0% 100%, 0.00% 4.6px, 12.29% 38.5px, 20.14% 5.0px, 32.29% 29.0px, 40.49% 5.2px, 48.33% 28.8px, 59.31% 2.2px, 72.15% 31.2px, 82.22% 12.7px, 94.51% 35.7px, 100% 20.7px, 100% 100%); }
.yours .tear-in { clip-path: polygon(0% 100%, 0.00% 38.6px, 9.44% 10.3px, 22.50% 37.1px, 33.54% 4.9px, 40.76% 40.2px, 49.17% 8.9px, 62.01% 33.0px, 75.90% 7.2px, 84.93% 36.2px, 97.22% 0.8px, 100% 20.7px, 100% 100%); }
.suits .tear-in { clip-path: polygon(0% 100%, 0.00% 4.5px, 11.88% 31.0px, 25.56% 11.4px, 38.82% 33.8px, 49.58% 11.8px, 60.49% 30.3px, 66.74% 14.3px, 78.12% 33.1px, 85.62% 3.0px, 93.89% 40.3px, 100% 20.7px, 100% 100%); }
.closing .tear-in { clip-path: polygon(0% 100%, 0.00% 1.1px, 13.68% 27.1px, 22.64% 5.3px, 29.24% 39.3px, 42.15% 10.8px, 51.11% 35.1px, 58.19% 6.0px, 65.49% 35.3px, 78.19% 2.4px, 88.96% 40.9px, 100% 20.7px, 100% 100%); }
.foot .tear-in { clip-path: polygon(0% 100%, 0.00% 31.9px, 13.75% 5.7px, 20.76% 34.3px, 30.07% 8.8px, 36.46% 41.0px, 43.61% 2.2px, 55.62% 30.2px, 64.93% 13.3px, 75.56% 31.7px, 87.15% 6.6px, 100% 20.7px, 100% 100%); }

/* ---------- Type ---------- */

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}
.tv .eyebrow { color: #EDB045; } /* the design's amber is 4.4:1 on Castle Stone */
.h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: max(47px, calc(65 * var(--u)));
  line-height: 1.02;
  letter-spacing: -.005em;
  color: var(--cream);
  text-wrap: balance; /* display lines break after their punctuation (<br>); balance keeps the rest from leaving one word alone */
}
.lede {
  margin-top: 18px;
  font-size: max(16.5px, calc(18.5 * var(--u)));
  line-height: 1.6;
  color: rgba(243,236,221,.78);
}
.pegboard .lede { color: rgba(243,236,221,.82); }
.suits .lede { color: rgba(243,236,221,.8); }
.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cream);
}
.on-cream .eyebrow { color: var(--crimson); }
.on-cream .h2, .on-cream .ticks li { color: var(--ink); }
.on-cream .lede { color: rgba(28,31,29,.7); }

/* Pegs in their holes */
.peg {
  --ps: 20px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: var(--ps);
  height: var(--ps);
  border-radius: 50%;
  background: radial-gradient(circle at 55% 62%, #1C120A 0 45%, #3A2616 100%);
  box-shadow: inset 1.5px 2px 3px rgba(0,0,0,.8), 1px 1.5px 0 rgba(255,235,210,.2);
}
/* The peg standing in its hole: stem, rim, domed head and cast shadow, drawn by tools/jackpegs.py
   after the app's wordmark peg. Its unit (--pu) puts the head at .7 of the hole; the SVG's
   origin, the hole's center, is 6 units in and 13 down. */
.peg::after {
  --pu: calc(var(--ps) * .07);
  content: "";
  position: absolute;
  left: calc(var(--ps) / 2 - 6 * var(--pu));
  top: calc(var(--ps) / 2 - 13 * var(--pu));
  width: calc(34 * var(--pu));
  height: calc(24 * var(--pu));
  background: no-repeat 0 0 / 100% 100%;
  pointer-events: none;
}
.peg.amber::after { background-image: url("../img/jack/peg-amber-s.svg"); }
.peg.blue::after { background-image: url("../img/jack/peg-blue-s.svg"); }
.peg.crimson::after { background-image: url("../img/jack/peg-crimson-s.svg"); }
.peg.paper::after { background-image: url("../img/jack/peg-paper-s.svg"); }
.peg.stone::after { background-image: url("../img/jack/peg-stone-s.svg"); }
.peg.green::after { background-image: url("../img/jack/peg-green-s.svg"); }
.amber { --pc: var(--amber); }
.blue { --pc: var(--blue); }
.crimson { --pc: var(--crimson); }
.paper { --pc: var(--cream); }
.stone { --pc: var(--stone); }
.green { --pc: var(--green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.btn-amber {
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 1.5px 2.5px 0 #9A6A1C, 4px 8px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-ghost {
  color: var(--cream);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(243,236,221,.4);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(243,236,221,.75); }
.btn-amber:hover { background: #F0B54D; }
.badge { display: inline-block; border-radius: 10px; }
.badge img { width: 100%; height: 100%; }

/* Brand: the Jack medal and the name */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}
.medal {
  display: block;
  flex-shrink: 0;
  width: var(--m);
  height: var(--m);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--amber), 2px 3px 0 rgba(0,0,0,.25);
}
.medal img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.1;
}

/* ---------- Devices ---------- */

.scr {
  position: relative;
  overflow: hidden;
  background: var(--screen);
}
.scr img { width: 100%; height: 100%; object-fit: cover; }
/* A second screen over the first that comes and goes: on the TV, Home and then a hand in play,
   two seconds each. With Reduce Motion it stays on the hand. */
.scr .swap { display: block; position: absolute; inset: 0; animation: swap 4s ease-in-out infinite; }
@keyframes swap { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scr .swap { animation: none; opacity: 1; } }

.phone {
  position: relative;
  width: calc(var(--w) * var(--k));
  padding: calc(11 * var(--k));
  border-radius: calc(var(--r) * var(--k));
  transform: rotate(var(--rot, 0deg));
  background: linear-gradient(145deg, #3A3D42, #16171A 40%, #2B2D31);
  box-shadow: 4px 7px 0 rgba(0,0,0,.2), 0 40px 70px rgba(0,0,0,.5), 0 10px 22px rgba(0,0,0,.35), inset 0 0 0 1.5px rgba(255,255,255,.18), inset 0 0 0 4px #0A0A0B;
}
.phone .scr { aspect-ratio: 390 / 844; border-radius: calc((var(--r) - 13) * var(--k)); }

.tablet {
  position: relative;
  width: calc(var(--w) * var(--k));
  padding: calc(14 * var(--k));
  border-radius: calc(30 * var(--k));
  transform: rotate(var(--rot, 0deg));
  background: linear-gradient(145deg, #3A3D42, #16171A 40%, #2B2D31);
  box-shadow: 4px 7px 0 rgba(0,0,0,.2), 0 40px 80px rgba(0,0,0,.5), inset 0 0 0 1.5px rgba(255,255,255,.16), inset 0 0 0 5px #0A0A0B;
}
.tablet .scr { aspect-ratio: 1194 / 834; border-radius: calc(18 * var(--k)); }

.tvset { width: calc(var(--w) * var(--k)); }
.tv-body {
  padding: calc(10 * var(--k));
  border-radius: calc(12 * var(--k));
  background: #0B0B0C;
  box-shadow: 4px 7px 0 rgba(0,0,0,.25), 0 50px 90px rgba(0,0,0,.55), inset 0 0 0 1.5px #2C2E31;
}
.tv-body .scr { aspect-ratio: 16 / 9; border-radius: calc(3 * var(--k)); }
.tv-feet {
  display: flex;
  justify-content: space-between;
  padding: 0 calc(var(--w) * .1204 * var(--k));
}
.tv-feet span {
  width: calc(var(--w) * .0704 * var(--k));
  height: calc(9 * var(--k));
  background: linear-gradient(#2A2B2E, #0B0B0C);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}

/* The open iPhone Duo: one screen image, its left half on the left panel and its right half on the right */
.duo {
  display: flex;
  perspective: calc(1500 * var(--k));
  transform: rotateZ(var(--rz));
  filter: drop-shadow(4px 7px 0 rgba(0,0,0,.18)) drop-shadow(0 36px 46px rgba(0,0,0,.5)) drop-shadow(0 8px 12px rgba(0,0,0,.3));
}
.duo-half { position: relative; }
.duo-half.l { transform-origin: right center; transform: rotateY(var(--ry)); }
.duo-half.r { transform-origin: left center; transform: rotateY(calc(var(--ry) * -1)); }
.duo-rim { background: linear-gradient(180deg, #F4F4F2 0%, #BDBDBA 18%, #E9E9E6 50%, #A9A9A6 82%, #EDEDEA 100%); box-shadow: inset 0 0 0 .6px rgba(0,0,0,.35); }
.duo-bez { background: #050505; }
.l .duo-rim { padding: calc(3.3 * var(--k)) 0 calc(3.3 * var(--k)) calc(3.3 * var(--k)); border-radius: calc(36 * var(--k)) 0 0 calc(36 * var(--k)); }
.r .duo-rim { padding: calc(3.3 * var(--k)) calc(3.3 * var(--k)) calc(3.3 * var(--k)) 0; border-radius: 0 calc(36 * var(--k)) calc(36 * var(--k)) 0; }
.l .duo-bez { padding: calc(8.5 * var(--k)) 0 calc(8.5 * var(--k)) calc(8.5 * var(--k)); border-radius: calc(36 * var(--k)) 0 0 calc(36 * var(--k)); }
.r .duo-bez { padding: calc(8.5 * var(--k)) calc(8.5 * var(--k)) calc(8.5 * var(--k)) 0; border-radius: 0 calc(36 * var(--k)) calc(36 * var(--k)) 0; }
.duo-scr {
  position: relative;
  width: calc(475.5 * var(--sc) * var(--k));
  aspect-ratio: 475.5 / 669;
  overflow: hidden;
  background: var(--screen);
}
.l .duo-scr { border-radius: calc(27 * var(--k)) 0 0 calc(27 * var(--k)); }
.r .duo-scr { border-radius: 0 calc(27 * var(--k)) calc(27 * var(--k)) 0; }
.duo-scr img { width: 200%; max-width: none; height: 100%; }
.r .duo-scr img { margin-left: -100%; }
.hinge { position: absolute; inset: 0; pointer-events: none; }
.l .hinge { background: linear-gradient(90deg, rgba(0,0,0,0) 86%, rgba(0,0,0,.18) 96%, rgba(255,255,255,.1) 100%); }
.r .hinge { background: linear-gradient(90deg, rgba(255,255,255,.14) 0%, rgba(0,0,0,.1) 3%, rgba(0,0,0,0) 14%); }

/* Cards */
.card {
  position: relative;
  width: calc(var(--w) * var(--k));
  aspect-ratio: 5 / 7;
  border-radius: calc(var(--r) * var(--k));
  overflow: hidden;
  transform: rotate(var(--rot, 0deg));
  box-shadow: 0 0 0 .5px rgba(0,0,0,.35), 2px 3px 0 rgba(0,0,0,.18), 6px 14px 22px rgba(0,0,0,.45);
}
.card img, .face-in img { width: 100%; height: 100%; }
.face { transform: rotate(var(--rot)); filter: drop-shadow(2px 3px 0 rgba(0,0,0,.18)) drop-shadow(6px 14px 14px rgba(0,0,0,.4)); }
.face-in {
  position: relative;
  width: calc(var(--w) * var(--k));
  aspect-ratio: 5 / 7;
  border-radius: calc(var(--r) * var(--k));
  overflow: hidden;
}

/* A Jack portrait in a cream frame */
.frame {
  position: relative;
  width: calc(var(--w) * var(--k));
  height: calc(var(--w) * 1.3 * var(--k));
  border-radius: calc(var(--r) * var(--k));
  overflow: hidden;
  transform: rotate(var(--rot));
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4.5px rgba(0,0,0,.22), 4px 7px 0 rgba(0,0,0,.2), 12px 22px 32px rgba(0,0,0,.45);
}
.frame-felt { position: absolute; inset: -6px; background-position: center 30%; }
.frame img {
  position: absolute;
  left: -4%;
  top: 3%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 50% 0;
  filter: drop-shadow(4px 8px 10px rgba(0,0,0,.35));
}

/* ---------- Hero ---------- */

.stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, rgba(234,223,200,0) 0 300px, rgba(234,223,200,.06) 300px 440px, rgba(234,223,200,0) 440px 720px);
}
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top .brand { position: absolute; left: calc(120 * var(--u)); top: calc(22 * var(--u)); gap: calc(12 * var(--u)); --m: calc(42 * var(--u)); }
.top .brand-name { font-size: calc(28 * var(--u)); }
.nav {
  position: absolute;
  left: 50%;
  top: calc(30 * var(--u) - 6px);
  transform: translateX(-50%);
  display: flex;
  gap: calc(28 * var(--u) - 12px);
}
.nav a {
  padding: 6px 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(243,236,221,.86);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--cream); }
.nav .sheet-only { display: none; }
.getapp {
  position: absolute;
  left: calc(1188 * var(--u));
  top: calc(20 * var(--u));
  height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 16px;
}
.menu-button { display: none; }

.hero-copy { --cx: 420; --cy: 200; --cw: 480; }
.hero-copy .depth { display: flex; flex-direction: column; align-items: flex-start; }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(97 * var(--u));
  line-height: .92;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.hero-eyebrow {
  order: -1;
  margin-bottom: calc(18 * var(--u));
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}
.tagline {
  margin-top: calc(14 * var(--u));
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: calc(39 * var(--u));
  line-height: 1.2;
  color: var(--amber);
}
.hero-copy .lede {
  margin-top: calc(22 * var(--u));
  width: calc(440 * var(--u));
  color: rgba(243,236,221,.84);
}
.cta { display: flex; align-items: center; gap: calc(16 * var(--u)); margin-top: calc(32 * var(--u)); }
.cta .badge, .closing .badge { width: calc(168 * var(--u)); height: calc(56 * var(--u)); }
.see { height: calc(56 * var(--u)); padding: 0 calc(22 * var(--u)); border-radius: calc(17 * var(--u)); font-size: max(15px, calc(17.5 * var(--u))); }

.jack-full {
  width: calc(var(--w) * var(--k));
  height: calc(var(--w) * 1.5 * var(--k));
  object-fit: contain;
  filter: drop-shadow(4px 7px 0 rgba(0,0,0,.18)) drop-shadow(12px 20px 18px rgba(0,0,0,.4));
}
.hero-jack { --x: 10; --y: 150; --w: 400; }
.hero-duo { --x: 890; --y: 330; --sc: .42; --rz: -3deg; --ry: 30deg; }
.hero-phone { --x: 1150; --y: 120; --w: 264; --r: 43; --rot: 4deg; }

.band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--bb) * var(--k));
  height: calc(140 * var(--k));
  filter: drop-shadow(3px 5px 0 rgba(0,0,0,.22)) drop-shadow(6px 12px 14px rgba(0,0,0,.3));
}
.band-face { position: absolute; inset: 0; clip-path: var(--clip); }
.band-under { position: absolute; inset: 0; z-index: -1; background: var(--amber); clip-path: var(--clip); transform: translateY(-4px); }
.band-1 { --bb: 70; --clip: polygon(0% 100%, 0.00% 7.14%, 10.90% 43.64%, 22.71% 5.93%, 30.90% 38.79%, 45.97% 8.36%, 58.47% 32.93%, 72.43% 8.36%, 87.50% 37.93%, 98.61% 5.71%, 100% 22.50%, 100% 100%); }
.band-2 { --bb: 40; --clip: polygon(0% 100%, 0.00% 36.00%, 14.79% 15.50%, 28.61% 42.07%, 45.62% 11.36%, 62.50% 31.79%, 76.81% 8.00%, 87.15% 33.21%, 100% 22.50%, 100% 100%); }
.band-3 { --bb: 12; --clip: polygon(0% 100%, 0.00% 41.93%, 16.88% 11.21%, 32.22% 31.00%, 43.06% 11.86%, 60.90% 33.21%, 80.21% 3.14%, 97.71% 31.43%, 100% 22.50%, 100% 100%); }
.band-1 .band-face { background-color: var(--sand); }
.band-2 .band-face { background-color: var(--red-deep); }
.band-3 .band-face { background-color: var(--green-lt); }

/* The walnut peg strip, tipped across the bottom of the hero */
.board {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: calc(100% - 80 * var(--k));
  height: 96px;
}
.board-in {
  position: relative;
  left: -40px;
  width: calc(100% + 80px);
  height: 100%;
  transform: rotate(-1.2deg);
  border-radius: 18px;
  overflow: hidden;
  background-size: 1100px auto;
  background-repeat: repeat-x;
  box-shadow: 4px 7px 0 rgba(0,0,0,.25), 0 30px 50px rgba(0,0,0,.5), inset 0 1.5px 0 rgba(255,225,190,.3), inset 0 -3px 6px rgba(0,0,0,.4);
}
.holes { position: absolute; left: 0; top: 0; }
.rail-p { display: none; }
/* Strip pegs: the app's proportions with a 16px head (unit 1.6px), each placed by its hole's
   center minus the SVG's origin (9.6, 20.8). */
.bpeg { position: absolute; width: 54.4px; height: 38.4px; background: no-repeat 0 0 / 100% 100%; }
.bpeg.blue { background-image: url("../img/jack/peg-blue.svg"); }
.bpeg.amber { background-image: url("../img/jack/peg-amber.svg"); }
.b1 { left: 368.4px; top: 45.2px; }
.b2 { left: 478.4px; top: 9.2px; }
.b3 { left: 854.4px; top: 45.2px; }
.b4 { left: 964.4px; top: 9.2px; }

/* The hero's art may hang below it (the peg strip crosses into the next section), but nothing
   may stick out sideways. Without overflow: clip, clip both ways. */
.hero { overflow: hidden; }
@supports (overflow: clip) {
  .hero { overflow: visible; overflow-x: clip; }
}

/* ---------- Play the Jack ---------- */

.play-phone { --x: 160; --y: 130; --w: 334; --r: 51; --rot: -3deg; }
.play-frame { --x: 1196; --y: 150; --w: 150; --r: 11; --rot: 5deg; }

/* ---------- Friends ---------- */

.friends-tablet { --x: 640; --y: 130; --w: 625; --rot: 2deg; }
.friends-phone { --x: 1040; --y: 330; --w: 237; --r: 39; --rot: -4deg; }
/* The Jack of hearts sits beside the three options, never over them. */
.ticks-row { display: flex; align-items: center; gap: calc(56 * var(--k)); }
.friends-frame { flex-shrink: 0; margin-top: 12px; --w: 140; --r: 10; --rot: -4deg; }

/* ---------- Apple TV ---------- */

.tv .copy { text-align: center; }
.tv .ticks { display: flex; justify-content: center; gap: calc(34 * var(--u)); margin-top: 24px; }
.tv .ticks li { gap: 10px; }
@media (min-width: 1100px) {
  /* The three points stay on one line, centered even when they run wider than the copy, and the
     copy rises a little below 1440px so they clear the TV (the type doesn't shrink with the page). */
  .tv .ticks { margin-inline: calc(-200 * var(--u)); }
  .tv .ticks li { white-space: nowrap; }
  .tv .copy { top: calc(var(--cy) * var(--u) - clamp(0px, (1440px - 100vw) * .09, 34px)); }
}
.tv-set { --x: 230; --y: 420; --w: 980; }
/* The credenza: a little wider than the TV, fading out at both ends. The Apple TV box and the
   board sit on its top in front of the TV (.tv-gear), outside the fade. */
.tv-console, .tv-gear { --x: 130; --y: 979; --cz: .894; --czh: .62; }

.console {
  position: relative;
  width: calc(1320 * var(--cz) * var(--k));
  height: calc((18 + 218 * var(--czh) + 30) * var(--k));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.console > span, .console i, .tv-gear > span, .tv-gear i { position: absolute; display: block; }
.c-shadow {
  left: 0;
  top: calc((18 + 218 * var(--czh) - 14) * var(--k));
  width: 100%;
  height: calc(36 * var(--k));
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.45), rgba(0,0,0,0));
}
.c-leg {
  top: calc((18 + 172 * var(--czh)) * var(--k));
  width: calc(12 * var(--k));
  height: calc(46 * var(--czh) * var(--k));
  background: linear-gradient(90deg, #2A190D, #4A2E19, #22140A);
  clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%);
}
.c-leg.l { left: calc(150 * var(--cz) * var(--k)); }
.c-leg.r { right: calc(150 * var(--cz) * var(--k)); }
.c-top {
  left: 0;
  top: 0;
  width: 100%;
  height: calc(18 * var(--k));
  border-radius: calc(4 * var(--k));
  background-size: calc(700 * var(--k)) auto;
  filter: brightness(1.12);
  box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,230,200,.35);
}
.c-cab {
  left: calc(12 * var(--k));
  top: calc(18 * var(--k));
  width: calc(100% - 24 * var(--k));
  height: calc(172 * var(--czh) * var(--k));
  display: flex !important;
  background-size: calc(700 * var(--k)) auto;
  background-position: 30% 0;
  filter: brightness(.7);
  box-shadow: 4px 7px 0 rgba(0,0,0,.25), 10px 16px 22px rgba(0,0,0,.45);
}
.c-door { position: relative; flex: 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 2px 3px 6px rgba(0,0,0,.35); }
.c-door i {
  right: calc(12 * var(--k));
  top: 35%;
  width: calc(4 * var(--k));
  height: calc(38 * var(--czh) * var(--k));
  border-radius: 2px;
  background: linear-gradient(90deg, #8A6A33, #E8C67C, #9A7838);
  box-shadow: 1px 2px 2px rgba(0,0,0,.5);
}
.c-door i.lft { right: auto; left: calc(12 * var(--k)); }
.tv-gear { width: calc(1320 * var(--cz) * var(--k)); height: 0; }
.c-remote {
  left: calc(190 * var(--cz) * var(--k));
  top: calc(-22 * var(--k));
  width: calc(99 * var(--cz) * var(--k));
  height: calc(22 * var(--k));
  border-radius: calc(6 * var(--k)) calc(6 * var(--k)) calc(2 * var(--k)) calc(2 * var(--k));
  background: linear-gradient(#2E2F33, #0E0E10);
  box-shadow: 3px -1px 5px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
}
.c-remote i {
  right: calc(8 * var(--k));
  top: calc(9 * var(--k));
  width: calc(3 * var(--k));
  height: calc(3 * var(--k));
  border-radius: 50%;
  background: #E8E8E8;
  opacity: .7;
}
.c-tray {
  right: calc(190 * var(--cz) * var(--k));
  top: calc(-14 * var(--k));
  width: calc(132 * var(--cz) * var(--k));
  height: calc(14 * var(--k));
  border-radius: calc(3 * var(--k)) calc(3 * var(--k)) 0 0;
  background-size: calc(300 * var(--k)) auto;
  filter: brightness(1.25);
  box-shadow: 3px -1px 4px rgba(0,0,0,.4);
}
.c-tray i {
  top: calc(-9 * var(--k));
  width: calc(5 * var(--k));
  height: calc(11 * var(--k));
  border-radius: calc(2.5 * var(--k)) calc(2.5 * var(--k)) calc(1 * var(--k)) calc(1 * var(--k));
}
.c-tray i:nth-child(1) { left: 20%; }
.c-tray i:nth-child(2) { left: 29%; }
.c-tray i:nth-child(3) { left: 38%; }
.c-tray i:nth-child(4) { left: 47%; }
.c-tray .am { background: var(--amber); }
.c-tray .bl { background: var(--blue); }

/* ---------- Pegboard ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips li {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--green);
  color: var(--cream);
  font-size: 18.5px;
  font-weight: 700;
  box-shadow: 1.5px 2.5px 0 #0B2015, 4px 8px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
}
.dot { width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--amber); }
.peg-phone { --x: 820; --y: 70; --w: 326; --r: 50; --rot: 3deg; }
.peg-back { --x: 1120; --y: 380; --w: 120; --r: 8.6; --rot: -12deg; }
.peg-five { --x: 1180; --y: 410; --w: 120; --r: 8.6; --rot: 10deg; }

/* ---------- Make it yours ---------- */

.kit {
  position: absolute;
  left: calc(120 * var(--u));
  top: calc(400 * var(--u));
  z-index: 1;
  color: var(--ink);
}
.kit-label {
  margin-bottom: calc(14 * var(--k));
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(28,31,29,.66);
}
.kit-label:nth-of-type(2) { margin-top: calc(27 * var(--k)); }
.kit-label:nth-of-type(3) { margin-top: calc(45 * var(--k)); }
.swatches { display: flex; gap: calc(14 * var(--k)); }
.swatches li { width: calc(112 * var(--k)); font-size: 14px; font-weight: 600; line-height: 1.3; }
.sw {
  position: relative;
  display: block;
  height: calc(78 * var(--k));
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--sw);
  box-shadow: 2px 3px 0 rgba(0,0,0,.16), 5px 10px 16px rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.08);
}
.sw-felt { --sw: var(--green); }
.sw-velvet { --sw: var(--red); }
.sw-stone { --sw: var(--stone); }
.sw-paper { --sw: var(--cream); }
.sw-wood { background-size: calc(520 * var(--k)) auto; }
.sw-cherry { filter: sepia(.35) saturate(1.7) hue-rotate(-14deg) brightness(1.12); }
.sw-maple { filter: brightness(1.8) sepia(.4) saturate(.85); }
.backs { display: flex; gap: calc(14 * var(--k)); }
.backs li { --w: 92; --r: 6.6; width: calc(92 * var(--k)); }
.back-name { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pegs { display: flex; gap: calc(6 * var(--k)); padding-top: 12px; }
.pegs li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(92 * var(--k));
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.pegs .peg { --ps: 30px; }
.yours-duo { --x: 1000; --y: 310; --sc: .46; --rz: 2deg; --ry: 28deg; }

/* ---------- Earn your suit ---------- */

.suit-row {
  position: absolute;
  left: calc(120 * var(--u));
  top: calc(370 * var(--u));
  display: flex;
  gap: calc(33 * var(--k));
  --sw: 250;
}
.suit {
  --f: calc(var(--sw) / 250 * var(--k));
  position: relative;
  width: calc(250 * var(--f));
  height: calc(330 * var(--f));
  border-radius: calc(18 * var(--f));
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 3px 5px 0 rgba(0,0,0,.2), 10px 20px 30px rgba(0,0,0,.35);
}
.suit-felt { position: absolute; left: 0; right: 0; top: 0; height: calc(250 * var(--f)); opacity: .9; }
.suit img {
  position: absolute;
  left: calc(15 * var(--f));
  top: calc(8 * var(--f));
  width: calc(220 * var(--f));
  height: calc(330 * var(--f));
  object-fit: contain;
  object-position: 50% 0;
}
.suit-cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(84 * var(--f));
  padding: calc(14 * var(--f)) calc(18 * var(--f));
  background: var(--cream);
  box-shadow: 0 -1px 0 rgba(0,0,0,.08);
}
.suit-cap h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: max(21.5px, calc(30 * var(--f)));
  line-height: 1;
  color: var(--ink);
}
.suit-cap p {
  margin-top: calc(6 * var(--f));
  font-size: max(12.5px, calc(14.5 * var(--f)));
  line-height: 1.3;
  color: rgba(28,31,29,.68);
}
.boards {
  position: absolute;
  left: calc(120 * var(--u));
  top: calc(760 * var(--u));
  width: calc(1200 * var(--u));
  display: flex;
  flex-wrap: wrap;
  gap: calc(16 * var(--u)) calc(20 * var(--u));
}
.boards li {
  flex: 0 0 calc((100% - 3 * 20 * var(--u)) / 4);
  box-sizing: border-box;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  box-shadow: inset 0 0 0 1px rgba(243,236,221,.12);
}
.boards h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; white-space: nowrap; line-height: 1.2; color: var(--cream); }
.boards p { margin-top: 2px; font-size: 14.5px; line-height: 1.4; color: rgba(243,236,221,.74); }

/* ---------- Deal yourself in ---------- */

.brand-lg { --m: calc(54 * var(--u)); gap: 12px; margin-bottom: calc(26 * var(--u)); }
.brand-lg .brand-name { font-size: max(30px, calc(36.5 * var(--u))); }
.closing .h2 { font-size: max(56px, calc(78 * var(--u))); }
.closing .badge { margin-top: calc(30 * var(--u)); }
.fan .card { --w: 120; --r: 8.6; }
.f1 { --x: 820; --y: 184; --rot: -24deg; }
.f2 { --x: 854; --y: 178; --rot: -18deg; }
.f3 { --x: 888; --y: 172; --rot: -12deg; }
.f4 { --x: 922; --y: 166; --rot: -6deg; }
.f5 { --x: 956; --y: 160; --rot: 0deg; }
.f6 { --x: 990; --y: 166; --rot: 6deg; }
.f7 { --x: 1024; --y: 172; --rot: 12deg; }
.f8 { --x: 1058; --y: 178; --rot: 18deg; }
.king { --x: 1120; --y: 170; --w: 130; --r: 9.4; --rot: 18deg; }

/* ---------- Footer ---------- */

.foot-in {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(46 * var(--u)) calc(120 * var(--u)) 40px;
}
.lockup { width: 174px; height: 54px; margin-left: -6px; }
.made { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(243,236,221,.62); }
.made a, .foot-links a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(243,236,221,.35);
  text-underline-offset: 3px;
}
.made > a { font-weight: 700; }
.foot-links { margin-left: .6em; }
.foot-links a { color: rgba(243,236,221,.86); }
.made a:hover, .foot-links a:hover { text-decoration-color: currentColor; }
.legal { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: rgba(243,236,221,.58); max-width: 1200px; }

/* ================= Between phone and desktop: stacked ================= */

@media (max-width: 1099px) {
  .sec { --k: calc(min(100cqw - 64px, var(--aw) * 1px) / var(--aw)); }
  .stage { height: auto; padding-bottom: 72px; }
  .copy, .kit, .suit-row, .boards {
    position: relative;
    left: auto;
    top: auto;
  }
  .copy { width: auto; max-width: 640px; margin: 0 auto; padding: 96px 32px 0; }
  .art {
    position: relative;
    inset: auto;
    width: calc(var(--aw) * var(--k));
    height: calc(var(--ah) * var(--k));
    margin: 48px auto 0;
  }
  .h2 { font-size: 56px; }
  .lede { font-size: 18.5px; }

  /* header: the brand and a menu */
  .top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 32px 0; }
  .top .brand { position: static; gap: 12px; --m: 38px; }
  .top .brand-name { font-size: 25px; }
  .getapp { display: none; }
  .menu-button {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(243,236,221,.35);
    cursor: pointer;
  }
  .menu-button span { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--cream); }
  .nav {
    display: none;
    position: absolute;
    left: auto;
    right: 24px;
    top: calc(100% + 10px);
    transform: none;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
    padding: 10px;
    border-radius: 18px;
    background: var(--night);
    box-shadow: 0 0 0 1px rgba(243,236,221,.12), 4px 8px 0 rgba(0,0,0,.25), 0 20px 40px rgba(0,0,0,.45);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 17px; }
  .nav a:hover { background: rgba(243,236,221,.08); }
  .nav .sheet-only { display: flex; margin-top: 8px; height: 46px; color: var(--ink); }
  .nav .sheet-only:hover { background: #F0B54D; }

  /* hero */
  .hero { --aw: 1060; --ah: 660; }
  .hero .stage { padding-bottom: calc(120 * var(--k)); }
  .hero-copy { padding-top: 48px; }
  .hero-title { font-size: 82px; }
  .tagline { margin-top: 12px; font-size: 34.5px; }
  .hero-eyebrow { margin-bottom: 18px; }
  .hero-copy .lede { width: auto; max-width: 520px; margin-top: 20px; }
  .cta { gap: 16px; margin-top: 28px; }
  .cta .badge, .closing .badge { width: 168px; height: 56px; }
  .see { height: 56px; padding: 0 22px; border-radius: 17px; font-size: 17.5px; }
  .hero .art { margin-top: 32px; }
  .hero-jack { --x: 0; --y: 30; }
  .hero-duo { --x: 430; --y: 250; }
  .hero-phone { --x: 790; --y: 0; }

  .play { --aw: 560; --ah: 740; }
  .play-phone { --x: 20; --y: 10; }
  .play-frame { --x: 400; --y: 40; }

  .friends { --aw: 680; --ah: 720; }
  .friends-tablet { --x: 0; --y: 10; }
  .friends-phone { --x: 430; --y: 220; }

  .tv { --aw: 1180; --ah: 760; }
  .tv .copy { text-align: left; }
  .tv .ticks { display: block; margin-top: 0; }
  .tv .ticks li { gap: 12px; }
  .tv-set { --x: 100; --y: 22; }
  .tv-console, .tv-gear { --x: 0; --y: 581; }

  .pegboard { --aw: 520; --ah: 740; }
  .peg-phone { --x: 20; --y: 10; }
  .peg-back { --x: 330; --y: 340; }
  .peg-five { --x: 390; --y: 370; }

  .yours { --aw: 480; --ah: 400; }
  .kit { max-width: 640px; margin: 48px auto 0; padding: 0 32px; --k: 1px; }
  .swatches, .backs, .pegs { flex-wrap: wrap; row-gap: 16px; }
  .yours-duo { --x: 20; --y: 40; }

  .suits { --aw: 600; }
  .suit-row {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 24px;
    margin: 48px auto 0;
    padding: 0 32px;
    --k: 1px;
  }
  .boards { width: auto; max-width: 900px; margin: 40px auto 0; padding: 0 32px; gap: 16px; }
  .boards li { flex: 0 0 calc((100% - 16px) / 2); }

  .closing { --aw: 470; --ah: 290; }
  .closing .copy { padding-top: 80px; }
  .brand-lg { --m: 54px; margin-bottom: 26px; }
  .closing .badge { margin-top: 30px; }
  .closing .h2 { font-size: 69px; }
  .f1 { --x: 20; --y: 44; }
  .f2 { --x: 54; --y: 38; }
  .f3 { --x: 88; --y: 32; }
  .f4 { --x: 122; --y: 26; }
  .f5 { --x: 156; --y: 20; }
  .f6 { --x: 190; --y: 26; }
  .f7 { --x: 224; --y: 32; }
  .f8 { --x: 258; --y: 38; }
  .king { --x: 320; --y: 30; }

  .foot-in { max-width: 704px; padding: 48px 32px 40px; }
}

/* ================= Phone ================= */

@media (max-width: 699px) {
  /* 1 design px of the 390 artboard, up to 480 wide */
  .sec { --k: calc(min(100cqw, 480px) / 390); }
  .stage { padding-bottom: 48px; }
  .copy { max-width: 520px; padding: 70px 24px 0; }
  .art { width: calc(390 * var(--k)); height: calc(var(--ph) * var(--k)); margin-top: 28px; }
  .h2 { font-size: 43px; }
  .lede { font-size: 16.5px; }
  .ticks li { font-size: 16px; }

  .play .tear-in { clip-path: polygon(0% 100%, 0.00% 6.6px, 35.13% 40.2px, 73.59% 5.4px, 98.72% 35.7px, 100% 20.7px, 100% 100%); }
  .friends .tear-in { clip-path: polygon(0% 100%, 0.00% 37.7px, 48.97% 4.5px, 99.49% 37.6px, 100% 20.7px, 100% 100%); }
  .tv .tear-in { clip-path: polygon(0% 100%, 0.00% 9.1px, 27.44% 29.6px, 72.56% 14.4px, 100% 20.7px, 100% 100%); }
  .pegboard .tear-in { clip-path: polygon(0% 100%, 0.00% 4.6px, 45.38% 38.5px, 74.36% 5.0px, 100% 20.7px, 100% 100%); }
  .yours .tear-in { clip-path: polygon(0% 100%, 0.00% 38.6px, 34.87% 10.3px, 83.08% 37.1px, 100% 20.7px, 100% 100%); }
  .suits .tear-in { clip-path: polygon(0% 100%, 0.00% 4.5px, 43.85% 31.0px, 94.36% 11.4px, 100% 20.7px, 100% 100%); }
  .closing .tear-in { clip-path: polygon(0% 100%, 0.00% 1.1px, 50.51% 27.1px, 83.59% 5.3px, 100% 20.7px, 100% 100%); }
  .foot .tear-in { clip-path: polygon(0% 100%, 0.00% 31.9px, 50.77% 5.7px, 76.67% 34.3px, 100% 20.7px, 100% 100%); }

  /* hero */
  .stripes { background: repeating-linear-gradient(118deg, rgba(234,223,200,0) 0 120px, rgba(234,223,200,.06) 120px 180px, rgba(234,223,200,0) 180px 300px); }
  .top { padding: 16px 24px 0; }
  .top .brand { --m: 34px; }
  .top .brand-name { font-size: 22.5px; }
  .nav { right: 16px; }
  .hero { --ph: 550; }
  .hero .stage { padding-bottom: 0; }
  .hero-copy { padding-top: 40px; }
  .hero-title { font-size: min(62.5px, calc(100cqw * 62.5 / 390)); line-height: .95; }
  .tagline { margin-top: 8px; font-size: 28px; }
  .hero-copy .lede { margin-top: 14px; font-size: 16.5px; line-height: 1.55; }
  .cta { margin-top: 22px; }
  .cta .badge { width: 150px; height: 50px; }
  .see { display: none; }
  .hero-eyebrow {
    order: 0;
    margin: 14px 0 0;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: none;
    color: rgba(243,236,221,.7);
  }
  .hero .art { margin-top: 12px; }
  .hero-jack { --x: -30; --y: 10; --w: 250; }
  .hero-duo { display: none; }
  .hero-phone { --x: 150; --y: 40; --w: 225; --r: 38; --rot: 3deg; }
  .band-1 { --bb: 230; --clip: polygon(0% 100%, 0.00% 7.14%, 40.26% 43.64%, 83.85% 5.93%, 100% 22.50%, 100% 100%); }
  .band-2 { --bb: 200; --clip: polygon(0% 100%, 0.00% 36.00%, 54.62% 15.50%, 100% 22.50%, 100% 100%); }
  .band-3 { --bb: 172; --clip: polygon(0% 100%, 0.00% 41.93%, 62.31% 11.21%, 100% 22.50%, 100% 100%); }
  .board { top: calc(100% - 92 * var(--k)); height: 80px; }
  .rail-d, .b3, .b4 { display: none; }
  .rail-p { display: inline; }
  .b1 { left: 164.4px; }
  .b2 { left: 274.4px; }

  .play { --ph: 580; }
  .play-phone { --x: 64; --y: 0; --w: 264; --r: 43; --rot: -2deg; }
  .play-frame { display: none; }
  .friends-frame { display: none; }

  .friends { --ph: 420; }
  .friends-tablet { --x: 18; --y: 0; --w: 362; --rot: 0deg; }
  .friends-phone { --x: 220; --y: 90; --w: 155; --r: 29; --rot: -4deg; }

  .tv { --ph: 290; }
  .tv-set { --x: 22; --y: 0; --w: 366; }
  .tv-console, .tv-gear { --x: -5; --y: 208; --cz: .303; --czh: .2; }

  .pegboard { --ph: 570; background-size: 1100px auto; }
  .chips { gap: 8px; margin-top: 20px; }
  .chips li { height: 40px; padding: 0 14px; border-radius: 12px; font-size: 15px; box-shadow: 1.5px 2.5px 0 #0B2015, 3px 6px 10px rgba(0,0,0,.35); }
  .dot { width: 9px; height: 9px; margin-right: 6px; }
  .peg-phone { --x: 64; --y: 0; --w: 264; --r: 43; --rot: 2deg; }
  .peg-back, .peg-five { display: none; }

  .yours { --ph: 260; }
  .kit { width: calc(342 * var(--k)); max-width: none; margin: 48px auto 0; padding: 0; --k: calc(min(100cqw, 480px) / 390); }
  .kit-label { margin-bottom: 10px; font-size: 12.5px; }
  .kit-label:nth-of-type(2) { margin-top: 44px; }
  .kit-label:nth-of-type(3) { margin-top: 24px; }
  .swatches { gap: 12px calc(12 * var(--k)); row-gap: 12px; }
  .swatches li { width: calc(98 * var(--k)); }
  .sw { height: calc(64 * var(--k)); }
  .backs { gap: calc(6 * var(--k)); flex-wrap: nowrap; }
  .backs li { --w: 52; --r: 3.7; width: calc(52 * var(--k)); }
  .back-name, .peg-name {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
    clip-path: inset(50%); white-space: nowrap;
  }
  .pegs { gap: 22px; flex-wrap: nowrap; }
  .pegs li { width: auto; }
  .pegs .peg { --ps: 26px; }
  .yours .art { margin-top: 36px; }
  .yours-duo { --x: 42; --y: 20; --sc: .3; --rz: 2deg; --ry: 30deg; }

  .suits .stage { padding-bottom: 56px; }
  .suit-row {
    width: calc(342 * var(--k));
    grid-template-columns: repeat(2, 1fr);
    justify-content: stretch;
    gap: calc(18 * var(--k));
    margin: 40px auto 0;
    padding: 0;
    --sw: 162;
    --k: calc(min(100cqw, 480px) / 390);
  }
  .suit { border-radius: calc(14 * var(--k)); }
  .suit-cap { height: calc(56 * var(--k)); padding: calc(9 * var(--k)) calc(12 * var(--k)); box-shadow: none; }
  .suit-cap h3 { font-size: calc(22.5 * var(--k)); }
  .suit-cap p { margin-top: calc(4 * var(--k)); font-size: max(12px, calc(12.5 * var(--k))); }
  .boards {
    flex-direction: column;
    width: calc(342 * var(--k));
    max-width: none;
    margin: 36px auto 0;
    padding: 0;
    gap: 10px;
  }
  .boards li { flex: none; padding: 12px 14px; border-radius: 12px; }
  .boards h3 { font-size: 22.5px; }
  .boards p { margin-top: 0; font-size: 14px; }

  .closing { --ph: 190; }
  .closing .copy { padding-top: 56px; }
  .brand-lg { --m: 42px; margin-bottom: 6px; }
  .brand-lg .brand-name { font-size: 28px; }
  .closing .h2 { font-size: 52px; }
  .closing .lede { font-size: 18.5px; }
  .closing .badge { width: 150px; height: 50px; margin-top: 22px; }
  .closing .art { margin-top: 20px; }
  .fan .card { --w: 84; --r: 6; }
  .f1 { --x: 70; --y: 26; --rot: -20deg; }
  .f2 { --x: 96; --y: 22; --rot: -14deg; }
  .f3 { --x: 122; --y: 18; --rot: -8deg; }
  .f4 { --x: 148; --y: 14; --rot: -2deg; }
  .f5 { --x: 174; --y: 10; --rot: 4deg; }
  .f6 { --x: 200; --y: 14; --rot: 10deg; }
  .f7 { --x: 226; --y: 18; --rot: 16deg; }
  .f8 { display: none; }
  .king { --x: 250; --y: 10; --w: 90; --r: 6.5; --rot: 16deg; }

  .foot-in { padding: 40px 24px 36px; }
  .lockup { width: 155px; height: 48px; margin-left: -5px; }
  .made { margin-top: 8px; font-size: 14.5px; }
  .foot-links { display: block; margin-left: 0; }
  .legal { margin-top: 14px; font-size: 12.5px; }
}

/* ================= Join page ================= */

.join-body { min-height: 100vh; min-height: 100svh; background: var(--green); }
.join-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --k: 1px;
}
.join-top { position: relative; isolation: isolate; height: 320px; background-color: var(--red); }
.join-top .stripes { background: repeating-linear-gradient(118deg, rgba(234,223,200,0) 0 120px, rgba(234,223,200,.06) 120px 180px, rgba(234,223,200,0) 180px 300px); }
.join-brand { position: absolute; left: 24px; top: 16px; --m: 34px; }
.join-brand .brand-name { font-size: 22.5px; }
.join-jack {
  position: absolute;
  left: 50%;
  top: 52px;
  width: 210px;
  height: 315px;
  margin-left: -105px;
  object-fit: contain;
  filter: drop-shadow(4px 7px 0 rgba(0,0,0,.18)) drop-shadow(12px 20px 18px rgba(0,0,0,.4));
}
.join-bottom { position: relative; isolation: isolate; flex: 1; background-color: var(--green); padding: 0 24px 32px; }
.join-bottom .band { height: 140px; --k: 1px; }
.join-bottom .band-1 { bottom: auto; top: -60px; --clip: polygon(0% 100%, 0.00% 40.93%, 54.10% 4.86%, 100% 22.50%, 100% 100%); }
.join-bottom .band-2 { bottom: auto; top: -30px; --clip: polygon(0% 100%, 0.00% 5.43%, 57.69% 34.79%, 100% 22.50%, 100% 100%); }
.join-bottom .band-3 { bottom: auto; top: -2px; --clip: polygon(0% 100%, 0.00% 41.64%, 46.15% 7.71%, 100% 22.50%, 100% 100%); }
.invite {
  position: relative;
  isolation: isolate;
  z-index: 2;
  max-width: 342px;
  margin: -20px auto 0;
  padding: 24px 22px 22px;
  border-radius: 22px;
  overflow: hidden;
  background-color: var(--green);
  text-align: center;
  box-shadow: 3px 5px 0 rgba(0,0,0,.25), 10px 20px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
}
.invite .eyebrow { font-size: 13px; }
.invite h1 {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34.5px;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--cream);
}
.code { display: flex; justify-content: center; gap: 10px; margin: 20px 0 22px; }
.digit {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 76px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 47.5px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1), 2px 3px 0 rgba(0,0,0,.2), 5px 10px 14px rgba(0,0,0,.35);
}
.code .tilt:nth-child(1) .digit { transform: rotate(-4deg); }
.code .tilt:nth-child(2) .digit { transform: rotate(2deg); }
.code .tilt:nth-child(3) .digit { transform: rotate(-2deg); }
.code .tilt:nth-child(4) .digit { transform: rotate(3deg); }
.invite .open { height: 56px; padding: 0 26px; border-radius: 17px; font-size: 18.5px; }
.invite .body { margin: 18px 0 14px; font-size: 15px; line-height: 1.55; color: rgba(243,236,221,.78); }
.invite .badge { width: 144px; height: 48px; }
.invite[data-state="none"] .code,
.invite[data-state="none"] .open,
.invite[data-state="none"] .has-code { display: none; }
.invite:not([data-state="none"]) .no-code { display: none; }
.join-note {
  position: relative;
  z-index: 2;
  max-width: 342px;
  margin: 20px auto 0;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  color: rgba(243,236,221,.7);
}

/* ================= 404 ================= */

.lost { --bg: var(--red); min-height: 100vh; min-height: 100svh; }
.lost-in {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}
.lost .brand { --m: 42px; }
.lost .brand-name { font-size: 28px; }
.lost-main { display: flex; align-items: center; gap: 48px; margin-top: 40px; }
.lost-jack { flex-shrink: 0; --w: 320; --k: 1px; }
.lost-copy .h2 { margin-top: 0; font-size: 65px; }
.lost-copy .btn { margin-top: 32px; height: 56px; padding: 0 24px; border-radius: 17px; font-size: 17.5px; }
.lost .band { --k: 1px; }
@media (max-width: 699px) {
  .lost-in { padding: 16px 24px 200px; }
  .lost .brand { --m: 34px; }
  .lost .brand-name { font-size: 22.5px; }
  .lost-main { flex-direction: column-reverse; align-items: flex-start; gap: 16px; margin-top: 40px; }
  .lost-jack { --w: 220; align-self: center; }
  .lost-copy .h2 { font-size: 43px; }
}
.lost + .foot { --prev: var(--green-lt); }
.lost .band-1 { --bb: 58; }
.lost .band-2 { --bb: 28; }
.lost .band-3 { --bb: 0; }
/* Keeps the last words of a display line together, so a line never ends with one word alone. */
.nowrap { white-space: nowrap; }

/* ================= Support and Privacy ================= */
/* The SiteSupport artboard: red felt with the header, the title and a Jack in his frame, then the
   answers on cream cards over green felt. */
.doc-hero { --bg: var(--red); z-index: 2; position: relative; }
.doc-stage {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(470 * var(--u));
  padding: calc(150 * var(--u)) calc(120 * var(--u)) calc(84 * var(--u));
}
.doc-head { position: relative; z-index: 1; max-width: calc(680 * var(--u)); }
.doc-head .h2 { font-size: max(47px, calc(78 * var(--u))); }
.doc-head .lede { color: rgba(243,236,221,.82); }
.doc-head .lede a { color: var(--cream); font-weight: 700; text-underline-offset: 3px; text-decoration-color: rgba(243,236,221,.45); }
.doc-jack { position: absolute; right: calc(170 * var(--u)); top: calc(120 * var(--u)); --k: var(--u); --w: 190; --r: 13; --rot: 5deg; }
.doc-main { --bg: var(--green); --prev: var(--red); display: block; }
.doc-main .tear-in { clip-path: polygon(0% 100%, 0.00% 6.6px, 9.51% 40.2px, 19.93% 5.4px, 26.74% 35.7px, 40.42% 7.7px, 51.53% 30.3px, 64.10% 7.7px, 77.78% 34.9px, 87.50% 5.2px, 95.07% 30.3px, 100% 20.7px, 100% 100%); }
.doc-cards {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(90 * var(--u)) calc(120 * var(--u)) calc(130 * var(--u));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.doc-card {
  position: relative;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 2px 3px 0 rgba(0,0,0,.2), 8px 16px 26px rgba(0,0,0,.32);
}
.doc-card h2 { font-family: var(--serif); font-weight: 600; font-size: 32.5px; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.doc-card p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: rgba(28,31,29,.76); }
.doc-card a { color: var(--crimson); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 1099px) {
  .doc-stage { min-height: 0; padding: 0 0 72px; }
  .doc-head { max-width: 640px; padding: 56px 32px 0; }
  .doc-jack { right: 40px; top: 96px; --k: .8px; }
  .doc-cards { padding: 64px 32px 96px; gap: 24px; }
}
@media (max-width: 899px) {
  .doc-jack { display: none; }
  .doc-cards { grid-template-columns: 1fr; max-width: 704px; }
}
@media (max-width: 699px) {
  .doc-stage { padding-bottom: 56px; }
  .doc-head { padding: 36px 24px 0; }
  .doc-head .h2 { font-size: 43px; }
  .doc-cards { padding: 48px 24px 72px; gap: 16px; }
  .doc-card { padding: 20px 20px; border-radius: 14px; }
  .doc-card h2 { font-size: 27px; }
  .doc-card p { font-size: 15.5px; }
}

/* ---------- The peg trail ----------
   One long walnut strip down the left margin, its holes in fives; jack.js lays the holes to fit
   the window and moves the pegs as the page scrolls. Desktop layout only. */
.trail {
  position: fixed;
  z-index: 4;
  left: calc(40 * var(--u));   /* anchored to the window's left edge, even when the page is centered on a wide screen */
  top: 24px;
  bottom: 24px;
  width: 30px;
  border-radius: 15px;
  background-color: var(--walnut);
  background-image: url("../img/jack/walnut-1600.jpg");
  background-image: image-set(url("../img/jack/walnut-1100.webp") type("image/webp"), url("../img/jack/walnut-1600.jpg") type("image/jpeg"));
  background-size: 700px auto;
  background-position: 30% 0;
  box-shadow: 2px 4px 0 rgba(0,0,0,.25), 0 16px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,225,190,.28), inset 0 -2px 5px rgba(0,0,0,.4), inset 0 0 0 1px rgba(233,169,58,.4);
  pointer-events: none;
}
.trail .peg { --ps: 14px; position: absolute; left: 8px; margin-top: -7px; }
@media (max-width: 1099px) { .trail { display: none; } }
@media print { .trail { display: none; } }
