/* Kaseta's front page (playkaseta.com). One design language: Times New Roman lines with one accent word in a pill,
   four inks that flood out of objects, text always ink; inside the iPhone, the game's own look (deck.css).
   Type roles (each step at least 1.25x at every width): display > sub-line > body > small. */
@font-face { font-family: "Tinos"; src: url("fonts/tinos-hebrew.woff2") format("woff2"); font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Tinos"; src: url("fonts/tinos-latin.woff2") format("woff2"); 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: "Mixtape Hand"; src: url("/fonts/mixtape-hand.otf") format("opentype"); font-display: swap; }

:root {
  --ink: #221e1b; --cream: #efe9d6; --paper: #f6f0e0; --white: #fffdf6;
  --blue: #0a8fd4; --green: #0fac7a; --pink: #fc4ca5; --yellow: #e9c81c; --reveal: #fcf040;
  --serif: "Times New Roman", Tinos, "Liberation Serif", Times, serif;
  --hand: "Mixtape Hand", "Arial Rounded MT Bold", system-ui, sans-serif;
  --ease-slap: cubic-bezier(.2, 1.6, .4, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: linear(0, .36 8%, .82 18%, 1.08 28%, 1.14 36%, 1.07 48%, .99 60%, .985 72%, 1);
  --barh: 58px; --dockh: 76px; --gut: 18px;
  /* the type roles */
  --t-display: clamp(46px, 14.6vw, 62px); --t-sub: 24px; --t-body: 18px; --t-small: 14.5px;
  --page-ink: var(--cream);
}
@media (min-width: 900px) {
  :root { --barh: 84px; --dockh: 0px; --gut: 56px; --t-display: clamp(72px, 8vw, 138px); --t-sub: clamp(30px, 3vw, 44px); --t-body: clamp(20px, 1.75vw, 25px); --t-small: clamp(16px, 1.3vw, 19px); }
}
* { box-sizing: border-box; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html.gated { overflow: hidden; }
html.dk-focus { overflow: hidden; }
body { margin: 0; color: var(--ink); font: 400 var(--t-body)/1.55 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img, video, canvas { display: block; }
[hidden] { display: none !important; }
img { -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
h1, h2, p, ol, ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.m-only { display: revert; } .d-only { display: none !important; }
@media (min-width: 900px) { .m-only { display: none !important; } .d-only { display: revert !important; } }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.skip { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 300; background: var(--white); border: 2.5px solid var(--ink); border-radius: 10px; padding: 10px 14px; font-size: var(--t-body); transform: translateY(-200%); }
.skip:focus { transform: none; }
.linkish { background: none; border: 0; padding: 12px 2px; margin: -12px 0; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; cursor: pointer; font-size: inherit; }

/* ---------- the ink ---------- */
#bg, .flood { position: fixed; inset: 0; height: 100lvh; pointer-events: none; z-index: -2; background: var(--cream); }
/* a flood layer has a colour only while it pours (main.js Flood, film.js): at rest it is clear, or an iPhone's Safari
   paints the top of the screen (behind the clock) with the colour a finished flood left on it (owner, 14 Nov 2026) */
.flood { background: transparent; }
.flood { z-index: -1; clip-path: circle(0px at 50% 50%); will-change: clip-path; }

/* ---------- the big lines ---------- */
.line, #flHeads h1, #flHeads h2 { font-weight: 400; font-size: var(--t-display); line-height: 1.12; letter-spacing: -.015em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .09em .16em; margin: -.08em -.03em -.16em; }
.wi { display: inline-block; will-change: transform; }
.pill { display: inline-block; padding: 0 .2em .05em; border: .05em solid var(--ink); border-radius: .26em; line-height: 1.02; box-shadow: .06em .07em 0 var(--ink); white-space: nowrap; }
.pill[data-want] { transition: background-color .3s ease .22s; } /* a line pill changes colour with the page (pills.js) */
.p-white { background: var(--white); } .p-yellow { background: var(--yellow); } .p-pink { background: var(--pink); } .p-blue { background: var(--blue); } .p-green { background: var(--green); }
.h-sub { font-size: var(--t-sub); line-height: 1.14; letter-spacing: -.012em; }
.lead { font-size: var(--t-body); line-height: 1.55; max-width: 25em; text-wrap: pretty; } /* reading text: room between the lines (Hebrew Times needs it) */
.note { font-size: var(--t-small); line-height: 1.55; max-width: 30em; }
.eyebrow { font-size: var(--t-small); line-height: 1; display: inline-flex; gap: 9px; align-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 13px 10px; }
.tagchip { font-size: var(--t-small); line-height: 1; background: var(--white); border: 2.5px solid var(--ink); border-radius: 10px; padding: 9px 14px 11px; white-space: nowrap; }
.tagchip.y { background: var(--yellow); }
.livedot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
@keyframes live { 50% { opacity: .25; } }

/* ---------- buttons ---------- */
.btn { font: 400 var(--t-small)/1 var(--serif); font-size: max(17px, var(--t-small)); color: var(--ink); background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; min-height: 48px; padding: 10px 20px 13px; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: translate 90ms, box-shadow 90ms, scale 320ms var(--spring), background-color 200ms; touch-action: manipulation; }
.btn.big { font-size: var(--t-body); min-height: 58px; padding: 13px 28px 17px; border-width: 3px; box-shadow: 0 6px 0 var(--ink); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.yellow { background: var(--yellow); }
.btn .tri { font-size: .68em; }
[dir="ltr"] .btn .tri { scale: -1 1; }
@media (hover: hover) { .btn:hover { scale: 1.04; } .btn.ghost:hover { background: var(--white); } }
.btn:active { translate: 0 4px; box-shadow: 0 0 0 var(--ink); scale: .98; }
.btn.big:active { translate: 0 6px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn .wa { width: 1.25em; height: 1.25em; background: #1faa53; border-radius: 50%; display: grid; place-items: center; flex: none; }
.btn .wa img { width: 62%; height: auto; }

/* the tape-deck PLAY key (the game's own painted key); never mirrors */
.key { position: relative; display: block; width: min(250px, 64vw); aspect-ratio: 640 / 410; direction: ltr; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); text-decoration: none; transition: scale 340ms var(--spring); touch-action: manipulation; }
.key__k { position: absolute; inset: 0; width: 100%; height: 100%; }
.key__down { visibility: hidden; }
.key__face { position: absolute; left: 9%; right: 9%; top: 6%; height: 40%; display: flex; align-items: center; justify-content: center; gap: 5%; font-size: clamp(20px, 6vw, 26px); white-space: nowrap; }
.key__face .tri { font-size: 1.15em; line-height: 1; }
[dir="ltr"] .key__face { font-size: clamp(16px, 4.8vw, 20px); }
.key__face img { height: auto; width: 64%; }
[dir="rtl"] .key__face { direction: rtl; } [dir="rtl"] .key__face .tri { order: -1; }
@media (hover: hover) { .key:hover { scale: 1.035; } }
.key:active .key__up, .key[aria-pressed="true"] .key__up { visibility: hidden; }
.key:active .key__down, .key[aria-pressed="true"] .key__down { visibility: visible; }
.key:active .key__face, .key[aria-pressed="true"] .key__face { top: 16%; }

/* store badges: the official files, unaltered, never animated, App Store first */
.store { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.soon { white-space: nowrap; font-size: var(--t-small); line-height: 1; background: var(--white); border: 2px solid var(--ink); border-radius: 9px; padding: 7px 11px 9px; }
[data-store="live"] .soon { display: none; }
.badges { --bh: 46px; display: flex; align-items: center; gap: calc(var(--bh) / 4 + 6px); direction: ltr; }
[dir="rtl"] .badges { flex-direction: row-reverse; }
.badge { display: block; line-height: 0; }
.badge img { height: var(--bh); width: auto; }
.badge.gp img { height: calc(var(--bh) * 1.48); margin: calc(var(--bh) * -.24) calc(var(--bh) * -.16); }
.badge[aria-disabled="true"] { cursor: default; }
/* one store live, the other not yet: the waiting store's badge is quieter and says "soon" under it (the badge itself unaltered) */
.badge[hidden] { display: none; } .badge[data-soon] { position: relative; } [data-store="part"] .badge[data-soon] img { opacity: .5; }
.badge__soon { position: absolute; left: 50%; top: calc(100% + 4px); translate: -50% 0; white-space: nowrap; font: 400 13px/1 var(--serif); background: var(--white); border: 2px solid var(--ink); border-radius: 7px; padding: 3px 7px 4px; }
.badge.gp .badge__soon { top: calc(100% - var(--bh) * .24 + 4px); }
[data-store="part"] .store { padding-bottom: 22px; }

/* ---------- the Tape heads (faces.js): a square box; the Rive head's 420 art box fills it ---------- */
.head { display: block; width: 84px; aspect-ratio: 1; }
.tf { position: relative; }
.tf__img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(34, 30, 27, .22)); }
.tf__cv { position: absolute; left: -21.43%; top: -104.76%; width: 142.86%; height: 214.29%; max-width: none; opacity: 0; pointer-events: none; transform-origin: 50% 82%; will-change: transform; } /* no filter: a filter on a canvas that repaints is re-rastered every frame */
.tf[data-live="true"] .tf__cv { opacity: 1; }
.tf[data-live="true"] .tf__img { visibility: hidden; }

/* ---------- the top bar: the deck's transport ---------- */
#bar { position: fixed; inset: 0 0 auto 0; height: var(--barh); padding: 0 var(--gut); padding-top: env(safe-area-inset-top); display: flex; align-items: center; justify-content: space-between; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .4s; }
.entered #bar { opacity: 1; }
#bar > * { pointer-events: auto; }
.wm { height: auto; filter: saturate(1.3) contrast(1.04) drop-shadow(0 3px 0 rgba(34, 30, 27, .14)); }
.bar__wm { display: block; transition: scale 340ms var(--spring), rotate 340ms var(--spring); rotate: 2deg; }
.bar__wm .wm { width: 86px; }
@media (hover: hover) { .bar__wm:hover { scale: 1.06; rotate: -2deg; } }
.bar__acts { display: none; gap: 12px; align-items: center; }
.transport { display: flex; align-items: center; gap: 8px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 11px; padding: 5px 9px 5px 7px; box-shadow: 0 3px 0 var(--ink); }
.transport__mini { position: relative; width: 50px; height: 32px; background: var(--ink); border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.transport__mini img { width: 18px; height: 18px; will-change: transform; }
.transport__mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.winding .transport__mini img { filter: blur(1.2px); }
.transport.has-reels .transport__mini { background: none; width: 80px; } /* reels-site.riv draws its own window (5 : 2) */
.transport__mode { font-size: 16px; min-width: 50px; text-align: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 7px 8px 8px; line-height: 1.1; letter-spacing: -.12em; transition: background-color .15s; }
.transport__mode[data-mode="rw"] { background: var(--pink); }
.transport__mode[data-mode="eject"] { letter-spacing: 0; background: var(--white); }
.transport__cnt { font-size: 18px; font-variant-numeric: tabular-nums; min-width: 40px; text-align: center; line-height: 1; }
.transport__snd { display: none; font-size: var(--t-small); align-items: center; gap: 7px; background: none; border: 0; border-inline-start: 2px solid var(--ink); padding: 8px 10px 9px 2px; padding-inline-start: 12px; cursor: pointer; line-height: 1; min-height: 44px; margin-block: -6px; }
.transport__snd i { width: 13px; height: 13px; border-radius: 50%; background: transparent; border: 2px solid var(--ink); display: block; transition: background-color .15s, scale 300ms var(--spring); }
.transport__snd[aria-pressed="true"] i { background: var(--green); scale: 1.1; }
@media (min-width: 900px) {
  .bar__wm .wm { width: 126px; }
  .bar__acts { display: flex; }
  .transport { position: absolute; left: 50%; translate: -50% 0; gap: 12px; padding: 7px 6px 7px 10px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
  .transport__mini { width: 74px; height: 44px; gap: 8px; } .transport__mini img { width: 26px; height: 26px; }
  .transport__mode { font-size: 21px; min-width: 68px; padding: 8px 12px 9px; }
  .transport__cnt { font-size: 23px; min-width: 56px; }
  .transport__snd { display: inline-flex; }
}

/* ---------- the sticky phone bar ---------- */
#dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; background: var(--white); border-top: 2.5px solid var(--ink); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); translate: 0 110%; transition: translate .45s var(--ease-out); }
.entered #dock { translate: 0 0; }
.dock__prog { position: absolute; left: 0; right: 0; top: -7px; height: 5px; background: #cfc8b4; }
.dock__prog i { display: block; height: 100%; background: var(--pink); transform-origin: right; transform: scaleX(0); will-change: transform; border-inline-end: 0; }
[dir="ltr"] .dock__prog i { transform-origin: left; }
.dock__row { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; }
.dock__row[hidden] { display: none; }
.dock__row .btn { font-size: 19px; min-height: 50px; padding: 11px 18px 14px; }
.dock__row .btn.go { flex: 1; max-width: 250px; }
.dock__snd { width: 50px; height: 50px; flex: none; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 22px; line-height: 1; cursor: pointer; position: relative; transition: scale 300ms var(--spring), background-color .15s; }
.dock__snd[aria-pressed="true"] { background: var(--green); }
.dock__snd[aria-pressed="false"]::after { content: ""; position: absolute; width: 60%; height: 2.5px; background: var(--ink); rotate: -45deg; }
.dock__snd:active { scale: .9; }
.dock__badges { --bh: 42px; }
.dock__row--slim { justify-content: space-between; padding-inline: 8px; font-size: var(--t-body); min-height: 44px; }
@media (min-width: 900px) { #dock { display: none; } }
/* phones: on the end card the big wordmark stands right under the bar, so the bar's small one steps aside (never two logos a few pixels apart) */
@media (max-width: 899px) { .bar__wm { transition: opacity .3s, scale 340ms var(--spring), rotate 340ms var(--spring); } [data-owner="end"] .bar__wm { opacity: 0; pointer-events: none; } }

/* ================= 0 · THE GATE ================= */
/* the loading screen (index.html #loader, main.js): a cassette whose reels turn while the page gets PLAY ready.
   (CSS, not Rive: it has to stand before anything else has arrived.) It gives way by itself after 9 s if no word comes. */
#loader { position: fixed; inset: 0; z-index: 400; background: var(--cream); display: none; place-content: center; justify-items: center; gap: 22px; transition: opacity .35s ease, visibility .35s; }
.js #loader { display: grid; animation: ld-out .35s 9s forwards; }
#loader[data-done] { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes ld-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.ld__wm { width: min(230px, 56vw); height: auto; }
.ld__cass { position: relative; width: 168px; height: 106px; box-sizing: border-box; background: var(--white); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 6px 7px 0 var(--ink); rotate: -3deg; display: flex; align-items: center; justify-content: center; gap: 34px; padding-top: 14px; }
.ld__cass::before { content: ""; position: absolute; inset: 10px 12px auto; height: 16px; border-radius: 4px; background: linear-gradient(var(--pink) 0 33%, var(--yellow) 0 66%, var(--blue) 0); }
.ld__cass::after { content: ""; position: absolute; left: 50%; bottom: -4px; translate: -50% 0; width: 70px; height: 16px; border: 4px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--cream); }
.ld__cass i { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--ink); box-sizing: border-box; background: conic-gradient(var(--ink) 0 22deg, var(--white) 0 120deg, var(--ink) 0 142deg, var(--white) 0 240deg, var(--ink) 0 262deg, var(--white) 0); animation: ld-spin 1s linear infinite; }
@keyframes ld-spin { to { rotate: -360deg; } }
.ld__bar { width: 180px; height: 14px; box-sizing: border-box; border: 3px solid var(--ink); border-radius: 99px; background: var(--white); overflow: hidden; }
.ld__bar b { display: block; height: 100%; width: calc(var(--ld, .08) * 100%); background: var(--pink); transition: width .3s ease; }
.ld__t { margin: 0; font: 400 20px/1.3 var(--serif); }
@media (prefers-reduced-motion: reduce) { .ld__cass i { animation: none; } #loader { transition: none; } }
#gate { position: fixed; inset: 0; z-index: 100; background: var(--cream); overflow: hidden; display: none; }
.js #gate { display: block; }
#gate[hidden] { display: none; }
.gate__wm { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; translate: -50% 0; width: 104px; z-index: 5; rotate: -2deg; }
.gate__links { position: absolute; top: max(24px, calc(env(safe-area-inset-top) + 10px)); inset-inline-end: 16px; font-size: var(--t-small); z-index: 6; }
.gate__links a { padding: 12px 4px; }
.gate__copy { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 74px 18px calc(18px + env(safe-area-inset-bottom)); pointer-events: none; }
.gate__copy > * { pointer-events: auto; }
.gate__copy .eyebrow { margin-bottom: 10px; }
.gate__h { font-size: var(--t-display); line-height: 1.08; letter-spacing: -.02em; white-space: nowrap; }
.gate__copy .h-sub { margin-top: 10px; font-size: 21px; }
.gate__copy .key { margin-top: auto; }
.gate__quiet { margin-top: 10px; font-size: var(--t-small); line-height: 1.5; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.gate__quiet a { padding: 10px 2px; }
.gate__deck { position: absolute; left: 0; right: 0; top: 232px; bottom: 262px; z-index: 2; display: grid; place-items: center; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 78%, transparent 100%); mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 78%, transparent 100%); }
.gate__deck picture, .gate__deck video { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: min(100%, 74vw); aspect-ratio: 1600 / 893; max-width: none; }
.gate__deck img { width: 100%; height: 100%; }
.gate__deck video { opacity: 0; width: auto; }
#gate[data-film="on"] .gate__deck video { opacity: 1; }
.gate__chip { position: absolute; z-index: 6; inset-inline-start: 50%; bottom: 250px; rotate: -4deg; scale: 0; transition: scale 380ms var(--ease-slap); }
.gate__chip[data-on="true"] { scale: 1; }
.gate__flood { position: absolute; inset: 0; z-index: 20; background: var(--pink); clip-path: circle(0px at 50% 50%); pointer-events: none; }
.gate__head { position: absolute; z-index: 3; width: 112px; }
#gate[data-state="pressed"] .gate__copy > :not(.key), #gate[data-state="pressed"] .gate__links { opacity: .0; transition: opacity .5s .2s; }
#gate[data-state="pressed"] .key { transition: opacity .4s 1.1s, scale 340ms var(--spring); opacity: 0; }
@media (max-height: 640px) { .gate__deck { top: 200px; bottom: 236px; } .gate__copy { padding-top: 62px; } .gate__copy .eyebrow { display: none; } }
@media (min-width: 900px) {
  .gate__wm { top: 24px; left: auto; inset-inline-start: var(--gut); translate: none; width: 126px; }
  .gate__links { top: 34px; inset-inline-end: var(--gut); }
  .gate__copy { inset-block: 84px 30px; inset-inline: 6.6vw 50vw; align-items: flex-start; justify-content: center; text-align: start; padding: 0; }
  .gate__copy .eyebrow { margin-bottom: 14px; }
  .gate__copy .h-sub { margin-top: 18px; font-size: var(--t-sub); }
  .gate__copy .key { margin-top: 36px; width: min(360px, 26vw); }
  .gate__copy .key .key__face { font-size: 34px; }
  .gate__quiet { margin-top: 20px; flex-direction: row; gap: 14px; }
  .gate__deck { top: 50%; bottom: auto; left: auto; right: auto; inset-inline-end: -8vw; translate: 0 -46%; width: min(74vw, 132vh); aspect-ratio: 1600 / 893; display: grid; }
  .gate__deck picture, .gate__deck video { left: 0; top: 0; translate: none; width: 100%; height: 100%; }
  .gate__chip { inset-inline-start: 34vw; bottom: 30vh; }
  .gate__head--a { inset-inline-end: 2vw; bottom: 22vh; }
  .gate__head--b { inset-inline-end: 47vw; bottom: 16vh; width: 104px; }
}

/* ================= 1–3 · THE HERO + THE FILM (one sticky stage) ================= */
.sec { position: relative; }
#film { height: 1700svh; }
#flStage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1400px; --hf: min(8vw, 17vh); }
#flStage > * { position: absolute; }
.js:not(.entered) #flStage { visibility: hidden; } /* behind the gate: nothing to lay out or shift */
#flHeads { left: 0; right: 0; top: 68px; padding: 0 12px; pointer-events: none; font-size: var(--t-display); }
#flHeads h1, #flHeads h2 { position: absolute; left: 0; right: 0; top: 0; padding: 0 12px; font-size: 1em; line-height: 1.13; text-align: center; visibility: hidden; }
#flHeads .on { visibility: visible; }
html:not(.arrived) #flHeads .on { visibility: hidden; }
/* the captions: one per chapter, under its big line. Upright Times at the reading size, rising from its own mask
   (film.js) just after the line lands */
#flCaps { left: 0; right: 0; top: 0; height: 0; padding: 0; pointer-events: none; font-size: var(--t-body); z-index: 3; }
.fl-cap { position: absolute; left: 0; right: 0; margin: 0; padding: 0 20px; font-size: 1em; line-height: 1.5; text-align: center; visibility: hidden; text-wrap: balance; }
.fl-cap.on { visibility: visible; }
html:not(.arrived) .fl-cap.on { visibility: hidden; }
.fl-cap .w { display: block; padding: .06em 0 .1em; margin: 0; }
.fl-cap .wi { display: block; }
#flHero { left: 0; right: 0; top: calc(68px + var(--t-display) * 2.36); text-align: center; padding: 0 16px; z-index: 3; will-change: transform, opacity; }
#flHero .h-sub { font-size: var(--t-sub); }
.fl-hero__in { will-change: transform; }
.cta { display: flex; align-items: flex-end; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
#flCass, #flPhoneWrap { left: 0; top: 0; will-change: transform; }
.arrived #flPhoneWrap { animation: fl-rise .95s var(--ease-out) backwards; }
html:not(.arrived) #flPhoneWrap { visibility: hidden; }
@keyframes fl-rise { from { translate: 0 70svh; rotate: 9deg; } }
.cass { position: relative; width: 100%; }
.cass .shell { width: 100%; height: auto; }
.cass .win { position: absolute; left: 26.4%; top: 36.4%; width: 47.2%; height: 24.6%; border-radius: 13% / 26%; overflow: hidden; }
.cass .pack { position: absolute; top: 50%; width: 55.2%; aspect-ratio: 1; margin: -27.6% 0 0 -27.6%; border-radius: 50%; will-change: transform; background: repeating-radial-gradient(circle, #4b3526 0 2px, #3c2a1f 2px 4px); box-shadow: 0 0 0 2px #17110d; }
.cass .pack-l { left: 26.2%; } .cass .pack-r { left: 73.8%; }
.cass .reel { position: absolute; width: 15.5%; top: 36.5%; height: auto; will-change: transform; }
.cass .reel-l { left: 31%; } .cass .reel-r { left: 53.5%; }
#flBadge { position: absolute; left: -3%; top: -15%; width: 31%; padding: 3.4% 5%; background: var(--white); border: max(2px, .22em) solid var(--ink); border-radius: 999px; box-shadow: 0 .3em 0 var(--ink); font-size: 14px; scale: 0; rotate: 6deg; direction: ltr; transition: scale 260ms var(--ease-slap), rotate 260ms var(--ease-slap), background-color .1s; }
#flBadge[data-on="true"] { scale: 1; }
#flBadge svg { display: block; width: 100%; fill: var(--ink); }
#flBadge.rew svg { transform: scaleX(-1); }
#flBadge.rew { background: var(--pink); rotate: 5deg; } #flBadge.ff { background: var(--yellow); rotate: -7deg; }
#flPhone { position: relative; width: 100%; aspect-ratio: 1350 / 2760; will-change: transform; transform-style: preserve-3d; }
#flPhone .shadow { position: absolute; left: -6%; right: -6%; top: 6%; bottom: -5%; background: radial-gradient(closest-side, rgba(34, 30, 27, .34), rgba(34, 30, 27, .16) 55%, rgba(34, 30, 27, 0) 100%); transform: translateY(4%); }
#flPhone .scr { position: absolute; left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%; border-radius: 12.44% / 5.72%; overflow: hidden; background: #f4ecd9; container-type: size; }
#flPhone .scr__hero, #flFilm, #flLobby { position: absolute; inset: 0; width: 100%; height: 100%; }
#flFilm { opacity: 0; }
#flFilm[data-on="true"] { opacity: 1; }
#flPhone .status { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; z-index: 5; }
#flPhone .bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the lobby's live layers (lobby.js): the recording's own pixels, 804 wide; --u is one of them */
#flLobby { --u: calc(100cqw / 804); overflow: hidden; background: #f6efdd; will-change: transform; z-index: 2; }
.lb-plate { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-group { position: absolute; inset: 0; --dy: 0; transform: translate3d(0, calc(var(--dy) * var(--u)), 0); transition: transform 760ms var(--spring); will-change: transform; }
.lb { position: absolute; max-width: none; }
.lb-plus { --tx: 0; --ty: 0; transform: translate3d(calc(var(--tx) * var(--u)), calc(var(--ty) * var(--u)), 0); transition: transform 640ms var(--spring); z-index: 2; will-change: transform; }
.lb-dash { transition: scale 300ms var(--ease-out), opacity 220ms; }
.lb-dash svg { display: block; width: 100%; height: 100%; }
.lb-dash.is-off { scale: .6; opacity: 0; }
.lb-friend { scale: .2; opacity: 0; translate: 0 calc(-70 * var(--u)); rotate: -14deg; transition: scale 620ms var(--spring), translate 620ms var(--spring), rotate 620ms var(--spring), opacity 140ms; z-index: 3; }
.lb-friend.is-on { scale: 1; opacity: 1; translate: 0 0; rotate: 0deg; }
.lb-friend .head { width: 100%; }
.lb-friend .tf__img, .lb-friend .tf__cv { filter: none; }
.lb-name { scale: .5; opacity: 0; transition: scale 460ms var(--spring) 160ms, opacity 160ms 160ms; }
.lb-name.is-on { scale: 1; opacity: 1; }
.lb-host { z-index: 1; }
.lb-keya, .lb-keyb, .lb-wait, .lb-exit { transition: scale 520ms var(--spring), opacity 200ms, transform 640ms var(--spring); }
.lb-keyb { scale: .74; opacity: 0; }
.lb-exit { transform: translate3d(0, calc(57 * var(--u)), 0); }
#flLobby:not([data-n="0"]) .lb-keya { scale: 1.3; opacity: 0; transition: scale 520ms var(--spring), opacity 90ms; }
#flLobby:not([data-n="0"]) .lb-keyb { scale: 1; opacity: 1; }
#flLobby:not([data-n="0"]) .lb-wait { scale: .3; opacity: 0; }
#flLobby:not([data-n="0"]) .lb-exit { transform: translate3d(0, 0, 0); }
#flHint { display: none; }
@media (min-width: 900px) {
  #flHeads { inset-inline: 5vw 47vw; top: 20vh; padding: 0; font-size: var(--hf); }
  #flHeads h1, #flHeads h2 { padding: 0; text-align: start; line-height: 1.1; }
  #flHero { inset-inline: 5vw 47vw; top: calc(20vh + var(--hf) * 2.42); text-align: start; padding: 0; }
  #flCaps { inset-inline: 5vw 47vw; font-size: clamp(21px, 2.05vw, 31px); }
  .fl-cap { padding: 0; text-align: start; max-width: 24em; text-wrap: pretty; }
  #flHero .lead { margin-top: 16px; }
  #flHint { display: block; left: 0; right: 0; bottom: 26px; text-align: center; font-size: var(--t-small); line-height: 1; will-change: opacity; pointer-events: none; }
  .nudge { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
  .arrived #flHint { animation: fl-hint .5s 1.05s backwards; } /* after the iPhone has landed: it rises past this spot */
}
@keyframes nudge { 50% { transform: translateY(5px); } }
@keyframes fl-hint { from { visibility: hidden; opacity: 0; } }

/* ================= 4–8 · THE DECK (its own rules are in deck.css) ================= */
#deck { min-height: 100svh; }
#deck:not([data-ready]) { padding: calc(var(--barh) + 16px) var(--gut) 40px; }
#deck:not([data-ready]) > :not(.dk-copy) { visibility: hidden; }

/* ================= 9 · קסטה לחבר (the frame only; the rest is mixtape/mixtape.css, fetched with the section) ================= */
.mx { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; padding: calc(var(--barh) + 18px) 16px calc(var(--dockh) + 30px); overflow: clip; }
.mx-h { font-weight: 400; font-size: clamp(40px, 12.4vw, 54px); line-height: 1.1; letter-spacing: -.02em; margin-top: 12px; }
.mx-h br { display: none; }
.mx-sub { font-size: 20px; line-height: 1.45; max-width: 24em; }
.mx-stage { min-height: 180px; }
@media (min-width: 900px) {
  .mx { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "hd stage" "views stage"; grid-template-rows: auto auto; align-content: center; gap: 18px clamp(24px, 4vw, 64px); padding: calc(var(--barh) + 10px) clamp(40px, 6vw, 88px) 44px; }
  .mx-hd { grid-area: hd; align-self: end; } .mx-views { grid-area: views; align-self: start; } .mx-stage { grid-area: stage; }
  .mx-h { font-size: clamp(56px, 6.4vw, 100px); } .mx-h br { display: inline; }
  .mx-sub { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; }
}


/* ================= 10 · THE END CARD ================= */
#end { min-height: 100svh; overflow: clip; display: flex; flex-direction: column; align-items: center; padding: calc(var(--barh) + 6px) 16px calc(var(--dockh) + 16px); }
.end__c { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; }
.end__wm { width: min(250px, 62vw); filter: saturate(1.35) brightness(1.04) contrast(1.04) drop-shadow(0 8px 0 rgba(34, 30, 27, .16)); }
.end__h { margin-top: 8px; white-space: nowrap; font-size: clamp(40px, 12vw, 56px); }
.end__get { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: 14px; }
.end__get .key { width: min(250px, 62vw); }
.end__get .store { align-items: center; }
.end__deck { position: relative; z-index: 1; width: 118vw; max-width: none; aspect-ratio: 1600 / 893; margin: -6vw 0 -14vw; flex: none; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%); order: 2; }
.end__deck picture, .end__deck img, .end__deck video { position: absolute; inset: 0; width: 100%; height: 100%; }
.end__deck video { opacity: 0; }
#end[data-film="on"] .end__deck video { opacity: 1; }
.end__foot { position: relative; z-index: 3; order: 3; margin-top: auto; font-size: var(--t-small); text-align: center; }
.end__foot a { padding: 12px 4px; display: inline-block; }
@media (min-width: 900px) {
  #end { flex-direction: row; justify-content: center; padding: var(--barh) var(--gut) 70px; }
  .end__c { margin-inline-end: 34vw; }
  .end__wm { width: min(420px, 30vw); }
  .end__h { font-size: clamp(60px, 6.6vw, 96px); margin-top: 10px; }
  .end__get { flex-direction: row; gap: 36px; margin-top: 34px; }
  .end__get .key { width: 330px; } .end__get .key .key__face { font-size: 32px; }
  [dir="ltr"] .end__get .key .key__face { font-size: 25px; }
  .end__get .store { align-items: flex-start; } .end__get .badges { --bh: 54px; }
  .end__deck { position: absolute; inset-inline-end: -11vw; top: 50%; translate: 0 -40%; width: min(60vw, 104vh); margin: 0; order: 0; }
  .end__foot { position: absolute; bottom: 26px; left: 0; right: 0; }
}

/* ---------- the cursor (a mouse only; main.js sets .oscursor, never on touch or with reduced motion) ----------
   It is the OS's own hardware cursor wearing the painted pictures (32 px, 64 px for retina): the system draws it, so it
   never trails the hand at any refresh rate. A cassette everywhere, a grabbing hand over the deck and the tapes, a play
   button over anything that plays or presses. The hotspots: the cassette's arrow tip, the hand's and the button's middle. */
.oscursor, .oscursor * { cursor: url("img/cursor-tape.png") 3 3, auto !important; cursor: -webkit-image-set(url("img/cursor-tape.png") 1x, url("img/cursor-tape@2x.png") 2x) 3 3, auto !important; cursor: image-set(url("img/cursor-tape.png") 1x, url("img/cursor-tape@2x.png") 2x) 3 3, auto !important; }
.oscursor :is(a[href], button, [role="button"], .key, .answer), .oscursor :is(a[href], button, .key, .answer) * { cursor: url("img/cursor-play.png") 16 16, pointer !important; cursor: -webkit-image-set(url("img/cursor-play.png") 1x, url("img/cursor-play@2x.png") 2x) 16 16, pointer !important; cursor: image-set(url("img/cursor-play.png") 1x, url("img/cursor-play@2x.png") 2x) 16 16, pointer !important; }
.oscursor :is(button:disabled, [aria-disabled="true"], .badge[aria-disabled="true"]), .oscursor :is(button:disabled, [aria-disabled="true"]) * { cursor: url("img/cursor-tape.png") 3 3, auto !important; cursor: -webkit-image-set(url("img/cursor-tape.png") 1x, url("img/cursor-tape@2x.png") 2x) 3 3, auto !important; cursor: image-set(url("img/cursor-tape.png") 1x, url("img/cursor-tape@2x.png") 2x) 3 3, auto !important; }
.oscursor .dk :is(.dk-shelf, .dk-deck), .oscursor .dk :is(.dk-shelf, .dk-deck) *, .oscursor .dk[data-drag], .oscursor .dk[data-drag] * { cursor: url("img/cursor-grab.png") 16 16, grab !important; cursor: -webkit-image-set(url("img/cursor-grab.png") 1x, url("img/cursor-grab@2x.png") 2x) 16 16, grab !important; cursor: image-set(url("img/cursor-grab.png") 1x, url("img/cursor-grab@2x.png") 2x) 16 16, grab !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
/* until the app is in the stores the bar's second key only says "soon": on a narrower window it steps aside for the transport */
@media (max-width: 1239px) { [data-store="soon"] #barGet, #barGet[data-soon] { display: none; } }
/* the mixtape maker above the end card changes height as it is used: the scroll is never "anchored" to the end card
   (or to the maker itself, mixtape.css), which made the page jump under the visitor's hands */
#end { overflow-anchor: none; }

/* No play bar at the top (owner, 14 Nov 2026): the transport's reels, play window and counter are gone; only its
   sound switch stays, on a computer (a phone has the dock's ♪). The pieces stay in the page for the scripts that feed them. */
.transport__mini, .transport__mode, .transport__cnt { display: none !important; }
@media (max-width: 899px) { .transport { display: none; } }
@media (min-width: 900px) { .transport { gap: 0; padding: 4px 6px; } .transport__snd { border-inline-start: 0; padding-inline-start: 6px; } }
