/*
  맛집노트 - 스크랩북과 가게 간판.
  흰 종이 위에 붙인 사진, 그 아래 빨간 간판 같은 가게 이름, 별점은 겨자색 하나.
  방문 기록은 먹은 것을 적은 영수증처럼 읽힌다.

  Tailwind CDN 이 이 파일보다 늦게 <style> 을 넣으므로 바꾸는 규칙은 body 를 앞에 붙여
  우선순위를 한 단계 높인다.
*/

:root {
    --ff-paper: #FFFFFF;
    --ff-ink: #222222;
    --ff-ink-2: #444444;
    --ff-muted: #6B6B6B;
    --ff-faint: #767676;
    --ff-line: #E7E7E7;
    --ff-wash: #F6F6F6;
    --ff-red: #D33F2A;
    --ff-red-dark: #B5321F;
    --ff-red-wash: #FBEDEA;
    --ff-mustard: #F2B705;
    --ff-sign-font: 'Black Han Sans', 'Pretendard Variable', sans-serif;
    --ff-text-font: 'Pretendard Variable', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

/* ---------- 바탕 ---------- */

html body {
    background: var(--ff-paper);
    color: var(--ff-ink);
    font-family: var(--ff-text-font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "tnum" 0;
}

body main h1 {
    font-family: var(--ff-sign-font);
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    color: var(--ff-ink);
    line-height: 1.2;
    word-break: keep-all;
}

body main h2,
body main h3 {
    letter-spacing: -0.01em;
    word-break: keep-all;
}

body main p,
body main li {
    word-break: keep-all;
}

body :focus-visible {
    outline: 2px solid var(--ff-red);
    outline-offset: 2px;
}

/* 움직임은 사람이 누를 때만 */
body .page-transition,
body .animate-fadeIn,
body .animate-pulse-slow {
    animation: none !important;
    filter: none !important;
    transform: none !important;
}

/* ---------- 바깥 틀: 서비스 줄, 머리, 바닥 ---------- */

.ff-directory {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 14px;
    background: var(--ff-paper);
    border-bottom: 1px solid var(--ff-line);
    color: var(--ff-ink-2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.ff-directory:hover { color: var(--ff-ink); }

.ff-directory__dots {
    display: inline-grid;
    grid-template-columns: repeat(2, 5px);
    grid-auto-rows: 5px;
    gap: 2px;
}

.ff-directory__dots span { background: var(--ff-red); border-radius: 1px; }
.ff-directory__dots span:nth-child(2) { opacity: .5; }
.ff-directory__dots span:nth-child(3) { opacity: .3; }
.ff-directory__dots span:nth-child(4) { opacity: .75; }

.ff-header {
    background: var(--ff-paper);
    border-bottom: 1px solid var(--ff-line);
}

.ff-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ff-brand__sign {
    display: inline-block;
    padding: 6px 11px 5px;
    border-radius: 4px;
    background: var(--ff-red);
    color: #FFFFFF;
    font-family: var(--ff-sign-font);
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 0 0 2px var(--ff-red), inset 0 0 0 3px rgba(255, 255, 255, .55);
}

body .nav-link { font-size: 15px; font-weight: 600; }
body .nav-link.active { color: var(--ff-red); }

body .note-more__menu {
    border-radius: 12px;
    border-color: var(--ff-line);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35);
}

body .note-more__menu a:hover { background: var(--ff-wash); color: var(--ff-ink); }

.ff-footer {
    border-top: 1px solid var(--ff-line);
    background: var(--ff-paper);
}

.ff-footer__link {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ff-muted);
    font-size: 14px;
    font-weight: 600;
}

.ff-footer__link:hover { color: var(--ff-ink); background: var(--ff-wash); }

body footer .text-slate-400 { color: var(--ff-faint); }

/* ---------- 공용 부품 ---------- */

body .note-page { gap: 22px; }

body .note-panel {
    border-color: var(--ff-line);
    border-radius: 14px;
    box-shadow: none;
}

body .page-intro,
body .note-panel.page-intro {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body .note-header h1 {
    font-size: clamp(28px, 7vw, 40px);
}

body .note-header p {
    color: var(--ff-muted);
    font-size: 15px;
}

body .note-header__eyebrow,
body .visit-eyebrow,
body .restaurant-nearby-sheet__eyebrow {
    display: none !important;
}

body .note-button,
body .secondary-button,
body .brand-button {
    min-height: 46px;
    border: 0;
    border-radius: 10px !important;
    background: var(--ff-red) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: none !important;
    transform: none !important;
}

body .note-button:hover,
body .secondary-button:hover,
body .brand-button:hover {
    background: var(--ff-red-dark) !important;
}

body .note-button--quiet,
body .note-button.note-button--quiet {
    border: 1px solid var(--ff-line) !important;
    background: var(--ff-paper) !important;
    color: var(--ff-ink) !important;
}

body .note-button--quiet:hover { border-color: var(--ff-ink) !important; background: var(--ff-paper) !important; }

body .note-empty {
    border: 1px dashed #D5D5D5;
    border-radius: 14px;
    background: var(--ff-paper);
    color: var(--ff-muted);
}

body .note-chip {
    border-radius: 6px;
    background: var(--ff-wash);
    color: var(--ff-ink-2);
}

body .section-card,
body .metric-tile,
body .soft-panel,
body .toolbar-shell,
body .recommend-card,
body .result-card {
    box-shadow: none !important;
    border-color: var(--ff-line) !important;
}

/* ---------- 입력 ---------- */

body main input[type="text"],
body main input[type="search"],
body main input[type="email"],
body main input[type="tel"],
body main input[type="url"],
body main input[type="number"],
body main input[type="date"],
body main input[type="month"],
body main select,
body main textarea,
body .quick-visit-dialog input:not([type="hidden"]):not([type="file"]):not([type="radio"]):not([type="checkbox"]),
body .quick-visit-dialog select,
body .quick-visit-dialog textarea {
    border: 1px solid #D9D9D9 !important;
    border-radius: 10px !important;
    background-color: var(--ff-paper) !important;
    color: var(--ff-ink);
    box-shadow: none !important;
}

body main input:focus,
body main select:focus,
body main textarea:focus,
body .quick-visit-dialog input:focus,
body .quick-visit-dialog select:focus,
body .quick-visit-dialog textarea:focus {
    border-color: var(--ff-ink) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 63, 42, .14) !important;
}

body main input::placeholder,
body main textarea::placeholder { color: #9A9A9A; }

body input[type="range"] { accent-color: var(--ff-red); }
body input[type="checkbox"],
body input[type="radio"] { accent-color: var(--ff-red); }

/* ---------- Tailwind 색 갈아입히기: 초록·청록·분홍 계열을 빨강/먹색으로 ---------- */

body .text-teal-400, body .text-teal-500, body .text-teal-600, body .text-teal-700, body .text-teal-800,
body .text-emerald-400, body .text-emerald-500, body .text-emerald-600, body .text-emerald-700, body .text-emerald-800,
body .text-green-500, body .text-green-600, body .text-green-700,
body .text-rose-400, body .text-rose-500, body .text-rose-600, body .text-rose-700,
body .text-pink-500, body .text-pink-600,
body .text-orange-500, body .text-orange-600, body .text-orange-700,
body .text-purple-400, body .text-purple-500, body .text-purple-600, body .text-purple-700,
body .text-violet-500, body .text-violet-600, body .text-indigo-500, body .text-indigo-600,
body .text-red-400, body .text-red-500, body .text-red-600,
body .text-\[\#169c68\], body .text-\[\#FF4F18\] {
    color: var(--ff-red) !important;
}

body .text-blue-400, body .text-blue-500, body .text-blue-600, body .text-blue-700,
body .text-sky-500, body .text-sky-600, body .text-cyan-600,
body .text-\[\#244235\], body .text-\[\#3D2C2E\] {
    color: var(--ff-ink-2) !important;
}

body .text-amber-400, body .text-amber-500, body .text-yellow-400, body .text-yellow-500 {
    color: var(--ff-mustard) !important;
}

body .text-amber-600, body .text-amber-700, body .text-amber-800, body .text-amber-900,
body .text-yellow-600, body .text-yellow-700, body .text-orange-800, body .text-orange-900,
body .text-emerald-900, body .text-teal-900, body .text-green-800, body .text-green-900 {
    color: var(--ff-ink) !important;
}

body .text-slate-900, body .text-slate-950, body .text-slate-800, body .text-gray-900, body .text-gray-800 { color: var(--ff-ink); }
body .text-slate-700, body .text-gray-700 { color: #333333; }
body .text-slate-600, body .text-gray-600 { color: #4F4F4F; }
body .text-slate-500, body .text-gray-500 { color: var(--ff-muted); }
body .text-slate-400, body .text-gray-400 { color: var(--ff-faint); }
body .text-slate-300 { color: #A0A0A0; }

body .bg-emerald-50, body .bg-emerald-100, body .bg-teal-50, body .bg-teal-100, body .bg-green-50, body .bg-green-100,
body .bg-rose-50, body .bg-rose-100, body .bg-pink-50, body .bg-purple-50, body .bg-purple-100, body .bg-violet-50,
body .bg-blue-50, body .bg-blue-100, body .bg-indigo-50, body .bg-sky-50, body .bg-cyan-50,
body .bg-orange-50, body .bg-orange-100, body .bg-amber-50, body .bg-amber-100, body .bg-yellow-50, body .bg-red-50,
body .bg-gray-50, body .bg-gray-100, body .bg-slate-50,
body .bg-\[\#eefaf3\], body .bg-rose-50\/70, body .bg-rose-50\/80, body .bg-emerald-50\/60, body .bg-emerald-50\/70, body .bg-pink-50\/50 {
    background-color: var(--ff-wash) !important;
}

body .bg-slate-100, body .bg-slate-100\/80 { background-color: #F1F1F1 !important; }
body .bg-slate-200, body .bg-slate-200\/50 { background-color: #EDEDED !important; }
body .bg-slate-900, body .bg-slate-950, body .bg-slate-800, body .bg-gray-900 { background-color: var(--ff-ink) !important; }
body .hover\:bg-slate-700:hover, body .hover\:bg-slate-800:hover { background-color: #000000 !important; }

body .bg-emerald-500, body .bg-emerald-600, body .bg-teal-500, body .bg-teal-600, body .bg-green-500, body .bg-green-600,
body .bg-rose-500, body .bg-rose-600, body .bg-pink-500, body .bg-purple-500, body .bg-purple-600, body .bg-violet-500,
body .bg-orange-500, body .bg-orange-600, body .bg-red-500, body .bg-red-600, body .bg-blue-500, body .bg-blue-600,
body .bg-indigo-500, body .bg-indigo-600, body .bg-\[\#169c68\] {
    background-color: var(--ff-red) !important;
    color: #FFFFFF;
}

body .hover\:bg-emerald-700:hover, body .hover\:bg-emerald-600:hover, body .hover\:bg-teal-600:hover, body .hover\:bg-green-600:hover,
body .hover\:bg-purple-600:hover, body .hover\:bg-rose-600:hover, body .hover\:bg-orange-600:hover, body .hover\:bg-red-600:hover {
    background-color: var(--ff-red-dark) !important;
}

body .hover\:bg-emerald-50:hover, body .hover\:bg-emerald-100:hover, body .hover\:bg-teal-50:hover, body .hover\:bg-rose-50:hover,
body .hover\:bg-rose-100:hover, body .hover\:bg-green-50:hover, body .hover\:bg-green-100:hover, body .hover\:bg-purple-50:hover,
body .hover\:bg-blue-50:hover, body .hover\:bg-red-50:hover, body .hover\:bg-orange-50:hover, body .hover\:bg-yellow-100:hover,
body .hover\:bg-slate-50:hover, body .hover\:bg-slate-100:hover {
    background-color: #F1F1F1 !important;
}

body .hover\:text-teal-500:hover, body .hover\:text-teal-600:hover, body .hover\:text-rose-500:hover, body .hover\:text-orange-500:hover,
body .hover\:text-emerald-500:hover, body .hover\:text-red-500:hover, body .hover\:text-\[\#169c68\]:hover, body .group:hover .group-hover\:text-\[\#169c68\] {
    color: var(--ff-red) !important;
}

body .bg-yellow-400, body .bg-yellow-500, body .bg-amber-400, body .bg-amber-500 {
    background-color: var(--ff-paper) !important;
    color: var(--ff-ink) !important;
    box-shadow: inset 0 0 0 1px #D9D9D9;
}

body .border-emerald-100, body .border-emerald-200, body .border-teal-100, body .border-teal-200, body .border-green-200,
body .border-rose-100, body .border-rose-200, body .border-rose-100\/70, body .border-purple-200, body .border-blue-200,
body .border-amber-200, body .border-amber-200\/80, body .border-orange-200, body .border-yellow-200, body .border-red-200,
body .border-slate-100, body .border-slate-200, body .border-slate-200\/70, body .border-slate-200\/80, body .border-gray-100, body .border-gray-200,
body .border-\[\#d6f1e2\], body .border-emerald-100\/80 {
    border-color: var(--ff-line) !important;
}

body .hover\:border-teal-200:hover, body .hover\:border-red-300:hover { border-color: var(--ff-ink) !important; }

body .focus\:border-rose-400:focus, body .focus\:border-teal-500:focus, body .focus\:border-orange-500:focus,
body .focus\:border-orange-400:focus, body .focus\:border-emerald-400:focus { border-color: var(--ff-ink) !important; }

body .ring-white { --tw-ring-color: #FFFFFF; }
body .peer:checked ~ .peer-checked\:bg-teal-500 { background-color: var(--ff-red) !important; }

/* 장식용 그라데이션은 모두 걷는다 */
body [class*="bg-gradient-to-"] {
    background-image: none !important;
}

body [class*="bg-gradient-to-"].text-white,
body button[class*="bg-gradient-to-"],
body a[class*="bg-gradient-to-"] {
    background-color: var(--ff-red) !important;
    color: #FFFFFF !important;
}

body main [style*="linear-gradient"],
body .quick-visit-dialog [style*="linear-gradient"] {
    background-image: none !important;
}

body main button[style*="linear-gradient"],
body main a[style*="linear-gradient"] {
    background: var(--ff-red) !important;
    color: #FFFFFF !important;
}

body main div[style*="linear-gradient"],
body main section[style*="linear-gradient"] {
    background: var(--ff-paper) !important;
}

/* 떠 있는 그림자, 올라가는 호버는 걷는다 */
body main .shadow-sm, body main .shadow, body main .shadow-md, body main .shadow-lg, body main .shadow-xl, body main .shadow-2xl,
body main [class*="shadow-["], body main .hover\:shadow-lg:hover, body main .hover\:shadow-md:hover, body main .hover\:shadow-xl:hover {
    box-shadow: none !important;
}

body main .hover\:-translate-y-1:hover,
body main .hover\:-translate-y-0\.5:hover,
body main .hover\:scale-105:hover,
body main .group:hover .group-hover\:scale-105,
body main .group:hover .group-hover\:scale-110,
body main .group:hover .group-hover\:rotate-6 {
    transform: none !important;
}

/* 둥근 정도는 위계로: 큰 판 14px, 버튼 10px, 칩 6px */
body .rounded-3xl, body .rounded-\[2rem\], body .rounded-\[32px\], body .rounded-\[30px\], body .rounded-\[28px\], body .rounded-\[24px\] {
    border-radius: 14px !important;
}

body .rounded-2xl { border-radius: 12px; }
body .rounded-t-3xl { border-top-left-radius: 16px !important; border-top-right-radius: 16px !important; }

/* 영문 대문자 꼬리표 없이 */
body main .uppercase { text-transform: none !important; }
body main .tracking-widest, body main .tracking-wider { letter-spacing: 0 !important; }

/* ---------- 별점: 겨자색은 여기서만 ---------- */

.ff-rate {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 5px 9px 4px;
    border-radius: 6px;
    background: var(--ff-mustard);
    color: var(--ff-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ff-rate__star { font-size: 13px; transform: translateY(-2px); }

.ff-rate--none {
    background: var(--ff-paper);
    color: var(--ff-ink);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 9px;
    box-shadow: inset 0 0 0 1px var(--ff-ink);
}

/* ---------- 간판 ---------- */

.ff-sign {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 8px 13px 7px;
    border-radius: 4px;
    background: var(--ff-red);
    color: #FFFFFF;
    font-family: var(--ff-sign-font);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: keep-all;
    box-shadow: inset 0 0 0 2px var(--ff-red), inset 0 0 0 3px rgba(255, 255, 255, .5);
}

.ff-sign--wish {
    background: var(--ff-paper);
    color: var(--ff-ink);
    box-shadow: inset 0 0 0 2px var(--ff-ink);
}

/* ---------- 맛집 한 장: 붙인 사진 + 간판 + 한 줄 ---------- */

.ff-places {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
}

@media (min-width: 640px) {
    .ff-places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}

@media (min-width: 1024px) {
    .ff-places { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
}

.ff-place {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ff-place__photo {
    position: relative;
    display: block;
    padding: 7px 7px 7px;
    border: 1px solid var(--ff-line);
    border-radius: 3px;
    background: var(--ff-paper);
    box-shadow: 0 10px 22px -18px rgba(0, 0, 0, .45);
    text-decoration: none;
}

.ff-place__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--ff-wash);
}

.ff-place__blank {
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    place-items: center;
    background: var(--ff-wash);
    color: #D2D2D2;
    font-family: var(--ff-sign-font);
    font-size: 54px;
    line-height: 1;
}

.ff-place__rate {
    position: absolute;
    top: 15px;
    right: 15px;
}

.ff-place__sign {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    max-width: calc(100% - 24px);
    margin: -24px 0 0 14px;
}

.ff-place__sign a { color: inherit; text-decoration: none; }

.ff-place__body {
    display: grid;
    gap: 8px;
    padding: 12px 2px 0;
}

.ff-place__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--ff-muted);
}

.ff-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--ff-wash);
    color: var(--ff-ink-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ff-tag--ink { background: var(--ff-ink); color: #FFFFFF; }
.ff-tag--line { background: var(--ff-paper); box-shadow: inset 0 0 0 1px var(--ff-line); }
.ff-tag--warn { background: var(--ff-red-wash); color: var(--ff-red-dark); }

.ff-place__memo {
    margin: 0;
    color: var(--ff-ink-2);
    font-size: 15px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ff-place__addr {
    margin: 0;
    overflow: hidden;
    color: var(--ff-faint);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ff-place__where {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.ff-place__where .ff-place__addr { flex: 1 1 auto; min-width: 0; }

.ff-maplink {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid var(--ff-line);
    border-radius: 6px;
    background: var(--ff-paper);
    color: var(--ff-ink-2);
    font-size: 12px;
    font-weight: 700;
}

.ff-maplink:hover { border-color: var(--ff-ink); }


.ff-place__tools {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--ff-line);
}

.ff-place__tools .ff-place__visit {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-right: auto;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: var(--ff-ink);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ff-place__visit:hover { background: #000000; }

.ff-icon-btn {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ff-muted);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

.ff-icon-btn:hover { background: var(--ff-wash); color: var(--ff-ink); }
.ff-icon-btn svg { width: 19px; height: 19px; }
.ff-icon-btn--danger:hover { color: var(--ff-red); }

@media (max-width: 359px) {
    .ff-icon-btn { width: 36px; }
    .ff-place__tools .ff-place__visit { padding: 0 10px; }
}

/* ---------- 섹션 머리 ---------- */

.ff-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
}

.ff-section-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--ff-ink);
}

.ff-section-head a {
    color: var(--ff-muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.ff-section-head a:hover { color: var(--ff-ink); }

/* ---------- 홈 ---------- */

.ff-home-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 26px;
}

.ff-home-hero h1 {
    margin: 0;
    font-size: clamp(30px, 8vw, 46px) !important;
}

.ff-home-hero p { margin: 6px 0 0; color: var(--ff-muted); font-size: 15px; }

.ff-tally {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 2px solid var(--ff-ink);
    border-bottom: 1px solid var(--ff-line);
}

.ff-tally > div {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 12px 4px 12px 0;
}

.ff-tally > div:nth-child(n+3) { border-top: 1px solid var(--ff-line); }

.ff-tally dt { color: var(--ff-muted); font-size: 13px; font-weight: 600; }

.ff-tally dd {
    margin: 0;
    overflow: hidden;
    color: var(--ff-ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .ff-home-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 32px; }
    .ff-home-hero .ff-tally { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ff-tally > div:nth-child(n+3) { border-top: 0; }
    .ff-tally > div + div { padding-left: 18px; border-left: 1px solid var(--ff-line); }
}

.ff-home-section { margin-bottom: 40px; }

.ff-pick {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--ff-line);
    border-radius: 14px;
}

.ff-pick h3 { margin: 0; font-size: 18px; font-weight: 800; }
.ff-pick p { margin: 2px 0 0; color: var(--ff-muted); font-size: 14px; }

.ff-pick__result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--ff-wash);
}

.ff-pick__result.hidden { display: none; }

.ff-pick__btn {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--ff-ink);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
}

.ff-pick__btn:hover { background: #000000; }

@media (min-width: 640px) {
    .ff-pick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
}

.ff-rank-list { display: grid; gap: 0; border-top: 2px solid var(--ff-ink); }

.ff-rank-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ff-line);
    color: var(--ff-ink);
    text-decoration: none;
}

.ff-rank-row:hover strong { color: var(--ff-red); }

.ff-rank-row__no {
    font-family: var(--ff-sign-font);
    font-size: 26px;
    line-height: 1;
    color: var(--ff-red);
    text-align: center;
}

.ff-rank-row strong { display: block; overflow: hidden; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ff-rank-row small { color: var(--ff-muted); font-size: 13px; }

/* ---------- 순위 ---------- */

.ff-rank-cards { display: grid; border-top: 2px solid var(--ff-ink); }

.ff-rank-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ff-line);
    cursor: pointer;
}

.ff-rank-card:hover .ff-rank-card__name { color: var(--ff-red); }

.ff-rank-card__no {
    font-family: var(--ff-sign-font);
    font-size: 28px;
    line-height: 1;
    color: #B5B5B5;
    text-align: center;
}

.ff-rank-card--top .ff-rank-card__no { color: var(--ff-red); }

.ff-rank-card__name {
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--ff-ink);
    font-family: var(--ff-sign-font);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ff-rank-card__side { display: grid; justify-items: end; gap: 8px; }
.ff-rank-card__maps { display: flex; gap: 4px; }

@media (max-width: 420px) {
    .ff-rank-card { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
    .ff-rank-card__no { font-size: 24px; }
    .ff-rank-card__name { font-size: 18px; }
}

/* ---------- 내 맛집: 찾기 도구 ---------- */

body [data-mobile-page="restaurants"] > .note-panel:first-child {
    position: relative;
    top: auto;
    border: 0;
    border-radius: 0;
    background: var(--ff-paper);
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
    backdrop-filter: none;
}

.ff-seg {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 !important;
    border: 1px solid var(--ff-ink) !important;
    border-radius: 10px !important;
    background: var(--ff-paper) !important;
    overflow: hidden;
}

.ff-seg > button {
    min-height: 42px;
    padding: 0 14px !important;
    border-radius: 0 !important;
    background: var(--ff-paper) !important;
    color: var(--ff-ink-2) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.ff-seg > button + button { border-left: 1px solid var(--ff-ink) !important; }
.ff-seg > button.bg-white { background: var(--ff-ink) !important; color: #FFFFFF !important; }

.ff-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body #regionFilter button {
    min-height: 36px;
    border-radius: 999px !important;
    font-size: 13px !important;
}

body #regionFilter button.bg-white { border-color: var(--ff-line) !important; color: var(--ff-ink-2) !important; }

body .cat-btn { border-radius: 999px !important; }
body .cat-btn.active-cat { background: var(--ff-ink) !important; color: #FFFFFF !important; }

body #bmFilterBtn.bg-red-500 { background: var(--ff-mustard) !important; color: var(--ff-ink) !important; border-color: var(--ff-mustard) !important; }

body .visit-badge { background: var(--ff-wash); color: var(--ff-ink-2); border: 0; border-radius: 6px; }
body .coord-missing-badge { background: var(--ff-red-wash); color: var(--ff-red-dark); border: 0; border-radius: 6px; }

/* 지도 쪽 */
body .map-feature-filters button,
body .restaurant-nearby-filters button {
    border-color: var(--ff-line);
    border-radius: 999px;
    color: var(--ff-ink-2);
    font-weight: 700;
}

body .map-feature-filters button.is-active,
body .restaurant-nearby-filters button.is-active {
    border-color: var(--ff-ink);
    background: var(--ff-ink);
    color: #FFFFFF;
    box-shadow: none;
}

body .map-marker-reset { border-color: var(--ff-line); border-radius: 10px; color: var(--ff-ink); box-shadow: 0 6px 16px rgba(0,0,0,.12); font-weight: 800; }
body .restaurant-nearby-sheet { border-color: var(--ff-line); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.14); }
body .restaurant-nearby-sheet__head h3 { font-family: var(--ff-sign-font); font-weight: 400; font-size: 20px; color: var(--ff-ink); }
body .restaurant-nearby-sheet__badges span { background: var(--ff-wash); color: var(--ff-ink-2); border-radius: 6px; font-weight: 700; }
body .restaurant-nearby-sheet__primary-actions a { background: var(--ff-wash); color: var(--ff-ink); border-radius: 10px; }
body .restaurant-nearby-sheet__primary-actions button { background: var(--ff-red); border-radius: 10px; }
body .restaurant-nearby-item { border-color: var(--ff-line); border-radius: 12px; }
body .restaurant-nearby-item__edit { background: var(--ff-wash); color: var(--ff-ink); }
body .restaurant-nearby-item__type,
body .restaurant-nearby-item__distance,
body .restaurant-nearby-item__pet { color: var(--ff-red-dark); }
body .nearby-place-map-marker__pet { background: var(--ff-ink); }
body .nearby-focus-restaurant-marker { background: var(--ff-red); box-shadow: 0 6px 16px rgba(211,63,42,.35); border-radius: 6px; }
body .map-marker-tooltip-shell { border-color: var(--ff-line) !important; border-radius: 8px !important; }

body .leaflet-container { font-family: var(--ff-text-font); }
body .leaflet-popup-content-wrapper { border-radius: 10px; }

/* ---------- 맛집 상세 ---------- */

.ff-detail-hero {
    display: grid;
    gap: 0;
}

.ff-detail-hero__photo {
    padding: 8px;
    border: 1px solid var(--ff-line);
    border-radius: 3px;
    background: var(--ff-paper);
    box-shadow: 0 14px 30px -24px rgba(0, 0, 0, .5);
}

.ff-detail-hero__photo img,
.ff-detail-hero__photo .ff-place__blank {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.ff-detail-hero__sign {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    max-width: calc(100% - 28px);
    margin: -30px 0 0 16px;
}

.ff-detail-hero__sign h1 {
    display: inline-block;
    margin: 0;
    padding: 10px 16px 9px;
    border-radius: 4px;
    background: var(--ff-red);
    color: #FFFFFF !important;
    font-size: clamp(28px, 8vw, 44px) !important;
    line-height: 1.1;
    box-shadow: inset 0 0 0 2px var(--ff-red), inset 0 0 0 4px rgba(255, 255, 255, .5);
}

.ff-detail-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.ff-score {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ff-score__num {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 6px 12px 5px;
    border-radius: 8px;
    background: var(--ff-mustard);
    color: var(--ff-ink);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ff-score__num small { font-size: 17px; }
.ff-score__label { color: var(--ff-muted); font-size: 13px; line-height: 1.35; }

.ff-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

@media (min-width: 640px) {
    .ff-actions { display: flex; flex-wrap: wrap; }
}

.ff-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border: 1px solid var(--ff-line);
    border-radius: 10px;
    background: var(--ff-paper);
    color: var(--ff-ink);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.ff-btn:hover { border-color: var(--ff-ink); }
.ff-btn--red { border-color: var(--ff-red); background: var(--ff-red); color: #FFFFFF; }
.ff-btn--red:hover { border-color: var(--ff-red-dark); background: var(--ff-red-dark); }
.ff-btn--ink { border-color: var(--ff-ink); background: var(--ff-ink); color: #FFFFFF; }
.ff-btn--ink:hover { background: #000000; }

.ff-sheet {
    padding: 20px 0 0;
    border-top: 2px solid var(--ff-ink);
}

.ff-sheet h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; }

.ff-memo {
    margin: 0;
    padding: 0 0 0 14px;
    border-left: 3px solid var(--ff-red);
    color: var(--ff-ink);
    font-size: 17px;
    line-height: 1.65;
}

.ff-memo--empty { border-left-color: var(--ff-line); color: var(--ff-faint); font-size: 15px; }

.ff-facts { margin: 18px 0 0; display: grid; gap: 0; }

.ff-facts > div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--ff-line);
}

.ff-facts dt { color: var(--ff-muted); font-size: 14px; font-weight: 600; }
.ff-facts dd { margin: 0; color: var(--ff-ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ff-facts dd small { display: block; margin-top: 2px; color: var(--ff-faint); font-size: 13px; font-weight: 500; }

/* ---------- 영수증: 방문 기록 ---------- */

body .visit-feed-shell { max-width: 640px; margin: 0 auto; }

body .visit-intro {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body .visit-filter-panel {
    padding: 14px !important;
    border: 1px solid var(--ff-line);
    border-radius: 12px;
    background: var(--ff-paper);
    box-shadow: none;
}

body .visit-filter-field span { color: var(--ff-muted); font-weight: 600; letter-spacing: 0; }
body .visit-filter-button { border-radius: 10px; font-weight: 700; box-shadow: none; }
body .visit-filter-button--submit { background: var(--ff-ink); color: #FFFFFF; border-color: var(--ff-ink); }
body .visit-filter-button--reset { background: var(--ff-paper); color: var(--ff-ink); border: 1px solid var(--ff-line); }
body .visit-quick-button { background: var(--ff-red) !important; }

body .visit-cards { gap: 28px; }

body [data-mobile-page] .visit-card,
body .visit-card {
    position: relative;
    overflow: visible;
    padding: 4px 4px 2px;
    border: 1px solid var(--ff-line);
    border-bottom: 0;
    border-radius: 2px;
    background: var(--ff-paper);
    box-shadow: 0 12px 24px -22px rgba(0, 0, 0, .55);
    font-variant-numeric: tabular-nums;
}

/* 영수증 아래 뜯긴 자리 */
body [data-mobile-page] .visit-card::after,
body .visit-card::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -7px;
    height: 7px;
    background:
        linear-gradient(-45deg, transparent 5px, var(--ff-paper) 0) 0 0 / 10px 7px repeat-x,
        linear-gradient(45deg, transparent 5px, var(--ff-paper) 0) 0 0 / 10px 7px repeat-x;
    filter: drop-shadow(0 1px 0 #DADADA);
}

body [data-mobile-page] .visit-card-header,
body .visit-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px 12px;
    margin: 0 14px;
    padding: 16px 0 14px;
    border-bottom: 1px dashed #BDBDBD;
}

body .visit-avatar { display: none; }

body .visit-card-identity h2 {
    margin: 0;
    font-family: var(--ff-sign-font);
    font-size: 23px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ff-ink);
}

body .visit-card-identity p { margin: 4px 0 0; color: var(--ff-muted); font-size: 13px; }

body .visit-card-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
}

body .visit-card-meta time { color: var(--ff-muted); font-size: 13px; font-weight: 600; }

body .visit-rating {
    display: inline-flex;
    padding: 4px 8px 3px;
    border-radius: 6px;
    background: var(--ff-mustard);
    color: var(--ff-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

body .visit-rating--empty { background: var(--ff-wash); color: var(--ff-muted); font-size: 12px; font-weight: 600; }

body [data-mobile-page] .visit-card-body,
body .visit-card-body { display: grid; gap: 14px; padding: 14px 14px 16px; }

body .visit-caption { margin: 0; color: var(--ff-ink-2); font-size: 15px; line-height: 1.6; }
body .visit-caption strong { display: none; }

body .visit-menu-list {
    display: grid;
    gap: 0;
    padding: 2px 0 10px;
    border-bottom: 1px dashed #BDBDBD;
}

body .visit-menu-chip {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(16px, 1fr) auto;
    align-items: baseline;
    gap: 6px;
    padding: 5px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ff-ink);
    font-size: 15px;
    font-weight: 500;
}

body .visit-menu-chip::after { content: none; }

body .visit-menu-name { overflow-wrap: anywhere; }

body .visit-menu-dots {
    align-self: end;
    height: 1px;
    margin-bottom: 6px;
    border-bottom: 1px dotted #9A9A9A;
}

body .visit-menu-price { font-weight: 700; white-space: nowrap; }

body .visit-summary,
body [data-mobile-page] .visit-summary {
    grid-template-columns: minmax(0, 1fr);
    display: grid;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
}

body .visit-summary-item + .visit-summary-item { border: 0 !important; }

body .visit-summary-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body .visit-summary-item small { color: var(--ff-muted); font-size: 14px; font-weight: 600; }
body .visit-summary-item strong { color: var(--ff-ink); font-size: 15px; font-weight: 700; text-align: right; }

body .visit-summary-item:first-child strong { font-size: 20px; font-weight: 800; }

body .visit-card-actions {
    padding-top: 12px;
    border-top: 1px solid var(--ff-line);
}

body .visit-visibility { border-radius: 8px !important; }
body .visit-share-link { color: var(--ff-red); font-weight: 700; }

body .visit-media { gap: 6px; }
body .visit-photo { border-radius: 2px; }

body .visit-empty-icon {
    background: var(--ff-red) !important;
    color: #FFFFFF !important;
    font-family: var(--ff-sign-font);
    border-radius: 4px !important;
}

/* ---------- 빠른 기록 창 ---------- */

body .quick-visit-dialog { border-radius: 16px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.5); }
body .quick-visit-dialog h2 { font-family: var(--ff-sign-font); font-weight: 400; letter-spacing: 0; }
body .quick-button-primary { background: var(--ff-red) !important; border-color: var(--ff-red) !important; color: #FFFFFF !important; box-shadow: none !important; border-radius: 10px !important; }
body .quick-visit-section { border-color: var(--ff-line) !important; border-radius: 12px !important; background: var(--ff-paper) !important; }

/* ---------- 등록·수정 ---------- */

.ff-step {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 6px;
    background: var(--ff-ink);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
}

body [data-mobile-page^="restaurant-"] #restaurantForm > div:not([data-mobile-form-actions]) {
    border: 1px solid var(--ff-line) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

body .star-pick { color: #DDDDDD; }
body .star-pick.selected { color: var(--ff-mustard); }

/* ---------- 컬렉션 ---------- */

.ff-collection-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ff-collection-head__mark {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 6px;
    background: var(--ff-wash);
    font-size: 30px;
}

.ff-vote {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--ff-line);
    border-radius: 8px;
    background: var(--ff-paper);
    color: var(--ff-ink);
    font-size: 14px;
    font-weight: 700;
}

.ff-vote:hover { border-color: var(--ff-ink); }

/* ---------- 모바일 하단 ---------- */

@media (max-width: 767px) {
    body .note-header h1 { font-size: clamp(28px, 8.4vw, 34px); }

    body [data-mobile-page="restaurants"] #restaurantGrid > article,
    body [data-mobile-page="restaurants"] #restaurantGrid > div {
        padding: 0;
    }

    body [data-mobile-page="restaurant-add"] [data-mobile-form-actions],
    body [data-mobile-page="restaurant-edit"] [data-mobile-form-actions] {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        border-color: var(--ff-line);
        border-radius: 14px;
        box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .35);
        backdrop-filter: none;
        background: #FFFFFF;
    }
}

@media (max-width: 767px) {
    /* 내 맛집: 제목 옆에 보기 전환을 두고, 지역 칩은 작게 */
    body [data-mobile-page="restaurants"] > .note-panel:first-child .note-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    body [data-mobile-page="restaurants"] > .note-panel:first-child .note-header > * {
        inline-size: auto;
    }

    body [data-mobile-page="restaurants"] > .note-panel:first-child .note-header > div:last-child {
        display: flex;
        inline-size: auto;
    }

    body [data-mobile-page="restaurants"] .ff-seg > button { min-block-size: 42px; }
    body [data-mobile-page="restaurants"] .note-header .ff-seg > button { padding: 0 12px !important; }

    body [data-mobile-page="restaurants"] #regionFilter { gap: 6px; }

    body [data-mobile-page="restaurants"] #regionFilter button {
        min-block-size: 36px;
        padding: 0 11px !important;
    }

    body [data-mobile-page="restaurants"] .ff-search-row > div { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    #mobileQuickSheet.is-open,
    #mobileMoreSheet.is-open,
    .g-toast { animation: none !important; }
}

.ff-invite {
    margin: 44px 0 0;
    padding-top: 18px;
    border-top: 2px solid var(--ff-ink);
}

@media (min-width: 768px) {
    .ff-invite { padding-left: 0; padding-right: 0; }
}

/* ---------- 통계 ---------- */

.ff-stat-ink { background: var(--ff-ink) !important; color: #FFFFFF; }
.ff-stat-ink p.text-xs { color: #C9C9C9 !important; }
.ff-stat-ink .text-3xl, .ff-stat-ink .text-xl { font-variant-numeric: tabular-nums; }

/* ---------- 추천 ---------- */

body .recommend-card {
    border: 1px solid var(--ff-line) !important;
    border-radius: 14px !important;
    background: var(--ff-paper) !important;
}

body .recommend-card__glow { display: none; }
body .recommend-orb { border-radius: 12px; box-shadow: none; border-color: var(--ff-line); }
body .recommend-label { color: var(--ff-muted); font-weight: 700; }
body .recommend-card h2 { font-weight: 800; letter-spacing: -0.02em; }
body .recommend-button { border-radius: 10px; box-shadow: none; transform: none; }
body .recommend-controls select { border-radius: 10px; box-shadow: none; }
body .recommend-result { border-radius: 12px; box-shadow: none; }
body .result-badge { background: var(--ff-ink); color: #FFFFFF; border-radius: 6px; }
body .result-main h3 { font-family: var(--ff-sign-font); font-weight: 400; letter-spacing: 0; }
body .insight-card { border-radius: 14px !important; box-shadow: none !important; }
body .restaurant-row { border-radius: 10px !important; }
body .ad-shell-link > div.absolute { display: none !important; }

/* ---------- 피드 ---------- */

body .community-eyebrow { display: none !important; }
body .community-post { border-color: var(--ff-line) !important; border-radius: 14px !important; box-shadow: none !important; }

/* ---------- 근처 맛집: PC 에서는 지도와 목록을 나란히 ---------- */

@media (min-width: 1024px) {
    body .ff-nearme-split {
        display: grid;
        max-width: none;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
        align-items: start;
        gap: 20px 24px;
    }

    body .ff-nearme-split > * { grid-column: 2; margin: 0 !important; }

    body .ff-nearme-split > #mapSection {
        grid-column: 1;
        grid-row: 1 / span 12;
        position: sticky;
        top: 84px;
    }

    body .ff-nearme-split:has(> #mapSection.hidden) > * { grid-column: 1 / -1; }
    body .ff-nearme-split:has(> #mapSection.hidden) { max-width: 56rem; }
}

@media (min-width: 768px) {
    body [data-mobile-page="rankings"] .pill-scroll,
    body [data-mobile-page="restaurants"] .pill-scroll { flex-wrap: wrap; overflow: visible; }
}

@media (min-width: 1024px) {
    .ff-detail-hero__photo img,
    .ff-detail-hero__photo .ff-place__blank { aspect-ratio: 21 / 9; }
}
