:root {
  color-scheme: light;
  --nf-ink: #211f1b;
  --nf-muted: #6c655c;
  --nf-line: #d8d0c4;
  --nf-paper: #fffdf8;
  --nf-yellow: #ffdf5d;
  --nf-coral: #f06449;
  --nf-teal: #2f8f7d;
  --nf-blue: #4c7fc4;
  --nf-shadow: rgba(33, 31, 27, .13);
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  color: var(--nf-ink);
  background:
    radial-gradient(circle at 9% 2%, rgba(255, 223, 93, .42), transparent 22%),
    radial-gradient(circle at 94% 26%, rgba(47, 143, 125, .16), transparent 23%),
    #f7f2e9;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.nf-site-header,
.nf-app {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.nf-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-block: 12px;
}

.nf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.nf-brand img {
  width: 45px;
  height: 45px;
  border: 2px solid var(--nf-ink);
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 0 var(--nf-shadow);
}

.nf-brand span { display: grid; line-height: 1.12; }
.nf-brand strong { font-size: 16px; }
.nf-brand small { margin-top: 4px; color: var(--nf-muted); font-size: 10px; font-weight: 750; }

.nf-home-link,
.nf-button,
.nf-chip,
.nf-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid var(--nf-ink);
  border-radius: 13px;
  background: #fff;
  color: var(--nf-ink);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--nf-shadow);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.nf-home-link { min-width: 66px; padding: 9px 14px; }
.nf-button { gap: 7px; padding: 10px 15px; }
.nf-button:hover, .nf-button:focus-visible,
.nf-chip:hover, .nf-chip:focus-visible,
.nf-home-link:hover, .nf-home-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--nf-shadow);
}
.nf-button.primary { background: var(--nf-yellow); }
.nf-button.soft { border-color: #a8a097; background: #fffdf8; box-shadow: none; }
.nf-button.location { background: #eaf7f2; }
.nf-button.wide { width: 100%; min-height: 54px; }
.nf-button:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }

.nf-app { padding: 12px 0 70px; }
.nf-view { min-height: 560px; }
.nf-setup {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.nf-setup-copy,
.nf-start-panel,
.nf-result,
.nf-fatal {
  border: 2px solid var(--nf-ink);
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 10px 0 var(--nf-shadow);
}

.nf-setup-copy { padding: clamp(26px, 4vw, 52px); border-radius: 32px; }
.nf-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.nf-kicker { margin: 0; color: var(--nf-coral); font-size: 12px; font-weight: 950; letter-spacing: .08em; }
.nf-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #efe9df;
  color: #5e574e;
  font-size: 11px;
  font-weight: 850;
}
.nf-mode-badge.mock { background: #eaf7f2; color: #226c5e; }
.nf-mode-badge.live { background: #eaf0fb; color: #315f9b; }

.nf-setup h1,
.nf-match-heading h1,
.nf-result > h1,
.nf-fatal h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.nf-lead { max-width: 760px; margin: 0; color: var(--nf-muted); font-size: 16px; line-height: 1.72; }
.nf-setup-form { display: grid; gap: 16px; margin-top: 30px; }
.nf-field { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--nf-line); border-radius: 20px; background: #fff; }
.nf-field legend { padding: 0 5px; font-size: 15px; font-weight: 900; }
.nf-field > p { margin: 2px 0 12px; color: var(--nf-muted); font-size: 12px; line-height: 1.5; }
.nf-location-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.nf-location-input-row input,
.nf-custom-radius input {
  width: 100%;
  min-height: 48px;
  border: 2px solid #aaa198;
  border-radius: 13px;
  background: #fffdf8;
  color: var(--nf-ink);
  outline: none;
}
.nf-location-input-row input { padding: 10px 13px; }
.nf-location-input-row input:focus,
.nf-custom-radius input:focus { border-color: var(--nf-teal); box-shadow: 0 0 0 3px rgba(47, 143, 125, .16); }
.nf-location-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.nf-resolved-location {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #8ec5b9;
  border-radius: 14px;
  background: #eaf7f2;
  color: #226c5e;
}
.nf-resolved-location span { font-size: 11px; font-weight: 750; }
.nf-resolved-location strong { overflow-wrap: anywhere; font-size: 15px; }
.nf-help { margin-bottom: 0 !important; }
.nf-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-chip { min-height: 44px; padding: 8px 13px; border-color: #bdb5ab; box-shadow: none; font-size: 13px; }
.nf-chip.is-selected { border-color: var(--nf-ink); background: var(--nf-yellow); box-shadow: 0 3px 0 var(--nf-shadow); }
.nf-size-row .nf-chip { flex: 1 1 90px; font-size: 15px; font-weight: 950; }
.nf-custom-radius { display: grid; grid-template-columns: auto minmax(100px, 180px) auto; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; font-weight: 800; }
.nf-custom-radius input { padding: 8px 10px; }

.nf-start-panel {
  position: sticky;
  top: 18px;
  padding: 24px;
  border-radius: 26px;
}
.nf-panel-label { margin: 0 0 12px; color: var(--nf-coral); font-size: 12px; font-weight: 950; }
.nf-summary { display: grid; gap: 0; border: 1px solid var(--nf-line); border-radius: 17px; background: #fff; }
.nf-summary div { display: grid; gap: 4px; padding: 13px 14px; border-bottom: 1px solid #eee7dd; }
.nf-summary div:last-child { border-bottom: 0; }
.nf-summary span { color: var(--nf-muted); font-size: 11px; }
.nf-summary strong { overflow-wrap: anywhere; font-size: 14px; }
.nf-status { min-height: 54px; margin: 14px 0; padding: 11px 12px; border-left: 5px solid var(--nf-blue); border-radius: 9px; background: #eef3fb; color: #3d536f; font-size: 12px; line-height: 1.5; }
.nf-status.success { border-color: var(--nf-teal); background: #eaf7f2; color: #226c5e; }
.nf-status.error { border-color: var(--nf-coral); background: #fff0eb; color: #8b3e2d; }
.nf-privacy-note { color: var(--nf-muted); font-size: 11px; line-height: 1.55; }
.nf-ad-slot { min-height: 92px; margin-top: 30px; border: 1px dashed #bdb5ab; border-radius: 16px; background: #f8f5ef; }

.nf-match { max-width: 1080px; margin-inline: auto; }
.nf-match-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nf-match-status { display: grid; gap: 4px; }
.nf-round-label { color: var(--nf-coral); font-size: 13px; font-weight: 950; }
.nf-match-bar strong { font-size: 20px; }
.nf-round-flow {
  display: flex;
  gap: 8px;
  margin: 16px 0 10px;
  padding: 0 0 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}
.nf-round-flow li {
  position: relative;
  flex: 1 0 58px;
  min-width: 58px;
  padding: 8px 6px;
  border: 1px solid var(--nf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--nf-muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.nf-round-flow li.is-complete { border-color: #8ec5b9; background: #eaf7f2; color: #226c5e; }
.nf-round-flow li.is-complete::before { content: "✓ "; }
.nf-round-flow li.is-current { border: 2px solid var(--nf-ink); background: var(--nf-yellow); color: var(--nf-ink); font-weight: 950; }
.nf-progress { height: 10px; margin: 0 0 26px; overflow: hidden; border: 1px solid var(--nf-ink); border-radius: 999px; background: #fff; }
.nf-progress span { display: block; width: 0; height: 100%; background: var(--nf-teal); transition: width 220ms ease; }
.nf-match-heading { margin-bottom: 21px; text-align: center; }
.nf-match-heading p { margin: 0; color: var(--nf-teal); font-size: 12px; font-weight: 850; }
.nf-match-heading h1 { margin: 5px 0; font-size: clamp(32px, 5vw, 48px); }
.nf-match-heading span { color: var(--nf-muted); font-size: 11px; }
.nf-match-grid { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: center; }
.nf-vs {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-inline: -2px;
  border: 2px solid var(--nf-ink);
  border-radius: 50%;
  background: var(--nf-coral);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 5px 0 var(--nf-shadow);
}
.nf-restaurant-card { min-width: 0; overflow: hidden; border: 2px solid var(--nf-ink); border-radius: 27px; background: var(--nf-paper); box-shadow: 0 9px 0 var(--nf-shadow); }
.nf-visual { position: relative; display: grid; min-height: 320px; overflow: hidden; background: #eee9e0; }
.nf-visual wio-zoomable-image { width: 100%; height: 320px; --wio-image-fit: cover; }
.nf-visual-tag { position: absolute; z-index: 2; top: 13px; left: 13px; padding: 6px 9px; border-radius: 999px; background: rgba(33, 31, 27, .82); color: #fff; font-size: 10px; font-weight: 850; }
.nf-photo-credit { position: absolute; z-index: 3; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; min-height: 44px; max-width: calc(100% - 130px); padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .94); color: #1f1f1f; font-family: Roboto, sans-serif; font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: normal; line-height: 1.35; }
.nf-photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nf-photo-credit [translate="no"] { white-space: nowrap; }
.nf-ai-disclosure {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
  color: #4f473f;
  font-size: 10px;
  font-weight: 800;
}
.nf-generating-visual {
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 30px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 223, 93, .46), transparent 30%),
    linear-gradient(145deg, #fff8de, #e8f5f1);
  text-align: center;
}
.nf-generating-visual strong { font-size: 20px; }
.nf-generating-visual span { color: var(--nf-muted); font-size: 13px; line-height: 1.5; }
.nf-generating-visual small { color: var(--nf-teal); font-size: 11px; font-weight: 850; }
.nf-generation-spinner {
  width: 72px;
  height: 72px;
  border: 8px solid rgba(47, 143, 125, .18);
  border-top-color: var(--nf-teal);
  border-radius: 50%;
  animation: nf-spin 1s linear infinite;
}
@keyframes nf-spin { to { transform: rotate(360deg); } }
.nf-gallery-controls { position: absolute; z-index: 4; right: 12px; bottom: 12px; display: flex; gap: 7px; }
.nf-gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--nf-ink); border-radius: 50%; background: rgba(255, 255, 255, .94); font-size: 24px; font-weight: 900; cursor: pointer; }
.nf-logo-visual,
.nf-empty-visual { place-items: center; align-content: center; gap: 10px; padding: 30px; text-align: center; }
.nf-logo-mark,
.nf-empty-mark { display: grid; place-items: center; width: 112px; height: 112px; border: 2px solid var(--nf-ink); background: #fff; color: var(--nf-ink); box-shadow: 0 6px 0 var(--nf-shadow); }
.nf-logo-mark { border-radius: 32px; background: var(--nf-yellow); font-size: 20px; font-weight: 950; }
.nf-empty-mark { border-radius: 50%; background: #eaf7f2; font-size: 47px; font-weight: 950; }
.nf-logo-visual strong,
.nf-empty-visual strong { font-size: 14px; }
.nf-logo-visual span,
.nf-empty-visual span { color: var(--nf-muted); font-size: 11px; }
.nf-card-body { display: grid; gap: 9px; padding: 19px; }
.nf-card-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--nf-blue); font-size: 11px; font-weight: 850; }
.nf-card-body h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.16; }
.nf-card-menu { margin: 0; font-size: 14px; font-weight: 850; }
.nf-card-description { min-height: 38px; margin: 0; color: var(--nf-muted); font-size: 12px; line-height: 1.55; }
.nf-card-address { overflow: hidden; margin: 0; color: #7a7268; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.nf-card-actions { display: grid; grid-template-columns: minmax(96px, .55fr) minmax(130px, 1fr); gap: 8px; }
.nf-card-actions .nf-button { min-height: 50px; padding-inline: 10px; }
.nf-source-line { padding-top: 9px; border-top: 1px solid #ebe4da; color: #7a7268; font-size: 10px; line-height: 1.45; }
.nf-source-line a { color: #226c5e; font-weight: 900; text-underline-offset: 2px; }

.nf-result { max-width: 850px; margin-inline: auto; padding: clamp(28px, 5vw, 56px); border-radius: 32px; text-align: center; }
.nf-trophy { font-size: 56px; }
.nf-result > h1 { margin-top: 8px; font-size: clamp(38px, 6vw, 64px); }
.nf-result-card { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); overflow: hidden; margin-top: 28px; border: 2px solid var(--nf-ink); border-radius: 25px; background: #fff; text-align: left; box-shadow: 0 8px 0 var(--nf-shadow); }
.nf-result-card .nf-visual { min-height: 300px; }
.nf-result-card .nf-visual wio-zoomable-image { height: 100%; min-height: 300px; }
.nf-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 28px; }
.nf-result-restaurants { margin-top: 34px; text-align: left; }
.nf-result-section-head { margin-bottom: 14px; }
.nf-result-section-head h2 { margin: 5px 0 0; font-size: clamp(24px, 4vw, 36px); }
.nf-result-restaurant-list { display: grid; gap: 10px; }
.nf-recommended-restaurant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--nf-line);
  border-radius: 16px;
  background: #fff;
}
.nf-recommended-restaurant span { color: var(--nf-blue); font-size: 11px; font-weight: 850; }
.nf-recommended-restaurant h3 { margin: 5px 0; font-size: 19px; }
.nf-recommended-restaurant p { margin: 0 0 5px; color: var(--nf-muted); font-size: 12px; }
.nf-recommended-restaurant small { color: #7a7268; font-size: 11px; }
.nf-empty-result { padding: 18px; border: 1px dashed var(--nf-line); border-radius: 14px; color: var(--nf-muted); }
.nf-ad-slot.result { margin-top: 42px; }
.nf-fatal { display: grid; justify-items: center; max-width: 640px; min-height: 0; margin: 70px auto; padding: 50px 28px; border-radius: 30px; text-align: center; }
.nf-fatal > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--nf-coral); color: #fff; font-size: 34px; font-weight: 950; }
.nf-fatal h1 { max-width: 520px; font-size: 36px; }
.nf-fatal p { color: var(--nf-muted); }

.nf-info-dialog { width: min(620px, calc(100% - 28px)); max-height: min(82vh, 720px); padding: 0; overflow: hidden; border: 2px solid var(--nf-ink); border-radius: 25px; background: var(--nf-paper); box-shadow: 0 16px 0 rgba(33, 31, 27, .2); }
.nf-info-dialog::backdrop { background: rgba(20, 18, 15, .55); backdrop-filter: blur(4px); }
.nf-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; border-bottom: 1px solid var(--nf-line); }
.nf-dialog-head h2 { margin: 5px 0 0; }
.nf-dialog-close { width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 26px; }
.nf-info-body { max-height: calc(82vh - 100px); padding: 20px; overflow: auto; }
.nf-info-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nf-info-list li { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--nf-line); border-radius: 13px; background: #fff; }
.nf-info-list span { color: var(--nf-muted); font-size: 11px; }
.nf-info-list strong { font-size: 14px; }
.nf-info-list small { color: var(--nf-muted); font-size: 11px; line-height: 1.45; }
.nf-info-section-title { margin: 20px 0 10px; font-size: 16px; }
.nf-info-section-title:first-child { margin-top: 0; }
.nf-info-note { margin-top: 14px; padding: 12px; border-left: 5px solid var(--nf-teal); background: #eaf7f2; color: #315e55; font-size: 11px; line-height: 1.55; }
.nf-toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; width: min(440px, calc(100% - 28px)); padding: 13px 16px; border: 2px solid var(--nf-ink); border-radius: 14px; background: #fff; font-size: 12px; font-weight: 800; text-align: center; box-shadow: 0 7px 0 var(--nf-shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.nf-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 901px) {
  .nf-match { max-width: 1180px; scroll-margin-top: 16px; }
  .nf-progress { margin-bottom: 18px; }
  .nf-match-heading { margin-bottom: 15px; }
  .nf-match-heading h1 { font-size: clamp(31px, 3.5vw, 42px); }
  .nf-visual { min-height: 230px; }
  .nf-visual wio-zoomable-image { height: 230px; }
  .nf-logo-mark,
  .nf-empty-mark { width: 92px; height: 92px; }
  .nf-card-body { gap: 7px; padding: 16px; }
  .nf-card-body h2 { font-size: clamp(22px, 2.4vw, 28px); }
  .nf-card-description {
    display: -webkit-box;
    min-height: 37px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 900px) {
  .nf-setup { grid-template-columns: 1fr; }
  .nf-start-panel { position: static; }
  .nf-result-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nf-site-header,
  .nf-app { width: min(100% - 22px, 1180px); }
  .nf-match { padding: 4px 0 22px; }
  .nf-progress { height: 8px; margin-bottom: 10px; }
  .nf-match-heading { margin-bottom: 10px; }
  .nf-match-heading p { font-size: 10px; }
  .nf-match-heading h1 { margin: 3px 0; font-size: clamp(24px, 7vw, 29px); line-height: 1.08; }
  .nf-match-heading span { display: none; }
  .nf-match-grid { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
  .nf-vs {
    position: absolute;
    top: 69px;
    left: 50%;
    width: 38px;
    height: 38px;
    margin: 0;
    font-size: 10px;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .nf-match-grid .nf-restaurant-card { border-width: 1.5px; border-radius: 18px; box-shadow: 0 5px 0 var(--nf-shadow); }
  .nf-match-grid .nf-visual,
  .nf-match-grid .nf-visual wio-zoomable-image { min-height: 138px; height: 138px; }
  .nf-match-grid .nf-visual-tag { top: 7px; left: 7px; max-width: calc(100% - 14px); padding: 4px 6px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .nf-match-grid .nf-ai-disclosure { display: none; }
  .nf-match-grid .nf-generating-visual { gap: 6px; padding: 10px 6px; }
  .nf-match-grid .nf-generating-visual strong { font-size: 13px; }
  .nf-match-grid .nf-generating-visual span,
  .nf-match-grid .nf-generating-visual small { display: none; }
  .nf-match-grid .nf-generation-spinner { width: 42px; height: 42px; border-width: 5px; }
  .nf-match-grid .nf-card-body { gap: 5px; padding: 9px 8px 10px; }
  .nf-match-grid .nf-card-meta,
  .nf-match-grid .nf-card-description,
  .nf-match-grid .nf-source-line { display: none; }
  .nf-match-grid .nf-card-body h2 { min-height: 2.25em; font-size: clamp(16px, 4.7vw, 19px); line-height: 1.12; word-break: keep-all; }
  .nf-match-grid .nf-card-menu { min-height: 2.5em; font-size: 10px; line-height: 1.25; }
  .nf-match-grid .nf-card-actions { grid-template-columns: 1fr; gap: 0; }
  .nf-match-grid .nf-card-actions .nf-button.soft { display: none; }
  .nf-match-grid .nf-card-actions .nf-button.primary { width: 100%; min-height: 46px; padding: 6px 4px; font-size: 11px; line-height: 1.2; }
  .nf-card-description { min-height: 0; }
}

@media (max-width: 520px) {
  .nf-site-header { min-height: 66px; }
  .nf-brand img { width: 40px; height: 40px; border-radius: 13px; }
  .nf-brand small { display: none; }
  .nf-setup-copy { padding: 23px 15px; border-radius: 24px; }
  .nf-setup h1 { font-size: clamp(35px, 12vw, 48px); }
  .nf-lead { font-size: 14px; }
  .nf-field { padding: 15px 12px; }
  .nf-location-input-row { grid-template-columns: 1fr; }
  .nf-location-input-row .nf-button { width: 100%; }
  .nf-location-actions { display: grid; grid-template-columns: 1fr; }
  .nf-chip { flex: 1 1 calc(50% - 8px); padding-inline: 8px; }
  .nf-start-panel { padding: 20px 15px; border-radius: 23px; }
  .nf-match-bar { align-items: flex-start; }
  .nf-match-bar .nf-button { max-width: 142px; padding-inline: 8px; font-size: 11px; }
  .nf-match-bar strong { font-size: 17px; line-height: 1.35; }
  .nf-round-flow { margin-top: 13px; }
  .nf-round-flow li { flex-basis: 54px; min-width: 54px; font-size: 11px; }
  .nf-match-heading h1 { font-size: clamp(24px, 7vw, 29px); }
  .nf-restaurant-card { border-radius: 22px; }
  .nf-card-body { padding: 16px 13px; }
  .nf-card-actions { grid-template-columns: 1fr 1.2fr; }
  .nf-card-actions .nf-button { font-size: 12px; }
  .nf-result { padding: 30px 15px; border-radius: 24px; }
  .nf-result-card .nf-visual { min-height: 250px; }
  .nf-recommended-restaurant { grid-template-columns: 1fr; }
  .nf-recommended-restaurant .nf-button { width: 100%; }
}

@media (max-width: 350px) {
  .nf-chip { flex-basis: 100%; }
  .nf-card-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .nf-generation-spinner { animation: none; }
}
