@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --base: #0a0908;
  --bone: #e9e2d0;
  --gilt: #c9a227;
  --ui: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--base); }
html.lenis, html.lenis body { height: auto; }
body { background: var(--base); color: var(--bone); font-family: var(--ui); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gilt); color: var(--base); }

/* grain */
.grain { position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-2%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* masthead */
.masthead { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; justify-content: space-between; padding: 20px 32px; font-size: 11px; letter-spacing: .35em; mix-blend-mode: difference; }
.masthead__era { color: var(--gilt); }

/* room dive */
.room__dive { height: 320vh; position: relative; }
.room__dive-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--base); }
.dive-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.room__dive-caption { position: absolute; bottom: 5vh; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; color: var(--bone); opacity: .8; white-space: nowrap; text-align: center; }

/* room world — layered: painting < fx (interaction) < hotspots < UI */
.room__world { position: relative; min-height: 100vh; overflow: hidden; background: var(--base); }
/* contain, not cover: modernist canvases must be seen whole, never cropped */
.room__painting { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.room__fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* hotspots — the container spans the whole room but only its circular
   buttons should intercept the pointer; otherwise it silently blocks any
   mechanic layer beneath it (e.g. nervline's drawing canvas, zero's
   draggable square) from ever receiving pointer events. */
.hotspots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hotspot { position: absolute; width: 84px; height: 84px; transform: translate(-50%,-50%); border-radius: 50%; border: 2px solid rgba(233,226,208,.45); background: radial-gradient(circle, rgba(233,226,208,.08) 0%, transparent 70%); cursor: pointer; pointer-events: auto; transition: border-color .3s, box-shadow .3s; animation: spot-beacon 2.4s ease-in-out infinite; }
.hotspot::after { content: ''; position: absolute; inset: 42%; border-radius: 50%; background: rgba(233,226,208,.85); box-shadow: 0 0 12px rgba(233,226,208,.7); }
.hotspot:hover { border-color: var(--gilt); animation-play-state: paused; }
@keyframes spot-beacon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,.45); }
  50% { box-shadow: 0 0 0 14px rgba(201,162,39,0); }
}
.hotspot.lit { animation: none; }
.hotspot.lit { border-color: var(--gilt); box-shadow: 0 0 22px rgba(201,162,39,.5); }
.hotspot.lit::after { background: var(--gilt); }
.hotspot:focus-visible { outline: 2px solid var(--gilt); outline-offset: 4px; }

.plaque { position: absolute; top: 10vh; left: 32px; max-width: 360px; padding: 22px 26px; background: rgba(10,9,8,.85); border-left: 3px solid var(--gilt); backdrop-filter: blur(8px); }
.plaque__movement { font-family: 'Cormorant', serif; font-size: 17px; letter-spacing: .3em; color: var(--gilt); }
.plaque__line { margin-top: 12px; font-size: 16px; line-height: 1.65; }

.factcard { position: absolute; bottom: 8vh; left: 50%; transform: translateX(-50%); width: min(720px, 92vw); max-height: 55vh; overflow-y: auto; padding: 30px 36px; background: rgba(10,9,8,.92); border: 1px solid rgba(201,162,39,.5); backdrop-filter: blur(10px); }
.factcard[hidden] { display: none; }
.factcard__title { font-family: 'Cormorant', serif; font-size: 24px; letter-spacing: .2em; color: var(--gilt); text-transform: uppercase; }
.factcard__body { margin-top: 14px; font-size: 16.5px; line-height: 1.7; }
.factcard__more { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(201,162,39,.3); font-size: 15px; line-height: 1.65; color: rgba(233,226,208,.85); }
.factcard__more::before { content: 'DID YOU KNOW — '; letter-spacing: .18em; color: var(--gilt); font-size: 11px; }
.factcard__more[hidden] { display: none; }

.xray-btn { position: absolute; z-index: 5; top: 10vh; right: 32px; padding: 12px 18px; background: transparent; border: 1px solid rgba(233,226,208,.4); color: var(--bone); font-family: var(--ui); font-size: 11px; letter-spacing: .3em; cursor: pointer; }
.xray-btn[aria-pressed="true"], .xray-btn:hover { border-color: var(--gilt); color: var(--gilt); }
.room__world.xray .room__painting,
.room__world.xray .facet-tile,
.room__world.xray .zero-square { filter: grayscale(1) invert(.88) contrast(1.25); }

.pigment-toast { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 14px; padding: 18px 28px; background: rgba(10,9,8,.95); border: 1px solid var(--gilt); font-size: 12px; letter-spacing: .3em; z-index: 5; }
.pigment-toast[hidden] { display: none; }
.pigment-toast__chip { width: 22px; height: 22px; border-radius: 50%; background: #f4f1e8; box-shadow: 0 0 14px rgba(244,241,232,.6); }

@media (max-width: 720px) {
  .plaque { max-width: 62vw; top: 8vh; left: 18px; padding: 12px 14px; }
  .plaque__line { font-size: 12px; }
  .xray-btn { top: 8vh; right: 16px; padding: 9px 12px; font-size: 10px; }
  .factcard { width: 94vw; bottom: 4vh; padding: 20px 22px; }
  .factcard__title { font-size: 19px; }
  .factcard__body { font-size: 14.5px; }
  .hotspot { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) { .grain { animation: none; } .hotspot { animation: none; } }

/* ===== BROKEN FRAME deltas ===== */
:root { --wedge: #d6402c; }

.masthead__wordmark { color: inherit; text-decoration: none; }

.intro { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.intro__chapter { font-size: 11px; letter-spacing: .45em; color: var(--wedge); }
.intro__h1 { font-family: 'Cormorant', serif; font-weight: 600; font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: .12em; margin-top: 14px; }
.intro__tag { margin-top: 14px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gilt); }
.intro__hint { margin-top: 7vh; font-size: 11px; letter-spacing: .4em; opacity: .5; text-transform: uppercase; }

/* accent shifts: chapter 2 highlights use the wedge red alongside gilt */
.hotspot.lit { border-color: var(--wedge); box-shadow: 0 0 22px rgba(214,64,44,.5); }
.hotspot.lit::after { background: var(--wedge); }

/* wedge mechanic layer */
.wedge-stage { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.wedge-tri { position: absolute; width: 0; height: 0; cursor: grab; filter: drop-shadow(0 0 18px rgba(214,64,44,.6));
  border-top: 38px solid transparent; border-bottom: 38px solid transparent; border-left: 92px solid var(--wedge);
  transform: translate(-50%,-50%); touch-action: none; pointer-events: auto; }
.wedge-tri:active { cursor: grabbing; }
.wedge-hit { animation: wedge-flash .5s ease-out; }
@keyframes wedge-flash { 0% { filter: drop-shadow(0 0 60px rgba(214,64,44,1)); } }

/* pointer-events none: the tray must never block hotspots beneath it (tooltips sacrificed) */
.typecase { position: fixed; pointer-events: none; bottom: 24px; right: 24px; z-index: 85; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding: 10px 12px; background: rgba(10,9,8,.85); border: 1px solid rgba(214,64,44,.55); min-height: 40px; max-width: 260px; }
.typecase__slug { padding: 3px 8px; font-size: 10px; letter-spacing: .2em; border: 1px solid rgba(233,226,208,.35); }
.typecase__slug--owned { border-color: var(--wedge); color: var(--bone); background: rgba(214,64,44,.18); }
.typecase__slug--empty { opacity: .35; }

@media (max-width: 720px) {
  /* 18 slugs at desktop size cover ~16% of a phone screen and overlap the
     factcard — shrink to compact chips and cap the footprint. */
  .typecase { max-width: 45vw; opacity: .85; }
  .typecase__slug { font-size: 8px; padding: 2px 5px; }
}

/* finale — manifesto poster */
.finale { position: relative; min-height: 100vh; background: var(--base); display: flex; align-items: center; justify-content: center; padding: 12vh 24px; }
.finale__inner { max-width: 640px; width: 100%; text-align: center; }
.finale__eyebrow { font-size: 11px; letter-spacing: .45em; color: var(--wedge); }
.finale__title { font-family: var(--ui); font-weight: 900; font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: .02em; margin: 14px 0 30px; text-transform: uppercase; }
.finale__canvas { width: 100%; max-width: 460px; aspect-ratio: 1000 / 1414; border: 1px solid rgba(214,64,44,.4); background: #ddd8cc; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.finale__note { margin-top: 22px; font-size: 13px; letter-spacing: .12em; color: rgba(233,226,208,.7); }
.finale__cta { display: inline-block; margin-top: 22px; padding: 15px 34px; border-radius: 999px; text-decoration: none; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid rgba(233,226,208,.3); color: rgba(233,226,208,.4); pointer-events: none; transition: all .3s; }
.finale__cta.ready { background: var(--wedge); color: var(--bone); border-color: var(--wedge); pointer-events: auto; font-weight: 600; }
.finale__cta.ready:hover { transform: translateY(-3px); box-shadow: 0 16px 44px -12px rgba(214,64,44,.5); }
.finale__back { display: block; margin-top: 28px; padding: 13px 34px; border: 1px solid var(--gilt); color: var(--bone); text-decoration: none; font-size: 11px; letter-spacing: .3em; }

/* roses mechanic (pirosmani) — petals scattered from click/Enter */
.roses-stage { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.petal { position: absolute; width: 10px; height: 14px; margin: -7px 0 0 -5px; background: #f4f1e8;
  border-radius: 60% 60% 60% 0; opacity: .95; box-shadow: 0 0 6px rgba(244,241,232,.5);
  animation: petal-fall 1.6s ease-out forwards; }
@keyframes petal-fall { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
.petal--static { animation: none; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
.room__world.roses-warm::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 55%, transparent 42%, rgba(244,241,232,.16) 100%);
  animation: roses-warm-in 1.2s ease-out forwards; }
@keyframes roses-warm-in { from { opacity: 0; } to { opacity: 1; } }

/* colorfeel mechanic (marc) — swatches + tint overlay on the horse */
.colorfeel-stage { position: absolute; right: 5%; top: 10%; height: 74%; z-index: 4; pointer-events: none; }
.colorfeel-swatch { position: absolute; right: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(233,226,208,.6); background: var(--swatch); cursor: pointer; pointer-events: auto;
  box-shadow: 0 0 10px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; }
.colorfeel-swatch:hover { transform: scale(1.08); }
.colorfeel-swatch--selected, .colorfeel-swatch:focus-visible { border-color: var(--bone); box-shadow: 0 0 0 3px rgba(233,226,208,.5); outline: none; }
.colorfeel-tint { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--swatch, transparent);
  opacity: 0; mix-blend-mode: color; }
.colorfeel-tint--accept { opacity: .4; transition: opacity .5s ease; }
.colorfeel-tint--reject { animation: colorfeel-reject .6s ease-out forwards; }
@keyframes colorfeel-reject {
  0% { opacity: .55; transform: translateX(0); }
  20% { transform: translateX(-8px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(5px); }
  100% { opacity: 0; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; }
  .room__world.roses-warm::after { animation: none; opacity: 1; }
  .colorfeel-tint--reject { animation: none; opacity: 0; }
}

/* facets mechanic (gris) — clip-path tiles standing in for the painting */
.facets-stage { position: absolute; inset: 0; z-index: 1; outline: none; }
.facets-stage:focus-visible { box-shadow: inset 0 0 0 3px rgba(201,162,39,.6); }
.facet-tile { position: absolute; will-change: transform; transition: transform .05s linear; }
.facets-stage.facets-realigned .facet-tile { transition: transform .4s ease-out; }

/* nervline mechanic (schiele) — jagged tremoring contour, canvas-drawn */
.room__world[data-mechanic="nervline"] .fx-canvas { touch-action: none; }

/* crowd mechanic (kirchner) — drifting silhouettes, canvas-drawn */

/* zero mechanic (malevich) — draggable black square over a white ground */
.zero-stage { position: absolute; inset: 0; z-index: 1; background: #ece4d2; overflow: hidden; }
.zero-square { position: absolute; padding: 0; border: 0; cursor: grab; background-repeat: no-repeat;
  background-size: cover; touch-action: none; will-change: transform; transition: transform .05s linear; }
.zero-square:active { cursor: grabbing; }
.zero-square:focus-visible { outline: 2px solid var(--gilt); outline-offset: 4px; }
/* .grain is a single page-wide fixed overlay, not per-room — this switches
   off (not muted at the source — there is no audio system yet) the whole
   page's grain while the square is displaced >=60%. That's fine in practice:
   only one room's mechanic can be on screen and toggle .room__world.zero-veiled
   at a time, so this reads as "this room's grain" even though the rule
   itself has no room-scoping mechanism. */
body:has(.room__world.zero-veiled) .grain { opacity: 0; transition: opacity .3s ease; }

@media (prefers-reduced-motion: reduce) {
  .facet-tile { transition: none; }
  .zero-square { transition: none; }
}

/* planes mechanic (popova) — 5 translucent draggable planes + target markers */
/* No z-index on the stage itself (same reasoning as .fresco-stage below):
   the "red" plane's start position geometrically overlaps the "black"
   hotspot, and "rose"'s overlaps "artist" — so .plane-tile needs its own
   z-index, below .hotspots (z-index: 3), rather than inheriting a stacking
   context from this stage that would put every tile above the hotspot
   layer regardless of the tile's own z-index. */
.planes-stage { position: absolute; inset: 0; pointer-events: none; }
.plane-marker { position: absolute; transform: translate(-50%,-50%); border: 1.5px dashed rgba(233,226,208,.4); pointer-events: none; }
.plane-marker--filled { border-style: solid; border-color: var(--wedge); }
.plane-tile { position: absolute; padding: 0; border: 1.5px solid rgba(233,226,208,.55); background: var(--plane-color);
  cursor: grab; transform: translate(-50%,-50%); touch-action: none; pointer-events: auto; z-index: 2;
  transition: left .05s linear, top .05s linear; animation: plane-drift 5s ease-in-out infinite alternate; }
/* invisible hitbox padding so drag/tap targets never fall below the 44px
   touch minimum even when the tile's own visual box (e.g. the 26px-wide
   "black" plane) is much thinner. */
.plane-tile::after { content: ''; position: absolute; inset: -12px; }
.plane-tile:active { cursor: grabbing; }
.plane-tile:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
.plane-tile--locked { cursor: default; animation: none; border-color: var(--wedge); box-shadow: 0 0 16px rgba(214,64,44,.5); }
.plane-tile--still { animation: none; }
@keyframes plane-drift {
  0% { transform: translate(-50%,-50%) rotate(-3deg); }
  100% { transform: translate(-50%,-50%) rotate(3deg); }
}

/* aurora mechanic (thomson) — additive canvas ribbons dragged across the sky */
.room__world[data-mechanic="aurora"] .fx-canvas { touch-action: none; }

/* elongate mechanic (modigliani) — scales .room__painting itself, no extra DOM */

/* woodblock mechanic (goyo) — grayscale line-art base + 4 stamped color layers */
.woodblock-lineart { filter: grayscale(1) contrast(1.6) brightness(1.08); }
.woodblock-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.woodblock-layer { position: absolute; object-fit: contain; opacity: 0; pointer-events: none;
  transition: opacity .6s ease; }
.woodblock-layer--pressed { opacity: 1; }
.room__world.xray .woodblock-layer { opacity: 0; }
.woodblock-controls { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); z-index: 4; display: flex; gap: 12px; }
.woodblock-btn { padding: 10px 20px; background: rgba(10,9,8,.85); border: 1px solid rgba(233,226,208,.4);
  color: var(--bone); font-family: var(--ui); font-size: 11px; letter-spacing: .25em; cursor: pointer; }
.woodblock-btn[aria-pressed="true"] { border-color: var(--wedge); color: var(--wedge); cursor: default; }
.woodblock-btn:disabled { opacity: .75; }
.woodblock-btn:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }

@media (max-width: 720px) {
  .woodblock-controls { bottom: 3vh; gap: 8px; flex-wrap: wrap; justify-content: center; width: 90vw; }
  .woodblock-btn { padding: 8px 14px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .plane-tile { animation: none; transition: none; }
  .woodblock-layer { transition: none; }
}

/* grid mechanic (mondrian) — 3 draggable black lines snapping to the real grid */
/* No z-index on the stage itself (same reasoning as .fresco-stage below):
   the "h1" line's rest position overlaps the "artist" hotspot and "h2"'s
   overlaps "yellow", so .grid-line needs its own z-index, below .hotspots
   (z-index: 3), rather than inheriting the stage's stacking context. */
.grid-stage { position: absolute; inset: 0; pointer-events: none; }
.grid-line { position: absolute; padding: 0; border: 0; background: #141310; cursor: grab; touch-action: none; pointer-events: auto; z-index: 2; }
.grid-line--x { width: 6px; transform: translateX(-3px); }
.grid-line--y { height: 6px; transform: translateY(-3px); }
/* the 6px visual line is a near-guaranteed miss on touch — extend the
   hit area to a comfortable 30px band (WCAG 2.5.8 target: 24px) without
   widening what's actually drawn. */
.grid-line::after { content: ''; position: absolute; inset: -12px; }
.grid-line:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
.grid-line--locked { cursor: default; box-shadow: 0 0 10px rgba(201,162,39,.6); }
.grid-cell { position: absolute; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.grid-cell--red { background: #c0392b; }
.grid-cell--blue { background: #2a5ca8; }
.grid-cell--yellow { background: #f5c918; }
.grid-stage.grid-solved .grid-cell { opacity: .88; }

/* machine mechanic (klee) — crank button + bobbing bird windows + WebAudio chirps */
.machine-stage { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.machine-bird-window { position: absolute; overflow: hidden; pointer-events: none; }
.machine-bird-img { position: absolute; max-width: none; }
.machine-crank { position: absolute; width: 46px; height: 46px; border-radius: 50%; padding: 0;
  background: radial-gradient(circle, rgba(233,226,208,.22) 0%, rgba(10,9,8,.9) 70%);
  border: 2px solid rgba(233,226,208,.55); cursor: pointer; transform: translate(-50%,-50%); touch-action: none;
  pointer-events: auto; }
.machine-crank::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: var(--gilt); }
.machine-crank--turning { border-color: var(--gilt); animation: machine-spin .4s linear infinite; }
.machine-crank--done { border-color: var(--gilt); box-shadow: 0 0 18px rgba(201,162,39,.6); animation: none; }
@keyframes machine-spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.machine-crank:focus-visible { outline: 2px solid var(--gilt); outline-offset: 4px; }

/* ink mechanic (xu) — velocity-driven ink strokes, canvas-drawn */
.room__world[data-mechanic="ink"] .fx-canvas { touch-action: none; }

/* fresco mechanic (orozco) — erasable wet-plaster patch + dry countdown ring */
/* No z-index here (unlike the other mechanic stages): the wet-plaster patch
   geometrically overlaps the "prometheus" hotspot (both sit over Prometheus's
   chest), so .fresco-canvas needs its own z-index — placed below .hotspots
   (z-index: 3) but above the painting — instead of inheriting a stacking
   context from this stage that would put it above the hotspot layer no
   matter what z-index the canvas itself declared. */
.fresco-stage { position: absolute; inset: 0; pointer-events: none; }
.fresco-canvas { position: absolute; cursor: crosshair; touch-action: none; pointer-events: auto; z-index: 2; }
.fresco-canvas:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
.fresco-canvas.fresco-dried { cursor: default; filter: brightness(.7); }
.fresco-canvas.fresco-complete { cursor: default; }
.fresco-ring { position: absolute; top: 3vh; right: 32px; width: 46px; height: 46px; z-index: 4; pointer-events: none; }
.fresco-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fresco-ring__track { fill: none; stroke: rgba(233,226,208,.2); stroke-width: 3; }
.fresco-ring__fill { fill: none; stroke: var(--wedge); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }

/* twoworlds mechanic (shergil) — clip-path split between cool/warm layers */
.twoworlds-stage { position: absolute; inset: 0; z-index: 1; }
.twoworlds-layer { position: absolute; object-fit: contain; pointer-events: none; }
.twoworlds-layer--cool { filter: grayscale(.5) saturate(.55) hue-rotate(170deg) brightness(.92) contrast(1.05); }
.twoworlds-layer--warm { filter: saturate(1.65) sepia(.16) hue-rotate(-8deg) brightness(1.08) contrast(1.08); }
.twoworlds-handle-line { position: absolute; pointer-events: none; }
.twoworlds-handle-line::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--handle-pct, 50%);
  width: 2px; background: var(--gilt); box-shadow: 0 0 10px rgba(201,162,39,.7); transform: translateX(-1px); }
.twoworlds-slider { position: absolute; height: 28px; accent-color: var(--gilt); cursor: pointer; }
.twoworlds-slider:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }

@media (max-width: 720px) {
  .fresco-ring { top: 2vh; right: 16px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .machine-crank--turning { animation: none; }
  .grid-cell { transition: none; }
}
