:root {
  --bg: #0d0f14;
  --panel: rgba(18, 21, 29, 0.96);
  --line: #2a2f3d;
  --text: #f2f3f7;
  --muted: #9aa1b3;
  --accent: #ff3d7f;
  --accent2: #ffb000;
  --ok: #2fd47a;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#map { position: fixed; inset: 0; }
a { color: var(--accent2); }
button { font: inherit; cursor: pointer; }

.topbar { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; gap: 10px; align-items: center; z-index: 8; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -0.5px; color: var(--text); text-decoration: none;
  background: var(--panel); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.logo span { color: var(--accent); }
.search { position: relative; flex: 1; max-width: 480px; }
.search input { width: 100%; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; outline: none; }
.search input:focus { border-color: var(--accent); }
.results { position: absolute; top: 46px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.results li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.results li:hover, .results li:focus { background: #222839; outline: none; }
.pill { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); white-space: nowrap; }

.hint { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4;
  background: var(--panel); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 13px; pointer-events: none; transition: opacity .3s; }

.panel { position: fixed; z-index: 6; top: 72px; right: 12px; width: 360px; max-height: calc(100% - 90px);
  overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.board { left: 12px; right: auto; }
.close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 24px; }
.panel h2 { margin: 0 0 6px; font-size: 20px; }
.panel h3 { margin: 18px 0 6px; font-size: 15px; color: var(--muted); }
.owner { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; flex: none; border: 1px solid rgba(255,255,255,.3); }
.owner strong { font-size: 20px; word-break: break-word; }
.msg { margin: 6px 0; font-style: italic; color: #d9dbe4; word-break: break-word; }
.meta { color: var(--muted); font-size: 13px; }
.price { font-size: 30px; font-weight: 800; margin: 14px 0 2px; }
.price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.cta { width: 100%; margin-top: 12px; padding: 13px; border: 0; border-radius: 12px; font-weight: 800; font-size: 16px;
  color: #fff; background: linear-gradient(90deg, var(--accent), #ff7a3d); }
.cta:disabled { opacity: .6; cursor: wait; }
.ghost { background: none; border: 1px solid var(--line); color: var(--text); padding: 8px 12px; border-radius: 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=url], textarea { width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #0f1219; color: var(--text); font: inherit; }
textarea { resize: vertical; min-height: 60px; }
input[type=color] { width: 48px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: none; padding: 2px; }
.err { color: #ff6b6b; font-size: 14px; margin-top: 8px; }
.fine { color: var(--muted); font-size: 12px; margin-top: 14px; }
.list { margin: 0; padding-left: 22px; }
.list li { padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.list li:hover { color: var(--accent2); }
.stats { display: flex; gap: 14px; margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.stats b { color: var(--text); font-size: 16px; display: block; }
.toast { position: fixed; z-index: 9; left: 50%; top: 80px; transform: translateX(-50%); background: var(--ok); color: #04210f;
  padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.banner { background: linear-gradient(90deg, #2fd47a33, transparent); border: 1px solid #2fd47a66; border-radius: 10px; padding: 10px; margin-bottom: 10px; }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .panel, .board { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 72%;
    border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.runner { margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }
.runner b { color: var(--text); }
.rank { display: inline-block; background: #2a2f3d; color: var(--accent2); font-weight: 800; border-radius: 6px; padding: 0 6px; margin-right: 4px; }
.footer-links { position: fixed; z-index: 4; left: 12px; bottom: 8px; font-size: 12px; color: var(--muted); }
.footer-links a { color: var(--muted); margin-right: 10px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
@media (max-width: 720px) { .footer-links { bottom: auto; top: 112px; } }

/* --- business blocks & explore --- */
.chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #222839; color: #d9dbe4; border: 1px solid var(--line); }
.chip.sm { font-size: 11px; padding: 0 6px; }
.chip.btn { cursor: pointer; margin: 0 6px 8px 0; font-size: 13px; padding: 5px 10px; }
.chip.btn small { color: var(--muted); margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; margin: 6px 0; }
.visit { display: block; text-align: center; margin: 10px 0 4px; padding: 11px; border-radius: 12px; font-weight: 800;
  color: #0d0f14; background: var(--accent2); text-decoration: none; }
.visit:hover { filter: brightness(1.08); }
.statline { font-size: 13px; color: #d9dbe4; margin: 6px 0 2px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.tabs button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; }
.tabs button[aria-selected="true"] { background: #222839; color: var(--text); border-color: #3a4153; }
.list.plain { list-style: none; padding: 0; }
.item { display: flex; align-items: flex-start; gap: 8px; }
.item .swatch { width: 14px; height: 14px; margin-top: 4px; }
.iname { flex: 1; min-width: 0; }
.imsg { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iprice { font-weight: 700; color: var(--accent2); white-space: nowrap; }
select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0f1219; color: var(--text); font: inherit; }
.results li.meta { cursor: default; font-size: 12px; padding: 6px 10px 2px; }
.testbanner { position: fixed; z-index: 5; top: 64px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px);
  background: #ffb000; color: #1b1300; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; text-align: center; }
.blk-label { background: rgba(13,15,20,.85); color: #fff; border: 0; box-shadow: none; font-weight: 700; font-size: 11px; padding: 2px 6px; }
.blk-label::before { display: none; }
@media (max-width: 720px) { .testbanner { top: 108px; border-radius: 12px; } }

/* --- treasure hunt --- */
.pill.hunt { margin-left: auto; background: linear-gradient(90deg, #3a1d5c, #1d2b5c); border-color: #5a4b8a; }
.pill.hunt + .pill { margin-left: 0; }
.badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #ffb000; color: #1b1300; font-size: 12px; font-weight: 800; }
.me { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; border-radius: 12px; background: #1b2030; margin: 8px 0 12px; font-size: 14px; }
.join p { margin: 6px 0 10px; }
.join .row { margin-top: 0; }
.join input { flex: 1; min-width: 140px; }
.cta.small { width: auto; margin: 0; padding: 10px 14px; font-size: 14px; }
.tcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #12151d; }
.tcard.found { border-color: #2fd47a88; background: #0f1d16; }
.thead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.clues { margin: 8px 0; padding-left: 20px; }
.clues li { margin: 4px 0; }
.howto { margin: 10px 0; color: var(--muted); font-size: 14px; }
.howto summary { cursor: pointer; color: var(--text); }
.banner.treasure { background: linear-gradient(90deg, #ffb00033, transparent); border-color: #ffb00099; }
@media (max-width: 720px) { .pill { padding: 8px 10px; font-size: 14px; } }

/* ===================== Cartoon theme (overrides) ===================== */
:root {
  --bg: #fff7e6; --panel: #fffdf7; --line: #2b2118; --text: #2b2118; --muted: #7a6a58;
  --accent: #ff4f8b; --accent2: #ff9f1c; --ok: #2fbf71; --radius: 18px; color-scheme: light;
}
html, body { font-family: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif; background: #fbf3df; color: var(--text); }
a { color: #e0570f; }
.leaflet-container { background: #fbf3df; font-family: inherit; }

.logo, .pill, .search input, .hint, .testbanner, .toast {
  border: 3px solid var(--line) !important; box-shadow: 3px 3px 0 var(--line);
}
.logo { background: #fff; color: var(--text); font-weight: 700; }
.pill { background: #fff; color: var(--text); font-weight: 600; }
.pill:active, .cta:active, .ghost:active, .gamecard:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.pill.play { background: #ffe066; }
.search input { background: #fff; color: var(--text); }
.search input::placeholder { color: #9b8a76; }
.results { background: #fff; border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line); }
.results li:hover, .results li:focus { background: #fff1c9; }
.hint { background: #fff; color: var(--text); font-weight: 600; }
.testbanner { background: #ffe066; color: #3a2a00; }
.toast { background: #2fbf71; color: #fff; }

.panel { background: var(--panel); border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--line); }
.panel h2 { font-weight: 700; }
.close { color: var(--text); }
.meta, .fine, .stats { color: var(--muted); }
.stats b { color: var(--text); }
.msg { color: #4a3b2c; }
.cta { background: linear-gradient(90deg, #ff4f8b, #ff9f1c); border: 3px solid var(--line); box-shadow: 3px 3px 0 var(--line); color: #fff; font-family: inherit; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.ghost { background: #fff; border: 2px solid var(--line); color: var(--text); box-shadow: 2px 2px 0 var(--line); font-family: inherit; }
input[type=text], input[type=url], input[type=search], textarea, select { background: #fff; color: var(--text); border: 2px solid var(--line); font-family: inherit; }
.chip { background: #fff1c9; color: #5a4310; border: 2px solid #e2c27a; }
.visit { border: 3px solid var(--line); box-shadow: 3px 3px 0 var(--line); background: #ffe066; color: var(--text); }
.runner { border: 2px dashed #c9b190; color: var(--muted); }
.rank { background: #2b2118; color: #ffe066; }
.list li { border-bottom: 2px dotted #e6d6bb; }
.list li:hover { color: #e0570f; }
.tabs button { border: 2px solid var(--line); color: var(--text); background: #fff; font-family: inherit; }
.tabs button[aria-selected="true"] { background: #ffe066; border-color: var(--line); color: var(--text); }
.banner { background: #e9fbe9; border: 2px solid #2fbf71; }
.banner.treasure { background: #fff6cf; border-color: #ff9f1c; }
.statline { color: #4a3b2c; }
.me { background: #fff1c9; border: 2px solid #e2c27a; }
.tcard { background: #fff; border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--line); }
.tcard.found { background: #e9fbe9; border-color: #2fbf71; }
.howto summary { color: var(--text); }
.err { color: #d62b4b; }
.footer-links a { color: #6d5c49; background: rgba(255,253,247,.85); padding: 1px 6px; border-radius: 6px; }
.iprice { color: #e0570f; }
.imsg { color: var(--muted); }
.swatch { border: 2px solid var(--line); }

/* city picker */
.city { position: relative; }
.citybtn { margin: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.citybox { position: absolute; top: 50px; left: 0; width: 260px; background: #fff; border: 3px solid var(--line); border-radius: 16px; box-shadow: 5px 5px 0 var(--line); padding: 8px; z-index: 9; }
.citybox input { width: 100%; padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; }
.citybox ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; }
.citybox li { padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.citybox li:hover, .citybox li:focus { background: #fff1c9; outline: none; }

/* labels on the map */
.place-label span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font-weight: 600; font-size: 13px; color: #5b4a36;
  text-shadow: 2px 0 #fbf3df, -2px 0 #fbf3df, 0 2px #fbf3df, 0 -2px #fbf3df, 1px 1px #fbf3df, -1px -1px #fbf3df; pointer-events: none; }
.place-label.big span { font-size: 18px; font-weight: 700; color: #3d2f20; letter-spacing: .5px; }
.blk-label { background: #fff; color: var(--text); border: 2px solid var(--line); border-radius: 10px; box-shadow: 2px 2px 0 var(--line); font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 12px; padding: 1px 8px; }
.leaflet-control-zoom a { border: 3px solid var(--line) !important; color: var(--text) !important; font-weight: 700; }
.leaflet-control-zoom { border: none !important; box-shadow: 3px 3px 0 var(--line) !important; border-radius: 6px; }

/* play menu */
.gamecard { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; margin: 12px 0 0; padding: 12px; border-radius: 16px;
  background: #fff; border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line); color: var(--text); font-family: inherit; font-size: 15px; }
.gamecard:hover { background: #fff8e0; }
.gicon { font-size: 34px; line-height: 1; }
.gsub { display: inline-block; margin-top: 4px; font-weight: 600; color: #e0570f; }

/* higher or lower */
.panel.hl { width: 520px; }
.hlq { font-size: 17px; margin: 4px 0 12px; }
.hlrow { display: flex; gap: 8px; align-items: stretch; }
.vs { align-self: center; font-weight: 700; font-size: 20px; background: #2b2118; color: #ffe066; border-radius: 999px; padding: 6px 8px; }
.hlcard { flex: 1; min-width: 0; background: #fff; border: 3px solid var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--line); padding: 10px; text-align: center; }
.hlswatch { height: 34px; border-radius: 10px; background: var(--c); border: 2px solid var(--line); margin-bottom: 8px; }
.hlname { font-weight: 700; font-size: 17px; word-break: break-word; }
.hlmsg { font-size: 13px; color: var(--muted); min-height: 34px; margin: 6px 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hlprice { font-size: 26px; font-weight: 700; color: #e0570f; }
.hlprice.hidden { color: #c9b190; letter-spacing: 2px; }
.hllinks { font-size: 12px; margin-top: 6px; }
.hlbtns { display: flex; gap: 10px; margin-top: 14px; }
.hlbtns .cta { margin: 0; }
.cta.hl-hi { background: linear-gradient(90deg, #2fbf71, #6bd88f); }
.cta.hl-lo { background: linear-gradient(90deg, #ff4f8b, #ff7a7a); }
.hlstats { display: flex; gap: 16px; margin-top: 12px; font-size: 15px; }
.hlmsg2 { margin-top: 8px; font-weight: 600; min-height: 22px; }

@media (max-width: 720px) {
  .panel.hl { width: auto; }
  .citybtn { max-width: 150px; }
  .topbar { gap: 6px; }
  .logo { font-size: 18px; padding: 6px 10px; }
}
.pill.play { margin-left: auto; }

/* ===================== Places & charts ===================== */
.levels { list-style: none; margin: 8px 0 0; padding: 0; }
.levels li { display: flex; gap: 10px; align-items: center; padding: 10px; margin: 8px 0; border: 2px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 var(--line); cursor: pointer; }
.levels li:hover, .levels li:focus { background: #fff6d6; outline: none; }
.lvicon { font-size: 24px; }
.lvname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lvname b { font-size: 16px; }
.lvtop { text-align: right; font-size: 13px; font-weight: 600; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.free { color: #2fbf71; font-weight: 700; }
.crumbs { font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.crumbs a { color: #e0570f; text-decoration: none; }
.phead { display: flex; gap: 12px; align-items: center; margin: 4px 0 10px; }
.phead h2 { margin: 0 0 4px; }
.pfig { width: 64px; height: 72px; flex: none; }
.picon { font-size: 40px; }
.champ { border: 3px solid var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--line); padding: 12px; background: linear-gradient(135deg, #fffdf2, #fff); border-left: 10px solid var(--c, #ffe066); }
.champ.empty { border-left-color: #2fbf71; }
.champ p { margin: 6px 0; }
.crown { font-weight: 700; color: #b8860b; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.cname { font-size: 22px; font-weight: 700; margin: 2px 0 4px; word-break: break-word; }
.chart { list-style: none; padding: 0; margin: 4px 0; }
.chart li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 2px dotted #e6d6bb; }
.chart .iname a { color: var(--text); font-weight: 700; }
.flag { color: #b9a68c; text-decoration: none; font-size: 13px; }
.takes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.take { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px; border-radius: 12px; border: 2px solid var(--line); background: #fff; box-shadow: 2px 2px 0 var(--line); font-family: inherit; color: var(--text); cursor: pointer; text-align: left; }
.take b { font-size: 16px; }
.take span { font-weight: 700; color: #e0570f; }
.take small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.take:hover, .take.on { background: #ffe066; }
.hlwhere { font-size: 13px; margin: 6px 0 0; }

/* ===================== World map ===================== */
.leaflet-container { background: #7fd3f7; }
.place-label span { display: inline-flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%); white-space: nowrap; font-weight: 600; color: #5b4a36;
  text-shadow: 2px 0 #fbf3df, -2px 0 #fbf3df, 0 2px #fbf3df, 0 -2px #fbf3df, 1px 1px #fbf3df, -1px -1px #fbf3df; pointer-events: none; }
.place-label.continent span { font-size: 20px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #8a6b45; }
.place-label.country span { font-size: 15px; font-weight: 700; color: #3d2f20; }
.place-label.state span { font-size: 12px; color: #8a6b45; font-style: italic; }
.place-label.city span, .place-label.town span { font-size: 13px; }
.place-label em { font-style: normal; font-size: 11px; margin-top: 2px; padding: 0 6px; border-radius: 8px; background: #ffe066; border: 1.5px solid var(--line); text-shadow: none; color: var(--text); }
.lm-wrap { background: none; border: none; }
.lm { position: relative; width: var(--s); height: var(--s); cursor: pointer; transition: transform .15s; filter: drop-shadow(0 2px 0 rgba(43,33,24,.25)); }
.lm:hover { transform: translateY(-4px) scale(1.08); }
.lm svg { width: 100%; height: 100%; display: block; }
.lm-name { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font-weight: 700; font-size: 12px; color: var(--text);
  background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 0 7px; box-shadow: 2px 2px 0 var(--line); }
.lm-top { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700;
  background: #ffe066; border: 2px solid var(--line); border-radius: 10px; padding: 0 6px; border-bottom: 4px solid var(--c, #ff4f8b); }
.tap-pin { font-size: 26px; background: none; border: none; }

/* ===================== Road Trip ===================== */
.rt-wrap, .rt-me { background: none; border: none; }
.rt-veh { width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(43,33,24,.25)); }
.rt-veh svg { width: 100%; height: 100%; display: block; }
.rt-veh.rare { animation: rtglow 1.2s ease-in-out infinite alternate; }
@keyframes rtglow { from { filter: drop-shadow(0 0 2px #ffcf3a); } to { filter: drop-shadow(0 0 10px #ffcf3a); } }
.rt-veh.rt-self { animation: rtbob .5s ease-in-out infinite alternate; }
@keyframes rtbob { from { margin-top: 0; } to { margin-top: -2px; } }
.rt-hud { position: fixed; z-index: 7; left: 12px; bottom: 34px; width: 300px; background: var(--panel); border: 3px solid var(--line);
  border-radius: 16px; box-shadow: 5px 5px 0 var(--line); padding: 10px 12px; }
.rt-cur { display: flex; gap: 10px; align-items: center; }
.rt-cur > div:last-child { flex: 1; display: flex; flex-direction: column; }
.rt-ico { width: 64px; height: 52px; flex: none; }
.rt-ico svg { width: 100%; height: 100%; }
.rt-fuel { height: 8px; border: 2px solid var(--line); border-radius: 6px; margin-top: 4px; background: #fff; overflow: hidden; }
.rt-fuel i { display: block; height: 100%; background: linear-gradient(90deg, #ff4f8b, #ffcf3a); }
.rt-grab { margin: 8px 0 0; padding: 10px; font-size: 15px; animation: rtpulse .8s ease-in-out infinite alternate; }
@keyframes rtpulse { from { transform: scale(1); } to { transform: scale(1.03); } }
.rt-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 13px; }
.rt-row span { flex: 1; }
.rt-row .ghost { padding: 5px 9px; font-size: 13px; }
.rt-help { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.rt-stick { position: fixed; z-index: 7; right: 24px; bottom: 90px; width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,253,247,.85); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line); touch-action: none; }
.rt-stick .knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: #ffe066; border: 3px solid var(--line); pointer-events: none; }
.billboard { position: fixed; z-index: 7; top: 76px; right: 16px; width: 290px; max-width: calc(100% - 24px);
  background: #fff; border: 4px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 var(--line); padding: 10px 14px; text-align: center; }
.billboard.pop { animation: bbpop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes bbpop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bb-tag { font-size: 11px; font-weight: 700; color: #b8860b; text-transform: uppercase; letter-spacing: .5px; }
.bb-where { font-size: 15px; margin: 2px 0 6px; }
.bb-ad { border: 3px solid var(--line); border-left: 10px solid var(--c, #ffe066); border-radius: 12px; padding: 6px 10px; margin-bottom: 8px; display: flex; flex-direction: column; }
.bb-ad b { font-size: 20px; }
.bb-ad span { font-size: 12px; color: var(--muted); }
.bb-ad.free { border-style: dashed; border-left-color: #2fbf71; }
.stamps { display: flex; flex-wrap: wrap; gap: 6px; }
.stampchip { font-size: 12px; padding: 2px 8px; border: 2px dashed #b9a68c; border-radius: 8px; background: #fffaf0; transform: rotate(-1.5deg); }
.stampchip:nth-child(2n) { transform: rotate(1.5deg); }
.garage { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.gslot { height: 46px; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 2px; }
.gslot svg { width: 100%; height: 100%; }
.gslot.locked { filter: grayscale(1) brightness(.3); opacity: .35; }
body.rt-on .hint, body.rt-on .footer-links { display: none; }
@media (max-width: 720px) { .billboard { top: 118px; right: 12px; left: 12px; width: auto; } .rt-hud { width: auto; right: 12px; bottom: 10px; } .rt-stick { bottom: 190px; width: 100px; height: 100px; } }
#map.leaflet-container { background: #7fd3f7; }
