:root {
  --bg: #6b4428;
  --bg2: #4a2d19;
  --pagebg: #8a6a48;
  --card: #fffaf3;
  --ink: #2b1a0e;
  --sub: #7a6555;
  --acc: #f2c47a;
  --line: #eadfd2;
  --gold: #f2b705;
  color-scheme: light;
  box-sizing: border-box
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%
}

body {
  background-color: var(--pagebg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.35' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.09 0 0 0 0 0.04 0 0 0 0.55 -0.12'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23w)'/%3E%3C/svg%3E"), linear-gradient(180deg, rgba(255, 220, 170, .10), rgba(0, 0, 0, .22));
  background-attachment: fixed;
  font-family: 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink)
}

.app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100%;
  position: relative;
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px))
}

/* 화면 아래에 살짝 떠 있는 둥근 메뉴 */
.bottomnav {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 416px;
  display: flex;
  background: var(--card);
  border: 2px solid #1f1409;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  z-index: 8
}

/* 홈과 프로필 사이 구분선 */
.bn-item + .bn-item {
  border-left: 1.5px solid #1f1409
}

.bn-item {
  flex: 1;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 0 7px;
  cursor: pointer;
  color: var(--sub);
  font-family: inherit
}

.bn-item .bn-ic {
  font-size: 20px;
  line-height: 1
}

.bn-item .bn-label {
  font-size: 10.5px;
  font-weight: 600
}

.bn-item.on {
  color: var(--bg)
}

#onboardScreen {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: linear-gradient(160deg, #c9a876, #a9825a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center
}

#onboardScreen h2 {
  font-size: 20px;
  font-weight: 900;
  color: #3a2213
}

#onboardScreen p {
  font-size: 12.5px;
  color: #5c4429;
  line-height: 1.5;
  margin-top: -8px
}

.photo-upload {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 3px dashed rgba(107, 68, 40, .35);
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #a9825a;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15)
}

.photo-upload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.crop-help {
  font-size: 13px;
  color: var(--sub);
  margin: 0 0 12px;
  text-align: center
}

.crop-stage {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #efe6da;
  touch-action: none;
  cursor: grab
}

.crop-stage img {
  position: absolute;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none
}

.crop-zoom {
  display: block;
  width: 100%;
  margin: 14px 0
}

.onboard-input {
  width: 100%;
  max-width: 280px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: #fff;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  text-align: center
}

.onboard-input:focus {
  outline: none;
  border-color: #3a2213
}

.onboard-go {
  width: 100%;
  max-width: 280px;
  border: 0;
  background: #3a2213;
  color: #fff;
  border-radius: 12px;
  padding: 13px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px
}

.onboard-go:disabled {
  opacity: .4;
  cursor: not-allowed
}

.onboard-skip {
  border: 0;
  background: none;
  color: #5c4429;
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px
}

.profile-hero {
  background: linear-gradient(160deg, #fdfaf4, #f7ede0);
  border: 1px solid #ecdfc9;
  border-radius: 20px;
  margin: 16px 18px;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  gap: 16px
}

.profile-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--sub);
  overflow: hidden;
  cursor: pointer;
  border: 0;
  position: relative
}

.profile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.profile-name {
  font-size: 17px;
  font-weight: 800
}

.profile-editbtn {
  border: 0;
  background: none;
  color: var(--sub);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 0;
  margin-top: 2px
}

.gauge-wrap {
  margin: 0 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px
}

.gauge-tier {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--bg)
}

.gauge-sub {
  font-size: 11.5px;
  color: var(--sub);
  margin-top: 2px
}

.gauge-track {
  flex: 1;
  height: 10px;
  background: var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px
}

.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #e0a63a, #ffc72c);
  border-radius: 6px;
  transition: width .4s ease
}

.pstats {
  display: flex;
  margin: 0 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden
}

.pstat {
  flex: 1;
  text-align: center;
  padding: 14px 6px;
  border-right: 1px solid var(--line)
}

.pstat:last-child {
  border-right: 0
}

.pstat b {
  display: block;
  font-size: 18px;
  color: var(--bg);
  font-weight: 900
}

.pstat span {
  font-size: 11px;
  color: var(--sub)
}

/* 갈색 배경 위에 바로 놓이는 제목이라 밝은 색으로 */
.preview-title {
  padding: 4px 18px 10px;
  font-size: 15px;
  font-weight: 800;
  color: #fff8ee
}

.previewcard {
  margin: 0 18px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px
}

.previewcard .pr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px
}

.previewcard .pr-store {
  font-weight: 700;
  font-size: 14px
}

.previewcard .pr-area {
  font-size: 11.5px;
  color: var(--sub);
  white-space: nowrap
}

.previewcard .pr-stars {
  color: #f2b705;
  font-size: 12.5px
}

.previewcard .pr-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 4px
}

.previewcard img {
  width: 100%;
  border-radius: 10px;
  margin-top: 8px;
  max-height: 150px;
  object-fit: cover
}

/* 실시간 영업 상태 (목록 줄) */
.hstat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--sub)
}

.hbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800
}

.hbadge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor
}

.hbadge.open {
  color: #1f7a45;
  background: #e3f3e8
}

.hbadge.soon,
.hbadge.break {
  color: #8a5200;
  background: #fff0d6
}

.hbadge.before,
.hbadge.closed,
.hbadge.off,
.hbadge.shut {
  color: #6b5a4c;
  background: #efe7de
}

.hsample {
  font-size: 10px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 5px
}

/* 펼친 카드의 영업시간 안내 */
.hours-line {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #fdfaf4;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6
}

.hours-line b {
  color: var(--bg)
}

.hours-line small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--sub)
}

/* 구글 영업시간 출처 표시. 구글 약관상 "Google Maps" 글자는 바꾸지 않고 잘 보이게 */
.hours-line .gmaps-attr {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
  color: #5e5e5e
}

/* 세부지역 아랫줄: 구(시군구) */
.chips.gus {
  padding-top: 0
}

.chips.gus button {
  font-size: 12.5px;
  padding: 4px 10px;
  border-style: dashed
}

.chips.gus button.on {
  border-style: solid
}

/* 검색 범위 (지역 / 전국) */
.search-scope {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12.5px;
  color: var(--sub);
  border-bottom: 1px solid var(--line)
}

.search-scope button {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 5px 10px;
  font: 600 12px inherit;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  flex: none
}

/* 맛랭 순위에 없는 매장의 구글 별점 (참고용) */
.grating {
  font-size: 13px;
  margin-bottom: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line)
}

.grating b {
  font-size: 15px;
  color: var(--ink)
}

.grating span {
  color: var(--sub)
}

.grating small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--sub)
}

.grating .gmaps-attr {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
  color: #5e5e5e
}

/* 펼친 카드 맨 위 대표 사진 2~3장 (구글 지도 사진·스트리트 뷰, js/ranking.js fillMainPhoto) */
.main-photo {
  margin-bottom: 10px
}

/* 한 장이면 꽉 차게, 여러 장이면 옆으로 넘겨 보기 (다음 사진이 살짝 보이게) */
.mp-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none
}

.mp-strip::-webkit-scrollbar {
  display: none
}

.mp-strip figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  min-width: 0
}

.mp-strip.multi figure {
  flex-basis: 84%
}

.main-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--line)
}

.main-photo figcaption {
  margin-top: 4px;
  font-size: 11px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.main-photo figcaption a {
  color: inherit
}

.main-photo .gmaps-attr {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
  color: #5e5e5e
}

/* 승인된 방문자 사진 (Supabase) */
.store-photos {
  margin-bottom: 10px
}

.store-photos .sp-title,
.revbox .sp-title,
.blogbox .sp-title {
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 6px
}

.store-photos .sp-title small,
.revbox .sp-title small,
.blogbox .sp-title small {
  font-weight: 600;
  color: var(--sub)
}

.store-photos .sp-note,
.revbox .sp-note,
.blogbox .sp-note {
  font-size: 12px;
  color: var(--sub)
}

/* 펼친 카드: 맛랭 방문 리뷰 · 블로그 후기 */
.revbox,
.blogbox {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px
}

.revbox:empty,
.blogbox:empty {
  display: none
}

.revbox .dtags {
  margin-bottom: 8px
}

.vtag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--sub)
}

.blog-src {
  margin: 8px 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--bg)
}

.blog-src small {
  font-weight: 600;
  color: var(--sub)
}

.blog-post {
  display: block;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #fdfaf4;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.5
}

.blog-post b {
  display: block;
  font-size: 12.5px
}

.blog-post span {
  display: block;
  color: var(--sub)
}

.blog-post small {
  color: var(--sub);
  font-size: 11px
}

.blog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700
}

.blog-links a {
  color: var(--bg)
}

/* 홈 목록: 리뷰 모집 중 */
.list-sub {
  margin: 18px 4px 8px;
  color: #fdfaf4;
  font-size: 15px;
  font-weight: 800
}

.list-sub small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: #d9c3aa
}

.score.recruit {
  font-size: 15px;
  color: var(--sub)
}

.more-btn {
  display: block;
  width: 100%;
  margin: 6px 0 12px;
  padding: 12px;
  border: 1.5px solid #d9c3aa;
  border-radius: 14px;
  background: none;
  color: #fdfaf4;
  font: inherit;
  font-weight: 700;
  cursor: pointer
}

.sp-grid {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none
}

.sp-grid::-webkit-scrollbar {
  display: none
}

.sp-grid a {
  flex: none
}

.sp-grid img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--line)
}

/* 리뷰 쓰기: 사진 공유 동의 */
.share-photo {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer
}

.share-photo input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--bg);
  flex: none
}

.share-photo small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--sub);
  line-height: 1.5
}

/* 지도 앱 매장 사진 링크 */
.photo-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700
}

.photo-links a {
  padding: 7px 12px;
  border: 1.5px solid var(--bg);
  border-radius: 16px;
  color: var(--bg);
  text-decoration: none;
  font-size: 12px
}

/* 리뷰가 없을 때 안내: 흰 카드 틀로 배경과 분리 */
.pempty {
  margin: 0 18px 24px;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  line-height: 1.6
}

.pempty b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px
}

.pempty span {
  display: block;
  font-size: 13px;
  color: var(--sub)
}

header {
  padding: 16px 18px 12px;
  color: #fff
}

.hdr-top {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.hdr-id {
  display: flex;
  align-items: center;
  gap: 9px
}

h1 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.5px
}

h1 small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: .75;
  letter-spacing: 0;
  margin-top: 1px
}

.hdr-actions {
  display: flex;
  gap: 7px
}

.icon-chip {
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

.icon-chip.icon-only {
  padding: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 15px
}

.hdr-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .15)
}

/* 상단 로그인·내 계정 버튼은 오른쪽에 */
.hdr-bar #accountBtn {
  margin-left: auto
}

.sub-btn {
  background: var(--acc);
  color: #3a2213;
  border: 0;
  border-radius: 20px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer
}

.sub-btn.on {
  background: transparent;
  color: var(--acc);
  border: 1.5px solid var(--acc)
}

.tabs {
  display: flex;
  margin: 10px 18px;
  background: var(--bg2);
  border-radius: 14px;
  padding: 4px
}

.tabs button {
  flex: 1;
  border: 0;
  background: none;
  color: #ead9c6;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  padding: 12px;
  border-radius: 11px;
  cursor: pointer
}

.tabs button.on {
  background: #fff;
  color: var(--bg)
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 18px 8px;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity
}

.chips.dragging {
  cursor: grabbing;
  scroll-snap-type: none
}

.chips button {
  scroll-snap-align: start
}

.chips::-webkit-scrollbar {
  display: none
}

.chips button {
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, .35);
  background: none;
  color: #fff;
  border-radius: 18px;
  padding: 7px 13px;
  font-weight: 500;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer
}

.chips button.on {
  background: var(--acc);
  border-color: var(--acc);
  color: #3a2213;
  font-weight: 700
}

.chips.small button {
  font-size: 13px;
  padding: 5px 11px;
  border-color: rgba(255, 255, 255, .2);
  color: #f0e2d0
}

.meta {
  color: #f0e2d0;
  font-size: 12.5px;
  padding: 6px 18px 10px
}

.list {
  padding: 0 14px 120px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.item {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer
}

.row {
  display: flex;
  align-items: center;
  gap: 12px
}

.rank {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--line);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px
}

.item.top .rank {
  background: var(--gold);
  color: #fff
}

.info {
  flex: 1;
  min-width: 0
}

.name {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.tag {
  font-size: 12.5px;
  color: var(--sub);
  margin-top: 2px
}

.score {
  text-align: right;
  font-weight: 900;
  font-size: 22px;
  color: var(--bg)
}

.score small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--sub)
}

.detail {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line)
}

.item.open .detail {
  display: block
}

.bar {
  display: grid;
  grid-template-columns: 52px 1fr 64px;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  margin: 6px 0
}

.bar i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden
}

.bar i b {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--bg);
  border-radius: 4px
}

.bar span:last-child {
  text-align: right;
  color: var(--sub)
}

.locked {
  position: relative
}

.locked .row,
.locked .detail {
  filter: blur(5px);
  user-select: none
}

.locked::after {
  content: "🔒 구독하고 보기";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--bg);
  background: rgba(255, 255, 255, .35);
  border-radius: 16px
}

.chg {
  font-size: 11.5px;
  font-weight: 700;
  margin-left: 6px
}

.chg.up {
  color: #c0392b
}

.chg.down {
  color: #2e6fb7
}

.chg.new {
  color: #b8860b
}

.chg.same {
  color: var(--sub);
  font-weight: 400
}

.src {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--bg);
  font-weight: 700
}

.banner {
  margin: 4px 14px 12px;
  background: var(--acc);
  color: #3a2213;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.4
}

.banner b {
  font-size: 15px;
  display: block
}

.banner button {
  flex: none;
  background: #3a2213;
  color: var(--acc);
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer
}

.note {
  color: #d9c3aa;
  font-size: 11.5px;
  text-align: center;
  padding: 0 24px 24px;
  line-height: 1.5
}

.paypage {
  position: fixed;
  inset: 0;
  background: var(--card);
  z-index: 9;
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

.paypage.show {
  transform: translateX(0)
}

.paypage.page2 {
  z-index: 10
}

.paytop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  flex: none
}

.paytop button {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 6px
}

.paytop h2 {
  font-size: 17px;
  font-weight: 700
}

.paybody {
  flex: 1;
  overflow-y: auto;
  padding: 22px
}

.paybody .price {
  font-size: 36px;
  font-weight: 900;
  color: var(--bg);
  margin: 2px 0 2px
}

.paybody .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--sub)
}

.paybody ul {
  list-style: none;
  margin: 14px 0 22px
}

.paybody li {
  padding: 7px 0;
  font-size: 14.5px
}

.paybody li::before {
  content: "✓ ";
  color: var(--bg);
  font-weight: 900
}

.paysum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 14px
}

.paysum b {
  font-size: 20px;
  display: block;
  color: var(--bg)
}

.method {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 6px
}

.method > label {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer
}

.method > label.on {
  border-color: var(--bg);
  background: rgba(107, 68, 40, .06)
}

.method input {
  accent-color: var(--bg);
  width: 17px;
  height: 17px
}

.ic {
  width: 32px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  flex: none
}

.ic.toss {
  background: #0064ff
}

.ic.kakao {
  background: #fee500;
  color: #3c1e1e
}

.ic.card {
  background: linear-gradient(135deg, #444, #1a1a1a)
}

.ic.card.check {
  background: linear-gradient(135deg, #3d6b52, #1f3b2c)
}

.mgroup {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  margin: 8px 2px 0
}

.mgroup:first-child {
  margin-top: 0
}

.payterms {
  font-size: 11.5px;
  color: var(--sub);
  line-height: 1.6;
  background: #fdfaf4;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  margin-top: 14px
}

.demo-note {
  font-size: 11px;
  color: var(--sub);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5
}

.payfoot {
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  flex: none
}

.payfoot .go {
  width: 100%;
  border: 0;
  background: var(--bg);
  color: #fff;
  border-radius: 14px;
  padding: 15px;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer
}

.payfoot .go:disabled {
  opacity: .45;
  cursor: not-allowed
}

.credit-pill {
  color: #f0e2d0;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap
}

.credit-pill b {
  color: var(--acc)
}

.reviewbtn {
  margin-top: 10px;
  width: 100%;
  border: 0;
  background: var(--bg);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(107, 68, 40, .25)
}

.reviewbtn.done {
  border-style: solid;
  border-color: var(--line);
  background: rgba(107, 68, 40, .05);
  color: var(--sub);
  cursor: default
}

.stars {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 22px
}

.stars button {
  background: none;
  border: 0;
  font-size: 36px;
  cursor: pointer;
  color: var(--line);
  line-height: 1;
  padding: 0
}

.stars button.on {
  color: #f2b705
}

.revtext {
  width: 100%;
  min-height: 110px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 14.5px;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
  background: #fff
}

.revtext:focus {
  outline: none;
  border-color: var(--bg)
}

.revstore {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 3px
}

.revsub {
  font-size: 12.5px;
  color: var(--sub);
  margin-bottom: 6px
}

.revearn {
  display: inline-block;
  background: var(--acc);
  color: #3a2213;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  padding: 5px 10px;
  margin-bottom: 20px
}

.creditline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 14px;
  font-size: 13.5px
}

.creditline b {
  color: var(--bg)
}

.creditline label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  cursor: pointer
}

.creditline input {
  width: 17px;
  height: 17px;
  accent-color: var(--bg)
}

.finalprice {
  font-size: 13.5px;
  color: var(--sub);
  margin-top: -16px;
  margin-bottom: 20px
}

.finalprice b {
  color: var(--bg);
  font-size: 15px
}

.dtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px
}

.dtag {
  background: var(--line);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 10px;
  padding: 5px 9px
}

.dtag b {
  color: var(--bg);
  font-weight: 800
}

.dteaser {
  margin-top: 10px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--sub);
  cursor: pointer
}

.dteaser b {
  color: var(--bg)
}

.attrpick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px
}

.attrpick button {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink)
}

.attrpick button.on {
  background: var(--bg);
  color: #fff;
  border-color: var(--bg)
}

.attrlock {
  border: 1.5px solid var(--line);
  background: #fdfaf4;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin: 16px 0 4px
}

.attrlock b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--ink)
}

.attrlock span {
  font-size: 12.5px;
  color: var(--sub);
  display: block;
  margin-bottom: 12px
}

.attrlock button {
  border: 0;
  background: var(--bg);
  color: #fff;
  border-radius: 11px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer
}

.leadrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line)
}

.leadrow .rk {
  width: 22px;
  font-weight: 900;
  color: var(--sub);
  text-align: center;
  flex: none
}

.leadrow .nm {
  flex: 1;
  font-weight: 700;
  font-size: 14.5px
}

.leadrow .bd {
  font-size: 11.5px;
  color: var(--sub)
}

.leadrow .ct {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg)
}

.lead-hero {
  background: linear-gradient(160deg, #fdfaf4 0%, #f7ede0 100%);
  border: 1px solid #ecdfc9;
  border-radius: 20px;
  padding: 20px 18px;
  margin-bottom: 20px;
  text-align: center
}

.lead-hero .ic {
  font-size: 34px;
  margin-bottom: 6px
}

.lead-hero h3 {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 4px
}

.lead-hero p {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5
}

.podium {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 22px
}

.p-card {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 8px 12px;
  text-align: center;
  position: relative
}

.p-card.p1 {
  border-color: #f2c14e;
  background: linear-gradient(180deg, #fff8e8, #fff)
}

.p-card.p2 {
  border-color: #c9cdd6;
  background: linear-gradient(180deg, #f6f7f9, #fff)
}

.p-card.p3 {
  border-color: #e0b48a;
  background: linear-gradient(180deg, #fdf2e8, #fff)
}

.p-card .medal {
  font-size: 26px;
  margin-bottom: 6px;
  display: block
}

.p-card .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff
}

.p-card.p1 .avatar {
  background: linear-gradient(135deg, #f2c14e, #d9a11f);
  width: 56px;
  height: 56px;
  font-size: 19px
}

.p-card.p2 .avatar {
  background: linear-gradient(135deg, #b8bdc9, #8b909c)
}

.p-card.p3 .avatar {
  background: linear-gradient(135deg, #d99a5f, #b5713a)
}

.p-card .pname {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.p-card .pcount {
  font-size: 11px;
  color: var(--sub);
  font-weight: 600
}

/* 1~3위 보상 크레딧 */
.p-card .preward {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--acc);
  color: #3a2213;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap
}

.p-card.p1 {
  order: 2;
  padding-top: 0
}

.p-card.p2 {
  order: 1
}

.p-card.p3 {
  order: 3
}

.p-card.p1 .medal {
  margin-top: -4px
}

.restlist {
  border-top: 1px solid var(--line)
}

.rest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line)
}

.rest-item .rk {
  width: 20px;
  text-align: center;
  font-weight: 800;
  color: var(--sub);
  flex: none;
  font-size: 13px
}

.rest-item .r-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--bg), #3a2213)
}

.rest-item .r-info {
  flex: 1;
  min-width: 0
}

.rest-item .r-name {
  font-size: 13.5px;
  font-weight: 700
}

.rest-item .r-badge {
  font-size: 11px;
  color: var(--sub);
  margin-top: 1px
}

.rest-item .r-count {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--bg);
  flex: none
}

.lead-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 18px 12px;
  background: linear-gradient(135deg, #3a2213, var(--bg) 55%, #8a5a34);
  border: 0;
  border-radius: 16px;
  padding: 15px 16px;
  cursor: pointer;
  width: calc(100% - 36px);
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.lead-entry .le-ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: none
}

.lead-entry .le-text {
  flex: 1;
  min-width: 0
}

.lead-entry .le-title {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap
}

.lead-entry .le-sub {
  display: block;
  color: #f0e2d0;
  font-size: 12.5px;
  margin-top: 3px
}

.lead-entry .le-arrow {
  color: #f0e2d0;
  font-size: 16px;
  flex: none
}

.searchbar {
  position: sticky;
  top: 0;
  background: var(--card);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  z-index: 2
}

.searchbar input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box
}

.searchbar input:focus {
  outline: none;
  border-color: var(--bg)
}

.sresult {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer
}

.sresult:active {
  background: var(--line)
}

.sresult .s-rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--bg);
  flex: none
}

.sresult .s-info {
  flex: 1;
  min-width: 0
}

.sresult .s-name {
  font-size: 14.5px;
  font-weight: 700
}

.sresult .s-tag {
  font-size: 12px;
  color: var(--sub);
  margin-top: 1px
}

.sresult .s-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--bg);
  flex: none
}

.sempty {
  padding: 40px 24px;
  text-align: center;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.6
}

.favbtn {
  background: none;
  border: 0;
  font-size: 19px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  color: var(--line);
  flex: none
}

.favbtn.on {
  color: #ffc72c
}

.fav-btn-hdr {
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 17px;
  cursor: pointer;
  flex: none;
  display: grid;
  place-items: center
}

.favgroup {
  padding: 14px 18px 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: .5px
}

.fav-btn {
  border: 0;
  background: none;
  font-size: 20px;
  cursor: pointer;
  flex: none;
  padding: 2px 4px;
  line-height: 1;
  color: var(--line)
}

.fav-btn.on {
  color: #f2b705
}

#loadScreen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(160deg, #c9a876, #a9825a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity .5s ease, visibility .5s ease
}

#loadScreen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

#loadScreen svg {
  width: 150px;
  height: auto;
  animation: mascotBob 1.4s ease-in-out infinite
}

#loadScreen .lbrand {
  color: #3a2213;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px
}

#loadScreen .ltag {
  color: #5c4429;
  font-size: 12.5px
}

#loadScreen .ldots {
  display: flex;
  gap: 6px;
  margin-top: 4px
}

#loadScreen .ldots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b4428;
  animation: ldotPulse 1.2s ease-in-out infinite
}

#loadScreen .ldots span:nth-child(2) {
  animation-delay: .15s
}

#loadScreen .ldots span:nth-child(3) {
  animation-delay: .3s
}

@keyframes mascotBob {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

@keyframes ldotPulse {

  0%,
  100% {
    opacity: .3;
    transform: scale(.8)
  }

  50% {
    opacity: 1;
    transform: scale(1.15)
  }
}

.vstep {
  position: relative;
  background: linear-gradient(160deg, #fdfaf4 0%, #f7ede0 100%);
  border: 1px solid #ecdfc9;
  border-radius: 20px;
  padding: 22px 20px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(107, 68, 40, .06)
}

.vstep h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink)
}

.vstep h3 .stepnum {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex: none
}

.vstep p {
  font-size: 12.5px;
  color: var(--sub);
  margin-bottom: 16px;
  line-height: 1.55
}

.vbtns {
  display: flex;
  gap: 10px
}

.vbtns button {
  flex: 1;
  border: 1.5px solid #ecdfc9;
  background: #fff;
  border-radius: 14px;
  padding: 16px 10px;
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(107, 68, 40, .06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease
}

.vbtns button:active {
  transform: scale(.97)
}

.vbtns button:disabled {
  opacity: .55;
  cursor: progress;
  transform: none
}

.vbtns button.success {
  border-color: var(--bg);
  background: rgba(107, 68, 40, .07);
  box-shadow: none
}

.vpreviewwrap {
  position: relative;
  margin-top: 12px;
  display: none
}

.vpreviewwrap.show {
  display: block
}

.vpreviewwrap img {
  width: 100%;
  border-radius: 14px;
  max-height: 180px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12)
}

.vpreviewwrap .vbadge {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(58, 34, 19, .85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px
}

.vok {
  display: none;
  align-items: center;
  gap: 10px;
  background: #eef7ef;
  border: 1px solid #c9e8cc;
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 700;
  color: #256b34;
  margin-top: 12px
}

.vok.show {
  display: flex
}

.vok .vcheck {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3a9c4c;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex: none
}

.vfail {
  display: none;
  align-items: flex-start;
  gap: 9px;
  background: #fdeeee;
  border: 1px solid #f3caca;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  color: #a33;
  margin-top: 12px;
  line-height: 1.5
}

.vfail.show {
  display: flex
}

.vfail::before {
  content: "⚠️";
  flex: none;
  font-size: 14px;
  line-height: 1.3
}

.locked-fields {
  opacity: .4;
  pointer-events: none
}

.mockrev {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px
}

.mockitem {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 12.5px
}

.mockitem .mtxt {
  flex: 1
}

.mockitem .mtxt b {
  display: block;
  font-size: 12px;
  margin-bottom: 2px
}

.mockitem .mstars {
  color: #f2b705;
  font-size: 11px
}

.reportbtn {
  flex: none;
  border: 0;
  background: none;
  color: var(--sub);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px
}

.mockitem.hidden-rep .mtxt {
  color: var(--sub);
  font-style: italic
}

.repmodal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 24px
}

.repmodal.show {
  display: flex
}

.repbox {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  width: 100%;
  max-width: 360px
}

.repbox h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px
}

.repbox label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  font-size: 13.5px;
  cursor: pointer
}

.repbox input {
  accent-color: var(--bg)
}

.repbox .go {
  width: 100%;
  border: 0;
  background: var(--bg);
  color: #fff;
  border-radius: 11px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px
}

.repbox .cancel {
  width: 100%;
  border: 0;
  background: none;
  color: var(--sub);
  padding: 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer
}

/* 브라우저 기본 alert/confirm 대신 쓰는 확인 창 */
.dlg-msg {
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 6px
}

.repbox .go.danger {
  background: #a33
}

[hidden] {
  display: none !important
}

button:focus-visible,
.item:focus-visible,
.sresult:focus-visible {
  outline: 2px solid #3a2213;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--acc)
}

.demo-tag {
  font-size: 10.5px;
  color: var(--sub);
  font-weight: 600;
  margin-bottom: 2px
}

button,
.item,
.sresult,
.rest-item,
.mockitem,
.method > label,
.p-card,
.vbtns button,
.attrpick button,
.chips button,
.dteaser,
.creditline label {
  transition: transform .12s ease, opacity .12s ease;
  -webkit-tap-highlight-color: transparent
}

button:active,
.item:active,
.sresult:active,
.rest-item:active,
.mockitem:active,
.method > label:active,
.p-card:active,
.vbtns button:active,
.attrpick button:active,
.chips button:active,
.dteaser:active,
.creditline label:active {
  transform: scale(.96);
  opacity: .85
}

.stars button {
  transition: transform .12s ease
}

.stars button:active {
  transform: scale(1.25)
}

/* 앱 아래 사업자 정보·약관 링크 (js/business.js가 채움) */
.bizfoot {
  color: #c9b095;
  font-size: 11px;
  text-align: center;
  line-height: 1.6;
  padding: 0 20px 20px
}

.bizfoot .biz-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-bottom: 6px
}

.bizfoot a {
  color: #efdcc4;
  text-decoration: none
}

.payterms a {
  color: inherit;
  text-decoration: underline
}

/* 모범음식점 표시 (행정안전부 공공데이터) */
.model-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 10px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle
}

.model-line {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #fff9e8;
  border: 1px solid #f1dfaf;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink)
}

.model-line small {
  display: block;
  font-size: 11px;
  color: var(--sub)
}
/* 로그인 창 (auth.js) — 버튼 색은 각 회사 로그인 버튼 가이드 색 */
.login-box h3 {
  text-align: center
}

.login-reason {
  margin: 4px 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sub);
  text-align: center;
  white-space: pre-line
}

.login-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer
}

.login-btn[hidden] {
  display: none
}

.login-btn:disabled {
  opacity: .6;
  cursor: progress
}

.login-btn .login-ic {
  position: absolute;
  left: 16px;
  font-weight: 900
}

.login-btn.kakao {
  background: #FEE500;
  color: rgba(0, 0, 0, .85)
}

.login-btn.naver {
  background: #03C75A;
  color: #fff
}

.login-btn.google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0
}

.login-btn.google .login-ic {
  color: #4285F4
}

/* 애플 로그인 가이드: 검은 바탕 + 흰 글씨 + 애플 로고 */
.login-btn.apple {
  background: #000;
  color: #fff
}

.login-btn.apple .login-ic {
  display: flex
}

.login-terms {
  margin: 6px 0 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--sub);
  text-align: center
}

.login-terms a {
  color: var(--bg)
}

/* 프로필 맨 위 계정 칸 */
.account-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 18px 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink)
}

.account-box b {
  display: block;
  font-size: 14px
}

.account-box span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.5
}

.account-acts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none
}

.account-link {
  background: none;
  border: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sub);
  cursor: pointer;
  text-align: right
}

.account-link.danger {
  color: #b23b3b
}

.account-login {
  flex: none;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer
}

/* 홈 화면 설치 안내 배너 (js/pwa.js). 아래 메뉴 바로 위에 떠 있음 */
.install-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  width: min(440px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  animation: ibIn .3s ease
}

@keyframes ibIn {
  from { opacity: 0; transform: translate(-50%, 12px) }
}

.install-bar img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none
}

.install-bar .ib-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--sub)
}

.install-bar .ib-text > b:first-child {
  display: block;
  font-size: 14px;
  color: var(--ink)
}

.install-bar .ib-inline { color: var(--ink) }

.install-bar .ib-share {
  font-weight: 700;
  color: #1a73e8
}

.install-bar .ib-go {
  flex: none;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer
}

.install-bar .ib-x {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  color: var(--sub);
  font-size: 15px;
  cursor: pointer
}
/* 영업시간이 없을 때 카드의 지도·알려 주기 버튼 (js/hours.js hoursHelpHtml) */
.hours-help {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px
}

.hours-help a.hours-map,
.hours-help .hours-tell {
  padding: 7px 11px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer
}

.hours-help a.hours-map {
  border: 1.5px solid #03c75a;
  color: #028a3f;
  background: #fff
}

.hours-help .hours-tell {
  border: 1.5px solid var(--bg);
  color: #fff;
  background: var(--bg)
}

/* 영업시간 알려 주기 화면 (js/hours-report.js) */
.hr-help {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.6;
  margin: 10px 0 12px
}

.hr-day {
  display: grid;
  grid-template-columns: 28px auto 1fr;
  align-items: center;
  gap: 4px 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px
}

.hr-day b {
  grid-row: span 2;
  color: var(--bg)
}

.hr-offbox {
  font-size: 12px;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap
}

.hr-times {
  justify-self: end;
  white-space: nowrap
}

.hr-brk {
  grid-column: 2 / 4;
  justify-self: end;
  font-size: 12px;
  color: var(--sub);
  white-space: nowrap
}

.hr-day input[type="time"] {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 5px 4px;
  font: inherit;
  font-size: 13px;
  max-width: 108px;
  background: #fff
}

.hr-day.off .hr-times,
.hr-day.off .hr-brk {
  opacity: .35;
  pointer-events: none
}

.hr-copy {
  margin: 12px 0 8px;
  padding: 8px 12px;
  border: 1.5px dashed var(--bg);
  border-radius: 10px;
  background: transparent;
  color: var(--bg);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  width: 100%
}

.hr-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 6px 0 10px
}

/* 대표 사진 넘기기 (js/ranking.js bindPhotoNav): 한 장씩 꽉 차게 + 양옆 ‹ › + "1 / 10" */
.mp-wrap {
  position: relative
}

.mp-strip.multi figure {
  flex-basis: 100%
}

.mp-strip.dragging {
  scroll-snap-type: none;
  cursor: grabbing
}

.mp-strip:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
  border-radius: 12px
}

.mp-nav {
  position: absolute;
  top: calc((100% - 22px) / 2);
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0 0 3px
}

.mp-nav.prev {
  left: 8px
}

.mp-nav.next {
  right: 8px
}

.mp-nav:disabled {
  opacity: 0;
  pointer-events: none
}

.mp-nav[hidden],
.mp-count[hidden] {
  display: none
}

.mp-count {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums
}
