/* Tsarevets in 3D — the app around the hill. Dark stone, parchment and brass, from his picture of the
   gate at sunset. Mobile first (portrait phones), at home on a tablet or a desktop too. */
@font-face { font-family: 'TSV Serif'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'TSV Serif'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'TSV Serif'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'TSV Serif'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-latin-wght-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'TSV Serif'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-cyrillic-wght-italic.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491; }
@font-face { font-family: 'TSV Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/jost-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'TSV Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/jost-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+2C60-2C7F; }
@font-face { font-family: 'TSV Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/jost-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --stone: #120f0c;           /* the night, the deep shadow */
  --stone-2: #1d1814;
  --stone-3: #2a231d;
  --parch: #f3e7cc;           /* parchment */
  --parch-2: #d9c6a0;
  --brass: #c9a35a;           /* brass, the sun on the carved letters */
  --brass-2: #e5c27a;
  --brass-deep: #8f6c2c;
  --ember: #b8402f;           /* the tsars' red */
  --ink: #f3e7cc;
  --muted: rgba(243, 231, 204, 0.68);
  --line: rgba(229, 194, 122, 0.24);
  --glass: rgba(20, 16, 13, 0.82);
  --glass-2: rgba(28, 23, 19, 0.9);
  --serif: 'TSV Serif', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'TSV Sans', 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--stone); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
/* (a long press shows no 'Save image / Copy' menu and drags nothing: the pictures are the app's, not the page's — round 14,
   the device sweep; text in the stories can still be selected where it is selectable) */
body { -webkit-touch-callout: none; }
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.home__hero img, .intro__img, .veil__bg { pointer-events: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 2px; }
svg { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.screen { position: fixed; inset: 0; overflow: hidden; }

/* ───── buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 30px; font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease; }
.btn:active { transform: scale(0.97); }
.btn--gold { color: #1a130a; background: linear-gradient(180deg, #ecd08f 0%, #c9a35a 55%, #a9823f 100%); box-shadow: 0 6px 22px rgba(201, 163, 90, 0.35), inset 0 1px 0 rgba(255, 245, 220, 0.7); }
.btn--ghost { color: var(--parch); border: 1px solid var(--line); background: rgba(243, 231, 204, 0.06); }
.btn svg { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: rgba(243, 231, 204, 0.05); color: var(--parch); font-size: 13.5px; letter-spacing: 0.02em; }
.chip svg { width: 16px; height: 16px; color: var(--brass-2); }
.chip.is-on { background: var(--brass); color: #1a130a; border-color: var(--brass); }
.chip.is-on svg { color: #1a130a; }

/* ───── the landing ───── */
.home__hero { position: absolute; inset: 0; background: #0d0b09; }
.home__hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
/* a phone with its browser's bars showing (aspect 1/2 – 0.62: Hristo's iPhone in Safari is 0.553 — round 14): the picture
   fills the width and loses only 6 % of its height at the top, so the lion keeps his head (12.97vw = 6 % of a picture
   853×1844 as wide as the screen); its foot runs off the bottom — nothing stands there now */
@media (min-aspect-ratio: 1/2) and (max-aspect-ratio: 31/50) {
  .home__hero img, .home__hero img.ph-night { object-position: 50% -12.97vw; }
}
/* shorter still (tablets upright, 0.62 – 0.75): the picture never loses more than 6 % at the top, and never the carved
   name at the foot — it stands a little narrower than the screen, on a blur of itself, its sides feathered into it */
@media (min-aspect-ratio: 31/50) and (max-aspect-ratio: 3/4) {
  .screen--home .home__hero img, .screen--home .home__hero img.ph-night { position: absolute; inset: auto 0 0 0; margin: 0 auto; height: 106%; width: auto; max-width: 100%;
    aspect-ratio: 853 / 1844; object-position: 50% 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
  .home__hero::before { content: ''; position: absolute; inset: 0; background: url(img/hero.webp) center / cover; filter: blur(30px) brightness(0.35); transform: scale(1.1); }
}
.home__tag { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--parch-2); text-align: center; animation: rise 1.2s 0.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* the brand: a '3D' laid over the end of the carved ЦАРЕВЕЦ (app.js places it in the picture's own coordinates) — gold
   with a light that flows across it and a thin bronze edge; then the line under the name */
.home__brand { position: absolute; display: flex; align-items: flex-end; justify-content: flex-end; pointer-events: none; opacity: 0; animation: brandIn 1.8s 0.5s var(--ease) both; }
.home__3d { font-family: var(--serif); font-weight: 700; line-height: 0.82; letter-spacing: 0.02em; font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1;   /* (lining: the serif's old-style 3 drops below the D) */
  background: linear-gradient(105deg, #c48a35 0%, #f1c96a 30%, #fff7dc 46%, #f9da8c 54%, #d39a3e 72%, #f5d078 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(1px 0 0 rgba(104, 64, 18, 0.9)) drop-shadow(-1px 0 0 rgba(104, 64, 18, 0.9)) drop-shadow(0 1px 0 rgba(104, 64, 18, 0.9)) drop-shadow(0 -1px 0 rgba(104, 64, 18, 0.9)) drop-shadow(0 1px 1.5px rgba(46, 26, 6, 0.75));   /* (a thin deep-bronze edge round the outside only — a stroke had followed the 3's inner contours across its body — and no glow beyond it: Hristo) */
  animation: brandSheen 4.5s 0.6s ease-in-out infinite; }
@keyframes brandIn { 0% { opacity: 0; transform: translateY(0.35em) scale(0.92); filter: blur(10px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes brandSheen { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
/* the way in: the menu's crenellated disc (its stone, its gold edge, its dotted ring), 112 px, in the middle of the picture
   — on the road between the lion and the gate — breathing, and a gold ring going out from it now and then */
.enterdisc { position: absolute; left: 50%; top: 50%; z-index: 3; width: 112px; height: 112px; margin: -56px 0 0 -56px; display: grid; place-items: center;
  color: var(--brass-2); animation: enterIn 1.2s 0.9s var(--ease) both; -webkit-tap-highlight-color: transparent; }
.enterdisc__disc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 20px rgba(8, 5, 3, 0.65));
  animation: enterBreath 2.8s 2.1s ease-in-out infinite; }
.enterdisc .menubtn__stone { stroke-width: 1.1; }
.enterdisc__label { position: relative; max-width: 84px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; line-height: 1.15;
  text-transform: uppercase; text-align: center; color: #f1d58f; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); animation: enterBreath 2.8s 2.1s ease-in-out infinite; }
.enterdisc::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; pointer-events: none; animation: enterHalo 2.8s 2.1s ease-out infinite; }
.enterdisc:active .enterdisc__disc { transform: rotate(18deg) scale(0.94); animation: none; }
@keyframes enterIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes enterBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes enterHalo { 0% { box-shadow: 0 0 0 0 rgba(229, 194, 122, 0.6); } 70%, 100% { box-shadow: 0 0 0 30px rgba(229, 194, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .home__brand, .home__3d { animation: none; opacity: 1; } .enterdisc, .enterdisc__disc, .enterdisc__label, .enterdisc::after { animation: none; } }
/* on a wide screen the portrait picture sits in the middle on its own dark ground */
@media (min-aspect-ratio: 3/4) {
  .home__hero img { object-fit: contain; object-position: 50% 0; }
  .home__hero::before { content: ''; position: absolute; inset: 0; background: url(img/hero.webp) center / cover; filter: blur(30px) brightness(0.35); transform: scale(1.1); }
  .home__hero img { position: relative; }
}

/* the night edits: each stacked over its day picture, wiped in by a sideways swipe (app.js nightSwipe) */
.home__hero img.ph-night { position: absolute; inset: 0; opacity: 0; animation: none; }
.screen--home.is-night .home__hero::before { background-image: url(img/hero-night.webp); }
.screen--home { touch-action: pan-y; }

/* ───── the introduction: his picture of the tower over the hill while it rises ───── */
.intro { position: absolute; inset: 0; z-index: 6; background: #0d0b09; touch-action: none; transition: opacity 1.1s ease; -webkit-user-select: none; user-select: none; }
.intro.is-gone { opacity: 0; pointer-events: none; }
.intro__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; display: block; pointer-events: none; animation: heroIn 2s var(--ease) both; }
.intro .ph-night { opacity: 0; animation: none; }
.is-intro .fabs, .is-intro .timebtn, .is-intro .tsv-pins, .is-intro .showcap, .is-intro .pastnote { visibility: hidden; }
@media (min-aspect-ratio: 3/4) {
  .intro__img { object-fit: contain; }
  .intro::before { content: ''; position: absolute; inset: 0; background: url(img/intro.webp) center / cover; filter: blur(30px) brightness(0.38); transform: scale(1.1); }
  .intro.is-night::before { background-image: url(img/intro-night.webp); }
}
/* (beside the place panel on a wide screen, the picture stands in the room to its right) */
@media (min-width: 760px) and (min-aspect-ratio: 3/4) { .intro__img { left: 438px; width: calc(100% - 438px); } }

/* ───── the hill ───── */
.stage { position: absolute; inset: 0; touch-action: none; -webkit-user-select: none; user-select: none; background: #0d0b09; }
.stage canvas { outline: none; -webkit-tap-highlight-color: transparent; }
.veil { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; transition: opacity 1.2s ease; }   /* (its words in the middle: low, they had shown under the introduction's panel as it rose — Hristo) */
.veil.is-gone { opacity: 0; pointer-events: none; }
.veil__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: brightness(0.45) saturate(0.85); }
.veil__box { position: relative; width: min(78%, 300px); text-align: center; }
.veil__label { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--parch); }
.veil__bar { display: block; height: 3px; border-radius: 2px; background: rgba(243, 231, 204, 0.18); overflow: hidden; }
.veil__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass-deep), var(--brass-2)); transition: width 0.4s ease; }

.chrome { position: absolute; left: 0; right: 0; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(26px + var(--safe-t)) 14px 10px; pointer-events: none; }
.chrome__side { display: flex; align-items: center; gap: 8px; }

.chrome__side > * { pointer-events: auto; }
@media (max-width: 374px) { .clock__season { display: none; } }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); color: var(--parch); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); color: var(--parch); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.clock__icon { width: 18px; height: 18px; color: var(--brass-2); }
.clock.is-moon .clock__icon { color: #dde4f0; }   /* (the Full Moon night: a cold silver moon) */
.clock__season { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-left: 8px; border-left: 1px solid var(--line); }

.fabs { position: absolute; right: 14px; z-index: 9; display: flex; flex-direction: column; gap: 10px; bottom: min(calc(var(--panel-h, 300px) + 16px), calc(100% - 150px)); transition: bottom 0.55s var(--ease), opacity 0.3s ease; }
.fab { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); color: var(--parch); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.fab svg { transition: transform 0.2s linear; }

/* Then and Now */
.timebtn { position: absolute; left: 14px; z-index: 9; bottom: min(calc(var(--panel-h, 300px) + 16px), calc(100% - 150px)); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 13px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line); color: var(--parch); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); font-size: 14px; letter-spacing: 0.03em; transition: bottom 0.55s var(--ease), background 0.3s ease, color 0.3s ease; }
.timebtn svg { color: var(--brass-2); }
.timebtn[aria-pressed="true"] { background: var(--brass); color: #1a130a; border-color: var(--brass); }
.timebtn[aria-pressed="true"] svg, .timebtn.is-on svg { color: #1a130a; }
.is-show .timebtn { display: none; }
@media (min-width: 760px) { .timebtn { left: auto; right: 70px; bottom: 24px; } }
.pastnote { position: absolute; left: 50%; top: calc(84px + var(--safe-t)); z-index: 7; transform: translateX(-50%); max-width: min(90%, 420px); padding: 9px 16px; border-radius: 14px; background: rgba(20, 16, 13, 0.78); border: 1px solid var(--line); text-align: center; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.35; color: var(--parch-2); pointer-events: none; animation: toastIn 0.6s var(--ease) both; }

/* the compasses on the places */
.tsv-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 0.5s ease; }
.tsv-pins.is-off { opacity: 0; }
.tsv-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; pointer-events: none; transform-origin: 0 0; transition: opacity 0.35s ease; }
.tsv-pin.is-hidden { opacity: 0; }
.tsv-pin__disc { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 16, 13, 0.88); border: 1.25px solid var(--brass-2); color: var(--brass-2); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), left 0.3s var(--ease), top 0.3s var(--ease), background 0.25s ease, color 0.25s ease; }
.tsv-pin__disc svg { width: 13px; height: 13px; }
.tsv-pin[data-tour="sky"] .tsv-pin__disc { border-color: #9cc3c7; color: #b9dade; }
.tsv-pin.is-picked .tsv-pin__disc { left: -13px; top: -13px; width: 26px; height: 26px; background: var(--brass); color: #1a130a; box-shadow: 0 0 0 2px rgba(18, 15, 12, 0.85), 0 3px 10px rgba(0, 0, 0, 0.5); animation: pick 1.3s ease-out 1; }
@keyframes pick { 0% { box-shadow: 0 0 0 0 rgba(229, 194, 122, 0.8), 0 3px 10px rgba(0, 0, 0, 0.5); } 100% { box-shadow: 0 0 0 18px rgba(229, 194, 122, 0), 0 3px 10px rgba(0, 0, 0, 0.5); } }
.tsv-pin__label { position: absolute; left: 17px; top: 0; translate: var(--nx, 0px) -50%; width: max-content; max-width: 160px; padding: 4px 10px; border-radius: 13px; line-height: 1.3; font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--parch); background: rgba(20, 16, 13, 0.84); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.tsv-pin.is-flip .tsv-pin__label { left: auto; right: 17px; text-align: right; transform: translateX(6px); }
.tsv-pin.is-near .tsv-pin__label, .tsv-pin.is-picked .tsv-pin__label { opacity: 1; transform: none; }

/* the panel */
.panel { position: absolute; left: 8px; right: 8px; bottom: 0; z-index: 8; max-height: 72%; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(24, 19, 15, 0.9) 0%, rgba(16, 13, 10, 0.96) 100%); border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.55s var(--ease); }
.panel.is-low { transform: translateY(calc(100% - 64px - var(--safe-b))); }
.panel__grip { align-self: center; width: 64px; height: 26px; display: grid; place-items: center; color: var(--muted); flex: none; }
.panel__grip svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.panel.is-low .panel__grip svg { transform: rotate(180deg); }
.panel__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(18px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.panel__eyebrow { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-2); }
.panel__title { margin: 4px 0 0; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.05; letter-spacing: 0.005em; color: var(--parch); }
.panel__bg { margin: 2px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.panel__lead { margin: 10px 0 14px; font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--parch-2); }
.panel__count { margin: 10px 0 0; text-align: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.story { margin: 0 0 14px; }
.story__text p { margin: 0 0 12px; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--parch); }
/* the deeper stories: their own tab under the story, in the tsars' red, opening on a panel of the same */
.deeper { margin: 18px 0 4px; }
.deeper__tab { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 14px; text-align: left;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #f6dfc0;
  background: var(--granite), linear-gradient(160deg, rgba(150, 52, 38, 0.66), rgba(84, 28, 22, 0.76)); border: 1px solid rgba(232, 150, 120, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 210, 180, 0.18), 0 4px 12px rgba(8, 5, 3, 0.35); transition: border-radius 0.2s ease; }
.deeper__tab:active { transform: scale(0.99); }
.deeper__tab svg { width: 18px; height: 18px; color: var(--brass-2); }
.deeper__tab span { flex: 1; }
.deeper__chev { transition: transform 0.3s var(--ease); }
.deeper.is-open .deeper__tab { border-radius: 14px 14px 0 0; }
.deeper.is-open .deeper__chev { transform: rotate(180deg); }
.deeper__text { padding: 15px 16px 4px; border-radius: 0 0 14px 14px; border: 1px solid rgba(232, 150, 120, 0.3); border-top: 0;
  background: var(--granite), linear-gradient(170deg, rgba(120, 40, 30, 0.3), rgba(50, 20, 16, 0.42)); animation: rise 0.4s var(--ease) both; }
.deeper__text p { margin: 0 0 12px; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: #ecd9bd; }
.deeper__title { margin: 2px 0 12px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; color: #f4e3c6; text-wrap: balance; }

.acts { display: flex; align-items: center; gap: 8px; }
.acts__main { flex: 1; min-width: 0; padding: 0 16px; }
.acts__walk { padding: 0 16px; min-height: 52px; }
/* the introduction's way into the hill: the hill's rising runs along its foot until it is there */
.acts__enter { position: relative; overflow: hidden; padding: 0 16px; min-height: 52px; gap: 8px; }
.acts__enter svg { position: relative; width: 16px; height: 16px; }
.acts__label { position: relative; }
.arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--line); color: var(--parch); background: rgba(243, 231, 204, 0.05); }
.arrow:disabled { opacity: 0.3; }

.toast { position: absolute; left: 50%; top: calc(86px + var(--safe-t)); z-index: 12; transform: translateX(-50%); max-width: min(88%, 380px); padding: 10px 16px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); color: var(--parch); font-size: 14px; line-height: 1.4; text-align: center; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); animation: toastIn 0.4s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* the show's chapters */
.showcap { position: absolute; left: 0; right: 0; top: calc(98px + var(--safe-t)); z-index: 7; padding: 0 28px; text-align: center; pointer-events: none; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.showcap.is-in .showcap__title, .showcap.is-in .showcap__year, .showcap.is-in .showcap__line { animation: capIn 1.6s var(--ease) both; }
.showcap__year { margin: 0; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-2); }
.showcap__title { margin: 6px 0 0; font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.05; color: var(--parch); animation-delay: 0.2s !important; }
.showcap__line { margin: 10px auto 0; max-width: 360px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--parch-2); animation-delay: 0.5s !important; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.is-show .panel__lead { display: none; }

/* ───── sheets ───── */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 6, 5, 0.5); animation: fade 0.3s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet__card { position: relative; width: calc(100% - 16px); max-width: 560px; max-height: 86%; display: flex; flex-direction: column; padding: 30px 22px calc(24px + var(--safe-b)); border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #221c17, #16120f); border-top: 1px solid var(--line); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55); animation: sheetIn 0.45s var(--ease) both; }
.sheet__card--tall { max-height: 90%; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 0; margin: 0 -6px; padding: 0 6px; }
@keyframes sheetIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__close { position: absolute; z-index: 1; right: 14px; top: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--parch); border: 1px solid var(--stone-edge); background: var(--granite), radial-gradient(circle at 35% 30%, rgba(96, 72, 52, 0.7), rgba(36, 26, 18, 0.8)); }
.sheet__close svg { width: 18px; height: 18px; }
.sheet.is-closing { pointer-events: none; animation: fadeOut 0.26s ease both; }
.sheet.is-closing .sheet__card { animation: sheetOut 0.27s ease-in both; }
@keyframes sheetOut { to { transform: translateY(40px); opacity: 0; } }
.sheet__eyebrow { margin: 0; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-2); }
.sheet__eyebrow--gap { margin-top: 22px; }
.sheet__title { margin: 6px 0 4px; font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--parch); font-variant-numeric: tabular-nums; }
.sheet__sub { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.sheet__lead { margin: 6px 0 12px; font-family: var(--serif); font-size: 20px; line-height: 1.35; color: var(--parch-2); }
.sheet__text p { margin: 0 0 12px; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--parch); }
.sheet__note { margin: 6px 0 16px; font-size: 13px; font-style: italic; color: var(--muted); }
.sheet__small { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* About: the publisher's block — the white Cultura Compass mark (WalkNessebar's) on the granite, the address under it */
.maker__logo { display: block; width: 168px; height: auto; margin: 12px 0 12px; }
.maker__body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--parch-2); }
.maker__address { display: flex; flex-direction: column; margin-bottom: 8px; color: var(--parch); }
.maker__link { color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.maker__more { display: block; margin: 18px 0 0; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
/* the privacy page: its sections headed as the sheets' eyebrows are, a little apart */
.privacy__head { margin: 22px 0 8px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-2); }
.sheet__go { width: 100%; }
.range { width: 100%; margin: 6px 0 2px; accent-color: var(--brass); height: 30px; }
.range__marks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 0 4px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips .chip { flex: 1 1 auto; justify-content: center; }   /* (when they take two rows on a phone, both rows run the full width) */
/* the sky: how cloudy (a sun at one end, a cloud at the other) and what kind of cloud */
.cloudrow { display: flex; align-items: center; gap: 10px; }
.cloudrow .range { flex: 1; }
.cloudrow__icon { width: 18px; height: 18px; color: var(--brass-2); flex: none; }
.sheet__sub--clouds { margin: 2px 0 6px; min-height: 1.4em; }
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.season { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(243, 231, 204, 0.05); font-size: 13px; color: var(--parch); }
.season svg { width: 22px; height: 22px; color: var(--brass-2); }
.season.is-on { background: var(--brass); color: #1a130a; border-color: var(--brass); }
.season.is-on svg { color: #1a130a; }

.list { margin-top: 12px; display: grid; gap: 4px; }
.list__head { margin: 14px 0 4px; font-size: 11.5px; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-2); text-wrap: balance; }
.list__item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; text-align: left; }
.list__item:active { background: rgba(243, 231, 204, 0.06); }
.list__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12.5px; color: var(--brass-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.list__t { display: flex; flex-direction: column; }
.list__name { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--parch); line-height: 1.15; }
.list__sub { font-size: 12.5px; color: var(--muted); }

@media (min-width: 760px) {
  .panel { left: 18px; right: auto; bottom: 18px; width: 420px; border-radius: 22px; border: 1px solid var(--line); max-height: calc(100% - 110px); }
  .panel.is-low { transform: translateY(calc(100% - 64px)); }
  .fabs { bottom: 24px; }
  .sheet { align-items: center; }
  .sheet__card { border-radius: 22px; border: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ═══════════════ Stone glass — the interface as polished brown granite you can see through ═══════════════
   Like WalkNessebar's glass: layered translucent gradients, a bright hairline and an inner highlight, and NO
   backdrop-filter (on iOS Safari a blurred backdrop can make the buttons inside it untappable). Over it, the fine
   speckle of granite (an SVG noise, drawn once by the browser) and the bevel of a carved slab. */
:root {
  --granite: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 0.86  0 0 0 0 0.76  0 0 0 0 0.6  0 0 0 1.5 -0.92'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --granite-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.03  0 0 0 0 0.02  0 0 0 2.4 -1.3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --stone-glass: linear-gradient(165deg, rgba(74, 54, 38, 0.62) 0%, rgba(42, 30, 21, 0.72) 48%, rgba(24, 17, 12, 0.8) 100%);
  --stone-glass-solid: linear-gradient(165deg, rgba(70, 51, 36, 0.86) 0%, rgba(36, 26, 18, 0.92) 100%);
  --stone-edge: rgba(236, 202, 140, 0.34);
  --stone-bevel: inset 0 1px 0 rgba(255, 236, 200, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 230, 190, 0.04);
  --stone-shadow: 0 10px 30px rgba(8, 5, 3, 0.45), 0 2px 6px rgba(8, 5, 3, 0.3);
}
.round, .pill, .fab, .timebtn, .panel, .toast, .sheet__card, .pastnote { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* the round buttons and the clock: polished granite pebbles in a brass ring */
.round, .fab, .pill, .timebtn {
  background: var(--granite), var(--granite-dark), radial-gradient(120% 120% at 30% 20%, rgba(96, 72, 52, 0.78), rgba(36, 26, 18, 0.86) 70%);
  border: 1px solid var(--stone-edge);
  box-shadow: var(--stone-bevel), 0 6px 16px rgba(8, 5, 3, 0.45);
  color: var(--parch);
}
.round:active, .fab:active, .pill:active, .timebtn:active { transform: scale(0.96); }
.round, .fab, .pill, .timebtn { transition: transform 0.15s ease, background 0.3s ease, color 0.3s ease, bottom 0.55s var(--ease); }
.timebtn[aria-pressed="true"], .timebtn.is-on { background: var(--granite), linear-gradient(180deg, #ecd08f 0%, #c9a35a 55%, #a9823f 100%); color: #1a130a; border-color: #f4dc9f; }

/* the panel: a slab of brown granite you can see the hill through */
.panel {
  background: var(--granite), var(--granite-dark), var(--stone-glass);
  border-top: 1px solid var(--stone-edge);
  box-shadow: var(--stone-bevel), 0 -12px 40px rgba(8, 5, 3, 0.5);
}
@media (min-width: 760px) { .panel { border: 1px solid var(--stone-edge); } }

.chip { background: var(--granite), linear-gradient(160deg, rgba(86, 64, 46, 0.55), rgba(38, 28, 20, 0.62)); border-color: rgba(236, 202, 140, 0.28); box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.14); }
.arrow { background: var(--granite), radial-gradient(circle at 35% 30%, rgba(96, 72, 52, 0.7), rgba(36, 26, 18, 0.8)); border-color: var(--stone-edge); }
.btn--ghost { background: var(--granite), linear-gradient(160deg, rgba(86, 64, 46, 0.55), rgba(38, 28, 20, 0.62)); border-color: var(--stone-edge); }
/* the gilded button keeps its brass, with the grain of the stone it is set in */
.btn--gold { background: var(--granite), linear-gradient(180deg, #ecd08f 0%, #c9a35a 55%, #a9823f 100%); }

/* the compasses: brass discs on dark stone */
.tsv-pin__disc { background: radial-gradient(circle at 35% 30%, #6a4f38, #20170f 75%); border-color: #e5c27a; }
.tsv-pin__label { background: var(--granite), rgba(30, 22, 15, 0.86); border: 1px solid rgba(236, 202, 140, 0.22); }

/* sheets and notes */
.sheet__card { background: var(--granite), var(--granite-dark), var(--stone-glass-solid); border-top: 1px solid var(--stone-edge); box-shadow: var(--stone-bevel), 0 -12px 40px rgba(0, 0, 0, 0.55); }
.toast, .pastnote { background: var(--granite), var(--stone-glass-solid); border-color: var(--stone-edge); box-shadow: var(--stone-bevel), var(--stone-shadow); }
.season { background: var(--granite), linear-gradient(160deg, rgba(86, 64, 46, 0.55), rgba(38, 28, 20, 0.62)); }
.season.is-on, .chip.is-on { background: var(--granite), linear-gradient(180deg, #ecd08f 0%, #c9a35a 55%, #a9823f 100%); }
.list__n { background: radial-gradient(circle at 35% 30%, rgba(110, 82, 56, 0.9), rgba(30, 22, 15, 0.95)); }

/* phones: a lower welcome slab, so the hill keeps most of the screen */
@media (max-width: 759px) {
  .panel__title { font-size: 29px; }
  .panel__lead { font-size: 17px; margin: 8px 0 12px; }
}
.veil__back { margin-top: 16px; }
/* phones: the place's row of actions on one line, "Read the story" unbroken */
@media (max-width: 759px) {
  .acts { gap: 6px; }
  .arrow { width: 42px; height: 42px; }
  .acts__main { padding: 0 10px; font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; }
  .acts__walk, .acts__enter { padding: 0 13px; font-size: 13px; letter-spacing: 0.04em; gap: 7px; }
}
/* (a label too long for its button — some languages' are, on a phone: smaller, and on two lines if it must) */
.acts__main.is-long { font-size: 11.5px; letter-spacing: 0.01em; white-space: normal; line-height: 1.12; }
.acts__walk.is-icon { padding: 0 15px; }
.acts__walk.is-icon span { display: none; }

/* ═══════════════ The menu ═══════════════
   Its launcher: a granite medallion in a brass ring, a little larger than the other round buttons, its inner
   ring of punched dots turning as the menu opens. The menu itself comes down from the top as a slab of the same stone, its lower
   edge cut in battlements (a mask on its own layer, so the shadow and the brass rim follow the merlons). */
.menubtn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; color: var(--parch); }
.menubtn__disc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 5px 12px rgba(8, 5, 3, 0.5)); transition: transform 0.7s var(--ease); }
.menubtn__stone { fill: url(#g-pebble); stroke: #e5c27a; stroke-width: 1.4; stroke-linejoin: round; }   /* (its edge cut in merlons, like the curtain walls and the menu's own slab) */
.menubtn__ring { fill: none; stroke: rgba(236, 202, 140, 0.42); stroke-width: 0.8; stroke-dasharray: 1.2 2.2; }
.menubtn__icon { position: relative; width: 22px; height: 22px; color: var(--brass-2); }
.menubtn[aria-expanded="true"] .menubtn__disc { transform: rotate(36deg); }
.menubtn:active .menubtn__disc { transform: rotate(18deg) scale(0.94); }
/* on arriving at the hill: two soft brass rings, so the eye finds the menu, then stillness */
.menubtn::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; pointer-events: none; animation: menuHalo 2.2s ease-out 1.6s 2 both; }
@keyframes menuHalo { from { box-shadow: 0 0 0 0 rgba(229, 194, 122, 0.55); } to { box-shadow: 0 0 0 16px rgba(229, 194, 122, 0); } }

.menu { position: fixed; inset: 0; z-index: 45; }
.menu__scrim { position: absolute; inset: 0; background: rgba(8, 6, 5, 0.5); animation: fade 0.3s ease both; }
.menu__sheet { position: relative; margin: 0 auto; width: min(calc(100% - 16px), 460px); max-height: calc(100% - 40px); display: flex; flex-direction: column;
  padding: calc(18px + var(--safe-t)) 12px 30px; filter: drop-shadow(0 14px 24px rgba(4, 3, 2, 0.6)); animation: menuDown 0.46s var(--ease) both;
  --wall-stone: linear-gradient(175deg, rgba(78, 57, 40, 0.97) 0%, rgba(40, 29, 20, 0.98) 60%, rgba(30, 22, 15, 0.99) 100%); --wall-r: 0px; }
.menu.is-closing .menu__scrim { animation: fadeOut 0.26s ease both; }
.menu.is-closing .menu__sheet { animation: menuUp 0.27s ease-in both; }
@keyframes menuDown { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes menuUp { to { transform: translateY(-60%); opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.menu__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 10px 8px; }
.menu__eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-2); }
.menu__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; color: var(--parch); }
.menu__close { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--parch); border: 1px solid var(--stone-edge); background: var(--granite), radial-gradient(circle at 35% 30%, rgba(96, 72, 52, 0.7), rgba(36, 26, 18, 0.8)); }
.menu__close svg { width: 18px; height: 18px; }
.menu__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 2px 6px; }
.menu__group { display: flex; align-items: center; gap: 10px; margin: 12px 8px 4px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.menu__group::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(236, 202, 140, 0.3), transparent); }
.menu__group:first-child { margin-top: 2px; }
.menu__row { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 16px; text-align: left; color: var(--parch); border: 1px solid transparent; transition: background 0.16s ease; }
.menu__row:active { background: rgba(243, 231, 204, 0.07); }
.menu__row.is-here { background: rgba(229, 194, 122, 0.1); border-color: rgba(236, 202, 140, 0.24); }
.menu__row--main { background: var(--granite), linear-gradient(135deg, rgba(201, 163, 90, 0.34), rgba(120, 88, 50, 0.22) 55%, rgba(52, 38, 26, 0.3)); border-color: rgba(240, 206, 140, 0.4); box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.14); }
.menu__chip { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--brass-2); background: radial-gradient(circle at 35% 30%, rgba(110, 82, 56, 0.9), rgba(30, 22, 15, 0.95)); border: 1px solid rgba(236, 202, 140, 0.4); box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.18); }
.menu__chip svg { width: 21px; height: 21px; }
.menu__row--main .menu__chip { color: #1a130a; background: var(--granite), linear-gradient(180deg, #ecd08f 0%, #c9a35a 55%, #a9823f 100%); border-color: #f4dc9f; }
.menu__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.menu__name { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.15; color: var(--parch); }
.menu__desc { font-size: 12.5px; line-height: 1.3; color: var(--muted); letter-spacing: 0.01em; }
.menu__go { width: 16px; height: 16px; flex: none; color: var(--brass-2); opacity: 0.8; }
.menu__rule { display: block; width: 54px; height: 1px; margin: 10px auto 4px; background: rgba(236, 202, 140, 0.35); }
.menu__row--small { min-height: 50px; }
.menu__row--small .menu__chip { width: 34px; height: 34px; }
.menu__row--small .menu__chip svg { width: 18px; height: 18px; }
.menu__row--small .menu__name { font-size: 17px; }
@media (min-width: 760px) {
  .menu__sheet { margin: 0 0 0 10px; width: 420px; }
}
@media (max-height: 640px) { .menu__row { min-height: 52px; padding-top: 5px; padding-bottom: 5px; } .menu__group { margin-top: 8px; } }

/* ═══════════════ The mixer: a little two-fader desk under the speaker ═══════════════ */
.mixer { position: absolute; z-index: 20; top: calc(80px + var(--safe-t)); right: 10px; width: 232px; padding: 14px 16px 16px; border-radius: 20px;
  background: var(--granite), var(--granite-dark), var(--stone-glass-solid); border: 1px solid var(--stone-edge); box-shadow: var(--stone-bevel), var(--stone-shadow);
  animation: mixIn 0.32s var(--ease) both; transform-origin: 90% 0; }
@keyframes mixIn { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: none; } }
.mixer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mixer__eyebrow { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-2); }
.mixer__desk { display: flex; justify-content: space-around; gap: 10px; margin-top: 12px; padding: 14px 4px 12px; border-radius: 14px; background: rgba(10, 7, 5, 0.32); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 236, 200, 0.06); }
.mixer.is-off .mixer__desk { opacity: 0.42; }
.fader { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px; }
.fader__slot { position: relative; width: 56px; height: 150px; touch-action: none; cursor: ns-resize; border-radius: 8px; }
.fader__slot:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 2px; }
/* the groove, cut in the stone, and the scale beside it */
.fader__slot::before { content: ''; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 6px; margin-left: -3px; border-radius: 3px; background: #0b0806; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 236, 200, 0.12); }
.fader__ticks { position: absolute; left: 6px; right: 6px; top: 15px; bottom: 15px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(236, 202, 140, 0.4) 0 1px, transparent 1px 12px) left / 9px 100% no-repeat, repeating-linear-gradient(180deg, rgba(236, 202, 140, 0.4) 0 1px, transparent 1px 12px) right / 9px 100% no-repeat; }
.fader__fill { position: absolute; left: 50%; bottom: 12px; width: 4px; margin-left: -2px; border-radius: 2px; height: calc(var(--v, 0.7) * 120px + 3px); background: linear-gradient(0deg, #8f6c2c, #e5c27a); box-shadow: 0 0 8px rgba(229, 194, 122, 0.35); pointer-events: none; }
/* the cap: a brass fader knob with a line across */
.fader__cap { position: absolute; left: 50%; bottom: calc(var(--v, 0.7) * 120px); width: 40px; height: 30px; margin-left: -20px; border-radius: 6px; pointer-events: none;
  background: linear-gradient(180deg, #f0d896 0%, #c9a35a 46%, #9c7638 54%, #c9a35a 100%); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 245, 220, 0.8), inset 0 -1px 0 rgba(60, 40, 15, 0.5); transition: transform 0.15s ease; }
.fader__cap::after { content: ''; position: absolute; left: 5px; right: 5px; top: 50%; height: 2px; margin-top: -1px; background: #2a1d0e; border-radius: 1px; }
.fader.is-drag .fader__cap { transform: scale(1.06); }
.fader__label { display: flex; align-items: center; gap: 5px; font-size: 12px; letter-spacing: 0.06em; color: var(--parch-2); }
.fader__label svg { width: 15px; height: 15px; color: var(--brass-2); }
/* the switch: brass when the sound is on */
.switch { position: relative; width: 46px; height: 26px; border-radius: 13px; flex: none; background: rgba(10, 7, 5, 0.6); border: 1px solid var(--stone-edge); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); transition: background 0.25s ease; }
.switch__knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3e7cc, #b9a27a); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); transition: transform 0.25s var(--ease); }
.switch[aria-checked="true"] { background: linear-gradient(180deg, #ecd08f 0%, #c9a35a 55%, #a9823f 100%); border-color: #f4dc9f; }
.switch[aria-checked="true"] .switch__knob { transform: translateX(20px); background: radial-gradient(circle at 35% 30%, #3a2a1c, #1a130a); }
#sound[aria-expanded="true"] { border-color: #f4dc9f; color: var(--brass-2); }

/* ═══════════════ The wall: every card cut in battlements, like the curtain wall of Tsarevets ═══════════════
   The cards that rise from the foot of the screen (the place panel, the sheets) carry their merlons on top, like
   the wall itself; the ones that hang from the top (the menu, the mixer) carry them below. The stone is drawn
   on its own layer (::before) masked to the battlements, and a brass rim (::after) the same shape, 1.5 px
   proud, catches the light along the merlons and fades into the stone. */
:root {
  --merlons: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='14'><path d='M0 0h34v4H27.5v8.2a1.8 1.8 0 0 1-1.8 1.8H8.3a1.8 1.8 0 0 1-1.8-1.8V4H0z'/></svg>");
  --merlons-up: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='14'><path d='M0 14h34v-4H27.5V1.8A1.8 1.8 0 0 0 25.7 0H8.3a1.8 1.8 0 0 0-1.8 1.8V10H0z'/></svg>");
  --rim: 236, 202, 140;
}
.wall-top, .wall-bottom { isolation: isolate; background: none !important; border: 0 !important; }
.wall-top::before, .wall-top::after, .wall-bottom::before, .wall-bottom::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.wall-top::before, .wall-bottom::before { background: var(--granite), var(--granite-dark), var(--wall-stone, var(--stone-glass-solid)); box-shadow: var(--stone-bevel); }
.wall-bottom::before, .wall-bottom::after { border-radius: var(--wall-r, 20px) var(--wall-r, 20px) 6px 6px;
  -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 13px) no-repeat, var(--merlons) 50% 100% / 34px 14px repeat-x;
  mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 13px) no-repeat, var(--merlons) 50% 100% / 34px 14px repeat-x; }
.wall-top::before, .wall-top::after { border-radius: 6px 6px var(--wall-r, 0px) var(--wall-r, 0px);
  -webkit-mask: linear-gradient(#000, #000) 0 100% / 100% calc(100% - 13px) no-repeat, var(--merlons-up) 50% 0 / 34px 14px repeat-x;
  mask: linear-gradient(#000, #000) 0 100% / 100% calc(100% - 13px) no-repeat, var(--merlons-up) 50% 0 / 34px 14px repeat-x; }
.wall-bottom::after { z-index: -2; inset: 0 -1px -1.5px; background: linear-gradient(0deg, rgba(var(--rim), 0.78), rgba(var(--rim), 0.16) 60px, rgba(var(--rim), 0) 120px); }
.wall-top::after { z-index: -2; inset: -1.5px -1px 0; background: linear-gradient(180deg, rgba(var(--rim), 0.78), rgba(var(--rim), 0.16) 60px, rgba(var(--rim), 0) 120px); }

/* the place panel: a stretch of wall you can see the hill through */
.panel.wall-top { --wall-stone: var(--stone-glass); padding-top: 8px; box-shadow: none; }   /* (on a phone it stands 8 px in from both edges, as the menu does, and meets the screen's foot square) */
@media (min-width: 760px) { .panel.wall-top { --wall-r: 22px; } }
/* the sheets */
.sheet__card.wall-top { box-shadow: none; filter: drop-shadow(0 -10px 26px rgba(0, 0, 0, 0.5)); }
@media (min-width: 760px) { .sheet__card.wall-top { --wall-r: 22px; } }

/* ───────── the language: its flag on the lion's shield, and the tablet of shields it opens ───────── */
.menu__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.langbtn { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 12px; }
.langbtn:focus-visible, .langs__item:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 2px; }
.shield { display: block; width: 30px; height: 36px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.shield svg { display: block; width: 100%; height: 100%; overflow: visible; }
.shield__rim { fill: none; stroke: #d9b878; stroke-width: 2.4; stroke-linejoin: round; }
.shield__inner { fill: none; stroke: rgba(30, 20, 12, 0.55); stroke-width: 1; }
.langbtn:active .shield { transform: scale(0.94); }
.langs { position: absolute; z-index: 3; top: 62px; right: 12px; width: min(296px, calc(100% - 24px)); padding: 14px 14px 12px; border-radius: 20px;
  background: var(--granite), var(--granite-dark), var(--stone-glass-solid), #241a13;   /* (solid: the menu's rows had shown through) */ border: 1px solid var(--stone-edge); box-shadow: var(--stone-bevel), var(--stone-shadow);
  animation: mixIn 0.28s var(--ease) both; transform-origin: 85% 0; }
/* on the landing: the shield in the top corner, over the sky of his picture, and the tablet let down under it */
.home__lang { position: absolute; z-index: 4; top: calc(14px + var(--safe-t)); right: 12px; width: 48px; height: 48px; animation: rise 1.2s 0.8s var(--ease) both; }
.home__lang .shield { width: 32px; height: 39px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.35)); }
.screen--home > .langs { z-index: 5; top: calc(66px + var(--safe-t)); }
.langs__title { margin: 0 2px 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-2); }
.langs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 6px; border-radius: 14px; background: rgba(10, 7, 5, 0.32); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 236, 200, 0.06); }
.langs__item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px 6px; border-radius: 12px; color: var(--parch); border: 1px solid transparent; transition: background 0.16s ease; }
.langs__item .shield { width: 32px; height: 38px; }
.langs__item span:last-child { font-size: 11.5px; line-height: 1.15; text-align: center; }
.langs__item:hover { background: rgba(236, 202, 140, 0.08); }
.langs__item[aria-checked="true"] { background: rgba(236, 202, 140, 0.14); border-color: rgba(236, 202, 140, 0.35); }
.langs__item[aria-checked="true"] span:last-child { color: var(--brass-2); }

/* portrait first (round 14, Hristo: as WalkBurgas and WalkNessebar) — a phone turned sideways sees only this, in the
   hill's own stone and brass; Safari cannot lock the orientation. Turned upright again, nothing underneath has changed */
.rotate-lock { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .rotate-lock {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 28px calc(28px + env(safe-area-inset-right)) 28px calc(28px + env(safe-area-inset-left)); text-align: center;
    background: var(--granite-dark), radial-gradient(120% 90% at 50% 0%, #3a2b1f 0%, var(--stone) 70%); color: var(--parch);
  }
  .rotate-lock__icon { width: 56px; height: 56px; color: var(--brass-2); }
  .rotate-lock__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--parch); }
  .rotate-lock__text { margin: 0; max-width: 34ch; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--parch-2); }
}
