:root {
  --bg-1: #fff8e8;
  --bg-2: #ffe89c;
  --card: #111111;
  --ink: #f8f3e5;
  --muted: #d3cbb7;
  --accent: #ffc628;
  --accent-2: #ff9d00;
  --error: #ff6a6a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, #ffcf4d 0%, transparent 42%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2));
}

.layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.card {
  width: min(760px, 100%);
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: rise 0.5s ease-out;
}

h1, h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.subtitle {
  margin: 0.5rem 0 1.25rem;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

input,
select,
button {
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
}

input,
select {
  background: #f8f3e5;
  color: #111;
}

button {
  width: 100%;
  margin-top: 0.4rem;
  font-weight: 700;
  color: #111;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.status {
  min-height: 1.2rem;
  margin-top: 0.9rem;
  color: var(--muted);
}

.status.error {
  color: var(--error);
}

.hidden {
  display: none;
}

.results {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid #2a2a2a;
  animation: fade-in 240ms ease-out;
}

.menu-day {
  margin-top: 0.55rem;
  color: #ffe3a2;
  font-weight: 700;
  font-size: 1.02rem;
}

#meta {
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.15rem;
}

#items {
  list-style: none;
  padding: 0;
  margin: 0.95rem 0;
  display: grid;
  gap: 0.7rem;
}

#items li {
  background: #1a1a1a;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  font-size: 1.08rem;
  line-height: 1.4;
}

.totals {
  background: #191919;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 1.12rem;
  line-height: 1.5;
}

@keyframes rise {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .card {
    border-radius: 18px;
    padding: 1.2rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}
