/* TownVibez web — a desktop-first take on the brand: green, black and white, lit by a signature
   "monsoon" gradient (emerald → teal → lime) and by the colours of the photos themselves.
   Sidebar app shell, editorial type (Bricolage Grotesque + Plus Jakarta Sans), bento layouts. */

:root {
  --brand: #16A34A;
  --brand-dark: #15803D;
  --live: #22C55E;
  --warning: #F59E0B;
  --accent: #4ADE80;
  --lime: #BBF7D0;
  --brand-glow: rgba(22, 163, 74, 0.35);
  --ink: #0A0A0A;

  --bg: #F4F6F3;
  --surface: #EBEFEA;
  --raised: #FFFFFF;
  --text: #0A0A0A;
  --muted: #5C615C;
  --border: #E0E5DF;
  --line: rgba(10, 10, 10, .06);
  --overlay: rgba(0, 0, 0, 0.45);
  --on-brand: #FFFFFF;
  --danger: #C62828;
  --brand-soft: rgba(22, 163, 74, 0.11);
  --skeleton: #E3E8E2;
  --shadow: rgba(16, 24, 16, 0.08);
  --shadow-lg: 0 18px 50px -18px rgba(16, 24, 16, .28);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --pill: 999px;
  --gutter: 0px;
  --side: 256px;
  --top: 72px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --vibe: conic-gradient(from 0deg, #16A34A, #14B8A6, #84CC16, #4ADE80, #16A34A);
  --teal: #0D9488;
  --lime-pop: #84CC16;
  --grad: linear-gradient(120deg, #15803D 0%, #16A34A 30%, #0D9488 65%, #65A30D 100%);
  --grad-text: linear-gradient(100deg, #16A34A, #0D9488 55%, #65A30D);
  --photo: var(--brand);
  --page-photo: transparent;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #050505;
  --surface: #141414;
  --raised: #0F0F0F;
  --text: #F5F5F5;
  --muted: #9CA39C;
  --border: #222622;
  --line: rgba(255, 255, 255, .06);
  --overlay: rgba(0, 0, 0, 0.6);
  --danger: #EF5350;
  --brand-soft: rgba(34, 197, 94, 0.14);
  --skeleton: #1C1C1C;
  --shadow: rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050505;
    --surface: #141414;
    --raised: #0F0F0F;
    --text: #F5F5F5;
    --muted: #9CA39C;
    --border: #222622;
    --line: rgba(255, 255, 255, .06);
    --overlay: rgba(0, 0, 0, 0.6);
    --danger: #EF5350;
    --brand-soft: rgba(34, 197, 94, 0.14);
    --skeleton: #1C1C1C;
    --shadow: rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 50px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ================================================================ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
ion-icon.ic { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.brand { color: var(--brand); }
.live-c { color: var(--live); }
.danger-c { color: var(--danger); }
.flex { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.center { text-align: center; }
.clamp1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2, .clamp3, .clamp4 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; }
.clamp3 { -webkit-line-clamp: 3; }
.clamp4 { -webkit-line-clamp: 4; }
.pre { white-space: pre-line; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.mobile-only { display: none !important; }

.t-display { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -1.6px; line-height: 1.02; margin: 0; }
.t-title { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.9px; line-height: 1.1; margin: 0; }
.t-heading { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -.2px; }
.t-label { font-size: 13px; font-weight: 600; }
.t-caption { font-size: 12px; font-weight: 500; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }

/* ================================================================ app shell */

.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.main { min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 28px 40px 56px; }

/* Sidebar — always ink black, the brand's anchor */
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 50; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 14px 16px; background: var(--ink); color: #E5E5E5; border-right: 1px solid #1a1a1a; overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.side-logo { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.side-mark {
  position: relative; width: 42px; height: 42px; border-radius: 14px; background: var(--brand); color: #fff; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 8px 24px var(--brand-glow);
}
.side-mark::after { content: ""; position: absolute; width: 40px; height: 40px; border-radius: 50%; top: -20px; right: -16px; background: rgba(255,255,255,.22); }
.side-word { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.8px; color: #fff; line-height: 1; }
.side-tag { display: block; font-size: 11px; color: #8a8a8a; margin-top: 4px; font-weight: 600; }
.side-area {
  display: flex; align-items: center; gap: 10px; margin: 0 4px 14px; padding: 10px 12px; border-radius: 14px;
  background: #141414; border: 1px solid #222; font-size: 13px; font-weight: 600; color: #fff; transition: border-color .2s;
}
.side-area:hover { border-color: var(--brand); }
.side-area .pulse-dot { --dot: var(--accent); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-theme {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; color: #A3A3A3;
  font-weight: 600; font-size: 14.5px; transition: background-color .2s, color .2s; width: 100%; text-align: left;
}
.side-nav a:hover, .side-theme:hover { background: #151515; color: #fff; }
.side-nav a.on { background: #161f18; color: #fff; }
.side-nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.side-nav a.on ion-icon { color: var(--accent); }
.side-sep { height: 1px; background: #1f1f1f; margin: 10px 8px; }
.side-cta {
  margin: 16px 4px 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 10px 28px -8px var(--brand-glow);
  transition: transform .3s var(--spring), background-color .2s;
}
.side-cta:hover { background: var(--brand-dark); transform: translateY(-2px); }
.side-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #121212; border: 1px solid #1f1f1f; color: #fff; }
.side-user:hover, .side-user.on { border-color: #2f2f2f; background: #171717; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 40px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px); border-bottom: 1px solid var(--line);
}
.top-search {
  flex: 1; max-width: 620px; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 8px 0 16px;
  border-radius: 14px; background: var(--raised); border: 1px solid var(--border); color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.top-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.top-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); padding: 10px 0; }
.top-search input::placeholder { color: var(--muted); }
.top-search kbd { font: 600 12px/1 "Plus Jakarta Sans", sans-serif; padding: 5px 8px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.top-link:hover { color: var(--text); background: var(--surface); }
.top-logo { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.8px; color: var(--brand); align-items: center; gap: 6px; }

.site-foot { padding: 28px 40px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot a:hover { color: var(--brand); }
.foot-cols { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(120px, 1fr)); gap: 24px; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; max-width: 300px; }
.foot-brand strong { color: var(--text); font-size: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot-h { color: var(--text); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
/* Breadcrumbs */
.crumbs { padding: 0 var(--gutter, 0) 12px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: "›"; opacity: .6; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Long-form text (privacy policy) */
.prose { max-width: 760px; line-height: 1.7; }
.prose h2 { margin: 28px 0 8px; font-size: 20px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--brand); text-decoration: underline; }

.tabbar { display: none; }

/* Tablet: icon rail */
@media (max-width: 1100px) {
  :root { --side: 84px; }
  .sidebar { padding: 18px 12px; align-items: center; }
  .side-label, .side-tag { display: none !important; }
  .side-logo { padding: 4px 0 14px; }
  .side-area { margin: 0 0 10px; padding: 10px; justify-content: center; }
  .side-nav a, .side-theme { justify-content: center; padding: 12px; }
  .side-nav a.on::before { left: -12px; }
  .side-cta { margin: 12px 0 0; width: 50px; }
  .side-user { padding: 6px; justify-content: center; background: none; border: 0; }
  .content { padding: 24px 28px 48px; }
  .topbar { padding: 0 28px; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 16px; --top: 62px; }
  .app { display: block; }
  .sidebar, .desktop-only, .top-search kbd { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .topbar { padding: 0 16px; gap: 10px; }
  .top-search { display: none; }
  .content { padding: 12px 0 120px; }
  .main:has(> .site-foot) .content { padding-bottom: 24px; }
  .site-foot { padding: 22px 16px 120px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .t-display { font-size: 32px; letter-spacing: -1px; }
  .t-title { font-size: 24px; }
  .tabbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; pointer-events: none;
    padding: 6px 12px max(10px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 55%, transparent);
  }
  .tabbar-in { pointer-events: auto; display: flex; align-items: center; max-width: 520px; margin: 0 auto; padding: 6px; background: var(--ink); border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 50px; justify-content: center; color: #8a8a8a; font-size: 10.5px; font-weight: 600; border-radius: 18px; }
  .tabbar a.on { color: #fff; background: #1a1a1a; }
  .tabbar a.on ion-icon { color: var(--accent); }
  .tabbar .tab-add { flex: 0 0 54px; height: 54px; min-height: 54px; border-radius: 18px; background: var(--brand); color: #fff; margin: 0 4px; }
}

/* ================================================================ motion */

@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes scale-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
@keyframes slide-right { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18px, 12px) scale(1.08); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 50ms); }
.reveal.scale { transform: scale(.95); }
.reveal.in { opacity: 1; transform: none; }
.swap-in { animation: slide-right .35s var(--ease); }
.float { animation: float 3.2s ease-in-out infinite; }
.pulse-dot { display: inline-block; width: var(--size, 7px); height: var(--size, 7px); border-radius: 50%; background: currentColor; color: var(--dot, var(--live)); animation: pulse 1.8s infinite; flex-shrink: 0; }
.press { transition: transform .35s var(--spring), box-shadow .3s var(--ease); }
.press:active { transform: scale(.98); }
@media (hover: hover) { .press:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================ page heads & sections */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding: 0 var(--gutter); flex-wrap: wrap; }
.page-head em, .hello em { font-style: normal; color: var(--brand); }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; font-size: 16px; }

.section { margin-top: 52px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); margin-bottom: 18px; }
.section-head .t-heading { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.7px; }
.section-head .see-all { font-size: 13px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--border); background: var(--raised); transition: border-color .2s, color .2s; }
.section-head .see-all:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 720px) { .section { margin-top: 36px; } .section-head .t-heading { font-size: 21px; } }

.rail-wrap { position: relative; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 18px; scroll-padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex-shrink: 0; }
.rail-arrow { display: none; position: absolute; top: 34%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--raised); color: var(--text); box-shadow: var(--shadow-lg); border: 1px solid var(--border); align-items: center; justify-content: center; transition: transform .25s var(--spring); }
.rail-arrow:hover { transform: scale(1.08); }
.rail-arrow.prev { left: -18px; }
.rail-arrow.next { right: -18px; }
@media (hover: hover) and (min-width: 721px) { .rail-arrow { display: inline-flex; } }

.grid-cards { display: grid; gap: 20px; padding: 0 var(--gutter); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1280px) { .grid-cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-cards.three { grid-template-columns: 1fr; } }

.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.side-col { position: sticky; top: calc(var(--top) + 20px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1280px) { .with-rail { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; } }
@media (max-width: 1000px) { .with-rail { grid-template-columns: 1fr; } .side-col { position: static; } }
@media (max-width: 720px) { .side-col { padding: 0 var(--gutter); } }

.widget { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px; }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.widget-head .t-heading { font-size: 15px; }
.widget.ink { background: var(--ink); color: #fff; border-color: #1a1a1a; position: relative; overflow: hidden; }
.widget.ink > * { position: relative; }
.widget.ink .muted { color: #a3a3a3; }
.widget.ink .blob { position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -90px; top: -100px; background: radial-gradient(circle, var(--brand), transparent 70%); animation: drift 9s ease-in-out infinite; }
.widget-list { display: flex; flex-direction: column; }
.widget-list > a, .widget-list > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.widget-list > :first-child { border-top: 0; padding-top: 0; }
.widget-list > a:hover .t-label { color: var(--brand); }

/* ================================================================ cards */

.card { position: relative; display: block; background: var(--raised); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; color: var(--text); }
.cover { position: relative; overflow: hidden; background: var(--brand); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .cover img, .feature:hover .cover img, .rank:hover .cover img { transform: scale(1.05); }
.cover.ph { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .92); }
.cover.ph::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; top: -70%; right: -60%; background: rgba(255, 255, 255, .14); }
.cover.ph::after { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; bottom: -60%; left: -30%; background: rgba(0, 0, 0, .14); }
.scrim { position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to top, rgba(0,0,0,.78), transparent); pointer-events: none; }
.scrim.soft { height: 55%; background: linear-gradient(to top, rgba(0,0,0,.5), transparent); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badges.static { position: static; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--pill); background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.badge.live { background: var(--live); letter-spacing: .8px; }
.badge.verified { background: var(--ink); color: var(--accent); }
.badge.dark { background: var(--ink); }
.badge.demo { background: rgba(0,0,0,.55); color: #fff; font-weight: 700; backdrop-filter: blur(6px); }
.badge.glass { background: rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.badge .pulse-dot { --dot: #fff; --size: 6px; }
.rating-pill { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.55); color: #fff; padding: 4px 9px; border-radius: var(--pill); font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); }
.card-overlay { position: absolute; left: 16px; right: 16px; bottom: 12px; color: #fff; z-index: 2; }
.card-overlay .t-heading { color: #fff; font-size: 18px; }
.card-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 5px; }

.place-card { width: 290px; }
.place-card.w220 { width: 250px; }
.place-card.w240 { width: 270px; }
.place-card .cover { height: 190px; }
.event-card { width: 280px; }
.event-card .cover { height: 168px; }
.grid-cards .place-card, .grid-cards .event-card { width: auto; }
.date-tile { position: absolute; top: 12px; right: 12px; z-index: 2; width: 50px; padding: 5px 0 6px; border-radius: 14px; background: var(--raised); text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.date-tile .m { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--brand); }
.date-tile .d { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 24px; }
.going { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 12px; font-weight: 600; }
.price-pill { align-self: flex-start; padding: 4px 10px; border-radius: var(--pill); background: var(--surface); font-size: 12px; font-weight: 700; margin-top: 4px; }
.price-pill.free { background: var(--brand-soft); color: var(--brand); }

.list-row { display: flex; gap: 14px; align-items: center; padding: 10px var(--gutter); border-radius: 16px; transition: background-color .15s, box-shadow .15s; }
@media (min-width: 721px) { .list-row { padding: 10px 12px; margin: 0 -12px; } }
.list-row:hover { background: var(--raised); box-shadow: 0 0 0 1px var(--border); }
.thumb { width: 76px; height: 76px; border-radius: 14px; flex-shrink: 0; }
.thumb.cover.ph::before, .thumb.cover.ph::after { display: none; }

.signals { display: flex; flex-wrap: wrap; gap: 6px; }
.signal { padding: 4px 10px; border-radius: var(--pill); background: var(--surface); font-size: 12px; font-weight: 600; }

.post-card { display: flex; flex-direction: column; gap: 10px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.post-card.w280 { width: 320px; }
.post-card .post-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.event-tag { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--pill); padding: 6px 12px; font-size: 12px; }
.event-tag:hover { border-color: var(--brand); }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex-shrink: 0; width: var(--sz, 36px); height: var(--sz, 36px); background: var(--brand); color: #fff; font-weight: 800; font-size: calc(var(--sz, 36px) * .42); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.ring { --rs: 70px; position: relative; width: var(--rs); height: var(--rs); border-radius: 50%; padding: 3px; display: inline-flex; align-items: center; justify-content: center; background: var(--border); flex-shrink: 0; }
.ring.none { background: transparent; }
.ring.active { background: var(--vibe); animation: spin 6s linear infinite; }
.ring > .ring-in { background: var(--raised); border-radius: 50%; padding: 3px; display: inline-flex; }
.ring.active > .ring-in { animation: spin 6s linear infinite reverse; }

/* ================================================================ home */

.hello { position: relative; padding: 0 var(--gutter); margin-bottom: 26px; }
.hello .greet { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hello h1 { font-family: var(--display); font-size: 54px; font-weight: 800; letter-spacing: -2.2px; line-height: 1; margin: 10px 0 0; max-width: 920px; }
.hello h1 a { color: var(--brand); background: linear-gradient(transparent 70%, var(--brand-soft) 70%); padding: 0 4px; border-radius: 4px; transition: background-color .2s; }
.hello h1 a:hover { background-color: var(--brand-soft); }
@media (max-width: 720px) { .hello h1 { font-size: 34px; letter-spacing: -1px; } }

.bento { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; height: 470px; padding: 0 var(--gutter); }
.bento .feature { grid-row: span 2; }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 220px; height: auto; } .bento .feature { grid-row: auto; grid-column: span 2; } }
@media (max-width: 720px) { .bento { grid-template-columns: 1fr; grid-template-rows: none; } .bento .feature { grid-column: auto; height: 400px; } .bento > * { min-height: 200px; } }
.feature { position: relative; display: block; border-radius: 30px; overflow: hidden; color: #fff; background: var(--ink); }
.feature .cover { position: absolute; inset: 0; }
.feature .scrim { height: 90%; background: linear-gradient(to top, rgba(0,0,0,.9) 8%, rgba(0,0,0,.25) 60%, transparent); }
.feature .f-body { position: absolute; left: 30px; right: 30px; bottom: 28px; z-index: 2; }
.feature .f-title { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -1.6px; line-height: 1; margin: 12px 0 10px; max-width: 640px; }
.feature .f-meta { color: rgba(255,255,255,.82); font-weight: 600; font-size: 14.5px; }
.feature .f-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 11px 20px; border-radius: 14px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; transition: gap .25s var(--ease); }
.feature:hover .f-cta { gap: 12px; }
@media (max-width: 720px) { .feature { border-radius: 24px; margin: 0 var(--gutter); } .bento { padding: 0; } .bento > .tile { margin: 0 var(--gutter); } .feature .f-title { font-size: 28px; } .feature .f-body { left: 20px; right: 20px; bottom: 20px; } }

.tile { position: relative; border-radius: 30px; overflow: hidden; padding: 24px; display: flex; flex-direction: column; }
@media (max-width: 720px) { .tile { border-radius: 24px; } }
.tile-pulse { background: var(--brand); color: #fff; text-align: left; box-shadow: 0 24px 50px -24px var(--brand-glow); }
.tile-pulse .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.tile-pulse .blob.a { width: 240px; height: 240px; top: -120px; right: -70px; background: rgba(255,255,255,.16); animation: drift 10s ease-in-out infinite; }
.tile-pulse .blob.b { width: 150px; height: 150px; bottom: -90px; left: 30%; background: rgba(0,0,0,.22); }
.tile-pulse .count { position: relative; font-family: var(--display); font-size: 84px; font-weight: 800; letter-spacing: -4px; line-height: .85; font-variant-numeric: tabular-nums; margin-top: auto; }
.tile-pulse .kicker { position: relative; color: rgba(255,255,255,.85); }
.tile-pulse .t-label { position: relative; }
.tile-pulse .flame { position: absolute; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 18px; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; }
.tile-live { background: var(--ink); color: #fff; }
.tile-live .kicker { color: var(--accent); display: flex; align-items: center; gap: 8px; }
.tile-live .live-list { margin-top: 10px; display: flex; flex-direction: column; overflow: hidden; }
.tile-live .live-list a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #1f1f1f; font-size: 13.5px; font-weight: 600; }
.tile-live .live-list a:first-child { border-top: 0; }
.tile-live .live-list a:hover { color: var(--accent); }
.tile-live .live-list .when { color: #8a8a8a; margin-left: auto; white-space: nowrap; font-size: 12px; }
.tile-live .quiet { margin: auto 0; color: #a3a3a3; font-size: 14px; }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 0 var(--gutter); }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px; padding: 16px; border-radius: 22px; background: color-mix(in srgb, var(--c) 10%, var(--raised)); border: 1px solid color-mix(in srgb, var(--c) 24%, transparent); overflow: hidden; transition: transform .35s var(--spring), background-color .25s; }
.cat-tile .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .4s var(--spring); }
.cat-tile .name { font-weight: 700; font-size: 15px; }
.cat-tile .go { position: absolute; right: 14px; top: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease); color: var(--c); }
.cat-tile:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--c) 17%, var(--raised)); }
.cat-tile:hover .ico { transform: rotate(-8deg) scale(1.08); }
.cat-tile:hover .go { opacity: 1; transform: none; }
.cat-tiles.big { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cat-tiles.big .cat-tile { min-height: 172px; }
.cat-tiles.big .cat-tile .name { font-family: var(--display); font-size: 21px; letter-spacing: -.5px; }
.cat-tiles.big .cat-tile .desc-s { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 14px; padding: 0 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; text-align: center; }
.cat .ico { width: 58px; height: 58px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid; }

.ranked { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 36px; padding: 0 var(--gutter); }
@media (max-width: 900px) { .ranked { grid-template-columns: 1fr; } }
.rank { display: flex; align-items: center; gap: 16px; padding: 12px; margin: 0 -12px; border-radius: 20px; transition: background-color .2s, box-shadow .2s; }
.rank:hover { background: var(--raised); box-shadow: 0 0 0 1px var(--border); }
.rank .num { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -2px; width: 58px; color: transparent; -webkit-text-stroke: 1.5px var(--muted); line-height: 1; flex-shrink: 0; transition: -webkit-text-stroke-color .2s, color .2s; }
.rank:hover .num { -webkit-text-stroke-color: var(--brand); color: var(--brand-soft); }
.rank .cover { width: 88px; height: 88px; border-radius: 18px; flex-shrink: 0; }
.rank .cover.ph::after { display: none; }
@media (max-width: 720px) { .rank { margin: 0; } .rank .num { font-size: 32px; width: 40px; } .rank .cover { width: 70px; height: 70px; } }

.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--raised); border: 1px solid var(--border); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 11px; font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--muted); transition: color .25s, background-color .25s; }
.seg button:hover, .seg a:hover { color: var(--text); }
.seg [aria-selected="true"], .seg .on { background: var(--ink); color: #fff; }
[data-theme="dark"] .seg [aria-selected="true"], [data-theme="dark"] .seg .on { background: #fff; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg [aria-selected="true"], :root:not([data-theme="light"]) .seg .on { background: #fff; color: var(--ink); } }
.time-pane { display: flex; flex-direction: column; gap: 14px; }

.masonry { columns: 3 280px; column-gap: 18px; padding: 0 var(--gutter); }
.masonry > * { break-inside: avoid; margin-bottom: 18px; }

.stories { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.stories::-webkit-scrollbar { display: none; }
.story { width: 68px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.story .ring { --rs: 62px; }
.story .name { margin-top: 5px; max-width: 68px; text-align: center; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.story .name.unseen { color: var(--text); font-weight: 700; }
.story .plus { position: absolute; top: 40px; right: 0; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--raised); background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

.signal-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; transition: transform .2s var(--ease), border-color .2s; }
.signal-row:hover { transform: translateX(3px); border-color: var(--brand); }
.signal-list { display: flex; flex-direction: column; gap: 8px; padding: 0 var(--gutter); }

.searchbar { display: flex; align-items: center; gap: 10px; margin: 0 var(--gutter); padding: 0 18px; min-height: 52px; border-radius: 16px; background: var(--raised); border: 1px solid var(--border); color: var(--muted); font-size: 15px; transition: box-shadow .2s, border-color .2s; }
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); padding: 12px 0; }

.band { position: relative; overflow: hidden; border-radius: 32px; padding: 56px 52px; background: var(--ink); color: #fff; margin: 0 var(--gutter) 8px; }
.band .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.band .blob.a { width: 460px; height: 460px; right: -120px; top: -220px; background: radial-gradient(circle, var(--brand), transparent 70%); animation: drift 12s ease-in-out infinite; }
.band .blob.b { width: 320px; height: 320px; right: 240px; bottom: -240px; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: .35; }
.band > * { position: relative; }
.band .kicker { color: var(--accent); }
.band h1 { font-family: var(--display); font-size: 62px; font-weight: 800; letter-spacing: -2.6px; line-height: .96; margin: 12px 0 0; max-width: 780px; }
.band h1 em { font-style: normal; color: var(--accent); }
.band p { color: #a3a3a3; margin: 16px 0 28px; font-size: 16px; max-width: 520px; }
.band .searchbar { margin: 0; max-width: 640px; background: #fff; border: 0; color: #5c615c; min-height: 60px; }
.band .searchbar input { color: #0a0a0a; }
.band .quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.band .quick a { padding: 7px 14px; border-radius: var(--pill); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; transition: background-color .2s; }
.band .quick a:hover { background: rgba(255,255,255,.16); }
@media (max-width: 720px) { .band { border-radius: 24px; padding: 30px 22px; } .band h1 { font-size: 36px; letter-spacing: -1.2px; } }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding: 0 var(--gutter); }
.area-card { position: relative; height: 132px; border-radius: 22px; overflow: hidden; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--ink); transition: transform .35s var(--spring); }
.area-card:hover { transform: translateY(-4px); }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: transform .8s var(--ease); }
.area-card:hover img { transform: scale(1.06); }
.area-card .glow { position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -70px; background: radial-gradient(circle, var(--g, var(--brand)), transparent 70%); transition: transform .6s var(--ease); }
.area-card:hover .glow { transform: scale(1.3); }
.area-card .name { position: relative; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.5px; }
.area-card .sub { position: relative; font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ================================================================ controls */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px -10px var(--brand-glow); transition: transform .3s var(--spring), opacity .2s, background-color .2s; border: 0; text-align: center; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.96); }
.btn[disabled], .btn.busy { opacity: .5; pointer-events: none; }
.btn.block { width: 100%; }
.btn.secondary { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.btn.secondary:hover { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.btn.ghost { background: var(--raised); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { border-color: var(--text); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); box-shadow: none; }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn.light { background: #fff; color: var(--ink); box-shadow: none; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 11px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--raised); border: 1px solid var(--border); color: var(--text); transition: transform .25s var(--spring), border-color .2s; flex-shrink: 0; }
.icon-btn:hover { border-color: var(--text); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.brand-bg { background: var(--brand); border-color: var(--brand); color: #fff; }
.icon-btn.lg { width: 46px; height: 46px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); padding: 0 0 16px; }
.back-btn:hover { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-top: 4px; padding-bottom: 4px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--pill); white-space: nowrap; background: var(--raised); color: var(--text); font-size: 13px; font-weight: 600; border: 1px solid var(--border); transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--spring); flex-shrink: 0; }
.chip:hover { border-color: var(--text); }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-theme="dark"] .chip.on { background: #fff; color: var(--ink); border-color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { background: #fff; color: var(--ink); border-color: #fff; } }
.chip.on.colored { background: var(--c); color: #fff; border-color: var(--c); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip.on .dot { background: #fff; }
.chip-divider { width: 1px; align-self: stretch; margin: 6px 2px; background: var(--border); flex-shrink: 0; }

.segmented { display: flex; padding: 4px; border-radius: 14px; background: var(--surface); margin: 0 var(--gutter); }
.segmented a, .segmented button { flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--muted); transition: color .2s, background-color .25s; }
.segmented .on { background: var(--raised); color: var(--text); box-shadow: 0 2px 8px var(--shadow); }
.sort-tabs { display: flex; gap: 8px; padding: 0 var(--gutter) 16px; overflow-x: auto; scrollbar-width: none; }

.action-bar { display: flex; justify-content: flex-start; gap: 10px; flex-wrap: wrap; padding: 0 var(--gutter); }
.action-btn { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 14px; font-size: 14px; font-weight: 700; color: var(--text); background: var(--raised); border: 1px solid var(--border); transition: border-color .2s, color .2s; }
.action-btn:hover { border-color: var(--text); }
.action-btn .ico { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); transition: background-color .2s, color .2s; }
.action-btn .ico ion-icon { font-size: 19px !important; }
.action-btn.on { color: var(--brand); border-color: var(--brand); }
.action-btn.on .ico { background: var(--brand); color: #fff; animation: pop .45s var(--spring); }
.action-card .action-bar { display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 8px; }
.action-card .action-bar > form, .action-card .action-bar > a, .action-card .action-bar > button { width: 100%; }
.action-card .action-btn { width: 100%; }

.join-btn { min-width: 76px; min-height: 36px; padding: 0 14px; border-radius: 11px; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 700; flex-shrink: 0; border: 1px solid transparent; transition: transform .25s var(--spring); }
.join-btn.on { background: transparent; color: var(--text); border-color: var(--border); }
.join-btn:active { transform: scale(.92); }

.toggle { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.toggle .track { position: absolute; inset: 0; border-radius: var(--pill); background: var(--border); transition: background-color .25s; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .35s var(--spring); }
.toggle input:checked + .track { background: var(--brand); }
.toggle input:checked + .track::after { transform: translateX(20px); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .form-label { font-size: 13px; font-weight: 700; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"], .field input[type="tel"],
.field input[type="number"], .field input[type="datetime-local"], .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 14px; border: 1px solid var(--border); background: var(--raised); color: var(--text); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field .err { color: var(--danger); font-size: 12px; font-weight: 600; }
.field .hint { color: var(--muted); font-size: 12px; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--danger); }
.form { display: flex; flex-direction: column; gap: 20px; padding: 24px var(--gutter) 36px; }
.form-card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 8px 28px; margin-top: 16px; }
.form-card .field input, .form-card .field textarea, .form-card .field select { background: var(--bg); }
@media (max-width: 720px) { .form-card { border: 0; border-radius: 0; padding: 0; background: none; margin: 0; } }
.form-error { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 600; font-size: 14px; }
.form-ok { padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(128,128,128,.25)); }
.legacy-login summary { cursor: pointer; text-align: center; padding: 6px 0; }
.legacy-login[open] summary { margin-bottom: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; align-self: flex-end; }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; border: 2px dashed var(--border); border-radius: 20px; background: var(--surface); color: var(--muted); overflow: hidden; cursor: pointer; transition: border-color .2s, background-color .2s; text-align: center; padding: 16px; }
.file-drop:hover, .file-drop.drag { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file-drop.has-img { min-height: 240px; border-style: solid; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid input:checked + .chip { background: var(--brand); color: #fff; border-color: var(--brand); }
.choice-grid input:focus-visible + .chip { outline: 2px solid var(--brand); }

.menu-row { display: flex; align-items: center; gap: 14px; margin: 0 var(--gutter); padding: 16px 18px; border-radius: 18px; background: var(--raised); border: 1px solid var(--border); min-height: 60px; transition: border-color .2s; }
.menu-row:hover { border-color: var(--text); }
.menu-row.brand-bg { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.menu-row.brand-bg::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -90px; background: radial-gradient(circle, var(--brand), transparent 70%); pointer-events: none; }
.menu-row.brand-bg > * { position: relative; z-index: 1; }
.menu-row .row-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-row.brand-bg .row-ico { background: var(--brand); color: #fff; }
.menu-row + .menu-row { margin-top: 10px; }

/* ================================================================ detail pages */

.hero { position: relative; height: 500px; border-radius: 32px; overflow: hidden; background: var(--ink); margin: 0 var(--gutter); }
.hero .cover { position: absolute; inset: 0; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.05) 70%); pointer-events: none; z-index: 1; }
.hero .hero-back { position: absolute; top: 18px; left: 18px; z-index: 3; width: 42px; height: 42px; border-radius: 12px; background: rgba(0,0,0,.4); color: #fff; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); }
.hero .hero-body { position: absolute; left: 40px; right: 40px; bottom: 36px; z-index: 2; color: #fff; }
.hero .hero-body .t-display { font-size: 62px; letter-spacing: -2.4px; max-width: 920px; }
.hero .hero-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-weight: 600; color: rgba(255,255,255,.85); font-size: 15px; }
.hero .hero-meta a:hover { color: var(--accent); }
.hero .hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.45); }
.hero .when-line { font-weight: 800; color: var(--accent); font-size: 15px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 1100px) { .hero .hero-body .t-display { font-size: 46px; } }
@media (max-width: 720px) {
  .hero { height: 440px; border-radius: 0; margin: -12px 0 0; }
  .hero .hero-body { left: 18px; right: 18px; bottom: 22px; }
  .hero .hero-body .t-display { font-size: 34px; letter-spacing: -1px; }
}
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 44px; align-items: start; margin-top: 36px; }
.detail-grid .aside { position: sticky; top: calc(var(--top) + 20px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; } }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } .detail-grid .aside { position: static; order: -1; } }
@media (max-width: 720px) { .detail-grid .aside { padding: 0 var(--gutter); } .detail-grid { margin-top: 20px; } }
.detail-head { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 4px; }
.action-card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; }
.action-card .big { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; }
.action-card .facts { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 6px; }
.block { margin-top: 40px; }
.block:first-child { margin-top: 0; }
.block > .t-heading { font-family: var(--display); font-size: 24px; letter-spacing: -.6px; padding: 0 var(--gutter); margin-bottom: 14px; }
.block-body { display: flex; flex-direction: column; gap: 10px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; font-size: 14.5px; }
.info-row ion-icon { color: var(--brand); margin-top: 1px; }
a.info-row:hover span { color: var(--brand); }
.offer { display: flex; gap: 12px; align-items: center; margin: 0 var(--gutter); padding: 14px 16px; border-radius: 16px; background: var(--brand-soft); }
.hours { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.hours .h { display: flex; font-size: 14px; }
.hours .h .d { width: 52px; font-weight: 600; }
.hours .h.today { color: var(--text); font-weight: 700; }
.hours .h:not(.today) { color: var(--muted); }
.mini-map { height: 220px; border-radius: 20px; overflow: hidden; background: var(--surface); }
.media-strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; }
.media-strip img { width: 220px; height: 160px; object-fit: cover; border-radius: 16px; flex-shrink: 0; }
.desc { line-height: 1.75; white-space: pre-line; font-size: 16.5px; }
.lead { font-size: 19px; line-height: 1.55; font-weight: 500; color: var(--muted); margin: 0; }

.banner { position: relative; height: 200px; overflow: hidden; background: var(--ink); border-radius: 32px; margin: 0 var(--gutter); }
.banner.sm { height: 150px; }
.banner .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.banner .blob.a { width: 460px; height: 460px; top: -260px; right: -80px; background: radial-gradient(circle, var(--brand), transparent 70%); animation: drift 12s ease-in-out infinite; }
.banner .blob.b { width: 280px; height: 280px; bottom: -190px; left: 10%; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: .35; }
@media (max-width: 720px) { .banner { border-radius: 0; margin: -12px 0 0; height: 140px; } .banner.sm { height: 100px; } }
.banner-actions { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.glass-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.glass-btn:hover { background: rgba(255,255,255,.2); }
.glass-btn.round { width: 38px; padding: 0; justify-content: center; }
.profile { display: flex; align-items: flex-end; gap: 22px; padding: 0 calc(var(--gutter) + 32px) 8px; margin-top: -56px; position: relative; z-index: 2; flex-wrap: wrap; }
.profile .avatar-wrap { padding: 5px; border-radius: 50%; background: var(--bg); }
.profile .who { flex: 1; min-width: 220px; padding-bottom: 8px; }
@media (max-width: 720px) { .profile { flex-direction: column; align-items: center; text-align: center; padding: 0 16px; } .profile .who { padding: 0; } }
.pill-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--pill); font-size: 12px; font-weight: 700; }
.pill-tag.soft { background: var(--brand-soft); color: var(--brand); }
.pill-tag.dark { background: var(--ink); color: #fff; }
.pill-tag.dark ion-icon { color: var(--accent); }
.stats { display: flex; border-radius: 18px; background: var(--raised); border: 1px solid var(--border); padding: 12px 6px; }
.stats .stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.stats .stat + .stat { border-left: 1px solid var(--line); }

.comm-hero { padding: 0 calc(var(--gutter) + 28px) 22px; display: flex; flex-direction: column; gap: 14px; }
.comm-hero .top { display: flex; align-items: flex-end; gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.comm-hero .avatar-ring { padding: 5px; border-radius: 50%; background: var(--bg); }
@media (max-width: 720px) { .comm-hero { padding: 0 16px 16px; } }
details.rules { padding: 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--border); }
details.rules summary { list-style: none; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; cursor: pointer; }
details.rules summary::-webkit-details-marker { display: none; }
details.rules[open] summary .chev { transform: rotate(180deg); }
details.rules .chev { transition: transform .25s var(--ease); margin-left: auto; }
details.rules p { margin: 10px 0 0; color: var(--muted); white-space: pre-line; }

.thread-card { display: flex; flex-direction: column; gap: 10px; margin: 0 var(--gutter) 14px; padding: 20px 22px; border-radius: 22px; background: var(--raised); border: 1px solid var(--border); position: relative; transition: border-color .2s; }
.thread-card:hover { border-color: color-mix(in srgb, var(--text) 35%, transparent); }
.thread-card .stretched { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.thread-card .lift { position: relative; z-index: 1; }
.thread-card h3 { font-size: 19px; }
.thread-card .t-img { width: 100%; max-height: 420px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.vote { display: inline-flex; align-items: center; gap: 2px; border-radius: 11px; background: var(--surface); min-height: 36px; padding: 0 4px; }
.vote button { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: transform .25s var(--spring), color .15s; }
.vote button:hover { background: var(--raised); color: var(--text); }
.vote button:active { transform: scale(.8); }
.vote .score { min-width: 22px; text-align: center; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vote.up .score, .vote.up .up-btn { color: var(--brand); }
.vote.down .down-btn, .vote.down .score { color: var(--danger); }
.count-pill { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 36px; border-radius: 11px; background: var(--surface); font-size: 13px; font-weight: 700; }
.community-row { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0 var(--gutter) 10px; border-radius: 18px; background: var(--raised); border: 1px solid var(--border); position: relative; transition: border-color .2s; }
.community-row:hover { border-color: color-mix(in srgb, var(--text) 35%, transparent); }
.side-col .community-row, .widget .community-row { margin: 0; padding: 10px 0; border: 0; border-radius: 0; border-top: 1px solid var(--line); background: none; }
.widget .community-row:first-child { border-top: 0; padding-top: 0; }
.fab { position: fixed; right: 32px; bottom: 32px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; min-height: 52px; border-radius: 16px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 16px 34px -10px var(--brand-glow); transition: transform .3s var(--spring); }
.fab:hover { transform: translateY(-3px); }
@media (max-width: 720px) { .fab { bottom: 100px; right: 16px; } }

.comment { position: relative; padding: 10px var(--gutter) 10px calc(var(--gutter) + var(--depth, 0) * 18px); }
.comment .threadline { position: absolute; top: 0; bottom: 0; width: 2px; border-radius: 2px; opacity: .55; }
.comment .c-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.comment .c-actions .link { font-size: 12px; font-weight: 700; color: var(--muted); padding: 5px 8px; border-radius: 8px; }
.comment .c-actions .link:hover { color: var(--text); background: var(--surface); }
.comment.collapsed .c-body, .comment.collapsed .c-actions { display: none; }
.comment.hidden-child { display: none; }
.composer { position: sticky; bottom: 16px; z-index: 20; background: var(--raised); border: 1px solid var(--border); border-radius: 20px; padding: 10px; margin: 0 var(--gutter); box-shadow: var(--shadow-lg); }
@media (max-width: 720px) { .composer { bottom: 88px; margin: 0 12px; } }
.composer textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; padding: 11px 14px; border-radius: 14px; border: 0; background: var(--surface); outline: 0; }

.studio-hero { position: relative; overflow: hidden; padding: 36px; border-radius: 32px; background: var(--ink); color: #fff; margin: 0 var(--gutter); }
.studio-hero > * { position: relative; }
.studio-hero .blob { position: absolute; width: 400px; height: 400px; border-radius: 50%; top: -210px; right: -80px; background: radial-gradient(circle, var(--brand), transparent 70%); animation: drift 12s ease-in-out infinite; }
.studio-hero .stats-row { display: flex; gap: 44px; margin-top: 24px; }
.studio-hero .stats-row .t-title { font-size: 42px; }
.studio-row { display: flex; align-items: center; gap: 14px; padding: 12px; margin: 0 var(--gutter) 10px; border-radius: 18px; background: var(--raised); border: 1px solid var(--border); }
.studio-row .thumb { width: 60px; height: 60px; }
.status-pill { padding: 4px 10px; border-radius: var(--pill); font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.status-pill.live { background: var(--brand-soft); color: var(--brand); }
.status-pill.muted { background: var(--surface); color: var(--muted); }
.status-pill.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pin-map { height: 280px; border-radius: 18px; overflow: hidden; background: var(--surface); position: relative; }

/* ================================================================ map: split list + map on desktop */

.map-page { position: fixed; top: var(--top); left: var(--side); right: 0; bottom: 0; z-index: 1; display: grid; grid-template-columns: 410px minmax(0, 1fr); }
.map-side { position: relative; z-index: 5; display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--border); min-height: 0; }
.map-side-head { padding: 22px 22px 10px; display: flex; flex-direction: column; gap: 12px; }
.map-side-head .chips { padding: 0; }
.map-stage { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; }
.map-list { flex: 1; overflow-y: auto; padding: 4px 22px 24px; }
.map-list .list-row { margin: 0 -10px; padding: 10px; cursor: pointer; }
.map-list .list-row.sel { background: var(--raised); box-shadow: 0 0 0 1.5px var(--brand); }
.map-count { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; padding: 6px 22px 6px; }
.map-fabs { position: absolute; right: 18px; bottom: 28px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.map-fabs .icon-btn { width: 48px; height: 48px; box-shadow: var(--shadow-lg); }
.map-view-btn { display: none !important; }
.search-area { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; min-height: 42px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; box-shadow: var(--shadow-lg); animation: scale-in .3s var(--spring); }
.map-loading { position: absolute; top: 18px; right: 66px; z-index: 6; width: 38px; height: 38px; border-radius: 50%; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.map-card { position: absolute; left: 18px; bottom: 28px; z-index: 7; width: 420px; max-width: calc(100% - 100px); display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: var(--raised); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: slide-up .35s var(--spring); }
.map-card .mk { width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.marker { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; color: #fff; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); cursor: pointer; transition: transform .25s var(--spring); }
.marker ion-icon { transform: rotate(45deg); font-size: 16px; }
.marker:hover, .marker.sel { transform: rotate(-45deg) scale(1.25); z-index: 3; }
.marker.event { border-radius: 10px; transform: none; }
.marker.event ion-icon { transform: none; }
.marker.event:hover, .marker.event.sel { transform: scale(1.25); }
.marker.live { box-shadow: 0 0 0 4px rgba(34,197,94,.45), 0 3px 10px rgba(0,0,0,.3); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2563EB; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25); }
.maplibregl-ctrl-attrib { font-size: 10px; }
@media (max-width: 1100px) { .map-page { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 720px) {
  .map-page { left: 0; grid-template-columns: 1fr; }
  .map-side { position: absolute; inset: 0 0 auto 0; background: linear-gradient(to bottom, var(--bg) 60%, transparent); border: 0; }
  .map-side-head { padding: 10px 0; }
  .map-side-head .chips { padding: 0 16px; }
  .map-side-head h1, .map-count { display: none; }
  .map-list { position: fixed; inset: calc(var(--top) + 60px) 0 0 0; background: var(--bg); padding-bottom: 120px; }
  .map-list:not(.open) { display: none; }
  .map-stage { position: absolute; inset: 0; }
  .map-view-btn { display: inline-flex !important; }
  .map-fabs { bottom: 110px; right: 16px; }
  .map-card { left: 16px; right: 16px; width: auto; max-width: none; bottom: 100px; }
  .search-area { top: 70px; }
  .map-loading { top: 70px; right: 16px; }
}

/* ================================================================ stories, states, toasts, dialog, auth */

.story-viewer { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); color: #fff; display: flex; align-items: center; justify-content: center; }
.story-stage { position: relative; width: 100%; height: 100%; max-width: 460px; overflow: hidden; background: #111; }
@media (min-width: 721px) { .story-stage { height: 90vh; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); } }
.story-stage img.s-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-bars { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; gap: 4px; }
.story-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-bars span i { display: block; height: 100%; width: 0; background: #fff; }
.story-top { position: absolute; top: 24px; left: 14px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.story-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 22%, transparent 70%, rgba(0,0,0,.6)); z-index: 1; pointer-events: none; }
.story-caption { position: absolute; left: 18px; right: 18px; bottom: 30px; z-index: 3; font-size: 17px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.story-tap { position: absolute; top: 0; bottom: 0; z-index: 2; width: 35%; }
.story-tap.prev { left: 0; }
.story-tap.next { right: 0; width: 65%; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px var(--gutter); text-align: center; color: var(--muted); }
.empty .ico-wrap { width: 76px; height: 76px; border-radius: 24px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.inline-empty { padding: 0 var(--gutter); color: var(--muted); font-size: 14px; }
.inline-empty .box { padding: 22px; border-radius: 18px; border: 1.5px dashed var(--border); text-align: center; }
.skeleton { background: linear-gradient(90deg, var(--skeleton) 0, var(--surface) 50%, var(--skeleton) 100%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; border-radius: 12px; }
.load-more { display: flex; justify-content: center; padding: 20px; }

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
@media (max-width: 720px) { .toasts { left: 50%; right: auto; top: 16px; bottom: auto; transform: translateX(-50%); } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.3); animation: slide-up .4s var(--spring); transition: opacity .3s, transform .3s; }
.toast.success ion-icon { color: var(--accent); }
.toast.error { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(10px); }

.tv-dialog { border: 0; border-radius: 24px; padding: 26px; width: min(92vw, 420px); background: var(--raised); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: scale-in .3s var(--spring); }
.tv-dialog::backdrop { background: var(--overlay); backdrop-filter: blur(4px); }

.auth-split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-art > * { position: relative; }
.auth-art .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.auth-art .blob.a { width: 640px; height: 640px; right: -240px; top: -200px; background: radial-gradient(circle, var(--brand), transparent 68%); animation: drift 14s ease-in-out infinite; }
.auth-art .blob.b { width: 440px; height: 440px; left: -160px; bottom: -220px; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: .3; }
.auth-art h2 { font-family: var(--display); font-size: 66px; font-weight: 800; letter-spacing: -2.8px; line-height: .95; margin: 0; max-width: 560px; }
.auth-art h2 em { font-style: normal; color: var(--accent); }
.auth-art .ticker { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.auth-art .ticker-in { display: flex; gap: 10px; width: max-content; animation: marquee 32s linear infinite; }
.auth-art .ticker span { padding: 9px 16px; border-radius: var(--pill); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; white-space: nowrap; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.auth { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth .segmented { margin: 0; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-panel { padding: 32px 20px; align-items: flex-start; } }

/* Bare pages (sign in) */
.bare .app { display: block; }
.content.flush { padding: 0; max-width: none; }

/* Me / profile page */
.me-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 32px; }
.me-grid .me-side { position: sticky; top: calc(var(--top) + 20px); display: flex; flex-direction: column; gap: 10px; }
.me-grid .me-side .menu-row { margin: 0; }
@media (max-width: 1000px) { .me-grid { grid-template-columns: 1fr; } .me-grid .me-side { position: static; padding: 0 var(--gutter); } }

/* Search page */
.search-hero { padding: 0 var(--gutter); margin-bottom: 18px; }
.search-hero .searchbar { margin: 14px 0 0; min-height: 60px; font-size: 17px; max-width: 760px; }
.filter-panel { position: sticky; top: calc(var(--top) + 20px); display: flex; flex-direction: column; gap: 18px; }
.filter-panel .chips { padding: 0; }
.filter-group .t-label { display: block; margin-bottom: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px; font-weight: 800; }
.search-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 1000px) { .search-layout { grid-template-columns: 1fr; } .filter-panel { position: static; padding: 0 var(--gutter); } .filter-panel .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.form.form-card { padding: 28px; } @media (max-width: 720px) { .form.form-card { padding: 20px var(--gutter) 36px; } }

/* ================================================================ round 3: richer surfaces */

/* Theme */
.theme-fade, .theme-fade * { transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease) !important; }
.theme-pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border-radius: 11px; background: var(--raised); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text); transition: border-color .2s; }
.theme-pill:hover { border-color: var(--text); }
.theme-pill ion-icon { color: var(--brand); }

/* Background: faint dot grid + a green glow behind the page */
:root { --dotc: rgba(10, 10, 10, .05); }
:root[data-theme="dark"] { --dotc: rgba(255, 255, 255, .045); }
.main { position: relative; background-image: radial-gradient(circle at 1px 1px, var(--dotc) 1px, transparent 0); background-size: 24px 24px; }
.main::before { content: ""; position: absolute; top: 0; right: 0; width: min(900px, 70vw); height: 720px; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at 85% 0%, rgba(22,163,74,.16), transparent 62%); }
.main::after { content: ""; position: absolute; top: 380px; left: -200px; width: 600px; height: 600px; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(74,222,128,.08), transparent 65%); }
.content { position: relative; z-index: 1; }
.bare .main { background-image: none; }

/* Poster covers for items without a photo */
.cover.ph { container-type: size; isolation: isolate; color: #fff; }
.cover.ph::before, .cover.ph::after { content: ""; position: absolute; inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; }
.cover.ph::after { z-index: 0; background: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.6px) 0 0 / 14px 14px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 65%); mask-image: linear-gradient(135deg, #000, transparent 65%); opacity: .7; }
.cover.ph::before { z-index: 0; }
.cover.ph.v0 { background: linear-gradient(135deg, var(--c), #0A0A0A 115%); }
.cover.ph.v0::before { background: radial-gradient(circle at 85% 15%, rgba(74,222,128,.55), transparent 45%); }
.cover.ph.v1 { background: var(--c); }
.cover.ph.v1::before { background: radial-gradient(circle at 15% 90%, rgba(187,247,208,.65), transparent 50%), radial-gradient(circle at 100% 0%, rgba(0,0,0,.55), transparent 55%); }
.cover.ph.v2 { background: #0A0A0A; }
.cover.ph.v2::before { background: radial-gradient(circle at 80% 85%, var(--c) 0 32%, transparent 33%), radial-gradient(circle at 80% 85%, transparent 0 40%, rgba(74,222,128,.5) 40.5% 41.5%, transparent 42%); }
.cover.ph.v3 { background: linear-gradient(200deg, var(--c), #14532D); }
.cover.ph.v3::before { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 10px, transparent 10px 22px); }
.cover.ph.v4 { background: conic-gradient(from 210deg at 70% 40%, var(--c), #4ADE80, #15803D, var(--c)); }
.cover.ph.v4::before { background: linear-gradient(to top, rgba(0,0,0,.35), transparent 60%); }
.cover.ph.v5 { background: #0A0A0A; }
.cover.ph.v5::before { background: radial-gradient(circle at 50% 45%, var(--c), transparent 62%), radial-gradient(circle at 0% 100%, rgba(74,222,128,.35), transparent 40%); }
.ph-word {
  position: absolute; z-index: 1; left: 6cqw; bottom: -6cqh; font-family: var(--display); font-weight: 800; letter-spacing: -.05em;
  font-size: 44cqh; line-height: .8; color: rgba(255,255,255,.13); white-space: nowrap; pointer-events: none; text-transform: uppercase;
}
.cover.ph.v2 .ph-word, .cover.ph.v5 .ph-word { color: rgba(74,222,128,.16); }
.cover.ph.v1 .ph-word { left: auto; right: -2cqw; bottom: auto; top: -4cqh; }
.cover.ph.v3 .ph-word { transform: rotate(-8deg); transform-origin: left bottom; }
.ph-ico { position: relative; z-index: 2; display: inline-flex; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.cover.ph.v1 .ph-ico, .cover.ph.v4 .ph-ico { transform: translate(-18cqw, 4cqh); }
.cover.ph.v2 .ph-ico { transform: translate(22cqw, 20cqh); }
.thumb .ph-word, .rank .ph-word, .agenda-row .ph-word, .studio-row .ph-word { display: none; }
.thumb .ph-ico, .rank .ph-ico, .agenda-row .ph-ico { transform: none !important; }
.hero .cover.ph .ph-ico, .feature .cover.ph .ph-ico { transform: translate(28cqw, -18cqh); opacity: .9; }
.hero .ph-word, .feature .ph-word { font-size: 52cqh; bottom: auto; top: -10cqh; left: -2cqw; color: rgba(255,255,255,.08); }

/* Section heading icon */
.sh-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--accent); margin-right: 12px; flex-shrink: 0; }
.section-head .sh-row { display: flex; align-items: center; }

/* Stats strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 var(--gutter) 22px; border-radius: 22px; background: var(--raised); border: 1px solid var(--border); overflow: hidden; }
.stat-strip a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; transition: background-color .2s; }
.stat-strip a + a { border-left: 1px solid var(--line); }
.stat-strip a:hover { background: var(--brand-soft); }
.stat-strip .si { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-strip .n { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; display: block; }
.stat-strip .l { font-size: 12.5px; color: var(--muted); font-weight: 600; display: block; }
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-strip a:nth-child(3) { border-left: 0; } .stat-strip a:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Live ticker */
.ticker-bar { position: relative; overflow: hidden; margin: 18px var(--gutter) 0; border-radius: 16px; background: var(--ink); color: #fff; display: flex; align-items: center; }
.ticker-bar .tag { position: relative; z-index: 2; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 13px 16px; background: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
.ticker-bar .track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.ticker-bar .run { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker-bar:hover .run { animation-play-state: paused; }
.ticker-bar .run a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 13.5px; font-weight: 600; white-space: nowrap; border-right: 1px solid #1f1f1f; }
.ticker-bar .run a:hover { color: var(--accent); }
.ticker-bar .run .m { color: #8a8a8a; font-weight: 500; }
.ticker-bar .run ion-icon { color: var(--accent); }

/* Agenda timeline */
.agenda { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 22px; }
.agenda-month { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
.agenda-month .ml { position: sticky; top: calc(var(--top) + 20px); }
.agenda-month .ml .mn { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.agenda-month .ml .my { color: var(--muted); font-weight: 700; font-size: 13px; margin-top: 4px; }
.agenda-month .ml .mc { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }
.agenda-list { display: flex; flex-direction: column; border-radius: 22px; background: var(--raised); border: 1px solid var(--border); overflow: hidden; }
.agenda-row { display: grid; grid-template-columns: 58px 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; transition: background-color .2s; }
.agenda-row + .agenda-row { border-top: 1px solid var(--line); }
.agenda-row:hover { background: var(--brand-soft); }
.agenda-row .ad { text-align: center; }
.agenda-row .ad .d { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.agenda-row .ad .w { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--brand); text-transform: uppercase; margin-top: 3px; }
.agenda-row .cover { width: 64px; height: 64px; border-radius: 14px; }
.agenda-row .go { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s, transform .3s var(--spring); }
.agenda-row:hover .go { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateX(3px); }
@media (max-width: 720px) { .agenda-month { grid-template-columns: 1fr; gap: 10px; } .agenda-month .ml { position: static; } .agenda-row { grid-template-columns: 52px minmax(0, 1fr) auto; } .agenda-row .cover { display: none; } }

/* Call-to-action card */
.cta-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px; background: var(--brand); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.cta-card::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -70px; bottom: -90px; background: rgba(0,0,0,.2); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card .t-title { font-size: 24px; }

/* Empty states with a bit of life */
.inline-empty .box { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--border); background: linear-gradient(120deg, var(--brand-soft), transparent 70%), var(--raised); color: var(--text); font-weight: 600; }
.inline-empty .box .ei { width: 42px; height: 42px; border-radius: 13px; background: var(--ink); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.inline-empty .box .ea { margin-left: auto; font-size: 13px; color: var(--brand); font-weight: 700; white-space: nowrap; }

/* Next-up list inside the dark tile */
.tile-live .live-list .nd { width: 38px; text-align: center; flex-shrink: 0; }
.tile-live .live-list .nd b { display: block; font-family: var(--display); font-size: 18px; line-height: 1; }
.tile-live .live-list .nd i { display: block; font-style: normal; font-size: 9.5px; letter-spacing: 1px; color: var(--accent); font-weight: 800; }

/* ================================================================ colour layer: monsoon gradient + photo colours */

body {
  background:
    radial-gradient(1200px 520px at 8% -8%, color-mix(in srgb, var(--teal) 9%, transparent), transparent 70%),
    radial-gradient(900px 480px at 100% 0%, color-mix(in srgb, var(--lime-pop) 8%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
/* A detail page takes on the colour of its hero photo. */
body.photo-page {
  background:
    radial-gradient(1100px 620px at 50% -10%, color-mix(in srgb, var(--page-photo) 38%, transparent), transparent 72%),
    radial-gradient(800px 500px at 100% 100%, color-mix(in srgb, var(--page-photo) 16%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* Brand surfaces get the signature gradient. */
.btn:not(.secondary):not(.ghost):not(.danger):not(.dark):not(.light),
.side-mark, .side-cta, .tabbar .tab-add, .tile-pulse {
  background: var(--grad); background-size: 160% 160%; background-position: 0% 50%;
  transition: background-position .6s var(--ease), transform .3s var(--spring), opacity .2s;
}
.btn:not(.secondary):not(.ghost):not(.danger):not(.dark):not(.light):hover,
.side-cta:hover { background: var(--grad); background-size: 160% 160%; background-position: 100% 50%; }
.page-head em, .hello em, .t-display em, .t-title em {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-art h2 em { background: linear-gradient(100deg, #4ADE80, #2DD4BF 55%, #BEF264); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-hero .blob, .band .blob.a, .banner .blob.a, .auth-art .blob.a { background: radial-gradient(circle, #16A34A, rgba(13, 148, 136, .55) 45%, transparent 70%); }
.badge:not(.live):not(.verified):not(.dark):not(.demo):not(.glass) { background: var(--grad); }
.side-nav a.on::before { background: linear-gradient(#4ADE80, #2DD4BF); }
.chip.on:not(.colored) { background: var(--grad); border-color: transparent; }

/* Photos: a touch more vivid everywhere. */
.cover img, .post-img, .media-strip img, .review-media img { filter: saturate(1.14) contrast(1.03); }

/* Cards wear the colour of their photo. */
.card.has-photo {
  border-color: color-mix(in srgb, var(--photo) 34%, var(--border));
  background: linear-gradient(180deg, var(--raised) 35%, color-mix(in srgb, var(--photo) 18%, var(--raised)));
  box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--photo) 75%, transparent);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--spring);
}
.card.has-photo:hover {
  box-shadow: 0 28px 56px -22px color-mix(in srgb, var(--photo) 90%, transparent);
  border-color: color-mix(in srgb, var(--photo) 60%, var(--border));
}
.post-card.has-photo {
  border-color: color-mix(in srgb, var(--photo) 32%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--photo) 15%, var(--raised)), var(--raised) 60%);
  box-shadow: 0 20px 40px -28px color-mix(in srgb, var(--photo) 80%, transparent);
}
.feature.has-photo { box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--photo) 85%, transparent), 0 0 0 1px color-mix(in srgb, var(--photo) 40%, transparent); }
.feature.has-photo .scrim { background: linear-gradient(to top, color-mix(in srgb, var(--photo) 35%, rgba(0,0,0,.92)) 8%, rgba(0,0,0,.25) 60%, transparent); }
.feature.has-photo .f-cta { box-shadow: 0 8px 24px -8px var(--photo); }
.rank.has-photo:hover, .list-row.has-photo:hover { background: color-mix(in srgb, var(--photo) 10%, var(--raised)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--photo) 35%, transparent); }
.rank.has-photo .cover, .list-row.has-photo .cover { box-shadow: 0 10px 22px -12px var(--photo); }
.studio-row.has-photo { border-color: color-mix(in srgb, var(--photo) 30%, var(--border)); }
.hero.has-photo { box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--photo) 90%, transparent); }
.hero.has-photo::after { background: linear-gradient(to top, color-mix(in srgb, var(--photo) 30%, rgba(0,0,0,.9)) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.05) 70%); }
.review-card.has-photo { border-color: color-mix(in srgb, var(--photo) 35%, var(--border)); box-shadow: 0 20px 40px -28px var(--photo); }
.cover.ph { background: linear-gradient(135deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 55%, var(--teal))); }

/* Photo credits (Creative Commons attribution). */
.post-photo { position: relative; margin: 0; }
.photo-credit {
  position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 8px;
  background: rgba(0,0,0,.5); color: rgba(255,255,255,.88); font-size: 10.5px; font-weight: 600; line-height: 1.3;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-credit { z-index: 3; top: 22px; right: 18px; bottom: auto; max-width: 60%; }

/* Review queue */
.side-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.chip-count { margin-left: 2px; padding: 1px 7px; border-radius: 9px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: 11px; font-weight: 800; }
.status-pill.review { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
:root[data-theme="dark"] .status-pill.review { color: #2DD4BF; }
.review-list { display: flex; flex-direction: column; gap: 14px; padding: 0 var(--gutter); }
.review-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); background: var(--raised); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.review-card:not(:has(.review-media)) { grid-template-columns: minmax(0, 1fr); }
.review-media { display: block; background: var(--surface); }
.review-media img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.review-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.review-text { margin: 4px 0; opacity: .9; max-height: 9.5em; overflow: auto; overflow-wrap: anywhere; }
.review-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.review-meta a { color: var(--brand); font-weight: 600; }
.review-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.review-note { flex: 1; min-width: 160px; min-height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg); }
.review-card.decided-ok { opacity: 0; transform: translateX(40px); }
.review-card.decided-no { opacity: 0; transform: translateX(-40px); }
@media (max-width: 720px) { .review-card { grid-template-columns: 1fr; } .review-media img { max-height: 260px; } }
.approver-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #d4d4d4; font-weight: 600; }
.approver-points li { display: flex; align-items: center; gap: 10px; }
.approver-points ion-icon { color: #4ADE80; }

/* ================================================================ colourful placeholders
   No photo yet? The card still glows in its category colour, blended into a neighbouring hue,
   so a page full of placeholders reads as a colourful mosaic instead of dark tiles. */
.cover.ph.v0 { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #FDE047)); background: linear-gradient(135deg, var(--c), oklch(from var(--c) calc(l + .08) c calc(h + 55))); }
.cover.ph.v0::before { background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.45), transparent 45%); }
.cover.ph.v1 { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); background: linear-gradient(160deg, oklch(from var(--c) calc(l + .1) c calc(h - 40)), var(--c)); }
.cover.ph.v1::before { background: radial-gradient(circle at 15% 90%, rgba(255,255,255,.4), transparent 50%), radial-gradient(circle at 100% 0%, rgba(0,0,0,.18), transparent 55%); }
.cover.ph.v2 { background: var(--c); background: radial-gradient(circle at 20% 20%, oklch(from var(--c) calc(l + .12) c calc(h + 70)), var(--c) 60%); }
.cover.ph.v2::before { background: radial-gradient(circle at 80% 85%, rgba(255,255,255,.28) 0 32%, transparent 33%), radial-gradient(circle at 80% 85%, transparent 0 40%, rgba(255,255,255,.4) 40.5% 41.5%, transparent 42%); }
.cover.ph.v3 { background: linear-gradient(200deg, var(--c), color-mix(in srgb, var(--c) 60%, #0EA5E9)); background: linear-gradient(200deg, var(--c), oklch(from var(--c) l c calc(h - 70))); }
.cover.ph.v3::before { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.12) 0 10px, transparent 10px 22px); }
.cover.ph.v4 { background: conic-gradient(from 210deg at 70% 40%, var(--c), color-mix(in srgb, var(--c) 50%, #FDE047), var(--c)); background: conic-gradient(from 210deg at 70% 40%, var(--c), oklch(from var(--c) calc(l + .1) c calc(h + 45)), oklch(from var(--c) l c calc(h - 45)), var(--c)); }
.cover.ph.v4::before { background: linear-gradient(to top, rgba(0,0,0,.18), transparent 60%); }
.cover.ph.v5 { background: var(--c); background: linear-gradient(120deg, oklch(from var(--c) calc(l - .08) c calc(h + 30)), var(--c) 45%, oklch(from var(--c) calc(l + .1) c calc(h - 30))); }
.cover.ph.v5::before { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.3), transparent 62%); }
.cover.ph .ph-word, .cover.ph.v2 .ph-word, .cover.ph.v5 .ph-word { color: rgba(255,255,255,.2); }
.cover.ph .ph-ico { filter: drop-shadow(0 6px 18px rgba(0,0,0,.18)); }
.cover.ph:not(.thumb) { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
/* Placeholder cards still tint their card in the category colour. */
.card:has(.cover.ph) {
  border-color: color-mix(in srgb, var(--c, var(--brand)) 30%, var(--border));
  background: linear-gradient(180deg, var(--raised) 35%, color-mix(in srgb, var(--c, var(--brand)) 10%, var(--raised)));
}
.feature:has(.cover.ph) { background: var(--c, var(--ink)); }

/* ================================================================ full width: use the whole screen on large monitors
   (scoped to wider screens so it never overrides the tablet/phone rules above) */
.narrow { max-width: 900px; }
.hello h1 { max-width: 1200px; }
@media (min-width: 721px) {
  .content { max-width: none; padding-left: clamp(24px, 3vw, 64px); padding-right: clamp(24px, 3vw, 64px); }
  .feature .f-title { font-size: clamp(44px, 3.2vw, 64px); max-width: 860px; }
  .hero { height: clamp(500px, 36vw, 720px); }
}
@media (min-width: 1001px) {
  .bento { height: clamp(470px, 34vw, 640px); }
}
@media (min-width: 1281px) {
  .with-rail { grid-template-columns: minmax(0, 1fr) clamp(340px, 22vw, 420px); }
}
@media (min-width: 1700px) {
  .ranked { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .masonry { columns: 4 280px; }
}

/* ================================================================ responsive guards
   Single-column grids use minmax(0, 1fr): a bare 1fr can't shrink below its content's min width,
   so a nowrap chip row or tab strip would otherwise push the whole page wider than the phone. */
.main { overflow-x: clip; }
@media (max-width: 1000px) {
  .with-rail, .detail-grid, .me-grid, .search-layout { grid-template-columns: minmax(0, 1fr); }
  .ranked { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) { .auth-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .bento, .agenda-month, .grid-cards.three, .review-card { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-wrap: wrap; align-items: center; }
  .section-head .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .section-head .seg::-webkit-scrollbar { display: none; }
  .seg button, .seg a { padding: 8px 12px; white-space: nowrap; }
  .page-head { gap: 14px; margin-bottom: 20px; }
  .widget { padding: 16px; border-radius: var(--r-lg); }
  .action-card { padding: 18px; border-radius: var(--r-lg); }
  .studio-hero { padding: 24px 20px; border-radius: 24px; }
  .studio-hero .stats-row { gap: 24px; flex-wrap: wrap; }
  .studio-hero .stats-row .t-title { font-size: 30px; }
  .stats .stat { padding: 0 8px; }
  .thread-card { padding: 16px; border-radius: 18px; }
  .crumbs [aria-current] { max-width: 22ch; }
  .crumbs { padding: 0 var(--gutter) 10px; }
  .pad > .crumbs { padding-left: 0; padding-right: 0; }
  .media-strip img { width: 70vw; max-width: 260px; height: 150px; }
  .masonry { columns: 1; }
  .tile-pulse .count { font-size: 64px; }
  .hero-credit { max-width: calc(100% - 80px); }
  .ticker-bar .tag { padding: 12px; letter-spacing: 1px; }
  .post-card.w280 { width: 280px; }
  .place-card, .place-card.w220, .place-card.w240 { width: min(78vw, 290px); }
  .event-card { width: min(78vw, 280px); }
  .grid-cards .place-card, .grid-cards .event-card { width: auto; }
}
@media (max-width: 380px) {
  .stat-strip a { padding: 12px; gap: 10px; }
  .stat-strip .si { width: 36px; height: 36px; }
  .stat-strip .n { font-size: 24px; }
  .tabbar a { font-size: 9.5px; }
}
@media (max-width: 720px) {
  .pad:has(> .crumbs) + .banner { margin-top: 0; }
  .map-side-head > .seg { margin: 0 16px; align-self: flex-start; }
}
