/* ============================================================
   UI TEMPLATE SHELL — Road Two Cesium port. GOOGLE EARTH LAYOUT
   (Joe's rulings, 2026-11-15 evening, supersedes the 17:47
   folder-rail layout): the Earth fills the screen in a star
   field; ONE slim counter line at the very top; ONE search pill
   pinned at the top of the stage at every zoom; ALL tabs hidden
   behind ONE small control in a slim bottom bar; tapping it
   opens the picker (a simple searchable list of one-tap rows)
   floating in the space at the Earth's edge; the picker closes
   back to a clean Earth. A tapped pin's card still slides in
   from the right. Nothing tab-shaped floats on first open; the
   planet's face stays clear at every zoom. SHELL ONLY: this
   file styles the DOM the page's own scripts own.
   ============================================================ */

/* ---------- 1. Slim counter line (hosts #counter, counter.js) ----------
   ONE line at the very top: live dot + the ticking number + the
   rotating conversion + the One Day ask as a small readable chip
   (light chip, dark text — never white-on-white, never a big box).
   The long-form pieces (source paragraph, share row, math
   details) are tucked OUT of the bar: they made it 325px tall. */
body #counter.ui-counterbar{
  display:flex;flex-wrap:nowrap;align-items:center;gap:6px 14px;
  background:#0a0a0a;color:#fff;margin:0;padding:7px 14px;border:0;border-radius:0;
  position:relative;z-index:60;height:46px;overflow:hidden;
}
body #counter.ui-counterbar .ctr-kicker{
  margin:0;font-size:.68rem;font-weight:900;letter-spacing:.13em;color:#fff;
  display:flex;align-items:center;gap:7px;text-transform:uppercase;flex:0 0 auto;white-space:nowrap;
}
body #counter.ui-counterbar .ctr-kicker::before{
  content:"";width:9px;height:9px;border-radius:50%;background:#ff3b30;flex:0 0 auto;
  box-shadow:0 0 0 0 rgba(255,59,48,.6);animation:ui-pulse 1.6s infinite;
}
@keyframes ui-pulse{0%{box-shadow:0 0 0 0 rgba(255,59,48,.55)}70%{box-shadow:0 0 0 8px rgba(255,59,48,0)}100%{box-shadow:0 0 0 0 rgba(255,59,48,0)}}
body #counter.ui-counterbar .ctr-lead{
  margin:0;font-size:.86rem;font-weight:700;color:#e8eef7;flex:0 1 auto;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body #counter.ui-counterbar .ctr-big{margin:0;font-size:1.12rem;font-weight:900;letter-spacing:-.01em;color:#fff;flex:0 0 auto;white-space:nowrap}
body #counter.ui-counterbar .ctr-big .ctr-onwar{font-size:.88rem;font-weight:800;color:#ffd60a}
body #counter.ui-counterbar .ctr-big::after{content:" • ticking";font-size:.72rem;font-weight:800;color:#7ee787}
body #counter.ui-counterbar .ctr-src,
body #counter.ui-counterbar .ctr-share-row,
body #counter.ui-counterbar .ctr-math{display:none}
body #counter.ui-counterbar .ctr-convert-wrap{margin:0 0 0 auto;min-height:0;min-width:0;flex:0 1 auto;max-width:38%}
body #counter.ui-counterbar .ctr-convert{
  margin:0;font-size:.84rem;font-weight:800;color:#fff;text-align:right;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body #counter.ui-counterbar .ctr-convert-src{display:none}
body #counter.ui-counterbar .ctr-ask{
  margin:0;flex:0 1 auto;min-width:0;max-width:330px;
  background:#eef5ff;color:#10203a;border-radius:999px;padding:5px 12px;
  font-size:.76rem;font-weight:700;line-height:1.25;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body #counter.ui-counterbar .ctr-ask b{color:#0b3d91}

/* ---------- 2. The stage ----------
   Counter line on top, then the stage fills exactly the rest of
   the screen at every size. The Earth sits in a star field
   (engine skybox) with the reference overlay on the land. */
:root{--ui-counter-h:46px;--ui-folder-bg:rgba(5,17,34,.58);--ui-folder-line:rgba(160,195,240,.38)}
#ui-search-slot{
  position:relative;width:100vw;max-width:none;margin:0;padding:0;
  margin-left:calc(50% - 50vw);
}
body #globe-layout{
  position:relative;display:block;width:100%;margin:0;padding:0;overflow:hidden;
  height:calc(100vh - var(--ui-counter-h));height:calc(100dvh - var(--ui-counter-h));
  min-height:420px;background:#020611;
}
body #globe-layout #globe-main{position:absolute;inset:0;min-width:0}
body #globe-main.ui-globe-panel{
  border:0;border-radius:0;background:#020611;overflow:hidden;
  display:flex;flex-direction:column;
}
body #globe-main #globe-wrap{order:0;flex:1 1 auto;width:100%;height:auto;min-height:0}

/* ---------- 3. Search pill: pinned at the TOP of the stage ----------
   Google Earth position: desktop top-left, phone across the top.
   It never scrolls away, never resizes, at any zoom. The
   my-town locate button lives INSIDE the pill, at its end. */
body #ui-search-slot #place-search{
  position:absolute;z-index:36;top:14px;left:16px;bottom:auto;transform:none;
  width:min(460px,calc(100% - 32px));max-width:460px;margin:0;
  background:transparent;border:0;padding:0;
}
body #ui-search-slot .place-search-label{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
}
body #ui-search-slot #place-input::placeholder{color:#c9d6ea;font-weight:600;opacity:1}
body #ui-search-slot .place-search-row{display:flex;gap:8px;justify-content:flex-start}
body #ui-search-slot .place-input-wrap{flex:1;max-width:380px;position:relative}
body #ui-search-slot #place-input{
  width:100%;min-height:52px;border:1.5px solid rgba(200,225,255,.55);border-radius:999px;
  padding:0 96px 0 20px;font-size:1.02rem;font-weight:600;
  background:rgba(5,17,34,.62);color:#fff;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
body #ui-search-slot .search-go{
  min-height:52px;min-width:64px;border-radius:999px;border:1px solid #5da9ff;
  background:rgba(8,102,255,.88);color:#fff;font-weight:900;font-size:1rem;cursor:pointer;
}
body #ui-search-slot #place-status{
  text-align:left;margin-top:6px;color:#fff;font-weight:700;font-size:.85rem;
  text-shadow:0 1px 6px rgba(0,0,0,.9);
}
body #ui-search-slot #place-status:empty{background:transparent}
/* The engine's own clear-place × shares the pill's end with the
   locate button: clear sits just left of it. */
body #ui-search-slot #place-clear{right:52px}
/* My town: a small round locate button inside the search pill. */
#ui-mytown-btn{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);z-index:5;
  width:40px;height:40px;border-radius:50%;border:1.5px solid rgba(200,225,255,.55);
  background:rgba(8,102,255,.88);color:#fff;font-size:1.05rem;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;padding:0;
}
#ui-mytown-btn:active{background:#fff;color:#0b3d91}
#ui-search-tip{display:none}
/* Lens verdict banner/panel: under the search pill, top-left. */
#ui-search-slot .lens-banner,#ui-search-slot .lens-panel{
  position:absolute;z-index:37;top:76px;left:16px;transform:none;bottom:auto;
  width:min(460px,calc(100% - 32px));max-width:460px;margin:0;
}

/* ---------- 4. Chrome that comes OFF the Earth's face ---------- */
/* The SHOWING bubble is gone (owner ruling): no pill, no bubble. */
body #globe-main #globe-statusbar{display:none!important}
/* Counter tickers printed across the globe's face: gone. The
   counter lives in the slim top line only. */
body #globe-wrap .good-ticker,body #globe-wrap .bad-ticker,body #globe-wrap .spending-ticker{display:none!important}
/* The "Drag to spin" hint pill across the lower face: gone. */
body #globe-wrap .globe-hint{display:none!important}
/* Slim attribution line along the very bottom edge (GE pattern). */
#cesium-esri-credit{bottom:5px!important;left:8px!important;z-index:30!important}

/* ---------- 5. The bottom bar: ONE small control cluster ----------
   Fixed at the bottom centre of the stage at every zoom: the
   Layers button (opens the picker) and, only while something is
   lit, a compact Clear. Nothing else lives here. */
#ui-bottombar{
  position:absolute;z-index:45;bottom:14px;left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:8px;
  background:rgba(5,17,34,.72);border:1px solid var(--ui-folder-line);border-radius:999px;
  padding:6px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
#ui-filter-btn{
  display:flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;
  border-radius:999px;border:1.5px solid rgba(200,225,255,.55);
  background:rgba(8,102,255,.88);color:#fff;font-weight:900;font-size:.95rem;cursor:pointer;
}
#ui-filter-btn .ui-filter-count{
  background:#fff;color:#0b3d91;border-radius:999px;padding:1px 8px;font-size:.72rem;font-weight:900;
}
#ui-filter-btn .ui-filter-count[hidden]{display:none}
body.ui-picker-open #ui-filter-btn{background:#fff;color:#0b3d91}
#ui-clear-btn{
  min-height:44px;min-width:44px;border-radius:50%;padding:0 12px;
  border:1.5px solid rgba(255,255,255,.65);background:rgba(255,255,255,.12);color:#fff;
  font-weight:900;font-size:.95rem;cursor:pointer;
}
#ui-clear-btn[hidden]{display:none}

/* ---------- 6. The picker (doors' own #doors, restyled) ----------
   Hidden by default — the Earth opens clean. It floats in the
   space at the Earth's left edge (desktop) / as a bottom sheet
   (phone), translucent glass, and closes back to the clean
   Earth. Inside: pick head (guidance + Clear), a search box,
   then the tabs as tidy folders of one-tap rows. */
body #globe-layout #doors{
  position:absolute;z-index:35;top:76px;left:16px;bottom:76px;
  width:332px;max-width:332px;min-width:0;
  overflow-y:auto;overflow-x:hidden;
  background:rgba(4,12,26,.82);border:1px solid var(--ui-folder-line);border-radius:18px;
  padding:10px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  visibility:hidden;opacity:0;pointer-events:none;transform:translateY(10px);
  /* No visibility entry in the transition: on close the panel
     must stop catching taps IMMEDIATELY (a delayed flip leaves
     an invisible-but-hit-testable ghost over the globe). The
     fade still plays on open via the open rule below. */
  transition:opacity .18s ease,transform .18s ease;
}
body.ui-picker-open #globe-layout #doors{
  visibility:visible;opacity:1;pointer-events:auto;transform:none;
  transition:opacity .18s ease,transform .18s ease;
}
body #globe-layout #doors .dr-tiles{display:grid;grid-template-columns:1fr;gap:8px}
#ui-pick-head{
  position:sticky;top:0;z-index:6;display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin:0 0 8px;padding:10px;border:1px solid var(--ui-folder-line);border-radius:14px;
  background:rgba(5,17,34,.9);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
#ui-pick-head #doors-guidance{
  margin:0;font-size:1rem;font-weight:900;letter-spacing:-.02em;color:#fff;line-height:1.2;flex:1 1 auto;min-width:0;
}
#ui-pick-head #doors-clear{
  margin-left:auto;background:rgba(255,255,255,.12);color:#fff;border:1.5px solid rgba(255,255,255,.65);border-radius:999px;
  min-height:44px;padding:0 14px;font-size:.88rem;cursor:pointer;
}
#ui-pick-head #doors-clear:active{background:#fff;color:#10203a}
/* Picker search rides inside the sticky pick head as its own
   full-width row: one box at the top of the picker, filtering
   the tabs and lanes by name (Data-layers pattern). */
#ui-picker-search-wrap{flex:1 1 100%;margin-top:8px}
#ui-picker-search{
  width:100%;min-height:44px;border-radius:999px;border:1.5px solid rgba(200,225,255,.45);
  background:rgba(255,255,255,.1);color:#fff;padding:0 16px;font-size:.95rem;font-weight:600;
}
#ui-picker-search::placeholder{color:#bcd2ee;opacity:1}

/* Folders inside the picker: translucent dark glass. */
body #doors .dr-tile{
  border:1px solid var(--ui-folder-line);border-radius:14px;overflow:hidden;color:#eaf2ff;
  background:rgba(5,17,34,.58);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
body #doors .dr-tile-head{
  display:flex;align-items:flex-start;gap:8px;width:100%;min-height:52px;
  padding:9px 10px;background:transparent;border:0;text-align:left;cursor:pointer;color:#fff;
}
body #doors .dr-tile-head .ui-tile-icon{
  flex:0 0 auto;width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.14);
  display:flex;align-items:center;justify-content:center;font-size:1.05rem;
}
body #doors .dr-tile-head .ui-tile-text{flex:1 1 auto;min-width:0}
body #doors .dr-tile-head b{font-size:.95rem;font-weight:900;line-height:1.25;display:block;color:#fff}
body #doors .dr-tile-head .dr-contents{display:block;margin-top:2px;font-size:.74rem;color:#bcd2ee;font-weight:600;line-height:1.35}
body #doors .dr-tile-head .ui-tile-badge{
  flex:0 0 auto;background:rgba(8,102,255,.92);color:#fff;border-radius:999px;padding:2px 8px;
  font-size:.65rem;font-weight:900;letter-spacing:.02em;white-space:nowrap;
}
body #doors .dr-tile-head .ui-tile-badge[hidden]{display:none}
body #doors .dr-tile-head .ui-tile-plus{
  flex:0 0 auto;width:28px;height:28px;border:1.5px solid rgba(255,255,255,.6);border-radius:50%;color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:900;font-size:.95rem;line-height:1;
}
body #doors .dr-tile-head[aria-expanded="true"]{background:rgba(8,102,255,.30);box-shadow:inset 0 0 0 1.5px rgba(120,180,255,.75)}
body #doors .dr-tile-body{
  padding:7px 8px 9px;border-top:1px solid var(--ui-folder-line);
  background:rgba(3,10,22,.38);color:#eaf2ff;
}
body #doors .dr-tile-body a{color:#9fc6ff}

/* Lane rows: one clean card per lane — name + one plain line —
   a single tap selects it. The checkbox still does the work
   underneath (it is the row's own input) but the checkbox wall
   is not the interface: the input is visually tucked away and
   the whole row is the tap target. A lit row fills blue. */
body #doors .dr-layer{
  position:relative;display:flex;align-items:center;gap:8px;padding:6px 8px;min-height:48px;
  border:1px solid rgba(180,205,240,.28);border-radius:10px;margin:5px 0;cursor:pointer;
  background:rgba(255,255,255,.09);color:#fff;
}
body #doors .dr-layer > input[type="checkbox"]{
  position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none;
}
body #doors .dr-layer .dr-layer-text{flex:1 1 auto;min-width:0}
body #doors .dr-layer .dr-layer-label{font-weight:800;font-size:.92rem;line-height:1.3;color:#fff}
body #doors .dr-layer .dr-layer-state{color:#bcd2ee}
body #doors .dr-layer::after{content:"ⓘ";flex:0 0 auto;color:#9db9dd;font-size:1rem}
body #doors .dr-layer:has(> input:checked){background:rgba(8,102,255,.82);border-color:rgba(160,200,255,.8);color:#fff}
body #doors .dr-layer:has(> input:checked) .dr-layer-label{color:#fff}
body #doors .dr-layer:has(> input:checked) .dr-layer-state{color:#d7e7ff}
body #doors .dr-layer:has(> input:checked)::after{color:#fff}
body #doors .dr-layer.dr-empty{background:rgba(255,255,255,.05);border-color:rgba(180,205,240,.18);color:#8fa6c4;opacity:.6;cursor:default}
body #doors .dr-layer.dr-empty:has(> input:checked){background:rgba(255,255,255,.05);color:#8fa6c4}

/* ---------- 7. What is lit: legend chips + results ----------
   Legend chips appear only while the picker is open (owner:
   chips exist only while the picker is open). The results list
   (the picked category's rows) floats top-right, under nothing,
   and the tapped pin's card (#pin-story, the page's own)
   still slides in from the right — untouched. */
body #globe-main #ui-legend{
  position:absolute;z-index:33;left:16px;right:16px;bottom:76px;
  display:none;flex-wrap:wrap;gap:6px;padding:0;border:0;pointer-events:none;
}
body.ui-picker-open #globe-main #ui-legend{display:flex}
#ui-legend:empty{display:none!important}
#ui-legend .ui-chip{
  display:inline-flex;align-items:center;gap:7px;border:1px solid var(--ui-folder-line);border-radius:999px;
  padding:5px 12px;font-size:.8rem;font-weight:800;color:#fff;min-height:32px;
  background:var(--ui-folder-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
#ui-legend .ui-chip i{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
body #globe-main #doors-results{
  position:absolute;z-index:33;top:76px;right:16px;
  width:min(430px,calc(100% - 32px));max-height:calc(100% - 170px);overflow:auto;
  background:rgba(5,17,34,.66);color:#eaf2ff;
  border:1px solid var(--ui-folder-line);border-radius:14px;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
body #globe-main #doors-results:empty{display:none}
/* Planet Forces launch: a small edge control, bottom-right
   corner (desktop GE pattern), clear of the bottom bar.
   v63 fix (Nov 20): z-index 40, above the perimeter ring (34) —
   the ring's bottom-row icons sit in this same strip and used to
   cover the launch button's centre, so it could not be tapped. */
body #globe-wrap .force-launch{left:auto;right:16px;bottom:14px;z-index:40}
/* Zoom/pause controls: right edge, vertically centred — they
   never meet the search pill or the bottom bar.
   v63 fix (Nov 20): z-index 40, above the perimeter ring (34) —
   the ring's right-column icons sit in this same strip at the
   same heights and used to cover Reset (the browser's hit test
   reported the ring button, not Reset), so Reset could not be
   tapped when zoomed in and only a reload restored the view.
   The ring layout (ui-shell.js layoutRing) now also steers its
   right-column icons clear of this column, so raising the
   controls buries no icon centre. */
body #globe-wrap .force-controls{top:50%;transform:translateY(-50%);right:12px;z-index:40}

/* ---------- 8. Phone: same system, one column ----------
   Search pill across the top; picker as a bottom sheet above
   the bottom bar; globe reachable and clear before any list. */
@media (max-width:767px){
  body #counter.ui-counterbar{padding:6px 10px;gap:4px 8px;height:44px}
  body #counter.ui-counterbar .ctr-kicker{font-size:.6rem}
  body #counter.ui-counterbar .ctr-lead{display:none}
  body #counter.ui-counterbar .ctr-big{font-size:.98rem}
  body #counter.ui-counterbar .ctr-big::after{display:none}
  body #counter.ui-counterbar .ctr-convert-wrap{display:none}
  body #counter.ui-counterbar .ctr-ask{flex:0 1 104px;max-width:104px;font-size:.66rem;padding:4px 8px}
  body #ui-search-slot #place-search{top:10px;left:10px;right:10px;width:auto;max-width:none}
  body #ui-search-slot .place-input-wrap{max-width:none}
  body #ui-search-slot #place-input{min-height:50px;font-size:.95rem;padding-right:92px}
  #ui-search-slot .lens-banner,#ui-search-slot .lens-panel{top:70px;left:10px;right:10px;width:auto;max-width:none}
  body #globe-layout #doors{
    top:auto;bottom:72px;left:10px;right:10px;width:auto;max-width:none;max-height:56%;
  }
  #ui-picker-search-wrap{margin-top:6px}
  body #globe-main #doors-results{top:70px;right:10px;left:10px;width:auto;max-height:34%}
  body #globe-main #ui-legend{left:10px;right:10px;bottom:72px}
  #ui-bottombar{bottom:10px}
  body #globe-wrap .force-launch{right:10px;bottom:66px}
  body #globe-wrap .force-controls{right:8px}
}
@media (prefers-reduced-motion: reduce){
  body #counter.ui-counterbar .ctr-kicker::before{animation:none}
  body #globe-layout #doors{transition:none}
}

/* ---------- 9. Globe fix pass (Nov 16): counter fit, status block,
   perimeter icon ring + category pop-ups (Joe's design change,
   09:51 — the Layers pill and panel are retired) ---------- */
/* The bar's lead-in sentence goes: the big number + "on war"
   already says it, and the freed width lets the rotating line
   fit whole instead of truncating mid-word. */
body #counter.ui-counterbar .ctr-lead{display:none}
body #counter.ui-counterbar .ctr-convert-wrap{max-width:44%}
/* The One Day chip never gives up its width to a long rotating
   line (it was being flex-shrunk and ellipsis-cut); the rotating
   line's own slot is what flexes, and its text fits that slot. */
body #counter.ui-counterbar .ctr-ask{flex:0 0 auto}
/* The location/status line gets its OWN block under the pill,
   in its own space — never overprinted on any heading. */
body #ui-search-slot #place-status{
  background:rgba(4,12,26,.85);border:1px solid rgba(150,190,240,.35);
  border-radius:10px;padding:6px 10px;max-width:400px;
}
body #ui-search-slot #place-status:empty{display:none!important;background:transparent;border:0;padding:0}
/* The Layers pill is retired: the ring replaces it. */
body.ui-ring-mode #ui-bottombar{display:none!important}
/* Perimeter icon ring: one small round icon per top category,
   evenly spaced around the edge of the globe. */
#ui-ring{position:absolute;inset:0;z-index:34;pointer-events:none}
.ui-ring-btn{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:1px;width:64px;padding:0;background:none;border:0;cursor:pointer;font:inherit}
.ui-ring-btn .ui-ring-glyph{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:rgba(5,17,34,.66);border:1.5px solid rgba(170,205,250,.55);font-size:21px;line-height:1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 2px 10px rgba(0,0,0,.45)}
.ui-ring-btn .ui-ring-label{font-size:9.5px;font-weight:800;color:#e6f0ff;text-shadow:0 1px 4px rgba(0,0,0,.95),0 0 8px rgba(0,0,0,.8);line-height:1.1;text-align:center;max-width:64px}
.ui-ring-btn:hover .ui-ring-glyph,.ui-ring-btn:focus-visible .ui-ring-glyph{border-color:#fff;background:rgba(8,40,86,.88)}
.ui-ring-btn.ui-ring-active .ui-ring-glyph{background:#0b5fff;border-color:#fff}
.ui-ring-btn .ui-ring-badge{position:absolute;top:-3px;right:4px;background:#fff;color:#0b3d91;border-radius:999px;font-size:.62rem;font-weight:900;padding:1px 5px;line-height:1.4;box-shadow:0 1px 5px rgba(0,0,0,.5)}
.ui-ring-btn .ui-ring-badge[hidden]{display:none}
/* Pop-up mode: #doors becomes a transparent stage-wide host; only
   the open category's tile shows, as its own small card, with the
   pick head as a slim bar (Clear + X) directly above it. */
body.ui-ring-mode #globe-layout #doors{
  top:0;left:0;right:0;bottom:0;width:auto;max-width:none;height:auto;
  overflow:visible;background:transparent;border:0;border-radius:0;padding:0;
  visibility:visible;opacity:1;pointer-events:none;transform:none;transition:none;
  /* Nov 16 blur defect: the base #doors rule above carries
     backdrop-filter:blur(14px) for the old glass picker. In ring
     mode #doors is a full-stage transparent host — with the blur
     left in place it frosted the whole top half of the Earth and
     every ring icon behind it (Joe's phone photo, Nov 16). The
     host must NEVER blur: explicitly off. */
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
body.ui-ring-mode #globe-layout #doors .dr-tiles{display:block}
body.ui-ring-mode #doors .dr-tile{display:none}
body.ui-ring-mode #doors .dr-tile.ui-pop-open{
  display:block;position:absolute;z-index:38;pointer-events:auto;
  max-height:52vh;overflow-y:auto;overflow-x:hidden;border-radius:16px;
  box-shadow:0 14px 38px rgba(0,0,0,.6);
}
body.ui-ring-mode #ui-pick-head{
  display:none;position:absolute;z-index:39;pointer-events:auto;margin:0;
  flex-wrap:nowrap;padding:6px 8px;border-radius:12px;top:0;left:0;
}
body.ui-ring-mode #doors.ui-pop-active #ui-pick-head{display:flex}
body.ui-ring-mode #ui-pick-head #doors-guidance,
body.ui-ring-mode #ui-picker-search-wrap{display:none}
body.ui-ring-mode #ui-pick-head #doors-clear{min-height:36px;font-size:.8rem;padding:0 12px}
#ui-pop-close{min-height:36px;min-width:36px;border-radius:50%;border:1.5px solid rgba(255,255,255,.65);background:rgba(255,255,255,.12);color:#fff;font-weight:900;font-size:.9rem;cursor:pointer;padding:0}
body.ui-ring-mode #doors .doors-legend,
body.ui-ring-mode #doors-legend{display:none!important}
@media (max-width:767px){
  body #counter.ui-counterbar .ctr-kicker{display:none}
  body #counter.ui-counterbar .ctr-ask{flex:0 1 150px;max-width:150px;white-space:normal;line-height:1.12;font-size:.66rem}
  .ui-ring-btn{width:54px}
  .ui-ring-btn .ui-ring-glyph{width:40px;height:40px;font-size:18px}
  .ui-ring-btn .ui-ring-label{font-size:8.5px;max-width:54px}
  body.ui-ring-mode #doors .dr-tile.ui-pop-open{max-height:48vh}
}
/* Compact ring icons (Nov 26): applied by ui-shell.js when a short
   stage cannot fit the right column at full size. Same sizes as the
   narrow-screen rule, so the layout math matches. */
.ui-ring-compact .ui-ring-btn{width:54px}
.ui-ring-compact .ui-ring-btn .ui-ring-glyph{width:40px;height:40px;font-size:18px}
.ui-ring-compact .ui-ring-btn .ui-ring-label{font-size:8.5px;max-width:54px}

/* ---------- 10. v52 pass (Joe, Nov 16): the record card docks at
   the BOTTOM, the pop-up shrinks to a picker, and neither surface
   may bury the globe or collide with the perimeter ring. ------- */
/* ONE bottom card for every tap (Joe's ruling, Nov 16 16:22 —
   replaces the card that slid in from the right and the phone
   sheet that swallowed the bottom half): docked above the
   bottom icon row, centred between the ring columns, capped in
   height, the globe stays the main picture. The caret at its
   top edge points up at the globe — with the ring drawn around
   the tapped light and the card's "Ringed on the globe" chip,
   the eye links light -> card without reading. */
body #pin-story.story-sheet{
  left:50%;right:auto;top:auto;bottom:104px;
  width:min(560px,calc(100% - 160px));
  max-height:34vh;padding:14px 16px;
  transform:translate(-50%,calc(100% + 140px));
}
body #pin-story.story-sheet.open{transform:translate(-50%,0)}
body #pin-story.story-sheet.open::before{
  content:"";position:absolute;top:-12px;left:50%;transform:translateX(-50%);
  border:9px solid transparent;border-bottom:12px solid #0866ff;border-top:0;
}
body #pin-story.story-sheet h2{font-size:1.25rem;margin:0 40px 2px 0}
/* The pop-up is a picker: shorter, and its long description
   line no longer renders inside it (names/counts only). */
body.ui-ring-mode #doors .dr-tile.ui-pop-open{max-height:38vh}
body.ui-ring-mode #doors .dr-tile .dr-contents{display:none}
/* The status panel keeps clear of the right ring column. */
body #globe-main #doors-results{right:76px}
/* v59 (Joe, Nov 17): no stacked side panel, ever. The results
   stack (one summary card per lit layer, piled in a scrollable
   panel on the right, each X unlighting its layer) is not Joe's
   shape: one tap on one light = ONE small card at the bottom
   (#pin-story), and that is the only card surface. In ring mode
   the results stack never renders. */
body.ui-ring-mode #globe-main #doors-results{display:none!important}
@media (max-width:767px){
  body #pin-story.story-sheet{
    bottom:100px;width:calc(100% - 132px);max-height:30vh;
  }
  body.ui-ring-mode #doors .dr-tile.ui-pop-open{max-height:34vh}
  body #globe-main #doors-results{left:74px;right:74px;max-height:24%}
}

/* ---------- 11. v53 pass (Joe, Nov 16): the record card's X can
   never hide. Joe tapped a light on his laptop and the card had
   no close button he could find or reach: the sheet itself was
   the scroll container (overflow:auto), the X is positioned
   against the sheet's top, so once card content scrolled, the
   X scrolled away with it — and what remained at rest was a
   white 40px circle on the white card, lost beside the
   scrollbar. Now the sheet never scrolls (its body does, under
   the button), and the X is a big brand-blue disc with a white
   glyph — same corner, every card, always tappable (44px). - */
body #pin-story.story-sheet{overflow:hidden}
body #pin-story-body{overflow-y:auto;max-height:calc(34vh - 28px)}
body #pin-story.story-sheet h2{margin-right:58px}
body #pin-story-close.story-close{
  top:8px;right:8px;width:44px;height:44px;z-index:6;
  background:#0866ff;color:#fff;border:2px solid #fff;
  font-size:19px;line-height:1;box-shadow:0 2px 10px rgba(2,11,24,.45);
}
@media (max-width:767px){
  body #pin-story-body{max-height:calc(30vh - 28px)}
}
