/* DuckWay — bright, sweet and bouncy */
:root {
  --bg: #f5faff;
  --ink: #23305a;
  --ink-2: #5a678f;
  --ink-3: #97a2c0;
  --line: #e1e9f7;
  --line-2: #edf2fb;
  --blue: #4d9bff;
  --blue-600: #3b82f6;
  --blue-700: #1f62c9;
  --navy: #2a3a78;
  --ok: #0d7d60;
  --ok-bg: #dcf7ee;
  --warn: #b8551a;
  --warn-bg: #ffecdd;
  --bad: #d6455d;
  --bad-bg: #ffe6ea;
  --shadow-1: 0 2px 4px rgba(42, 58, 120, .04), 0 8px 22px rgba(42, 58, 120, .07);
  --shadow-2: 0 14px 38px rgba(42, 58, 120, .16);
  --r: 24px;
  --top: 66px;
  --font: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  --bounce: cubic-bezier(.3, 1.5, .5, 1);
  /* default accent */
  --c: #4d9bff; --c-bg: #e3f0ff; --c-ink: #1f62c9;
}
/* one class = one candy colour; components read --c, --c-bg and --c-ink */
.c-blue { --c: #4d9bff; --c-bg: #e3f0ff; --c-ink: #1f62c9; }
.c-pink { --c: #ff8fc7; --c-bg: #ffe6f3; --c-ink: #c0347f; }
.c-yellow { --c: #ffcf33; --c-bg: #fff5cc; --c-ink: #8a6200; }
.c-mint { --c: #4fd1ae; --c-bg: #dcf7ee; --c-ink: #0d7d60; }
.c-lav { --c: #a48bff; --c-bg: #ece7ff; --c-ink: #5b3fd0; }
.c-peach { --c: #ffa15e; --c-bg: #ffecdd; --c-ink: #b8551a; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
p { font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--blue-700); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9cc8ff; outline-offset: 2px; border-radius: 10px; }
.ic { width: 18px; height: 18px; flex: none; stroke-width: 2.2; }
i[data-lucide] { display: inline-block; width: 18px; height: 18px; flex: none; }
small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
main { position: relative; z-index: 1; }

/* ───────── background: drifting colours and bubbles ───────── */
.decor { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 560px; height: 560px; border-radius: 50%; opacity: .6; animation: drift 22s ease-in-out infinite alternate; }
.b1 { left: -160px; top: -120px; background: radial-gradient(circle, #cfe6ff 0, transparent 68%); }
.b2 { right: -180px; top: 12%; background: radial-gradient(circle, #ffe0f0 0, transparent 68%); animation-duration: 27s; }
.b3 { left: 18%; bottom: -260px; background: radial-gradient(circle, #fff3c4 0, transparent 68%); animation-duration: 31s; }
.b4 { right: 8%; bottom: -220px; background: radial-gradient(circle, #d6f7ec 0, transparent 68%); animation-duration: 25s; }
@keyframes drift { to { transform: translate(70px, 50px) scale(1.12); } }
.bubble { position: absolute; bottom: -40px; border-radius: 50%; border: 2px solid rgba(77, 155, 255, .28); background: rgba(255, 255, 255, .5); animation: rise 16s linear infinite; }
.bubble:nth-of-type(1) { left: 6%; width: 18px; height: 18px; }
.bubble:nth-of-type(2) { left: 19%; width: 10px; height: 10px; animation-duration: 21s; animation-delay: -6s; border-color: rgba(255, 143, 199, .4); }
.bubble:nth-of-type(3) { left: 34%; width: 24px; height: 24px; animation-duration: 19s; animation-delay: -11s; }
.bubble:nth-of-type(4) { left: 49%; width: 12px; height: 12px; animation-duration: 24s; animation-delay: -3s; border-color: rgba(79, 209, 174, .45); }
.bubble:nth-of-type(5) { left: 63%; width: 20px; height: 20px; animation-duration: 18s; animation-delay: -9s; border-color: rgba(164, 139, 255, .4); }
.bubble:nth-of-type(6) { left: 76%; width: 9px; height: 9px; animation-duration: 23s; animation-delay: -14s; }
.bubble:nth-of-type(7) { left: 88%; width: 22px; height: 22px; animation-duration: 20s; animation-delay: -5s; border-color: rgba(255, 207, 51, .55); }
.bubble:nth-of-type(8) { left: 95%; width: 13px; height: 13px; animation-duration: 26s; animation-delay: -17s; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 50% { transform: translate(26px, -55vh); } 100% { transform: translate(-14px, -112vh); opacity: .2; } }

/* ───────── Ducky ───────── */
.duck { display: block; width: 100%; height: 100%; overflow: visible; }
.duck-head { transform-box: fill-box; transform-origin: 30% 92%; animation: head-bob 2.6s ease-in-out infinite; }
.duck-eye { transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
.duck-wing { transform-box: fill-box; transform-origin: 18% 40%; animation: flap 1.9s ease-in-out infinite; }
.duck.hop { animation: hop 1.15s ease-in-out infinite; }
.duck.swim { animation: swim 1.7s ease-in-out infinite; }
@keyframes head-bob { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
@keyframes blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes flap { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-12px) scale(.98, 1.03); } 60% { transform: translateY(-12px); } 85% { transform: translateY(0) scale(1.04, .95); } }
@keyframes swim { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(5deg); } }
@keyframes waddle { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-3px); } }

/* ───────── splash ───────── */
.splash { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: linear-gradient(150deg, #d7ebff 0%, #ffe6f3 48%, #fff5cc 100%); transition: opacity .55s, transform .55s; }
.splash.out { opacity: 0; transform: scale(1.1); pointer-events: none; }
.splash-in { display: flex; flex-direction: column; align-items: center; text-align: center; animation: pop-in .6s var(--bounce); }
.splash-duck { width: 150px; height: 130px; margin-bottom: -18px; position: relative; z-index: 1; }
.splash-waves { width: 260px; height: 34px; overflow: visible; }
.splash-waves path { fill: #8ec5ff; opacity: .75; animation: waves 1.4s linear infinite; }
@keyframes waves { to { transform: translateX(-150px); } }
.splash h1 { margin-top: 14px; font-size: 52px; font-weight: 500; color: var(--navy); }
.splash h1 b { font-weight: 700; color: var(--blue-600); }
.splash p { color: var(--ink-2); font-size: 17px; font-weight: 600; }

/* ───────── top bar ───────── */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 2px solid var(--line-2); }
.brand { display: flex; align-items: center; gap: 9px; font: 500 23px var(--display); color: var(--navy); }
.brand b { font-weight: 700; color: var(--blue-600); }
.logo { width: 38px; height: 38px; filter: drop-shadow(0 4px 6px rgba(59, 130, 246, .3)); transition: transform .3s var(--bounce); }
.brand:hover .logo { transform: rotate(-12deg) scale(1.12); }
.mainnav { display: flex; gap: 4px; margin: 0 auto; padding: 5px; background: #eef5ff; border-radius: 999px; }
.mainnav button { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; font: 600 15px var(--display); color: var(--ink-2); transition: background .2s, color .2s, transform .2s var(--bounce); }
.mainnav button:hover { color: var(--blue-700); transform: translateY(-1px); }
.mainnav button.is-active { background: #fff; color: var(--blue-700); box-shadow: 0 2px 8px rgba(42, 58, 120, .12); }
.mainnav button.is-active .ic { animation: jiggle .5s var(--bounce); }
.mainnav .ic { width: 17px; height: 17px; }
.mainnav button.has-dot::after { content: ''; position: absolute; top: 5px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: #ff8fc7; box-shadow: 0 0 0 2px #fff; animation: pulse-dot 1.2s infinite; }
@keyframes pulse-dot { 50% { transform: scale(1.35); } }
@keyframes jiggle { 0% { transform: rotate(0) scale(.7); } 50% { transform: rotate(-14deg) scale(1.2); } 100% { transform: none; } }
.points { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; border: 2px solid var(--line); font-size: 14px; color: var(--ink-2); transition: border-color .2s, transform .2s var(--bounce); }
.points:hover { border-color: #ffcf33; transform: translateY(-1px); }
.points-coin { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe98a, #ffc928); color: #8a6200; box-shadow: inset 0 -3px 0 rgba(138, 98, 0, .16); }
.points-coin .ic { width: 16px; height: 16px; fill: currentColor; }
.points b { font: 700 17px var(--display); color: var(--ink); }
.points-rank { padding: 3px 10px; border-radius: 999px; background: #ece7ff; color: #5b3fd0; font-weight: 700; font-size: 12px; }
.points.bump { animation: bump .6s var(--bounce); }
.points.bump .points-coin { animation: spin-coin .7s ease-out; }
@keyframes bump { 30% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(255, 207, 51, .3); } }
@keyframes spin-coin { to { transform: rotateY(360deg); } }

/* ───────── views ───────── */
.view { display: none; }
.view.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ───────── greeting strip ───────── */
.hello { width: calc(100% - 40px); max-width: 1480px; margin: 18px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hello h1 { font-size: 28px; color: var(--navy); }
.hello p { color: var(--ink-2); font-weight: 600; }
.wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-10deg); } }
.hello-stats { display: flex; gap: 10px; }
.hstat { display: flex; align-items: center; gap: 9px; padding: 7px 16px 7px 7px; border-radius: 999px; background: #fff; border: 2px solid var(--line-2); box-shadow: var(--shadow-1); transition: transform .2s var(--bounce), border-color .2s, background .2s; animation: pop-in .5s var(--bounce) both; }
.hstat:nth-child(2) { animation-delay: .08s; }
.hstat:nth-child(3) { animation-delay: .16s; }
.hstat:hover { transform: translateY(-3px) rotate(-1.5deg); border-color: var(--c); }
.hstat.is-on { background: var(--c-bg); border-color: var(--c); }
.hstat span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--c-bg); color: var(--c-ink); }
.hstat.is-on span { background: #fff; }
.hstat b { font: 700 21px var(--display); color: var(--ink); min-width: 1.2em; text-align: right; }
.hstat small { color: var(--ink-2); font-size: 13px; }

/* ───────── map ───────── */
.map-frame { width: calc(100% - 40px); max-width: 1480px; margin: 14px auto 0; padding: 5px; border-radius: 34px; background: linear-gradient(120deg, #8ec5ff, #ffb3d9, #ffe27a, #8fe6cb, #c7b8ff, #8ec5ff); background-size: 300% 300%; animation: rainbow 12s linear infinite; box-shadow: 0 16px 40px rgba(77, 155, 255, .18); }
@keyframes rainbow { to { background-position: 300% 0; } }
.map-stage { position: relative; height: clamp(360px, calc(100dvh - var(--top) - 330px), 680px); border-radius: 29px; overflow: hidden; background: #e3f0ff; }
#map { position: absolute; inset: 0; z-index: 0; background: #e8f2fd; }
.leaflet-tile { filter: saturate(.72) brightness(1.05) contrast(.94); }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 10.5px; background: rgba(255, 255, 255, .8) !important; border-radius: 10px 0 0 0; color: var(--ink-3); }
.leaflet-control-attribution a { color: var(--ink-2); }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow-1) !important; border-radius: 16px !important; overflow: hidden; margin: 0 14px 30px 0 !important; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; color: var(--ink-2) !important; border-color: var(--line-2) !important; font-family: var(--display); }
.leaflet-bar a:hover { background: #eef5ff !important; color: var(--blue-600) !important; }

.map-top { position: absolute; z-index: 5; top: 14px; left: 14px; right: 72px; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.search { position: relative; flex: 0 1 500px; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 18px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-2); border: 2px solid #fff; transition: border-color .2s, transform .2s var(--bounce); }
.search:focus-within { border-color: #9cc8ff; transform: scale(1.015); }
.search > .ic { color: var(--blue); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15.5px; font-weight: 700; }
.search input::placeholder { color: var(--ink-3); font-weight: 600; }
.search input::-webkit-search-cancel-button { display: none; }
.iconbtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background .16s, color .16s, transform .2s var(--bounce); }
.iconbtn:hover { background: #eef5ff; color: var(--blue-600); transform: rotate(8deg) scale(1.08); }
.iconbtn.light { background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: var(--shadow-1); }
.mic { background: #ffe6f3; color: #c0347f; }
.mic:hover { background: #ffd3ea; color: #c0347f; }
.mic.is-live { background: #ff8fc7; color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 143, 199, .6); } 100% { box-shadow: 0 0 0 14px rgba(255, 143, 199, 0); } }

.suggest { position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-radius: 24px; box-shadow: var(--shadow-2); padding: 8px; max-height: 330px; overflow: auto; animation: pop-in .25s var(--bounce); transform-origin: top center; }
.suggest button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; text-align: left; }
.suggest button:hover, .suggest button:focus-visible { background: #eef5ff; }
.suggest .ic { color: var(--blue); }
.suggest span { display: flex; flex-direction: column; min-width: 0; }
.suggest b { font-weight: 800; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--ink-3); font-size: 13.5px; }

.chip-home, .area-pill, .loading-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--blue-700); font-weight: 800; font-size: 14px; box-shadow: var(--shadow-2); }
.chip-home { height: 56px; }
.area-pill, .loading-pill { position: absolute; z-index: 4; top: 84px; left: 50%; transform: translateX(-50%); white-space: nowrap; animation: drop-pill .4s var(--bounce); }
@keyframes drop-pill { from { opacity: 0; margin-top: -16px; } }
.area-pill .ic { width: 16px; height: 16px; }
.loading-pill { color: var(--ink-2); }
.area-pill:hover, .chip-home:hover { background: #eef5ff; }

.map-side { position: absolute; z-index: 4; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; }
.mapbtn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--c-ink); box-shadow: var(--shadow-1); transition: transform .2s var(--bounce), background .2s; }
.mapbtn:hover { transform: scale(1.12) rotate(-8deg); background: var(--c-bg); }

.map-bottom { position: absolute; z-index: 4; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; padding: 0 70px; pointer-events: none; }
.map-bottom > * { pointer-events: auto; }
.cta { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 24px 9px 9px; border-radius: 999px; color: #fff; text-align: left; overflow: hidden; background: linear-gradient(135deg, #63b2ff 0%, #3b82f6 60%, #5b6ff5 100%); box-shadow: 0 14px 30px rgba(59, 130, 246, .45), inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 rgba(31, 60, 150, .18); transition: transform .2s var(--bounce); animation: cta-wiggle 5s ease-in-out infinite; }
.cta::before { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 34%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-18deg); animation: shimmer-x 3.2s ease-in-out infinite; }
@keyframes shimmer-x { 0%, 55% { left: -40%; } 100% { left: 120%; } }
@keyframes cta-wiggle { 0%, 86%, 100% { transform: rotate(0) scale(1); } 89% { transform: rotate(-2.5deg) scale(1.04); } 92% { transform: rotate(2.5deg) scale(1.04); } 95% { transform: rotate(-1.5deg) scale(1.02); } }
.cta:hover { transform: translateY(-3px) scale(1.03); animation: none; }
.cta:active { transform: scale(.96); }
.cta-ic { position: relative; width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; padding: 6px 4px 2px; box-shadow: inset 0 -3px 0 rgba(42, 58, 120, .08); }
.cta-ic::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .7); animation: ring 2s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.cta-txt { display: flex; flex-direction: column; line-height: 1.2; position: relative; }
.cta-txt b { font: 600 19px var(--display); }
.cta-txt small { color: rgba(255, 255, 255, .9); font-size: 12.5px; }
.cta > .ic { position: relative; width: 22px; height: 22px; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.navbar { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 10px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-2); max-width: 560px; width: 100%; animation: pop-in .4s var(--bounce); }
.nav-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #63b2ff, #3b82f6); color: #fff; }
.nav-ic .ic { animation: nudge 1.2s ease-in-out infinite; }
.nav-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.nav-txt b { font: 600 17px var(--display); }
.nav-txt span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-dash { animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -14; } }
.duck-wrap { background: none; border: 0; }
.duck-walk { width: 44px; height: 40px; filter: drop-shadow(0 4px 4px rgba(42, 58, 120, .3)); }
.duck-walk .duck { animation: waddle .42s ease-in-out infinite; transform-origin: 50% 90%; }
.duck-wrap.left .duck-walk { transform: scaleX(-1); }

.picker { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.crosshair { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -43px); filter: drop-shadow(0 12px 8px rgba(42, 58, 120, .3)); }
.picker-bar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 20px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-2); pointer-events: auto; white-space: nowrap; font-weight: 800; font-size: 14px; }
.is-picking .map-bottom, .is-picking .map-top, .is-picking .area-pill { display: none; }

/* pins */
.pin-wrap, .me-wrap { background: none; border: 0; }
.pin-in { position: relative; width: 36px; height: 36px; }
.pin-in.drop { animation: pin-drop .6s var(--bounce) both; animation-delay: var(--d, 0ms); }
@keyframes pin-drop { 0% { transform: translateY(-46px) scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pin { width: 36px; height: 36px; display: grid; place-items: center; background: var(--c); border: 3px solid #fff; border-radius: 50% 50% 50% 9px; transform: rotate(-45deg); box-shadow: 0 6px 12px rgba(42, 58, 120, .28); transition: transform .25s var(--bounce); }
.pin .ic, .pin i { width: 17px; height: 17px; color: #fff; transform: rotate(45deg); stroke-width: 2.6; }
.pin.is-closed { background: #b6c1d6; }
.pin-wrap:hover .pin { transform: rotate(-45deg) scale(1.2); }
.pin.is-sel { transform: rotate(-45deg) scale(1.3) !important; animation: sel-pulse 1.3s ease-out infinite; }
@keyframes sel-pulse { 0% { box-shadow: 0 0 0 0 rgba(77, 155, 255, .55), 0 8px 16px rgba(42, 58, 120, .34); } 100% { box-shadow: 0 0 0 16px rgba(77, 155, 255, 0), 0 8px 16px rgba(42, 58, 120, .34); } }
.pin-star { position: absolute; top: -12px; right: -11px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #ffcf33; color: #7a5600; box-shadow: 0 2px 6px rgba(42, 58, 120, .28); animation: twinkle 1.6s ease-in-out infinite; }
.pin-star .ic { width: 13px; height: 13px; }
@keyframes twinkle { 50% { transform: scale(1.25) rotate(18deg); } }
.pin-tip { border: 0 !important; border-radius: 16px !important; padding: 8px 14px !important; box-shadow: var(--shadow-2) !important; color: var(--ink) !important; font: inherit !important; }
.pin-tip::before { display: none; }
.pin-tip b { display: block; font-size: 14px; font-weight: 800; }
.pin-tip span { font-size: 12px; color: var(--ink-2); }
.me-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-600); border: 4px solid #fff; box-shadow: 0 3px 10px rgba(42, 58, 120, .4); position: relative; }
.me-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: rgba(77, 155, 255, .4); animation: ring 1.8s infinite; z-index: -1; }
.place-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid #ff8fc7; box-shadow: 0 3px 8px rgba(42, 58, 120, .35); }

/* ───────── below the map ───────── */
.explore-body { max-width: 1520px; margin: 0 auto; padding: 0 20px 70px; }
.filterbar { display: flex; align-items: center; gap: 8px; padding: 18px 2px 8px; overflow-x: auto; scrollbar-width: none; }
.filterbar::-webkit-scrollbar { display: none; }
.filter-lead { display: flex; align-items: center; gap: 7px; padding-right: 6px; font: 600 15px var(--display); color: var(--ink-2); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 999px; white-space: nowrap; flex: none; background: #fff; border: 2px solid var(--line); color: var(--ink-2); font-weight: 800; font-size: 14px; transition: transform .2s var(--bounce), border-color .16s, background .16s, color .16s; }
.chip .ic { width: 16px; height: 16px; color: var(--c-ink); }
.chip:hover { border-color: var(--c); transform: translateY(-2px); }
.chip:active { transform: scale(.94); }
.chip.is-on { background: var(--c-bg); border-color: var(--c); color: var(--c-ink); animation: chip-pop .35s var(--bounce); }
@keyframes chip-pop { 40% { transform: scale(1.14) rotate(-3deg); } }
.chip .x { width: 14px; height: 14px; opacity: .8; }
.chip.clear { background: none; border-color: transparent; color: var(--blue-700); }

.aibar { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 14px 12px 14px 16px; border-radius: var(--r); background: linear-gradient(120deg, #ece7ff, #f8f5ff); border: 2px solid #d8ceff; animation: pop-in .35s var(--bounce); }
.aibar-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #5b3fd0; }
.aibar div { flex: 1; min-width: 0; }
.aibar p { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.smart { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 18px 14px 14px; border-radius: 28px; overflow: hidden; background: linear-gradient(110deg, #fff5cc 0%, #ffe6f3 48%, #e3f0ff 100%); border: 2px solid #fff; box-shadow: var(--shadow-1); }
.smart::after { content: '✨'; position: absolute; right: 190px; top: 10px; font-size: 20px; animation: twinkle 1.8s ease-in-out infinite; }
.smart-duck { width: 76px; height: 66px; flex: none; }
.smart-main { flex: 1; min-width: 0; cursor: pointer; }
.smart-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #c0347f; }
.smart-badge .ic { width: 14px; height: 14px; }
.smart h3 { margin: 2px 0 8px; font-size: 21px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reasons span { padding: 3px 11px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 800; box-shadow: 0 1px 3px rgba(42, 58, 120, .08); }

.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 28px 0 14px; }
.list-head h2 { font-size: 25px; color: var(--navy); }
.list-head p { color: var(--ink-2); font-size: 14px; font-weight: 600; margin-top: 2px; }
.sort { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.sort .ic { width: 15px; height: 15px; color: var(--blue); }
.sort select { border: 0; outline: 0; background: none; font-weight: 800; color: var(--ink); padding: 6px 4px; cursor: pointer; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r); background: #fff; cursor: pointer; overflow: hidden; border: 2px solid transparent; box-shadow: var(--shadow-1); transition: transform .25s var(--bounce), box-shadow .25s, border-color .2s; }
.card::before { content: ''; position: absolute; right: -36px; top: -36px; width: 110px; height: 110px; border-radius: 50%; background: var(--c-bg); opacity: .75; transition: transform .35s var(--bounce); }
.card > * { position: relative; }
.card:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 16px 34px rgba(42, 58, 120, .13); border-color: var(--c); }
.card:hover::before { transform: scale(1.5); }
.card:hover .kind { animation: jiggle .5s var(--bounce); }
.card.is-sel { border-color: var(--c); box-shadow: 0 0 0 5px var(--c-bg), var(--shadow-1); }
.cards.fresh .card { animation: card-in .55s var(--bounce) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(.94); } }
.card.is-closed .card-title h3 { color: var(--ink-2); }
.card-top { display: flex; align-items: center; gap: 12px; }
.kind { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--c-bg); color: var(--c-ink); }
.kind .ic { width: 22px; height: 22px; }
.card-title { flex: 1; min-width: 0; }
.card-title h3 { font-size: 17.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title p { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.price { padding: 5px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap; }
.price.free { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 700; }
.dist b { font: 600 17px var(--display); color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok .dot { animation: pulse-dot 1.6s infinite; }
.status.ok, .ok > b, i.ok { color: var(--ok); }
.status.bad, .bad > b, i.bad { color: var(--bad); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #f4f7fd; color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.tag .ic { width: 13px; height: 13px; color: var(--blue); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.info { background: #ece7ff; color: #5b3fd0; }
.tag.ok .ic, .tag.warn .ic, .tag.info .ic { color: currentColor; }
.card-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 2px dashed var(--line-2); font-size: 13.5px; }
.rate { display: inline-flex; align-items: center; gap: 5px; }
.rate b { font: 600 15px var(--display); }
.rate .ic { width: 16px; height: 16px; color: #ffc21a; fill: #ffcf33; }
.clean { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--ok); }
.clean .ic { width: 14px; height: 14px; }
.clean small { font-weight: 700; }
.clean.bad { color: var(--bad); }
.clean.mid { color: var(--warn); }
.go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 999px; background: #e3f0ff; color: var(--blue-700); font-weight: 800; font-size: 13px; transition: background .16s, color .16s, transform .2s var(--bounce); }
.go .ic { width: 14px; height: 14px; }
.go:hover { background: var(--blue-600); color: #fff; transform: scale(1.08); }
.more { grid-column: 1 / -1; height: 50px; border-radius: 999px; background: #fff; border: 2px dashed #9cc8ff; color: var(--blue-700); font-weight: 800; }
.more:hover { background: #eef5ff; }

.skeleton { height: 178px; cursor: default; pointer-events: none; }
.skeleton i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eef5ff, #ffe6f3, #eef5ff); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.skeleton i:nth-child(1) { width: 62%; height: 22px; }
.skeleton i:nth-child(2) { width: 88%; }
.skeleton i:nth-child(3) { width: 44%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.looking { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; color: var(--ink-2); font-family: var(--display); font-size: 17px; }
.looking-duck { width: 96px; height: 84px; }
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; border-radius: var(--r); background: #fff; border: 2px dashed #c9defb; color: var(--ink-2); }
.empty > .ic { width: 30px; height: 30px; color: var(--blue); }
.empty-duck { width: 92px; height: 80px; }
.empty h3 { font-size: 19px; color: var(--ink); }
.empty .btn { margin-top: 8px; }
.empty.small { padding: 22px 16px; border: 0; background: #f6f9ff; }
.datanote { margin-top: 24px; font-size: 12.5px; color: var(--ink-3); text-align: center; font-weight: 600; }
.link { color: var(--blue-700); font-weight: 800; text-decoration: underline; font-size: inherit; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 999px; white-space: nowrap; background: #fff; border: 2px solid var(--line); color: var(--blue-700); font: 600 15.5px var(--display); text-decoration: none; transition: transform .2s var(--bounce), background .16s, border-color .16s, box-shadow .2s; }
.btn:hover { border-color: #9cc8ff; background: #eef5ff; transform: translateY(-2px); }
.btn:active { transform: scale(.95); }
.btn.primary { background: linear-gradient(135deg, #63b2ff, #3b82f6); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(59, 130, 246, .35), inset 0 -3px 0 rgba(31, 60, 150, .16); }
.btn.primary:hover { background: linear-gradient(135deg, #58a8ff, #2f74ea); box-shadow: 0 12px 24px rgba(59, 130, 246, .42), inset 0 -3px 0 rgba(31, 60, 150, .16); }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-2); }
.btn.ghost:hover { background: #eef5ff; }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14px; }
.btn.sm .ic { width: 15px; height: 15px; }
.btn.lg { height: 58px; padding: 0 30px; font-size: 18px; }
.btn.wide { width: 100%; }
.btn.grow { flex: 1; }
.btn.icon-only { width: 48px; padding: 0; flex: none; }
.btn.sm.icon-only { width: 38px; }
.btn em { font-style: normal; font-weight: 600; font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .25); }

/* ───────── drawer (toilet card) ───────── */
.drawer { position: fixed; z-index: 40; top: calc(var(--top) + 12px); right: 12px; bottom: 12px; width: 440px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 26px 64px rgba(42, 58, 120, .26); border: 3px solid #fff; animation: slide .45s var(--bounce); }
@keyframes slide { from { transform: translateX(60px) rotate(1.5deg); opacity: 0; } }
.dr-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.dr-cover { position: relative; height: 190px; background: #e3f0ff; }
.dr-cover > svg, .dr-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-blank { height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #e3f0ff, #ffe6f3); color: #fff; }
.cover-blank .ic { width: 64px; height: 64px; stroke-width: 1.6; }
.dr-cover-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; }
.dr-cover-top .iconbtn { margin-left: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; background: #fff; color: var(--c-ink); font-weight: 800; font-size: 12.5px; box-shadow: var(--shadow-1); animation: pop-in .45s var(--bounce) both; }
.badge .ic { width: 14px; height: 14px; }
.badge.soft { background: var(--ok-bg); color: var(--ok); animation-delay: .1s; }
.dr-body { padding: 18px 20px 24px; }
.dr-body h2 { font-size: 26px; color: var(--navy); }
.addr { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.addr .ic { width: 15px; height: 15px; color: #ff8fc7; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.quick > div { padding: 12px 4px; text-align: center; min-width: 0; border-radius: 18px; background: #e3f0ff; animation: pop-in .45s var(--bounce) both; }
.quick > div:nth-child(2) { background: var(--ok-bg); animation-delay: .06s; }
.quick > div:nth-child(2).bad { background: var(--bad-bg); }
.quick > div:nth-child(3) { background: #fff5cc; animation-delay: .12s; }
.quick > div:nth-child(4) { background: #ffe6f3; animation-delay: .18s; }
.quick b { display: block; font: 600 16.5px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick span { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.access { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 13px 14px; border-radius: 20px; background: #ece7ff; color: #5b3fd0; }
.access > .ic { margin-top: 2px; }
.access b { display: block; font-size: 14.5px; font-weight: 800; }
.access span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.access.ok { background: var(--ok-bg); color: var(--ok); }
.access.warn { background: var(--warn-bg); color: var(--warn); }
.dr-body section { margin-top: 24px; }
.dr-body h4 { font-size: 17px; margin-bottom: 10px; color: var(--navy); }
.muted-p { color: var(--ink-3); font-size: 14px; }

.ai-clean { display: flex; gap: 16px; align-items: center; margin-top: 12px !important; padding: 16px; border-radius: 24px; background: linear-gradient(135deg, #dcf7ee 0%, #f3fdf9 100%); }
.ai-clean.mid { background: linear-gradient(135deg, #fff5cc, #fffaea); }
.ai-clean.bad { background: linear-gradient(135deg, #ffe6ea, #fff5f6); }
.ai-clean.none { background: #f6f9ff; }
.gauge { position: relative; width: 82px; height: 82px; flex: none; }
.gauge svg { width: 100%; height: 100%; }
.g-bg { fill: none; stroke: #fff; stroke-width: 8; }
.g-fg { fill: none; stroke: #4fd1ae; stroke-width: 8; stroke-linecap: round; animation: gauge 1.1s ease-out both; }
@keyframes gauge { from { stroke-dasharray: 0 164; } }
.ai-clean.mid .g-fg { stroke: #ffc21a; }
.ai-clean.bad .g-fg { stroke: #ff8a9c; }
.gauge b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 24px var(--display); }
.ai-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.ai-kicker .ic { width: 13px; height: 13px; }
.ai-txt h4 { margin: 2px 0 4px; font-size: 20px; }
.ai-txt h4 em { display: inline-flex; align-items: center; gap: 4px; font: 800 12px var(--font); font-style: normal; vertical-align: 2px; margin-left: 6px; }
.ai-txt h4 em .ic { width: 13px; height: 13px; }
.ai-txt em.up { color: var(--ok); }
.ai-txt em.down { color: var(--bad); }
.ai-txt p { font-size: 13px; color: var(--ink-2); }
.ai-why { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--warn) !important; font-weight: 800 !important; }
.ai-why .ic { width: 13px; height: 13px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: #f6f9ff; min-width: 0; transition: transform .2s var(--bounce); }
.fact:hover { transform: scale(1.03); }
.fact-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-bg); color: var(--c-ink); }
.fact-ic .ic { width: 18px; height: 18px; }
.fact small { display: block; font-size: 11.5px; }
.fact b { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.3; }
.fact.no .fact-ic { background: #edf0f6; color: var(--ink-3); }
.fact.no b { color: var(--ink-2); }
.fact:first-child, .fact:nth-child(2) { grid-column: 1 / -1; }

.live { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.live li .ic { margin-top: 2px; width: 16px; height: 16px; }
.live li b { color: var(--ink); font-weight: 800; }
.live .ok .ic { color: var(--ok); }
.live .warn .ic { color: var(--warn); }
.live .bad .ic { color: var(--bad); }
.live .muted .ic { color: var(--ink-3); }
.live-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.live-actions button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 999px; background: var(--c-bg); font-weight: 800; font-size: 13px; color: var(--c-ink); transition: transform .2s var(--bounce); }
.live-actions button:hover { transform: translateY(-2px) scale(1.04); }
.live-actions .ic { width: 15px; height: 15px; }
.live-actions em, .ph.add em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--c-ink); }

.photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ph { position: relative; flex: none; width: 136px; height: 104px; margin: 0; border-radius: 20px; overflow: hidden; background: #e3f0ff; transition: transform .25s var(--bounce); }
.ph:hover { transform: scale(1.05) rotate(-1.5deg); }
.ph img, .ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph figcaption { position: absolute; left: 7px; bottom: 7px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 10.5px; font-weight: 800; color: var(--ink-2); }
.ph.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; background: #ffe6f3; border: 2px dashed #ff8fc7; color: #c0347f; font-weight: 800; font-size: 13px; --c-ink: #c0347f; }

.ratings { display: flex; gap: 18px; align-items: center; }
.rt-big { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; }
.rt-big b { font: 700 42px var(--display); line-height: 1; }
.stars { display: inline-flex; gap: 1px; }
.stars .ic { width: 15px; height: 15px; color: #e3e8f3; fill: #e3e8f3; }
.stars .ic.on { color: #ffc21a; fill: #ffcf33; }
.stars .ic.half { color: #ffd966; fill: #ffe9a3; }
.rt-bars { flex: 1; display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 112px 1fr 26px; align-items: center; gap: 8px; font-size: 13px; }
.bar span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 700; }
.bar span .ic { width: 14px; height: 14px; color: var(--c-ink); }
.bar i { height: 10px; border-radius: 99px; background: var(--c-bg); overflow: hidden; }
.bar u { display: block; height: 100%; border-radius: 99px; background: var(--c); animation: grow .9s var(--bounce) both; }
@keyframes grow { from { width: 0; } }
.bar b { font: 600 14px var(--display); text-align: right; }

.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reviews li { padding: 14px; border-radius: 20px; background: #f6f9ff; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-head div { flex: 1; min-width: 0; line-height: 1.25; }
.rv-head b { display: block; font-size: 14px; font-weight: 800; }
.rv-head em, .board em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #ffe6f3; color: #c0347f; margin-left: 4px; }
.reviews p { margin-top: 8px; font-size: 14px; color: var(--ink); font-weight: 600; }
.rv-cats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.rv-cats b { color: var(--ink-2); }
.rv-photos { display: flex; gap: 6px; margin-top: 10px; }
.rv-photos img { width: 72px; height: 56px; object-fit: cover; border-radius: 12px; }
.avatar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #8ec5ff, #4d9bff); color: #fff; font: 700 17px var(--display); box-shadow: inset 0 -3px 0 rgba(42, 58, 120, .12); }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.avatar.xl { width: 84px; height: 84px; }
.avatar.duck-av { background: #fff; padding: 12px 8px 6px; box-shadow: 0 6px 16px rgba(42, 58, 120, .12); }

.host-card { margin-top: 12px !important; padding: 14px; border-radius: 20px; background: #f3fdf9; border: 2px solid var(--ok-bg); }
.host-top { display: flex; align-items: center; gap: 12px; }
.host-top b { display: block; font-weight: 800; }
.host-card p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.rules { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.rules li { display: flex; align-items: center; gap: 5px; }
.rules .ic { width: 14px; height: 14px; color: var(--ok); }
.pass { display: flex; gap: 14px; align-items: center; margin-top: 12px !important; padding: 14px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #8f79f0, #e56fb0); animation: pop-in .5s var(--bounce); }
.pass-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .25); animation: jiggle 1s var(--bounce); }
.pass small { color: rgba(255, 255, 255, .95); }
.pass b { display: block; font: 600 20px var(--display); letter-spacing: .03em; }
.pass p { font-size: 13px; color: #fff; }
.dr-cta { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line-2); background: #fff; }

/* ───────── modal + forms ───────── */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(214, 228, 255, .6); backdrop-filter: blur(8px) saturate(1.2); animation: fade-in .2s; }
@keyframes fade-in { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 32px; box-shadow: 0 30px 80px rgba(42, 58, 120, .3); overflow: hidden; animation: pop-in .4s var(--bounce); }
@keyframes pop-in { from { opacity: 0; transform: scale(.82); } }
.modal header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 16px 6px 24px; }
.modal header h3 { font-size: 23px; color: var(--navy); }
.modal header p { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; font-weight: 600; }
.modal-body { padding: 12px 24px 24px; overflow-y: auto; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span, .seg-field > span, .tris > p { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.field small, .tris small { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 16px; border-radius: 18px; border: 2px solid var(--line); background: #f8fbff; outline: 0; font-weight: 700; transition: border-color .16s, box-shadow .16s; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9cc8ff; box-shadow: 0 0 0 4px rgba(156, 200, 255, .3); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rate-rows { display: grid; gap: 4px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.rate-row > span { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.rate-row > span .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--c-bg); color: var(--c-ink); }
.stars-in { display: flex; gap: 2px; }
.stars-in button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #e3e8f3; transition: transform .15s var(--bounce); }
.stars-in button .ic { width: 28px; height: 28px; fill: currentColor; }
.stars-in button:hover { transform: scale(1.25) rotate(-10deg); color: #ffe27a; }
.stars-in button.on { color: #ffcf33; animation: star-pop .35s var(--bounce); }
@keyframes star-pop { 50% { transform: scale(1.45) rotate(14deg); } }
.tris { display: grid; gap: 8px; padding: 14px; border-radius: 20px; background: #f6f9ff; }
.tri { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tri > span { flex: 1; font-weight: 800; }
.tri input, .seg input, .opt input, .check input { position: absolute; opacity: 0; pointer-events: none; }
.tri i, .seg i { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-style: normal; font-weight: 800; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: all .16s; }
.tri i .ic { width: 14px; height: 14px; }
.tri input:checked + i, .seg input:checked + i { background: var(--blue-600); border-color: var(--blue-600); color: #fff; animation: chip-pop .3s var(--bounce); }
.tri input:focus-visible + i, .seg input:focus-visible + i, .opt input:focus-visible + span, .check input:focus-visible + span { outline: 3px solid #9cc8ff; outline-offset: 2px; }
.seg-field { display: grid; gap: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg i { height: 42px; padding: 0 16px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: all .16s; }
.opt .ic { width: 16px; height: 16px; color: var(--blue); }
.opt input:checked + span { background: #e3f0ff; border-color: var(--blue); color: var(--blue-700); animation: chip-pop .3s var(--bounce); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; cursor: pointer; }
.check span { position: relative; padding-left: 58px; line-height: 30px; }
.check span::before { content: ''; position: absolute; left: 0; top: 0; width: 50px; height: 30px; border-radius: 99px; background: #d5dff0; transition: background .16s; }
.check span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(42, 58, 120, .3); transition: transform .25s var(--bounce); }
.check input:checked + span::before { background: #4fd1ae; }
.check input:checked + span::after { transform: translateX(20px); }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.hint .ic { width: 15px; height: 15px; margin-top: 1px; color: var(--blue); }
.uploader { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upl-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 2px dashed #ff8fc7; background: #ffe6f3; color: #c0347f; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.thumbs { display: flex; gap: 6px; }
.thumbs img { width: 48px; height: 44px; object-fit: cover; border-radius: 12px; animation: pop-in .3s var(--bounce); }
.loc-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 20px; background: #e3f0ff; }
.loc-row > .ic { color: var(--blue-600); }
.loc-row div { flex: 1; min-width: 0; line-height: 1.3; }
.loc-row b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill { margin: 0; padding: 14px 16px; border-radius: 20px; background: #fffaea; display: grid; gap: 6px; font-size: 14px; }
.bill div { display: flex; justify-content: space-between; color: var(--ink-2); }
.bill dd { margin: 0; font-weight: 800; }
.bill .total { padding-top: 8px; border-top: 2px dashed #ffe19a; color: var(--ink); font: 600 18px var(--display); }
.wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 6px 6px; text-align: center; }
.wait h4 { font-size: 22px; color: var(--navy); }
.wait p { color: var(--ink-2); font-size: 14px; max-width: 320px; }
.done-duck { width: 120px; height: 104px; }
.code { display: flex; gap: 8px; margin: 8px 0 14px; }
.code b { width: 54px; height: 66px; display: grid; place-items: center; border-radius: 18px; font: 700 30px var(--display); animation: pop-in .45s var(--bounce) both; }
.code b:nth-child(1) { background: #e3f0ff; color: #1f62c9; }
.code b:nth-child(2) { background: #ffe6f3; color: #c0347f; animation-delay: .1s; }
.code b:nth-child(3) { background: #fff5cc; color: #8a6200; animation-delay: .2s; }
.code b:nth-child(4) { background: #dcf7ee; color: #0d7d60; animation-delay: .3s; }
.spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 3px solid #d3e6ff; border-top-color: var(--blue-600); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ───────── toasts, banners, coins, confetti ───────── */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 700; box-shadow: var(--shadow-2); border: 2px solid #fff; animation: toast .45s var(--bounce); max-width: 100%; }
.toast-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e3f0ff; color: #1f62c9; }
.toast.ok .toast-ic { background: #fff5cc; color: #8a6200; }
.toast.ok .toast-ic .ic { fill: #ffcf33; }
.toast.warn .toast-ic { background: var(--warn-bg); color: var(--warn); }
.toast.out { opacity: 0; transform: translateY(10px) scale(.9); transition: all .3s; }
@keyframes toast { from { opacity: 0; transform: translateY(24px) scale(.8); } }
.banner { position: fixed; z-index: 130; top: calc(var(--top) + 16px); left: 50%; margin-left: -150px; width: 300px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #fff; border: 3px solid var(--c); box-shadow: var(--shadow-2); animation: banner-in .6s var(--bounce); transition: transform .35s, opacity .35s; }
.banner.out { transform: translateY(-30px) scale(.9); opacity: 0; }
@keyframes banner-in { from { transform: translateY(-90px) scale(.7); opacity: 0; } }
.banner small { display: block; color: var(--c-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.banner b { display: block; font: 600 16px var(--display); line-height: 1.2; }
.sticker { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-bg); border: 3px solid var(--c); color: var(--c-ink); box-shadow: inset 0 -4px 0 rgba(42, 58, 120, .06); }
.banner .sticker { animation: sticker-spin .8s var(--bounce); }
@keyframes sticker-spin { from { transform: rotate(-200deg) scale(.3); } }
.sticker.big { width: 68px; height: 68px; }
.sticker.big .ic { width: 30px; height: 30px; }
.coin { position: fixed; z-index: 210; min-width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #ffe98a, #ffc928); color: #7a5600; font: 700 17px var(--display); box-shadow: 0 6px 14px rgba(138, 98, 0, .3), inset 0 -4px 0 rgba(138, 98, 0, .16); pointer-events: none; animation: coin-pop .42s var(--bounce); transition: transform .8s cubic-bezier(.5, -.25, .7, 1), opacity .8s; }
@keyframes coin-pop { from { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3); } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 220; pointer-events: none; }

/* ───────── celebration pop-ups ───────── */
.pop-back { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(214, 228, 255, .62); backdrop-filter: blur(9px) saturate(1.2); animation: fade-in .25s; }
.pop { position: relative; width: 100%; max-width: 400px; padding: 0 26px 24px; border-radius: 36px; background: #fff; text-align: center; overflow: hidden; box-shadow: 0 30px 80px rgba(42, 58, 120, .35); animation: pop-in .5s var(--bounce); }
.pop-x { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .8); }
.pop-art { position: relative; height: 180px; margin: 0 -26px 18px; display: grid; place-items: center; background: linear-gradient(175deg, var(--c-bg) 55%, #fff 130%); }
.pop-art > .duck, .welcome-art > .duck, .rank-art > .duck { width: 130px; height: 112px; }
.pop h3 { font-size: 27px; color: var(--navy); }
.pop p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.pop-actions { display: flex; gap: 8px; margin-top: 20px; }
.pop-actions .btn { flex: 1; }
.welcome-art, .rank-art { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.float-ic { position: absolute; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--c-ink); box-shadow: var(--shadow-1); animation: bob 2.6s ease-in-out infinite; }
.float-ic .ic { width: 22px; height: 22px; }
.float-ic.p0 { left: 13%; top: 20%; }
.float-ic.p1 { right: 12%; top: 14%; animation-delay: -.9s; }
.float-ic.p2 { left: 20%; bottom: 10%; animation-delay: -1.7s; width: 42px; height: 42px; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(8deg); } }
.rank-art .sticker { position: absolute; right: 14%; top: 8%; animation: sticker-spin .9s var(--bounce), bob 2.6s 1s ease-in-out infinite; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: all .3s; }
.dots i.on { width: 26px; background: var(--c); }

/* ───────── Ducky the helper ───────── */
.helper { position: fixed; z-index: 44; left: 18px; bottom: 18px; display: flex; align-items: flex-end; gap: 10px; pointer-events: none; }
.helper > * { pointer-events: auto; }
.helper-duck { order: 0; width: 72px; height: 72px; flex: none; padding: 12px 8px 6px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #fff, #fff5cc); border: 4px solid #fff; box-shadow: 0 10px 24px rgba(42, 58, 120, .22); animation: bob-s 3s ease-in-out infinite; transition: transform .2s var(--bounce); }
.helper-duck:hover { transform: scale(1.1) rotate(-6deg); }
.helper-duck.quack { animation: quack .6s var(--bounce); }
@keyframes bob-s { 50% { transform: translateY(-6px); } }
@keyframes quack { 30% { transform: translateY(-16px) rotate(-10deg) scale(1.1); } 60% { transform: translateY(0) rotate(6deg); } }
.helper-bubble { order: 1; max-width: min(320px, calc(100vw - 120px)); margin-bottom: 18px; padding: 10px 16px 11px; border-radius: 22px 22px 22px 6px; background: #fff; box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; text-align: left; line-height: 1.4; animation: bubble-in .45s var(--bounce); transform-origin: left bottom; }
.helper-bubble small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #c0347f; }
.helper-bubble b { font-weight: 800; }
.helper-bubble.is-link { cursor: pointer; }
.helper-bubble.is-link:hover { background: #f6f9ff; }
@keyframes bubble-in { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
.helper-menu { position: absolute; left: 0; bottom: 86px; width: 270px; padding: 14px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-2); display: grid; gap: 6px; animation: bubble-in .35s var(--bounce); transform-origin: left bottom; }
.helper-menu > b { font: 600 17px var(--display); padding: 2px 6px 6px; color: var(--navy); }
.helper-menu button { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; text-align: left; transition: background .16s, transform .2s var(--bounce); }
.helper-menu button:hover { background: var(--c-bg); transform: translateX(3px); }
.helper-menu button > .ic { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--c-bg); color: var(--c-ink); }
.helper-menu span { display: flex; flex-direction: column; font-weight: 800; line-height: 1.25; }

/* ───────── pages (host, community) ───────── */
.page { max-width: 1080px; margin: 0 auto; padding: 28px 20px 90px; }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 38px; border-radius: 36px; background: linear-gradient(125deg, #e3f0ff 0%, #ffe6f3 55%, #fff5cc 100%); border: 3px solid #fff; box-shadow: var(--shadow-1); overflow: hidden; }
.kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: #fff; color: #c0347f; font-weight: 800; font-size: 12.5px; box-shadow: var(--shadow-1); }
.kicker .ic { width: 14px; height: 14px; }
.hero h1 { margin: 14px 0 10px; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; color: var(--navy); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, #ffe27a 62%); padding: 0 4px; }
.hero p { color: var(--ink-2); font-size: 16px; max-width: 46ch; margin-bottom: 22px; font-weight: 600; }
.hero-art { position: relative; padding: 14px 22px; }
.art-frame { border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-2); border: 7px solid #fff; transform: rotate(2deg); }
.art-frame svg { width: 100%; height: 100%; display: block; }
.float { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-2); font-weight: 800; font-size: 13.5px; color: var(--navy); animation: bob 4s ease-in-out infinite; }
.float .ic { width: 15px; height: 15px; }
.f1 { left: 0; bottom: 34px; }
.f1 .ic { color: #b8551a; }
.f2 { right: 0; top: 22px; animation-delay: -1.2s; }
.f2 .ic { color: #ffc21a; fill: #ffcf33; }
.f3 { right: 8px; bottom: 6px; animation-delay: -2.4s; }
.f3 .ic { color: #ff8fc7; fill: #ff8fc7; }
.hero-duck { position: absolute; left: 4px; top: 0; width: 84px; height: 74px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat { display: grid; gap: 2px; padding: 18px; border-radius: var(--r); background: #fff; border: 2px solid transparent; box-shadow: var(--shadow-1); transition: transform .25s var(--bounce), border-color .2s; animation: card-in .5s var(--bounce) both; }
.stat:nth-child(2) { animation-delay: .07s; }
.stat:nth-child(3) { animation-delay: .14s; }
.stat:nth-child(4) { animation-delay: .21s; }
.stat:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--c); }
.stat-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--c-bg); color: var(--c-ink); margin-bottom: 8px; }
.stat b { font: 700 30px var(--display); line-height: 1.1; }
.panel { margin-top: 16px; padding: 22px; border-radius: 28px; background: #fff; border: 2px solid transparent; box-shadow: var(--shadow-1); }
.panel.ring { border-color: #ff8fc7; animation: ring-pink 1.6s ease-out infinite; }
@keyframes ring-pink { 0% { box-shadow: 0 0 0 0 rgba(255, 143, 199, .5), var(--shadow-1); } 100% { box-shadow: 0 0 0 14px rgba(255, 143, 199, 0), var(--shadow-1); } }
.panel h2 { font-size: 21px; color: var(--navy); }
.panel h2 small { font: 800 12.5px var(--font); padding: 2px 9px; border-radius: 999px; background: #fff5cc; color: #8a6200; vertical-align: 3px; margin-left: 4px; }
.panel-sub { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; font-weight: 600; }
.panel h2 + *:not(.panel-sub), .panel-sub + * { margin-top: 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.span2 { grid-column: 1 / -1; }
.req, .listing { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: #f6f9ff; }
.req + .req, .listing + .listing { margin-top: 8px; }
.req-txt, .listing-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.req-txt b, .listing-txt b { font-weight: 800; }
.req-txt b small { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; }
.req-txt b small .ic { width: 12px; height: 12px; color: #ffc21a; fill: #ffcf33; }
.req-txt span, .listing-txt span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-fee { font: 600 18px var(--display); color: var(--ok); white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.steps div { padding: 22px; border-radius: 28px; background: var(--c-bg); transition: transform .25s var(--bounce); }
.steps div:hover { transform: translateY(-5px) rotate(-1deg); }
.steps span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--c-ink); font: 700 19px var(--display); box-shadow: inset 0 -3px 0 rgba(42, 58, 120, .08); }
.steps h3 { margin: 14px 0 6px; font-size: 19px; color: var(--navy); }
.steps p { color: var(--ink-2); font-size: 14px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.feed li + li { border-top: 2px dashed var(--line-2); }
.feed div { flex: 1; min-width: 0; line-height: 1.3; }
.feed b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed em { font: 600 16px var(--display); font-style: normal; color: var(--ok); white-space: nowrap; }
.feed-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #edf0f6; color: var(--ink-3); }
.feed-ic[class*='c-'] { background: var(--c-bg); color: var(--c-ink); }
.feed-ic .ic { width: 16px; height: 16px; }

.profile { padding: 26px; border-radius: 36px; background: linear-gradient(125deg, #e3f0ff 0%, #ece7ff 50%, #ffe6f3 100%); border: 3px solid #fff; box-shadow: var(--shadow-1); }
.profile-main { display: flex; align-items: center; gap: 18px; }
.profile-txt { flex: 1; min-width: 0; }
.name-in { width: 100%; max-width: 320px; padding: 2px 10px; margin-left: -10px; border: 2px solid transparent; border-radius: 14px; background: none; outline: 0; font: 600 28px var(--display); color: var(--navy); }
.name-in:hover { border-color: #fff; }
.name-in:focus { border-color: #9cc8ff; background: #fff; }
.name-in::placeholder { color: #8090c4; }
.profile-txt p { color: var(--ink-2); font-weight: 600; }
.profile-txt p b { color: #5b3fd0; font-weight: 800; }
.profile-pts { text-align: right; }
.profile-pts b { display: block; font: 700 46px var(--display); line-height: 1; color: var(--blue-600); }
.progress { height: 14px; margin-top: 20px; border-radius: 99px; background: #fff; overflow: hidden; }
.progress i { display: block; height: 100%; min-width: 14px; border-radius: 99px; background: linear-gradient(90deg, #8ec5ff, #a48bff, #ff8fc7); animation: grow 1s var(--bounce) both; }
.progress-note { display: block; margin-top: 8px; color: var(--ink-2); }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.ladder div { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 22px; background: rgba(255, 255, 255, .55); text-align: center; color: var(--ink-2); transition: transform .25s var(--bounce); }
.ladder div:hover { transform: translateY(-4px); }
.ladder span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; margin-bottom: 4px; }
.ladder b { font: 600 14px var(--display); }
.ladder .done { color: var(--c-ink); background: #fff; }
.ladder .done span { background: var(--c-bg); }
.ladder .now { box-shadow: 0 0 0 3px var(--c); }
.ladder .now span { animation: bob-s 2s ease-in-out infinite; }

.quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quests li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: #f6f9ff; font-weight: 800; font-size: 14px; transition: transform .2s var(--bounce); }
.quests li:hover { transform: translateX(4px); }
.quests span { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-bg); color: var(--c-ink); }
.quests i { margin-left: auto; color: #c9d4ea; display: grid; }
.quests i .ic { width: 24px; height: 24px; }
.quests .done { background: var(--c-bg); color: var(--c-ink); }
.quests .done span { background: #fff; }
.quests .done i .ic { color: var(--c-ink); background: #fff; border-radius: 50%; padding: 4px; stroke-width: 3.4; animation: star-pop .5s var(--bounce); }
.quest-bar { position: relative; height: 14px; margin: 18px 22px 6px 0 !important; border-radius: 99px; background: #f0f4fb; }
.quest-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8ec5ff, #4fd1ae, #ffcf33); animation: grow 1s var(--bounce) both; }
.quest-bar span { position: absolute; right: -22px; top: -15px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff5cc; border: 3px solid #ffcf33; color: #8a6200; animation: bob-s 2s ease-in-out infinite; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.badge-tile { display: grid; justify-items: center; gap: 3px; padding: 12px 6px; border-radius: 22px; text-align: center; background: #f6f9ff; filter: grayscale(.9); transition: transform .25s var(--bounce); }
.badge-tile b { font: 600 13.5px var(--display); line-height: 1.15; margin-top: 4px; color: var(--ink-2); }
.badge-tile small { font-size: 11px; line-height: 1.25; color: var(--ink-2); }
.badge-tile.got { filter: none; background: var(--c-bg); }
.badge-tile.got b { color: var(--ink); }
.badge-tile.got:hover { transform: translateY(-5px) rotate(-3deg); }
.badge-tile.got:hover .sticker { animation: jiggle .5s var(--bounce); }
.badge-tile.got .sticker { background: #fff; }
.earn { list-style: none; margin: 0; padding: 0; }
.earn li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; font-weight: 700; }
.earn li + li { border-top: 2px dashed var(--line-2); }
.earn span { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-bg); color: var(--c-ink); }
.earn span .ic { width: 16px; height: 16px; }
.earn em { margin-left: auto; font: 600 16px var(--display); font-style: normal; color: var(--ok); }
.earn + .btn { margin-top: 16px; }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 999px; transition: transform .2s var(--bounce); }
.board li:hover { transform: translateX(4px); }
.board li.me { background: #fff5cc; }
.place { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 700 13px var(--display); font-style: normal; color: var(--ink-2); }
.place.p1 { background: #ffcf33; color: #6b4b00; }
.place.p2 { background: #d5dff0; color: #3f4f7a; }
.place.p3 { background: #ffc49b; color: #8a3d10; }
.board b { font-size: 14px; font-weight: 800; }
.board small { flex: 1; color: var(--ink-2); }
.board u { text-decoration: none; font: 600 16px var(--display); color: var(--blue-700); }
.prefs { display: grid; gap: 8px; }
.pref { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 14px 9px 9px; border-radius: 999px; background: #f6f9ff; text-align: left; font-weight: 800; font-size: 14px; transition: background .16s, transform .2s var(--bounce); }
.pref:hover { transform: translateX(3px); }
.pref > .ic { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: var(--c-bg); color: var(--c-ink); }
.pref span { flex: 1; }
.switch { position: relative; width: 48px; height: 28px; flex: none; border-radius: 99px; background: #c3cfe6; transition: background .16s; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(42, 58, 120, .3); transition: transform .3s var(--bounce); }
.pref.is-on { background: var(--c-bg); }
.pref.is-on > .ic { background: #fff; }
.pref.is-on .switch { background: var(--c-ink); }
.pref.is-on .switch::after { transform: translateX(20px); }

@media (min-width: 901px) {
  .has-drawer .map-bottom { padding: 0 452px 0 24px; }
  .has-drawer .area-pill, .has-drawer .loading-pill { left: calc(50% - 216px); }
}

/* ───────── phones ───────── */
@media (max-width: 900px) {
  :root { --top: 58px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .topbar { padding: 0 14px; backdrop-filter: none; background: #fff; }
  .brand { font-size: 20px; }
  .logo { width: 32px; height: 32px; }
  .points { margin-left: auto; }
  .points-rank { display: none; }
  .mainnav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 26px 26px 0 0; gap: 0; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(42, 58, 120, .1); }
  .mainnav button { flex: 1; flex-direction: column; gap: 2px; padding: 8px 4px; border-radius: 18px; font-size: 12.5px; }
  .mainnav button.is-active { background: #e3f0ff; box-shadow: none; }
  .mainnav .ic { width: 21px; height: 21px; }
  .hello { width: calc(100% - 28px); margin-top: 12px; }
  .hello h1 { font-size: 22px; }
  .hello-stats { width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
  .hstat { flex: none; padding: 5px 13px 5px 5px; }
  .hstat span { width: 30px; height: 30px; }
  .hstat b { font-size: 18px; }
  .map-frame { width: calc(100% - 16px); margin-top: 8px; padding: 4px; border-radius: 30px; }
  .map-stage { border-radius: 26px; height: clamp(340px, 52dvh, 520px); }
  .map-top { top: 10px; left: 10px; right: 64px; }
  .map-side { top: 10px; right: 10px; }
  .search { flex: 1 1 100%; height: 50px; }
  .chip-home { height: 42px; }
  .map-bottom { padding: 0 10px; bottom: 24px; }
  .leaflet-bar { display: none; }
  .cta { padding-right: 18px; }
  .cta-txt b { font-size: 17px; }
  .navbar { border-radius: 26px; flex-wrap: wrap; }
  .explore-body { padding: 0 14px 40px; }
  .cards { grid-template-columns: 1fr; }
  .smart { flex-wrap: wrap; }
  .smart::after { display: none; }
  .smart .btn { width: 100%; }
  .smart-duck { width: 58px; height: 50px; }
  .list-head { margin-top: 20px; }
  .list-head h2 { font-size: 22px; }
  .sort > span { display: none; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; height: min(88dvh, 760px); border-radius: 32px 32px 0 0; z-index: 60; animation: sheet .45s var(--bounce); }
  @keyframes sheet { from { transform: translateY(80px); opacity: 0; } }
  .dr-cover { height: 150px; }
  .modal-back { padding: 0; align-items: end; }
  .modal { max-width: none; border-radius: 32px 32px 0 0; max-height: 92dvh; }
  .toasts { bottom: auto; top: calc(var(--top) + 10px); }
  .banner { top: calc(var(--top) + 60px); }
  .helper { left: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .helper-duck { width: 58px; height: 58px; padding: 9px 6px 4px; }
  .helper-menu { bottom: 70px; }
  .has-drawer .helper, .has-modal .helper, .has-pop .helper { display: none; }
  .page { padding: 16px 14px 60px; }
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero-art { order: -1; max-width: 340px; }
  .stats, .stats.four { grid-template-columns: 1fr 1fr; }
  .steps, .cols { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(5, minmax(86px, 1fr)); overflow-x: auto; padding: 4px; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .profile { padding: 20px; }
  .profile-pts b { font-size: 34px; }
  .avatar.xl { width: 64px; height: 64px; }
  .name-in { font-size: 22px; }
  .req, .listing { flex-wrap: wrap; border-radius: 22px; }
  .req-txt, .listing-txt { flex-basis: 60%; }
  .picker-bar { left: 10px; right: 10px; transform: none; white-space: normal; border-radius: 24px; }
  .picker-bar span { flex: 1; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .ratings { flex-direction: column; align-items: stretch; }
  .rt-big { flex-direction: row; gap: 10px; justify-content: flex-start; }
  .cta-txt small { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
