/* 🧘 요가원 · 힐링센터 — 따뜻한 원목·리넨 톤 화면 */
:root {
  --wood: #6b4c30;
  --wood-dark: #3b2a1c;
  --linen: #f6efe4;
  --linen-2: #efe5d5;
  --ink: #33281d;
  --ink-soft: #6a5a48;
  --sage: #7d8f6a;
  --sage-dark: #5d6d4c;
  --clay: #b07a52;
  --gold: #b8925a;
  --panel: rgba(30, 22, 15, 0.82);
  --line: rgba(120, 92, 60, 0.22);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #2a2119; color: var(--ink); }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font-family: inherit; }

/* ══ 로딩 ═══════════════════════════════════════════════════════════════ */
.boot {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 10%, #4a3826 0%, #2a2119 60%, #1d1711 100%);
  color: var(--linen);
}
.boot-inner { text-align: center; padding: 0 28px; max-width: 420px; }
.boot-ball { font-size: 54px; animation: float 3.4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.boot-logo { font-size: 30px; margin: 12px 0 6px; letter-spacing: -0.02em; font-weight: 700; }
.boot-sub { margin: 0 0 22px; font-size: 13px; color: rgba(246,239,228,.66); letter-spacing: .04em; }
.boot-bar { height: 3px; background: rgba(246,239,228,.14); border-radius: 3px; overflow: hidden; }
.boot-bar > i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #d9b98a, #f6efe4);
  animation: slide 1.7s ease-in-out infinite; border-radius: 3px; }
@keyframes slide { 0% { transform: translateX(-60%); } 100% { transform: translateX(260%); } }
.boot-hint { margin: 14px 0 0; font-size: 12px; color: rgba(246,239,228,.5); }

/* ══ 입장 ═══════════════════════════════════════════════════════════════ */
.entry { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(26,19,13,.55), rgba(26,19,13,.86)); padding: 14px; overflow: auto; }
.entry-card {
  width: min(560px, 100%); background: var(--linen); border-radius: 22px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.5);
}
.entry-head { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line); background: var(--linen-2); }
.entry-title { font-size: 18px; font-weight: 700; color: var(--wood-dark); display: flex; gap: 8px; align-items: center; }
.entry-title .ball { font-size: 20px; }
.entry-sub { font-size: 11px; color: var(--ink-soft); letter-spacing: .03em; margin-top: 3px; }
.age-notice { display: flex; flex-direction: column; gap: 3px; padding: 11px 18px;
  background: rgba(125,143,106,.12); border-bottom: 1px solid var(--line); }
.age-notice b { font-size: 13px; color: var(--sage-dark); }
.age-notice span { font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; }
.entry-body { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding: 16px 18px 6px; }
.preview-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #e6dccb;
  border: 1px solid var(--line); height: 196px; }
#preview { width: 100%; height: 100%; display: block; }
.preview-badge { position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; padding: 3px 8px; border-radius: 20px;
  background: rgba(59,42,28,.78); color: var(--linen); letter-spacing: .04em; }
.entry-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 11px; color: var(--ink-soft); letter-spacing: .04em; }
.field input, .modal-card input {
  width: 100%; padding: 9px 11px; font-size: 14px; color: var(--ink); background: #fffdf9;
  border: 1px solid var(--line); border-radius: 11px; outline: none;
}
.field input:focus, .modal-card input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(125,143,106,.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg { display: flex; background: #e7ddcb; border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { flex: 1; font-size: 12px; padding: 6px 2px; border-radius: 9px; color: var(--ink-soft); }
.seg button.on { background: #fffdf9; color: var(--wood-dark); font-weight: 600; box-shadow: 0 1px 4px rgba(80,60,40,.14); }
.seg.small button { font-size: 11px; }
.picker { display: flex; flex-direction: column; gap: 5px; }
.picker-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); }
.picker-head em { font-style: normal; color: var(--wood); font-weight: 600; }
.chips { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; font-size: 11px; padding: 5px 9px; border-radius: 20px;
  background: #e7ddcb; color: var(--ink-soft); border: 1px solid transparent; }
.chips button.on { background: var(--sage); color: #fff; border-color: var(--sage-dark); }
.chips.wide button { font-size: 10.5px; padding: 5px 8px; }
.chips.tiny button { font-size: 10.5px; padding: 4px 7px; }
.picker.inline { flex-direction: row; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.head-col { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--ink-soft); }
.sw { display: flex; gap: 4px; }
.sw button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; }
.sw button.on { border-color: var(--wood-dark); transform: scale(1.08); }
.picker.acc { flex-direction: row; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-soft); }
.random { margin-top: 2px; padding: 8px; font-size: 12px; border-radius: 11px;
  background: #e9dfce; color: var(--wood-dark); font-weight: 600; }
.random.ok { background: var(--sage); color: #fff; }
.entry-foot { display: grid; grid-template-columns: 1fr 1.15fr; gap: 9px; padding: 12px 18px 6px; }
.btn { display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center;
  padding: 11px 10px; border-radius: 14px; text-align: center; }
.btn b { font-size: 14px; }
.btn span { font-size: 10.5px; opacity: .82; line-height: 1.35; }
.ghost-btn { background: #ece2d1; color: var(--wood-dark); border: 1px solid var(--line); }
.pay-btn { background: linear-gradient(135deg, #7d8f6a, #5d6d4c); color: #fff;
  box-shadow: 0 8px 20px rgba(93,109,76,.3); }
.pay-btn.big { width: 100%; padding: 13px; font-size: 15px; }
.entry-note { margin: 6px 18px 16px; font-size: 10.5px; color: var(--ink-soft); line-height: 1.55; text-align: center; }

/* ══ HUD ════════════════════════════════════════════════════════════════ */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.hud button { pointer-events: auto; }
.top { position: absolute; top: 0; left: 0; right: 0; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  background: linear-gradient(180deg, rgba(26,19,13,.66), rgba(26,19,13,0)); }
.nowplaying { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nowplaying em { font-style: normal; font-size: 10px; letter-spacing: .12em; color: #e6cfa8; }
.nowplaying b { font-size: 14px; font-weight: 600; color: #fbf4e8; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 58vw; }
.nowplaying span { font-size: 10.5px; color: rgba(246,239,228,.62); }
.topbtns { display: flex; gap: 7px; }
.icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(30,22,15,.6);
  border: 1px solid rgba(255,255,255,.16); color: #f6efe4; font-size: 15px; backdrop-filter: blur(8px); }
.ticket { position: absolute; top: 62px; left: 14px; font-size: 11px; padding: 6px 11px; border-radius: 20px;
  background: rgba(125,143,106,.92); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ticket b { font-weight: 700; }

/* 호흡 링 */
.breath-chip { position: absolute; top: 62px; right: 14px; display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 40px; background: rgba(30,22,15,.55);
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.breath-ring { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: flex-end; overflow: hidden; }
.breath-ring > i { display: block; width: 100%; height: 20%; background: linear-gradient(180deg, #cfe0bd, #7d8f6a);
  transition: height .35s ease; }
.breath-chip span { font-size: 11px; color: #f0e5d2; letter-spacing: .02em; }
.stamina { position: absolute; left: 14px; bottom: 92px; display: flex; align-items: center; gap: 7px; }
.stamina-bar { width: 88px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; }
.stamina-bar > i { display: block; height: 100%; width: 100%; background: #cfe0bd; }
.stamina span { font-size: 10px; color: rgba(246,239,228,.7); }
.stamina.low .stamina-bar > i { background: #e0a878; }

.go-down { position: absolute; left: 50%; transform: translateX(-50%); bottom: 150px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 9px 18px; border-radius: 16px; background: rgba(30,22,15,.72); color: #f6efe4;
  border: 1px solid rgba(255,255,255,.16); font-size: 13px; backdrop-filter: blur(10px); }
.go-down em { font-style: normal; font-size: 10px; color: #d9c3a0; }
.sit-btn { position: absolute; right: 14px; bottom: 150px; padding: 10px 16px; border-radius: 16px;
  font-size: 12.5px; background: rgba(246,239,228,.94); color: var(--wood-dark); font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.sit-btn.on { background: var(--sage); color: #fff; }
.wait-bar { position: absolute; left: 50%; transform: translateX(-50%); top: 96px; padding: 8px 14px;
  border-radius: 14px; background: rgba(30,22,15,.8); color: #f6efe4; font-size: 11.5px; }
.chat-toast { position: absolute; left: 14px; top: 108px; display: flex; flex-direction: column; gap: 4px;
  max-width: 60vw; }
.chat-toast div { font-size: 11.5px; color: #f6efe4; background: rgba(30,22,15,.62); padding: 5px 10px;
  border-radius: 10px; backdrop-filter: blur(6px); }

.bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  background: linear-gradient(0deg, rgba(26,19,13,.62), rgba(26,19,13,0)); }
.left-controls { display: flex; gap: 8px; align-items: center; }
.round { position: relative; width: 44px; height: 44px; border-radius: 50%; font-size: 18px;
  background: rgba(30,22,15,.66); border: 1px solid rgba(255,255,255,.16); color: #f6efe4;
  backdrop-filter: blur(8px); }
.round.sm { width: 38px; height: 38px; font-size: 15px; }
.badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; border-radius: 8px;
  background: #c2543f; color: #fff; font-size: 9px; font-style: normal; display: grid; place-items: center; }
.dance-bar { display: flex; gap: 6px; align-items: center; }
.dance-pick { padding: 10px 15px; border-radius: 22px; font-size: 12.5px; font-weight: 600;
  background: rgba(246,239,228,.94); color: var(--wood-dark); box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.dance-pick.on { background: var(--sage); color: #fff; }
.dance { padding: 10px 12px; border-radius: 22px; font-size: 11.5px; background: rgba(30,22,15,.66);
  color: #f6efe4; border: 1px solid rgba(255,255,255,.16); }
.dance.on { background: rgba(246,239,228,.92); color: var(--wood-dark); }
.joy { position: absolute; right: 16px; bottom: 96px; width: 108px; height: 108px; }
.joy-base { width: 100%; height: 100%; border-radius: 50%; background: rgba(246,239,228,.16);
  border: 1px solid rgba(255,255,255,.24); display: grid; place-items: center; }
.joy-knob { width: 44px; height: 44px; border-radius: 50%; background: rgba(246,239,228,.82); }
.stage-banner { position: absolute; left: 50%; transform: translateX(-50%); top: 88px; padding: 10px 18px;
  border-radius: 16px; background: rgba(30,22,15,.78); color: #f6efe4; font-size: 12.5px;
  border: 1px solid rgba(255,255,255,.14); text-align: center; }
.hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 74px; font-size: 11px;
  color: rgba(246,239,228,.62); transition: opacity .8s; text-align: center; padding: 0 16px; }

/* ══ 시트 · 모달 ════════════════════════════════════════════════════════ */
.sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 60;
  width: min(560px, 100%); max-height: 78vh; overflow: auto; background: var(--linen);
  border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(0,0,0,.34); padding-bottom: 10px; }
.sheet header, .modal-card header { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet header b, .modal-card header b { font-size: 15px; color: var(--wood-dark); }
.ghost { width: 30px; height: 30px; border-radius: 50%; background: #e7ddcb; color: var(--ink-soft); font-size: 13px; }
.ghost.small { width: auto; padding: 8px 14px; border-radius: 12px; font-size: 12px; margin: 10px auto 0; display: block; }
.pose-note { margin: 10px 16px 4px; font-size: 11px; color: var(--ink-soft); line-height: 1.55; }
.dance-groups { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.dg h4 { margin: 0 0 6px; font-size: 11.5px; color: var(--sage-dark); letter-spacing: .05em; font-weight: 700; }
.dg-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-row button { padding: 8px 13px; border-radius: 14px; font-size: 12px; background: #e9dfce; color: var(--wood-dark); }
.dg-row button.on { background: var(--sage); color: #fff; }

.say-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 62;
  display: flex; gap: 6px; width: min(520px, 92%); }
.say-bar input { flex: 1; padding: 11px 13px; border-radius: 14px; background: rgba(246,239,228,.96);
  border: 1px solid var(--line); font-size: 13px; }
.say-bar button { padding: 0 16px; border-radius: 14px; background: var(--sage); color: #fff; font-size: 13px; }
.chat-list { padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow: auto; }
.chat-list > div { font-size: 12px; color: var(--ink); line-height: 1.5; }
.chat-list b { color: var(--sage-dark); }
.chat-input { display: flex; gap: 6px; padding: 8px 16px 14px; }
.chat-input input { flex: 1; padding: 10px 12px; border-radius: 13px; border: 1px solid var(--line);
  background: #fffdf9; font-size: 13px; }
.chat-input button { padding: 0 15px; border-radius: 13px; background: var(--sage); color: #fff; font-size: 13px; }
.menu-list { padding: 8px 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.menu-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 11px 14px; border-radius: 14px; background: #ece2d1; text-align: left; }
.menu-list span { font-size: 13.5px; color: var(--wood-dark); font-weight: 600; }
.menu-list em { font-style: normal; font-size: 11px; color: var(--ink-soft); }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(26,19,13,.62); padding: 16px; overflow: auto; }
.modal-card { width: min(430px, 100%); background: var(--linen); border-radius: 20px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.4); }
.modal-card header { background: var(--linen-2); }
.modal-card .field { margin: 10px 16px 0; }
.modal-card .btn.big { margin: 14px 16px 6px; width: calc(100% - 32px); }
.modal-desc { margin: 12px 16px 4px; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.modal-foot { margin: 8px 16px 16px; font-size: 10.5px; color: var(--ink-soft); text-align: center; }
.pay-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 14px 0 4px; }
.pay-price b { font-size: 32px; color: var(--wood-dark); font-weight: 800; }
.pay-price span { font-size: 13px; color: var(--ink-soft); }
.pay-qr { display: flex; gap: 12px; align-items: center; margin: 6px 16px 0; padding: 12px;
  background: #fffdf9; border-radius: 14px; border: 1px solid var(--line); }
.pay-qr img { width: 108px; height: 108px; border-radius: 8px; object-fit: contain; background: #fff; }
.pay-qr-side p { margin: 0 0 6px; font-size: 11.5px; color: var(--ink); line-height: 1.55; }
.pay-qr-side p.mini { font-size: 10.5px; color: var(--ink-soft); }
.mini { font-size: 10.5px; }
.gold { color: var(--gold); }
.prof-body { display: flex; gap: 12px; padding: 14px 16px 4px; align-items: center; }
.prof-avatar { width: 78px; height: 96px; border-radius: 14px; background: #e6dccb; overflow: hidden; }
.prof-info p { margin: 0 0 4px; font-size: 12px; color: var(--ink-soft); }
.prof-actions { display: flex; gap: 8px; padding: 10px 16px 4px; }
.prof-actions .btn { flex: 1; }
.dj-tools { padding: 8px 16px; display: flex; flex-direction: column; gap: 8px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 5px; }
.chiprow button { padding: 6px 11px; border-radius: 12px; font-size: 11.5px; background: #e9dfce; color: var(--wood-dark); }
.chiprow button.on { background: var(--sage); color: #fff; }
.dj-screen { display: flex; gap: 6px; }
.dj-screen input { flex: 1; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line); font-size: 12px; }
.dj-screen button { padding: 0 13px; border-radius: 11px; background: var(--wood); color: #fff; font-size: 12px; }
.dj-list { padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow: auto; }
.dj-list button { text-align: left; font-size: 12px; padding: 8px 10px; border-radius: 10px; background: #ece2d1; color: var(--ink); }
.file-drop { display: block; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 118px; z-index: 85;
  padding: 10px 16px; border-radius: 14px; background: rgba(30,22,15,.88); color: #f6efe4;
  font-size: 12.5px; max-width: 88vw; text-align: center; opacity: 0; transition: opacity .3s, transform .3s;
  pointer-events: none; line-height: 1.5; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

@media (max-width: 430px) {
  .entry-body { grid-template-columns: 112px 1fr; gap: 10px; padding: 12px 14px 4px; }
  .preview-wrap { height: 170px; }
  .entry-title { font-size: 16px; }
  .boot-logo { font-size: 25px; }
  .nowplaying b { max-width: 52vw; font-size: 13px; }
  .sit-btn { bottom: 142px; font-size: 12px; padding: 9px 13px; }
  .go-down { bottom: 142px; font-size: 12px; }
}
