:root {
  --font-display: 'Press Start 2P', monospace;
  --font-body: 'Nunito', 'Trebuchet MS', sans-serif;
  --cream: #fbf6e8;
  --warm-white: #fffdf6;
  --parchment: #efe4bf;
  --brown-dark: #5a3c23;
  --brown-mid: #8b623d;
  --brown-light: #c79a6b;
  --brown-pale: #ecd9b6;
  --green-dark: #56763f;
  --green-mid: #7aa35d;
  --green-light: #b9d98c;
  --green-pale: #e4f2c6;
  --red-dark: #b8544d;
  --red-mid: #df7f74;
  --red-light: #f0b7ab;
  --red-pale: #f8e2da;
  --blue-dark: #48759a;
  --blue-mid: #7eaed3;
  --blue-pale: #e3f0fb;
  --yellow-dark: #ba8c2d;
  --yellow-mid: #e0b44f;
  --yellow-light: #f4d87d;
  --yellow-pale: #fff4c9;
  --purple-dark: #786195;
  --purple-mid: #a88ac8;
  --purple-pale: #efe6fb;
  --text-dark: #3a2a1e;
  --text-mid: #6f5336;
  --shadow-soft: 0 14px 30px rgba(70, 50, 24, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; min-height: 100%; }

body {
  background:
    linear-gradient(180deg, rgba(58, 37, 74, 0.58) 0px, rgba(74, 49, 96, 0.42) 160px, rgba(127, 98, 152, 0.2) 300px, rgba(255,255,255,0.12) 430px, rgba(247,251,255,0.06) 560px, rgba(58,88,48,0.22) 100%),
    url("Photos/Background/background.png");
  background-position: center top, center top;
  background-size: 100% 100%, 100% auto;
  background-repeat: no-repeat, repeat-y;
  background-color: #b79ccf;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-dark);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 24%, rgba(61, 92, 51, 0.18) 100%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(255,255,255,0.12) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 84% 19%, rgba(255,255,255,0.1) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  z-index: -1;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--brown-mid); border: 2px solid var(--parchment); }

header {
  background: linear-gradient(180deg, rgba(49, 32, 63, 0.42) 0%, rgba(73, 50, 92, 0.36) 100%);
  border-bottom: 6px solid #3a2512;
  box-shadow: 0 10px 24px rgba(40,25,10,0.22);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 46%, rgba(34, 18, 44, 0.12) 100%);
  pointer-events: none;
  z-index: 0;
}

header::after {
  content: none;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 22px 22px 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding: 12px 14px;
  background: rgba(51, 33, 63, 0.46);
  border: 2px solid rgba(69, 45, 86, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  backdrop-filter: blur(2px);
}
.logo-art {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-size: 9px; color: #fff6bf; text-shadow: 2px 2px 0 #3a2512; line-height: 1.9; }
.logo-sub { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 800; color: #f4e7cb; margin-top: 8px; letter-spacing: 0.03em; }

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  background: rgba(51, 33, 63, 0.46);
  padding: 8px;
  border: 3px solid rgba(69, 45, 86, 0.42);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
}

.header-ribbon {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(51, 33, 63, 0.34);
  border: 2px solid rgba(69, 45, 86, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  backdrop-filter: blur(2px);
  flex: 0 0 auto;
}

.lang-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f4e7cb;
}

.ribbon-copy {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  color: #fff4dd;
  text-shadow: 0 1px 0 rgba(58,37,18,0.5);
  display: inline-block;
  padding: 10px 14px;
  background: rgba(51, 33, 63, 0.38);
  border: 2px solid rgba(69, 45, 86, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  backdrop-filter: blur(2px);
  flex: 1 1 auto;
  min-width: 0;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 7px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f7eab8 0%, #e1bf62 100%);
  color: var(--brown-dark);
  border: 3px solid #6f4d25;
  box-shadow: 0 4px 0 #6f4d25;
  cursor: pointer;
  transition: all 0.12s ease;
}

.lang-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tab-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #6f4d25; filter: brightness(1.03); }
.tab-btn.active {
  background: linear-gradient(180deg, #9cd08c 0%, #77a85d 100%);
  color: #fffef2;
  border-color: #446236;
  box-shadow: 0 4px 0 #446236;
}

main { max-width: 1300px; margin: 0 auto; padding: 42px 18px 72px; flex: 1 0 auto; width: 100%; }
.section { display: none; }
.section.active { display: block; }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fff8db 0%, #efdfae 100%);
  border: 4px solid #7f5a2d;
  box-shadow: var(--shadow-soft), inset 0 0 0 3px rgba(255,255,255,0.22);
  position: relative;
  overflow: hidden;
}

.section-head::before,
.section-head::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px dashed rgba(122, 84, 44, 0.55);
  opacity: 0.65;
}

.section-head::before { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.section-head::after { bottom: 8px; left: 8px; border-right: none; border-top: none; }

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff9e6;
  border: 3px solid #c89a51;
  box-shadow: 0 3px 0 #c89a51;
  font-size: 22px;
}

.section-title { font-family: var(--font-display); font-size: 9px; color: var(--brown-dark); text-shadow: 1px 1px 0 rgba(255,255,255,0.6); }
.section-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-mid);
}
.section-count {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: var(--brown-dark);
  margin-left: auto;
  background: rgba(255,255,255,0.7);
  padding: 6px 9px;
  border: 2px solid #c9ab70;
}

.stats-bar { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,253,246,0.96);
  border: 3px solid #8c6238;
  box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(255,255,255,0.24);
  border-radius: 2px;
  position: relative;
}

.stat-chip::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(118, 83, 47, 0.28);
  pointer-events: none;
}

.stat-icon { font-size: 22px; }
.stat-num { font-family: var(--font-body); font-size: 18px; font-weight: 900; color: var(--brown-dark); display: block; }
.stat-lbl { font-family: var(--font-body); font-size: 13px; font-weight: 800; color: var(--brown-mid); display: block; margin-top: 3px; }

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255,248,226,0.94);
  border: 3px solid #b78b54;
  box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.filter-bar::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(122, 89, 47, 0.26);
  pointer-events: none;
}

.filter-lbl { font-family: var(--font-body); font-size: 14px; font-weight: 900; color: var(--brown-dark); flex-shrink: 0; }
.good-filter-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.good-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.good-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 6px;
  padding: 7px 10px;
  background: #fffdf3;
  color: var(--brown-mid);
  border: 2px solid #b48a56;
  cursor: pointer;
  transition: all 0.12s ease;
}

.flag {
  display: inline-block;
  width: 16px;
  height: 11px;
  border: 1px solid rgba(58, 42, 30, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  vertical-align: -1px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.filter-btn .flag,
.section-subtitle .flag {
  margin-right: 6px;
}

.section-subtitle .flag + .flag {
  margin-left: 0;
}

.flag-us { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 10'%3E%3Crect width='19' height='10' fill='%23ffffff'/%3E%3Cg fill='%23b22234'%3E%3Crect width='19' height='0.77' y='0'/%3E%3Crect width='19' height='0.77' y='1.54'/%3E%3Crect width='19' height='0.77' y='3.08'/%3E%3Crect width='19' height='0.77' y='4.62'/%3E%3Crect width='19' height='0.77' y='6.16'/%3E%3Crect width='19' height='0.77' y='7.7'/%3E%3Crect width='19' height='0.77' y='9.24'/%3E%3C/g%3E%3Crect width='7.6' height='5.38' fill='%233c3b6e'/%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='0.8' cy='0.7' r='0.22'/%3E%3Ccircle cx='2.05' cy='0.7' r='0.22'/%3E%3Ccircle cx='3.3' cy='0.7' r='0.22'/%3E%3Ccircle cx='4.55' cy='0.7' r='0.22'/%3E%3Ccircle cx='5.8' cy='0.7' r='0.22'/%3E%3Ccircle cx='7.05' cy='0.7' r='0.22'/%3E%3Ccircle cx='1.42' cy='1.52' r='0.22'/%3E%3Ccircle cx='2.67' cy='1.52' r='0.22'/%3E%3Ccircle cx='3.92' cy='1.52' r='0.22'/%3E%3Ccircle cx='5.17' cy='1.52' r='0.22'/%3E%3Ccircle cx='6.42' cy='1.52' r='0.22'/%3E%3Ccircle cx='0.8' cy='2.34' r='0.22'/%3E%3Ccircle cx='2.05' cy='2.34' r='0.22'/%3E%3Ccircle cx='3.3' cy='2.34' r='0.22'/%3E%3Ccircle cx='4.55' cy='2.34' r='0.22'/%3E%3Ccircle cx='5.8' cy='2.34' r='0.22'/%3E%3Ccircle cx='7.05' cy='2.34' r='0.22'/%3E%3Ccircle cx='1.42' cy='3.16' r='0.22'/%3E%3Ccircle cx='2.67' cy='3.16' r='0.22'/%3E%3Ccircle cx='3.92' cy='3.16' r='0.22'/%3E%3Ccircle cx='5.17' cy='3.16' r='0.22'/%3E%3Ccircle cx='6.42' cy='3.16' r='0.22'/%3E%3Ccircle cx='0.8' cy='3.98' r='0.22'/%3E%3Ccircle cx='2.05' cy='3.98' r='0.22'/%3E%3Ccircle cx='3.3' cy='3.98' r='0.22'/%3E%3Ccircle cx='4.55' cy='3.98' r='0.22'/%3E%3Ccircle cx='5.8' cy='3.98' r='0.22'/%3E%3Ccircle cx='7.05' cy='3.98' r='0.22'/%3E%3Ccircle cx='1.42' cy='4.8' r='0.22'/%3E%3Ccircle cx='2.67' cy='4.8' r='0.22'/%3E%3Ccircle cx='3.92' cy='4.8' r='0.22'/%3E%3Ccircle cx='5.17' cy='4.8' r='0.22'/%3E%3Ccircle cx='6.42' cy='4.8' r='0.22'/%3E%3C/g%3E%3C/svg%3E"); }
.flag-jp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='2' fill='%23fff'/%3E%3Ccircle cx='1.5' cy='1' r='0.55' fill='%23bc002d'/%3E%3C/svg%3E"); }
.flag-kr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23fff'/%3E%3Cg transform='translate(9 6)'%3E%3Cpath d='M0-2.2A2.2 2.2 0 0 1 0 2.2A1.1 1.1 0 0 0 0 0A1.1 1.1 0 0 1 0-2.2' fill='%23cd2e3a'/%3E%3Cpath d='M0 2.2A2.2 2.2 0 0 1 0-2.2A1.1 1.1 0 1 0 0 0A1.1 1.1 0 0 1 0 2.2' fill='%230047a0'/%3E%3C/g%3E%3Cg fill='%23000000'%3E%3Cg transform='translate(3.4 2.4) rotate(-35)'%3E%3Crect width='0.55' height='2.4'/%3E%3Crect x='0.8' width='0.55' height='2.4'/%3E%3Crect x='1.6' width='0.55' height='2.4'/%3E%3C/g%3E%3Cg transform='translate(12.8 7.2) rotate(-35)'%3E%3Crect width='0.55' height='2.4'/%3E%3Crect x='1.6' width='0.55' height='2.4'/%3E%3C/g%3E%3Cg transform='translate(12.3 2.4) rotate(35)'%3E%3Crect width='0.55' height='2.4'/%3E%3Crect x='0.8' width='0.55' height='2.4'/%3E%3Cg fill='%23fff'%3E%3Crect x='0.8' y='0.9' width='0.55' height='0.6'/%3E%3C/g%3E%3Crect x='1.6' width='0.55' height='2.4'/%3E%3C/g%3E%3Cg transform='translate(3.8 7.2) rotate(35)'%3E%3Crect width='0.55' height='2.4'/%3E%3Crect x='1.6' width='0.55' height='2.4'/%3E%3Cg fill='%23fff'%3E%3Crect y='0.9' width='0.55' height='0.6'/%3E%3Crect x='1.6' y='0.9' width='0.55' height='0.6'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.flag-cn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23de2910'/%3E%3Cpolygon points='5,2.2 5.9,5 8.8,5 6.45,6.7 7.35,9.5 5,7.8 2.65,9.5 3.55,6.7 1.2,5 4.1,5' fill='%23ffde00'/%3E%3Cpolygon points='11.2,2.1 11.65,3.2 12.85,3.3 11.95,4.05 12.25,5.2 11.2,4.55 10.15,5.2 10.45,4.05 9.55,3.3 10.75,3.2' fill='%23ffde00' transform='rotate(20 11.2 3.6)'/%3E%3Cpolygon points='13.8,4.4 14.25,5.5 15.45,5.6 14.55,6.35 14.85,7.5 13.8,6.85 12.75,7.5 13.05,6.35 12.15,5.6 13.35,5.5' fill='%23ffde00' transform='rotate(45 13.8 5.9)'/%3E%3Cpolygon points='13.6,8.3 14.05,9.4 15.25,9.5 14.35,10.25 14.65,11.4 13.6,10.75 12.55,11.4 12.85,10.25 11.95,9.5 13.15,9.4' fill='%23ffde00' transform='rotate(8 13.6 9.8)'/%3E%3Cpolygon points='11,10.9 11.45,12 12.65,12.1 11.75,12.85 12.05,14 11,13.35 9.95,14 10.25,12.85 9.35,12.1 10.55,12' fill='%23ffde00' transform='rotate(-18 11 12.4)'/%3E%3C/svg%3E"); }
.flag-it { background-image: linear-gradient(90deg, #009246 0 33.3%, #ffffff 33.3% 66.6%, #ce2b37 66.6% 100%); }
.flag-tr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23e30a17'/%3E%3Ccircle cx='7' cy='6' r='3.1' fill='%23fff'/%3E%3Ccircle cx='7.8' cy='6' r='2.5' fill='%23e30a17'/%3E%3Cpolygon points='10.7,6 12.8,5.2 11.5,7 11.7,4.8 12.8,6.7' fill='%23fff'/%3E%3C/svg%3E"); }
.flag-gr { background-image: linear-gradient(180deg, #0d5eaf 0 20%, #ffffff 20% 40%, #0d5eaf 40% 60%, #ffffff 60% 80%, #0d5eaf 80% 100%); }
.flag-mx { background-image: linear-gradient(90deg, #006847 0 33.3%, #ffffff 33.3% 66.6%, #ce1126 66.6% 100%); }
.flag-in { background-image: linear-gradient(180deg, #ff9933 0 33.3%, #ffffff 33.3% 66.6%, #138808 66.6% 100%); }
.flag-th { background-image: linear-gradient(180deg, #a51931 0 20%, #f4f5f8 20% 35%, #2d2a4a 35% 65%, #f4f5f8 65% 80%, #a51931 80% 100%); }
.flag-fr { background-image: linear-gradient(90deg, #0055a4 0 33.3%, #ffffff 33.3% 66.6%, #ef4135 66.6% 100%); }
.flag-es { background-image: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%); }
.flag-gb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='12' fill='%23012169'/%3E%3Cpath d='M0 0l7 4.7h4L18 0v1.5L12.6 6 18 10.5V12l-7-4.7H7L0 12v-1.5L5.4 6 0 1.5V0z' fill='%23fff'/%3E%3Cpath d='M0 0l7.7 5.2h1.3L18 0v0.8L10.2 6 18 11.2v0.8l-8.9-5.2H7.8L0 12v-0.8L7.8 6 0 0.8V0z' fill='%23c8102e'/%3E%3Crect x='7' width='4' height='12' fill='%23fff'/%3E%3Crect y='4' width='18' height='4' fill='%23fff'/%3E%3Crect x='7.8' width='2.4' height='12' fill='%23c8102e'/%3E%3Crect y='4.8' width='18' height='2.4' fill='%23c8102e'/%3E%3C/svg%3E"); }
.flag-ir { background-image: linear-gradient(180deg, #239f40 0 33.3%, #ffffff 33.3% 66.6%, #da0000 66.6% 100%); }
.flag-se { background-image: linear-gradient(90deg, #006aa7 0 34%, #fecc00 34% 46%, #006aa7 46% 100%); }
.flag-world { background-image: linear-gradient(135deg, #7eaed3 0%, #e4f2c6 100%); }

.filter-btn:hover { background: var(--green-pale); color: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.filter-btn.active {
  background: linear-gradient(180deg, #91c771 0%, #67994e 100%);
  color: white;
  border-color: var(--green-dark);
  box-shadow: 0 3px 0 var(--green-dark);
}

.search-wrap { margin-left: auto; display: flex; }
#good .search-wrap { margin-left: 0; }
.search-input {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 9px 12px;
  background: var(--warm-white);
  border: 2px solid #b48a56;
  border-right: none;
  color: var(--brown-dark);
  outline: none;
  width: 180px;
  position: relative;
  z-index: 1;
}

.search-input::placeholder { color: var(--brown-light); font-weight: 700; }
.search-btn {
  font-family: var(--font-display);
  font-size: 7px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #e3c16d 0%, #ba8841 100%);
  color: var(--warm-white);
  border: 2px solid #b48a56;
  cursor: pointer;
}

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.recipe-card {
  background: rgba(255,253,246,0.97);
  border: 4px solid #7d5730;
  box-shadow: 0 18px 34px rgba(70, 50, 24, 0.16), inset 0 0 0 2px rgba(255,255,255,0.2);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  overflow: hidden;
  position: relative;
}

.recipe-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(118, 84, 45, 0.22);
  pointer-events: none;
  z-index: 1;
}

.recipe-card:hover { transform: translateY(-5px); box-shadow: 0 24px 42px rgba(70, 50, 24, 0.22), inset 0 0 0 2px rgba(255,255,255,0.25); }

.card-img {
  width: 100%;
  height: 176px;
  border-bottom: 4px solid #7d5730;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--green-pale);
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 12px 16px 14px;
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.38) 0%, rgba(255,245,255,0.16) 42%, transparent 74%);
  pointer-events: none;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 3px;
  transform: scale(1.03);
  z-index: 0;
  image-rendering: pixelated;
}

.card-img.has-art::before {
  background:
    radial-gradient(circle at 24% 24%, rgba(255,255,255,0.34) 0%, rgba(255,240,252,0.1) 42%, transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(197, 227, 255, 0.08) 100%);
}
.card-green .card-img { background: linear-gradient(180deg, #effff0 0%, #d8f8da 100%) !important; }
.card-red .card-img { background: linear-gradient(180deg, #fff0f5 0%, #ffd8e6 100%) !important; }
.card-blue .card-img { background: linear-gradient(180deg, #f1f9ff 0%, #d9efff 100%) !important; }
.card-yellow .card-img { background: linear-gradient(180deg, #fff9de 0%, #fff0bd 100%) !important; }
.card-purple .card-img { background: linear-gradient(180deg, #f7efff 0%, #ebdcff 100%) !important; }
.card-teal .card-img { background: linear-gradient(180deg, #edfffb 0%, #d4f8f1 100%) !important; }
.card-orange .card-img { background: linear-gradient(180deg, #fff2e8 0%, #ffe2cc 100%) !important; }
.card-pink .card-img { background: linear-gradient(180deg, #fff0f8 0%, #ffdced 100%) !important; }

.card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 35%, transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(223, 235, 255, 0.08) 100%);
  pointer-events: none;
}

.card-img-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; text-align: center; padding: 0 12px; }
.card-sprite-row { display: flex; gap: 6px; align-items: center; }
.sprite-tile {
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  background: rgba(255,255,255,0.72);
  border: 2px solid var(--brown-light);
  box-shadow: 2px 2px 0 rgba(92,61,30,0.22);
}

.card-img-lbl {
  font-size: 5px;
  color: var(--brown-mid);
  background: rgba(255,255,255,0.84);
  padding: 3px 6px;
  border: 2px solid var(--brown-light);
}

.card-img-note {
  font-size: 5px;
  color: var(--brown-dark);
  background: rgba(255,255,255,0.88);
  border: 2px solid var(--brown-light);
  padding: 3px 6px;
}

.cuisine-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 900;
  color: white;
  background: var(--brown-dark);
  border: 2px solid #3a2512;
  padding: 3px 6px;
  z-index: 2;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}


.perf-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  font-family: var(--font-display);
  font-size: 5px;
  padding: 3px 5px;
  border: 2px solid;
  z-index: 2;
}

.b-yes { background: var(--green-pale); border-color: var(--green-dark); color: var(--green-dark); }
.b-close { background: var(--yellow-pale); border-color: var(--yellow-dark); color: var(--yellow-dark); }
.b-no { background: var(--red-pale); border-color: var(--red-dark); color: var(--red-dark); }
.b-irr { background: var(--parchment); border-color: var(--brown-light); color: var(--brown-mid); }

.card-body {
  padding: 18px 16px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 18%),
    repeating-linear-gradient(180deg, rgba(131, 99, 56, 0.03) 0 2px, transparent 2px 12px),
    #fffaf0;
}
.card-title { font-family: var(--font-display); font-size: 7px; color: var(--brown-dark); line-height: 1.95; margin-bottom: 10px; }
[lang^="zh"] .card-title { font-size: 11px; line-height: 1.45; }

.hearts-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.hearts { display: flex; gap: 1px; }
.heart { font-size: 14px; line-height: 1; }
.hf { color: #e05a4e; }
.hh { color: #f4a29a; }
.he { color: var(--parchment); }
.rating-txt { font-family: var(--font-body); font-size: 15px; font-weight: 800; color: var(--brown-mid); }

.card-notes {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brown-mid);
  line-height: 1.7;
  background: #fff9e9;
  border: 2px solid #ecd8ac;
  border-left: 4px solid var(--yellow-mid);
  padding: 10px 12px;
  margin-bottom: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 6px;
  color: var(--cream);
  background: linear-gradient(180deg, #77a85d 0%, #4f773c 100%);
  border: 3px solid #355126;
  box-shadow: 0 4px 0 #355126;
  padding: 7px 10px;
  text-decoration: none;
  transition: all 0.12s ease;
}

.card-link:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #355126; }
.no-link { font-family: var(--font-display); font-size: 6px; color: var(--brown-light); }
.recipe-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 6px;
  color: var(--brown-dark);
  background: linear-gradient(180deg, #f7eab8 0%, #ddb95c 100%);
  border: 3px solid #6f4d25;
  box-shadow: 0 4px 0 #6f4d25;
  padding: 7px 10px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.detail-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #6f4d25; }

.attempt-item {
  background: rgba(255, 250, 243, 0.94);
  border: 2px solid #d7bb9e;
  box-shadow: 0 10px 24px rgba(70, 50, 24, 0.08), inset 0 0 0 1px rgba(255,255,255,0.35);
  padding: 18px 20px;
  position: relative;
}

.attempt-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.attempt-main {
  min-width: 0;
}

.attempt-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.attempt-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff6e3;
  border: 2px solid #d7bb9e;
  font-size: 18px;
  flex-shrink: 0;
}

.attempt-title {
  font-family: var(--font-display);
  font-size: 7px;
  line-height: 1.9;
  color: var(--brown-dark);
}
[lang^="zh"] .attempt-title { font-size: 11px; line-height: 1.45; }

.attempt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attempt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: var(--brown-mid);
  background: rgba(255,255,255,0.85);
  border: 1px solid #dbc4a8;
  padding: 5px 8px;
}

.attempt-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.attempt-hearts .hearts {
  justify-content: flex-end;
}

.attempt-notes {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--brown-mid);
  border-left: 3px solid #d8b36a;
  padding-left: 12px;
}

.attempt-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 5px;
  color: var(--brown-dark);
  background: linear-gradient(180deg, #f0e3bd 0%, #dfc388 100%);
  border: 2px solid #b48a56;
  box-shadow: 0 3px 0 #b48a56;
  padding: 6px 8px;
  text-decoration: none;
  transition: all 0.12s ease;
}

.attempt-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #b48a56;
}

.attempt-no-link {
  font-family: var(--font-display);
  font-size: 5px;
  color: var(--brown-light);
}

body.modal-open { overflow: hidden; }

.recipe-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.recipe-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 18, 10, 0.72);
  backdrop-filter: blur(5px);
}

.recipe-modal-card {
  position: relative;
  width: min(1020px, 100%);
  max-height: calc(100vh - 48px);
  background: linear-gradient(180deg, #fffaf0 0%, #f7eed6 100%);
  border: 5px solid #6f4d25;
  box-shadow: 0 28px 60px rgba(24, 16, 8, 0.34), inset 0 0 0 2px rgba(255,255,255,0.2);
  overflow: hidden;
}

.recipe-modal-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(118, 84, 45, 0.24);
  pointer-events: none;
  z-index: 0;
}

.recipe-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 3px solid #6f4d25;
  background: linear-gradient(180deg, #f8e8b6 0%, #d9b45f 100%);
  box-shadow: 0 4px 0 #6f4d25;
  color: var(--brown-dark);
  font-family: var(--font-display);
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
}

.recipe-modal-scroll {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.recipe-modal-media {
  min-height: 320px;
  border-right: 4px solid #6f4d25;
  border-bottom: 4px solid #6f4d25;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.08) 38%, transparent 70%), #dce9aa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.recipe-modal-media.card-green { background-color: #dcf7dd; }
.recipe-modal-media.card-red { background-color: #ffdfe8; }
.recipe-modal-media.card-blue { background-color: #dff0ff; }
.recipe-modal-media.card-yellow { background-color: #fff3c9; }
.recipe-modal-media.card-purple { background-color: #efe3ff; }
.recipe-modal-media.card-teal { background-color: #daf8f4; }
.recipe-modal-media.card-orange { background-color: #ffe7d2; }
.recipe-modal-media.card-pink { background-color: #ffe0f2; }

.recipe-modal-media img {
  width: 100%;
  max-width: 320px;
  max-height: 320px;
  object-fit: contain;
  image-rendering: pixelated;
}

.recipe-modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.recipe-modal-placeholder-icon {
  font-size: 72px;
  line-height: 1;
}

.recipe-modal-placeholder-copy {
  font-family: var(--font-display);
  font-size: 6px;
  color: var(--brown-mid);
  background: rgba(255,255,255,0.82);
  border: 2px solid var(--brown-light);
  padding: 6px 8px;
}

.recipe-modal-content {
  padding: 34px 30px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26) 0%, transparent 20%),
    repeating-linear-gradient(180deg, rgba(131, 99, 56, 0.035) 0 2px, transparent 2px 12px),
    #fffaf0;
}

.recipe-modal-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-right: 56px;
}

.recipe-modal-badge,
.recipe-modal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 6px;
  line-height: 1.8;
  padding: 6px 8px;
  border: 2px solid #6f4d25;
  background: rgba(255,255,255,0.84);
  color: var(--brown-dark);
}

.recipe-modal-badge-right {
  margin-left: auto;
}

.recipe-modal-title {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--brown-dark);
  line-height: 1.9;
  margin-bottom: 14px;
}
[lang^="zh"] .recipe-modal-title { font-size: 14px; line-height: 1.45; }

.recipe-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.recipe-modal-notes {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
  color: var(--brown-mid);
  background: #fff9e9;
  border: 2px solid #ecd8ac;
  border-left: 4px solid var(--yellow-mid);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.recipe-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.recipe-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.recipe-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 6px;
  line-height: 1.8;
  color: var(--brown-dark);
  background: linear-gradient(180deg, #f7eab8 0%, #ddb95c 100%);
  border: 3px solid #6f4d25;
  box-shadow: 0 4px 0 #6f4d25;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.recipe-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #6f4d25;
}

.recipe-tab-btn.active {
  background: linear-gradient(180deg, #9cd08c 0%, #77a85d 100%);
  border-color: #446236;
  box-shadow: 0 4px 0 #446236;
  color: #fffef2;
}

.recipe-modal-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
  white-space: pre-line;
  color: var(--brown-mid);
  background: rgba(255,255,255,0.76);
  border: 2px solid #ecd8ac;
  padding: 14px;
}

.recipe-modal-text-recipe {
  background: rgba(255, 252, 244, 0.94);
}

@keyframes sparkle {
  0%,100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(15deg); }
}

.sparkle { display: inline-block; animation: sparkle 1.8s ease infinite; }

.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.todo-card {
  background: rgba(255,253,246,0.97);
  border: 3px solid var(--blue-dark);
  box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(255,255,255,0.22);
  padding: 16px;
  transition: transform 0.12s ease;
  position: relative;
}

.todo-card::before,
.basic-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(91, 79, 48, 0.22);
  pointer-events: none;
}

.todo-card:hover { transform: translateY(-3px); }
.todo-box {
  width: 13px;
  height: 13px;
  border: 3px solid var(--blue-dark);
  background: var(--cream);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.todo-row { display: flex; align-items: flex-start; margin-bottom: 7px; }
.todo-title { font-family: var(--font-display); font-size: 7px; color: var(--brown-dark); line-height: 1.9; }
[lang^="zh"] .todo-title { font-size: 11px; line-height: 1.45; }
.todo-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 5px;
  color: var(--blue-dark);
  background: var(--blue-pale);
  border: 2px solid var(--blue-mid);
  padding: 2px 5px;
  margin-bottom: 7px;
}

.todo-link {
  display: block;
  font-family: var(--font-display);
  font-size: 5px;
  color: var(--cream);
  background: var(--blue-dark);
  border: 2px solid #1a4a5c;
  box-shadow: 2px 2px 0 #1a4a5c;
  padding: 5px 8px;
  text-decoration: none;
  transition: all 0.07s;
  margin-bottom: 7px;
}

.todo-link:hover { background: var(--blue-mid); transform: translate(-1px,-1px); }
.todo-note {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-mid);
  line-height: 1.65;
  border-left: 3px solid var(--yellow-mid);
  padding: 7px 9px;
  background: var(--cream);
}

.basic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.basic-card {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.42) 0%, transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 18%),
    #fbf7ff;
  border: 3px solid var(--purple-dark);
  box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(255,255,255,0.22);
  padding: 18px;
  position: relative;
}

.basic-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.basic-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(255,255,255,0.72);
  border: 2px solid #c9b5e2;
  box-shadow: 0 4px 10px rgba(76, 52, 106, 0.1);
  flex-shrink: 0;
}

.basic-head {
  min-width: 0;
  flex: 1;
}

.basic-kicker {
  font-family: var(--font-display);
  font-size: 5px;
  color: var(--purple-dark);
  margin-bottom: 8px;
}

.basic-title {
  font-family: var(--font-display);
  font-size: 7px;
  color: var(--brown-dark);
  line-height: 1.9;
}
[lang^="zh"] .basic-title { font-size: 11px; line-height: 1.45; }

.basic-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.basic-panel-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.basic-panel {
  background: rgba(255,255,255,0.72);
  border: 2px solid #dccdea;
  padding: 12px;
}

.basic-panel-label {
  font-family: var(--font-display);
  font-size: 5px;
  color: var(--purple-dark);
  margin-bottom: 9px;
}

.basic-copy {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-mid);
  line-height: 1.75;
  white-space: pre-line;
}

.basic-copy-empty {
  color: var(--brown-light);
}

.basic-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 5px;
  color: var(--cream);
  background: var(--purple-dark);
  border: 2px solid #3a2555;
  box-shadow: 2px 2px 0 #3a2555;
  padding: 5px 8px;
  text-decoration: none;
  transition: all 0.07s;
}

.basic-link:hover { background: var(--purple-mid); transform: translate(-1px,-1px); }

.basic-note-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 5px;
  color: var(--purple-dark);
  background: rgba(255,255,255,0.8);
  border: 2px solid #c9b5e2;
  padding: 5px 8px;
}
.hidden { display: none !important; }

footer {
  text-align: center;
  background: linear-gradient(180deg, #6b482a 0%, #4f341c 100%);
  border-top: 5px solid #3a2512;
  padding: 30px 20px;
  margin-top: 36px;
  color: var(--brown-pale);
  line-height: 2.7;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 20px, rgba(0,0,0,0.02) 20px 40px),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 35%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 6px;
  color: #f5e7b9;
}

.footer-stats {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  color: #f2dfbb;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  color: #ecd9b6;
  max-width: 760px;
}

#good .section-head,
#good .filter-bar,
#good .stat-chip {
  border-color: #66894a;
}

#good .section-head {
  background: linear-gradient(180deg, #f7f6d0 0%, #dce9aa 100%);
}

#good .filter-bar,
#good .stat-chip {
  background: rgba(245, 252, 230, 0.94);
}

#attempted .section-head,
#attempted .filter-bar {
  border-color: #bf7d59;
}

#attempted .section-head {
  background: linear-gradient(180deg, #fff0dd 0%, #f2cfad 100%);
}

#attempted .filter-bar {
  background: rgba(255, 241, 225, 0.94);
}

#att-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#todo .section-head {
  border-color: #5d88b1;
  background: linear-gradient(180deg, #edf6ff 0%, #d5e8fb 100%);
}

#basic .section-head {
  border-color: #8f76b2;
  background: linear-gradient(180deg, #f6f0ff 0%, #e6daf8 100%);
}

#todo .todo-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24) 0%, transparent 16%),
    #f7fbff;
}

#basic .section-head,
#basic .filter-bar,
#basic .basic-card {
  border-color: #8f76b2;
}

#basic .basic-card {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.42) 0%, transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 18%),
    #fbf7ff;
}

#about .section-head {
  border-color: #8d5f8e;
  background: linear-gradient(180deg, #fff3e8 0%, #f2d8eb 100%);
}

.about-card {
  max-width: 760px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.42) 0%, transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 18%),
    #fffaf3;
  border: 4px solid #8d5f8e;
  box-shadow: var(--shadow-soft), inset 0 0 0 3px rgba(255,255,255,0.24);
}

.about-note {
  max-width: 760px;
  margin-top: 18px;
  padding: 20px 24px;
  background: rgba(255, 250, 243, 0.94);
  border: 3px solid #c9ab70;
  box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(255,255,255,0.22);
}

.about-lead,
.about-copy {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.65;
}

.about-lead {
  font-size: 19px;
  font-weight: 800;
}

.about-copy {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-mid);
}

.about-note-title {
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--brown-dark);
}

.about-note-copy {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--text-mid);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fff4bf 0%, #ebc96d 100%);
  border: 3px solid #7a5731;
  box-shadow: 0 4px 0 #7a5731;
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.about-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #7a5731;
  filter: brightness(1.03);
}

@media (max-width: 700px) {
  .header-inner {
    gap: 12px;
    padding: 12px;
    align-items: stretch;
  }
  .logo-wrap {
    width: 100%;
    justify-content: flex-start;
    padding: 12px;
  }
  .logo-art { width: 52px; height: 52px; }
  .logo-text {
    font-size: 6px;
    line-height: 1.8;
    word-break: break-word;
  }
  .logo-sub { margin-top: 6px; }
  .header-ribbon {
    padding: 0 12px 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }
  .ribbon-copy {
    font-size: 13px;
    line-height: 1.5;
    width: 100%;
  }
  nav {
    width: 100%;
    margin-left: 0;
    padding: 10px;
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab-btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 10px;
    font-size: 7px;
    line-height: 1.45;
    text-align: center;
  }
  main {
    padding: 24px 12px 56px;
  }
  .section-head {
    padding: 14px;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-copy {
    min-width: 0;
    flex: 1 1 180px;
  }
  .section-title {
    font-size: 7px;
    line-height: 1.8;
  }
  .section-subtitle {
    font-size: 14px;
    line-height: 1.5;
  }
  .section-count {
    font-size: 12px;
    margin-left: 0;
    width: 100%;
  }
  .good-filter-top { flex-direction: column; align-items: stretch; }
  .good-filter-buttons { gap: 6px; }
  .filter-bar {
    padding: 14px;
    gap: 10px;
  }
  .filter-lbl {
    width: 100%;
    font-size: 13px;
  }
  .filter-btn {
    font-size: 6px;
    padding: 9px 10px;
    line-height: 1.4;
  }
  .search-wrap { width: 100%; margin-left: 0; }
  .search-input { width: 100%; }
  .search-btn {
    min-width: 44px;
  }
  .recipe-grid, .basic-grid, .todo-grid { grid-template-columns: 1fr; gap: 14px; }
  .recipe-card {
    border-width: 3px;
  }
  .card-img {
    height: 194px;
  }
  .card-body {
    padding: 14px 13px 15px;
  }
  .card-title {
    font-size: 6px;
    line-height: 1.8;
  }
  [lang^="zh"] .card-title {
    font-size: 10px;
    line-height: 1.4;
  }
  .card-notes, .todo-note, .basic-instr { font-size: 13px; }
  .recipe-card-actions {
    gap: 8px;
  }
  .card-link,
  .detail-btn {
    font-size: 5px;
    padding: 8px 9px;
  }
  .cuisine-badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .perf-badge {
    font-size: 4px;
    padding: 4px 5px;
  }
  .search-input { font-size: 13px; }
  .footer-stats, .footer-copy, .logo-sub { font-size: 13px; }
  #att-grid { grid-template-columns: 1fr; }
  .recipe-modal { padding: 8px; }
  .recipe-modal-card {
    width: 100%;
    max-height: calc(100vh - 16px);
  }
  .recipe-modal-scroll { grid-template-columns: 1fr; max-height: calc(100vh - 16px); }
  .recipe-modal-media { min-height: 240px; border-right: none; }
  .recipe-modal-content { padding: 20px 16px 18px; }
  .recipe-modal-topline,
  .recipe-modal-meta,
  .recipe-modal-actions,
  .recipe-modal-tabs {
    gap: 8px;
    flex-wrap: wrap;
  }
  .recipe-modal-title {
    font-size: 7px;
    line-height: 1.8;
  }
  [lang^="zh"] .recipe-modal-title {
    font-size: 11px;
    line-height: 1.4;
  }
  .recipe-modal-text, .recipe-modal-notes { font-size: 14px; }
  .recipe-modal-badge-right { margin-left: 0; }
  .attempt-row { flex-direction: column; }
  .attempt-side { align-items: flex-start; }
  .attempt-notes { font-size: 14px; }
  .about-card { padding: 22px 18px; }
  .about-note { padding: 18px 16px; }
  .about-lead { font-size: 17px; }
  .about-copy { font-size: 15px; }
  .about-note-copy { font-size: 14px; }
  .about-links { flex-direction: column; }
  .about-link { width: 100%; }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px;
  }
  .logo-wrap {
    gap: 10px;
    padding: 10px;
  }
  .logo-art {
    width: 46px;
    height: 46px;
  }
  .logo-text {
    font-size: 5px;
  }
  .lang-label {
    font-size: 11px;
  }
  nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tab-btn {
    min-height: 42px;
    font-size: 6px;
  }
  .section-icon {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
  .section-title {
    font-size: 6px;
  }
  .section-subtitle {
    font-size: 13px;
  }
  .filter-btn {
    width: 100%;
    text-align: center;
  }
  .search-input {
    font-size: 16px;
  }
  .card-img {
    height: 184px;
  }
  .card-notes,
  .todo-note,
  .basic-instr,
  .attempt-notes,
  .about-copy,
  .about-note-copy,
  .footer-copy {
    font-size: 14px;
    line-height: 1.6;
  }
  .footer-inner {
    padding: 18px 14px;
  }
}
