/* v3: 한·영 같은 배치와 같은 느낌의 제목, 새 실험실 조작부 (마지막에 불러 덮어씀) */

/* ---------- 제목: 언어가 바뀌어도 같은 크기, 같은 줄 수 ---------- */
:root { --f-serif-ko: "Noto Serif KR", "Nanum Myeongjo", serif; }
.sh-title, html.ko .sh-title { font: 600 clamp(44px, 6.3vw, 100px)/.98 var(--f-ko); letter-spacing: -.05em; }
.sh-title .w { display: block; white-space: nowrap; }
html.ko .sh-title em { font: 600 1em/.98 var(--f-serif-ko); letter-spacing: -.06em; font-style: normal; }
html.ko .sh-title { letter-spacing: -.055em; }
.sh-sub { min-height: 3.2em; }
html.ko .sh-eyebrow { font: 500 12.5px var(--f-mono); letter-spacing: .14em; }
html.ko .kicker { font: 500 12px var(--f-mono); letter-spacing: .16em; }
html.ko .sec-title, html.ko .sec-h, html.ko .feature-title { font-weight: 600; letter-spacing: -.05em; }
html.ko .sec-title em { font: 600 1em var(--f-serif-ko); color: var(--amber); letter-spacing: -.05em; }
html.ko .newrel-line { font: 500 clamp(26px, 2.9vw, 42px)/1.15 var(--f-serif-ko); letter-spacing: -.05em; }
html.ko .pdp-line { font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--f-serif-ko); letter-spacing: -.05em; }
html.ko .slide-line, html.ko .pdp-desc, html.ko .newrel-desc, html.ko .sh-sub { letter-spacing: -.025em; }
@media (max-width: 960px) { .sh-title, html.ko .sh-title { font-size: clamp(42px, 13.2vw, 92px); } }

/* ---------- 실험실 조작부 ---------- */
.lab-card { --acc: #ffb04a; --acc-ink: #1c1003; --c-line: rgba(255, 255, 255, .1); --c-fill: rgba(255, 255, 255, .05); --c-text: rgba(255, 255, 255, .62); --c-strong: #fff; --c-k: rgba(255, 255, 255, .42); }
.lab-card.skin-retro { --acc: #ff5a3c; --acc-ink: #fff; }
.lab-card.skin-m4 { --acc: #ffb04a; }
.lab-card.skin-m2a { --acc: #ff6a52; --acc-ink: #fff; }
.lab-card.skin-res { --acc: #9bd17a; --acc-ink: #0a120a; }
.lab-card.skin-dyn { --acc: #e9782a; --acc-ink: #fff; --c-line: rgba(47, 43, 36, .14); --c-fill: rgba(47, 43, 36, .05); --c-text: rgba(47, 43, 36, .6); --c-strong: #2f2b24; --c-k: rgba(47, 43, 36, .45); }
.lab-card { background: linear-gradient(180deg, #17181b, #121315); border: 1px solid #26282c; border-radius: 26px; }
.lab-card.skin-res { background: linear-gradient(180deg, #0d120d, #090c09); border-color: #1d291d; }
.lab-card.skin-dyn { background: linear-gradient(180deg, #f6f1e6, #efe8da); border-color: #e2d9c7; }

.ctl-grid { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 20px; }
.ctl { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ctl-k { font: 500 10.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c-k); }

.lab-card.lab-card .seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--c-fill); box-shadow: inset 0 0 0 1px var(--c-line); }
.lab-card.lab-card .seg button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 9px; border: 0; background: transparent; box-shadow: none;
  color: var(--c-text); font: 600 13px var(--f-disp); letter-spacing: -.01em; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.lab-card.lab-card .seg button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-line); transition: background .2s, box-shadow .2s; flex: none; }
.lab-card.lab-card .seg button:hover { color: var(--c-strong); }
.lab-card.lab-card .seg button[aria-pressed="true"] { background: var(--c-fill); color: var(--c-strong); box-shadow: inset 0 0 0 1px var(--c-line), 0 1px 2px rgba(0, 0, 0, .2); }
.lab-card.lab-card .seg button[aria-pressed="true"]::before { background: var(--acc); box-shadow: 0 0 8px var(--acc), 0 0 2px var(--acc); }

.lab-card.lab-card .sound { height: 44px; padding: 0 18px 0 6px; gap: 10px; border-radius: 999px; background: transparent; color: var(--c-strong); box-shadow: inset 0 0 0 1px var(--c-line);
  font: 600 14px var(--f-ko); letter-spacing: -.01em; }
.lab-card.lab-card .sound i { width: 32px; height: 32px; background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 16px -2px var(--acc); }
.lab-card.lab-card .sound[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); box-shadow: 0 8px 26px -10px var(--acc); }
.lab-card.lab-card .sound[aria-pressed="true"] i { background: rgba(0, 0, 0, .18); color: var(--acc-ink); box-shadow: none; }
.lab-bar { gap: 12px 16px; }
.lab-bar .read { margin-left: auto; }
.lab-card .read { color: var(--acc); font: 500 12.5px var(--f-mono); }
.lab-card .kn label { font: 500 10.5px var(--f-mono); letter-spacing: .12em; color: var(--c-k); }
.lab-card .kn output { color: var(--c-strong); font: 500 12px var(--f-mono); }
.lab-card .kn .arc { color: var(--acc); }
.lab-card .knobs { gap: 20px 26px; justify-content: flex-start; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.retro-side .knobs { justify-content: flex-start; }
.vu.off { filter: brightness(.45) saturate(.6); transition: filter .4s; }
.vu { transition: filter .4s; border-radius: 8px; }
.rot-crop.toggle { background-color: transparent; }
.retro-side .lab-bar { align-items: center; }
.retro-side .read { margin: 0 0 0 auto; }
@media (max-width: 560px) {
  .lab-card.lab-card .seg button { padding: 0 10px; height: 32px; font-size: 12.5px; gap: 6px; }
  .ctl-grid { gap: 14px 16px; }
  .lab-card .knobs { gap: 16px 14px; justify-content: space-between; }
  .kn { width: 76px; }
}
.vu, .layered svg, .scope { stroke: none; stroke-width: 0; }

/* 말풍선이 사진·3D 데크 뒤로 숨지 않게 */
.deck-tilt { transform-style: flat; -webkit-box-reflect: none; }
.sh-deck { isolation: isolate; }
.sh-deck .hint-bubble, .layered .hint-bubble, .retro-stack .hint-bubble, .retro-wrap .hint-bubble, .knobstage .hint-bubble { z-index: 40; }
.retro-wrap { isolation: isolate; }
.hint-bubble { will-change: transform; }
.sh-floor { height: 26%; }
html.ko .sh-eyebrow, html.ko .kicker { font-family: var(--f-ko); letter-spacing: .06em; font-weight: 600; }

/* ---------- 가볍게: 큰 면적의 블렌드·블러·무한 애니메이션 줄이기 ---------- */
.grain { mix-blend-mode: normal; opacity: .05 !important; }
.sheen { mix-blend-mode: normal; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%) no-repeat; background-size: 300% 100%; animation-iteration-count: 3; }
.sh-light { animation: none; }
.lu { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .055); }
.hint-bubble { will-change: auto; animation-iteration-count: 5; }
.rot-crop.pulse, .kn .face.pulse { animation-iteration-count: 5; }
.deck .spin { will-change: transform; }
.slide::before { display: none; }
@media (max-width: 860px) {
  .hdr { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0f0e0d; }
  .grain, .sheen { display: none; }
  .pdp-tabs { backdrop-filter: none; -webkit-backdrop-filter: none; background: #f2f3f5; }
  .tile .shot, .pcard, .lcard { transition: none; }
}
/* 영어 첫 줄이 길어져도 한 줄 유지 */
.sh-title, html.ko .sh-title { font-size: clamp(42px, 5.9vw, 92px); }
@media (max-width: 960px) { .sh-title, html.ko .sh-title { font-size: clamp(40px, 12vw, 84px); } }
/* 휴대폰 첫 화면: 3D 기울기·큰 그림자 없이 (스크롤 렉 방지) */
@media (max-width: 960px) {
  .deck-tilt { transform: none; }
  .deck-tilt .deck { box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9); }
  .sh-deck { perspective: none; animation-duration: .8s; }
  .sh-light { background: radial-gradient(60% 45% at 70% 30%, rgba(255, 168, 72, .28), transparent 70%); }
  .btn.amber { box-shadow: 0 6px 18px -8px rgba(255, 150, 40, .6); }
}
.deck { contain: layout paint; }

.sh-copy { min-width: 0; }
.sh-title .w { width: max-content; }
@media (min-width: 961px) { .sh-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr); } }

/* 스크롤 렉: 필터, 둥근 모서리 잘라내기, 휴대폰 첫 등장 애니메이션 줄임 */
.pcard-img::after { filter: none; background: radial-gradient(ellipse, rgba(0, 0, 0, .35), transparent 70%); }
.pcard:hover .pcard-img img, .tile:hover .shot, .lcard:hover { transform: none; }
@media (max-width: 860px) {
  .hero-deck { border-radius: 0 !important; }
  .deck-tilt .deck { box-shadow: none; }
  .sh-deck, .lu, .sh-title .w, .sh-sub, .sh-ctas, .sh-eyebrow { animation: none !important; }
  .stage-hero .sh-light { background: radial-gradient(70% 40% at 70% 25%, rgba(255, 168, 72, .22), transparent 70%); }
  .pcard, .lcard, .bundle, .news { box-shadow: none; }
  .newrel-shot img { box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
  .hint-bubble { animation: none; }
}
/* 가로 넘침은 clip 으로 (hidden 보다 스크롤이 가벼움) */
body { overflow-x: clip; }
.hero-deck > img.flat { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1274; }

/* 제목: 두 언어 중 가장 긴 줄(영어 2번째 줄, 약 8.5em)이 화면 폭 안에 들어오게 */
.sh-title, html.ko .sh-title { font-size: min(92px, 4.6vw) !important; }
@media (max-width: 960px) { .sh-title, html.ko .sh-title { font-size: min(84px, calc((100vw - 44px) / 9.2)) !important; } }
.sh-copy, .sh-title { max-width: 100%; }
/* 화면 밖 섹션은 가까워질 때 그림 (휴대폰 스크롤 가볍게) */
#plugins, #bundle, .numbers, #learn, #support, .newrel, .ftr { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (max-width: 860px) {
  .pcard-img { background: var(--bg); }
  .pcard-img::after, .newrel .grain, .stage-hero .grain { display: none; }
  .newrel-shot img { transform: none !important; }
  .lineup { contain: content; }
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 560px) { .sh-eyebrow, html.ko .sh-eyebrow { font-size: 10.5px; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 560px) { .promo-bar { font-size: 12px; } .promo-bar a { max-width: 100%; white-space: nowrap; overflow: hidden; } .promo-bar a > span:not(.arr) { overflow: hidden; text-overflow: ellipsis; } }

/* 휴대폰: 넓은 조작 화면이 스크롤을 막지 않게 (위아래는 페이지 스크롤, 옆으로 끌면 조작) */
@media (pointer: coarse) { .scope { touch-action: pan-y; } .layered { touch-action: pan-y; } }
.hero-deck > img.flat { pointer-events: none; }

/* 첫 화면: 반짝임·회전 없음 */
.sheen { display: none !important; }
/* 글이 사진·노브 그림 아래로 깔리지 않게 */
.pcard-img .badge, .badge { z-index: 3; }
.kn label, .kn output { position: relative; z-index: 2; }
.newrel-copy, .sh-copy, .bundle-copy, .feature-copy { position: relative; z-index: 2; }
.thumb span { position: relative; z-index: 1; }
.lu-new { z-index: 2; }
.hint-bubble { z-index: 40 !important; }

/* ---------- 실제 플러그인 화면 (Resonance · DynEQ) ---------- */
.plugwrap { position: relative; width: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(60, 50, 30, .45); --pw: 1000px; user-select: none; -webkit-user-select: none; }
.plugwrap > img.base { display: block; width: 100%; height: auto; aspect-ratio: 1120 / 640; }
.plugwrap .pscope { cursor: grab; }
.plugwrap .pk-ring { pointer-events: none; overflow: visible; }
.plugwrap .rot-crop.pk { cursor: ns-resize; }
.plugwrap .pk-val { font: 500 calc(15 / 1120 * var(--pw)) / 1.2 Montserrat, Geist, sans-serif; color: #5e5951; background: #f5efe8; pointer-events: none; white-space: nowrap; display: flex; align-items: center; letter-spacing: 0; }
.plugwrap .pk-val.gr { color: #71786a; background: #faf4f0; font-size: calc(13 / 1120 * var(--pw)); }
.plugwrap .pkey { font-family: Montserrat, Geist, sans-serif; font-weight: 500; letter-spacing: .08em; color: #6e6a62; background: #f8f2ed; border: 1px solid #e3dccf; border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 1px 2px rgba(80, 60, 30, .12); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; line-height: 1; }
.plugwrap .pkey.pseg { border-radius: 3px; }
.plugwrap .pkey.on { background: #97a288; color: #fff; border-color: #8a967b; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.plugwrap .pkey:active { transform: translateY(1px); }
.lab-card.skin-dyn .plug .ctl-grid { margin-top: 18px; }

/* MG-Retro 키: 켜지면 위쪽 색 띠에 불이 들어오고 튀어나옴, 꺼지면 눌려 들어감 */
.rkey { border: 0; padding: 0; background: none; cursor: pointer; transition: transform .12s ease, filter .12s ease; transform: translateY(2.2%); filter: brightness(.86) saturate(.85); }
.rkey img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .12s; }
.rkey .k-on { opacity: 0; } .rkey.on .k-on { opacity: 1; } .rkey.on .k-off { opacity: 0; }
.rkey.on { transform: translateY(-3.5%); filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .55)) brightness(1.04); }
.rkey .k-led { position: absolute; left: 22%; right: 22%; top: 7%; height: 5%; border-radius: 2px; background: var(--led); opacity: 0; transition: opacity .15s, box-shadow .15s; }
.rkey.on .k-led { opacity: 1; box-shadow: 0 0 6px 1px var(--led), 0 0 14px var(--led); }
.rkey:active { transform: translateY(4%); }
.kn .face.img .rot.crop { inset: 0; background-repeat: no-repeat; }
.skin-retro .kn .face.img::after { content: none; }

/* MG-Retro 노브: 플러그인과 같은 구성 — 몸통만 돌고, 캡은 제자리, 흰 표시 점은 캡 위 */
.rot-crop.layered { background-repeat: no-repeat; }
.rk-cap, .rk-ptr { position: absolute; aspect-ratio: 1; pointer-events: none; background: center / 100% 100% no-repeat; }
.rk-ptr { will-change: transform; }
.rk-ptr i, .kn .face.img .ptr i { position: absolute; border-radius: 50%; background: #f2efe6; box-shadow: 0 .8px 0 1px rgba(0, 0, 0, .45); }
.skin-retro .kn .face.img .cap.rk { inset: auto; left: calc(50% - 6 / 115 * 100% - 75 / 115 * 50%); top: calc(50% + 1 / 115 * 100% - 75 / 115 * 50%); width: calc(75 / 115 * 100%); height: calc(75 / 115 * 100%); transform: none; }
.skin-retro .kn .face.img .ptr i { width: calc(7 / 115 * 100%); height: calc(7 / 115 * 100%); left: calc(50% - 3.5 / 115 * 100%); top: calc(50% - 45 / 115 * 100% - 3.5 / 115 * 100%); }
/* 꺼진 키: 색 띠도 꺼진 것처럼 어둡게, 더 눌려 들어감 */
.rkey:not(.on) { transform: translateY(3%); filter: brightness(.8) saturate(.7); }
.rkey:not(.on) .k-led { opacity: .55; background: #1a1712; box-shadow: none; mix-blend-mode: multiply; }
.rkey.on { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .6)) brightness(1.06); }

/* MG-2A VU: 패널 미터 그림 그대로 (바늘만 그림) */
.layered .vu-n { position: absolute; pointer-events: none; overflow: hidden; }
.vuz { position: relative; width: 100%; aspect-ratio: 256 / 142; max-width: 520px; margin: 0 auto; background-repeat: no-repeat; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.vuz .vuz-n { position: absolute; inset: 0; width: 100%; height: 100%; }
.kn .face.img .rot.crop { inset: 0; background-repeat: no-repeat; border-radius: 50%; }

/* 소리 단추 아이콘: 꺼짐 = 재생 ▶, 켜짐 = 정지 ■ */
.sound i svg { width: 14px; height: 14px; display: block; }
.sound .ic-play { margin-left: 2px; }
.sound .ic-stop, .sound[aria-pressed="true"] .ic-play { display: none; }
.sound[aria-pressed="true"] .ic-stop { display: block; }

/* Resonance · DynEQ 그래프 (플러그인과 같은 그림·조작) */
.plugwrap .pgraph { position: absolute; touch-action: none; outline: none; cursor: crosshair; }
.plugwrap .pmini { position: absolute; z-index: 5; box-sizing: border-box; padding: calc(5 / 1120 * var(--pw)) calc(6 / 1120 * var(--pw)); border-radius: calc(6 / 1120 * var(--pw));
  background: #f6f1ea; border: 1px solid #e3dbd0; box-shadow: 0 calc(6 / 1120 * var(--pw)) calc(18 / 1120 * var(--pw)) rgba(90, 70, 45, .16); font-family: Montserrat, Geist, sans-serif; color: #534e48;
  display: grid; grid-template-rows: repeat(3, 1fr) auto; height: auto !important; min-height: calc(78 / 640 * 100%); user-select: none; -webkit-user-select: none; }
.plugwrap .pmini .r { display: flex; align-items: center; gap: calc(4 / 1120 * var(--pw)); height: calc(22.6 / 1120 * var(--pw)); }
.plugwrap .pmini .ib { flex: 0 0 calc(24 / 1120 * var(--pw)); height: 100%; border: 0; padding: 0; background: none; color: #a8a29a; cursor: pointer; display: grid; place-items: center; }
.plugwrap .pmini .ib .pi { width: calc(14 / 1120 * var(--pw)); height: calc(14 / 1120 * var(--pw)); }
.plugwrap .pmini .ib.pw.on, .plugwrap .pmini .ib.so.on, .plugwrap .pmini .ib.ch.on { color: #6c7c64; }
.plugwrap .pmini .ib.pw.on { color: #8fa77f; } .plugwrap .pmini .ib.cl { color: #8f8a84; } .plugwrap .pmini .ib.sh { color: #534e48; }
.plugwrap .pmini .vc { flex: 1; display: flex; align-items: center; justify-content: center; gap: calc(5 / 1120 * var(--pw)); font-size: calc(12.5 / 1120 * var(--pw)); font-weight: 500; cursor: ns-resize; border-radius: 3px; white-space: nowrap; touch-action: none; }
.plugwrap .pmini .vc.fr { font-size: calc(13 / 1120 * var(--pw)); }
.plugwrap .pmini .vc em { font-style: normal; font-size: calc(10 / 1120 * var(--pw)); letter-spacing: .06em; color: #a29d90; }
.plugwrap .pmini .vc.on { background: rgba(108, 124, 100, .14); }
.plugwrap .pmini .r2 i { flex: 0 0 calc(48 / 1120 * var(--pw)); }
.plugwrap .pmini .r3 { padding-left: calc(4 / 1120 * var(--pw)); }
.plugwrap .pmini .r4 { height: auto; flex-wrap: wrap; gap: calc(3 / 1120 * var(--pw)); padding: calc(4 / 1120 * var(--pw)) 0 calc(2 / 1120 * var(--pw)); border-top: 1px solid #e6ded3; margin-top: calc(3 / 1120 * var(--pw)); }
.plugwrap .pmini .r4 button { font: 500 calc(9 / 1120 * var(--pw)) Montserrat, sans-serif; letter-spacing: .05em; color: #6e6a62; background: #f8f2ed; border: 1px solid #e3dccf; border-radius: 3px; padding: calc(3 / 1120 * var(--pw)) calc(5 / 1120 * var(--pw)); cursor: pointer; }
.plugwrap .pmini .r4 button.on { background: #97a288; border-color: #8a967b; color: #fff; }
.plugwrap .pmenu { position: absolute; z-index: 6; display: flex; flex-direction: column; background: #f6f1ea; border: 1px solid #e3dbd0; border-radius: 6px; box-shadow: 0 8px 20px rgba(90, 70, 45, .18); padding: 4px; }
.plugwrap .pmenu button { font: 500 12px Montserrat, sans-serif; color: #534e48; background: none; border: 0; text-align: left; padding: 6px 12px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.plugwrap .pmenu button:hover { background: #ebe4da; }

/* MG-Retro 키 불빛: 키 그림의 색 띠와 같은 자리·크기 */
.rkey .k-led { top: 12.1%; height: 5.2%; border-radius: 1px; }
/* 오른쪽 클릭 메뉴 (플러그인 항목) */
.plugwrap .pmenu { min-width: 200px; }
.plugwrap .pmenu i { display: inline-block; width: 16px; font-style: normal; color: #6c7c64; }
.plugwrap .pmenu hr { border: 0; border-top: 1px solid #e3dbd0; margin: 3px 4px; }
.plugwrap .pmenu .sub { position: relative; font: 500 12px Montserrat, sans-serif; color: #534e48; padding: 6px 12px 6px 28px; border-radius: 4px; cursor: default; }
.plugwrap .pmenu .sub::after { content: "›"; position: absolute; right: 10px; }
.plugwrap .pmenu .sub > div { display: none; position: absolute; left: 100%; top: -4px; background: #f6f1ea; border: 1px solid #e3dbd0; border-radius: 6px; box-shadow: 0 8px 20px rgba(90, 70, 45, .18); padding: 4px; flex-direction: column; }
.plugwrap .pmenu .sub:hover > div, .plugwrap .pmenu .sub:focus-within > div { display: flex; }
.plugwrap .pmenu .sub:hover { background: #ebe4da; }
/* 아래 띠 단추가 여는 창 */
.plugwrap .ppanel { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.plugwrap .ppanel > * { pointer-events: auto; }
.plugwrap .ppanel-bg { background-repeat: no-repeat; }
.plugwrap .pclose { background: none; border: 0; padding: 0; cursor: pointer; }
.plugwrap .pk-val.sub { justify-content: center; font-size: calc(9 / 1120 * var(--pw)); letter-spacing: .06em; color: #6d6861; background: #f6efe7; }
.plugwrap .pk-val.note { font-size: calc(9 / 1120 * var(--pw)); letter-spacing: .06em; color: #a29d90; background: #f6eee6; }
.plugwrap .ppanel .pk-val { background: #f5eee6; }

/* 한국어 첫 화면 제목: 영어(고딕 + 이탤릭 세리프)와 같은 짜임. 크기 0.82배, 줄 간격으로 전체 높이는 영어와 같게 */
html.ko .sh-title { font-size: calc(min(92px, 4.6vw) * .82) !important; line-height: 1.195; font-weight: 600; letter-spacing: -.045em; }
@media (max-width: 960px) { html.ko .sh-title { font-size: calc(min(84px, calc((100vw - 44px) / 9.2)) * .82) !important; } }
html.ko .sh-title em { font-family: "Nanum Myeongjo", var(--f-serif-ko); font-weight: 400; font-size: 1em; line-height: inherit; font-style: normal; background: none; color: inherit; padding: 0; }
html.ko .sh-title em .sk { display: inline-block; transform: skewX(-7deg); letter-spacing: -.06em; padding: 0 .12em .06em 0;
  background: linear-gradient(100deg, #ffe2b8 0%, var(--amber) 45%, #e8631f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* MG-Retro 키: 홈 바닥 + 그림은 배경 (깨진 그림 아이콘 방지) */
.retro-stack .rtray { position: absolute; display: block; background: linear-gradient(#050504, #0d0d0b 18%, #0a0a08 82%, #141412); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9); }
.rkey > span { position: absolute; inset: 0; display: block; background: center / 100% 100% no-repeat; transition: opacity .12s; }
.rkey .k-on { opacity: 0; } .rkey.on .k-on { opacity: 1; } .rkey.on .k-off { opacity: 0; }
.rkey::before { content: ""; position: absolute; left: 3%; right: 3%; bottom: -5%; height: 12%; background: rgba(0, 0, 0, .55); filter: blur(2px); border-radius: 4px; z-index: -1; }
.rkey { isolation: isolate; }

.rk-hole { position: absolute; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #1c1c1a 0 70%, #121211 100%); }

/* 첫 화면 반복 영상: 정지 그림 위에, 재생이 시작되면 부드럽게 */
.hero-deck { position: relative; }
.hero-deck > video.flat-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-deck > video.flat-video.on { opacity: 1; }

/* 첫 화면 움직이는 데크 (CSS 회전만: 화면 합성 단계에서 돌아 스크롤과 따로) */
.deck-live { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; opacity: 0; transition: opacity .6s ease; pointer-events: none; contain: layout paint; }
.deck-live.on { opacity: 1; }
.deck-live .dl-full { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.deck-live .dl-reel { position: absolute; height: auto; display: block; will-change: transform; animation: dl-spin 2.2s linear infinite reverse; }
.deck-live .dl-reel.r { animation: dl-spin 1.24s linear infinite; }
.deck-live .dl-face { position: absolute; display: block; overflow: hidden; }
.deck-live .dl-needle { position: absolute; display: block; left: calc(108.9 / 220 * 100%); width: calc(2.2 / 220 * 100%); top: calc(41.3 / 120 * 100%); height: calc(135.4 / 120 * 100%);
  background: #0d0d0d; clip-path: polygon(0 100%, 34% 0, 66% 0, 100% 100%); transform-origin: 50% 141%; will-change: transform; animation: dl-vu0 2.6s ease-in-out infinite; }
.deck-live .dl-needle.n1 { animation: dl-vu1 3.1s ease-in-out infinite; }
.deck-live.paused * { animation-play-state: paused !important; }
@keyframes dl-spin { to { transform: rotate(360deg); } }
@keyframes dl-vu0 { 0% { transform: rotate(2deg); } 12% { transform: rotate(9deg); } 21% { transform: rotate(5deg); } 33% { transform: rotate(12deg); } 42% { transform: rotate(6deg); }
  55% { transform: rotate(11deg); } 64% { transform: rotate(4deg); } 77% { transform: rotate(10deg); } 88% { transform: rotate(6deg); } 100% { transform: rotate(2deg); } }
@keyframes dl-vu1 { 0% { transform: rotate(4deg); } 10% { transform: rotate(8deg); } 24% { transform: rotate(3deg); } 37% { transform: rotate(11deg); } 49% { transform: rotate(7deg); }
  60% { transform: rotate(13deg); } 72% { transform: rotate(5deg); } 85% { transform: rotate(9deg); } 100% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .deck-live * { animation: none !important; } }

/* 터치 기기(폰·폴드·태블릿): 너비와 상관없이 반투명 흐림·섞기 효과 끔. 펼친 폴드7은 860px보다 넓어서 위쪽 막대 흐림이 켜져 있었음 */
@media (hover: none), (pointer: coarse) {
  *, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .hdr { background: #0f0e0d !important; }
  .pdp-tabs { background: #f2f3f5 !important; }
  .grain, .sheen, .slide::before { display: none !important; }
  .tile .shot, .pcard, .lcard { transition: none; }
}
/* 스크롤하는 동안 움직임 잠깐 멈춤 */
html.scrolling .deck-live *, html.scrolling .hint-bubble, html.scrolling .pulse { animation-play-state: paused !important; }

/* ---------- 소개 / 설치 안내 페이지 ---------- */
.page-hero { background: var(--dark); color: #fff; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.page-title { font: 800 clamp(40px, 6vw, 76px)/1.04 var(--f-disp, var(--f-ko)); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.page-title em { font: italic 400 1.08em/1 var(--f-serif, serif); letter-spacing: -.02em; background: linear-gradient(100deg, #ffe2b8, var(--amber, #ff9a3c) 45%, #e8631f); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
html.ko .page-title em { font: 400 1em/1.1 "Nanum Myeongjo", var(--f-serif-ko, serif); font-style: normal; display: inline-block; transform: skewX(-7deg); letter-spacing: -.05em; }
.page-lead { max-width: 34em; margin: 26px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: #c9c1b6; }
.page-sec { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }
.dark-band { background: var(--dark-2, #15171a); color: #fff; }
.dark-band .sec-title { margin-bottom: 30px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principles > div { background: var(--card); border-radius: 18px; padding: 26px; }
.principles h3 { font: 800 20px/1.3 var(--f-ko); letter-spacing: -.03em; margin: 10px 0 8px; }
.principles p { margin: 0; color: var(--ink-2); }
.pn { color: var(--amber, #e8892f); }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mcard { background: #1d1f23; border: 1px solid var(--dark-line, #2a2c31); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mcard h3 { font: 800 24px/1.2 var(--f-ko); letter-spacing: -.03em; margin: 4px 0 6px; color: #fff; }
.mcard .pcat { color: #c8a274; margin: 0; } .mcard .muted { color: #9a958d; margin: 0; }
.mnums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mnums li { background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.mnums b { font: 700 19px/1.2 var(--f-disp, var(--f-ko)); color: #ffd7a3; letter-spacing: -.02em; } .mnums span { font-size: 13.5px; color: #b5afa6; line-height: 1.4; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 30%) 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; color: #b5afa6; }
.bar-t { height: 10px; background: rgba(255, 255, 255, .06); border-radius: 4px; overflow: hidden; }
.bar-t i { display: block; height: 100%; background: #6b6862; border-radius: 4px; }
.bar-row.hi .bar-t i { background: linear-gradient(90deg, #ffb35c, #e8762a); } .bar-row.hi { color: #fff; }
.bar-v { color: inherit !important; font-size: 12.5px; }
.bar-note { font-size: 12.5px; margin: 4px 0 0; color: #8f8a83 !important; line-height: 1.5; }
.credits { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.credits li { background: var(--card); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.credits span { color: var(--ink-2); font-size: 14.5px; }
.small { font-size: 14px; }
.os-tabs { display: inline-flex; gap: 4px; background: #e7e8ec; border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.os-tabs button { border: 0; background: none; font: 600 15px var(--f-ko); padding: 9px 22px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.os-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { background: var(--card); border-radius: 16px; padding: 22px; display: flex; gap: 14px; }
.steps .sn { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 14px var(--f-mono); }
.steps b { font: 700 17px/1.35 var(--f-ko); } .steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.req { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; margin-top: 18px; }
.req > div { background: var(--card); border-radius: 16px; padding: 20px 22px; min-width: 0; }
.req h3 { font: 700 13px var(--f-ko); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px; } .req p { margin: 0; }
.paths { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.paths li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.paths span { color: var(--ink-2); } .paths code { font: 500 12.5px var(--f-mono); overflow-wrap: anywhere; color: var(--ink); }
.faq { display: grid; gap: 10px; margin-bottom: 18px; }
.faq details { background: var(--card); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font: 700 17px/1.4 var(--f-ko); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--mute); } .faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }
.assure { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.assure li::before { content: "✓"; color: #3f9a62; margin-right: 8px; font-weight: 700; }
.assure li:last-child::before { content: none; } .assure a { color: var(--ink); font-weight: 600; }
.cart-notify { margin-top: 10px; width: 100%; justify-content: center; }
@media (max-width: 900px) {
  .principles, .steps, .mgrid { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; }
  .mnums { grid-template-columns: 1fr 1fr; }
  .paths li { grid-template-columns: 1fr; gap: 0; }
}

.steps[hidden] { display: none !important; }
.mnums b span, .mnums b { color: #ffd7a3; font: 700 19px/1.2 var(--f-disp, var(--f-ko)); letter-spacing: -.02em; }

/* ---------- 결제 ---------- */
.page-hero.slim { padding: clamp(44px, 6vw, 72px) 0 clamp(30px, 4vw, 44px); }
.page-title.sm { font-size: clamp(32px, 4.4vw, 54px); }
.co { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.co-form { display: grid; gap: 18px; background: var(--card); border-radius: 20px; padding: clamp(20px, 3vw, 32px); min-width: 0; }
.co-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.co-form legend { font: 700 15px var(--f-ko); margin-bottom: 10px; padding: 0; }
.region { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.region button { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; cursor: pointer; display: grid; gap: 2px; font: inherit; color: var(--ink); }
.region button b { font: 700 16px var(--f-ko); } .region button span { font-size: 13px; color: var(--ink-2); }
.region button[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fld input { width: 100%; box-sizing: border-box; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 14px; font: 500 16px var(--f-ko); background: #fff; color: var(--ink); }
.fld input:focus { outline: none; border-color: var(--ink); }
.pms { display: flex; flex-wrap: wrap; gap: 8px; }
.pm { position: relative; } .pm input { position: absolute; opacity: 0; }
.pm span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font: 600 14.5px var(--f-ko); cursor: pointer; background: #fff; }
.pm input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.pm input:focus-visible + span { outline: 2px solid var(--amber, #e8892f); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; } .agree input { margin-top: 4px; width: 18px; height: 18px; }
.btn.pay { width: 100%; justify-content: center; height: 54px; font-size: 16px; } .btn.pay:disabled { opacity: .55; cursor: not-allowed; }
.co-note { margin: 0; }
.co-sum { background: var(--card); border-radius: 20px; padding: 24px; position: sticky; top: 96px; min-width: 0; }
.co-sum h2 { font: 800 20px var(--f-ko); margin: 0 0 14px; letter-spacing: -.03em; }
.co-items { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 2px; }
.co-items li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.co-items li.empty { display: block; font-weight: 500; color: var(--ink-2); border: 0; }
.co-items button { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--mute); cursor: pointer; padding: 0 4px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 15px; } .co-total b { font-size: 18px; }
.cart-go { margin-top: 10px; width: 100%; justify-content: center; }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } .co-sum { position: static; order: -1; } }

/* 결제 v2: 국내 결제창식 타일·약관 */
.co-h { display: flex; align-items: center; gap: 10px; font: 800 17px var(--f-ko) !important; letter-spacing: -.02em; }
.co-n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 12.5px var(--f-mono); }
.fld-l { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.pt-g { font: 700 13.5px var(--f-ko); color: var(--ink-2); margin: 4px 0 8px; }
.pts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pt { position: relative; min-width: 0; } .pt input { position: absolute; opacity: 0; pointer-events: none; }
.pt-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 84px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 6px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.pt-ic { height: 34px; min-width: 30px; display: grid; place-items: center; color: var(--ink); } .pt-ic svg { width: 30px; height: 30px; }
.pt-ic .pl { display: block; width: auto; max-width: 100%; } .pt-ic .pl.mark { height: 32px; } .pt-ic .pl.pp { height: 20px; } .pt-ic .pl.gp { height: 50px; margin: -8px 0; }
.pt-n { font: 600 13.5px/1.2 var(--f-ko); color: var(--ink); word-break: keep-all; }
.pt input:checked + .pt-in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fafafa; }
.pt input:focus-visible + .pt-in { outline: 2px solid var(--amber, #e8892f); outline-offset: 2px; }
.bmark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 900 15px var(--f-disp, sans-serif); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ags { display: grid; gap: 2px; }
.ag { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14.5px; }
.ag input { width: 18px; height: 18px; flex: none; }
.ag > span:nth-of-type(1) { flex: 1; } .ag em { font-style: normal; color: #e0552b; font-weight: 700; margin-right: 2px; }
.ag-v { font-size: 13px; color: var(--mute); text-decoration: underline; }
.ag.all { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 4px; }
.co-final { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; font-weight: 600; }
.co-final b { font-size: 22px; letter-spacing: -.02em; }
@media (max-width: 560px) { .pts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ags[hidden], .pm-set[hidden] { display: none !important; }

/* ---------- 버튼: UAD처럼 알약 모양, 검정 채움 / 검정 테두리 ---------- */
.btn, .btn.sm { border-radius: 999px; }
.btn.line { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line[aria-disabled="true"] { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--mute); background: transparent; pointer-events: none; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.warn { background: #c2410c; color: #fff; box-shadow: none; }


.bld-top { padding-top: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.crumbs a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bld-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 40px; align-items: start; margin: 30px 0 26px; }
.bld-sub { font: 700 clamp(20px, 2.4vw, 30px)/1.15 var(--f-disp); letter-spacing: -.03em; margin: 0 0 6px; }
.bld-title { font: 800 clamp(40px, 5.6vw, 72px)/1.02 var(--f-disp); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
html.ko .bld-title, html.ko .bld-sub { font-family: var(--f-ko); }
.bld-title em { font-style: normal; color: #c25a22; }
.bld-desc { margin: 8px 0 0; }
.bld-tools { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.seg a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 999px; font: 600 14px var(--f-ko); color: var(--ink); text-decoration: none; }
.seg a[aria-current="true"] { background: var(--ink); color: #fff; }
.seg a.dis { color: var(--mute); pointer-events: none; }
.seg svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; padding-bottom: 48px; }
.bc { background: var(--card); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; min-width: 0; }
.bc.on { box-shadow: 0 0 0 2px var(--ink); }
.bc-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg); display: grid; place-items: center; padding: 18px; }
.bc-img img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4)); }
.bc-ck { z-index: 1; position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s; }
.bc-ck::after { content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.bc.on .bc-ck { opacity: 1; transform: none; }
.bc-body { padding: 16px 18px 4px; flex: 1; }
.bc-cat { font-size: 12.5px; color: var(--ink-2); margin: 0 0 4px; }
.bc h3 { font: 800 20px var(--f-disp); letter-spacing: -.02em; margin: 0; }
.bc-act { display: flex; gap: 8px; padding: 14px 18px 18px; }
.bc-info { width: 42px; height: 42px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; color: var(--ink); }
.bc-info:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bc-info svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bc-add { flex: 1; height: 42px; padding: 0 12px; }
.bc.on .bc-add { background: var(--ink); color: #fff; }
.bc-add:disabled { opacity: .35; cursor: not-allowed; }
.bc-add:disabled:hover { background: transparent; color: var(--ink); }
.tray { position: sticky; bottom: 0; z-index: 30; background: rgba(16, 18, 22, .97); color: #fff; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); }
.tray-in { display: flex; align-items: center; gap: 18px; min-height: 84px; padding-block: 12px; }
.tray-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; width: 52px; height: 52px; flex: none; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, .28); display: grid; place-items: center; font: 600 13px var(--f-mono, monospace); color: rgba(255, 255, 255, .45); }
.slot.on { border: 0; background: #2a2d33; }
.slot img { max-width: 84%; max-height: 84%; border-radius: 3px; }
.slot .x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #fff; color: #111; font: 700 14px/22px sans-serif; padding: 0; cursor: pointer; }
.tray-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tray-count { font: 700 16px var(--f-ko); }
.tray-price { font-size: 13px; color: #a7adb6; }
.tray-add { flex: none; min-width: 170px; }
.tray-add:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; filter: none; }

/* ---------- 로그인·회원가입 ---------- */
.auth-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: calc(100vh - 110px); }
.auth-col { display: grid; place-items: center; background: var(--card); padding: clamp(36px, 6vw, 72px) max(16px, 4vw); }
.auth-form { width: 100%; max-width: 400px; display: grid; gap: 14px; }
.auth-title { font: 800 clamp(34px, 4vw, 46px)/1.05 var(--f-disp); letter-spacing: -.04em; margin: 0; }
html.ko .auth-title { font-family: var(--f-ko); }
.auth-sub { margin: -6px 0 6px; }
.socs { display: grid; gap: 10px; }
.soc { height: 48px; border-radius: 999px; border: 1px solid #747775; background: #fff; color: #1f1f1f; display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px var(--f-ko); cursor: pointer; transition: background .15s; }
.soc:hover { background: #f4f5f6; }
.soc img { width: 20px; height: 20px; object-fit: contain; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth .fld input { border-radius: 999px; padding: 0 20px; height: 50px; }
.fld-l small { font-weight: 500; margin-left: 4px; }
.auth .ags { gap: 0; }
.auth .ag { font-size: 14px; padding: 6px 0; }
.ag em.opt { color: var(--mute); }
.auth-err { margin: 0; min-height: 1.3em; color: #c2410c; font-size: 14px; }
.auth-go { width: 100%; height: 50px; }
.auth-alt { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.auth-alt a, .linkbtn { color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.auth-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--mute); }
.auth-art { position: relative; overflow: hidden; display: grid; place-items: center; padding: 48px; background: radial-gradient(120% 90% at 70% 30%, #3b2a1b, #0e0f12 70%); }
.auth-art img { width: min(92%, 640px); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.auth-art p { position: absolute; left: 40px; bottom: 36px; margin: 0; max-width: 22ch; color: #ece5da; font: 700 clamp(22px, 2.4vw, 30px)/1.2 var(--f-disp); letter-spacing: -.025em; }
html.ko .auth-art p { font-family: var(--f-ko); }

/* ---------- 헤더 계정 버튼 ---------- */
.acct-btn { color: #e8eaee; }
.acct-btn svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.acct-ini { position: absolute; inset: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: #1c1003; font: 800 13px/26px var(--f-disp); text-align: center; }
@media (max-width: 560px) { .hdr-in > .acct-btn { display: grid; } }

/* ---------- 마이페이지 ---------- */
.acct-hero { background: var(--dark, #0e0f12); color: #fff; }
.acct-hero-in { display: flex; align-items: center; gap: 20px; padding-block: clamp(34px, 5vw, 56px); }
.acct-av { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: #1c1003; font: 800 26px var(--f-disp); }
.acct-who { min-width: 0; }
.acct-who .kicker { margin: 0; }
.acct-hi { font: 800 clamp(26px, 3.4vw, 40px)/1.1 var(--f-disp); letter-spacing: -.035em; margin: 4px 0; overflow-wrap: anywhere; }
html.ko .acct-hi { font-family: var(--f-ko); }
.acct-mail { margin: 0; color: #a7adb6; overflow-wrap: anywhere; }
.acct-out { margin-left: auto; flex: none; }
.acct-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-block: clamp(28px, 4vw, 48px) 80px; }
.acct-nav { display: grid; gap: 4px; align-content: start; position: sticky; top: 96px; }
.acct-nav a { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; color: var(--ink-2); font: 600 15px var(--f-ko); text-decoration: none; white-space: nowrap; }
.acct-nav a:hover { color: var(--ink); }
.acct-nav a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.acct-nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acct-main, .acct-pane { display: grid; gap: 18px; min-width: 0; align-content: start; }
.acct-ph h2 { font: 800 30px var(--f-disp); letter-spacing: -.03em; margin: 0 0 4px; }
html.ko .acct-ph h2 { font-family: var(--f-ko); }
.acct-ph .muted { margin: 0; }
.card-b { background: var(--card); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.card-b h3 { font: 700 17px var(--f-ko); margin: 0 0 12px; }
.acct-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding-block: 44px; }
.acct-empty h3 { font-size: 20px; margin: 8px 0 0; }
.acct-empty .muted { max-width: 46ch; margin: 0 0 10px; }
.ae-art { display: flex; }
.ae-art img { width: 86px; height: 66px; object-fit: contain; padding: 8px; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 3px var(--card); margin-left: -16px; }
.ae-art img:first-child { margin-left: 0; }
.acct-cart { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.tbl-wrap { overflow-x: auto; padding: 6px 12px; }
.acct-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.acct-tbl th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.acct-tbl td.empty { padding: 44px 12px; text-align: center; color: var(--mute); }
.acct-form { display: grid; gap: 4px; }
.acct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acct-save { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.link-row:first-of-type { border-top: 0; }
.link-row b { flex: 1; font-weight: 600; }
.tag-on { font-size: 12.5px; font-weight: 700; color: #15803d; background: #e7f6ec; padding: 5px 11px; border-radius: 999px; }
.sw { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw-t { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: #c9cdd3; transition: background .2s; }
.sw-t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.sw input:checked + .sw-t { background: var(--ink); }
.sw input:checked + .sw-t::after { transform: translateX(18px); }
.sw input:focus-visible + .sw-t { outline: 2px solid var(--amber); outline-offset: 2px; }
.acct-danger .muted { margin: -6px 0 12px; }

@media (max-width: 900px) {
  .auth-in { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { display: none; }
  .bld-head { grid-template-columns: 1fr; margin: 22px 0 18px; }
  .acct-body { grid-template-columns: 1fr; gap: 20px; }
  .acct-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-inline: -4px; padding: 2px 4px; }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav a { height: 40px; flex: none; }
}
@media (max-width: 640px) {
  .tray-in { flex-wrap: wrap; gap: 10px 14px; padding-block: 12px; }
  .tray-slots { width: 100%; gap: 6px; }
  .slot { width: 42px; height: 42px; border-radius: 10px; }
  .tray-add { min-width: 0; }
  .acct-hero-in { flex-wrap: wrap; gap: 14px; }
  .acct-av { width: 52px; height: 52px; font-size: 21px; }
  .acct-out { margin-left: 0; }
  .acct-fields { grid-template-columns: 1fr; }
  .bc-body { padding: 14px 14px 2px; } .bc-act { padding: 12px 14px 14px; } .bc h3 { font-size: 18px; }
}

[hidden] { display: none !important; }

/* ---------- 약관·정책 ---------- */
.lg-eff { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: #a7adb6; font-size: 14.5px; }
.lg-draft { font: 700 11.5px var(--f-mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: #1c1003; background: var(--amber); padding: 3px 9px; border-radius: 999px; }
.lg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.lg-tabs a { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; color: #d6d9de; text-decoration: none; font: 600 14px var(--f-ko); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.lg-tabs a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: none; }
.lg-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-block: clamp(32px, 5vw, 64px) 96px; }
.lg-toc { display: grid; gap: 2px; align-content: start; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.lg-toc button { display: flex; gap: 10px; align-items: baseline; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font: 500 14px/1.35 var(--f-ko); cursor: pointer; }
.lg-toc button:hover { background: var(--card); color: var(--ink); }
.lg-toc button span { font: 600 12px var(--f-mono, monospace); color: var(--mute); min-width: 1.6em; }
.lg-art { max-width: 74ch; min-width: 0; }
.lg-sec { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.lg-sec:first-child { border-top: 0; padding-top: 0; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 12px; font: 800 21px/1.3 var(--f-ko); letter-spacing: -.02em; margin: 0 0 12px; }
.lg-n { font: 700 13px var(--f-mono, monospace); color: var(--mute); }
.lg-sec p, .lg-sec li { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.lg-sec p { margin: 0 0 12px; }
.lg-sec ul { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 4px; }
.lg-tbl { overflow-x: auto; margin: 4px 0 14px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: var(--card); }
.lg-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.lg-tbl th { text-align: left; font-weight: 700; padding: 12px 14px; background: #f7f8f9; color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.lg-tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.6; color: var(--ink-2); }
.lg-tbl tr:first-child td { border-top: 0; }
.lg-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: 15px; }
.lg-dl dt { color: var(--mute); } .lg-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ph { background: #fff3d6; color: #8a5a00; border-radius: 4px; padding: 0 3px; }
.ftr-legal { display: grid; gap: 8px; }
.ftr-legal p { margin: 0; }
.ftr-pol { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ftr-pol a { color: #c9ccd2; text-decoration: none; font-size: 13.5px; } .ftr-pol a:hover { color: #fff; } .ftr-pol b { color: #fff; }
.ftr-biz { color: #8a9099; font-size: 12.5px; }
.ag a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (max-width: 900px) {
  .lg-body { grid-template-columns: 1fr; gap: 20px; }
  .lg-toc { position: static; max-height: none; display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .lg-toc::-webkit-scrollbar { display: none; }
  .lg-toc button { flex: none; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; background: var(--card); padding: 8px 14px; white-space: nowrap; }
}
.lg-toc button { letter-spacing: 0; font-family: var(--f-ko); }
.auth .ag { align-items: flex-start; } .auth .ag input { margin: 2px 0 0; }
.auth-legal { margin: -4px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); text-align: center; }
.auth-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 모바일 메뉴 ---------- */
.menu-btn { display: grid; }
.menu-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-btn .ic-x { display: none; }
.menu-open .menu-btn .ic-bars { display: none; }
.menu-open .menu-btn .ic-x { display: inline; }
.mnav { position: fixed; left: 0; right: 0; bottom: 0; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 49; background: #0f0e0d; color: #e8eaee; overflow-y: auto; overscroll-behavior: contain; }
.mnav-in { display: grid; gap: 26px; padding-block: 20px 40px; }
.mnav-main { display: grid; }
.mnav-main a { font: 800 26px/1.2 var(--f-disp); letter-spacing: -.03em; color: #f3f1ec; padding: 12px 0; border-bottom: 1px solid #24262a; }
html.ko .mnav-main a { font-family: var(--f-ko); }
.mnav-prod { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mnav-prod a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: #1a1b1e; color: #e8eaee; min-width: 0; }
.mp-img { width: 44px; height: 36px; flex: none; border-radius: 8px; background: var(--bg); display: grid; place-items: center; padding: 4px; }
.mp-img img { max-width: 100%; max-height: 28px; width: auto; height: auto; object-fit: contain; }
.mnav-prod b { display: block; font: 700 13.5px var(--f-disp); } .mnav-prod small { display: block; font-size: 11.5px; color: #8a9099; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mnav-prod span:last-child { min-width: 0; }
.mnav-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mnav-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; } .mnav-legal a { color: #8a9099; }
html.menu-open { overflow: hidden; }
@media (max-width: 560px) { .hdr-in > .ibtn.menu-btn, .hdr-in > .ibtn.acct-btn { display: grid; } }

/* ---------- 골라 담기 v4: 어두운 패널 + 슬롯 타일 ---------- */
.pick { margin-top: clamp(14px, 2vw, 22px); display: grid; gap: clamp(20px, 2.8vw, 32px); padding: clamp(22px, 4vw, 46px); border-radius: 28px; color: #f3f1ec; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 120% at 100% 0%, rgba(255, 144, 46, .2), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(255, 176, 74, .07), transparent 60%), #111214;
  box-shadow: 0 30px 70px -40px rgba(16, 18, 22, .7); }
.pk-head { display: grid; gap: 8px; }
.pk-head .kicker { margin: 0 0 4px; color: var(--amber); }
.pk-title { font: 800 clamp(28px, 3.4vw, 44px)/1.08 var(--f-disp); letter-spacing: -.04em; margin: 0; color: #fff; text-wrap: balance; }
html.ko .pk-title { font-family: var(--f-ko); font-weight: 700; letter-spacing: -.05em; }
.pk-sub { margin: 0; color: rgba(243, 241, 236, .62); font-size: 15.5px; max-width: 46ch; text-wrap: pretty; }
.pkts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pkt { position: relative; display: grid; grid-template: "n go" auto "slots slots" auto "price price" auto / minmax(0, 1fr) auto; gap: 20px 12px; align-items: center; padding: 22px 20px 20px 24px; border-radius: 20px; color: inherit; text-decoration: none; overflow: hidden; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); transition: transform .28s var(--ease, ease), box-shadow .28s; }
.pkt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 100% at 0% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); opacity: .45; transition: opacity .28s; }
a.pkt:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 75%, transparent), 0 26px 40px -30px #000; }
a.pkt:hover::before { opacity: 1; }
a.pkt:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.pkt-n { grid-area: n; display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.pkt-n b { font: 800 68px/.86 var(--f-disp); letter-spacing: -.055em; color: #fff; }
.pkt-n small { font: 600 17px var(--f-ko); letter-spacing: -.01em; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.pkt-go { grid-area: go; align-self: start; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .24); transition: background .2s, color .2s, box-shadow .2s, transform .28s var(--ease, ease); }
.pkt-go svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.pkt:hover .pkt-go { background: var(--c); color: #1c1003; box-shadow: none; transform: translateX(2px); }
.pkt-slots { grid-area: slots; display: flex; gap: 8px; min-width: 0; }
.pkt-s { position: relative; flex: 0 0 calc((100% - 40px) / 6); max-width: 46px; aspect-ratio: 1; min-width: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 6px 14px -8px #000; overflow: hidden; }
.pkt-s img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); max-width: none; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.pkt-s.more { background: none; box-shadow: none; border: 1.5px dashed rgba(255, 255, 255, .3); display: grid; place-items: center; font: 700 14px var(--f-disp); color: rgba(255, 255, 255, .62); }
.pkt-price { grid-area: price; font: 700 14.5px var(--f-ko); color: var(--c); padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.pkt.locked { background: rgba(255, 255, 255, .025); }
.pkt.locked::before { opacity: 0; }
.pkt.locked .pkt-n b { color: rgba(255, 255, 255, .4); }
.pkt.locked .pkt-n small { color: rgba(255, 255, 255, .34); }
.pkt.locked .pkt-go { color: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.pkt.locked .pkt-s:not(.more) { filter: brightness(.5) saturate(.55); }
.pkt.locked .pkt-price { color: rgba(255, 255, 255, .48); font-weight: 600; }
@media (min-width: 1000px) {
  .pick { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); align-items: center; }
  .pkt { padding: 20px 18px 18px 20px; }
  .pkt-n b { font-size: 60px; }
  .pkt-slots { gap: 6px; } .pkt-s { flex-basis: calc((100% - 30px) / 6); border-radius: 11px; }
}
@media (max-width: 999px) {
  .pkt-slots { gap: 0; }
  .pkt-s { flex: 0 0 34px; max-width: none; border-radius: 10px; box-shadow: 0 0 0 2px #1b1c1f; }
  .pkt-s + .pkt-s { margin-left: -8px; }
  .pkt-s img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
  .pkt-s.more { font-size: 12px; background: #1b1c1f; box-shadow: none; }
}
@media (max-width: 760px) {
  .pick { border-radius: 24px; }
  .pkts { grid-template-columns: 1fr; gap: 8px; }
  .pkt { grid-template: "n slots go" auto "n price go" auto / 70px minmax(0, 1fr) auto; gap: 6px 14px; padding: 13px 14px 13px 18px; border-radius: 16px; }
  .pkt-n { align-self: center; gap: 4px; }
  .pkt-n b { font-size: 40px; line-height: 1; }
  .pkt-n small { font-size: 14.5px; }
  html:not(.ko) .pkt { grid-template-columns: 58px minmax(0, 1fr) auto; }
  html:not(.ko) .pkt-n { flex-direction: column; align-items: flex-start; gap: 1px; }
  html:not(.ko) .pkt-n b { font-size: 36px; } html:not(.ko) .pkt-n small { font-size: 11.5px; }
  .pkt-go { align-self: center; width: 36px; height: 36px; }
  .pkt-slots { align-self: end; }
  .pkt-s { flex-basis: 30px; border-radius: 9px; }
  .pkt-s + .pkt-s { margin-left: -9px; }
  .pkt-price { align-self: start; padding: 0; border: 0; font-size: 13px; }
}
@media (max-width: 380px) {
  .pkt { column-gap: 10px; padding-left: 14px; }
  .pkt-s { flex-basis: 26px; border-radius: 8px; }
}

/* ---------- 폰 헤더: 로고는 왼쪽, 아이콘 셋은 오른쪽에 모음 ---------- */
@media (max-width: 560px) {
  .hdr-in { justify-content: flex-start; gap: 4px; }
  .hdr-in > .lang { margin-left: auto; margin-right: 2px; }
}
/* 메뉴 버튼이 보이는 폭에서는 언어 전환을 메뉴 안에만 둠 (헤더 비좁음 방지) */

/* 터치 화면에서는 누른 뒤 둥근 배경이 남지 않게 */
@media (hover: none) { .ibtn:hover { background: none; } }
/* 폰: 헤더 언어 선택을 조금 작게 (로고·아이콘과 한 줄에 들어가게) */
@media (max-width: 400px) { .hdr-in > .lang { height: 34px; } .hdr-in > .lang button { height: 26px; padding: 0 8px; font-size: 12px; } .hdr-in > .ibtn { width: 36px; } }
@media (max-width: 700px) { .hdr-in > .lang .ico { display: none; } .hdr-in > .lang { padding: 3px; } }

/* ---------- 메뉴 안 검색 + PC 메뉴 ---------- */
.hdr-in > .lang { margin-left: auto; }
.mnav-search { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; padding: 0 20px; border-radius: 999px; background: #1a1b1e; border: 1px solid #2b2e33; color: #7d838c; font: 500 17px var(--f-ko); cursor: text; text-align: left; transition: border-color .2s; }
.mnav-search:hover { border-color: #4a4e56; }
.mnav-search .ico svg { width: 20px; height: 20px; color: #8a9099; display: block; }
.mnav-prod a[hidden] { display: none; }
@media (min-width: 901px) {
  /* PC: 메뉴는 오른쪽에서 나오는 서랍 */
  .mnav { left: auto; right: 0; bottom: 0; width: min(420px, 100vw); border-left: 1px solid #24262a; box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .75); animation: mnav-in .26s cubic-bezier(.2, .8, .2, 1); }
  html.menu-open body::after { content: ""; position: fixed; inset: 0; z-index: 48; background: rgba(8, 8, 9, .55); }
  .mnav-in { width: auto; max-width: none; margin: 0; padding: 26px 32px 40px; gap: 26px; }
  .mnav-search { display: none; }
  .mnav-main a { font-size: 24px; padding: 12px 0; }
  .mnav-main a:hover { color: var(--amber); }
}
@keyframes mnav-in { from { transform: translateX(28px); opacity: 0; } }
/* 메뉴가 열려 있을 때는 헤더 흐림 효과를 끔: 흐림이 있으면 고정 메뉴가 헤더 기준으로 잡혀 아래로 밀림 */
html.menu-open .hdr, html.search-open .hdr { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0f0e0d; }

/* ---------- 검색 카드 (메뉴에서 열림) ---------- */
.srch { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; overflow: hidden; }
.srch-wrap { height: 100%; padding-block: 12px 16px; display: flex; flex-direction: column; }
.srch-card { display: flex; flex-direction: column; max-height: 100%; min-height: 0; border-radius: 26px; overflow: hidden; color: #ecebe7;
  background: radial-gradient(70% 50% at 100% 0%, rgba(255, 144, 46, .1), transparent 60%), #17181b;
  box-shadow: inset 0 1px 0 rgba(255, 190, 110, .3), inset 0 0 0 1px #2c2f35, 0 30px 70px -20px rgba(0, 0, 0, .8); }
.srch-bar { flex: none; display: flex; align-items: center; gap: 10px; margin: 0 18px; padding: 16px 0 14px 4px; border-bottom: 1px solid #34373d; transition: border-color .2s; }
.srch-bar:focus-within { border-color: #8a8f97; }
.srch-bar .ico svg { width: 21px; height: 21px; color: #9aa0a8; display: block; }
.srch-bar input { flex: 1; min-width: 0; width: 0; background: none; border: 0; outline: 0; padding: 0; color: #fff; font: 500 18px var(--f-ko); caret-color: var(--amber); -webkit-appearance: none; appearance: none; }
.srch-bar input::placeholder { color: #767c85; }
.srch-bar input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.srch-bar button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #d7d9dd; display: grid; place-items: center; cursor: pointer; }
.srch-bar button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.srch-bar .srch-clr { color: var(--amber); } .srch-bar .srch-clr svg { width: 15px; height: 15px; stroke-width: 2.6; }
@media (hover: hover) { .srch-bar button:hover { background: #24262a; } }
.srch-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 18px 18px; scrollbar-width: thin; scrollbar-color: #3a3d43 transparent; }
.srch-h { margin: 0 0 8px 4px; font: 700 15px var(--f-ko); color: #fff; }
.srch-top ul { list-style: none; margin: 0; padding: 0; display: grid; }
.srch-top button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; border: 0; background: none; color: #d9dbde; font: 500 19px/1.2 var(--f-disp); letter-spacing: -.01em; padding: 13px 8px 13px 4px; border-radius: 10px; cursor: pointer; }
html.ko .srch-top button { font-family: var(--f-ko); }
.srch-top button i, .srch-help i { display: grid; color: #5a5f67; transition: color .2s, transform .2s; }
.srch-top button i svg, .srch-help i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .srch-top button:hover { color: #fff; background: #1f2124; } .srch-top button:hover i { color: var(--amber); transform: translateX(2px); } }
.srch-res { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.srh { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 18px; padding: 14px; border-radius: 16px; color: inherit; text-decoration: none; background: #1d1e22; box-shadow: inset 0 0 0 1px #2c2f35; transition: box-shadow .2s, background .2s; }
.srh[hidden] { display: none; }
.srh.sel, .srh:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--amber); }
@media (hover: hover) { .srh:hover { background: #222327; box-shadow: inset 0 0 0 1px rgba(255, 176, 74, .55); } }
.srh-img { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--bg); overflow: hidden; }
.srh-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-width: none; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.srh-img.pg-ic { display: grid; place-items: center; background: #26282c; color: var(--amber); }
.srh-img.pg-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.srh-t { display: grid; gap: 3px; min-width: 0; }
.srh-t b { font: 700 18px/1.25 var(--f-disp); color: #fff; } html.ko .srh-t b { font-family: var(--f-ko); }
.srh-t small { font-size: 13.5px; color: #9aa0a8; }
.srh-t em { font-style: normal; font: 700 14px var(--f-ko); color: var(--amber); margin-top: 6px; }
.srch-none { margin: 0; padding: 18px 4px; color: #9aa0a8; font-size: 15px; }
.srch-help { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px; font: 700 18px var(--f-disp); color: #fff; background: #222428; border-top: 1px solid #2c2f35; text-decoration: none; }
html.ko .srch-help { font-family: var(--f-ko); }
.srch-help i { color: var(--amber); }
@media (hover: hover) { .srch-help:hover { background: #2a2c31; } .srch-help:hover i { transform: translateX(3px); } }
@media (min-width: 901px) {
  .srch { background: rgba(8, 8, 9, .4); }
  .srch-wrap { max-width: 760px; padding-block: 16px 28px; }
}
@media (max-width: 560px) {
  .srch-wrap { padding-block: 10px 12px; }
  .srch-card { border-radius: 22px; }
  .srh { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .srh-t b { font-size: 16.5px; }
  .srch-top button { font-size: 18px; padding: 12px 8px 12px 4px; }
}

/* ---------- PC 헤더 검색칸 (누르면 검색 카드가 열림) ---------- */
.hdr-search { display: none; }
@media (min-width: 901px) {
  .hdr-search { display: flex; align-items: center; gap: 10px; margin-left: auto; width: min(300px, 24vw); height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #2d3036; background: #1a1b1e; color: #7d838c; font: 500 14px var(--f-ko); cursor: text; text-align: left; transition: border-color .2s, color .2s; }
  .hdr-search:hover { border-color: #4a4e56; color: #a6abb2; }
  .hdr-search .ico svg { width: 18px; height: 18px; color: #8a9099; display: block; }
  .hdr-in > .hdr-search + .lang { margin-left: 0; }
}

/* ---------- 회원 정보 관리 · 회원 탈퇴 ---------- */
.acct-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lnk { border: 0; background: none; padding: 0; font: 600 14px var(--f-ko); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lnk:hover { color: var(--ink); }
.acct-verify { margin: 10px 0 0; color: #9a5b00; }
.pw-none { margin: 0; }
.link-st { display: flex; align-items: center; gap: 10px; }
.link-msg:empty { display: none; }
.acct-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; font-size: 15px; }
.acct-meta dt { color: var(--mute); } .acct-meta dd { margin: 0; font-weight: 600; }
.acct-leave { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acct-leave h3 { margin-bottom: 4px; } .acct-leave .muted { margin: 0; }
.acct-nav a.acct-nav-del { color: var(--mute); }
.del-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.del-list li { position: relative; padding-left: 30px; line-height: 1.55; }
.del-list li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--f-disp); }
.del-list li.x::before { content: "×"; background: #fdecec; color: #c62828; font-size: 15px; }
.del-list li.i::before { content: "i"; background: #eef1f5; color: #4b5563; }
.del-form { display: grid; gap: 14px; }
.del-form .fld { max-width: 360px; }
.del-soc { margin: 0; }
.del-chk { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.del-chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #c62828; flex: none; }
.btn.danger { background: #c62828; color: #fff; border-color: #c62828; }
.btn.danger:hover { background: #a91f1f; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.bye { display: grid; justify-items: center; text-align: center; gap: 14px; padding-block: clamp(80px, 14vw, 160px); }
.bye h1 { font: 800 clamp(30px, 4vw, 44px)/1.15 var(--f-disp); letter-spacing: -.035em; margin: 6px 0 0; }
html.ko .bye h1 { font-family: var(--f-ko); }
.bye .muted { max-width: 44ch; margin: 0 0 10px; }
.bye-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.bye-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .acct-fields.three { grid-template-columns: 1fr; } }
