@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/fonts/instrument-serif-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("./assets/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("./assets/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("./assets/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url("./assets/fonts/noto-serif-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: "Noto Serif";
  src: url("./assets/fonts/noto-serif-cyrillic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: "Noto Sans";
  src: url("./assets/fonts/noto-sans-cyrillic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: "Noto Sans";
  src: url("./assets/fonts/noto-sans-cyrillic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("./assets/fonts/noto-devanagari-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+A8E0-A8FF, U+1CD0-1CFF;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("./assets/fonts/noto-devanagari-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+A8E0-A8FF, U+1CD0-1CFF;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("./assets/fonts/noto-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("./assets/fonts/noto-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url("./assets/fonts/noto-bengali-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url("./assets/fonts/noto-bengali-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF;
}

:root {
  --ink: #14160f;
  --paper: #f3efe4;
  --paper-2: #fffdf8;
  --ivory: #f6f2e8;
  --muted: rgba(246, 242, 232, 0.74);
  --muted-ink: #5d584c;
  --ball: #e2f25a;
  --clay: #b8432a;
  --grass: #2c6a45;
  --line: rgba(246, 242, 232, 0.28);
  --line-ink: rgba(20, 22, 15, 0.12);
  --serif: "Instrument Serif", "Noto Serif", "Noto Sans Devanagari", "Noto Sans Arabic", "Noto Sans Bengali", Georgia, serif;
  --sans: Outfit, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Arabic", "Noto Sans Bengali", sans-serif;
  --header: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0c0d0a;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ball); outline-offset: 3px; }
::selection { background: var(--ball); color: #16180c; }

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  inset-inline-start: 12px;
  top: 12px;
  z-index: 80;
  background: var(--ball);
  color: #16180c;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
[hidden] { display: none !important; }

.kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
html[lang="ar"] .kicker,
html[lang="ur"] .kicker,
html[lang="hi"] .kicker,
html[lang="bn"] .kicker {
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 13px;
}

h1, .display {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 12vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
h1 em, .display em {
  font-style: italic;
  color: var(--ball);
}
html[lang="ar"] h1,
html[lang="ar"] .display,
html[lang="ur"] h1,
html[lang="ur"] .display,
html[lang="hi"] h1,
html[lang="hi"] .display,
html[lang="bn"] h1,
html[lang="bn"] .display {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
  font-size: clamp(32px, 8.4vw, 58px);
}
html[lang="ar"] h1 em,
html[lang="ar"] .display em,
html[lang="ur"] h1 em,
html[lang="ur"] .display em,
html[lang="hi"] h1 em,
html[lang="hi"] .display em,
html[lang="bn"] h1 em,
html[lang="bn"] .display em,
html[lang="ru"] h1 em,
html[lang="ru"] .display em {
  font-style: normal;
  font-weight: 600;
}

.cover {
  position: relative;
  background: #0c0d0a;
  color: var(--ivory);
  min-height: 100svh;
}
.cover-media { position: absolute; inset: 0; overflow: hidden; }
.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.shot.f0, .line.f0 { opacity: 1; }
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("./assets/img/grain.png");
  opacity: 0.16;
  mix-blend-mode: overlay;
  z-index: 1;
}
.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 9, 7, 0.42) 0%, rgba(8, 9, 7, 0.05) 30%, rgba(8, 9, 7, 0.18) 50%, rgba(8, 9, 7, 0.94) 100%);
}
.tick {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 0 solid rgba(246, 242, 232, 0.8);
  pointer-events: none;
}
.tick.tl, .tick.tr { top: calc(var(--header) + env(safe-area-inset-top) + 8px); }
.tick.bl, .tick.br { bottom: 42%; }
.tick.tl { inset-inline-start: 12px; border-top-width: 1px; border-inline-start-width: 1px; }
.tick.tr { inset-inline-end: 12px; border-top-width: 1px; border-inline-end-width: 1px; }
.tick.bl { inset-inline-start: 12px; border-bottom-width: 1px; border-inline-start-width: 1px; }
.tick.br { inset-inline-end: 12px; border-bottom-width: 1px; border-inline-end-width: 1px; }
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
.hud {
  position: absolute;
  z-index: 2;
  top: calc(var(--header) + env(safe-area-inset-top) + 32px);
  inset-inline: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 242, 232, 0.82);
}
html[lang="ar"] .hud,
html[lang="ur"] .hud,
html[lang="hi"] .hud,
html[lang="bn"] .hud {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 13px;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header);
  padding: 8px 14px;
}
.cover .bar {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  top: 0;
  padding-top: calc(8px + env(safe-area-inset-top));
  color: var(--ivory);
}
.mark {
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 13px;
  text-decoration: none;
}
.bar-actions { display: flex; gap: 8px; }
.chip {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html[lang="ar"] .chip,
html[lang="ur"] .chip,
html[lang="hi"] .chip,
html[lang="bn"] .chip {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}
.cover-copy {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header) + env(safe-area-inset-top) + 12px) 18px calc(18px + env(safe-area-inset-bottom));
}
.lines { display: grid; }
.line { grid-area: 1 / 1; align-self: end; pointer-events: none; }
.line.is-on { pointer-events: auto; }
.lede {
  margin: 12px 0 0;
  max-width: 38rem;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}
.meta {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 242, 232, 0.7);
}
html[lang="ar"] .meta,
html[lang="ur"] .meta,
html[lang="hi"] .meta,
html[lang="bn"] .meta {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.btn.solid { background: var(--ball); color: #16180c; }
.btn.ghost { border: 1px solid var(--line); color: var(--ivory); background: transparent; }
.btn.tiny { min-height: 40px; padding: 0 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.text { background: transparent; color: var(--muted-ink); min-height: 44px; padding-inline: 8px; }
.btn.is-on { background: var(--ink); color: var(--ball); }
.clock { margin-top: 16px; }
.seg { display: flex; gap: 4px; }
.seg i {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(246, 242, 232, 0.24);
  overflow: hidden;
}
.seg i::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--ball);
  animation: seg 4s linear forwards;
}
.seg i:nth-child(2)::after { animation-delay: 4s; }
.seg i:nth-child(3)::after { animation-delay: 8s; }
.seg i:nth-child(4)::after { animation-delay: 12s; }
.seg i:nth-child(5)::after { animation-delay: 16s; }
@keyframes seg { to { width: 100%; } }
.clock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .clock-row,
html[lang="ur"] .clock-row,
html[lang="hi"] .clock-row,
html[lang="bn"] .clock-row {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.dots { display: flex; gap: 0; margin-top: 4px; }
.dot {
  width: 44px;
  height: 44px;
  position: relative;
}
.dot::before {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  inset-inline-end: 12px;
  top: 20px;
  height: 4px;
  border-radius: 99px;
  background: rgba(246, 242, 232, 0.35);
}
.dot.is-on::before { background: var(--ball); }
.hold {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.shot.f0, .line.f0 { animation-name: f0; }
.shot.f1, .line.f1 { animation-name: f1; }
.shot.f2, .line.f2 { animation-name: f2; }
.shot.f3, .line.f3 { animation-name: f3; }
.shot.f4, .line.f4 { animation-name: f4; }
.shot, .line {
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}
@keyframes f0 {
  0%, 16% { opacity: 1; }
  21%, 100% { opacity: 0; }
}
@keyframes f1 {
  0%, 16% { opacity: 0; }
  21%, 36% { opacity: 1; }
  41%, 100% { opacity: 0; }
}
@keyframes f2 {
  0%, 36% { opacity: 0; }
  41%, 56% { opacity: 1; }
  61%, 100% { opacity: 0; }
}
@keyframes f3 {
  0%, 56% { opacity: 0; }
  61%, 76% { opacity: 1; }
  81%, 100% { opacity: 0; }
}
@keyframes f4 {
  0%, 76% { opacity: 0; }
  81%, 100% { opacity: 1; }
}
.cover.is-manual .shot,
.cover.is-manual .line { animation: none; opacity: 0; }
.cover.is-manual .shot.is-on,
.cover.is-manual .line.is-on { opacity: 1; }

.paper {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
}
.bar-paper {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(243, 239, 228, 0.94);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom: 1px solid var(--line-ink);
  padding-top: calc(8px + env(safe-area-inset-top));
}
.bar-paper .chip { border-color: var(--line-ink); }
.wrap { max-width: 1120px; margin: 0 auto; }
.edit, .notes, .guide { padding: 28px 18px 8px; scroll-margin-top: 76px; }
.sheet-card, .popup-card { overscroll-behavior: contain; }
.paper h2 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 8vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
html[lang="ar"] .paper h2,
html[lang="ur"] .paper h2,
html[lang="hi"] .paper h2,
html[lang="bn"] .paper h2 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  font-size: clamp(28px, 7vw, 46px);
}
.paper .kicker { color: var(--muted-ink); }
.paper .lede { color: var(--muted-ink); }
.codebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  background: var(--ink);
  color: var(--ball);
  border-radius: 18px;
  padding-block: 10px;
  padding-inline: 14px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.codebar .btn { background: var(--ball); color: #16180c; }
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar, .rail::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-ink);
  color: var(--ink);
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
}
.filter.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: -18px;
  padding: 0 18px 12px;
  scrollbar-width: none;
}
.card {
  flex: 0 0 78%;
  min-width: 0;
  scroll-snap-align: start;
  background: var(--paper-2);
  border-radius: 18px;
  padding: 8px 8px 12px;
  box-shadow: 0 10px 30px rgba(20, 22, 15, 0.05);
}
.card[hidden] { display: none; }
.card-hit { display: block; width: 100%; text-align: start; }
.card-photo {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #d9d3c6;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-kind {
  display: block;
  margin-top: 12px;
  padding-inline: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
html[lang="ar"] .card-kind,
html[lang="ur"] .card-kind,
html[lang="hi"] .card-kind,
html[lang="bn"] .card-kind {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.card-name {
  display: block;
  padding-inline: 6px;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}
.card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-inline: 6px;
}
.price { margin: 0; }
.price strong { font-size: 16px; }
.price s { color: var(--muted-ink); margin-inline-start: 6px; font-size: 14px; }
.ref {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(20, 22, 15, 0.08);
  color: var(--muted-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}
.fit-panel { margin-top: 18px; }
.fit-q { margin: 14px 0 0; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.choice {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-ink);
  background: transparent;
  color: inherit;
  font-weight: 600;
}
.choice.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lead-form { display: grid; gap: 8px; margin-top: 8px; }
.lead-form label { font-weight: 600; }
.lead-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-ink);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.lead-error { margin: 0; color: var(--clay); }
.lead-thanks { margin: 12px 0 0; font-size: 18px; }
.lang-suggest {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ball);
  color: #16180c;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.notes ol, .guide ul { list-style: none; margin: 8px 0 0; padding: 0; }
.notes li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line-ink);
}
.notes li > span {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--clay);
  line-height: 1;
}
.notes h3, .guide h3 { margin: 0 0 6px; font-size: 18px; }
.notes p, .guide p { margin: 0; color: var(--muted-ink); line-height: 1.55; }
.guide { padding-bottom: 28px; }
.guide ul { display: grid; gap: 10px; }
.guide li { background: var(--paper-2); border-radius: 16px; padding: 16px 16px 18px; }
.guide h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.guide .g-clay h3 { color: var(--clay); }
.guide .g-grass h3 { color: var(--grass); }

footer.colophon { padding: 8px 18px 48px; }
.colophon .mark { letter-spacing: 0.18em; }
.colophon p { color: var(--muted-ink); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 16px 0; }
.foot-langs a { text-decoration: none; border-bottom: 1px solid transparent; min-height: 44px; display: inline-flex; align-items: center; }
.foot-langs a:hover, .foot-langs a[aria-current="page"] { border-bottom-color: var(--ink); }
.rights { font-size: 13px; }

.popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  pointer-events: none;
}
.popup.is-open { visibility: visible; }
.popup-scrim, .sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 7, 0.58);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-scrim {
  bottom: 430px;
  background: rgba(8, 9, 7, 0.28);
  pointer-events: auto;
}
.popup.is-open .popup-scrim { opacity: 1; }
.popup-card {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  inset-inline: 12px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - 430px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.popup.is-open .popup-card { opacity: 1; transform: none; }
.popup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px 0;
  padding-inline: 16px 8px;
}
.icon-x {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  flex: none;
}
.popup-body { padding: 0 16px 12px; overflow: auto; min-height: 0; }
.popup h2 {
  margin: 4px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.popup h2 em { font-style: italic; color: #6a6410; }
html[lang="ar"] .popup h2,
html[lang="ur"] .popup h2,
html[lang="hi"] .popup h2,
html[lang="bn"] .popup h2 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
html[lang="ar"] .popup h2 em,
html[lang="ur"] .popup h2 em,
html[lang="hi"] .popup h2 em,
html[lang="bn"] .popup h2 em,
html[lang="ru"] .popup h2 em { font-style: normal; }
.popup .lede, .sheet .lede { color: var(--muted-ink); }
.popup-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: var(--paper);
  padding-top: 8px;
}
.popup .kicker, .popup-top .kicker { color: var(--muted-ink); margin: 0; }
.codebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px dashed rgba(20, 22, 15, 0.38);
  border-radius: 14px;
}
.codebox strong { letter-spacing: 0.18em; font-size: 18px; }
.popup .seg { margin-top: 4px; }
.popup .seg i { background: rgba(20, 22, 15, 0.12); }
.popup .clock-row { color: var(--muted-ink); }
.popup .btn.solid { margin-top: 12px; }
.popup .btn.text { width: 100%; }

.sheet[hidden] { display: none; }
.sheet { position: fixed; inset: 0; z-index: 46; }
.sheet-card {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px 22px 0 0;
  max-height: 88svh;
  overflow: auto;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
}
.sheet-scrim { opacity: 1; }
.sheet-head, .sheet-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
}
.sheet-note { color: var(--muted-ink); margin: 8px 0 12px; }
.lang-list { display: grid; gap: 8px; }
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--paper-2);
  font-size: 18px;
}
.lang-list a[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lang-list small { color: var(--muted-ink); letter-spacing: 0.08em; }
.bag-list { list-style: none; margin: 0; padding: 0; }
.bag-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-ink);
}
.ps-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  background: #d9d3c6;
}
.ps-kind {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
html[lang="ar"] .ps-kind,
html[lang="ur"] .ps-kind,
html[lang="hi"] .ps-kind,
html[lang="bn"] .ps-kind {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}
#psName {
  margin: 4px 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}
.specs div { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; }
.specs dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
html[lang="ar"] .specs dt,
html[lang="ur"] .specs dt,
html[lang="hi"] .specs dt,
html[lang="bn"] .specs dt {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.specs dd { margin: 4px 0 0; font-size: 16px; }

@media (min-width: 800px) {
  .sheet-card {
    inset-inline: auto;
    left: 50%;
    bottom: auto;
    top: 50%;
    width: min(520px, calc(100% - 48px));
    border-radius: 22px;
    transform: translate(-50%, -50%);
    max-height: min(84svh, 760px);
  }
}
@media (min-width: 960px) {
  .cover {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  }
  .cover-media { position: relative; min-height: 100svh; }
  .cover-copy {
    min-height: 100svh;
    background: #10110d;
    padding: 72px 48px 36px;
  }
  .scrim { background: linear-gradient(90deg, rgba(8, 9, 7, 0.08), rgba(8, 9, 7, 0.28)); }
  .popup-card {
    top: 24px;
    width: min(440px, 40vw);
    max-height: calc(100svh - 48px);
    inset-inline: auto;
  }
  html[dir="ltr"] .popup-card { left: 28px; right: auto; }
  html[dir="rtl"] .popup-card { right: 28px; left: auto; }
  .popup-scrim { bottom: 0; }
  html[dir="ltr"] .popup-scrim { left: 0; right: auto; width: min(52vw, 640px); }
  html[dir="rtl"] .popup-scrim { right: 0; left: auto; width: min(52vw, 640px); }
  .tick.bl, .tick.br { bottom: 28px; }
  .edit, .notes, .guide, footer.colophon { padding-inline: 28px; }
  .rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0 0 8px;
    overflow: visible;
  }
  .card { flex: initial; }
  .notes ol, .guide ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .notes li { grid-template-columns: 1fr; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot, .line, .seg i::after { animation: none !important; }
  .shot.f0, .line.f0 { opacity: 1 !important; }
  .popup-card, .popup-scrim { transition: none; }
}
