:root {
  color-scheme: dark;
  --bg: #121012;
  --surface: #1C1719;
  --thumb: #261E22;
  --line: #34282E;
  --pink: #FA899C;
  --pink-deep: #E8708A;
  --pink-dim: #4A2C33;
  --pink-soft: #FA899C;
  --on-pink: #2B1117;
  --text: #F2E6EB;
  --muted: #B39AA6;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --font: "IBM Plex Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 700; margin: 0; line-height: 1.3; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 2px; }

.topbar {
  background: var(--pink);
  color: var(--on-pink);
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 16, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.ph { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.ph .x { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph .x path { stroke: var(--line); stroke-width: 2; fill: none; }
.ph > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.logo { display: block; }
.logo img { height: 40px; width: auto; max-width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; background: none; padding: 0;
  color: var(--text);
  transition: color .2s;
}
.cart-btn:hover { color: var(--pink-soft); }
.cart-btn .badge { top: 2px; right: -2px; }
.mypage-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--pink);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em;
  transition: background .2s;
}
.mypage-btn:hover { background: var(--pink); color: var(--on-pink); }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface);
  transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--pink-soft); }
.badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px;
  background: var(--pink); color: var(--on-pink);
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: var(--on-pink); }
.btn-primary:hover { background: var(--pink-deep); }
.btn-primary:disabled { opacity: .45; transform: none; cursor: not-allowed; }
.btn-small { min-height: 44px; padding: 0 20px; background: var(--text); color: var(--on-pink); }
.btn-block { width: 100%; }

.banner-wrap { padding-top: 24px; padding-bottom: 24px; }
.banner { aspect-ratio: 3 / 1; max-width: 100%; border-radius: var(--radius); }
.banner-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 14px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 14px; white-space: nowrap; }
.video-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(242, 230, 235, 0.25); border-radius: 50%;
  background: rgba(18, 16, 18, 0.72); color: var(--text);
  opacity: .5;
  transition: opacity .2s, background .2s;
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; }
.video-toggle .i-play, .banner.off .video-toggle .i-pause { display: none; }
.banner.off .video-toggle .i-play { display: block; }

.live { background: #5A464C; color: #E9DCE1; transition: background .3s, color .3s; }
.live.on { background: var(--pink); color: var(--on-pink); }
.live-in { display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.live-in strong { font-weight: 700; font-size: 20px; }
.live-in p { margin: 0; font-size: 15px; }
.live-actions { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }
.btn-line { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.queue-body { gap: 16px; }
.queue-summary { margin: 0; padding: 16px; border-radius: 12px; background: var(--bg); color: var(--pink-soft); font-size: 17px; font-weight: 700; text-align: center; min-height: 1.5em; }
.queue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: min(52vh, 480px); overflow-y: auto; }
.queue-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.q-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--thumb); font-weight: 700; font-size: 14px; }
.q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-name b { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--pink); color: var(--on-pink); font-size: 12px; }
.q-st { color: var(--muted); font-size: 14px; }
.queue-list .q-open { border-color: var(--pink); }
.queue-list .q-open .q-n { background: var(--pink); color: var(--on-pink); }
.queue-list .q-open .q-st { color: var(--pink-soft); font-weight: 700; }
.queue-list .q-done { opacity: .45; }
.queue-list .mine { border-color: var(--pink-soft); background: rgba(250, 137, 156, .1); }
.queue-list .q-sk { display: block; }
.queue-note { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.live.on .live-dot { background: #D7193F; box-shadow: 0 0 10px rgba(215, 25, 63, .7); animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.products { padding: 48px 0 64px; }
.search {
  display: flex; align-items: center; gap: 10px;
  max-width: 520px;
  margin: 0 auto 32px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  height: 52px;
  color: var(--muted);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--pink-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }
.search input::placeholder { color: var(--muted); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: var(--shadow); }
.thumb { aspect-ratio: 1; background: var(--thumb); border: 0; border-bottom: 1px solid var(--line); }
.wish {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(18, 16, 18, .7);
  display: grid; place-items: center;
  color: var(--pink-soft);
}
.wish svg path { fill: none; stroke: currentColor; stroke-width: 2; transition: fill .2s; }
.wish[aria-pressed="true"] svg path { fill: currentColor; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { font-size: 19px; }
.price { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.price > * { white-space: nowrap; }
.price .now { font-weight: 700; font-size: 18px; }
.add {
  margin-top: 12px;
  min-height: 44px;
  border: 1.5px solid var(--pink);
  border-radius: 999px;
  background: transparent;
  color: var(--pink-soft);
  font-weight: 700;
  transition: background .2s, color .2s;
}
.add:hover { background: var(--pink); color: var(--on-pink); }
.add:disabled { border-color: var(--line); color: var(--muted); background: transparent; cursor: not-allowed; }
.card.soldout .thumb > img { opacity: .45; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.sk { background: linear-gradient(90deg, var(--thumb) 25%, #3A2E33 50%, var(--thumb) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk-line { display: block; height: 18px; width: 72%; border-radius: 6px; }
.sk-line.short { width: 42%; }
.sk-btn { display: block; height: 44px; margin-top: 12px; border-radius: 999px; }
.sk-card { pointer-events: none; }
.sk-card .card-body { gap: 10px; }
.my-orders .my-sk { gap: 10px; }
body.loading #topbar, body.loading .live-in strong, body.loading .live-in p { color: transparent; border-radius: 6px; background: rgba(242, 230, 235, .1); animation: pulse 1.3s ease-in-out infinite; }
body.loading #topbar { background: rgba(43, 17, 23, .14); }
body.loading .live { background: var(--surface); }
body.loading .live-dot, body.loading .live-in .btn { visibility: hidden; }
body.loading .banner .x, body.loading .banner-label, body.loading .video-toggle { visibility: hidden; }
body.loading .banner { background: linear-gradient(90deg, var(--surface) 25%, #2A2226 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  .sk, body.loading .banner, body.loading #topbar, body.loading .live-in strong, body.loading .live-in p { animation: none; }
}

.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.footer p { margin: 4px 0; }
.policy { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.policy button, .policy a { display: inline-flex; align-items: center; border: 0; background: none; padding: 0; min-height: 44px; color: var(--text); font-size: 14px; }
.policy button:hover, .policy a:hover { color: var(--pink-soft); text-decoration: underline; }
.policy .strong { font-weight: 700; }
.doc-page { min-height: 100vh; display: flex; flex-direction: column; }
.doc { flex: 1; padding-top: 48px; padding-bottom: 80px; max-width: 860px; }
.doc h1 { font-size: 30px; margin-bottom: 28px; }
.doc-body { color: var(--muted); font-size: 15px; line-height: 1.8; }
.doc-body h2 { color: var(--text); font-size: 18px; margin: 32px 0 8px; }
.doc-body p, .doc-body li { margin: 0 0 8px; }
.doc-meta { color: var(--muted); font-size: 13px; margin: -16px 0 28px; }
.doc-body ol { margin: 0 0 8px; padding-left: 22px; }
.doc-body ol.ko { list-style: none; counter-reset: ko; padding-left: 4px; margin-top: 6px; }
.doc-body ol.ko > li { counter-increment: ko; position: relative; padding-left: 26px; }
.doc-body ol.ko > li::before { position: absolute; left: 0; content: counter(ko, hangul) "."; }
.doc-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--text); }
.doc-center { text-align: center; }
.doc-body a { color: var(--pink-soft); text-decoration: underline; text-underline-offset: 3px; }
.doc-table { overflow-x: auto; margin: 8px 0 16px; }
.doc-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.doc-table th { background: var(--surface); color: var(--text); font-weight: 500; }
.doc-home { display: inline-flex; align-items: center; }
.footer-logo { height: 32px; width: auto; max-width: 100%; margin-bottom: 12px; }
.copy { margin-top: 12px !important; }

.info {
  width: min(560px, calc(100% - 32px));
  max-height: 80vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.info::backdrop { background: rgba(0, 0, 0, 0.6); }
.info-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.info-head h2 { font-size: 22px; }
.info-body { padding: 20px; color: var(--muted); }
.info-body p { margin: 0 0 6px; }

.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px); }
.modal-md { width: min(560px, calc(100% - 32px)); }
.modal-lg { width: min(760px, calc(100% - 32px)); }
.modal-xl { width: min(1040px, calc(100% - 32px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 32px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 24px; }
.modal-body { padding: 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }
.lead-text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; text-align: center; }
.auth-step { display: flex; flex-direction: column; gap: 24px; }
.login-step { min-height: 340px; justify-content: center; gap: 28px; padding: 16px 8px; }
.login-logo { height: 56px; width: auto; max-width: 100%; margin: 0 auto; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .btn { margin-top: 4px; }
.login-join { margin: 0; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--line); font-size: 14px; }
.login-join .text-link { color: var(--muted); font-size: 14px; }
.login-join #toSignup { color: var(--pink-soft); font-weight: 700; }
.leave-link { align-self: flex-end; padding: 4px 0; }
.leave-body { gap: 18px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; color: var(--muted); font-size: 13px; text-align: center; border-top: 3px solid var(--line); }
.stepper li span { width: 30px; height: 30px; margin-top: 10px; border-radius: 50%; display: grid; place-items: center; background: var(--thumb); font-weight: 700; color: var(--text); }
.stepper li.active, .stepper li.done { color: var(--text); border-top-color: var(--pink); }
.stepper li.active span, .stepper li.done span { background: var(--pink); color: var(--on-pink); }
.pane { display: flex; flex-direction: column; gap: 18px; }
.pane-text { margin: 0; color: var(--muted); line-height: 1.6; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--pink); color: var(--on-pink); font-weight: 700; font-size: 18px; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.pane-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.field small { margin-left: 6px; font-size: 12px; }
.field input { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; min-height: 50px; min-width: 0; }
.field input:focus { outline: none; border-color: var(--pink-soft); }
.field input[readonly] { color: var(--muted); background: var(--thumb); }
#pfZip, #pfAddr1, #myZip, #myAddr1 { color: var(--text); background: var(--bg); cursor: pointer; }
.field input:disabled { opacity: .6; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }
.field-row .btn { min-height: 50px; padding: 0 18px; flex-shrink: 0; }
.field > label { color: var(--muted); }
.pill-btn { align-self: center; flex-shrink: 0; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--pink-soft); border-radius: 999px; background: transparent; color: var(--pink-soft); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pill-btn:hover { background: var(--pink-dim); }
.pw-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.pw-rules li::before { content: "✓"; margin-right: 4px; font-weight: 700; }
.pw-rules li.ok { color: #8FD4A8; }
.found-id { margin: 0; padding: 16px; border-radius: 12px; background: var(--bg); color: var(--muted); text-align: center; }
.found-id strong { color: var(--text); font-size: 18px; margin: 0 2px; }
.help-body { min-height: 200px; }
.timer { margin-left: 8px; color: var(--pink-soft); font-variant-numeric: tabular-nums; }
.mo-box { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.mo-qr { display: flex; align-items: center; gap: 20px; }
.qr-frame { width: 168px; height: 168px; flex-shrink: 0; border-radius: 12px; background: #fff; }
.qr-frame img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mo-guide { display: flex; flex-direction: column; gap: 6px; }
.mo-guide strong { font-size: 17px; }
.mo-guide p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mo-manual { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.mo-manual b { color: var(--text); }
#moCode { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 13px; font-family: ui-monospace, Menlo, monospace; color: var(--text); background: var(--surface); }
.mo-status { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mo-status .timer { margin-left: auto; }
.dot-wait { width: 10px; height: 10px; border-radius: 50%; background: var(--pink-soft); animation: blink 1.2s ease-in-out infinite; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 14px; color: #8FD4A8; }
.form-msg.warn { color: #F09AAB; }
.agree { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check-line input { width: 20px; height: 20px; accent-color: var(--pink); }
.check-line span { flex: 1; }
.text-link { border: 0; background: none; padding: 8px; color: var(--muted); font-size: 13px; text-decoration: underline; }
.done { align-items: center; text-align: center; padding: 16px 0; }
.done h3 { font-size: 22px; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--on-pink); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--pink-soft); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 16px; background: linear-gradient(110deg, rgba(158, 47, 88, 0.35), var(--bg) 70%); }
.profile-text { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.profile-text strong { font-size: 22px; }
.profile-text span { color: var(--muted); font-size: 14px; }
.chip-grade { padding: 4px 12px; border-radius: 999px; background: rgba(250, 137, 156, 0.18); color: var(--pink-soft); font-size: 13px; font-weight: 700; }
.my-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.my-box { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.my-box h3 { font-size: 18px; }
.my-orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.my-orders li { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.my-orders .my-empty { color: var(--muted); border-style: dashed; text-align: center; }
.mo-top, .mo-bottom { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.mo-bottom span:last-child { color: var(--text); font-weight: 700; font-size: 15px; }
.mo-status { color: var(--pink-soft); font-weight: 700; }
.cart-body { gap: 0; padding: 0; }
.cart-list { list-style: none; margin: 0; padding: 8px 32px; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item .mini { width: 88px; height: 88px; border-radius: 14px; }
.cart-item h3 { font-size: 17px; }
.cart-item .unit { font-size: 14px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.remove { border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; min-height: 44px; }
.cart-empty { text-align: center; color: var(--muted); padding: 64px 32px; margin: 0; font-size: 16px; }
.cart-foot { padding: 24px 32px 32px; border-top: 1px solid var(--line); background: var(--bg); }
.row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.row.total { font-weight: 700; font-size: 18px; margin: 12px 0 16px; }

.order-body { gap: 28px; }
.order-sec { display: flex; flex-direction: column; gap: 14px; }
.order-sec h3 { font-size: 17px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-head .text-link { padding: 4px 0; }
.order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.order-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.order-items .mini { width: 56px; height: 56px; border-radius: 10px; }
.order-items li div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-items li span { color: var(--muted); font-size: 14px; }
.order-info { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: var(--bg); }
.order-info div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.order-info dt { color: var(--muted); font-size: 14px; }
.order-info dd { margin: 0; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field select { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; min-height: 50px; }
.field select:focus { outline: none; border-color: var(--pink-soft); }
.unbox { margin: 0; padding: 0; border: 0; min-width: 0; }
.unbox legend { padding: 0; margin-bottom: 8px; }
.unbox-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.unbox-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--muted); font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.unbox-opt input { position: absolute; opacity: 0; pointer-events: none; }
.unbox-opt:hover { border-color: var(--pink-soft); }
.unbox-opt:has(input:checked) { border-color: var(--pink); background: rgba(250, 137, 156, .1); color: var(--pink-soft); }
.unbox-opt:has(input:focus-visible) { outline: 3px solid var(--pink-soft); outline-offset: 2px; }
.unbox-desc { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.unbox-desc p { margin: 0; }
.unbox:has(input[value="미개봉"]:checked) .unbox-desc [data-box="미개봉"],
.unbox:has(input[value="개봉"]:checked) .unbox-desc [data-box="개봉"] { color: var(--pink-soft); font-weight: 700; }
.order-agree { display: flex; flex-direction: column; gap: 4px; }
.order-sum { gap: 0; padding: 20px; border-radius: 14px; background: var(--bg); }
.order-sum h3 { margin-bottom: 14px; }
.order-sum .row.total { margin-bottom: 0; }
@media (max-width: 560px) {
  .field-pair { grid-template-columns: minmax(0, 1fr); }
}

.toast {
  position: fixed; inset: auto auto 28px 50%; margin: 0; border: 0; overflow: visible;
  transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg);
  padding: 12px 22px; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .header-in { height: 64px; gap: 12px; }
  .logo { min-width: 0; }
  .logo img { height: 28px; }
  .banner { aspect-ratio: 16 / 9; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 14px 14px; }
  .card-body h3 { font-size: 17px; }
  .live-in { flex-wrap: wrap; }
  .live-actions { width: 100%; }
  .live-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
