* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: Arial, "Segoe UI", sans-serif;
  color: #24160f;

  background:
    radial-gradient(circle at top right, rgba(255, 190, 120, 0.35), transparent 35%),
    linear-gradient(135deg, #fff7ed, #f8efe3);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* =========================
   HEADER
========================= */

.site-header {
  width: min(100% - 28px, 1100px);

  margin: 0 auto;

  padding:
    max(14px, env(safe-area-inset-top))
    0
    10px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 20px;
  font-weight: 800;
}

.brand-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background: rgba(255,255,255,0.92);

  box-shadow:
    0 8px 22px rgba(120, 72, 28, 0.12);
}

.top-nav {
  display: none;
}


/* =========================
   MAIN
========================= */

.main-content {
  flex: 1;

  width: min(100% - 24px, 760px);

  margin: 12px auto 28px;

  display: flex;
  align-items: flex-start;
  justify-content: center;
}


/* =========================
   CARD
========================= */

.hero-card {
  width: 100%;

  padding: 26px 20px;

  border-radius: 24px;

  background: rgba(255,255,255,0.82);

  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.9);

  box-shadow:
    0 24px 70px rgba(92, 51, 20, 0.13);
}

.hero-badge {
  display: inline-block;

  margin-bottom: 14px;

  padding: 8px 14px;

  border-radius: 999px;

  background: #ffe3bf;
  color: #8a4a13;

  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0 0 14px;

  font-size: 34px;
  line-height: 1.12;

  color: #24160f;
}

.hero-text {
  margin: 0 0 24px;

  color: #6f5a4b;

  font-size: 16px;
  line-height: 1.65;
}


/* =========================
   FORM
========================= */

.question-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

label {
  font-size: 15px;
  font-weight: 800;

  color: #3a2418;
}

select {
  width: 100%;
  min-height: 50px;

  padding: 14px 16px;

  border-radius: 14px;
  border: 1px solid #ead9c7;

  background: #fffaf5;

  color: #24160f;

  font-size: 16px;

  outline: none;

  appearance: none;
}

select:focus {
  border-color: #e3953f;

  box-shadow:
    0 0 0 4px rgba(227, 149, 63, 0.18);
}


/* =========================
   BUTTONS
========================= */

.primary-btn,
.secondary-btn {
  width: 100%;
  min-height: 54px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  border: none;
  border-radius: 16px;

  font-size: 17px;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.primary-btn {
  margin-top: 8px;

  background:
    linear-gradient(135deg, #ff9f43, #ff6b35);

  color: white;

  box-shadow:
    0 14px 30px rgba(255, 107, 53, 0.25);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: scale(0.98);
}

.secondary-btn {
  margin-top: 18px;

  background: #fff3e5;

  color: #8a4a13;
}


/* =========================
   RESULT
========================= */

.result-box {
  margin: 20px 0 10px;

  padding: 18px;

  border-radius: 18px;

  background: #fff6ec;

  color: #6b3b16;

  font-weight: 700;
}


/* =========================
   FOOTER
========================= */

.site-footer {
  padding:
    16px
    12px
    max(22px, env(safe-area-inset-bottom));

  text-align: center;

  color: #9a7861;

  font-size: 13px;
}


/* =========================
   DESKTOP
========================= */

@media (min-width: 700px) {

  .site-header {
    padding: 24px 0;
  }

  .top-nav {
    display: flex;
    gap: 14px;
  }

  .top-nav a {
    padding: 10px 16px;

    border-radius: 999px;

    background: rgba(255,255,255,0.65);

    font-weight: 700;
  }

  .main-content {
    margin: 30px auto 50px;
    align-items: center;
  }

  .hero-card {
    padding: 42px;
    border-radius: 28px;
  }

  h1 {
    font-size: clamp(38px, 5vw, 52px);
  }

  .hero-text {
    font-size: 18px;
  }

  .primary-btn,
  .secondary-btn {
    width: auto;
    min-width: 220px;
  }
}

.cards-form {
  display: grid;
  gap: 14px;
}

.answer-card {
  width: 100%;
  min-height: 92px;

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 18px;

  border: 1px solid #ead9c7;
  border-radius: 20px;

  background: #fffaf5;
  color: #24160f;

  cursor: pointer;

  text-align: right;

  box-shadow: 0 10px 26px rgba(92, 51, 20, 0.07);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.answer-card:hover {
  transform: translateY(-2px);
  border-color: #e3953f;
  box-shadow: 0 16px 34px rgba(92, 51, 20, 0.12);
}

.answer-card:active {
  transform: scale(0.98);
}

.answer-emoji {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  border-radius: 18px;

  background: #fff0df;

  font-size: 30px;

  flex-shrink: 0;
}

.answer-text {
  font-size: 19px;
  font-weight: 900;
}

@media (min-width: 700px) {
  .cards-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .answer-card {
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .answer-emoji {
    width: 64px;
    height: 64px;
    font-size: 34px;
  }
}

.results-list {
  display: grid;
  gap: 16px;
}

.food-result-card {
  padding: 20px;

  border-radius: 20px;

  background: #fffaf5;

  border: 1px solid #ead9c7;

  box-shadow:
    0 10px 26px rgba(92, 51, 20, 0.08);
}

.food-result-card h2 {
  margin-top: 0;
  margin-bottom: 10px;

  font-size: 24px;
}

.food-result-card p {
  margin: 0;

  line-height: 1.6;

  color: #6f5a4b;
}