/* Fun Room round 2: Travel (fr-globe.js). The globe, two passports, the place sheet. Prefix gb-. Painted pieces: Codex batch 35
   (map case, pins, stamps) and batch 36 (globe ring, compass rose, name ribbon, passport page), all in art/scene/.
   The two passport covers are drawn in CSS until Codex paints them. */
.sc-globe{--noise:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='3'/><feColorMatrix values='0 0 0 0 .7  0 0 0 0 .7  0 0 0 0 .8  0 0 0 .2 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  --foil:linear-gradient(168deg,#fff2c0 8%,#e9c264 34%,#a8791f 56%,#f0d488 78%,#c9973a)}
.gb-world{--l1:#22345e;--l2:#0d1730;--l3:#0a1226}
.gb-us{--l1:#6a1d26;--l2:#3a0d14;--l3:#2a080d}

/* ----- round 3: the controls beside the globe (outside it: a drag on the globe captures the finger). North at the upper
   left, the globe / flat map key at the upper right, in the corners the round ring leaves free (Marc, FEEDBACK-ROUND-3) ----- */
.gb-ctl{grid-area:1/1;position:relative;width:min(100cqw,100cqh);aspect-ratio:1;pointer-events:none;z-index:4}
.gb-btn{position:absolute;top:0;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;pointer-events:auto;color:#3a2408;
  background:url("art/scene/brass-button.webp") center/cover;filter:drop-shadow(0 2px 3px rgba(0,0,0,.55))}
.gb-btn:active{transform:scale(.93)}
.gb-north{left:2px}
.gb-mapkey{right:2px}
.gb-flat .gb-north{display:none}
.gb-btn.painted{background:none;color:transparent}
.gb-btn.painted svg{display:none}
.gb-btn.painted img{width:100%;height:100%}
/* where a pick from the workbench lands: the middle of the globe glows */
.gb-landing{position:absolute;left:32%;top:32%;width:36%;height:36%;border-radius:50%;pointer-events:none}
/* adding: Been there or Want to go, on the globe's lower edge over the key (the place itself sits in the middle of the
   globe, its name on the ribbon at the top, so nothing covers it); the swap card grows upward from there */
.gb-ask{position:absolute;left:2%;right:2%;bottom:-30px;display:none;justify-content:center;align-items:flex-end;pointer-events:auto}
.gb-ask.on{display:flex;animation:gbask .3s cubic-bezier(.2,1.3,.4,1)}
@keyframes gbask{from{opacity:0;transform:translateY(-6px) scale(.94)}}
.gb-askrow{display:flex;align-items:center;gap:8px;padding:5px;border-radius:999px;background:rgba(10,18,38,.55);box-shadow:0 4px 12px rgba(0,0,0,.45)}
.gb-ask .gb-pill{background:linear-gradient(#fbf1d6,#e4cc92);border-color:#7a5418;color:#3a2408;box-shadow:0 2px 4px rgba(0,0,0,.4)}
.gb-ask .gb-pill.on{background:linear-gradient(#fff4c8,#e9c264 38%,#b8862c 58%,#d9ae52 82%,#f0d488)}
.gb-ask .gb-pill.w.on{background:linear-gradient(#5b8ad8,#1f4a96);color:#fff;border-color:#0f2a5a}
.gb-askx{flex:none;width:44px;height:44px;margin:-4px;border-radius:50%;display:grid;place-items:center;color:#f6e7c4;background:radial-gradient(circle closest-side,rgba(0,0,0,.4) 80%,transparent 82%)}
.gb-askx svg{width:14px;height:14px}
.gb-ask.full{flex-direction:column;align-items:center;gap:6px}
.gb-ask.full .gb-swap{padding:8px 10px 10px;border-radius:14px;background:linear-gradient(#fbf1d6,#e4cc92);border:1.5px solid #7a5418;box-shadow:0 4px 12px rgba(0,0,0,.5)}
.gb-pin{width:22px;height:22px;flex:none;margin:-3px -2px 0 -4px;object-fit:contain}
/* three places to go already: tap one to swap it */
.gb-swap p{margin:0 0 6px;text-align:center;font:600 13px/1.25 var(--display);color:#3a2408}
.gb-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.gb-chip{min-height:44px;max-width:100%;padding:0 12px 0 8px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font:700 12.5px var(--display);color:#fff;
  background:linear-gradient(#5b8ad8,#1f4a96);border:1.5px solid #0f2a5a;box-shadow:0 2px 4px rgba(0,0,0,.35)}
.gb-chip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-chip .gb-flag{width:20px;height:15px;object-fit:contain;box-shadow:none;border-radius:1px}
.gb-chip:active{transform:scale(.96)}
/* "Pinch to zoom", once */
.gb-pinch{position:absolute;left:50%;bottom:14%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:6px 12px 6px 8px;border-radius:999px;
  font:600 13px var(--display);color:#fbf1d6;background:rgba(6,12,28,.6);opacity:0;transition:opacity .5s;pointer-events:none;white-space:nowrap}
.gb-pinch.on{opacity:1}
/* the key under the globe */
.gb-key{position:absolute;left:0;right:0;bottom:0;height:28px;display:flex;align-items:center;justify-content:center;gap:16px;pointer-events:none;
  font:600 13px var(--display);letter-spacing:.02em;color:#f3e2bb;text-shadow:0 1px 2px rgba(0,0,0,.85)}
.gb-key span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.gb-key .gb-pin{width:20px;height:20px;margin:-2px 0 0}
.gb-kcoin{width:21px;height:21px;border-radius:50%;display:inline-grid;place-items:center;font:700 12px Georgia,serif;font-style:normal;color:#2a1806;text-shadow:none;
  background:radial-gradient(circle at 35% 30%,#fff3c4,#e9c264 50%,#9c6e1c);border:1.2px solid #5a3a10}
.gb-key.painted{background:url("art/b69/key.webp") center/contain no-repeat;height:30px;bottom:-1px}
.gb-key.painted span{visibility:hidden}
.gb-kcoin.painted{background:url("art/b69/coin.webp") center/100% no-repeat;border:0;width:24px;height:24px}
.gb-pinch img{width:24px;height:24px}

/* ----- the stage: the globe fills the width in its brass ring; the map sits in the walnut-and-brass map case ----- */
.sc-globe .k-stage{overflow:visible}
.gb-fit{position:absolute;inset:0 0 28px;display:grid;place-items:center;pointer-events:none;container-type:size}
.gb-stage{--ring:1;grid-area:1/1;position:relative;width:min(100cqw,100cqh);aspect-ratio:1;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;pointer-events:auto;transform-origin:50% 50%}
.gb-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.gb-ovs{will-change:transform}
.gb-stage.globe::before{content:"";position:absolute;left:10%;right:10%;bottom:0;height:8%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.6),transparent);opacity:var(--ring)}
.gb-ring{position:absolute;left:50%;top:50%;width:106%;transform:translate(-50%,-50%);pointer-events:none;opacity:var(--ring);filter:drop-shadow(0 6px 10px rgba(0,0,0,.55))}
.gb-stage.map .gb-ring,.gb-stage.map::before,.gb-stage.map .gb-glint,.gb-stage.map .gb-clouds{display:none}
.gb-case{display:none;position:absolute;inset:0;pointer-events:none;
  border-style:solid;border-width:33px 26px 35px 26px;
  border-image:url("art/scene/map-frame.webp") 149 117 155 116 / 33px 26px 35px 26px stretch;
  filter:drop-shadow(0 8px 12px rgba(0,0,0,.55))}
.gb-stage.map .gb-case{display:block}
.gb-compass{display:none;position:absolute;left:32px;bottom:42px;width:62px;pointer-events:none;opacity:.94;filter:drop-shadow(0 3px 5px rgba(0,0,0,.6))}
.gb-stage.map .gb-compass{display:block}
.gb-wait{position:absolute;inset:7%;border-radius:50%;display:grid;place-items:center;color:var(--lamp);font:600 14px var(--display);
  background:radial-gradient(circle at 36% 30%,#3a6fbf,#123067 60%,#0a1a3a)}
.gb-wait span{width:34px;height:34px;border-radius:50%;border:3px solid rgba(255,217,138,.25);border-top-color:var(--lamp);animation:gbspin 1s linear infinite}
@keyframes gbspin{to{transform:rotate(360deg)}}
.gb-stage.nogl::after{content:"This phone cannot draw the globe";position:absolute;inset:40% 10%;text-align:center;color:var(--cream)}
.sc-globe.k-finding .gb-stage{transition:transform .35s cubic-bezier(.3,.9,.3,1)}

/* life: clouds drift slowly over the globe, the brass ring glints now and then */
.gb-clouds{position:absolute;inset:6.667%;border-radius:50%;overflow:hidden;pointer-events:none;opacity:var(--ring)}
.gb-cloud{position:absolute;top:var(--y);left:-60%;width:var(--w);aspect-ratio:2.4;border-radius:50%;filter:blur(5px);transform:scale(var(--s));
  background:radial-gradient(ellipse at 42% 46%,rgba(255,255,255,var(--o)) 0,rgba(255,255,255,calc(var(--o)*.55)) 38%,transparent 70%);animation:gbcloud var(--dur) linear var(--delay) infinite}
@keyframes gbcloud{from{left:-60%}to{left:105%}}
.gb-glint{position:absolute;left:50%;top:50%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;opacity:var(--ring);
  -webkit-mask:radial-gradient(circle closest-side,transparent 81.5%,#000 83%,#000 88.5%,transparent 90%);mask:radial-gradient(circle closest-side,transparent 81.5%,#000 83%,#000 88.5%,transparent 90%);
  background:conic-gradient(from 0deg,transparent 0 328deg,rgba(255,244,205,.25) 346deg,rgba(255,250,225,.6) 356deg,transparent 360deg);
  animation:gbglint 17s linear infinite,gbglintfade 23s ease-in-out infinite}
@keyframes gbglint{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes gbglintfade{0%,18%{opacity:0}30%,52%{opacity:calc(var(--ring)*1)}64%,100%{opacity:0}}
.gb-stage.gb-still .gb-clouds,.gb-stage.gb-still .gb-glint{display:none}
.k-asleep .gb-stage *{animation-play-state:paused!important}

/* the place you picked: its name on a parchment ribbon over the globe */
.gb-name{position:absolute;left:50%;top:15%;width:min(236px,64%);aspect-ratio:700/165;transform:translateX(-50%) scale(.92);opacity:0;pointer-events:none;transition:opacity .3s,transform .35s cubic-bezier(.2,1.3,.4,1);filter:drop-shadow(0 4px 5px rgba(0,0,0,.55));z-index:3}
.gb-name.on{opacity:1;transform:translateX(-50%)}
/* only the ribbon itself and its line (the old rules caught the flag and its wrapper too and laid them over the name: Marc's
   "Saudi Arabia") */
.gb-name>img{position:absolute;inset:0;width:100%;height:100%}
.gb-name>span{position:absolute;left:14%;right:14%;top:14%;bottom:38%;display:flex;align-items:center;justify-content:center;gap:7px}
.gb-name b{font:700 19px/1 var(--display);color:#3a2410;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-name b.long{font-size:14.5px}
.gb-name .gb-flag{width:22px;height:16.5px}
.gb-fl{display:contents}
.gb-flag{width:26px;height:19.5px;border-radius:3px;object-fit:cover;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 2px 4px rgba(0,0,0,.4)}
svg.gb-flag.gb-sil{box-shadow:none;border-radius:0}
.gb-sil path{fill:#e8c46a;stroke:#5a3a10;stroke-width:.6}
.gb-name svg.gb-sil path{fill:#7a5418;stroke:none}

/* ----- the bottom: two closed passports, their summary lettered in gold ----- */
.gb-pz{flex:none;position:relative;z-index:3;height:clamp(126px,22cqh,212px);display:flex;align-items:center;justify-content:center;gap:clamp(10px,5vw,26px);padding:0 10px 6px;
  background:linear-gradient(#34200f,#1c1007 60%,#140a04);border-top:1.5px solid rgba(216,178,92,.75);box-shadow:0 -10px 18px rgba(0,0,0,.45)}
.gb-cover{position:relative;flex:none;height:calc(100% - 16px);aspect-ratio:.76;border-radius:4px 9px 9px 4px;container-type:size;display:block;padding:0;
  background:radial-gradient(ellipse at 28% 8%,rgba(255,255,255,.2),transparent 55%),var(--noise),linear-gradient(160deg,var(--l1),var(--l2));
  border:1px solid var(--l3);box-shadow:inset 5px 0 6px -2px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.07),0 10px 13px rgba(0,0,0,.65),2px 2px 0 #d9cba4,3px 3px 0 var(--l3)}
.gb-cover::before{content:"";position:absolute;inset:4cqw;border-radius:2px 6px 6px 2px;border:1px solid rgba(232,196,106,.55);pointer-events:none}
.gb-cover.world{transform:rotate(-4deg);animation:gbbobw 6.3s ease-in-out infinite}
.gb-cover.us{transform:rotate(3deg);animation:gbbobu 7.9s ease-in-out -2s infinite}
.gb-cover:active{filter:brightness(1.12)}
@keyframes gbbobw{0%,100%{transform:rotate(-4deg) translateY(0)}50%{transform:rotate(-3deg) translateY(-3px)}}
@keyframes gbbobu{0%,100%{transform:rotate(3deg) translateY(-2px)}50%{transform:rotate(2.2deg) translateY(1px)}}
.gb-cover .in{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1cqh}
.foil{background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 1px 0 rgba(0,0,0,.75)) drop-shadow(0 -.5px 0 rgba(255,244,200,.25))}
.gb-cover .kk{font:700 max(12px,8.6cqw) var(--display);letter-spacing:.24em;margin-right:-.24em}
.gb-cover svg{width:36cqw;height:36cqw;filter:drop-shadow(0 1px 0 rgba(0,0,0,.7))}
.gb-cover .num{font:700 max(12px,27cqw)/1 var(--display);margin-top:1cqh}
.gb-cover .u{font:700 max(12px,9.4cqw) var(--display);letter-spacing:.2em;margin-right:-.2em}
/* while adding, the workbench takes the bottom: the passports and the strip wait */
.k-edit.k-benched .gb-pz{display:none}

/* ----- the open passport: a leather sheet over the lower half ----- */
.gb-passlayer.on,.gb-placelayer.on{background:rgba(3,8,16,.3)}
.gb-passlayer .k-sheet,.gb-placelayer .k-sheet{background:radial-gradient(ellipse at 20% 0,rgba(255,255,255,.14),transparent 55%),var(--noise),linear-gradient(var(--l1),var(--l2));
  border-top:2px solid #d8b25c;border-radius:16px 16px 0 0;box-shadow:0 -12px 30px rgba(0,0,0,.6),inset 0 0 0 5px var(--l3),inset 0 0 0 6.5px rgba(216,178,92,.55)}
.gb-passlayer .k-sheet{height:max(56%,404px);max-height:94%}
.gb-placelayer .k-sheet{max-height:86%}
.gb-passlayer .k-grab,.gb-placelayer .k-grab{height:18px}
.gb-phead{flex:none;height:48px;display:flex;align-items:center;gap:9px;padding:0 12px 0 18px}
.gb-phead .em{width:26px;height:26px;flex:none}
.gb-phead b{flex:1;min-width:0;font:700 clamp(12px,3.3vw,13.5px) var(--display);letter-spacing:.1em;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.gb-mode{flex:none;display:flex;border-radius:22px;background:rgba(0,0,0,.4);border:1.5px solid rgba(216,178,92,.6);box-shadow:inset 0 2px 5px rgba(0,0,0,.6)}
.gb-mode button{height:44px;margin:-1.5px 0;padding:0 12px 0 10px;border-radius:22px;display:flex;align-items:center;gap:5px;font:700 12px var(--display);letter-spacing:.05em;color:rgba(236,220,184,.85)}
.gb-mode button svg{width:18px;height:18px}
.gb-mode button.on{color:#3a2408;background:linear-gradient(#fff2c0,#e2b552 45%,#b8862c 55%,#e8c46a);box-shadow:0 2px 4px rgba(0,0,0,.5)}
.gb-pbody{flex:1;min-height:0;display:flex;flex-direction:column;padding-bottom:8px}

/* the pages: one leaf lies flat, the ones before it are turned over the spine on the left */
.gb-book{position:relative;flex:1 1 auto;min-height:0;margin:0 14px;perspective:1300px;perspective-origin:0 50%;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.gb-leaf{position:absolute;inset:0;transform-origin:0 50%;transition:transform .62s cubic-bezier(.4,.05,.25,1);backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:4px 9px 9px 4px;overflow:hidden;
  display:flex;flex-direction:column;container-type:size;background:url("art/scene/passport-page.webp") center/cover,#efe0b8;box-shadow:inset 0 0 22px rgba(90,58,16,.3)}
.gb-leaf::before{content:"";position:absolute;left:0;top:0;bottom:0;width:20px;background:linear-gradient(90deg,rgba(60,36,8,.45),transparent);pointer-events:none;z-index:1}
.gb-leaf::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(40,22,4,.5),transparent 60%);opacity:0;transition:opacity .5s}
.gb-leaf.gone{transform:rotateY(-112deg);pointer-events:none;visibility:hidden;transition:transform .62s cubic-bezier(.4,.05,.25,1),visibility 0s .62s}
.gb-leaf.gone::after{opacity:1}
.gb-leaf h3{flex:none;height:24px;margin:0;padding-top:8px;text-align:center;font:700 12px var(--display);letter-spacing:.22em;text-transform:uppercase;color:rgba(90,40,30,.82)}
.gb-leaf h3 em{font-style:normal;opacity:.7;letter-spacing:.08em}
.gb-leaf .no{flex:none;height:15px;text-align:center;font:italic 500 12px/13px "EB Garamond",Georgia,serif;color:rgba(90,58,16,.7)}
.gb-leafnone{flex:1;display:grid;place-items:center;text-align:center;padding:0 24px;font:italic 500 16px/1.25 "EB Garamond",Georgia,serif;color:#5a3a10}
.gb-grid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,1fr);padding:0 4px 0 10px;--c:min(52px,calc((100cqh - 39px)/3 - 27px))}
.gb-stp{position:relative;min-width:0}
.gb-stp .s-main{position:absolute;inset:0;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:8px}
.gb-stp .nm{height:21px;width:100%;display:flex;align-items:flex-start;justify-content:center;text-align:center;font:700 12px/1.08 var(--display);letter-spacing:.03em;text-transform:uppercase;color:#4f2a20;overflow:hidden}
.gb-stp .ct{position:absolute;left:calc(50% + var(--c)/2 - 11px);top:calc(50% - var(--c)/2 - 15px);min-width:19px;height:19px;padding:0 3px;border-radius:10px;display:grid;place-items:center;font:700 12px var(--display);color:#3a2408;
  background:radial-gradient(circle at 35% 28%,#fff6cf,#e9c264 45%,#b8862c);box-shadow:0 1px 2px rgba(60,36,8,.6),0 0 7px rgba(255,190,60,.75)}
.gb-stp.best .ct{min-width:23px;height:23px;font-size:12px;border-radius:12px;box-shadow:0 1px 2px rgba(60,36,8,.6),0 0 0 1.5px #7a1f2b,0 0 10px rgba(255,190,60,.95)}
.gb-stp.ov .s-main::before{content:"";position:absolute;left:50%;top:calc(50% - 11.5px);width:calc(var(--c) + 10px);height:calc(var(--c) + 10px);transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(circle,rgba(255,196,70,calc(.16 + var(--h)*.5)) 30%,rgba(255,190,60,calc(.1 + var(--h)*.3)) 55%,transparent 72%);pointer-events:none}
.gb-stp.gold .gb-stamp{filter:drop-shadow(0 0 6px rgba(255,190,60,.95))}
.gb-stp .s-x{position:absolute;top:-10px;right:-14px;width:44px;height:44px;display:grid;place-items:center;z-index:2}
.gb-stp .s-x i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:rgba(122,31,43,.9);background:rgba(246,234,208,.85);border:1px solid rgba(122,31,43,.5);box-shadow:0 1px 3px rgba(60,36,8,.5)}
.gb-stp .s-x svg{width:10px;height:10px}
.gb-stp:active .gb-stamp{transform:rotate(var(--r)) scale(.93)}
.gb-leaf.wishp h3{color:#fff;background:linear-gradient(#3e6fc0,#1f4a96);height:23px;padding:6.5px 20px 0 22px;margin:7px auto 0;width:max-content;clip-path:polygon(0 0,100% 0,calc(100% - 8px) 50%,100% 100%,0 100%,8px 50%)}
.gb-leaf .sub{flex:none;text-align:center;font:italic 500 13.5px/1.1 "EB Garamond",Georgia,serif;color:rgba(74,44,8,.9);margin:5px 0 0}
.gb-leaf.wishp .gb-grid{grid-template-rows:repeat(2,1fr)}

/* a passport stamp: Codex's worn ring with the place's outline in the same ink, the name outside */
.gb-stamp{position:relative;display:block;width:var(--c,112px);height:var(--c,112px);transform:rotate(var(--r));flex:none}
.gb-stamp img,.gb-stamp svg{position:absolute;inset:0;width:100%;height:100%;mix-blend-mode:multiply}
.gb-stamp img{opacity:.92}
.gb-stamp svg{inset:20%;width:60%;height:60%;opacity:.9;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='112' height='112'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -2.4 0 0 0 1.95'/></filter><rect width='112' height='112' filter='url(%23n)'/></svg>") center/112px 112px;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='112' height='112'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -2.4 0 0 0 1.95'/></filter><rect width='112' height='112' filter='url(%23n)'/></svg>") center/112px 112px}
.gb-stamp .ink{fill:var(--ink,#7a1f2b)}
.gb-stamp.g img{filter:hue-rotate(118deg) saturate(.8)}
/* a wish: pencilled, not inked yet */
.gb-stamp.pencil img{display:none}
.gb-stamp.pencil::before{content:"";position:absolute;inset:5%;border-radius:50%;border:1.8px dashed rgba(90,58,30,.6)}
.gb-stamp.pencil svg{opacity:.5;-webkit-mask:none;mask:none}

/* under the book: turn the page, and the wish list's ribbon */
.gb-pnav{flex:none;height:44px;display:flex;align-items:center;padding:0 8px;margin-top:2px}
.gb-arr{width:44px;height:44px;flex:none;display:grid;place-items:center;color:#e8c46a;font:700 26px var(--display)}
.gb-arr[disabled]{opacity:.25}
.gb-pdots{flex:1;display:flex;justify-content:center;align-items:center;gap:7px}
.gb-pdots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.3);transition:all .25s}
.gb-pdots i.on{width:16px;border-radius:4px;background:var(--lamp);box-shadow:0 0 6px var(--lamp)}
.gb-pdots i.w{background:#c23a45}.gb-pdots i.w.on{background:#ff6b78;box-shadow:0 0 6px #ff6b78}
.gb-ribbon{flex:none;height:44px;display:grid;place-items:center;margin-top:-10px}
.gb-ribbon span{display:block;height:32px;padding:7px 12px 0;font:700 12px var(--display);letter-spacing:.08em;color:#fff3e0;white-space:nowrap;background:linear-gradient(90deg,#1f4a96,#4f80d0 30%,#2a5aaa);
  clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 7px),0 100%);filter:drop-shadow(0 2px 2px rgba(0,0,0,.5))}
.gb-us .gb-ribbon span{background:linear-gradient(90deg,#16306a,#2a55a8 30%,#1b3a80)}
.gb-ribbon.on{animation:gbrib 1.6s ease-in-out infinite}
@keyframes gbrib{50%{transform:translateY(2px)}}

/* the quick list: little flags, most visited first */
.gb-list{display:none;flex:1 1 auto;min-height:0;margin:0 14px;border-radius:4px 9px 9px 4px;background:url("art/scene/passport-page.webp") center/cover,#efe0b8;padding:0 0 8px}
.aslist .gb-book,.aslist .gb-pnav{display:none}
.aslist .gb-list{display:block}
.lh{margin:0;padding:10px 12px 3px;font:700 12px var(--display);letter-spacing:.2em;text-transform:uppercase;color:rgba(90,40,30,.85);display:flex;justify-content:space-between;align-items:baseline}
.lh em{font:italic 500 12.5px "EB Garamond",Georgia,serif;letter-spacing:0;text-transform:none}
.lnone{margin:0;padding:6px 14px;font:italic 500 15px "EB Garamond",Georgia,serif;color:#5a3a10}
.gb-lrow{position:relative;width:100%;min-height:46px;display:flex;align-items:center;gap:9px;padding:0 10px 0 12px;text-align:left;border-bottom:1px solid rgba(90,58,16,.16)}
.gb-lrow .rk{flex:none;width:14px;font:700 15px var(--display);color:#7a1f2b;text-align:center}
.gb-lflag{flex:none;width:30px;height:22px;border-radius:2.5px;object-fit:cover;box-shadow:0 0 0 1px rgba(60,36,8,.4),0 1px 2px rgba(60,36,8,.4);background:#fff8e6}
svg.gb-lflag{padding:2px;box-shadow:none;background:none}
.gb-lrow .gb-sil path,.gb-leaf .gb-sil path{fill:#7a1f2b;stroke:none}
.gb-lrow .nb{flex:1;min-width:0}
.gb-lrow .nb b{display:block;font:600 16.5px/1.05 "EB Garamond",Georgia,serif;color:#2a1a08;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-lrow .nb i{display:block;height:4px;margin-top:4px;border-radius:2px;width:calc(var(--h)*100%);min-width:3px;background:linear-gradient(90deg,#b8862c,#f0c860);box-shadow:0 0 5px rgba(255,190,60,.7)}
.gb-lrow .mf{flex:none;display:flex;padding-left:8px}
.gb-lrow .n{flex:none;min-width:46px;text-align:right;font:700 12.5px var(--display);color:#6a4a12}
.gb-lrow .n small{display:block;font:italic 500 12px "EB Garamond",Georgia,serif;color:#8a2330}
.gb-lrow:active{background:rgba(255,200,90,.25)}
.gb-leaf.fav .rows{flex:1;min-height:0;display:flex;flex-direction:column;padding-bottom:2px}
.gb-leaf.fav .gb-lrow{flex:1;min-height:0}

/* ----- a place: who has been there ----- */
.gb-plhead{flex:none;display:flex;align-items:center;gap:12px;padding:6px 16px 2px}
.gb-plhead .gb-stamp{--c:clamp(62px,9.5cqh,80px)}
.gb-plhead .t{flex:1;min-width:0}
.gb-plhead .n{display:flex;align-items:center;gap:8px;min-width:0}
.gb-plhead .n b{font:700 21px/1.05 var(--display);letter-spacing:.03em;color:#3a1c12;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-plhead .n small{flex:none;font:600 12px var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(90,40,30,.6)}
.gb-plhead .line{margin-top:5px;display:inline-block;font:600 15px/1.15 "EB Garamond",Georgia,serif;color:#4a2c08}
.gb-plhead .line.sub{display:block;margin-top:2px}
.gb-plhead .line.gold,.gb-plhead .line.gold2{padding:3px 10px;border-radius:999px;background:linear-gradient(#fff2c0,#edc866 50%,#d9ae52);box-shadow:0 0 10px rgba(255,190,60,.75),inset 0 0 0 1px rgba(122,84,20,.6)}
.gb-plhead .line.gold2{display:table;margin-top:5px}
.gb-placelayer .k-sheetbody{margin:0 12px 10px;border-radius:5px 9px 9px 5px;padding:8px 0 6px;color:#2a1a08;background:url("art/scene/passport-page.webp") center/cover,#efe0b8;overflow:hidden}
.gb-h{flex:none;margin:8px 0 0;padding:0 16px;font:700 12px var(--display);letter-spacing:.18em;text-transform:uppercase;color:rgba(90,40,30,.85)}
.gb-h em{font-style:normal;opacity:.75}
.gb-faces{flex:none;display:flex;gap:4px;padding:6px 12px 2px;overflow-x:auto;scrollbar-width:none;touch-action:pan-x}
.gb-faces::-webkit-scrollbar{display:none}
.gb-fc{position:relative;flex:none;min-width:64px;min-height:44px;display:flex;flex-direction:column;align-items:center;gap:3px}
.gb-fc .fr-face{border-color:#d9a93c}
.gb-fc>span:last-child{font:600 13.5px/1 "EB Garamond",Georgia,serif;color:#2a1a08;white-space:nowrap}
.gb-fc:active .fr-face{transform:scale(.94)}
.gb-none{flex:none;padding:14px 20px;text-align:center;font:italic 500 16px/1.25 "EB Garamond",Georgia,serif;color:#5a3a10}
.gb-wishrow{flex:none;display:flex;align-items:center;gap:2px;padding:2px 10px 0 16px;border-top:1px solid rgba(90,58,16,.18);margin-top:6px}
.gb-wishrow .rb{flex:none;width:16px;height:24px;margin-right:8px;background:linear-gradient(90deg,#7a1620,#b02a35 40%,#8e1b26);clip-path:polygon(0 0,100% 0,100% 100%,50% 76%,0 100%)}
.gb-fc.s{min-width:44px;flex-direction:row;justify-content:center;margin-right:-10px}
.gb-wishrow span{margin-left:16px;font:italic 500 14px/1.1 "EB Garamond",Georgia,serif;color:#4a2c08}
.gb-pact{flex:none;display:flex;justify-content:center;gap:10px;padding:6px 10px 0}
.gb-pill{min-height:44px;padding:0 15px 0 11px;border-radius:999px;display:inline-flex;align-items:center;gap:7px;font:700 12px var(--display);letter-spacing:.05em;white-space:nowrap;color:#4a2c08;background:rgba(255,248,230,.55);border:1.5px solid rgba(90,58,16,.5)}
.gb-pill svg{width:18px;height:18px;flex:none}
.gb-pill.on{color:#3a2408;background:linear-gradient(#fff4c8,#e9c264 38%,#b8862c 58%,#d9ae52 82%,#f0d488);border-color:#5a3a10;box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 3px 5px rgba(60,36,8,.45)}
.gb-pill.w.on{color:#fff;background:linear-gradient(#5b8ad8,#1f4a96);border-color:#0f2a5a}
.gb-more{flex:none;align-self:center;min-height:44px;padding:0 14px;font:700 12px var(--display);letter-spacing:.08em;text-transform:uppercase;color:#7a1f2b;text-decoration:underline;text-underline-offset:3px}

/* Step E (Marc, 1 Dec 2026): the sheen off the ring goes ("fine dropping it") */
.gb-glint{display:none!important}
/* the passports: their words stay on the cover ("COUNTRIES" ran off a small passport): tighter letters, never past the edge */
.gb-cover .u{letter-spacing:.05em;margin-right:-.05em;font-size:max(12px,min(9.4cqw,10.4cqw));white-space:nowrap;max-width:92cqw}
.gb-cover .kk{letter-spacing:.16em;margin-right:-.16em}
.gb-cover .num{font-family:var(--digits)}
/* Step E: a stamp's place name always shows whole: up to two lines, a hyphen where one word must break (Wash-ington) */
.gb-stp .nm{height:auto;min-height:21px;max-height:27px;letter-spacing:0;line-height:1.05;text-wrap:balance;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:anywhere;overflow:visible}
/* the review: "Pinch to zoom" covered the swap choices: it never shows over a choice, while adding, or under a sheet */
.sc-globe:has(.gb-ask.on) .gb-pinch,.sc-globe.k-edit .gb-pinch,.sc-globe:has(.k-layer) .gb-pinch{opacity:0!important;visibility:hidden}

/* 2 Dec 2026 (Marc: keep the 29 Nov features, with the big globe and the two passports; the top bar like the new stations):
   no Edit button; "Add a place" sits between the passports and brings the chooser up (Back puts it away) */
.gb-find{flex:none;display:flex;flex-direction:column;align-items:center;gap:3px}
.gb-add{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;color:#3a2408;background:url("art/scene/brass-button.webp") center/cover;filter:drop-shadow(0 4px 6px rgba(0,0,0,.6))}
.gb-add:active{transform:scale(.94)}
.gb-find .cap{font:700 12px var(--display);letter-spacing:.08em;text-transform:uppercase;color:var(--cream);text-shadow:0 1px 3px rgba(0,0,0,.8);white-space:nowrap}
.k-all .gb-find{display:none}
/* All about <place> opens on top of the passport and the place card; a coworker's card from that page still comes over it */
.k-layer.gb-passlayer,.k-layer.gb-placelayer{z-index:59}
/* the swap card ("Up to 3 places to go"): its x sits on the card's corner, not on the Been there / Want to go key below */
.gb-ask.full .gb-swap{position:relative}
.gb-ask.full .gb-swap p{padding-right:22px}
.gb-ask.full .gb-swap > .gb-askx{position:absolute;right:-16px;top:-20px;margin:0;z-index:2;background:radial-gradient(circle closest-side,rgba(40,24,6,.85) 66%,transparent 70%)}
/* while the globe asks Been there / Want to go, the key plate under the question waits (its words peeked between the two) */
.sc-globe:has(.gb-ask.on) .gb-key{visibility:hidden}
