/* 넓은 화면은 3:4 폴드형, 좁고 긴 화면은 하단 미디어 쿼리의 세로형 배치.
   아이콘과 글자는 너비(cqw)를 기준으로 유지하고, 세로 여유는 행 사이에 배분합니다. */
:root { color-scheme: light; --brand-rgb: 0, 75, 51; --wallpaper-top: #465174; --wallpaper-bottom: #69868f; --widget-surface: rgb(249 255 248 / .9); --widget-border: rgb(48 130 67 / .16); --status-bar-height: 5.3cqw; --navigation-area-height: 4cqw; --widget-row-margin: 1.35cqw; --widget-gap: calc(var(--widget-row-margin) * 2); --lower-widget-offset: 8cqw; --section-lift: calc(var(--widget-gap) + var(--widget-row-margin)); --oneui-card-radius: 3.2cqw; --oneui-icon-radius: 27%; --oneui-card-shadow: inset 0 0 0 .14cqw var(--widget-border), 0 .45cqw 1.2cqw rgb(24 82 42 / .14); --oneui-icon-shadow: inset 0 0 0 .12cqw rgb(255 255 255 / .36), 0 .45cqw 1.1cqw rgb(25 70 40 / .18); font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #edf0f4; }
.page { min-height: 100svh; display: grid; place-items: center; padding: 20px; }
.device-wrap { width: min(100%, 660px, calc((100svh - 40px) * .75)); min-width: 260px; container-type: inline-size; }
.store-footer { display: flex; align-items: center; gap: clamp(10px, 2cqw, 14px); margin: 2.4cqw 2cqw 0; padding: 1.2cqw 1cqw; color: #667069; font-size: clamp(11px, 1.8cqw, 14px); font-weight: 500; line-height: 1.65; letter-spacing: -.02em; text-align: left; }
.store-footer-logo, .store-footer-consent { width: clamp(44px, 9cqw, 60px); height: clamp(44px, 9cqw, 60px); flex: 0 0 auto; }
.store-footer-logo { border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgb(0 75 51 / .12); }
.store-footer-info { flex: 1; min-width: 0; }
.store-footer p { margin: 0; }
.store-footer-row { display: flex; align-items: center; gap: .55em; overflow-wrap: anywhere; }
.store-footer-row strong:first-child { flex-shrink: 0; }
.store-footer-row strong { font-weight: 700; }
.store-footer-consent { display: grid; place-items: center; overflow: visible; }
.store-footer-consent img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Scale the full official PNG so its 101px emblem matches the opposite logo. */
  transform: scale(1.515) translate(-.3%, 2.3%);
}
.store-footer-divider { display: inline-flex; align-items: center; align-self: stretch; color: #a0aaa3; font-weight: 400; line-height: 1; }
.device {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  padding: .95%; border: .25cqw solid #65676d; border-radius: 4.5cqw;
  background: #15161a;
  box-shadow: 0 0 0 .16cqw #b7bac0, 0 1.8cqw 4cqw #252b3828, inset 0 0 0 .15cqw #020304;
}
.device-side-key {
  position: absolute; right: -.75cqw; width: .75cqw;
  border: .07cqw solid #56585e; border-left: 0; border-radius: 0 .18cqw .18cqw 0;
  background: linear-gradient(90deg, #65676d, #777a80 55%, #62646b);
  box-shadow: .04cqw 0 .08cqw #15161a28, inset 0 .07cqw .08cqw #c6c8cc30;
  pointer-events: none;
}
.device-volume-key { top: 22%; height: 12cqw; padding: 0; display: grid; grid-template-rows: 1fr 1fr; pointer-events: auto; }
.volume-key { position: relative; right: 0; width: 3.2cqw; height: 100%; justify-self: end; padding: 0; border: 0; appearance: none; background: transparent; cursor: pointer; touch-action: manipulation; }
.device-volume-key::after { content: ""; position: absolute; z-index: 2; top: 50%; left: 0; right: 0; height: .08cqw; transform: translateY(-50%); background: rgb(22 23 27 / .28); pointer-events: none; }
.device-volume-key:has(.volume-key:active) { filter: brightness(.82); }
.volume-key:focus-visible { outline: .25cqw solid #22b45d; outline-offset: .15cqw; }
.device-power-key { top: 35%; height: 7cqw; padding: 0; min-width: 0; appearance: none; pointer-events: auto; cursor: pointer; touch-action: manipulation; }
.device-power-key:focus-visible { outline: .25cqw solid #22b45d; outline-offset: .3cqw; }
.device-power-key:active { filter: brightness(.85); }
.screen.is-powered-off { background: #08090b; }
.screen.is-powered-off > *, .screen.is-powered-off::after { display: none !important; }
.screen {
  --profile-left: 5.5cqw; --profile-top: 8.4cqw; --profile-size: 17cqw;
  position: absolute; inset: .95cqw; overflow: hidden; border-radius: 3.4cqw;
  background-color: var(--wallpaper-bottom);
  background-image: linear-gradient(rgb(255 255 255 / .35), rgb(255 255 255 / .35)), var(--wallpaper-image), linear-gradient(145deg, var(--wallpaper-top), var(--wallpaper-bottom));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* 접힌 자국과 유리 반사는 콘텐츠를 가리지 않을 정도로 아주 약하게만 표시합니다. */
.screen::before {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 47.4%, rgb(0 0 0 / .006) 49.35%, rgb(255 255 255 / .012) 50%, rgb(0 0 0 / .006) 50.65%, transparent 52.6%),
    linear-gradient(128deg, rgb(255 255 255 / .018) 0%, rgb(255 255 255 / .006) 17%, transparent 34%),
    radial-gradient(ellipse at 17% -8%, rgb(255 255 255 / .022), transparent 46%);
  box-shadow: inset 0 0 2.2cqw rgb(255 255 255 / .012), inset 0 0 3cqw rgb(0 0 0 / .012);
}
.screen-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 25%; pointer-events: none; }
/* 중앙의 1초 로고가 기존 프로필과 같은 좌표/크기로 이동합니다. */
:root { --boot-travel-time: 1200ms; --boot-travel-ease: cubic-bezier(.45, 0, .55, 1); }
.boot-overlay { display: none; position: absolute; inset: 0; overflow: hidden; }
.boot-pending .boot-overlay { display: block; }
.boot-pending .store-logo { visibility: hidden; }
.boot-backdrop { position: absolute; z-index: 30; inset: 0; background: #013d24; transition: opacity 350ms ease-out; }
/* 초록 바탕과 흰 심볼을 원본 색상 그대로 표시하고 같은 새 프로필로 이동합니다. */
.boot-logo { position: absolute; z-index: 31; left: calc(50% - 28cqw); top: calc(50% - 28cqw); width: 56cqw; height: 56cqw; object-fit: contain; opacity: 0; transition-property: left, top, width, height; transition-duration: var(--boot-travel-time); transition-timing-function: var(--boot-travel-ease); }
.boot-overlay.is-ready .boot-logo { opacity: 1; }
.boot-logo { border: .16cqw solid transparent; border-radius: 50%; }
.boot-overlay.is-docking .boot-logo { left: var(--boot-dock-left, var(--profile-left)); top: var(--boot-dock-top, var(--profile-top)); width: var(--boot-dock-size, var(--profile-size)); height: var(--boot-dock-size, var(--profile-size)); padding: .6cqw; border-color: #004b3330; background: #fff; box-shadow: 0 .35cqw 1.1cqw #004b3314; mix-blend-mode: normal; }
.boot-overlay.is-revealing .boot-backdrop { opacity: 0; }
/* 로고와 같은 프레임에 같은 시간·곡선으로 시작해서 함께 완성됩니다.
   전원 켜기는 명시적인 재생 요청이므로 이 전환을 생략하지 않습니다. */
.boot-pending .banner-top { clip-path: inset(0 0 100% 0); transition: clip-path var(--boot-travel-time) var(--boot-travel-ease); }
.boot-pending.boot-banner-ready .banner-top { clip-path: inset(0 0 0 0); }
/* 앱과 위젯도 로고와 같은 시간·곡선으로 아래에서 올라와 동시에 도착합니다.
   translate는 기존 hover의 transform과 독립적으로 동작합니다. */
.boot-pending .home-grid > :is(.widget, .links-area, .contact-widget) { opacity: 0; translate: 0 12cqw; transition: opacity var(--boot-travel-time) var(--boot-travel-ease), translate var(--boot-travel-time) var(--boot-travel-ease); }
.boot-pending.boot-home-ready .home-grid > :is(.widget, .links-area, .contact-widget) { opacity: 1; translate: 0 0; }
.status-bar { position: absolute; top: 0; left: 0; right: 0; height: var(--status-bar-height); border-bottom: .1cqw solid rgb(0 75 51 / .08); background: rgb(0 75 51 / .035); color: #20232b; }
.status-icons { position: absolute; top: calc(50% + .35cqw); right: 4cqw; height: 3.1cqw; display: flex; align-items: center; gap: .85cqw; transform: translateY(-50%); }
.status-icons svg { display: block; flex-shrink: 0; }
.status-signal { width: 2.5cqw; height: 2.8cqw; }
.status-wifi { width: 3.1cqw; height: 3.1cqw; }
.status-battery { width: 4.3cqw; height: 2.4cqw; }
.gesture-bar { position: absolute; z-index: 4; bottom: 1.3cqw; left: 50%; width: 22cqw; height: .65cqw; transform: translateX(-50%); border-radius: 1cqw; background: #ffffffe6; pointer-events: none; }
.volume-panel {
  --volume-position: 8.5cqw;
  position: absolute; z-index: 26; top: 13cqw; right: 2.3cqw;
  width: 8.2cqw; height: 31cqw; padding: 2cqw 1.1cqw 1.2cqw;
  border: .12cqw solid rgb(25 30 38 / .08); border-radius: 4.2cqw;
  background: rgb(250 250 252 / .96); color: #353940;
  box-shadow: 0 1cqw 3cqw rgb(12 20 32 / .25), inset 0 0 0 .08cqw #fff;
  display: flex; flex-direction: column; align-items: center; gap: 1.1cqw;
  transform-origin: right center;
}
.volume-panel[hidden] { display: none; }
.volume-panel.is-visible { animation: volume-panel-in 180ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes volume-panel-in { from { opacity: 0; transform: translateX(2cqw) scale(.92); } to { opacity: 1; transform: translateX(0) scale(1); } }
.volume-slider { position: relative; width: 4.1cqw; height: 17cqw; flex: 0 0 17cqw; border-radius: 2.2cqw; background: #e6e8ec; overflow: hidden; }
.volume-level { position: absolute; left: 0; right: 0; bottom: 0; height: var(--volume-position); background: #18a85d; transition: height 130ms ease; }
.volume-thumb { position: absolute; z-index: 2; left: 50%; top: 0; width: 2.9cqw; height: 2.9cqw; transform: translate(-50%, -50%); border: .38cqw solid #fff; border-radius: 50%; background: #18a85d; box-shadow: 0 .25cqw .7cqw #0003; }
.volume-icon { width: 3.3cqw; height: 3.3cqw; flex: 0 0 3.3cqw; color: #34383f; }
.volume-panel.is-muted .volume-wave { display: none; }
.volume-vibrate-icon { display: none; }
.volume-panel.is-vibrate .volume-speaker-icon { display: none; }
.volume-panel.is-vibrate .volume-vibrate-icon { display: block; }
.volume-more { height: 2.2cqw; color: #6f737b; font-size: 2.2cqw; font-weight: 800; line-height: .55; letter-spacing: .15cqw; }
.screen.phone-open::after { content: ""; position: absolute; z-index: 11; left: 0; right: 0; bottom: 0; height: var(--navigation-area-height); background: #fafafa; }
.screen.phone-open .gesture-bar { z-index: 13; background: #202124; }
.phone-viewer { position: absolute; z-index: 12; top: var(--status-bar-height); right: 0; bottom: var(--navigation-area-height); left: 0; overflow: hidden; background: #fafafa; color: #202124; }
.phone-viewer[hidden] { display: none; }
.phone-viewer-header { height: 10cqw; padding: 2.8cqw 4.5cqw; display: flex; align-items: center; justify-content: space-between; font-size: 3.2cqw; line-height: 1; }
.phone-viewer-close { position: absolute; top: 1.8cqw; right: 2.2cqw; width: 6.5cqw; height: 6.5cqw; padding: 1.35cqw; border: 0; background: transparent; color: #202124; cursor: pointer; }
.phone-viewer-close svg { display: block; width: 100%; height: 100%; }
.phone-viewer-close:focus-visible { outline: .4cqw solid var(--phone-green, #22b45d); outline-offset: -.4cqw; border-radius: 50%; }
.dial-contact { position: absolute; top: 14cqw; left: 5cqw; right: 5cqw; display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; text-align: center; }
.dial-number { min-width: 31cqw; min-height: 1.2em; font-size: 5cqw; font-weight: 550; line-height: 1.2; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.dial-saved-details { display: flex; flex-direction: column; align-items: center; gap: .55cqw; opacity: 0; transform: translateY(.8cqw) scale(.96); transition: opacity 200ms ease, transform 200ms ease; }
.dial-saved-details.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.dial-saved-contact { display: flex; align-items: center; justify-content: center; gap: 1.1cqw; }
.dial-saved-contact strong { font-size: 3cqw; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
.dial-profile { width: 4.5cqw; height: 4.5cqw; flex: 0 0 4.5cqw; padding: .35cqw; border: .22cqw solid rgba(var(--brand-rgb), .65); border-radius: 50%; background: #fff; box-shadow: 0 .3cqw .8cqw rgb(25 35 55 / .18); overflow: hidden; }
.dial-profile img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.dial-recent-call { color: #9b9da3; font-size: 1.75cqw; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; white-space: nowrap; }
.dial-pad { position: absolute; top: 37cqw; left: 14cqw; right: 14cqw; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10cqw; row-gap: 4.5cqw; }
.dial-key { width: 10cqw; height: 10cqw; justify-self: center; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 5.4cqw; font-weight: 450; line-height: .9; font-variant-numeric: tabular-nums; }
.dial-key small { margin-top: 1cqw; color: #6f6f6f; font-size: 1.6cqw; font-weight: 500; line-height: 1; letter-spacing: .04em; }
.dial-key.is-pressed { animation: dial-key-press 180ms ease-out both; }
@keyframes dial-key-press {
  0%, 100% { transform: scale(1); background: transparent; box-shadow: none; }
  45% { transform: scale(.86); background: rgba(var(--brand-rgb), .14); box-shadow: inset 0 0 0 .18cqw rgba(var(--brand-rgb), .2); }
}
.dial-call { position: absolute; left: 50%; bottom: 8cqw; width: 10.5cqw; height: 10.5cqw; padding: 2.8cqw; transform: translateX(-50%); border-radius: 50%; background: var(--phone-green, #22b45d); color: #fff; }
.dial-call svg { display: block; width: 100%; height: 100%; }
.dial-call:focus-visible { outline: .45cqw solid #128846; outline-offset: .5cqw; }
.screen-time { position: absolute; top: 50%; left: 4.5cqw; display: flex; align-items: baseline; gap: 1.5cqw; color: #20232b; font-size: 2.8cqw; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateY(-50%); }
/* 한글 날짜가 숫자 시간보다 높게 보이는 만큼 시각적으로 아래에 맞춥니다. */
.screen-date { font-size: inherit; line-height: inherit; transform: translateY(.06em); }
.punch-hole { position: absolute; top: 50%; left: 50%; width: 1.8cqw; height: 1.8cqw; transform: translate(-50%, -50%); border-radius: 50%; background: #080a0e; border: .25cqw solid #15181e; box-shadow: 0 0 0 .12cqw #8e9199; }
.store-logo { position: absolute; z-index: 1; top: calc(50% + var(--status-bar-height) / 2); left: var(--profile-left); width: var(--profile-size); height: var(--profile-size); padding: .6cqw; border: .16cqw solid #004b3330; border-radius: 50%; background: #fff; box-shadow: 0 .35cqw 1.1cqw #004b3314; overflow: hidden; transform: translateY(-50%); }
.store-logo.has-image img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.store-logo { appearance: none; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.store-logo:focus-visible { outline: .4cqw solid #004b33; outline-offset: .6cqw; }
.profile-viewer { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgb(0 0 0 / .72); outline: none; }
.profile-viewer[hidden] { display: none; }
.profile-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 3cqw; text-align: center; }
.profile-card img { display: block; width: 56cqw; height: 56cqw; padding: 1.8cqw; border: .3cqw solid #92b7a4; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 1.5cqw 5cqw #0004; }
.profile-card figcaption { width: 100%; min-height: 1.4em; color: #fff; font: inherit; font-size: 3.8cqw; font-weight: 650; line-height: 1.4; letter-spacing: .04em; }
.screen.stats-open::after { content: ""; position: absolute; z-index: 23; left: 0; right: 0; bottom: 0; height: var(--navigation-area-height); background: #f5f6f8; }
.screen.stats-open .gesture-bar { z-index: 25; background: #202124; }
.stats-viewer { position: absolute; z-index: 24; top: var(--status-bar-height); right: 0; bottom: var(--navigation-area-height); left: 0; overflow-y: auto; scrollbar-width: none; background: #f5f6f8; color: #171a21; outline: none; }
.stats-viewer::-webkit-scrollbar { display: none; }
.stats-viewer[hidden] { display: none; }
.stats-header { position: sticky; z-index: 2; top: 0; height: 10cqw; padding: 0 3cqw 0 4.5cqw; display: flex; align-items: center; justify-content: space-between; background: rgb(245 246 248 / .96); backdrop-filter: blur(1.2cqw); }
.stats-header h2 { margin: 0; font-size: 4cqw; font-weight: 750; line-height: 1.2; letter-spacing: -.05em; }
.stats-actions { display: flex; align-items: center; gap: .6cqw; }
.stats-save { height: 5.8cqw; padding: 0 1.7cqw; border: .16cqw solid rgb(0 75 51 / .18); border-radius: 2.9cqw; background: #fff; color: #005b3e; display: flex; align-items: center; gap: .7cqw; font: inherit; font-size: 1.9cqw; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 .25cqw .7cqw #0000000d; }
.stats-save svg { width: 2.4cqw; height: 2.4cqw; }
.stats-save:hover:not(:disabled) { background: #ecf7f1; }
.stats-save:disabled { opacity: .45; cursor: default; }
.stats-save:focus-visible { outline: .35cqw solid rgba(var(--brand-rgb), .65); outline-offset: .2cqw; }
.stats-close { width: 6.5cqw; height: 6.5cqw; padding: 1.35cqw; border: 0; border-radius: 50%; background: transparent; color: #202124; cursor: pointer; }
.stats-close svg { display: block; width: 100%; height: 100%; }
.stats-close:hover { background: rgb(0 0 0 / .06); }
.stats-close:focus-visible { outline: .4cqw solid rgba(var(--brand-rgb), .7); outline-offset: -.3cqw; }
.stats-content { padding: 1cqw 4.5cqw 5cqw; }
.market-price-upload { display: grid; gap: .5rem; padding: .75rem; margin-bottom: .75rem; border-radius: .75rem; background: white; font-size: clamp(12px, 2.5cqw, 15px); }
.market-price-upload label { font-weight: 700; }
.market-price-upload input { min-width: 0; max-width: 100%; font: inherit; }
.market-price-upload button { justify-self: start; padding: .4rem .75rem; border: 0; border-radius: .5rem; background: #004b33; color: white; font: inherit; cursor: pointer; }
.market-price-viewer { position: absolute; z-index: 25; inset: 0; display: grid; place-items: center; padding: 5cqw 4cqw; background: rgb(0 0 0 / .72); }
.market-price-viewer[hidden], .market-price-viewer [hidden] { display: none; }
.market-price-panel { width: 100%; min-width: 0; min-height: 0; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 3cqw; background: white; color: #171a21; }
.market-price-panel { --price-inset: clamp(10px, 3cqw, 20px); }
.market-price-panel header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 4px; padding: .25rem var(--price-inset); }
.market-price-panel h2 { margin: 0; font-size: clamp(12px, 3cqw, 20px); }
.market-price-close { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 28px; cursor: pointer; }
.market-price-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 var(--price-inset) var(--price-inset); scrollbar-width: none; }
.market-price-scroll::-webkit-scrollbar { display: none; }
.market-price-scroll p { margin: 0; padding: 1rem; }
.market-price-scroll img { display: block; width: 100%; height: auto; }
button.shortcut[aria-controls="place-picker"] { border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.place-picker-panel { max-width: 440px; }
.place-picker-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5cqw; padding: .25rem var(--price-inset) var(--price-inset); overflow: auto; }
.place-consultant { display: grid; justify-items: center; align-content: start; min-width: 0; gap: clamp(6px, 2cqw, 12px); padding: clamp(8px, 2.5cqw, 14px); border: 1px solid #d9e6dc; border-radius: clamp(10px, 3cqw, 18px); background: #f5f8f4; color: #17352b; text-align: center; text-decoration: none; }
.place-consultant:focus-visible { outline: 2px solid #004b33; outline-offset: -3px; }
.place-consultant-branch { color: #286049; font-size: clamp(17px, 4.5cqw, 25px); font-weight: 900; line-height: 1.2; }
.place-consultant-portrait { position: relative; width: min(100%, 136px); clip-path: circle(45%); }
.place-consultant-portrait img { display: block; width: 100%; height: auto; }
.place-consultant-portrait .place-expression { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .place-consultant:hover { border-color: #638e78; background: #edf4ee; box-shadow: inset 0 0 0 1px #638e78; }
  .place-picker-branches:has(> .place-consultant:hover) > .place-consultant:not(:hover) { filter: grayscale(.65) brightness(.9); }
  .place-consultant:hover .place-expression-happy,
  .place-picker-branches:has(> .place-consultant:hover) > .place-consultant:not(:hover) .place-expression-sad { opacity: 1; }
}
.place-consultant strong { font-size: clamp(11px, 3.4cqw, 17px); line-height: 1.2; letter-spacing: -.045em; white-space: nowrap; transform: translateY(clamp(-4px, -.8cqw, -2px)); }
.place-consultant-particle { font-weight: 500; }
.place-consultant-cta { width: 100%; padding: .5em .2em; border-radius: 999px; background: #004b33; color: #fff; font-size: clamp(11px, 2.8cqw, 14px); font-weight: 700; white-space: nowrap; }
.stats-visitor-card { min-height: 17cqw; padding: 2.5cqw 3cqw; border-radius: var(--oneui-card-radius); background: linear-gradient(135deg, #006d49, #004b33); color: #fff; box-shadow: 0 .7cqw 2cqw rgb(0 75 51 / .2); display: grid; grid-template-columns: 1fr auto; align-items: center; }
.stats-visitor-card > span { font-size: 2.7cqw; font-weight: 650; }
.stats-visitors { font-size: 6cqw; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.stats-source { grid-column: 1 / -1; margin-top: 1.1cqw; color: rgb(255 255 255 / .72); font-size: 1.8cqw; font-weight: 550; }
.stats-last-saved { grid-column: 1 / -1; margin-top: .45cqw; color: rgb(255 255 255 / .86); font-size: 1.8cqw; font-weight: 650; font-variant-numeric: tabular-nums; }
.stats-total-card { min-height: 10cqw; margin-top: 2.5cqw; padding: 2cqw 3cqw; border-radius: var(--oneui-card-radius); background: #fff; color: #1d2522; box-shadow: var(--oneui-card-shadow); display: flex; align-items: center; justify-content: space-between; }
.stats-total-card > span { font-size: 2.5cqw; font-weight: 700; }
.stats-total { color: #004b33; font-size: 3.6cqw; font-weight: 780; line-height: 1; font-variant-numeric: tabular-nums; }
.stats-list { margin-top: 2.5cqw; overflow: hidden; border-radius: var(--oneui-card-radius); background: #fff; box-shadow: var(--oneui-card-shadow); }
.stats-row { min-height: 7.2cqw; padding: 1.2cqw 2.2cqw; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1.15cqw; gap: .7cqw 2cqw; align-items: center; border-bottom: .12cqw solid #e8eaed; }
.stats-row:last-child { border-bottom: 0; }
.stats-label { min-width: 0; overflow: hidden; color: #292d35; font-size: 2.25cqw; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.stats-count { color: #004b33; font-size: 2.4cqw; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.stats-bar { grid-column: 1 / -1; height: 1.15cqw; overflow: hidden; border-radius: .7cqw; background: #edf0f2; }
.stats-bar span { display: block; width: var(--stats-width, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22b45d, #006d49); transition: width 300ms ease; }
.stats-password-layer { position: absolute; z-index: 3; top: 10cqw; right: 0; bottom: 0; left: 0; padding: 5cqw; display: grid; place-items: center; background: rgb(0 0 0 / .52); }
.stats-password-layer[hidden] { display: none; }
.stats-viewer.is-authenticating .stats-header, .stats-viewer.is-authenticating .stats-content { visibility: hidden; }
.stats-viewer.is-authenticating .stats-password-layer { top: 0; }
.stats-password-card { width: min(100%, 58cqw); padding: 4cqw; border-radius: var(--oneui-card-radius); background: #fff; box-shadow: 0 2cqw 6cqw #0005; display: flex; flex-direction: column; }
.stats-password-card h3 { margin: 0 0 3cqw; color: #171a21; font-size: 3.5cqw; font-weight: 750; line-height: 1.2; }
.stats-password-card label { margin-bottom: 1cqw; color: #4c515a; font-size: 2.1cqw; font-weight: 650; }
.stats-password-card input { width: 100%; height: 7.5cqw; padding: 0 2cqw; border: .18cqw solid #bcc2c8; border-radius: 1.5cqw; background: #f8f9fa; color: #171a21; font: inherit; font-size: 2.8cqw; letter-spacing: .08em; outline: none; }
.stats-password-card input:focus { border-color: #08764e; box-shadow: 0 0 0 .35cqw rgb(0 107 73 / .14); }
.stats-password-error { min-height: 2.6cqw; margin-top: 1cqw; color: #c62828; font-size: 1.8cqw; font-weight: 600; line-height: 1.35; }
.stats-password-actions { margin-top: 2cqw; display: flex; justify-content: flex-end; gap: 1.2cqw; }
.stats-password-actions button { min-width: 10cqw; height: 6cqw; padding: 0 2cqw; border: 0; border-radius: 1.5cqw; font: inherit; font-size: 2.1cqw; font-weight: 700; cursor: pointer; }
.stats-password-cancel { background: #eef0f2; color: #34383f; }
.stats-password-confirm { background: #006d49; color: #fff; }
.stats-password-confirm:disabled { opacity: .5; cursor: wait; }
.stats-password-actions button:focus-visible { outline: .35cqw solid rgba(var(--brand-rgb), .65); outline-offset: .25cqw; }
.home-grid {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
}
.banner { grid-column: 1 / -1; min-width: 0; min-height: 0; overflow: hidden; background: #fff; }
.banner-top { --banner-green-strip: 3cqw; position: relative; grid-row: 1 / 3; margin-bottom: var(--widget-gap); overflow: visible; }
.banner-top::after { content: ""; position: absolute; z-index: 1; right: 0; bottom: calc(-1 * var(--banner-green-strip)); left: 0; height: var(--banner-green-strip); background: linear-gradient(to right, #37b54d 0%, #169054 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .75) 100%); mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .75) 100%); pointer-events: none; }
.banner.banner-top > img:first-child { height: calc(100% - var(--status-bar-height)); margin-top: var(--status-bar-height); object-fit: fill; object-position: center; background: #fff; }
.banner.banner-top > .banner-bottom-art { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; width: 100%; height: auto; margin: 0; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.banner-top .store-logo { z-index: 2; }
.widget { grid-column: 1 / -1; min-width: 0; min-height: 0; margin: var(--widget-row-margin) 4.5cqw; padding: 0 2cqw; border-radius: var(--oneui-card-radius); background: var(--widget-surface); box-shadow: var(--oneui-card-shadow); backdrop-filter: blur(1.1cqw) saturate(.9); overflow: hidden; display: flex; align-items: center; gap: 2cqw; transition: transform 180ms ease, box-shadow 180ms ease; }
.widget-1 { grid-row: 3; top: 1.8cqw; }
.widget-2 { grid-row: 4; top: 1.8cqw; }
.widget-large { grid-row: 7 / 9; grid-column: 1 / 3; align-self: start; height: calc(100% - var(--widget-row-margin) - var(--widget-row-margin) + var(--lower-widget-offset)); margin: var(--widget-row-margin) 1.35cqw var(--widget-row-margin) 4.5cqw; padding: 0; border-radius: var(--oneui-card-radius); }
/* 오른쪽 운영 정보와 전화 위젯이 왼쪽 리뷰 위젯의 높이를 나눠 사용합니다. */
.home-grid { --contact-widget-height: 8.4cqw; --phone-green: #22b45d; }
.widget-lower-right {
  --consent-height: 4.2cqw; --consent-inset: 2cqw;
  grid-row: 7 / 9; grid-column: 3 / 5; align-self: start;
  height: calc(100% - var(--widget-row-margin) - var(--widget-row-margin) + var(--lower-widget-offset) - var(--contact-widget-height) - var(--widget-gap));
  margin: var(--widget-row-margin) 4.5cqw var(--widget-row-margin) 1.35cqw;
  padding: 0; border-radius: var(--oneui-card-radius); justify-content: center;
}
.store-action-buttons {
  position: absolute; right: var(--consent-inset); bottom: 1.15cqw; left: var(--consent-inset);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1cqw;
  min-height: var(--consent-height);
}
.home-grid .store-action-button {
  display: grid; place-items: center; width: 100%; min-width: 0; min-height: var(--consent-height);
  padding: .4cqw 1cqw; border: 0; border-radius: 1cqw;
  background: var(--phone-green); color: #fff;
  font: inherit; font-size: 2.2cqw; font-weight: 700; line-height: 1.4;
  text-align: center; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: filter 180ms ease, box-shadow 180ms ease;
}
.store-action-button:hover { filter: brightness(1.15); box-shadow: 0 .5cqw 1.5cqw rgba(var(--brand-rgb), .25); }
.store-action-button:focus-visible { outline: .4cqw solid rgba(var(--brand-rgb), .75); outline-offset: .5cqw; }
.store-hours { position: absolute; top: 1.4cqw; bottom: calc(var(--consent-inset) + var(--consent-height)); left: 2cqw; right: 2cqw; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; color: #161b2b; }
.store-hours-heading { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 4.4cqw; flex-shrink: 0; }
.store-hours-title { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-start; }
.store-hours-title h2 { margin: 0; font-size: 2.9cqw; font-weight: 700; line-height: 1.3; white-space: nowrap; transform: translateX(1cqw); }
.store-hours-icon { position: absolute; left: 0; top: 50%; display: block; width: 4.4cqw; height: 4.4cqw; transform: translateY(-50%) scaleX(1.08); color: var(--phone-green); }
.store-open-status { display: none; align-items: center; justify-content: center; gap: .55cqw; color: #59606a; }
.store-status-dot { display: block; width: .9cqw; height: .9cqw; flex: 0 0 auto; border-radius: 50%; background: #b8bdc3; box-shadow: inset 0 .08cqw .18cqw rgb(0 0 0 / .16); }
.hours-row-dot { display: block; width: 1.25cqw; height: 1.25cqw; flex: 0 0 auto; border-radius: 50%; background: #b8bdc3; box-shadow: inset 0 .1cqw .22cqw rgb(0 0 0 / .18); }
.hours-table { width: 100%; margin-block: auto; border: .16cqw solid rgb(34 180 93 / .2); border-radius: 1cqw; border-spacing: 0; overflow: hidden; font-size: 2.1cqw; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.hours-table th, .hours-table td { padding: .5cqw .35cqw; border-bottom: .12cqw solid rgb(34 180 93 / .16); text-align: left; white-space: nowrap; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { width: 7.2cqw; padding-left: .55cqw; background: transparent; color: #145b36; }
.hours-table td:last-child { letter-spacing: -.03em; }
.hours-table .hours-value { padding-right: 1.15cqw; }
.hours-value-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65cqw; }
.hours-day { display: flex; justify-content: space-between; width: 3em; }
.hours-day-wrap { display: inline-flex; min-height: 3cqw; align-items: center; gap: .55cqw; padding: .2cqw .5cqw; border: .16cqw solid rgb(34 180 93 / .5); border-radius: .85cqw; background: rgb(34 180 93 / .045); }
.hours-table tr.is-today .hours-day-wrap { border-color: var(--phone-green); background: rgb(34 180 93 / .12); box-shadow: 0 0 0 .12cqw rgb(34 180 93 / .08); }
.hours-table tr.is-open .hours-row-dot, .store-open-status.is-open .store-status-dot { background: var(--phone-green); box-shadow: 0 0 0 .23cqw rgb(34 180 93 / .16), 0 0 .65cqw rgb(34 180 93 / .36); }
.hours-time { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }
.hours-line { display: inline-flex; align-items: baseline; gap: .25em; }
.hours-table .hours-colon { display: none; }
/* 패널 아래 배경도 같은 어두운 색으로 맞춰 둥근 모서리의 흰 테두리 비침을 막습니다. */
.review-carousel { display: block; background: linear-gradient(to bottom, #fff calc(100% - 4.8cqw), #737373 0); }
.review-rating { position: absolute; z-index: 4; top: 1.5cqw; left: 1.6cqw; height: 4cqw; display: inline-flex; align-items: center; gap: .35cqw; padding: 0 .9cqw; border-radius: 1.4cqw; background: rgb(255 255 255 / .9); color: #ef7d20; font-size: 2.35cqw; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 .25cqw .8cqw #0002; pointer-events: none; }
.review-star, .review-score { display: grid; place-items: center; height: 2.35cqw; flex: 0 0 auto; }
.review-star { width: 2.35cqw; }
.review-score { min-width: 1.3cqw; padding-top: .04cqw; font-size: 2.35cqw; line-height: 1; }
.review-bottom-banner { position: absolute; z-index: 3; left: -.2cqw; right: -.2cqw; bottom: -.2cqw; min-height: 5cqw; padding: .9cqw 2.2cqw 1.1cqw; display: flex; align-items: center; justify-content: flex-end; background: rgb(0 0 0 / .55); color: #fff; pointer-events: none; }
.review-count { font-size: 2.2cqw; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.review-carousel:focus-visible { outline: .5cqw solid rgba(var(--brand-rgb), .8); outline-offset: -.6cqw; }
.review-viewer { position: absolute; inset: 0; z-index: 10; background: rgb(0 0 0 / .72); display: grid; place-items: center; }
.review-viewer[hidden] { display: none; }
.viewer-count { position: absolute; z-index: 2; top: 8cqw; left: 50%; transform: translateX(-50%); color: #fff; font-size: 2.6cqw; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 .25cqw .8cqw #0009; pointer-events: none; }
.viewer-photo { position: absolute; inset: 12cqw 10cqw; display: grid; place-items: center; }
.viewer-photo img { display: block; width: 92%; height: 92%; min-width: 0; min-height: 0; object-fit: contain; filter: drop-shadow(0 1cqw 2cqw #0004); }
.viewer-button { position: absolute; width: 8cqw; height: 8cqw; padding: 1.8cqw; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: #24272d; cursor: pointer; display: grid; place-items: center; transition: background 160ms ease, transform 160ms ease; }
.viewer-button svg { width: 100%; height: 100%; }
.viewer-button:hover { background: #fff; }
.viewer-button:focus-visible { outline: .5cqw solid #fff; outline-offset: .5cqw; }
.viewer-close { top: 3.5cqw; right: 3.5cqw; }
.viewer-close, .viewer-close:hover { background: transparent; color: #fff; border-radius: 0; }
.viewer-previous, .viewer-next { top: 50%; transform: translateY(-50%); }
.viewer-previous { left: 1.2cqw; }
.viewer-next { right: 1.2cqw; }
.viewer-photo.is-next { animation: viewer-next 220ms ease both; }
.viewer-photo.is-previous { animation: viewer-previous 220ms ease both; }
@keyframes viewer-next { from { opacity: .35; transform: translateX(3cqw); } to { opacity: 1; transform: translateX(0); } }
@keyframes viewer-previous { from { opacity: .35; transform: translateX(-3cqw); } to { opacity: 1; transform: translateX(0); } }
.review-slider { position: relative; width: 100%; height: 100%; }
.review-slide { position: absolute; inset: 0; min-width: 0; padding: 1.2cqw; display: grid; place-items: center; background: #fff; opacity: 0; visibility: hidden; transform-origin: center; }
.review-slide img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.review-slide.is-centered { opacity: 1; visibility: visible; transform: translate(0, 0) scale(1); }
.review-slide.is-entering, .review-slide.is-exiting { visibility: visible; will-change: transform, opacity; animation-duration: var(--review-transition, 650ms); animation-timing-function: cubic-bezier(.4, 0, .2, 1); animation-fill-mode: both; }
.review-slide.is-entering { z-index: 2; animation-name: review-enter; }
.review-slide.is-exiting { z-index: 1; animation-name: review-exit; }
.review-carousel.is-paused .review-slide { animation-play-state: paused; }
@keyframes review-enter {
  from { transform: translate(45%, 45%) scale(.2); opacity: 0; }
  to { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes review-exit {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(-45%, 45%) scale(.2); opacity: 0; }
}
/* 7·8행의 기존 크기를 유지하며 2행과 3행 사이 간격만큼 함께 올립니다.
   top으로 배치하므로 hover의 transform과 독립적으로 유지됩니다. */
.widget-large, .widget-lower-right { top: calc(0cqw - var(--lower-widget-offset) - var(--section-lift)); }
/* 4행 위젯의 아래 끝과 하단 위젯의 위쪽 끝 사이에서 앱만 중앙 정렬합니다. */
.links-area { --app-row-shift: .9cqw; position: absolute; top: calc(50% - var(--widget-row-margin) + var(--app-row-shift)); bottom: calc(25% - var(--widget-row-margin) + var(--lower-widget-offset) + var(--section-lift) - var(--app-row-shift)); left: 0; right: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
.links-area .shortcut.with-label { grid-row: 1; align-self: center; height: auto; }
.shortcut { width: 11.7cqw; height: 11.7cqw; align-self: center; justify-self: center; border-radius: var(--oneui-icon-radius); background: #ffffffbd; overflow: hidden; transition: transform 180ms ease; }
.shortcut.with-label { width: 100%; height: 100%; min-width: 0; min-height: 0; align-self: stretch; justify-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5cqw; background: transparent; border-radius: 0; overflow: visible; }
.app-icon { display: block; width: 11.3cqw; height: 11.3cqw; flex-shrink: 0; border-radius: var(--oneui-icon-radius); background: #fff; box-shadow: var(--oneui-icon-shadow); overflow: hidden; transition: transform 180ms ease, box-shadow 180ms ease; }
.app-caption { position: relative; width: max-content; max-width: 100%; }
.app-label { display: block; color: #102d22; font-size: 2.2cqw; font-weight: 650; line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; text-align: center; text-shadow: 0 .1cqw .35cqw rgb(255 255 255 / .94); }
.app-arrow { position: absolute; left: calc(100% + .65cqw); top: 50%; transform: translateY(-50%); width: 1.8cqw; height: 1.8cqw; color: #547064; }
.contact-widget { grid-row: 7 / 9; grid-column: 3 / 5; justify-self: stretch; align-self: end; top: calc(0cqw - var(--section-lift)); margin-top: 0; margin-bottom: var(--widget-row-margin); margin-left: 1.35cqw; margin-right: 4.5cqw; height: var(--contact-widget-height); display: flex; align-items: center; justify-content: center; gap: 2cqw; padding: 1.15cqw 2cqw; border-radius: var(--oneui-card-radius); background: var(--widget-surface); box-shadow: var(--oneui-card-shadow); backdrop-filter: blur(1.1cqw) saturate(.9); transition: transform 180ms ease, box-shadow 180ms ease; }
.contact-icon { display: grid; place-items: center; width: 5.7cqw; height: 5.7cqw; flex-shrink: 0; padding: 1.1cqw; border-radius: var(--oneui-icon-radius); background: var(--phone-green); box-shadow: var(--oneui-icon-shadow); color: #fff; transition: filter 180ms ease; }
.contact-widget:hover .contact-icon { filter: brightness(1.15); }
.contact-icon svg { display: block; width: 100%; height: 100%; }
.contact-label { color: #161b2b; font-size: 3cqw; font-weight: 700; line-height: 1.3; letter-spacing: -.045em; white-space: nowrap; }
.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.widget.has-image img { width: 11.7cqw; height: 11.7cqw; flex: 0 0 11.7cqw; padding: .35cqw; border-radius: var(--oneui-icon-radius); background: rgb(252 255 251 / .94); box-shadow: var(--oneui-icon-shadow); object-fit: contain; }
.widget-caption { min-width: 0; height: 100%; flex: 1; display: flex; align-items: center; justify-content: center; gap: 1cqw; padding-right: 1cqw; }
.widget-label { min-width: 0; color: #161b2b; font-size: 3.6cqw; font-weight: 700; line-height: 1.4; letter-spacing: -.045em; text-align: center; overflow-wrap: anywhere; }
.widget-arrow { width: 2cqw; height: 2cqw; flex-shrink: 0; color: #a7afbf; }
.widget-1 .widget-caption { transform: translateY(.35cqw); }
.home-grid a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.home-grid a:focus-visible { outline: .5cqw solid #4776ee; outline-offset: -.6cqw; }
/* 실제 hover에 직접 반응합니다. 입력 장치 분류 때문에 효과를 막지 않습니다. */
.widget, .shortcut, .contact-widget {
  position: relative;
  cursor: pointer;
  transform-origin: center;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}
.widget:hover, .shortcut:hover, .contact-widget:hover {
  z-index: 2;
  transform: translateY(-.75cqw) scale(1.025);
}
.widget:hover, .contact-widget:hover {
  box-shadow: 0 1.2cqw 2.4cqw #202b4b45, 0 0 1.8cqw rgba(var(--brand-rgb), .24), 0 0 0 .18cqw rgba(var(--brand-rgb), .38);
}
.shortcut:hover .app-icon {
  box-shadow: inset 0 0 0 .12cqw rgb(255 255 255 / .32), 0 1.2cqw 2cqw #202b4b55, 0 0 1.8cqw rgba(var(--brand-rgb), .24), 0 0 0 .18cqw rgba(var(--brand-rgb), .38);
}
@media (prefers-reduced-motion: reduce) {
  /* 모션만 생략하고, 커서가 올라간 상태의 들림·강조는 유지합니다. */
  .widget, .shortcut, .app-icon, .contact-widget, .contact-icon { transition: none; }
  .viewer-photo.is-next, .viewer-photo.is-previous { animation: none; }
}
@media (max-width: 480px) { .page { padding: 16px 12px; } .device-wrap { width: min(100%, calc((100svh - 32px) * .75)); } }
@media (max-width: 300px) { .page { padding-inline: 8px; } .device-wrap { min-width: 0; } }
