/* docs/381 §3 — EVERY SCREEN IS ITS OWN PLACE.

   His words (2026-10-21): "i like most of the screens, but it feels a little like they are no
   different one from another idk." Fourteen screens drew the same band over the same flat ink in
   the same rows. A screen that is a place names its look (`look()` in app.js) and this file gives
   it its own GROUND, LIGHT and MATERIAL, on top of app.css and never instead of it — so
   `LOOKS = false` in app.js puts every one of them back to the plain room.

   ⛔ His rules this file keeps:
   - LIGHT WITHOUT FIRE (docs/372): every light here is sourceless — a pool, a wash, a glint.
     No flame, no spark, no ember.
   - THE GROUND IS "ATRAMENT", AND NO LINES ON IT (docs/303's "i dont like those lines on
     background"): each ground is the same family of ink, lit differently. No ruled patterns.
   - NOTHING HERE IS A NEW SYMBOL (docs/260): his PNGs, borders, gradients and type only.
   - STILL: nothing in this file animates. A place is a picture you stand in; the motion stays
     where his gallery picks put it.
   - Red stays reserved for HP: no look is lit red.
*/

/* ── the shared mechanism: a look relights the panel every screen stands on (.view::before) ── */
.view.look::before {
  background: var(--look-ground, linear-gradient(180deg, #272223 0, #221e1f 34%, #1e1a1b 100%));
  border-top-color: var(--look-rule, rgba(228,224,216,.26));
}
/* ════════════════════════════════════════════════════════════════════ THE VAULT ══
   Chests, and the chest being opened. Stone in the dark, with each chest standing in a pool
   of its OWN rarity's light, as if lit from a shaft above — the colour is the chest's, never
   typed here (`--rc`, set per row from `rcol()`). */
.look-vault {
  --look-metal: #c9a46a;
  --look-rule: rgba(201,164,106,.34);
  --look-ground:
    radial-gradient(80% 26% at 50% 0%, rgba(201,164,106,.13), rgba(201,164,106,0) 100%),
    radial-gradient(120% 60% at 50% 110%, rgba(0,0,0,.55), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #221d1c 0, #1b1717 40%, #141112 100%);
}
.look-vault .chestrow {
  min-height: 76px !important; margin-bottom: 9px; overflow: hidden;
  background:
    radial-gradient(64px 26px at 50px 88%, color-mix(in srgb, var(--rc) 62%, transparent), transparent 74%),
    radial-gradient(110px 80px at 50px 46%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 72%),
    linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 104px, rgba(0,0,0,.18) 104px, rgba(0,0,0,.18) 100%),
    linear-gradient(180deg, #2b2524 0%, #1d1919 100%);
  box-shadow: inset 0 1px 0 rgba(255,240,210,.07), inset 0 -12px 20px rgba(0,0,0,.38), 0 5px 12px rgba(0,0,0,.4);
}
.look-vault .chestrow.dim { opacity: .62; }
.look-vault .chestrow.dim .art { filter: grayscale(.55) brightness(.7) drop-shadow(0 5px 4px rgba(0,0,0,.6)); }
/* the shaft the light falls through, from the top of the niche onto the chest */
.look-vault .chestrow::before {
  content: ''; position: absolute; left: 8px; top: 0; width: 86px; height: 100%; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 46%, transparent) 0%, transparent 85%);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  opacity: .7;
}
.look-vault .chestrow.dim::before { opacity: .22; }
.look-vault .chestrow .art { position: relative; z-index: 1; width: 78px; height: 60px; object-fit: contain;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.6)); }
.look-vault .chestrow .mid b { font-size: 17px !important; letter-spacing: .2px; }
.look-vault .chestrow.has .mid b { color: #f3ead8; }
/* the chest being opened: the vault plate is stone, and the chest stands in its own light */
.look-vault .vault {
  background:
    radial-gradient(52% 18% at 50% 88%, color-mix(in srgb, var(--rc) 34%, transparent), transparent 75%),
    radial-gradient(70% 60% at 50% 20%, color-mix(in srgb, var(--rc) 10%, transparent), transparent 70%),
    linear-gradient(180deg, #25201f 0%, #181415 100%);
  box-shadow: inset 0 1px 0 rgba(255,240,210,.07), inset 0 -24px 40px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.45);
}
.look-vault .pity { background: linear-gradient(180deg, #231e1e, #1a1617); }

/* ════════════════════════════════════════════════════════════════ THE NOTICE BOARD ══
   Quests. The day's tasks are notes pinned to a dark wooden board — each one a slip of HIS
   parchment (`--paper`, the same sheet the instance contract is drawn on, set from the content's
   `backgrounds.places_paper`), written in ink, struck through in tyrian when it is paid. */
.look-board {
  --look-rule: rgba(176,128,82,.32);
  --look-ground:
    radial-gradient(90% 30% at 50% 0%, rgba(241,210,150,.10), rgba(241,210,150,0) 100%),
    radial-gradient(130% 70% at 50% 115%, rgba(0,0,0,.5), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #2b201a 0, #241a15 45%, #1a1310 100%);
  --pp-ink: #2b1d12; --pp-ink2: rgba(43,29,18,.66); --pp-rule: rgba(43,29,18,.22); --pp-tyrian: #66023c;
}
.look-board .qrow {
  border: none; border-radius: 3px; color: var(--pp-ink); overflow: visible;
  background-color: #cfae86;
  background-image:
    radial-gradient(140% 120% at 50% 40%, rgba(255,247,228,.22) 0%, rgba(255,247,228,0) 55%, rgba(96,56,20,.30) 100%),
    var(--paper, none);
  background-size: 100% 100%, 420px auto; background-position: center, var(--qp, 0 0);
  box-shadow: inset 0 0 0 1px rgba(96,56,20,.25), inset 0 0 16px rgba(96,56,20,.30), 0 6px 12px rgba(0,0,0,.45);
}
.look-board .qrow:nth-child(2n) { rotate: .35deg; --qp: -120px -60px; }
.look-board .qrow:nth-child(2n+1) { rotate: -.3deg; --qp: -40px -180px; }
/* the pin, brass, in the top middle of every note */
.look-board .qrow::before {
  content: ''; position: absolute; left: 50%; top: -3px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2d89a 0, #b88a3e 45%, #6b4a1c 100%);
  box-shadow: 0 2px 2px rgba(0,0,0,.5);
}
.look-board .qrow.lit { box-shadow: inset 0 0 0 2px var(--pp-tyrian), inset 0 0 16px rgba(96,56,20,.30), 0 6px 12px rgba(0,0,0,.45); }
.look-board .qrow .ico { background: #2b1d12; border-color: rgba(0,0,0,.35); }
.look-board .qrow .mid b { color: var(--pp-ink); }
.look-board .qrow .mid small { color: var(--pp-ink2); }
.look-board .qrow .track { background: rgba(43,29,18,.16); }
.look-board .qrow .track > i { background: var(--pp-tyrian); }
.look-board .qrow em::after { background: var(--pp-tyrian); }
.look-board .qpay, .look-board .qbonus { color: #5b3a14; }
/* docs/382: the bottle and relic symbols are white; on his parchment they are inked like the words */
.look-board .qbonus img { filter: brightness(0) sepia(1) saturate(3) hue-rotate(-10deg) brightness(.42); }
/* the count and the CLAIM key are their own dark objects on the paper: they keep their light ink */
.look-board .qstate { color: var(--pp-ink2); }
.look-board .qstate.count { color: rgba(228,224,216,.72); }
.look-board .qclaim { color: var(--ink); }
.look-board .qrow.struck { opacity: .62; }
/* the chest at the foot hangs on the board too: a dark plaque with a brass edge */
.look-board .qchest { background: linear-gradient(180deg, #2a201b, #1d1613); border-color: rgba(176,128,82,.34); }

/* ════════════════════════════════════════════════════════════════════ THE SHRINE ══
   Reward. The day's gift stands on an altar in a column of gold light that has no source —
   warm while it waits, banked to an ember-less glow once it is taken (`.taken`). The rays
   are a still conic wash; nothing turns. */
.look-shrine {
  --look-rule: rgba(208,178,122,.36);
  --look-ground:
    radial-gradient(70% 34% at 50% 36%, rgba(230,177,77,.20), rgba(230,177,77,0) 100%),
    radial-gradient(40% 70% at 50% 0%, rgba(240,210,140,.10), rgba(240,210,140,0) 100%),
    radial-gradient(130% 60% at 50% 115%, rgba(0,0,0,.5), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #262019 0, #1f1a16 45%, #171312 100%);
}
.look-shrine.taken { --look-ground:
    radial-gradient(70% 34% at 50% 36%, rgba(230,177,77,.07), rgba(230,177,77,0) 100%),
    linear-gradient(180deg, #241f1c 0, #1d1918 45%, #161314 100%); }
.look-shrine .spoil.dygift {
  position: relative; overflow: visible; margin-top: 8px; isolation: isolate;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(230,177,77,.26), rgba(230,177,77,0) 75%),
    linear-gradient(180deg, #2e261d, #1f1a15);
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 26px rgba(230,177,77,.22), inset 0 1px 0 rgba(255,236,190,.12);
}
/* the column of light the gift stands in */
.look-shrine .spoil.dygift::before {
  content: ''; position: absolute; left: 50%; top: -64px; width: 300px; height: 300px; margin-left: -150px;
  pointer-events: none; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(240,205,130,.16) 0deg 6deg, rgba(240,205,130,0) 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.look-shrine.taken .spoil.dygift::before { opacity: .3; }
/* the box's own face, laid OVER the rays (a stacking context paints its own background
   before its negative children, so the face has to be a child too) */
.look-shrine .spoil.dygift::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 10px; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(230,177,77,.24), rgba(230,177,77,0) 75%),
    linear-gradient(180deg, #2e261d, #1f1a15);
}
.look-shrine .label { color: #d9be86; }
.look-shrine .drop { background: linear-gradient(180deg, #2a231c, #1d1915); }
.look-shrine .dycard { background: linear-gradient(90deg, rgba(230,177,77,.10), rgba(34,30,31,.9) 60%); }

/* ═══════════════════════════════════════════════════════════════ THE APOTHECARY ══
   Consumables. The six plates stand in two glass-fronted cabinets of dark wood with brass
   edges, one bottle to a shelf; the bag below is the counter. The room's light is cool and
   green-grey, like light through old glass — the one look that is not warm, so the screen of
   bottles is never mistaken for the screen of treasure. */
.look-apothecary {
  --look-rule: rgba(132,178,160,.30);
  --look-ground:
    radial-gradient(80% 30% at 50% 0%, rgba(150,205,185,.12), rgba(150,205,185,0) 100%),
    radial-gradient(60% 40% at 50% 34%, rgba(110,170,150,.07), rgba(110,170,150,0) 100%),
    radial-gradient(130% 60% at 50% 115%, rgba(0,0,0,.5), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #1f2321 0, #1b1e1c 45%, #141615 100%);
}
.look-apothecary .plates { padding: 0 36px; }
/* a cabinet: dark wood, a brass edge, a pane of glass catching the light, a shelf under each plate.
   ⚠️ The shelf hangs off the PLATE (::before), never a repeating pattern on the cabinet: the pitch is
   the grid's gap, which this screen overrides, and a pattern typed to one pitch drifts off the next. */
.look-apothecary .plates > div {
  position: relative; padding: 12px 14px 14px; border-radius: 10px;
  background:
    linear-gradient(118deg, rgba(220,240,232,.07) 0 18%, rgba(220,240,232,0) 18% 34%, rgba(220,240,232,.04) 34% 40%, rgba(220,240,232,0) 40%),
    linear-gradient(180deg, #2a201a, #1d1612);
  border: 1.5px solid #8a6a3a;
  box-shadow: inset 0 0 0 3px #1a120d, inset 0 0 22px rgba(0,0,0,.55), 0 8px 16px rgba(0,0,0,.45);
}
.look-apothecary .plate.empty { background: rgba(20,16,14,.6); }
/* ⚠️ ::before: an empty plate's ::after is its own mark (app.css), and taking it erased the mark */
.look-apothecary .plate::before {
  content: ''; position: absolute; left: -14px; right: -14px; bottom: -9px; height: 6px; pointer-events: none;
  background: linear-gradient(180deg, #6a4f37 0 4px, #241a12 4px 6px);
  box-shadow: 0 3px 4px rgba(0,0,0,.45);
}
/* the counter the bag stands on */
.look-apothecary .bag5 {
  padding: 10px; border-radius: 10px;
  background: linear-gradient(180deg, #2a221c, #1e1814);
  box-shadow: inset 0 1px 0 rgba(255,236,190,.10), inset 0 -8px 14px rgba(0,0,0,.35), 0 6px 12px rgba(0,0,0,.4);
}
.look-apothecary .rule { background: rgba(132,178,160,.22); }
.look-apothecary .label { color: #a9cbbd; }

/* ══════════════════════════════════════════════════════════════════ THE HALL ══
   Achievements. A hall of honours: the light falls in two tall tyrian washes, as if from
   banners hung either side of the room (his wine, never HP red), with gold at the top where
   the honours are. The medals are polished: a gold rim on every one. */
.look-hall {
  --look-rule: rgba(208,178,122,.30);
  --look-ground:
    radial-gradient(70% 22% at 50% 0%, rgba(230,190,110,.12), rgba(230,190,110,0) 100%),
    radial-gradient(22% 60% at 0% 30%, rgba(102,2,60,.30), rgba(102,2,60,0) 100%),
    radial-gradient(22% 60% at 100% 30%, rgba(102,2,60,.30), rgba(102,2,60,0) 100%),
    radial-gradient(130% 60% at 50% 115%, rgba(0,0,0,.5), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #241c20 0, #1e181b 45%, #161214 100%);
}
.look-hall .row { background: linear-gradient(180deg, #2a2226, #1f1a1d); }

/* ══════════════════════════════════════════════════════════════════ THE POST ══
   Mail, and the letter opened. The room is a sepia writing desk; the letter itself is a sheet
   of HIS parchment (`--paper`), written in ink, signed at the foot. */
.look-post {
  --look-rule: rgba(190,150,100,.30);
  --look-ground:
    radial-gradient(80% 28% at 50% 0%, rgba(241,210,150,.09), rgba(241,210,150,0) 100%),
    radial-gradient(130% 60% at 50% 115%, rgba(0,0,0,.5), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #27211c 0, #211c18 45%, #181412 100%);
}
.look-post .row.plain { background: linear-gradient(180deg, #2b2420, #201b18); }
.look-post .letter {
  position: relative; padding: 18px 18px 16px; color: #3a2817; border-radius: 3px;
  background-color: #cfae86;
  background-image:
    radial-gradient(130% 95% at 50% 42%, rgba(255,247,228,.22) 0%, rgba(255,247,228,0) 52%, rgba(96,56,20,.32) 100%),
    var(--paper, none);
  background-size: 100% 100%, cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(96,56,20,.28), inset 0 0 24px rgba(96,56,20,.36), 0 10px 18px rgba(0,0,0,.5);
  rotate: -.4deg;
}
.look-post .letter b { color: #2b1d12; }
.look-post .letter .sign { color: rgba(43,29,18,.66); font-style: italic; }

/* ═════════════════════════════════════════════════════════════════ THE GEAR WALL ══
   The picker (a slot's drawer). It belongs to the gear screen, so it stands in the gear screen's
   room: his band at the top and his red wall behind the list, dimmed far enough to read over.
   His pictures (`gear_band.webp`, `gear_backdrop.webp`), nothing drawn. */
.look-gearwall {
  --look-rule: rgba(208,178,122,.30);
  --look-ground:
    linear-gradient(180deg, rgba(20,14,15,.78) 0, rgba(18,13,14,.86) 40%, rgba(14,11,12,.94) 100%),
    var(--gwall, none) 50% 0 / 412px auto no-repeat,
    #191314;
}
