/* Playhood — 밝고 아기자기한 테마 (항상 밝은 화면) */
:root {
  --bg: #FFF8EF; --surface: #FFFFFF; --surface2: #FFF1E3; --text: #1F2547; --muted: #6B6F8A; --line: #F2E4D4;
  --primary: #FF6B3D; --primary2: #FF4F6D; --primary-ink: #FFFFFF;
  --sun: #FFC83D; --sky: #2E8BFF; --mint: #22C08A; --berry: #FF5C8A; --grape: #9B5DE5;
  --danger: #E5484D; --warn: #E89A00; --ok: #17A974;
  --going: #17B57D; --maybe: #F2A900; --no: #9A9DB0;
  --shadow: 0 1px 2px rgba(31,37,71,.05), 0 8px 24px rgba(255,107,61,.10);
  --shadow-lg: 0 2px 4px rgba(31,37,71,.06), 0 16px 40px rgba(255,107,61,.16);
  --radius: 20px; --tabh: 66px;
  --font-fun: 'Baloo 2', 'Jua', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", Roboto, sans-serif;
  padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent; overflow-x: hidden; min-height: 100vh;
}
body::before { /* 은은한 색 방울 배경 */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 320px at 8% 12%, rgba(255,200,61,.20), transparent 70%),
    radial-gradient(380px 300px at 95% 30%, rgba(46,139,255,.12), transparent 70%),
    radial-gradient(460px 360px at 20% 95%, rgba(34,192,138,.13), transparent 70%),
    radial-gradient(360px 300px at 90% 92%, rgba(255,92,138,.12), transparent 70%);
}
body.intro-open { overflow: hidden; }
a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-fun); letter-spacing: -.01em; }
h1 { font-size: 1.7rem; margin: .2em 0 .5em; line-height: 1.2; word-break: keep-all; overflow-wrap: anywhere; font-weight: 800; }
h2 { font-size: 1.22rem; margin: 0 0 .6em; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; }
.pad { padding: 40px 16px; } .pad-s { padding: 12px; }
.hint { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; font-weight: 400; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* sport icon tile */
.si { --sc: #FF4F79; display: inline-grid; place-items: center; flex: none; width: 1.7em; height: 1.7em; border-radius: 30%;
  background: color-mix(in srgb, var(--sc) 15%, #fff); color: var(--sc); }
.si .ic { width: 62%; height: 62%; vertical-align: 0; }
.si.solid { background: var(--sc); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--sc) 35%, transparent); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
/* 주의: backdrop-filter는 안쪽 position:fixed(모바일 하단 탭) 기준을 헤더로 바꿔버리므로 PC에서만 사용 */
@media (min-width: 900px) { .topbar { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); } }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 3px 10px rgba(255,79,109,.3); }
.brand-name { font-family: var(--font-fun); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.brand-name b { color: var(--primary); font-weight: 800; }
.lang { width: auto; flex: none; margin-left: auto; background: var(--surface2); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px; font: inherit; font-size: .85rem; font-weight: 600; }
.tabs {
  position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 1100; display: flex;
  height: calc(var(--tabh) - 10px); padding: 5px; gap: 4px;
  background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
}
.tabs a { --tc: var(--primary); flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--muted); font-size: .72rem; font-weight: 700; min-width: 0; border-radius: 18px; transition: background .2s, color .2s; }
.tabs a:nth-child(2) { --tc: var(--sky); } .tabs a:nth-child(3) { --tc: var(--mint); } .tabs a:nth-child(4) { --tc: var(--grape); }
.tabs a:hover { text-decoration: none; }
.tabs .ti { display: grid; place-items: center; }
.tabs .ti .ic { width: 23px; height: 23px; }
.tabs a.on { color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); }
.tabs a.on .ti { animation: tabPop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes tabPop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.tabs .tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabs { position: static; height: auto; padding: 0; background: none; border: 0; box-shadow: none; gap: 6px; margin-left: 22px; }
  .tabs a { flex: none; flex-direction: row; gap: 7px; font-size: .95rem; padding: 8px 14px; }
  .tabs .ti .ic { width: 20px; height: 20px; }
}

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 42px;
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn:hover { text-decoration: none; filter: brightness(1.03); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(255,79,109,.32); }
.btn.sun { background: var(--sun); border-color: transparent; color: #4A3300; }
.btn.danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }
.btn.ghost { background: rgba(255,255,255,.7); }
.btn.sm { padding: 6px 13px; min-height: 34px; font-size: .86rem; }
.btn.block { display: flex; width: 100%; }
.btn .ic { width: 1.1em; height: 1.1em; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .9rem; min-width: 0; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 11px 14px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,107,61,.15); }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 label:first-child { grid-column: 1 / -1; } }
fieldset.loc { border: 1.5px dashed color-mix(in srgb, var(--primary) 35%, var(--line)); border-radius: var(--radius); padding: 14px; margin: 0;
  display: flex; flex-direction: column; gap: 12px; min-width: 0; background: rgba(255,255,255,.6); }
fieldset.loc legend { font-weight: 800; padding: 0 6px; font-size: .9rem; display: flex; align-items: center; gap: 5px; color: var(--primary); }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group .lbl { font-weight: 700; font-size: .9rem; }
.form label.radio { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; background: #fff; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 10px 14px; cursor: pointer; }
.form label.radio:has(input:checked) { border-color: var(--primary); background: #FFF4EE; }
.radio input { width: auto; accent-color: var(--primary); }
.form-err { background: #FFEDEE; color: var(--danger); padding: 10px 14px; border-radius: 14px; font-weight: 700; }

/* ---------- layout ---------- */
main { outline: none; }
.page { max-width: 1100px; margin: 0 auto; padding: 16px; }
.page.narrow, .form-page { max-width: 620px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
  box-shadow: var(--shadow); min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 8px; color: var(--muted); font-weight: 700; }
.empty { text-align: center; padding: 30px 16px; color: var(--text); }
.empty .art { width: 96px; height: 96px; margin: 0 auto 6px; animation: floaty 3s ease-in-out infinite; }
.empty .art svg { width: 100%; height: 100%; }
.empty p { margin: .4em 0; }
.empty .btn { margin: 4px; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.spinner { width: 34px; height: 34px; border-radius: 50%; display: inline-block;
  background: conic-gradient(var(--primary), var(--sun), var(--mint), var(--sky), var(--primary));
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%); mask: radial-gradient(circle, transparent 55%, #000 57%);
  animation: spin .8s linear infinite; }
.spinner.sm { width: 20px; height: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- explore ---------- */
.explore { display: flex; flex-direction: column; }
.ex-top { padding: 12px 16px 4px; position: relative; z-index: 1000; }
.hello { display: flex; align-items: center; gap: 10px; max-width: 1400px; margin: 0 auto 10px; }
.hello .faces { display: flex; flex: none; }
.hello .faces span { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid #fff; margin-left: -8px; box-shadow: 0 2px 6px rgba(31,37,71,.12); }
.hello .faces span:first-child { margin-left: 0; }
.hello-txt { font-family: var(--font-fun); font-weight: 700; font-size: 1.12rem; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.hello-txt small { display: block; font-family: system-ui, sans-serif; font-weight: 500; font-size: .8rem; color: var(--muted); }
.search { display: flex; gap: 8px; max-width: 1400px; margin: 0 auto; }
.search .sbox { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 6px 0 16px; box-shadow: var(--shadow); min-width: 0; }
.search .sbox:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,107,61,.15); }
.search .sbox .ic { color: var(--muted); }
.search input { border: 0; box-shadow: none !important; padding: 11px 4px; background: transparent; border-radius: 0; }
.search .btn { min-height: 38px; padding: 6px 16px; }
.sresults {
  position: absolute; left: 16px; right: 16px; top: calc(100% - 50px); max-width: 700px; max-height: 60vh; overflow: auto; z-index: 1050;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.lp-results.sresults { position: static; max-height: 240px; }
.sr-h { font-size: .76rem; font-weight: 800; color: var(--muted); padding: 10px 14px 2px; text-transform: uppercase; letter-spacing: .04em; }
.sr { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none;
  color: var(--text); font: inherit; font-weight: 400; cursor: pointer; border-bottom: 1px solid var(--line); }
.sr:hover { background: var(--surface2); text-decoration: none; }
.sr > .ic { color: var(--primary); }
.sr span:not(.si) { display: flex; flex-direction: column; min-width: 0; }
.sr small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr .si { font-size: 1.1rem; }
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 12px 2px 6px; scrollbar-width: none; max-width: 1400px; margin: 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  --sc: var(--primary); flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 5px 6px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform .12s;
}
.chip.all { padding-left: 13px; }
.chip:active { transform: scale(.94); }
.chip .si { font-size: .9rem; }
.chip.on { background: var(--sc); color: #fff; border-color: var(--sc); box-shadow: 0 4px 12px color-mix(in srgb, var(--sc) 35%, transparent); }
.chip.on .si { background: rgba(255,255,255,.25); color: #fff; }
.ex-body { display: flex; flex-direction: column; }
.ex-map { position: relative; height: 44vh; min-height: 260px; margin: 4px 16px 0; border-radius: 24px; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow); }
#map { position: absolute; inset: 0; }
.map-btn {
  position: absolute; right: 12px; bottom: 14px; z-index: 800; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: #fff; color: var(--sky); cursor: pointer; box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.map-btn .ic { width: 24px; height: 24px; }
.ex-list { padding: 14px 16px 24px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.list-head .muted { font-weight: 700; }
@media (min-width: 900px) {
  .ex-body { flex-direction: row-reverse; height: calc(100vh - 200px); padding: 0 16px 16px; gap: 18px; max-width: 1400px; margin: 0 auto; width: 100%; }
  .ex-map { flex: 1; height: auto; margin: 0; }
  .ex-list { width: 410px; flex: none; overflow-y: auto; padding: 0 6px 0 0; }
}

/* ---------- club card ---------- */
.club-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 12px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 400; box-shadow: var(--shadow); min-width: 0;
  transition: transform .15s, box-shadow .15s;
}
.club-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cc-icon .si { font-size: 1.7rem; }
.cc-body { flex: 1; min-width: 0; }
.cc-title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cc-title b { font-size: 1.04rem; overflow-wrap: anywhere; }
.cc-meta, .cc-where, .cc-sched { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; display: flex; align-items: center; gap: 5px; }
.cc-meta .ic, .cc-where .ic, .cc-sched .ic { width: 15px; height: 15px; }
.cc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.together { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--text); }
.faces-mini { display: inline-flex; }
.faces-mini i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; display: inline-block; }
.faces-mini i:first-child { margin-left: 0; }
.next { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; background: #FFF4CC; color: #7A5200; padding: 2px 9px; border-radius: 999px; }
.next .ic { width: 13px; height: 13px; }
.cc-dist { flex: none; font-weight: 800; color: var(--sky); font-size: .82rem; white-space: nowrap; background: #EAF3FF; padding: 3px 9px; border-radius: 999px; }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.role-owner { background: #FFF1C2; color: #8A5A00; }
.role-admin { background: #EAF3FF; color: #1F6FD6; }
.role-member { background: #E4F8EF; color: #12825A; }
.role-pending { background: #FFF0E0; color: #B86200; }

/* ---------- map pins ---------- */
.pin-wrap { background: none; border: 0; }
.pin {
  --sc: var(--primary); width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--sc); border: 3px solid #fff;
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(31,37,71,.3); transition: transform .15s;
}
.pin > .si { transform: rotate(45deg); background: transparent; color: #fff; font-size: 1.15rem; box-shadow: none; }
.pin.active { transform: rotate(-45deg) scale(1.22); z-index: 1000; }
.pop b { display: block; margin-bottom: 2px; font-size: .95rem; }
.pop a { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; }
.leaflet-container { font: inherit; background: #F3EEE6; }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow-lg); }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-bar a { color: var(--text) !important; }
.leaflet-top, .leaflet-bottom { z-index: 800; }

/* ---------- club detail ---------- */
.hero { --sc: var(--primary); position: relative; overflow: hidden; display: flex; gap: 16px; align-items: center; margin-bottom: 12px; padding: 20px;
  border-radius: 26px; background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 22%, #fff), color-mix(in srgb, var(--sun) 22%, #fff)); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--sc) 18%, transparent); }
.hero::before { width: 160px; height: 160px; right: -40px; top: -60px; }
.hero::after { width: 90px; height: 90px; right: 70px; bottom: -50px; background: rgba(255,255,255,.5); }
.hero-icon { position: relative; z-index: 1; flex: none; }
.hero-icon .si { font-size: 3.4rem; border-radius: 28%; }
.hero-txt { min-width: 0; position: relative; z-index: 1; }
.hero h1 { margin: 0 0 4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.75); padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.hero-meta .ic { width: 14px; height: 14px; }
.crew { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; font-size: .9rem; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.desc { white-space: pre-wrap; margin: 0 0 12px; overflow-wrap: anywhere; }
.info-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); overflow-wrap: anywhere; min-width: 0; align-items: flex-start; }
.info-row > div { min-width: 0; }
.info-row .bub { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; }
.info-row .bub .ic { width: 19px; height: 19px; }
.bub.c1 { background: #FFF1C2; color: #B07A00; } .bub.c2 { background: #FFE6EC; color: var(--berry); }
.bub.c3 { background: #E4F8EF; color: var(--mint); } .bub.c4 { background: #EFE7FF; color: var(--grape); }
.info-row .lbl { font-size: .76rem; color: var(--muted); font-weight: 700; }
.info-row a { display: inline-flex; align-items: center; gap: 3px; }
.mini-map { height: 220px; border-radius: var(--radius); overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow); margin-bottom: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sec-head h2 { margin: 0; }
.count { display: inline-block; min-width: 24px; text-align: center; font-size: .8rem; background: var(--primary); color: #fff; border-radius: 999px; padding: 1px 8px; font-family: system-ui, sans-serif; vertical-align: 2px; }
.mem-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.mem-row:first-child { border-top: 0; }
.mem-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(31,37,71,.15); }
.avatar.lg { width: 60px; height: 60px; font-size: 1.5rem; }
.avs { display: inline-flex; }
.avs .avatar { width: 32px; height: 32px; font-size: .8rem; margin-left: -9px; }
.avs .avatar:first-child { margin-left: 0; }
.avs .more { background: #fff; color: var(--text); }
.mini-sel { width: auto; padding: 4px 8px; font-size: .9rem; border-radius: 10px; }
.manage { display: flex; flex-wrap: wrap; gap: 8px; }
.past summary, .att summary { cursor: pointer; color: var(--muted); font-size: .88rem; margin-top: 6px; font-weight: 700; }
.past-row { font-size: .88rem; padding: 3px 0; color: var(--muted); }
.past-row span { display: inline-block; min-width: 90px; }

/* ---------- meetup ---------- */
.meetup { --sc: var(--primary); display: flex; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); min-width: 0; }
#meetupList .meetup:first-child { border-top: 0; }
#mtList .meetup, #myMt .meetup { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.mt-date { flex: none; width: 56px; text-align: center; border-radius: 16px; padding: 6px 0; display: flex; flex-direction: column; line-height: 1.15; align-self: flex-start;
  background: color-mix(in srgb, var(--sc) 82%, #1F2547); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--sc) 30%, transparent); }
.mt-date .mon { font-size: .7rem; font-weight: 800; opacity: .9; }
.mt-date .day { font-size: 1.45rem; font-weight: 800; font-family: var(--font-fun); line-height: 1.1; }
.mt-date .wd { font-size: .7rem; opacity: .9; }
.mt-body { flex: 1; min-width: 0; }
.mt-club { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; font-weight: 700; }
.mt-club .si { font-size: .85rem; }
.mt-title { overflow-wrap: anywhere; font-size: 1.02rem; display: flex; align-items: center; gap: 6px; }
.edit-link { color: var(--muted); display: inline-flex; }
.mt-meta { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mt-meta .ic { width: 15px; height: 15px; }
.mt-note { font-size: .88rem; white-space: pre-wrap; background: #FFF8E1; border-radius: 12px; padding: 7px 11px; margin-top: 6px; overflow-wrap: anywhere; }
.full { color: var(--danger); }
.rsvp { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.rs { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); background: #fff; color: var(--text); border-radius: 999px;
  padding: 5px 13px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: transform .12s; }
.rs .ic { width: 15px; height: 15px; }
.rs:active { transform: scale(.93); }
.rs:disabled { opacity: .45; cursor: default; }
.rs.on.going { background: var(--going); border-color: var(--going); color: #fff; box-shadow: 0 4px 12px rgba(23,181,125,.35); }
.rs.on.maybe { background: var(--maybe); border-color: var(--maybe); color: #fff; }
.rs.on.no { background: var(--no); border-color: var(--no); color: #fff; }
.att-chip { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; margin: 5px 4px 0 0; border-radius: 999px; background: #E4F8EF; color: #12825A; }
.att-chip.maybe { background: #FFF4CC; color: #7A5200; }
.day-h { font-size: 1.02rem; margin: 20px 0 8px; display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 3px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.filters select { width: auto; flex: 1 1 140px; border-radius: 999px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.page-head .si { font-size: 1.6rem; }
.page-head h1 { margin: 0; }

/* ---------- location picker ---------- */
.lp-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-tools input { flex: 1 1 180px; border-radius: 999px; }
.lp-map { height: 280px; border-radius: 18px; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow); }

/* ---------- profile / auth ---------- */
.profile { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #FFF1C2, #FFE1EA); border: 0; }
.profile > div { min-width: 0; overflow-wrap: anywhere; }
.profile b { font-family: var(--font-fun); font-size: 1.25rem; }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; cursor: pointer; }
.switch-row input { width: 44px; height: 26px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: #E3DED6; position: relative; padding: 0; border: 0; cursor: pointer; flex: none; transition: background .2s; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.switch-row input:checked { background: var(--mint); }
.switch-row input:checked::after { left: 21px; }
.switch-row span { flex: 1; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 700; }
.auth-hero { text-align: center; margin: 6px 0 14px; }
.auth-hero .logo-svg { width: 92px; height: 92px; animation: floaty 3s ease-in-out infinite; }
.auth-hero h1 { margin: 6px 0 2px; }
.club-list { margin-bottom: 18px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabh) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px) scale(.95);
  max-width: calc(100% - 32px); background: var(--text); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: .25s cubic-bezier(.3,1.4,.5,1); z-index: 2000; text-align: center; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.ok { background: var(--going); }
.toast.err { background: var(--danger); }
.toast.warn { background: #B86200; }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* =================== INTRO =================== */
.intro { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(165deg, #FFF3DF 0%, #FFE3EC 52%, #E2F0FF 100%); transition: opacity .45s, transform .45s; }
.intro.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.intro-blobs span { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; animation: blob 7s ease-in-out infinite; }
.intro-blobs span:nth-child(1) { width: 220px; height: 220px; background: #FFD66B; left: -60px; top: 8%; }
.intro-blobs span:nth-child(2) { width: 170px; height: 170px; background: #8FD9B9; right: -50px; top: 22%; animation-delay: -2s; }
.intro-blobs span:nth-child(3) { width: 260px; height: 260px; background: #A9CCFF; left: 10%; bottom: -110px; animation-delay: -4s; }
.intro-blobs span:nth-child(4) { width: 140px; height: 140px; background: #FFB3C6; right: 12%; bottom: 10%; animation-delay: -1s; }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(14px, -18px) scale(1.08); } }
.intro-ready { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; transition: opacity .3s, transform .3s; }
.intro-logo .logo-svg { width: 132px; height: 132px; filter: drop-shadow(0 12px 24px rgba(255,79,109,.35)); animation: floaty 2.6s ease-in-out infinite; }
.intro-name { font-family: var(--font-fun); font-weight: 800; font-size: 3.1rem; line-height: 1; margin-top: 12px;
  background: linear-gradient(90deg, #FF6B3D, #FF4F6D 40%, #9B5DE5 75%, #2E8BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-hello { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 10px 0 22px; max-width: 300px; word-break: keep-all; }
.intro-go { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.15rem;
  color: #fff; padding: 16px 30px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 26px rgba(255,79,109,.42); position: relative; animation: pulse 1.6s ease-in-out infinite; }
.intro-go .ic { width: 22px; height: 22px; }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(255,79,109,.42), 0 0 0 0 rgba(255,107,61,.45); }
  50% { transform: scale(1.05); box-shadow: 0 10px 26px rgba(255,79,109,.42), 0 0 0 14px rgba(255,107,61,0); } }
.intro-sound { margin-top: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--text); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow); }
.intro-sound .ic { width: 22px; height: 22px; }
.intro-skip { position: absolute; z-index: 3; top: calc(14px + env(safe-area-inset-top)); right: 14px; border: 0; background: rgba(255,255,255,.7);
  color: var(--muted); font: inherit; font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.intro-stage { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; visibility: hidden; }
.intro.play .intro-ready { opacity: 0; transform: scale(.85); pointer-events: none; }
.intro.play .intro-stage { visibility: visible; }
.intro-center { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.intro-hero .logo-svg { width: 230px; height: 230px; overflow: visible; }
.intro-hero .logo-svg g { transform-box: fill-box; }
.intro.play .lp-pin { transform-origin: 50% 100%; animation: pinPop .55s cubic-bezier(.3,1.6,.5,1) .05s both; }
.intro.play .lp-l { animation: runL 1s linear .25s both; }
.intro.play .lp-r { animation: runR 1s linear .3s both; }
.intro.play .lp-c { transform-origin: 50% 100%; animation: jumpIn .75s cubic-bezier(.3,1.3,.5,1) .6s both; }
.intro.play .lp-people { transform-origin: 50% 100%; animation: huddle .45s ease-out 1.36s both; }
.intro.play .lp-spark { transform-origin: center; animation: sparkPop .6s cubic-bezier(.3,1.8,.5,1) 1.45s both; }
.intro-stage .lp-spark { opacity: 0; }
@keyframes pinPop { 0% { transform: scale(0) translateY(-60px); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes runL { 0% { transform: translate(-340px, 0); } 12% { transform: translate(-300px, -16px); } 25% { transform: translate(-255px, 0); }
  37% { transform: translate(-210px, -16px); } 50% { transform: translate(-165px, 0); } 62% { transform: translate(-120px, -16px); }
  75% { transform: translate(-75px, 0); } 87% { transform: translate(-30px, -12px); } 100% { transform: translate(0, 0); } }
@keyframes runR { 0% { transform: translate(340px, 0); } 12% { transform: translate(300px, -16px); } 25% { transform: translate(255px, 0); }
  37% { transform: translate(210px, -16px); } 50% { transform: translate(165px, 0); } 62% { transform: translate(120px, -16px); }
  75% { transform: translate(75px, 0); } 87% { transform: translate(30px, -12px); } 100% { transform: translate(0, 0); } }
@keyframes jumpIn { 0% { transform: translateY(240px) scale(.6); opacity: 0; } 60% { transform: translateY(-30px) scale(1.06); opacity: 1; } 100% { transform: translateY(0) scale(1); } }
@keyframes huddle { 0% { transform: scale(1); } 35% { transform: scale(1.12, .9); } 65% { transform: scale(.94, 1.08) translateY(-6px); } 100% { transform: scale(1); } }
@keyframes sparkPop { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.intro-ring > span { position: absolute; left: 50%; top: 50%; margin: -22px 0 0 -22px; opacity: 0;
  transform: rotate(calc(var(--i) * 45deg)) translateY(-150px) rotate(calc(var(--i) * -45deg)) scale(0); }
.intro-ring .si { font-size: 1.6rem; }
.intro.play .intro-ring > span { animation: ringPop .5s cubic-bezier(.3,1.7,.5,1) both; animation-delay: calc(1.5s + var(--i) * .07s); }
@keyframes ringPop { to { opacity: 1; transform: rotate(calc(var(--i) * 45deg)) translateY(-150px) rotate(calc(var(--i) * -45deg)) scale(1); } }
.intro.play .intro-ring { animation: ringSpin 6s linear 1.5s both; }
@keyframes ringSpin { to { transform: rotate(40deg); } }
.intro-confetti { position: absolute; left: 50%; top: 45%; }
.intro-confetti i { position: absolute; width: 10px; height: 10px; animation: burst 1.3s cubic-bezier(.15,.7,.4,1) both; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.4); opacity: 1; }
  70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 90px)) rotate(var(--r)) scale(1); opacity: 0; } }
.intro-title { font-family: var(--font-fun); font-weight: 800; font-size: 3.3rem; line-height: 1; margin-top: 4px; display: flex; }
.intro-title span { display: inline-block; opacity: 0; color: var(--primary); text-shadow: 0 4px 0 rgba(31,37,71,.08); }
.intro-title span:nth-child(6n+2) { color: var(--primary2); } .intro-title span:nth-child(6n+3) { color: #E39B0B; }
.intro-title span:nth-child(6n+4) { color: var(--mint); } .intro-title span:nth-child(6n+5) { color: var(--sky); } .intro-title span:nth-child(6n) { color: var(--grape); }
.intro.play .intro-title span { animation: letterIn .5s cubic-bezier(.3,1.8,.5,1) both; animation-delay: calc(1.75s + var(--i) * .065s); }
@keyframes letterIn { 0% { opacity: 0; transform: translateY(40px) scale(.4) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
.intro-tag { font-weight: 800; font-size: 1.1rem; color: var(--text); margin: 12px 20px 0; opacity: 0; text-align: center; word-break: keep-all; }
.intro.play .intro-tag { animation: fadeUp .5s ease-out 2.5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-height: 620px) { .intro-center { transform: scale(.8); margin: -30px 0; } }
@media (prefers-reduced-motion: reduce) {
  .intro *, .intro { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
