/* Hallmark · macrostructure: fixed world + overlay sheets (studied: Overworld Audio) · tone: atmospheric, editorial night · anchor hue: green-black #111312 with three ghost lights
   Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 */
/* TRICKY: a misty night street seen from above. One fixed world, pages open over it.
   Palette in brand/STYLE.md. Serif carries the voice, the sans carries the instruments. */
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --night: #111312;      /* ground, gate, panels */
  --fog: #232a26;        /* the sky the fog fades into */
  --moss: #5d6b63;       /* mist, hairlines on hover */
  --sage: #8d988f;       /* secondary words */
  --bone: #ede6d6;       /* text and marks, never pure white */
  --mabel: #e8a34a;      /* Mabel's light, the logo flame, treats */
  --hex: #a77bf3;        /* Hex's light */
  --collector: #5fd6b0;  /* The Collector's light */
  --curse: #e0735a;      /* tricks and curses */
  --night-rgb: 17, 19, 18;
  --bone-10: rgba(237, 230, 214, .1);
  --bone-07: rgba(237, 230, 214, .07);
  --mabel-35: rgba(232, 163, 74, .35);
  --line: rgba(237, 230, 214, .16);
  --line-hi: rgba(237, 230, 214, .42);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --edge: clamp(18px, 2.8vw, 40px);
  --col: clamp(18px, 18.7vw, 270px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { overflow-x: clip; background: var(--night); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { font: 400 15px/1.55 var(--sans); color: var(--bone); background: var(--night); overflow: clip; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
::selection { background: var(--mabel); color: var(--night); }
.skip { position: fixed; left: var(--edge); top: -60px; z-index: 50; padding: 10px 14px; background: var(--bone); color: var(--night); }
.skip:focus { top: 12px; }

/* ---------- the world and its film ---------- */
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: none; cursor: grab; transition: filter 1.1s var(--ease); }
#world.drag { cursor: grabbing; }
#world.point { cursor: pointer; }
body.paged #world { filter: blur(7px) brightness(.55) saturate(.8); }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 38%, rgba(10, 11, 10, .62) 100%),
              linear-gradient(180deg, rgba(var(--night-rgb), .55) 0, transparent 22%, transparent 70%, rgba(var(--night-rgb), .7) 100%);
  transition: background-color 1.1s var(--ease); }
body.paged .veil { background-color: rgba(var(--night-rgb), .58); }
.grain { position: fixed; inset: -60px; z-index: 40; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-28px, 14px); } 40% { transform: translate(18px, -24px); } 60% { transform: translate(-12px, 30px); } 80% { transform: translate(26px, 8px); } 100% { transform: translate(0, 0); } }

/* ---------- framed micro-caps controls (the inspiration's buttons) ---------- */
.frame { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 38px; padding: 0 18px; border: 1px solid var(--line); border-radius: 2px;
  font: 600 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; background: rgba(var(--night-rgb), .28);
  transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.frame:hover { border-color: var(--line-hi); background: rgba(var(--night-rgb), .55); }
.frame:active, .orb:active { transform: translateY(1px); }
.frame:disabled, .frame[aria-disabled="true"] { opacity: .7; cursor: default; }
.frame:disabled:hover { border-color: var(--line); background: transparent; }
h1, h2, h3 { overflow-wrap: anywhere; min-width: 0; }
.frame svg { width: 12px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; }
/* the roll: the label slides up and its copy rolls in from below */
.roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.25; height: 1.25em; vertical-align: middle; }
.roll i { display: block; font-style: normal; transition: transform .55s var(--ease); }
.roll i::after { content: attr(data-t); display: block; }
a:hover .roll i, button:hover .roll i, a:focus-visible .roll i, button:focus-visible .roll i { transform: translateY(-50%); }
.orb { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .4s var(--ease), transform .5s var(--ease); }
.orb:hover { border-color: var(--line-hi); transform: rotate(-8deg); }
.orb svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; z-index: 30; background: var(--night); display: grid; place-items: center; }
.gate-sigil { width: min(440px, 72vw, 64vh); height: auto; fill: none; stroke: var(--sage); stroke-width: 2.4; opacity: .55; overflow: visible; }
.gate-sigil .body { stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 3.4s var(--ease-io) forwards; }
.gate-sigil .eye { fill: var(--bone); stroke: none; opacity: 0; animation: wake .9s 2.8s var(--ease-io) forwards; }
.gate-sigil .wink { fill: none; stroke: var(--bone); stroke-width: 27; stroke-linecap: round; }
@keyframes wake { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.gate-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 13px/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; padding-left: .36em; }
.gate-mark span + span { color: var(--sage); font-size: 9.5px; font-weight: 500; }
.gate-enter { position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); height: 42px; padding: 0 26px; }
.gate-skip { position: absolute; right: var(--edge); bottom: 66px; font-size: 12px; color: var(--sage); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.gate-skip:hover { color: var(--bone); border-color: var(--line-hi); }
.gate.out { animation: gate-out 1.2s var(--ease-io) forwards; }
@keyframes gate-out { to { opacity: 0; visibility: hidden; } }

/* ---------- header ---------- */
.bar { position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: 92px; padding: 0 var(--edge); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.brand img { width: 34px; height: 34px; }
.brand-word, .brand-sub { font: 600 10.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.brand-sub { color: var(--sage); font-weight: 500; margin-left: -4px; }
.links { display: flex; gap: clamp(20px, 2.8vw, 48px); }
.links a { font: 600 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--sage); padding: 8px 0; transition: color .3s; }
.links a:hover, .links a[aria-current="page"] { color: var(--bone); }
.acts { justify-self: end; display: flex; align-items: center; gap: 10px; }
.chip { color: var(--sage); }
.chip.on { color: var(--bone); }
.buy { color: var(--night); background: var(--bone); border-color: var(--bone); }
.buy:hover { background: var(--mabel); border-color: var(--mabel); }
.menu-btn { display: none; justify-self: end; }
.menu-btn i { display: block; width: 14px; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn i + i { margin-top: -10px; transform: translateY(4px); }
.menu-btn i:first-child { transform: translateY(-2px); }
.menu-btn[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i + i { transform: rotate(-45deg); margin-top: -1px; }
.menu { position: fixed; inset: 0; z-index: 19; background: rgba(var(--night-rgb), .96); padding: 120px var(--edge) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font: 500 clamp(40px, 12vw, 64px)/1.05 var(--serif); letter-spacing: -.01em; }
.menu-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- the street view ---------- */
.hero { position: fixed; z-index: 5; left: clamp(var(--edge), 10.8vw, 160px); top: clamp(150px, 24vh, 220px); width: min(520px, 80vw); outline: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero h1 { margin: 0; font: 500 clamp(31px, 3.05vw, 48px)/.98 var(--serif); letter-spacing: -.012em; text-wrap: balance; max-width: 11.5em; }
.hero-lead { margin: 26px 0 0; max-width: 35ch; font-size: 14px; line-height: 1.6; color: var(--sage); }
.instruments { position: fixed; z-index: 5; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; transition: opacity .8s var(--ease); }
.ins { display: flex; flex-direction: column; gap: 6px; padding: 0 clamp(16px, 2vw, 30px); border-left: 1px solid var(--line); min-width: 104px; }
.ins:first-child { border-left: 0; }
.ins-k { font-size: 12px; color: var(--sage); }
.ins-v { font: 500 22px/1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ins-v small { font: 500 11px var(--sans); color: var(--sage); margin-left: 4px; }
.index-btn, .back-btn { position: fixed; z-index: 6; left: var(--edge); bottom: 40px; height: 40px; }
.hint { position: fixed; z-index: 5; right: var(--edge); bottom: 38px; margin: 0; text-align: right; font-size: 11.5px; line-height: 1.5; color: var(--sage); transition: opacity .8s var(--ease); }
.street-note { position: fixed; z-index: 5; right: var(--edge); top: 50%; transform: translateY(-50%); margin: 0; width: 230px; font: italic 400 17px/1.4 var(--serif); color: var(--bone); padding-left: 18px; border-left: 1px solid var(--line-hi); }
body.paged .hero, body.paged .instruments, body.paged .hint, body.paged .street-note, body.paged .index-btn { opacity: 0; pointer-events: none; }
body.paged .hero { transform: translateY(-14px); }

/* hover tag next to a light or a door */
.tag { position: fixed; z-index: 7; left: 0; top: 0; pointer-events: none; display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 11px; background: rgba(var(--night-rgb), .82); border: 1px solid var(--line); border-radius: 2px; transform: translate(-50%, calc(-100% - 22px)); white-space: nowrap; }
.tag b { font: 500 17px/1.1 var(--serif); }
.tag span { font-size: 12px; color: var(--sage); }

/* ---------- pages over the street ---------- */
.sheet { position: fixed; inset: 0; z-index: 4; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.sheet::-webkit-scrollbar { display: none; }
.sheet-in { padding: 156px var(--edge) 160px var(--col); max-width: calc(var(--col) + 940px); }
.rail { position: fixed; z-index: 6; right: calc(var(--edge) - 3px); bottom: 40px; width: 1px; height: 80px; background: var(--line); opacity: 0; transition: opacity .5s; }
body.paged .rail { opacity: 1; }
.rail i { display: block; width: 1px; height: 100%; background: var(--bone); transform-origin: top; transform: scaleY(0); }

.p-title { margin: 0; font: 500 clamp(36px, 4.4vw, 64px)/.96 var(--serif); letter-spacing: -.015em; max-width: 12em; text-wrap: balance; }
.p-lead { margin: 22px 0 0; max-width: 46ch; font: 400 clamp(18px, 1.55vw, 22px)/1.42 var(--serif); color: var(--bone); }
.p-lead em { color: var(--sage); }
.p-sub { margin: 14px 0 0; max-width: 58ch; color: var(--sage); font-size: 14px; }
.p-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px clamp(28px, 5vw, 80px); align-items: start; margin-bottom: 72px; }
.p-head.solo { grid-template-columns: 1fr; margin-bottom: 56px; }
.p-head .p-lead { margin-top: 4px; }
.split .line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* meta grid of a knock or a house, like the inspiration's year / client / role */
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; margin: 40px 0 0; }
.meta div { min-width: 0; }
.meta dt { font-size: 12px; color: var(--sage); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.meta a { border-bottom: 1px solid var(--line-hi); transition: border-color .3s; }
.meta a:hover { border-color: var(--bone); }

.row-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, .8fr) minmax(0, 1.25fr) auto; align-items: center; gap: 24px; min-height: 88px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row-t { font: 500 clamp(21px, 1.9vw, 28px)/1.1 var(--serif); letter-spacing: -.01em; }
.row-t a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.row-t a:hover { background-size: 100% 1px; }
.row-c { font-size: 14px; color: var(--sage); font-variant-numeric: tabular-nums; }
.row .frame { height: 36px; padding: 0 16px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 12px; vertical-align: .18em; box-shadow: 0 0 10px currentColor; background: currentColor; }
.g-mabel { color: var(--mabel); } .g-hex { color: var(--hex); } .g-collector { color: var(--collector); }
.empty { padding: 34px 0; border-bottom: 1px solid var(--line); font: italic 400 20px/1.45 var(--serif); color: var(--sage); max-width: 40ch; }
.more { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.block { margin-top: 96px; }
.block-h { margin: 0 0 26px; font: 500 clamp(26px, 2.4vw, 34px)/1.05 var(--serif); letter-spacing: -.01em; }

/* ghosts */
.ghost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px clamp(28px, 5vw, 80px); padding: 54px 0 58px; border-bottom: 1px solid var(--line); }
.ghost:first-child { border-top: 1px solid var(--line); }
.ghost-name { margin: 0; font: 500 clamp(40px, 4.6vw, 68px)/.95 var(--serif); letter-spacing: -.02em; }
.ghost-name .dot { width: 10px; height: 10px; vertical-align: .5em; }
.ghost-title { margin: 12px 0 0; color: var(--sage); font-size: 14px; }
.ghost-said { margin: 0; font: italic 400 clamp(19px, 1.6vw, 23px)/1.45 var(--serif); }
.ghost-said.quiet { color: var(--sage); }
.ghost .meta { margin-top: 30px; }

/* Halloween night: ten lanterns, lit as the double-candy knocks land */
.lanterns { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 34px 0 0; padding: 0; }
.lanterns li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 0 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--sage); font-variant-numeric: tabular-nums; }
.lanterns i { width: 14px; height: 20px; border-radius: 7px 7px 4px 4px; border: 1px solid var(--line-hi); background: transparent; transition: background .6s, box-shadow .6s; }
.lanterns li.lit { border-color: var(--mabel); color: var(--bone); }
.lanterns li.lit i { background: var(--mabel); border-color: var(--mabel); box-shadow: 0 0 18px var(--mabel); }

/* the street board: rank, house with its candy bar, counts */
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.b-row { grid-template-columns: 54px minmax(0, 2.4fr) minmax(0, .8fr) minmax(0, 1.1fr); }
.b-n { font: italic 400 clamp(26px, 2.4vw, 36px)/1 var(--serif); color: var(--sage); font-variant-numeric: tabular-nums; }
.b-row .row-t { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.b-row .row-t a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-bar { display: block; height: 2px; width: var(--w); min-width: 6px; background: var(--mabel); box-shadow: 0 0 12px var(--mabel-35); }
.b-row .row-c b { font-weight: 500; font-size: 20px; margin-right: 4px; }
.b-row.is-crown .b-n { color: var(--mabel); }
.crowned { margin: 0 0 56px; padding: 28px 0 30px; border-top: 1px solid var(--mabel); border-bottom: 1px solid var(--line); }
.crowned-k { margin: 0 0 10px; font-size: 13px; color: var(--mabel); }
.crowned-v { margin: 0 0 8px; font: 500 clamp(40px, 4.6vw, 68px)/.95 var(--serif); letter-spacing: -.02em; }

/* fair */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: minmax(120px, .5fr) minmax(0, 1.5fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rules b { font: 500 19px/1.3 var(--serif); }
.rules code, .ledger code, .proof code { font-family: var(--sans); font-size: 13px; background: var(--bone-07); padding: 2px 6px; border-radius: 2px; overflow-wrap: anywhere; }
.verify { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.field { height: 44px; min-width: 0; width: 180px; padding: 0 14px; background: rgba(var(--night-rgb), .5); border: 1px solid var(--line); border-radius: 2px; color: var(--bone); font: 500 15px var(--sans); }
.field:focus { border-color: var(--bone); outline: none; }
.verify .frame { height: 44px; }
.proof { margin-top: 22px; max-width: 70ch; font-size: 15px; line-height: 1.7; color: var(--sage); }
.proof .ok { color: var(--collector); } .proof .bad { color: var(--curse); }
.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ledger th { text-align: left; font-weight: 500; font-size: 12px; color: var(--sage); padding: 0 16px 12px 0; border-bottom: 1px solid var(--line); }
.ledger td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger a { border-bottom: 1px solid var(--line-hi); }

/* house actions */
.styles { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.styles button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; color: var(--sage); transition: border-color .3s, color .3s; }
.styles button[aria-pressed="true"] { color: var(--bone); border-color: var(--bone); }
.styles i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.say { margin-top: 14px; min-height: 1.5em; color: var(--sage); font-size: 14px; }
.curse-txt { color: var(--curse); }
.treat-txt { color: var(--mabel); }

.toast { position: fixed; z-index: 45; left: 50%; bottom: 100px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; background: var(--bone); color: var(--night); font-size: 13px; font-weight: 600; border-radius: 2px; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- phones: the inspiration stacks the same pieces ---------- */
@media (max-width: 1360px) {
  .acts .frame:not(.buy) { display: none; }
}
@media (max-width: 900px) {
  .bar { grid-template-columns: 1fr auto; height: 76px; }
  .links, .acts { display: none; }
  .menu-btn { display: grid; }
  .hero { top: 112px; left: var(--edge); right: var(--edge); width: auto; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 44px); }
  .hero-lead { font-size: 13.5px; margin-top: 16px; }
  .instruments { left: var(--edge); right: var(--edge); transform: none; bottom: 104px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .ins { min-width: 0; padding: 0 12px; }
  .ins:nth-child(3) { border-left: 0; }
  .ins-v { font-size: 20px; }
  .index-btn, .back-btn { bottom: 34px; }
  .hint { display: none; }
  .street-note { top: auto; bottom: 256px; left: var(--edge); right: var(--edge); width: auto; transform: none; font-size: 15px; }
  .sheet-in { padding: 112px var(--edge) 140px; }
  .p-head, .ghost { grid-template-columns: 1fr; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .row .row-c { grid-column: 1; }
  .row .frame { grid-column: 2; grid-row: 1 / span 3; }
  .rules li { grid-template-columns: 1fr; gap: 6px; }
  .meta { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
  .gate-skip { right: 50%; transform: translateX(50%); bottom: 22px; }
  .gate-enter { bottom: 74px; }
  @media (max-height: 700px) { .street-note { display: none; } }
  .lanterns { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .b-row { grid-template-columns: 34px minmax(0, 1fr); gap: 6px 14px; }
  .b-row .row-c { grid-column: 2; }
  .b-row .b-n { grid-row: 1 / span 3; }
}
@media (max-width: 380px) {
  .ins-v { font-size: 18px; }
  .ins-k { font-size: 11px; }
}

/* detail pages: the camera flies to the door, the page starts lower so the door stays in view */
body.paged.focus #world { filter: brightness(.8); }
body.paged.focus .veil { background-color: transparent; background-image: linear-gradient(to bottom, rgba(var(--night-rgb), 0) 0%, rgba(var(--night-rgb), .35) 38%, rgba(var(--night-rgb), .9) 62%, #111312 100%); }
.sheet.detail .sheet-in { padding-top: 52vh; }
body.og .bar, body.og main, body.og .gate, body.og .grain { display: none !important; }
body.flat #world { background: radial-gradient(ellipse at 60% 40%, var(--fog), var(--night) 70%); }
@media (max-width: 900px) { .sheet.detail .sheet-in { padding-top: 42vh; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
}
