/* ============ Shenanigo v6 shell: phone header, tab bar, sheets, transitions, skeletons, onboarding, 404 ============ */

/* ---------- springy presses ---------- */
.btn:active { transform: scale(0.95); transition-duration: 0.08s; }
.chip:active, .icon-btn:active, .mm-tile:active, .mn-row:active { transform: scale(0.94); }
.icon-btn, .mm-tile, .mn-row { transition: transform 0.35s var(--spring), background 0.2s, color 0.2s; }
@media (hover: none) { .qcard:active, .runrow:active, .dash-card:active { transform: scale(0.98) !important; transition: transform 0.15s; } }
.bell.ring { animation: bellRing 0.7s var(--ease); }
@keyframes bellRing { 15% { transform: rotate(18deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.me-chip .streak.lit { text-shadow: 0 0 12px rgba(255, 150, 60, 0.8); }
.more-btn { display: none; font-size: 22px; letter-spacing: 1px; }
code { font: 600 0.9em var(--f-mono); padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.07); }

/* ---------- page transitions (View Transitions API; a CSS fallback below) ---------- */
#nav { view-transition-name: topnav; }
#tabbar { view-transition-name: tabbar; }
::view-transition-old(topnav), ::view-transition-new(topnav), ::view-transition-old(tabbar), ::view-transition-new(tabbar) { animation-duration: 0.18s; }
html[data-vt='fwd']::view-transition-old(root) { animation: vtOutL 0.3s var(--ease) both; }
html[data-vt='fwd']::view-transition-new(root) { animation: vtInR 0.42s var(--ease) both; }
html[data-vt='back']::view-transition-old(root) { animation: vtOutR 0.3s var(--ease) both; }
html[data-vt='back']::view-transition-new(root) { animation: vtInL 0.42s var(--ease) both; }
html[data-vt='fade']::view-transition-old(root) { animation: none; }
html[data-vt='fade']::view-transition-new(root) { animation: vtFade 0.35s var(--ease) both; }
@keyframes vtInR { from { transform: translateX(22%); opacity: 0; } }
@keyframes vtInL { from { transform: translateX(-22%); opacity: 0; } }
@keyframes vtOutL { to { transform: translateX(-10%); opacity: 0; } }
@keyframes vtOutR { to { transform: translateX(10%); opacity: 0; } }
@keyframes vtFade { from { opacity: 0; transform: translateY(10px); } }
#app.enter-fwd { animation: vtInR 0.4s var(--ease); }
#app.enter-back { animation: vtInL 0.4s var(--ease); }
#app.enter-portal, #app.enter-fade { animation: vtFade 0.4s var(--ease); }

/* ---------- skeletons ---------- */
.sk { display: block; border-radius: 12px; 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: skel 1.4s infinite linear; }
.sk-page { animation: vtFade 0.3s 0.12s both; }
.sk-line { margin: 10px 0; max-width: 100%; }
.sk-title { margin-bottom: 30px; }
.sk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.sk-card { border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); }
.sk-media { aspect-ratio: 16 / 10; border-radius: 0; }
.sk-body { padding: 16px 18px; min-width: 0; }
.sk-rows { display: flex; flex-direction: column; gap: 12px; }
.sk-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); }
.sk-thumb { width: 64px; height: 64px; border-radius: 16px; }
.sk-strip { display: flex; gap: 10px; margin: 18px 0 24px; }
.sk-tile { flex: 1; height: 44px; border-radius: 14px; }
.sk-block { border-radius: 26px; margin-bottom: 18px; }
.sk-map { height: 100vh; display: grid; place-items: center; }
.sk-detail > .page { padding-top: 28px; }

/* ---------- progress ring ---------- */
.pring { position: relative; display: inline-grid; place-items: center; width: var(--sz); height: var(--sz); flex: none; }
.pring svg { position: absolute; inset: 0; overflow: visible; }
.pr-arc { animation: ringFill 1.3s var(--ease) both; filter: drop-shadow(0 0 6px rgba(240, 211, 138, 0.45)); }
@keyframes ringFill { from { stroke-dashoffset: var(--c); } }
.pr-in { position: relative; display: grid; place-items: center; text-align: center; font: 800 14px/1 var(--f-mono); }

/* ---------- sheets: bottom sheets on phones ---------- */
.sheet .grab { display: none; }
@media (max-width: 760px) {
  .sheet-ov { padding: 12px; }
  .sheet-ov.bottom { place-items: end center; padding: 0; }
  .sheet-ov.bottom .sheet { width: 100%; max-width: none; max-height: 88vh; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 30px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheetUp 0.5s var(--spring); }
  .sheet-ov.bottom .grab { display: block; position: absolute; top: 9px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 9px; background: rgba(255, 255, 255, 0.18); }
  .sheet-ov.bottom.out .sheet { animation: sheetDown 0.25s var(--ease) forwards; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }

/* the ＋ menu */
.make-menu h2 { font-size: clamp(28px, 6vw, 36px); margin: 10px 0 18px; }
.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mm-tile { --h: 42; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 142px; padding: 16px; border: 0; border-radius: 22px; text-align: left; color: var(--text); font: inherit; overflow: hidden;
  background: linear-gradient(155deg, hsla(var(--h), 55%, 55%, 0.3), rgba(22, 26, 33, 0.92) 70%); box-shadow: inset 0 0 0 1px hsla(var(--h), 60%, 75%, 0.3), 0 16px 34px -20px hsla(var(--h), 60%, 50%, 0.9); }
.mm-tile:hover { transform: translateY(-3px) rotate(-1deg); }
.mm-ic { width: 50px; height: 50px; margin-bottom: auto; display: grid; place-items: center; font-size: 26px; border-radius: 50%; background: #fbf1d6; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7), inset 0 0 0 3px hsla(var(--h), 55%, 50%, 0.35); transform: rotate(-8deg); transition: transform 0.4s var(--spring); }
.mm-tile:hover .mm-ic, .mm-tile:active .mm-ic { transform: rotate(6deg) scale(1.1); }
.mm-tile b { font: 700 18px/1.15 var(--f-display); margin-top: 10px; }
.mm-tile small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* the ⋯ menu */
.more-menu { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.mn-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 0; border-radius: 16px; background: transparent; color: var(--text); font: inherit; text-align: left; width: 100%; }
.mn-row:hover { background: rgba(255, 255, 255, 0.05); }
.mn-ic { width: 42px; height: 42px; display: grid; place-items: center; font-size: 20px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.mn-row b { display: block; font-weight: 600; font-size: 15.5px; }
.mn-row small { display: block; color: var(--dim); font-size: 12.5px; }
.mn-go { color: var(--dim); font-size: 22px; }
.mn-switch { cursor: default; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }

/* ---------- phone header + tab bar ---------- */
@media (max-width: 760px) {
  .topbar { display: flex; top: calc(6px + env(safe-area-inset-top)); width: calc(100vw - 16px); height: 54px; padding: 0 4px 0 8px; gap: 4px; border-radius: 18px; background: rgba(21, 25, 32, 0.78); }
  .topbar.scrolled { background: rgba(21, 25, 32, 0.92); }
  .topbar .navlinks, .topbar .desk-only { display: none; }
  .topbar .brand { margin-right: auto; gap: 6px; min-width: 0; }
  .topbar .brand .brand-badge { height: 38px; }
  .topbar .brand .wm { height: 24px; }
  .topbar .icon-btn { width: 40px; height: 40px; font-size: 18px; }
  .topbar .more-btn { display: grid; }
  .topbar .me-chip { gap: 6px; padding: 7px 10px; border-radius: 12px; background: rgba(216, 178, 90, 0.1); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.25); }
  .topbar .me-chip .avatar { display: none; }
  .topbar .me-chip .pts { font-size: 12.5px; }
  .topbar .me-chip .streak { margin-left: 0; font-size: 12.5px; }
  .topbar .signin { padding: 8px 12px; }
  .bell .badge-dot { top: 3px; right: 3px; }
  body[data-route='discover'] .topbar, body[data-route='quest'] .topbar, body[data-route='run'] .topbar { display: none; }
  body:not([data-route='discover']):not([data-route='quest']):not([data-route='run']) .page { padding-top: calc(80px + env(safe-area-inset-top)); }

  /* float above the iPhone home bar, instead of padding the bar itself (which left an empty strip under the icons) */
  .tabbar { align-items: flex-end; bottom: max(10px, calc(env(safe-area-inset-bottom) - 4px)); padding: 6px; }
  .tabbar a, .tabbar button.plus { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; border-radius: 14px; background: transparent; color: var(--dim); font: 600 10.5px var(--f-body); position: relative; transition: color 0.2s, background 0.3s var(--ease); }
  .tabbar a .ic, .tabbar button.plus .ic { font-size: 20px; line-height: 24px; height: 24px; display: grid; place-items: center; transition: transform 0.35s var(--spring); }
  .tabbar a:active .ic, .tabbar button.plus:active .ic { transform: scale(0.82); }
  .tabbar a.on { color: var(--text); background: rgba(216, 178, 90, 0.2); }
  .tabbar a.on .ic { transform: translateY(-2px) scale(1.12); }
  .tabbar .tab-av { width: 24px; height: 24px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2); }
  .tabbar a.on .tab-av { box-shadow: 0 0 0 2px var(--violet-2, #f0d38a); }
  .tabbar button.plus .ic { width: 50px; height: 50px; margin-top: -24px; border-radius: 17px; font-size: 28px; font-weight: 700; color: #1a1508; line-height: 1;
    background: linear-gradient(135deg, #f5e2b0, #d8b25a); box-shadow: 0 10px 26px -8px rgba(216, 178, 90, 0.9), 0 0 0 4px rgba(21, 25, 32, 0.95); }
  .tabbar button.plus:active .ic { transform: scale(0.86) rotate(90deg); }
  .tabbar button.plus.on .ic { transform: rotate(45deg); }
  .tabbar button.plus .tl { color: var(--muted); }
}

/* ---------- onboarding ---------- */
body.onb-open { overflow: hidden; }
.onb { position: fixed; inset: 0; z-index: 146; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: radial-gradient(120% 70% at 50% -10%, #23304a 0%, rgba(16, 19, 24, 0.97) 60%), rgba(10, 12, 15, 0.97); animation: fadeIn 0.35s; }
.onb.out { animation: fadeOut 0.3s forwards; }
.onb-card { width: min(600px, 100%); display: flex; flex-direction: column; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(240, 211, 138, 0.18); overflow: hidden; }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0 24px; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { width: 22px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, 0.12); transition: width 0.5s var(--spring), background 0.3s; }
.onb-dots i.done { background: rgba(163, 184, 108, 0.8); }
.onb-dots i.on { width: 44px; background: linear-gradient(90deg, #f0d38a, #d8b25a); }
.onb-pane { position: relative; padding: 16px 28px 8px; animation: paneIn 0.5s var(--ease); }
.onb-card.back .onb-pane { animation-name: paneBack; }
.onb-pane h2 { font-size: clamp(30px, 7vw, 42px); margin: 12px 0 8px; outline: none; }
.onb-pane > .muted { max-width: 460px; }
.onb-sticker { position: absolute; top: 8px; right: 26px; width: 58px; height: 58px; display: grid; place-items: center; font-size: 26px; color: #8a3d2c; border-radius: 50%; background: #fbf1d6; transform: rotate(12deg);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.8), inset 0 0 0 3px rgba(138, 61, 44, 0.25), inset 0 0 0 6px #fbf1d6, inset 0 0 0 7px rgba(138, 61, 44, 0.2); animation: popIn2 0.6s var(--spring); }
.onb-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 20px 20px; }
.onb-foot .btn.primary { min-width: 0; }
.vibe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.vibe { --h: 42; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border: 0; border-radius: 18px; color: var(--text); font: inherit;
  background: linear-gradient(160deg, hsla(var(--h), 45%, 50%, 0.16), rgba(16, 19, 24, 0.5)); box-shadow: inset 0 0 0 1px hsla(var(--h), 50%, 70%, 0.18); transition: transform 0.4s var(--spring), background 0.3s, box-shadow 0.3s, color 0.3s; }
.vibe .ve { font-size: 28px; line-height: 1.2; transition: transform 0.4s var(--spring); }
.vibe b { font-size: 13.5px; font-weight: 700; text-transform: capitalize; }
.vibe small { font-size: 11px; color: var(--dim); }
.vibe .vcheck { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font: 800 13px var(--f-body); color: #fbf1d6; background: #8a3d2c; transform: scale(0); transition: transform 0.4s var(--spring); }
.vibe.on { color: #2b261d; background: #f3ecdc; transform: rotate(var(--r)) scale(1.03); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.9), inset 0 0 0 2px hsla(var(--h), 55%, 45%, 0.55); }
.vibe.on small { color: #7a6a4a; }
.vibe.on .ve { transform: scale(1.15) rotate(-6deg); }
.vibe.on .vcheck { transform: scale(1); }
.find-town { margin: 20px 0 14px; }
.town-chips { max-height: 190px; overflow-y: auto; padding: 2px; }
.onb-bell { font-size: 64px; line-height: 1; display: inline-block; transform-origin: 50% 10%; animation: bellSwing 2.4s ease-in-out infinite; margin-bottom: 8px; }
@keyframes bellSwing { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-4deg); } }
.onb-list { list-style: none; padding: 0; margin: 20px 0 6px; display: flex; flex-direction: column; gap: 8px; }
.onb-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.onb-list li span { font-size: 20px; }
.onb-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.onb-pane[data-k='go'] { text-align: center; padding-top: 30px; }
.onb-pane[data-k='go'] .onb-summary { justify-content: center; }
.onb-pane[data-k='go'] > .muted { margin: 0 auto; }
@media (max-width: 760px) {
  .onb { padding: 0; place-items: stretch; }
  .onb-card { width: 100%; min-height: 100%; border-radius: 0; background: transparent; box-shadow: none; }
  .onb-top { padding: calc(12px + env(safe-area-inset-top)) 12px 0 20px; }
  .onb-pane { flex: 1; padding: 10px 20px 8px; }
  .onb-sticker { right: 16px; width: 50px; height: 50px; font-size: 22px; }
  .onb-pane h2 { padding-right: 40px; }
  .onb-foot { position: sticky; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(16, 19, 24, 0.98) 70%, transparent); }
  .onb-foot .btn.primary { flex: 1; }
  .vibe-grid { gap: 8px; }
  .vibe .ve { font-size: 26px; }
}

/* ---------- 404 ---------- */
.lost { min-height: 80vh; display: grid; place-items: center; }
.lost-card { padding: 44px 36px; text-align: center; background: linear-gradient(170deg, rgba(216, 178, 90, 0.1), var(--surface) 50%); }
.lost-card h1 { font-size: clamp(40px, 9vw, 72px); margin: 14px 0; }
.lost-card .lead { margin: 0 auto; }
.lost-card code { word-break: break-all; }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.lost-compass { --turn: 0deg; position: relative; width: 130px; height: 130px; margin: 0 auto 18px; border: 0; border-radius: 50%; display: block;
  background: radial-gradient(circle at 40% 35%, #fbf1d6, #e8dcc0 60%, #cdbb91); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9), inset 0 0 0 6px #b99a5a, inset 0 0 0 9px #fbf1d6, inset 0 0 0 10px rgba(59, 51, 38, 0.3); }
.lost-compass .rose { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font: 800 14px var(--f-display); color: #8a3d2c; }
.lost-compass .needle { position: absolute; left: 50%; top: 50%; width: 14px; height: 84px; margin: -42px 0 0 -7px; transform: rotate(var(--turn)); transition: transform 1.4s var(--spring); animation: needleWobble 3s ease-in-out infinite;
  background: linear-gradient(180deg, #c9442e 0 50%, #3b3326 50% 100%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.lost-compass::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #f5e2b0; box-shadow: 0 0 0 2px #3b3326; }
@keyframes needleWobble { 50% { rotate: 25deg; } }

/* ---------- v6 empty states ---------- */
.v6-empty { background: linear-gradient(170deg, rgba(216, 178, 90, 0.08), var(--surface) 55%); }
.v6-empty p { max-width: 440px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .lost-compass .needle, .onb-bell { animation: none; }
}

/* ============ HOME · signed in: the Today dashboard ============ */
.page.today { --page: 1180px; }
.greet { --sky-bg: #1a2338; position: relative; overflow: hidden; display: grid; min-height: 230px; padding: 30px 32px; border-radius: 30px; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-bg), #141a24 88%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.greet.sky-night { --sky-bg: #19223a; }
.greet.sky-dawn { --sky-bg: #3a2c3f; background: linear-gradient(180deg, #3a2c3f, #5a3c3a 60%, #1a1a22); }
.greet.sky-day { --sky-bg: #24364f; background: linear-gradient(180deg, #2a4262, #2c4a55 60%, #172028); }
.greet.sky-dusk { --sky-bg: #34253a; background: linear-gradient(180deg, #2c2340, #6a3a3a 70%, #221a20); }
.greet-sky { position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: min(62%, 560px); opacity: 0.95; -webkit-mask: linear-gradient(90deg, transparent, #000 35%); mask: linear-gradient(90deg, transparent, #000 35%); }
.greet-sky svg { width: 100%; height: 100%; display: block; }
.greet-sky .twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.25; } }
.greet-sky .sun { transform-origin: 236px 44px; animation: sunSpin 40s linear infinite; }
@keyframes sunSpin { to { transform: rotate(360deg); } }
.greet-sky .moon { animation: bob 6s ease-in-out infinite; }
.greet-copy { position: relative; align-self: end; max-width: 620px; }
.greet h1 { font-size: clamp(38px, 5vw, 64px); margin: 12px 0 6px; }
.greet .muted { color: rgba(243, 236, 220, 0.78); }
.greet-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gs { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 16px; background: rgba(10, 12, 16, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: transform 0.35s var(--spring); }
.gs:hover { transform: translateY(-2px); }
.gs b { font: 800 18px var(--f-display); }
.gs small { color: var(--muted); font-size: 12px; }
.gs.flame .fl { font-size: 20px; display: inline-block; filter: grayscale(0.7) brightness(0.8); }
.gs.flame.lit { background: rgba(233, 169, 79, 0.2); box-shadow: inset 0 0 0 1px rgba(233, 169, 79, 0.55), 0 0 26px -8px rgba(255, 150, 60, 0.9); }
.gs.flame.lit .fl { filter: none; animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.gs.flame.warn { box-shadow: inset 0 0 0 1px rgba(233, 169, 79, 0.45); }
.gs.flame.warn .fl { filter: none; opacity: 0.8; }
@keyframes flicker { 25% { transform: scale(1.08, 0.94) rotate(-3deg); } 50% { transform: scale(0.95, 1.07) rotate(2deg); } 75% { transform: scale(1.04, 0.97) rotate(-1deg); } }
.gs.lvl { flex: 1 1 200px; max-width: 320px; }
.gs.lvl > div { flex: 1; min-width: 0; }
.gs.lvl b { font-size: 15px; }
.gs.lvl .bar-line { height: 6px; margin: 5px 0 3px; }
.gs .lv { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 800 15px var(--f-display); color: #1a1508; background: radial-gradient(circle at 35% 30%, #fff3cf, #d8b25a 60%, #8a6a2c); }

.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; margin-top: 20px; }
.dash > * { grid-column: span 12; min-width: 0; }
.dash-card { position: relative; border-radius: 26px; padding: 22px; background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.dash-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dash-h h3 { font-size: 24px; margin-top: 8px; }
.sm { font-size: 12px; }
.link { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .dash > .cont, .dash > .qotd { grid-column: span 7; }
  .dash > .rings, .dash > .evs, .dash > .rival { grid-column: span 5; }
  .dash > .lately { grid-column: span 7; }
}

/* continue: a paper card taped into the journal */
.cont { --h: 42; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0; padding: 0; overflow: hidden; cursor: pointer; color: #2b261d;
  background: #f3ecdc; background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(80, 110, 140, 0.07) 27px 28px), radial-gradient(120% 90% at 50% 0%, #f8f2e4, #ebe0c8);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 0 40px rgba(150, 120, 70, 0.16); transition: transform 0.45s var(--spring); }
.cont:hover { transform: translateY(-3px) rotate(-0.3deg); }
.cont-art { position: relative; min-height: 220px; margin: 14px 0 14px 14px; border-radius: 16px; overflow: hidden; background: #191f2a; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.7); }
.cont-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cont-tape { position: absolute; top: -6px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(240, 211, 138, 0.65); transform: rotate(-4deg); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.cont-body { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 22px; min-width: 0; }
.cont .eyebrow { color: #8a3d2c; }
.cont h2 { font-size: clamp(26px, 3vw, 36px); color: #1f1a12; }
.cont-meta { font-size: 14px; color: #6b5f48; }
.cont-row { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }
.cont .pring .pr-in { color: #2b261d; font-size: 13px; }
.cont .pring circle:first-of-type { stroke: rgba(59, 51, 38, 0.15); }
.cont .btn.primary { color: #f5e2b0; background: linear-gradient(115deg, #2b3850, #1f2632); box-shadow: 0 14px 30px -14px rgba(31, 38, 50, 0.9); flex: 1; min-width: 150px; }
.cont .btn.ghost { color: #6b5f48; }
.cont-more { font-size: 13px; color: #6b5f48; margin-top: 10px; }
.cont-more a { color: #8a3d2c; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cont.first { grid-template-columns: 1fr; cursor: default; }
.first-stars { position: absolute; right: 22px; top: 18px; font-size: 32px; letter-spacing: 4px; animation: wstar 2.8s ease-in-out infinite; }

/* weekly rings */
.rings { background: linear-gradient(160deg, rgba(216, 178, 90, 0.14), var(--surface) 55%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(240, 211, 138, 0.22); }
.ring-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ring-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px 6px; border-radius: 18px; transition: background 0.3s; }
.ring-cell b { font-size: 12.5px; font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.ring-cell .ri { font-size: 26px; line-height: 1; }
.ring-cell.ready { background: rgba(216, 178, 90, 0.12); }
.ring-cell.ready .pring { animation: ringPulse 1.8s ease-in-out infinite; border-radius: 50%; }
@keyframes ringPulse { 50% { box-shadow: 0 0 0 8px rgba(240, 211, 138, 0.12), 0 0 30px rgba(240, 211, 138, 0.45); } }
.ring-cell.claimed .ri { filter: saturate(0.6); }
.ring-stamp { padding: 3px 10px; border-radius: 8px; font: 800 12px var(--f-mono); color: var(--good); border: 2px solid currentColor; transform: rotate(-6deg); }
.ring-btn { padding: 7px 12px; font-size: 13px; }
.rings > p { margin-top: 12px; text-align: center; }

/* setup nudge */
.setup { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: rgba(163, 184, 108, 0.08); box-shadow: inset 0 0 0 1.5px rgba(163, 184, 108, 0.35); border: 0; }
.setup h3 { margin-top: 8px; font-size: 22px; }
.setup ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.setup li span { margin-right: 6px; }

/* quest of the day inside the dashboard */
.dash .qotd { margin: 0; }
.dash .qotd.hero .qotd-art { aspect-ratio: 16 / 8; }

/* near you rail */
.dash-card.near { background: linear-gradient(170deg, rgba(143, 176, 221, 0.1), var(--surface) 50%); }
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -22px; padding: 4px 22px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.near-card { --h: 42; position: relative; flex: 0 0 220px; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--solid);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.9), inset 0 0 0 1px hsla(var(--h), 50%, 70%, 0.2); transition: transform 0.4s var(--spring); animation: railIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.05s); }
@keyframes railIn { from { opacity: 0; transform: translateX(30px); } }
.near-card:hover { transform: translateY(-4px) rotate(-1deg); }
.nc-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #191f2a; }
.nc-art img { width: 100%; height: 100%; object-fit: cover; }
.nc-done { position: absolute; left: 10px; bottom: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fbf1d6; background: #8a3d2c; transform: rotate(-12deg); box-shadow: 0 0 0 3px rgba(251, 241, 214, 0.8); }
.nc-body { padding: 12px 14px 14px; border-top: 3px solid hsl(var(--h), 55%, 60%); }
.nc-body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 16px/1.2 var(--f-display); }
.nc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.nc-pts { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 99px; font: 700 11.5px var(--f-mono); color: #251500; background: #f5d27a; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.8); }
.near-card.more { align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.near-card.more span { font-size: 40px; }
.near-card.more b { font: 700 16px var(--f-display); }

/* events: paper tickets */
.tickets { display: flex; flex-direction: column; gap: 12px; }
.ticket { --h: 42; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: 18px; overflow: hidden; color: #2b261d; background: linear-gradient(150deg, #fbf1d6, #f0d38a 120%); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.9); }
.ticket.live { background: linear-gradient(150deg, #ffd9c9, #f0a88a 120%); }
.tk-main { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 12px 14px 14px; min-width: 0; }
.tk-when { display: grid; place-items: center; padding: 6px 0; border-radius: 12px; background: #1f2632; color: #f5e2b0; line-height: 1; }
.tk-when b { font: 700 10px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.tk-when span { font: 800 22px var(--f-display); margin-top: 3px; }
.tk-info { min-width: 0; }
.tk-info b { display: block; font: 700 16px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-info small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #6b5f48; margin-top: 3px; }
.tk-stub { position: relative; width: 136px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 10px; border-left: 2px dashed rgba(59, 51, 38, 0.3); }
.tk-stub::before, .tk-stub::after { content: ''; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: #171c24; }
.tk-stub::before { top: -9px; } .tk-stub::after { bottom: -9px; }
.ticket .countdown.sm { color: #1f2632; font-size: 12.5px; }
.ticket .btn { width: 100%; padding: 7px 8px; font-size: 12.5px; border-radius: 10px; }
.ticket .btn.remind { color: #2b261d; background: rgba(31, 38, 50, 0.1); box-shadow: inset 0 0 0 1px rgba(31, 38, 50, 0.25); }
.btn.remind.on { color: #fbf1d6 !important; background: #3d6b45 !important; box-shadow: none !important; }

/* town rivalry: a pennant race on green felt */
.rival { background: radial-gradient(120% 140% at 0% 0%, #2f3f26, #1c2518 60%, #161c14); box-shadow: var(--shadow), inset 0 0 0 1px rgba(163, 184, 108, 0.3); }
.rival .eyebrow { color: #c8d97a; }
.rv-row.mine { margin: 0 -8px; padding: 6px 8px; border-radius: 12px; background: rgba(240, 211, 138, 0.12); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.35); }
.you-tag { display: inline-block; padding: 1px 7px; margin-left: 4px; border-radius: 6px; font: 700 10px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #1a1508; background: var(--violet-2); vertical-align: middle; }
.tb-row.mine { background: rgba(240, 211, 138, 0.08); border-radius: 12px; }

/* lately */
.feed { display: flex; flex-direction: column; gap: 4px; }
.feed-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 14px; transition: background 0.2s; }
.feed-row:hover { background: rgba(255, 255, 255, 0.05); }
.feed-row b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.feed-row small { font: 11px var(--f-mono); }
.feed-row.unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.feed-empty { display: flex; gap: 14px; align-items: center; }
.feed-empty span { font-size: 36px; animation: bob 4s ease-in-out infinite; }

/* stickers */
.shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sticker { --h: 42; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 8px 16px; border: 0; border-radius: 22px; font: inherit; color: #2b261d; text-align: center;
  background: #f3ecdc; box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.9), inset 0 0 0 4px #f3ecdc, inset 0 0 0 5.5px hsla(var(--h), 45%, 45%, 0.45); transform: rotate(var(--r, 0deg)); transition: transform 0.4s var(--spring); }
.sticker:hover { transform: rotate(0deg) scale(1.05); }
.sticker:active { transform: rotate(0deg) scale(0.93); }
.sticker span { font-size: 30px; }
.sticker b { font: 700 14.5px var(--f-display); }

@media (max-width: 760px) {
  .page.today { padding-bottom: 120px; }
  .greet { min-height: 0; padding: 22px 20px 20px; border-radius: 26px; }
  .greet-sky { width: 72%; height: 120px; bottom: auto; }
  .greet h1 { font-size: clamp(34px, 10vw, 44px); }
  .greet-copy { padding-top: 34px; }
  .greet .muted { font-size: 14.5px; line-height: 1.45; }
  .greet-stats { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 6px; margin-top: 14px; }
  .gs { padding: 7px 10px; gap: 6px; border-radius: 14px; }
  .gs b { font-size: 16px; }
  .gs.flame small, .gs:not(.lvl) small { display: none; }
  .gs.lvl { max-width: none; min-width: 0; }
  .gs.lvl small { display: none; }
  .gs.lvl b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .gs .lv { width: 26px; height: 26px; font-size: 13px; }
  .cont-art { aspect-ratio: 16 / 7 !important; }
  .cont h2 { font-size: 26px; }
  .dash { gap: 16px; margin-top: 16px; }
  .dash-card { padding: 18px; border-radius: 24px; }
  .dash-h h3 { font-size: 21px; }
  .cont { grid-template-columns: 1fr; }
  .cont-art { min-height: 0; aspect-ratio: 16 / 8; margin: 12px 12px 0; }
  .cont-body { padding: 16px 18px 18px; }
  .cont-row { flex-wrap: nowrap; }
  .rail { margin: 0 -18px; padding: 4px 18px 10px; }
  .near-card { flex-basis: 64%; }
  .ring-row { gap: 4px; }
  .ring-cell { padding: 8px 2px; }
  .ring-cell b { font-size: 11.5px; }
  .ticket { grid-template-columns: 1fr; }
  .tk-stub { width: auto; flex-direction: row; justify-content: space-between; border-left: 0; border-top: 2px dashed rgba(59, 51, 38, 0.3); padding: 10px 14px; }
  .tk-stub::before, .tk-stub::after { top: -10px; bottom: auto; }
  .tk-stub::before { left: -9px; } .tk-stub::after { left: auto; right: -9px; }
  .ticket .btn { width: auto; padding: 8px 12px; }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 2px; }
  .setup .btn { width: 100%; }
}

/* ============ HOME · signed out: tighter pitch ============ */
.page.mk { padding-top: 72px; }
.mk .section { margin-top: 88px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-h h2 { margin-top: 14px; }
.mk .today-band { margin-bottom: 0; }
.mk .story .steps-list { padding: 10vh 0; gap: 14vh; }
.mk .feature { min-height: 0; }
.mk .cta-band { padding: 72px 32px; }
@media (max-width: 760px) {
  .home-hero.v6 { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .home-hero.v6 #globe { position: relative; inset: auto; height: 46vh; min-height: 300px; }
  .home-hero.v6 .shade { top: 0; bottom: auto; height: calc(46vh + 2px); min-height: 302px; background: linear-gradient(180deg, rgba(16, 19, 24, 0.6) 0%, transparent 28%, transparent 62%, rgba(16, 19, 24, 1) 100%); }
  .home-hero.v6 .copy { position: relative; inset: auto; top: auto; bottom: auto; left: auto; right: auto; transform: none; margin-top: -56px; padding: 0 20px 32px; }
  .home-hero.v6 .lead { margin: 18px 0 22px; font-size: 16.5px; }
  .home-hero.v6 .ctas { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .home-hero.v6 .ctas .btn { width: 100%; }
  .home-hero.v6 .stats { margin-top: 26px; gap: 26px; }
  .page.mk { padding-top: 40px; }
  .mk .section { margin-top: 64px; }
  .marquee { padding: 16px 0; }
  .marquee .track { font-size: 24px; gap: 36px; }
  .mk-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none; }
  .mk-rail::-webkit-scrollbar { display: none; }
  .mk-rail > .qcard { flex: 0 0 84%; scroll-snap-align: center; }
  .mk .story .steps-list { padding: 0; gap: 36px; }
  .mk .story .sstep h3 { font-size: 26px; margin: 8px 0 6px; }
  .mk .story .sstep .lead { font-size: 15.5px; }
  .mk .occ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mk .occ-tile { min-height: 124px; padding: 16px; border-radius: 20px; }
  .mk .occ-tile .em { font-size: 30px; }
  .mk .occ-tile b { font-size: 17px; }
  .mk .occ-tile .dim { font-size: 12.5px; }
  .mk .ladder { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 28px -16px 0; padding: 0 16px 10px; scrollbar-width: none; }
  .mk .ladder .rung { flex: 0 0 150px; scroll-snap-align: start; }
  .mk .cta-band { padding: 48px 20px; }
  .mk .foot { margin-top: 64px; }
}

.home-hero.v6 .maplibregl-ctrl-bottom-right { bottom: 70px; }

/* ============ ME: the travel-journal profile ============ */
.jcover { position: relative; display: grid; gap: 22px; padding: 34px 36px 26px; border-radius: 30px; overflow: hidden; color: #f5e2b0;
  background: radial-gradient(120% 140% at 0% 0%, #4a3322, #2c1f16 60%, #1f1610);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(240, 211, 138, 0.3), inset 0 0 0 9px rgba(0, 0, 0, 0.18), inset 0 0 0 10px rgba(240, 211, 138, 0.2); }
.jcover::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.2; mix-blend-mode: overlay;
  background: repeating-linear-gradient(115deg, transparent 0 3px, rgba(255, 255, 255, 0.06) 3px 4px); }
.jc-strap { position: absolute; top: 0; bottom: 0; right: 64px; width: 26px; background: linear-gradient(90deg, #2a1c12, #3d2a1b 40%, #2a1c12); box-shadow: -2px 0 6px rgba(0, 0, 0, 0.4), 2px 0 6px rgba(0, 0, 0, 0.4); opacity: 0.85; }
.jc-tools { position: absolute; z-index: 2; top: 16px; right: 16px; display: flex; gap: 8px; }
.jc-tool { background: rgba(0, 0, 0, 0.3); color: #f5e2b0; }
.jc-settings { color: #1a1508; background: linear-gradient(115deg, #f5e2b0, #d8b25a); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.9); }
.jc-id { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; }
.jc-av { position: relative; padding: 8px; border-radius: 50%; background: #f3ecdc; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.9), inset 0 0 0 3px rgba(138, 61, 44, 0.3); transform: rotate(-4deg); }
.jc-av .avatar.xl { width: 128px; height: 128px; }
.jc-lvl { position: absolute; right: -2px; bottom: 6px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font: 800 18px var(--f-display); color: #1a1508; background: radial-gradient(circle at 35% 30%, #fff3cf, #d8b25a 60%, #8a6a2c); box-shadow: 0 0 0 3px #2c1f16; transform: rotate(4deg); }
.jc-name { min-width: 0; }
.jcover .eyebrow { color: #e8c97f; }
.jc-name h1 { font-size: clamp(38px, 5vw, 64px); margin: 10px 0 6px; color: #fbf1d6; overflow-wrap: anywhere; }
.jc-bio { font: italic 400 18px/1.45 var(--f-serif); color: rgba(245, 226, 176, 0.85); max-width: 560px; }
.empty-bio { border: 0; padding: 0; background: none; color: rgba(245, 226, 176, 0.6); text-decoration: underline dashed; text-underline-offset: 4px; }
.jc-chips { margin-top: 14px; }
.jcover .chip { color: #f5e2b0; background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.25); }
.jc-xp { position: relative; max-width: 520px; }
.jc-pts { font: 800 26px var(--f-display); color: var(--amber); }
.jc-xp .bar-line { margin-top: 8px; background: rgba(0, 0, 0, 0.3); }
.jc-stats { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.jst { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px 14px; border-radius: 16px; text-align: center; background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.18); transition: transform 0.35s var(--spring); }
.jst:hover { transform: translateY(-2px); }
.jst b { font: 800 22px var(--f-display); color: #fbf1d6; }
.jst small { font: 600 10px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 226, 176, 0.65); }
.jst.flame.lit { background: rgba(233, 169, 79, 0.2); box-shadow: inset 0 0 0 1px rgba(233, 169, 79, 0.55); }
.jst.maker svg { width: 32px; height: 32px; }

.book-tabs { display: flex; gap: 6px; margin: 26px 0 0; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.book-tabs::-webkit-scrollbar { display: none; }
.book-tabs button { --h: 42; flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 16px 16px; margin-bottom: -6px; border: 0; border-radius: 16px 16px 0 0; color: var(--muted); font: 600 14.5px var(--f-body);
  background: linear-gradient(180deg, hsla(var(--h), 40%, 45%, 0.22), hsla(var(--h), 40%, 30%, 0.12)); box-shadow: inset 0 1px 0 hsla(var(--h), 60%, 75%, 0.25); transition: transform 0.35s var(--spring), background 0.3s, color 0.3s; transform: translateY(4px); }
.book-tabs button:hover { transform: translateY(0); color: var(--text); }
.book-tabs button.on { color: #2b261d; background: #f3ecdc; transform: translateY(-2px); box-shadow: 0 -8px 18px -10px rgba(0, 0, 0, 0.6); }
.bt-ic { font-size: 17px; }
.bt-n { min-width: 22px; padding: 1px 7px; border-radius: 99px; font: 700 11px/18px var(--f-mono); background: rgba(255, 255, 255, 0.1); }
.book-tabs button.on .bt-n { background: hsla(var(--h), 50%, 40%, 0.2); color: #5a4a30; }
.book-page { position: relative; padding: 28px; border-radius: 0 0 26px 26px; background: rgba(243, 236, 220, 0.04); box-shadow: inset 0 0 0 1px rgba(243, 236, 220, 0.08); border-top: 3px solid #f3ecdc; min-height: 240px; }
.book-page > .empty { background: transparent; box-shadow: none; }

.av-pick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.av-pick button { aspect-ratio: 1; padding: 4px; border: 0; border-radius: 50%; background: transparent; transition: transform 0.35s var(--spring), box-shadow 0.25s; }
.av-pick button .avatar { width: 100%; height: 100%; }
.av-pick button.on { box-shadow: 0 0 0 3px var(--violet-2); transform: scale(1.08) rotate(-4deg); }

/* ============ HUB ============ */
.hub-tabs { position: sticky; z-index: 20; top: calc(var(--top) + 70px); display: flex; gap: 4px; padding: 5px; margin-bottom: 30px; border-radius: 18px; overflow-x: auto; scrollbar-width: none;
  background: rgba(21, 25, 32, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 30px -18px rgba(0, 0, 0, 0.9); }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs button { position: relative; flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font: 600 14.5px var(--f-body); white-space: nowrap; transition: color 0.25s, background 0.3s var(--ease), transform 0.3s var(--spring); }
.hub-tabs button:hover { color: var(--text); }
.hub-tabs button.on { color: #1a1508; background: linear-gradient(115deg, #f5e2b0, #d8b25a); box-shadow: 0 8px 20px -10px rgba(216, 178, 90, 0.9); }
.hub-tabs .badge-dot { margin-left: 2px; }
.ht-ic { font-size: 16px; }

.resume-list { display: flex; flex-direction: column; gap: 14px; }
.resume-card { --h: 42; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; border-radius: 24px; cursor: pointer;
  background: linear-gradient(120deg, hsla(var(--h), 45%, 45%, 0.2), var(--surface) 55%); box-shadow: var(--shadow), inset 0 0 0 1px hsla(var(--h), 55%, 70%, 0.25); transition: transform 0.4s var(--spring); }
.resume-card:hover { transform: translateY(-3px); }
.resume-card.lead { grid-template-columns: 180px minmax(0, 1fr) auto; padding: 16px; }
.rc-art { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #191f2a; }
.rc-art img { width: 100%; height: 100%; object-fit: cover; }
.rc-body { min-width: 0; }
.rc-body h3 { font-size: 22px; margin: 8px 0 4px; }
.resume-card.lead h3 { font-size: 28px; }
.rc-body p { font-size: 13.5px; }
.rc-go { display: flex; align-items: center; gap: 14px; }
.nudge-card { display: flex; align-items: center; gap: 16px; }
.nudge-card > span { font-size: 36px; }
.nudge-card > div { flex: 1; }
.nudge-card b { display: block; font: 700 19px var(--f-display); }
.nudge-card small { color: var(--muted); }
.shelf-h { margin: 36px 0 14px; font-size: 22px; }
.done-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.done-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s, transform 0.3s var(--spring); }
.done-row:hover { background: rgba(255, 255, 255, 0.06); transform: translateX(3px); }
.dr-thumb { --h: 42; position: relative; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: #191f2a; }
.dr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dr-t { min-width: 0; }
.dr-t b { display: block; font: 700 15.5px/1.25 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-t small { color: var(--dim); font-size: 12px; }
.dr-pts { padding: 4px 10px; border-radius: 9px; font: 800 12px var(--f-mono); color: var(--good); border: 2px solid rgba(159, 194, 94, 0.6); transform: rotate(-5deg); }
.warn-btn { color: #ffcf8a; background: rgba(233, 169, 79, 0.16); box-shadow: inset 0 0 0 1px rgba(233, 169, 79, 0.55); }

/* ============ HOST: not ready to share ============ */
.hostrow.not-ready { box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(233, 169, 79, 0.5); background: linear-gradient(150deg, rgba(233, 169, 79, 0.1), var(--surface) 60%); }
.ready-warn { grid-column: 1 / -1; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(233, 169, 79, 0.12); box-shadow: inset 0 0 0 1px rgba(233, 169, 79, 0.4); }
.rw-ic { width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; border-radius: 12px; background: rgba(233, 169, 79, 0.2); animation: bob 3s ease-in-out infinite; }
.ready-warn b { display: block; color: #ffcf8a; font-size: 15px; }
.ready-warn small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }

/* settings: back to profile */
.st-back { padding-left: 0; margin-bottom: 10px; }

@media (max-width: 760px) {
  .jcover { padding: 26px 20px 20px; border-radius: 26px; gap: 18px; }
  .jc-strap { display: none; }
  .jc-tools { top: 12px; right: 12px; }
  .jc-id { grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 40px; }
  .jc-av { padding: 5px; }
  .jc-av .avatar.xl { width: 76px; height: 76px; }
  .jc-name .eyebrow { font-size: 10.5px; letter-spacing: 0.16em; }
  .jc-name .eyebrow::before { display: none; }
  .jc-chips { grid-column: 1 / -1; }
  .jc-stats .jst.maker { display: none; }
  .jc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .jc-lvl { width: 32px; height: 32px; font-size: 15px; }
  .jc-name h1 { font-size: 32px; margin: 6px 0 4px; }
  .jc-bio { font-size: 16px; }
  .jc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .jst { min-width: 0; padding: 9px 6px; }
  .jst b { font-size: 19px; }
  .jst small { font-size: 9px; letter-spacing: 0.08em; }
  .book-tabs { margin-top: 20px; padding: 0 4px; }
  .book-tabs button { padding: 10px 12px 14px; font-size: 13.5px; }
  .book-page { padding: 18px 14px; margin: 0 -4px; }
  .av-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hub-title .hub-actions { display: none; }
  .hub-tabs { top: calc(66px + env(safe-area-inset-top)); margin: 0 -6px 22px; }
  .hub-tabs button { flex-direction: column; gap: 1px; padding: 7px 12px; font-size: 11.5px; }
  .hub-tabs .ht-ic { font-size: 18px; }
  .hub-tabs .badge-dot { position: absolute; top: 2px; right: 4px; }
  .resume-card, .resume-card.lead { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .resume-card.lead { grid-template-columns: 1fr; }
  .resume-card.lead .rc-art { aspect-ratio: 16 / 8; }
  .resume-card .rc-art { aspect-ratio: 1; }
  .resume-card.lead .rc-art { aspect-ratio: 16 / 8; }
  .rc-go { grid-column: 1 / -1; justify-content: space-between; }
  .rc-go .btn { flex: 1; }
  .rc-body h3, .resume-card.lead h3 { font-size: 21px; }
  .done-shelf { grid-template-columns: 1fr; }
  .ready-warn { grid-template-columns: 36px minmax(0, 1fr); }
  .ready-warn .btn { grid-column: 1 / -1; }
}

.me-chip, .me-chip .pts, .me-chip .streak { white-space: nowrap; }
@media (min-width: 900px) {
  .dash > .evs, .dash > .lately, .dash > .rival { align-self: start; }
  .dash .qotd .qotd-art { aspect-ratio: 16 / 6; }
  .dash .qotd .qotd-body { padding: 20px 26px 22px; }
  .dash .qotd .qotd-body h2 { font-size: 32px; }
}
@media (min-width: 761px) and (max-width: 1100px) { .me-chip .pts { display: none; } }
.mk-rail [data-reveal], .rail [data-reveal] { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .book-page .journal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; padding: 4px; }
  .book-page .polaroid { padding: 8px 8px 12px; }
  .book-page .polaroid .cap { font-size: 15px; margin-top: 8px; }
  .book-page .polaroid .sub { font-size: 9.5px; }
}
.greet-copy .eyebrow { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.greet-copy .eyebrow::before { display: none; }
@media (max-width: 760px) {
  .cont.first .cont-row { flex-wrap: wrap; }
  .cont.first .cont-row .btn.primary { flex: 1 1 100%; }
  .cont.first .cont-row .btn.ghost { flex: 1 1 100%; padding: 8px; }
  .first-stars { position: static; margin: 16px 0 -8px 18px; font-size: 26px; }
}
@media (max-width: 760px) {
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .podium .p { padding: 18px 6px; min-width: 0; }
  .podium .p .avatar.lg { width: 60px; height: 60px; }
  .podium .p > div { max-width: 100%; overflow-wrap: anywhere; }
  .podium .p > div:nth-of-type(2) { font-size: 16px !important; }
  .podium .first { padding-bottom: 40px; } .podium .second { padding-bottom: 26px; } .podium .third { padding-bottom: 14px; }
  .lb-row { grid-template-columns: 34px 36px minmax(0, 1fr) auto; }
}
