:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #000000;
  --muted: #94a3b8;
  --accent: #000000;
  --border: #000000;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #9af5bd, #aaf8c8, #aaf8c8, #9af5bd);
  color: var(--text);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.app {
  width: 100%;
  max-width: 480px;
  padding: 18px 16px 38px;
}

header {
  margin-bottom: 18px;
}

.tagline {
  color: rgb(42, 73, 50);
  margin-top: 6px;
  font-size: 18px;
  text-align: center;
}

a {
  text-decoration: none;
  color: black;
}

p {
  color: rgb(42, 73, 50);
  font-style: italic;
}

img {
  image-rendering: auto;
}

.search {
  position: relative;
  margin: 20px 0;
}

.search input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--muted);
}

.food-list {
  display: grid;
  gap: 12px;
}

.food-item {
  background: linear-gradient(180deg, #ffffff, #ffffff);
  padding: 10px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  will-change: transform;
  contain: content;
}

.food-item:active {
  transform: scale(0.97);
}

.food-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 12px;
  border: 2px solid #000000;
  content-visibility: auto;
}

.brand {
  color: rgb(255, 255, 255);
  font-weight: 700;
  font-size: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: rgb(42, 179, 42);
  border-radius: 25px;
  margin-right: 5px;
}

.food-info {
  flex: 1;
}

.food-name {
  font-weight: 600;
}

.calories {
  color: var(--accent);
  font-size: 0.9rem;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 12px;
}

footer {
  font-weight: bold;
  text-align: center;
  font-size: 13px;
  color: #555;
  padding: 14px 8px;
  margin-top: 20px;
  border-top: 1px solid #ddd;
  background: #58f787;
}

.food-item, .food-img {
  will-change: transform;
  transform: translateZ(0);
}

@media (min-width: 520px) {
  .food-img {
    width: 56px;
    height: 56px;
  }
}

@media (hover: none) {
  .food-item:active {
    transform: none;
  }
}

#seo-foods {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#foodList {
  will-change: transform;
}

.seo-links {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px dashed #000;
  font-size: 0.85rem;
  opacity: 0.75;
}

.seo-links h2 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.seo-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-links li a {
  color: #000;
  text-decoration: underline;
}