/* 색감: 프로필 그림 (크림 바탕 · 세이지 잎 초록 · 레몬 노랑 · 따뜻한 갈색 선) */
:root {
  --bg: #fbf8ea;          /* 크림 */
  --surface: #fffdf5;
  --surface-2: #f3eed8;
  --text: #3b3829;        /* 눈 테두리 같은 따뜻한 갈색 */
  --muted: #7d7862;
  --line: #e6e0c6;
  --accent: #6f8a54;      /* 잎 초록 (흰 글씨가 잘 보이는 진하기) */
  --accent-soft: #b4bf98; /* 프로필 테두리 초록 */
  --accent-ink: #ffffff;
  --lemon: #f3d97a;       /* 레몬 */
  --lemon-soft: #faefc4;
  --star: #e2b23a;
  --ok: #5f9a4c;
  --wait: #c08a1e;
  --closed: #b9584a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(80,70,30,.05), 0 10px 30px rgba(80,70,30,.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { font-weight: 800; text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
.links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.links a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.links a:hover { color: var(--text); background: var(--surface-2); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 7px 14px; font-size: 13px; }

/* hero */
.hero { display: flex; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 56px; position: relative; }
.hero::before { content: ""; position: absolute; z-index: -1; left: -40px; top: 10px; width: 420px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lemon) 45%, transparent), transparent); filter: blur(10px); pointer-events: none; }
body { position: relative; z-index: 0; }
.avatar { width: 168px; height: 168px; border-radius: 50%; flex: none; overflow: hidden; background: linear-gradient(135deg, var(--lemon), var(--accent-soft)); display: grid; place-items: center; color: #fff; font-size: 64px; font-weight: 800; box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--accent-soft), 0 14px 40px rgba(120,130,70,.25); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.15; margin: 10px 0 6px; letter-spacing: -.03em; }
.tagline { font-size: 18px; font-weight: 600; margin: 0 0 12px; color: var(--accent); }
.intro { color: var(--muted); margin: 0 0 24px; white-space: pre-line; }
.discord { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 10px 12px 10px 16px; border: none; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font: inherit; cursor: pointer; text-align: left; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .15s; }
.discord[hidden] { display: none; }
.discord:hover { transform: translateY(-2px); }
.discord svg { width: 30px; height: 30px; flex: none; }
.dc-txt { display: flex; flex-direction: column; line-height: 1.25; }
.dc-txt small { font-size: 12.5px; opacity: .85; font-weight: 600; }
.dc-txt b { font-size: 20px; letter-spacing: .01em; }
.dc-copy { margin-left: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.2); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.slots { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-weight: 500; }
.slot { width: 10px; height: 10px; border-radius: 3px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.slot.on { background: var(--accent); border-color: var(--accent); }

/* 작업 슬롯 판 */
.slot-board { margin-top: 8px; --pad: 28px; }
.slot-board[hidden] { display: none; }
.sb-head, .sb-cells { background: var(--surface); }
.slot-board .sb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: var(--pad) var(--pad) 18px; border: 1px solid var(--line); border-bottom: none; border-radius: 24px 24px 0 0; }
.sb-label { font-size: 15px; font-weight: 700; color: var(--accent); }
.sb-count { display: flex; align-items: baseline; gap: 8px; line-height: 1; margin: 6px 0 10px; }
.sb-count b { font-size: clamp(56px, 9vw, 84px); font-weight: 800; letter-spacing: -.04em; color: var(--accent); }
.sb-count span { font-size: 22px; font-weight: 700; color: var(--muted); }
.sb-msg { font-size: 17px; font-weight: 600; }
.sb-cells { list-style: none; margin: 0; padding: 0 var(--pad) var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; border: 1px solid var(--line); border-top: none; border-radius: 0 0 24px 24px; box-shadow: var(--shadow); }
.sb-cells li { aspect-ratio: 1 / 1; max-height: 150px; border-radius: 18px; border: 2.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.sb-cells .no { font-size: 32px; font-weight: 800; color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.sb-cells .st { font-size: 14px; font-weight: 600; color: var(--muted); }
.sb-cells li.taken { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.sb-cells li.taken .st { color: var(--accent); }
.sb-cells .clover { width: 58%; max-width: 72px; height: auto; display: block; }
@media (max-width: 760px) {
  .slot-board { --pad: 18px; }
  .slot-board .sb-head { flex-direction: column; align-items: stretch; }
  .sb-cells { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .sb-cells li { border-radius: 12px; border-width: 2px; }
  .sb-cells .no { font-size: 22px; }
  .sb-cells .st { font-size: 10px; }
}

/* sections */
.section { padding-top: 56px; padding-bottom: 32px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-size: 28px; margin: 0; letter-spacing: -.02em; }
.sec-head p { margin: 0; }
.sec-en { font-size: 12.5px; font-weight: 700; letter-spacing: 3px; color: var(--accent); margin-top: 4px; }
h3 { font-size: 18px; margin: 0 0 12px; }

/* works */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500; }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.cat-note { margin: -6px 0 20px; padding: 14px 18px; border-radius: 14px; background: var(--lemon-soft); border: 1px solid var(--line); text-align: center; font-weight: 700; white-space: pre-line; line-height: 1.7; }
.cat-note[hidden] { display: none; }
.grid { display: flex; gap: 20px; align-items: flex-start; }
.grid .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { all: unset; cursor: pointer; display: block; width: 100%; box-sizing: border-box; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.thumb { position: relative; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: auto; transition: transform .4s; }
.thumb .ph { aspect-ratio: 4 / 5; }
.card:hover .thumb img { transform: scale(1.04); }
.thumb .count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; color: rgba(255,255,255,.95); font-weight: 700; font-size: 18px; background: linear-gradient(150deg, hsl(var(--h) 45% 72%), hsl(calc(var(--h) + 30) 35% 52%)); }
.ph small { display: block; font-weight: 500; font-size: 12px; opacity: .8; margin-top: 4px; }
.card-body { padding: 14px 16px 16px; }
.card-cat { font-size: 12px; color: var(--accent); font-weight: 700; }
.card-title { font-weight: 700; margin: 2px 0 8px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; }
.empty { flex: 1; text-align: center; padding: 48px; color: var(--muted); }

/* price */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.price-card .badge { position: absolute; top: 18px; right: 18px; background: var(--lemon); color: #4a3f12; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price-card h3 { margin: 0 0 4px; }
.price-card .badge + h3 { padding-right: 56px; }
.price-card .amount { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; }
.price-card p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.price-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); padding-top: 14px; }
.price-card li { padding: 4px 0 4px 22px; position: relative; font-size: 14px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.options { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.options ul { list-style: none; margin: 0; padding: 0; }
.opt-flat { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 32px; }
.opt-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 36px; }
.opt-group h4 { margin: 14px 0 2px; font-size: 14px; color: var(--accent); }
/* 견적 계산기 */
.calc { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.calc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.calc-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; }
.calc-group h4 { margin: 2px 4px 8px; font-size: 14px; color: var(--accent); }
.calc-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.calc-row:hover { background: var(--surface-2); }
.calc-row.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.calc-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.calc-row .nm { flex: 1; min-width: 0; }
.calc-row .nm small { display: block; font-size: 12px; color: var(--muted); }
.calc-row b { white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); flex: none; }
.stepper button { all: unset; cursor: pointer; width: 30px; height: 30px; text-align: center; font-size: 17px; line-height: 30px; color: var(--muted); }
.stepper button:hover { color: var(--accent); }
.stepper output { min-width: 20px; text-align: center; font-weight: 700; }
.calc-sum { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sum-lines { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.sum-lines b { white-space: nowrap; }
.sum-lines .sum-empty { color: var(--muted); border: none; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.sum-total b { font-size: 26px; letter-spacing: -.02em; color: var(--accent); }
.sum-warn { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--closed) 12%, transparent); color: var(--closed); font-size: 13px; font-weight: 600; }
.sum-note { margin: 8px 0 14px; color: var(--muted); font-size: 12px; }
.sum-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sum-btns .primary { flex: 1; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc-sum { position: sticky; top: auto; bottom: 0; border-radius: var(--radius) var(--radius) 0 0; z-index: 5; padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; }
  .calc-sum h3, .sum-lines, .sum-note { display: none; }
  .sum-total { margin: 0; flex-direction: column; align-items: flex-start; }
  .sum-total span { font-size: 12px; color: var(--muted); }
  .sum-total b { font-size: 22px; }
  .sum-warn { grid-column: 1 / -1; margin: 0; order: -1; }
  .sum-btns .primary { padding: 10px 14px; font-size: 14px; }
  .sum-btns .small { display: none; }
}

.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 18px; }
.info div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.info dt { font-size: 12px; color: var(--muted); }
.info dd { margin: 2px 0 0; font-weight: 700; }
.rv-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rv-sum { font-size: 16px; }
.rv-sum .stars { color: var(--star); }
.reviews { columns: 3 280px; column-gap: 14px; }
.review { margin: 0 0 14px; break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.review-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.review .stars { color: var(--star); letter-spacing: 2px; font-size: 14px; }
.review .stars .off { color: var(--line); }
.review blockquote { margin: 0; font-size: 15px; white-space: pre-line; }
.review blockquote.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review .more { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); align-self: flex-start; }
.review .more[hidden] { display: none; }
.review .reply { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.review .reply b { color: var(--accent); }
.review .reply p { margin: 6px 0 0; white-space: pre-line; color: var(--text); }
.review figcaption { font-size: 13px; color: var(--muted); }
.guide { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.guide li { padding: 2px 0; }
.options li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.options li b { white-space: nowrap; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 14px; }

/* notice / faq */
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.notice ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.notice li { padding: 3px 0; }
.notice-link { margin-top: 12px; }
.faq-title { margin-top: 36px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.apply { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; min-width: 0; }
.apply-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.apply-head h3 { margin: 0; }
.apply pre { margin: 0; background: var(--surface-2); border-radius: 12px; padding: 16px; font-family: inherit; font-size: 14px; white-space: pre-wrap; line-height: 1.8; }
/* 신청서 폼 */
.apply-form { display: flex; flex-direction: column; gap: 18px; }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.f-top label { font-weight: 700; font-size: 14px; }
.f-top em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 1px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.f input[type=text], .f textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 14px; resize: none; overflow: hidden; line-height: 1.55; }
.f input[type=text]:focus, .f textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.f textarea.link { font-size: 14px; word-break: break-all; }
.f-quick { display: flex; gap: 6px; }
.f-quick .q { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.f-quick .q:hover { border-color: var(--accent); color: var(--accent); }
.f-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--wait); font-weight: 600; }
.f-hint[hidden] { display: none; }
.f-section { margin: 8px 0 -6px; padding-top: 16px; border-top: 1px dashed var(--line); font-weight: 800; font-size: 15px; color: var(--accent); }
.f-section small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.f-work { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.f-work .tag.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; font-size: 13px; padding: 4px 10px; }
.f-link { font-size: 13px; font-weight: 600; color: var(--accent); }
.f-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.f-choice label { cursor: pointer; }
.f-choice input { position: absolute; opacity: 0; pointer-events: none; }
.f-choice span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.f-choice input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.f-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.apply-side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 76px; min-width: 0; }
.apply-side pre { max-height: 46vh; overflow-y: auto; }
.apply-state { font-size: 12px; color: var(--ok); font-weight: 600; }
.apply-side .sum-warn { margin: 10px 0 0; }
.apply-side .sum-btns { margin-top: 12px; }
.contact-tip { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.contacts { display: flex; flex-direction: column; gap: 10px; }
.contact { all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; transition: border-color .15s; }
.contact:hover, .contact:focus-visible { border-color: var(--accent); }
.contact b { font-size: 15px; }
.contact span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; text-align: right; }

/* 상단 바 신청 버튼 */
.nav-cta { margin-left: auto; }

/* ── 오른쪽 바로가기 리모컨 ───────────────── */
.remote { position: fixed; z-index: 30; right: 18px; top: 50%; transform: translate(12px, -50%); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  display: flex; flex-direction: column; gap: 2px; width: 118px; padding: 10px 8px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.scrolled .remote { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.rm-title { font-size: 11px; font-weight: 700; color: var(--muted); padding: 2px 10px 6px; letter-spacing: .04em; }
.remote a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 7px 10px; border-radius: 12px; transition: background .15s, color .15s; white-space: nowrap; }
.remote a:hover { background: var(--surface-2); color: var(--text); }
.remote a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.remote a.rm-cta { margin-top: 4px; background: var(--accent); color: var(--accent-ink); text-align: center; }
.remote-fab { display: none; }
/* 리모컨이 옆에 붙을 자리를 만들려고, 중간 크기 화면에서는 본문 폭을 살짝 줄여요 */
@media (min-width: 1100px) and (max-width: 1439px) {
  .wrap { max-width: calc(100vw - 320px); }
}
/* 화면이 좁으면 오른쪽 아래 "목차" 버튼으로 열기 */
@media (max-width: 1099px) {
  .remote { top: auto; bottom: 84px; transform: translateY(10px); width: 150px; }
  .remote.open { opacity: 1; transform: none; pointer-events: auto; }
  .scrolled .remote:not(.open) { opacity: 0; pointer-events: none; transform: translateY(10px); }
  .remote-fab { position: fixed; z-index: 31; right: 18px; bottom: 20px; display: flex; align-items: center; gap: 6px; padding: 12px 18px 12px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
  .scrolled .remote-fab { opacity: 1; pointer-events: auto; transform: none; }
  .remote-fab.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
}

/* ── 작업 소개 (포타툰) ───────────────────── */
.pota-card { position: relative; background: linear-gradient(160deg, var(--lemon-soft), var(--surface) 60%); border: 1px solid var(--line); border-radius: 24px; padding: 32px; text-align: center; }
.pota-card h3 { font-size: clamp(22px, 3.4vw, 30px); color: var(--accent); margin: 0 0 12px; letter-spacing: -.02em; }
.pota-badge { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; padding: 6px 16px; border-radius: 999px; }
.pota-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.pota-text { white-space: pre-line; margin: 18px auto 0; max-width: 640px; font-size: 15.5px; line-height: 1.85; }
.pota-hl { display: inline-block; margin: 18px 0 0; padding: 10px 18px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); font-weight: 700; font-size: 14.5px; }
.values-title { text-align: center; margin: 36px 0 16px; font-size: 20px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.value .num, .must-item .num { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; }
.value h4 { margin: 12px 0 6px; font-size: 17px; }
.value p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ── 보유 아바타 ─────────────────────────── */
.avatars { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.av-img { all: unset; cursor: zoom-in; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.av-img img { width: 100%; height: auto; }
.av-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.av-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.av-names li { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14px; }
.av-items { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); text-decoration: none; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .15s; }
.av-items:hover { transform: translateY(-2px); }
.av-items-t { flex: 1; font-size: 17px; font-weight: 800; line-height: 1.35; }
.av-items-t small { display: block; font-size: 12.5px; font-weight: 600; opacity: .85; margin-top: 3px; }
.av-items-go { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); font-size: 18px; font-weight: 800; }
.av-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--lemon-soft); font-size: 14px; }

/* ── 보유 BOOTH 아이템 ────────────────────── */
.booth-guide { margin: -8px 0 16px; color: var(--muted); font-size: 14px; }
.booth-chips { margin-bottom: 12px; }
.booth-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.booth-tools label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.booth-tools select, .booth-tools input { font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); }
.booth-tools input { flex: 1; min-width: 180px; }
.booth-tools select:focus, .booth-tools input:focus { outline: none; border-color: var(--accent); }
.booth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.bi { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.bi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bi-img { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); }
.bi-img img { width: 100%; height: 100%; object-fit: cover; }
.bi-kind { position: absolute; left: 8px; top: 8px; background: rgba(255,253,245,.92); color: var(--accent); font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.bi-end { position: absolute; right: 8px; top: 8px; background: rgba(60,55,40,.75); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.bi-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bi-name { font-size: 13.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bi-shop { font-size: 12px; color: var(--muted); }
.bi-own { display: flex; gap: 4px; flex-wrap: wrap; }
.bi-own span { font-size: 11px; font-weight: 700; color: #8a6a10; background: var(--lemon-soft); padding: 2px 7px; border-radius: 6px; }
.bi-av { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.bi-av span { font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }
.bi-av span.on { background: var(--accent); color: var(--accent-ink); }
.bi-av span.more { background: none; }
.bi-av span.none { background: none; font-style: italic; }
@media (max-width: 760px) { .booth-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ── 필독사항 ────────────────────────────── */
.must { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.must-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.must-item h4 { margin: 2px 0 6px; font-size: 16.5px; }
.must-item p { margin: 0; font-size: 14.5px; color: var(--muted); }
.must-item .must-warn { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--closed) 10%, var(--surface)); color: var(--closed); font-weight: 600; font-size: 13.5px; }
.must-foot { text-align: center; margin: 22px 0 0; font-size: 17px; font-weight: 700; color: var(--accent); }

/* ── 리뷰 이벤트 배너 ─────────────────────── */
.rv-event { margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--lemon-soft); padding: 0; }
.rv-event[hidden] { display: none; }
.rv-event img { width: 100%; height: auto; }
.f-note { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }

@media (max-width: 760px) {
  .avatars { grid-template-columns: 1fr; }
  .pota-card { padding: 24px 18px; }
  .must { grid-template-columns: 1fr; }
}

/* 아트머그 상세페이지에 넣었을 때 (?embed=artmug) */
.embed .f-work { display: none; }
.embed .hero { padding-top: 40px; }
.embed .apply-side { top: 70px; }

.footer {padding-top: 40px; padding-bottom: 48px; color: var(--muted); font-size: 13px; text-align: center; }

/* lightbox */
.lb { width: min(1100px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: none; border-radius: 20px; background: var(--surface); color: var(--text); overflow: hidden; }
.lb::backdrop { background: rgba(10,10,12,.78); backdrop-filter: blur(4px); }
.lb[open] { display: flex; flex-direction: column; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.lb-body { display: grid; grid-template-columns: 1fr 300px; min-height: 0; flex: 1; }
.lb-stage { position: relative; background: #0d0d0f; display: grid; place-items: center; min-height: 360px; height: min(70vh, 720px); }
.lb-media { width: 100%; height: 100%; display: grid; place-items: center; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-media iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.lb-media .ph { aspect-ratio: 4/5; height: 100%; width: auto; max-width: 100%; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-nav[hidden] { display: none; }
.lb-info { padding: 28px 24px; overflow-y: auto; }
.lb-info h3 { font-size: 22px; margin: 4px 0 10px; padding-right: 36px; }
.lb-info p { color: var(--muted); margin: 0 0 16px; white-space: pre-line; }
.lb-info dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.lb-info dt { color: var(--muted); }
.lb-info dd { margin: 0; }
.lb-thumbs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; border-top: 1px solid var(--line); }
.lb-thumbs:empty { display: none; }
.lb-thumbs button { all: unset; cursor: pointer; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex: none; opacity: .5; outline: 2px solid transparent; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; }
.lb-thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--accent); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { flex-direction: column; text-align: center; gap: 20px; padding-top: 40px; }
  .avatar { width: 120px; height: 120px; font-size: 46px; }
  .hero-cta, .status { justify-content: center; }
  .grid, .grid .col { gap: 14px; }
  .card-body { padding: 10px 12px 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .apply-side { position: static; }
  .lb { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .lb-body { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-stage { height: 56vh; min-height: 0; }
}
