:root {
  --bg: #f7f0e7;
  --surface-strong: #fffaf3;
  --card: #fffdf9;
  --text: #241711;
  --muted: #6e5d52;
  --line: rgba(66, 44, 31, 0.12);
  --accent: #c85b31;
  --accent-strong: #9d3f1f;
  --shadow: 0 20px 55px rgba(59, 36, 26, 0.14);
  --radius-xl: 32px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 222, 190, 0.9), transparent 26%),
    linear-gradient(180deg, #fbf4eb 0%, #f4ebdf 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 520px;
  padding: 28px 0 32px;
  background-position: center;
  background-size: cover;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  overflow: hidden;
}

.hero-shell {
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hero-search-row {
  width: min(100%, 460px);
}

.search-stack {
  position: relative;
  width: min(100%, 460px);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.top-actions-compact {
  position: relative;
}

.mobile-nav {
  position: relative;
}

.mobile-nav-trigger {
  min-width: 56px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 10px 14px;
}

.mobile-nav-trigger-lines,
.mobile-nav-trigger-lines::before,
.mobile-nav-trigger-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mobile-nav-trigger-lines {
  position: relative;
}

.mobile-nav-trigger-lines::before,
.mobile-nav-trigger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-nav-trigger-lines::before {
  top: -6px;
}

.mobile-nav-trigger-lines::after {
  top: 6px;
}

.mobile-nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.98);
  box-shadow: 0 28px 65px rgba(59, 36, 26, 0.18);
  z-index: 30;
}

.mobile-nav-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(66, 44, 31, 0.08);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.mobile-nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 91, 49, 0.28);
  background: #fff7ef;
}

.hero-intro {
  max-width: 760px;
  color: #fff7ef;
  padding: 0;
}

.eyebrow,
.section-eyebrow,
.panel-label,
.country-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.eyebrow {
  padding: 10px 14px;
  color: #fff5eb;
  background: rgba(255, 248, 241, 0.16);
  border: 1px solid rgba(255, 248, 241, 0.22);
  backdrop-filter: blur(12px);
}

.hero-title,
.section-title,
.panel-title,
.dish-title,
.recipe-title,
.details-title {
  font-family: "Fraunces", serif;
}

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 245, 235, 0.88);
}

.country-panel {
  padding: 28px;
  border: 1px solid rgba(255, 248, 241, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(255, 248, 241, 0.14);
  color: #fffaf5;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-label {
  color: rgba(255, 247, 238, 0.72);
}

.panel-title {
  margin: 14px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.panel-copy {
  margin: 14px 0 0;
  line-height: 1.75;
  color: rgba(255, 247, 238, 0.84);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff8f3;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: rgba(255, 248, 241, 0.12);
  color: inherit;
  border: 1px solid currentColor;
}

.button-clear {
  background: var(--card);
  color: var(--accent-strong);
  border: 1px solid rgba(200, 91, 49, 0.24);
}

.content-shell {
  padding: 34px 0 56px;
}

.page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.map-hero {
  min-height: 360px;
  padding: 28px 0 32px;
  background-position: center;
  background-size: cover;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  overflow: hidden;
}

.map-hero-shell {
  min-height: 280px;
  display: grid;
  gap: 24px;
  align-content: start;
}

.map-hero .section-eyebrow {
  color: #fff5eb;
  background: rgba(255, 248, 241, 0.16);
  border: 1px solid rgba(255, 248, 241, 0.22);
  backdrop-filter: blur(12px);
}

.map-hero .page-title-group {
  color: #fff7ef;
}

.map-hero .page-summary {
  color: rgba(255, 245, 235, 0.9);
}

.map-hero .button-clear {
  background: rgba(255, 248, 241, 0.12);
  color: #fff7ef;
  border: 1px solid rgba(255, 248, 241, 0.26);
}

.map-hero .button-clear:hover {
  background: rgba(255, 248, 241, 0.18);
}

.page-title-group {
  max-width: 760px;
}

.page-title {
  margin: 12px 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
}

.page-summary {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 24px;
}

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

.search-input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
  outline: none;
}

.search-input:focus {
  border-color: rgba(200, 91, 49, 0.5);
  box-shadow: 0 0 0 4px rgba(200, 91, 49, 0.12);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.92);
  color: var(--text);
  outline: none;
}

.form-textarea {
  resize: vertical;
  font: inherit;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(200, 91, 49, 0.5);
  box-shadow: 0 0 0 4px rgba(200, 91, 49, 0.12);
}

.form-label {
  font-weight: 700;
  color: var(--text);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 100%;
  max-height: 460px;
  overflow-y: auto;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.98);
  box-shadow: 0 28px 65px rgba(59, 36, 26, 0.22);
  z-index: 20;
}

.suggestion-heading {
  margin: 4px 0 10px;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.suggestion-list + .suggestion-heading {
  margin-top: 18px;
}

.suggestion-list {
  display: grid;
  gap: 8px;
}

.suggestion-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(66, 44, 31, 0.08);
  border-radius: 16px;
  background: #fffdf9;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.suggestion-item:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 91, 49, 0.28);
  background: #fff7ef;
}

.suggestion-title {
  font-weight: 700;
  color: var(--text);
}

.suggestion-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-eyebrow {
  color: var(--accent-strong);
  background: rgba(200, 91, 49, 0.1);
  padding: 8px 12px;
}

.section-title {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.section-meta {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--muted);
  line-height: 1.7;
}

.dish-card,
.recipe-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dish-card {
  position: relative;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dish-card:hover,
.dish-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 65px rgba(59, 36, 26, 0.18);
}

.dish-card:focus-visible {
  outline: 2px solid rgba(200, 91, 49, 0.55);
  outline-offset: 3px;
}

.dish-media {
  position: relative;
}

.dish-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.dish-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 248, 241, 0.28);
  border-radius: 50%;
  background: rgba(36, 23, 17, 0.58);
  color: #fff7ef;
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.dish-favorite.is-active {
  background: rgba(200, 91, 49, 0.94);
  color: #fff8f3;
}

.dish-favorite:hover {
  background: rgba(36, 23, 17, 0.74);
}

.dish-favorite.is-active:hover {
  background: rgba(157, 63, 31, 0.96);
}

.dish-content {
  padding: 22px;
}

.country-tag {
  padding: 8px 11px;
  color: var(--muted);
  background: #f5ece1;
}

.dish-title {
  margin: 16px 0 0;
  font-size: 2rem;
  line-height: 1;
}

.dish-blurb,
.recipe-copy,
.step-text {
  color: var(--muted);
  line-height: 1.7;
}

.dish-blurb {
  margin: 14px 0 0;
}

.dish-link {
  margin-top: 18px;
  color: var(--accent-strong);
  font-weight: 700;
}

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.map-shell {
  padding-top: 28px;
}

.map-layout {
  display: block;
}

.map-toolbar {
  margin-bottom: 22px;
}

.map-search-stack {
  position: relative;
  width: min(100%, 460px);
}

.map-search-form {
  display: block;
}

.map-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.98);
  box-shadow: 0 28px 65px rgba(59, 36, 26, 0.18);
  z-index: 20;
}

.map-search-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(66, 44, 31, 0.08);
  border-radius: 16px;
  background: #fffdf9;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.map-search-item:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 91, 49, 0.28);
  background: #fff7ef;
}

.map-panel {
  padding: 24px;
}

.map-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.map-panel-heading {
  max-width: 760px;
}

.world-map-canvas {
  position: relative;
  min-height: 680px;
  margin-top: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 214, 174, 0.55), transparent 22%),
    linear-gradient(180deg, #fff7ef 0%, #f3e6d7 100%);
  border: 1px solid var(--line);
  display: grid;
  color: var(--muted);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.world-map-canvas[data-dragging="true"] {
  cursor: grabbing;
}

.world-map-sizer {
  width: 100%;
  height: 100%;
  position: relative;
}

.world-map-stage {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  transform-origin: top left;
}

.map-hover-label {
  position: fixed;
  left: 24px;
  top: 24px;
  transform: translate(0, calc(-100% - 10px));
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(36, 23, 17, 0.92);
  color: #fff7ef;
  font-size: 0.92rem;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
  z-index: 1000;
}

.map-hover-label.is-visible {
  opacity: 1;
}

.map-fallback {
  max-width: 320px;
  text-align: center;
  line-height: 1.7;
}

.map-filter {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

.map-filter:focus {
  border-color: rgba(200, 91, 49, 0.5);
  box-shadow: 0 0 0 4px rgba(200, 91, 49, 0.12);
}

.map-country-name {
  font-weight: 700;
}

.map-country-continent {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-country-spotlight {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.map-country-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}

.map-country-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.map-country-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.map-country-body {
  padding: 28px;
}

.map-country-title {
  margin-bottom: 0;
}

.add-recipe-shell {
  display: grid;
}

.add-recipe-layout {
  display: grid;
  gap: 24px;
}

.add-recipe-form-card {
  padding: 28px;
}

.add-recipe-form {
  display: grid;
  gap: 22px;
}

.add-recipe-fields {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 10px;
}

.add-recipe-preview {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.add-recipe-preview-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.dynamic-list {
  display: grid;
  gap: 12px;
}

.dynamic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.dynamic-textarea {
  min-height: 100px;
}

.dynamic-remove {
  align-self: start;
  white-space: nowrap;
}

.dynamic-add {
  width: fit-content;
}

.form-notice {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  line-height: 1.6;
}

.form-notice.is-success {
  border-color: rgba(44, 118, 71, 0.24);
  background: rgba(226, 247, 232, 0.92);
  color: #1f5a34;
}

.form-notice.is-error {
  border-color: rgba(171, 59, 43, 0.24);
  background: rgba(252, 229, 224, 0.94);
  color: #8e2f1f;
}

.custom-recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.custom-recipe-card {
  padding: 0;
  overflow: hidden;
}

.custom-recipe-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.custom-recipe-body {
  padding: 22px;
}

.custom-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.custom-recipe-title {
  margin-bottom: 0;
  font-size: 2rem;
}

.custom-recipe-details + .custom-recipe-details {
  margin-top: 12px;
}

.custom-recipe-summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-strong);
}

.custom-recipe-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.quiz-shell {
  display: grid;
  gap: 24px;
}

.quiz-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quiz-stat-card {
  display: grid;
  gap: 14px;
}

.quiz-stat-value {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.quiz-card,
.quiz-complete-card {
  padding: 0;
  overflow: hidden;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.quiz-media {
  min-height: 420px;
  background: #efe4d7;
}

.quiz-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-body,
.quiz-complete-card {
  padding: 28px;
}

.quiz-question-title {
  margin-bottom: 0;
}

.quiz-choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.quiz-option {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.quiz-option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(200, 91, 49, 0.32);
  background: #fff6ec;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-option.is-correct {
  border-color: rgba(44, 118, 71, 0.32);
  background: rgba(213, 241, 220, 0.92);
  color: #1f5a34;
}

.quiz-option.is-incorrect {
  border-color: rgba(171, 59, 43, 0.3);
  background: rgba(252, 226, 220, 0.96);
  color: #8e2f1f;
}

.quiz-option.is-muted {
  opacity: 0.72;
}

.quiz-feedback {
  margin: 20px 0 0;
  font-weight: 700;
}

.quiz-feedback.is-correct {
  color: #1f5a34;
}

.quiz-feedback.is-incorrect {
  color: #8e2f1f;
}

.quiz-complete-card {
  display: grid;
  gap: 12px;
}

.tinder-shell {
  display: grid;
  gap: 24px;
}

.tinder-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tinder-card,
.tinder-complete-card {
  overflow: hidden;
}

.tinder-card {
  display: grid;
  grid-template-rows: 440px minmax(320px, auto);
  width: min(100%, 760px);
  min-height: 720px;
  margin: 0 auto;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  touch-action: manipulation;
}

.tinder-card.is-expanded {
  grid-template-rows: 440px auto;
  min-height: 720px;
}

.tinder-card.is-like .tinder-badge-like,
.tinder-card.is-dislike .tinder-badge-dislike {
  opacity: 1;
}

.tinder-media {
  position: relative;
  min-height: 440px;
  background: #efe4d7;
  touch-action: none;
}

.tinder-image {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.tinder-badge {
  position: absolute;
  top: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.tinder-badge-like {
  left: 22px;
  color: #1f7a46;
  background: rgba(231, 252, 239, 0.95);
}

.tinder-badge-dislike {
  right: 22px;
  color: #a43c29;
  background: rgba(255, 236, 231, 0.95);
}

.tinder-body,
.tinder-complete-card {
  padding: 28px;
}

.tinder-body {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.tinder-dish-title {
  margin-bottom: 0;
  line-height: 1.08;
  padding-bottom: 0.08em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tinder-card.is-expanded .tinder-dish-title,
.tinder-card.is-expanded .tinder-body .section-meta {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.tinder-body .section-meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.tinder-expand-button {
  width: fit-content;
  margin-top: 18px;
}

.tinder-details {
  display: none;
  margin-top: 18px;
  gap: 12px;
}

.tinder-card.is-expanded .tinder-details {
  display: grid;
}

.tinder-detail-list {
  display: grid;
  gap: 10px;
}

.tinder-open-recipe {
  width: fit-content;
  margin-top: 8px;
}

.tinder-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  margin-top: auto;
}

.tinder-action-button {
  min-width: 160px;
}

.tinder-liked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tinder-liked-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(66, 44, 31, 0.12);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
}

.tinder-liked-chip:hover {
  border-color: rgba(200, 91, 49, 0.28);
  background: #fff6ec;
}

.recipe-card {
  padding: 24px;
}

.recipe-card-primary {
  padding: 0;
}

.recipe-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.recipe-body {
  padding: 28px;
}

.recipe-title {
  margin: 14px 0 0;
  font-size: 2.5rem;
  line-height: 1;
}

.recipe-duration {
  margin: 14px 0 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.recipe-copy {
  margin: 16px 0 0;
}

.recipe-details {
  display: grid;
  gap: 22px;
}

.details-title {
  margin: 0;
  font-size: 1.7rem;
}

.ingredients-list,
.steps-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.ingredient-item,
.step-item {
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.ingredient-item {
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.6;
}

.step-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff7f0;
  background: var(--text);
  font-weight: 700;
}

.step-text {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-shell,
  .recipe-layout,
  .dish-grid,
  .map-country-card,
  .quiz-layout,
  .quiz-stats,
  .tinder-stats,
  .custom-recipe-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    min-height: auto;
    align-items: stretch;
  }

  .hero-topbar {
    justify-content: space-between;
    align-items: center;
  }

  .search-stack {
    width: 100%;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-topbar .top-actions {
    width: auto;
    justify-content: flex-end;
  }

  .map-panel-top {
    flex-direction: column;
  }

  .tinder-media,
  .tinder-image {
    min-height: 360px;
  }

  .tinder-card {
    grid-template-rows: 360px minmax(300px, auto);
    min-height: 620px;
  }

  .tinder-card.is-expanded {
    grid-template-rows: 360px auto;
    min-height: 620px;
  }

  .tinder-body {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .dynamic-row {
    grid-template-columns: 1fr;
  }

  .search-input {
    width: 100%;
  }

  .hero-topbar {
    justify-content: space-between;
    align-items: center;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-actions-compact {
    justify-content: flex-end;
    width: auto;
  }

  .page-topbar {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-topbar .page-title-group {
    min-width: 0;
    flex: 1 1 auto;
  }

  .page-topbar .top-actions {
    width: auto;
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .hero-topbar .top-actions {
    width: auto;
    justify-content: flex-end;
  }

  .hero {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding-top: 18px;
  }

  .map-hero {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding-top: 18px;
  }

  .country-panel,
  .recipe-card,
  .dish-content {
    padding: 18px;
  }

  .recipe-body {
    padding: 20px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .map-panel,
  .map-country-body {
    padding: 18px;
  }

  .map-country-media {
    min-height: 260px;
  }

  .quiz-media {
    min-height: 300px;
  }

  .world-map-canvas {
    min-height: 420px;
  }

  .tinder-actions {
    display: none;
  }

  .tinder-card {
    max-width: none;
    touch-action: none;
    grid-template-rows: 300px minmax(280px, auto);
    min-height: 550px;
  }

  .tinder-card.is-expanded {
    grid-template-rows: 300px auto;
    min-height: 550px;
  }

  .tinder-media,
  .tinder-image {
    min-height: 300px;
  }

  .tinder-body {
    min-height: 280px;
  }
}

@media (min-width: 641px) {
  .tinder-badge {
    display: none;
  }
}
