/* 푸버티 — 디스코드 장식 스토어 */
:root {
  color-scheme: dark;
  --bg: #0A0A0B;
  --card: #121214;
  --card-2: #17171A;
  --well: #0E0E10;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #F4F4F6;
  --text-2: #A3A3AD;
  --text-3: #6C6C77;
  --accent: #B6A6FF;
  --accent-dim: rgba(182, 166, 255, .12);
  --green: #3DD68C;
  --red: #FF6B6B;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); letter-spacing: -.005em;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
main, .foot { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 10px; border: 0; cursor: pointer; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .2s, border-color .2s, opacity .2s; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.primary:hover { background: #fff; }
.btn.line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.line:hover { background: rgba(255, 255, 255, .04); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn.sm .ic { width: 15px; height: 15px; }
.btn.lg { height: 52px; font-size: 16px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.iconbtn:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

/* 상단 */
.notice { text-align: center; font-size: 13px; color: var(--text-2); padding: 9px 16px; border-bottom: 1px solid var(--line); }
.top { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 11, .78); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 22px; height: 22px; border-radius: 50%; position: relative; background: var(--text); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--accent); transform: scale(.82); }
.word { font-weight: 800; font-size: 15px; letter-spacing: .14em; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; border-radius: 10px; border: 0;
  cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 600; }
.cartbtn:hover { background: rgba(255, 255, 255, .04); }
.cartbtn b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center;
  background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; }
.cartbtn.bump b { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); background: var(--accent); } }

/* 등급 */
.navbtn { border: 0; background: none; cursor: pointer; padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.navbtn:hover { color: var(--text); }
.linkbtn { border: 0; background: none; cursor: pointer; padding: 0; color: var(--text-2); font-size: 14px; text-align: left; }
.linkbtn:hover { color: var(--text); }
.gradebar { background: var(--accent-dim); border-bottom: 1px solid rgba(182, 166, 255, .22); color: var(--accent); font-size: 13px; }
.gradebar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; }
.gradebar-in > span { display: inline-flex; align-items: center; gap: 6px; }
.gradebar .ic { width: 15px; height: 15px; }
.gradebar b { font-weight: 700; }
.gradebar #gradeLabel { color: var(--text-2); margin-left: 6px; }
.gradebar .linkbtn { color: var(--accent); font-size: 13px; font-weight: 600; }
.price em.g { color: var(--accent); font-weight: 600; }
.sheet.modal { align-items: center; justify-content: center; padding: 16px; }
.dialog { position: relative; width: min(400px, 100%); background: var(--bg); border-radius: 16px; padding: 0 20px 20px;
  box-shadow: 0 0 0 1px var(--line-2), 0 24px 64px rgba(0, 0, 0, .6); animation: pop .3s var(--ease); }
.dialog .sheet-head { margin: 0 -20px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

/* 히어로 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: center; padding-top: 88px; padding-bottom: 96px; position: relative; }
.hero::before { content: ""; position: absolute; right: 0; top: 0; width: min(720px, 100%); height: 620px; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(182, 166, 255, .13), transparent 70%); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 24px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61, 214, 140, .15); }
.live.off::before { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 107, 107, .15); }
.live:empty { display: none; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -.045em; line-height: 1.06; }
.lede { margin-top: 22px; font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 30em; }
.cta { display: flex; gap: 10px; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 56px 0 0; }
.facts div { padding: 0 28px; border-left: 1px solid var(--line); }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: 13px; color: var(--text-3); }
.facts dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.facts dd small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; letter-spacing: 0; }
.facts .ic { width: 16px; height: 16px; fill: var(--accent); stroke: none; display: inline-block; vertical-align: -1px; margin-right: 3px; }

/* 착용 미리보기 — 디스코드 프로필 카드 */
.profile { margin: 0; background: #111214; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.pbanner { height: 110px; background: linear-gradient(135deg, #2B2450 0%, #5B4BA8 55%, #B6A6FF 130%); }
.pavatar { position: relative; width: 124px; height: 124px; margin: -64px 0 0 18px; }
.pavatar .face { position: absolute; inset: 14px; border-radius: 50%; box-shadow: 0 0 0 6px #111214;
  background: radial-gradient(circle at 35% 30%, #4A4560, #23222B 70%); }
.pavatar #pDeco { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pavatar .dot { position: absolute; right: 16px; bottom: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #111214; }
.pbody { padding: 6px 20px 20px; }
.pname { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.ptag { font-size: 13px; color: var(--text-3); }
.pbody hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.pitem { display: flex; align-items: center; gap: 12px; }
.pitem img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.pmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plabel { font-size: 12px; color: var(--text-3); }
.pmeta b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmeta span:last-child { font-size: 13px; color: var(--text-2); }
.profile.swap #pDeco { animation: wear .5s var(--ease); }
@keyframes wear { from { transform: scale(.82) rotate(-12deg); opacity: 0; } }

/* 섹션 공통 */
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.sec-head h2 { font-size: 28px; }
.count { color: var(--text-3); font-size: 14px; }
.shop, .how, .reviews, .faq { padding-top: 24px; padding-bottom: 72px; }
.how, .reviews, .faq { border-top: 1px solid var(--line); padding-top: 72px; }

/* 필터 */
.filters { position: sticky; top: 64px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; margin-bottom: 8px; background: var(--bg); }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; cursor: pointer; background: transparent; color: var(--text-2); height: 34px; padding: 0 14px;
  border-radius: 8px; font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button small { color: var(--text-3); margin-left: 6px; font-size: 12px; }
.tools { display: flex; gap: 8px; flex: none; }
.search, .sort { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 12px; color: var(--text-3); width: 16px; height: 16px; }
.search input { width: 260px; height: 40px; padding: 0 36px; border-radius: 10px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.search input::placeholder { color: var(--text-3); }
.search input:focus, .sort select:focus, .form input:focus, textarea:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 10px; font: 500 11px var(--sans); color: var(--text-3); padding: 1px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-2); }
.sort select { appearance: none; height: 40px; padding: 0 34px 0 14px; border-radius: 10px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; outline: none; }
.sort .ic { position: absolute; right: 10px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }

/* 상품 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; cursor: pointer; }
.art { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 25%, #1C1C22 0%, var(--card) 60%); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s; }
.tile:hover .art { box-shadow: inset 0 0 0 1px var(--line-2); }
.tile[aria-pressed="true"] .art { box-shadow: inset 0 0 0 1.5px var(--accent); }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover .art img { transform: scale(1.04); }
.art.deco .face { position: absolute; width: 52%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3A3650, #1E1D26 72%); }
.art.deco img { position: relative; width: 74%; height: 74%; object-fit: contain; }
.art .none { color: var(--text-3); font-size: 13px; }
.tag { position: absolute; top: 10px; left: 10px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px;
  font-size: 11px; font-weight: 600; color: var(--text); background: rgba(10, 10, 11, .62); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--line); }
.tag.hot { color: var(--accent); }
.add { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 10px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--text); color: var(--bg); opacity: 0; transform: translateY(4px);
  transition: opacity .2s, transform .25s var(--ease), background .2s; }
.add .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.tile:hover .add, .tile:focus-within .add, .add.in { opacity: 1; transform: none; }
.add.in { background: var(--accent); width: auto; padding: 0 10px; gap: 3px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; }
.info { padding: 12px 2px 0; }
.info h3 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info .cat { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.price b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.price s { font-size: 13px; color: var(--text-3); }
.price em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 64px 0; }
.more { text-align: center; margin-top: 32px; }
.skel .art { animation: pulse 1.4s ease-in-out infinite; }
.skel .info i { display: block; height: 12px; border-radius: 4px; background: var(--card); margin-top: 8px; width: 70%; }
.skel .info i + i { width: 40%; }
@keyframes pulse { 50% { opacity: .5; } }

@media (hover: none) { .add { opacity: 1; transform: none; background: rgba(244, 244, 246, .92); } }

/* 주문 방법 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { padding: 0 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); margin-bottom: 18px; }
.steps b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.steps p { margin-top: 6px; color: var(--text-2); font-size: 14px; }

/* 후기 */
.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev { background: var(--card); border-radius: 14px; padding: 20px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars .ic { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .off { color: var(--line-2); }
.rev p { margin: 12px 0 16px; color: var(--text); flex: 1; }
.rev footer { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 질문 */
.faq { display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.faq .sec-head { margin: 0; align-self: start; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { color: var(--text-3); transition: transform .25s var(--ease); }
.qa details[open] summary .ic { transform: rotate(45deg); }
.qa p { color: var(--text-2); padding: 0 40px 20px 0; }

/* 하단 */
.foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.foot-brand p { color: var(--text-2); margin: 14px 0 18px; max-width: 24em; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col b { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 4px; }
.foot-col a { color: var(--text-2); font-size: 14px; }
.foot-col a:hover { color: var(--text); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 48px; color: var(--text-3); font-size: 12px; line-height: 1.8; }
#footInfo span { display: inline-block; margin-right: 16px; }
#footInfo:not(:empty) { margin-bottom: 6px; }

/* 장바구니 */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet-body { position: relative; width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -1px 0 0 var(--line); animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }
.sheet-head { position: sticky; top: 0; z-index: 1; background: var(--bg); display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 18px; letter-spacing: -.02em; }
.cart-lines { flex: 1 0 auto; padding: 8px 20px; }
.cline { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 56px; height: 56px; border-radius: 10px; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.deco img { object-fit: contain; width: 86%; height: 86%; }
.cline .lt { flex: 1; min-width: 0; }
.cline b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cline .lt span { color: var(--text-2); font-size: 13px; }
.qty { display: flex; align-items: center; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--text-2); }
.qty button:hover { color: var(--text); }
.qty .ic { width: 14px; height: 14px; }
.qty output { min-width: 18px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-empty { text-align: center; color: var(--text-3); padding: 72px 0; }
.cart-empty .ic { width: 28px; height: 28px; margin: 0 auto 12px; color: var(--text-3); }
.checkout { padding: 16px 20px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { color: var(--text-2); }
.total b { font-size: 24px; letter-spacing: -.03em; }

/* 입력 */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.form input, textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 15px; outline: none; }
.form input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.form small { color: var(--text-3); font-size: 12px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.form .check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; box-shadow: none; }
.err { color: var(--red); font-size: 13px; white-space: pre-line; }
.err:empty { display: none; }

/* 주문 페이지 */
#orderView, #lookupView { padding-top: 56px; padding-bottom: 80px; min-height: 70vh; }
.card { background: var(--card); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); padding: 32px; }
.card.narrow { max-width: 560px; margin: 0 auto; }
.ptitle { font-size: 30px; }
.sub { color: var(--text-2); margin-top: 6px; }
.ohead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ocode { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-top: 6px; }
.ocode b { color: var(--text-2); font-weight: 600; letter-spacing: .04em; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--accent-dim); color: var(--accent); white-space: nowrap; }
.chip.ok { background: rgba(61, 214, 140, .12); color: var(--green); }
.chip.off { background: rgba(255, 255, 255, .06); color: var(--text-2); }
.track { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); }
.track li { position: relative; padding-top: 18px; font-size: 12px; color: var(--text-3); }
.track li::before { content: ""; position: absolute; top: 0; left: 0; right: 4px; height: 3px; border-radius: 2px; background: var(--line-2); }
.track li.done::before { background: var(--text); }
.track li.now { color: var(--text); font-weight: 600; }
.track li.now::before { background: linear-gradient(90deg, var(--accent) 50%, var(--line-2) 50%); background-size: 200% 100%; animation: prog 1.6s linear infinite; }
.track li.done { color: var(--text-2); }
@keyframes prog { from { background-position: 100% 0; } to { background-position: 0 0; } }
.part { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.part h2 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 14px; }
.part .hint { color: var(--text-3); font-size: 13px; margin-top: 12px; }
.kv { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px 14px; align-items: center; margin: 0; }
.kv dt { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.kv dd { margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv dd.big { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.copy { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-2); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2); }
.copy:hover { color: var(--text); }
.copy .ic { width: 13px; height: 13px; }
.note { border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.note.warn { background: rgba(255, 107, 107, .08); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .25); color: #FFC9C9; }
.note.ok { background: rgba(61, 214, 140, .07); box-shadow: inset 0 0 0 1px rgba(61, 214, 140, .22); color: #BDF5DA; }
.links { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.links li { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.links .num { color: var(--text-3); font-size: 12px; width: 14px; }
.links a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; }
.links a:hover { color: var(--accent); }
.olines { display: grid; gap: 10px; }
.oline { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.oline .thumb { width: 40px; height: 40px; border-radius: 8px; }
.oline .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oline em { font-style: normal; color: var(--text-3); margin-left: 4px; }
.osum { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; font-weight: 700; }
.starpick { display: flex; gap: 4px; }
.starpick button { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--line-2); }
.starpick button.on { color: var(--accent); }
.starpick .ic { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.mine { display: grid; gap: 8px; margin: 22px 0 6px; }
.mine a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; letter-spacing: .02em; }
.mine a span { color: var(--text-3); font-weight: 500; font-size: 13px; letter-spacing: 0; }
.mine a:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
#lookupForm { margin-top: 22px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; translate: -50% 12px; opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: opacity .25s, translate .35s var(--ease); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.toast .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.toast.on { opacity: 1; translate: -50% 0; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
  .profile { max-width: 420px; }
  .revs { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; gap: 8px; }
  .filters { flex-direction: column; align-items: stretch; }
  .tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a { display: none; }
  .nav { margin-left: auto; margin-right: 6px; }
  .gradebar-in { height: auto; padding-top: 8px; padding-bottom: 8px; }
  .top-in { height: 56px; justify-content: space-between; }
  .filters { top: 56px; }
  .cb-label { display: none; }
  .cartbtn { padding: 0 6px 0 10px; }
  .hero { padding-top: 28px; gap: 32px; }
  .profile { order: -1; max-width: none; }
  .pbanner { height: 84px; }
  .hero h1 { font-size: 38px; }
  .lede { font-size: 15px; margin-top: 16px; }
  .cta { margin-top: 24px; }
  .cta .btn { flex: 1; }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px 0; margin-top: 36px; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts dd { font-size: 20px; }
  .sec-head h2 { font-size: 22px; }
  .shop, .how, .reviews, .faq { padding-bottom: 56px; }
  .how, .reviews, .faq { padding-top: 56px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .info h3 { font-size: 14px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li, .steps li + li { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .steps .n { margin: 0; grid-row: span 2; }
  .revs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rev { scroll-snap-align: start; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-in { padding-top: 40px; padding-bottom: 32px; }
  .foot-legal { padding-top: 20px; padding-bottom: 40px; }
  .card { padding: 22px; border-radius: 16px; }
  .ptitle { font-size: 26px; }
  #orderView, #lookupView { padding-top: 24px; }
  .kv dd.big { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
