/* 로피 연습 기록 시안 — 값은 lopi-app 실제 코드에서 가져왔다(노트 "스타일 출처" 절). */
:root {
  --bg: #000;
  --card: #161616;          /* 카드 bg-[#161616] */
  --card-2: #1a1a1a;        /* bg-[#1A1A1A] */
  --line: #2a2a2a;          /* bg-[#2A2A2A] */
  --border: #4f4f4f;        /* border-[#4F4F4F] */
  --text: #fff;
  --sub: rgba(255, 255, 255, .5);  /* text-white/50 */
  --muted: #7f7f7f;         /* text-[#7F7F7F] */
  --soft: #ababab;          /* text-[#ABABAB] */
  --brand: #bef264;         /* tailwind brand */
  --chip-muted: #52525b;    /* status-chip muted */
  --danger: #ef4444;        /* text-red-500 */
  --heat-0: #1f1f1f;
  --kr: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --num: "Outfit", var(--kr);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #0b0b0b; color: var(--text); font-family: var(--kr); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 바깥 레이아웃 (데스크톱: 목록 | 폰 | 노트) ---------- */
.stage { display: grid; grid-template-columns: 240px 390px minmax(320px, 1fr); gap: 40px; padding: 40px; align-items: start; max-width: 1400px; margin: 0 auto; }
.toc { position: sticky; top: 40px; font-size: 14px; }
.toc h1 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.toc .meta { color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 20px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc li button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--soft); }
.toc li button[aria-current="true"] { background: var(--card); color: var(--text); }
.toc li button:hover { color: var(--text); }

.phone { width: 390px; height: 844px; background: var(--bg); border-radius: 44px; overflow: hidden; position: relative; box-shadow: 0 0 0 10px #1c1c1c, 0 30px 80px rgba(0,0,0,.6); }
.statusbar { height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 34px; font-family: var(--num); font-weight: 600; font-size: 15px; position: relative; z-index: 5; }
.statusbar .dots { display: flex; gap: 5px; align-items: center; }
.statusbar .dots i { display: block; width: 17px; height: 10px; border-radius: 2px; background: #fff; }
.statusbar .dots i:first-child { width: 16px; height: 10px; background: none; border-bottom: 10px solid #fff; border-left: 16px solid transparent; border-radius: 0; height: 0; }

.notes { font-size: 14px; line-height: 1.65; color: #d4d4d4; max-width: 640px; }

@media (max-width: 1100px) {
  .stage { grid-template-columns: 390px 1fr; }
  .toc { grid-column: 1 / -1; position: static; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 760px) {
  html, body { background: var(--bg); }
  .stage { display: flex; flex-direction: column; padding: 0; }
  .phone { order: -1; }
  .toc { padding: 16px 20px; }
  .phone { width: 100%; height: 100svh; border-radius: 0; box-shadow: none; }
  .notes { padding: 32px 20px 80px; }
}

/* ---------- 화면 공통 ---------- */
.screen { position: absolute; inset: 0; top: 47px; display: none; flex-direction: column; background: var(--bg); }
.screen.on { display: flex; }
.scroll { flex: 1; overflow-y: auto; padding: 0 20px 24px; scrollbar-width: none; align-content: start; }
.scroll::-webkit-scrollbar { display: none; }
.header { display: flex; align-items: center; gap: 16px; padding: 12px 20px; min-height: 52px; }
.header .title { flex: 1; font-size: 17px; font-weight: 500; }
.header .icon-btn { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; }
.icon { width: 22px; height: 22px; display: inline-block; flex: none; }
.icon svg { width: 100%; height: 100%; display: block; }

.card { background: var(--card); border-radius: 12px; padding: 20px; }
.gap-12 { display: grid; gap: 12px; }
.sub { color: var(--sub); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.num { font-family: var(--num); }

.cta-bar { padding: 12px 20px 30px; background: linear-gradient(to top, #000 70%, rgba(0,0,0,0)); display: flex; gap: 8px; }
.btn { height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 600; flex: 1; transition: opacity .3s ease; }
.btn-brand { background: var(--brand); color: #000; }
.btn-dark { background: var(--line); color: #fff; }
.btn-ghost { background: transparent; color: var(--soft); flex: 0 0 auto; padding: 0 18px; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { color: var(--brand); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }

.chip { display: inline-flex; align-items: center; border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: 500; line-height: 1.4; }
.chip-brand { background: var(--brand); color: #000; }
.chip-muted { background: var(--chip-muted); color: rgba(255,255,255,.8); }
.chip-line { border: 1px solid var(--border); color: var(--soft); }

/* ---------- 홈 ---------- */
.visibility-line { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--card-2); font-size: 14px; text-align: left; }
.visibility-line .icon { width: 16px; height: 16px; color: var(--brand); }
.vis-row > .icon { width: 18px; height: 18px; color: var(--brand); }
.chip .icon { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
.visibility-line .grow { flex: 1; }


.heat-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.heat-head h2 { font-size: 15px; font-weight: 600; }
.scroll > * { min-width: 0; }

.nudge { display: flex; gap: 12px; align-items: flex-start; }
.nudge p { font-size: 14px; line-height: 1.55; }

.section-title { font-size: 15px; font-weight: 600; margin: 8px 0 -2px; display: flex; justify-content: space-between; align-items: baseline; }
.rec { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid #1f1f1f; }
.rec:last-child { border-bottom: 0; }
.thumb { width: 64px; height: 64px; border-radius: 10px; flex: none; position: relative; overflow: hidden; display: grid; place-items: center; }
.thumb .icon { width: 22px; height: 22px; color: rgba(255,255,255,.9); }
.thumb .len { position: absolute; right: 4px; bottom: 4px; font-family: var(--num); font-size: 10px; background: rgba(0,0,0,.6); padding: 1px 4px; border-radius: 3px; }
.t-video { background: radial-gradient(circle at 30% 30%, #3f3f46, #18181b 70%); }
.t-photo { background: linear-gradient(135deg, #27272a, #3f3f46 60%, #52525b); }
.t-audio { background: #1f1f1f; }
.t-text { background: #1f1f1f; }
.rec .body { flex: 1; min-width: 0; }
.rec .body .t { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec .body .m { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.rec .state { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.rec .state .icon { width: 14px; height: 14px; }
.progress { height: 3px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); }
.retry { color: var(--brand); font-size: 13px; font-weight: 500; }

/* ---------- 빈 상태 ---------- */
.empty { text-align: center; padding: 28px 8px 8px; }
.empty h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty p { font-size: 14px; color: var(--sub); line-height: 1.6; }

/* ---------- 바텀시트·모달 ---------- */
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.62); z-index: 10; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { background: var(--card); border-radius: 14px 14px 0 0; padding: 8px 20px 34px; }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 16px; }
.sheet .btn { width: 100%; }
.sheet h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 14px; }
.type-btn { background: var(--card-2); border: 1px solid #262626; border-radius: 12px; padding: 16px; text-align: left; display: grid; gap: 10px; }
.type-btn .icon { color: var(--brand); }
.type-btn b { font-size: 15px; font-weight: 600; display: block; }
.type-btn span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.modal { margin: auto 24px; background: var(--card); border-radius: 14px; padding: 28px 20px 20px; text-align: center; }
.modal h3 { font-size: 18px; font-weight: 600; margin: 12px 0 8px; }
.modal p { font-size: 14px; color: var(--sub); line-height: 1.6; }
.modal .row { display: flex; gap: 8px; margin-top: 22px; }
.alert-icon { width: 44px; height: 44px; margin: 0 auto; color: var(--danger); }

/* 가짜 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 14px -20px 0; }
.gallery button { aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.gallery .size { position: absolute; left: 6px; bottom: 6px; font-family: var(--num); font-size: 11px; background: rgba(0,0,0,.65); padding: 1px 5px; border-radius: 3px; }
.gallery .size.big { color: #fca5a5; }
.audio-list { display: grid; margin-top: 10px; }
.audio-list button { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #262626; text-align: left; }
.audio-list .grow { flex: 1; }

/* ---------- 업로드 폼 ---------- */
.field { display: grid; gap: 10px; }
.field > label, .field > .label { font-size: 14px; font-weight: 500; color: #fff; }
.field .req { color: var(--brand); font-size: 12px; margin-left: 4px; }
.media-slot { height: 200px; border-radius: 12px; border: 1px dashed var(--border); display: grid; place-items: center; text-align: center; color: var(--soft); font-size: 14px; position: relative; overflow: hidden; width: 100%; }
.media-slot .icon { margin: 0 auto 8px; width: 28px; height: 28px; color: var(--brand); }
.media-slot.filled .icon { color: #fff; }
.media-slot.filled { border: 0; }
.media-slot .meta { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; font-size: 12px; color: #fff; }
.media-slot .change { position: absolute; top: 10px; right: 10px; font-size: 12px; background: rgba(0,0,0,.6); padding: 5px 10px; border-radius: 999px; }
.limit-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tog { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--soft); display: inline-flex; align-items: center; gap: 6px; }
.tog[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: rgba(190,242,100,.08); }
.tog input[type="date"] { background: transparent; border: 0; color: inherit; font-size: 14px; color-scheme: dark; width: 120px; }
.textarea { width: 100%; min-height: 110px; background: var(--card-2); border: 1px solid #262626; border-radius: 12px; padding: 14px; font-size: 15px; line-height: 1.55; resize: none; }
.textarea:focus { outline: 1px solid var(--border); }
.textarea::placeholder { color: #5f5f5f; }
.count { text-align: right; font-size: 12px; color: var(--muted); font-family: var(--num); }
.vis-row { display: flex; align-items: center; gap: 12px; background: var(--card-2); border-radius: 12px; padding: 14px; text-align: left; width: 100%; }
.vis-row .grow { flex: 1; }
.vis-row b { display: block; font-size: 14px; font-weight: 500; }
.vis-row span { font-size: 12px; color: var(--muted); }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--chip-muted); position: relative; flex: none; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: #000; }
.switch[disabled] { opacity: .4; }
.toast { position: absolute; left: 20px; right: 20px; bottom: 100px; background: #262626; border-radius: 12px; padding: 14px 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; z-index: 9; }
.toast .icon { color: var(--danger); width: 20px; height: 20px; }

/* ---------- 완료 ---------- */
.done-hero { text-align: center; padding: 28px 0 20px; }
.done-hero .ring { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #000; display: grid; place-items: center; margin: 0 auto 14px; }
.done-hero .ring .icon { width: 28px; height: 28px; }
.done-hero h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.done-hero p { color: var(--sub); font-size: 15px; }

/* ---------- 상세 ---------- */
.player { height: 420px; margin: 0 -20px; position: relative; display: grid; place-items: center; }
.player .play { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; backdrop-filter: blur(6px); }
.player .bar { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; gap: 10px; align-items: center; font-family: var(--num); font-size: 12px; }
.player .bar .track { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.player .bar .track i { display: block; width: 32%; height: 100%; background: #fff; }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 10px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.memo { font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
.menu { position: absolute; right: 16px; top: 52px; background: #262626; border-radius: 12px; padding: 6px; width: 200px; z-index: 11; display: grid; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.menu button { text-align: left; padding: 11px 12px; border-radius: 8px; font-size: 14px; }
.menu button:hover { background: #303030; }
.menu .danger { color: var(--danger); }
.wave { display: flex; gap: 3px; align-items: center; height: 80px; }
.wave i { display: block; width: 4px; border-radius: 2px; background: var(--brand); opacity: .85; }

/* ---------- 공개 범위·동의 ---------- */
.lead { font-size: 22px; font-weight: 600; line-height: 1.4; margin: 8px 0 8px; }
.radio { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--card); border: 1px solid transparent; text-align: left; width: 100%; }
.radio[aria-checked="true"] { border-color: var(--brand); }
.radio .r { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none; margin-top: 1px; display: grid; place-items: center; }
.radio[aria-checked="true"] .r { border-color: var(--brand); }
.radio[aria-checked="true"] .r::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.radio b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.radio span { font-size: 13px; color: var(--sub); line-height: 1.55; display: block; }
.see-list { display: grid; gap: 10px; font-size: 14px; }
.see-list li { display: flex; gap: 10px; list-style: none; line-height: 1.5; }
.see-list .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.see-list .no .icon { color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 400; width: 84px; padding: 10px 10px 10px 0; vertical-align: top; }
.tbl td { padding: 10px 0; line-height: 1.55; }
.tbl tr + tr th, .tbl tr + tr td { border-top: 1px solid #262626; }
.check { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 16px; border-radius: 12px; background: var(--card-2); }
.check .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); flex: none; display: grid; place-items: center; color: #000; }
.check[aria-checked="true"] .box { background: var(--brand); border-color: var(--brand); }
.check .box .icon { width: 16px; height: 16px; opacity: 0; }
.check[aria-checked="true"] .box .icon { opacity: 1; }
.check b { font-size: 15px; font-weight: 500; display: block; }
.check span { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; line-height: 1.5; }
.input { width: 100%; height: 48px; background: var(--card-2); border: 1px solid #262626; border-radius: 10px; padding: 0 14px; font-size: 15px; }
.input::placeholder { color: #5f5f5f; }
.banner { display: flex; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(190,242,100,.08); border: 1px solid rgba(190,242,100,.25); font-size: 13px; line-height: 1.55; }
.banner .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 1px; }
.banner.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.3); }
.banner.warn .icon { color: #fbbf24; }

/* ---------- 노트 ---------- */
.notes section { padding: 28px 0; border-top: 1px solid #222; }
.notes section:first-child { border-top: 0; padding-top: 0; }
.notes h2 { font-size: 18px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.notes h3 { font-size: 14px; color: #fff; font-weight: 600; margin: 16px 0 6px; }
.notes p + p { margin-top: 8px; }
.notes ul, .notes ol { padding-left: 18px; display: grid; gap: 6px; }
.notes code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #1a1a1a; padding: 1px 5px; border-radius: 4px; color: #e5e5e5; word-break: break-all; }
.notes table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.notes th, .notes td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid #222; vertical-align: top; }
.notes th { color: var(--muted); font-weight: 500; }
.notes a { color: var(--brand); }
.tag-check { color: var(--brand); }
.tag-warn { color: #fbbf24; }

/* 한글은 어절 단위로 줄바꿈("있/어요"처럼 끊기지 않게) */
.phone { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- v2: 시안 조건 3단 ---------- */
.toc h1 .v { font-family: var(--num); font-size: 12px; color: var(--brand); margin-left: 4px; }

/* ---------- v2: 마이 (lopi-app my-screen · my-menu 값) ---------- */
.my-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.my-title { font-family: var(--num); font-size: 28px; font-weight: 500; line-height: 33.6px; }
.my-head .icon { width: 24px; height: 24px; }
.my-scroll { padding: 0 0 110px; }
.my-card { margin: 7px 20px 0; height: 220px; border-radius: 16px; position: relative; overflow: hidden; background: linear-gradient(160deg, #3f3f46, #18181b 70%); }
.my-photo { position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, #52525b 0 22%, transparent 23%), linear-gradient(transparent 55%, #000); }
.my-name { position: absolute; left: 18px; bottom: 16px; display: grid; gap: 4px; }
.my-name b { font-size: 22px; font-weight: 600; }
.my-name span { font-size: 13px; color: var(--sub); }
.my-sec { padding: 40px 16px 0; display: grid; gap: 16px; }
.my-sec h3 { font-size: 22px; font-weight: 600; line-height: 26.4px; }
.my-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; line-height: 21px; text-align: left; width: 100%; }
.my-row .icon { width: 20px; height: 20px; color: var(--sub); }
.my-row.muted-row { color: var(--sub); }
.my-row .new { font-style: normal; font-family: var(--num); font-size: 10px; font-weight: 600; color: #000; background: var(--brand); border-radius: 999px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; padding: 12px 8px 30px; display: flex; justify-content: space-around; background: #0a0a0a; border-top: 1px solid #1f1f1f; font-family: var(--num); font-size: 11px; color: var(--muted); z-index: 4; }
.tabbar .on { color: #fff; }

/* ---------- v2: 달력 ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head h2 { font-size: 16px; font-weight: 600; }
.icon-btn.sm { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.icon-btn.sm .icon { width: 18px; height: 18px; }
.icon-btn.sm[disabled] { opacity: .25; cursor: default; }
.icon-btn.flip .icon { transform: scaleX(-1); }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-wd { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.cal-grid { row-gap: 2px; }
.cal-day { height: 44px; display: grid; grid-template-rows: 30px 8px; justify-items: center; align-content: center; padding: 0; }
.cal-day b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 14px; font-weight: 500; }
.cal-day .dots { display: flex; gap: 3px; align-items: center; height: 8px; }
.cal-day .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); display: block; }
.cal-day.today b { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.cal-day.sel b { background: var(--brand); color: #000; box-shadow: none; }
.cal-day.future b { color: #3f3f3f; }
.cal-sum { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cal-sum b { color: var(--soft); font-weight: 500; }
.day-empty { font-size: 14px; color: var(--muted); padding: 14px 0; line-height: 1.6; }

/* ---------- v2: 종류 시트·유튜브 ---------- */
.type-btn.wide { grid-column: span 2; grid-template-columns: auto 1fr; align-items: center; }
.yt-input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 14px; background: var(--card-2); border: 1px solid #262626; border-radius: 12px; }
.yt-input.bad { border-color: rgba(239,68,68,.6); }
.yt-input > .icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.yt-input input { flex: 1; min-width: 0; background: transparent; border: 0; font-size: 15px; outline: none; }
.yt-input input::placeholder { color: #5f5f5f; }
.yt-paste { height: 34px; padding: 0 12px; border-radius: 999px; background: var(--line); font-size: 13px; flex: none; }
.yt-clear { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); flex: none; }
.yt-clear .icon { width: 16px; height: 16px; }
.err { font-size: 12px; color: #fca5a5; line-height: 1.6; }
.yt-card { border-radius: 12px; overflow: hidden; background: var(--card); }
.yt-thumb { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #3b1f2b, #18181b 55%, #27272a); }
.yt-thumb > .icon { width: 44px; height: 44px; color: #fff; }
.yt-thumb .len { position: absolute; right: 8px; bottom: 8px; font-size: 11px; background: rgba(0,0,0,.75); padding: 2px 5px; border-radius: 4px; }
.yt-thumb .change { position: absolute; top: 10px; right: 10px; font-size: 12px; background: rgba(0,0,0,.6); padding: 5px 10px; border-radius: 999px; }
.yt-meta { padding: 12px 14px 14px; display: grid; gap: 4px; }
.yt-meta b { font-size: 15px; font-weight: 500; }
.yt-meta span { font-size: 12px; color: var(--muted); }
.yt-ghost { height: 160px; border-radius: 12px; border: 1px dashed var(--border); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); font-size: 13px; }
.yt-ghost .icon { width: 28px; height: 28px; margin: 0 auto; }
.t-youtube { background: linear-gradient(135deg, #3b1f2b, #18181b 70%); }
.yt-player { background: linear-gradient(135deg, #3b1f2b, #18181b 55%, #27272a); }
.yt-badge { position: absolute; top: 14px; left: 20px; display: flex; gap: 6px; align-items: center; font-family: var(--num); font-size: 12px; background: rgba(0,0,0,.55); padding: 4px 10px 4px 6px; border-radius: 999px; }
.yt-badge .icon { width: 16px; height: 16px; }

/* ---------- v2: 날짜 칩·하루 3개 ---------- */
.date-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.dchip { display: grid; gap: 2px; justify-items: center; padding: 8px 0 7px; border-radius: 10px; border: 1px solid #262626; font-size: 11px; color: var(--muted); }
.dchip b { font-size: 15px; font-weight: 500; color: #fff; }
.dchip i { font-style: normal; font-size: 10px; }
.dchip[aria-pressed="true"] { border-color: var(--brand); background: rgba(190,242,100,.08); }
.dchip[aria-pressed="true"] b { color: var(--brand); }
.dchip.full i { color: #fca5a5; }
.limit-list { display: grid; gap: 6px; margin-top: 16px; text-align: left; }
.limit-list .mini { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--card-2); border-radius: 10px; font-size: 13px; }
.limit-list .mini .icon { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* ---------- 완료: 8비트 픽셀 스타디움 (v16) ---------- */
/* 한 칸 = 3px. 움직임은 steps()로 뚝뚝 끊어 8비트 느낌을 낸다. 보통 약 2초, 만석 약 3초. */
.theater { display: block; position: relative; overflow: hidden; width: 100%; text-align: left; background: #0b0b0b; padding: 14px 7px; color: var(--text);
  clip-path: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px)); }
.th-head { display: flex; justify-content: space-between; align-items: center; height: 28px; margin-bottom: 10px; padding: 0 9px; }
.lv-badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px 0 4px; border: 2px solid var(--brand); position: relative; background: #000; box-shadow: 3px 3px 0 #1f1f1f; }
.lv-no { background: var(--brand); color: #000; font-size: 11px; font-weight: 600; padding: 2px 6px; }
.lv-name { display: grid; font-size: 14px; font-weight: 600; }
.lv-name .nm { grid-area: 1 / 1; }
.lv-badge::after { content: ""; position: absolute; inset: -2px; border: 3px solid var(--brand); opacity: 0; pointer-events: none; }
.next-wrap { display: grid; justify-items: end; }
.next-wrap .next { grid-area: 1 / 1; }
.next b { color: var(--brand); font-weight: 600; }
.next { color: var(--soft); }
.lv-no-wrap { display: inline-grid; }
.lv-no-wrap > .lv-no { grid-area: 1 / 1; }

.px-stage svg, .px-seat-svg { display: block; width: 100%; height: auto; }
.px-scene { image-rendering: pixelated; }
.px-stand { margin-top: 6px; display: grid; gap: 3px; }
.px-row { display: flex; justify-content: center; gap: 6px; padding-bottom: 3px; border-bottom: 3px solid #1c1c1c; }
.px-row:last-child { border-bottom-color: transparent; }
.seat { position: relative; display: block; width: 36px; height: 36px; flex: none; }
.seat svg { display: block; width: 100%; height: 100%; filter: brightness(var(--dim, 1)); }
.seat .who { display: block; width: 100%; height: 100%; }
.seat .stk { transform-box: view-box; transform-origin: 10px 8px; }
.seat u { position: absolute; pointer-events: none; text-decoration: none; }
.seat .halo { inset: 0; border: 3px solid var(--brand); opacity: 0; }
.seat .burst { left: 50%; top: 50%; width: 0; height: 0; }
.seat .burst b { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; background: var(--brand); opacity: 0; }
.seat .burst b:nth-child(1) { --dx: -16px; --dy: -16px; } .seat .burst b:nth-child(2) { --dx: 16px; --dy: -16px; }
.seat .burst b:nth-child(3) { --dx: -16px; --dy: 14px; background: #fbbf24; } .seat .burst b:nth-child(4) { --dx: 16px; --dy: 14px; background: #fbbf24; }
.seat .plus { left: 0; right: 0; top: -13px; text-align: center; font-size: 12px; font-weight: 600; color: var(--brand); text-shadow: 1px 1px 0 #000; opacity: 0; z-index: 3; }
.seat.new { z-index: 2; }

.theater-sum { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; padding: 0 9px; }
.theater-sum b { font-weight: 600; color: var(--brand); }
.theater-lv { margin: 6px 9px 0; height: 18px; line-height: 18px; white-space: nowrap; overflow: hidden; color: var(--soft); }
.theater .cnt { font-variant-numeric: tabular-nums; }
/* 바뀌는 숫자만 고정 폭 상자 안에서 겹쳐 바뀌고, "/31석"은 그대로다 */
.theater .cn { position: relative; display: inline-block; text-align: right; }
.theater .cn > b.sw-o { position: absolute; right: 0; top: 0; }
.theater .sw-o, .theater .sw-n { will-change: opacity; }

.px-scene .led-full, .px-scene .confetti { display: none; }
.theater.is-full .led-full { display: inline; animation: px-blink .6s steps(1) infinite; }
.theater.is-full .led-lv { display: none; }
.theater.is-call .confetti { display: inline; }

.px-scene .beam { animation: px-flick 1.6s steps(1) var(--d) infinite both; }
.px-scene .fdot { animation: px-blink 1s steps(1) var(--d) infinite both; }
.px-scene .fr.f0 { animation: px-a .6s steps(1) var(--d) infinite both; }
.px-scene .fr.f1 { animation: px-b .6s steps(1) var(--d) infinite both; }
.px-scene .nt { animation: px-note 1.4s steps(4) var(--d) infinite both; }
.px-scene .cf { animation: px-fall 1.4s steps(7) calc(1.8s + var(--d)) both; }
.seat .who.bob { animation: px-bob 1.2s steps(1) var(--bd) infinite both; }
.seat .stk { animation: px-wave .8s steps(1) var(--lw) infinite both; }
.seat.new .who { animation: px-drop .9s steps(1) .5s both; }
.seat.new .halo { animation: px-halo .6s steps(3) .5s both; }
.seat.new .burst b { animation: px-burst .8s steps(4) .8s both; }
.seat.new .plus { animation: px-plus .9s steps(4) .8s both; }
.seat.clap { animation: px-clap .5s steps(1) var(--cd) both; }
.theater.is-levelup .lv-badge { animation: px-badge .7s steps(4) 1.1s both; }
.theater.is-levelup .lv-badge::after { animation: px-ring .7s steps(4) 1.1s both; }
.theater.is-swap .sw-o { animation: out .12s linear 1.1s both; } /* 단계 이름·Lv 번호·다음 목표·좌석 수·한 줄 안내는 같은 순간에 같이 바뀐다 */
.theater.is-swap .sw-n { animation: in .12s linear 1.1s both; }

@keyframes px-flick { 0% { opacity: 1; } 50% { opacity: .5; } }
@keyframes px-blink { 0% { opacity: 1; } 50% { opacity: .25; } }
@keyframes px-a { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes px-b { 0% { visibility: hidden; } 50% { visibility: visible; } }
@keyframes px-note { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes px-fall { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }
@keyframes px-bob { 0% { transform: translateY(0); } 50% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
@keyframes px-wave { 0% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } 100% { transform: rotate(-14deg); } }
@keyframes px-drop { 0% { opacity: 0; transform: translateY(-24px); } 15% { opacity: 1; transform: translateY(-15px); } 30% { transform: translateY(0); } 45% { transform: translateY(-9px); } 60% { transform: translateY(0); } 75% { transform: translateY(-3px); } 90%, 100% { transform: translateY(0); } }
@keyframes px-halo { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes px-burst { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes px-plus { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes px-clap { 0% { transform: translateY(0); } 25% { transform: translateY(-6px); } 50% { transform: translateY(0); } 75% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
@keyframes px-badge { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes px-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3, 1.8); } }
@keyframes out { to { opacity: 0; } }
@keyframes in { from { opacity: 0; } to { opacity: 1; } }
@keyframes px-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  /* 움직임 줄이기: 모든 움직임을 멈추고 한 자세로 둔다. 새 좌석만 0.15초 페이드. */
  .theater *, .theater *::after { animation: none !important; }
  .theater .seat.new .who { animation: px-fade .15s linear both !important; }
  .theater .px-scene .fr.f1 { visibility: hidden; }
  .theater .px-scene .nt { opacity: 1; }
  .theater .px-scene .confetti, .theater .old, .theater .sw-o, .theater .seat .burst, .theater .seat .plus, .theater .seat .halo { display: none !important; }
}
