/* ─────────────────────────────────────────────────────────────
   PLUSH74 WORLD — “the white gallery”
   paper white · ink black · Plush yellow #e9ff75 · Archivo + Fraunces
   Brand rule: PLUSH74 lives on white, never on black.
   ───────────────────────────────────────────────────────────── */
:root {
  --paper: #f6f5f0;
  --surface: rgba(255, 255, 255, .92);
  --ink: #121212;
  --dim: #75787f;
  --hair: #e2e0d6;
  --yellow: #e9ff75;
  --yellow-ink: #c9e23a;
  --coral: #fd4956;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Fraunces", Georgia, serif;
  --grot: "Archivo", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: var(--paper); }
body { font-family: var(--mono); color: var(--ink); -webkit-font-smoothing: antialiased; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#gl.dragging { cursor: grabbing; }
#gl.pointing { cursor: pointer; }

/* atmosphere overlays — paper grain + bright edges */
.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 4; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,3%)} 50%{transform:translate(3%,-2%)} 75%{transform:translate(-3%,-3%)} }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse 92% 84% at 50% 45%, transparent 60%, rgba(246,245,240,.7) 100%); }

.hidden { display: none !important; }
.ui { transition: opacity .6s ease; }

/* entrance cascade: chrome settles in after the descent begins */
#bar, #tourbar, #minimap { opacity: 0; transform: translateY(-8px); }
#tourbar, #minimap { transform: translateY(8px); }
body.entered #bar, body.entered #tourbar, body.entered #minimap {
  opacity: 1; transform: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.25,1); }
body.entered #tourbar { transition-delay: .45s; }
body.entered #minimap { transition-delay: .7s; }

/* ─── Intro ─── */
#intro { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, #ffffff 0%, var(--paper) 70%);
  transition: opacity 1.2s ease, visibility 1.2s; }
#intro.gone { opacity: 0; visibility: hidden; }
.intro-inner { text-align: center; padding: 0 24px; }
.intro-kicker { font-size: 11px; letter-spacing: .55em; color: var(--dim); margin-bottom: 30px; }
.intro-title { font-family: var(--grot); font-weight: 900; font-stretch: 125%;
  font-size: clamp(46px, 8vw, 104px); line-height: .96; color: var(--ink);
  letter-spacing: -.01em; text-transform: uppercase; }
.intro-title em { font-family: var(--serif); font-style: italic; font-weight: 350;
  text-transform: none; letter-spacing: 0;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 .12em; }
.intro-sub { margin-top: 32px; font-size: 11px; letter-spacing: .35em; color: var(--dim); min-height: 16px; }
#enter { margin-top: 38px; font-family: var(--mono); font-size: 13px; letter-spacing: .3em;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  padding: 16px 42px; cursor: pointer; transition: all .3s; }
#enter:hover:not(:disabled) { background: var(--yellow); color: var(--ink); border-color: var(--ink);
  box-shadow: 0 10px 40px rgba(18,18,18,.18); }
#enter:disabled { opacity: .25; cursor: wait; }
.intro-hint { margin-top: 44px; font-size: 11px; letter-spacing: .2em; color: var(--dim); }

/* ─── Top bar ─── */
#bar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center;
  gap: 22px; padding: 14px 22px;
  background: linear-gradient(180deg, rgba(246,245,240,.96) 0%, rgba(246,245,240,.7) 70%, transparent 100%); }
.wordmark { font-family: var(--grot); font-weight: 900; font-stretch: 125%; font-size: 20px;
  letter-spacing: .01em; white-space: nowrap; color: var(--ink); }
.wordmark span { font-size: 11px; vertical-align: super; border-bottom: 2px solid var(--ink); }
.wordmark i { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  text-transform: none; color: var(--ink); margin-left: 8px; font-size: 17px;
  background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 94%, transparent 94%);
  padding: 0 .14em; }
.searchwrap { position: relative; flex: 1; max-width: 560px; }
#search { width: 100%; font-family: var(--mono); font-size: 13px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hair); border-radius: 999px;
  padding: 11px 58px 11px 36px; outline: none; transition: border-color .25s, box-shadow .25s; }
#search:focus { border-color: var(--ink); box-shadow: 0 2px 14px rgba(18,18,18,.08); }
#search::placeholder { color: #a3a5a0; }
.search-glyph { position: absolute; left: 14px; top: 50%; transform: translateY(-54%);
  color: var(--dim); font-size: 16px; pointer-events: none; }
.search-kbd { position: absolute; right: 34px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--dim); border: 1px solid var(--hair);
  border-radius: 4px; padding: 2px 6px; pointer-events: none; background: #fff; }
#clear-search { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--dim); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.counts { font-size: 11px; letter-spacing: .12em; color: var(--dim); white-space: nowrap; }
.counts b { color: var(--ink); font-weight: 600;
  background: linear-gradient(transparent 45%, var(--yellow) 45%, var(--yellow) 95%, transparent 95%);
  padding: 0 3px; }
#mode-toggle { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  color: var(--ink); background: var(--surface); border: 1px solid var(--hair); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: all .2s; white-space: nowrap; }
#mode-toggle:hover { border-color: var(--ink); }
#mode-toggle.geo { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* ─── Filters button + pills ─── */
#filters-btn { position: relative; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  color: var(--ink); background: var(--surface); border: 1px solid var(--ink); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; transition: all .2s; white-space: nowrap; }
#filters-btn:hover { background: var(--yellow); }
#filters-btn em { font-style: normal; position: absolute; top: -7px; right: -7px;
  background: var(--yellow); border: 1px solid var(--ink); border-radius: 50%;
  min-width: 19px; height: 19px; line-height: 17px; font-size: 10px; font-weight: 600; }
#pills { position: fixed; top: 62px; left: 0; right: 0; z-index: 9; display: flex; gap: 8px;
  padding: 8px 22px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
#pills::-webkit-scrollbar { display: none; }
.pill { flex: 0 0 auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; text-transform: uppercase; transition: all .2s; }
.pill s { text-decoration: none; margin-left: 8px; font-weight: 600; }
.pill:hover { background: var(--ink); color: var(--yellow); }

/* shared chip styling (drawer) */
.chip { flex: 0 0 auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: 999px;
  padding: 7px 15px; cursor: pointer; transition: all .2s; text-transform: uppercase; }
.chip em { font-style: normal; margin-left: 7px; color: var(--dim); font-size: 9.5px; }
.chip:hover { border-color: var(--ink); }
.chip.on { color: var(--ink); background: var(--yellow); border-color: var(--ink); font-weight: 600; }
.chip.on em { color: rgba(18,18,18,.55); }
.chip.dead { opacity: .3; pointer-events: none; }

/* ─── Filter drawer ─── */
#drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 16; width: min(440px, 92vw);
  background: #fff; border-right: 1px solid var(--hair); display: flex; flex-direction: column;
  box-shadow: 24px 0 80px rgba(18,18,18,.12); animation: drawerin .4s cubic-bezier(.2,.9,.25,1); }
@keyframes drawerin { from { transform: translateX(-40px); opacity: 0; } }
#drawer-veil { position: fixed; inset: 0; z-index: 15; background: rgba(246,245,240,.55);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px 18px; border-bottom: 1px solid var(--hair); }
.drawer-head h3 { font-family: var(--grot); font-weight: 900; font-stretch: 125%;
  font-size: 24px; text-transform: uppercase; color: var(--ink); }
.drawer-head h3 em { font-family: var(--serif); font-style: italic; font-weight: 350;
  text-transform: none; font-stretch: 100%;
  background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 94%, transparent 94%);
  padding: 0 .12em; }
#drawer-close { background: #fff; border: 1px solid var(--hair); border-radius: 50%;
  width: 38px; height: 38px; font-size: 20px; color: var(--ink); cursor: pointer; transition: all .2s; }
#drawer-close:hover { background: var(--yellow); border-color: var(--ink); }
#drawer-body { flex: 1; overflow-y: auto; padding: 8px 28px 20px;
  scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
#drawer-body section { padding: 18px 0 4px; border-bottom: 1px solid #f0eee6; }
#drawer-body h4 { font-family: var(--serif); font-style: italic; font-weight: 450;
  font-size: 17px; color: var(--ink); margin-bottom: 12px; }
.facet-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 14px; }
.drawer-foot { display: flex; gap: 10px; padding: 16px 28px;
  border-top: 1px solid var(--hair); background: #fff; }
#drawer-clear { font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--dim); background: #fff; border: 1px solid var(--hair); padding: 14px 18px;
  cursor: pointer; transition: all .2s; }
#drawer-clear:hover { color: var(--ink); border-color: var(--ink); }
#drawer-show { flex: 1; font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  font-weight: 600; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink);
  padding: 14px 18px; cursor: pointer; transition: all .2s; }
#drawer-show:hover { background: var(--ink); color: var(--paper); }

/* ─── Tooltip ─── */
#tip { position: fixed; z-index: 11; pointer-events: none; max-width: 320px;
  background: #fff; border: 1px solid var(--hair); border-left: 3px solid var(--yellow);
  box-shadow: 0 8px 28px rgba(18,18,18,.12);
  padding: 9px 13px; transform: translate(14px, 14px); }
#tip b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 15px; color: var(--ink); }
#tip span { font-size: 10px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }

/* ─── Focus panel ─── */
#panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 12; width: min(380px, 86vw);
  background: linear-gradient(270deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.97) calc(100% - 40px), transparent 100%);
  border-left: 1px solid var(--hair); padding: 84px 30px 30px 44px; display: flex; flex-direction: column;
  animation: panelin .5s cubic-bezier(.2,.9,.25,1); }
@keyframes panelin { from { transform: translateX(40px); opacity: 0; } }
#panel-close { position: absolute; top: 20px; right: 20px; background: #fff; border: 1px solid var(--hair);
  border-radius: 50%; color: var(--ink); width: 38px; height: 38px; font-size: 20px; cursor: pointer; transition: all .2s; }
#panel-close:hover { border-color: var(--ink); background: var(--yellow); }
.panel-cat { font-size: 10px; letter-spacing: .3em; color: var(--dim); text-transform: uppercase; margin-bottom: 12px; }
#panel h2 { font-family: var(--serif); font-weight: 450; font-size: clamp(26px, 3vw, 33px);
  line-height: 1.08; color: var(--ink); margin-bottom: 10px; }
.panel-city { font-size: 11px; letter-spacing: .22em; color: var(--ink); text-transform: uppercase;
  margin-bottom: 22px; }
.panel-city::before { content: ""; display: inline-block; width: 9px; height: 9px;
  background: var(--yellow); border: 1px solid var(--ink); border-radius: 50%; margin-right: 8px; }
.panel-stats { display: flex; gap: 26px; margin-bottom: 20px; }
.panel-stats div { font-size: 10px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.panel-stats div b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 550;
  color: var(--ink); letter-spacing: 0; margin-bottom: 3px; }
.panel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.panel-tags span { font-size: 10.5px; letter-spacing: .12em; color: var(--ink);
  border: 1px solid var(--hair); border-radius: 999px; padding: 4px 10px; text-transform: uppercase;
  background: #fff; }
.panel-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.panel-actions button { flex: 1; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink); background: #fff; border: 1px solid var(--hair);
  padding: 12px 6px; cursor: pointer; transition: all .2s; }
.panel-actions button:hover { border-color: var(--ink); }
#p-heart.on { background: var(--yellow); border-color: var(--ink); font-weight: 600; }
.panel-open { display: block; text-align: center; font-size: 12px; letter-spacing: .26em;
  color: var(--ink); background: var(--yellow); border: 1px solid var(--ink);
  padding: 15px 10px; text-decoration: none; font-weight: 600; transition: all .25s; }
.panel-open:hover { background: var(--ink); color: var(--paper); }
#p-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
#p-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: pointer;
  border: 1px solid var(--hair); background: #fff; padding: 2px; transition: border-color .15s; }
#p-gallery img:hover { border-color: var(--ink); }
#p-district { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 13.5px;
  color: var(--dim); background: none; border: none; text-align: left; cursor: pointer;
  padding: 4px 0; transition: color .2s; }
#p-district:hover { color: var(--ink); }
.panel-nav { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.panel-nav button { background: none; border: none; font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; color: var(--dim); cursor: pointer; padding: 8px 4px; transition: color .2s; }
.panel-nav button:hover { color: var(--ink); }
#p-pos { font-size: 10px; color: var(--dim); letter-spacing: .14em; }

/* ─── Tour bar ─── */
#tourbar { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 9; }
#tour { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; color: var(--ink);
  background: var(--surface); border: 1px solid var(--ink); border-radius: 999px;
  padding: 13px 28px; cursor: pointer; transition: all .25s;
  box-shadow: 0 6px 24px rgba(18,18,18,.10); }
#tour:hover { background: var(--yellow); }
#tour.playing { background: var(--ink); color: var(--yellow); }

/* ─── Minimap ─── */
#minimap { position: fixed; right: 22px; bottom: 22px; z-index: 8; width: 170px; height: 170px;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(18,18,18,.10); cursor: crosshair; }

#nogl { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  background: var(--paper); text-align: center; font-size: 13px; letter-spacing: .1em; line-height: 2; color: var(--dim); }

/* ─── Results rail ─── */
#rail { position: fixed; top: 114px; left: 0; bottom: 90px; z-index: 8; width: 256px;
  overflow-y: auto; padding: 6px 10px 6px 14px; scrollbar-width: thin;
  scrollbar-color: var(--hair) transparent;
  background: linear-gradient(90deg, rgba(246,245,240,.94) 0%, rgba(246,245,240,.82) 85%, transparent 100%); }
.rail-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
  background: none; border: none; border-left: 3px solid transparent;
  padding: 7px 8px; cursor: pointer; transition: all .15s; }
.rail-item:hover { background: #fff; border-left-color: var(--yellow); }
.rail-item img { width: 56px; height: 38px; object-fit: cover; flex: 0 0 auto; background: var(--hair); }
.rail-item span { min-width: 0; }
.rail-item b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-item i { display: block; font-family: var(--mono); font-style: normal; font-size: 9px;
  letter-spacing: .12em; color: var(--dim); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Coach line ─── */
#coach { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 9;
  font-size: 11px; letter-spacing: .16em; color: var(--ink); background: #fff;
  border: 1px solid var(--hair); border-radius: 999px; padding: 11px 22px; white-space: nowrap;
  box-shadow: 0 6px 24px rgba(18,18,18,.10); transition: opacity 1s ease; }
#coach b { font-weight: 600;
  background: linear-gradient(transparent 45%, var(--yellow) 45%, var(--yellow) 95%, transparent 95%); }
#coach.gone { opacity: 0; pointer-events: none; }

/* ─── Empty state ─── */
#empty { position: fixed; top: 45%; left: 50%; transform: translate(-50%, -50%); z-index: 9;
  text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--ink); line-height: 2.4;
  background: var(--surface); border: 1px solid var(--hair); padding: 26px 34px;
  box-shadow: 0 10px 36px rgba(18,18,18,.10); }
#empty button { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; color: var(--ink); background: var(--yellow);
  border: 1px solid var(--ink); padding: 9px 20px; cursor: pointer; }
#empty button:hover { background: var(--ink); color: var(--paper); }

/* ─── Shortlist tray ─── */
#tray { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 11;
  display: flex; align-items: center; gap: 14px; max-width: min(860px, 94vw);
  background: #fff; border: 1px solid var(--hair); border-bottom: none;
  padding: 10px 16px;
  box-shadow: 0 -8px 32px rgba(18,18,18,.12); animation: trayin .35s ease; }
@keyframes trayin { from { transform: translate(-50%, 100%); } }
body.has-tray #tourbar { bottom: 96px; }
body.has-tray #coach { display: none; }
#tray-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 56vw; }
#tray-strip::-webkit-scrollbar { display: none; }
.tray-item { position: relative; flex: 0 0 auto; width: 76px; height: 52px; cursor: pointer;
  border: 1px solid var(--hair); background: #fff; padding: 2px; transition: border-color .15s; }
.tray-item:hover { border-color: var(--ink); }
.tray-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tray-item s { position: absolute; top: -7px; right: -7px; width: 17px; height: 17px;
  background: var(--ink); color: #fff; border-radius: 50%; font-size: 11px; line-height: 16px;
  text-align: center; text-decoration: none; opacity: 0; transition: opacity .15s; }
.tray-item:hover s { opacity: 1; }
.tray-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
#tray-count { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--dim); letter-spacing: 0; }
#tray-share, #tray-clear { font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--ink); background: #fff; border: 1px solid var(--hair); padding: 9px 12px;
  cursor: pointer; transition: all .2s; }
#tray-share:hover, #tray-clear:hover { border-color: var(--ink); }
#tray-request { font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); padding: 9px 14px;
  cursor: pointer; text-decoration: none; font-weight: 600; transition: all .2s; }
#tray-request:hover { background: var(--ink); color: var(--paper); }

/* ─── Lightbox ─── */
#lightbox { position: fixed; inset: 0; z-index: 25; background: rgba(246,245,240,.96);
  display: flex; align-items: center; justify-content: center; }
#lb-img { max-width: 88vw; max-height: 86vh; box-shadow: 0 20px 80px rgba(18,18,18,.25);
  border: 10px solid #fff; }
#lightbox button { position: absolute; background: #fff; border: 1px solid var(--hair);
  border-radius: 50%; width: 44px; height: 44px; font-size: 18px; color: var(--ink);
  cursor: pointer; transition: all .2s; }
#lightbox button:hover { background: var(--yellow); border-color: var(--ink); }
#lb-close { top: 22px; right: 22px; }
#lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
#lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ─── Cinema title ─── */
#cinema-title { position: fixed; bottom: 12vh; left: 50%; transform: translateX(-50%); z-index: 9;
  text-align: center; pointer-events: none; transition: opacity 1.4s ease; }
#cinema-title b { display: block; font-family: var(--grot); font-weight: 900; font-stretch: 125%;
  font-size: clamp(30px, 4.6vw, 58px); color: var(--ink); text-transform: uppercase; letter-spacing: .01em; }
#cinema-title i { display: block; margin-top: 6px; font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--dim); }
#cinema-title.faded { opacity: 0; }

/* cinema mode: chrome recedes, the world plays */
body.cinema #bar, body.cinema #pills, body.cinema #tourbar,
body.cinema #minimap, body.cinema #rail, body.cinema #tray, body.cinema #coach {
  opacity: 0; pointer-events: none; transition: opacity 1s ease; }

/* ─── Toast ─── */
#toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 22;
  font-size: 11px; letter-spacing: .16em; color: var(--ink); background: var(--yellow);
  border: 1px solid var(--ink); padding: 10px 20px; transition: opacity .4s; }

@media (max-width: 760px) {
  #mode-toggle { display: none; }
  #tray-strip { max-width: 34vw; }
  body.has-tray #minimap { display: none; }
  #filters-btn { padding: 8px 12px; letter-spacing: .1em; }
  #p-gallery { grid-template-columns: repeat(3, 1fr); }
  .counts { display: none; }
  .wordmark i { display: none; }
  .search-kbd { display: none; }
  #minimap { width: 120px; height: 120px; right: 14px; bottom: 14px; }
  #panel { padding: 70px 22px 22px 28px; }
  #pills { top: 56px; }
  #rail { width: 196px; top: 102px; }
  .rail-item img { width: 44px; height: 30px; }
  #coach { white-space: normal; text-align: center; width: 86vw; bottom: 78px; border-radius: 16px; }
  .intro-hint { display: none; }
}
