/* The world gate (gate.js): the question, the globe of the two worlds, the fan, the object card. */
.g-root { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #1b2f63, #0a1431 70%); color: #F5EDD8; font: 15px/1.4 Georgia, "Times New Roman", serif; touch-action: none; user-select: none; -webkit-user-select: none; }
.g-root[hidden] { display: none; }
.g-stage { position: absolute; inset: 0; }
.g-stage:focus { outline: none; }
.g-stage:focus-visible { outline: 2px solid rgba(237,209,133,.9); outline-offset: -3px; }
/* round 9b: the inside of a larger sphere, a faint darkening toward the edges (curvature cue) */
.g-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at center, transparent 0, transparent 50%, rgba(5,10,26,.38) 100%); }
.g-stage .w-canvas, .g-stage .w-threads { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-stage .w-canvas[hidden] { display: none; }
.g-stage .w-threads { pointer-events: none; }
.g-stage .w-markers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.g-ui { position: absolute; inset: 0; pointer-events: none; }
.g-ui > * { pointer-events: auto; }
.g-root[data-phase="choosing"] .g-stage { filter: blur(3px) brightness(.55); }

.g-chooser { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px; text-align: center; }
.g-title { margin: 0; font: italic 600 44px/1 Georgia, serif; color: #F5EDD8; }
.g-question { margin: 0; max-width: 26em; font-size: 19px; opacity: .92; }
.g-choices { display: flex; flex-direction: column; gap: 14px; width: min(440px, 100%); }
.g-choice { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid #C9A24A; border-radius: 16px; background: #F5EDD8; color: #191E2A; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.g-choiceicon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #191E2A; color: #C9A24A; }
.g-choicewords { display: flex; flex-direction: column; gap: 3px; }
.g-choicewords b { font-size: 17px; }
.g-choicewords span { font-size: 14px; color: #3f3f46; }
.g-loading { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; font-style: italic; }

.g-head { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 16px; right: 16px; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
.g-head > * { pointer-events: auto; }
.g-seg { display: flex; flex: 0 1 380px; background: rgba(8,12,24,.55); border: 1px solid rgba(201,163,74,.7); border-radius: 18px; padding: 3px; box-shadow: 0 1px 6px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.g-seg button { flex: 1; border: 0; background: none; padding: 7px 8px; border-radius: 15px; font: 600 13.5px/1.2 Georgia, "Times New Roman", serif; color: #F5EBD2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-seg button[aria-pressed="true"] { background: linear-gradient(#f5dc8f, #c9a24a); color: #21170a; }
.g-round { flex: none; width: 44px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 18px; background: rgba(0,0,0,.4); color: #F5EDD8; }
.g-hint { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px); translate: -50% 0; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 8px 14px; border-radius: 18px; background: rgba(0,0,0,.4); font-style: italic; font-size: 13.5px; text-align: center; pointer-events: none; }

.g-badge { position: absolute; left: 0; top: 0; width: 64px; height: 64px; padding: 0; border: 0; background: none; pointer-events: none; will-change: transform; isolation: isolate; }
.g-badge img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.g-badgename { display: none; }

.g-fan { position: absolute; inset: 0; z-index: 2; pointer-events: none; }   /* only the medallions take touches */
.g-fan .g-obj { pointer-events: auto; }
.g-fan[hidden] { display: none; }
/* decisions 220, 256: the territory wheel, a spool (spool.js). Its canvas draws the wheel, the golden thread and the
   beads; the members are buttons on the rings; only the wheel's disc and the members take touches */
.g-spool { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.g-spool[hidden] { display: none; }
.g-spool-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.g-spool-pad { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: auto; touch-action: none; cursor: grab; }
.g-spool-members { position: absolute; inset: 0; pointer-events: none; }
.g-spool-member { position: absolute; left: 0; top: 0; padding: 0; border: 0; border-radius: 50%; background: none; pointer-events: auto; touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g-spool-member .g-medal { display: flex; width: 100%; height: 100%; border-width: 2px; box-shadow: 0 2px 5px rgba(0,0,0,.5); }
.g-spool-member.g-spool-inner .g-medal { border-width: 1.5px; font-size: 15px; }
.g-spool-member[data-front] .g-medal { outline: 2px solid #EDD185; outline-offset: 3px; box-shadow: 0 3px 9px rgba(0,0,0,.55); }
.g-spool-member[data-new] .g-medal { animation: g-newpulse 1.4s ease-in-out infinite; }
.g-spool-member:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.g-spool[data-folded] .g-spool-pad, .g-spool[data-folded] .g-spool-member { pointer-events: none; }
.g-spool-plate { position: absolute; left: 0; top: 0; margin: 0; padding: 4px 10px; border: 1px solid rgba(237,209,133,.75); border-radius: 999px; background: rgba(20,18,15,.88); color: #EDD185; font: 600 13px/1.2 system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; transition: opacity .15s ease-out; }
.g-spool-plate-inner { font-size: 10.5px; padding: 3px 8px; }
.g-spool-plate[data-quiet] { opacity: 0; }
.g-spool-count { position: absolute; left: 0; top: 0; margin: 0; padding: 1px 5px; border-radius: 999px; background: rgba(20,18,15,.75); color: rgba(237,209,133,.9); font: 600 10px/1.3 system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.g-spool-count:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .g-spool-member[data-new] .g-medal { animation: none; outline: 2px solid #EDD185; outline-offset: 3px; } .g-spool-plate { transition: none; } }
.g-obj { position: absolute; left: 0; top: 0; width: 90px; padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; font: inherit; will-change: transform, opacity; opacity: 0; }
.g-medal { position: relative; width: 60px; height: 60px; flex: none; border-radius: 50%; background: #F5EDD8 center / cover no-repeat; border: 2.5px solid #C9A24A; box-shadow: 0 3px 8px rgba(0,0,0,.45); }
.g-test .g-medal, .g-medal.g-test { border-style: dashed; }
/* interim skins (art/skins/objects): the medallion carries its own gilt rim and enamel */
.g-medal.g-art { background-color: transparent; border-color: transparent; box-shadow: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.g-test .g-medal.g-art, .g-medal.g-art.g-test { border-color: #C9A24A; }
/* a provisional being (made from a schema template, unscored): a dotted amber outline apart from the brass ring */
.g-prov .g-medal, .g-medal.g-prov { outline: 2.5px dotted #E3A33B; outline-offset: 3px; }
.g-glyph { position: absolute; inset: 0; display: grid; place-items: center; font: 600 24px Georgia, serif; color: #191E2A; }
.g-objname { font-size: 12px; line-height: 1.15; text-align: center; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.g-empty { position: absolute; translate: -50% 0; margin: 0; padding: 8px 12px; border-radius: 16px; background: rgba(0,0,0,.4); font-style: italic; white-space: nowrap; }

.g-card { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 12px); translate: -50% 0; z-index: 3; width: min(520px, calc(100% - 24px)); max-height: 62%; overflow: auto; padding: 16px 18px 18px; border-radius: 18px; background: #F5EDD8; color: #2B1D12; box-shadow: 0 6px 24px rgba(0,0,0,.45); touch-action: pan-y; }
.g-card[hidden] { display: none; }
.g-cardtop { display: flex; align-items: center; gap: 12px; }
.g-cardtop .g-medal { width: 54px; height: 54px; }
.g-cardwords { flex: 1; min-width: 0; }
.g-kicker { margin: 0; font: 700 11px/1.2 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #5A4630; }
.g-card h2 { margin: 2px 0 0; font: 600 20px/1.2 Georgia, serif; }
.g-close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(25,30,42,.1); font-size: 20px; line-height: 1; color: #191E2A; }
.g-sub { margin: 12px 0 4px; font: 700 11px/1.2 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #5A4630; }
.g-op, .g-uses { margin: 2px 0; font-size: 15px; }
.g-op b { display: inline-block; min-width: 2.6em; }
.g-dossier { margin: 2px 0 6px; font-size: 15px; white-space: pre-line; }
.g-kind { margin: 2px 0 6px; font-size: 13px; font-style: italic; color: #5A4630; }
.g-op-sec { color: #4A3A28; border-left: 2px dotted currentColor; padding-left: 6px; }   /* secondary operation (decision 73) */
.g-note { margin: 12px 0 0; font-style: italic; font-size: 13.5px; color: #5A4630; }
.g-enter { display: block; width: 100%; margin-top: 14px; padding: 11px; border: 0; border-radius: 12px; background: #191E2A; color: #F5EDD8; font: 600 17px Georgia, serif; }

.g-toglobe { position: fixed; z-index: 40; right: 16px; top: calc(env(safe-area-inset-top) + 62px); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #C9A24A; background: rgba(15,29,63,.85); color: #F5EDD8; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.g-toglobe[hidden] { display: none; }
.g-root.g-fanning .g-badge:not(.g-focused) { filter: brightness(.45) saturate(.6); }
/* the badges' soft glow in their territory's colour (Ludovic 2026-10-14): a halo that breathes slowly; still under Reduce Motion */
.g-badge::before { content: ""; position: absolute; inset: -38%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow, #EDD185) 85%, #fff) 0%, color-mix(in srgb, var(--glow, #EDD185) 55%, transparent) 45%, transparent 100%);
  opacity: .55; animation: g-glow 3.2s ease-in-out var(--phase, 0s) infinite; }
@keyframes g-glow { 0%, 100% { opacity: .35; scale: .92; } 50% { opacity: .7; scale: 1.06; } }
@media (prefers-reduced-motion: reduce) { .g-badge::before { animation: none; opacity: .5; } }
.g-stage[data-mode="flat"] .g-badge { width: 44px; height: 44px; }

/* Recognition (recognize.js, 2026-10-13): the camera button beside the map toggle, the sheet in the card's place */
.g-recog .g-picks { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.g-recog .g-pick { flex: 1 1 140px; text-align: center; cursor: pointer; }
.g-recogout { display: flex; flex-direction: column; gap: 4px; }
.g-recogphoto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 6px 0; }
.g-looks { font-weight: 600; }
/* back to the start (2026-10-13): the globe's controls fade out before the chooser comes back */
.g-ui { transition: opacity .2s ease; }
.g-root.g-fade .g-ui { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .g-ui { transition: none; } }
/* the lens toggle "Public · Scholar" (decision 15): a small engraved parchment plate, gilt rules, the chosen lens in bold
   small caps underlined in gilt; under the head on the globe and the flat map, top right on the chooser */
.g-lens { position: absolute; z-index: 3; right: 16px; top: calc(env(safe-area-inset-top) + 58px); display: flex; gap: 4px; align-items: center; padding: 3px; border-radius: 999px; background: rgba(241,234,217,.92); border: 1px solid #cca34d; box-shadow: 0 1px 5px rgba(0,0,0,.3); font: 700 13px/1 Georgia, "Times New Roman", serif; color: #181e34; }
.g-lens button { width: 30px; height: 30px; border: 1.2px solid #181e34; border-radius: 50%; background: #f1ead9; padding: 0; font: inherit; color: #181e34; cursor: pointer; }
/* Ludovic 2026-10-14: unselected ink-outlined on parchment, chosen gilt-filled; ink on both passes AA (>= 4.5:1) */
.g-lens button[aria-pressed="true"] { background: #cca34d; border-width: 1.5px; }
.g-root[data-phase="choosing"] .g-lens { top: calc(env(safe-area-inset-top) + 16px); }
.g-chooser .g-lens { position: static; }

/* the world's name banner as the maps' header (chooser_eyes.css .ce-banner), switching with the morph */
/* left of the lens switch (top right), so neither covers the other on a 375 px phone */
.g-worldname { position: absolute; z-index: 2; left: 12px; top: calc(env(safe-area-inset-top) + 48px); display: grid; justify-items: start; pointer-events: auto; cursor: pointer; }
/* Ludovic 2026-10-14: the banner's parchment roll-down (levels, globe/map, camera); only its own box takes touches */
.g-roll { position: absolute; z-index: 3; left: 12px; top: calc(env(safe-area-inset-top) + 118px); width: 220px; padding: 10px;
  display: flex; flex-direction: column; gap: 4px; background: #F5EDD9; color: #2B1D12; border: 1px solid #C9A34A; border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,.4); transform-origin: top; animation: g-unroll .3s ease-out; }
.g-roll[hidden] { display: none; }
@keyframes g-unroll { from { transform: scaleY(.05); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .g-roll { animation: none; } }
.g-roll-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; color: #2B1D12;
  font: 600 14px/1.2 Georgia, serif; cursor: pointer; text-align: left; }
.g-roll-row svg { width: 20px; height: 20px; flex: none; }
.g-roll .g-levels { position: static; transform: none; background: none; padding: 0 0 6px; border-bottom: 1px solid rgba(90,70,48,.35); border-radius: 0; }
.g-roll .g-level { color: rgba(43,29,18,.75); }
.g-roll .g-level-dot { border-color: #2B1D12; background: rgba(43,29,18,.08); }
.g-roll .g-level[aria-pressed="true"] { color: #2B1D12; }
.g-roll .g-level[aria-pressed="true"] .g-level-dot { background: #2B1D12; }
.g-worldname > .ce-banner { grid-area: 1 / 1; transition: opacity .6s ease, scale .6s ease; }
.g-worldname > .g-banner-out, .g-worldname > .g-banner-in { opacity: 0; scale: .92; }
/* camera first (2026-10-14): "Choose a photo" small, on top of the card, under the camera */
.g-recog .g-pick-small { display: inline-block; margin: 6px 0 2px; padding: 4px 12px; font-size: 13px; border-radius: 14px; cursor: pointer; background: rgba(201,162,74,.18); border: 1px solid rgba(201,162,74,.6); color: inherit; }
/* the newest object (decision 78 refined): its medallion flying to its territory, then a pin at the screen's edge */
.g-flyer { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; will-change: transform; }
.g-pin { position: absolute; left: 0; top: 0; z-index: 5; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(15,29,63,.78); box-shadow: 0 0 0 1.5px #C9A24A, 0 3px 10px rgba(0,0,0,.5); cursor: pointer; will-change: transform; }
.g-pin[hidden] { display: none; }
.g-pin > .g-medal { position: absolute; inset: 4px; width: auto; height: auto; }
.g-pinarrow { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -6px 0 0 -4px; border-left: 9px solid #EDD185; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform-origin: 4px 6px; pointer-events: none; }
.g-obj.g-new .g-medal { animation: g-newpulse 1.4s ease-in-out infinite; }
@keyframes g-newpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(237,209,133,.9); } 50% { box-shadow: 0 0 0 9px rgba(237,209,133,0); } }
@media (prefers-reduced-motion: reduce) { .g-obj.g-new .g-medal { animation: none; outline: 2px solid #EDD185; outline-offset: 3px; } }

/* decision 79: Technotopia by levels; elements on the land, satellites in orbit, the level bullets */
.g-tt-arcs { position: absolute; inset: 0; pointer-events: none; }
.g-tt { position: absolute; left: 0; top: 0; padding: 0; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: #F5EDD8 center / cover no-repeat; border: 2px solid #E9C766; box-shadow: 0 0 8px rgba(245,204,97,.55), 0 2px 4px rgba(0,0,0,.45);
  color: #2B1D12; font: 600 15px/1 Georgia, serif; display: flex; align-items: center; justify-content: center; }
.g-tt-sat { border-width: 2.5px; box-shadow: 0 0 14px rgba(245,204,97,.75), 0 3px 8px rgba(0,0,0,.5); }
.g-tt-el { border-color: #C9A24A; }
.g-elmedal { display: flex; align-items: center; justify-content: center; color: #2B1D12; font: 600 22px/1 Georgia, serif; background-color: #F5EDD8; border-color: #E9C766; }
.g-tt-owner { margin-top: 4px; }
.g-levels { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px;
  padding: 6px 4px; border-radius: 12px; background: rgba(25,30,42,.45); z-index: 3; }
.g-levels[hidden] { display: none; }
.g-level { display: flex; align-items: center; gap: 7px; padding: 3px 8px; border: 0; background: none; color: rgba(245,244,240,.7);
  font: 12px/1.2 Georgia, serif; cursor: pointer; text-align: left; }
.g-level-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.2px solid rgba(245,244,240,.9); background: rgba(245,244,240,.08); flex: none; }
.g-level[aria-pressed="true"] { color: #F5F4F0; font-weight: 600; }
.g-level[aria-pressed="true"] .g-level-dot { width: 11px; height: 11px; background: #F5F4F0; }
.g-level:disabled { opacity: .35; cursor: default; }

/* Ludovic 2026-10-14: the globe/map toggle and the camera back on the page: a small vertical stack at the right edge,
   mid-height (clear of the banner, lens switch, Recent tab, caption and card); round engraved icons; only the buttons
   take touches; hidden in a territory focus (syncHead), with a card open or the Recent drawer out */
.g-mapctl { position: absolute; z-index: 2; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.g-mapctl[hidden] { display: none; }
.g-mapctl .g-round { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201,163,74,.8); box-shadow: inset 0 0 0 3px rgba(0,0,0,.45), inset 0 0 0 3.5px rgba(201,163,74,.35); background: rgba(0,0,0,.45); cursor: pointer; }
.g-mapctl .g-round svg { width: 20px; height: 20px; }
.g-mapctl .g-roll-word { display: none; }
.g-ui:has(.g-card:not([hidden])) .g-mapctl, .g-root:has(.g-recent-open) .g-mapctl { display: none; }
.g-roll-coming { margin: 0; font: italic 13px/1.3 Georgia, serif; color: rgba(43,29,18,.7); }
.g-roll-coming[hidden] { display: none; }
.g-roll .g-levels { border-bottom: 0; padding-bottom: 0; }
/* the banner's pull tab and glow, in every map state */
.g-pull { grid-area: 2 / 1; justify-self: start; margin: -6px 0 0 calc(50% - 27px); width: 54px; height: 18px; display: grid; place-items: center;
  background: #F5EDD9; border: 1px solid #C9A34A; border-top: 0; border-radius: 0 0 9px 9px; pointer-events: none; }
.g-pull::before { content: ""; width: 9px; height: 9px; border: solid #2B1D12; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.g-worldname.g-open .g-pull::before { transform: translateY(2px) rotate(-135deg); }
.g-worldname.g-glowing::before { content: ""; grid-area: 1 / 1; place-self: center; width: 110%; height: 120%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(237,209,133,.55), transparent); animation: g-glow 3.2s ease-in-out infinite; }
.g-worldname.g-open::before { display: none; }
@media (prefers-reduced-motion: reduce) { .g-worldname.g-glowing::before { animation: none; opacity: .5; } }

/* The intro film (introfilm.js, 2026-11-15): full screen on black, letterboxed, never cropped (the "Property of IRES"
   mark sits in the picture's bottom right); two small pills bottom left, as the native FilmIntroView's hint. */
.if-root { position: fixed; inset: 0; z-index: 1000; background: #000; opacity: 0; transition: opacity .7s ease; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.if-root.if-in { opacity: 1; }
.if-root.if-out { opacity: 0; pointer-events: none; }
.if-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
.if-pills { position: absolute; left: calc(env(safe-area-inset-left) + 20px); bottom: calc(env(safe-area-inset-bottom) + 20px); display: flex; gap: 10px; }
.if-pill { padding: 7px 14px; border: 0; border-radius: 999px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.75); font: 13px/1.2 Georgia, "Times New Roman", serif; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.if-pill:hover, .if-pill:focus-visible { color: #fff; background: rgba(0,0,0,.5); outline: none; box-shadow: 0 0 0 1px rgba(255,255,255,.45); }
.if-pill[hidden] { display: none; }
/* decision 273: the ghost phone asking to turn the screen (introfilm.js, ghosthand.js drawTurnHint): in the black above the picture */
.if-turn { position: absolute; width: 260px; height: 210px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .if-root { transition: none; } }

/* ---- The landing as the app's (2026-11-17; the phone's decisions 146 to 162, 170): the banner as the seam's handle
   with its eye (seam.js), the gear wheel, the globe's hold and its ring of sparks (portal.js), the depth ruler
   (depthruler.js). gate.js sets --eye, --lo, --hi, --x, --fold and --bs through the CSSOM. ---- */
.g-toprow { position: absolute; z-index: 3; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 8px); height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.g-toprow > * { pointer-events: auto; }
.g-toprow .g-lens { position: static; }
.g-toprow .g-recent { position: absolute; right: 0; top: 1px; }
.g-seam { --eye: 92px; --lo: 56px; --hi: 300px; --x: 56px; --fold: 0; --bs: 1; position: absolute; z-index: 2; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 52px); height: calc(var(--eye) + 30px); pointer-events: none; }
.g-seam-track { position: absolute; left: var(--lo); width: calc(var(--hi) - var(--lo)); top: calc(var(--eye) / 2 - 1px); height: 2px; background: radial-gradient(circle, rgba(245,219,143,.8) 0 1.1px, transparent 1.3px) 0 50% / 9px 2px repeat-x; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.7)); }
.g-seam-track::before, .g-seam-track::after { content: ""; position: absolute; top: -2.5px; width: 7px; height: 7px; border-radius: 50%; background: #d9b05c; box-shadow: 0 0 2px rgba(0,0,0,.6); }
.g-seam-track::before { left: -3.5px; }
.g-seam-track::after { right: -3.5px; }
.g-seam-chev { position: absolute; top: calc(var(--eye) / 2 - 13px); left: 0; width: 12px; height: 26px; color: #f5db8f; opacity: .45; filter: drop-shadow(0 0 2px rgba(0,0,0,.75)); animation: g-chev 1.1s ease-in-out infinite alternate; transition: opacity .2s ease; }
.g-seam-chev svg { display: block; width: 12px; height: 26px; }
.g-seam-chev-right { transform: translateX(calc(var(--x) + var(--eye) / 2 + 12px)); }
.g-seam-chev-left { transform: translateX(calc(var(--x) - var(--eye) / 2 - 24px)); }
.g-seam[data-at="human"] .g-seam-chev-right, .g-seam[data-at="machine"] .g-seam-chev-left, .g-seam[data-busy] .g-seam-chev { opacity: 0; animation: none; }
@keyframes g-chev { from { opacity: .45; margin-left: 0; } to { opacity: .95; margin-left: 5px; } }
.g-seam-chev-left { animation-name: g-chev-left; }
@keyframes g-chev-left { from { opacity: .45; margin-left: 0; } to { opacity: .95; margin-left: -5px; } }
/* the banner between the two docks: a board on its horizontal hinge, shut as the eye passes the middle */
.g-seam .g-worldname { left: 50%; top: calc(var(--eye) / 2 - 32px * var(--bs)); translate: -50% 0; justify-items: center; transform-origin: 50% 32px; transform: perspective(520px) rotateX(calc(var(--fold) * 88deg)) scale(calc((1 - .06 * var(--fold)) * var(--bs))); filter: brightness(calc(1 - .55 * var(--fold))); transition: opacity .2s ease, filter .12s ease; }
.g-seam .g-worldname:active { filter: brightness(1.12); }
.g-seam .g-pull { justify-self: center; margin: -6px 0 0; }
.g-seam-motto { grid-area: 3 / 1; margin: 3px 0 0; font: italic 15px/1.3 Georgia, "Times New Roman", serif; color: #F2E8D1; text-shadow: 0 1px 2px rgba(0,0,0,.85); white-space: nowrap; pointer-events: none; }
.g-seam[data-busy="wheel"] .g-worldname { opacity: .12; pointer-events: none; }
/* on a wide screen the banner stands in the room beside the globe, under the eye's track (the phone's decision 149) */
.g-seam[data-stacked] .g-worldname { left: 148px; top: calc(var(--eye) + 8px); }
.g-ui:has(.g-seam[data-stacked]) .g-roll { left: 16px; translate: none; }
.g-seamed .g-roll { left: 50%; translate: -50% 0; top: calc(env(safe-area-inset-top) + 52px + var(--roll-top, 96px)); }
/* the eye: the handle */
.g-seam-eye { pointer-events: auto; position: absolute; left: 0; top: 0; width: var(--eye); height: var(--eye); margin: 0 0 0 calc(var(--eye) / -2); padding: 0; border: 0; border-radius: 50%; background: none; transform: translateX(var(--x)); cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 0 9px rgba(245,219,143,.35)) drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.g-seam-eye:focus-visible { outline: 2px solid #f5db8f; outline-offset: 3px; }
.g-seam-eye[data-down] { cursor: grabbing; filter: drop-shadow(0 0 16px rgba(245,219,143,.85)) drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.g-seam-eyes { position: absolute; inset: 0; transition: scale .12s ease-out; animation: g-eye-lean 1.1s ease-in-out infinite alternate; }
.g-seam-eye[data-down] .g-seam-eyes { scale: .94; animation: none; }
.g-seam[data-busy] .g-seam-eyes { animation: none; }
.g-seam[data-busy="drag"] .g-seam-eyes { scale: 1.08; }
@keyframes g-eye-lean { from { translate: 0 0; } to { translate: 7px 0; } }
.g-seam[data-at="human"] .g-seam-eyes { animation-name: g-eye-lean-left; }
@keyframes g-eye-lean-left { from { translate: 0 0; } to { translate: -7px 0; } }
.g-seam-eye canvas { position: absolute; left: -2px; top: -2px; width: calc(100% + 4px); height: calc(100% + 4px); transition: transform .22s ease-in-out, opacity .22s ease-in-out; pointer-events: none; }
.g-seam[data-at="human"] .g-eye-machine, .g-seam[data-at="machine"] .g-eye-human { transform: scaleY(.06); opacity: 0; }
/* the ring wound round the eye by a press held (hold.js's charge) */
.g-seam-ring { position: absolute; left: -9px; top: -9px; width: calc(100% + 18px); height: calc(100% + 18px); overflow: visible; pointer-events: none; color: #f5db8f; opacity: 0; transition: opacity .15s ease; filter: drop-shadow(0 0 4px rgba(245,180,70,.8)); }
.g-seam-eye[data-ring] .g-seam-ring { opacity: 1; }
/* the gear wheel: the world's wheels spread from the eye, each sprung out in turn; never one over another */
.g-wheel { position: absolute; inset: 0; z-index: 6; pointer-events: auto; background: radial-gradient(circle at var(--wx) var(--wy), rgba(5,10,26,.62), rgba(5,10,26,.28) 60%, rgba(5,10,26,.12)); animation: g-wheel-in .2s ease-out; }
@keyframes g-wheel-in { from { opacity: 0; } to { opacity: 1; } }
.g-wheel-item { position: absolute; left: 0; top: 0; width: 84px; height: 88px; margin: -44px 0 0 -42px; padding: 0; border: 0; background: none; color: #F5EDD8; font: 600 12px/1.15 Georgia, "Times New Roman", serif; cursor: pointer; transform: translate(var(--tx), var(--ty)); transition: transform .45s cubic-bezier(.3, 1.45, .5, 1), opacity .25s ease; transition-delay: var(--delay, 0s); -webkit-tap-highlight-color: transparent; }
.g-wheel[data-folded] .g-wheel-item { transform: translate(var(--wx), var(--wy)) scale(.2); opacity: 0; }
.g-wheel-gear { display: block; width: 58px; height: 58px; margin: 0 auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.g-wheel-gear .g-gear-turn { transform-origin: 0 0; animation: g-gear-turn 14s linear infinite; }
.g-wheel-item:nth-child(even) .g-gear-turn { animation-direction: reverse; }
@keyframes g-gear-turn { to { transform: rotate(360deg); } }
.g-wheel-name { display: block; margin: 3px auto 0; padding: 3px 6px; max-width: 84px; border-radius: 4px; background: rgba(245,237,217,.94); color: #2B1D12; border: 1px solid #C9A34A; box-shadow: 0 1px 3px rgba(0,0,0,.4); text-wrap: balance; }
.g-wheel-item:focus-visible { outline: 2px solid #f5db8f; outline-offset: 2px; border-radius: 8px; }
.g-wheel-item[data-quiet] .g-wheel-gear { opacity: .72; }
.g-wheel-tag { display: block; margin-top: 2px; font: italic 11px/1.1 Georgia, serif; color: #f5db8f; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.g-wheel-note { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 70px); translate: -50% 0; width: min(420px, calc(100% - 32px)); margin: 0; padding: 10px 14px; border-radius: 10px; background: #F5EDD9; color: #2B1D12; border: 1px solid #C9A34A; box-shadow: 0 3px 8px rgba(0,0,0,.4); font: 14px/1.4 Georgia, "Times New Roman", serif; text-align: center; }
.g-wheel-note[hidden] { display: none; }
/* the globe's hold: the ring of sparks on its own canvas, the glimpse in the globe's middle, the coach's line */
/* decision 211: the chart rig (wind roses, rhumb lines, the measuring circle, the ring of words) on its canvas over the globe */
.g-rig { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.g-portal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.g-glimpse { position: absolute; left: 0; top: 0; z-index: 1; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, #ffd58a 0, #c9772a 38%, rgba(60,24,6,.9) 70%, transparent 100%) center / cover no-repeat; -webkit-mask-image: radial-gradient(circle, #000 0, #000 55%, transparent 100%); mask-image: radial-gradient(circle, #000 0, #000 55%, transparent 100%); }
.g-coach { position: absolute; z-index: 3; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 76px); translate: -50% 0; width: max-content; max-width: calc(100% - 96px); margin: 0; padding: 8px 14px; border-radius: 18px; background: rgba(0,0,0,.52); color: #F2E8D1; font: italic 15px/1.35 Georgia, "Times New Roman", serif; text-align: center; pointer-events: none; animation: g-wheel-in .4s ease-out; }
.g-coach[hidden] { display: none; }
/* the right column: the depth ruler, then the globe and map toggle and the camera under it */
.g-seamed .g-mapctl { top: calc(50% + 116px); transform: none; }
.g-seamed .g-hint { max-width: calc(100% - 132px); }
@media (max-height: 520px) {
  .g-seamed .g-mapctl { top: 50%; right: 64px; transform: translateY(-50%); }
}
.dr-root { position: fixed; z-index: 60; right: calc(env(safe-area-inset-right) + 8px); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 6px 4px; border-radius: 22px; background: rgba(8,12,24,.5); border: 1px solid rgba(201,163,74,.6); box-shadow: 0 1px 6px rgba(0,0,0,.35); font: 600 12.5px/1 Georgia, "Times New Roman", serif; color: #F5EDD8; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.dr-root[hidden] { display: none; }
.dr-scale { position: absolute; right: 21px; top: 22px; bottom: 22px; width: 1px; background: repeating-linear-gradient(rgba(245,219,143,.55) 0 2px, transparent 2px 6px); pointer-events: none; }
.dr-notch { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dr-pic { flex: none; width: 20px; height: 20px; margin: 0 1px; padding: 6px; border-radius: 50%; box-sizing: content-box; background: rgba(8,12,24,.85); color: rgba(245,237,216,.78); border: 1px solid transparent; transition: background-color .2s ease, color .2s ease, scale .2s ease; }
.dr-notch[aria-current="true"] .dr-pic { background: linear-gradient(#f5dc8f, #c9a24a); color: #21170a; border-color: #fff3c4; scale: 1.08; }
.dr-notch.dr-far .dr-pic { color: rgba(245,237,216,.36); }
.dr-notch:focus-visible { outline: 2px solid #f5db8f; outline-offset: 1px; border-radius: 18px; }
.dr-name { display: none; padding: 5px 9px; border-radius: 12px; background: rgba(8,12,24,.88); border: 1px solid rgba(201,163,74,.6); white-space: nowrap; }
.dr-notch[aria-current="true"] .dr-name { color: #f5db8f; }
.dr-root:hover .dr-name, .dr-root:has(.dr-notch:focus-visible) .dr-name, .dr-root.dr-touched .dr-name { display: block; }
@media (hover: none) { .dr-root:hover:not(.dr-touched) .dr-name { display: none; } }
/* decision 304 (b): on a narrow screen the ruler stands above an object's card at the foot (it hid under it before) */
@media (max-width: 640px) { .dr-root[data-card] { top: calc(env(safe-area-inset-top) + 64px); translate: 0 0; } }
.dr-hint { position: absolute; right: 50px; top: calc(6px + 40px * var(--dr-hint-at, 1) + 18px); translate: 0 -50%; width: max-content; max-width: min(240px, 60vw); margin: 0; padding: 7px 11px; border-radius: 12px; background: #F5EDD9; color: #2B1D12; border: 1px solid #C9A34A; box-shadow: 0 2px 6px rgba(0,0,0,.4); font: italic 13.5px/1.3 Georgia, "Times New Roman", serif; }
.dr-hint[hidden] { display: none; }
.dr-root:hover .dr-hint, .dr-root.dr-touched .dr-hint { right: 140px; }
@media (max-height: 420px) { .dr-notch { height: 30px; } .dr-pic { width: 16px; height: 16px; padding: 5px; } .dr-hint { top: calc(6px + 34px * var(--dr-hint-at, 1) + 15px); } }
@media (prefers-reduced-motion: reduce) {
  .g-seam-chev, .g-seam-eyes, .g-wheel, .g-wheel-gear .g-gear-turn, .g-coach { animation: none; }
  .g-wheel-item { transition: opacity .2s ease; }
}
/* the territory's door stands above its caption (it used to lie over it) */
.g-root .g-board-open { bottom: calc(env(safe-area-inset-bottom, 0px) + 68px); }
/* the cabins' layer (cabin.js fills the element it is given): over the globe, the app and the depth ruler */
.g-cabinhost { position: fixed; inset: 0; z-index: 70; }
.g-cabinhost[hidden] { display: none; }

/* The era dial (decisions 180, 183, 184, 192, 195; eradial.js): the engraved brass band round the globe, its notches,
   the seven era wheels sprung onto it one after another, the names bent along the ring outside them. Held, it takes no
   touch of its own (the finger on the globe turns it); opened from its button it stays and the whole screen turns it. */
.g-ui > .g-eras { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.g-eras[hidden] { display: none; }
/* 2026-11-19 (decisions 209, 222): the band is the measuring ring (two gilt rules, a tick every two degrees, a long
   mark between eras); the index clamp and the pointed era's one name are drawn on the dial's canvas, over the badges;
   locked open (a slide onto the ring, a lift once the clamp has locked, or the button), the dial takes its own touches
   over the whole page and a padlock stands at the ring's foot. */
.g-ui > .g-eras[data-locked][data-out] { pointer-events: auto; cursor: grab; touch-action: none; background: radial-gradient(circle at 50% 50%, rgba(5,10,26,.1), rgba(5,10,26,.45)); }
.g-ui > .g-eras[data-zoomed][data-out] { background: none; }
.g-eras-band { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.g-eras[data-out] .g-eras-band { opacity: 1; }
.g-eras-molten { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.g-eras-shade { fill: none; stroke: rgba(0,0,0,.35); stroke-width: 16; }
.g-eras-brass { fill: none; stroke: url(#g-era-brass); stroke-width: 6; }
.g-eras-rule { fill: none; stroke: rgba(201,162,74,.8); stroke-width: 1; }
.g-eras-ticks { fill: none; stroke: rgba(237,209,133,.9); stroke-width: 1.6; stroke-linecap: round; }
.g-eras-minor { stroke: rgba(201,162,74,.6); stroke-width: .8; }
.g-eras-padlock { opacity: 0; transition: opacity .3s ease; filter: drop-shadow(0 0 6px rgba(255,158,51,.8)); }
.g-eras[data-locked][data-out] .g-eras-padlock { opacity: 1; }
.g-eras-padlock-disc { fill: #291c0a; stroke: url(#g-era-brass); stroke-width: 1.6; }
.g-eras-padlock-body { fill: url(#g-era-brass); }
.g-eras-padlock-ink { fill: none; stroke: url(#g-era-brass); stroke-width: 2; stroke-linecap: round; }
.g-eras[data-zoomed] .g-eras-band, .g-eras[data-zoomed][data-out] .g-era-wheel { opacity: 0; }
.g-eras-name { fill: rgba(247,237,214,.9); font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: .1em; paint-order: stroke; stroke: rgba(0,0,0,.78); stroke-width: 3px; stroke-linejoin: round; transition: fill .2s ease; }
.g-eras-name.on { fill: #FFEDBF; font-weight: 700; }
.g-era-wheel { --d: 62px; position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: none;
  transform: translate(var(--x0, 0px), var(--y0, 0px)) scale(.2); opacity: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55));
  transition: transform .5s cubic-bezier(.3, 1.5, .5, 1) var(--delay, 0s), opacity .25s ease var(--delay, 0s), filter .2s ease; -webkit-tap-highlight-color: transparent; }
.g-eras[data-out] .g-era-wheel { transform: translate(var(--x), var(--y)) scale(.86); opacity: .82; transition-delay: var(--delay, 0s), var(--delay, 0s), 0s; }
.g-eras[data-out] .g-era-wheel[data-on] { opacity: 1; transition-delay: 0s; }
/* the clamp has locked on the pointed era: its badge at full size in the bezel, lit */
.g-eras[data-out] .g-era-wheel[data-lit] { transform: translate(var(--x), var(--y)) scale(1); filter: drop-shadow(0 0 10px rgba(255,158,51,.9)); transition-duration: .26s, .25s, .2s; transition-timing-function: ease-in-out, ease, ease; }
.g-era-wheel:focus-visible { outline: 2px solid #f5db8f; outline-offset: 3px; }
.g-era-gear { display: block; width: 100%; height: 100%; }
.g-era-wheel:not([data-lit]) .g-gear-turn { animation: none; }
.g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g-eras-help { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 18px); translate: -50% 0; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 7px 13px; border-radius: 16px; background: rgba(0,0,0,.55); color: #F2E8D1; font: italic 14px/1.3 Georgia, "Times New Roman", serif; text-align: center; pointer-events: none; }
.g-eras-help[hidden] { display: none; }
/* while the dial is out the page's controls step back (only the globe draws back, decision 184; the page stays) */
.g-root.g-dialing .g-seam, .g-root.g-dialing .g-toprow, .g-root.g-dialing .g-mapctl, .g-root.g-dialing .g-foot, .g-root.g-dialing .g-hint, .g-root.g-dialing .g-eraplate { opacity: .12; pointer-events: none; transition: opacity .25s ease; }
.g-root.g-dialing .g-seam * { pointer-events: none; }
/* the plate naming the era shown (decision 192: where the ring and its sparks never reach); a tap: back to Today */
.g-eraplate { position: absolute; left: 0; top: 0; z-index: 3; transform: translate(var(--px, 50vw), var(--py, 120px)) translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: 1.2px solid #C9A24A; border-radius: 999px; background: rgba(13,18,36,.86); color: #FFF2D1; font: 600 17px/1 Georgia, "Times New Roman", serif; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: pointer; animation: g-wheel-in .3s ease-out; }
.g-eraplate[hidden] { display: none; }
.g-eraplate:focus-visible { outline: 2px solid #f5db8f; outline-offset: 2px; }
.g-eraplate-wheel { display: block; width: 34px; height: 34px; }
.g-eraplate-wheel svg { display: block; width: 100%; height: 100%; }
.g-eraplate-back { font-size: 13px; opacity: .7; }

/* The ring at the foot (decisions 170, 178, 185, 186; footring.js): half of the eye's ring of molten metal rises from
   the bottom edge, a small gear turning in it; open, the page dims and the wheels spring out of it onto a half circle. */
.g-ui > .g-foot { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.g-foot-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.g-foot-veil { position: absolute; inset: 0; pointer-events: auto; background: rgba(0,0,0,.5); animation: g-wheel-in .25s ease-out; }
.g-foot-veil[hidden] { display: none; }
.g-foot-ring { --rise: 4px; position: absolute; left: 50%; bottom: calc(var(--rise) - 52px); width: 104px; height: 104px; margin-left: -52px; padding: 0; border: 0; border-radius: 50%; background: none; pointer-events: auto; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: bottom .42s cubic-bezier(.3, 1.4, .5, 1), scale .2s ease; }
.g-foot[data-armed] .g-foot-ring { --rise: 8px; }
.g-foot[data-open] .g-foot-ring { --rise: 46px; }
.g-foot-ring[data-down] { scale: 1.08; }
/* decision 213: until its wheels have been opened once the ring at the foot breathes (the strange ring is the sign of an
   action to find); the cabin's wheel wears a glowing ring until a cabin has been entered once; the ghost hand
   (ghosthand.js) is drawn on its own canvas over the page and takes no touch */
.g-foot[data-invite]:not([data-open]) .g-foot-ring { animation: g-foot-invite 2.6s ease-in-out infinite; }
@keyframes g-foot-invite { 0%, 100% { scale: 1; filter: none; } 50% { scale: 1.16; filter: brightness(1.25) drop-shadow(0 0 10px rgba(255,150,40,.8)); } }
.g-foot-wheel[data-invite] .g-foot-gear { animation: g-wheel-invite 1.8s ease-in-out infinite; }
@keyframes g-wheel-invite { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255,150,40,.5)); } 50% { filter: drop-shadow(0 0 12px rgba(255,170,60,1)) brightness(1.12); } }
.g-helpbtn { font: 600 19px/1 Georgia, "Times New Roman", serif; }
.g-ui > .g-ghost { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 9; pointer-events: none; }
.g-foot-ring:focus-visible { outline: 2px solid #f5db8f; outline-offset: -14px; }
.g-foot-sparks { position: absolute; left: -18px; top: -18px; width: 140px; height: 140px; pointer-events: none; }
.g-foot-hub { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; translate: -50% -50%; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); transition: width .3s ease, height .3s ease; }
.g-foot[data-open] .g-foot-hub { width: 44px; height: 44px; }
.g-foot-hub .g-gear-turn { animation: g-gear-turn 18s linear infinite; }
.g-foot[data-open] .g-foot-hub .g-gear-turn { animation-play-state: paused; }
.g-foot-mark { stroke-width: 3.2; }
.g-foot[data-armed]:not([data-open]) .g-foot-mark { stroke: #f8e6a8; stroke-width: 2.4; filter: drop-shadow(0 0 3px #c9a24a); transform: scale(1.3); }
.g-foot-wheels { position: absolute; inset: 0; pointer-events: none; }
.g-foot-wheel { --d: 80px; position: absolute; left: 0; top: 0; width: calc(var(--d) * 1.295); margin: calc(var(--d) * -0.75) 0 0 calc(var(--d) * -0.6475); padding: 0; border: 0; background: none; color: #F5EBD1; cursor: pointer; pointer-events: auto; text-align: center;
  transform-origin: 50% calc(var(--d) * 0.75); transform: translate(var(--tx), var(--ty)); opacity: 1;
  transition: transform .5s cubic-bezier(.3, 1.45, .5, 1) var(--delay, 0s), opacity .25s ease var(--delay, 0s); -webkit-tap-highlight-color: transparent; }
.g-foot-wheel[data-folded] { transform: translate(var(--rx), var(--ry)) scale(.12); opacity: 0; pointer-events: none; }
.g-foot-gear { display: block; width: var(--d); height: var(--d); margin: 0 auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }
.g-foot-wheel .g-gear-turn { animation: g-gear-turn 22s linear infinite; }
.g-foot-wheel:nth-child(even) .g-gear-turn { animation-direction: reverse; }
.g-foot-gear .g-gear-turn, .g-era-gear .g-gear-turn, .g-foot-hub .g-gear-turn { transform-origin: 0 0; }
.g-era-wheel[data-lit] .g-gear-turn { animation: g-gear-turn 9s linear infinite; }
.g-foot-sheen { fill: url(#g-foot-brass); opacity: .14; }
.g-foot-name { display: block; box-sizing: border-box; width: 100%; min-height: calc(var(--d) * .477); margin: calc(var(--d) * .045) auto 0; padding: 3px 6px; border-radius: 9px; background: rgba(13,18,36,.86); border: .6px solid rgba(201,163,74,.55); font: 600 max(11px, calc(var(--d) * .165))/1.15 Georgia, "Times New Roman", serif; text-wrap: balance; }
.g-foot-wheel[data-quiet] .g-foot-gear { opacity: .72; }
.g-foot-wheel[data-current] .g-foot-gear { filter: drop-shadow(0 0 7px rgba(255,158,51,.95)); }
.g-foot-wheel:focus-visible { outline: 2px solid #f5db8f; outline-offset: 2px; border-radius: 10px; }
.g-foot-back { position: absolute; left: 50%; top: 0; transform: translate(-50%, var(--ty, 50vh)); padding: 5px 12px; border: .8px solid rgba(51,33,15,.7); border-radius: 999px; background: linear-gradient(#f8e1a0, #c9a34a); color: #21170a; font: 600 14px/1 Georgia, "Times New Roman", serif; cursor: pointer; pointer-events: auto; animation: g-wheel-in .3s ease-out; }
.g-foot-back[hidden] { display: none; }
.g-foot-note { position: absolute; left: 50%; top: 34%; translate: -50% -50%; width: min(420px, calc(100% - 32px)); margin: 0; padding: 10px 14px; border-radius: 10px; background: #F5EDD9; color: #2B1D12; border: 1px solid #C9A34A; box-shadow: 0 3px 8px rgba(0,0,0,.4); font: 14px/1.4 Georgia, "Times New Roman", serif; text-align: center; pointer-events: auto; }
.g-foot-note[hidden] { display: none; }
/* an armed family line: a gilt thread runs from the ring up toward the globe (decision 178) */
.g-foot-thread { position: absolute; left: 50%; bottom: 36px; width: 2px; height: min(150px, 20%); margin-left: -1px; opacity: 0; pointer-events: none; background: repeating-linear-gradient(to top, #f5db8f 0 6px, transparent 6px 14px); filter: drop-shadow(0 0 3px rgba(245,219,143,.8)); animation: g-thread .5s linear infinite; transition: opacity .3s ease; }
.g-foot[data-armed]:not([data-open]) .g-foot-thread { opacity: .9; }
/* decision 236: the armed tool's brass plate over its thread (a tap lays the tool down) */
.g-foot-armed { position: absolute; left: 50%; bottom: calc(44px + min(150px, 20%)); translate: -50% 0; width: max-content; max-width: min(360px, calc(100% - 32px)); margin: 0; padding: 8px 14px; border: 1px solid #6B4C1F; border-radius: 8px; background: linear-gradient(#F7E099, #C9A24A); color: #2B1D12; font: 600 13.5px/1.3 Georgia, "Times New Roman", serif; text-align: center; box-shadow: 0 3px 9px rgba(0,0,0,.5); pointer-events: auto; cursor: pointer; z-index: 1; }
.g-foot-armed[hidden], .g-foot[data-open] .g-foot-armed { display: none; }
.g-foot-armed[data-none] { background: #F5EDD9; }
.g-foot-armed:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes g-thread { to { background-position: 0 -14px; } }
/* the ring stands aside under a card and the drawer of recent objects; the hint and the coach stand above it */
.g-ui:has(.g-card:not([hidden])) .g-foot, .g-root:has(.g-recent-open) .g-foot { display: none; }
.g-ui.g-footed .g-hint { bottom: calc(env(safe-area-inset-bottom) + 66px); }
.g-ui.g-footed .g-coach { bottom: calc(env(safe-area-inset-bottom) + 158px); }
.g-root:has(.g-ui.g-footed) .g-board-open { bottom: calc(env(safe-area-inset-bottom, 0px) + 112px); }
.g-ui:has(.g-foot[data-open]) .g-hint, .g-ui:has(.g-foot[data-open]) .g-coach, .g-root:has(.g-foot[data-open]) .g-board-open, .g-ui:has(.g-foot[data-open]) .g-eraplate { opacity: 0; pointer-events: none; }
.g-root.g-dialing .g-coach, .g-root.g-dialing .g-board-open { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .g-era-wheel, .g-foot-wheel, .g-foot-ring { transition: opacity .15s ease; }
  .g-foot[data-invite]:not([data-open]) .g-foot-ring, .g-foot-wheel[data-invite] .g-foot-gear { animation: none; filter: drop-shadow(0 0 8px rgba(255,160,50,.9)); }
  .g-era-gear .g-gear-turn, .g-foot-gear .g-gear-turn, .g-foot-hub .g-gear-turn, .g-foot-thread, .g-eraplate, .g-foot-veil { animation: none; }
}

/* ---- A picked territory's name as its own banner (namebanner.js; the phone's decisions 272 and 275): the cabin's engraved
   escutcheon (cabin.css .cb-plate*), in the territory's hue (--nb-ground, --nb-rule, --nb-gilt set through the CSSOM).
   Upright: the small plate in the top row between the lens switch and the "Recently added" button; on its side: the
   full plate at the left, in the room beside the globe. A tap goes back to the overview. ---- */
.g-nb {
  --nb-ground: rgb(15, 18, 31); --nb-rule: rgb(217, 176, 92); --nb-gilt: rgb(217, 176, 92); --nb-w: 250px;
  --nb-display: "Didot", "Bodoni 72", "Big Caslon", "Hoefler Text", "Iowan Old Style", "Noto Serif", Georgia, serif;
  --nb-sans: system-ui, -apple-system, "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  position: relative; flex: 0 1 auto; box-sizing: border-box; width: max-content; max-width: var(--nb-w); min-width: 0; margin: 0; padding: 9px 18px;
  border: 0; background: none; color: rgb(250, 240, 214); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); opacity: 0; scale: 0.94; visibility: hidden;
  transition: opacity 0.3s ease-out, scale 0.3s ease-out, visibility 0s linear 0.3s;
}
.g-nb[data-on] { opacity: 1; scale: 1; visibility: visible; transition-delay: 0s; }
.g-nb:focus-visible { outline: 2px solid var(--nb-gilt); outline-offset: 3px; }
.g-nb[data-slot="left"] { position: absolute; left: calc(max(env(safe-area-inset-left), 0px) + 16px); bottom: calc(max(env(safe-area-inset-bottom), 0px) + 74px); z-index: 3; }
.g-nb[data-compact] { padding: 5px 12px; }
.g-toprow[data-named] { justify-content: flex-start; padding-right: 54px; }
.g-toprow[data-named] .g-nb { margin: 0 auto; }
.g-nb-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.g-nb-ground { fill: var(--nb-ground); stroke: var(--nb-rule); stroke-width: 1.8; }
.g-nb-inner { fill: none; stroke: rgba(217, 176, 92, 0.6); stroke-width: 0.7; }
.g-nb-rivet { fill: var(--nb-gilt); }
.g-nb-line { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.g-nb-badge { flex: none; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.g-nb[data-compact] .g-nb-badge { width: 28px; height: 28px; }
.g-nb-badge[hidden], .g-nb-tail[hidden] { display: none; }
.g-nb-text { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.g-nb-head { font: 19px/1.15 var(--nb-display); letter-spacing: 2.2px; text-transform: uppercase; text-wrap: balance; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7); }
.g-nb-tail { font: 600 13px/1.2 var(--nb-sans); letter-spacing: 1.6px; text-transform: uppercase; color: rgb(237, 219, 173); text-wrap: balance; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7); }
.g-nb[data-compact] .g-nb-head { font-size: 15px; letter-spacing: 1.6px; }
.g-nb[data-compact] .g-nb-tail { font-size: 10px; letter-spacing: 1.1px; }
.g-nb-rule { display: flex; align-items: center; gap: 5px; width: 120px; margin-top: 2px; }
.g-nb-rule::before, .g-nb-rule::after { content: ""; flex: 1; height: 0.8px; background: rgba(217, 176, 92, 0.7); }
.g-nb-lozenge { width: 5px; height: 5px; background: var(--nb-gilt); transform: rotate(45deg); }
.g-nb[data-compact] .g-nb-rule { display: none; }
.g-root.g-dialing .g-nb { opacity: .12; pointer-events: none; transition: opacity .25s ease; }
.g-ui:has(.g-foot[data-open]) .g-nb[data-slot="left"] { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .g-nb { transition: none; } }
/* decision 273: while the help plays (dimmed, with its dots at the foot) the hint's sentence and the coach step aside */
.g-ui:has(.g-ghost[data-help]) .g-hint, .g-ui:has(.g-ghost[data-help]) .g-coach { opacity: 0; }

/* The Crossing (crossing.js, decisions 295-306): the opening ceremony after the film, over everything. */
.cx-root { position: fixed; inset: 0; z-index: 990; background: #08091C; color: #F5EDD9; opacity: 0; transition: opacity .6s ease; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; font: 18px/1.4 Georgia, "Times New Roman", serif; }
.cx-root.cx-in { opacity: 1; }
.cx-root.cx-out { opacity: 0; pointer-events: none; }
.cx-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.cx-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(8,9,28,0) 55%, rgba(8,9,28,.7) 78%, rgba(8,9,28,.95)); }
.cx-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + 16px) calc(env(safe-area-inset-left) + 16px); box-sizing: border-box; }
.cx-ui button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.cx-ui button:focus-visible, .cx-skip:focus-visible { outline: 2px solid #F5DB8F; outline-offset: 3px; }
/* the Skip plate (decision 299 (b): a dark escutcheon, gilt rule and inner fillet, engraved small capitals, never italic) */
.cx-skip { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + 10px); right: calc(env(safe-area-inset-right) + 16px); min-height: 44px; min-width: 88px; padding: 0 18px; border: 1.5px solid #D9B05C; border-radius: 6px; background: linear-gradient(#211a2c, #120e1a); box-shadow: inset 0 0 0 3px #120e1a, inset 0 0 0 4px rgba(217,176,92,.45), 0 2px 8px rgba(0,0,0,.5); color: #F5DB8F; font: 600 16px/1 Georgia, "Times New Roman", serif; font-variant: small-caps; letter-spacing: .08em; cursor: pointer; }
.cx-skip[hidden] { display: none; }
/* a beat of the key */
.cx-beat { flex: 1; width: 100%; max-width: 600px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 14px; padding-bottom: 18px; text-align: center; cursor: pointer; }
.cx-head { margin: 0; font: 700 34px/1.15 Georgia, "Times New Roman", serif; color: #F5DB8F; text-shadow: 0 0 14px rgba(245,219,143,.6); animation: cx-pop .5s ease-out; }
.cx-line { margin: 0; font-size: clamp(18px, 5.2vw, 23px); line-height: 1.38; color: #F5EDD9; text-shadow: 0 1px 4px rgba(0,0,0,.9); animation: cx-rise .5s ease-out; }
.cx-hint { margin: 0; font: 600 17px/1.3 Georgia, "Times New Roman", serif; color: #F5DB8F; animation: cx-breathe 2.2s ease-in-out infinite; }
.cx-onward { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #F5DB8F; background: radial-gradient(rgba(245,219,143,.18), transparent 70%); color: #F5DB8F !important; display: grid; place-items: center; cursor: pointer; animation: cx-glow 2.2s ease-in-out infinite; }
/* a question */
.cx-q { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 58px; box-sizing: border-box; text-align: center; }
.cx-beads { position: relative; display: flex; align-items: center; gap: 10px; }
.cx-beads::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(217,176,92,.5); }
.cx-bead { position: relative; width: 7px; height: 7px; border-radius: 50%; background: rgba(245,237,217,.25); }
.cx-bead.cx-lit { background: #F5DB8F; }
.cx-bead.cx-now { width: 11px; height: 11px; box-shadow: 0 0 6px #F5DB8F; }
.cx-qline { margin: 0; max-width: 560px; font: 600 clamp(21px, 6vw, 26px)/1.25 Georgia, "Times New Roman", serif; color: #F5EDD9; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.cx-qhint { margin: 0 14px; font-size: 15.5px; color: rgba(245,237,217,.78); }
.cx-carousel { position: relative; width: 100%; flex: none; }
.cx-opt { position: absolute; left: 50%; top: 50%; padding: 0; border: 0; background: none; cursor: pointer; transition: filter .3s; filter: drop-shadow(0 0 12px rgba(245,219,143,.25)); }
.cx-opt.cx-picked { filter: drop-shadow(0 0 24px rgba(245,219,143,.9)); }
.cx-optimg { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cx-labelrow { display: flex; align-items: center; gap: 16px; }
.cx-optlabel { margin: 0; width: min(300px, 62vw); min-height: 2.6em; display: grid; place-items: center; font: 600 18.5px/1.3 Georgia, "Times New Roman", serif; color: #F5EDD9; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.cx-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.4px solid rgba(217,176,92,.7); background: rgba(8,9,28,.35); color: #F5DB8F !important; display: grid; place-items: center; cursor: pointer; }
.cx-arrow:disabled { opacity: .2; cursor: default; }
.cx-diamonds { display: flex; align-items: center; gap: 11px; }
.cx-diamond { width: 8px; height: 8px; rotate: 45deg; background: rgba(245,237,217,.3); transition: all .3s; }
.cx-diamond.cx-lit { width: 11px; height: 11px; background: #F5DB8F; }
/* the landing */
.cx-result, .cx-choose { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; animation: cx-pop .5s ease-out; }
.cx-over { margin: 0; font: 600 15px/1 Georgia, "Times New Roman", serif; letter-spacing: .2em; text-transform: uppercase; color: #F5DB8F; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.cx-rline { margin: 0; font-size: 21px; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.cx-banner { display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.cx-badge { position: relative; display: grid; place-items: center; }
.cx-ring { position: absolute; left: 0; top: 0; }
.cx-badgeimg { position: relative; border-radius: 50%; object-fit: cover; }
.cx-ribbon { position: relative; box-sizing: border-box; flex: none; }
.cx-ribboncanvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.cx-after { position: relative; margin: 0; font: 600 clamp(15.5px, 4.4vw, 18px)/1.36 Georgia, "Times New Roman", serif; color: rgb(51,26,41); }
.cx-rings { display: flex; align-items: flex-start; justify-content: center; gap: 36px; margin-top: 4px; }
.cx-ringbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 150px; padding: 0; border: 0; background: none; cursor: pointer; }
.cx-ringface { width: 52px; height: 52px; border-radius: 50%; border: 1.8px solid #D9B05C; display: grid; place-items: center; color: #F5DB8F; box-shadow: 0 0 4px rgba(245,219,143,.15); }
.cx-primary .cx-ringface { width: 64px; height: 64px; border-width: 2.6px; border-color: #F5DB8F; background: radial-gradient(rgba(245,219,143,.35), transparent 70%); animation: cx-glow 2.2s ease-in-out infinite; }
.cx-ringname { font: 600 17px/1.25 Georgia, "Times New Roman", serif; color: #F5EDD9; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.cx-primary .cx-ringname { color: #F5DB8F; }
.cx-change { margin: 0; font-size: 15.5px; color: rgba(245,237,217,.82); text-shadow: 0 1px 3px rgba(0,0,0,.9); }
/* the wheel of shores */
.cx-wheel { position: relative; flex: none; touch-action: none; }
.cx-track { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; border: 1.2px dashed rgba(217,176,92,.5); pointer-events: none; }
.cx-shore { position: absolute; left: 50%; top: 50%; padding: 0; border: 1px solid rgba(217,176,92,.6); border-radius: 50%; background: #120e1a; overflow: hidden; cursor: pointer; box-shadow: 0 0 6px rgba(0,0,0,.5); }
.cx-shore.cx-home { border: 3px solid #F5DB8F; box-shadow: 0 0 10px #F5DB8F; }
.cx-shoreimg { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cx-wheelname { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; font: 600 17px/1.3 Georgia, "Times New Roman", serif; pointer-events: none; }
/* decision 301: a phone held sideways is asked to turn upright */
.cx-turnbox { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 28px; background: rgba(8,9,28,.86); }
.cx-turnbox[hidden] { display: none; }
.cx-turnword { margin: 0; max-width: 280px; font: 600 22px/1.3 Georgia, "Times New Roman", serif; }
@media (orientation: landscape) and (max-height: 560px) {
  .cx-q { padding-top: 30px; gap: 5px; }
  .cx-result, .cx-choose { gap: 6px; }
}
@keyframes cx-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes cx-glow { 0%, 100% { transform: scale(.95); box-shadow: 0 0 4px rgba(245,219,143,.25); } 50% { transform: scale(1.07); box-shadow: 0 0 12px rgba(245,219,143,.75); } }
@keyframes cx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cx-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cx-root { transition: none; }
  .cx-head, .cx-line, .cx-hint, .cx-onward, .cx-primary .cx-ringface, .cx-result, .cx-choose { animation: none; }
  .cx-opt, .cx-diamond { transition: none; }
}
