/* Hallmark · checked: 2026-11-05 · genre: editorial (inferred: an artist's poster series)
 * floor: fixed 10a, 34, 40, 48, 63, 76 · reflex: fixed 11, 26b, 29, 39b · finish: F3 · structural: printed (44c, 44d, 58, 59, 77, 79, 83)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · reworded "Index [→]" to "Index" · 63 names the arrow glued to the heading */
/* Hallmark · finish-review: in-thread · 4 findings · 1 resolved (new-tab cue restored for screen readers) · 3 printed for the owner (hub arrow, Inter display, ▶ glyph) */
/* Hallmark · waive 83 · 25 posters on the index and the name pages · the posters are the series itself; an index of a poster series without its posters has nothing to index */
:root {
  --paper: #e8e8e6;
  --paper2: #dededb;
  --ink: #393939;
  --ink2: #1d1d1d;
  --mute: #565652;
  --line: #d0d0cc;
  --spoke: #c4c4bf;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ar: "Noto Kufi Arabic", "Geeza Pro", sans-serif;
  --pad: clamp(14px, 1.8vw, 24px);
  --c1: 31%;
  --c2: 68%;
  --glass: rgba(232,232,230,.88);
  --veil: rgba(232,232,230,.97);
  --chip: rgba(232,232,230,.92);
  --shadow: rgba(0,0,0,.35);
  --shadow-soft: var(--shadow-soft);
  --shadow-lift: var(--shadow-lift);
  --video-bg: #111111;
  --mask: #000000;
}
[data-theme="dark"] {
  --paper: #121212;
  --paper2: #1d1d1c;
  --ink: #cfcfca;
  --ink2: #f3f3ef;
  --mute: #93938e;
  --line: #2a2a28;
  --spoke: #3b3b38;
  --glass: rgba(18,18,18,.86);
  --veil: rgba(14,14,14,.97);
  --chip: rgba(18,18,18,.85);
  --shadow: rgba(0,0,0,.8);
  color-scheme: dark;
}
html, body, .bar, .hub-dot, .hub-t, .tip { transition: background-color .35s, color .35s; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  /* the board's guide lines */
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-size: 1px 100%, 1px 100%; background-position: var(--c1) 0, var(--c2) 0; background-repeat: no-repeat; background-attachment: fixed;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { text-wrap: balance; }
img[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
video { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
b { font-weight: 400; }
:focus-visible { outline: 1px solid var(--ink2); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- top bar ---------- */
:root { --bar-h: 58px; }
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); height: var(--bar-h); padding: 0 var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); border-top: 6px solid var(--ink2); box-sizing: content-box; }
.brand { display: flex; align-items: center; flex: none; padding: 9px 0; color: var(--ink2); }
.logo99 { height: 34px; width: auto; color: inherit; display: block; }
.logo99 path[stroke] { stroke-width: .6; vector-effect: non-scaling-stroke; }
.brand:hover .logo99 { opacity: .75; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 40px); margin-left: auto; margin-right: auto; }
.cell { text-decoration: none; font-size: 14px; color: var(--mute); white-space: nowrap; padding: 6px 0; }
.cell span { color: var(--mute); transition: color .2s; white-space: nowrap; }
.cell em { font-style: normal; color: var(--mute); margin-left: 4px; }
.cell:hover span { color: var(--ink2); }
.cell.on span { color: var(--ink2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.tally { display: flex; align-items: center; gap: 18px; flex: none; font-size: 14px; color: var(--ink); }
.theme { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--mute); }
.theme:hover { color: var(--ink2); }
.theme i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink2); transition: background .35s, box-shadow .35s; }
[data-theme="dark"] .theme i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink2); }

/* ---------- home cloud ---------- */
.cloud { position: relative; height: calc(100svh - var(--bar-h) - 7px); min-height: 520px; overflow: hidden; border-bottom: 1px solid var(--line); touch-action: pan-y; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.links line { stroke-width: .6; vector-effect: non-scaling-stroke; transition: stroke .25s, opacity .25s; }
.links .spoke { stroke: var(--spoke); }
.links .chain { stroke: var(--line); stroke-dasharray: 2 4; }
.links .spoke.on { stroke: var(--ink2); stroke-width: 1; }
.cloud.focus .links .spoke:not(.on) { opacity: .35; }
.node { position: absolute; left: 0; top: 0; transform-origin: center; will-change: transform; background: var(--paper2); box-shadow: 0 1px 0 var(--shadow-soft); transition: box-shadow .3s, filter .3s; opacity: 0; }
.node img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.cloud.focus .node:not(.on) { filter: grayscale(.85) opacity(.55); }
.node.on { box-shadow: 0 18px 40px var(--shadow-lift); }
.node.latest::after { content: "New"; position: absolute; top: -18px; left: 0; font-size: 11px; color: var(--ink2); }
.hub { position: absolute; left: 50%; top: calc(50% + 6px); transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.hub-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink2); box-shadow: 0 0 0 6px var(--paper); }
.hub-t { font-size: 13px; color: var(--ink2); background: var(--paper); padding: 2px 8px; white-space: nowrap; }
.corner { position: absolute; font-size: 14px; line-height: 1.25; color: var(--ink); z-index: 3; pointer-events: none; }
.corner.tl { top: 26%; left: var(--pad); display: flex; gap: 52px; }
.corner.tr { top: 26%; right: var(--pad); text-align: left; }
.corner.bl { bottom: var(--pad); left: var(--pad); }
.corner.bc { bottom: var(--pad); left: var(--c1); padding-left: var(--pad); font-family: var(--ar); font-size: 15px; }
.corner.br { bottom: var(--pad); right: var(--pad); }
.scroll-cue { position: absolute; bottom: var(--pad); left: var(--c2); padding-left: var(--pad); font-size: 14px; text-decoration: none; z-index: 3; color: var(--ink); }
.scroll-cue:hover { color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }
.tip { position: absolute; left: 0; top: 0; z-index: 10; pointer-events: none; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: baseline; background: var(--paper); border: 1px solid var(--ink2); padding: 9px 12px 10px; min-width: 200px; max-width: 240px; font-size: 13px; }
.tip[hidden] { display: none; }
.tip span:first-child { color: var(--mute); }
.tip b { color: var(--ink2); font-weight: 500; }
.tip span[lang] { grid-column: 1 / -1; font-family: var(--ar); font-size: 22px; color: var(--ink2); line-height: 1.6; direction: rtl; text-align: left; }
.tip i { grid-column: 1 / -1; font-style: normal; color: var(--mute); }

/* ---------- 3D gallery ---------- */
.gallery { position: relative; height: calc(100svh - var(--bar-h) - 7px); min-height: 520px; overflow: hidden; border-bottom: 1px solid var(--line); }
.g-stage { position: absolute; inset: 0; }
.g-stage canvas { display: block; cursor: grab; outline: none; }
.gallery .corner { top: 22px; }
.gallery .corner.tl { top: 22px; }
.gallery .corner.tr { top: 22px; }
.g-hint { position: absolute; left: 50%; bottom: var(--pad); transform: translateX(-50%); display: flex; gap: 28px; font-size: 13px; color: var(--mute); pointer-events: none; white-space: nowrap; transition: opacity .4s; z-index: 3; }
.g-hint.gone { opacity: 0; }
.g-load { position: absolute; left: var(--pad); bottom: var(--pad); font-size: 13px; color: var(--mute); z-index: 3; transition: opacity .6s; pointer-events: none; }
.g-load b { color: var(--ink2); font-weight: 400; }
.g-load.done { opacity: 0; }
.g-panel { position: absolute; right: var(--pad); bottom: var(--pad); z-index: 6; width: min(360px, calc(100% - 2 * var(--pad))); background: var(--paper); color: var(--ink); border: 1px solid var(--ink2); padding: 16px; }
.g-panel[hidden] { display: none; }
.g-top { display: flex; justify-content: space-between; align-items: baseline; }
.g-num { font-size: 13px; color: var(--mute); }
.g-ar { font-family: var(--ar); font-weight: 600; font-size: 30px; color: var(--ink2); line-height: 1.4; }
.g-tl { font-size: 30px; letter-spacing: -.04em; line-height: 1; color: var(--ink2); margin-top: 2px; }
.g-mn { font-size: 14px; color: var(--mute); margin: 6px 0 14px; }
.g-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.ghost { border-color: var(--line); color: var(--mute); }
.btn.ghost:hover { background: none; color: var(--ink2); border-color: var(--ink2); }

/* ---------- playground ---------- */
.playground { display: flex; flex-direction: column; height: calc(100svh - var(--bar-h) - 7px); min-height: 560px; border-bottom: 1px solid var(--line); }
.pg-bar { display: grid; grid-template-columns: calc(var(--c1) - var(--pad)) 1fr auto; align-items: center; gap: 12px; padding: 10px var(--pad); border-bottom: 1px solid var(--line); font-size: 14px; }
.pg-t { color: var(--ink2); }
.pg-s { color: var(--mute); font-size: 13px; }
.pg-frame { flex: 1; width: 100%; border: 0; display: block; background: var(--paper); }
.pg-mobile { padding: 40px var(--pad); display: grid; gap: 16px; justify-items: start; }
.pg-mobile p { margin: 0; font-size: 18px; max-width: 420px; color: var(--ink); }
@media (max-width: 860px) { .pg-bar { grid-template-columns: 1fr auto; } .pg-s { display: none; } }

/* ---------- index ---------- */
.index { padding: clamp(60px, 9vw, 120px) var(--pad) 90px; }
.index-head { display: grid; grid-template-columns: calc(var(--c1) - var(--pad)) calc(var(--c2) - var(--c1)) 1fr; align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.index-head h2 { margin: 0; font-weight: 400; font-size: clamp(54px, 9vw, 140px); line-height: .85; letter-spacing: -.055em; color: var(--ink); }
.index-head h2 b { letter-spacing: -.08em; }
.index-head p { margin: 0; padding-left: var(--pad); max-width: 360px; color: var(--ink); }
.controls { display: flex; gap: 6px; justify-content: flex-end; }
.pill { background: none; border: 1px solid var(--line); color: var(--mute); min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; cursor: pointer; font-size: 13px; transition: color .2s, background-color .2s, border-color .2s; }
.pill:active { background: var(--paper2); }
.pill:disabled { color: var(--line); border-color: var(--line); background: none; cursor: not-allowed; }
.pill:hover { color: var(--ink2); border-color: var(--ink); }
.pill.on { background: var(--ink2); border-color: var(--ink2); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 17vw, 240px), 1fr)); gap: 34px clamp(10px, 1.4vw, 20px); }
.card { position: relative; display: block; text-decoration: none; opacity: 0; transform: translateY(12px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper2); color: var(--ink); transition: filter .4s, transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .tl { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card .num { display: block; margin-top: 9px; font-size: 13px; color: var(--mute); }
.card .num b { color: var(--ink2); margin-left: 6px; }
.card .badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.card .badges span { font-size: 11px; background: var(--chip); color: var(--ink2); padding: 2px 7px; border-radius: 999px; line-height: 1.4; }
.card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.cap .tl { color: var(--ink2); line-height: 1.3; }
.cap .mn { display: block; color: var(--mute); font-size: 13px; }
.cap .ar { font-family: var(--ar); font-size: 17px; color: var(--ink); line-height: 1.3; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- name page ---------- */
.name { padding: clamp(20px, 3vw, 36px) var(--pad) 40px; }
.name-top { display: grid; grid-template-columns: calc(var(--c2) - var(--pad) * 2) 1fr; gap: 0 calc(var(--pad) * 2); align-items: start; }
.poster { position: sticky; top: 76px; display: flex; justify-content: flex-end; padding-right: clamp(8px, 3vw, 48px); }
.poster img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 110px); cursor: zoom-in; box-shadow: 0 30px 60px -30px var(--shadow); }
.info { padding-top: 4px; }
.info .back { display: inline-block; color: var(--mute); text-decoration: none; font-size: 14px; margin-bottom: clamp(24px, 6vw, 90px); }
.info .back:hover { color: var(--ink2); }
.info .of { font-size: 14px; color: var(--mute); }
.info .ar { font-family: var(--ar); font-weight: 600; font-size: clamp(54px, 6.5vw, 104px); line-height: 1.45; direction: rtl; text-align: left; margin: 4px 0 0; color: var(--ink2); }
.info h1 { font-weight: 400; font-size: clamp(34px, 3.8vw, 58px); line-height: .95; letter-spacing: -.045em; margin: 4px 0 10px; color: var(--ink); }
.info .meaning { font-size: 16px; color: var(--mute); margin: 0 0 28px; }
.caption { border-top: 1px solid var(--line); padding-top: 20px; color: var(--ink); font-size: 15px; max-width: 460px; }
.caption p { margin: 0 0 12px; }
.caption .tags { color: var(--mute); font-size: 13px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; align-items: center; }
.meta-row .date { color: var(--mute); font-size: 13px; margin-right: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink2); transition: color .2s, background-color .2s, border-color .2s; background: none; cursor: pointer; }
.btn:active { background: var(--ink); color: var(--paper); }
.btn:disabled { background: none; color: var(--line); border-color: var(--line); cursor: not-allowed; }
.btn:hover { background: var(--ink2); color: var(--paper); }
.jump { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }

.section { padding: clamp(64px, 9vw, 130px) 0 0; }
.section-head { display: grid; grid-template-columns: calc(var(--c1) - var(--pad)) 1fr auto; align-items: end; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-weight: 400; font-size: clamp(40px, 5.5vw, 84px); letter-spacing: -.05em; line-height: .9; color: var(--ink); }
.section-head .sk { font-size: 14px; color: var(--mute); padding-left: var(--pad); }
.section-head span { color: var(--mute); font-size: 13px; }
.variants { columns: 3 240px; column-gap: clamp(10px, 1.4vw, 20px); }
.variants button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper2); margin: 0 0 clamp(10px, 1.4vw, 20px); cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.variants img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.variants button:hover { outline: 1px solid var(--ink2); outline-offset: 4px; }
.process { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px clamp(10px, 1.4vw, 20px); align-items: start; }
.process .loom { grid-column: 1 / -1; }
.process .yt { grid-column: 1 / -1; width: 100vw; margin-left: calc(50% - 50vw); }
.process .yt .frame { position: relative; aspect-ratio: 16 / 9; max-height: 100svh; background: var(--video-bg); overflow: hidden; }
.process .yt .yt-slot { position: absolute; inset: 0; }
/* the player is taller than the frame, so YouTube's title bar and logo sit outside it */
.process .yt iframe { position: absolute; left: 0; top: -64px; width: 100%; height: calc(100% + 128px); border: 0; pointer-events: none; }
.process .yt-poster { position: absolute; inset: 0; background: var(--video-bg) center / cover no-repeat; transition: opacity .6s; pointer-events: none; }
.process .yt.on .yt-poster { opacity: 0; }
.process .yt-hit { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.process .yt-ctl { position: absolute; left: var(--pad); bottom: var(--pad); display: flex; gap: 8px; }
.process .yt-ctl button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink2); font-size: 13px; cursor: pointer; transition: background-color .2s, color .2s; }
.process .yt-ctl button:hover, .process .yt-ctl button:active { background: var(--ink2); color: var(--paper); }
.process .yt.failed .yt-ctl, .process .yt.failed .yt-hit { display: none; }
.process .yt.failed .yt-poster { opacity: 1; }
.process .yt figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 8px var(--pad) 0; }
.process .yt figcaption a { color: var(--ink2); }
.frame { position: relative; background: var(--paper2); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.process video { width: 100%; height: auto; display: block; background: var(--video-bg); }
.process figure { margin: 0; }
.process figcaption { color: var(--mute); font-size: 13px; padding-top: 8px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line); padding-top: 18px; }
.pager a { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 8px; transition: background .2s; }
.pager a:hover { background: var(--paper2); }
.pager a.next { flex-direction: row-reverse; text-align: right; }
.pager img { width: 58px; aspect-ratio: 3/4; object-fit: cover; }
.pager small { display: block; color: var(--mute); font-size: 12px; }
.pager strong { font-weight: 400; font-size: 22px; letter-spacing: -.03em; color: var(--ink2); }

/* ---------- wall ---------- */
.wall-wrap { padding: clamp(36px, 6vw, 80px) var(--pad) 90px; }
.wall-wrap h1 { margin: 0 0 10px; font-weight: 400; font-size: clamp(54px, 9vw, 140px); letter-spacing: -.055em; line-height: .85; color: var(--ink); }
.wall-wrap > p { color: var(--mute); margin: 0 0 36px; padding-left: 4px; }
.wall { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.slot { aspect-ratio: 3/4; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; border: 1px solid var(--line); overflow: hidden; background: transparent; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.slot.done { border-color: transparent; }
.slot.done:hover { border-color: var(--ink2); }
.slot .sn { font-size: 11px; color: var(--mute); }
.slot .sa { font-family: var(--ar); font-size: clamp(9px, 1.05vw, 14px); color: var(--mute); opacity: .6; line-height: 1.6; direction: rtl; text-align: center; padding: 0 4px; }
.slot.done .sn { position: absolute; top: 4px; left: 4px; background: var(--paper); color: var(--ink2); padding: 1px 5px; z-index: 1; }
@media (max-width: 900px) { .wall { grid-template-columns: repeat(9, 1fr); } .slot .sa { display: none; } }
@media (max-width: 520px) { .wall { grid-template-columns: repeat(6, 1fr); gap: 4px; } }

/* ---------- about ---------- */
.about { padding: clamp(40px, 8vw, 110px) var(--pad) 90px; }
.about h1 { margin: 0 0 40px; font-weight: 400; font-size: clamp(54px, 9vw, 140px); letter-spacing: -.055em; line-height: .85; color: var(--ink); }
.about p { font-size: 19px; max-width: 620px; margin-left: calc(var(--c1) - var(--pad)); color: var(--ink); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: var(--veil); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 60px -30px var(--shadow); }
.lightbox button { position: absolute; display: grid; place-items: center; min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 12px; }
.lightbox button:hover { color: var(--ink2); text-decoration: underline; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

.foot { display: grid; grid-template-columns: var(--c1) 1fr; padding: 18px var(--pad) 26px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.foot span + span { padding-left: var(--pad); }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .name-top { grid-template-columns: 1fr; }
  .poster { position: static; justify-content: flex-start; padding: 0; }
  .poster img { max-height: none; }
  .info { padding-top: 20px; }
  .info .back { margin-bottom: 12px; }
  .index-head { grid-template-columns: 1fr; gap: 18px; }
  .index-head p { padding-left: 0; }
  .controls { justify-content: flex-start; }
  .section-head { grid-template-columns: 1fr auto; }
  .section-head .sk { display: none; }
  .about p { margin-left: 0; }
  .corner.bc { display: none; }
  .lightbox { padding: 48px 8px; }
}
@media (max-width: 560px) {
  :root { --bar-h: 50px; }
  .bar { gap: 14px; }
  .logo99 { height: 28px; }
  .nav { margin: 0; flex: 1; min-width: 0; overflow-x: auto; gap: 18px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, var(--mask) 85%, transparent); mask-image: linear-gradient(90deg, var(--mask) 85%, transparent); padding-right: 18px; }
  .nav::-webkit-scrollbar { display: none; }
  .cell { font-size: 13px; }
  .theme .tl-l { display: none; }
  .cell em { display: none; }
  #tally { display: none; }
  .theme { min-width: 44px; min-height: 44px; justify-content: center; margin-right: -12px; }
  .theme i { width: 14px; height: 14px; }
  .g-hint { left: var(--pad); right: var(--pad); transform: none; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; white-space: normal; text-align: center; }
  .g-load { bottom: auto; top: 58px; left: var(--pad); }
  .g-panel { left: var(--pad); right: var(--pad); bottom: max(var(--pad), env(safe-area-inset-bottom)); width: auto; padding: 10px 12px 12px; }
  .g-ar { font-size: 22px; line-height: 1.3; }
  .g-tl { font-size: 22px; }
  .g-mn { font-size: 13px; margin: 4px 0 10px; }
  .g-actions { flex-wrap: nowrap; }
  .g-actions .btn { min-height: 44px; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
  .g-actions [data-g=back] { margin-left: auto; }
  .playground { min-height: 480px; }
  .pg-bar { display: none; }
  .playground { height: calc(100svh - var(--bar-h)); }
  .corner.tl, .corner.tr { top: 14px; }
  .corner.tl { gap: 28px; }
  .card .badges .pt { display: none; }
  .scroll-cue { left: 50%; transform: translateX(-50%); padding-left: 0; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .gallery, .playground { min-height: 0; }
  .playground { height: calc(100svh - var(--bar-h)); }
  .pg-bar { display: none; }
  .gallery .corner.tl, .gallery .corner.tr { top: 12px; }
  .g-hint { bottom: 10px; }
  .g-panel { right: var(--pad); bottom: 10px; width: 330px; padding: 8px 12px 10px; }
  .g-ar, .g-tl { font-size: 20px; }
  .g-mn { font-size: 12px; margin: 2px 0 8px; }
  .g-actions { flex-wrap: nowrap; }
  .g-actions .btn { min-height: 44px; padding-left: 10px; padding-right: 10px; white-space: nowrap; font-size: 12px; }
  .g-actions [data-g=back] { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
}
