/* Hand (هند) — standalone landing page.
   Tokens from HAND_IDENTITY_GUIDELINES (Handoff 4 / 3.2). Two materials: petrol felt and cream paper. */

/* Alexandria, self-hosted (SIL OFL, assets/fonts/OFL.txt): one variable file per script, no third-party request. */
@font-face {
  font-family: "Alexandria"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/alexandria-arabic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Alexandria"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/alexandria-latin-wght-normal.woff2) format("woff2-variations");
  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 {
  --felt-deep: #112f31;
  --felt-mid: #183f44;
  --felt-center: #1f4f54;
  --night: #0b2224;
  --petrol: #10403f;
  --cream: #f3e9d6;
  --paper-top: #f6eddb;
  --paper-bottom: #efe4cd;
  --ink: #1f1712;
  --ink-2: rgba(31, 23, 18, 0.6);
  --ink-3: rgba(31, 23, 18, 0.32);
  --sand: #ecd6aa;
  --terracotta: #e07b55;
  --terracotta-deep: #a3452a;
  --terracotta-pressed: #8a3a23;
  --red: #ad3420;
  --text-2: rgba(243, 233, 214, 0.62);
  --hair-felt: rgba(236, 214, 170, 0.16);
  --hair-paper: rgba(31, 23, 18, 0.12);
  --panel: rgba(9, 28, 30, 0.45);
  --ease: cubic-bezier(.33, 1, .68, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --shadow-card: 0 2px 5px rgba(5, 20, 22, 0.42);
  --shadow-card-lift: 0 10px 22px rgba(5, 20, 22, 0.38), 0 2px 5px rgba(5, 20, 22, 0.3);
  --gutter: clamp(16px, 5vw, 64px);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--felt-deep); color: var(--cream);
  font-family: "Alexandria", "Noto Sans Arabic", system-ui, sans-serif; font-weight: 400;
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; } /* sections focused by in-page links, as native anchors leave them */

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ------------------------------------------------------------ materials */
.felt {
  position: relative;
  background:
    url(assets/ui/weave.png) repeat,
    radial-gradient(120% 90% at 50% 30%, var(--felt-center) 0%, var(--felt-mid) 45%, var(--felt-deep) 100%);
  background-size: 3px 3px, auto;
}
.paper {
  position: relative; color: var(--ink);
  background: linear-gradient(var(--paper-top), var(--paper-bottom));
}
/* the stitched seam where felt meets paper: one Sadu edge, never a fill */
.paper::before, .paper::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: url(assets/ui/sadu.png) repeat-x; background-size: auto 6px; image-rendering: pixelated; opacity: 0.6;
}
.paper::before { top: 0; }
.paper::after { bottom: 0; }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--sand); letter-spacing: 0; margin-bottom: 14px; }
.paper .eyebrow { color: var(--terracotta-deep); }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 72px); }
.sec-head h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; letter-spacing: -0.01em; }
.sec-sub { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 600px; }
.paper .sec-sub { color: var(--ink-2); }

/* ------------------------------------------------------------ cards (the game's CardView, printed) */
.card {
  position: relative; display: block; aspect-ratio: 50 / 72; height: auto; border-radius: 12% / 8.33%;
  box-shadow: var(--shadow-card); background: var(--paper-top); user-select: none; -webkit-user-drag: none;
}
/* J3 Joker, built from CardView geometry: stacked index at (2.5, 4) step 9.4, art at (14, 13.6, 32, 44.8) on 50 x 72 */
.card.joker {
  background: linear-gradient(#f6eddb, #ede1c9); border: 1px solid rgba(70, 40, 25, 0.22); container-type: inline-size;
}
.card.joker .jl {
  position: absolute; left: 5%; width: 20%; text-align: center; font-weight: 800; color: var(--petrol);
  font-size: 20cqw; line-height: 1; direction: ltr;
}
.card.joker .ja { position: absolute; left: 28%; top: 18.9%; width: 64%; height: 62.2%; object-fit: contain; }

.meld { display: flex; direction: ltr; }
.meld .card { width: var(--cw, 54px); }
.meld .card + .card { margin-left: calc(var(--cw, 54px) * -0.56); }

/* ------------------------------------------------------------ top bar */
.bar {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bar.solid { background: rgba(17, 47, 49, 0.94); box-shadow: 0 1px 0 var(--hair-felt); }
@supports (backdrop-filter: blur(8px)) { .bar.solid { background: rgba(17, 47, 49, 0.82); backdrop-filter: blur(10px); } }
.bar-mark { font-size: 26px; font-weight: 800; text-decoration: none; line-height: 1; }
.bar-nav { display: flex; gap: 24px; font-size: 14px; }
.bar-nav a { text-decoration: none; color: var(--text-2); transition: color 0.15s; padding: 10px 0; }
.bar-nav a:hover { color: var(--cream); }
.bar-cta {
  margin-inline-start: auto; height: 40px; padding: 0 20px; border-radius: 20px; display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid rgba(243, 233, 214, 0.28);
  transition: background 0.15s var(--ease);
}
.bar-cta:hover { background: rgba(243, 233, 214, 0.08); }

/* ------------------------------------------------------------ buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-width: 168px; height: 56px; padding: 0 24px; border-radius: 28px; text-decoration: none; line-height: 1.15;
  border: 1px solid rgba(243, 233, 214, 0.28); transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.store:hover { background: rgba(243, 233, 214, 0.08); }
.store.primary { background: var(--terracotta-deep); border-color: transparent; color: #f8efe0; box-shadow: 0 4px 10px rgba(5, 20, 22, 0.35); }
.store.primary:hover { background: #ad4b2e; }
.store:active { transform: scale(0.98); }
.store.primary:active { background: var(--terracotta-pressed); box-shadow: none; }
.store-small { font-size: 11px; opacity: 0.8; }
.store-name { font-size: 17px; font-weight: 600; direction: ltr; }
/* Not released yet: the same badge, not a link and not pressable. */
.store.soon { cursor: default; }
.store.soon:hover { background: none; }
.store.soon:active { transform: none; }
.store.primary.soon:hover, .store.primary.soon:active { background: var(--terracotta-deep); box-shadow: 0 4px 10px rgba(5, 20, 22, 0.35); }
.text-btn {
  background: none; border: 0; padding: 12px 4px; min-height: 44px; cursor: pointer;
  font-size: 14px; color: var(--sand); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(236, 214, 170, 0.35);
}
.text-btn:hover { text-decoration-color: var(--sand); }
.how-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 15px; font-weight: 500; color: var(--sand);
  text-decoration: none; padding: 10px 0;
}
.how-link::after {
  content: ""; width: 7px; height: 7px; border-left: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor;
  transform: rotate(-45deg) translateY(-2px); transition: transform 0.2s var(--ease);
}
.how-link:hover::after { transform: rotate(-45deg) translate(-2px, 0); }
/* To another page: the chevron points forward (left in RTL) instead of down. */
.how-link.go::after { transform: rotate(45deg); }
.how-link.go:hover::after { transform: rotate(45deg) translate(-2px, 2px); }

/* ------------------------------------------------------------ 1. hero */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center;
  gap: clamp(24px, 4vw, 64px); padding: 112px var(--gutter) 56px; max-width: 100%; overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; max-width: 520px; justify-self: end; width: 100%; }
.hero .eyebrow { margin-bottom: 10px; }
.wordmark { font-size: clamp(110px, 15vw, 210px); font-weight: 700; line-height: 0.95; letter-spacing: -0.01em; }
.signature { display: flex; align-items: center; gap: 12px; margin: 18px 0 30px; }
.signature span { font-size: 11px; letter-spacing: 0.42em; color: rgba(236, 214, 170, 0.75); direction: ltr; }
.sadu-rule { display: block; width: 56px; height: 6px; background: url(assets/ui/sadu.png) repeat-x; background-size: auto 6px; image-rendering: pixelated; opacity: 0.6; }
.hero-lead { font-size: clamp(21px, 2.1vw, 28px); font-weight: 600; line-height: 1.5; max-width: 17em; }
.hero-sub { margin-top: 14px; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-2); max-width: 26em; }
.hero .cta-row { margin-top: 34px; }

.hero-hand { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; }
.fan { position: relative; width: 100%; aspect-ratio: 16 / 9.4; max-width: 760px; }
.fan .card {
  position: absolute; left: 50%; top: 50%; width: var(--fw, 92px); margin: 0;
  transform-origin: 50% 50%; will-change: transform;
  transition: transform 0.75s var(--ease-io), box-shadow 0.3s var(--ease);
}
.fan.dealing .card { transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.fan-foot { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; min-height: 44px; }
.fan-caption { font-size: 13px; color: var(--text-2); }

/* ------------------------------------------------------------ 2. what */
.what { padding: clamp(80px, 11vw, 140px) 0 clamp(72px, 9vw, 120px); }
.statement {
  font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; line-height: 1.5; max-width: 22em; letter-spacing: -0.005em;
}
.statement em { font-style: normal; color: var(--terracotta-deep); }
.facts {
  list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair-paper);
}
.facts li { padding: 26px 0 0; display: flex; flex-direction: column; gap: 6px; }
.facts li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--hair-paper); }
.facts b { align-self: flex-start; font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1; }
.facts span { font-size: 15px; color: var(--ink-2); }

/* ------------------------------------------------------------ 3. how */
.how { padding: clamp(88px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.chapter {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--hair-felt);
}
.ch-text { max-width: 470px; }
.ch-no { font-size: 13px; font-weight: 600; color: var(--sand); opacity: 0.8; }
.ch-text h3 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; margin: 6px 0 20px; }
.ch-text p { font-size: 17px; line-height: 1.85; color: rgba(243, 233, 214, 0.86); }
.ch-text p + p { margin-top: 14px; }
.ch-text .hint { font-size: 14px; color: var(--text-2); margin-top: 20px; }
.ch-object { position: relative; }

/* 01 quiz */
.quiz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meld-q {
  --cw: clamp(40px, 4.4vw, 58px);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 10px 16px; border-radius: 14px; border: 0; background: var(--panel); cursor: pointer;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.meld-q:hover { background: rgba(9, 28, 30, 0.62); }
.meld-q .verdict {
  min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; color: var(--text-2); line-height: 1.45;
}
.meld-q .verdict b { font-size: 15px; font-weight: 600; color: var(--cream); }
.meld-q.revealed.ok { box-shadow: inset 0 0 0 1.5px rgba(236, 214, 170, 0.55); }
.meld-q.revealed.bad { box-shadow: inset 0 0 0 1.5px rgba(239, 160, 132, 0.6); }
.meld-q.revealed.bad .verdict b { color: #efa084; }
.meld-q.revealed.bad .meld { opacity: 0.55; }
.meld-q .meld { transition: opacity 0.2s var(--ease); }

/* 02 mini table (top-down) */
.mini-table {
  position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 0.78; margin: 0 auto;
}
.mt-felt {
  position: absolute; inset: 14% 16%; border-radius: 28px;
  background: url(assets/ui/weave.png) repeat, radial-gradient(70% 70% at 50% 50%, var(--felt-center), var(--felt-mid) 60%, var(--felt-deep));
  background-size: 3px 3px, auto;
  box-shadow: 0 0 0 1px var(--hair-felt), 0 20px 50px rgba(3, 12, 13, 0.45);
}
.mt-seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.mt-seat img { width: 40px; height: 40px; border-radius: 50%; transition: box-shadow 0.3s var(--ease); }
.mt-seat em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--sand); }
.mt-seat.active img { box-shadow: 0 0 0 2px var(--felt-deep), 0 0 0 4px var(--terracotta); }
.s-top { top: 0; left: 50%; transform: translateX(-50%); }
.s-me { bottom: 0; left: 50%; transform: translateX(-50%); }
.s-left { left: 0; top: 50%; transform: translateY(-50%); }
.s-right { right: 0; top: 50%; transform: translateY(-50%); }
.mt-pile { position: absolute; top: 50%; width: 11%; transform: translateY(-58%); }
.mt-pile .card { width: 100%; }
.mt-pile small { position: absolute; font-size: 11px !important; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.mt-fire { left: 34%; }
.mt-fire .card { position: absolute; top: 0; }
.mt-fire .card:nth-child(1) { transform: rotate(-12deg); position: relative; }
.mt-fire .card:nth-child(2) { transform: rotate(7deg); }
.mt-draw { left: 55%; }
.mt-throw {
  position: absolute; z-index: 3; width: 11%; margin: 0; left: var(--x); top: var(--y); opacity: var(--o);
  transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s)); box-shadow: var(--shadow-card-lift);
  --x: 6%; --y: 44%; --r: -20deg; --s: 0.7; --o: 0;
  transition: left 0.65s var(--ease), top 0.65s var(--ease), transform 0.65s var(--ease), opacity 0.2s var(--ease);
}
.mt-throw.snap { transition: none; }
/* states: in حمني's hand → on top of النار (exactly over the pile's top card) → claimed, above أنت */
.mini-table[data-throw="fire"] .mt-throw { --x: 39.5%; --y: 48.4%; --r: -3deg; --s: 1; --o: 1; }
.mini-table[data-throw="me"] .mt-throw {
  --x: 50%; --y: 70%; --r: 0deg; --s: 0.8; --o: 1;
  transition-duration: 0.6s; transition-timing-function: var(--ease-io);
}
.mt-step {
  position: absolute; left: 0; right: 0; bottom: -46px; text-align: center; font-size: 14px; color: var(--sand); min-height: 24px;
}
.replay { display: block; margin: 50px auto 0; }

/* 03 counter */
.counter { background: var(--panel); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.ctr-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ctr-total { display: flex; align-items: baseline; gap: 8px; direction: ltr; }
.ctr-total b { font-size: clamp(48px, 6vw, 72px); font-weight: 800; line-height: 1; min-width: 2.2ch; }
.ctr-of { font-size: 20px; color: rgba(243, 233, 214, 0.5); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(6, 22, 24, 0.55); direction: ltr; }
.seg button {
  min-width: 52px; height: 38px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-size: 14px; font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.seg button.sel { background: var(--cream); color: var(--ink); font-weight: 600; }
.ctr-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(243, 233, 214, 0.12); margin: 22px 0 14px; direction: ltr; }
.ctr-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--sand); transition: width 0.35s var(--ease), background 0.2s; }
.ctr-bar b { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--cream); border-radius: 1px; transition: left 0.35s var(--ease), opacity 0.2s; }
.counter.reached .ctr-bar i { background: var(--terracotta); }
.ctr-status { font-size: 15px; color: var(--text-2); min-height: 26px; }
.counter.reached .ctr-status { color: var(--cream); }
.ctr-melds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.meld-pick {
  --cw: clamp(38px, 4vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px dashed rgba(243, 233, 214, 0.22); background: none; transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.meld-pick .val { font-size: 15px; font-weight: 600; color: var(--text-2); }
.meld-pick .meld { transition: transform 0.3s var(--ease); }
.meld-pick:hover { border-color: rgba(243, 233, 214, 0.4); }
.meld-pick[aria-pressed="true"] { border: 1px solid rgba(236, 214, 170, 0.5); background: rgba(236, 214, 170, 0.08); }
.meld-pick[aria-pressed="true"] .val { color: var(--sand); }
.meld-pick[aria-pressed="true"] .meld { transform: translateY(-4px); }

/* 04 hind spread */
.hind-spread { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 40px); justify-content: center; flex-wrap: wrap; }
.spread-melds { display: grid; grid-template-columns: repeat(2, auto); gap: 22px 26px; --cw: clamp(44px, 4.6vw, 62px); }
.spread-left { display: flex; flex-direction: column; align-items: center; gap: 10px; --cw: clamp(52px, 5.4vw, 74px); font-size: 13px; color: var(--sand); }
.spread-left .card { box-shadow: 0 0 0 2px var(--felt-deep), 0 0 0 3.5px var(--sand), var(--shadow-card); }

/* ------------------------------------------------------------ 4. ladder (a score sheet) */
.ladder { padding: clamp(88px, 11vw, 150px) 0 clamp(80px, 10vw, 130px); }
.sheet {
  background: linear-gradient(#f9f2e4, #f1e7d2); border-radius: 18px; padding: 8px clamp(12px, 3vw, 36px) 12px;
  box-shadow: 0 10px 26px rgba(5, 20, 22, 0.16), 0 0 0 1px rgba(31, 23, 18, 0.05);
}
.sheet-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 2.6fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 12px;
  padding: 18px 0; border-top: 1px solid var(--hair-paper); text-decoration: none; color: inherit;
}
.sheet-row > span { text-align: center; position: relative; z-index: 1; }
.sheet-row > span.t { text-align: start; display: flex; flex-direction: column; gap: 2px; }
.sheet-row .t b { font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; }
.sheet-row .t small { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.sheet-row .num { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; justify-self: center; }
.sheet-row .num.me { color: var(--ink); }
.sheet-row .num.sh { color: var(--ink-2); }
.sheet-head { border-top: 0; padding: 14px 0 12px; }
.sheet-head span { font-size: 12px; color: var(--ink-2); font-weight: 500; line-height: 1.4; }
.sheet-head span:first-child { text-align: start; }
.rung-zat {
  grid-template-columns: minmax(0, 2.6fr) 3fr; margin: 6px calc(-1 * clamp(12px, 3vw, 36px)) -12px; padding: 22px clamp(12px, 3vw, 36px);
  border-radius: 0 0 18px 18px; border-top: 0; background: var(--felt-deep); color: var(--cream);
  transition: background 0.2s var(--ease);
}
.rung-zat:hover { background: var(--felt-mid); }
.rung-zat .t b { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; }
.rung-zat .t small { color: var(--text-2); }
.zat-out { font-size: clamp(15px, 1.6vw, 19px); font-weight: 600; color: var(--sand); text-align: center; }

.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 64px); }
.note h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.note p { font-size: 15px; color: var(--ink-2); line-height: 1.8; }

/* ------------------------------------------------------------ 5. هند زات (the documented exception: Zat light + full Sadu bands) */
.zat {
  position: relative; overflow: hidden; padding: clamp(100px, 13vw, 170px) 0;
  background: url(assets/ui/weave.png) repeat, #0d2426; background-size: 3px 3px, auto;
}
.zat-light {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 60% at 50% 34%, rgba(236, 214, 170, 0.2), rgba(224, 123, 85, 0.07) 45%, rgba(0, 0, 0, 0) 72%),
    radial-gradient(closest-side, rgba(0, 0, 0, 0) 60%, rgba(4, 16, 17, 0.6));
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.zat.in .zat-light { opacity: 1; }
.zat-band { position: absolute; top: 0; bottom: 0; width: 12px; background: url(assets/ui/sadu.png) repeat-y; background-size: 12px auto; image-rendering: pixelated; opacity: 0.5; transition: opacity 1s var(--ease); }
.zat-band.l { left: 0; } .zat-band.r { right: 0; }
.zat.in .zat-band { opacity: 1; }
.zat-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.zat-title { font-size: clamp(76px, 13vw, 180px); font-weight: 800; line-height: 1; opacity: 0; transform: scale(0.94); transition: opacity 0.8s var(--ease) 0.2s, transform 0.8s var(--ease) 0.2s; }
.zat.in .zat-title { opacity: 1; transform: none; }
.zat-rule { display: flex; align-items: center; justify-content: center; margin: clamp(22px, 3vw, 34px) 0 clamp(44px, 6vw, 70px); }
.zat-rule b { width: 160px; height: 6px; background: url(assets/ui/sadu.png) repeat-x; background-size: auto 6px; image-rendering: pixelated; opacity: 0.85; transform: scaleX(0); transition: transform 0.7s var(--ease) 0.5s; }
.zat-rule i { width: 80px; height: 1px; background: linear-gradient(to left, rgba(236, 214, 170, 0.45), rgba(236, 214, 170, 0)); }
.zat-rule i:first-child { background: linear-gradient(to right, rgba(236, 214, 170, 0.45), rgba(236, 214, 170, 0)); }
.zat.in .zat-rule b { transform: scaleX(1); }
.zat-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 2vw, 26px); --cw: clamp(36px, 5.4vw, 74px); direction: ltr; }
.zat-row .meld .card + .card { margin-left: calc(var(--cw) * -0.5); }
.zat-row .card { opacity: 0; transform: translateY(-14px); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.zat.in .zat-row .card { opacity: 1; transform: none; }
.zat-left { margin-left: clamp(8px, 2vw, 30px); }
.zat-left .card { box-shadow: 0 0 0 2px #0d2426, 0 0 0 3.5px var(--sand), var(--shadow-card); }
.zat-copy { max-width: 34em; margin-top: clamp(44px, 6vw, 70px); font-size: clamp(16px, 1.6vw, 19px); color: rgba(243, 233, 214, 0.82); line-height: 1.9; }

/* ------------------------------------------------------------ 6. app showcase */
.app { padding: clamp(88px, 11vw, 150px) 0; }
.showcase { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tabs button {
  display: flex; flex-direction: column; align-items: flex-start; text-align: start; gap: 2px; padding: 14px 18px; min-height: 44px;
  background: none; border: 0; border-radius: 14px; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tabs button small { font-size: 13px; font-weight: 400; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease); }
.tabs button:hover { color: var(--cream); }
.tabs button[aria-selected="true"] { background: var(--panel); color: var(--cream); box-shadow: inset -2px 0 0 var(--terracotta); }
.tabs button[aria-selected="true"] small { max-height: 60px; opacity: 1; color: var(--text-2); }

.phone {
  position: relative; width: 100%; aspect-ratio: 852 / 393; padding: 1.5%; border-radius: 6.4% / 13.8%;
  background: #091416; box-shadow: 0 0 0 1px rgba(236, 214, 170, 0.12), 0 30px 70px rgba(2, 10, 11, 0.55);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 5.2% / 11.4%; overflow: hidden; }

/* ------------------------------------------------------------ the app screens (852 x 393 reference canvas, scaled by JS) */
.screen { position: absolute; left: 0; top: 0; width: 852px; height: 393px; transform-origin: 0 0; color: var(--cream); line-height: 1.3; }
.screen .sv { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease-io), visibility 0s 0.25s; }
.screen[data-view="home"] .v-home, .screen[data-view="table"] .v-table, .screen[data-view="round"] .v-round,
.screen[data-view="new"] .v-new, .screen[data-view="zat"] .v-zat { opacity: 1; visibility: visible; transition: opacity 0.25s var(--ease-io), visibility 0s; }
.sv.feltbg { background: url(assets/ui/weave.png) repeat, radial-gradient(80% 90% at 50% 45%, var(--felt-center), var(--felt-mid) 55%, var(--felt-deep)); background-size: 3px 3px, auto; }
.sv .band { position: absolute; top: 0; bottom: 0; width: 12px; background: url(assets/ui/sadu.png) repeat-y; background-size: 12px auto; image-rendering: pixelated; opacity: 0.5; }
.sv .band.l { left: 3px; } .sv .band.r { right: 3px; }
.sv .band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(236, 214, 170, 0.22); }
.sv .band.l::after { left: 15px; } .sv .band.r::after { right: 15px; }

/* home */
.h-fan { position: absolute; left: 96px; top: 70px; width: 320px; height: 250px; }
.h-fan .card { position: absolute; width: 100px; }
.h-fan .c1 { left: 54px; top: 42px; transform: rotate(-13deg); }
.h-fan .c2 { left: 106px; top: 28px; transform: rotate(-1deg); }
.h-fan .c3 { left: 160px; top: 46px; transform: rotate(12deg); }
.h-word { position: absolute; right: 112px; top: 46px; width: 260px; display: flex; flex-direction: column; align-items: flex-end; }
.h-word .wm { font-size: 72px; font-weight: 700; line-height: 1; }
.h-word .sig { display: flex; align-items: center; gap: 8px; margin: 12px 0 22px; }
.h-word .sig b { width: 48px; height: 6px; background: url(assets/ui/sadu.png) repeat-x; background-size: auto 6px; image-rendering: pixelated; opacity: 0.6; }
.h-word .sig span { font-size: 10px; letter-spacing: 0.42em; color: rgba(236, 214, 170, 0.75); direction: ltr; }
.resume { width: 244px; padding: 12px; border-radius: 16px; background: rgba(9, 28, 30, 0.55); border: 1px solid var(--hair-felt); display: flex; flex-direction: column; gap: 10px; }
.resume .meta { font-size: 11px; color: var(--text-2); }
.resume .rl { font-size: 13px; }
.s-btn { height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; border: 1px solid rgba(243, 233, 214, 0.28); }
.s-btn.primary { height: 48px; border: 0; background: var(--terracotta-deep); color: #f8efe0; font-weight: 600; font-size: 15px; box-shadow: 0 4px 10px rgba(5, 20, 22, 0.35); }
.h-word .s-btn.sec { width: 244px; margin-top: 10px; }

/* table */
.t-hud { position: absolute; top: 8px; right: 62px; display: flex; gap: 16px; }
.t-hud div { display: flex; flex-direction: column; align-items: flex-end; font-size: 10px; color: var(--text-2); }
.t-hud b { font-size: 17px; font-weight: 700; color: var(--cream); direction: ltr; }
.t-hud b i { font-style: normal; font-weight: 400; font-size: 13px; color: rgba(243, 233, 214, 0.5); }
.t-menu { position: absolute; top: 5px; left: 52px; width: 28px; height: 28px; border-radius: 14px; background: rgba(9, 28, 30, 0.55); border: 1px solid rgba(243, 233, 214, 0.14); }
.t-menu::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 8px; border-top: 1.5px solid var(--cream); border-bottom: 1.5px solid var(--cream); }
.t-menu::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; border-top: 1.5px solid var(--cream); }
.t-hist { position: absolute; top: 5px; left: 88px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(9, 28, 30, 0.55); font-size: 11px; display: flex; align-items: center; }
.seat { position: absolute; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.seat img { width: 28px; height: 28px; border-radius: 50%; }
.seat b { font-weight: 500; font-size: 10.5px; color: var(--sand); direction: ltr; }
.seat.top { top: 6px; left: 50%; transform: translateX(-50%); height: 28px; padding: 0 4px 0 10px; border-radius: 14px; background: rgba(9, 28, 30, 0.45); }
.seat.side { flex-direction: column; gap: 1px; top: 140px; }
.seat.side img { width: 34px; height: 34px; }
.seat.left { left: 40px; } .seat.right { right: 40px; }
.seat.left.active img { box-shadow: 0 0 0 2px var(--felt-mid), 0 0 0 3.5px var(--terracotta); }
.seat.me { right: 60px; bottom: 14px; }
.seat.me img { width: 36px; height: 36px; box-shadow: 0 0 0 1.5px rgba(224, 123, 85, 0.6); }
.seat.me .who { display: flex; flex-direction: column; align-items: flex-end; }
.seat.me .tm { font-size: 11px; color: var(--terracotta); direction: ltr; }
.backs { position: absolute; display: flex; }
.backs .card { box-shadow: 0 1px 2px rgba(5, 20, 22, 0.4); }
.backs.top { top: 40px; left: 50%; transform: translateX(-50%); }
.backs.top .card { width: 16px; margin-left: -10px; border-radius: 2px; }
.backs.side { top: 110px; flex-direction: column; }
.backs.side .card { width: 26px; height: 18px; margin-top: -11px; aspect-ratio: auto; object-fit: cover; border-radius: 2px; }
.backs.side.l { left: 92px; } .backs.side.r { right: 92px; }
.tmelds { position: absolute; display: flex; gap: 8px; --cw: 21px; }
.tmelds .meld { padding: 3px 4px; border-radius: 5px; background: rgba(9, 28, 30, 0.35); }
.tmelds .meld .card { border-radius: 2.5px; box-shadow: 0 1px 2px rgba(5, 20, 22, 0.35); }
.tmelds .meld .card + .card { margin-left: -9px; }
.tmelds.top { top: 72px; left: 50%; transform: translateX(-50%); }
.tmelds.l { top: 158px; left: 132px; }
.tmelds.r { top: 158px; right: 132px; }
.t-fire { position: absolute; left: 372px; top: 140px; width: 52px; }
.t-fire .card { position: absolute; width: 50px; top: 0; left: 0; }
.t-fire .u1 { transform: rotate(-12deg); } .t-fire .u2 { transform: rotate(8deg); }
.t-draw { position: absolute; left: 444px; top: 142px; }
.t-draw .card { width: 46px; box-shadow: 0 0 0 1.5px var(--terracotta), var(--shadow-card); }
.t-hand { position: absolute; bottom: 8px; left: 50%; transform: translateX(-56%); display: flex; direction: ltr; }
.t-hand .card { width: 52px; margin-left: -22px; }
.t-hand .card:first-child { margin-left: 0; }
.t-hand .gap { margin-left: -10px; }

/* round result sheet */
.v-round .dim { position: absolute; inset: 0; background: rgba(4, 16, 17, 0.55); }
.v-round .tableghost { position: absolute; inset: 0; filter: saturate(0.9); }
.r-sheet {
  position: absolute; left: 170px; top: 36px; width: 512px; height: 302px; border-radius: 18px; color: var(--ink);
  background: linear-gradient(#f6eddb, #efe4cd); box-shadow: 0 10px 26px rgba(5, 20, 22, 0.42); padding: 18px 22px 0;
}
.r-meta { font-size: 11px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.r-dots { display: flex; gap: 5px; direction: ltr; }
.r-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(31, 23, 18, 0.14); }
.r-dots i.on { background: var(--terracotta-deep); }
.r-title { font-size: 21px; font-weight: 700; margin: 4px 0 12px; }
.r-title span { font-weight: 500; font-size: 17px; color: var(--ink-2); }
.r-row { display: grid; grid-template-columns: 1fr 76px 76px; align-items: center; height: 46px; padding: 0 8px; font-size: 14px; }
.r-row.h { height: 24px; font-size: 10px; color: var(--ink-2); border-bottom: 1px solid rgba(31, 23, 18, 0.12); }
.r-row.win { background: rgba(224, 123, 85, 0.18); border-radius: 10px; }
.r-row .n { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.r-row .n img { width: 28px; height: 28px; border-radius: 50%; }
.r-row .c { text-align: center; direction: ltr; font-weight: 600; }
.r-row .c.neg { color: var(--red); }
.r-row.h .c { direction: rtl; font-weight: 500; }
.tag { font-size: 10px; font-weight: 600; color: var(--terracotta-deep); border: 1px solid rgba(163, 69, 42, 0.5); border-radius: 9px; padding: 0 7px; line-height: 16px; }
.r-tap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 12px; color: rgba(243, 233, 214, 0.85); }

/* new game */
.ng-title { position: absolute; top: 9px; left: 0; right: 0; text-align: center; font-size: 18px; font-weight: 600; }
.ng-back { position: absolute; top: 5px; right: 59px; width: 28px; height: 28px; border-radius: 14px; background: rgba(9, 28, 30, 0.55); border: 1px solid rgba(243, 233, 214, 0.14); }
.ng-back::after { content: ""; position: absolute; left: 9px; top: 9px; width: 7px; height: 7px; border-right: 1.5px solid var(--cream); border-top: 1.5px solid var(--cream); transform: rotate(45deg); }
.ng-rules { position: absolute; right: 59px; top: 52px; width: 410px; }
.ng-rules h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; color: var(--sand); }
.group { border-radius: 14px; background: var(--panel); overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; font-size: 13px; gap: 12px; cursor: pointer; }
.group .row + .row { border-top: 1px solid rgba(243, 233, 214, 0.08); }
.row.disabled { opacity: 0.42; cursor: default; }
.toggle { width: 44px; height: 26px; border-radius: 13px; border: 0; padding: 0; position: relative; background: rgba(243, 233, 214, 0.18); cursor: pointer; transition: background 0.15s var(--ease); flex: none; }
.toggle i { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 10px; background: var(--cream); transition: right 0.15s var(--ease); }
.toggle.on { background: var(--terracotta); }
.toggle.on i { right: 21px; }
.toggle:disabled { cursor: default; }
.ng-match { position: absolute; left: 59px; top: 76px; width: 300px; display: flex; flex-direction: column; gap: 8px; }
.ng-match .row { height: 56px; border-radius: 14px; background: var(--panel); cursor: default; }
.stepper { display: flex; align-items: center; gap: 10px; direction: ltr; }
.stepper button { width: 36px; height: 36px; border-radius: 18px; border: 1px solid rgba(243, 233, 214, 0.28); background: none; font-size: 18px; cursor: pointer; line-height: 1; }
.stepper button:disabled { opacity: 0.4; cursor: default; }
.stepper .val { width: 30px; text-align: center; font-size: 16px; font-weight: 600; }
.ng-match .seg button { min-width: 40px; height: 32px; font-size: 13px; }
.ng-start { position: absolute; left: 59px; bottom: 24px; width: 300px; }

/* zat final */
.v-zat { background: #0d2426; }
.v-zat .band { opacity: 1; }
.v-zat .light { position: absolute; inset: 0; background: radial-gradient(46% 70% at 50% 36%, rgba(236, 214, 170, 0.22), rgba(224, 123, 85, 0.08) 45%, rgba(0, 0, 0, 0) 72%), radial-gradient(closest-side, rgba(0, 0, 0, 0) 60%, rgba(4, 16, 17, 0.6)); }
.z-meta { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--sand); }
.z-title { position: absolute; top: 30px; left: 0; right: 0; text-align: center; font-size: 62px; font-weight: 800; line-height: 1; }
.z-rule { position: absolute; top: 104px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; }
.z-rule b { width: 140px; height: 6px; background: url(assets/ui/sadu.png) repeat-x; background-size: auto 6px; image-rendering: pixelated; opacity: 0.85; }
.z-rule i { width: 70px; height: 1px; background: rgba(236, 214, 170, 0.35); }
.z-win { position: absolute; top: 124px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 18px; }
.z-win .ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; box-shadow: 0 0 0 2px var(--terracotta), 0 0 0 3px #0d2426, 0 0 0 4px rgba(236, 214, 170, 0.6), 0 0 0 11px rgba(236, 214, 170, 0.12); }
.z-win .ring img { width: 100%; height: 100%; border-radius: 50%; }
.z-win .who { display: flex; flex-direction: column; gap: 8px; }
.z-win .lab { font-size: 11px; line-height: 1.3; color: var(--sand); }
.z-win .name { font-size: 30px; font-weight: 700; line-height: 1.1; }
.z-chips { position: absolute; top: 222px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 4px; border-radius: 14px; background: rgba(9, 28, 30, 0.5); font-size: 11px; }
.chip img { width: 20px; height: 20px; border-radius: 50%; }
.chip b { font-weight: 500; opacity: 0.72; direction: ltr; }
.chip.win { box-shadow: inset 0 0 0 1px rgba(224, 123, 85, 0.7); }
.z-actions { position: absolute; top: 278px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 10px; }
.z-actions .s-btn { padding: 0 20px; }
.z-actions .s-btn.primary { padding: 0 28px; }
.z-actions .txt { font-size: 13px; color: var(--sand); padding: 0 8px; }

/* ------------------------------------------------------------ 7. known */
.known { padding: clamp(88px, 11vw, 150px) 0 clamp(80px, 10vw, 130px); }
.spec { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.spec > div { padding: 22px 0; border-top: 1px solid var(--hair-paper); display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; }
.spec dt { font-weight: 700; font-size: 16px; }
.spec dd { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.85; }

/* ------------------------------------------------------------ 8. faq */
.faq { background: url(assets/ui/weave.png) repeat, linear-gradient(var(--felt-deep), var(--felt-mid)); background-size: 3px 3px, auto; padding: clamp(88px, 11vw, 140px) 0 clamp(60px, 8vw, 100px); }
details { border-top: 1px solid var(--hair-felt); }
details:last-of-type { border-bottom: 1px solid var(--hair-felt); }
summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 8px; height: 8px; border-left: 1.75px solid var(--sand); border-bottom: 1.75px solid var(--sand);
  transform: rotate(-45deg) translateY(-3px); transition: transform 0.2s var(--ease);
}
details[open] summary::after { transform: rotate(135deg) translate(-2px, 0); }
details p { padding: 0 0 24px; font-size: 16px; color: var(--text-2); max-width: 36em; }

/* ------------------------------------------------------------ 9. get */
.get {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: clamp(100px, 13vw, 170px) var(--gutter); min-height: 80svh; overflow: hidden;
  background: url(assets/ui/weave.png) repeat, radial-gradient(60% 70% at 50% 55%, var(--felt-center), var(--felt-mid) 75%); background-size: 3px 3px, auto;
}
.get-copy { justify-self: start; }
.wordmark.small { font-size: clamp(88px, 11vw, 150px); }
.get-lead { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; margin-bottom: 30px; }
.get-fan { position: relative; justify-self: end; width: min(420px, 100%); aspect-ratio: 1.25; }
.get-fan .card { position: absolute; width: 36%; box-shadow: 0 10px 26px rgba(5, 20, 22, 0.42); transition: transform 0.9s var(--ease); }
.get-fan .f1 { left: 14%; top: 18%; transform: rotate(-4deg); }
.get-fan .f2 { left: 31%; top: 10%; transform: rotate(-1deg); }
.get-fan .f3 { left: 48%; top: 20%; transform: rotate(2deg); }
.get.in .get-fan .f1 { transform: rotate(-13deg); }
.get.in .get-fan .f3 { transform: rotate(12deg) translateY(4%); }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px var(--gutter); background: var(--felt-deep); border-top: 1px solid var(--hair-felt); }
.foot-mark { font-size: 22px; font-weight: 700; text-decoration: none; }
.foot-meta { font-size: 12px; color: var(--text-2); letter-spacing: 0.08em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.foot-links a { color: var(--text-2); text-decoration: none; padding: 10px 0; }
.foot-links a:hover { color: var(--cream); }

/* ------------------------------------------------------------ the scorekeeper, a small strip on the Hand page */
.sk-promo { padding: clamp(56px, 7vw, 88px) 0; }
.sk-promo .wrap { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); }
.sk-promo-icon { flex: none; width: clamp(72px, 9vw, 104px); border-radius: 22%; box-shadow: 0 6px 16px rgba(5, 20, 22, 0.28); }
.sk-promo-copy { flex: 1; min-width: 0; }
.sk-promo h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.sk-promo p { margin-top: 10px; font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-2); max-width: 40em; }
.sk-promo .how-link { margin-top: 14px; color: var(--terracotta-deep); font-weight: 600; }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .bar-nav { display: none; }
  .showcase { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; font-size: 15px; padding: 10px 16px; border-radius: 22px; }
  .tabs button small { display: none; }
  .tabs button[aria-selected="true"] { box-shadow: inset 0 0 0 1px rgba(224, 123, 85, 0.6); }
  .showcase .phone { order: 2; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; min-height: auto; gap: 8px; }
  .hero-copy { justify-self: stretch; max-width: none; }
  .hero-hand { order: -1; margin: 0 calc(-1 * var(--gutter)) 4px; width: auto; }
  .hero-hand .fan { aspect-ratio: 16 / 8.2; }
  .wordmark { font-size: clamp(96px, 30vw, 150px); }
  .signature { margin: 10px 0 22px; }
  .chapter { grid-template-columns: 1fr; }
  .ch-text { max-width: 600px; }
  .notes { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .get { grid-template-columns: 1fr; text-align: center; }
  .get-fan { justify-self: center; width: min(320px, 80%); }
  .get-copy { justify-self: center; display: flex; flex-direction: column; align-items: center; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .facts li:nth-child(n+3) { margin-top: 20px; border-top: 1px solid var(--hair-paper); }
  .quiz { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .meld-q { --cw: clamp(34px, 10vw, 46px); padding: 18px 6px 12px; }
  .ctr-melds { grid-template-columns: 1fr; }
  .spread-melds { grid-template-columns: 1fr 1fr; gap: 16px 14px; --cw: clamp(30px, 8.4vw, 44px); }
  .spread-left { --cw: clamp(40px, 11vw, 54px); }
  .sheet { padding: 4px 14px 10px; }
  .sheet-row { grid-template-columns: minmax(0, 1fr) repeat(3, 3.6em); gap: 6px; padding: 14px 0; }
  .sheet-row .t small { display: none; }
  .sheet-head span { font-size: 11.5px; }
  .zat-row { --cw: clamp(20px, 6.2vw, 40px); gap: 6px; }
  .rung-zat { margin: 6px -14px -10px; padding: 18px 14px; grid-template-columns: 1fr 1.4fr; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .mt-seat { font-size: 11px; }
  .mt-seat img { width: 30px; height: 30px; }
  .store { min-width: 0; flex: 1 1 140px; }
  .foot { flex-direction: column; text-align: center; }
  .foot-links { justify-content: center; }
  .sk-promo .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
