/* 단골지도 — "Guide Edition"
   레퍼런스: 미쉐린 가이드(빨강 하나 + 등급 기호 체계), Kinfolk·Cereal 지면(헤어라인·큰 세리프·여백),
   슬롯 릴/iOS 피커 드럼(3D 원통), Stripe 류 WebGL 셰이더 배경(여기선 숯불 열기) */

:root {
  --bone: #F4F1EC;
  --bone-2: #EAE5DD;
  --card: #FBFAF7;
  --ink: #16110F;
  --ink-2: #3A322E;
  --muted: #776C65;
  --faint: #A1958D;
  --line: rgba(22, 17, 15, .13);
  --line-2: rgba(22, 17, 15, .07);
  --red: #D3322A;
  --red-deep: #A9241D;
  --red-soft: #F6DDD8;
  --night: #120D0B;
  --night-2: #1D1613;
  --night-line: rgba(244, 241, 236, .13);
  --night-muted: rgba(244, 241, 236, .64);
  --serif: "Hahmlet", "Noto Serif KR", "AppleMyungjo", serif;
  --latin: "Instrument Serif", "Hahmlet", Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --mast-h: 60px;
  --g: 16px;
  --maxw: 1240px;
}
@media (min-width: 720px) { :root { --g: 28px; --mast-h: 66px; } }
@media (min-width: 1100px) { :root { --g: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--night); scroll-padding-top: calc(var(--mast-h) + 12px); }
body { font-family: var(--sans); color: var(--ink); background: var(--bone); line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bone); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.noscript { padding: 40px; text-align: center; }
.num { font-variant-numeric: tabular-nums; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; transition: transform .18s var(--ease), background .2s, color .2s, box-shadow .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; stroke-width: 2; }
.btn-red { background: var(--red); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px -8px rgba(211,50,42,.8); }
.btn-red:hover { background: #DD3A31; }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: #2a221f; }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--card); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost-n { color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.btn-ghost-n:hover { box-shadow: inset 0 0 0 1.5px rgba(244,241,236,.5); }
.btn-block { width: 100%; height: 52px; font-size: 16px; }
.btn-danger { color: var(--red-deep); box-shadow: inset 0 0 0 1.5px rgba(169,36,29,.3); background: transparent; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: rgba(127,127,127,.12); }
.text-btn { min-height: 44px; padding: 0 6px; font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); white-space: nowrap; background: var(--card); }
.chip-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip-btn .i { width: 16px; height: 16px; }

/* ───────── masthead ───────── */
.mast { position: sticky; top: 0; z-index: 40; background: var(--night); color: var(--bone); border-bottom: 1px solid var(--night-line); }
.mast-in { max-width: var(--maxw); margin: 0 auto; height: var(--mast-h); padding: 0 var(--g); display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.wordmark { font: 800 21px/1 var(--serif); letter-spacing: -.045em; white-space: nowrap; }
.wordmark.sm { font-size: 17px; }
.issue { display: none; font: italic 400 17px/1 var(--latin); color: var(--night-muted); white-space: nowrap; padding-left: 14px; border-left: 1px solid var(--night-line); }
.issue b { font-weight: 400; color: var(--bone); }
.issue i { font-style: normal; padding: 0 2px; }
.issue span { font: 500 12.5px/1 var(--sans); letter-spacing: -.01em; }
.mast-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mast .icon-btn:hover { background: rgba(244,241,236,.08); }
.btn-add { height: 40px; padding: 0 15px 0 12px; font-size: 14.5px; }
@media (min-width: 560px) { .issue { display: inline-block; } }
@media (min-width: 720px) { .wordmark { font-size: 23px; } .btn-add { height: 44px; padding: 0 20px 0 16px; font-size: 15px; } }

/* ───────── stage (오늘 뭐 먹지?) ───────── */
.stage { position: relative; isolation: isolate; overflow: hidden; color: var(--bone); background: radial-gradient(120% 80% at 50% 100%, #3a120d 0%, #1a110e 45%, var(--night) 80%); }
.ember { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.ember.is-off { display: none; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(211,50,42,.6), transparent); }
.stage-in { max-width: var(--maxw); margin: 0 auto; padding: 30px var(--g) 34px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "drum" "cta" "card"; gap: 22px; }
.stage-copy { grid-area: copy; min-width: 0; }
.drum { grid-area: drum; }
.stage-cta { grid-area: cta; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.pick-card { grid-area: card; }

.kicker { display: inline-flex; align-items: center; gap: 9px; font: 650 11.5px/1 var(--sans); letter-spacing: .16em; color: var(--night-muted); text-transform: uppercase; }
.kicker em { font: italic 400 16px/1 var(--latin); letter-spacing: 0; text-transform: none; color: var(--bone); }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(211,50,42,.22); animation: breathe 2.4s ease-in-out infinite; }
.kicker.dark { color: var(--muted); }
.sh-body > .kicker { letter-spacing: 0; font-size: 13.5px; text-transform: none; }
.kicker.dark em { color: var(--ink); }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px rgba(211,50,42,0); } }
.stage h1 { margin-top: 16px; font: 800 clamp(34px, 9.4vw, 66px)/1.12 var(--serif); letter-spacing: -.05em; color: #FAF7F2; }
.stage h1 .hl { color: var(--red); position: relative; white-space: nowrap; }
.stage h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .08em; background: currentColor; border-radius: 2px; transform-origin: left; animation: underline 1.1s .4s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.stage-sub { margin-top: 14px; font-size: 15px; color: var(--night-muted); max-width: 34em; }
.stage-sub b { color: var(--bone); font: italic 400 20px/1 var(--latin); padding: 0 1px; }
.pool-chips { margin-top: 18px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin-left: -2px; margin-right: calc(var(--g) * -1); padding-right: var(--g); }
.pool-chips::-webkit-scrollbar { display: none; }
.pchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--night-line); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.pchip:hover { box-shadow: inset 0 0 0 1.5px rgba(244,241,236,.45); }
.pchip[aria-pressed="true"] { background: var(--bone); color: var(--ink); box-shadow: none; }
.pchip .n { font: italic 400 15px/1 var(--latin); opacity: .65; }
.pchip.toggle .i { width: 15px; height: 15px; stroke-width: 2.4; opacity: .35; }
.pchip.toggle[aria-pressed="true"] .i { opacity: 1; color: var(--red); }

/* the drum */
.drum { --face-h: 74px; position: relative; padding: 10px; border-radius: 24px; background: linear-gradient(180deg, #2b211d, #0d0908 50%, #2b211d); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(255,255,255,.05), 0 30px 60px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.6); }
.drum::before { content: ""; position: absolute; inset: 4px; border-radius: 20px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(244,241,236,.06); }
.drum-viewport { position: relative; height: calc(var(--face-h) * 3.55); border-radius: 15px; overflow: hidden; perspective: 1000px; perspective-origin: 50% 50%; background: #0b0807; touch-action: pan-y; cursor: grab; }
.drum-viewport.is-grab { cursor: grabbing; }
.drum-viewport::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,8,7,.92), rgba(11,8,7,0) 30%, rgba(11,8,7,0) 70%, rgba(11,8,7,.92)); }
.drum-ring { position: absolute; left: 0; right: 0; top: 50%; height: var(--face-h); margin-top: calc(var(--face-h) / -2); transform-style: preserve-3d; will-change: transform; }
.face { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 0 20px 0 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(180deg, #FBF8F3, #EFEAE2); color: var(--ink); border-top: 1px solid rgba(22,17,15,.08); border-bottom: 1px solid rgba(22,17,15,.12); }
.face-no { flex: none; width: 30px; font: italic 400 22px/1 var(--latin); color: var(--red); text-align: right; }
.face-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.face-name { display: block; font: 700 25px/1.12 var(--serif); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.face-meta { display: block; font: 500 12px/1.2 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.face-meta:empty { display: none; }
.face.is-win { background: linear-gradient(180deg, #DC3A31, #C42C25); color: #fff; }
.face.is-win .face-no, .face.is-win .face-meta { color: rgba(255,255,255,.82); }
.drum.is-placeholder .face-name { color: #9b8f87; }
.drum-window { position: absolute; left: 10px; right: 10px; top: 50%; height: calc(var(--face-h) + 6px); transform: translateY(-50%); pointer-events: none; border-top: 1.5px solid rgba(211,50,42,.85); border-bottom: 1.5px solid rgba(211,50,42,.85); }
.notch { position: absolute; top: 50%; width: 12px; height: 18px; margin-top: -9px; background: var(--red); transition: transform .08s; }
.notch.l { left: -10px; clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: 0 50%; }
.notch.r { right: -10px; clip-path: polygon(100% 0, 0 50%, 100% 100%); transform-origin: 100% 50%; }
.drum.tick .notch.l { transform: rotate(-14deg) translateX(1px); }
.drum.tick .notch.r { transform: rotate(14deg) translateX(-1px); }
.drum.landed { animation: thunk .5s var(--spring); }
@keyframes thunk { 30% { transform: translateY(3px) scale(.995); } }

.spin-btn { position: relative; width: 100%; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 24px; border-radius: 20px; background: var(--bone); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(22,17,15,.12), 0 18px 40px -18px rgba(211,50,42,.7); transition: transform .2s var(--ease), box-shadow .2s; overflow: hidden; }
.spin-btn:hover { transform: translateY(-1px); }
.spin-btn:active { transform: translateY(1px) scale(.99); box-shadow: inset 0 -1px 0 rgba(22,17,15,.12), 0 8px 20px -12px rgba(211,50,42,.7); }
.spin-btn:disabled { cursor: default; opacity: .9; }
.spin-label { font: 800 20px/1 var(--serif); letter-spacing: -.04em; white-space: nowrap; }
.spin-count { font: italic 400 18px/1 var(--latin); color: var(--muted); white-space: nowrap; }
.spin-ic { margin-left: auto; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--red); color: #fff; }
.spin-ic .i { width: 22px; height: 22px; stroke-width: 2.2; }
.spin-btn.is-spinning .spin-ic .i { animation: rot .6s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.stage-cta .text-btn { align-self: center; color: var(--night-muted); }
.stage-cta .text-btn:hover { color: var(--bone); }

.pick-card { position: relative; background: var(--bone); color: var(--ink); border-radius: 22px; padding: 22px 20px 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); transform-origin: 50% 0; }
.pick-card.in { animation: cardIn .6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); clip-path: inset(0 0 100% 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
.pick-card .kicker { color: var(--red); letter-spacing: 0; font-size: 13.5px; }
.pick-card .kicker .i { width: 16px; height: 16px; }
.pick-card h3 { margin-top: 10px; font: 800 30px/1.15 var(--serif); letter-spacing: -.045em; }
.pick-card .meta { margin-top: 6px; font-size: 14px; color: var(--muted); }
.pick-card .memo { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--red); font-size: 14.5px; color: var(--ink-2); }
.pick-card .actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pick-card .again { position: absolute; top: 12px; right: 10px; }
.pick-card .tags { margin-top: 10px; }

@media (min-width: 720px) {
  .stage-in { padding: 44px var(--g) 48px; gap: 26px 40px; }
  .drum { --face-h: 86px; }
  .face { gap: 20px; padding: 0 28px 0 22px; }
  .face-no { font-size: 26px; width: 36px; }
  .face-name { font-size: 32px; }
  .face-meta { font-size: 13px; }
  .spin-btn { height: 70px; }
  .spin-label { font-size: 22px; }
  .pool-chips { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
}
@media (min-width: 1024px) {
  .stage-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "copy drum" "cta drum" "card drum"; grid-template-rows: auto auto 1fr; padding: 64px var(--g) 72px; column-gap: 64px; align-items: start; }
  .drum { --face-h: 96px; align-self: center; }
  .face-name { font-size: 38px; }
  .stage-cta { max-width: 460px; }
  .pick-card { max-width: 460px; }
}

/* ───────── guide (목록 · 지도 · 리스트) ───────── */
.guide { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--g) 64px; }
.guide-head { display: grid; gap: 22px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.guide-title h2 { margin-top: 10px; font: 800 clamp(36px, 8vw, 64px)/1.05 var(--serif); letter-spacing: -.055em; }
.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.covers div { padding: 12px 0 0 12px; border-left: 1px solid var(--line); min-width: 0; }
.covers div:first-child { border-left: 0; padding-left: 0; }
.covers dt { order: 2; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.covers dd { font: italic 400 38px/1 var(--latin); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.covers div { display: flex; flex-direction: column-reverse; gap: 6px; }
.covers .red dd { color: var(--red); }
@media (min-width: 900px) {
  .guide { padding: 64px var(--g) 88px; }
  .guide-head { grid-template-columns: 1fr minmax(0, 560px); align-items: end; }
  .covers { border-top: 0; }
  .covers div { padding: 0 0 0 18px; }
  .covers dd { font-size: 52px; }
}

.viewbar { margin-top: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bone-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 650; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: background .25s var(--ease), color .2s; }
.seg button .i { width: 17px; height: 17px; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bone); }
.map-side-toggle { margin-left: auto; }

.toolbar { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "search search" "tabs sort" "tags tags"; gap: 12px 10px; align-items: center; }
.search { grid-area: search; position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 48px; padding: 0 14px 0 44px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,17,15,.06); }
.tabs { grid-area: tabs; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 40px; padding: 0 11px; font-weight: 650; font-size: 14.5px; color: var(--muted); border-radius: 10px; white-space: nowrap; position: relative; }
.tabs button .n { font: italic 400 15px/1 var(--latin); margin-left: 3px; }
.tabs button[aria-pressed="true"] { color: var(--ink); }
.tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; }
.sort { grid-area: sort; position: relative; }
.sort select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 30px 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316110F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; font-size: 14px; font-weight: 600; cursor: pointer; max-width: 140px; }
.tagbar { grid-area: tags; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--g) * -1); padding-right: var(--g); padding-bottom: 2px; }
.tagbar::-webkit-scrollbar { display: none; }
.tag { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); background: transparent; white-space: nowrap; transition: background .2s, color .2s; }
.tag .n { font: italic 400 14px/1 var(--latin); color: var(--faint); }
.tag[aria-pressed="true"] { background: var(--ink); color: var(--bone); box-shadow: none; }
.tag[aria-pressed="true"] .n { color: rgba(244,241,236,.6); }
@media (min-width: 900px) {
  .toolbar { grid-template-columns: minmax(240px, 340px) 1fr auto; grid-template-areas: "search tabs sort" "tags tags tags"; }
  .tagbar { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
}

.desk { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.col-map { display: none; }
.guide[data-view="map"] .col-list { display: none; }
.guide[data-view="map"] .col-map { display: block; }
.guide[data-view="lists"] .toolbar, .guide[data-view="lists"] .desk { display: none; }
@media (min-width: 1024px) {
  .guide[data-view="list"].with-map .desk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .guide[data-view="list"].with-map .col-map { display: block; }
  .guide[data-view="list"]:not(.with-map) .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
.result-line { font-size: 13px; color: var(--muted); padding: 4px 0 8px; }
.result-line b { color: var(--ink); font-weight: 650; }

/* entries — 지면 목록 */
.entries { display: grid; grid-template-columns: minmax(0, 1fr); }
.entry { position: relative; display: grid; grid-template-columns: 30px 76px minmax(0, 1fr); gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; opacity: 0; animation: rise .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.entry:hover .entry-name { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.entry-hit { position: absolute; inset: 0; z-index: 1; border-radius: 4px; }
.entry-no { padding-top: 2px; font: italic 400 24px/1 var(--latin); color: var(--red); text-align: right; font-variant-numeric: tabular-nums; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--tone, #3A322E); color: var(--bone); display: grid; place-items: center; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .cap { font: 700 34px/1 var(--serif); letter-spacing: -.04em; transform: translateY(-1px); }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
.thumb .cuisine { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 600 9.5px/1 var(--sans); letter-spacing: .12em; opacity: .75; }
.entry-body { min-width: 0; }
.entry-top { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.entry-name { font: 700 21px/1.25 var(--serif); letter-spacing: -.04em; min-width: 0; }
.entry-meta { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.entry-meta .dist { color: var(--red-deep); font-weight: 600; }
.entry-line { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-2); }
.entry-quote { margin-top: 8px; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-quote b { font-weight: 650; }
.mini-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.mini-tags span::before { content: "#"; color: var(--faint); }
.badge { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; letter-spacing: -.01em; margin-top: 2px; }
.badge--want { box-shadow: inset 0 0 0 1.3px var(--ink); color: var(--ink); }
.badge--visited { background: var(--bone-2); color: var(--ink-2); }
.badge--yes { background: var(--red); color: #fff; }
.badge--maybe { background: var(--bone-2); color: var(--ink-2); }
.badge--no { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1.3px var(--line); text-decoration: line-through; }

/* 등급 기호 (로제트) */
.roses { position: relative; display: inline-flex; vertical-align: middle; height: 14px; }
.roses svg { width: 14px; height: 14px; margin-right: 2px; flex: none; }
.roses .bg svg { fill: rgba(22,17,15,.14); }
.roses .bg, .roses .fg { display: flex; }
.roses .fg { position: absolute; inset: 0; overflow: hidden; width: var(--w); }
.roses .fg svg { fill: var(--red); }
.rate-num { font: italic 400 17px/1 var(--latin); color: var(--ink); }

.empty { padding: 48px 0 20px; border-top: 1px solid var(--line); text-align: left; }
.empty h3 { font: 800 28px/1.2 var(--serif); letter-spacing: -.045em; }
.empty p { margin-top: 8px; color: var(--muted); max-width: 34em; }
.empty .actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* map */
.map-frame { position: relative; height: min(72vh, 640px); min-height: 420px; border-radius: 20px; overflow: hidden; background: var(--bone-2); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 1024px) { .col-map { position: sticky; top: calc(var(--mast-h) + 16px); align-self: start; } .map-frame { height: calc(100vh - var(--mast-h) - 40px); max-height: 820px; } }
.kmap { position: absolute; inset: 0; }
.kmap img[src*="map.daumcdn.net"], .kmap img[src*="map0.daumcdn.net"], .kmap img[src*="map1.daumcdn.net"], .kmap img[src*="map2.daumcdn.net"], .kmap img[src*="map3.daumcdn.net"] { filter: grayscale(1) sepia(.12) contrast(.96) brightness(1.04); }
.kpin { position: relative; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 4px; margin-bottom: 9px; border-radius: 16px; background: var(--ink); color: var(--bone); font: 650 12.5px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(22,17,15,.7); cursor: pointer; transition: transform .2s var(--spring), background .2s; transform-origin: 50% 130%; }
.kpin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 7px; margin-left: -6px; background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.kpin-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font: italic 400 14px/1 var(--latin); }
.kpin-name { max-width: 8.5em; overflow: hidden; text-overflow: ellipsis; }
.kpin--want { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 8px 18px -8px rgba(22,17,15,.5); }
.kpin--want::after { background: var(--ink); }
.kpin--want .kpin-n { background: var(--ink); color: var(--bone); }
.kpin--no { background: #8f857e; }
.kpin--no .kpin-n { background: #6d645e; }
.kpin.is-on { transform: scale(1.14); background: var(--red); color: #fff; box-shadow: 0 12px 24px -8px rgba(211,50,42,.8); z-index: 9; }
.kpin.is-on .kpin-n { background: #fff; color: var(--red); }
.kpin.is-on::after { background: var(--red); }

.schematic { position: absolute; inset: 0; background-color: #EDE8E0; }
.schematic > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.schematic .grid line { stroke: rgba(22,17,15,.07); stroke-width: 1; }
.schematic .road { fill: none; stroke: rgba(22,17,15,.12); stroke-width: 1.2; stroke-dasharray: 2 5; }
.sm-pin { cursor: pointer; }
.sm-pin circle.halo { fill: rgba(211,50,42,.0); transition: fill .2s; }
.sm-pin:hover circle.halo, .sm-pin.is-on circle.halo { fill: rgba(211,50,42,.16); }
.sm-pin text { font: italic 400 13px var(--latin); }
.sm-pin .lbl { font: 650 12px var(--sans); letter-spacing: -.01em; fill: var(--ink); paint-order: stroke; stroke: #EDE8E0; stroke-width: 4px; stroke-linejoin: round; }
.schematic-note { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(251,250,247,.94); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.schematic-note b { display: block; font-size: 13px; color: var(--ink); }
.schematic-note .i { color: var(--red); margin-top: 1px; }
.schematic-foot { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; font: italic 400 14px/1 var(--latin); color: var(--muted); }
.schematic-foot .bar { height: 6px; border: 1.5px solid var(--ink-2); border-top: 0; }
.schematic-compass { position: absolute; right: 14px; bottom: 12px; font: italic 400 16px/1 var(--latin); color: var(--ink-2); text-align: center; }
.schematic-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.schematic-empty b { display: block; font: 800 22px/1.3 var(--serif); color: var(--ink); letter-spacing: -.04em; margin-bottom: 6px; }

.map-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 20; background: var(--card); border-radius: 18px; padding: 14px 14px 14px 16px; box-shadow: 0 20px 40px -18px rgba(22,17,15,.6), inset 0 0 0 1px var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; animation: rise .35s var(--ease); }
.map-card h4 { font: 700 19px/1.25 var(--serif); letter-spacing: -.04em; }
.map-card p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.map-card .row { display: flex; gap: 6px; }
.map-card .close { position: absolute; top: -14px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bone); display: grid; place-items: center; }
.map-card .close .i { width: 16px; height: 16px; }
.no-coords { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* lists view */
.lists-view { margin-top: 18px; }
.lists-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 720px) { .lists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lists-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lcard { position: relative; display: flex; flex-direction: column; min-height: 220px; padding: 22px 20px 18px; border-radius: 22px; background: var(--night); color: var(--bone); overflow: hidden; isolation: isolate; }
.lcard::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 90%; z-index: -1; background: radial-gradient(closest-side, rgba(211,50,42,.55), rgba(211,50,42,0)); }
.lcard:nth-child(3n+2)::before { background: radial-gradient(closest-side, rgba(214,120,48,.45), rgba(214,120,48,0)); }
.lcard:nth-child(3n+3)::before { background: radial-gradient(closest-side, rgba(150,40,60,.5), rgba(150,40,60,0)); }
.lcard .count { font: italic 400 46px/1 var(--latin); color: var(--bone); }
.lcard .count small { font: 600 12px/1 var(--sans); color: var(--night-muted); margin-left: 4px; font-style: normal; }
.lcard h3 { margin-top: 14px; font: 800 24px/1.2 var(--serif); letter-spacing: -.045em; }
.lcard p { margin-top: 6px; font-size: 13.5px; color: var(--night-muted); }
.lcard .names { margin-top: 10px; font-size: 13px; color: rgba(244,241,236,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .row { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; position: relative; z-index: 2; }
.lcard .hit { position: absolute; inset: 0; z-index: 1; }
.lcard.new { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); border: 0; align-items: flex-start; justify-content: center; gap: 8px; cursor: pointer; text-align: left; }
.lcard.new::before { display: none; }
.lcard.new:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lcard.new .plus { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }
.lcard.new h3 { margin-top: 6px; }
.lcard.new p { color: var(--muted); margin-top: 0; }

/* ───────── sheet ───────── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(18,13,11,.55); opacity: 0; transition: opacity .35s var(--ease); }
.scrim.is-open { opacity: 1; }
.sheet { position: fixed; inset: 0; z-index: 61; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.sheet-panel { pointer-events: auto; position: relative; width: 100%; max-width: 640px; max-height: calc(100dvh - 20px); overflow-y: auto; overscroll-behavior: contain; background: var(--bone); border-radius: 24px 24px 0 0; transform: translateY(104%); transition: transform .45s var(--ease); outline: none; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.5); }
.sheet.is-open .sheet-panel { transform: none; }
.sheet.full .sheet-panel { height: calc(100dvh - 20px); }
@media (min-width: 900px) {
  .sheet { justify-content: flex-end; align-items: stretch; }
  .sheet-panel, .sheet.full .sheet-panel { max-width: 540px; height: 100%; max-height: none; border-radius: 0; transform: translateX(104%); box-shadow: -30px 0 80px -30px rgba(0,0,0,.6); }
  .sheet.is-open .sheet-panel, .sheet.is-open.full .sheet-panel { transform: none; }
}
.sh-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 10px 0 8px; background: rgba(244,241,236,.97); border-bottom: 1px solid var(--line-2); }
.sh-head h2 { font: 800 18px/1 var(--serif); letter-spacing: -.04em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-head .sp { flex: 1; }
.sh-grip { position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(22,17,15,.15); }
@media (min-width: 900px) { .sh-grip { display: none; } }
.sh-body { padding: 18px 20px 28px; }
.sh-foot { position: sticky; bottom: 0; z-index: 5; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(244,241,236,0), var(--bone) 30%); display: flex; gap: 8px; }
.sh-foot .btn { flex: 1; height: 52px; font-size: 16px; }

/* detail */
.dt-hero { position: relative; margin: -18px -20px 0; padding: 26px 20px 22px; background: var(--night); color: var(--bone); overflow: hidden; isolation: isolate; }
.dt-hero::before { content: ""; position: absolute; inset: 30% -20% -60% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(211,50,42,.5), transparent); }
.dt-hero.has-photo { padding-top: 180px; }
.dt-hero .cover { position: absolute; inset: 0; z-index: -2; }
.dt-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.dt-hero .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,13,11,.1), rgba(18,13,11,.4) 40%, var(--night) 96%); }
.dt-hero .kicker { color: var(--night-muted); }
.dt-hero h3 { margin-top: 12px; font: 800 34px/1.12 var(--serif); letter-spacing: -.05em; }
.dt-hero .meta { margin-top: 8px; font-size: 14px; color: var(--night-muted); }
.dt-hero .addr { margin-top: 2px; font-size: 13px; color: rgba(244,241,236,.5); }
.dt-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--night-line); }
.dt-stats div { padding: 12px 0 0 12px; border-left: 1px solid var(--night-line); min-width: 0; }
.dt-stats div:first-child { padding-left: 0; border-left: 0; }
.dt-stats b { display: block; font: italic 400 28px/1 var(--latin); color: #fff; white-space: nowrap; }
.dt-stats span { font-size: 12px; color: var(--night-muted); }
.dt-stats .verdict-yes b { color: #FF8A80; }
.dt-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.dt-actions .btn { height: 42px; font-size: 14px; padding: 0 15px; }
.status-switch { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: var(--bone-2); }
.status-switch button { height: 44px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--muted); transition: background .25s, color .2s; }
.status-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(22,17,15,.2); }
.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sec-h h4 { font: 800 19px/1.2 var(--serif); letter-spacing: -.04em; }
.sec-h .n { font: italic 400 18px/1 var(--latin); color: var(--muted); }
.memo-box { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); white-space: pre-wrap; font-size: 15px; color: var(--ink-2); }
.tags-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags-row span { height: 30px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; background: var(--bone-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.visit { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.visit-date { text-align: left; }
.visit-date b { display: block; font: italic 400 26px/1 var(--latin); font-variant-numeric: tabular-nums; }
.visit-date span { font-size: 12px; color: var(--muted); }
.visit-top { padding-right: 34px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.visit-with { font-size: 13px; color: var(--muted); }
.menus { margin-top: 8px; display: grid; gap: 6px; }
.menus li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: 14.5px; align-items: baseline; }
.menus li b { font-weight: 700; white-space: nowrap; }
.menus li b::after { content: ""; display: inline-block; width: 18px; height: 1px; margin-left: 8px; vertical-align: middle; background: var(--faint); }
.menus li span { color: var(--ink-2); }
.visit-note { margin-top: 8px; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; }
.visit-photos { margin-top: 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.visit-photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; flex: none; cursor: zoom-in; }
.visit-edit { position: absolute; top: 10px; right: -8px; }
.price { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.list-checks { margin-top: 10px; display: grid; gap: 6px; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row .box { width: 24px; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; flex: none; color: transparent; transition: background .15s; }
.check-row .box .i { width: 16px; height: 16px; stroke-width: 2.6; }
.check-row input:checked + .box { background: var(--red); color: #fff; box-shadow: none; }
.check-row input:focus-visible + .box { outline: 2.5px solid var(--red); outline-offset: 2px; }
.check-row .t { min-width: 0; flex: 1; }
.check-row .t b { display: block; font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-row .t small { font-size: 12.5px; color: var(--muted); }

/* forms */
.field { margin-top: 18px; }
.field:first-child { margin-top: 0; }
.lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.lbl small { font-weight: 500; color: var(--faint); }
.inp, .ta { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.inp { height: 50px; padding: 0 14px; }
.ta { min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.inp:focus, .ta:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,17,15,.06); }
.inp[aria-invalid="true"] { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .tag { height: 38px; padding: 0 13px; }
.seg-choice { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.seg-choice button { height: 46px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--card); white-space: nowrap; padding: 0 4px; transition: background .2s, color .2s; }
.seg-choice button[aria-pressed="true"] { background: var(--ink); color: var(--bone); box-shadow: none; }
.seg-choice.revisit button[data-v="yes"][aria-pressed="true"] { background: var(--red); }
.seg-choice.price { --n: 5; }
.seg-choice.price button { font-size: 12.5px; }
.rate-input { display: flex; align-items: center; gap: 2px; }
.rate-input button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; }
.rate-input svg { width: 30px; height: 30px; fill: rgba(22,17,15,.13); transition: transform .25s var(--spring), fill .15s; }
.rate-input button.on svg { fill: var(--red); }
.rate-input button:active svg { transform: scale(.85); }
.rate-input .val { margin-left: 8px; font: italic 400 26px/1 var(--latin); min-width: 2.2ch; }
.menu-rows { display: grid; gap: 8px; }
.menu-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) 40px; gap: 6px; }
.menu-row .inp { height: 46px; font-size: 15px; }
.menu-row .icon-btn { width: 40px; height: 46px; border-radius: 12px; color: var(--muted); }
.add-row { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 8px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--red-deep); }
.add-row .i { width: 18px; height: 18px; stroke-width: 2.2; }
.add-row:hover { background: var(--red-soft); }
.photo-row { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-row .ph { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--bone-2); }
.photo-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-row .ph button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(18,13,11,.75); color: #fff; display: grid; place-items: center; }
.photo-row .ph button .i { width: 14px; height: 14px; stroke-width: 2.4; }
.photo-add { width: 84px; height: 84px; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 4px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-size: 11.5px; font-weight: 650; background: var(--card); }
.photo-add:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.hint.warn { color: var(--red-deep); }

/* place search */
.ksearch { position: relative; }
.ksearch .inp { padding-left: 44px; }
.ksearch .i { position: absolute; left: 14px; top: 15px; color: var(--muted); }
.kresults { margin-top: 8px; display: grid; gap: 2px; }
.kresult { width: 100%; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 12px; border-radius: 12px; }
.kresult:hover, .kresult:focus-visible { background: var(--card); }
.kresult b { font-weight: 700; font-size: 15.5px; }
.kresult small { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.kresult em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 12px; font-weight: 650; color: var(--red-deep); }
.kfallback { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.kfallback .i { color: var(--red); margin-top: 1px; }
.picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--bone); }
.picked .t { flex: 1; min-width: 0; }
.picked b { display: block; font: 700 17px/1.3 var(--serif); letter-spacing: -.03em; }
.picked small { font-size: 12.5px; color: var(--night-muted); }
.picked .icon-btn { color: var(--bone); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; font-size: 12px; font-weight: 650; color: var(--faint); letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* menu sheet */
.menu-list { display: grid; gap: 2px; }
.menu-item { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 12px; border-radius: 14px; text-align: left; width: 100%; }
.menu-item:hover { background: var(--card); }
.menu-item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bone-2); flex: none; }
.menu-item b { display: block; font-size: 15.5px; font-weight: 700; }
.menu-item small { font-size: 12.5px; color: var(--muted); }
.menu-item.danger b { color: var(--red-deep); }
.store-note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--bone-2); font-size: 13px; color: var(--ink-2); }

/* share */
.share-box { margin-top: 14px; display: flex; gap: 6px; }
.share-box .inp { font-size: 13px; color: var(--muted); }
.shared-head { margin: -18px -20px 0; padding: 28px 20px 24px; background: var(--night); color: var(--bone); position: relative; overflow: hidden; isolation: isolate; }
.shared-head::before { content: ""; position: absolute; inset: 20% -30% -80% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(211,50,42,.55), transparent); }
.shared-head h3 { margin-top: 12px; font: 800 32px/1.15 var(--serif); letter-spacing: -.05em; }
.shared-head p { margin-top: 6px; color: var(--night-muted); font-size: 14.5px; }
.shared-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.shared-list .no { font: italic 400 22px/1 var(--latin); color: var(--red); text-align: right; padding-top: 2px; }
.shared-list b { font: 700 18px/1.3 var(--serif); letter-spacing: -.035em; }
.shared-list small { display: block; font-size: 13px; color: var(--muted); }
.shared-list .links { margin-top: 6px; display: flex; gap: 12px; font-size: 13px; font-weight: 650; }
.shared-list .links a { color: var(--red-deep); text-decoration: none; }

/* dialog + toast */
.dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(18,13,11,.55); }
.dialog-card { width: 100%; max-width: 380px; background: var(--bone); border-radius: 22px; padding: 22px 20px 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: pop .3s var(--spring); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.dialog-card h3 { font: 800 21px/1.3 var(--serif); letter-spacing: -.04em; }
.dialog-card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); white-space: pre-line; }
.dialog-card .row { margin-top: 20px; display: flex; gap: 8px; }
.dialog-card .row .btn { flex: 1; height: 48px; }
.dialog-card .row.three { flex-direction: column; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: 14px; background: var(--ink); color: var(--bone); font-size: 14.5px; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); transition: opacity .25s, transform .35s var(--spring); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10,7,6,.92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ───────── footer ───────── */
.foot { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--g) calc(36px + env(safe-area-inset-bottom)); display: grid; gap: 10px; font-size: 13px; }
.foot-brand { color: var(--bone); font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.foot a { color: var(--bone); text-underline-offset: 3px; }
.privacy { max-width: 60em; }
.support { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--night-line); text-decoration: none; font-weight: 600; }
.support:hover { box-shadow: inset 0 0 0 1.5px rgba(244,241,236,.4); }
.support .i { color: var(--red); width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .entry { opacity: 1; }
}
