  :root { --ground:#e8dcc4; --ink:#2e241a; --dim:#7a6a55; --card:#f3ead8; --line:#d4c4a6; --accent:#3f7a74; --hot:#c0392b; --gold:#e3a72f; --sea:#1f86c0;
          --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; }
  .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:#1f86c0; 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; }
  @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); } }
  .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:'“' '”'; }
  @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; } }
  /* two saves in a row did not land: a small red dot on the coins until one does */
  .coinb.unsaved::after { content:''; position:absolute; top:2px; right:4px; width:11px; height:11px; border-radius:50%; background:var(--hot); box-shadow:0 0 0 2px var(--ink); }
  /* the server could not be reached at the start */
  .offline { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%); z-index:60; display:flex; align-items:center; gap:12px; padding:12px 14px 12px 18px; border-radius:18px; background:#e9c89a; color:var(--ink); font:400 18px var(--f-disp); box-shadow:inset 0 0 0 3px var(--ink), 0 6px 0 rgba(0,0,0,.3); }
  .offline button { font:400 16px var(--f-disp); padding:6px 14px; border-radius:12px; border:0; background:var(--accent); color:#fff; box-shadow:inset 0 0 0 2px var(--ink), inset 0 -3px 0 rgba(0,0,0,.25); }

/* ---------- nothing covers what is happening (Fable 5.2 review, 2026-11-27) ----------
   Where each kind of UI lives: corners = HUD and dock; PC right column / phone bottom = panel and actions; bottom-left = 끼룩이;
   the middle of the screen = only what belongs to the map (the sign, the arrow). The camera centres things in what is left
   (camera.js safeRect). */
/* the panel stops above the 짓기 button on PC; on a phone it is a short sheet, and the invite card a single row */
.panel { max-height:calc(100vh - 234px); }
@media (max-width:760px) {
  .panel { max-height:40vh; }
  .invitecard { flex-direction:row; align-items:center; flex-wrap:wrap; } .invitecard .invpic { display:none; } .invitecard b { text-align:left; flex:1; }
}
/* inside a shop the dock is gone: 끼룩이 takes its place at the bottom on PC, and the empty top on a phone */
body.inshop .guide { bottom:8px; }
/* the cards and the world are their own moments: 끼룩이 and its arrow wait */
body:has(.world:not([hidden])) :is(.guide, .garrow) { display:none; }
/* 끼룩이 folds to just itself once a waiting step has been read; a tap on it opens the words again */
.guide.min .gbub { display:none; } .guide.min .gbird { pointer-events:auto; cursor:pointer; }
/* the request cards: a hand at the bottom, the island and its waiting guests in sight above */
/* phones: the gull smaller, the shop's actions as a tray at the bottom, a lighter dock while choosing a spot */
@media (max-width:760px) {
  body.inshop .guide { top:84px; bottom:auto; }   /* (under the back button and name) */
  .shopacts { left:8px !important; right:8px; top:auto !important; bottom:10px; transform:none; display:grid; grid-template-columns:1fr 1fr; gap:6px; }
  .shopacts .act { min-width:0; padding:6px 8px 6px 6px; gap:6px; font-size:14px; } .shopacts .act small { font-size:11px; } .shopacts .act .pxi { width:26px; height:26px; }
  .shopacts .act.close { position:fixed; top:12px; left:12px; }
  .shopacts:has(.extcard) { display:flex; }
  /* floor buttons: a row above the cut-away (1F on the left), in the open sea there, not over the room's left side */
  .floortabs { left:50%; top:-10px; transform:translate(-50%, -100%); flex-direction:row-reverse; border-radius:14px; max-width:calc(100vw - 24px); overflow-x:auto; }
  .ftab { width:44px; height:40px; flex:none; font-size:16px; } .ftab + .ftab { border-top:0; border-right:1px solid rgba(251,241,220,.2); }
}
@media (max-width:600px) { .gbird { zoom:.6; } .gbub { margin-bottom:12px; padding:12px 14px 10px; } }
@media (max-width:440px) {
  body.buildmode :is(.dock .dl, #boat) { display:none; }
  .world .wtop .plate, #wnew { white-space:nowrap; } #wcount { display:none; }
}
/* a toast while 끼룩이 talks goes to the top, not under its bubble */
body:has(.guide:not([hidden]):not(.min)) .toast { top:112px; bottom:auto; }
/* a phone on its side (wide but short): the panel takes the height there is, down to the dock */
@media (max-height:560px) and (min-width:761px) { .panel { top:8px; max-height:calc(100vh - 110px); } }
/* the build sign while Claude writes: my line as its title, and a stamp for each part as it arrives */
.stamps i { flex:1; font:400 11px var(--f-disp); font-style:normal; text-align:center; padding:2px 0; border-radius:6px; color:#8a6a40; background:rgba(46,36,26,.08); box-shadow:inset 0 0 0 1.5px rgba(46,36,26,.25); }
.stamps i.on { color:#3a2a00; background:#ffd166; box-shadow:inset 0 0 0 2px #2e241a; animation:stamp .28s cubic-bezier(.2,1.8,.4,1); }
@keyframes stamp { from { transform:scale(1.7) rotate(-8deg); } }
/* the ticket chip: its notches are the guests still to serve for the next 🎫 */
.isleb .tk { position:relative; }
.tk .notch { display:flex; gap:2px; margin-left:4px; align-self:center; }
.tk .notch i { width:5px; height:12px; border-radius:2px; background:rgba(255,255,255,.18); box-shadow:inset 0 0 0 1px rgba(0,0,0,.25); }
.tk .notch i.on { background:#ffd166; box-shadow:inset 0 -2px 0 #c98f1c; }
.flyer { position:fixed; left:0; top:0; z-index:70; pointer-events:none; image-rendering:pixelated; filter:drop-shadow(0 3px 0 rgba(0,0,0,.35)); }
/* PC, inside a shop: the ticket chip stays at the top left, so furniture bought shows up as guests and notches */
@media (min-width:761px) { body.inshop .hud.tl { opacity:1; transform:none; pointer-events:none; } body.inshop .hud.tl :is(.lvr, .nm, .autot) { display:none; } }
/* why it cannot happen yet: a small window on what was pressed — what is missing, and the one button that helps */
.why { position:fixed; z-index:65; width:min(260px, calc(100vw - 16px)); display:flex; flex-direction:column; gap:8px; padding:12px 14px; border-radius:16px; background:#fbf1dc; color:var(--ink); box-shadow:inset 0 0 0 3px #2e241a, inset 0 -5px 0 #d9c49a, 0 6px 0 rgba(0,0,0,.3); animation:whyIn .22s cubic-bezier(.2,1.6,.4,1); }
@keyframes whyIn { from { transform:scale(.8) translateY(6px); opacity:0; } }
.why .row { display:flex; align-items:center; gap:8px; } .why b { font:400 17px var(--f-disp); } .why small { font:400 13px var(--f-disp); color:#6b4f2a; }
.why .wg { position:relative; height:18px; border-radius:9px; background:rgba(46,36,26,.12); box-shadow:inset 0 0 0 2px #2e241a; overflow:hidden; }
.why .wg i { position:absolute; inset:0 auto 0 0; background:#ffd166; box-shadow:inset 0 -3px 0 #c98f1c; }
.why .wg span { position:relative; display:block; text-align:center; font:400 12px/18px var(--f-disp); }
.why button.gold { align-self:stretch; }
/* a price not yet affordable: the chip fills as coins come in */
.act.short { opacity:1; filter:saturate(.7); }
.act.short .price { background:linear-gradient(90deg, rgba(255,209,102,.9) calc(var(--fill,0) * 100%), rgba(46,36,26,.1) 0); border-radius:8px; padding:0 6px; }
/* what the guide points at: a brighter tone and a small hop, not a ring around it */
.glow { box-shadow:none !important; filter:brightness(1.12) saturate(1.15); animation:glowHop 1.1s ease-in-out infinite; }
@keyframes glowHop { 50% { translate:0 -3px; filter:brightness(1.25) saturate(1.3); } }
/* choosing an island: its button sits on the island itself */
.joinb { position:fixed; z-index:8; padding:10px 20px; font:400 20px var(--f-disp); white-space:nowrap; animation:joinIn .35s cubic-bezier(.2,1.6,.4,1); }
.joinb[hidden] { display:none; }
@keyframes joinIn { from { transform:scale(.6); opacity:0; } }

/* ---------- the ask: guests' faces over the bar at the bottom (build.js drawAsk) ---------- */
.dock > .ask { flex:0 1 700px; min-width:0; flex-direction:column; align-items:stretch; gap:8px; }
.dock > .ask[hidden] { display:none; }
.ask .wants { display:flex; gap:8px; justify-content:center; padding:8px 4px 2px; overflow-x:auto; scrollbar-width:none; }
.ask .wants::-webkit-scrollbar { display:none; }
.want { position:relative; flex:none; display:flex; align-items:center; gap:8px; padding:5px 12px 5px 5px; border-radius:16px; background:#fbf1dc; color:var(--ink); font:400 15px var(--f-disp); text-align:left; box-shadow:0 3px 0 rgba(20,30,40,.35); transition:transform .12s; }
.want:hover:not(:disabled) { transform:translateY(-2px); }
.want:active:not(:disabled) { transform:translateY(1px); box-shadow:0 1px 0 rgba(20,30,40,.35); }
.want.on { background:#ffd166; box-shadow:0 0 0 2.5px #2e241a, 0 4px 0 rgba(20,30,40,.35); transform:translateY(-3px); }
.want:disabled { opacity:.55; cursor:default; }
.want .wt { display:flex; flex-direction:column; line-height:1.15; white-space:nowrap; }
.want .wt small { font:500 11px/1.3 var(--f-ui); color:#7a6a55; } .want.on .wt small { color:#6b4f12; }
.want .cnt { position:absolute; top:-7px; left:-5px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:var(--hot); color:#fff; font:400 12px/20px var(--f-disp); text-align:center; box-shadow:0 0 0 2px #2e241a; }
.face { flex:none; display:grid; place-items:center; width:36px; height:36px; border-radius:11px; overflow:hidden; box-shadow:inset 0 0 0 2.5px #2e241a; }
.face svg { width:30px; height:30px; margin-top:6px; }
.face.free { background:#fbf1dc; } .face.free svg { width:22px; height:22px; margin:0; }
.ask .berr { align-self:center; padding:4px 12px; border-radius:10px; background:#fbf1dc; color:var(--hot); font:400 14px var(--f-disp); box-shadow:0 2px 0 rgba(20,30,40,.3); }
.ask .berr[hidden] { display:none; }
.bar { display:flex; align-items:center; gap:10px; padding:8px 8px 8px 9px; border-radius:20px; background:rgba(46,36,26,.95); color:#fbf1dc; box-shadow:0 5px 0 rgba(20,30,40,.35); }
.bar .bwho { flex:none; width:40px; height:40px; display:grid; place-items:center; }
.bar .bwho .face { width:40px; height:40px; border-radius:12px; } .bar .bwho .face svg { width:34px; height:34px; margin-top:7px; } .bar .bwho .face.free svg { width:24px; height:24px; margin:0; }
.bar .bwho img { image-rendering:pixelated; }
.bar .bmid { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.bar input#line { flex:none; width:100%; padding:6px 2px; border:0; border-radius:0; background:none; color:#fbf1dc; font:400 18px var(--f-disp); outline:none; }
.bar input#line::placeholder { color:#a6977e; }
.bar input#line:disabled { color:#fbf1dc; opacity:1; -webkit-text-fill-color:#fbf1dc; }
.bar .bsub { display:flex; gap:6px; align-items:center; overflow-x:auto; scrollbar-width:none; white-space:nowrap; }
.bar .bsub:empty { display:none; } .bar .bsub::-webkit-scrollbar { display:none; }
.bar .bsub button { flex:none; padding:3px 10px; border-radius:999px; background:#3a3129; color:#e9dcc2; font:500 13px var(--f-ui); box-shadow:none; }
.bar .bsub button:hover { background:#4a4036; }
.bar .stamps { display:flex; gap:3px; } .bar .stamps i { font:400 12px var(--f-disp); font-style:normal; color:#6d6152; padding:1px 6px; border-radius:6px; background:#3a3129; } .bar .stamps i.on { color:#2e241a; background:#ffd166; }
.bar .last { min-width:0; overflow:hidden; text-overflow:ellipsis; font:500 12px var(--f-ui); color:#d9c7a3; }
.bar .bsize { display:flex; gap:2px; padding:2px; border-radius:10px; background:#3a3129; } .bar .bsize[hidden] { display:none; }
.bar .bsize button { min-width:34px; padding:6px 8px; border-radius:8px; background:none; color:#e9dcc2; font:400 15px var(--f-disp); box-shadow:none; } .bar .bsize button.on { background:#ffd166; color:#2e241a; }
.bar .bx { flex:none; width:34px; height:34px; padding:0; border-radius:50%; background:none; color:#a6977e; font:400 24px/1 var(--f-ui); box-shadow:none; } .bar .bx:hover { color:#fbf1dc; } .bar .bx[hidden] { display:none; }
.bar .bgo { flex:none; display:flex; align-items:center; gap:4px; padding:11px 16px; border-radius:14px; background:var(--gold); color:#2e241a; font:400 19px var(--f-disp); box-shadow:inset 0 -4px 0 #b47d14; white-space:nowrap; }
.bar .bgo[hidden] { display:none; } .bar .bgo img { width:22px; height:22px; image-rendering:pixelated; } .bar .bgo .gw { margin-left:6px; }
.bar .bgo:active:not(:disabled) { transform:translateY(2px); box-shadow:inset 0 -2px 0 #b47d14; }
.bar .bgo.off { background:#4a4036; color:#a6977e; box-shadow:none; }
.bar .bgo:disabled { cursor:default; transform:none; }
.ask.busy .bar { box-shadow:0 0 0 2px #ffd166, 0 5px 0 rgba(20,30,40,.35); }
.want:focus-visible, .bar button:focus-visible { outline:3px solid #fff; outline-offset:2px; }
/* power and water by the coins: used / supplied; a full one turns red. A tap opens the supply window */
.coinb .pmt { display:inline-flex; align-items:center; gap:8px; margin-left:4px; padding-left:10px; border-left:1px solid rgba(251,241,220,.22); font:400 18px var(--f-disp); color:#fbf1dc; font-variant-numeric:tabular-nums; cursor:pointer; }
.coinb .pmt:empty { display:none; } .coinb .pmt img { width:20px; height:20px; image-rendering:pixelated; }
.coinb .pmt .um { display:inline-flex; align-items:center; gap:2px; } .coinb .pmt .um.full { color:#ff9a8a; }
.why.plant { width:min(240px, calc(100vw - 16px)); }
.why.plant::after { content:''; position:absolute; left:var(--tail, 50%); bottom:-8px; width:16px; height:16px; margin-left:-8px; background:#fbf1dc; transform:rotate(45deg); border-radius:3px; }
.why.plant.below::after { bottom:auto; top:-8px; }
.why .cells { display:flex; flex-wrap:wrap; gap:4px; } .why .cells i { width:14px; height:14px; border-radius:3px; background:#3a342c; box-shadow:inset 0 0 0 2px #2e241a; }
.why .cells.lamps i.on { background:#ffd166; box-shadow:inset 0 0 0 2px #2e241a, 0 0 6px rgba(255,209,102,.8); } .why .cells.water i.on { background:#5fb6e0; }
.act .price .pu { display:inline-flex; align-items:center; gap:1px; margin-left:6px; opacity:.9; } .act .price .pu img { width:16px; height:16px; }
.why button img { width:18px; height:18px; image-rendering:pixelated; vertical-align:-3px; }
.isleb .nm small { display:flex; align-items:center; gap:2px; } .isleb .nm small img { width:14px; height:14px; image-rendering:pixelated; }
/* the guide and messages sit over the ask, not on it */
.guide { bottom:156px; }
.toast { bottom:170px; }
@media (max-width:760px) {
  .dock { flex-wrap:wrap; row-gap:6px; }
  .dock > .ask { order:-1; flex:1 1 100%; gap:6px; }
  .ask .wants { justify-content:flex-start; padding:8px 2px 2px; }
  .want { padding:4px 10px 4px 4px; gap:6px; border-radius:14px; font-size:14px; } .want .wt small { display:none; } .want.on .wt small { display:block; }
  .want .face { width:30px; height:30px; border-radius:9px; } .want .face svg { width:24px; height:24px; margin-top:5px; } .want .face.free svg { width:18px; height:18px; margin:0; }
  .bar { gap:8px; padding:6px 6px 6px 7px; border-radius:18px; flex-wrap:wrap; }
  .bar .bwho, .bar .bwho .face { width:34px; height:34px; } .bar .bwho .face svg { width:28px; height:28px; margin-top:6px; }
  .bar input#line { font-size:16px; }
  .ask.open .bar .bgo { order:5; flex:1 1 100%; justify-content:center; padding:10px; }
  .guide { bottom:206px; }
  .toast { bottom:220px; }
}

/* ---------- the build log: Claude's steps floating beside the lot (build.js logOpen / placeLog) ---------- */
.buildlog { position:fixed; z-index:8; display:flex; flex-direction:column; align-items:flex-start; gap:5px; max-width:min(320px, calc(100vw - 24px)); pointer-events:none; transition:opacity .4s; }
.buildlog.out { opacity:0; }
.buildlog .ln { display:flex; align-items:baseline; gap:7px; max-width:100%; padding:5px 12px 6px; border-radius:11px; background:rgba(46,36,26,.88); color:#fbf1dc; font:400 15px/1.25 var(--f-disp); box-shadow:0 3px 0 rgba(20,30,40,.3); animation:lnIn .38s cubic-bezier(.2,1.4,.4,1) both; transition:opacity .3s; }
.buildlog .ln b { flex:none; font-weight:400; color:#ffd166; }
.buildlog .ln span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.buildlog:not(.sum) .ln:not(.head):nth-last-child(n+4) { opacity:.75; } .buildlog:not(.sum) .ln:not(.head):nth-last-child(n+6) { opacity:.45; }
.buildlog .ln.done { background:#ffd166; color:#2e241a; font-size:17px; } .buildlog .ln.done b { color:#8a4b00; }
.buildlog .ln.err b { color:#ff9a8a; }
.buildlog .ln.head { font-size:17px; } .buildlog .ln.head span:not(.dots) { color:#e9dcc2; } .buildlog .dots i { font-style:normal; animation:dotBlink 1.2s infinite; } .buildlog .dots i:nth-child(2) { animation-delay:.2s; } .buildlog .dots i:nth-child(3) { animation-delay:.4s; }
@keyframes lnIn { from { opacity:0; transform:translateY(10px) scale(.92); } }
@keyframes dotBlink { 0%, 100% { opacity:.2; } 40% { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .buildlog .ln, .buildlog .dots i { animation:none; } }
@media (max-width:760px) { .buildlog .ln { font-size:14px; padding:4px 10px 5px; } .buildlog .ln.done, .buildlog .ln.head { font-size:15px; } }
@media (max-width:760px) { .buildlog { align-items:center; } .buildlog:not(.sum) .ln:not(.head):nth-last-child(n+5) { display:none; } }
/* guesses while Claude thinks are plainly guesses (pale, dashed); parts Claude sent are solid; the result is one tidy board */
.buildlog .ln.idea { background:rgba(46,36,26,.6); color:#d9c7a3; box-shadow:inset 0 0 0 1.5px rgba(251,241,220,.25); }
.buildlog .ln.idea b { color:#c9b48a; }
.buildlog .ln.got b { color:#ffd166; }
.buildlog.sum { gap:0; padding:6px; border-radius:16px; background:rgba(46,36,26,.92); box-shadow:0 5px 0 rgba(20,30,40,.35); animation:lnIn .4s cubic-bezier(.2,1.4,.4,1) both; }
.buildlog.sum .ln { background:none; box-shadow:none; animation:none; padding:4px 8px; }
.buildlog.sum .ln.done { background:#ffd166; border-radius:11px; margin-bottom:4px; }
.buildlog.sum .ln.kv b { min-width:3.2em; color:#c9b48a; }
.buildlog.sum .ln.kv span { white-space:normal; }
/* on a phone the result board and 끼룩이's bubble would share the middle: the bubble waits while the board is up */
@media (max-width:760px) { body:has(.buildlog.sum:not(.out)) .guide .gbub { display:none; } }
.buildlog.sum { z-index:46; align-items:stretch; }

/* ---------- the first session opens the screen one part at a time (reveal.js) ---------- */
body.hide-coins #coinb .cic, body.hide-coins #wallet, body.hide-coins #rate { display:none; }
body.hide-coins #coinb .pmt { margin-left:0; padding-left:4px; border-left:0; }
body.hide-util #pmt { display:none; }
body.hide-coins.hide-util #coinb { display:none; }
body.hide-level #who .lvr, body.hide-level #who small { display:none; } body.hide-level #who { padding-left:14px; }
body.hide-boat #boat, body.hide-world #d-world, body.hide-home #d-home, body.hide-auto #d-auto, body.hide-zoom .hud.tr .zoomb { display:none !important; }
body.hide-rewards .want .rw { display:none; }
body.hide-counts .want .cnt { display:none; }
.newly { animation:newly 1.4s cubic-bezier(.2,1.5,.4,1); }
@keyframes newly { 0% { transform:scale(.4); opacity:0; filter:drop-shadow(0 0 0 #ffd166); } 35% { transform:scale(1.18); opacity:1; filter:drop-shadow(0 0 10px #ffd166); } 100% { transform:none; filter:none; } }
@media (prefers-reduced-motion: reduce) { .newly { animation:none; } }

/* ---------- the first session's spotlight: one thing to press, the rest dimmed; 끼룩이 beside it (guide.js) ---------- */
.gspot { position:fixed; z-index:44; pointer-events:none; border-radius:18px; box-shadow:0 0 0 200vmax rgba(10,18,28,.68), 0 0 0 3px #ffd166; transition:left .25s, top .25s, width .25s, height .25s, border-radius .25s; }
.gspot[hidden] { display:none; } .gspot.round { border-radius:50%; }
.guide.anchored { transition:left .25s, top .25s; }
.guide.anchored .gbub { margin-bottom:6px; }
@media (prefers-reduced-motion: reduce) { .gspot { transition:none; } .guide.anchored { transition:none; } }

/* ---------- first session, after review: one board for the build log, bigger faces, one step's own hides ---------- */
.guide.anchored .gbub { font-size:18px; }
/* the build log is one board, its lines plain text (pills read as buttons) */
.buildlog:not(.sum) { gap:2px; padding:6px 4px; border-radius:14px; background:rgba(46,36,26,.9); box-shadow:0 4px 0 rgba(20,30,40,.3); }
.buildlog:not(.sum) .ln { background:none; box-shadow:none; padding:3px 10px; }
.buildlog:not(.sum) .ln.idea { background:none; box-shadow:none; color:#b8a888; }
/* the step's own: faces first and big (each lifts its head in turn), then the bar alone with the face that asked */
body.hide-bar #bar, body.hide-free .want.free { display:none; }
#bar.newly { animation:barUp .32s cubic-bezier(.2,1.2,.4,1); } @keyframes barUp { from { transform:translateY(40px); opacity:0; } }
body[data-tut="0"] .ask .wants { zoom:1.25; }
body[data-tut="0"] .want:nth-child(1) { animation:glowHop 1.4s ease-in-out infinite; } body[data-tut="0"] .want:nth-child(2) { animation:glowHop 1.4s ease-in-out .25s infinite; } body[data-tut="0"] .want:nth-child(3) { animation:glowHop 1.4s ease-in-out .5s infinite; }
body[data-tut="1"] #wants, body[data-tut="1"] .bar .bx, body[data-tut="2"] #wants, body[data-tut="2"] .bar .stamps { display:none; }
body[data-tut="1"] .bar .bsub button { background:#fbf1dc; color:#2e241a; font:400 15px var(--f-disp); padding:5px 12px; }
@media (prefers-reduced-motion: reduce) { body[data-tut="0"] .want { animation:none !important; } }

/* ---------- 끼룩이 as a portrait on a paper card (ui/gull/thumb.js): the portrait breaks out of the card's corner ---------- */
.guide { display:block; }
.guide .gbird { position:absolute; left:-8px; top:-6px; width:104px; height:104px; margin:0; z-index:2; zoom:1; animation:none; filter:none; pointer-events:auto; cursor:pointer; }
.guide .gthumb { display:block; width:100%; height:100%; filter:drop-shadow(0 6px 10px rgba(10,20,30,.35)); transform-origin:50% 90%; }
.guide .gthumb.talking { animation:gTalk .5s ease-in-out infinite; } @keyframes gTalk { 50% { transform:translateY(-2px) rotate(-1.5deg); } }
.guide .gthumb.hop { animation:gHop .6s cubic-bezier(.2,1.6,.4,1); } @keyframes gHop { 30% { transform:translateY(-10px) scale(1.06); } }
.guide .gbub { position:relative; margin:40px 0 0 0; min-width:250px; max-width:370px; padding:14px 20px 15px 104px; border-radius:20px; background:#fffaf0; color:#2e241a; box-shadow:0 14px 34px rgba(10,20,30,.32), 0 2px 0 rgba(0,0,0,.06); font:400 19px/1.4 var(--f-disp); white-space:pre-line; }
.guide.anchored .gbub { font-size:19px; margin-bottom:0; }
.guide .gname { display:block; margin:0 0 2px; padding:0; border-radius:0; background:none; color:#3f7a74; font:700 12px var(--f-ui); letter-spacing:.06em; }
.guide .gbub::before { display:none; }
.guide .gbub::after { content:''; display:none; position:absolute; left:var(--tail, 50%); bottom:-8px; width:18px; height:18px; margin-left:-9px; background:#fffaf0; border:0; border-radius:3px; box-shadow:none; transform:rotate(45deg); }
.guide.anchored .gbub::after { display:block; } .guide.anchored.below .gbub::after { bottom:auto; top:-8px; }
.guide.min .gbird { position:static; }
@media (max-width:600px) {
  .guide .gbird { width:80px; height:80px; left:-4px; top:-4px; }
  .guide .gbub { margin-top:30px; min-width:0; max-width:calc(100vw - 32px); padding:12px 16px 13px 82px; font-size:17px; }
  .guide.anchored .gbub { font-size:17px; }
}
@media (prefers-reduced-motion: reduce) { .guide .gthumb { animation:none !important; } }

/* the faces: short words on a phone, and the side with more faces fades out so it reads as something to slide */
.want .wt b.sh { display:none; }
@media (max-width:760px) { .want .wt b.lg { display:none; } .want .wt b.sh { display:inline; } }
.ask .wants.more-r { -webkit-mask-image:linear-gradient(to right, #000 80%, transparent); mask-image:linear-gradient(to right, #000 80%, transparent); }
.ask .wants.more-l { -webkit-mask-image:linear-gradient(to left, #000 80%, transparent); mask-image:linear-gradient(to left, #000 80%, transparent); }
.ask .wants.more-r.more-l { -webkit-mask-image:linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); mask-image:linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
.ask .wants { scroll-snap-type:x proximity; } .ask .wants .want { scroll-snap-align:start; }
/* phones: no room beside the coins for power and water, so the meter hangs under the coin plate (the income line below it) */
@media (max-width:440px) {
  .coinb .pmt { position:absolute; top:100%; right:0; margin-top:6px; padding:2px 10px; border-left:0; border-radius:14px; background:rgba(46,36,26,.82); font-size:15px; gap:6px; }
  .coinb .pmt img { width:16px; height:16px; }
  .coinb:has(.pmt:not(:empty)) small { margin-top:36px; }
}

/* the three things I have, top right, all the same size: coins, power left, water left */
.coinb { gap:12px; padding:6px 16px 6px 10px; }
.coinb .cic img { width:28px; height:28px; }
.coinb b { font-size:24px; min-width:0; text-align:left; }
.coinb .pmt { gap:12px; margin-left:0; padding-left:12px; font:400 24px var(--f-disp); }
.coinb .pmt .um { gap:4px; } .coinb .pmt img { width:28px; height:28px; }
@media (max-width:440px) {
  .coinb { gap:8px; padding:4px 12px 4px 8px; } .coinb .cic img, .coinb .pmt img { width:20px; height:20px; } .coinb b, .coinb .pmt { font-size:19px; }
  .coinb .pmt { position:static; margin-top:0; padding:0 0 0 8px; gap:8px; border-left:1px solid rgba(251,241,220,.22); border-radius:0; background:none; }
  .coinb:has(.pmt:not(:empty)) small { margin-top:4px; }
}

/* a face chip: face, words, the waiting count, and at its end what building it pays */
.want .rw { display:inline-flex; align-items:center; gap:2px; margin-left:6px; font:400 14px var(--f-disp); color:#b9821a; white-space:nowrap; } .want .rw img { width:16px; height:16px; image-rendering:pixelated; }
/* the island plate: the level ring and the name only; with the bar open, the ring alone (room for what I have on a phone) */
#who .nm small { display:none; } body.buildmode #who .nm { display:none; } body.buildmode #who { padding-right:6px; }
/* the plant window: lamps (lit = power left), and dashed sockets for what growing adds */
.why .cells.lamps i { border-radius:50%; } .why .cells i.add { background:none; box-shadow:none; outline:2px dashed rgba(46,36,26,.35); outline-offset:-2px; }
/* the face chips may spread wider than the bar on a wide screen; when they still do not fit they start at the left edge (not cut off on both sides) */
.ask .wants { justify-content:safe center; }
@media (min-width:900px) { .ask .wants { margin-inline:-200px; } }

/* a face coming into a freed place fades in there (the others do not move); the count badge keeps one width */
.want.fresh { animation:wantin .6s ease-out; } @keyframes wantin { from { opacity:0; transform:translateY(6px); } }
.want .cnt { min-width:26px; text-align:center; font-variant-numeric:tabular-nums; }

/* 취소: the last chip while the bar is open, plain (no face), with the Esc key beside it on a keyboard */
.want.cancel { background:#3a2f26; color:#fbf1dc; } .want.cancel img { width:22px; height:22px; image-rendering:pixelated; }
.want.cancel kbd { margin-left:6px; padding:1px 6px; border-radius:6px; background:rgba(251,241,220,.15); font:400 12px var(--f-ui); color:#e8dcc4; box-shadow:inset 0 -2px 0 rgba(0,0,0,.3); }
body[data-tut="1"] .want.cancel, body[data-tut="2"] .want.cancel { display:none; }

/* +N: the faces of the other kinds waiting, overlapping, and how many in all; its list opens above it */
.want.more .faces { display:flex; } .want.more .faces .face { width:26px; height:26px; margin-left:-10px; border-radius:7px; box-shadow:0 0 0 2px #fbf1dc; } .want.more .faces .face:first-child { margin-left:0; }
.why.wantlist { width:auto; min-width:220px; gap:4px; padding:8px; }
.why .wrow { display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:10px; background:none; box-shadow:none; color:var(--ink); text-align:left; }
.why .wrow:hover { background:rgba(46,36,26,.08); } .why .wrow .face { width:30px; height:30px; flex:none; }
.why .wrow b { flex:1; font:400 16px var(--f-disp); } .why .wrow .cnt { min-width:24px; padding:1px 6px; border-radius:10px; background:#c0392b; color:#fff; font:400 13px var(--f-disp); text-align:center; }
.why .wrow .rw { display:inline-flex; align-items:center; gap:2px; font:400 13px var(--f-disp); color:#b9821a; } .why .wrow .rw img { width:16px; height:16px; }
/* the build window: closed, only the faces at the bottom; open (a spot picked), the faces and the bar — over the lot on a
   PC, following the camera, with a tail pointing at it; a sheet at the bottom on a phone */
.ask:not(.open) .bar, .ask:not(.open) .berr { display:none; }
.ask.card { display:flex; flex-direction:column; gap:8px; padding:10px 12px 12px; border-radius:18px; background:rgba(46,36,26,.97); box-shadow:0 10px 26px rgba(0,0,0,.35); }
.ask.float { position:fixed; z-index:31; width:min(460px, calc(100vw - 16px)); margin:0; }
.ask.card .wants { margin:0; padding:8px 0 0 4px; gap:6px; justify-content:flex-start; flex-wrap:nowrap; overflow-x:auto; -webkit-mask-image:none; mask-image:none; zoom:1; }
.ask.card .want { padding:3px 10px 3px 3px; min-height:0; box-shadow:none; } .ask.card .want .face { width:26px; height:26px; }
.ask.card .want .lg { display:none; } .ask.card .want .sh { display:inline; } .ask.card .want .wt b { font-size:14px; }
.ask.card .want .rw, .ask.card .want.more .faces .face:nth-child(n+2) { display:none; }
.ask.card .want .cnt { top:-6px; left:-4px; transform:scale(.8); }
.ask.card .want.cancel { margin-left:auto; padding:4px; background:none; } .ask.card .want.cancel .wt, .ask.card .want.cancel kbd { display:none; }
.ask.card .bar { flex-wrap:wrap; gap:8px; width:100%; max-width:100%; min-width:0; box-sizing:border-box; padding:0; background:none; box-shadow:none; }
.ask.card .bwho { display:none; } .ask.card .bmid { flex:1 1 100%; min-width:0; }
.ask.card #line { box-sizing:border-box; width:100%; padding:8px 12px; border-radius:12px; background:rgba(251,241,220,.1); }
.ask.card .bsize { margin-right:auto; } .ask.card .bgo { margin-left:auto; }
@media (max-width:760px) { .ask.card { border-radius:18px 18px 0 0; padding-bottom:max(12px, env(safe-area-inset-bottom, 0px)); } .ask.card .bgo { flex:1 1 auto; } }
.ask.float::after { content:''; position:absolute; left:var(--tail, 50%); bottom:-8px; width:16px; height:16px; margin-left:-8px; background:rgba(46,36,26,.97); transform:rotate(45deg); border-radius:3px; }
.ask.float.below::after { bottom:auto; top:-8px; }
.ask.choosing .want.on { box-shadow:0 0 0 3px #ffd166, 0 4px 0 rgba(20,30,40,.35); }

.bar .bsize button.short { opacity:.45; }

/* inside a shop: top left, a back button and which building this is (the island plate steps aside) */
.shophead { position:fixed; z-index:40; top:calc(12px + env(safe-area-inset-top, 0px)); left:max(12px, env(safe-area-inset-left, 0px)); display:flex; align-items:center; gap:10px; padding:6px 16px 6px 6px; border-radius:30px; background:rgba(46,36,26,.88); color:#fbf1dc; box-shadow:0 4px 0 rgba(20,30,40,.35); }
.shophead[hidden] { display:none; }
.shophead .sback { width:44px; height:44px; padding:0; border-radius:50%; background:#fbf1dc; display:grid; place-items:center; box-shadow:inset 0 -3px 0 rgba(0,0,0,.18); }
.shophead .sback img { width:28px; height:28px; image-rendering:pixelated; filter:brightness(.25); }
.shophead .sn { display:flex; flex-direction:column; line-height:1.15; } .shophead b { font:400 20px var(--f-disp); } .shophead small { font:400 13px var(--f-disp); color:#c9b99a; }
body.inshop .hud.tl { display:none !important; }

/* nothing left to show on the island plate (level hidden while learning, name hidden while building): no empty pill */
body.hide-level.buildmode #who { display:none; }
/* phones: the cut-away sits in the upper middle and the zoomed street below competed with it — darken around the building */
@media (max-width:760px) { .shopwrap { background:radial-gradient(ellipse 85% 42% at 50% 45%, rgba(10,25,40,.12) 35%, rgba(10,25,40,.72) 100%); } }
@media (max-width:440px) { .want:not(.on) .rw { display:none; } }   /* a phone fits three faces and +N: the coin shows on the chosen one */

/* the island key card (panel.js keyCard): a new key is a quiet line under the name, not a second button */
.keynew { all: unset; cursor: pointer; font-size: 12px; color: var(--ink2, #6b5a48); text-decoration: underline; margin-top: 2px; }
.keynew:disabled { opacity: .5; cursor: default; }
