/* =====================================================================
   Shenanigo v6: Discover (map · swipe · list), the quest page, sign-in, and the quest builder
   ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.v6-spin { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--violet-2); animation: spin 0.8s linear infinite; }
@keyframes v6pop { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-8deg); } 70% { transform: scale(0.92); } 100% { transform: scale(1); } }
@keyframes v6in { from { transform: scale(0.4); opacity: 0; } }
@keyframes v6shim { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.v6-pop { animation: v6pop 0.5s var(--spring); }

/* MapLibre controls: big enough for thumbs everywhere */
.maplibregl-ctrl-group button { width: 36px !important; height: 36px !important; }
@media (pointer: coarse), (max-width: 760px) { .maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; } }
.maplibregl-ctrl-group button + button { border-top-color: var(--line-2) !important; }

/* ---------------------------------------------------------------- DISCOVER */
.v6d { --v6-top: calc(var(--top) + 16px); }
.v6d .v6-top { position: absolute; z-index: 9; top: var(--v6-top); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.v6d .v6-top > * { pointer-events: auto; }
.v6d .search.v6-search { z-index: 3; position: relative; top: auto; left: auto; transform: none; align-items: center; gap: 6px; padding: 6px; }
.v6d .v6-search .input { min-width: 0; flex: 1; font-size: 16px; }
.v6d .v6-search .input::-webkit-search-cancel-button { display: none; }
.v6-sico { display: grid; place-items: center; padding-left: 8px; font-size: 17px; }
.v6-clear { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: rgba(255, 255, 255, 0.06); transition: transform 0.3s var(--spring), background 0.2s; }
.v6-clear:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.v6-clear:active, .fab:active, .v6-round:active, .v6-qicon:active, .v6-modes button:active { transform: scale(0.9); }
.v6d .v6-search .btn { flex: none; min-height: 44px; }
.v6-filt .badge-dot { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; line-height: 17px; background: var(--coral); }
.v6d .occbar { z-index: 1; position: static; width: 100%; padding-top: 2px; padding-bottom: 2px; }
.v6-status { display: inline-flex; align-items: center; gap: 6px; max-width: calc(100vw - 32px); min-height: 32px; padding: 4px 6px 4px 14px; border-radius: 99px; font-size: 13px; color: var(--muted);
  background: rgba(21, 25, 32, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line-2); }
.v6-status > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.v6-x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #1a1508; background: var(--violet-2); }

/* search suggestions */
.v6d .suggest { max-height: min(60vh, 460px); overflow-y: auto; padding: 6px; border-radius: 18px; animation: v6drop 0.3s var(--ease); }
@keyframes v6drop { from { opacity: 0; transform: translateY(-6px); } }
.v6d .suggest button { display: flex; align-items: center; gap: 12px; border-radius: 12px; border-bottom: 0; padding: 10px 12px; min-height: 48px; }
.v6d .suggest button:focus-visible { outline-offset: -2px; }
.v6-sg-h { padding: 10px 12px 4px; font: 600 10.5px var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.v6-sg-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; color: #1a1508; background: linear-gradient(135deg, hsl(var(--h, 42), 60%, 70%), hsl(var(--h, 42), 45%, 45%)); }
.v6-sg-ic.place { background: rgba(143, 176, 221, 0.18); }
.v6-sg-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.v6-sg-t b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v6-sg-t small { color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v6d .suggest .v6-sg-all { justify-content: space-between; color: var(--violet-2); font-weight: 600; }
.v6-sg-all kbd { font: 600 11px var(--f-mono); padding: 2px 7px; border-radius: 6px; background: rgba(240, 211, 138, 0.14); }
.v6-sg-load { display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--dim); font-size: 13.5px; }

/* right-hand tools + zoom */
.v6d .v6-tools { top: calc(var(--v6-top) + 172px); z-index: 7; }
.v6d .maplibregl-ctrl-top-right { top: calc(var(--v6-top) + 290px); right: 10px; }
.v6d .maplibregl-ctrl-group { border-radius: 16px !important; overflow: hidden; }
.v6d .fab { width: 50px; height: 50px; }

/* "near me" invitation */
.v6-nearcta { position: absolute; z-index: 6; left: 50%; top: 46%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 22px;
  background: rgba(21, 25, 32, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-2); animation: popIn2 0.6s var(--spring); }
.v6-nearx { width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; }
.disc:not([data-mode='map']) .v6-nearcta, .disc:not([data-mode='map']) .v6-tools, .disc:not([data-mode='map']) .maplibregl-ctrl-top-right { display: none; }

/* bottom stack: mode switch + carousel */
.v6-bottom { position: absolute; z-index: 8; left: 0; right: 0; bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.v6-bottom > * { pointer-events: auto; }
.v6-modes { --i: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 18px; width: min(330px, calc(100vw - 32px));
  background: rgba(21, 25, 32, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--line-2); }
.v6-modes button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font: 600 14px var(--f-body); transition: color 0.3s, transform 0.3s var(--spring); }
.v6-modes button .ic { font-size: 16px; transition: transform 0.45s var(--spring); }
.v6-modes button[aria-selected='true'] { color: #1a1508; }
.v6-modes button[aria-selected='true'] .ic { transform: rotate(-10deg) scale(1.2); }
.v6-blob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 14px; transform: translateX(calc(var(--i) * 100%));
  background: linear-gradient(115deg, #f5e2b0, #d8b25a 55%, #b99040); box-shadow: 0 8px 20px -8px rgba(216, 178, 90, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45); transition: transform 0.5s var(--spring); }
.v6d .carousel { position: static; width: 100%; padding-top: 6px; padding-bottom: 6px; align-items: stretch; }
.disc:not([data-mode='map']) .carousel { display: none; }
.v6d .carousel .qcard { height: auto; min-height: 136px; width: min(330px, 84vw); }
.v6d .carousel .qcard .media { width: 104px; aspect-ratio: auto; }
.v6d .carousel .qcard .body { min-width: 0; padding: 14px 16px; gap: 5px; }
.v6d .carousel .qcard h3 { font-size: 17.5px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.v6d .carousel .qcard .tagline { flex: none; font-size: 13px; line-height: 1.4; -webkit-line-clamp: 2; }
.v6d .carousel .qcard .meta { margin-top: auto; }
.v6d .carousel .qcard .pts { top: 8px; right: auto; left: 8px; }
.v6d .carousel .qcard .pts-badge { padding: 4px 8px; font-size: 11px; }
.v6d .carousel .qcard:active { transform: scale(0.97); }
.v6-empty-card { flex: none; margin: 0 auto; padding: 18px 20px; width: min(420px, calc(100vw - 40px)); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.v6-empty-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.v6-empty .v6-empty-acts { margin-top: 18px; }
.v6-empty .v6-empty-acts .btn { margin-top: 0; }

/* skeletons */
.v6-skel { border-radius: 24px; background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 70%); background-size: 300% 100%; animation: v6shim 1.4s var(--d, 0s) infinite linear; box-shadow: inset 0 0 0 1px var(--line); }
.v6-skel.car { flex: none; width: min(330px, 84vw); height: 136px; }
.v6-skel.grid { height: 330px; }
.v6-skel.deck { position: absolute; inset: 0; border-radius: 28px; }

/* pins: bigger hit area, clusters as gold wax coins */
.v6d .beacon { width: 30px; height: 30px; }
.v6d .beacon .dot { inset: 8px; }
.v6d .beacon:focus-visible { outline-offset: 2px; border-radius: 50%; }
.v6-cluster { --s: 1; width: calc(40px * var(--s)); height: calc(40px * var(--s)); padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; position: relative;
  font: 800 calc(13px + 2px * var(--s)) var(--f-mono); color: #2a1d05; background: radial-gradient(circle at 35% 30%, #fff3cf, #e2c37a 45%, #a9853a 90%);
  box-shadow: 0 0 0 4px rgba(16, 19, 24, 0.85), 0 0 0 7px rgba(216, 178, 90, 0.35), 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 30px rgba(216, 178, 90, 0.45); animation: v6in 0.45s var(--spring); transition: transform 0.35s var(--spring); }
.v6-cluster::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px dashed rgba(42, 29, 5, 0.4); }
.v6-cluster:hover { transform: scale(1.12) rotate(-6deg); }
.v6-cluster span { position: relative; }

/* list mode */
.v6d .v6-list { z-index: 6; padding-top: calc(var(--v6-top) + 170px); padding-bottom: 120px; }
.disc[data-mode='list'] .v6-list { opacity: 1; pointer-events: auto; }
.v6-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.v6-list-head h2 { font-size: clamp(26px, 3.4vw, 44px); margin-top: 10px; }
.v6-sortseg button { padding: 9px 13px; min-height: 40px; }

/* swipe deck */
.v6-deck { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: calc(var(--v6-top) + 172px) 16px 104px;
  background: radial-gradient(90% 60% at 50% 45%, rgba(30, 36, 48, 0.78), rgba(12, 14, 18, 0.95)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.disc[data-mode='deck'] .v6-deck { opacity: 1; pointer-events: auto; }
.disc[data-mode='list'] .v6-status { visibility: hidden; }
.v6-deck-head { width: min(420px, 100%); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--muted); }
.v6-deck-head b { font: 600 12px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-2); }
.v6-keys { font: 500 11.5px var(--f-mono); color: var(--dim); }
@media (hover: none) { .v6-keys { display: none; } }
.v6-stack { position: relative; flex: 1; min-height: 0; width: min(420px, 100%); max-height: 600px; }
.v6-card { --k: 0; --yes: 0; --no: 0; position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: #f4ead3; color: #2a2418;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: translateY(calc(var(--k) * 12px)) scale(calc(1 - var(--k) * 0.045));
  transition: transform 0.45s var(--spring), opacity 0.3s; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; animation: v6deal 0.5s var(--spring) both; }
@keyframes v6deal { from { transform: translateY(40px) scale(0.9); opacity: 0; } }
.v6-card:not(.top) { pointer-events: none; filter: brightness(calc(1 - var(--k) * 0.18)); animation: none; }
.v6-card.drag { transition: none; cursor: grabbing; }
.v6-card.fly { transition: transform 0.34s cubic-bezier(0.5, 0, 0.9, 0.5), opacity 0.34s; opacity: 0; }
.v6-card:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 4px; border-radius: 28px; }
.v6-card-art { position: relative; flex: 1 1 55%; min-height: 0; overflow: hidden; }
.v6-card-art > img, .v6-card-art > .painted { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v6-card-art > .painted svg { width: 100%; height: 100%; display: block; }
.v6-card-art .pts-badge { position: absolute; top: 14px; right: 14px; }
.v6-sticker { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 10px; font: 700 13px var(--f-body); transform: rotate(-5deg); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4); }
.v6-sticker.saved { color: #fff; background: #d65a48; }
.v6-sticker.done { color: #16190f; background: var(--good); }
.v6-stamp { position: absolute; top: 34px; padding: 4px 14px; border: 4px solid currentColor; border-radius: 12px; font: 800 28px var(--f-display); letter-spacing: 0.02em; text-transform: uppercase; background: rgba(244, 234, 211, 0.85); pointer-events: none; }
.v6-stamp.yes { left: 22px; color: #3f7a2a; transform: rotate(-14deg) scale(calc(0.7 + var(--yes) * 0.3)); opacity: var(--yes); }
.v6-stamp.no { right: 22px; color: #b8412d; transform: rotate(14deg) scale(calc(0.7 + var(--no) * 0.3)); opacity: var(--no); }
.v6-card-body { position: relative; flex: none; padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, #f6eedb, #efe2c4); }
.v6-card-body::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: radial-gradient(circle at 6px 10px, #f6eedb 6px, transparent 6.5px) 0 0 / 12px 10px repeat-x; }
.v6-card-where { font: 600 11px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #8a6a2c; }
.v6-card h3 { font-size: 25px; line-height: 1.05; color: #221b10; }
.v6-card p { font-size: 14.5px; line-height: 1.45; color: #5b503c; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v6-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 4px; padding-top: 10px; border-top: 1.5px dashed rgba(42, 36, 24, 0.2); font-size: 13px; color: #5b503c; }
.v6-card-meta .dim { color: #8b806a; }
.v6-card .pips i { background: rgba(42, 36, 24, 0.14); }
.v6-card .pips i.on { background: linear-gradient(180deg, var(--amber), var(--coral)); }
.v6-deck-btns { display: flex; align-items: center; justify-content: center; gap: 14px; }
.v6-round { width: 64px; height: 64px; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 26px; cursor: pointer; color: var(--text);
  background: rgba(36, 43, 56, 0.9); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9), inset 0 0 0 1.5px var(--line-2); transition: transform 0.35s var(--spring), background 0.2s; }
.v6-round:hover { transform: scale(1.08); }
.v6-round.sm { width: 50px; height: 50px; font-size: 19px; }
.v6-round.no { color: #ff8e76; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9), inset 0 0 0 2px rgba(224, 103, 79, 0.55); }
.v6-round.yes { color: #fff; background: linear-gradient(140deg, #f08a74, #d14b3a); box-shadow: 0 14px 30px -10px rgba(224, 103, 79, 0.8); font-size: 28px; }
.v6-round[disabled] { opacity: 0.35; pointer-events: none; }
.v6-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px; text-align: center; border-radius: 28px;
  background: rgba(26, 31, 40, 0.75); box-shadow: inset 0 0 0 1.5px dashed var(--line-2); border: 2px dashed rgba(240, 211, 138, 0.25); animation: v6deal 0.5s var(--spring); }
.v6-done .big { font-size: 64px; animation: bob 4s ease-in-out infinite; }

/* stacked-spot sheet */
.v6-sheet-h { font-size: 30px; margin: 10px 0 4px; }
.v6-stacklist { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; max-height: 55vh; overflow-y: auto; }
.v6-mini { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 14px 8px 8px; border: 0; border-radius: 16px; text-align: left; color: var(--text); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.3s var(--spring), background 0.2s; }
.v6-mini:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(4px); }
.v6-mini-art { --h: 42; position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.v6-mini-art img, .v6-mini-art .painted, .v6-mini-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.v6-mini-t { display: flex; flex-direction: column; min-width: 0; }
.v6-mini-t b { font: 700 16px var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v6-mini-t small { color: var(--dim); font-size: 12.5px; }
.v6-mini-go { color: var(--violet-2); }
.drawer .v6-drawer-foot { position: sticky; bottom: -32px; margin: auto -32px -32px; padding: 16px 32px 24px; background: linear-gradient(rgba(19, 23, 30, 0), rgba(19, 23, 30, 0.99) 16px); }

@media (max-width: 760px) {
  .v6d { --v6-top: calc(10px + env(safe-area-inset-top)); }   /* installed on the home screen, the page runs under the clock */
  .v6d .v6-top { gap: 8px; }
  .v6d .search.v6-search { top: auto; width: calc(100vw - 20px); }
  .v6d .v6-search .btn { padding: 9px 12px; min-width: 44px; }
  .v6d .occbar { top: auto; }
  .v6d .v6-tools { top: 158px; right: 10px; gap: 8px; }
  .v6d .fab { width: 46px; height: 46px; font-size: 18px; border-radius: 15px; }
  .v6d .maplibregl-ctrl-top-right { top: 262px; right: 1px; }
  .v6-bottom { bottom: calc(88px + env(safe-area-inset-bottom)); gap: 10px; }
  .v6d .carousel { gap: 12px; padding: 4px 16px; scroll-padding: 0 16px; }
  .v6d .carousel .qcard { width: 84vw; }
  .v6d .v6-list { padding: 158px 16px 170px; }
  .v6-deck { padding: calc(var(--v6-top) + 124px) 16px calc(150px + env(safe-area-inset-bottom)); gap: 12px; }   /* under the search bar and chips (no count pill or best-time row any more) */
  .v6-round { width: 58px; height: 58px; }
  .v6-round.sm { width: 46px; height: 46px; }
  .v6-card h3 { font-size: 22px; }
  .v6-card-body { padding: 14px 16px 16px; }
  .v6-nearcta { top: 40%; }
  .v6-deck-head { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) { .v6-card p { -webkit-line-clamp: 1; } .v6-deck-head { display: none; } }

/* ---------------------------------------------------------------- QUEST PAGE */
.v6-back { display: none; }
.v6-qhero .v6-herochips { gap: 8px; }
.v6-donechip { color: #16190f; background: var(--good); box-shadow: none; }
.v6-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 28px; max-width: 820px; }
.v6-stats > div { padding: 11px 14px; border-radius: 16px; background: rgba(16, 19, 24, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2); animation: v6rise 0.6s var(--ease) both; }
.v6-stats > div:nth-child(2) { animation-delay: 0.05s; } .v6-stats > div:nth-child(3) { animation-delay: 0.1s; } .v6-stats > div:nth-child(4) { animation-delay: 0.15s; } .v6-stats > div:nth-child(n + 5) { animation-delay: 0.2s; }
@keyframes v6rise { from { opacity: 0; transform: translateY(12px); } }
.v6-stats b { display: block; font: 700 17px var(--f-mono); white-space: nowrap; }
.v6-stats small { color: var(--dim); font: 600 10px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.v6-stats .gold { color: #2a1d05; background: linear-gradient(140deg, #f7e6b8, #d8b25a); box-shadow: 0 10px 24px -12px rgba(216, 178, 90, 0.9); position: relative; }
.v6-stats .gold::after { content: ''; position: absolute; inset: 4px; border-radius: 12px; border: 1.5px dashed rgba(42, 29, 5, 0.3); pointer-events: none; }
.v6-stats .gold small { color: rgba(42, 29, 5, 0.7); }

/* what you'll need: paper stickers */
.v6-needs .eyebrow { font-size: 12px; margin: 0; font-family: var(--f-mono); }
.v6-needlist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.v6-needlist li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; color: #2a2418;
  background: linear-gradient(170deg, #f7efdc, #ecdfc0); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.9), inset 0 -2px 0 rgba(42, 36, 24, 0.08); transform: rotate(-1.2deg); transition: transform 0.4s var(--spring); }
.v6-needlist li:nth-child(even) { transform: rotate(1.1deg); }
.v6-needlist li:nth-child(3n) { transform: rotate(-0.4deg); }
.v6-needlist li:hover { transform: rotate(0) scale(1.04); }
.v6-needlist li::before { content: ''; position: absolute; top: -6px; left: 50%; width: 38px; height: 12px; margin-left: -19px; background: rgba(216, 178, 90, 0.55); transform: rotate(-3deg); border-radius: 2px; }
.v6-needlist .e { grid-row: span 2; font-size: 26px; line-height: 1; }
.v6-needlist b { font: 700 15px var(--f-display); line-height: 1.15; }
.v6-needlist small { font-size: 12px; color: #6d6250; line-height: 1.3; }

/* the trail: an ink path through proof-type stops */
.v6-trail-h { font-size: 30px; margin: 12px 0 4px; }
.v6-trail-h .dim { font: 500 15px var(--f-body); letter-spacing: 0; }
.v6-trail { position: relative; margin: 14px 0 6px; padding: 6px 0; }
.v6-ink { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.v6-ink path { fill: none; stroke-linecap: round; }
.v6-ink-glow { stroke: rgba(216, 178, 90, 0.2); stroke-width: 12; stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); transition: stroke-dashoffset 2.4s var(--ease) 0.2s; }
.in .v6-ink-glow, .v6-trail.in .v6-ink-glow { stroke-dashoffset: 0; }
.v6-ink-line { stroke: rgba(240, 211, 138, 0.8); stroke-width: 2.6; stroke-dasharray: 1 9; animation: v6march 1.8s linear infinite; }
@keyframes v6march { to { stroke-dashoffset: -20; } }
.v6-tflag { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; width: fit-content; margin: 0 auto; text-align: center; }
.v6-tflag span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: #1d232e; box-shadow: 0 0 0 2px rgba(240, 211, 138, 0.4); }
.v6-tflag.end span { font: 800 22px var(--f-display); color: #c43d2a; background: #f4ead3; box-shadow: 0 0 0 3px rgba(196, 61, 42, 0.4), 0 10px 20px -6px rgba(0, 0, 0, 0.7); transform: rotate(-8deg); }
.v6-tflag b { font: 700 14px var(--f-display); }
.v6-tflag small { color: var(--dim); font-size: 12px; }
.v6-tsteps { list-style: none; margin: 10px 0; padding: 0; }
.v6-tstep { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-height: 96px; padding-left: calc(18% - 28px); }
.v6-tstep.r { flex-direction: row-reverse; padding-left: 0; padding-right: calc(18% - 28px); text-align: right; }
.v6-tnode { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #2a2418;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #efe2c4); box-shadow: 0 0 0 4px #1d232e, 0 0 0 6px rgba(216, 178, 90, 0.55), 0 12px 24px -8px rgba(0, 0, 0, 0.8);
  transform: scale(0.4); opacity: 0; transition: transform 0.6s var(--spring), opacity 0.4s; transition-delay: calc(0.35s + var(--i) * 0.12s); }
.in .v6-tnode { transform: rotate(var(--r, 0deg)); opacity: 1; }
.v6-tstep:hover .v6-tnode { transform: rotate(0) scale(1.1); transition-delay: 0s; }
.v6-tnode i { position: absolute; right: -5px; top: -5px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font: 800 11px var(--f-mono); font-style: normal; color: #1a1508; background: linear-gradient(135deg, #f5e2b0, #d8b25a); box-shadow: 0 0 0 2px #1d232e; }
.v6-tstep.sealed .v6-tnode { color: var(--dim); font: 800 24px var(--f-display); background: #1b212b; box-shadow: 0 0 0 4px #1d232e, 0 0 0 6px rgba(115, 112, 102, 0.6); }
.v6-tlabel { min-width: 0; max-width: 62%; display: flex; flex-direction: column; gap: 2px; }
.v6-tlabel b { font: 700 17px/1.2 var(--f-display); overflow-wrap: anywhere; }
.v6-tlabel small { font-size: 12.5px; color: var(--dim); line-height: 1.35; }
.v6-peek { margin-top: 18px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.v6-peek summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 14px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px; color: var(--muted); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.v6-peek summary::-webkit-details-marker { display: none; }
.v6-peek summary::after { content: '▾'; transition: transform 0.3s var(--spring); }
.v6-peek[open] summary::after { transform: rotate(180deg); }
.v6-peek .journey { margin-top: 24px; }

/* action card + hold */
.v6-holdhelp { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--dim); text-align: center; }
.v6-holdhelp b { color: var(--violet-2); font-weight: 600; }
.hold.v6-hold { gap: 10px; }
.hold.v6-hold:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 3px; }
.hold.armed { box-shadow: inset 0 0 0 2px var(--violet-2), 0 0 0 5px rgba(240, 211, 138, 0.25), 0 20px 50px -20px rgba(216, 178, 90, 0.9); animation: v6arm 0.9s ease-in-out infinite; }
@keyframes v6arm { 50% { box-shadow: inset 0 0 0 2px var(--violet-2), 0 0 0 10px rgba(240, 211, 138, 0.08), 0 20px 50px -20px rgba(216, 178, 90, 0.9); } }
.v6-medal { font-size: 48px; display: inline-block; animation: bob 3.5s ease-in-out infinite; }
.v6-replay small { font-weight: 500; opacity: 0.75; }
.v6-mapcard { padding: 10px; }
.v6-mapcard .mapbox { border-radius: 20px; box-shadow: none; }
.v6-dir { margin-top: 10px; }
.v6-qbar { display: none; }

@media (max-width: 760px) {
  body.v6-qpage .tabbar { display: none; }
  body.v6-qpage .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .v6-back { display: grid; place-items: center; position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top)); left: 12px; width: 44px; height: 44px; padding: 0 0 3px; border: 0; border-radius: 50%; font: 400 30px/1 var(--f-body); color: #fff;
    background: rgba(16, 19, 24, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.3s var(--spring); }
  .v6-back:active { transform: scale(0.88); }
  .v6-qhero .qtools { display: none; }
  .v6-qhero .copy { width: calc(100vw - 32px); bottom: 24px; }
  .v6-qhero h1 { font-size: clamp(34px, 10vw, 44px); margin: 12px 0 10px; }
  .v6-qhero .tagline { font-size: 16px; }
  .v6-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
  .v6-stats > div { padding: 9px 8px; border-radius: 13px; text-align: center; }
  .v6-stats > .gold { grid-column: span 2; }
  .v6-stats b { font-size: 14.5px; }
  .v6-stats small { font-size: 8.5px; letter-spacing: 0.1em; }
  .v6-stats .pips i { width: 5px; height: 11px; }
  .v6-detail { width: calc(100vw - 32px); padding: 28px 0 120px; }
  .v6-needlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v6-needlist li { padding: 10px 12px; }
  .v6-tstep { min-height: 88px; padding-left: calc(16% - 28px); gap: 12px; }
  .v6-tstep.r { padding-right: calc(16% - 28px); }
  .v6-tlabel { max-width: 68%; }
  .v6-tlabel b { font-size: 15.5px; }
  .v6-tnode { width: 50px; height: 50px; font-size: 21px; }
  .v6-qbar { display: flex; align-items: stretch; gap: 8px; position: fixed; z-index: 95; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 22px;
    background: rgba(21, 25, 32, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-2); animation: v6barIn 0.6s var(--spring) 0.2s both; }
  @keyframes v6barIn { from { transform: translateY(120%); } }
  .v6-qicon { flex: none; width: 54px; border: 0; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: var(--text); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.3s var(--spring); }
  .v6-qicon.save-btn.on { color: #ff9a86; }
  .v6-qgo { flex: 1; min-width: 0; display: flex; }
  .v6-qgo > * { flex: 1; min-width: 0; }
  .v6-go { min-height: 54px; padding: 0 14px; border-radius: 16px; font-size: 16px; }
  .v6-go small { font-size: 12px; }
  .hold.v6-go { padding: 0 14px; font-size: 16px; border-radius: 16px; }
  .hold.v6-go .sub { font-size: 13px; }
}

/* ---------------------------------------------------------------- AUTH */
.v6-authpage { padding-top: calc(var(--top) + 36px); }
.v6-auth { width: min(460px, calc(100vw - 24px)); padding: 26px 30px 30px; }
.v6-auth-tabs { --i: 0; position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 26px; border-radius: 16px; background: rgba(16, 19, 24, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
.v6-auth-tabs a { position: relative; z-index: 1; display: grid; place-items: center; min-height: 44px; padding: 0 8px; border-radius: 12px; text-align: center; font: 600 14px var(--f-body); color: var(--muted); transition: color 0.3s; }
.v6-auth-tabs a.on { color: #1a1508; }
.v6-auth-tabs a:not(.on):hover { color: var(--text); }
.v6-auth-blob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: linear-gradient(115deg, #f5e2b0, #d8b25a 60%, #b99040); box-shadow: 0 8px 20px -8px rgba(216, 178, 90, 0.9);
  transform: translateX(calc(var(--i) * 100%)); animation: v6tab 0.55s var(--spring); }
@keyframes v6tab { from { transform: translateX(calc((1 - var(--i)) * 100%)); } }
.v6-auth-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.v6-auth-badge { flex: none; width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(216, 178, 90, 0.35)); animation: v6wig 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes v6wig { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-9deg); } 90% { transform: rotate(7deg); } 95% { transform: rotate(-3deg); } }
.v6-auth-head h1 { font-size: clamp(30px, 7.5vw, 40px); margin: 0 0 6px; }
.v6-auth-head p { font-size: 14.5px; line-height: 1.45; }
.v6-authform { gap: 16px; }
.v6-authform .field { gap: 7px; }
.v6-authform .lbl { display: flex; justify-content: space-between; align-items: center; font: 600 12px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.v6-pwrow { position: relative; display: block; }
.v6-pwrow .input { padding-right: 56px; }
.v6-peekpw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 18px; color: var(--muted); }
.v6-peekpw:hover { background: rgba(255, 255, 255, 0.06); }
.v6-pwmeter { display: inline-flex; gap: 4px; }
.v6-pwmeter i { width: 18px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); transition: background 0.3s; }
.v6-pwmeter[data-s='1'] i:nth-child(1) { background: var(--coral); }
.v6-pwmeter[data-s='2'] i:nth-child(-n + 2) { background: var(--amber); }
.v6-pwmeter[data-s='3'] i { background: var(--good); }
.v6-ferr { font-size: 13px; color: #ff8e76; }
.v6-ferr:empty { display: none; }
.v6-bad .input { box-shadow: inset 0 0 0 1.5px var(--coral), 0 0 0 4px rgba(224, 103, 79, 0.14); }
.v6-ints summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.v6-ints summary::-webkit-details-marker { display: none; }
.v6-ints summary::after { content: '＋'; margin-left: auto; color: var(--violet-2); transition: transform 0.3s var(--spring); }
.v6-ints[open] summary::after { transform: rotate(45deg); }
.v6-ints .chips { padding: 4px 0 6px; }
.v6-linkswap { font-size: 14.5px; }
.v6-sent { margin-top: 4px; }
.v6-auth-alt { margin-top: 20px; font-size: 14.5px; }
.v6-auth-alt a { color: var(--teal); font-weight: 600; }
@media (max-width: 760px) {
  .v6-authpage { padding-top: 20px; }
  .v6-auth { padding: 18px 18px 24px; }
  .v6-auth-head { gap: 12px; margin-bottom: 20px; }
  .v6-auth-badge { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .v6-ink-line { animation: none; }
  .v6-ink-glow { stroke-dashoffset: 0; transition: none; }
  .v6-tnode { transform: none; opacity: 1; transition: none; }
  .v6-card, .v6-cluster, .v6-auth-blob, .v6-qbar { animation: none; }
}

.v6-review-flag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 9px 16px; border-radius: 99px; font-size: 14px; color: #cfe9ff; background: rgba(143, 176, 221, 0.18); box-shadow: inset 0 0 0 1px rgba(143, 176, 221, 0.45); backdrop-filter: blur(10px); }

/* ---------------------------------------------------------------- CREATE: a guided builder */
.v6-create { padding-top: calc(var(--top) + 40px); }
.v6-wiz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.v6-wiz-head h1 { font-size: clamp(34px, 5vw, 64px); margin-top: 12px; }
.v6-dsaved { font: 600 12px var(--f-mono); color: var(--teal); opacity: 0; white-space: nowrap; }
.v6-dsaved.v6-flash { animation: v6saved 2.6s var(--ease) forwards; }
@keyframes v6saved { 0% { opacity: 0; transform: translateY(6px); } 12% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0.45; } }
.v6-kitbanner { margin: 0 0 22px; padding: 12px 18px; }
.v6-draft { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; border-radius: 20px;
  background: linear-gradient(140deg, rgba(240, 211, 138, 0.2), rgba(26, 31, 40, 0.8)); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(240, 211, 138, 0.45); animation: popIn2 0.6s var(--spring); }
.v6-draft-ic { font-size: 30px; transform: rotate(-8deg); }
.v6-draft > div:nth-child(2) { flex: 1; min-width: 180px; }
.v6-draft b { display: block; font: 700 18px var(--f-display); }
.v6-draft small { color: var(--muted); font-size: 13.5px; }
.v6-draft-btns { display: flex; gap: 8px; }

/* progress: four stamps on a dotted trail */
.v6-prog { position: relative; margin-bottom: 30px; }
.v6-prog ol { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.v6-prog button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px; border: 0; background: transparent; color: var(--dim); text-align: center; }
.v6-prog-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #1b212b; box-shadow: inset 0 0 0 2px var(--line-2), 0 0 0 5px var(--ink); transition: transform 0.45s var(--spring), background 0.3s, box-shadow 0.3s; }
.v6-prog-dot em { font: 800 15px var(--f-display); font-style: normal; }
.v6-prog button:hover .v6-prog-dot { transform: translateY(-3px) rotate(-6deg); }
.v6-prog button.on { color: var(--text); }
.v6-prog button.on .v6-prog-dot { color: #1a1508; background: radial-gradient(circle at 35% 30%, #fff3cf, #d8b25a 60%, #a9853a); box-shadow: 0 0 0 5px var(--ink), 0 0 0 7px rgba(216, 178, 90, 0.45), 0 10px 26px -6px rgba(216, 178, 90, 0.9); transform: rotate(-8deg) scale(1.1); }
.v6-prog button.done { color: var(--muted); }
.v6-prog button.done .v6-prog-dot { color: #16190f; background: linear-gradient(135deg, var(--good), var(--teal)); box-shadow: 0 0 0 5px var(--ink); }
.v6-prog-t b { display: block; font-size: 15px; }
.v6-prog-t small { font-size: 12.5px; color: var(--dim); }
.v6-prog-line { position: absolute; z-index: 0; top: 20px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.v6-prog-line i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--grad); transition: width 0.7s var(--ease); }

.v6-guide { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding: 14px 18px; border-radius: 20px; background: rgba(240, 211, 138, 0.07); box-shadow: inset 0 0 0 1.5px rgba(240, 211, 138, 0.25); }
.v6-guide-ic { font-size: 32px; animation: bob 4s ease-in-out infinite; }
.v6-guide > div { flex: 1; min-width: 0; }
.v6-guide b { display: block; font: 700 19px/1.2 var(--f-display); }
.v6-guide small { color: var(--muted); font-size: 13.5px; }
.v6-guide-n { font-size: 12px; color: var(--dim); }

/* the sticky nav keeps Next under your thumb */
.v6-wnav { position: sticky; z-index: 20; bottom: 18px; align-items: center; margin-top: 34px; padding: 10px; border-radius: 22px; background: rgba(21, 25, 32, 0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--line-2); }
.v6-wnav #next, .v6-wnav #publish { flex: 1; max-width: 360px; margin-left: auto; min-height: 50px; }
.v6-wnav > span:first-child { display: none; }
.v6-prevbtn { display: none; }
@media (max-width: 1099px) {
  .v6-wiz #aside { display: none; }
  .v6-prevbtn { display: inline-flex; }
}
.v6-prevsheet { margin-top: 14px; pointer-events: none; }
.v6-ready { display: flex; flex-direction: column; gap: 10px; }
.v6-ready-h { display: flex; justify-content: space-between; align-items: baseline; }
.v6-ready-h b { font: 700 17px var(--f-display); }
.v6-ready-h .mono { font-size: 12px; color: var(--teal); }
.v6-checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.v6-checks li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--dim); }
.v6-checks li > span:first-child { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.v6-checks li.ok { color: var(--text); }
.v6-checks li.ok > span:first-child { color: #16190f; background: var(--good); box-shadow: none; animation: v6in 0.4s var(--spring); }

/* collapsible extras */
.v6-adv { margin-top: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); }
.v6-adv > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 46px; padding: 8px 44px 8px 14px; position: relative; cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.v6-adv > summary::-webkit-details-marker { display: none; }
.v6-adv > summary::after { content: '\25BE'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--violet-2); transition: transform 0.3s var(--spring); }
.v6-adv[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.v6-adv > summary .dim { font-weight: 500; font-size: 12.5px; }
.v6-adv > div { padding: 0 14px 14px; }
.v6-adv .v5-split { margin-top: 4px; }
.v6-locfield { margin-top: 16px; }
.v6-pickbtn.pinned:not(.primary) { color: #d9e6b8; box-shadow: inset 0 0 0 1px rgba(163, 184, 108, 0.5); }

/* inline validation */
.v6-invalid { box-shadow: 0 0 0 2px rgba(224, 103, 79, 0.75), 0 0 0 6px rgba(224, 103, 79, 0.14) !important; border-radius: 14px; }
.field.v6-invalid, .switch.v6-invalid { padding: 8px; margin: -8px; border-radius: 16px; }
.v6-errmsg { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: #ff9a86; animation: v6drop 0.3s var(--ease); }

/* pin picker: a full-screen sheet on phones, a sticky card on desktop */
.v6-pin-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.v6-pin-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.v6-pin-title small { font: 600 11px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.v6-pin-title b { font: 700 18px var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v6-pin-search { margin-bottom: 12px; }
.v6-mapside #pinDone { display: none; }
.v6-mapside .v6-pin-map { height: min(60vh, 540px); }
.v6-pin-hint { font-size: 13.5px; margin: 12px 4px 0; }
.v6-pinsheet { position: fixed; inset: 0; z-index: 160; display: flex; flex-direction: column; background: #0e1116; transform: translateY(100%); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s; }
.v6-pinsheet.open { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
.v6-pinsheet .v6-pin-top { margin: 0; padding: calc(12px + env(safe-area-inset-top)) 14px 10px; }
.v6-pinsheet .v6-pin-top .btn { min-height: 44px; padding: 0 18px; }
.v6-pinsheet .v6-pin-search { margin: 0; padding: 0 14px 10px; }
.v6-pinsheet .v6-pin-map { flex: 1; min-height: 0; border-radius: 0; box-shadow: none; }
.v6-pinsheet .v6-pin-hint { margin: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); }
body.v6-noscroll { overflow: hidden; }

@media (max-width: 760px) {
  .v6-create { padding-top: 24px; }
  .v6-wiz-head { margin-bottom: 16px; }
  .v6-wiz-head h1 { font-size: clamp(30px, 9vw, 40px); margin-top: 8px; }
  .v6-kitbanner { font-size: 14px; }
  .v6-prog { margin-bottom: 20px; }
  .v6-prog-dot { width: 36px; height: 36px; }
  .v6-prog-line { top: 17px; }
  .v6-prog-t b { font-size: 12.5px; }
  .v6-prog-t small { display: none; }
  .v6-guide { padding: 12px 14px; gap: 12px; margin-bottom: 20px; }
  .v6-guide-ic { font-size: 26px; }
  .v6-guide b { font-size: 16.5px; }
  .v6-guide small { font-size: 12.5px; }
  .v6-wnav { bottom: calc(86px + env(safe-area-inset-bottom)); margin-left: -6px; margin-right: -6px; padding: 8px; gap: 8px; }
  .v6-wnav .t { display: none; }
  .v6-wnav .btn { min-height: 50px; padding: 0 16px; }
  .v6-wnav #next, .v6-wnav #publish { padding: 0 14px; font-size: 15px; }
  .v6-create .fstep { padding: 18px 16px; }
  .v6-create .fstep-head { flex-wrap: wrap; }
  .v6-create .fstep-head .input { min-width: 0; flex-basis: calc(100% - 52px); }
  .v6-create .fstep-head .icon-btn { width: 40px; height: 40px; }
  .v6-draft-btns { width: 100%; }
  .v6-draft-btns .btn { flex: 1; }
}
.v6-locfield { gap: 12px; }
.v6-locfield > .switch, .v6-locfield > input[type='range'] { align-self: stretch; width: 100%; }
.v6-locfield .switch > span { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .v6-create .fstep-head { flex-wrap: wrap; row-gap: 10px; }
  .v6-create .fstep-head .input { order: 5; flex: 1 1 100% !important; }
  .v6-create .fstep-head .fnum + .input + .icon-btn { margin-left: auto; }
}
@media (max-width: 760px) { .v6-guide-n { display: none; } }
.v6-bottom .v6-nearcta { position: static; transform: none; }
@media (max-width: 760px) { .v6-stats { display: flex; flex-wrap: wrap; } .v6-stats > div { flex: 1 1 calc(25% - 6px); min-width: 0; } .v6-stats > .gold { flex-basis: calc(50% - 6px); } }
.v6-bad .help { display: none; }
.hold.armed .sub { display: none; }
.v6-go .v6-hold-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* v5-pages.css styles .switch as a settings toggle button; form switches are <label class="switch"> and keep their row layout */
label.switch { position: static; width: auto; height: auto; flex: initial; border-radius: 0; background: none; box-shadow: none; transition: none; }

/* ---------------------------------------------------------------- Spanish: discover chip, quest-page badge + note */
.v6d .occbar .v6-eschip { box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.45); }
.v6d .occbar .v6-eschip-hot { font-weight: 700; color: #1a1508; background: linear-gradient(115deg, #f5e2b0, #d8b25a 70%); box-shadow: 0 6px 16px -8px rgba(216, 178, 90, 0.9); }
.v6d .occbar .v6-eschip-hot.on { box-shadow: 0 0 0 2px #f5e2b0, 0 6px 16px -8px rgba(216, 178, 90, 0.9); }
.v6-esbadge { color: #1a1508; background: linear-gradient(115deg, #f5e2b0, #d8b25a); box-shadow: none; font-weight: 600; }
.v6-esnote { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 14px; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; color: var(--muted);
  background: rgba(16, 19, 24, 0.45); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); }
.v6-esnote::before { content: 'ℹ︎'; color: var(--violet-2); }

/* ---------------------------------------------------------------- consent checkbox (sign-up) */
.v6-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  font-size: 14px; line-height: 1.45; color: var(--muted); background: rgba(16, 19, 24, 0.35); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s; }
.v6-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #d8b25a; cursor: pointer; }
.v6-check a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.v6-check:has(input:checked) { box-shadow: inset 0 0 0 1.5px rgba(159, 194, 94, 0.55); color: var(--text); }
.v6-check:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.v6-bad .v6-check, .v6-check.v6-bad { box-shadow: inset 0 0 0 1.5px var(--coral), 0 0 0 4px rgba(224, 103, 79, 0.14); }
.v6-consent { gap: 6px; }
/* longer Spanish labels on the phone action bar wrap to two lines instead of being cut off */
:lang(es) .v6-go .v6-hold-l { white-space: normal; overflow: visible; line-height: 1.12; font-size: 14.5px; text-align: left; }
:lang(es) .v6-go { line-height: 1.15; }
@media (max-width: 480px) { :lang(es) .v6-sortseg button { padding: 9px 9px; font-size: 13.5px; } }

/* ---------- tidier map (phones): tools sit under the top bar and follow it down past the clock ---------- */
.qcard .kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 2px 0 6px; font: 600 12.5px var(--f-body); color: #f0d38a; }
.qcard .kinds i { font-style: normal; opacity: 0.5; }
.qcard .kinds span { white-space: nowrap; }
.v6d .carousel .qcard .tagline { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.v6-status[hidden] { display: none !important; }
/* clusters: one small coin, no matter the count */
.v6-cluster { --s: 1 !important; width: 30px; height: 30px; font: 800 12px var(--f-mono);
  box-shadow: 0 0 0 2px rgba(16, 19, 24, 0.85), 0 0 0 4px rgba(216, 178, 90, 0.35), 0 5px 12px rgba(0, 0, 0, 0.55), 0 0 12px rgba(216, 178, 90, 0.35); }
.v6-cluster::before { inset: 3px; border-width: 1px; }
@media (max-width: 760px) {
  .v6d .v6-tools { top: calc(var(--v6-top) + 122px); }
  .v6d .maplibregl-ctrl-top-right { top: calc(var(--v6-top) + 226px); }
  .v6d.has-pp .v6-tools { top: calc(var(--v6-top) + 176px); }
  .v6d.has-pp .maplibregl-ctrl-top-right { top: calc(var(--v6-top) + 280px); }
  .v6d .v6-list { padding-top: calc(var(--v6-top) + 124px); }
  .v6d.has-pp .v6-list { padding-top: calc(var(--v6-top) + 178px); }
  /* pinch to zoom on a phone: keep just the compass */
  .v6d .maplibregl-ctrl-zoom-in, .v6d .maplibregl-ctrl-zoom-out { display: none !important; }
}
