/* YUMMY TASTE TEST — Figma '새로운 UI' 한국어 시안 기준
   모든 좌표는 1920×1080 기준(px). #stage를 창 크기에 맞춰 통째로 확대·축소한다(js/app.js fit). */

/* ── 폰트: assets/fonts에 파일을 두면 그걸 쓰고, 없으면 기기에 설치된 폰트 → G마켓 산스 순 */
@font-face { font-family: "TT Display"; font-weight: 500; font-display: block; src: local("Chai Hwaljjak Medium"), local("ChaiHwaljjak-Medium"), url("../assets/fonts/ChaiHwaljjak-Medium.woff") format("woff"); }
@font-face { font-family: "TT Display"; font-weight: 700; src: local("Chai Hwaljjak Bold"), local("ChaiHwaljjak-Bold"), url("../assets/fonts/ChaiHwaljjak-Bold.woff") format("woff"); }
@font-face { font-family: "TT Display"; font-weight: 900; src: local("Chai Hwaljjak Heavy"), local("ChaiHwaljjak-Heavy"), url("../assets/fonts/ChaiHwaljjak-Heavy.woff") format("woff"); }
@font-face { font-family: "TT Script"; src: local("770Balsa"), local("770Balsa-Regular"), url("../assets/fonts/770Balsa.woff") format("woff"); }
@font-face { font-family: "TT Sans"; font-weight: 700; src: local("Pretendard Bold"), local("Pretendard-Bold"), url("../assets/fonts/Pretendard-Bold.woff") format("woff"); }
/* 팜플렛 영문 서체 대체(무료): 둥근 굵은 제목 = Cherry Bomb One(OFL), 필기체 = Yellowtail(Apache). 영문만 담아서 한글은 다음 글꼴(채이 활짝·770 Balsa)로 넘어간다 */
@font-face { font-family: "TT Round"; src: url("../assets/fonts/CherryBombOne.woff") format("woff"); unicode-range: U+0020-007E, U+00A0-00FF, U+2013-201D, U+2022, U+2026; }
@font-face { font-family: "TT Hand"; src: url("../assets/fonts/Yellowtail.woff") format("woff"); unicode-range: U+0041-005A, U+0061-007A, U+0020-0040, U+005B-0060, U+007B-007E, U+2013-201D; }
@font-face { font-family: "TT Barcode"; src: local("Libre Barcode 39 Extended Text"), url("../assets/fonts/LibreBarcode39ExtendedText.woff") format("woff"); }
@font-face { font-family: "GmarketSans"; font-weight: 500; src: local("GmarketSansMedium"), url("../assets/fonts/GmarketSansMedium.woff") format("woff"); }
@font-face { font-family: "GmarketSans"; font-weight: 700; src: local("GmarketSansBold"), url("../assets/fonts/GmarketSansBold.woff") format("woff"); }

:root {
  --ketchup: #C3302A;
  --red: #C23228;
  --gingham: #E5262C;
  --cream: #FFF8EC;
  --plate: #FFFDF8;
  --tile: #5499D3;
  --yolk: #FFCC4D;
  --yolk2: #FFCB51;
  --parsley: #3E7B3A;
  --fresh: #009245;
  --card-green: #019143;
  --demi: #5A1A14;
  --ink: #2B140F;
  --pink: #FFD3D0;
  --cat: #C23228;                 /* 결과 화면 카테고리 색 (JS가 바꿈) */
  --f-display: "TT Display", "GmarketSans", "Apple SD Gothic Neo", "Noto Sans CJK KR", sans-serif;
  --f-script: "TT Script", "TT Display", "GmarketSans", "Apple SD Gothic Neo", sans-serif;
  --f-round: "TT Display", "GmarketSans", "Apple SD Gothic Neo", sans-serif;
  --f-sans: "TT Sans", "Pretendard", "Apple SD Gothic Neo", "Noto Sans CJK KR", sans-serif;
  --f-barcode: "TT Barcode", "Libre Barcode 39 Extended Text", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--f-display); font-weight: 500; color: var(--demi); background: #fff;
  overflow: hidden; word-break: keep-all; -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; }
.hidden { display: none !important; }

/* ── 무대: 1920×1080을 기준으로 확대·축소 */
#stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; overflow: hidden; }
.screen { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; overflow: hidden; }
.screen.active { display: block; animation: enter .45s ease both; }
@keyframes enter { from { opacity: 0; } to { opacity: 1; } }
.frame { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; margin: -540px 0 0 -960px; }
.frame > *, .frame .abs { position: absolute; }

/* 배경 */
.bg-red   { background: #fff url("../assets/ui/bg-gingham-red.jpg") center / cover; }
.bg-green { background: #fff url("../assets/ui/bg-gingham-green.jpg") center / cover; }
.bg-blue  { background: #fff url("../assets/ui/bg-gingham-blue.jpg") center / cover; }
.bg-mart  { background: var(--cream); }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 247px; background: url("../assets/ui/floor-check.jpg") 0 0 / 329px 247px repeat-x; }
.floor-deco { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
.plate-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; -webkit-filter: drop-shadow(9px 15px 16px rgba(0, 0, 0, .3)); filter: drop-shadow(9px 15px 16px rgba(0, 0, 0, .3)); }
.deco { pointer-events: none; }

/* 버튼 (알약) */
.pill {
  height: 84px; min-width: 213px; padding: 0 28px; border-radius: 74px; border: 4px solid #fff;
  box-shadow: 6px 8px 4px rgba(0, 0, 0, .25); font-weight: 700; font-size: 26px; line-height: 1; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pill:hover { transform: translateY(-3px); }
.pill:active { transform: translateY(3px); box-shadow: 2px 3px 2px rgba(0, 0, 0, .25); }
.pill-red { background: var(--red); color: var(--plate); }
.pill-pink { background: var(--pink); color: var(--ink); }
.pill-red2, .pill-pink2, .pill-white { height: 69px; border: 4px solid var(--demi); border-radius: 133px; box-shadow: 4px 4px 4px rgba(0, 0, 0, .25); }
.pill-red2 { background: var(--ketchup); color: var(--plate); }
.pill-pink2 { background: #FFD9D8; color: var(--demi); }
.pill-white { background: #fff; color: var(--demi); }
.link-btn { font-weight: 700; color: var(--demi); text-decoration: underline; text-underline-offset: 4px; }
.glass { background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); pointer-events: none; }
.toast {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); background: var(--cream); color: var(--ketchup);
  padding: 16px 34px; border-radius: 999px; font-weight: 700; font-size: 24px; box-shadow: 0 6px 0 rgba(0, 0, 0, .15); white-space: nowrap; z-index: 5;
}

/* 공통 로고 */
.logo-plate {
  position: absolute; left: 51px; bottom: 48px; width: 301px; height: 146px; border-radius: 50%;
  background: #FFFCF5; border: 4px solid var(--ketchup); box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
}
.logo-plate::before { content: ""; position: absolute; left: 4px; top: 3px; right: 4px; bottom: 3px; border-radius: 50%; border: 1.5px solid var(--ketchup); }
.logo-plate img { position: absolute; left: 44px; top: 28px; width: 208px; height: 57px; }
.logo-plate span { position: absolute; left: 0; right: 0; top: 94px; text-align: center; font: 700 9.8px/12px var(--f-sans); color: var(--ketchup); letter-spacing: .02em; white-space: nowrap; }
.cutlery-sm { position: absolute; right: 14px; bottom: 25px; width: 159px; height: 189px; pointer-events: none; }

/* ═════════ 01 시작 */
.lang { left: 69px; top: 46px; width: 197px; height: 67px; border-radius: 71px; background: #fff; box-shadow: inset 0 7px 4px rgba(0, 0, 0, .38); }
.lang-knob {
  position: absolute; left: 0; top: 0; width: 135px; height: 67px; border-radius: 71px; background: var(--yolk);   /* Eng 알약: 오믈렛 옐로 (진서 11/25) */
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25); color: var(--demi); font-size: 21px; line-height: 67px; text-align: center; font-weight: 700;
}
.st-basket { left: 260px; top: 644px; width: 334px; height: 334px; transform: rotate(-19deg); z-index: 2; }
.st-plate { left: 339px; top: 65px; width: 1203px; height: 866px; }
.st-plate-in { position: absolute; left: 0; top: 0; width: 100%; height: 100%; text-align: center; }
.st-plate-in > * { position: absolute; left: 0; right: 0; }
.st-plate .logo { left: 487px; right: auto; top: 199px; width: 228px; height: 62px; }
.tagline { font: 700 15px/18px var(--f-sans); color: var(--ketchup); letter-spacing: .02em; }
.st-plate .tagline { top: 281px; }
.st-title { top: 340px; font-weight: 900; font-size: 109px; line-height: 142px; color: var(--red); letter-spacing: -.01em; }
.st-sub { top: 458px; font-family: var(--f-script); font-weight: 400; font-size: 37.6px; line-height: 49px; color: var(--red); }
.st-body { top: 548px; font-size: 21px; line-height: 26px; color: var(--demi); white-space: pre-line; }
.st-cutlery { left: 1311px; top: 444px; width: 491px; height: 585px; z-index: 2; }
.st-btns { left: 611px; top: 874px; width: 636px; display: flex; justify-content: space-between; z-index: 3; }

/* ═════════ 메뉴판: 카테고리별 패키지 */
.menu-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 20; display: flex; flex-direction: column; align-items: center; animation: enter .35s ease both;
  background: #BFE0EE url("../assets/ui/deli-counter.jpg") center bottom / cover no-repeat; } /* 진서 '상품 스티커' 배경: 하늘색 체크 벽 + 빨간 매대 */
/* 간판 + 차양 (사진 레퍼런스: 과일 가판대 + 줄무늬 차양) */
.mn-top { position: relative; flex: none; width: 1760px; max-width: 100%; height: 262px; }
.mn-sign { position: absolute; left: 50%; top: 4px; z-index: 3; transform: translateX(-50%); width: 300px; text-align: center; }
.mn-sign img { display: block; width: 300px; height: auto; -webkit-filter: drop-shadow(4px 8px 0 rgba(90,26,20,.22)); filter: drop-shadow(4px 8px 0 rgba(90,26,20,.22)); }
.mn-sign .mn-groc { position: absolute; left: 50%; bottom: -66px; width: 200px; -webkit-transform: translateX(-50%) rotate(-3deg); transform: translateX(-50%) rotate(-3deg); -webkit-filter: none; filter: none; }
.mn-sign small { display: none; position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%) rotate(-4deg); font-family: var(--f-script); font-size: 34px; line-height: 40px; color: #fff; white-space: nowrap;
  text-shadow: 0 0 0 var(--ketchup), 2px 2px 0 var(--ketchup), -2px 2px 0 var(--ketchup), 2px -2px 0 var(--ketchup), -2px -2px 0 var(--ketchup), 3px 5px 0 rgba(90,26,20,.35); }
.mn-close { position: absolute; right: 0; top: 22px; z-index: 3; height: 66px; min-width: 150px; font-size: 24px; }
.mn-awning { position: absolute; left: 0; right: 0; top: 108px; height: 154px; -webkit-filter: drop-shadow(0 10px 8px rgba(0,0,0,.18)); filter: drop-shadow(0 10px 8px rgba(0,0,0,.18)); }
.mn-awning i { position: absolute; display: block; }
.aw-cap { left: 7%; right: 7%; top: 0; height: 22px; border-radius: 12px 12px 4px 4px; background: #A9261F; }
.aw-stripes { left: 0; right: 0; top: 14px; height: 100px; background: repeating-linear-gradient(90deg, var(--ketchup) 0 80px, var(--cream) 80px 160px);
  -webkit-clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }
.aw-stripes::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(0,0,0,0) 40%, rgba(0,0,0,.08)); }
.aw-scallop { left: 0; right: 0; top: 112px; height: 40px;
  background: radial-gradient(circle at 40px 0, var(--ketchup) 39px, transparent 40px) 0 0 / 160px 40px repeat-x,
              radial-gradient(circle at 40px 0, var(--cream) 39px, transparent 40px) 80px 0 / 160px 40px repeat-x; }
/* 코너 안내판 탭 */
.mn-tabs { position: relative; z-index: 2; flex: none; display: flex; justify-content: center; gap: 40px; padding: 18px 40px 0; margin-top: -18px; }
.mn-tab { --c: #C23228; position: relative; min-width: 250px; padding: 10px 28px 8px; border-radius: 16px; background: #fff; border: 4px solid var(--c); color: var(--c); font-weight: 900; font-size: 32px; line-height: 36px; box-shadow: 4px 6px 0 rgba(0,0,0,.14); transition: transform .2s; }
.mn-tab::before, .mn-tab::after { content: ""; position: absolute; top: -22px; width: 3px; height: 20px; background: #3A3A3A; }
.mn-tab::before { left: 30px; } .mn-tab::after { right: 30px; }
.mn-tab small { display: block; font-weight: 700; font-size: 15px; line-height: 19px; opacity: .8; }
.mn-tab.on { background: var(--c); color: #fff; transform: rotate(-2deg); }
/* 가판대: 검은 기둥 + 나무 선반 + 위 조명 */
.mn-unit { position: relative; flex: 1; min-height: 0; width: 1760px; max-width: 100%; margin-top: 14px; display: flex; flex-direction: column;
  border: 16px solid #262626; border-bottom: 0; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(255,255,240,.95) 0, rgba(255,255,240,0) 70px), linear-gradient(90deg, #DCD3C3 0%, #EFE8DC 12%, #EFE8DC 88%, #DCD3C3 100%); }
.mn-sub { flex: none; text-align: center; font-size: 19px; padding: 12px 0 0; }
.mn-shelf { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 30px 40px; }
.mn-line { margin: 14px 0 6px; }
.mn-line h3 { --c: #C23228; display: inline-block; margin: 0 0 12px 6px; padding: 4px 18px 3px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 900; font-size: 26px; line-height: 34px; letter-spacing: .04em; box-shadow: 3px 4px 0 rgba(0,0,0,.15); }
.mn-line h3 span { font-weight: 500; font-size: 17px; margin-left: 8px; letter-spacing: 0; }
/* 한 줄 = 선반 한 칸. 줄이 넘쳐 접히면 칸마다 나무판이 다시 깔린다 (주기 = 상품 높이 300 + 줄 간격 34) */
.mn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 30px;
  background: repeating-linear-gradient(180deg, transparent 0 168px, #E2B67C 168px 176px, #B9834A 176px 198px, rgba(0,0,0,.14) 198px 206px, transparent 206px 334px); }
.mn-base { flex: none; width: 1760px; max-width: 100%; height: 96px; display: flex; gap: 16px; padding: 10px 16px 0; background: #262626; }
.mn-base i { flex: 1; display: block; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, rgba(0,0,0,0) 49.6%, rgba(90,50,20,.45) 49.6%, rgba(90,50,20,.45) 50.4%, rgba(0,0,0,0) 50.4%),
  repeating-linear-gradient(180deg, #D7A66B 0 9px, #CF9C5F 9px 15px); position: relative; }
.mn-base i::before, .mn-base i::after { content: ""; position: absolute; top: 26px; width: 6px; height: 36px; border-radius: 3px; background: #F4F1EA; box-shadow: 1px 1px 0 rgba(0,0,0,.25); }
.mn-base i::before { left: calc(50% - 22px); } .mn-base i::after { left: calc(50% + 16px); }

/* 패키지 공통 (메뉴 칸 · 상세 보기 같이 씀) */
.pkg { position: relative; width: 250px; text-align: center; animation: pop .45s ease both; animation-delay: var(--d, 0ms); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pkg-box, .pkg-lid { position: absolute; left: 0; top: 0; width: 250px; height: 170px; display: block; }
.pkg { height: 300px; }
.pkg-box { overflow: hidden; }
.pkg-photo { position: absolute; left: 6%; top: 8%; width: 88%; height: 84%; object-fit: contain; }
.pkg-lid { transition: transform .7s cubic-bezier(.3,1.3,.5,1), opacity .5s; }
.pkg:hover .pkg-lid { transform: translateY(-8px) rotate(-2deg); }
/* 선반 앞 가격표 */
.pkg-label { position: absolute; left: 22px; right: 22px; top: 188px; padding: 0 8px 6px; line-height: 1.2; color: var(--demi); background: #FFFDF6; border: 2px solid #5A1A14; border-radius: 4px 4px 10px 10px; box-shadow: 2px 4px 0 rgba(0,0,0,.12); }
.pkg-label small { display: block; margin: 0 -8px 4px; padding: 2px 0; background: #FFCC4D; border-bottom: 2px solid #5A1A14; font-weight: 700; font-size: 13px; }
.pkg-label b { display: block; font-weight: 900; font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkg-label em { display: block; margin-top: 2px; font-style: normal; font-size: 14px; line-height: 16px; }
.pkg-atc { position: absolute; right: 2px; top: -16px; z-index: 3; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; background: var(--ketchup); color: #fff; font-weight: 900; font-size: 17px; transform: rotate(-12deg); -webkit-clip-path: polygon(100.0% 50.0%, 90.2% 58.0%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58.0% 90.2%, 50.0% 100.0%, 42.0% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58.0%, 0.0% 50.0%, 9.8% 42.0%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42.0% 9.8%, 50.0% 0.0%, 58.0% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42.0%); clip-path: polygon(100.0% 50.0%, 90.2% 58.0%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58.0% 90.2%, 50.0% 100.0%, 42.0% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58.0%, 0.0% 50.0%, 9.8% 42.0%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42.0% 9.8%, 50.0% 0.0%, 58.0% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42.0%); }

/* Deli: 도시락 — 크림 내피 + 레드 뚜껑 + 도시락 띠 */
.pkg-deli .pkg-box { background: #F1E2C4; border-radius: 22px; border: 7px solid #5A1A14; box-shadow: inset 0 0 0 6px #E5D2AC, 6px 8px 0 rgba(0,0,0,.18); }
.pkg-deli .pkg-lid { background: linear-gradient(160deg, #E0453A 0%, #C23228 45%, #9E241D 100%); border-radius: 24px; border: 5px solid #5A1A14; transform-origin: 50% 0; box-shadow: inset 0 10px 0 rgba(255,255,255,.18), 6px 8px 0 rgba(0,0,0,.18); }
.pkg-deli .pkg-band { position: absolute; left: -5px; right: -5px; top: 58px; height: 44px; background: repeating-linear-gradient(90deg, #FFF4DE 0 18px, #F3E3C3 18px 22px); border-top: 4px solid #FFCC4D; border-bottom: 4px solid #FFCC4D; color: #5A1A14; font-weight: 900; font-size: 20px; line-height: 36px; letter-spacing: .12em; }
.pkd-pack.pkg-deli.open .pkg-lid, .pk-detail.open .pkg-deli .pkg-lid { transform: perspective(900px) rotateX(-112deg) translateY(-6px); opacity: .95; }

/* Fresh: 신선 트레이 — 흰 트레이 + 랩 + 초록 가격 스티커 */
.pkg-fresh .pkg-box { background: radial-gradient(ellipse at 50% 40%, #FFFFFF 0%, #F2F2EC 70%, #E2E2D8 100%); border-radius: 26px; box-shadow: inset 0 0 0 10px #ECECE4, inset 0 0 0 12px #D8D8CE, 6px 8px 0 rgba(0,0,0,.14); }
.pkg-fresh .pkg-box::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; bottom: 24px; border-radius: 14px; background: #DCEBD2; }
.pkg-fresh .pkg-photo { z-index: 1; }
.pkg-fresh .pkg-lid { border-radius: 26px; background: linear-gradient(115deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 30%, rgba(255,255,255,.5) 34%, rgba(255,255,255,.08) 60%, rgba(255,255,255,.4) 100%); border: 2px solid rgba(255,255,255,.9); transform-origin: 100% 0; }
.pkg-fresh .pkg-band { position: absolute; right: 12px; bottom: 10px; width: 92px; height: 92px; border-radius: 50%; background: #009245; color: #fff; font-weight: 900; font-size: 15px; line-height: 92px; box-shadow: 0 0 0 4px #fff, 3px 4px 0 4px rgba(0,0,0,.12); transform: rotate(-12deg); }
.pk-detail.open .pkg-fresh .pkg-lid { transform: translate(120px, -90px) rotate(18deg); opacity: 0; }

/* Beverage: 음료 팩 — 블루 종이팩 + 안이 보이는 창 */
.pkg-beverage .pkg-box { background: #EAF3FB; border-radius: 16px; box-shadow: 6px 8px 0 rgba(0,0,0,.14); }
.pkg-beverage .pkg-lid { border-radius: 16px; background: linear-gradient(180deg, #6FAEE0 0%, #5499D3 55%, #3F82BD 100%); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 40% 26% at 50% 50%, transparent 97%, #000 100%); mask-image: radial-gradient(ellipse 40% 26% at 50% 50%, transparent 97%, #000 100%); }
.pkg-beverage .pkg-lid::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: repeating-linear-gradient(90deg, #fff 0 14px, #CFE3F4 14px 28px); border-radius: 16px 16px 0 0; }
.pkg-beverage .pkg-band { position: absolute; left: 0; right: 0; bottom: 8px; color: #fff; font-weight: 900; font-size: 18px; letter-spacing: .14em; }
.pk-detail.open .pkg-beverage .pkg-lid { transform: perspective(900px) rotateX(105deg); opacity: .9; }

/* 상세 보기 */
.pk-detail { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 30; background: rgba(43,20,15,.55); display: flex; align-items: center; justify-content: center; }
.pkd-card { position: relative; width: 1240px; max-width: 94%; display: flex; gap: 60px; align-items: center; padding: 56px 64px; background: var(--plate); border-radius: 48px; border: 6px solid var(--ketchup); box-shadow: 0 0 0 10px #fff, 0 24px 50px rgba(0,0,0,.35); animation: enter .3s ease both; }
.pkd-pack { position: relative; flex: none; width: 250px; height: 170px; transform: scale(1.9); transform-origin: 0 50%; margin-right: 230px; }
.pk-detail .pkd-pack .pkg-photo { opacity: 0; transition: opacity .4s .35s; }
.pk-detail.open .pkd-pack .pkg-photo { opacity: 1; }
.pkd-info { flex: 1; min-width: 0; color: var(--demi); }
.pkd-cat { display: inline-block; color: #fff; font-weight: 900; font-size: 22px; padding: 4px 16px; border-radius: 10px; margin-right: 12px; }
.pkd-info small { font-weight: 700; font-size: 18px; opacity: .7; }
.pkd-info h3 { font-weight: 900; font-size: 54px; line-height: 64px; margin-top: 10px; }
.pkd-ko { font-size: 24px; margin-top: 2px; }
.pkd-line { font-weight: 700; font-size: 24px; margin-top: 16px; color: var(--ketchup); }
.pkd-tags { font-size: 20px; margin-top: 6px; }
.pkd-info dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin-top: 20px; font-size: 19px; border-top: 2px dashed rgba(90,26,20,.3); padding-top: 16px; }
.pkd-info dt { font-weight: 900; }
.pkd-atc { margin-top: 12px; font-weight: 700; font-size: 17px; }
.pkd-back { margin-top: 22px; height: 64px; min-width: 220px; font-size: 22px; }
.portrait .pkd-card { flex-direction: column; gap: 30px; padding: 40px 40px 50px; }
.portrait .pk-detail { align-items: flex-start; padding-top: 140px; }
.portrait .pkd-pack { transform: scale(2.1); transform-origin: 50% 0; margin: 130px 0 200px; }
.portrait .mn-top { height: 250px; }
.portrait .mn-sign { left: 30px; transform: none; width: 230px; }
.portrait .mn-sign img { width: 230px; }
.portrait .mn-close { right: 30px; }
.portrait .mn-tab { min-width: 0; flex: 1; font-size: 28px; padding: 10px 8px; }
.portrait .mn-tabs { width: 100%; gap: 16px; padding: 18px 30px 0; }
.portrait .mn-unit { width: 1040px; }
.portrait .mn-shelf { padding: 0 10px 40px; zoom: .8; }
.portrait .mn-row { gap: 34px 24px; }
.portrait .mn-base { width: 1040px; }

/* ═════════ 상단 띠 (마트) */
.topbar { position: absolute; left: 0; top: 0; width: 100%; height: 125px; background: #fff; border-top: 46px solid var(--tile); z-index: 4; }
.topbar-tall { height: 172px; }
.tb-brand { position: absolute; left: 47px; top: 2px; width: 278px; text-align: center; color: var(--red); }
.tb-brand b { display: block; font-weight: 900; font-size: 39.5px; line-height: 50px; }
.tb-brand span { display: block; margin-top: -8px; padding-left: 70px; text-align: left; font-family: var(--f-script); font-size: 19.5px; line-height: 25px; }
.tb-right { position: absolute; right: 40px; top: 4px; height: 59px; display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 21px; }
.tb-right img { width: 59px; height: 59px; }
.tb-right b { font-weight: 700; }
.tb-back { font-size: 20px; font-weight: 700; color: var(--demi); margin-right: 22px; padding: 6px 18px; border: 2px solid var(--demi); border-radius: 20px; background: #fff; }
.tb-back:hover { opacity: 1; }
.progress { position: absolute; left: 0; top: 73px; width: 100%; height: 6px; background: var(--tile); }
.progress i { display: block; height: 100%; width: 0; background: var(--yolk); transition: width .4s ease; }
.progress.full i { width: 100%; }
#s-scan .tb-right img, #s-confirm .tb-right img { width: 50px; height: 50px; }

/* ═════════ 02 질문 */
.q-plate { left: 561px; top: 155px; width: 752px; height: 399px; z-index: 5; }
.q-no {
  position: absolute; left: 279px; top: 106px; width: 190px; height: 49px; border-radius: 60px; background: var(--yolk2);
  font-weight: 900; font-size: 25px; line-height: 49px; text-align: center; color: var(--demi);
}
.q-text { position: absolute; left: 96px; top: 170px; width: 560px; text-align: center; font-weight: 700; font-size: 44px; line-height: 59px; white-space: pre; }
.q-cards { left: 482px; top: 595px; width: 930px; display: flex; flex-wrap: wrap; z-index: 5; }
.q-cards .card { margin: 0 31px 20px 0; }   /* flex gap은 구형 사파리(14.1 미만)에서 안 먹어서 여백으로 (폭 899+31) */
.card {
  position: relative; width: 279px; height: 190px; border-radius: 11px; background: #fff; text-align: center;
  box-shadow: 7px 7px 0 var(--parsley); transition: transform .15s ease, box-shadow .15s ease; overflow: hidden;
}
.card:hover { transform: translate(-2px, -3px); box-shadow: 9px 10px 0 var(--parsley); }
.card.picked { transform: translate(5px, 5px); box-shadow: 2px 2px 0 var(--parsley); }
.card.picked::after { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; border: 5px solid var(--yolk); border-radius: 11px; }
.card-tab, .card-cats { opacity: .5; }
.card-tab { position: absolute; left: 8px; top: 18px; width: 261px; height: 31px; background: url("../assets/ui/card-tab.svg") 0 0 / 100% 100% no-repeat; }
.card-cats { position: absolute; left: 0; top: 28px; width: 100%; height: 10px; font-size: 8px; line-height: 10px; font-weight: 700; color: var(--card-green); letter-spacing: .02em; }
.card-cats span { position: absolute; top: 0; text-align: center; white-space: nowrap; }
.card-cats span:nth-child(1) { left: 8px; width: 51px; }
.card-cats span:nth-child(2) { left: 59px; width: 56px; }
.card-cats span:nth-child(3) { left: 115px; width: 71px; }
.card-no { position: absolute; left: 194px; top: 13px; width: 72px; height: 27px; border-radius: 9px; background: var(--card-green); color: #fff; font-weight: 700; font-size: 11.2px; line-height: 27px; }
.card-ico { position: absolute; left: 108px; top: 50px; width: 64px; height: 64px; }
.card-ico svg { width: 64px; height: 64px; display: block; }
.card-sw { position: absolute; left: 112px; top: 56px; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--demi); overflow: hidden; }
.card-sw i { position: absolute; top: 0; bottom: 0; width: 50%; }
.card-sw i:first-child { left: 0; } .card-sw i:last-child { right: 0; }
.card-label { position: absolute; left: 10px; right: 10px; top: 112px; height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 25px; line-height: 28px; white-space: normal; word-break: keep-all; letter-spacing: -.02em; }
.card-label.long { font-size: 21px; }
.card-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: var(--card-green); text-align: left; }
.card-bar span { position: absolute; left: 5px; top: -4px; font-family: var(--f-barcode); font-size: 21.4px; line-height: 38px; color: #000; white-space: nowrap; }

/* ═════════ 03 얼굴 스캔 */
.sc-plate { left: 661px; top: 155px; width: 592px; height: 521px; }
.cam-hole { position: absolute; left: 79px; top: 81px; width: 437px; height: 350px; border-radius: 50%; overflow: hidden; background: #fff; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.cam-hole video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; transition: opacity .4s; }
.cam-hole video.on { opacity: 1; }
.face-guide { position: absolute; left: 209px; top: 116px; width: 171px; height: 239px; border-radius: 50%; border: 4px solid var(--parsley); transition: border-color .2s, box-shadow .2s; }
.guide-pill {
  position: absolute; left: 50%; top: 365px; transform: translateX(-50%); height: 32px; padding: 0 16px; border-radius: 60px;
  background: var(--parsley); color: var(--plate); font-size: 14px; line-height: 32px; white-space: nowrap; transition: background .2s;
}
.guide-pill:empty { display: none; }
.sc-plate.g-none .face-guide, .sc-plate.g-far .face-guide, .sc-plate.g-turned .face-guide, .sc-plate.g-tilted .face-guide { border-color: var(--yolk); border-style: dashed; }
.sc-plate.g-none .guide-pill, .sc-plate.g-far .guide-pill, .sc-plate.g-turned .guide-pill, .sc-plate.g-tilted .guide-pill, .sc-plate.g-loading .guide-pill { background: var(--demi); }
.sc-plate.g-ok .face-guide { box-shadow: 0 0 0 6px rgba(62, 123, 58, .25); }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ketchup); box-shadow: 0 0 18px var(--ketchup); opacity: 0; }
.scan-line.on { opacity: .85; -webkit-animation: sweep 1.2s ease-in-out infinite alternate; animation: sweep 1.2s ease-in-out infinite alternate; }
@-webkit-keyframes sweep { from { top: 8%; } to { top: 90%; } }
@keyframes sweep { from { top: 8%; } to { top: 90%; } }
.count { position: absolute; left: 0; right: 0; top: 130px; text-align: center; font-weight: 900; font-size: 150px; line-height: 180px; color: #fff; text-shadow: 0 4px 0 var(--ketchup), 0 0 24px rgba(0, 0, 0, .35); pointer-events: none; }
.sc-register { left: 569px; top: 494px; width: 243px; height: 243px; transform: rotate(-14deg); }
.sc-scanner { left: 1097px; top: 545px; width: 215px; height: 215px; transform: rotate(25deg); transition: transform .15s; }
.sc-scanner img { width: 100%; height: 100%; }
.sc-scanner:hover { transform: rotate(18deg) scale(1.04); }
.sc-manual { left: 1300px; top: 790px; width: 300px; height: 56px; font-size: 21px; line-height: 25px; text-align: center; z-index: 3; border-radius: 30px; background: #fff; border: 3px solid var(--demi); text-decoration: none; box-shadow: 3px 3px 3px rgba(0,0,0,.18); }
.sc-lead { left: 560px; width: 800px; top: 728px; text-align: center; font-weight: 700; font-size: 24px; color: var(--demi); z-index: 3; }
.sc-title {
  left: 638px; top: 774px; width: 636px; height: 90px; border-radius: 60px; background: var(--yolk2); box-shadow: 4px 4px 4px rgba(0, 0, 0, .25);
  font-weight: 700; font-size: 40px; color: var(--demi); z-index: 3; transition: transform .15s, box-shadow .15s;
}
.sc-title:hover { transform: translateY(-3px); }
.sc-title:active { transform: translateY(3px); box-shadow: 1px 1px 2px rgba(0, 0, 0, .25); }
.sc-title::after { content: " \25B6"; font-size: .7em; }
.sc-title:disabled::after { content: ""; }
.sc-title.ready { -webkit-animation: nudge 1.1s ease-in-out infinite; animation: nudge 1.1s ease-in-out infinite; }
.sc-title:disabled { cursor: default; }
@-webkit-keyframes nudge { 50% { transform: scale(1.04); } }
@keyframes nudge { 50% { transform: scale(1.04); } }
.sc-glass { left: 713px; top: 872px; width: 493px; height: 69px; }
.sc-sub { left: 609px; top: 874px; width: 702px; text-align: center; font-weight: 700; font-size: 24.7px; line-height: 29px; text-shadow: 0 0 6px #fff, 0 0 12px #fff; }
.sc-sub.warn { color: var(--ketchup); }
.sc-privacy { left: 554px; top: 911px; width: 811px; text-align: center; font-size: 16.5px; line-height: 21px; text-shadow: 0 0 6px #fff, 0 0 12px #fff; }

/* ═════════ 04 얼굴형 확인 */
.cf-title, .pk-title, .pk-note { left: 560px; width: 800px; text-align: center; }
.cf-title { top: 167px; font-weight: 700; font-size: 40px; line-height: 52px; }
.cf-dome { left: 633px; top: 258px; width: 654px; height: 349px; overflow: hidden; }
.cf-dome img, .cf-dish img { position: absolute; left: 0; width: 654px; height: 654px; }
.cf-dome img { top: -30px; }
.cf-dish { left: 633px; top: 584px; width: 654px; height: 250px; overflow: hidden; }
.cf-dish img { top: -405px; }
.cf-badge {
  left: 788px; top: 533px; width: 344px; height: 168px; border-radius: 133px; border: 4px solid var(--demi);
  background: linear-gradient(180deg, #E5262C 0%, #FFCB51 34%); box-shadow: 4px 4px 4px rgba(0, 0, 0, .25);
  display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 22px;
}
.cf-badge .face-ico { width: 78px; height: 100px; flex: none; }
.cf-badge b { font-weight: 900; font-size: 61.7px; line-height: 70px; white-space: nowrap; letter-spacing: -.02em; max-width: 210px; overflow: hidden; }
.cf-badge b.long { font-size: 44px; }
.cf-glass { left: 713px; top: 784px; width: 493px; height: 100px; }
.cf-tip { left: 560px; top: 795px; width: 800px; text-align: center; font-size: 23.5px; line-height: 30px; white-space: pre-line; text-shadow: 0 0 6px #fff, 0 0 12px #fff; }
.cf-ok { left: 633px; top: 893px; width: 309px; min-width: 0; }
.cf-change { left: 977px; top: 893px; width: 288px; min-width: 0; }

/* 직접 고르기 */
.pk-note { top: 167px; font-weight: 700; font-size: 23px; line-height: 30px; color: var(--ketchup); }
.pk-retry { left: 816px; top: 227px; width: 288px; min-width: 0; z-index: 2; }
.pk-title { top: 309px; font-weight: 900; font-size: 56px; line-height: 73px; }
.pk-sub { left: 560px; width: 800px; top: 382px; text-align: center; font-size: 24px; line-height: 30px; }
#picker.no-retry .pk-title { top: 190px; }
#picker.no-retry .pk-sub { top: 263px; }
#picker.no-retry .pk-preview, #picker.no-retry .pk-axes { top: 330px; }
.pk-preview { left: 380px; top: 440px; width: 400px; height: 440px; text-align: center; }
.pk-preview::before { content: ""; position: absolute; left: 50px; top: -10px; width: 300px; height: 300px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 10px double var(--ketchup); box-shadow: 0 8px 14px rgba(0,0,0,.15); }
.pk-preview > span { position: absolute; left: 110px; top: 30px; width: 180px; height: 220px; }
.pk-preview > span .face-ico { width: 180px; height: 220px; }
.pk-preview b { position: absolute; left: 0; right: 0; top: 312px; font-weight: 900; font-size: 46px; line-height: 54px; }
.pk-preview small { position: absolute; left: 0; right: 0; top: 368px; font-size: 22px; color: var(--ketchup); font-weight: 700; }
.pk-axes { left: 820px; top: 440px; width: 720px; }
.pk-ax { margin-bottom: 26px; }
.pk-ax h4 { font-weight: 900; font-size: 28px; line-height: 34px; margin: 0 0 10px 4px; }
.pk-ax-row { display: flex; gap: 12px; }
.pk-opt { flex: 1; display: flex; align-items: center; gap: 8px; height: 84px; padding: 0 14px; border-radius: 22px; background: #fff; border: 3px solid var(--tile); color: var(--demi);
  font-weight: 700; font-size: 22px; line-height: 26px; text-align: left; box-shadow: 2px 4px 4px rgba(0,0,0,.18); transition: transform .15s; }
.pk-opt .face-ico { flex: none; width: 46px; height: 56px; }
.pk-opt:hover { transform: translateY(-3px); }
.pk-opt.on { background: var(--yolk, #FFCC4D); border-color: var(--demi); }
.pk-ok { left: 760px; top: 930px; width: 400px; min-width: 0; }
/* 확인 화면: 섞인 얼굴형 + 특징 칩 */
.cf-mix { left: 560px; width: 800px; white-space: nowrap; overflow: hidden; top: 708px; text-align: center; font-weight: 700; font-size: 25px; color: var(--ketchup); text-shadow: 0 0 6px #fff, 0 0 12px #fff; }
.cf-chips { left: 460px; width: 1000px; top: 745px; display: flex; justify-content: center; gap: 10px; }
.cf-chips span { padding: 4px 16px; border-radius: 20px; background: #fff; border: 2px solid var(--demi); font-weight: 700; font-size: 19px; line-height: 26px; }
/* 시작 화면: 간편 식품 코스 */
.st-quick { left: 611px; top: 972px; width: 636px; height: 72px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 14px;
  border-radius: 36px; border: 4px dashed var(--demi); background: var(--plate); color: var(--demi); box-shadow: 4px 4px 4px rgba(0,0,0,.2); transition: transform .15s; }
.st-quick b { font-weight: 900; font-size: 26px; }
.st-quick span { font-size: 19px; padding: 3px 12px; border-radius: 14px; background: var(--ketchup); color: #fff; font-weight: 700; }
.st-quick:hover { transform: translateY(-3px); }
/* 결과: 함께 맛보기 + 보고서 */
.rs-more { left: 128px; top: 660px; width: 900px; z-index: 3; }
.rs-more h3 { display: inline-block; margin: 0 0 12px 6px; padding: 6px 26px 5px; border-radius: 99px; background: #FFE418; border: 3px solid #C33328; color: #C33328; font-weight: 900; font-size: 24px; line-height: 28px; -webkit-transform: rotate(-2deg); transform: rotate(-2deg); box-shadow: 3px 4px 0 rgba(0,0,0,.2); }
.rs-more-row { display: flex; gap: 22px; }
/* 가격표 스티커: 흰 카드 + 크림 칼선 + 아래 카테고리 색 띠 */
.rs-mini { position: relative; flex: 1; height: 204px; border-radius: 14px; background: #fff; border: 2px solid rgba(0,0,0,.12); box-shadow: 0 0 0 6px #FFFCF5, 0 0 0 8px rgba(90,26,20,.25), 5px 9px 12px rgba(0,0,0,.25); padding: 0; text-align: center; color: var(--demi); overflow: hidden; transition: transform .15s; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: flex-start; justify-content: flex-start; }
.rs-mini.tilt0 { -webkit-transform: rotate(-1.5deg); transform: rotate(-1.5deg); }
.rs-mini.tilt1 { -webkit-transform: rotate(1deg); transform: rotate(1deg); }
.rs-mini.tilt2 { -webkit-transform: rotate(-.5deg); transform: rotate(-.5deg); }
.rs-mini:hover { -webkit-transform: translateY(-5px) rotate(0); transform: translateY(-5px) rotate(0); }
.rs-mini > i { position: absolute; left: 10px; top: 28px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; white-space: pre-line; text-align: center;
  font-style: normal; font-weight: 900; font-size: 13px; line-height: 14px; background: var(--yolk, #FFCC4D); color: var(--ketchup); -webkit-transform: rotate(-14deg); transform: rotate(-14deg); box-shadow: 1px 2px 3px rgba(0,0,0,.2); }
.rs-mini .mn-cells { display: flex; border-bottom: 2px solid var(--c, #C23228); }
.rs-mini .mn-cells span { flex: 1; font-size: 11px; line-height: 20px; font-weight: 700; color: var(--c, #C23228); letter-spacing: .04em; border-right: 1px solid rgba(0,0,0,.12); }
.rs-mini .mn-cells span:last-child { border-right: 0; }
.rs-mini .mn-cells span.on { background: var(--c, #C23228); color: #fff; }
.rs-mini .mn-pic { position: relative; display: block; width: 86%; height: 76px; margin: 16px auto 2px; cursor: pointer; }
.rs-mini .mn-pic img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-animation: flipin .35s ease; animation: flipin .35s ease; }
.rs-mini .mn-pic.side img { -webkit-animation: flipin2 .35s ease; animation: flipin2 .35s ease; }
.rs-mini .mn-flip { position: absolute; right: -4px; top: -12px; font-style: normal; font-size: 12px; font-weight: 700; line-height: 18px; padding: 0 7px; border-radius: 9px; background: var(--c, #C23228); color: #fff; }
@-webkit-keyframes flipin { from { -webkit-transform: scaleX(.2); } to { -webkit-transform: scaleX(1); } }
@keyframes flipin { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
@-webkit-keyframes flipin2 { from { -webkit-transform: scaleX(.2); } to { -webkit-transform: scaleX(1); } }
@keyframes flipin2 { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
.rs-mini b { display: block; padding: 0 10px; font-weight: 900; font-size: 22px; line-height: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-mini .mn-ko { display: block; padding: 0 10px; font-weight: 700; font-size: 15px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.rs-mini .mn-band { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: var(--c, #C23228); color: #fff; }
.rs-mini .mn-band em { font-style: normal; font-weight: 900; font-size: 15px; }
.rs-mini .mn-band small { font-size: 11px; font-weight: 700; letter-spacing: .03em; opacity: .9; }
.rs-report { left: 548px; top: 973px; height: 72px; min-width: 0; padding: 0 30px; font-size: 22px; z-index: 3; }
/* 보고서 창 */
.report { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 31; background: rgba(43,20,15,.55); display: flex; align-items: center; justify-content: center; }
.rp-card { position: relative; width: 1320px; max-width: 94%; max-height: 92%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 44px 56px 40px; background: var(--plate); border-radius: 40px; border: 6px solid var(--ketchup); box-shadow: 0 0 0 10px #fff, 0 24px 50px rgba(0,0,0,.35); color: var(--demi); animation: enter .3s ease both; }
.rp-head { display: flex; align-items: center; gap: 26px; }
.rp-head .face-ico { flex: none; width: 110px; height: 132px; }
.rp-head h3 { font-weight: 900; font-size: 46px; line-height: 54px; }
.rp-head p { font-size: 20px; margin-top: 4px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rp-chips span { padding: 3px 14px; border-radius: 16px; background: #fff; border: 2px solid var(--demi); font-weight: 700; font-size: 17px; }
.rp-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px 40px; margin-top: 24px; border-top: 3px dashed rgba(90,26,20,.3); padding-top: 22px; }
.rp-grid h4 { font-weight: 900; font-size: 25px; margin-bottom: 10px; color: var(--ketchup); }
.rp-good li { display: flex; gap: 30px; align-items: baseline; margin-bottom: 10px; font-size: 19px; line-height: 25px; }
.rp-good li b { flex: none; min-width: 220px; font-weight: 900; font-size: 22px; }
.rp-good li .st-ico { flex: none; width: 72px; height: 30px; align-self: center; }
.rp-good li.has-pic { align-items: center; margin-bottom: 8px; }
.rp-good li.has-pic .st-ico { display: none; }
.rp-pic { flex: none; width: 132px; height: 72px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }
.rp-pic img { max-width: 100%; max-height: 100%; }
.rp-gloss { margin-top: 10px; font-size: 15px; line-height: 22px; opacity: .7; }
.rp-gloss:before { content: "· · ·  "; }
/* 용어 말풍선 */
.gl { position: relative; cursor: help; border-bottom: 2px dotted var(--ketchup); outline: none; }
.gl:after { content: attr(data-tip); position: absolute; left: 50%; bottom: 100%; z-index: 5; margin-bottom: 10px; width: max-content; max-width: 300px; padding: 8px 14px; border-radius: 12px;
  background: var(--demi); color: #fff; font-weight: 700; font-size: 16px; line-height: 22px; text-align: left; white-space: normal; -webkit-transform: translate(-50%, 6px); transform: translate(-50%, 6px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, transform .15s ease; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.gl:before { content: ""; position: absolute; left: 50%; bottom: 100%; z-index: 5; margin: 0 0 -2px -8px; border: 8px solid transparent; border-top-color: var(--demi); opacity: 0; visibility: hidden; transition: opacity .15s ease; }
.gl:hover:after, .gl:focus:after, .gl.on:after { opacity: 1; visibility: visible; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }
.gl:hover:before, .gl:focus:before, .gl.on:before { opacity: 1; visibility: visible; }
.rp-good, .rp-list { list-style: none; margin: 0; padding: 0; }
.rp-list li { font-size: 19px; line-height: 27px; margin-bottom: 4px; }
.rp-list li::before { content: "· "; font-weight: 900; }
.rp-avoid li::before { content: "× "; }
.rp-note { margin-top: 18px; padding: 12px 18px; border-radius: 16px; background: #fff; font-size: 18px; line-height: 26px; }
.rp-close { display: block; margin: 22px auto 0; }

/* ═════════ 06 결과 */
.rs-plate { left: 128px; top: 28px; width: 1069px; height: 769px; text-align: center; transform: scale(.8); transform-origin: 0 0; }
.rs-plate > * { position: absolute; left: 0; right: 0; }
.rs-logo { left: 419px; right: auto; top: 150px; width: 229px; }
.rs-logo img { width: 162px; height: 44px; margin: 0 auto; }
.rs-logo span { display: block; margin-top: 14px; font: 700 10.65px/13px var(--f-sans); color: var(--ketchup); white-space: nowrap; }
.rs-lead { top: 224px; font-family: var(--f-script); font-size: 37.6px; line-height: 49px; color: var(--cat); }
.rs-title { top: 266px; font-weight: 900; font-size: 101px; line-height: 128px; color: var(--cat); white-space: nowrap; }
.rs-title.long { font-size: 84px; }
.rs-line { top: 386px; font-size: 29px; line-height: 44px; }
.rs-why { position: absolute; left: 0; right: 0; top: 432px; font-weight: 700; font-size: 22px; line-height: 28px; color: var(--cat, #C23228); }
.rs-rule { left: 291px; right: auto; top: 476px; width: 484px; height: 2px; background: var(--demi); }
.rs-model { top: 478px; height: 150px; display: flex; justify-content: center; align-items: center; gap: 15px; }
.rs-cat-tag {
  flex: none; height: 54px; padding: 0 12px; border-radius: 9.9px; background: var(--cat);
  color: #fff; font-weight: 900; font-size: 26.5px; line-height: 54px; min-width: 121px; text-align: center;
}
.rs-model-txt { position: relative; max-width: 420px; text-align: left; }
.rs-model-txt small { display: block; font-weight: 700; font-size: 20px; line-height: 24px; }
.rs-model-txt b { display: block; font-weight: 900; font-size: 36px; line-height: 40px; margin-top: 0; }
.rs-model-txt b em, .sl-name em { display: block; font-style: normal; font-size: .72em; line-height: 1.15; }
/* 접시 테두리에 글씨가 닿아도 읽히게: 접시색 부드러운 번짐 */
.rs-model-txt { padding: 4px 10px; border-radius: 30px; background: rgba(255,255,255,.88); box-shadow: 0 0 18px 14px rgba(255,255,255,.88); }
.rs-model-txt span { display: block; font-weight: 700; font-size: 17px; line-height: 22px; margin-top: 4px; word-break: keep-all; }
.rs-slip {
  left: 1152px; top: 70px; width: 555px; height: 832px; transform: rotate(13deg);
  background: url("../assets/ui/order-slip.png") 0 0 / 100% 100% no-repeat;
  -webkit-filter: drop-shadow(6px 10px 10px rgba(0, 0, 0, .25)); filter: drop-shadow(6px 10px 10px rgba(0, 0, 0, .25));
  font-weight: 700; color: var(--demi);
}
.rs-slip > span { position: absolute; white-space: nowrap; }
.sl-no { left: 104px; top: 172px; font-size: 20px; }
.sl-date { left: 356px; top: 172px; font-size: 20px; }
.sl-cat { left: 60px; top: 271px; font-size: 20px; }
.sl-name { left: 60px; top: 300px; max-width: 400px; font-weight: 900; font-size: 32px; line-height: 36px; overflow: hidden; text-overflow: ellipsis; }
.sl-name em { font-size: 26px; line-height: 32px; }
.sl-name.long { font-size: 26px; }
.rs-slip > span.sl-tag { left: 60px; top: 376px; width: 330px; font-size: 17px; line-height: 22px; white-space: normal; word-break: keep-all; }   /* ITEM 칸 안에서 두 줄까지 줄바꿈 */
.sl-tag.long { font-size: 15px; line-height: 20px; }
.sl-code { left: 66px; right: 30px; top: 703px; white-space: pre-line !important; text-align: left; font-weight: 900; font-size: 30px; line-height: 33px; color: var(--ketchup); letter-spacing: .01em; }
.sl-code.long { font-size: 26px; }
.rs-glasses-btn { left: 1215px; top: 470px; width: 410px; height: 220px; z-index: 2; transform: rotate(13deg); cursor: zoom-in; }
.rs-glasses-btn span { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; padding: 4px 14px; border-radius: 14px; background: var(--demi); color: #fff; font-weight: 700; font-size: 17px; opacity: .9; }
.rs-glasses { position: static; display: block; width: 100%; height: 100%; object-fit: contain; -webkit-filter: drop-shadow(4px 8px 6px rgba(0, 0, 0, .25)); filter: drop-shadow(4px 8px 6px rgba(0, 0, 0, .25)); }
.rs-basket { left: 1497px; top: 650px; z-index: 2; width: 341px; height: 341px; transform: rotate(-19deg); }
.rs-cutlery { left: 1679px; top: 768px; width: 257px; height: 306px; }
.rs-print { left: 128px; top: 962px; height: 96px; min-width: 380px; font-size: 30px; }   /* 결과에서 꼭 할 일: 가장 크게 */
.rs-restart { left: 1340px; top: 973px; height: 72px; min-width: 0; padding: 0 30px; font-size: 22px; }   /* 계산하기 옆에서 잘못 누르지 않게 맨 끝으로 */
#s-result .toast { bottom: 140px; }
/* 아이패드 계산대 안내 (server.py 로 켰을 때만 보임) */
.rs-pay { position: absolute; right: 70px; top: 14px; z-index: 4; display: flex; align-items: baseline; padding: 10px 26px 10px 82px; border-radius: 99px; background: var(--yolk2); color: var(--demi); box-shadow: 0 5px 0 rgba(0,0,0,.14); white-space: nowrap; }
.rs-pay::before { content: ""; position: absolute; left: 24px; top: 50%; width: 42px; height: 28px; margin-top: -14px; border-radius: 6px; background: #fff; border: 3px solid var(--demi); -webkit-animation: rsTap 1.6s ease-in-out infinite; animation: rsTap 1.6s ease-in-out infinite; }
.rs-pay b { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.2; margin-right: 12px; }
.rs-pay small { font-size: 18px; font-weight: 700; opacity: .8; }
@-webkit-keyframes rsTap { 0%, 100% { -webkit-transform: translateY(0) rotate(-8deg); } 50% { -webkit-transform: translateY(-6px) rotate(4deg); } }
@keyframes rsTap { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
.portrait .rs-pay { right: auto; left: 50%; top: 8px; transform: translateX(-50%); padding: 14px 32px 14px 100px; }
.portrait .rs-pay b { font-size: 34px; }
.portrait .rs-pay small { font-size: 22px; }
.viewing { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); background: var(--yolk2); color: var(--demi); font-weight: 700; font-size: 24px; padding: 12px 30px; border-radius: 99px; z-index: 5; white-space: nowrap; box-shadow: 0 5px 0 rgba(0,0,0,.12); }
.portrait .viewing { font-size: 30px; top: 16px; }
.portrait #s-result .toast { bottom: auto; top: 1800px; font-size: 30px; }
/* 세로 화면은 아래로 스크롤 (js fit에서 zoom 사용) */
body.portrait { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.portrait #stage { overflow: visible; }

/* ═════════ 세로 화면(폰): 1080 폭 기준으로 위에서 아래로 쌓기 */
.portrait .frame { left: 0; top: 0; margin: 0; width: 1080px; height: 100%; }
.portrait .deco, .portrait .floor-deco .cutlery-sm { display: none; }
.portrait .lang { left: 40px; top: 40px; }
.portrait .st-plate { left: -60px; top: 420px; width: 1200px; height: 864px; }
.portrait .st-btns { left: 120px; top: 1360px; width: 840px; }
.portrait .st-btns .pill { height: 110px; min-width: 380px; font-size: 36px; }
.portrait #s-start .frame::after { content: ""; }

.portrait .topbar { height: 125px; }
.portrait .q-plate { left: 64px; top: 190px; width: 952px; height: 505px; }
.portrait .q-no { left: 381px; top: 140px; }
.portrait .q-text { left: 60px; width: 832px; top: 210px; font-size: 52px; line-height: 66px; }
.portrait .q-cards { left: 70px; top: 740px; width: 980px; }
.portrait .q-cards .card { margin: 0 26px 26px 0; }
/* 카드는 데스크톱 디자인 그대로 확대 (탭·라벨 위치가 어긋나지 않게) */
.portrait .card { zoom: 1.53; }
.portrait .logo-plate { left: 50%; margin-left: -150px; bottom: 40px; }

.portrait .sc-plate { left: 40px; top: 170px; width: 1000px; height: 880px; }
.portrait .cam-hole { left: 133px; top: 137px; width: 738px; height: 591px; }
.portrait .face-guide { left: 360px; top: 200px; width: 280px; height: 390px; }
.portrait .guide-pill { top: 640px; font-size: 22px; height: 46px; line-height: 46px; }
.portrait .count { top: 280px; }
.portrait .sc-scanner { left: 800px; top: 900px; width: 200px; height: 200px; }
.portrait .sc-manual { left: 290px; top: 1520px; width: 500px; height: 76px; font-size: 28px; line-height: 36px; }
.portrait .sc-lead { left: 40px; width: 1000px; top: 1130px; font-size: 30px; }
.portrait .sc-title { left: 60px; top: 1190px; width: 960px; height: 120px; font-size: 48px; }
.portrait .sc-glass { display: none; }
.portrait .sc-sub { left: 60px; width: 960px; top: 1350px; font-size: 30px; line-height: 40px; }
.portrait .sc-privacy { left: 60px; width: 960px; top: 1440px; font-size: 22px; line-height: 30px; }

.portrait .cf-title, .portrait .pk-title, .portrait .pk-note, .portrait .cf-tip { left: 40px; width: 1000px; }
.portrait .cf-title { top: 200px; font-size: 52px; line-height: 64px; }
.portrait .cf-dome { left: 213px; top: 300px; }
.portrait .cf-dish { left: 213px; top: 626px; }
.portrait .cf-badge { left: 368px; top: 575px; }
.portrait .cf-glass { display: none; }
.portrait .cf-tip { top: 900px; font-size: 30px; line-height: 40px; }
.portrait .cf-ok { left: 90px; top: 1040px; width: 430px; height: 100px; font-size: 32px; }
.portrait .cf-change { left: 560px; top: 1040px; width: 430px; height: 100px; font-size: 32px; }
.portrait .pk-note { top: 180px; font-size: 28px; line-height: 38px; }
.portrait .pk-retry { left: 396px; top: 270px; }
.portrait .pk-title { top: 370px; }
.portrait .pk-sub { left: 40px; width: 1000px; top: 450px; font-size: 28px; }
.portrait #picker.no-retry .pk-title { top: 200px; }
.portrait #picker.no-retry .pk-sub { top: 280px; }
.portrait .pk-preview, .portrait #picker.no-retry .pk-preview { left: 340px; top: 350px; }
.portrait .pk-axes, .portrait #picker.no-retry .pk-axes { left: 60px; top: 820px; width: 960px; }
.portrait .pk-opt { height: 100px; font-size: 26px; }
.portrait .pk-ax h4 { font-size: 34px; }
.portrait .pk-ok { left: 240px; top: 1420px; width: 600px; height: 100px; font-size: 34px; }
.portrait .cf-mix { left: 40px; width: 1000px; top: 760px; font-size: 32px; }
.portrait .cf-chips { left: 40px; width: 1000px; top: 815px; flex-wrap: wrap; }
.portrait .cf-chips span { font-size: 26px; line-height: 34px; }
.portrait .cf-tip { top: 900px; }
.portrait .st-quick { left: 120px; top: 1500px; width: 840px; height: 110px; border-radius: 55px; }
.portrait .st-quick b { font-size: 34px; } .portrait .st-quick span { font-size: 24px; }
.portrait .rs-more { left: 40px; top: 1450px; width: 1000px; }
.portrait .rs-mini { height: 230px; }
.portrait .rs-mini .mn-pic { height: 120px; }
.portrait .rs-report { left: 290px; top: 1925px; height: 100px; padding: 0 40px; font-size: 32px; }
.portrait .rp-card { max-width: 96%; padding: 40px 36px; }
.portrait .rp-grid { grid-template-columns: 1fr; }
.portrait .rp-good li { flex-wrap: wrap; gap: 2px 12px; }
.portrait .rp-good li span { flex-basis: 100%; }
.portrait .rp-good li b { min-width: 0; }

.portrait .rs-plate { left: 5px; top: 40px; transform: scale(.92); transform-origin: 50% 0; }
.portrait .rs-slip { left: 262px; top: 715px; transform: rotate(6deg) scale(.86); transform-origin: 50% 0; }
.portrait .rs-glasses-btn { left: 250px; top: 1070px; width: 380px; height: 200px; transform: rotate(6deg); }
.portrait .rs-glasses-btn span { font-size: 24px; }
.portrait .rs-print { left: 100px; top: 1785px; height: 110px; min-width: 880px; font-size: 38px; }
.portrait .rs-restart { left: 580px; top: 2045px; height: 100px; min-width: 0; padding: 0 40px; font-size: 32px; }

/* ═════════ 영수증 (사용자 영수증 디자인 3:7 기준 · 80mm 감열지 BIXOLON SRP-330II, 인쇄 폭 72mm) */
.paper-wrap { position: fixed; right: 24px; top: 24px; bottom: 24px; overflow-y: auto; z-index: 50; padding: 6px; }
.paper {
  position: relative; width: 360px; background: #CDF0FF; color: #111; padding: 26px 22px 34px;
  font-family: var(--f-display); font-weight: 500; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.r-center { text-align: center; }
.r-logo { display: block; width: 48%; margin: 0 auto 8px; }
.r-head { font-weight: 400; font-family: var(--f-script); font-size: 1.95em; line-height: 1.1; letter-spacing: -.01em; }
.r-meta { font-family: var(--f-sans); font-weight: 400; font-size: .95em; line-height: 1.3; }
.r-line { border-top: 2px dashed currentColor; margin: 14px 0; }
.r-sec { font-weight: 700; font-size: 1.35em; line-height: 1.2; margin: 0 4px 8px; }
.r-order, .r-recipe { margin: 0 6px; }
.r-row { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.r-label { flex: none; }
.r-recipe .r-label { width: 5.6em; }
.r-dots { flex: none; width: 4.2em; border-bottom: 2px dotted currentColor; transform: translateY(-4px); }
/* 왼쪽 정렬 2단: [라벨 고정 폭][짧은 점선][값 — 길면 같은 칸 안에서 줄바꿈] */
.r-order .r-label { width: 11em; white-space: nowrap; font-size: .88em; }
.r-order .r-dots { width: .9em !important; }
.r-order .r-dots, .r-recipe .r-dots { width: 1.4em; }
.r-value { flex: 1; min-width: 0; text-align: left; word-break: keep-all; overflow-wrap: break-word; }
.r-fdetail { text-align: left; font-family: var(--f-sans); font-size: .9em; padding-left: 1em; }
.r-bars { margin: 10px 6px 0; }
.r-bar { display: flex; align-items: center; gap: 8px; font-size: .9em; line-height: 1.75; }
.r-bar-k { width: 3.4em; flex: none; font-family: var(--f-sans); }
.r-bar-v { flex: none; display: flex; gap: 1px; }
.r-bar-v i { display: block; width: 13px; height: 13px; border: 1.6px solid currentColor; }
.r-bar-v i.on { background: currentColor; }
.r-bar-p { flex: 1; text-align: right; font-family: var(--f-sans); }
.r-big { font-family: var(--f-sans); font-size: 1em; }
.r-quote { font-family: var(--f-sans); font-size: 1em; }
.r-menu { display: flex; align-items: stretch; margin: 2px 0; }
.r-menu-img { flex: none; width: 31%; min-height: 92px; border: 2px solid currentColor; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.r-menu-img img { display: block; width: 90%; height: auto; }
.r-menu-img .r-ph-print { display: none; }   /* 인쇄용: 테 윤곽을 검게 굵힌 그림 (assets/models/front-print, 감열지에서 연하게 안 나오게) */
.r-menu-txt { flex: 1; min-width: 0; margin-left: 2px; border: 2px solid currentColor; border-radius: 12px; padding: 10px 10px; line-height: 1.3; }
.r-name { font-weight: 700; font-size: 1.1em; margin-bottom: 4px; }
.r-tags, .r-cat { font-family: var(--f-sans); font-size: .88em; }
.r-taste { font-family: var(--f-sans); font-weight: 700; font-size: .88em; }
.r-atc { font-family: var(--f-sans); font-size: .78em; margin-top: 2px; }
.r-side { margin: 0 6px; font-size: .95em; }
.r-retaste { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 4px 0 0; }
.r-qr { flex: none; width: 34%; text-align: center; }
.r-qr svg { display: block; width: 100%; height: auto; }
.r-qr-label { font-family: var(--f-sans); font-size: .72em; margin-top: 2px; }
.r-mascot-img { flex: none; width: 60%; margin-left: auto; }
.r-thanks { font-weight: 400; font-family: var(--f-script); font-size: 1.5em; margin: 18px 0 4px; }

/* ── 운영자 측정값 */
.debug {
  position: fixed; left: 16px; bottom: 16px; z-index: 99; background: rgba(43, 20, 15, .88); color: #FFF;
  font-size: 13px; line-height: 1.5; padding: 14px 16px; border-radius: 12px; max-width: 360px; font-family: Menlo, monospace;
}

/* ── 터치 기기: hover 효과 끄기 */
@media (hover: none) {
  .pill:hover, .card:hover, .pk-card:hover, .sc-title:hover, .sc-scanner:hover { transform: none; }
  .sc-scanner:hover { transform: rotate(25deg); }
}

/* ── 인쇄: 영수증만, 80mm 감열지 (흑백) */
@media print {
  @page { size: 80mm auto; margin: 0; }
  html, body { width: 80mm; height: auto; overflow: visible; background: #FFF; }
  #stage, .debug { display: none !important; }
  .paper-wrap { display: block !important; position: static; padding: 0; overflow: visible; }
  .paper, .paper img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* 감열지는 회색·얇은 획이 흐리게 나온다 → 순검정, 굵은 글씨, 두꺼운 선 */
  .paper { width: 72mm; margin: 0 4mm; padding: 2mm 0 10mm; box-shadow: none; background: #fff; color: #000; font-size: 10pt; font-weight: 700; }
  .paper * { color: #000 !important; opacity: 1 !important; text-shadow: none !important; }
  .r-meta, .r-fdetail, .r-tags, .r-cat, .r-atc, .r-big, .r-quote, .r-bar-k, .r-bar-p, .r-qr-label { font-weight: 700; }
  .r-sec { font-size: 1.3em; font-weight: 900; }
  .r-head { font-size: 1.9em; }
  .r-line { border-top-width: 2px; }
  .r-dots { border-bottom-width: 2px; transform: translateY(-3px); }
  .r-bar-v i { width: 3.4mm; height: 3.4mm; border-width: 1.6px; }
  .r-menu-img, .r-menu-txt { border-width: 2px; }
  .r-order { font-size: .95em; }
  .r-recipe .r-label { width: 5.2em; }
  .r-logo, .r-mascot-img { -webkit-filter: grayscale(1) contrast(1.8) brightness(.9); filter: grayscale(1) contrast(1.8) brightness(.9); }
  .r-menu-img .r-ph-screen { display: none; }
  .r-menu-img { width: 36%; }
  .r-menu-img .r-ph-print { display: block; width: 96%; }
  .r-tags { word-break: keep-all; }
}

/* 안경 크게 보기 */
.viewer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 32; background: rgba(43,20,15,.6); display: flex; align-items: center; justify-content: center; }
.vw-card { width: 1200px; max-width: 94%; padding: 34px 40px 30px; border-radius: 40px; background: var(--plate); border: 6px solid var(--ketchup); box-shadow: 0 0 0 10px #fff, 0 24px 50px rgba(0,0,0,.35); text-align: center; color: var(--demi); animation: enter .3s ease both; }
.vw-head small { display: block; font-weight: 700; font-size: 20px; color: var(--ketchup); }
.vw-head b { display: block; font-weight: 900; font-size: 46px; line-height: 56px; }
.vw-stage { position: relative; height: 480px; margin: 10px 0; display: flex; align-items: center; justify-content: center; cursor: grab; -webkit-perspective: 1400px; perspective: 1400px; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.vw-stage img { width: 78%; height: auto; max-height: 100%; object-fit: contain; -webkit-filter: drop-shadow(0 18px 14px rgba(0,0,0,.2)); filter: drop-shadow(0 18px 14px rgba(0,0,0,.2)); transition: transform .3s ease; -webkit-user-drag: none; pointer-events: none; }
.vw-tabs { display: flex; justify-content: center; gap: 14px; }
.vw-tab { min-width: 160px; height: 56px; border-radius: 30px; border: 3px solid var(--demi); background: #fff; color: var(--demi); font-weight: 900; font-size: 22px; }
.vw-tab.on { background: var(--demi); color: #fff; }
.vw-hint { margin-top: 10px; font-size: 18px; opacity: .75; }
.vw-close { margin-top: 16px; }
.portrait .vw-stage { height: 560px; }
.vw-3d { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 28px; background: radial-gradient(ellipse at 50% 60%, #fff 0%, #fff 45%, #f6ead6 100%); cursor: grab; touch-action: none; overflow: hidden; }
.vw-3d canvas { display: block; width: 100%; height: 100%; }
.vw-3d .vw-load { display: none; position: absolute; left: 0; right: 0; top: 50%; margin-top: -14px; font-weight: 700; font-size: 22px; color: var(--ketchup); }
.vw-3d.loading .vw-load { display: block; }
.vw-stage.is3d img { visibility: hidden; }
.vw-tab3d { border-color: var(--ketchup); color: var(--ketchup); }
.vw-tab3d.on { background: var(--ketchup); color: #fff; }
.pkd-zoom { position: absolute; left: 0; bottom: -10px; z-index: 3; padding: 6px 18px; border-radius: 18px; background: var(--demi); color: #fff; font-weight: 700; font-size: 18px; }
.pkd-info { position: relative; }
.pkd-zoom-btn { display: inline-block; margin: 6px 0 4px; padding: 6px 18px; border-radius: 18px; background: var(--demi); color: #fff; font-weight: 700; font-size: 18px; }

/* ── 메뉴판 리스킨: 사용자 메뉴판 컨셉 (Fresh Picks · Beverage Fridge · Deli Kitchen) ── */
.menu-layer[class*="theme-"] .mn-base { display: none; }
.menu-layer[class*="theme-"] .mn-unit { border: 0; border-radius: 0; margin-top: 12px; background: none; }
.menu-layer[class*="theme-"] .mn-row { background: none; justify-content: flex-start; gap: 26px 34px; }
.mn-board-title { flex-basis: 100%; grid-column: 1 / -1; text-align: center; margin: 6px 0 14px; font-family: var(--f-script); font-size: 56px; line-height: 64px; color: var(--ketchup);
  text-shadow: -3px -3px 0 #FFF8EC, 3px -3px 0 #FFF8EC, -3px 3px 0 #FFF8EC, 3px 3px 0 #FFF8EC, 6px 7px 0 rgba(90,26,20,.35); font-style: italic; }
.mn-board-title.ttl { text-shadow: none; margin: 4px 0 10px; line-height: 0; }
.mn-board-title.ttl img { display: inline-block; height: 150px; width: auto; }
.itm { width: 250px; height: auto; text-align: center; color: var(--demi); }
.itm .pkg-atc { right: -6px; top: -14px; }
.itm-img { display: block; width: 100%; height: auto; -webkit-filter: drop-shadow(2px 6px 5px rgba(0,0,0,.2)); filter: drop-shadow(2px 6px 5px rgba(0,0,0,.2)); transition: transform .2s; }
.itm:hover .itm-img { transform: translateY(-6px) scale(1.04); }

/* Fresh: 노란 매대 + 투명 트레이 + 초록 가격 스티커 */
.menu-layer.theme-fresh .mn-unit { background: linear-gradient(180deg, #FFF06E 0%, #FFF06E 72%, #C9E7F6 100%); }
.theme-fresh .mn-line { position: relative; margin: 10px 0 30px; }
.theme-fresh .mn-line h3 { background: var(--ketchup); border-radius: 30px; padding: 6px 28px; font-size: 28px; color: #fff; letter-spacing: .02em; }
.burst { position: absolute; right: 30px; top: -18px; width: 150px; height: 150px; transform: rotate(-10deg); pointer-events: none; }
.burst img { display: block; width: 100%; height: 100%; }
.tray { position: relative; display: block; width: 260px; height: 168px; border-radius: 24px; background: rgba(255,255,255,.38); border: 3px solid rgba(255,255,255,.95);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.35), inset 0 0 0 12px rgba(150,160,170,.35), 0 10px 12px rgba(0,0,0,.14); }
.tray .itm-img, .tray .pv-glasses { position: absolute; left: 9%; top: 16%; width: 82%; }
.tray-lid { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 22px; background: linear-gradient(115deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,.45) 32%, rgba(255,255,255,0) 55%, rgba(255,255,255,.3) 100%); pointer-events: none; }
.itm-fresh { width: 270px; }
.f-label { position: absolute; right: -10px; bottom: -18px; z-index: 2; width: 150px; text-align: left; background: #fff; border: 3px solid #2E8B3A; border-radius: 8px; overflow: hidden; box-shadow: 2px 4px 0 rgba(0,0,0,.15); transform: rotate(-3deg); }
.f-label b { display: block; padding: 4px 8px 0; font-weight: 900; font-size: 18px; line-height: 22px; color: #1F5F28; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-label small { display: block; padding: 0 8px 4px; font-size: 12px; line-height: 15px; }
.f-label i { display: block; padding: 2px 8px; background: #2E8B3A; color: #fff; font-style: normal; font-weight: 700; font-size: 12px; line-height: 16px; }
.itm-code { display: block; margin-top: 26px; font-family: var(--f-script); font-size: 24px; line-height: 28px; color: #FFB52E; font-style: italic;
  text-shadow: -2px -2px 0 #C3302A, 2px -2px 0 #C3302A, -2px 2px 0 #C3302A, 2px 2px 0 #C3302A; }

/* Beverage: 파란 타일 벽 + 냉장고 칸 + 유리 선반 */
.menu-layer.theme-beverage .mn-unit { background-color: #2E62AD; background-image: linear-gradient(rgba(255,255,255,.22) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.22) 2px, transparent 2px); background-size: 66px 66px; }
.theme-beverage .mn-board-title { color: #fff; text-shadow: -3px -3px 0 var(--ketchup), 3px -3px 0 var(--ketchup), -3px 3px 0 var(--ketchup), 3px 3px 0 var(--ketchup), 6px 7px 0 rgba(0,0,0,.25); }
.mn-shelf.cat-beverage { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; align-content: start; }
.fridge { position: relative; margin: 0; padding: 22px 28px 56px; border-radius: 30px; background: linear-gradient(180deg, #F2FAFF 0%, #CFE6F8 100%); border: 12px solid #E3F1FD;
  box-shadow: inset 0 0 40px rgba(255,255,255,.95), inset 0 0 0 3px #9CC6EA, 0 12px 22px rgba(0,0,0,.28); }
.fridge .mn-row { flex-direction: column; flex-wrap: nowrap; gap: 0; }
.itm-bev { width: 100%; display: flex; align-items: center; gap: 22px; padding: 14px 6px 12px; border-bottom: 9px solid rgba(255,255,255,.85); box-shadow: 0 6px 6px -4px rgba(60,110,160,.35); text-align: left; }
.itm-bev .itm-img { flex: none; width: 54%; }
.b-label { flex: 1; min-width: 0; background: #fff; border: 2px solid #2E62AD; border-radius: 8px; overflow: hidden; }
.b-label b { display: block; padding: 4px 10px 0; font-weight: 900; font-size: 20px; line-height: 24px; color: #1F3F7A; }
.b-label small { display: block; padding: 0 10px; font-size: 13px; }
.b-label i { display: block; padding: 0 10px 4px; font-style: normal; font-size: 13px; color: #2E62AD; font-weight: 700; }
.b-label em { font-family: var(--f-sans); display: block; padding: 3px 10px; background: #2E62AD; color: #fff; font-style: normal; font-weight: 900; font-size: 14px; letter-spacing: .04em; }
.fridge-name { position: absolute; right: 28px; bottom: 6px; font-family: var(--f-script); font-style: italic; font-size: 42px; line-height: 50px; color: #1F3F7A; }

/* Deli: 레드 깅엄 테두리 + 크림 메뉴판 */
.menu-layer.theme-deli .mn-unit { width: 1500px; padding: 18px 22px 0; box-shadow: 0 16px 30px rgba(60,20,10,.3); background: #fff repeating-linear-gradient(0deg, rgba(229,38,44,.5) 0 26px, transparent 26px 52px), #fff; background-image: repeating-linear-gradient(0deg, rgba(229,38,44,.5) 0 26px, transparent 26px 52px), repeating-linear-gradient(90deg, rgba(229,38,44,.5) 0 26px, transparent 26px 52px); }
.theme-deli .mn-sub { background: #FBF1DE; margin: 0; padding-top: 14px; border: 4px solid var(--ketchup); border-bottom: 0; border-radius: 8px 8px 0 0; }
.mn-shelf.cat-deli { background: #FBF1DE; border: 4px solid var(--ketchup); border-top: 0; padding: 0 50px 40px; }
.theme-deli .mn-line h3 { display: flex; align-items: baseline; gap: 14px; background: none; box-shadow: none; padding: 0; margin: 22px 0 16px; font-family: var(--f-script); font-style: italic; font-size: 36px; line-height: 44px; color: var(--ketchup); letter-spacing: 0; }
.theme-deli .mn-line h3::after { content: ""; flex: 1; height: 3px; background: var(--ketchup); }
.theme-deli .mn-line h3 span { font-family: var(--f-display); font-style: normal; font-size: 17px; color: var(--demi); }
.itm-deli { width: 260px; }
.itm-deli .itm-img { width: 92%; margin: 0 auto; }
.d-label { display: block; margin-top: 10px; text-align: left; background: #fff; border: 3px solid var(--ketchup); border-radius: 10px; padding: 8px 12px; box-shadow: 3px 4px 0 rgba(195,48,42,.18); }
.d-label b { display: block; font-weight: 900; font-size: 22px; line-height: 26px; color: var(--ketchup); }
.d-label small { display: block; font-size: 13px; line-height: 17px; }
.d-label i { display: inline-block; margin-top: 4px; padding: 1px 8px; border: 2px solid var(--demi); border-radius: 6px; font-style: normal; font-weight: 700; font-size: 13px; }

/* 설명 창 패키지 비주얼 */
.pkd-pack.pv { width: 480px; height: 360px; transform: none; margin: 0; }
.pv-glasses { position: absolute; z-index: 2; -webkit-filter: drop-shadow(0 12px 10px rgba(0,0,0,.25)); filter: drop-shadow(0 12px 10px rgba(0,0,0,.25)); animation: pvRise .7s .15s cubic-bezier(.3,1.4,.5,1) both; }
@-webkit-keyframes pvRise { from { transform: translateY(60px); opacity: 0; } }
@keyframes pvRise { from { transform: translateY(60px); opacity: 0; } }
.pv-deli .pv-bento { position: absolute; left: 0; bottom: 0; width: 100%; }
.pv-deli .pv-glasses { left: 12%; top: 0; width: 76%; }
.pv-3d { position: absolute; left: -25px; top: -40px; right: -25px; bottom: -20px; overflow: hidden; display: none; cursor: grab; touch-action: none; z-index: 3; }
.pv-3d canvas { display: block; width: 100%; height: 100%; }
.pv-deli.has3d .pv-3d, .pv-fresh.has3d .pv-3d, .pv-bev.has3d .pv-3d { display: block; }
.pv-fresh.has3d > img, .pv-fresh.has3d > .pt-lid, .pv-fresh.has3d > .pt-name, .pv-bev.has3d > img { display: none; }
.pv-hint { position: absolute; left: 50%; bottom: -34px; z-index: 4; -webkit-transform: translateX(-50%); transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 18px; font-weight: 700; padding: 4px 14px; border-radius: 16px; background: var(--demi); color: #fff; pointer-events: none; -webkit-animation: hintPulse 1.4s ease-in-out infinite; animation: hintPulse 1.4s ease-in-out infinite; }
.pk-detail.open .pv-hint { display: none; }
@-webkit-keyframes hintPulse { 50% { opacity: .55; } }
@keyframes hintPulse { 50% { opacity: .55; } }
.pv-fresh, .pv-bev { cursor: pointer; }
.pv-deli.has3d .pv-bento, .pv-deli.has3d .pv-glasses { display: none; }
.pv-fresh .tray.big { position: absolute; left: 0; top: 40px; width: 470px; height: 300px; border-radius: 36px; }
.pv-bev .carton { position: absolute; left: 0; top: 0; width: 200px; height: 340px; }
.pv-bev .pv-carton { position: absolute; left: 151px; bottom: 10px; height: 380px; -webkit-filter: drop-shadow(6px 10px 10px rgba(0,0,0,.2)); filter: drop-shadow(6px 10px 10px rgba(0,0,0,.2)); }
.pv-bev .pv-glasses { left: 14%; bottom: -6px; width: 72%; }
.ct-top { position: absolute; left: 0; top: 0; width: 200px; height: 80px; background: #C3302A; -webkit-clip-path: polygon(0 100%, 30% 0, 70% 0, 100% 100%); clip-path: polygon(0 100%, 30% 0, 70% 0, 100% 100%); }
.ct-body { position: absolute; left: 0; top: 80px; width: 200px; height: 260px; background: #F6EAD3; border: 3px solid #A9261F; border-top: 0; text-align: center; box-shadow: 6px 8px 0 rgba(0,0,0,.15);
  background-image: linear-gradient(45deg, #C3302A 25%, transparent 25%, transparent 75%, #C3302A 75%), linear-gradient(45deg, #C3302A 25%, transparent 25%, transparent 75%, #C3302A 75%);
  background-size: 28px 28px; background-position: 0 0, 14px 14px; background-repeat: repeat-x; }
.ct-body b { display: block; margin-top: 70px; font-family: var(--f-script); font-size: 44px; line-height: 48px; color: #3C6FB6; }
.ct-body small { display: block; font-weight: 900; font-size: 15px; color: #3C6FB6; letter-spacing: .1em; }
.portrait .pkd-pack.pv { width: 600px; height: 420px; margin: 0 auto 20px; }
.portrait .mn-shelf.cat-beverage { grid-template-columns: 1fr; }
.portrait .itm-deli, .portrait .itm-fresh { width: 280px; }
.portrait .theme-fresh .burst { right: 0; }

/* ── 이름 묻기 · 지난 영수증 찾기 */
.st-find { left: auto; right: 69px; top: 46px; height: 67px; padding: 0 30px; z-index: 3; border-radius: 71px; background: var(--plate); border: 4px solid var(--demi); color: var(--demi); font-family: inherit; font-weight: 900; font-size: 24px; box-shadow: 4px 4px 4px rgba(0,0,0,.25); cursor: pointer; }
.st-find::before { content: "No."; margin-right: 10px; padding: 2px 10px; border-radius: 12px; background: var(--ketchup); color: #fff; font-size: 18px; }
.st-find:hover { transform: translateY(-3px); }
.portrait .st-find { right: 40px; top: 40px; }
.ask { z-index: 32; }
.ask-card { position: relative; width: 820px; max-width: 92%; padding: 48px 56px 40px; background: var(--plate); border-radius: 40px; border: 6px solid var(--ketchup); box-shadow: 0 0 0 10px #fff, 0 24px 50px rgba(0,0,0,.35); color: var(--demi); text-align: center; animation: enter .3s ease both; }
.ask-card h3 { font-weight: 900; font-size: 46px; line-height: 56px; }
.ask-card p { font-size: 21px; line-height: 30px; margin-top: 8px; }
.ask-input { display: block; width: 100%; margin: 26px 0 0; padding: 16px 26px; box-sizing: border-box; border: 4px solid var(--demi); border-radius: 22px; background: #fff; color: var(--demi); font-family: inherit; font-weight: 700; font-size: 34px; text-align: center; outline: none; -webkit-appearance: none; }
.ask-input:focus { border-color: var(--ketchup); box-shadow: 0 0 0 5px rgba(195,48,42,.18); }
.ask-input::placeholder { color: rgba(90,26,20,.35); }
.ask-btns { display: flex; justify-content: center; gap: 22px; margin-top: 30px; }
.ask-btns .pill { position: static; min-width: 280px; }
.lk-card { width: 1000px; max-height: 90%; display: flex; flex-direction: column; }
.lk-label { display: block; margin-top: 16px; min-height: 24px; font-size: 19px; font-weight: 700; opacity: .75; }
.lk-list { list-style: none; margin: 8px 0 0; padding: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; max-height: 470px; text-align: left; }
.lk-item { display: flex; align-items: center; gap: 22px; width: 100%; margin: 0 0 10px; padding: 14px 22px; border: 3px solid var(--demi); border-radius: 20px; background: #fff; color: var(--demi); font-family: inherit; text-align: left; cursor: pointer; }
.lk-item:hover { background: #FFF1D6; transform: translateY(-2px); }
.lk-no { flex: none; min-width: 120px; font-weight: 900; font-size: 28px; color: var(--ketchup); }
.lk-who, .lk-res { display: flex; flex-direction: column; min-width: 0; }
.lk-who { flex: 0 0 200px; font-weight: 900; font-size: 24px; }
.lk-res { flex: 1 1 auto; font-size: 22px; }
.lk-res em { font-style: normal; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-who small, .lk-res small { font-weight: 400; font-size: 17px; opacity: .75; margin-top: 2px; }
.lk-close { position: static; display: block; margin: 20px auto 0; }
.r-who { font-family: var(--f-display); font-weight: 700; font-size: 1.1em; margin: .3em 0 .1em; }

/* ── 맛 성분표 라벨 쓰는 법 */
.rs-label { left: 868px; top: 973px; height: 72px; min-width: 0; padding: 0 30px; font-size: 22px; z-index: 3; }
.portrait .rs-label { left: 640px; top: 1925px; height: 100px; padding: 0 40px; font-size: 32px; }
.lg-card { width: 900px; text-align: center; padding: 30px 40px 28px; }
.lg-title { font-weight: 900; font-size: 38px; line-height: 46px; }
.lg-sub { font-size: 19px; margin-top: 4px; }
.lg-wrap { position: relative; width: 600px; max-width: 100%; margin: 16px auto 0; }
.lg-wrap img { display: block; width: 100%; height: auto; border-radius: 18px; }
#lg-marks { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.lg-t { position: absolute; transform: translate(-50%, -50%) rotate(-3deg); white-space: nowrap; color: var(--ketchup); font-weight: 900; font-size: 18px; line-height: 1; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.lg-t.num { font-size: 20px; }
.lg-t.big { font-size: 21px; }
.lg-t.small { font-size: 14px; font-weight: 700; }
.lg-ring { position: absolute; display: block; border: 3px solid var(--ketchup); border-radius: 50%; transform: rotate(-4deg); box-sizing: border-box; }
.lg-ring.fill { background: var(--ketchup); border-radius: 50%; }
.lg-t.mid { font-size: 15px; }
.lg-t.full { transform: translate(0, -50%) rotate(-1.5deg); font-size: 14px; }
.lg-t.full.long { font-size: 12px; }
.lg-t.full.name { font-size: 30px; }
.lg-t.full.code { font-size: 11px; font-weight: 700; }
.r-tag { white-space: nowrap; }

/* 시작 '장보러가기': 장바구니 흔들듯 주기적으로 꿈틀 (누르려고 올리면 멈춤) */
#btn-start { -webkit-animation: wiggle 2.4s ease-in-out .8s infinite; animation: wiggle 2.4s ease-in-out .8s infinite; }
#btn-start:hover, #btn-start:active { -webkit-animation: none; animation: none; }
@-webkit-keyframes wiggle {
  0%, 36%, 100% { -webkit-transform: rotate(0) scale(1); }
  4% { -webkit-transform: rotate(-6deg) scale(1.06); } 10% { -webkit-transform: rotate(5deg) scale(1.08); }
  16% { -webkit-transform: rotate(-4deg) scale(1.06); } 22% { -webkit-transform: rotate(3deg) scale(1.04); }
  28% { -webkit-transform: rotate(-1.5deg) scale(1.02); }
}
@keyframes wiggle {
  0%, 36%, 100% { transform: rotate(0) scale(1); }
  4% { transform: rotate(-6deg) scale(1.06); } 10% { transform: rotate(5deg) scale(1.08); }
  16% { transform: rotate(-4deg) scale(1.06); } 22% { transform: rotate(3deg) scale(1.04); }
  28% { transform: rotate(-1.5deg) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { #btn-start { -webkit-animation: none; animation: none; } }

.rs-pay.nudge { -webkit-animation: wiggle 1s ease-in-out 2; animation: wiggle 1s ease-in-out 2; }

/* 시작·결과 화면 장바구니·수저도 꿈틀 (버튼과 엇갈리게) */
.st-basket, .rs-basket { -webkit-animation: wiggleBasket 3s ease-in-out 1.6s infinite; animation: wiggleBasket 3s ease-in-out 1.6s infinite; -webkit-transform-origin: 50% 80%; transform-origin: 50% 80%; }
.st-cutlery, .rs-cutlery { -webkit-animation: wiggleCutlery 3.4s ease-in-out 2.3s infinite; animation: wiggleCutlery 3.4s ease-in-out 2.3s infinite; -webkit-transform-origin: 70% 95%; transform-origin: 70% 95%; }
@-webkit-keyframes wiggleBasket {
  0%, 40%, 100% { -webkit-transform: rotate(-19deg); }
  6% { -webkit-transform: rotate(-26deg) translateY(-8px); } 14% { -webkit-transform: rotate(-13deg) translateY(-4px); }
  22% { -webkit-transform: rotate(-23deg); } 30% { -webkit-transform: rotate(-16deg); }
}
@keyframes wiggleBasket {
  0%, 40%, 100% { transform: rotate(-19deg); }
  6% { transform: rotate(-26deg) translateY(-8px); } 14% { transform: rotate(-13deg) translateY(-4px); }
  22% { transform: rotate(-23deg); } 30% { transform: rotate(-16deg); }
}
@-webkit-keyframes wiggleCutlery {
  0%, 40%, 100% { -webkit-transform: rotate(0); }
  7% { -webkit-transform: rotate(-5deg); } 15% { -webkit-transform: rotate(4deg); }
  23% { -webkit-transform: rotate(-2.5deg); } 31% { -webkit-transform: rotate(1deg); }
}
@keyframes wiggleCutlery {
  0%, 40%, 100% { transform: rotate(0); }
  7% { transform: rotate(-5deg); } 15% { transform: rotate(4deg); }
  23% { transform: rotate(-2.5deg); } 31% { transform: rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) { .st-basket, .rs-basket, .st-cutlery, .rs-cutlery { -webkit-animation: none; animation: none; } }
.lv { letter-spacing: -1px; margin-left: 4px; color: var(--ketchup); }

/* 얼굴에 써보기 버튼 */
.pill-yellow { background: var(--yolk); color: var(--demi); }
.rs-tryon { left: 1098px; top: 973px; height: 72px; min-width: 0; padding: 0 30px; font-size: 22px; z-index: 3; }
.portrait .rs-tryon { left: 100px; top: 2045px; height: 100px; padding: 0 40px; font-size: 32px; }

/* 결과 공개 (클로슈 → 3D 음식 이모지) */
.reveal { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 55%, #FFF8EC 0%, #FFF8EC 42%, #E5262C 100%); cursor: pointer; -webkit-user-select: none; user-select: none;
  -webkit-animation: enter .35s ease both; animation: enter .35s ease both; transition: opacity .45s ease; }
.reveal.done { opacity: 0; }
.rv-lead { font-weight: 900; font-size: 64px; line-height: 76px; color: var(--ketchup); text-shadow: 3px 4px 0 #fff; }
.rv-stage { position: relative; width: 620px; height: 400px; margin-top: 36px; }
/* 클로슈: 접시(아래) + 뚜껑. 닫힌 뚜껑이 접시 위에 덮여 있다가 누르면 들려서 옆으로 */
.rv-plate { position: absolute; left: 50%; bottom: 0; width: 520px; margin-left: -260px; }
.rv-emoji { position: absolute; z-index: 1; left: 50%; bottom: 78px; width: 280px; height: 280px; margin-left: -140px; object-fit: contain; object-position: 50% 100%; -webkit-transform: scale(.3) translateY(80px); transform: scale(.3) translateY(80px); opacity: 0;
  transition: transform .6s cubic-bezier(.3,1.5,.5,1) .25s, opacity .3s ease .25s; }
.rv-cloche { position: absolute; z-index: 2; left: 50%; bottom: 31px; width: 520px; height: 324px; margin-left: -260px; -webkit-transform-origin: 80% 100%; transform-origin: 80% 100%;
  -webkit-animation: clocheWobble 1.6s ease-in-out .6s infinite; animation: clocheWobble 1.6s ease-in-out .6s infinite;
  transition: transform .8s cubic-bezier(.5,0,.3,1), opacity .5s ease .35s; }
.rv-cloche img { position: absolute; left: 0; top: 0; width: 100%; transition: opacity .25s ease; }
.rv-lid-o { opacity: 0; }
.reveal.open .rv-lid-c { opacity: 0; }
.reveal.open .rv-lid-o { opacity: 1; }
.reveal.open .rv-cloche { -webkit-animation: none; animation: none; -webkit-transform: translate(330px, -150px) rotate(24deg); transform: translate(330px, -150px) rotate(24deg); opacity: 0; }
.reveal.open .rv-emoji { -webkit-transform: none; transform: none; opacity: 1; }
.rv-eq { margin-top: 0; min-height: 60px; font-weight: 900; font-size: 48px; line-height: 60px; color: var(--demi); opacity: 0; -webkit-transform: translateY(14px); transform: translateY(14px); transition: opacity .4s ease .7s, transform .4s ease .7s; }
.reveal.open .rv-eq { opacity: 1; -webkit-transform: none; transform: none; }
.rv-hint { margin-top: 34px; font-weight: 700; font-size: 24px; color: #fff; background: var(--ketchup); border-radius: 30px; padding: 8px 26px; }
@-webkit-keyframes clocheWobble { 0%, 50%, 100% { -webkit-transform: rotate(0); } 10% { -webkit-transform: rotate(-4deg) translateY(-10px); } 20% { -webkit-transform: rotate(3deg) translateY(-6px); } 30% { -webkit-transform: rotate(-2deg); } 40% { -webkit-transform: rotate(1deg); } }
@keyframes clocheWobble { 0%, 50%, 100% { transform: rotate(0); } 10% { transform: rotate(-4deg) translateY(-10px); } 20% { transform: rotate(3deg) translateY(-6px); } 30% { transform: rotate(-2deg); } 40% { transform: rotate(1deg); } }
.portrait .rv-lead { font-size: 72px; }
@media (prefers-reduced-motion: reduce) { .rv-cloche { -webkit-animation: none; animation: none; } }

/* 얼굴에 써보기 */
.tryon { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 33; background: rgba(43,20,15,.6); display: flex; align-items: center; justify-content: center; }
.to-card { width: 1100px; max-width: 94%; padding: 22px 36px 20px; border-radius: 40px; background: var(--plate); border: 6px solid var(--ketchup); box-shadow: 0 0 0 10px #fff, 0 24px 50px rgba(0,0,0,.35); text-align: center; color: var(--demi); animation: enter .3s ease both; }
.to-head b { font-weight: 900; font-size: 36px; margin-right: 14px; }
.to-head small { font-weight: 700; font-size: 22px; opacity: .8; }
.to-stage { position: relative; width: 100%; height: 520px; margin-top: 12px; border-radius: 28px; overflow: hidden; background: #2b140f; }
.to-stage video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; -webkit-transform: scaleX(-1); transform: scaleX(-1); }
.to-glasses { position: absolute; left: 50%; top: 45%; width: 300px; opacity: 0; pointer-events: none; transition: opacity .2s; -webkit-filter: drop-shadow(0 2px 2px rgba(0,0,0,.22)); filter: drop-shadow(0 2px 2px rgba(0,0,0,.22)); }
.to-msg { position: absolute; left: 50%; bottom: 24px; -webkit-transform: translateX(-50%); transform: translateX(-50%); background: rgba(255,248,236,.92); border-radius: 30px; padding: 10px 26px; font-weight: 700; font-size: 22px; white-space: nowrap; }
.to-msg.hidden { display: none; }
.to-picks { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.to-pick { width: 170px; padding: 8px 8px 6px; border-radius: 18px; background: #fff; border: 3px solid transparent; box-shadow: 0 4px 10px rgba(0,0,0,.12); cursor: pointer; }
.to-pick img { display: block; width: 100%; height: 56px; object-fit: contain; }
.to-pick small { display: block; font-weight: 800; font-size: 15px; margin-top: 4px; }
.to-pick.on { border-color: var(--ketchup); }
.to-note { margin-top: 10px; font-size: 16px; opacity: .7; }
/* 써보기 안경 크기 조절 (모든 안경에 함께 적용, localStorage tt-tryon-all) */
.to-size { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.to-size b { font-weight: 900; font-size: 22px; margin-right: 4px; }
.to-sz { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--demi); background: #fff; color: var(--demi); font-weight: 900; font-size: 30px; line-height: 1; cursor: pointer; }
.to-sz:active { background: var(--yolk); }
.to-size span { min-width: 72px; font-weight: 900; font-size: 22px; }
.to-sz-reset { height: 44px; padding: 0 18px; border-radius: 22px; border: 2px solid var(--demi); background: transparent; color: var(--demi); font-weight: 700; font-size: 17px; cursor: pointer; }
.to-size small { flex-basis: 100%; font-size: 16px; font-weight: 700; color: var(--ketchup); }
.to-close { margin-top: 12px; height: 64px; min-width: 180px; font-size: 22px; }
.portrait .to-stage { height: 900px; }

/* 언어 스위치: 영어일 때 손잡이가 오른쪽으로 */
.lang-knob { transition: left .25s ease; }
.lang.on .lang-knob { left: 62px; background: var(--tile, #5499D3); }
/* 영어는 글자가 길어서 조금 줄인다 */
.lang-en .st-body { font-size: 19px; line-height: 25px; }
.lang-en .rv-lead { font-size: 58px; }

/* 영문: 얼굴형 확인 버튼은 서로 겹치지 않게 같은 비율로 길게 */
.lang-en .cf-ok { left: 520px; width: 420px; }
.lang-en .cf-change { left: 980px; width: 420px; }

/* Sushi 접이식 · Dango/Sushi 포크 템플 */
.pkd-feat { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pkd-feat-c { flex: 1; min-width: 0; margin: 0; padding: 8px 12px 10px; background: #fff; border: 2px dashed rgba(195,48,42,.45); border-radius: 16px; display: flex; align-items: center; gap: 12px; }
.pkd-feat-c img { flex: none; width: 210px; height: 66px; object-fit: contain; }
.pkd-feat-c.fold img { height: 72px; }
.pkd-feat-c figcaption { font-size: 15px; line-height: 20px; color: var(--demi); }
.pkd-feat-c figcaption b { display: block; font-size: 18px; color: var(--ketchup); }
.itm-deli { position: relative; }
.itm-fold { position: absolute; right: -26px; top: -10px; width: 66px; transform: rotate(6deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); pointer-events: none; }
.itm-fold-t { position: absolute; right: -20px; top: 32px; padding: 1px 8px; border-radius: 8px; background: var(--ketchup); color: #fff; font-weight: 900; font-size: 13px; transform: rotate(6deg); pointer-events: none; }

/* Fresh 설명 창: 펄프 트레이 + 투명 뚜껑(피그마 패키지 요소 686:37991) */
.pv-tray { perspective: 900px; }
.pv-tray .pt-tray { position: absolute; left: 0; top: 70px; width: 480px; filter: drop-shadow(6px 14px 14px rgba(0,0,0,.28)); }
.pv-tray .pt-glasses { position: absolute; left: 14%; top: 150px; width: 72%; z-index: 1; transform: rotate(-4deg) scale(.92); transition: transform .6s cubic-bezier(.3,1.4,.5,1) .55s; }
.pv-tray .pt-lid { position: absolute; left: -2px; top: 62px; width: 484px; z-index: 2; transform-origin: 50% 0; transition: transform .8s cubic-bezier(.5,0,.3,1) .25s, opacity .5s ease .5s; }
.pv-tray .pt-lid > img:first-child { display: block; width: 100%; }
.pv-tray .pt-label { position: absolute; left: 4%; top: 52%; width: 40%; transform: rotate(-2deg); }
.pk-detail.open .pv-tray .pt-lid { transform: translate(60px, -150px) rotate(10deg); opacity: 0; }
.pk-detail.open .pv-tray .pt-glasses { transform: translateY(14px) rotate(0) scale(.96); }
.pv-tray .pt-name { right: -6px; bottom: 6px; z-index: 3; }
.portrait .pv-tray .pt-tray, .portrait .pv-tray .pt-lid { width: 560px; }

/* 라벨 쓰는 법: 처음 열면 적을 칸(빨간 글씨·동그라미)이 깜빡깜빡 */
@-webkit-keyframes lgBlink { 0%, 100% { opacity: 1; } 50% { opacity: .1; } }
@keyframes lgBlink { 0%, 100% { opacity: 1; } 50% { opacity: .1; } }
#lg-marks.blink .lg-t, #lg-marks.blink .lg-ring { -webkit-animation: lgBlink .7s ease-in-out 5; animation: lgBlink .7s ease-in-out 5; }
.to-tune { position: absolute; left: 12px; top: 12px; margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(90,26,20,.85); color: #FFF8EC; font-size: 16px; font-family: monospace; z-index: 3; max-width: 90%; word-break: break-all; }
/* 팝업 창 X 버튼 */
.to-card, .vw-card { position: relative; }
.x-close { position: absolute; right: 22px; top: 22px; z-index: 5; width: 56px; height: 56px; padding: 0; border: 3px solid var(--demi); border-radius: 50%; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.x-close svg { width: 26px; height: 26px; fill: none; stroke: var(--demi); stroke-width: 3.4; stroke-linecap: round; }
.x-close:hover { background: var(--demi); }
.x-close:hover svg { stroke: #fff; }
/* Beverage 그림 포장(3D가 안 될 때): 누르면 팩이 기울며 따르고 안경이 흘러나온다 */
.pv-bev .pv-glasses { opacity: 0; -webkit-animation: none; animation: none; }
.pv-bev .pv-carton { -webkit-transform-origin: 70% 80%; transform-origin: 70% 80%; }
.pk-detail.open .pv-bev .pv-carton { -webkit-animation: cartonPour 2.2s ease both; animation: cartonPour 2.2s ease both; }
.pk-detail.open .pv-bev .pv-glasses { -webkit-animation: glassesPour 2.2s ease both; animation: glassesPour 2.2s ease both; }
@-webkit-keyframes cartonPour { 0% { -webkit-transform: none; } 30%, 55% { -webkit-transform: translate(-30px, -60px) rotate(-70deg); } 100% { -webkit-transform: none; } }
@keyframes cartonPour { 0% { transform: none; } 30%, 55% { transform: translate(-30px, -60px) rotate(-70deg); } 100% { transform: none; } }
@-webkit-keyframes glassesPour { 0%, 30% { opacity: 0; -webkit-transform: translate(-150px, -160px) scale(.3) rotate(-30deg); } 60% { opacity: 1; -webkit-transform: translate(0, 10px) scale(1) rotate(4deg); } 100% { opacity: 1; -webkit-transform: none; } }
@keyframes glassesPour { 0%, 30% { opacity: 0; transform: translate(-150px, -160px) scale(.3) rotate(-30deg); } 60% { opacity: 1; transform: translate(0, 10px) scale(1) rotate(4deg); } 100% { opacity: 1; transform: none; } }

/* 팜플렛 서체: 제목·탭·버튼·줄 이름은 둥근 굵은 영문(Cherry Bomb One) + 한글 채이 활짝 */
h1, h2, h3, .pill, .mn-tab, .pkd-cat, .rs-title, .st-title, .theme-fresh .mn-line h3, .itm-code { font-family: var(--f-round); }
.theme-deli .mn-line h3, .fridge-name, .mn-board-title { font-family: var(--f-script); }
/* 시작 화면 TASTE TEST 제목은 원래 서체(채이 활짝 Heavy) 유지 — 진서 11/23 */
.st-title { font-family: var(--f-display); }
.theme-deli .mn-line h3 { font-style: normal; font-size: 40px; }
.fridge-name { font-style: normal; font-size: 46px; }
.itm-code { font-style: normal; font-size: 22px; letter-spacing: .02em; }
.mn-tab { font-size: 30px; letter-spacing: .01em; }

/* 실물 시식 스티커 (결과 안경 사진 위) */
.rs-atc { position: absolute; right: -44px; top: -76px; z-index: 3; width: 164px; height: 164px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-style: normal;
  background: var(--yolk, #FFCC4D); color: var(--ketchup); -webkit-transform: rotate(-24deg); transform: rotate(-24deg);
  -webkit-clip-path: polygon(100% 50%, 90.2% 58%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58% 90.2%, 50% 100%, 42% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58%, 0% 50%, 9.8% 42%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42% 9.8%, 50% 0%, 58% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42%);
  clip-path: polygon(100% 50%, 90.2% 58%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58% 90.2%, 50% 100%, 42% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58%, 0% 50%, 9.8% 42%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42% 9.8%, 50% 0%, 58% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42%); }
.rs-atc b { display: block; max-width: 110px; font-family: var(--f-round); font-size: 19px; line-height: 21px; white-space: normal; word-break: keep-all; }
.rs-atc small { display: block; max-width: 104px; margin-top: 3px; font-weight: 700; font-size: 13px; line-height: 15px; color: var(--demi); word-break: keep-all; }
.rs-atc.hidden { display: none; }
.pkg-atc { font-family: var(--f-round); background: #FFCC4D; color: var(--ketchup); font-size: 15px; line-height: 16px; text-align: center; }
.pkg-atc { white-space: pre-line; }

/* 간판: Grocerant 로고만 (11/23 진서) */
.mn-sign { top: 18px; width: 380px; }
.mn-sign .mn-groc { position: static; display: block; width: 380px; -webkit-transform: rotate(-3deg); transform: rotate(-3deg); -webkit-filter: drop-shadow(3px 6px 0 rgba(90,26,20,.25)); filter: drop-shadow(3px 6px 0 rgba(90,26,20,.25)); }

/* ── 얼굴형 배지 시안 5종 (11/23, 진서 고르면 하나만 남김) — body.cfv-1 ~ cfv-5, 주소 뒤 ?cf=1~5 */
/* 1 가격표 버스트 스티커: 노란 톱니 원, 살짝 기울임 */
.cfv-1 .cf-badge { left: 835px; top: 452px; width: 250px; height: 250px; border-radius: 0; border: 0; box-shadow: none; padding: 0; flex-direction: column; gap: 4px;
  background: none; -webkit-transform: rotate(-8deg); transform: rotate(-8deg); }
.cfv-1 .cf-badge::before { content: ""; position: absolute; left: 0; top: 0; width: 250px; height: 250px; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon fill='%23FFCC4D' stroke='%235A1A14' stroke-width='1.6' stroke-linejoin='round' points='50,1 55.6,9.4 64.4,4 66.6,13.8 76.6,12 75.8,22 85.6,23.4 81,32.4 89.8,37 82.8,44.2 89.6,50 82.8,55.8 89.8,63 81,67.6 85.6,76.6 75.8,78 76.6,88 66.6,86.2 64.4,96 55.6,90.6 50,99 44.4,90.6 35.6,96 33.4,86.2 23.4,88 24.2,78 14.4,76.6 19,67.6 10.2,63 17.2,55.8 10.4,50 17.2,44.2 10.2,37 19,32.4 14.4,23.4 24.2,22 23.4,12 33.4,13.8 35.6,4 44.4,9.4'/%3E%3Ccircle cx='50' cy='50' r='31' fill='none' stroke='%23C3302A' stroke-width='1' stroke-dasharray='2 1.6'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  -webkit-filter: drop-shadow(3px 4px 3px rgba(0,0,0,.25)); filter: drop-shadow(3px 4px 3px rgba(0,0,0,.25)); }
.cfv-1 .cf-badge .face-ico { width: 44px; height: 56px; }
.cfv-1 .cf-badge b { font-size: 46px; line-height: 50px; color: var(--ketchup); max-width: 170px; }
.cfv-1 .cf-badge b.long { font-size: 30px; }

/* 2 주문서 쪽지: 크림 종이 + 아래 톱니 절취선 + ORDER 줄 — 11/23 진서 선택, 기본값 */
.cfv-2 .cf-badge { left: 800px; top: 500px; width: 320px; height: 190px; border-radius: 6px 6px 0 0; border: 0; padding: 34px 20px 10px; gap: 16px;
  background: #FFFDF6; box-shadow: 0 6px 10px rgba(0,0,0,.18); -webkit-transform: rotate(3deg); transform: rotate(3deg); }
.cfv-2 .cf-badge::before { content: "ORDER · FACE TYPE"; position: absolute; left: 20px; right: 20px; top: 10px; padding-bottom: 4px; border-bottom: 2px dashed var(--demi);
  font-family: var(--f-round); font-size: 17px; letter-spacing: .12em; color: var(--ketchup); text-align: left; }
.cfv-2 .cf-badge::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: linear-gradient(-45deg, transparent 10px, #FFFDF6 0) 0 0/20px 14px repeat-x, linear-gradient(45deg, transparent 10px, #FFFDF6 0) 0 0/20px 14px repeat-x; }
.cfv-2 .cf-badge .face-ico { width: 64px; height: 82px; }
.cfv-2 .cf-badge b { font-size: 58px; color: var(--demi); }

/* 3 리본 배너: 빨간 띠 + 접힌 꼬리, 흰 글씨 */
.cfv-3 .cf-badge { left: 740px; top: 560px; width: 440px; height: 118px; border-radius: 0; border: 0; padding: 0 30px; gap: 18px;
  background: var(--ketchup); color: #fff; box-shadow: 0 6px 0 #8E1F1A; }
.cfv-3 .cf-badge::before, .cfv-3 .cf-badge::after { content: ""; position: absolute; top: 26px; width: 90px; height: 104px; z-index: -1; background: #A92823; }
.cfv-3 .cf-badge::before { left: -64px; -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 26% 50%); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 26% 50%); }
.cfv-3 .cf-badge::after { right: -64px; -webkit-clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%); }
.cfv-3 .cf-badge .face-ico { width: 64px; height: 80px; background: #FFFDF6; border-radius: 50%; padding: 6px; }
.cfv-3 .cf-badge b { font-size: 62px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.18); }

/* 4 식품 라벨: 크림 타원 + 빨간 이중 테두리 + 위아래 작은 영문 */
.cfv-4 .cf-badge { left: 780px; top: 478px; width: 360px; height: 214px; border-radius: 50%; border: 5px solid var(--ketchup); padding: 0 30px; gap: 14px;
  background: #FFFDF6; box-shadow: inset 0 0 0 5px #FFFDF6, inset 0 0 0 7px var(--ketchup), 4px 6px 8px rgba(0,0,0,.2); }
.cfv-4 .cf-badge::before, .cfv-4 .cf-badge::after { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--f-round); color: var(--ketchup); letter-spacing: .14em; }
.cfv-4 .cf-badge::before { content: "YOUR FACE"; top: 26px; font-size: 18px; }
.cfv-4 .cf-badge::after { content: "★ FRESH TODAY ★"; bottom: 22px; font-size: 14px; }
.cfv-4 .cf-badge .face-ico { width: 62px; height: 78px; }
.cfv-4 .cf-badge b { font-size: 58px; color: var(--demi); }

/* 5 이쑤시개 깃발: 깅엄 깃발이 접시에 꽂힘 */
.cfv-5 .cf-badge { left: 800px; top: 470px; width: 330px; height: 150px; border-radius: 4px 14px 14px 4px; border: 4px solid var(--demi); padding: 0 24px 0 34px; gap: 16px;
  background: #fff url("../assets/ui/bg-gingham-red.jpg") center/220px; box-shadow: 4px 6px 6px rgba(0,0,0,.22); -webkit-transform: rotate(-4deg); transform: rotate(-4deg); }
.cfv-5 .cf-badge::before { content: ""; position: absolute; left: -10px; top: -20px; width: 10px; height: 270px; border-radius: 5px; background: linear-gradient(90deg, #E7C08B, #C9955A); box-shadow: 1px 2px 2px rgba(0,0,0,.25); }
.cfv-5 .cf-badge > * { position: relative; z-index: 1; }
.cfv-5 #face-icon { background: #FFFDF6; border-radius: 50%; padding: 6px; border: 3px solid var(--demi); display: flex; }
.cfv-5 .cf-badge .face-ico { width: 54px; height: 68px; }
.cfv-5 .cf-badge b { font-size: 54px; color: var(--demi); background: #FFFDF6; border: 3px solid var(--demi); border-radius: 12px; padding: 2px 14px; max-width: 200px; }
.cfv-5 .cf-badge b.long { font-size: 38px; }
.portrait.cfv-2 .cf-badge { left: 380px; top: 560px; }

/* 질문: 고른 가격표 그림이 장바구니로 날아감 (js flyToBasket) */
.fly { position: fixed; margin: 0; z-index: 999; pointer-events: none; display: block;
  -webkit-transition: -webkit-transform .52s cubic-bezier(.45,-0.5,.75,1), opacity .52s ease-in; transition: transform .52s cubic-bezier(.45,-0.5,.75,1), opacity .52s ease-in; }
.fly svg { width: 100%; height: 100%; }
.bk-bump { -webkit-animation: bkBump .35s ease-out; animation: bkBump .35s ease-out; }
@-webkit-keyframes bkBump { 0% { -webkit-transform: scale(1); } 40% { -webkit-transform: scale(1.25) rotate(-8deg); } 100% { -webkit-transform: scale(1); } }
@keyframes bkBump { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(1); } }

/* 질문 화면(마트)에서만 커서를 바코드 스캐너로 — 64px로 되돌림(진서 11/26, 36px는 너무 작음), 레티나는 2배 그림, 끝점(20,16)이 스캐너 창 */
#s-quiz, #s-quiz .card, #s-quiz button {
  cursor: url("../assets/ui/cursor-scanner.png") 20 16, pointer;
  cursor: -webkit-image-set(url("../assets/ui/cursor-scanner.png") 1x, url("../assets/ui/cursor-scanner@2x.png") 2x) 20 16, pointer;
}

/* 실물 안내 스티커: 1위가 실물이 없으면 테이블에 있는 비슷한 맛 안경 그림+이름 (손님은 모델 이름을 모르니까) */
.rs-atc:not(.hidden) img { display: block; width: 104px; height: 44px; object-fit: contain; margin: 2px 0 0; }
.rs-atc.alt { width: 196px; height: 196px; right: -60px; top: -96px; }

/* ── 가벼운 모드(html.lite: 구형 사파리 자동): 구형 그래픽에서 무거운 흐림·그림자 필터를 끈다 (영수증 흑백 로고 필터는 남김) */
.lite *:not(.r-logo):not(.r-mascot-img) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; -webkit-filter: none !important; filter: none !important; }
.lite .glass { background: rgba(255, 255, 255, .55); }

/* 서브 맛 카드 위 DELI/FRESH/BEVERAGE 칸: 구형 사파리에서 flex:1이 안 먹어 붙어 버려서 표 칸으로 */
.rs-mini .mn-cells { display: table; width: 100%; table-layout: fixed; }
.rs-mini .mn-cells span { display: table-cell; text-align: center; }
/* 주문서 설명: 빨간 줄(41px 간격) 사이에 한 줄씩 들어가게 */
.rs-slip > span.sl-tag, .rs-slip > span.sl-tag.long { top: 386px; font-size: 15px; line-height: 41px; }
/* 인쇄: 브라우저(사파리)가 여백을 넣어 오른쪽이 잘리던 것 → 영수증 전체를 살짝 줄여 72mm 인쇄 폭 안에 */
@media print {
  .paper { margin: 0 !important; zoom: .86; }
}

/* '라벨 쓰는 법' 강조: 파슬리 초록 ↔ 오믈렛 노랑으로 번갈아 깜빡이며 3초마다 살짝 흔들 (영수증 받은 뒤 라벨 쓰기로 이어지게) */
.rs-label { background: var(--parsley, #3E7B3A); color: #fff; -webkit-animation: labelCall 3s ease-in-out infinite; animation: labelCall 3s ease-in-out infinite; }
@-webkit-keyframes labelCall { 0%, 60%, 100% { -webkit-transform: none; background: #3E7B3A; color: #fff; } 66% { -webkit-transform: rotate(-6deg) scale(1.06); background: #FFCC4D; color: #5A1A14; } 72% { -webkit-transform: rotate(5deg) scale(1.06); } 78% { -webkit-transform: rotate(-3deg) scale(1.04); background: #FFCC4D; color: #5A1A14; } 86% { -webkit-transform: none; } }
@keyframes labelCall { 0%, 60%, 100% { transform: none; background: #3E7B3A; color: #fff; } 66% { transform: rotate(-6deg) scale(1.06); background: #FFCC4D; color: #5A1A14; } 72% { transform: rotate(5deg) scale(1.06); } 78% { transform: rotate(-3deg) scale(1.04); background: #FFCC4D; color: #5A1A14; } 86% { transform: none; } }

/* 결과 버튼 위 화살표 말풍선: 영수증·라벨 버튼을 놓치지 않게 (11/26 현장 피드백) */
.rs-hint { overflow: visible; z-index: 6; }
.rs-hint::before { content: attr(data-hint) " \2193"; position: absolute; left: 50%; bottom: 100%; margin-bottom: 6px; padding: 5px 14px; border-radius: 12px; background: #FFCC4D; color: #5A1A14; font-size: 17px; font-weight: 900; line-height: 1.2; white-space: nowrap; box-shadow: 0 3px 0 rgba(0,0,0,.2); pointer-events: none;
  -webkit-transform: translateX(-50%); transform: translateX(-50%); -webkit-animation: hintBob 1.2s ease-in-out infinite; animation: hintBob 1.2s ease-in-out infinite; }
.portrait .rs-hint::before { font-size: 28px; }
@-webkit-keyframes hintBob { 0%, 100% { -webkit-transform: translate(-50%, 0); } 50% { -webkit-transform: translate(-50%, -5px); } }
@keyframes hintBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
