/* 소개 페이지 — 색·글꼴·카드·버튼은 delivery.css 를 그대로 쓰고, 서버 머리 그림처럼 점 격자 + 픽셀 아이템을 더한다 */
body {
  background-color: var(--bg);
  background-image: radial-gradient(#D6D1C6 1.4px, transparent 1.5px);   /* 디스코드 머리 그림(hd_*)의 점 격자 */
  background-size: 28px 28px;
}
html.intro-on, html.intro-on body { overflow: hidden; }
html { touch-action: manipulation; }   /* 아이폰 두 번 톡 확대 끄기(두 손가락 확대는 그대로 — 글씨 키워 보기) */
.home { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 32px; }
.page.wide.home { max-width: 1320px; }   /* 상품 카드를 크게 — 양옆 빈 곳을 줄인다(10-29 오너) */

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.brand-row { display: flex; align-items: flex-end; gap: 8px; }
.btn.big { height: 56px; padding: 0 28px; font-size: 17px; }
/* 블록 버튼 — 초록 면 + 아래 어두운 턱(누르면 턱만큼 내려간다). 섬 안 노점·쿠폰 카드와 같은 초록 */
.home .btn.primary { font-family: var(--pixel); background: #2E9E5B; color: #fff; border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 4px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.home .btn.primary:hover { background: #36B068; transform: translateY(-2px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 6px 0 var(--ink); }
.home .btn.primary:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 1px 0 var(--ink); }
.home .btn.small { height: 36px; }
/* 카드 — 둥근 모서리 대신 블록처럼 각지게 + 아래 그림자 턱 */
.home .card { border-radius: 6px; border: 2px solid var(--line-2); box-shadow: 0 4px 0 var(--line-2); }

/* 첫 카드 — 왼쪽 글, 오른쪽 창틀 위 캐릭터(char.js) */
.intro-card {
  position: relative; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  background:   /* 아래 34px = 잔디 블록 바닥(윗면 풀 · 아래 흙, 8px 픽셀 얼룩) — 카드 폭 전체, 캐릭터가 그 위에 선다 · 그 위는 섬 낮 하늘 */
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 50%, transparent 0) left bottom 8px / 16px 8px repeat-x,
    linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.07) 0) left bottom / 24px 8px repeat-x,
    linear-gradient(#7DC46E 0 10px, #5E9F4F 10px 14px, #8B6A4A 14px 26px, #7A5C40 26px) left bottom / 100% 34px no-repeat,
    linear-gradient(180deg, #9FD3F0 0%, #C9E8F5 60%, #E6F4EC 100%);
}
/* 픽셀 구름 두 덩이 — 칸 하나 = 8px 네모를 box-shadow 로 찍는다 */
.intro-card::before, .intro-card::after { content: ''; position: absolute; width: 8px; height: 8px; background: #fff; opacity: 0.9; pointer-events: none;
  box-shadow: 8px 0 #fff, 16px 0 #fff, 24px 0 #fff, -8px 8px #fff, 0 8px #fff, 8px 8px #fff, 16px 8px #fff, 24px 8px #fff, 32px 8px #fff, 40px 8px #fff,
    -16px 16px #fff, -8px 16px #fff, 0 16px #fff, 8px 16px #fff, 16px 16px #fff, 24px 16px #fff, 32px 16px #fff, 40px 16px #fff, 48px 16px #fff; }
.intro-card::before { left: 62%; top: 26px; animation: drift 38s linear infinite alternate; }
.intro-card::after { left: 12%; top: 64%; transform: scale(0.7); opacity: 0.7; animation: drift 46s linear infinite alternate-reverse; }
@keyframes drift { to { translate: 90px 0; } }
.intro-text, .intro-art { position: relative; z-index: 1; }
.intro-text { display: flex; flex-direction: column; gap: 18px; padding: 28px 22px 8px; }
.intro-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.home .intro-btns .btn.ghost { font-family: var(--pixel); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 4px 0 var(--ink); }
.island-go { flex-direction: column; gap: 2px; line-height: 1.15; }
.island-go small { font: 600 11px var(--font); color: var(--muted); }
.home .intro-btns .btn.ghost:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.intro-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; text-wrap: balance; }
.intro-art { position: relative; height: 230px; }
.intro-art #char { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: calc(100% - 34px); display: block; pointer-events: none; }
.intro-art.no3d #char { display: none; }
.intro-art.no3d .char-flat { display: block; animation: rise 0.9s 0.25s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.intro-art .sill { font-size: 0; border-top: 0; box-shadow: none; background: none; }   /* 바닥은 .intro-card 배경의 잔디 */

/* 도트 글꼴(갈무리)은 제목·숫자·버튼에만 — 긴 글(상품 설명·후기·질문 답)은 읽기 쉬운 Pretendard */
:root { --pixel: 'Galmuri11', var(--font); }
.top .store, .since, .intro-card h1, .stats, .group h2, .count, .product .name, .product .price, .state, .faq dt, .online, .foot .hint { font-family: var(--pixel); }

/* 지금 N명이 보는 중 */
.online { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--card);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); animation: live 1.6s infinite; }
.online b { color: var(--ink); }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.top .online { margin-left: auto; }

/* 상단 가운데 '최근 판매·후기' 알림 — 한 줄씩 아래에서 올라와 바뀐다(home.js ticker) */
.ticker { flex: 1 1 auto; min-width: 0; position: relative; height: 36px; overflow: hidden; margin: 0 4px; }
.top .ticker ~ .online { margin-left: 0; }
.tk-row { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; animation: tk-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.tk-row.out { animation: tk-out 0.45s ease-in both; }
.tk-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.tk-pill img { width: 18px; height: 18px; image-rendering: pixelated; flex: none; }
.tk-ago { color: rgba(255, 255, 255, 0.62); font-weight: 600; flex: none; }
.tk-msg { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tk-msg b { color: #FFD23F; }
@keyframes tk-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tk-out { to { transform: translateY(-100%); opacity: 0; } }
@media (max-width: 720px) {   /* 휴대폰 — 로고·접속 수·디스코드 줄 아래 한 줄을 다 쓴다 */
  .top { flex-wrap: wrap; row-gap: 6px; }
  .ticker { order: 3; flex-basis: 100%; margin: 0; }
  .top .ticker ~ .online { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .tk-row, .tk-row.out { animation: none; } }
.intro-online { position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); margin: 0; font-family: 'Galmuri11', var(--font); }

/* 운영 시작 — 제목과 같은 크기의 초록 글씨(오래된 곳이라는 신호) */
.since { margin: 0 0 -10px; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; color: var(--ok); }

.stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stats li { background: rgba(250, 249, 246, 0.85); border: 2px solid var(--line-2); border-radius: 4px; padding: 5px 12px; font-size: 14px; color: var(--ink-2); }
.stats b { color: var(--ink); font-weight: 800; }

.group { display: flex; flex-direction: column; gap: 14px; }
.group h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; padding: 0 4px; }
.group h2::before { content: ''; flex: none; width: 30px; height: 30px; background: center / contain no-repeat; image-rendering: pixelated; }
#vendTitle::before { background-image: url(/px/bolt.webp); }
#namedTitle::before { background-image: url(/px/crown.webp); }
#faqTitle::before { background-image: url(/px/key.webp); }
#revTitle::before { background-image: url(/px/star.webp); }
#guideTitle::before { background-image: url(/px/check.webp); }
#howTitle::before { background-image: url(/px/cart.webp); }
#infoTitle::before { background-image: url(/px/server.webp); }   /* 예전엔 그림 없이 빈 칸만 */
/* 구매 방법 4단계 — 처음 온 손님이 맨 먼저 보는 곳 */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.how .card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.how-n { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font: 700 15px var(--pixel); color: #fff; background: #2E9E5B; border: 2px solid var(--ink); border-radius: 4px; }
.how h3 { margin: 0 0 4px; font: 700 15px var(--pixel); }
.how p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.how a { color: inherit; font-weight: 700; }
.how-note { margin: 0; padding: 0 4px; font-size: 13px; color: var(--muted); }
.product .dname { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.product .pre { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* 안내 글 링크(첫 화면 '안내'·guide/*.html 아래) */
.guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }   /* 휴대폰 2개 · PC 3개(10-29 오너) */
.guides li { display: flex; min-width: 0; }   /* 두 줄로 접힌 제목 옆 칸도 같은 높이 */
.guides a { flex: 1; flex-direction: row; justify-content: space-between; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.4; padding: 12px; word-break: keep-all; }
.guides a::after { content: '→'; flex: none; color: var(--muted); }
@media (min-width: 720px) { .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .guides a { font-size: 15px; padding: 16px 18px; } }
.group .count { border-radius: 4px; }

.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.products > li { display: flex; }
.product { flex: 1; gap: 12px; color: inherit; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }   /* 카드 전체가 디스코드 링크 */
.home .product { border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.home .product:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.home .product.off { border-color: var(--line-2); box-shadow: 0 4px 0 var(--line-2); }
.product .name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; font-weight: 700; }
.product .rank { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: #E7E4DD; color: var(--ink-2); }
.product .feats { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 2px dashed var(--line); }
.product .price { font-size: 18px; font-weight: 800; }
.state { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 4px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.state.off { background: var(--err-bg); color: var(--err); }
.product.off .name, .product.off .price { color: var(--muted); }

/* 자주 묻는 질문 */
.faq { margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.faq .card { gap: 6px; padding: 16px 18px; }
.faq dt { font-size: 15px; font-weight: 800; }
.faq dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* 후기 전부 — 높이가 제각각이라 벽돌 쌓기(columns) */
.reviews { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 12px; }
.review { break-inside: avoid; margin-bottom: 12px; gap: 8px; padding: 16px 18px; }
.review .stars { color: #C98A00; font-size: 14px; letter-spacing: 0.08em; }
.review .body { font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.review .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.review .meta time { flex: none; }
.reviews.fold > li:nth-child(n+10) { display: none; }   /* 처음엔 9개만 — 나머지도 HTML 에 있어 검색엔진은 다 읽는다(home.js 더 보기) */
.more { align-self: center; height: 48px; padding: 0 28px; font-family: var(--pixel); border-radius: 6px; border: 2px solid var(--line-2); box-shadow: 0 4px 0 var(--line-2); }
.more:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-2); }

/* 스크롤하면 아래에서 올라온다 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.reveal.in { opacity: 1; transform: none; }

.foot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 0 96px; }

/* ── 입장 ── */
.intro { position: fixed; inset: 0; z-index: 50; background: var(--bg); transition: opacity 0.6s; touch-action: none; user-select: none; -webkit-user-select: none; }
html.intro-on .hotbar { z-index: 60; }   /* 입장 중에 주운 아이템도 핫바에 보인다 */
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro::after { content: ''; position: absolute; inset: 0; background: #FFF6DE; opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.intro.flash::after { opacity: 1; background: radial-gradient(circle, #C084FC 0%, #6D28D9 55%, #2A0A4A 100%); }   /* 네더 포털 안으로 */
.intro.respawn::after { animation: respawn 0.6s ease-out; }   /* 떨어져서 출발 자리로 — 잠깐 하얗게 */
@keyframes respawn { from { opacity: 0.9; } to { opacity: 0; } }
.intro.warp::after { background: radial-gradient(circle, #C084FC 0%, #6D28D9 55%, #2A0A4A 100%); animation: warp 0.9s ease-in-out; }   /* 포털 신전 — 보랏빛으로 가린 사이 공간을 바꾼다 */
@keyframes warp { 0% { opacity: 0; } 40%, 55% { opacity: 1; } 100% { opacity: 0; } }
.intro.out { opacity: 0; pointer-events: none; }
.intro-title { position: absolute; left: 50%; top: 42%; width: min(46vw, 300px); height: auto; image-rendering: pixelated; opacity: 0;
  transform: translate(-50%, -50%); filter: drop-shadow(0 6px 0 rgba(255, 255, 255, 0.85)); pointer-events: none; }
.intro.night .intro-title { filter: invert(1) drop-shadow(0 6px 0 rgba(0, 0, 0, 0.85)); }
.intro-skip { position: absolute; right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); cursor: pointer;
  font: 700 13px var(--font); color: var(--ink-2); background: rgba(250, 249, 246, 0.85); border: 1px solid var(--line-2);
  padding: 8px 14px; border-radius: 999px; }
.intro-hint { position: absolute; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 62px); transform: translate(-50%, 12px); opacity: 0; max-width: calc(100% - 400px);   /* PC: 핫바 위 — 위쪽은 광장 큰 문 간판 자리 */
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; background: rgba(250, 249, 246, 0.9); border: 1px solid var(--line-2);
  padding: 9px 16px; border-radius: 14px; transition: opacity 0.4s, transform 0.4s; pointer-events: none; }
.intro-hint.on { opacity: 1; transform: translate(-50%, 0); }
.intro-hint.gone { opacity: 0; }
.intro-hint b { color: var(--ink); }
.intro-hint, .intro-skip, .jump, .punch { font-family: 'Galmuri11', var(--font); font-weight: 700; }   /* 게임 안 글자는 도트 글꼴(intro.js 가 불러온다) */
/* 점프맵 도착 — 쿠폰 코드 */
.coupon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100% - 32px)); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 18px; text-align: center;
  font-family: 'Galmuri11', var(--font); background: rgba(250, 249, 246, 0.96); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 rgba(17, 17, 17, 0.25); }
.coupon[hidden] { display: none; }
.coupon > b { font-size: 18px; color: #2E9E5B; }
.coupon-msg { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); word-break: keep-all; text-wrap: balance; }   /* 좁은 화면에서도 낱말 가운데서 끊지 않게 */
.coupon-msg b { color: var(--ink); }
.coupon-code { font: 700 18px 'Galmuri11', monospace; letter-spacing: 0.04em; padding: 8px 12px; border-radius: 8px; background: #EAF6EE; color: var(--ink); user-select: all; -webkit-user-select: all; }
.coupon-code:empty { display: none; }
.coupon-btns { display: flex; gap: 8px; }
.coupon-btns button { font: 700 13px 'Galmuri11', var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.coupon-btns .coupon-copy { background: #2E9E5B; border-color: #2E9E5B; color: #fff; }
.coupon-copy[hidden] { display: none; }
/* 이벤트 레이스 — 위 가운데 상태 줄 · 가운데 큰 카운트 */
.race { position: absolute; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 10px;
  font-family: 'Galmuri11', var(--font); background: rgba(250, 249, 246, 0.92); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 14px; white-space: nowrap; }
.race[hidden], .race-big[hidden], .lobby[hidden], .spec[hidden] { display: none; }
/* 대기실 — 왼쪽 위 목록(들어온 순서 30명) */
.lobby { position: absolute; left: max(16px, env(safe-area-inset-left)); top: max(16px, env(safe-area-inset-top)); z-index: 2; width: 230px; max-height: calc(100% - 150px); overflow: auto;
  font-family: 'Galmuri11', var(--font); background: rgba(250, 249, 246, 0.92); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; }
.lobby-n { font-size: 16px; color: #7C3AED; }
.lobby-me { margin: 4px 0 8px; font-size: 13px; color: #2E9E5B; }
.lobby-me.full { color: #C2410C; }
.lobby-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.lobby-list li { font-size: 11px; padding: 3px 7px; border-radius: 6px; background: #EFEAFB; color: var(--ink-2); }
.lobby-list li.me { background: #7C3AED; color: #fff; }
/* 관전 — 아래 가운데 */
.spec { position: absolute; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 70px); transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px;
  font-family: 'Galmuri11', var(--font); background: rgba(20, 12, 36, 0.78); color: #fff; border-radius: 14px; padding: 8px 12px; white-space: nowrap; }
.spec-name { min-width: 96px; text-align: center; font-size: 14px; }
.spec button { font: 700 12px 'Galmuri11', var(--font); padding: 6px 10px; border-radius: 999px; cursor: pointer; border: 1px solid #C084FC; background: transparent; color: #fff; }
@media (max-width: 640px) { .lobby { width: 170px; top: 64px; } }
.race-title { font-size: 15px; color: #7C3AED; }
.race-sub { font-size: 13px; color: var(--ink-2); }
.race-big { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; font: 700 clamp(30px, 8vw, 72px) 'Galmuri11', var(--font); white-space: nowrap;
  color: #fff; text-shadow: 0 4px 0 #7C3AED, 0 0 24px rgba(124, 58, 237, 0.6); }
/* 상품 전시관 노점 앞 — 상품 이름 · 가격 · 재고 · 디스코드 구매 */
.stall { position: absolute; left: 50%; top: max(70px, calc(env(safe-area-inset-top) + 58px)); transform: translateX(-50%); width: min(340px, calc(100% - 32px)); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 16px; text-align: center;
  font-family: 'Galmuri11', var(--font); background: rgba(250, 249, 246, 0.96); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 rgba(17, 17, 17, 0.25); }
.stall[hidden] { display: none; }
.stall-name { font-size: 16px; color: var(--ink); word-break: keep-all; }
.stall-meta { margin: 0; display: flex; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.stall-state { color: #1E7A46; } .stall-state.off { color: #B42318; }
.coupon-btns .stall-buy { font: 700 13px 'Galmuri11', var(--font); padding: 8px 16px; border-radius: 999px; background: #2E9E5B; border: 1px solid #2E9E5B; color: #fff; text-decoration: none; }
.k-touch { display: none; }
.joy, .jump, .punch { display: none; }
@media (pointer: coarse) {
  .k-desk { display: none; } .k-touch { display: inline; }
  .intro-hint { left: 16px; top: max(18px, env(safe-area-inset-top)); bottom: auto; transform: none; max-width: calc(100% - 130px); text-align: left; }
  .intro-hint.on { transform: none; }
  .joy { display: block; position: absolute; left: max(22px, env(safe-area-inset-left)); bottom: max(28px, env(safe-area-inset-bottom)); width: 120px; height: 120px;
    border-radius: 50%; background: rgba(250, 249, 246, 0.55); border: 2px solid rgba(17, 17, 17, 0.25); touch-action: none; }
  .joy i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(17, 17, 17, 0.75); }
  .jump { display: block; position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: max(44px, env(safe-area-inset-bottom)); width: 76px; height: 76px;
    border-radius: 50%; border: 2px solid rgba(17, 17, 17, 0.25); background: rgba(250, 249, 246, 0.75); font: 800 15px var(--pixel); color: var(--ink); touch-action: none; }
  .punch { display: block; position: absolute; right: max(30px, env(safe-area-inset-right)); bottom: calc(max(44px, env(safe-area-inset-bottom)) + 90px); width: 60px; height: 60px;
    border-radius: 50%; border: 2px solid rgba(17, 17, 17, 0.25); background: rgba(250, 249, 246, 0.75); font: 800 13px var(--pixel); color: var(--ink); touch-action: none; }   /* 점프 위 */
  .intro-online { left: 50%; transform: translateX(-50%); bottom: max(54px, env(safe-area-inset-bottom)); }   /* 조이스틱·점프 사이 */
  html.intro-on .hotbar { bottom: auto; top: 112px; }   /* 아래는 조이스틱·점프 자리 — 안내 문구 아래로 */
  html.intro-on .hotbar:not(.on) { opacity: 0; transform: translate(-50%, -20px); }
  .stall { top: 176px; }   /* 핫바(112~164px) 아래 — 겹치면 상품 이름 아래가 가린다 */
}

/* ── 떠다니는 아이템 · 핫바 ── */
.floaters { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.floater { position: absolute; width: var(--s, 56px); height: var(--s, 56px); pointer-events: auto; cursor: pointer; border: 0; padding: 0; background: none;
  image-rendering: pixelated; animation: bob var(--d, 4s) ease-in-out infinite alternate; transition: opacity 0.3s; }
.floater img { width: 100%; height: 100%; image-rendering: pixelated; display: block; filter: drop-shadow(0 6px 4px rgba(60, 50, 30, 0.18));
  transform: translate(var(--mx, 0), var(--my, 0)); transition: transform 0.4s ease-out; }
.floater:hover img { filter: drop-shadow(0 8px 6px rgba(60, 50, 30, 0.28)) brightness(1.08); }
.floater.got { animation: got 0.35s ease-in forwards; pointer-events: none; }
@keyframes bob { from { transform: translateY(-8px) rotate(-4deg); } to { transform: translateY(8px) rotate(4deg); } }
@keyframes got { to { transform: scale(1.5); opacity: 0; } }
.spark { position: fixed; z-index: 40; width: 8px; height: 8px; pointer-events: none; animation: spark 0.6s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.fly { position: fixed; z-index: 41; width: 40px; height: 40px; image-rendering: pixelated; pointer-events: none;
  transition: left 0.55s cubic-bezier(0.5, -0.3, 0.7, 1), top 0.55s cubic-bezier(0.3, 0, 0.6, 1), width 0.55s, height 0.55s; }

/* 마인크래프트 핫바 9칸 */
.hotbar { position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; gap: 0; padding: 3px;
  background: rgba(30, 28, 26, 0.82); border: 2px solid #111; box-shadow: inset 0 0 0 2px #8B8B8B; transform: translate(-50%, 140%);
  transition: transform 0.4s cubic-bezier(0.2, 1.3, 0.4, 1); }
.hotbar.on { transform: translate(-50%, 0); }
.slot { position: relative; width: 42px; height: 42px; border: 2px solid #3A3A3A; border-top-color: #222; border-left-color: #222; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.35);
  background: rgba(139, 139, 139, 0.25); display: flex; align-items: center; justify-content: center; }
.slot img { width: 30px; height: 30px; image-rendering: pixelated; opacity: 0.18; filter: grayscale(1); transition: opacity 0.2s, filter 0.2s; }
.slot.have img { opacity: 1; filter: none; }
.slot b { position: absolute; right: 2px; bottom: 0; font: 700 13px/1 var(--mono); color: #fff; text-shadow: 2px 2px 0 #3F3F3F; }
.slot.pop { animation: pop 0.3s; }
@keyframes pop { 50% { transform: scale(1.18); } }
.hotbar.done { box-shadow: inset 0 0 0 2px #F2C94C, 0 0 24px rgba(242, 201, 76, 0.6); }

@media (min-width: 720px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { columns: 2; }
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .intro-card { flex-direction: row; align-items: stretch; min-height: 380px; }
  .intro-text { flex: 1; justify-content: center; padding: 48px 44px; }
  .intro-card h1, .since { font-size: 40px; }
  .intro-art { flex: 0 0 44%; height: auto; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews { columns: 3; }
}
@media (max-width: 520px) {
  .slot { width: 34px; height: 34px; }
  .slot img { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .floater, .reveal, .intro-art.no3d .char-flat, .intro-card::before, .intro-card::after { animation: none; transition: none; opacity: 1; transform: none; }
}

/* ── 닉네임 계정 카드(판매중·판매완료) — 위는 섬 하늘 창에 스킨 상반신, 아래 가린 이름·설명·버튼. 그림은 봇이 받아 Blob 에 올린 것(닉네임이 브라우저로 안 간다) ── */
.sortbar { display: flex; flex-wrap: wrap; gap: 8px; }
.sortbar button { font: 700 13px var(--pixel); height: 34px; padding: 0 14px; cursor: pointer; color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 3px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s; }
.sortbar button:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.sortbar button[aria-pressed="true"] { background: #2E9E5B; color: #fff; }
#otherTitle::before { background-image: url(/px/gift.webp); }
#soldTitle::before { background-image: url(/px/check.webp); }
#proxyTitle::before { background-image: url(/px/coin.webp); }
.accts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }   /* 휴대폰도 두 줄 — 한 줄이면 27개에 화면 30장을 넘겨야 FAQ 가 나왔다 */
.accts > li { display: flex; min-width: 0; }
.ncard { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 4px 0 var(--ink);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.ncard:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.ncard-img, .d-media { position: relative; display: block; overflow: hidden;
  background: linear-gradient(#7DC46E 0 6px, #5E9F4F 6px 9px, #8B6A4A 9px) left bottom / 100% 16px no-repeat,   /* 아래 잔디 블록 */
    linear-gradient(180deg, #9FD3F0 0%, #C9E8F5 70%, #E6F4EC 100%); }
.ncard-img { flex: none; aspect-ratio: 4 / 3; border-bottom: 2px solid var(--ink); }   /* flex 세로 배치에서 overflow:hidden 칸이 0 으로 줄지 않게 */
/* 오너 사진(망토 화면 등) — 잘리지 않게 다 보이고, 남는 곳은 마인크래프트 메뉴 회색 */
.ncard-img.has-photo { background: #2B2B2B; }
.ncard-img .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.skin { position: absolute; left: 50%; top: 9%; width: 40%; height: auto; transform: translateX(-50%); image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.16)); }
.skin.none { top: 50%; width: 56px; transform: translate(-50%, -60%); filter: none; opacity: 0.85; }
.ncard-badge, .ncard-rank, .ncard-price { position: absolute; font-family: var(--pixel); font-weight: 700; border: 2px solid var(--ink); border-radius: 4px; background: var(--card); color: var(--ink); white-space: nowrap; }
.ncard-badge { left: 8px; top: 8px; font-size: 11px; padding: 2px 8px 2px 18px; }
.ncard-badge::before { content: ''; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: #2E9E5B; }
.ncard-rank { right: 8px; top: 8px; font-size: 11px; padding: 2px 7px; background: #FFE08A; }
.ncard-price { right: 8px; bottom: 22px; font-size: 15px; padding: 2px 10px; box-shadow: 0 3px 0 var(--ink); }
.ncard-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.ncard-name { margin: 0; font: 700 17px var(--pixel); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncard-name a { color: inherit; text-decoration: none; }
.ncard-sub { margin: 0; font-size: 12px; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.chips li { font-size: 12px; line-height: 1.4; padding: 2px 8px; border-radius: 4px; background: #EFEDE7; border: 1px solid var(--line-2); color: var(--ink-2); }
.ncard-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.ncard-btns .btn, .home .ncard-btns .btn.primary { flex: 1; height: 36px; font: 700 13px var(--pixel); border-radius: 6px; }
.home .ncard-btns .btn.ghost, .detail .btn.ghost { border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); background: var(--card); }
.ncard.sold, .ncard.off { border-color: var(--line-2); box-shadow: 0 4px 0 var(--line-2); }
.ncard.sold .ncard-img { filter: grayscale(1); opacity: 0.8; border-color: var(--line-2); }
.ncard.sold .ncard-badge::before, .ncard.off .ncard-badge::before { background: var(--muted); }
.ncard.sold .ncard-price { text-decoration: line-through; color: var(--muted); }
.ncard.sold .ncard-name { color: var(--ink-2); }
.sold-list.fold > li:nth-child(n+9) { display: none; }   /* 처음엔 8개 — home.js 더 보기 */

/* ── 상세 페이지 /p/<상품 ID> ── */
.detail .back { align-self: flex-start; font: 700 14px var(--pixel); color: var(--ink-2); text-decoration: none; }
.detail .back:hover { color: var(--ink); }
.d-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page.wide.home.detail { max-width: 1120px; }   /* 상세는 좁게 — 왼쪽 그림·설명, 오른쪽 가격 칸(10-29 오너 예시) */
.d-head h1 { margin: 0; font: 800 26px var(--pixel); letter-spacing: 0.02em; }
.d-head .ncard-rank { position: static; font-size: 13px; }
/* 하이픽셀 채팅 색 랭크(api/home.js rankTag) — 어두운 채팅 바탕 + 마인크래프트 글자 그림자(같은 색의 1/4 밝기) */
.mc { background: #262626; border-color: var(--ink); letter-spacing: 0.02em; }
.mc i { font-style: normal; }
.r-vip { color: #55FF55; text-shadow: 1px 1px 0 #153F15; } .r-vip i { color: #FFAA00; text-shadow: 1px 1px 0 #3F2A00; }
.r-mvp { color: #55FFFF; text-shadow: 1px 1px 0 #153F3F; } .r-mvp i, .r-mvpp i { color: #FF5555; text-shadow: 1px 1px 0 #3F1515; }
.r-mvpp { color: #FFAA00; text-shadow: 1px 1px 0 #3F2A00; }
.d-rank { font: 700 12px var(--pixel); padding: 3px 9px; border-radius: 4px; white-space: nowrap; }
.d-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.d-media { aspect-ratio: 2 / 1; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 6px 0 var(--ink); }
.d-media .skin { width: 26%; top: 8%; }
.d-media .skin.none { width: 80px; top: 50%; }
.d-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }   /* 휴대폰 한 줄, 넓으면 두 장씩 */
.d-photos a { display: block; background: #2B2B2B; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; }
.d-photos a { aspect-ratio: 4 / 3; }
.d-photos img { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail.sold .d-photos img { filter: grayscale(1); }
.d-media .when { position: absolute; right: 12px; top: 10px; font: 700 12px var(--pixel); color: var(--ink-2); background: rgba(250, 249, 246, 0.85); border-radius: 4px; padding: 2px 8px; }
.detail.sold .d-media { filter: grayscale(1); opacity: 0.85; }
.d-side { display: flex; flex-direction: column; gap: 14px; }
.d-box { background: var(--card); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 4px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.d-label { margin: 0; font: 700 12px var(--pixel); color: var(--muted); letter-spacing: 0.06em; }
.d-price > b { display: block; font: 800 30px var(--pixel); line-height: 1.1; }
.detail.sold .d-price > b { text-decoration: line-through; color: var(--muted); }
.detail a.brand-row { text-decoration: none; color: inherit; }
.d-dot { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--pixel); color: var(--ok); }
.d-dot::before { content: ''; width: 8px; height: 8px; background: currentColor; }
.d-dot.off { color: var(--muted); }
.d-rows { margin: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 2px dashed var(--line); font-size: 14px; }
.d-rows div { display: flex; justify-content: space-between; gap: 12px; }
.d-rows dt { color: var(--ink-2); }
.d-rows dd { margin: 0; font-weight: 700; text-align: right; }
.d-box .btn.big { width: 100%; }
.d-how { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.d-how b { color: var(--ink); }
.d-how a { display: block; margin-top: 6px; color: var(--ink); font-weight: 700; }
.d-store { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.d-store div { flex: 1; min-width: 80px; text-align: center; }
.d-store b { display: block; font: 800 20px var(--pixel); }
.d-store span { font-size: 12px; color: var(--muted); }
.d-sec { display: flex; flex-direction: column; gap: 10px; }
.d-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 13px var(--pixel); color: var(--muted); letter-spacing: 0.06em; }
.d-sec h2::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.d-list { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.d-list li::marker { color: #2E9E5B; }
.d-facts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.d-facts div { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--line-2); border-radius: 6px; padding: 10px 14px; font-size: 14px; }
.d-facts b { font: 700 12px var(--pixel); padding: 2px 9px; border-radius: 4px; background: #EFEDE7; color: var(--ink-2); white-space: nowrap; }
.d-facts b.ok { background: var(--ok-bg); color: var(--ok); }
.d-facts b.no { background: var(--err-bg); color: var(--err); }
@media (max-width: 559px) {   /* 휴대폰 두 줄 카드 — 글·버튼을 줄인다 */
  .ncard-body { padding: 10px 10px 12px; gap: 4px; }
  .ncard-name { font-size: 15px; }
  .ncard-price { font-size: 13px; bottom: 14px; padding: 1px 7px; }
  .ncard-badge, .ncard-rank { font-size: 10px; }
  .chips li { font-size: 11px; padding: 1px 6px; }
  .ncard-btns { gap: 6px; }
  .ncard-btns .btn, .home .ncard-btns .btn.primary { height: 32px; font-size: 12px; }
}
@media (min-width: 560px) {
  .accts { gap: 16px; }
}
@media (min-width: 720px) {
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .how { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .d-facts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .accts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .ncard-name { font-size: 19px; }
  .ncard-price { font-size: 17px; }
  .d-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  .d-main { grid-column: 1; }
  .d-side { grid-column: 2; grid-row: 1 / span 9; position: sticky; top: 16px; }   /* 오른쪽 가격 칸이 왼쪽 그림·설명 옆에 붙어 내려온다 */
}
@media (min-width: 1200px) {
  .accts { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* PC 한 줄 4개 — 본문 폭·간격은 그대로(10-29 오너) */
}

/* ── 할로윈(10-31 한국 시간 하루만) — api/home.js 가 그날만 <html class="halloween"> 를 붙인다(자정이 지나면 몇 분 안에 원래대로).
   바탕은 밤 색 변수, 카드·버튼처럼 밝은 면 안에서는 원래 변수로 되돌려 글자 대비를 지킨다. 그림은 픽셀 box-shadow(이미지 파일 없음) ── */
html.halloween body { --bg: #17111F; --ink: #F3E9DA; --ink-2: #E0D3C2; --muted: #B4A5C2; --line: #3B2E4A; --line-2: #4B3B5C;
  background-image: radial-gradient(rgba(255, 140, 50, 0.2) 1.4px, transparent 1.5px); }
html.halloween :where(.card, .ncard, .d-box, .d-facts div, .d-media .when, .stats li, .online, .sortbar button, .more, .count, .btn, .note, .chip, .chips li, .intro-card, .intro, .hotbar) {
  --bg: #F0EEE9; --ink: #111111; --ink-2: #3A3833; --muted: #6E6A62; --line: #DEDAD2; --line-2: #CFCAC0; }
html.halloween :where(.card, .ncard, .d-box, .d-facts div, .intro) { color: var(--ink); }
html.halloween .logo { filter: invert(1); }   /* 검은 도트 로고 → 흰색 */
html.halloween .home .btn.primary, html.halloween .sortbar button[aria-pressed="true"] { background: #E8731C; }
html.halloween .home .btn.primary:hover { background: #F2862F; }
/* 첫 카드 — 밤하늘·달·별, 잔디는 어둡게 */
html.halloween .intro-card { background:
    radial-gradient(circle at var(--moon, 90% 17%), #FFF1C2 0 26px, rgba(255, 214, 120, 0.25) 27px 36px, transparent 37px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14) 50%, transparent 0) left bottom 8px / 16px 8px repeat-x,
    linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.05) 0) left bottom / 24px 8px repeat-x,
    linear-gradient(#4A7239 0 10px, #36562B 10px 14px, #4A3426 14px 26px, #3B291E 26px) left bottom / 100% 34px no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 1px, transparent 1.6px) 0 0 / 113px 67px,
    radial-gradient(circle, rgba(255, 236, 190, 0.55) 1px, transparent 1.6px) 41px 23px / 157px 91px,
    linear-gradient(180deg, #120B22 0%, #26143A 50%, #4E2338 82%, #7A3826 100%); }
html.halloween .intro-card h1 { color: #FFF3E3; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
html.halloween .since { color: #FF9A3C; }
/* 구름 → 날갯짓하는 박쥐 두 마리 */
html.halloween .intro-card::before, html.halloween .intro-card::after { width: 5px; height: 5px; background: none; opacity: 1;
  box-shadow: 0px 0px #0B0712, 50px 0px #0B0712, 0px 5px #0B0712, 5px 5px #0B0712, 20px 5px #0B0712, 30px 5px #0B0712, 45px 5px #0B0712, 50px 5px #0B0712, 0px 10px #0B0712, 5px 10px #0B0712, 10px 10px #0B0712, 20px 10px #0B0712, 25px 10px #0B0712, 30px 10px #0B0712, 40px 10px #0B0712, 45px 10px #0B0712, 50px 10px #0B0712, 0px 15px #0B0712, 5px 15px #0B0712, 10px 15px #0B0712, 15px 15px #0B0712, 20px 15px #FF8A1F, 25px 15px #0B0712, 30px 15px #FF8A1F, 35px 15px #0B0712, 40px 15px #0B0712, 45px 15px #0B0712, 50px 15px #0B0712, 5px 20px #0B0712, 10px 20px #0B0712, 15px 20px #0B0712, 20px 20px #0B0712, 25px 20px #0B0712, 30px 20px #0B0712, 35px 20px #0B0712, 40px 20px #0B0712, 45px 20px #0B0712, 10px 25px #0B0712, 25px 25px #0B0712, 40px 25px #0B0712;
  animation: hw-fly 24s ease-in-out infinite alternate, hw-flap 0.4s steps(1) infinite; }
html.halloween .intro-card::before { left: 56%; top: 30px; }
html.halloween .intro-card::after { left: 36%; top: 14px; animation-duration: 31s, 0.46s; animation-direction: alternate-reverse, normal; }
@media (max-width: 899px) {   /* 위아래로 쌓인 휴대폰 화면 — 글자와 겹치지 않게 캐릭터 옆 하늘로 */
  html.halloween .intro-card::before { left: 6%; top: auto; bottom: 150px; }
  html.halloween .intro-card::after { left: 34%; top: auto; bottom: 200px; }
  html.halloween .intro-card { --moon: 88% 27%; } }   /* 할인 배너에 가리지 않게 제목 오른쪽 하늘로 */
@keyframes hw-fly { 0% { translate: 0 0; } 25% { translate: 40px -12px; } 50% { translate: 80px 6px; } 75% { translate: 120px -8px; } 100% { translate: 160px 0; } }
@keyframes hw-flap { 50% { box-shadow: 20px 5px #0B0712, 30px 5px #0B0712, 0px 10px #0B0712, 5px 10px #0B0712, 10px 10px #0B0712, 20px 10px #0B0712, 25px 10px #0B0712, 30px 10px #0B0712, 40px 10px #0B0712, 45px 10px #0B0712, 50px 10px #0B0712, 0px 15px #0B0712, 5px 15px #0B0712, 10px 15px #0B0712, 15px 15px #0B0712, 20px 15px #FF8A1F, 25px 15px #0B0712, 30px 15px #FF8A1F, 35px 15px #0B0712, 40px 15px #0B0712, 45px 15px #0B0712, 50px 15px #0B0712, 0px 20px #0B0712, 5px 20px #0B0712, 10px 20px #0B0712, 15px 20px #0B0712, 20px 20px #0B0712, 25px 20px #0B0712, 30px 20px #0B0712, 35px 20px #0B0712, 40px 20px #0B0712, 45px 20px #0B0712, 50px 20px #0B0712, 0px 25px #0B0712, 10px 25px #0B0712, 25px 25px #0B0712, 40px 25px #0B0712, 50px 25px #0B0712; } }
/* 잔디 위 호박 두 개 — 캐릭터 양옆 */
html.halloween .intro-art .sill::before, html.halloween .intro-art .sill::after { content: ''; position: absolute; top: -37px; width: 4px; height: 4px;
  box-shadow: 16px 0px #4E7A2C, 20px 0px #4E7A2C, 12px 4px #4E7A2C, 16px 4px #4E7A2C, 4px 8px #E8731C, 8px 8px #E8731C, 12px 8px #B9520E, 16px 8px #E8731C, 20px 8px #E8731C, 24px 8px #B9520E, 28px 8px #E8731C, 32px 8px #E8731C, 0px 12px #E8731C, 4px 12px #E8731C, 8px 12px #B9520E, 12px 12px #E8731C, 16px 12px #E8731C, 20px 12px #B9520E, 24px 12px #E8731C, 28px 12px #E8731C, 32px 12px #B9520E, 36px 12px #E8731C, 0px 16px #E8731C, 4px 16px #B9520E, 8px 16px #FFD84A, 12px 16px #FFD84A, 16px 16px #B9520E, 20px 16px #E8731C, 24px 16px #FFD84A, 28px 16px #FFD84A, 32px 16px #B9520E, 36px 16px #E8731C, 0px 20px #E8731C, 4px 20px #E8731C, 8px 20px #B9520E, 12px 20px #FFD84A, 16px 20px #E8731C, 20px 20px #B9520E, 24px 20px #FFD84A, 28px 20px #E8731C, 32px 20px #E8731C, 36px 20px #E8731C, 0px 24px #E8731C, 4px 24px #E8731C, 8px 24px #E8731C, 12px 24px #E8731C, 16px 24px #B9520E, 20px 24px #E8731C, 24px 24px #E8731C, 28px 24px #E8731C, 32px 24px #E8731C, 36px 24px #E8731C, 0px 28px #E8731C, 4px 28px #FFD84A, 8px 28px #E8731C, 12px 28px #B9520E, 16px 28px #FFD84A, 20px 28px #FFD84A, 24px 28px #B9520E, 28px 28px #E8731C, 32px 28px #FFD84A, 36px 28px #E8731C, 0px 32px #E8731C, 4px 32px #B9520E, 8px 32px #FFD84A, 12px 32px #FFD84A, 16px 32px #FFD84A, 20px 32px #FFD84A, 24px 32px #FFD84A, 28px 32px #FFD84A, 32px 32px #B9520E, 36px 32px #E8731C, 4px 36px #E8731C, 8px 36px #E8731C, 12px 36px #B9520E, 16px 36px #E8731C, 20px 36px #E8731C, 24px 36px #B9520E, 28px 36px #E8731C, 32px 36px #E8731C;
  filter: drop-shadow(0 0 7px rgba(255, 160, 40, 0.55)); }
html.halloween .intro-art .sill::before { left: 12%; }
html.halloween .intro-art .sill::after { right: calc(12% + 36px); }
@media (prefers-reduced-motion: reduce) { html.halloween .intro-card::before, html.halloween .intro-card::after { animation: none; } }

/* 기간 한정 할인(할로윈 등) — 첫 카드 배너·카드 할인가. api/home.js 가 기간에만 HTML 에 넣는다 */
.ev-banner { align-self: flex-start; margin: 0 0 -6px; display: flex; flex-direction: column; gap: 3px; padding: 8px 14px 9px; background: #E8731C; color: #fff;
  border: 2px solid #111; border-radius: 6px; box-shadow: 0 4px 0 #111; animation: ev-bob 2.4s ease-in-out infinite; }
.ev-banner b { display: flex; align-items: center; gap: 8px; font: 800 18px var(--pixel); letter-spacing: -0.01em; }
html.halloween .ev-banner b::before { content: ''; flex: none; width: 26px; height: 26px; background: url(/px/hw/gift.webp) center / contain no-repeat; image-rendering: pixelated; }
.ev-banner > span { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.ev-left { font-variant-numeric: tabular-nums; font-weight: 800; }
@keyframes ev-bob { 50% { transform: translateY(-2px); box-shadow: 0 6px 0 #111; } }
/* 할인 가격 — 지금 가격 · 빨간 줄 그은 원래 가격 · 초록 테두리 -N% (상품 카드·상세는 이 순서, 닉네임 카드 그림 위는 -N% · 원래 · 지금) */
.price s, .ncard-price s, .d-price s { margin-left: 8px; font-size: 0.68em; font-weight: 700; color: #D93B3B; text-decoration-thickness: 2px; }
.price .off, .ncard-price .off, .d-price .off { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1.5px solid #2E9E5B; border-radius: 4px; background: #E3F5E9;
  color: #1E7A43; font: 800 12px var(--pixel); font-style: normal; vertical-align: 0.25em; }
.d-price > b:has(.off) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.d-price .off, .d-price s { margin: 0; vertical-align: 0; } .d-price .off { font-size: 14px; }
.ncard-price.sale { display: inline-flex; align-items: center; gap: 5px; }
.ncard-price.sale .off { order: -2; margin: 0; padding: 0 4px; font-size: 11px; }
.ncard-price.sale s { order: -1; margin: 0; }
.d-sale { margin: 0; font: 700 13px var(--pixel); color: #B33A0B; }
@media (prefers-reduced-motion: reduce) { .ev-banner { animation: none; } }
/* 상시 혜택 배너(첫 구매 할인·추천 보상) — 헤더 바로 아래, 첫 화면에서 바로 보이게 */
.deals { margin: -14px 0 -8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.deal { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 13px; color: #111; text-decoration: none; border: 2px solid #111; border-radius: 6px;
  box-shadow: 0 4px 0 #111; transition: transform 0.12s, box-shadow 0.12s; }
.deal.first { background: #FFD23F; }
.deal.refer { background: #7FE0A0; }
.deal b { font: 800 18px var(--pixel); letter-spacing: -0.01em; line-height: 1.3; }
.deal span { font-size: 13px; font-weight: 700; color: rgba(17, 17, 17, 0.72); }
.deal span::after { content: ' →'; }
.deal:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #111; }
@media (max-width: 480px) { .deal b { font-size: 16px; } }
.product .row { flex-wrap: wrap; gap: 6px 8px; }   /* 할인가(취소선·-20%)가 붙으면 상태 칩이 아래 줄로 — 카드 폭을 밀지 않게 */
