﻿:root {
  color-scheme: light;
  --ink: #2c2019;
  --muted: #7b685d;
  --surface: rgba(255, 252, 246, 0.8);
  --surface-strong: rgba(255, 252, 246, 0.95);
  --line: rgba(175, 119, 83, 0.28);
  --blue: #6d3d2d;
  --blue-2: #d95f32;
  --cyan: #f0a84a;
  --success: #18a37e;
  --danger: #ef6b7a;
  --gold: #d5a039;
  --shadow: 0 24px 56px rgba(109, 61, 45, 0.18);
  --glass-blur: blur(22px) saturate(1.2);
  --app-pad-x: clamp(12px, 3.8vw, 18px);
  --app-pad-y: clamp(8px, 1.35svh, 13px);
  --app-gap: clamp(7px, 1.05svh, 10px);
  --title-size: clamp(22px, 3svh, 27px);
  --restaurant-title-size: clamp(19px, 2.45svh, 23px);
  --status-font-size: clamp(10px, 1.55dvh, 12px);
  --info-font-size: clamp(12px, 1.75dvh, 14px);
  --chip-font-size: clamp(10px, 1.45dvh, 12px);
  --icon-size: clamp(46px, 6.8svh, 56px);
  --card-info-h: 110px;
  --deck-w: min(100%, 414px);
  --deck-h: 480px;
  --stage-h: 480px;
  --stage-pad-x: 8px;
  --stage-pad-y: 20px;
  --nudge-top: 72px;
  --guide-h: clamp(58px, 8.8dvh, 76px);
  --card-pad-x: clamp(14px, 3.5vw, 18px);
  --card-pad-y: clamp(12px, 1.75dvh, 16px);
  --floating-action-size: 52px;
  --floating-action-bottom: max(14px, env(safe-area-inset-bottom));
  font-family: Inter, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html {
  background: #f7e1d2;
}

body {
  background: linear-gradient(180deg, #f7e1d2 0%, #f2dccd 52%, #fff5e8 100%);
  background-size: 100% 100%;
  color: var(--ink);
  overscroll-behavior: none;
}

body.seo-page {
  min-height: 100%;
  height: auto;
  overflow: auto;
  background: #fff8ef;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: none;
  pointer-events: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p {
  margin: 0;
}

.seo-header {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 28px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.seo-logo img {
  width: 132px;
  height: auto;
  display: block;
}

.seo-header nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seo-header a,
.seo-main a {
  color: #6d3d2d;
  text-decoration: none;
  font-weight: 700;
}

.seo-main {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.seo-eyebrow {
  color: #d95f32;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.seo-main h1 {
  margin-top: 12px;
  font-size: 42px;
  line-height: 1.16;
}

.seo-lead {
  margin-top: 18px;
  color: #5f4d42;
  font-size: 18px;
  line-height: 1.8;
}

.seo-main section {
  margin-top: 42px;
}

.seo-main h2 {
  font-size: 24px;
  line-height: 1.35;
}

.seo-main p {
  margin-top: 12px;
  color: #47382f;
  line-height: 1.9;
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: #d95f32;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(217, 95, 50, 0.24);
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 100dvh;
  height: 100svh;
  margin: 0 auto;
  padding:
    max(var(--app-pad-y), env(safe-area-inset-top))
    var(--app-pad-x)
    max(var(--app-pad-y), env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--app-gap);
  overflow: hidden;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--icon-size);
  padding: 2px 0 2px 4px;
  overflow: hidden;
}

.app-shell.is-lefty .topbar {
  flex-direction: row;
}

.app-shell.is-lefty .top-actions {
  order: 1;
  flex-direction: row-reverse;
}

.app-shell.is-lefty .topbar h1 {
  order: 3;
  margin-left: auto;
}

.app-shell.is-lefty .floating-settings-button {
  left: auto;
  right: var(--app-pad-x);
}

.app-shell.is-lefty .saved-tray {
  grid-column: 1;
  justify-self: start;
}

.topbar > div {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--blue-2);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  flex: 0 1 auto;
  color: var(--blue);
  font-size: var(--title-size);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

h1 img {
  width: clamp(82px, 24vw, 112px);
  height: auto;
  display: block;
}

.menu-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(109, 61, 45, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.menu-button img {
  width: 23px;
  height: 23px;
  display: block;
}

.floating-settings-button {
  position: absolute;
  left: var(--app-pad-x);
  bottom: var(--floating-action-bottom);
  z-index: 13;
  width: var(--floating-action-size);
  height: var(--floating-action-size);
}

.icon-button {
  position: absolute;
  top: 50%;
  right: 0;
  flex: 0 0 auto;
  width: var(--icon-size);
  height: var(--icon-size);
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(109, 61, 45, 0.14);
}

.top-actions {
  position: relative;
  flex: 0 1 auto;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.top-action {
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: none;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

@media (max-width: 360px) {
  .top-action {
    padding: 0 7px;
    font-size: 11px;
  }

  .top-actions {
    gap: 5px;
  }
}

.top-action.primary {
  background: rgba(109, 61, 45, 0.92);
  color: #ffffff;
  border-color: rgba(109, 61, 45, 0.18);
}

.legacy-status-row {
  display: none;
}

.deck-progress {
  position: absolute;
  left: 50%;
  bottom: calc(var(--floating-action-bottom) + var(--floating-action-size) + 8px);
  z-index: 11;
  transform: translateX(-50%);
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.guide-panel {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.guide-mask {
  position: absolute;
  inset: 0;
  background: rgba(44, 32, 25, 0.24);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.guide-bubble {
  position: absolute;
  z-index: 1;
  width: min(310px, calc(100vw - 36px));
  max-width: min(310px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid rgba(175, 119, 83, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(109, 61, 45, 0.16);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.guide-bubble::after {
  content: none;
}

.guide-bubble-reset {
  top: max(68px, calc(env(safe-area-inset-top) + 58px));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.guide-bubble-reset::after {
  top: -7px;
  left: 36px;
  right: auto;
  transform: rotate(225deg);
}

.guide-bubble-card {
  left: 50%;
  right: auto;
  top: calc(var(--stage-pad-y) + var(--deck-h) - var(--card-info-h) + 12px);
  max-width: min(310px, calc(100vw - 36px));
  transform: translateX(-50%);
}

.guide-bubble-card::after {
  left: 42px;
  bottom: -8px;
  width: 14px;
  height: 14px;
}

.guide-bubble-bookmark {
  left: 50%;
  right: auto;
  bottom: calc(var(--floating-action-bottom) + var(--floating-action-size) - 4px);
  transform: translateX(-50%);
}

.guide-bubble-bookmark::after {
  right: -7px;
  bottom: -7px;
  transform: rotate(45deg);
}

.guide-bubble strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 950;
}

.guide-bubble p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
  font-weight: 750;
}

.guide-bubble p + p {
  margin-top: 5px;
}

.guide-bubble p span {
  display: block;
  margin: 0 0 2px;
  color: var(--blue);
  font-weight: 950;
}

.guide-bubble p em {
  display: block;
  font-style: normal;
}

.swipe-tutorial {
  position: absolute;
  inset: 0;
  z-index: 17;
  display: grid;
  place-items: center;
  padding: var(--app-pad-x);
  pointer-events: none;
}

.swipe-tutorial.is-guide {
  z-index: 19;
}

.swipe-tutorial-mask {
  position: absolute;
  inset: 0;
  background: rgba(44, 32, 25, 0.36);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.swipe-tutorial.is-guide .swipe-tutorial-mask {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.swipe-illustration {
  position: relative;
  z-index: 1;
  width: min(220px, 62vw);
  height: min(148px, 38vw);
  transform-origin: 50% 70%;
}

.swipe-arrows {
  position: absolute;
  left: 50%;
  top: -8px;
  width: min(260px, 88vw);
  max-width: 82vw;
  height: 66px;
  transform: translateX(-50%);
  overflow: visible;
  color: #fff7ef;
  filter:
    drop-shadow(0 3px 1px rgba(44, 32, 25, 0.68))
    drop-shadow(0 10px 18px rgba(44, 32, 25, 0.36));
}

.swipe-arrows path {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.swipe-finger,
.swipe-finger-svg {
  position: absolute;
  left: 50%;
  top: 38px;
  width: min(108px, 30vw);
  height: min(108px, 30vw);
  transform: translateX(-50%);
  display: block;
  animation: swipeHandMove 2600ms ease-in-out infinite;
  transform-origin: 50% 70%;
}

.swipe-finger {
  background: var(--blue);
  opacity: 0.86;
  filter: drop-shadow(0 16px 18px rgba(109, 61, 45, 0.22));
  mask: url("assets/finger.svg") center / contain no-repeat;
  -webkit-mask: url("assets/finger.svg") center / contain no-repeat;
}

.swipe-finger-svg {
  color: #fff7ef;
  fill: currentColor;
  opacity: 0.96;
  filter:
    drop-shadow(0 0 2px rgba(255, 247, 239, 0.96))
    drop-shadow(0 4px 1px rgba(44, 32, 25, 0.76))
    drop-shadow(0 16px 24px rgba(44, 32, 25, 0.42));
}

@keyframes swipeHandMove {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  22% {
    transform: translateX(calc(-50% - 42px)) rotate(-8deg);
  }
  48% {
    transform: translateX(-50%) rotate(0deg);
  }
  72% {
    transform: translateX(calc(-50% + 42px)) rotate(8deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

.guide-button {
  position: absolute;
  left: var(--app-pad-x);
  bottom: var(--floating-action-bottom);
  z-index: 13;
  width: var(--floating-action-size);
  height: var(--floating-action-size);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 237, 218, 0.66)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(109, 61, 45, 0.16);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.guide-button.is-active {
  background: rgba(109, 61, 45, 0.92);
  color: #ffffff;
}

.card-stage {
  height: var(--stage-h);
  min-height: var(--stage-h);
  display: grid;
  place-items: start center;
  padding: var(--stage-pad-y) var(--stage-pad-x);
  overflow: visible;
  touch-action: none;
}

.deck-stack {
  position: relative;
  width: var(--deck-w);
  height: var(--deck-h);
  min-height: 0;
  display: grid;
  place-items: stretch;
}

.ghost-card {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: none;
  grid-template-rows: minmax(0, 1fr) var(--card-info-h);
  border-radius: 28px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  will-change: transform, opacity;
}

.ghost-card.is-flying {
  display: grid;
}

.flying-card {
  margin: 0;
  box-shadow: 0 24px 56px rgba(109, 61, 45, 0.2);
  pointer-events: none;
}

.preview-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--card-info-h);
  border: 1px solid rgba(109, 61, 45, 0.26);
  outline: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 238, 219, 0.84)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 36px rgba(109, 61, 45, 0.23),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  overflow: hidden;
  will-change: transform, opacity;
  transition:
    transform 520ms cubic-bezier(.18, .92, .2, 1),
    opacity 360ms ease,
    filter 360ms ease;
}

.preview-card-one {
  transform: translateX(-50%) translateY(-5px) scale(0.982);
  z-index: 0;
  opacity: 0.82;
}

.preview-card-two {
  width: 100%;
  transform: translateX(-50%) translateY(-9px) scale(0.966);
  opacity: 0.46;
  z-index: -1;
}

.deck-stack.is-advancing .preview-card-one {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 0.86;
  filter: saturate(1.03);
}

.deck-stack.is-advancing .preview-card-two {
  transform: translateX(-50%) translateY(-5px) scale(0.982);
  opacity: 0.82;
}

.preview-save {
  flex: 0 0 auto;
  width: clamp(28px, 4.6dvh, 34px);
  height: clamp(28px, 4.6dvh, 34px);
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
}

.restaurant-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--card-info-h);
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.88);
  user-select: none;
  touch-action: none;
  will-change: transform;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.restaurant-card .save-button,
.preview-card .preview-save {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(44, 32, 25, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.photo-wrap {
  position: relative;
  min-height: 0;
  background: #f3ded0;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}

.photo-grid {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f3ded0;
}

.photo-grid-layer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 0;
  opacity: 0;
  transform: scale(1.008);
  transition: opacity 820ms ease, transform 1100ms ease;
}

.photo-grid-layer.is-current {
  opacity: 1;
  transform: scale(1);
}

.photo-grid-layer.is-next,
.photo-grid-layer.is-leaving {
  opacity: 0;
}

.photo-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(145deg, #f2d9c8, #fff4e9 48%, #d9b79d);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1400ms ease, filter 900ms ease;
  filter: saturate(1.04) contrast(1.02);
}

.photo-tile-fallback::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  border: 1px solid rgba(109, 61, 45, 0.18);
  background: rgba(255, 255, 255, 0.28);
}

.photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(44, 32, 25, 0.42));
  pointer-events: none;
}

.pattern-0 .tile-1 { grid-column: 1 / 3; grid-row: 1 / 4; }
.pattern-0 .tile-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.pattern-0 .tile-3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.pattern-0 .tile-4 { grid-column: 3 / 4; grid-row: 3 / 4; }
.pattern-1 .tile-1 { grid-column: 2 / 4; grid-row: 1 / 4; }
.pattern-1 .tile-2 { grid-column: 1 / 2; grid-row: 1 / 2; }
.pattern-1 .tile-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
.pattern-1 .tile-4 { grid-column: 1 / 2; grid-row: 3 / 4; }
.pattern-2 .tile-1 { grid-column: 1 / 4; grid-row: 1 / 3; }
.pattern-2 .tile-2 { grid-column: 1 / 2; grid-row: 3 / 4; }
.pattern-2 .tile-3 { grid-column: 2 / 3; grid-row: 3 / 4; }
.pattern-2 .tile-4 { grid-column: 3 / 4; grid-row: 3 / 4; }
.photo-count-3.pattern-0 .tile-3 { grid-column: 3 / 4; grid-row: 2 / 4; }
.photo-count-3.pattern-1 .tile-2 { grid-column: 1 / 2; grid-row: 1 / 3; }
.photo-count-3.pattern-1 .tile-3 { grid-column: 1 / 2; grid-row: 3 / 4; }
.photo-count-3.pattern-2 .tile-3 { grid-column: 2 / 4; grid-row: 3 / 4; }
.photo-count-2 .tile-1 { grid-column: 1 / 3; grid-row: 1 / 4; }
.photo-count-2 .tile-2 { grid-column: 3 / 4; grid-row: 1 / 4; }
.photo-count-1 .tile-1 { grid-column: 1 / 4; grid-row: 1 / 4; }

.map-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 58px;
  height: 34px;
  min-width: 58px;
  max-width: 58px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--blue);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(44, 32, 25, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.decision-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  min-width: 176px;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 3px solid currentColor;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 16px 34px rgba(86, 55, 39, 0.24);
  font-size: clamp(30px, 8.2vw, 44px);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-4deg) scale(0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.decision-label.like {
  color: var(--success);
}

.decision-label.nope {
  min-width: min(300px, 78vw);
  color: var(--danger);
  transform: translate(-50%, -50%) rotate(4deg) scale(0.96);
}

.card-content {
  min-height: 0;
  padding: clamp(9px, 1.15svh, 11px) var(--card-pad-x);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 240, 0.76));
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 0;
  min-width: 0;
}

h2 {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink);
  font-size: var(--restaurant-title-size);
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.save-button {
  flex: 0 0 auto;
  width: clamp(28px, 4.6dvh, 34px);
  height: clamp(28px, 4.6dvh, 34px);
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
}

.open-status {
  flex: 0 0 auto;
  max-width: 68px;
  height: 28px;
  padding: 0 9px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.open-status.is-open {
  background: #1d9b72;
}

.open-status.is-closed {
  background: #d95c64;
}

.open-status.is-unknown {
  background: #8b7568;
}

.save-button svg,
.preview-save svg {
  width: 21px;
  height: 21px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.bookmark-action svg {
  width: 17px;
  height: 17px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.save-button.is-bookmarked svg,
.preview-save.is-bookmarked svg,
.bookmark-action.is-bookmarked svg {
  fill: currentColor;
}

.save-button.is-bookmarked {
  background: transparent;
  color: var(--blue);
  border-color: transparent;
}

.category-row {
  margin-top: 4px;
  min-width: 0;
}

.category-row span {
  display: block;
  color: var(--muted);
  font-size: clamp(11px, 1.5dvh, 12px);
  line-height: 1.2;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.detail-item {
  min-width: 0;
  height: auto;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #6d3d2d;
  overflow: hidden;
}

.detail-item strong {
  min-width: 0;
  display: block;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-item strong {
  color: var(--blue);
  font-size: clamp(14px, 2dvh, 16px);
  font-weight: 950;
}

.detail-item.is-closed {
  background: transparent;
  border-color: transparent;
}

.detail-item.is-closed strong {
  color: #8a5a2c;
}

.detail-item.is-open strong {
  color: #a4472b;
}

.mood-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.mood-row span {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #6d3d2d;
  font-size: var(--chip-font-size);
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mood-row {
  margin-top: 6px;
  height: 16px;
  max-height: 16px;
}

.mood-row span {
  color: #a4472b;
}

.bottom-actions {
  position: absolute;
  left: var(--app-pad-x);
  right: var(--app-pad-x);
  bottom: var(--floating-action-bottom);
  z-index: 12;
  margin-top: 0;
  display: grid;
  grid-template-columns: var(--floating-action-size) minmax(0, 1fr) var(--floating-action-size);
  align-items: end;
  gap: 8px;
  pointer-events: none;
}

.keep-tray {
  position: absolute;
  left: 50%;
  bottom: calc(var(--floating-action-size) * -0.32);
  transform: translateX(-50%);
  justify-self: center;
  width: var(--floating-action-size);
  height: var(--floating-action-size);
  display: grid;
  place-items: center;
  background: transparent;
  pointer-events: auto;
}

.saved-tray {
  grid-column: 3;
  justify-self: end;
  width: var(--floating-action-size);
  height: var(--floating-action-size);
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 237, 218, 0.66)),
    rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(109, 61, 45, 0.16);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  pointer-events: auto;
}

.saved-tray svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mini-stack {
  position: relative;
  width: var(--floating-action-size);
  height: var(--floating-action-size);
}

.mini-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--floating-action-size);
  height: var(--floating-action-size);
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 236, 214, 0.5)),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 13px 28px rgba(109, 61, 45, 0.2);
  outline: 1px solid rgba(175, 119, 83, 0.28);
  outline-offset: -1px;
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  transform-origin: 50% 92%;
  transition:
    transform 520ms cubic-bezier(.18, .92, .2, 1),
    opacity 260ms ease;
}

.mini-card-total {
  left: 50%;
  opacity: 1;
  transform: translateX(-50%);
}

.mini-card-snapshot {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.mini-card-snapshot-inner {
  width: 362px;
  height: 520px;
  transform: scale(0.15);
  transform-origin: 0 0;
  pointer-events: none;
  border-radius: 28px;
  box-shadow: none;
  border: 0;
}

.mini-card-snapshot-inner .map-chip,
.mini-card-snapshot-inner .preview-save {
  display: none;
}

.mini-card-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding-bottom: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 237, 218, 0.72)),
    rgba(255, 255, 255, 0.78);
  color: var(--blue);
}

.mini-card-count strong,
.mini-card-count small {
  display: block;
  line-height: 1;
  text-align: center;
}

.mini-card-count strong {
  font-size: 20px;
  font-weight: 950;
}

.mini-card-count small {
  font-size: 9px;
  font-weight: 850;
  opacity: 0.78;
}

.restaurant-card.is-empty .card-content {
  display: grid;
  align-content: center;
}

.restaurant-card.is-empty h2 {
  white-space: normal;
  font-size: 18px;
  line-height: 1.35;
}

.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 25;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 32, 25, 0.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.settings-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(320px, calc(100% - var(--app-pad-x) * 2));
  transform: translate(-50%, -50%);
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 251, 244, 0.94);
  box-shadow: 0 22px 48px rgba(109, 61, 45, 0.2);
  color: var(--ink);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.app-shell.is-lefty .settings-card {
  left: 50%;
  right: auto;
}

.settings-head,
.settings-group,
.settings-select-row,
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-head strong {
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.settings-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 236, 214, 0.92);
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.settings-group > span,
.settings-select-row > span,
.switch-row > span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.settings-select-row select {
  min-width: 158px;
  height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 236, 214, 0.9);
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 236, 214, 0.9);
}

.segmented button {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.segmented button.is-active {
  background: rgba(109, 61, 45, 0.92);
  color: #ffffff;
}

.switch-row input {
  width: 48px;
  height: 28px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: rgba(201, 171, 145, 0.82);
  position: relative;
  cursor: pointer;
}

.switch-row input::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(44, 32, 25, 0.22);
  transition: transform 180ms ease;
}

.switch-row input:checked {
  background: var(--blue);
}

.switch-row input:checked::after {
  transform: translateX(20px);
}

.settings-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.about-link,
.settings-link {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 237, 218, 0.68)),
    rgba(255, 255, 255, 0.6);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(109, 61, 45, 0.08);
}

.settings-link::after {
  content: none;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 32, 25, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 470px);
  max-height: min(78dvh, 620px);
  transform: translateX(-50%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 16px 14px max(14px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px 26px 0 0;
  background: rgba(255, 251, 244, 0.9);
  box-shadow: 0 -24px 60px rgba(109, 61, 45, 0.22);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.sheet-header {
  position: relative;
  min-height: 0;
  padding: 0 48px 12px 4px;
}

.sheet-header h2 {
  margin-top: 2px;
  white-space: normal;
  font-size: 22px;
  line-height: 1.1;
}

.sheet-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.sheet-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(109, 61, 45, 0.08);
}

.keep-list {
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 2px 2px 8px;
}

.sheet-primary-action {
  width: 100%;
  min-height: 42px;
  border-radius: 16px;
  background: rgba(109, 61, 45, 0.94);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(109, 61, 45, 0.14);
}

.keep-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.keep-item img {
  width: 88px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.keep-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.22;
}

.keep-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.keep-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.keep-item-actions button,
.empty-action {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 238, 220, 0.9);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.keep-item-actions .bookmark-action {
  min-width: 32px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.keep-item-actions .bookmark-action.is-bookmarked {
  background: rgba(109, 61, 45, 0.92);
  color: #ffffff;
  border-color: rgba(109, 61, 45, 0.24);
}

.empty-keeps {
  padding: 22px 14px;
  border: 1px dashed rgba(109, 61, 45, 0.26);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-keeps p {
  margin-bottom: 12px;
  font-size: 13px;
}

.nudge {
  position: absolute;
  left: 50%;
  top: var(--nudge-top);
  width: min(var(--deck-w), calc(100% - 24px));
  transform: translate(-50%, -10px);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(175, 119, 83, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(109, 61, 45, 0.18);
  z-index: 14;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  pointer-events: auto;
}

.nudge p {
  flex: 1;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 850;
  max-height: 7.2em;
  overflow: auto;
}

.nudge button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(109, 61, 45, 0.92);
  color: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .photo-grid-layer,
  .photo-tile img,
  .swipe-finger,
  .swipe-finger-svg {
    transition: none;
    animation: none;
  }
}

@media (hover: hover) {
  button {
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  }

  button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(109, 61, 45, 0.18);
  }

  .icon-button:hover {
    transform: translateY(calc(-50% - 1px));
  }
}

@media (max-height: 720px) {
  .app-shell {
    --card-info-h: 108px;
    --app-gap: 7px;
  }
}

@media (max-height: 640px) {
  .app-shell {
    --title-size: 20px;
    --restaurant-title-size: 17px;
    --card-info-h: 104px;
    --icon-size: 31px;
    --app-pad-y: 5px;
    --app-gap: 5px;
    --floating-action-size: 46px;
  }

  .eyebrow {
    display: none;
  }

  .bottom-actions {
    margin-top: 0;
  }

  .keep-tray {
    width: var(--floating-action-size);
    height: var(--floating-action-size);
    bottom: calc(var(--floating-action-size) * -0.32);
  }

  .mini-stack {
    width: var(--floating-action-size);
    height: var(--floating-action-size);
  }

  .mini-card {
    width: var(--floating-action-size);
    height: var(--floating-action-size);
  }

  .saved-tray {
    border-radius: 999px;
  }
}

@media (max-width: 360px) {
  .app-shell {
    --app-pad-x: 10px;
  }

  .deck-stack {
    width: 100%;
  }

  .mini-stack {
    width: var(--floating-action-size);
  }
}
