/* 무팅 v1 화면 — 시안 v8 「도파민」: 검정 #111 · 핫핑크 그라데이션 CTA · 라임 포인트 · Pretendard */
:root {
  --ink: #111; --hot: #FF2E55; --hot2: #FF6A3D; --lime: #D7FF3A; --live: #2BE36B; --kakao: #FEE500;
  --g1: #F3F3F5; --g2: #E8E8EC; --g3: #9A9AA2; --g4: #5C5C66; --ok: #12A150;
  --grad: linear-gradient(135deg, var(--hot), var(--hot2));
  --tabh: 64px; --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink); background: #E9E9EC; letter-spacing: -0.2px; -webkit-font-smoothing: antialiased;
  min-height: 100dvh; word-break: keep-all; overflow-wrap: anywhere;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.app {
  max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; outline: none;
  padding-top: var(--st); background: #fff; box-shadow: 0 0 40px rgba(0, 0, 0, .08);
}
body[data-theme="dark"] .app { background: var(--ink); color: #fff; }
body:has(nav.tabs:not([hidden])) .app { padding-bottom: calc(var(--tabh) + var(--sb) + 12px); }
.loading { padding: 40vh 0; text-align: center; color: var(--g3); font-weight: 700; }

/* ---------- 공통 조각 ---------- */
.logo { font-size: 26px; font-weight: 900; letter-spacing: -1.4px; color: var(--hot); }
.logo em { font-style: normal; color: var(--lime); }
body[data-theme="light"] .logo em { color: var(--ink); }
.hdr {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px 10px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
}
.hdr .title { font-size: 26px; font-weight: 900; letter-spacing: -1px; }
.hdr .evname { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.8px; }
.hdr .evmeta { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--g4); margin-top: 2px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(43, 227, 107, .22); }
.hdr .left { flex: none; font-size: 12px; font-weight: 800; background: var(--lime); border-radius: 999px; padding: 7px 11px; }
.pad { padding: 4px 16px 20px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 18px;
  border-radius: 28px; font-size: 16.5px; font-weight: 900; letter-spacing: -.4px; text-align: center; margin-top: 10px;
  transition: transform .12s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.hot { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(255, 46, 85, .28); }
.btn.kakao { background: var(--kakao); color: #191600; }
.btn.kakao svg { width: 22px; height: 22px; fill: #191600; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.white { background: #fff; color: var(--hot); }
.btn.ghost { background: var(--g1); color: var(--ink); }
.btn.ghost-d { background: rgba(255, 255, 255, .1); color: #fff; }
.btn.plain, .btn.plain-d { background: none; color: inherit; min-height: 44px; font-size: 14.5px; font-weight: 800; opacity: .85; }
.btn.sent { background: var(--g1); color: var(--g4); font-size: 14px; }
.btn.sm { min-height: 46px; font-size: 15px; margin-top: 0; }
.btn.xs { min-height: 38px; width: auto; align-self: flex-start; display: inline-flex; font-size: 13.5px; padding: 0 16px; margin-top: 8px; box-shadow: none; }
.link { font-size: 13.5px; font-weight: 800; color: inherit; opacity: .7; text-decoration: underline; padding: 8px; }
.chip {
  min-height: 40px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 800;
  background: var(--g1); color: var(--g4); border: 1.5px solid transparent;
}
.chip.on { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mbti {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 11.5px;
  font-weight: 900; letter-spacing: .4px; background: var(--c, #555); color: #fff;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.fine { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .55); text-align: center; margin-top: 12px; line-height: 1.5; }
.fine.light, .fine.dark { color: var(--g3); }
.sub { font-size: 14.5px; font-weight: 600; line-height: 1.55; color: rgba(255, 255, 255, .72); margin-top: 10px; }
.emptycard {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 20px; border-radius: 22px; background: var(--g1);
  text-align: center; margin-top: 10px;
}
.emptycard b { font-size: 17px; font-weight: 900; }
.emptycard span { font-size: 13.5px; font-weight: 600; color: var(--g4); line-height: 1.5; }
.emptycard b.inline { font-size: 14px; color: var(--ink); }
.emptycard .btn.ghost { background: #fff; border: 1.5px solid var(--g2); }
.notice { background: #FFF0F3; color: #B4183A; font-size: 13.5px; font-weight: 700; line-height: 1.5; border-radius: 16px; padding: 13px 15px; margin: 6px 0 4px; }
.ph { display: block; background: linear-gradient(135deg, #2a2a30, #44444d); }

/* ---------- 예시(AI 가상 인물) ---------- */
.exbadge {
  position: absolute; top: 6px; right: 6px; z-index: 2; font-size: 10.5px; font-weight: 900; letter-spacing: 0;
  color: var(--ink); background: rgba(255, 255, 255, .92); border-radius: 6px; padding: 2px 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.exphoto { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #fff; }
.exphoto .grid4 img { filter: blur(.8px); }
.examples { margin-top: 14px; }
.exnote { font-size: 13px; font-weight: 800; color: var(--g4); margin-bottom: 8px; }
.excards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.excard figcaption { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.excard b { font-size: 12.5px; font-weight: 900; }
.excard small { font-size: 10.5px; font-weight: 600; color: var(--g4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 10px; border-radius: 18px; background: var(--g1); }
.preview .exphoto { width: 92px; flex: none; }
.preview .exphoto .grid4 img { filter: none; }
.pv-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pv-text b { font-size: 16px; font-weight: 900; }
.pv-text b small { font-size: 12px; color: var(--g4); font-weight: 700; }
.pv-text > small { font-size: 12.5px; font-weight: 700; color: var(--g4); }
.pv-text em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--hot); }

/* ---------- 예시 학교(v1.3) ---------- */
.demobanner { margin: 4px 16px 10px; padding: 10px 14px; border-radius: 14px; background: var(--lime); color: var(--ink); font-size: 13.5px; font-weight: 700; text-align: center; }
.demobanner b { font-weight: 900; }
.pad > .demobanner { margin: 4px 0 10px; }
.demotag { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 28px; background: var(--g1); color: var(--g4); font-size: 14px; font-weight: 800; }
.emptycard .btn.ink { margin-top: 10px; }

/* ---------- 학교: 교표(승인된 것만, 변형 금지) 또는 중립 배지 ---------- */
.school { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 800; color: var(--g4); }
.sname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sname.muted { color: var(--g3); }
.emblem {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--g2);
  display: grid; place-items: center; /* 자르지 않음: overflow는 그대로, 이미지는 원 안 정사각 영역(70%)에 contain */
}
.emblem img { width: 70%; height: 70%; object-fit: contain; }
.emblem.badge { background: var(--hot); border-color: var(--hot); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: -.5px; white-space: nowrap; overflow: hidden; }
.emblem.badge[data-len="3"] { font-size: 9px; letter-spacing: -.6px; }
.hdr > .school { background: var(--g1); border-radius: 999px; padding: 4px 12px 4px 4px; max-width: 60%; }
.evhead .school { margin-bottom: 4px; font-size: 12.5px; }
.evhead .emblem { width: 24px; height: 24px; }
.evhead .emblem.badge { font-size: 9.5px; }
.evhead .emblem.badge[data-len="3"] { font-size: 7.5px; }
#schoolPicked .picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--g1); }
#schoolPicked .school { font-size: 15px; color: var(--ink); }
#schoolSearch .inp { margin-top: 8px; }
.schlist { list-style: none; margin-top: 6px; display: grid; gap: 4px; }
.schopt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; text-align: left; font-size: 15px; font-weight: 800; background: #fff; border: 1.5px solid var(--g2); }
.schopt:hover, .schopt:focus-visible { border-color: var(--ink); }
.schlist .none { font-size: 12.5px; font-weight: 600; color: var(--g4); padding: 6px 2px; }
#schoolSearch .link { display: block; margin-top: 4px; padding-left: 0; }

/* ---------- 첫 화면 ---------- */
.landing { min-height: 100dvh; display: flex; flex-direction: column; padding: 18px 22px calc(26px + var(--sb)); }
.livechip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 800;
}
.livechip i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(43, 227, 107, .25); }
.hero-h { font-size: 34px; font-weight: 900; letter-spacing: -1.6px; line-height: 1.16; margin-top: 18px; }
.hero-h em { font-style: normal; color: var(--lime); }
.hero-h.sm { font-size: 28px; letter-spacing: -1.2px; }
.frames { position: relative; height: 210px; margin: 26px 0 8px; }
.frames i {
  position: absolute; top: 18px; width: 128px; height: 166px; border-radius: 8px; background: #2a2a30;
  left: 50%; transform: translateX(-135%) rotate(-8deg); box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
}
/* 옆 카드는 다른 팀 컷을 흐리게 — 「다른 팀은 들어가야 보여요」 */
.frames i.side { overflow: hidden; background: #fff; padding: 6px 6px 20px; }
.frames i.side img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: blur(4px) brightness(.8); }
.frames i.r { transform: translateX(35%) rotate(8deg); }
.frames i.r b {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.frames i.mid {
  z-index: 2; top: 0; transform: translateX(-50%) rotate(-2deg); background: #fff; padding: 8px 8px 24px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; height: 196px; width: 146px;
}
.frames i.mid img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 20%; border-radius: 2px; }
.frames .exbadge { left: 50%; right: auto; top: auto; bottom: 0; transform: translateX(-50%); z-index: 3; }
.checks { list-style: none; margin: 14px 0 auto; display: grid; gap: 9px; padding-bottom: 22px; }
.checks li { font-size: 15.5px; font-weight: 700; color: rgba(255, 255, 255, .88); }
.checks li::before { content: "✓"; color: var(--lime); font-weight: 900; margin-right: 10px; }

/* ---------- 가운데 정렬 상태 화면 ---------- */
.center { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 24px calc(24px + var(--sb)); text-align: left; }
.center .btn { margin-top: 14px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: var(--lime); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bigicon { width: 58px; height: 58px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 30px; font-weight: 900; }

/* ---------- 온보딩 ---------- */
.ob { padding: 14px 20px calc(30px + var(--sb)); display: flex; flex-direction: column; }
.ob-top { display: flex; align-items: center; justify-content: space-between; }
.ob-top .step { font-size: 12.5px; font-weight: 800; color: var(--hot); }
.q { font-size: 30px; font-weight: 900; letter-spacing: -1.4px; line-height: 1.15; margin-top: 18px; }
.q b { color: var(--hot); }
.qs { font-size: 13.5px; color: var(--g4); font-weight: 600; margin: 8px 0 4px; }
.fld { display: block; margin-top: 18px; font-size: 13px; font-weight: 900; border: 0; min-width: 0; }
.fld legend { padding: 0; margin-bottom: 8px; }
.fld small { color: var(--g3); font-weight: 700; }
.fld > .inp, .fld > .at, .fld > .chips, .fld > .row2 { margin-top: 8px; }
.inp {
  display: block; width: 100%; min-height: 50px; border-radius: 14px; background: var(--g1); border: 1.5px solid transparent;
  padding: 12px 14px; font-size: 16px; font-weight: 700; color: var(--ink);
}
.inp:focus { outline: none; border-color: var(--ink); background: #fff; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--g4) 50%), linear-gradient(135deg, var(--g4) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea.inp { resize: vertical; min-height: 80px; }
.at { display: block; position: relative; }
.at::before { content: "@"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 900; color: var(--g3); font-size: 16px; }
.at .inp { padding-left: 34px; }
.hint { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--g4); }
.row2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.row2 .fld { margin-top: 18px; }
.row2.tight { grid-template-columns: 1fr auto; align-items: center; margin-top: 8px; }
.row2.tight .btn { width: auto; }
.mbti-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mbti-pick .pair { display: grid; gap: 6px; }
.mbti-pick .chip { min-height: 44px; padding: 0; font-size: 17px; font-weight: 900; }
.mbti-pick .chip.on { background: var(--hot); color: #fff; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; font-weight: 800; }
.check input { width: 24px; height: 24px; accent-color: var(--hot); }
.err { min-height: 20px; margin-top: 12px; font-size: 13.5px; font-weight: 800; color: #E5484D; }

/* ---------- 홈 ---------- */
.mystrip {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--ink); color: #fff; margin: 6px 0 4px;
}
.mystrip img, .mystrip .ph { width: 46px; height: 58px; border-radius: 10px; object-fit: cover; flex: none; }
.mystrip span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mystrip b { font-size: 14.5px; font-weight: 900; }
.mystrip small { font-size: 12.5px; font-weight: 700; color: var(--lime); }
.mystrip.published small { color: #8ef0ad; }
.mystrip.hidden small { color: rgba(255, 255, 255, .6); }
.mystrip em { margin-left: auto; font-style: normal; font-size: 22px; opacity: .6; }
.livecard {
  position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 18px; margin-top: 12px; border-radius: 26px; overflow: hidden;
  color: #fff; background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 106, 61, .9), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(255, 46, 85, .85), transparent 60%), var(--ink);
}
.livecard .livechip { margin-top: 0; background: rgba(0, 0, 0, .35); }
.livecard strong { font-size: 32px; font-weight: 900; letter-spacing: -1.4px; line-height: 1.12; margin-top: auto; }
.livecard .until { font-size: 13px; font-weight: 700; opacity: .85; margin-top: 8px; }
.livecard .go {
  position: absolute; right: 16px; bottom: 16px; background: var(--lime); color: var(--ink); font-weight: 900; font-size: 14px;
  border-radius: 999px; padding: 10px 15px; transform: rotate(-2deg);
}
.howto { margin-top: 12px; padding: 15px 16px; border-radius: 18px; background: var(--g1); font-size: 13.5px; }
.howto b { font-weight: 900; }
.howto ol { margin: 8px 0 0 18px; display: grid; gap: 4px; font-weight: 600; color: var(--g4); }
.sec { margin-top: 24px; }
.sec h2 { font-size: 17px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.sec h2 small { font-size: 12.5px; font-weight: 800; color: var(--g3); }
.sec h2 small.hot { color: #fff; background: var(--hot); border-radius: 999px; padding: 2px 8px; }
.rank { list-style: none; display: grid; gap: 6px; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--g1); font-weight: 800; font-size: 14.5px; }
.rank .no { width: 22px; font-weight: 900; color: var(--g3); }
.rank .dn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank li.top { background: var(--ink); color: #fff; }
.rank li.t1 { background: var(--grad); }
.rank li.top .no { color: var(--lime); }
.evlist { list-style: none; display: grid; gap: 8px; }
.evlist a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--g2); }
.evlist span { display: flex; flex-direction: column; gap: 3px; }
.evlist b { font-weight: 900; font-size: 15px; }
.evlist small { font-size: 12.5px; font-weight: 600; color: var(--g4); }
.evlist em { font-style: normal; font-weight: 900; color: var(--hot); }

/* ---------- 피드 카드 ---------- */
.cards { display: grid; gap: 18px; margin-top: 10px; }
.tcard { border-radius: 26px; background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .1); overflow: hidden; }
.tphoto { position: relative; display: block; aspect-ratio: 3 / 4; background: #222; color: #fff; }
.grid4 { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; background: #fff; }
.grid4 img, .grid4 span { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 18%; background: #2a2a30; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, transparent 22%, transparent 45%, rgba(0, 0, 0, .82) 100%); }
.sticker {
  position: absolute; left: 14px; top: 14px; max-width: 74%; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 13px;
  font-size: 14px; font-weight: 800; line-height: 1.35; letter-spacing: -.3px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transform: rotate(-2deg);
}
.sticker small { display: block; font-size: 11px; color: var(--hot); font-weight: 900; margin-bottom: 3px; }
.who { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.nm { font-size: 26px; font-weight: 900; letter-spacing: -.9px; line-height: 1.05; }
.nm small { font-size: 16px; font-weight: 700; margin-left: 6px; opacity: .85; }
.meta { font-size: 13px; font-weight: 700; opacity: .92; }
.tact { padding: 12px; }
.tact.big { padding: 18px 0 6px; }
.more { margin-top: 18px; }

/* ---------- 팀 상세(다른 팀) ---------- */
.detail { position: relative; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 3 / 4; background: #111; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { flex: none; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; scroll-snap-align: start; }
.dots { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; gap: 4px; }
.dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.dots i.on { background: #fff; }
.back, .more-btn {
  position: absolute; top: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); color: #fff; font-size: 26px; font-weight: 700; line-height: 1;
}
.back { left: 12px; }
.more-btn { right: 12px; font-size: 22px; }
.pane { position: relative; margin-top: -26px; background: #fff; border-radius: 26px 26px 0 0; padding: 22px 18px 10px; }
.pn { font-size: 28px; font-weight: 900; letter-spacing: -1.1px; }
.pn small { font-size: 16px; color: var(--g4); font-weight: 700; }
.pmeta { font-size: 13.5px; font-weight: 700; color: var(--g4); margin: 6px 0 10px; }
.prompt { border: 1.5px solid var(--ink); border-radius: 18px; padding: 13px 15px; margin-top: 14px; }
.prompt small { font-size: 12px; font-weight: 800; color: var(--hot); }
.prompt p { font-size: 18px; font-weight: 900; letter-spacing: -.6px; margin-top: 4px; line-height: 1.3; }

/* ---------- 내 팀(어두운 화면) ---------- */
.mine { padding: 18px 20px 20px; }
.mine .kick { font-size: 13.5px; font-weight: 800; color: rgba(255, 255, 255, .6); }
.mine .hero-h { margin-top: 8px; }
.pol { position: relative; width: 66%; max-width: 260px; margin: 22px auto 6px; background: #fff; padding: 9px 9px 30px; border-radius: 8px; transform: rotate(-2deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.pol .grid4 { position: relative; aspect-ratio: 3 / 4; inset: auto; }
.pol > span { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-size: 12px; font-weight: 900; color: var(--ink); }
.pol .wait { aspect-ratio: 3 / 4; display: grid; place-content: center; text-align: center; background: var(--g1); color: var(--g4); font-weight: 800; font-size: 14px; line-height: 1.5; }
.hc { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.hc.ask { outline: 2px solid var(--lime); }
.hc > span:first-child { display: flex; flex-direction: column; gap: 3px; font-weight: 900; font-size: 15px; }
.hc small { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 20px; font-weight: 900; color: #fff; }
.stepper b { min-width: 18px; text-align: center; font-size: 20px; font-weight: 900; }
.rule { margin-top: 18px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .65); }
.pl { margin-top: 8px; font-weight: 900; font-size: 14.5px; }
.hotx { color: var(--lime); }
.prog { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .14); margin: 8px 0 10px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--lime); border-radius: 5px; transition: width .3s; }
.members { list-style: none; display: grid; gap: 7px; margin-bottom: 8px; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: 14.5px; }
.members li.ghost { background: none; border: 1.5px dashed rgba(255, 255, 255, .2); }
.members b { font-size: 12.5px; font-weight: 800; text-align: right; }
.members .ok { color: var(--lime); }
.members .wait { color: rgba(255, 255, 255, .5); }
.edit { margin-top: 30px; padding: 18px 16px; border-radius: 20px; background: rgba(255, 255, 255, .06); }
.edit h2 { font-size: 16px; font-weight: 900; }
.edit .inp { background: rgba(255, 255, 255, .1); color: #fff; }
.edit .inp::placeholder { color: rgba(255, 255, 255, .35); }
.edit .inp:focus { background: rgba(255, 255, 255, .16); border-color: var(--lime); }
.danger { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }

/* ---------- 맞팔 ---------- */
.received { display: grid; gap: 8px; }
.rfirst { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--ink); color: #fff; }
.rfirst img, .rfirst .ph { width: 70px; height: 90px; border-radius: 12px; object-fit: cover; flex: none; }
.rfirst span { display: flex; flex-direction: column; gap: 4px; }
.rfirst b { font-size: 16px; font-weight: 900; }
.rfirst small { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.rfirst em { font-style: normal; font-size: 13px; font-weight: 900; color: var(--lime); }
.hints { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hints span { font-size: 12.5px; font-weight: 800; background: var(--g1); border-radius: 999px; padding: 6px 10px; filter: blur(.2px); }
.hints small { width: 100%; font-size: 12.5px; font-weight: 700; color: var(--g4); }
.mlist { list-style: none; }
.mrow { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--g1); }
.mav img, .mav .ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.mtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mtext b { font-size: 15.5px; font-weight: 900; }
.mtext small { font-size: 12.5px; font-weight: 600; color: var(--g4); }
.state { display: inline-block; margin-top: 7px; font-size: 12.5px; font-weight: 800; color: var(--g4); }
.state.hot { color: var(--hot); }
.state.ok { color: var(--ok); }
.mtext .state + .btn.xs, .mtext .igs + .state { margin-top: 8px; }
.igs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ig { font-size: 14px; font-weight: 900; padding: 7px 12px; border-radius: 999px; background: var(--grad); color: #fff; }

/* ---------- MY ---------- */
.profile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 22px; background: var(--ink); color: #fff; margin-top: 4px; }
.profile b { font-size: 22px; font-weight: 900; letter-spacing: -.8px; }
.profile > span { font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.profile em { font-style: normal; font-weight: 900; color: var(--lime); font-size: 14px; margin-left: 4px; }
.teamlist { list-style: none; display: grid; gap: 8px; }
.teamlist a { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 16px; border: 1.5px solid var(--g2); }
.teamlist img, .teamlist .ph { width: 44px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; }
.teamlist span { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.teamlist b { font-weight: 900; }
.teamlist small { font-size: 12.5px; font-weight: 600; color: var(--g4); }
.teamlist .st { font-style: normal; font-size: 12px; font-weight: 900; border-radius: 999px; padding: 5px 9px; background: var(--g1); color: var(--g4); }
.teamlist .st.published { background: #E3F6EA; color: var(--ok); }
.teamlist .st.gathering { background: #FFF6D6; color: #8a6200; }
.settings .sw { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--g1); cursor: pointer; }
.sw span { display: flex; flex-direction: column; gap: 3px; }
.sw b { font-size: 15px; font-weight: 900; }
.sw small { font-size: 12.5px; font-weight: 600; color: var(--g4); }
.sw input {
  appearance: none; flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--g2); position: relative; cursor: pointer; transition: background .2s;
}
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.sw input:checked { background: var(--hot); }
.sw input:checked::after { transform: translateX(20px); }
.out { display: flex; flex-direction: column; align-items: center; }
.danger-t { color: #E5484D; margin-top: 8px; }

/* ---------- 하단 탭 ---------- */
.tabs {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px;
  height: calc(var(--tabh) + var(--sb)); padding-bottom: var(--sb); display: flex; justify-content: space-around; align-items: center;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--g2);
}
body[data-theme="dark"] .tabs { background: rgba(17, 17, 17, .96); border-top-color: #222; }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 6px 0; font-size: 11px; font-weight: 800; color: #B0B0B5; }
.tabs svg { width: 23px; height: 23px; fill: currentColor; }
.tabs a[aria-current="page"] { color: var(--ink); }
body[data-theme="dark"] .tabs a[aria-current="page"] { color: #fff; }
.bdg { position: absolute; top: 0; right: 12px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--hot); color: #fff; font-size: 10.5px; font-weight: 900; display: grid; place-items: center; padding: 0 5px; }

/* ---------- 토스트·시트 ---------- */
.toast {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabh) + var(--sb) + 14px);
  width: calc(100% - 28px); max-width: 452px; background: var(--ink); color: #fff; border-radius: 16px; padding: 13px 16px;
  font-size: 14px; font-weight: 700; line-height: 1.45; box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
body[data-theme="dark"] .toast { background: #fff; color: var(--ink); }
.sheet {
  margin: auto auto 0; width: 100%; max-width: 480px; max-height: 92dvh; border: 0; border-radius: 26px 26px 0 0;
  padding: 0; background: #fff; color: var(--ink);
}
.sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sheet.hot { margin: auto; height: 100dvh; max-height: none; border-radius: 0; background: var(--hot); color: #fff; }
.report { padding: 12px 20px calc(18px + var(--sb)); }
.grab { width: 46px; height: 5px; border-radius: 3px; background: var(--g2); margin: 0 auto 14px; }
.report h2 { font-size: 21px; font-weight: 900; letter-spacing: -.6px; margin-bottom: 8px; }
.report fieldset { border: 0; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--g1); font-weight: 800; font-size: 15.5px; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--hot); }
.report .row2 { grid-template-columns: 1fr 1fr; margin-top: 6px; }
.match { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 24px calc(24px + var(--sb)); overflow: hidden; text-align: center; }
.match .burst { position: absolute; width: 640px; height: 640px; left: 50%; top: 36%; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, .13) 0 8deg, transparent 8deg 20deg); animation: spin 30s linear infinite; }
.match > *:not(.burst) { position: relative; }
.match .mk { font-size: 16px; font-weight: 800; opacity: .92; }
.match h2 { font-size: 64px; font-weight: 900; letter-spacing: -3px; line-height: .95; margin: 10px 0 18px; text-shadow: 0 4px 0 rgba(0, 0, 0, .12); animation: pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.match .ms { max-width: 300px; margin-left: auto; margin-right: auto; font-size: 15px; font-weight: 700; line-height: 1.5; opacity: .92; margin-bottom: 16px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 520px) { body { padding: 0; } }
