:root {
  --bg: #140d18;
  --bg-2: #26152c;
  --panel: rgba(42, 24, 45, 0.86);
  --border: rgba(255, 214, 153, 0.24);
  --text: #fff8f1;
  --muted: #d7c4cf;
  --accent: #ffb347;
  --accent-2: #ff6f61;
  --good: #83f7a0;
  --bad: #ff7b92;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 179, 71, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
button { font: inherit; }
.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}
.topbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--muted);
}
.topbar a { color: inherit; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}
.hero, .sidebar, .game-panel { padding: 20px; }
.hero { grid-column: 1 / -1; }
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.78rem;
}
h1, h2, p { margin-top: 0; }
.subtitle, .tip, li { color: var(--muted); }
.hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.hud > div {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 10px 12px;
}
.label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.feedback {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
}
.game {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 214, 153, 0.14), rgba(28, 17, 33, 0.96) 56%),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  border: 1px solid rgba(255,255,255,0.08);
}
.skyline {
  position: absolute;
  inset: auto 0 120px;
  height: 120px;
  opacity: 0.16;
  background: linear-gradient(90deg,
    transparent 0 6%, #fff 6% 10%, transparent 10% 13%, #fff 13% 17%, transparent 17% 23%,
    #fff 23% 28%, transparent 28% 34%, #fff 34% 38%, transparent 38% 44%, #fff 44% 50%,
    transparent 50% 58%, #fff 58% 63%, transparent 63% 71%, #fff 71% 77%, transparent 77% 100%);
}
.drop-zone {
  position: absolute;
  top: 42px;
  left: 50%;
  width: min(82vw, 420px);
  max-width: calc(100% - 36px);
  height: 80px;
  transform: translateX(-50%);
}
.ingredient {
  position: absolute;
  top: 0;
  left: 0;
  height: 28px;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.22);
  transform-origin: center center;
}
.ingredient::before {
  content: '';
  position: absolute;
  inset: 5px 10px;
  border-radius: inherit;
  opacity: 0.18;
  background: rgba(255,255,255,0.9);
}
.stack {
  position: absolute;
  left: 50%;
  bottom: 88px;
  width: min(82vw, 420px);
  max-width: calc(100% - 36px);
  height: 360px;
  transform: translateX(-50%);
}
.stack-piece {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 28px;
  border-radius: 999px;
  transform-origin: center center;
  box-shadow: 0 10px 18px rgba(0,0,0,0.22);
}
.stack-piece::after {
  content: '';
  position: absolute;
  inset: 5px 10px;
  border-radius: inherit;
  opacity: 0.14;
  background: rgba(255,255,255,0.9);
}
.plate-wrap {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
}
.plate {
  width: 220px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5f0f5, #b9afbd);
  box-shadow: inset 0 6px 0 rgba(255,255,255,0.45);
}
.plate-shadow {
  width: 180px;
  height: 20px;
  margin: 0 auto -10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  filter: blur(8px);
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  color: #21151a;
  background: linear-gradient(180deg, #ffd166, #ffb347);
}
button.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.sidebar ul {
  padding-left: 20px;
  line-height: 1.5;
}
.good { color: var(--good); }
.bad { color: var(--bad); }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .game { height: 500px; }
}
@media (max-width: 560px) {
  .shell { padding: 12px; }
  .hero, .sidebar, .game-panel { padding: 16px; }
  .hud { grid-template-columns: repeat(2, 1fr); }
  .actions { flex-direction: column; }
  button { width: 100%; }
  .game { height: 460px; }
  .drop-zone, .stack { width: calc(100% - 20px); }
}
