/* Stonk Hunters UI — cartoon, chunky, ink-outlined. Sibling of Stumble Stonks. */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
}
@font-face { font-family: 'Geist Fallback'; src: local('Arial'); ascent-override: 95.94%; descent-override: 28.16%; size-adjust: 104.76%; }

:root {
  --ink: #28204d;
  --ink-2: #31265e;
  --ink-soft: #28204d99;
  --ink-line: #28204d2e;
  --cream: #fffefa;
  --paper: #fff5dc;
  --sky: #8cddf6;
  --sky-2: #bfeafc;
  --pink: #ff4dad;
  --pink-2: #ff7cc4;
  --lime: #7ee27a;
  --lime-2: #b9f0a8;
  --gold: #ffcf4a;
  --gold-2: #ffe08a;
  --orange: #ff9b52;
  --mint: #5fd6b0;
  --purple: #c78bff;
  --red: #ff6b8a;
  --shadow-ink: 0 5px 0 var(--ink);
  --shadow-soft: 0 10px 30px #0b1e2c55;
  --r: 18px;
  --font: Geist, 'Geist Fallback', Arial, sans-serif;
}

/* ============ engine re-skin ============ */
body { font-family: var(--font); }
button { font-family: var(--font); }
.topbar { padding: 18px 22px; align-items: flex-start; }
.wordmark { display: none !important; }
.journal-button, #journal, #help { display: none !important; }
.tools { gap: 10px; }
.icon-button {
  width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--ink);
  box-shadow: 0 4px 0 var(--ink); backdrop-filter: none; transition: transform .12s, box-shadow .12s, background .15s;
}
.icon-button svg { width: 24px; height: 24px; }
.icon-button:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); color: var(--ink); }
.icon-button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.icon-button[aria-pressed=true] { background: var(--gold-2); border-color: var(--ink); color: var(--ink); }
#sound-button .sh-ic-soundOff, #sound-button .sh-ic-sound { display: none; }
#sound-button[aria-pressed=false] .sh-ic-soundOff { display: block; }
#sound-button[aria-pressed=true] .sh-ic-sound { display: block; }
#view-button .sh-ic-follow { display: none; }
.is-follow #view-button .sh-ic-globe { display: none; }
.is-follow #view-button .sh-ic-follow { display: block; }

.region { left: 22px; bottom: 96px; max-width: 320px; }
.is-follow .region { left: 22px; padding: 0; border: 0; background: none; backdrop-filter: none; max-width: 320px; border-radius: 0; }
.region-card { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-ink); color: var(--ink); width: max-content; max-width: 320px; }
.region-card .sh-biome-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sky-2); border: 2.5px solid var(--ink); flex: none; }
.region-card .sh-biome-ic svg { width: 26px; height: 26px; }
.region .eyebrow { font-size: 9px; letter-spacing: .18em; font-weight: 800; color: var(--pink); }
.region h1 { font-family: var(--font); font-weight: 900; font-size: 22px; letter-spacing: -.02em; margin: 2px 0 0; line-height: 1.05; text-shadow: none; color: var(--ink); }
.region p { display: none; }

.interaction-area { bottom: 92px; gap: 12px; }
.interact-button {
  min-width: 250px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 16px; background: var(--cream); color: var(--ink);
  box-shadow: var(--shadow-ink); backdrop-filter: none; transition: transform .12s, box-shadow .12s;
}
.interact-button:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.interact-button:active { transform: translateY(2px) scale(1); box-shadow: 0 2px 0 var(--ink); }
.interact-button > svg { color: var(--pink); }
.keycap { width: 36px; height: 36px; flex: 0 0 36px; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--gold); color: var(--ink); font-size: 15px; font-weight: 900; box-shadow: 0 3px 0 var(--ink); }
.action-copy > span { font-size: 8px; letter-spacing: .18em; font-weight: 800; color: var(--pink); }
.action-copy strong { font-weight: 800; font-size: 13px; color: var(--ink); }
.walk-hint { padding: 7px 14px; border-radius: 20px; background: var(--cream); border: 2.5px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 10.5px; text-shadow: none; box-shadow: 0 3px 0 var(--ink); }
.tiny-spark { color: var(--pink); }
.hint-divider { background: var(--ink-line); }

.control-strip { bottom: 22px; gap: 14px; padding: 8px 14px; background: var(--cream); border: 3px solid var(--ink); border-radius: 30px; color: var(--ink); font-size: 10.5px; font-weight: 700; box-shadow: var(--shadow-ink); backdrop-filter: none; }
.control-strip > span { gap: 5px; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border: 2px solid var(--ink); border-radius: 8px; background: var(--gold); color: var(--ink); font-family: var(--font); font-size: 12px; font-weight: 900; line-height: 1; box-shadow: 0 2px 0 var(--ink); text-transform: uppercase; }
.control-strip kbd.wide { min-width: 44px; }

.toast { top: 84px; padding: 12px 18px 12px 14px; border: 3px solid var(--ink); border-radius: 16px; background: var(--cream); color: var(--ink); font-weight: 600; font-size: 12.5px; line-height: 1.5; box-shadow: var(--shadow-ink), var(--shadow-soft); backdrop-filter: none; max-width: min(460px, 88vw); }
.toast strong { font-size: 9px; letter-spacing: .18em; font-weight: 900; color: var(--pink); }

.panel { background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 26px; padding: 30px 32px; box-shadow: 0 10px 0 var(--ink), var(--shadow-soft); }
.panel::backdrop { background: #28204d9c; backdrop-filter: blur(4px); }
.panel h2 { font-family: var(--font); font-weight: 900; font-size: 30px; letter-spacing: -.02em; margin: 8px 0 10px; text-transform: uppercase; color: var(--ink); }
.panel .eyebrow { color: var(--pink); font-weight: 900; letter-spacing: .2em; font-size: 9px; }
.panel-intro { color: var(--ink-soft); font-size: 13px; font-weight: 500; line-height: 1.55; margin: 0 0 20px; }
.close-panel { right: 14px; top: 12px; width: 38px; height: 38px; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1; box-shadow: 0 3px 0 var(--ink); }
.close-panel:hover { background: var(--red); color: var(--cream); }
.primary-button { padding: 15px 18px; background: var(--pink); color: var(--cream); border: 3px solid var(--ink); border-radius: 16px; font-size: 14px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; box-shadow: var(--shadow-ink); transition: transform .12s, box-shadow .12s; }
.primary-button:hover { background: var(--pink-2); transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.primary-button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.primary-button:disabled { opacity: .55; transform: none; box-shadow: var(--shadow-ink); }

.loading { background: var(--sky); }
.loading p { font-family: var(--font); font-weight: 900; font-size: 26px; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.loading p span { color: var(--ink-soft); font-weight: 700; letter-spacing: .12em; }
.loading-orb { background: linear-gradient(135deg, var(--lime), #3f9a5c); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); width: 56px; height: 56px; }

.joystick { border: 3px solid var(--ink); background: #fffefa77; box-shadow: 0 4px 0 var(--ink); }
#joystick-knob { background: var(--pink); border: 3px solid var(--ink); }
.jump-button { border: 3px solid var(--ink); background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--ink); backdrop-filter: none; }
.fallback p { font-family: var(--font); }

/* ============ shared components ============ */
.sh-h { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.sh-h.pink { color: var(--pink); -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.sh-h.gold { color: var(--gold); -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.sh-card { background: var(--cream); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-ink), var(--shadow-soft); color: var(--ink); }
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px; border: 3px solid var(--ink); border-radius: 14px; background: var(--pink); color: var(--cream); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; box-shadow: var(--shadow-ink); transition: transform .12s, box-shadow .12s, background .15s; text-decoration: none; }
.sh-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.sh-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.sh-btn:disabled { opacity: .55; transform: none; box-shadow: var(--shadow-ink); cursor: default; }
.sh-btn.lime { background: var(--lime); color: var(--ink); }
.sh-btn.gold { background: var(--gold); color: var(--ink); }
.sh-btn.sky { background: var(--sky); color: var(--ink); }
.sh-btn.ghost { background: var(--cream); color: var(--ink); }
.sh-btn.small { padding: 7px 12px; font-size: 11px; border-width: 2.5px; border-radius: 11px; box-shadow: 0 3px 0 var(--ink); }
.sh-btn.small:hover { box-shadow: 0 5px 0 var(--ink); }
.sh-btn.block { width: 100%; }
.sh-btn .sh-ic { flex: none; }
.sh-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border: 2.5px solid var(--ink); border-radius: 20px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: 11px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.sh-pill.pink { background: var(--pink); color: var(--cream); }
.sh-pill.gold { background: var(--gold); }
.sh-pill.lime { background: var(--lime); }
.sh-pill.sky { background: var(--sky); }
.sh-link { background: none; border: 0; padding: 0; color: var(--ink-soft); font-weight: 700; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sh-link:hover { color: var(--pink); }
.sh-muted { color: var(--ink-soft); font-size: 11.5px; font-weight: 500; line-height: 1.5; }
.sh-field { display: flex; flex-direction: column; gap: 6px; }
.sh-field > span { font-size: 9px; letter-spacing: .2em; font-weight: 900; color: var(--pink); }
.sh-field input { font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; outline: none; box-shadow: inset 0 3px 0 #28204d14; }
.sh-field input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px #ff4dad33; }
.sh-field input::placeholder { color: #28204d66; font-weight: 600; }
.sh-avatar { display: inline-block; width: 34px; height: 34px; border-radius: 46% 46% 44% 44%; border: 2.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); flex: none;
  background: radial-gradient(circle at 36% 48%, var(--ink) 2.4px, transparent 3.2px), radial-gradient(circle at 64% 48%, var(--ink) 2.4px, transparent 3.2px), radial-gradient(circle at 30% 28%, #ffffff88 5px, transparent 6px), var(--c, var(--gold)); }

/* ============ intro (docked left, planet visible) ============ */
.sh-intro { position: fixed; inset: 0; z-index: 9; pointer-events: none; animation: sh-in .5s both; }
.sh-intro[hidden] { display: none !important; }
@keyframes sh-in { from { opacity: 0; transform: translateX(-16px) } to { opacity: 1; transform: none } }
.sh-intro-card { position: absolute; left: 22px; top: 22px; bottom: 22px; width: min(450px, calc(100vw - 44px)); pointer-events: auto; display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 18px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.sh-intro-card .sh-logo { width: 100%; height: auto; max-height: 150px; }
.sh-tagline { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--sky-2); border: 2.5px solid var(--ink); font-size: 11px; font-weight: 800; }
.sh-tagline span { display: inline-flex; align-items: center; gap: 5px; }
.sh-tagline i { color: var(--pink); font-style: normal; }
.sh-name-row { display: flex; align-items: flex-end; gap: 10px; }
.sh-name-row .sh-field { flex: 1; }
.sh-name-row .sh-avatar { width: 46px; height: 46px; margin-bottom: 2px; }
.sh-modes { display: grid; gap: 12px; }
.sh-mode { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; text-align: left; padding: 12px 14px 12px 10px; border: 3px solid var(--ink); border-radius: 20px; background: var(--cream); color: var(--ink); box-shadow: var(--shadow-ink); transition: transform .12s, box-shadow .12s, background .15s; }
.sh-mode:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.sh-mode:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.sh-mode.free { background: var(--lime-2); }
.sh-mode.paid { background: var(--gold-2); }
.sh-mode .sh-art { width: 96px; height: 72px; }
.sh-mode-kicker { display: block; font-size: 8.5px; letter-spacing: .2em; font-weight: 900; color: var(--pink); }
.sh-mode strong { display: block; font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; margin: 3px 0 5px; }
.sh-mode-copy { display: block; font-size: 11px; font-weight: 600; line-height: 1.4; color: var(--ink-soft); }
.sh-mode-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11px; font-weight: 900; color: var(--ink); background: var(--cream); border: 2px solid var(--ink); border-radius: 20px; padding: 4px 10px; box-shadow: 0 2px 0 var(--ink); }
.sh-intro-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.sh-wallet { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; flex-wrap: wrap; }
.sh-wallet code { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; padding: 3px 7px; border-radius: 8px; background: var(--paper); border: 2px solid var(--ink); }
.sh-wallet-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
.sh-wallet-dot.off { background: #b9aec4; }
.sh-online { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; color: var(--ink); padding: 5px 10px; border-radius: 20px; background: var(--cream); border: 2.5px solid var(--ink); }
.sh-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); }
.sh-online.off::before { background: var(--red); }
.sh-fine { margin: 0; font-size: 9.5px; line-height: 1.5; color: var(--ink-soft); font-weight: 500; }

.sh-avatar-btn { position: relative; display: inline-grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 3px solid var(--ink); border-radius: 16px; background: var(--cream); box-shadow: 0 4px 0 var(--ink); margin-bottom: 1px; transition: transform .12s, box-shadow .12s; }
.sh-avatar-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.sh-avatar-btn:active, .sh-avatar-btn.bump { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.sh-avatar-btn .sh-avatar { width: 30px; height: 30px; box-shadow: none; }
.sh-avatar-check { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 2.5px solid var(--ink); }
.sh-avatar-check svg { width: 13px; height: 13px; }
.sh-cam-locked #view-button, .sh-cam-locked .sh-key-globe { display: none !important; }
.sh-cam-locked #world { cursor: default; }

/* ============ briefing ============ */
.sh-brief { width: min(680px, calc(100vw - 32px)); }
.sh-brief-hero { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 18px; background: var(--sky-2); margin: 4px 0 10px; }
.sh-brief-hero .sh-art { width: 130px; height: 98px; }
.sh-brief-hero strong { display: block; font-size: 16px; font-weight: 900; text-transform: uppercase; margin-bottom: 4px; }
.sh-brief-hero span { font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--ink-soft); }
.sh-nooks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 10px; }
.sh-nooks > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 4px 7px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); }
.sh-nooks .sh-art { width: 100%; height: 58px; }
.sh-nooks span { font-size: 9.5px; font-weight: 800; text-align: center; line-height: 1.2; }
.sh-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sh-chips .sh-pill b { margin: 0 3px; }
.sh-sense { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 18px; background: var(--gold-2); }
.sh-sense .sh-art { width: 96px; height: 72px; }
.sh-sense strong { display: block; font-size: 15px; font-weight: 900; text-transform: uppercase; margin-bottom: 3px; }
.sh-sense span { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.45; color: var(--ink-soft); }
.sh-sense .sh-pill { display: inline-flex; margin-top: 8px; font-size: 10.5px; }

/* ============ how to play / voice / wallet dialogs ============ */
.sh-dialog { width: min(640px, calc(100vw - 32px)); padding: 26px 28px 24px; }
.sh-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 16px; }
.sh-step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px 14px; border: 3px solid var(--ink); border-radius: 18px; background: var(--paper); text-align: center; }
.sh-step .sh-art { width: 100%; max-width: 150px; height: auto; }
.sh-step b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: var(--cream); border: 2.5px solid var(--ink); font-weight: 900; font-size: 14px; box-shadow: 0 2px 0 var(--ink); }
.sh-step strong { font-size: 15px; font-weight: 900; text-transform: uppercase; color: var(--ink); }
.sh-step span { font-size: 11px; font-weight: 600; color: var(--ink-soft); line-height: 1.4; }
.sh-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0 0 12px; padding: 0; list-style: none; }
.sh-rules li { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; font-weight: 600; line-height: 1.4; }
.sh-rules li .sh-ic { flex: none; margin-top: 1px; }
.sh-keys { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.sh-keys span { display: inline-flex; align-items: center; gap: 5px; }
.sh-voice-dialog { width: min(520px, calc(100vw - 32px)); text-align: center; }
.sh-voice-dialog .sh-art { display: block; width: 180px; height: auto; margin: 0 auto 6px; }
.sh-voice-dialog .eyebrow { display: block; }
.sh-voice-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.sh-voice-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 14px; background: var(--sky-2); border: 2.5px solid var(--ink); font-size: 11px; font-weight: 700; }
.sh-wallet-list { display: flex; flex-direction: column; gap: 10px; }
.sh-wallet-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 800; text-align: left; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.sh-wallet-opt:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: var(--cream); }
.sh-wallet-opt img, .sh-wallet-mockicon { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--gold); font-weight: 900; }
.sh-wallet-opt i { margin-left: auto; color: var(--pink); font-style: normal; font-weight: 900; }
.sh-dialog a { color: var(--pink); font-weight: 800; }

/* ============ top bar extras ============ */
.sh-brand { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.sh-brand .sh-logo-compact { width: 250px; height: 38px; filter: drop-shadow(0 3px 0 #28204d55); }
.sh-secrets { position: absolute; left: 50%; transform: translateX(-50%); top: 20px; pointer-events: auto; }
.sh-secrets .sh-pill { padding: 7px 14px 7px 9px; font-size: 12px; }
.sh-secrets .sh-pill b { color: var(--pink); }
.sh-mic.live { background: var(--lime); }
.sh-mic.muted { background: var(--red); }
.sh-mic .sh-ic-micOff { display: none; }
.sh-mic.muted .sh-ic-mic { display: none; }
.sh-mic.muted .sh-ic-micOff { display: block; }
.sh-in-menu .region, .sh-in-menu .interaction-area, .sh-in-menu .control-strip, .sh-in-menu #sh-chat, .sh-in-menu #sh-tags, .sh-in-menu .sh-secrets, .sh-in-menu .joystick, .sh-in-menu .jump-button { opacity: 0 !important; pointer-events: none !important; }

/* ============ name tags ============ */
#sh-tags { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.sh-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 20px; background: var(--cream); border: 2.5px solid var(--ink); color: var(--ink); font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 3px 0 var(--ink); transition: opacity .3s; will-change: transform; }
.sh-tag::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); }
.sh-tag-mic { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); animation: sh-pulse .9s infinite; }
.sh-tag.speaking .sh-tag-mic { display: block; }
.sh-tag.speaking { border-color: var(--lime); }
.sh-tag-found:not(:empty) { color: var(--pink); }
.sh-tag-found:not(:empty)::before { content: "·"; margin-right: 6px; color: var(--ink-soft); }
@keyframes sh-pulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.5) } }

/* ============ lobby panel ============ */
.sh-lobby { position: fixed; right: 22px; top: 84px; z-index: 6; width: min(340px, calc(100vw - 44px)); padding: 16px 18px 16px; animation: sh-in .35s both; }
.sh-lobby-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sh-lobby-head .sh-pill { font-size: 10px; }
.sh-lobby-clock { display: flex; align-items: center; gap: 14px; margin: 12px 0 10px; }
.sh-clock-ring { position: relative; width: 84px; height: 84px; flex: none; border-radius: 50%; background: conic-gradient(var(--pink) calc(var(--p, 0) * 1%), var(--paper) 0); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; }
.sh-clock-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--cream); border: 2.5px solid var(--ink); }
.sh-clock-ring strong { position: relative; font-size: 19px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sh-lobby-clock p { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.45; }
.sh-lobby-clock p small { display: block; color: var(--ink-soft); font-weight: 600; font-size: 11px; }
.sh-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sh-slots li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: var(--paper); border: 2.5px solid var(--ink); font-size: 12px; font-weight: 800; }
.sh-slots li.paid { background: var(--lime-2); }
.sh-slots li.me { outline: 3px solid var(--pink); outline-offset: -3px; }
.sh-slots li.empty { color: var(--ink-soft); font-weight: 600; border-style: dashed; background: transparent; }
.sh-slots li.empty .sh-avatar { background: #e6e0f0; }
.sh-slots li.empty .sh-avatar::after { display: none; }
.sh-slots b { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sh-slot-status { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 900; }
.sh-slots li.paid .sh-slot-status { color: #1f7a3a; }
.sh-slot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); flex: none; }
.sh-slot-dot.off { background: #b9aec4; }
.sh-pot { margin: 12px 0 4px; }
.sh-pot-bar { height: 16px; border-radius: 10px; border: 2.5px solid var(--ink); background: var(--paper); overflow: hidden; }
.sh-pot-bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--gold) 0 8px, var(--gold-2) 8px 16px); transition: width .4s; }
.sh-pot-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 800; margin-bottom: 5px; }
.sh-pot-row b { font-size: 16px; font-weight: 900; }
.sh-lobby-status { margin: 8px 0 0; font-size: 11.5px; font-weight: 600; line-height: 1.45; color: var(--ink-soft); }
.sh-pay { margin-top: 12px; }
.sh-paid-badge { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--lime-2); border: 2.5px solid var(--ink); font-size: 12.5px; font-weight: 900; }
.sh-paid-badge.pending { background: var(--gold-2); }
.sh-lobby-tip { margin: 10px 0 0; font-size: 10px; line-height: 1.45; color: var(--ink-soft); font-weight: 600; }
.sh-lobby-tip b { color: var(--ink); }
.sh-code { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 8px; background: var(--gold); border: 2px solid var(--ink); font-family: ui-monospace, Menlo, monospace; font-weight: 900; letter-spacing: .12em; }

/* ============ swapping progress ============ */
.sh-progress { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 8; display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.sh-progress .loading-orb { width: 44px; height: 44px; animation: breathe 1.8s infinite; }
.sh-progress strong { display: block; font-size: 18px; font-weight: 900; text-transform: uppercase; }
.sh-progress span { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }

/* ============ hunt bar ============ */
.sh-hunt-bar { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.sh-timer { display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 12px; border-radius: 22px; background: var(--cream); border: 3px solid var(--ink); box-shadow: var(--shadow-ink); }
.sh-timer .eyebrow { font-size: 8.5px; letter-spacing: .18em; font-weight: 900; color: var(--pink); }
.sh-timer strong { font-size: 30px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.sh-timer strong.urgent { color: var(--red); animation: sh-pulse-text 1s infinite; }
@keyframes sh-pulse-text { 50% { opacity: .5 } }
.sh-score { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sh-score span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 20px; background: var(--cream); border: 2.5px solid var(--ink); font-size: 10.5px; font-weight: 800; box-shadow: 0 3px 0 var(--ink); }
.sh-score span.me { background: var(--gold-2); }
.sh-score span i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); }
.sh-score span b { color: var(--pink); }
.sh-score-total { background: var(--pink) !important; color: var(--cream); }

/* ============ chat ============ */
.sh-chat { position: fixed; right: 22px; bottom: 22px; z-index: 6; width: min(300px, calc(100vw - 44px)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; transition: opacity .3s; }
.sh-chat-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px; border-radius: 22px; background: var(--cream); border: 3px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 900; box-shadow: var(--shadow-ink); }
.sh-chat.unread .sh-chat-toggle { background: var(--pink); color: var(--cream); }
.sh-chat-body { width: 100%; display: flex; flex-direction: column; border-radius: 18px; background: var(--cream); border: 3px solid var(--ink); overflow: hidden; box-shadow: var(--shadow-ink); }
.sh-chat.collapsed .sh-chat-body { display: none; }
.sh-chat-log { max-height: 200px; overflow: auto; padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 5px; scrollbar-width: thin; }
.sh-chat-line { font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--ink); word-break: break-word; }
.sh-chat-line b { color: var(--c, var(--pink)); margin-right: 6px; font-weight: 900; }
.sh-chat-form { display: flex; border-top: 3px solid var(--ink); }
.sh-chat-form input { flex: 1; min-width: 0; font: inherit; font-weight: 600; font-size: 12.5px; color: var(--ink); background: var(--paper); border: 0; padding: 10px 12px; outline: none; }
.sh-chat-form button { background: var(--pink); color: var(--cream); border: 0; border-left: 3px solid var(--ink); font-size: 12px; font-weight: 900; padding: 0 14px; }

/* ============ results ============ */
.sh-results { width: min(560px, calc(100vw - 32px)); }
.sh-results-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sh-results-head .sh-ic { width: 54px; height: 54px; }
.sh-results-list { display: flex; flex-direction: column; gap: 8px; }
.sh-result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--paper); border: 2.5px solid var(--ink); }
.sh-result.me { background: var(--gold-2); }
.sh-result:first-child { background: var(--lime-2); }
.sh-result-rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--cream); font-weight: 900; font-size: 13px; flex: none; }
.sh-result:first-child .sh-result-rank { background: var(--gold); }
.sh-result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sh-result-body b { font-size: 14px; font-weight: 900; }
.sh-result-body span { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.45; }
.sh-result strong { font-size: 20px; font-weight: 900; color: var(--ink); }
.sh-payouts { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.sh-payout { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--paper); border: 2px solid var(--ink); font-size: 11.5px; font-weight: 700; }
.sh-payout span { color: var(--ink-soft); }
.sh-payout em { font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 900; }
.sh-payout a { color: var(--pink); }
.sh-payout-dot { width: 12px; height: 12px; border-radius: 50%; background: #b9aec4; border: 2px solid var(--ink); }
.sh-payout.sending .sh-payout-dot { background: var(--gold); animation: sh-pulse .9s infinite; }
.sh-payout.sent .sh-payout-dot { background: var(--lime); }
.sh-payout.failed .sh-payout-dot { background: var(--red); }
.sh-payouts details { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.sh-payouts summary { cursor: pointer; margin-bottom: 6px; }
.sh-results-actions { display: flex; gap: 10px; margin-top: 18px; }
.sh-results-actions .sh-btn { flex: 1; }

/* ============ dev ============ */
#sh-dev { position: fixed; left: 22px; top: 84px; z-index: 9; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: var(--cream); border: 3px solid var(--ink); font-size: 10px; font-weight: 700; color: var(--ink); max-width: 220px; }
#sh-dev button { font-size: 10px; font-weight: 800; padding: 6px 9px; border-radius: 9px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); text-align: left; }

/* ============ responsive ============ */
@media (max-width: 760px) {
  .sh-intro-card { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 82dvh; padding: 16px 16px 14px; gap: 12px; }
  .sh-intro-card .sh-logo { max-height: 110px; }
  .sh-mode { grid-template-columns: 72px 1fr; }
  .sh-mode .sh-art { width: 72px; height: 54px; }
  .sh-mode strong { font-size: 18px; }
  .sh-tagline { display: none; }
  .sh-steps3 { grid-template-columns: 1fr; }
  .sh-nooks { grid-template-columns: repeat(3, 1fr); }
  .sh-brief-hero, .sh-sense { grid-template-columns: 1fr; }
  .sh-brief-hero .sh-art, .sh-sense .sh-art { margin: 0 auto; }
  .sh-rules { grid-template-columns: 1fr; }
  .sh-lobby { right: 10px; left: 10px; top: 70px; width: auto; padding: 12px 14px; }
  .sh-hunt-bar { top: 66px; }
  .sh-timer strong { font-size: 24px; }
  .sh-chat { right: 10px; bottom: 112px; width: min(260px, calc(100vw - 20px)); }
  .sh-brand .sh-logo-compact { width: 118px; height: 24px; }
  .icon-button { width: 40px; height: 40px; border-width: 2.5px; }
  .icon-button svg { width: 21px; height: 21px; }
  .tools { gap: 6px; }
  .sh-secrets { top: 64px; }
  .topbar { padding: 12px 12px; }
  .region { left: 12px; bottom: 100px; }
  .region-card { max-width: 230px; }
  .control-strip { width: max-content; max-width: calc(100% - 24px); padding: 7px 12px; gap: 10px; }
}

/* wallet picker: rows for wallets you don't have yet (install link / phone deep link) */
.sh-wallet-get { text-decoration: none; }
.sh-wallet-get > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.sh-wallet-get small { font-size: 11px; font-weight: 600; color: #6a638a; }
.sh-wallet-get .sh-wallet-mockicon { background: var(--sky); }

/* paid card while the token is pending (real chain, no mint yet) */
.sh-mode.paid.pending { background: var(--cream); opacity: .92; }
.sh-mode.paid.pending .sh-mode-kicker { color: var(--pink); }
.sh-mode.paid.pending .sh-mode-cta { background: var(--sky); }
