/* Vitrine: a small museum after hours. Each look is its parts: a wall, a light, a metal and a label
   (.wall-*, .light-*, .metal-*, .label-* on a .room), and a font per role (--f-title, --f-text, --f-small,
   set by app.js from the shared book's font library). Themes are sets of these parts (looks.py). */

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #140d08; color: #efe3c8; }
body { font: 16px/1.5 "EB Garamond", Georgia, serif; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.linkish { background: none; border: 0; color: inherit; text-decoration: underline; padding: 0; }

/* ------------------------------------------------------------ the bar */
#bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 8px 22px;
  background: linear-gradient(#1f140c, #140d08); border-bottom: 1px solid #5a4325; font: 15px "Lato", sans-serif; }
#bar .brand { font: 22px "Playfair Display", Georgia, serif; text-decoration: none; letter-spacing: .06em;
  background: linear-gradient(135deg, #a37b2c, #f5dc8f 45%, #b48a3a 60%, #f1d27d); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
#bar nav { display: flex; gap: 18px; flex: 1; }
#bar nav a { text-decoration: none; color: #cdbb98; padding: 4px 2px; border-bottom: 2px solid transparent; }
#bar nav a.on { color: #f5e6c4; border-bottom-color: #c9a24a; }
#bar .who { color: #a8977c; font-size: 14px; }

/* ------------------------------------------------------------ a room: wall, light, metal, label */
.room { position: relative; min-height: calc(100vh - 47px); padding: 28px 4vw 60px; overflow: hidden;
  background: var(--wall-bg); color: var(--wall-ink); font-family: var(--f-text); isolation: isolate; }
.room::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--light); }
.room h1, .room h2, .room .title { font-family: var(--f-title); font-weight: 400; }
.room .small, .room small, .room .meta { font-family: var(--f-small); }

/* walls */
.wall-walnut { --wall-ink: #efe3c8; --wall-soft: #bca988; --shelf: #2a180c;
  --wall-bg: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.45)),
    repeating-linear-gradient(90deg, #3d2516 0 3px, #34200f 3px 9px, #44291a 9px 11px, #2f1c0f 11px 17px); }
.wall-oak { --wall-ink: #fbf0d8; --wall-soft: #e7d2a8; --shelf: #5a3a18;
  --wall-bg: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.32)),
    repeating-linear-gradient(90deg, #8a5a2b 0 4px, #7c4f24 4px 11px, #94632f 11px 13px, #81532a 13px 22px),
    #845528; }
.wall-marble { --wall-ink: #2b2925; --wall-soft: #5d5850; --shelf: #b8b2a6;
  --wall-bg: linear-gradient(115deg, transparent 40%, rgba(120,110,100,.18) 41%, transparent 43%),
    linear-gradient(35deg, transparent 60%, rgba(120,110,100,.14) 61%, transparent 62.5%),
    linear-gradient(160deg, transparent 20%, rgba(140,130,115,.12) 21%, transparent 22%),
    linear-gradient(#efece6, #e2ded6); }
.wall-plaster { --wall-ink: #222; --wall-soft: #666; --shelf: #e5e3de;
  --wall-bg: linear-gradient(#f7f6f2, #efede8); }
.wall-panel { --wall-ink: #1d2621; --wall-soft: #3d4a43; --shelf: #6f7d74;
  --wall-bg: repeating-linear-gradient(90deg, transparent 0 238px, rgba(0,0,0,.18) 238px 240px, rgba(255,255,255,.2) 240px 241px),
    linear-gradient(#a3b0a6, #929f96); }
.wall-carpet { --wall-ink: #ece7ff; --wall-soft: #b5aed6; --shelf: #0c0a12;
  --wall-bg: radial-gradient(circle at 25% 25%, rgba(255,255,255,.04) 1px, transparent 1.5px) 0 0 / 6px 6px,
    radial-gradient(circle at 75% 60%, rgba(140,90,255,.06) 1px, transparent 1.5px) 0 0 / 9px 9px,
    linear-gradient(#1d1729, #120e1a); }

/* light */
.light-warm { --light: radial-gradient(ellipse 60% 55% at 50% -8%, rgba(255,196,110,.38), transparent 70%),
  radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.45), transparent 60%); }
.light-daylight { --light: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0) 45%),
  radial-gradient(ellipse 80% 40% at 50% 0, rgba(255,250,235,.5), transparent 70%); }
.light-cool { --light: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(225,238,255,.6), transparent 70%); }
.light-neon { --light: linear-gradient(90deg, rgba(255,0,170,.22), transparent 12%, transparent 88%, rgba(0,230,255,.22)),
  linear-gradient(rgba(0,230,255,.16), transparent 18%); }
.light-fluorescent { --light: repeating-linear-gradient(90deg, rgba(235,255,245,.0) 0 18%, rgba(235,255,245,.22) 18% 32%),
  linear-gradient(rgba(235,255,245,.32), transparent 30%); }
.light-lamp { --light: radial-gradient(ellipse 40% 35% at 15% 105%, rgba(255,214,130,.35), transparent 70%),
  radial-gradient(ellipse 40% 35% at 85% 105%, rgba(255,214,130,.35), transparent 70%),
  radial-gradient(ellipse at 50% 0, rgba(0,0,0,.25), transparent 60%); }

/* metal */
.metal-brass { --metal: linear-gradient(135deg, #6e5018, #e8c872 40%, #a37b2c 55%, #f5dc8f 72%, #7a5a1e); --metal-ink: #2b1d07; }
.metal-bronze { --metal: linear-gradient(135deg, #4a2d14, #c08a50 42%, #7a4f28 58%, #d9a46a 74%, #563418); --metal-ink: #1f1206; }
.metal-chrome { --metal: linear-gradient(135deg, #6c7178, #f4f6f8 38%, #8a8f96 52%, #e3e6ea 70%, #5d6268); --metal-ink: #15181b; }
.metal-aluminium { --metal: linear-gradient(135deg, #9a9ea3, #dfe2e5 45%, #b8bcc1 60%, #d3d6d9); --metal-ink: #22262a; }
.metal-none { --metal: linear-gradient(var(--wall-soft), var(--wall-soft)); --metal-ink: var(--wall-ink); }

/* labels */
.label, .placard, .wallcard, .exhibit-card { background: var(--label-bg); color: var(--label-ink); border: var(--label-border);
  box-shadow: var(--label-shadow); text-shadow: var(--label-text-shadow, none); border-radius: var(--label-radius, 2px); }
.label-cream { --label-bg: #f3ead3; --label-ink: #2e2418; --label-border: 1px solid #cbb98f;
  --label-shadow: 0 6px 18px rgba(0,0,0,.45); }
.label-brassplate { --label-bg: linear-gradient(135deg, #8a6a28, #e8c872 40%, #b48a3a 60%, #f0d488); --label-ink: #2b1d07;
  --label-border: 1px solid #5e4412; --label-shadow: 0 4px 12px rgba(0,0,0,.5); --label-text-shadow: 0 1px 0 rgba(255,240,200,.55); --label-radius: 4px; }
.label-stone { --label-bg: linear-gradient(160deg, #dcd8cf, #c9c4ba); --label-ink: #3a3631; --label-border: 1px solid #a9a397;
  --label-shadow: 0 3px 10px rgba(0,0,0,.25); --label-text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.label-white { --label-bg: #fff; --label-ink: #222; --label-border: 0; --label-shadow: 0 2px 8px rgba(0,0,0,.12); --label-radius: 0; }
.label-enamel { --label-bg: #111; --label-ink: #f4f4f4; --label-border: 2px solid #3a3a3a; --label-shadow: 0 4px 14px rgba(0,0,0,.6); --label-radius: 4px; }
.label-typewritten { --label-bg: linear-gradient(#f6f1e1 0 5px, #d9534f 5px 6px, #f6f1e1 6px) ; --label-ink: #262626;
  --label-border: 1px solid #d8d0b8; --label-shadow: 0 4px 12px rgba(0,0,0,.3); --label-radius: 0; }
.label-letterpress { --label-bg: #efe6d2; --label-ink: #3b2a1a; --label-border: 1px solid #cdbf9f;
  --label-shadow: 0 5px 14px rgba(0,0,0,.35); --label-text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(0,0,0,.12); }

/* ------------------------------------------------------------ toolbars */
.tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 22px; font-family: var(--f-small); }
.tools h1 { margin: 0 auto 0 0; font-size: 34px; letter-spacing: .03em; }
.tools label { display: flex; gap: 6px; align-items: center; color: var(--wall-soft); font-size: 14px; }
.tools select, .tools button, .btn { background: rgba(0,0,0,.35); color: #f2e6cb; border: 1px solid rgba(201,162,74,.6);
  border-radius: 4px; padding: 5px 10px; font: 14px var(--f-small, "Lato"), sans-serif; }
.btn.primary { background: linear-gradient(#b48a3a, #8a6420); color: #1e1406; border-color: #e8c872; }
.btn.danger { border-color: #a0503c; color: #f3b9a7; }
.btn:disabled { opacity: .5; cursor: default; }

/* ------------------------------------------------------------ gallery: a glass-fronted cabinet */
.cabinet { position: relative; padding: 26px 26px 8px; border-radius: 6px;
  border: 14px solid transparent; border-image: var(--metal) 1;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.2)); box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 60px rgba(0,0,0,.45); }
.cabinet::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.02) 22%, transparent 35%, transparent 62%,
    rgba(255,255,255,.07) 70%, transparent 78%); }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 46px 24px; }
.tile { position: relative; display: block; text-decoration: none; color: inherit; transition: filter .25s, transform .25s;
  filter: brightness(.82); }
.tile::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: -18px; height: 10px; border-radius: 1px;
  background: linear-gradient(var(--shelf, #2a180c), rgba(0,0,0,.6)); box-shadow: 0 8px 14px rgba(0,0,0,.55),
  inset 0 1px 0 rgba(255,255,255,.18); }
.tile:hover, .tile:focus-visible { filter: brightness(1.08); transform: translateY(-3px); outline: none; }
/* 16:10, the way screenshots are taken. The image is shown whole (never cropped or stretched);
   whatever it doesn't fill is the tile's own backing: the room's shelf lining, shadowed in. */
.tile .art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.6)), var(--shelf, #2a180c);
  box-shadow: 0 14px 22px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 18px rgba(0,0,0,.55); }
.tile .art img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.tile .art img.pixel { image-rendering: pixelated; }
.tile .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 40%); }
.tile .plain { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 18px;
  text-align: center; overflow-wrap: anywhere; font-size: 24px; line-height: 1.15; background: var(--wall-bg); color: var(--wall-ink); font-family: var(--f-title); }
.tile .label { margin-top: 8px; padding: 6px 9px; font-family: var(--f-small); font-size: 13px; line-height: 1.3; }
.tile .label b { display: block; font: 16px var(--f-title); }
.tag { display: inline-block; font: 11px "Lato", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px;
  border-radius: 3px; background: rgba(0,0,0,.6); color: #f2e6cb; vertical-align: middle; }
.tile .tag { position: absolute; top: 8px; left: 8px; z-index: 2; }
.tile .tag.me { left: auto; right: 8px; background: #6a2b1d; }
.empty { padding: 60px 20px; text-align: center; color: var(--wall-soft); font-style: italic; }

/* ------------------------------------------------------------ timeline: a brass rail down the wall */
.timeline { position: relative; max-width: 1080px; margin: 0 auto; padding: 20px 0 40px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px; border-radius: 5px;
  background: var(--metal); box-shadow: 0 0 14px rgba(0,0,0,.6); }
.tl-year { position: relative; z-index: 1; width: max-content; margin: 26px auto 14px; padding: 2px 14px; border-radius: 3px;
  background: var(--metal); color: var(--metal-ink); font: 15px var(--f-small); letter-spacing: .12em;
  box-shadow: 0 3px 8px rgba(0,0,0,.5); text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.tl-item { position: relative; width: 50%; padding: 6px 0; }
.tl-item.left { padding-right: 56px; margin-right: 50%; }
.tl-item.right { padding-left: 56px; margin-left: 50%; }
.tl-item::before { content: ""; position: absolute; top: 46px; height: 4px; width: 56px; background: var(--metal);
  box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.tl-item.left::before { right: 0; } .tl-item.right::before { left: 0; }
.tl-item::after { content: ""; position: absolute; top: 40px; width: 16px; height: 16px; border-radius: 50%; background: var(--metal);
  box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.tl-item.left::after { right: -8px; } .tl-item.right::after { left: -8px; }
.exhibit-card { display: flex; gap: 14px; padding: 10px; text-decoration: none; border-width: 0;
  outline: 8px solid #1a120b; outline-offset: 0; box-shadow: 0 0 0 10px #3a2a1a, 0 14px 30px rgba(0,0,0,.6); margin: 10px; }
.exhibit-card img, .exhibit-card .noimg { width: 120px; height: 90px; object-fit: cover; flex: none; background: #111; }
.exhibit-card img.pixel { image-rendering: pixelated; object-fit: contain; }
.exhibit-card .noimg { display: flex; align-items: center; justify-content: center; font: 14px var(--f-title); color: #ddd; text-align: center; padding: 6px; }
.exhibit-card b { display: block; font: 20px/1.15 var(--f-title); }
.exhibit-card .meta { font-size: 13px; opacity: .8; }
.exhibit-card p { margin: 4px 0 0; font-size: 14px; line-height: 1.35; }

/* ------------------------------------------------------------ project page */
.project-head { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.placard { padding: 18px 20px; }
.placard h1 { margin: 0 0 2px; font-size: 32px; line-height: 1.1; }
.placard .meta { font-size: 14px; opacity: .85; margin-bottom: 10px; }
.placard .text { font-size: 15.5px; line-height: 1.5; max-height: 420px; overflow: auto; }
.placard .text p { margin: 0 0 .7em; }
.placard .text h2, .placard .text h3 { font: 18px var(--f-title); margin: 1em 0 .3em; }
.placard .text code { font-size: .9em; background: rgba(0,0,0,.08); padding: 0 3px; }
.section { margin-top: 44px; }
.section > h2 { font-size: 24px; margin: 0 0 14px; letter-spacing: .03em; }

/* the exhibit case */
.case { position: relative; padding: 18px; background: linear-gradient(#0c0907, #000); border: 12px solid transparent;
  border-image: var(--metal) 1; box-shadow: 0 30px 50px rgba(0,0,0,.6); }
.case::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.12), transparent 30%, transparent 70%, rgba(255,255,255,.05)); }
.case img, .case video { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.case .none { padding: 80px 20px; text-align: center; font: 22px var(--f-title); color: #cbb; }

/* downloads: a "take one" card holder */
.takeone { position: relative; margin-top: 22px; padding: 30px 18px 16px; border-radius: 4px; background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12); }
.takeone::before { content: "Take one"; position: absolute; top: -12px; left: 16px; padding: 1px 12px; border-radius: 3px;
  background: var(--metal); color: var(--metal-ink); font: 13px var(--f-small); letter-spacing: .1em; text-transform: uppercase; }
.takeone a { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 8px 12px; text-decoration: none;
  font-family: var(--f-small); font-size: 14px; transform: rotate(-.4deg); }
.takeone a:nth-child(2n) { transform: rotate(.5deg); }
.takeone a:hover { transform: translateY(-2px); }
.takeone .size { opacity: .7; white-space: nowrap; }

/* release history: frames along a picture rail */
.rail { position: relative; padding-top: 18px; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--metal); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.rail-strip { position: relative; display: flex; gap: 22px; overflow-x: auto; padding: 18px 6px 14px; scroll-behavior: smooth; }
.frame { flex: none; position: relative; width: 170px; text-align: center; background: none; border: 0; color: inherit; padding: 0; }
.frame::before { content: ""; position: absolute; top: -18px; left: 50%; height: 18px; width: 1px; background: var(--wall-soft); }
.frame .pic { aspect-ratio: 16 / 10; border: 7px solid #2a1b10; outline: 2px solid var(--wall-soft); background: #000;
  box-shadow: 0 10px 18px rgba(0,0,0,.5); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.frame .pic img { width: 100%; height: 100%; object-fit: cover; }
.frame .pic span { font: 13px var(--f-small); color: #bbb; padding: 4px; }
.frame .v { display: inline-block; margin-top: 8px; font: 13px var(--f-small); }
.frame.on .pic { outline: 3px solid #e8c872; }
.scrub { width: 100%; accent-color: #c9a24a; }
.release-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.release-open .placard { max-height: 460px; overflow: auto; }

/* media */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.media-grid figure { margin: 0; }
.media-grid img, .media-grid video { width: 100%; display: block; background: #000; box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.media-grid figcaption { margin-top: 6px; font: 13px var(--f-small); }
audio { width: 100%; }

/* gallery wall: framed paintings and wall cards */
.paintings { display: flex; flex-wrap: wrap; gap: 60px 50px; align-items: flex-end; justify-content: center; padding: 30px 0; }
.painting { display: flex; gap: 22px; align-items: flex-end; }
.painting .frame-gilt { padding: 16px; background: var(--metal); box-shadow: 0 22px 40px rgba(0,0,0,.45), inset 0 0 0 3px rgba(0,0,0,.25); }
.painting .frame-gilt .mat { padding: 26px; background: #fbfaf6; box-shadow: inset 0 0 8px rgba(0,0,0,.25); }
.painting img { display: block; max-height: 52vh; max-width: 42vw; }
.wallcard { width: 170px; padding: 10px 12px; font: 13px/1.35 var(--f-small); }
.wallcard b { display: block; font: 15px var(--f-title); }

/* game box on a shelf */
.box-shelf { display: flex; justify-content: center; padding: 40px 0 34px; perspective: 1100px; position: relative; }
.box-shelf::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 14px; height: 20px;
  background: linear-gradient(var(--shelf), rgba(0,0,0,.7)); box-shadow: 0 12px 20px rgba(0,0,0,.6); }
.gamebox { position: relative; width: 260px; height: 350px; transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(4deg);
  transition: transform .6s; z-index: 1; }
.gamebox:hover { transform: rotateY(-8deg) rotateX(2deg); }
.gamebox .front, .gamebox .side { position: absolute; top: 0; height: 100%; backface-visibility: hidden; }
.gamebox .front { width: 100%; overflow: hidden; background: #111; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.gamebox .front img { width: 100%; height: 100%; object-fit: cover; }
.gamebox .front .boxname { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 12px 12px; color: #fff;
  font: 30px/1.05 var(--f-title); background: linear-gradient(transparent, rgba(0,0,0,.85)); text-shadow: 0 2px 6px #000; }
.gamebox .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,.28), transparent 35%); }
.gamebox .side { width: 46px; left: 0; transform-origin: left; transform: rotateY(90deg) translateX(-46px); background: #1a1a1a;
  color: #eee; writing-mode: vertical-rl; font: 15px var(--f-title); display: flex; align-items: center; justify-content: center; }

/* CRT: pixel art scaled by whole numbers, never smoothed */
.crts { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }
.crt { padding: 26px 30px 46px; border-radius: 22px; background: linear-gradient(#d8d2c2, #b9b2a0); box-shadow: 0 24px 40px rgba(0,0,0,.6),
  inset 0 -6px 0 rgba(0,0,0,.15); position: relative; }
.crt::after { content: ""; position: absolute; right: 34px; bottom: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: #4cff7a; box-shadow: 0 0 8px #4cff7a; }
.crt-screen { position: relative; width: 384px; height: 288px; display: flex; align-items: center; justify-content: center;
  background: #050806; border-radius: 18px / 14px; overflow: hidden; box-shadow: inset 0 0 40px rgba(0,0,0,.9); }
.crt-screen img { image-rendering: pixelated; image-rendering: crisp-edges; -ms-interpolation-mode: nearest-neighbor; display: block; }
.crt-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.18) 2px 3px), radial-gradient(ellipse, transparent 60%, rgba(0,0,0,.5)); }
.crt figcaption { position: absolute; left: 30px; bottom: 14px; font: 12px var(--f-small); color: #4a4436; }

/* 3D plinth */
.plinth-wrap { display: flex; flex-direction: column; align-items: center; }
.plinth-wrap canvas { width: min(640px, 90vw); height: 420px; display: block; cursor: grab; }
.plinth { width: min(380px, 70vw); height: 150px; margin-top: -30px; background: linear-gradient(90deg, #d9d6cf, #f5f3ee 40%, #c9c5bc);
  box-shadow: 0 30px 40px rgba(0,0,0,.45); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
.plinth-note { font: 13px var(--f-small); color: var(--wall-soft); margin-top: 10px; }

/* screening room */
.screening { display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; }
.screen { width: min(960px, 92%); padding: 10px; background: #0a0a0a; box-shadow: 0 0 80px rgba(255,255,255,.08), 0 30px 50px rgba(0,0,0,.6);
  border: 6px solid #1c1c1c; }
.screen video { width: 100%; display: block; background: #000; }
.seats { display: flex; gap: 14px; margin-top: 36px; }
.seat { width: 74px; height: 56px; border-radius: 16px 16px 6px 6px; background: linear-gradient(#7a1d22, #4a0f13);
  box-shadow: inset 0 6px 0 rgba(255,255,255,.08), 0 10px 14px rgba(0,0,0,.6); }
.reel { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }

/* listening station */
.listening { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; }
.records { display: flex; flex-wrap: wrap; gap: 18px; padding: 24px 18px 30px; position: relative; }
.records::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 14px; background: linear-gradient(var(--shelf), rgba(0,0,0,.7)); }
.sleeve { position: relative; z-index: 1; width: 150px; height: 150px; border: 0; padding: 0; background: #222; color: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,.55); overflow: hidden; transition: transform .2s; }
.sleeve:hover, .sleeve.on { transform: translateY(-8px); }
.sleeve img { width: 100%; height: 100%; object-fit: cover; }
.sleeve .made { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px; text-align: left; font: 18px/1.1 var(--f-title); }
.sleeve .made.c0 { background: linear-gradient(135deg, #b5452c, #e7a33a); } .sleeve .made.c1 { background: linear-gradient(135deg, #2c5fb5, #3ae7c8); }
.sleeve .made.c2 { background: linear-gradient(135deg, #5a2cb5, #e73a8f); } .sleeve .made.c3 { background: linear-gradient(135deg, #2c8a45, #d6e73a); }
.sleeve .track { position: absolute; left: 6px; top: 6px; font: 11px var(--f-small); background: rgba(0,0,0,.55); padding: 1px 6px; }
.turntable { position: relative; width: 360px; height: 300px; border-radius: 10px; background: linear-gradient(135deg, #3b2a1d, #23170f);
  box-shadow: 0 24px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.platter { position: absolute; left: 24px; top: 24px; width: 252px; height: 252px; border-radius: 50%; background: #111;
  box-shadow: 0 0 0 6px #555, 0 6px 14px rgba(0,0,0,.6); }
.platter .vinyl { position: absolute; inset: 8px; border-radius: 50%; background: repeating-radial-gradient(#0d0d0d 0 2px, #1d1d1d 2px 3px);
  display: flex; align-items: center; justify-content: center; }
.platter .vinyl .centre { width: 34%; height: 34%; border-radius: 50%; background: #c33 center / cover; box-shadow: 0 0 0 2px #000; }
.platter.spin .vinyl { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tonearm { position: absolute; right: 30px; top: 30px; width: 10px; height: 190px; background: var(--metal, linear-gradient(#ccc, #888));
  transform-origin: top center; transform: rotate(4deg); transition: transform .8s; border-radius: 5px; }
.platter.spin ~ .tonearm { transform: rotate(24deg); }
.deck { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.deck .now { text-align: center; font: 14px var(--f-small); margin-top: 6px; }
.deck audio { width: 100%; max-width: 360px; }

/* ------------------------------------------------------------ forms (login, invites) */
.entrance { min-height: calc(100vh - 47px); display: flex; align-items: center; justify-content: center; padding: 30px; }
.entrance form { width: min(400px, 100%); padding: 30px 30px 24px; display: flex; flex-direction: column; gap: 12px; }
.entrance h1 { margin: 0 0 4px; font: 30px "Playfair Display", Georgia, serif; text-align: center; }
.entrance p { margin: 0; font-size: 15px; text-align: center; }
.entrance input, .admin input[type=text] { padding: 9px 10px; border: 1px solid #b9a77f; border-radius: 3px; font: 16px "Lato", sans-serif;
  background: #fffdf6; color: #222; }
.err { color: #9b2b1a; min-height: 1.2em; font: 14px "Lato", sans-serif; text-align: center; }

/* ------------------------------------------------------------ admin */
.admin .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.admin .tabs button { background: rgba(0,0,0,.3); color: #e9dcbd; border: 1px solid rgba(201,162,74,.5); border-radius: 4px 4px 0 0;
  padding: 7px 14px; font: 15px "Lato", sans-serif; }
.admin .tabs button.on { background: linear-gradient(#b48a3a, #8a6420); color: #1e1406; }
.admin .panel { background: rgba(10,6,3,.55); border: 1px solid rgba(201,162,74,.3); border-radius: 4px; padding: 18px;
  font: 14px "Lato", sans-serif; color: #eadfca; }
.admin table { width: 100%; border-collapse: collapse; }
.admin th, .admin td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
.admin th { color: #c9b48a; font-weight: 400; cursor: pointer; user-select: none; white-space: nowrap; }
.admin select { background: #1d1610; color: #eadfca; border: 1px solid #5a4a35; border-radius: 3px; padding: 3px 5px; }
.admin .new { background: #2f6b3a; }
.admin .note { color: #a8977c; }
.admin .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.admin .link { font: 13px "IBM Plex Mono", monospace; background: #1d1610; padding: 4px 8px; border-radius: 3px; word-break: break-all; }
.saved { color: #9fd59a; font: 14px "Lato", sans-serif; margin-left: 8px; }
.progress { color: #e8c872; }

/* ------------------------------------------------------------ the look panel */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lookpanel { width: min(980px, 100%); max-height: 92vh; overflow: auto; background: #241a12; color: #eadfca; border: 1px solid #6a5434;
  border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.7); font: 14px "Lato", sans-serif; }
.lookpanel header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #4a3c2c; }
.lookpanel header h2 { margin: 0; flex: 1; font: 20px Georgia, serif; }
.lookpanel .body { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; padding: 16px; }
.lookpanel .tabs2 { display: flex; gap: 4px; margin-bottom: 10px; }
.lookpanel .tabs2 button { flex: 1; background: #1d1610; color: #eadfca; border: 1px solid #5a4a35; padding: 6px; }
.lookpanel .tabs2 button.on { background: #6a5434; }
.theme-list { display: flex; flex-direction: column; gap: 6px; }
.theme-list button { display: flex; align-items: center; gap: 10px; text-align: left; background: #1d1610; color: #eadfca;
  border: 1px solid #5a4a35; border-radius: 4px; padding: 6px 8px; }
.theme-list button.on { border-color: #e8c872; box-shadow: 0 0 0 1px #e8c872; }
.swatch { width: 44px; height: 30px; flex: none; border-radius: 3px; position: relative; overflow: hidden; background: var(--wall-bg); }
.swatch::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 8px; background: var(--label-bg); border: var(--label-border); }
.swatch::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 3px; background: var(--metal); }
.custom-grid { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; align-items: center; }
.custom-grid select { width: 100%; background: #1d1610; color: #eadfca; border: 1px solid #5a4a35; padding: 4px; }
.preview { min-height: 360px; border-radius: 4px; overflow: hidden; }
.preview .room { min-height: 360px; padding: 20px; }
.lookpanel footer { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid #4a3c2c; }
.lookpanel footer .grow { flex: 1; }

/* ------------------------------------------------------------ the museum (static/museum.js) */
.museum-host { position: fixed; inset: 0; z-index: 40; background: #000; }
.museum { position: absolute; inset: 0; font: 15px "Lato", sans-serif; color: #f2e6cb; user-select: none; }
.museum-canvas { width: 100%; height: 100%; display: block; }
.museum-cross { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: rgba(255,255,255,.75); box-shadow: 0 0 3px #000; pointer-events: none; }
.museum-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(ellipse at 50% 30%, #3a2617, #0b0806 70%); }
.museum-loading .title { font: 30px "Playfair Display", Georgia, serif; color: #f1d27d; }
.museum-loading .bar { width: min(360px, 70vw); height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.museum-loading .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a37b2c, #f5dc8f); transition: width .2s; }
.museum-placard { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: 520px; padding: 12px 18px;
  background: #f3ead3; color: #2e2418; border: 1px solid #cbb98f; border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  font: 15px/1.4 "EB Garamond", Georgia, serif; pointer-events: none; }
.museum-placard b { display: block; font: 21px "Playfair Display", Georgia, serif; }
.museum-placard .meta { font: 13px "Lato", sans-serif; opacity: .8; }
.museum-placard .hint { margin-top: 6px; font: 12px "Lato", sans-serif; letter-spacing: .04em; color: #6b5330; }
.museum-pause { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); cursor: pointer; }
.museum-pause .box { max-width: 460px; padding: 22px 26px; background: rgba(20,13,8,.92); border: 1px solid #6a5434; border-radius: 6px; text-align: center; }
.museum-pause h2 { margin: 0 0 8px; font: 26px "Playfair Display", Georgia, serif; color: #f1d27d; }
.museum-pause p { margin: 6px 0; color: #e6d8b8; }
.museum-map { position: absolute; inset: 6vh 10vw; padding: 14px; background: rgba(20,13,8,.94); border: 1px solid #6a5434; border-radius: 6px;
  display: flex; flex-direction: column; }
.museum-map .head { margin-bottom: 8px; color: #cdbb98; }
.museum-map svg { flex: 1; width: 100%; min-height: 0; }
.museum-map rect.room { fill: rgba(201,162,74,.18); stroke: #c9a24a; stroke-width: .15; cursor: pointer; }
.museum-map rect.room:hover { fill: rgba(201,162,74,.38); }
.museum-map rect.room.dim { fill: rgba(255,255,255,.05); }
.museum-map text { fill: #f2e6cb; font: 1.1px "Lato", sans-serif; text-anchor: middle; dominant-baseline: middle; cursor: pointer; }
.museum-map circle.me { fill: #ff5a4a; stroke: #fff; stroke-width: .15; }
.museum-leave { position: absolute; top: 14px; right: 16px; background: rgba(0,0,0,.55); color: #f2e6cb; border: 1px solid rgba(201,162,74,.7);
  border-radius: 4px; padding: 6px 14px; }
.museum-gifs { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: .01; pointer-events: none; }

/* ------------------------------------------------------------ phones: a simple flat version */
@media (max-width: 760px) {
  #bar { gap: 12px; padding: 8px 12px; flex-wrap: wrap; }
  #bar .who { display: none; }
  .room { padding: 16px 12px 40px; }
  .tools h1 { font-size: 26px; width: 100%; }
  .cabinet { border-width: 6px; padding: 14px; }
  .shelf-grid { grid-template-columns: 1fr; gap: 34px; }
  .timeline::before { left: 10px; }
  .tl-year { margin-left: 0; }
  .tl-item, .tl-item.left, .tl-item.right { width: auto; margin: 0; padding: 6px 0 6px 34px; }
  .tl-item::before, .tl-item.left::before { left: 10px; right: auto; width: 24px; }
  .tl-item::after, .tl-item.left::after { left: 3px; right: auto; }
  .exhibit-card img, .exhibit-card .noimg { width: 84px; height: 64px; }
  .project-head, .release-open, .listening { grid-template-columns: 1fr; }
  .case { border-width: 4px; padding: 6px; }
  .painting { flex-direction: column; align-items: stretch; }
  .painting img { max-width: 100%; max-height: none; width: 100%; }
  .painting .frame-gilt { padding: 6px; } .painting .frame-gilt .mat { padding: 8px; }
  .wallcard { width: auto; }
  .gamebox { transform: none; width: 220px; height: 296px; } .gamebox .side { display: none; }
  .crt { padding: 10px; border-radius: 10px; } .crt::after, .crt figcaption { display: none; }
  .crt-screen { width: 288px; height: 216px; }
  .plinth { display: none; } .plinth-wrap canvas { height: 300px; }
  .seats { display: none; }
  .turntable { width: 100%; max-width: 360px; }
  .lookpanel .body { grid-template-columns: 1fr; }
  .admin table { font-size: 13px; }
}
