:root {
  --bg: #f6efe4;
  --card: #fffaf3;
  --ink: #2a2118;
  --muted: #8a7b6a;
  --line: #e4d5c2;
  --shadow: 0 10px 30px rgba(90, 55, 25, 0.08);
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, #ffe8c8 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, #ffd9c2 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px 0;
}

.hdr {
  text-align: center;
  margin-bottom: 10px;
  z-index: 3;
  flex-shrink: 0;
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  position: relative;
  z-index: 3;
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 22px;
  flex-shrink: 0;
}

.lbl {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

input#dish {
  width: 100%;
  appearance: none;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}

input#dish:focus {
  border-color: #e07a3d;
  box-shadow: 0 0 0 3px rgba(224, 122, 61, 0.18);
}

input#dish::placeholder { color: #c4b5a3; }

.meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 12px;
  min-height: 1.5em;
}

.top { font-size: 1.15rem; font-weight: 700; }

.stats {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.bar-label { font-size: 13px; font-weight: 600; }

.bar-track {
  height: 16px;
  background: #f0e6d8;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-pct {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.busy .top { opacity: 0.55; }

/* Full area under the card — one sim space */
.field {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 0;
  pointer-events: none;
  overflow: hidden;
  margin-top: 8px;
}

.particle {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 26px;
  line-height: 1;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 2px 3px rgba(42, 33, 24, 0.1));
}

.particle.hot {
  filter: drop-shadow(0 3px 8px rgba(224, 122, 61, 0.25));
  font-size: 28px;
  z-index: 2;
}
