:root {
  --green: #0f6b3f;
  --green-2: #16884f;
  --green-soft: #e3f3ea;
  --ink: #1d2a24;
  --muted: #6b766f;
  --line: #e7e3da;
  --cream: #faf8f3;
  --card: #ffffff;
  --shadow: 0 6px 24px rgba(30, 40, 30, 0.12);
  --radius: 18px;
  --panel-w: 400px;
  --top-h: 0px; /* header removed */
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; color: var(--green); text-decoration: none; letter-spacing: -0.5px; }
.brand-icon { font-size: 28px; }
.search { flex: 1; max-width: 560px; position: relative; display: flex; align-items: center; background: #efede7; border-radius: 14px; padding: 0 16px; height: 46px; }
.search svg { color: var(--muted); flex: none; }
.search input { border: 0; background: none; outline: none; flex: 1; height: 100%; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); }
.search-results {
  position: absolute; top: 52px; left: 0; right: 0; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; max-height: 360px; overflow: auto;
}
.search-results button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-align: left; }
.search-results button:hover, .search-results button:focus-visible { background: var(--green-soft); outline: none; }
.search-results .sr-icon { font-size: 22px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f2efe8; }
.search-results small { display: block; color: var(--muted); font-size: 12px; }
.search-results .empty { padding: 12px; color: var(--muted); font-size: 14px; }

.topnav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.navlink { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 16px; }
.navlink:hover { background: #efede7; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.badge.mini { position: absolute; top: 2px; right: 14px; min-width: 18px; height: 18px; font-size: 11px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #7cc47f; display: grid; place-items: center; font-size: 26px; margin-left: 8px; }

/* ---------- Layout ---------- */
.layout { display: flex; height: calc(100% - var(--top-h)); }
.map-wrap { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.map { position: absolute; inset: 0; }
.map canvas { display: block; touch-action: none; }

/* ---------- Map overlays ---------- */

.place-card { position: absolute; top: 74px; left: 16px; display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.place-pin { font-size: 22px; }
.place-card strong { display: block; font-size: 17px; }
.place-card small { color: var(--muted); }
.lite-btn { margin-left: 18px; padding: 8px 16px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 14px; }
.lite-btn[aria-pressed='true'] { background: var(--green); color: #fff; }

.enter-label {
  position: absolute; transform: translate(-50%, -50%); padding: 9px 20px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(15, 107, 63, 0.4); border: 2px solid #fff; white-space: nowrap; z-index: 3;
}
.enter-label:hover { background: var(--green-2); }

.minimap { position: absolute; left: 16px; bottom: 16px; width: 150px; height: 150px; border-radius: 16px; border: 4px solid #fff; box-shadow: var(--shadow); cursor: pointer; background: #a9c98a; }

.zoom { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.zoom button { width: 44px; height: 42px; font-size: 22px; font-weight: 600; }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom button:hover { background: #f2efe8; }

.bottomnav { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; z-index: 6; }
.bottomnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.bottomnav button.active { color: var(--green); }
.bottomnav button:hover { background: #f2efe8; }

.hint { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); background: rgba(29, 42, 36, 0.82); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; pointer-events: none; transition: opacity 0.6s; white-space: nowrap; }

/* ---------- Shop list overlay ---------- */
.shop-list { position: absolute; inset: 0; background: var(--cream); overflow: auto; padding: 76px 24px 110px; z-index: 5; }
.shop-list h2 { margin: 0 0 16px; font-size: 22px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-card { background: var(--card); border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; text-align: left; transition: transform 0.15s, box-shadow 0.15s; }
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.shop-card .row { display: flex; gap: 12px; align-items: center; }
.shop-card strong { font-size: 16px; }
.shop-card small { color: var(--muted); }
.shop-card .peek { display: flex; gap: 6px; font-size: 22px; }

/* ---------- Side panel ---------- */
.panel { width: var(--panel-w); flex: none; background: var(--cream); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel-empty { margin: auto; text-align: center; color: var(--muted); padding: 40px; }
.panel-empty .big { font-size: 56px; }
.shop-head { display: flex; gap: 16px; align-items: center; padding: 22px 22px 8px; }
.thumb { width: 110px; height: 96px; border-radius: 16px; display: grid; place-items: center; font-size: 46px; flex: none; position: relative; overflow: hidden; background: var(--c); }
.thumb::after { content: ''; position: absolute; left: 0; right: 0; top: 54%; height: 16px; background: repeating-linear-gradient(90deg, var(--a) 0 14px, #fdfaf3 14px 28px); }
.thumb span { position: relative; top: -10px; }
.shop-head h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.4px; line-height: 1.15; }
.verified { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.verified i { width: 20px; height: 20px; border-radius: 50%; background: var(--green-2); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; }
.fav { margin-left: auto; align-self: flex-start; width: 40px; height: 40px; border-radius: 50%; background: #efede7; font-size: 18px; flex: none; }
.fav.on { background: #fde3e3; color: #d43c3c; }

.tabs { display: flex; padding: 0 22px; border-bottom: 1px solid var(--line); margin-top: 10px; }
.tabs button { flex: 1; padding: 12px 0; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button.active { color: var(--green); border-color: var(--green); }
.tabs .collapse-btn { flex: none; width: 40px; font-size: 18px; color: var(--muted); transition: transform 0.2s; }
.tabs .collapse-btn:hover { color: var(--green); }

/* Minimised: the panel shrinks to a small shop button floating over the map,
   so the 3D view gets the whole screen. */
.layout { position: relative; }
.layout.panel-collapsed .panel { position: absolute; top: 16px; right: 16px; width: auto; height: auto; background: none; border: 0; z-index: 9; }
.panel-fab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 5px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); animation: pop 0.2s ease; transition: transform 0.15s; }
.panel-fab:hover { transform: translateY(-2px); }
.panel-fab .thumb { width: 58px; height: 52px; font-size: 26px; border-radius: 13px; }
.panel-fab .thumb::after { height: 9px; }
.panel-fab .thumb span { top: -7px; }
.fab-name { font-size: 11px; font-weight: 700; max-width: 74px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fab-flag { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #f0573c; display: grid; place-items: center; font-size: 12px; font-style: normal; }
.layout.panel-collapsed .int-people { top: 64px; left: 16px; right: auto; }

.tab-body { flex: 1; overflow: auto; padding: 16px 22px; min-height: 0; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.product .img { aspect-ratio: 1.25; display: grid; place-items: center; font-size: 54px; }
.product .info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .name { font-size: 14px; line-height: 1.3; }
.product .buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-weight: 800; font-size: 17px; color: var(--green); }
.add { width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: #fff; font-size: 22px; font-weight: 600; line-height: 1; }
.add:hover { background: var(--green-2); }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--green-soft); border-radius: 10px; padding: 2px; }
.stepper button { width: 26px; height: 28px; border-radius: 8px; background: #fff; font-weight: 700; color: var(--green); }
.product .buy { gap: 6px; flex-wrap: wrap; }
.stepper span { min-width: 16px; text-align: center; font-weight: 700; }

.about p { line-height: 1.6; margin: 0 0 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.fact small { color: var(--muted); display: block; }
.fact b { font-size: 15px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.review .stars { color: #f0a500; letter-spacing: 1px; }
.review p { margin: 6px 0 0; line-height: 1.5; }

.panel-actions { display: flex; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.btn { flex: 1; height: 50px; border-radius: 14px; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.ghost { background: #efede7; }
.btn.ghost:hover { background: #e6e3dc; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 30, 25, 0.35); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 31; transform: translateX(100%); transition: transform 0.25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.15); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 22px; }
.close { width: 38px; height: 38px; border-radius: 50%; background: #efede7; font-size: 20px; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 22px; }
.drawer-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.group-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.line { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.line + .line { border-top: 1px dashed var(--line); }
.line .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; flex: none; }
.line .meta { flex: 1; min-width: 0; }
.line .meta small { color: var(--muted); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 15px; }
.totals .grand { font-weight: 800; font-size: 18px; }
.seg { display: flex; background: #efede7; border-radius: 12px; padding: 4px; }
.seg button { flex: 1; padding: 9px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.seg button.active { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.empty-state { text-align: center; color: var(--muted); padding: 50px 10px; }
.empty-state .big { font-size: 52px; }

.order { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.order-top { display: flex; justify-content: space-between; align-items: baseline; }
.order-top small { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.steps li .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 11px; flex: none; background: #fff; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.steps li.now .dot { border-color: var(--green-2); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(22, 136, 79, 0.2); } }
.escrow { background: #fff8e6; border: 1px solid #f3dfae; color: #7a5a12; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.escrow.released { background: var(--green-soft); border-color: #bfe3cd; color: var(--green); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(20, 30, 25, 0.5); display: grid; place-items: center; padding: 16px; }
.sheet { width: min(420px, 100%); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.sheet-head { background: #011b33; color: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.sheet-head b { font-size: 17px; }
.sheet-head small { opacity: 0.7; display: block; }
.sheet-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.demo-tag { background: #fff3cd; color: #7a5a12; padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; text-align: left; }
.pay-option.active { border-color: #3bb75e; background: #f2fbf5; }
.pay-option span { font-size: 22px; }
.pay-btn { height: 52px; border-radius: 14px; background: #3bb75e; color: #fff; font-weight: 800; font-size: 16px; }
.pay-btn:hover { background: #2fa451; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #e6f4ea; border-top-color: #3bb75e; animation: spin 0.8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: center; padding: 10px 0; }
.success .big { font-size: 56px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; font: inherit; font-weight: 500; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; font-weight: 600; box-shadow: var(--shadow); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root { --top-h: 0px; }
  .topbar { gap: 12px; padding: 0 16px; }
  .brand span:last-child, .topnav .navlink:not(.cart-link), .avatar { display: none; }
  .search { height: 40px; }
  .layout { flex-direction: column; }
  .map-wrap { flex: 1; }
  .panel { width: 100%; height: 48%; border-left: 0; border-top: 1px solid var(--line); }
  .layout.panel-collapsed .panel { top: 62px; right: 12px; height: auto; }
  .shop-head { padding: 14px 16px 4px; }
  .thumb { width: 70px; height: 62px; font-size: 30px; }
  .thumb::after { height: 10px; }
  .shop-head h2 { font-size: 19px; }
  .tab-body, .tabs { padding-left: 16px; padding-right: 16px; }
  .panel-actions { padding: 10px 16px 14px; }
  .btn { height: 44px; font-size: 15px; }
  .place-card { top: 64px; padding: 8px 10px; }
  .place-card strong { font-size: 15px; }
  .lite-btn { margin-left: 6px; }
  .search { min-width: 0; }
  .cart-link { font-size: 0; gap: 4px; padding: 8px; }
  .cart-link svg { width: 24px; height: 24px; }
  .place-card small { display: none; }
  .bottomnav button { white-space: nowrap; }
  .minimap { width: 92px; height: 92px; bottom: 82px; }
  .bottomnav { bottom: 10px; }
  .bottomnav button { padding: 4px 14px; font-size: 12px; }
  .zoom { bottom: 82px; }
  .hint { display: none; }
}

/* ---------- Phone ---------- */
.phone-layer { position: fixed; inset: 0; z-index: 35; pointer-events: none; }
.phone-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 25, 0.25); opacity: 0; transition: opacity 0.25s; pointer-events: auto; }
.phone-layer.show .phone-backdrop { opacity: 1; }
.phone {
  position: absolute; right: calc(var(--panel-w) + 80px); bottom: 20px;
  width: 300px; height: min(620px, calc(100vh - var(--top-h) - 40px));
  background: #0d0f12; border-radius: 48px; padding: 11px;
  box-shadow: 0 0 0 2px #3a3f47, 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(calc(100% + 40px)) rotate(4deg); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  pointer-events: auto; display: flex; flex-direction: column;
}
.phone-layer.show .phone { transform: none; }
.phone-close {
  position: absolute; right: calc(var(--panel-w) + 30px); bottom: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); font-size: 22px; pointer-events: auto; opacity: 0; transition: opacity 0.25s;
}
.phone-layer.show .phone-close { opacity: 1; }

.island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 92px; height: 28px; border-radius: 20px; background: #000; color: #fff;
  display: flex; align-items: center; gap: 10px; padding: 0 10px; overflow: hidden;
  transition: width 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.25), height 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.25), border-radius 0.4s;
}
.island-cam { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a6b, #0b0d12 70%); flex: none; }
.island-icon, .island-text { opacity: 0; transition: opacity 0.2s; }
.island-icon { font-size: 18px; width: 34px; height: 34px; border-radius: 50%; background: #1f2a24; display: grid; place-items: center; flex: none; }
.island-text { font-size: 12.5px; font-weight: 600; line-height: 1.3; min-width: 0; }
.island:not(.expanded) .island-icon, .island:not(.expanded) .island-text { width: 0; overflow: hidden; }
.island.expanded { width: 262px; height: 62px; border-radius: 30px; }
.island.expanded .island-icon, .island.expanded .island-text { opacity: 1; transition-delay: 0.15s; }

.phone-status { position: absolute; top: 22px; left: 36px; right: 32px; display: flex; justify-content: space-between; font-size: 13px; color: #fff; z-index: 4; pointer-events: none; }
.phone.in-app .phone-status { color: var(--ink); }
.phone-screen {
  flex: 1; border-radius: 38px; overflow: hidden; min-height: 0;
  background: radial-gradient(circle at 20% 10%, #59d18f 0, transparent 45%), radial-gradient(circle at 90% 80%, #f2c35b 0, transparent 40%), linear-gradient(160deg, #0f6b3f, #0b3d2a);
}
.phone-screen.in-app { background: #f6f5f1; }
.home-bar { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }
.phone.in-app .home-bar { background: #1d2a24; }

.home { height: 100%; display: flex; flex-direction: column; padding: 62px 16px 16px; color: #fff; }
.widget { text-align: center; margin-bottom: 20px; }
.w-time { font-size: 52px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.w-date { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.w-card { margin: 14px auto 0; display: inline-block; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; }
.app-icon { position: relative; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transition: transform 0.12s; }
.app:hover .app-icon { transform: scale(0.94); }
.app-badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.app-label { font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.dock { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 8px; border-radius: 26px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); margin-bottom: 14px; }

.app-view { height: 100%; display: flex; flex-direction: column; animation: appIn 0.22s ease; }
@keyframes appIn { from { transform: scale(0.94); opacity: 0; } }
.app-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 56px 10px 8px; text-align: center; font-size: 17px; }
.app-head button { font-size: 30px; line-height: 1; color: var(--green); height: 36px; }
.app-body { flex: 1; overflow: auto; padding: 6px 14px 40px; display: flex; flex-direction: column; gap: 8px; }
.p-search { height: 38px; border-radius: 12px; border: 0; background: #e9e7e1; padding: 0 12px; font: inherit; font-size: 14px; outline: none; flex: none; }
.p-list { display: flex; flex-direction: column; gap: 8px; }
.p-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #fff; text-align: left; width: 100%; flex: none; }
.p-row:not(.static):hover { background: var(--green-soft); }
.p-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; flex: none; }
.p-ico.round { border-radius: 50%; }
.p-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; }
.p-meta small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-price { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; }
.p-price s { color: var(--muted); font-size: 11px; }
.p-price b { color: var(--green); }
.p-price em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: #f0573c; border-radius: 6px; padding: 1px 5px; margin-top: 2px; }
.p-chev, .p-time { color: var(--muted); font-size: 12px; }
.p-chev { font-size: 22px; }
.p-card { background: #fff; border-radius: 14px; padding: 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; flex: none; }
.p-card small { color: var(--muted); }
.p-card-top { display: flex; justify-content: space-between; align-items: baseline; }
.p-progress { height: 6px; border-radius: 3px; background: #e9e7e1; overflow: hidden; }
.p-progress span { display: block; height: 100%; background: var(--green-2); border-radius: 3px; transition: width 0.4s; }
.p-btn { height: 42px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.p-btn.ghost { background: #fff; color: var(--ink); flex: 1; }
.p-actions { display: flex; gap: 8px; }
.p-total { display: flex; justify-content: space-between; padding: 6px 4px; font-size: 15px; }
.p-h { margin: 8px 2px 0; font-size: 14px; }
.p-empty { text-align: center; color: var(--muted); padding: 50px 0; font-size: 14px; }
.p-empty div { font-size: 40px; margin-bottom: 6px; }
.wallet-card { border-radius: 18px; padding: 16px; color: #fff; background: linear-gradient(135deg, #3f4bd8, #7c8cff); display: flex; flex-direction: column; gap: 4px; flex: none; }
.wallet-card small { opacity: 0.85; }
.wallet-funding .p-actions { flex-wrap:wrap; }
.wallet-funding .p-actions .p-btn { flex:1; min-width:120px; min-height:44px; height:auto; padding:10px; }
.wallet-funding input { font-size:16px; min-height:44px; }
.wallet-funding button:disabled { opacity:.5; cursor:default; }
.fund-note { font-size:13px; line-height:1.5; color:var(--muted); }
.fund-error { font-size:13px; line-height:1.5; color:#b12e36; }
.fund-ref { overflow-wrap:anywhere; font:10px monospace; color:var(--muted); }
.w-bal { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.p-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 600; }
.p-toggle small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.p-toggle input { width: 20px; height: 20px; accent-color: var(--green-2); }

@media (max-width: 900px) {
  .phone { right: auto; left: 50%; bottom: auto; top: 50%; height: min(620px, 88vh); width: min(300px, 86vw); transform: translate(-50%, 130%); }
  .phone-layer.show .phone { transform: translate(-50%, -50%); }
  .phone-close { right: 12px; top: 12px; bottom: auto; }
}

/* ---------- Shop interior ---------- */
.live-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); font-weight: 600; margin-top: 4px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.interior { position: absolute; inset: 0; z-index: 8; background: #2b2522; overflow: hidden; }
.int-canvas, .int-canvas canvas { position: absolute; inset: 0; display: block; touch-action: none; }
.int-labels { position: absolute; inset: 0; pointer-events: none; }
.int-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.int-tag i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.int-tag.me { background: var(--green); color: #fff; }
.int-tag.owner { background: #fff3cd; }
.int-tag.remote { background: #e0ecff; }
.int-tag.remote::after { content: 'LIVE'; font-size: 9px; color: #fff; background: #ef4444; border-radius: 4px; padding: 1px 4px; margin-left: 2px; }
.int-bubble { position: absolute; left: 0; top: 0; max-width: 200px; padding: 8px 12px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.35; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); animation: pop 0.2s ease; }
.int-bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes pop { from { opacity: 0; scale: 0.8; } }

.int-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.int-back { pointer-events: auto; padding: 10px 16px; border-radius: 999px; background: #fff; font-weight: 700; box-shadow: var(--shadow); }
.int-back:hover { background: var(--green-soft); }
.int-title { display: flex; flex-direction: column; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.int-title b { font-size: 18px; }
.int-title small { opacity: 0.85; font-size: 12.5px; }

.int-people { position: absolute; top: 14px; right: 16px; max-width: 220px; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); font-size: 12.5px; }
.int-people b { font-size: 13px; margin-bottom: 2px; }
.int-people span { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-people i { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.int-pop { position: absolute; width: 190px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; gap: 6px; z-index: 2; animation: pop 0.15s ease; }
.int-pop-img { height: 92px; border-radius: 12px; display: grid; place-items: center; font-size: 52px; }
.int-pop .btn { height: 40px; font-size: 14px; }
.int-pop-row { display: flex; align-items: center; justify-content: space-between; }
.int-pop-row small { color: var(--muted); }
.int-pop-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); font-size: 16px; }

.int-chat { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow); }
.int-chat input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; padding: 0 10px; }
.int-chat button { padding: 10px 16px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 700; }
.int-hint { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); color: #fff; background: rgba(0, 0, 0, 0.45); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; pointer-events: none; }

.int-fade { position: absolute; inset: 0; background: #1d2a24; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; pointer-events: none; opacity: 1; transition: opacity 0.6s 0.25s; }
.interior.ready .int-fade { opacity: 0; }

@media (max-width: 900px) {
  .int-people { display: none; }
  .int-title b { font-size: 15px; }
  .int-back { padding: 8px 12px; font-size: 14px; }
  .int-hint { display: none; }
  .int-chat { bottom: 10px; }
}

/* ================= Game layer ================= */

/* ---------- HUD ---------- */
.hud { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 6px 4px 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); flex: none; }
.hud-lv { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, #34c47c, #0f6b3f); color: #fff; font-weight: 800; font-size: 17px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.hud-xp { display: flex; flex-direction: column; min-width: 112px; line-height: 1.1; }
.hud-xp b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.hud-xp small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.xpbar { height: 6px; border-radius: 3px; background: #e9e7e1; overflow: hidden; margin-top: 3px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #f2c35b, #f39b4b); border-radius: 3px; transition: width 0.5s; }
.hud-coins { position: relative; display: flex; align-items: center; gap: 4px; padding: 7px 10px; border-radius: 12px; background: #fff7e0; font-size: 14px; }
.hud-coins b { font-weight: 800; color: #9a6a00; }
.hud-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; animation: pulse 1.2s infinite; }
.hud-clock { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; padding: 0 4px; }
.hud-mute { width: 34px; height: 34px; border-radius: 10px; background: #f2efe8; font-size: 16px; }

/* ---------- Reward feed / level up ---------- */
.feed { position: fixed; top: calc(var(--top-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; width: min(460px, calc(100% - 32px)); }
.feed-item { background: rgba(29, 42, 36, 0.92); color: #fff; padding: 9px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: feedIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3); transition: opacity 0.4s, transform 0.4s; text-align: center; }
.feed-item.reward { background: linear-gradient(135deg, #0f6b3f, #16884f); }
.feed-item.quest { background: linear-gradient(135deg, #c9971b, #e08a1e); }
.feed-item.event { background: linear-gradient(135deg, #3f4bd8, #6a4bd8); }
.feed-item.out { opacity: 0; transform: translateY(-8px); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-12px) scale(0.9); } }
.levelup { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 46; text-align: center; color: #fff; pointer-events: none; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.levelup small { display: block; font-size: 16px; font-weight: 800; letter-spacing: 4px; color: #f2c35b; }
.levelup b { display: block; font-size: 56px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.levelup span { display: inline-block; margin-top: 8px; background: rgba(15, 107, 63, 0.9); padding: 6px 16px; border-radius: 999px; font-weight: 700; }
.levelup.show { animation: lvl 2.6s ease forwards; }
@keyframes lvl { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 20% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }

/* ---------- FX ---------- */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.fx-float { position: fixed; z-index: 61; transform: translate(-50%, 0); font-weight: 800; color: #c98a00; font-size: 16px; text-shadow: 0 1px 0 #fff, 0 2px 8px rgba(0, 0, 0, 0.2); pointer-events: none; animation: floatUp 1.4s ease forwards; }
@keyframes floatUp { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -46px); } }
.fx-fly { position: fixed; z-index: 61; font-size: 30px; pointer-events: none; transition: transform 0.6s cubic-bezier(0.5, -0.3, 0.7, 1), opacity 0.6s; }
.bump { animation: bump 0.35s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- Map labels ---------- */
.map-tag { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; white-space: nowrap; }
.map-tag.you { background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.map-tag.hawker { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.ht-name { background: rgba(255, 255, 255, 0.92); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.ht-call { background: #fff; padding: 6px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); animation: pop 0.2s ease; }
.hawker-pop { position: absolute; left: 0; top: 0; z-index: 4; width: 230px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; gap: 6px; }
.hawker-pop small { color: var(--muted); font-style: italic; }
.hawker-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: #f6f5f1; text-align: left; }
.hawker-item:hover { background: var(--green-soft); }
.hawker-item > span:first-child { font-size: 24px; }
.hawker-item span:nth-child(2) { flex: 1; font-size: 13.5px; font-weight: 600; }
.hawker-item small { display: block; color: var(--green); font-style: normal; font-weight: 700; }
.hawker-item b { width: 28px; height: 28px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; }

/* ---------- Panel extras ---------- */
.shop-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.flag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #efede7; color: var(--muted); }
.flag.on { background: var(--green-soft); color: var(--green); }
.flag.gold { background: #fff3cd; color: #9a6a00; }
.banner { margin: 10px 22px 0; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.banner.flash { background: linear-gradient(90deg, #f0573c, #f39b4b); color: #fff; animation: pulseBg 1.4s infinite; }
.banner.closed { background: #2f3550; color: #fff; }
@keyframes pulseBg { 50% { filter: brightness(1.1); } }
.price.deal { display: flex; flex-direction: column; line-height: 1.1; color: #e0482c; }
.price.deal s { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.deal-price { color: #e0482c; }
.deal-tag { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: #f0573c; padding: 1px 6px; border-radius: 6px; }
.tc-title { margin: 18px 0 8px; font-size: 14px; }
.top-customers { display: flex; flex-direction: column; gap: 6px; }
.tc { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.tc span { width: 24px; text-align: center; }
.tc b { flex: 1; }
.tc small { color: var(--green); font-weight: 700; }
.tc.you { border-color: var(--green-2); background: var(--green-soft); }

/* ---------- Interior extras ---------- */
.int-tag em.on { font-style: normal; font-size: 9px; color: #fff; background: #22c55e; border-radius: 4px; padding: 1px 4px; margin-left: 3px; }
.int-emotes { display: flex; gap: 2px; }
.int-chat .int-emotes button { background: #f2efe8; color: inherit; padding: 6px 8px; font-size: 17px; border-radius: 10px; }
.int-chat .int-emotes button:hover { background: var(--green-soft); }
.haggle-btn { height: 38px; background: #fff3cd; color: #7a5a12; font-size: 14px; }
.haggle-btn:hover { background: #ffe8a3; }
.int-pop .was { color: var(--muted); font-size: 12px; font-weight: 500; }
.int-pop .vexed { color: #b4362a; font-size: 12px; }

/* ---------- Haggle ---------- */
.haggle-layer { position: fixed; inset: 0; z-index: 42; background: rgba(20, 30, 25, 0.45); display: grid; place-items: center; padding: 16px; }
.haggle { position: relative; width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: pop 0.2s ease; }
.haggle-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: #f2efe8; font-size: 18px; }
.haggle-owner { display: flex; gap: 12px; align-items: flex-start; padding-right: 30px; }
.haggle-face { font-size: 44px; line-height: 1; transition: transform 0.2s; }
.haggle-say { background: #f6f5f1; border-radius: 4px 16px 16px 16px; padding: 10px 12px; flex: 1; }
.haggle-say b { font-size: 12px; color: var(--muted); }
.haggle-say p { margin: 2px 0 0; font-weight: 600; line-height: 1.4; }
.mood { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mood-bar { flex: 1; height: 8px; border-radius: 4px; background: #eee; overflow: hidden; }
.mood-bar i { display: block; height: 100%; border-radius: 4px; transition: width 0.4s, background 0.4s; }
.haggle-item { display: flex; gap: 12px; align-items: center; background: #faf8f3; border-radius: 16px; padding: 10px; }
.haggle-img { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 34px; flex: none; }
.haggle-item small { display: block; color: var(--muted); }
.ask { margin-top: 2px; }
.ask b { color: var(--green); font-size: 18px; }
.offer label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.offer label b { color: #e0482c; font-size: 18px; }
.offer input { width: 100%; accent-color: #e0482c; margin: 8px 0; }
.offer-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.offer-quick button { padding: 6px 10px; border-radius: 999px; background: #f2efe8; font-size: 13px; font-weight: 600; }
.offer-quick button:hover { background: #fde1d9; }
.haggle-actions { display: flex; gap: 8px; }
.haggle-actions .btn { height: 46px; font-size: 14px; }
.haggle-round { text-align: center; color: var(--muted); }
.haggle-result { text-align: center; padding: 12px; border-radius: 14px; background: #f6f5f1; font-weight: 600; line-height: 1.5; }
.haggle-result.win { background: var(--green-soft); color: var(--green); }
.haggle-result.lose { background: #fde3e3; color: #b4362a; }
.btn.wide { width: 100%; flex: none; }

/* ---------- Avatar creator ---------- */
.creator-layer { position: fixed; inset: 0; top:var(--modal-top,0px); bottom:auto; height:var(--modal-height,100dvh); z-index: 44; background: rgba(15, 40, 28, 0.6); display: grid; place-items: center; padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); overflow:hidden; }
.creator { width: min(720px, 100%); height:min(660px,100%); min-height:0; background: #fff; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 260px minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); animation: pop 0.25s ease; }
.creator-preview { grid-column:1; grid-row:1 / 4; background: radial-gradient(circle at 50% 35%, #ffffff, #e3f3ea 70%); min-height:0; min-width:0; }
.creator-preview canvas { display: block; width: 100%; height: 100%; }
.creator-head { grid-column:2; position:relative; padding:20px 48px 14px 20px; }
.creator-head h2 { margin:0; font-size:22px; }
.creator-close { position:absolute; top:10px; right:10px; }
.creator-form { grid-column:2; min-height:0; padding: 4px 20px 18px; display: flex; flex-direction: column; gap: 12px; overflow-y:auto; overscroll-behavior:contain; }
.creator-form > * { flex-shrink:0; }
.creator-sub { margin:6px 0 0; color: var(--muted); font-size: 13px; line-height:1.45; }
.opt > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.opt .row { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sw.on { box-shadow: 0 0 0 3px var(--green-2); }
.chip-s { padding: 6px 12px; border-radius: 999px; background: #f2efe8; font-size: 13px; font-weight: 600; }
.chip-s.on { background: var(--green); color: #fff; }
.chip-s.locked { opacity: 0.55; }
.hint-s { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.creator-actions { grid-column:2; display: flex; gap: 8px; padding:12px 20px; border-top:1px solid var(--line); background:#fff; }
.creator-actions .btn { flex:1; min-width:0; min-height:44px; }
@media(max-width:600px){
 .creator { grid-template-columns:104px minmax(0,1fr); border-radius:20px; }
 .creator-preview { grid-row:1; height:124px; }
 .creator-head { display:flex; flex-direction:column; justify-content:center; padding:16px 40px 16px 12px; }
 .creator-head h2 { font-size:19px; }
 .creator-form { grid-column:1 / -1; padding:12px 16px 16px; gap:12px; border-top:1px solid var(--line); }
 .creator-form .field input { min-height:44px; font-size:16px; }
 .creator-form .sw { width:36px; height:36px; margin:3px; }
 .creator-form .chip-s { min-height:40px; padding:8px 12px; }
 .creator-actions { grid-column:1 / -1; padding:10px 16px; }
}

/* ---------- Phone game apps ---------- */
.p-btn.small { height: 30px; padding: 0 14px; font-size: 13px; }
.quest.claimed { opacity: 0.6; }
.quest-head b { font-size: 15px; }
.stamp-row { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: none; }
.stamp-row small { color: var(--muted); }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #d5d1c7; color: #c0bcb2; font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.stamp.got { border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 25%, #fff); color: inherit; font-size: 20px; transform: rotate(-8deg); }
.me-card { flex-direction: row; align-items: center; gap: 12px; }
.me-card > div:last-child { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.me-lv { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(145deg, #34c47c, #0f6b3f); color: #fff; font-weight: 800; font-size: 24px; display: grid; place-items: center; flex: none; }
.me-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.me-stats .p-card { align-items: center; text-align: center; gap: 2px; }
.w-coins { margin-top: 4px; font-weight: 700; opacity: 1 !important; }
.phone .app-grid { gap: 12px 6px; }
.phone .widget { margin-bottom: 14px; }
.phone .w-time { font-size: 46px; }

@media (max-width: 1180px) {
  .hud-xp { display: none; }
}
@media (max-width: 900px) {
  .hud { padding: 3px; gap: 4px; border-radius: 12px; }
  .hud-lv { width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }
  .hud-clock, .hud-mute { display: none; }
  .hud-coins { padding: 5px 8px; font-size: 13px; }
  .banner { margin: 8px 16px 0; }
  .int-emotes button { padding: 4px 6px; font-size: 15px; }
}

/* ---------- Status pill: time · weather · online · wallet (top centre) ---------- */
.status-row { position: absolute; top: 14px; left: 16px; z-index: 4; display: flex; align-items: center; gap: 10px; }
.status-row .place-card { position: static; }
.clock-pill { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.96); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); font-size: 14px; white-space: nowrap; }
.clock-pill > * + * { padding-left: 12px; border-left: 1px solid var(--line); }
.sp-time { font-weight: 700; }
.sp-weather { color: var(--muted); font-weight: 600; }
.sp-online { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; }
.sp-online i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: live 1.6s infinite; }
.sp-online em, .sp-wallet em { font-style: normal; }
.sp-coins { display: flex; align-items: center; gap: 5px; font-weight: 800; color: #9a6a00; }
.sp-coins em { font-style: normal; }
.sp-coins:hover { color: #c98a00; }
.sp-wallet { display: flex; align-items: center; gap: 8px; border-left: 0 !important; padding: 6px 6px 6px 14px !important; border-radius: 999px; background: #f2efe8; font-weight: 800; }
.sp-wallet i { width: 26px; height: 26px; border-radius: 50%; background: #22c55e; color: #fff; font-style: normal; display: grid; place-items: center; font-size: 17px; }
.sp-wallet:hover { background: var(--green-soft); }
@media (max-width: 1180px) {
  .status-row { top: 70px; }
}
@media (max-width: 900px) {
  .place-card { display: none; }
  .clock-pill { top: 10px; font-size: 12px; gap: 8px; padding: 4px 4px 4px 12px; max-width: calc(100% - 20px); }
  .clock-pill > * + * { padding-left: 8px; }
  .sp-weather { display: none; }
  .sp-wallet { padding: 4px 4px 4px 10px !important; }
  .sp-wallet i { width: 22px; height: 22px; }
  .layout.panel-collapsed .panel { top: 58px; }
}

.place-card strong:has(.market-logo) { display:flex; align-items:center; gap:10px; }
.market-logo { display:block; width:76px; height:auto; }

.sp-online.connecting i { background:#a3a3a3; }
