  :root { --ground:#e8dcc4; --ink:#2e241a; --dim:#7a6a55; --card:#f3ead8; --line:#d4c4a6; --accent:#3f7a74; --hot:#c0392b; --gold:#e3a72f; --sea:#3d7fa6;
          --f-disp:"Jua","Noto Sans KR",sans-serif; --f-ui:"Noto Sans KR",system-ui,sans-serif; }
  html, body { height:100%; overflow:hidden; }
  body { margin:0; background:var(--sea); color:var(--ink); font:14px/1.55 var(--f-ui); }
  .mapbox { position:fixed; inset:0; overflow:auto; scrollbar-width:none; cursor:grab; touch-action:none; background:var(--sea); }
  .mapbox::-webkit-scrollbar { display:none; } .mapbox.drag { cursor:grabbing; }
  #map { display:block; image-rendering:pixelated; margin:40vh 30vw; }   /* sea around the world so any island can come to any part of the screen */
  .hud { position:fixed; z-index:5; display:flex; flex-direction:column; gap:6px; pointer-events:none; }
  .hud > * { pointer-events:auto; }
  .pill { background:rgba(251,246,236,.95); border-radius:14px; padding:6px 12px; box-shadow:0 3px 0 rgba(20,40,60,.35); display:flex; align-items:center; gap:8px; }
  .tl { top:12px; left:12px; align-items:flex-start; } .tr { top:12px; right:12px; align-items:flex-end; z-index:16; }
  .isle { font:400 20px var(--f-disp); } .isle small { font:400 13px var(--f-ui); color:var(--dim); margin-left:6px; }
  .coins { font:400 24px var(--f-disp); color:#b07a12; font-variant-numeric:tabular-nums; } .coins i { font-style:normal; display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--gold); color:#6a4500; font:900 13px var(--f-ui); box-shadow:inset 0 -2px 0 #9a6f14; }
  .boatline.callable { cursor:pointer; background:#fff3cf; box-shadow:0 3px 0 #9a6f14; animation:nudge 1.6s infinite; } .callb { margin-left:6px; color:#b0560e; } .callw { color:var(--dim); }
  .fixbtn { padding:7px 14px; animation:nudge 1.6s infinite; } .fixbtn:disabled { animation:none; }
  .stars { color:#c98f1c; font-size:18px; letter-spacing:1px; } .checks { display:flex; flex-wrap:wrap; gap:4px; } .checks span { font-size:12px; background:#efe6d4; color:var(--dim); border-radius:999px; padding:1px 8px; } .checks span.ok { background:#dcefd8; color:#2f6b3a; font-weight:700; }
  .rate { font-size:13px; color:var(--accent); font-weight:700; } .boatline { font-size:13px; }
  .dock { position:fixed; z-index:7; left:12px; right:12px; bottom:12px; display:flex; justify-content:space-between; align-items:flex-end; pointer-events:none; }
  .dock > div { display:flex; gap:10px; align-items:flex-end; pointer-events:auto; }
  .rb { position:relative; display:flex; flex-direction:column; align-items:center; gap:0; width:58px; height:58px; padding:0; justify-content:center; border-radius:18px; background:#fbf1dc; color:var(--ink);
        box-shadow:inset 0 0 0 3px #2e241a, inset 0 -6px 0 #d9c49a, 0 4px 0 rgba(20,30,40,.45); }
  .rb .ic { width:32px; height:32px; display:block; } .rb .ic img { width:32px; height:32px; image-rendering:pixelated; display:block; }
  .rb .lb { position:absolute; top:100%; margin-top:3px; font:400 13px var(--f-disp); color:#fff; white-space:nowrap; -webkit-text-stroke:3px #2e241a; paint-order:stroke fill; }
  :is(.dock, .zoomb) .rb { margin-bottom:18px; }
  .rb:hover { background:#fff8e6; } .rb:active:not(:disabled) { transform:translateY(3px); box-shadow:inset 0 0 0 3px #2e241a, inset 0 -3px 0 #d9c49a, 0 1px 0 rgba(20,30,40,.45); }
  .rb.on { background:#ffe08a; box-shadow:inset 0 0 0 3px #2e241a, inset 0 -6px 0 #d9a52a, 0 4px 0 rgba(20,30,40,.45); }
  .rb.sm { width:46px; height:46px; border-radius:14px; } .rb.sm .ic, .rb.sm .ic img { width:24px; height:24px; }
  .rb.sm::after { content:''; position:absolute; top:5px; right:5px; width:7px; height:7px; border-radius:2px; background:#a99a80; box-shadow:0 0 0 2px #2e241a; } .rb.sm.on::after { background:#4fd16b; }
  .rb.big { width:84px; height:84px; border-radius:24px; background:var(--gold); box-shadow:inset 0 0 0 3px #2e241a, inset 0 -8px 0 #b47d14, 0 5px 0 rgba(20,30,40,.45); }
  .rb.big .ic, .rb.big .ic img { width:48px; height:48px; } .rb.big .lb { font-size:16px; }
  .rb.big:hover { background:#f2bb45; } .rb.big.on { background:#fbf1dc; }
  .rb .badge { position:absolute; top:-8px; right:-8px; min-width:26px; height:26px; display:grid; place-items:center; padding:0 6px; border-radius:13px; background:var(--hot); color:#fff; font:400 15px var(--f-disp); box-shadow:0 0 0 3px #2e241a; }
  .rb.ready { animation:nudge 1.6s infinite; } @keyframes nudge { 0%, 70%, 100% { transform:none; } 80% { transform:translateY(-6px); } 90% { transform:translateY(0); } }
  .boatb { width:64px; height:64px; border-radius:50%; } .boatb .ic, .boatb .ic img { width:36px; height:36px; }
  .boatb .ring { position:absolute; inset:5px; border-radius:50%; background:conic-gradient(var(--sea) calc(var(--p,0) * 1turn), rgba(61,127,166,.15) 0); -webkit-mask:radial-gradient(circle, transparent 58%, #000 60%); mask:radial-gradient(circle, transparent 58%, #000 60%); }
  .boatb .cnt { position:absolute; top:-6px; left:-6px; min-width:24px; height:22px; display:grid; place-items:center; padding:0 5px; border-radius:11px; background:#fbf1dc; color:var(--ink); font:400 14px var(--f-disp); box-shadow:0 0 0 3px #2e241a; }
  .boatb .cnt:empty { display:none; }
  .boatb.docked .ic { animation:bobb 1s ease-in-out infinite; } @keyframes bobb { 50% { transform:translateY(-3px) rotate(-4deg); } }
  .boatb.callable { background:#ffe08a; animation:nudge 1.6s infinite; } .boatb.callable .ring { display:none; }
  .boatb.idle { opacity:.55; }
  .dock .sizes { display:flex; gap:6px; align-self:center; margin-bottom:18px; } .dock .sizes[hidden] { display:none; }
  .dock .sizes button { min-width:54px; background:#fbf1dc; color:var(--ink); box-shadow:inset 0 0 0 3px #2e241a, 0 3px 0 rgba(20,30,40,.45); font:400 16px var(--f-disp); }
  .dock .sizes button.on { background:var(--gold); color:#3a2a00; }
  .isleb { display:flex; align-items:center; gap:10px; padding:4px 14px 4px 4px; border-radius:30px; background:rgba(46,36,26,.82); color:#fbf1dc; box-shadow:0 4px 0 rgba(20,30,40,.35); font:400 18px var(--f-disp); }
  .isleb:hover { background:rgba(46,36,26,.92); } .isleb:active:not(:disabled) { transform:translateY(2px); box-shadow:0 2px 0 rgba(20,30,40,.35); }
  .isleb .lvr { position:relative; width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(#ffd166 calc(var(--p,0) * 1turn), rgba(255,255,255,.18) 0); }
  .isleb .lvr b { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:#fff; font:400 20px var(--f-disp); box-shadow:inset 0 -3px 0 #2a524e; }
  .isleb .nm { display:flex; flex-direction:column; align-items:flex-start; line-height:1.15; } .isleb .nm small { font:400 12px var(--f-disp); color:#e6d3ad; }
  .isleb .tk { display:flex; align-items:center; gap:3px; font:400 20px var(--f-disp); color:#ffd166; } .isleb .tk img { width:24px; height:24px; image-rendering:pixelated; }
  .isleb .tk.got { animation:pop2 .5s; } @keyframes pop2 { 40% { transform:scale(1.4); } }
  .coinb[hidden] { display:none; } .rb[hidden] { display:none; }
  .coinb { position:relative; display:flex; align-items:center; gap:6px; padding:4px 16px 4px 6px; border-radius:30px; background:rgba(46,36,26,.82); box-shadow:0 4px 0 rgba(20,30,40,.35); }
  .coinb .cic img { width:36px; height:36px; image-rendering:pixelated; display:block; }
  .coinb b { font:400 28px var(--f-disp); color:#ffd166; font-variant-numeric:tabular-nums; min-width:2ch; text-align:right; }
  .coinb small { position:absolute; top:100%; right:14px; margin-top:4px; font:400 14px var(--f-disp); color:#fff; -webkit-text-stroke:3px #2e241a; paint-order:stroke fill; }
  .dock, .hud.tl { transition:opacity .25s, transform .25s; } body.inshop .dock, body.inshop .hud.tl { opacity:0; pointer-events:none; transform:translateY(12px); } body.inshop .dock > div { pointer-events:none; }
  @media (max-width:440px) { .dock > div { gap:7px; } .rb { width:48px; height:48px; border-radius:15px; } .rb .ic, .rb .ic img { width:28px; height:28px; } .rb.sm { width:40px; height:40px; } .rb.big { width:70px; height:70px; } .rb.big .ic, .rb.big .ic img { width:40px; height:40px; } .boatb { width:54px; height:54px; } .boatb .ic, .boatb .ic img { width:30px; height:30px; } .rb .lb { font-size:12px; } .isleb .nm small { display:none; } .coinb b { font-size:24px; } }
  .coinb.up b { animation:pop2 .35s; } .coinb.down b { color:#ff9a8a; }
  .toast { position:fixed; z-index:7; bottom:128px; left:50%; transform:translateX(-50%); background:rgba(46,36,26,.92); color:#fbf1dc; padding:7px 14px; border-radius:12px; font-size:13px; white-space:nowrap; }
  .toast[hidden] { display:none; }
  .panel { position:fixed; z-index:6; right:12px; top:84px; bottom:124px; width:360px; overflow:auto; background:var(--card); border-radius:16px; padding:14px; display:flex; flex-direction:column; gap:10px; box-shadow:0 6px 0 rgba(20,40,60,.35); }
  .panel[hidden] { display:none; }
  .panel .x { position:sticky; top:0; align-self:flex-end; margin:-6px -6px -34px 0; z-index:1; padding:4px 10px; }
  .pill.isle { cursor:pointer; } .pill.isle:hover { background:#fff; }
  .world { position:fixed; inset:0; z-index:30; background:#3d7fa6; overflow:hidden; }
  .world[hidden] { display:none; }
  .world .wmap { position:absolute; image-rendering:pixelated; }
  .spot { position:absolute; transform:translate(-50%, -100%); display:flex; flex-direction:column; align-items:center; gap:2px; cursor:pointer; border:0; background:none; padding:0; box-shadow:none; }
  .spot .tag { background:rgba(251,246,236,.96); color:var(--ink); border-radius:10px; padding:2px 8px; font:400 14px var(--f-disp); white-space:nowrap; box-shadow:0 2px 0 rgba(0,0,0,.3); }
  .spot .tag small { font:700 11px var(--f-ui); color:var(--dim); margin-left:4px; }
  .spot .pin { width:16px; height:16px; border-radius:50%; background:var(--accent); border:3px solid #fbf6ec; box-shadow:0 0 0 0 rgba(255,255,255,.7); animation:ping 2s infinite; }
  .spot.mine .pin { background:var(--gold); } .spot.mine .tag { background:var(--gold); color:#3a2a00; } .spot.here .tag { outline:2px solid #fff; }
  .spot.new .pin { background:#fff; border-color:var(--hot); }
  @keyframes ping { 0% { box-shadow:0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow:0 0 0 14px rgba(255,255,255,0); } 100% { box-shadow:0 0 0 0 rgba(255,255,255,0); } }
  .world .wtop { position:absolute; top:12px; left:12px; right:12px; display:flex; gap:8px; align-items:center; z-index:2; }
  .world .wtop .pill { font:400 20px var(--f-disp); } .world .wtop .grow { flex:1; }
  .world .wcard { position:absolute; z-index:2; right:12px; bottom:12px; width:320px; max-width:calc(100vw - 24px); background:var(--card); border-radius:16px; padding:14px; display:flex; flex-direction:column; gap:8px; box-shadow:0 6px 0 rgba(0,0,0,.3); }
  .world .wcard[hidden] { display:none; } .world .wcard h2 { margin:0; font:400 21px var(--f-disp); }
  .world .wcard canvas { width:100%; border-radius:10px; background:var(--sea); image-rendering:auto; }
  /* the general pressed-button nudge must not replace the spot's own centring, or the spot slips out from under the pointer */
  .spot:active:not(:disabled) { transform:translate(-50%, calc(-100% + 2px)); box-shadow:none; } .bubble:active:not(:disabled) { transform:translate(-50%, calc(-50% + 2px)); }
  .bubble { position:absolute; transform:translate(-50%, -50%); border-radius:50%; border:3px solid #fbf6ec; background:var(--accent); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:0; box-shadow:0 3px 0 rgba(0,0,0,.3), 0 0 0 6px rgba(63,122,116,.25); cursor:pointer; }
  .bubble b { font:400 16px var(--f-disp); line-height:1; } .bubble .where { position:absolute; top:100%; margin-top:4px; background:rgba(251,246,236,.95); color:var(--ink); border-radius:8px; padding:0 6px; font:700 11px var(--f-ui); white-space:nowrap; }
  .bubble.mine { background:var(--gold); color:#3a2a00; box-shadow:0 3px 0 rgba(0,0,0,.3), 0 0 0 6px rgba(227,167,47,.35); } .bubble.here { border-color:#fff; }
  .spot.dot .tag { display:none; } .spot.dot:hover .tag { display:block; } .spot.dot .pin { width:12px; height:12px; animation:none; }
  .wzoom { position:absolute; z-index:2; right:12px; top:70px; display:flex; flex-direction:column; gap:6px; } .wzoom button { width:40px; height:40px; padding:0; font:700 20px var(--f-ui); background:#fbf6ec; color:var(--ink); box-shadow:0 3px 0 rgba(0,0,0,.3); }
  .wlist { display:flex; flex-direction:column; gap:4px; max-height:40vh; overflow:auto; } .wrow { display:flex; justify-content:space-between; gap:8px; background:#fbf6ec; color:var(--ink); box-shadow:none; font-weight:400; padding:7px 10px; } .wrow small { color:var(--dim); } .wrow.mine { background:#f6e2b0; }
  .world { touch-action:none; }
  .cards { position:fixed; inset:0; z-index:25; background:rgba(20,30,40,.55); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:16px; }
  .cards[hidden] { display:none; } .cards h2 { margin:0; color:#fff; font:400 26px var(--f-disp); text-shadow:0 2px 0 rgba(0,0,0,.4); }
  .cards .row3 { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
  .rcard { width:200px; min-height:230px; background:#fbf6ec; color:var(--ink); border-radius:18px; padding:16px 14px; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; box-shadow:0 6px 0 rgba(0,0,0,.3); font-weight:400; animation:deal .35s cubic-bezier(.2,1.4,.4,1) backwards; }
  .rcard:hover { transform:translateY(-6px) rotate(-1deg); } .rcard .big { font-size:46px; line-height:1.1; } .rcard b { font:400 19px var(--f-disp); } .rcard small { color:var(--dim); font-size:12px; }
  .rcard .need { font-size:12px; color:var(--hot); font-weight:700; } .rcard .prize { margin-top:auto; background:var(--gold); color:#3a2a00; border-radius:999px; padding:3px 10px; font:700 12px var(--f-ui); }
  .rcard.free { background:#eef3f2; } .rcard.free .prize { background:#d4e4e1; color:var(--accent); }
  @keyframes deal { from { opacity:0; transform:translateY(40px) rotate(6deg) scale(.8); } }
  .celebrate { position:fixed; z-index:40; left:50%; top:38%; transform:translate(-50%, -50%); background:var(--gold); color:#3a2a00; border-radius:20px; padding:14px 26px; text-align:center; box-shadow:0 8px 0 #9a6f14, 0 0 0 9999px rgba(0,0,0,.12); pointer-events:none; animation:pop .45s cubic-bezier(.2,1.6,.4,1); }
  .celebrate b { display:block; font:400 30px var(--f-disp); } .celebrate span { font-size:14px; font-weight:700; }
  @keyframes pop { from { transform:translate(-50%, -50%) scale(.4); opacity:0; } }
  .gauge { display:inline-block; width:70px; height:8px; background:#e2d6bd; border-radius:999px; overflow:hidden; vertical-align:middle; margin-left:4px; } .gauge i { display:block; height:100%; background:var(--accent); border-radius:999px; }
  .lv { font:700 12px var(--f-ui); color:#fff; background:var(--accent); border-radius:999px; padding:1px 8px; margin-right:6px; }
  .guide { position:fixed; z-index:45; left:14px; bottom:128px; display:flex; align-items:flex-end; gap:8px; max-width:min(440px, calc(100vw - 28px)); animation:pop .4s cubic-bezier(.2,1.6,.4,1); pointer-events:none; }
  .guide[hidden] { display:none; } .gbird { font-size:52px; line-height:1; animation:bob 1.2s ease-in-out infinite; filter:drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
  @keyframes bob { 50% { transform:translateY(-6px) rotate(-4deg); } }
  .gbub { position:relative; background:#fff; border-radius:16px; padding:10px 14px; box-shadow:0 5px 0 rgba(0,0,0,.25); font-size:15px; line-height:1.5; white-space:pre-line; pointer-events:auto; }
  .gbub::before { content:''; position:absolute; left:-8px; bottom:14px; border:8px solid transparent; border-right-color:#fff; border-left:0; }
  .gname { font:400 13px var(--f-disp); color:var(--accent); } .grow2 { display:flex; gap:6px; margin-top:6px; } .grow2 button { padding:6px 14px; } .grow2 .skip { background:none; box-shadow:none; color:var(--dim); font-weight:400; padding:6px 4px; }
  .garrow { position:fixed; z-index:46; color:var(--gold); font-size:34px; text-shadow:0 3px 0 #9a6f14, 0 0 8px #fff; transform:translate(-50%, -100%); pointer-events:none; animation:point .7s ease-in-out infinite; }
  .garrow[hidden] { display:none; } @keyframes point { 50% { margin-top:-10px; } }
  .glow { box-shadow:0 0 0 4px #fff, 0 0 0 8px var(--gold), 0 0 24px 8px rgba(227,167,47,.8) !important; border-radius:12px; }
  @media (max-width:760px) { .panel { left:8px; right:8px; top:auto; width:auto; max-height:52vh; } }
  .panel h2 { margin:0; font:400 21px var(--f-disp); } .panel h3 { margin:4px 0 0; font:400 16px var(--f-disp); }
  .row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
  input[type=text] { flex:1; min-width:0; font:15px var(--f-ui); padding:10px 11px; border-radius:10px; border:1px solid var(--line); background:#fbf6ec; color:var(--ink); }
  button { font:700 14px var(--f-ui); padding:9px 14px; border:0; border-radius:10px; background:var(--accent); color:#fff; cursor:pointer; box-shadow:0 3px 0 #2a524e; }
  button:active:not(:disabled) { transform:translateY(2px); box-shadow:0 1px 0 #2a524e; }
  button:disabled { opacity:.45; cursor:default; }
  button.ghost { background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1px var(--line); }
  button.warn { background:var(--hot); box-shadow:0 3px 0 #7a2418; }
  button.gold { background:var(--gold); box-shadow:0 3px 0 #9a6f14; color:#3a2a00; }
  button.on { background:var(--ink); box-shadow:none; }
  button:focus-visible, input:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
  .chips { display:flex; gap:6px; flex-wrap:wrap; } .chips button { background:#fbf6ec; color:var(--ink); box-shadow:none; font-weight:400; padding:5px 9px; font-size:13px; }
  .chips button.on { background:var(--ink); color:#fff; }
  .log { font-size:12px; color:var(--dim); max-height:170px; overflow:auto; display:flex; flex-direction:column; gap:1px; } .log b { color:var(--accent); margin-right:6px; }
  .err { color:var(--hot); font-size:13px; } .note { color:var(--dim); font-size:13px; }
  .pics { display:flex; flex-direction:column; gap:8px; } .pics canvas { image-rendering:pixelated; max-width:100%; height:auto; display:block; margin:0 auto; }
  .secwrap { position:relative; margin-left:56px; } .secwrap canvas { max-width:100%; }
  .secwrap .lab { position:absolute; transform:translate(-100%, -50%); white-space:nowrap; background:var(--ink); color:#fff7e6; padding:0 5px; border-radius:6px; font-size:11px; } .secwrap .lab b { color:#e3b448; }
  .quote { font:400 16px var(--f-disp); }
  .card { background:#fbf6ec; border-radius:10px; padding:8px 10px; display:flex; gap:8px; align-items:center; justify-content:space-between; flex-wrap:wrap; font-size:13px; }
  .card.alert { box-shadow:inset 0 0 0 2px var(--gold); }
  .shopwrap { position:fixed; inset:0; z-index:15; background:radial-gradient(ellipse at 40% 52%, rgba(10,25,40,.25) 20%, rgba(10,25,40,.6) 75%); animation:fadein .3s; }
  .shopwrap[hidden] { display:none; } @keyframes fadein { from { opacity:0; } }
  .shopstage { position:absolute; transform:translate(-50%, -50%); animation:rise .4s cubic-bezier(.2,1.3,.4,1); filter:drop-shadow(0 10px 0 rgba(0,0,0,.25)); }
  @keyframes rise { from { opacity:0; transform:translate(-50%, -30%) scale(.8); } }
  .shopstage.thud { animation:thud .25s; } @keyframes thud { 30% { transform:translate(-50%, calc(-50% + 5px)); } 60% { transform:translate(-50%, calc(-50% - 2px)); } }
  .shopacts { position:absolute; display:flex; flex-direction:column; gap:8px; transform:translateY(-50%); animation:fadein .35s .1s backwards; }
  .act { display:flex; align-items:center; gap:10px; min-width:210px; padding:8px 12px 8px 8px; border:0; border-radius:14px; background:#fbf6ec; color:var(--ink); box-shadow:0 4px 0 rgba(0,0,0,.3); text-align:left; font:700 14px var(--f-ui); }
  .act .pxi { width:32px; height:32px; image-rendering:pixelated; flex:none; } .act small { display:block; font:400 12px var(--f-ui); color:var(--dim); }
  .act .price { margin-left:auto; display:flex; align-items:center; gap:3px; font:400 17px var(--f-disp); color:#9a6a10; } .act .price .pxi { width:18px; height:18px; }
  .act.buy { background:#fff3cf; box-shadow:0 4px 0 #9a6f14; } .act:disabled { opacity:.55; } .act:active:not(:disabled) { transform:translateY(2px); box-shadow:0 2px 0 rgba(0,0,0,.3); }
  .act.close { min-width:0; align-self:flex-start; padding:6px 10px; }
  #map { transition:transform .35s cubic-bezier(.3,.9,.4,1); }
  .slots { display:grid; grid-template-columns:repeat(5, 1fr); gap:6px; } .slots button { padding:8px 0; font-size:13px; }

  /* ===== game skin: dark-outlined chunky pieces, Jua words, pixel icons ===== */
  .pxi.inl { width:1.15em; height:1.15em; vertical-align:-.2em; image-rendering:pixelated; }
  button { font:400 16px var(--f-disp); padding:9px 16px; border-radius:14px; background:var(--accent); color:#fff;
           box-shadow:inset 0 0 0 3px #2e241a, inset 0 -5px 0 #2a524e, 0 3px 0 rgba(20,30,40,.4); }
  button:active:not(:disabled) { transform:translateY(2px); box-shadow:inset 0 0 0 3px #2e241a, inset 0 -2px 0 #2a524e, 0 1px 0 rgba(20,30,40,.4); }
  button.gold { background:var(--gold); color:#3a2a00; box-shadow:inset 0 0 0 3px #2e241a, inset 0 -5px 0 #b47d14, 0 3px 0 rgba(20,30,40,.4); }
  button.gold:active:not(:disabled) { box-shadow:inset 0 0 0 3px #2e241a, inset 0 -2px 0 #b47d14, 0 1px 0 rgba(20,30,40,.4); }
  button.ghost { background:#fbf1dc; color:var(--ink); box-shadow:inset 0 0 0 3px #2e241a, inset 0 -5px 0 #d9c49a, 0 3px 0 rgba(20,30,40,.4); }
  button.ghost:active:not(:disabled) { box-shadow:inset 0 0 0 3px #2e241a, inset 0 -2px 0 #d9c49a, 0 1px 0 rgba(20,30,40,.4); }
  button.warn { background:var(--hot); box-shadow:inset 0 0 0 3px #2e241a, inset 0 -5px 0 #7a2418, 0 3px 0 rgba(20,30,40,.4); }
  button:disabled { opacity:1; filter:grayscale(.85) brightness(.92); }
  .xb { width:40px; height:40px; padding:0; border-radius:50%; display:grid; place-items:center; background:#fbf1dc; box-shadow:inset 0 0 0 3px #2e241a, inset 0 -4px 0 #d9c49a, 0 3px 0 rgba(20,30,40,.4); }
  .xb img { width:22px; height:22px; image-rendering:pixelated; }
  .panel { background:#f6ead2; border-radius:22px; padding:0 14px 14px; gap:10px; box-shadow:inset 0 0 0 3px #2e241a, 0 6px 0 rgba(20,30,40,.4); }
  .panel { bottom:auto; max-height:calc(100vh - 220px); } .slots button { font-size:20px; padding:12px 0; }
  .panel .ph { position:sticky; top:0; z-index:1; display:flex; align-items:center; gap:10px; margin:0 -14px; padding:12px 12px 10px 16px; background:#2e241a; color:#fbf1dc; border-radius:20px 20px 0 0; }
  .panel .ph h2 { flex:1; color:#fbf1dc; font:400 21px var(--f-disp); } .panel .ph small { font:400 13px var(--f-disp); color:#e6d3ad; }
  .panel h3 { font:400 15px var(--f-disp); color:var(--dim); margin:6px 0 -4px; }
  .card { background:#fffaf0; border-radius:14px; padding:10px 12px; box-shadow:inset 0 0 0 2px #d9c49a; font-size:14px; }
  .card.alert { box-shadow:inset 0 0 0 3px var(--gold), 0 0 0 3px rgba(227,167,47,.25); }
  .stats3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
  .stat { display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 4px 8px; background:#fffaf0; border-radius:14px; box-shadow:inset 0 0 0 2px #d9c49a; }
  .stat img { width:32px; height:32px; image-rendering:pixelated; } .stat b { font:400 20px var(--f-disp); line-height:1.1; } .stat small { font:400 12px var(--f-disp); color:var(--dim); }
  .tile { display:flex; align-items:center; gap:12px; } .tile > img { width:40px; height:40px; image-rendering:pixelated; flex:none; }
  .tile .tt { flex:1; display:flex; flex-direction:column; } .tile .tt b { font:400 18px var(--f-disp); } .tile .tt small { font:400 13px var(--f-disp); color:var(--dim); }
  .tile .pr { display:inline-flex; align-items:center; gap:4px; } .tile .pr img { width:20px; height:20px; image-rendering:pixelated; }
  .lvbar { height:10px; border-radius:6px; background:#e6d8bb; box-shadow:inset 0 0 0 2px #2e241a; overflow:hidden; margin-top:4px; } .lvbar i { display:block; height:100%; background:#ffd166; box-shadow:inset 0 -3px 0 #d9a52a; }
  .nb { display:flex; flex-wrap:wrap; gap:6px; } .nb span { font:400 14px var(--f-disp); padding:5px 10px; border-radius:10px; background:#efe3c8; color:var(--dim); } .nb span.ok { background:#d8ecd6; color:#2f6b3a; }
  .quote { font:400 18px var(--f-disp); background:#fffaf0; border-radius:14px; padding:10px 12px; box-shadow:inset 0 0 0 2px #d9c49a; }
  .chips button { background:#fbf1dc; color:var(--ink); font:400 15px var(--f-disp); padding:6px 12px; box-shadow:inset 0 0 0 2px #2e241a, inset 0 -3px 0 #d9c49a; }
  .toast { background:#2e241a; color:#fbf1dc; border-radius:14px; padding:8px 16px; font:400 16px var(--f-disp); box-shadow:0 0 0 3px #fbf1dc, 0 4px 0 3px rgba(20,30,40,.4); }
  .gbub { border-radius:18px; box-shadow:inset 0 0 0 3px #2e241a, 0 5px 0 rgba(20,30,40,.35); font:400 16px var(--f-disp); }
  .gbub::before { border-right-color:#2e241a; }
  .celebrate { top:96px; transform:translateX(-50%); background:none !important; box-shadow:none !important; padding:0; border-radius:0; pointer-events:none; text-align:center; white-space:nowrap; animation:celebIn 2.4s cubic-bezier(.2,1.4,.4,1) forwards; }
  .celebrate b { display:flex; align-items:center; justify-content:center; gap:8px; font:400 38px var(--f-disp); color:#ffe08a; -webkit-text-stroke:6px #2e241a; paint-order:stroke fill; filter:drop-shadow(0 4px 0 rgba(20,30,40,.35)); }
  .celebrate b .pxi { width:44px; height:44px; filter:drop-shadow(0 0 0 #2e241a); }
  .celebrate span { display:block; margin-top:2px; font:400 18px var(--f-disp); color:#fff; -webkit-text-stroke:4px #2e241a; paint-order:stroke fill; }
  @keyframes celebIn { 0% { opacity:0; transform:translate(-50%, -24px) scale(.7); } 12% { opacity:1; transform:translate(-50%, 0) scale(1.08); } 20% { transform:translate(-50%, 0) scale(1); } 80% { opacity:1; transform:translate(-50%, 0); } 100% { opacity:0; transform:translate(-50%, -14px); } }
  .cards { background:rgba(15,25,35,.62); }
  .cards h2 { font:400 30px var(--f-disp); color:#fff; -webkit-text-stroke:5px #2e241a; paint-order:stroke fill; text-shadow:none; display:flex; align-items:center; gap:8px; }
  .cards h2 img { width:36px; height:36px; image-rendering:pixelated; }
  .rcard { width:212px; min-height:236px; background:#fbf1dc; border-radius:22px; padding:18px 14px 14px; gap:8px; box-shadow:inset 0 0 0 4px #2e241a, inset 0 -8px 0 #d9c49a, 0 6px 0 rgba(0,0,0,.35); }
  .rcard .big { width:64px; height:64px; display:grid; place-items:center; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 3px #2e241a; font-size:34px; }
  .rcard .big img { width:40px; height:40px; } .rcard b { font:400 20px var(--f-disp); } .rcard small { font:400 13px var(--f-disp); }
  .rcard .need { display:inline-flex; align-items:center; gap:4px; font:400 15px var(--f-disp); color:var(--hot); } .rcard .need img { width:20px; height:20px; image-rendering:pixelated; }
  .rcard .prize { display:inline-flex; align-items:center; gap:4px; background:var(--gold); color:#3a2a00; border-radius:12px; padding:4px 12px; font:400 15px var(--f-disp); box-shadow:inset 0 0 0 2px #2e241a; }
  .rcard .prize img { width:18px; height:18px; image-rendering:pixelated; }
  .rcard.free { background:#eef3f2; box-shadow:inset 0 0 0 4px #2e241a, inset 0 -8px 0 #c5d8d4, 0 6px 0 rgba(0,0,0,.35); } .rcard.free .prize { background:#d4e4e1; color:var(--accent); }
  .world .wtop .plate { display:flex; align-items:center; gap:10px; padding:6px 16px 6px 8px; border-radius:30px; background:rgba(46,36,26,.86); color:#fbf1dc; font:400 20px var(--f-disp); box-shadow:0 4px 0 rgba(20,30,40,.35); }
  .world .wtop .plate img { width:32px; height:32px; image-rendering:pixelated; } .world .wtop .plate small { font:400 14px var(--f-disp); color:#e6d3ad; }
  .wzoom button { width:46px; height:46px; border-radius:14px; background:#fbf1dc; color:var(--ink); font:400 26px var(--f-disp); box-shadow:inset 0 0 0 3px #2e241a, inset 0 -4px 0 #d9c49a, 0 3px 0 rgba(20,30,40,.4); }
  .world .wcard { background:#f6ead2; border-radius:22px; box-shadow:inset 0 0 0 3px #2e241a, 0 6px 0 rgba(0,0,0,.35); }
  .world .wcard h2 { font:400 22px var(--f-disp); } .world .wcard .note { font:400 14px var(--f-disp); }
  .world .wcard canvas { box-shadow:inset 0 0 0 2px #2e241a; border:2px solid #2e241a; }
  .wrow { font:400 15px var(--f-disp); box-shadow:inset 0 0 0 2px #d9c49a; border-radius:12px; }
  .spot .tag { font:400 15px var(--f-disp); box-shadow:inset 0 0 0 2px #2e241a, 0 2px 0 rgba(0,0,0,.3); }
  .act { box-shadow:inset 0 0 0 3px #2e241a, inset 0 -5px 0 #d9c49a, 0 4px 0 rgba(0,0,0,.3); font:400 16px var(--f-disp); } .act small { font:400 13px var(--f-disp); }
  .act.buy { box-shadow:inset 0 0 0 3px #2e241a, inset 0 -5px 0 #e0b452, 0 4px 0 rgba(0,0,0,.3); }
  .act:active:not(:disabled) { box-shadow:inset 0 0 0 3px #2e241a, inset 0 -2px 0 #d9c49a, 0 1px 0 rgba(0,0,0,.3); }
  .act .price { font:400 18px var(--f-disp); }
  .floortabs { position:absolute; left:-62px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; border-radius:18px; background:rgba(46,36,26,.86); box-shadow:0 4px 0 rgba(20,30,40,.35); overflow:hidden; z-index:2; }
  .ftab { position:relative; width:50px; height:50px; padding:0; border-radius:0; background:none; box-shadow:none; color:#fbf1dc; display:grid; place-items:center; font:400 18px var(--f-disp); }
  .ftab + .ftab { border-top:1px solid rgba(251,241,220,.2); } .ftab:hover { background:rgba(255,255,255,.1); } .ftab:active:not(:disabled) { transform:none; box-shadow:none; }
  .ftab.on { background:var(--gold); color:#3a2a00; } .ftab small { position:absolute; right:4px; bottom:3px; font:400 11px var(--f-disp); color:#ffd166; } .ftab.on small { color:#6a4500; }
  .extcard { width:300px; display:flex; flex-direction:column; gap:8px; padding:14px; border-radius:20px; background:#f6ead2; box-shadow:inset 0 0 0 3px #2e241a, 0 5px 0 rgba(0,0,0,.3); }
  .extcard h3 { margin:0; font:400 19px var(--f-disp); } .extcard .row button { flex:1; } .extcard input { font:16px var(--f-ui); }
  body:has(.panel:not([hidden])) .zoomb { opacity:0; pointer-events:none; }
  .autot { display:flex; align-items:center; gap:6px; padding:5px 8px 5px 6px; border-radius:16px; background:rgba(46,36,26,.82); color:#fbf1dc; box-shadow:0 3px 0 rgba(20,30,40,.35); font:400 14px var(--f-disp); }
  .autot .ic img { width:20px; height:20px; display:block; image-rendering:pixelated; } .autot:active:not(:disabled) { transform:translateY(2px); box-shadow:0 1px 0 rgba(20,30,40,.35); }
  .autot .sw { position:relative; width:30px; height:16px; border-radius:8px; background:#6b5d4d; transition:background .15s; } .autot .sw::after { content:''; position:absolute; left:2px; top:2px; width:12px; height:12px; border-radius:50%; background:#fbf1dc; transition:left .15s; }
  .autot.on .sw { background:#4fbf6b; } .autot.on .sw::after { left:16px; } .autot[hidden] { display:none; } body.inshop .autot { opacity:0; pointer-events:none; }
  .festp { position:fixed; z-index:16; left:50%; top:12px; transform:translateX(-50%); display:flex; align-items:center; gap:8px; padding:6px 14px 6px 8px; border-radius:24px; background:rgba(46,36,26,.86); color:#fbf1dc; box-shadow:0 4px 0 rgba(20,30,40,.35); font:400 17px var(--f-disp); }
  .festp[hidden] { display:none; } .festp:active:not(:disabled) { transform:translate(-50%, 2px); box-shadow:0 2px 0 rgba(20,30,40,.35); }
  .festp img { width:22px; height:22px; image-rendering:pixelated; display:block; } .festp .nd { display:flex; align-items:center; gap:2px; font-size:15px; } .festp .cd { min-width:42px; color:#ffe08a; font-size:20px; text-align:center; }
  .festp .bar { width:90px; height:10px; border-radius:6px; background:#5a4a3a; overflow:hidden; } .festp .bar i { display:block; height:100%; background:#4fbf6b; } .festp .bar i.lost { background:#e2685a; float:right; }
  .festp.soon { animation:nudge 1.2s infinite; } .festp.here .cd { color:#7ee08f; }
  /* world map: voxel island tokens with dark name plates */
  .world .wzoom.zoomb { position:absolute; right:12px; top:70px; margin:0; gap:0; } .world .wzoom .zb { width:44px; height:44px; background:none; color:#fbf1dc; font:700 28px/1 var(--f-ui); box-shadow:none; border-radius:0; }
  .spot { gap:0; } .spot .vx { display:block; image-rendering:pixelated; filter:drop-shadow(0 4px 0 rgba(10,30,50,.35)); transition:transform .12s; } .spot:hover .vx { transform:translateY(-3px); }
  .spot .tag { background:rgba(46,36,26,.88); color:#fbf1dc; box-shadow:0 2px 0 rgba(0,0,0,.3); border-radius:10px; margin-bottom:2px; } .spot .tag small { color:#e6d3ad; }
  .spot.mine .tag { background:var(--gold); color:#3a2a00; box-shadow:inset 0 0 0 2px #2e241a, 0 2px 0 rgba(0,0,0,.3); } .spot.mine .tag small { color:#6a4500; } .spot.here .tag { outline:none; box-shadow:0 0 0 2px #fff, 0 2px 0 rgba(0,0,0,.3); }
  .spot.dot .vx { width:22px; height:auto; } .spot.dot .tag { display:none; } .spot.dot:hover .tag { display:block; }
  .bubble { width:auto !important; height:auto !important; border:0; border-radius:0; background:none !important; padding:0; box-shadow:none !important; display:flex; flex-direction:column; align-items:center; }
  .bubble .vx { display:block; image-rendering:pixelated; filter:drop-shadow(0 4px 0 rgba(10,30,50,.35)); }
  .bubble b { position:absolute; top:-6px; right:-10px; min-width:24px; height:24px; display:grid; place-items:center; padding:0 6px; border-radius:12px; background:#fbf1dc; color:var(--ink); font:400 15px var(--f-disp); box-shadow:inset 0 0 0 2px #2e241a; }
  .bubble.mine b { background:var(--gold); } .bubble .where { position:static; margin-top:2px; background:rgba(46,36,26,.88); color:#fbf1dc; font:400 12px var(--f-disp); }
  .actinfo { width:240px; display:flex; flex-direction:column; gap:4px; padding:12px 14px; border-radius:16px; background:#f6ead2; box-shadow:inset 0 0 0 3px #2e241a, 0 4px 0 rgba(0,0,0,.3); }
  .actinfo b { font:400 19px var(--f-disp); } .actinfo small { font:400 13px var(--f-disp); color:var(--dim); } .actinfo q { font:400 15px var(--f-disp); color:var(--ink); quotes:'“' '”'; }
  .signcard { position:fixed; z-index:14; width:min(360px, calc(100vw - 16px)); display:flex; flex-direction:column; gap:8px; padding:12px 14px; border-radius:18px; background:#e9c89a; box-shadow:inset 0 0 0 3px #2e241a, inset 0 -6px 0 #c9a06a, 0 6px 0 rgba(0,0,0,.3); animation:signRise .35s cubic-bezier(.2,1.4,.4,1); }
  .signcard::after { content:''; position:absolute; left:50%; bottom:-62px; width:6px; height:60px; margin-left:-3px; background:#5b3a22; box-shadow:0 0 0 2px #2e241a; z-index:-1; }
  .signcard .row { flex-wrap:nowrap; } .signcard .st { font:400 18px var(--f-disp); flex:1; } .signcard small { font:400 13px var(--f-disp); color:#6b4f2a; } .signcard .xb { width:32px; height:32px; } .signcard .xb img { width:18px; height:18px; }
  .signcard input { background:#fff8ea; } .signcard .chips button { background:#fff3dc; } .signcard .log { max-height:44px; color:#5b3a22; } .signcard.busy .chips, .signcard.busy .row:nth-child(2) { opacity:.5; pointer-events:none; }
  @keyframes signRise { from { opacity:0; transform:translateY(16px) scale(.9); } }
  /* the shop's buttons as wooden signs, the guide as a cream speech card */
  .act { background:#e9c89a; box-shadow:inset 0 0 0 3px #2e241a, inset 0 -5px 0 #c9a06a, 0 4px 0 rgba(0,0,0,.3); } .act small { color:#6b4f2a; }
  .act.buy { background:#ffd98a; box-shadow:inset 0 0 0 3px #2e241a, inset 0 -5px 0 #d9a52a, 0 4px 0 rgba(0,0,0,.3); }
  .act:hover:not(:disabled) { filter:brightness(1.05); } .act.close { background:#2e241a; color:#fbf1dc; box-shadow:0 3px 0 rgba(0,0,0,.3); }
  .gbub { background:#fbf1dc; } .gbub::before { border-right-color:#2e241a; } .gname { display:inline-block; padding:0 8px; border-radius:8px; background:#2e241a; color:#ffe08a; font:400 13px var(--f-disp); margin-bottom:4px; }
  .gbird img { filter:drop-shadow(0 4px 0 rgba(20,30,40,.35)); } .grow2 .skip { color:#7a6a55; font:400 14px var(--f-disp); }
  .zoomb { display:flex; flex-direction:column; margin-top:26px; border-radius:22px; background:rgba(46,36,26,.82); box-shadow:0 4px 0 rgba(20,30,40,.35); overflow:hidden; }
  .zb { width:44px; height:44px; padding:0; border-radius:0; background:none; box-shadow:none; color:#fbf1dc; font:700 28px/1 var(--f-ui); display:grid; place-items:center; }
  .zb + .zb { border-top:1px solid rgba(251,241,220,.2); } .zb:hover { background:rgba(255,255,255,.1); } .zb:active:not(:disabled) { transform:none; box-shadow:none; background:rgba(255,255,255,.18); } .zb:disabled { filter:none; color:rgba(251,241,220,.3); } body.inshop .zoomb { opacity:0; pointer-events:none; }
  /* voxel dock: the buttons are little floating islands, no plates */
  :is(.dock, .zoomb) .rb, :is(.dock, .zoomb) .rb.big, :is(.dock, .zoomb) .rb.sm, .dock .boatb { width:auto; height:auto; padding:0; background:none; box-shadow:none; border-radius:0; overflow:visible; }
  :is(.dock, .zoomb) .rb .ic, :is(.dock, .zoomb) .rb.big .ic, :is(.dock, .zoomb) .rb.sm .ic, .dock .boatb .ic { width:auto; height:auto; transition:transform .12s, filter .12s; }
  :is(.dock, .zoomb) .rb .ic img.vx { display:block; width:auto; height:auto; image-rendering:pixelated; filter:drop-shadow(0 5px 0 rgba(10,30,50,.35)); }
  :is(.dock, .zoomb) .rb.sm .ic { zoom:.8; }
  :is(.dock, .zoomb) .rb:hover .ic { transform:translateY(-4px); } :is(.dock, .zoomb) .rb:active:not(:disabled) { transform:none; box-shadow:none; } :is(.dock, .zoomb) .rb:active:not(:disabled) .ic { transform:translateY(3px); filter:brightness(.9); }
  :is(.dock, .zoomb) .rb .lb { position:static; margin-top:-6px; font-size:15px; } :is(.dock, .zoomb) .rb.big .lb { font-size:18px; } :is(.dock, .zoomb) .rb { margin-bottom:0; }
  :is(.dock, .zoomb) .rb.on .ic img.vx { filter:drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px #ffe08a) drop-shadow(0 5px 0 rgba(10,30,50,.35)); }
  :is(.dock, .zoomb) .rb.sm::after { top:6px; right:2px; } .dock .boatb .ring { display:none; }
  .dock .boatb.callable { background:none; } .dock .boatb.callable .lb { color:#ffe08a; } .dock .boatb.idle { opacity:.6; }
  :is(.dock, .zoomb) .rb .badge { top:0; right:-4px; } .dock .boatb .cnt { top:2px; left:-2px; }
  :is(.dock, .zoomb) .rb.big { animation:none; } :is(.dock, .zoomb) .rb.big.ready .ic { animation:nudge 1.6s infinite; } :is(.dock, .zoomb) .rb.ready { animation:none; } :is(.dock, .zoomb) .rb.big.on .lb { color:#ffe08a; }
  @media (max-width:440px) { :is(.dock, .zoomb) .rb .ic { zoom:.72; } :is(.dock, .zoomb) .rb.big .ic { zoom:.8; } :is(.dock, .zoomb) .rb.sm .ic { zoom:.6; } .dock > div { gap:2px; } }
  @media (max-width:760px) { .panel { top:auto; bottom:124px; max-height:52vh; } .rcard { width:min(212px, 44vw); min-height:200px; } }
/* another tab plays this island: this one only watches, with one way back */
.handoff { position:fixed; inset:0; z-index:60; display:grid; place-items:center; background:rgba(20,28,40,.55); }
.handoff > div { display:flex; flex-direction:column; align-items:center; gap:14px; padding:22px 30px; border-radius:18px; background:#2e241a; color:#fff7e6; box-shadow:0 6px 0 #1a130c; }
.handoff b { font:400 22px "Jua", "Noto Sans KR", sans-serif; }
/* the invite card: what the friend will see, and one button */
.invitecard { flex-direction:column; align-items:stretch; gap:8px; }
.invitecard .invpic { width:100%; height:auto; border-radius:10px; background:#3f7fb0; image-rendering:auto; }
.invitecard b { font:400 18px var(--f-disp); text-align:center; }
.invitecard input { width:100%; font-size:12px; }
/* 끼룩이: a voxel gull that bobs and hops, and a speech bubble in the HUD's ink: cream paper, thick outline, a tilted name tag */
.guide { left:8px; bottom:118px; gap:0; align-items:flex-end; animation:none; }
.gbird { position:relative; z-index:1; font-size:0; line-height:0; margin-right:4px; transform-origin:50% 100%; flex:none; animation:none; filter:none; }   /* the live gull moves itself (src/ui/gull/) */
.gbird.flat { animation:gbob 1.8s ease-in-out infinite; filter:drop-shadow(0 5px 0 rgba(20,30,40,.32)); }   /* the flat fallback bobs and hops in CSS */
.gbird .gull { display:block; image-rendering:pixelated; }
.gbird.flat.hop { animation:ghop .5s cubic-bezier(.3,1.5,.5,1), gbob 1.8s ease-in-out .5s infinite; }
@keyframes gbob { 50% { transform:translateY(-4px); } }
@keyframes ghop { 0% { transform:scale(1.1, .88); } 35% { transform:translateY(-20px) scale(.94, 1.08); } 70% { transform:translateY(0) scale(1.06, .94); } 100% { transform:none; } }
.gbub { position:relative; margin:0 0 40px 10px; padding:18px 18px 12px; min-width:220px; max-width:340px; background:#fff8e6; color:#2e241a; border-radius:20px;
  box-shadow:0 0 0 3px #2e241a, 0 7px 0 3px rgba(20,30,40,.32); font:400 17px/1.5 var(--f-disp); white-space:pre-line; transform-origin:-14px 85%; cursor:default; }
.gbub.bump { animation:bubIn .42s cubic-bezier(.2,1.5,.4,1); }
@keyframes bubIn { 0% { transform:scale(.55); opacity:0; } 60% { opacity:1; } 100% { transform:none; } }
.gbub::before, .gbub::after { content:''; position:absolute; border-style:solid; border-color:transparent; }
.gbub::before { left:-19px; bottom:16px; border-width:11px 19px 11px 0; border-right-color:#2e241a; }   /* the tail: an ink triangle, the paper one on top */
.gbub::after { left:-12px; bottom:19px; border-width:8px 14px 8px 0; border-right-color:#fff8e6; }
.gname { position:absolute; top:-15px; left:12px; margin:0; padding:2px 12px 3px; border-radius:10px; background:#3f7fb0; color:#fff; transform:rotate(-4deg);
  box-shadow:0 0 0 3px #2e241a, 0 3px 0 3px rgba(20,30,40,.3); font:400 14px var(--f-disp); letter-spacing:.5px; }
#gtext .tw { opacity:0; transition:opacity .12s; } #gtext .tw.on { opacity:1; }
#gtext img.tw { vertical-align:-3px; }
.grow2 { margin-top:10px; gap:8px; transition:opacity .2s, transform .3s cubic-bezier(.2,1.6,.4,1); }
.grow2.wait { opacity:0; transform:translateY(6px) scale(.9); pointer-events:none; }
.grow2 button.gold { padding:7px 18px; font:400 16px var(--f-disp); box-shadow:inset 0 0 0 3px #2e241a, inset 0 -4px 0 #c98a12, 0 3px 0 rgba(20,30,40,.35); }
@media (max-width:600px) { .gbub { max-width:calc(100vw - 130px); min-width:0; font-size:15px; } }
