:root {
  --pg-bg: #163331;
  --pg-surface: #fff7ea;
  --pg-surface-2: #f2dfbf;
  --pg-text: #20302d;
  --pg-muted: #66736f;
  --pg-accent: #e4572e;
  --pg-success: #2f9f6f;
  --pg-warning: #e0a12f;
  --pg-danger: #c84b3b;
  --pg-shadow: 0 18px 42px rgba(9, 27, 25, 0.28);
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(228, 87, 46, 0.24), transparent 26%),
    radial-gradient(circle at 88% 4%, rgba(47, 159, 111, 0.22), transparent 30%),
    linear-gradient(135deg, #163331 0%, #234844 58%, #301f1b 100%);
}

.kitchen-shell {
  width: min(1260px, calc(100% - 24px));
}

.pg-title,
.pg-subtitle,
.pg-header .pg-chip {
  color: #fff7ea;
}

.pg-subtitle {
  color: rgba(255, 247, 234, 0.78);
}

.pg-chip {
  background: rgba(255, 247, 234, 0.1);
  border-color: rgba(255, 247, 234, 0.18);
}

.pg-panel {
  background: rgba(255, 247, 234, 0.96);
  border-color: rgba(255, 255, 255, 0.26);
}

.pg-card {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(32, 48, 45, 0.1);
}

.pg-btn--primary {
  background: linear-gradient(135deg, #e4572e, #f2b94b);
  color: #25150c;
}

.pg-btn--ghost {
  background: rgba(22, 51, 49, 0.08);
  border: 1px solid rgba(22, 51, 49, 0.14);
}

.kitchen-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.25fr) minmax(250px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.order-panel,
.kitchen-stage,
.progress-panel,
.skill-panel {
  padding: 16px;
}

.order-panel {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(228, 87, 46, 0.22);
}

.order-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #e4572e, #f2b94b, #2f9f6f);
}

.kicker {
  display: block;
  color: #b34726;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.order-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  line-height: 1.05;
}

.order-head p,
.current-step p,
.skill-panel p,
.chef-board p {
  color: var(--pg-muted);
}

.current-step {
  margin: 14px 0;
  padding: 14px;
  border-left: 5px solid #e4572e;
}

.current-step strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.recipe-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(22, 51, 49, 0.06);
  border: 1px solid rgba(22, 51, 49, 0.08);
}

.recipe-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f2dfbf;
  font-weight: 900;
}

.recipe-step.is-current {
  border-color: rgba(228, 87, 46, 0.46);
  box-shadow: 0 0 24px rgba(228, 87, 46, 0.18);
}

.recipe-step.is-done {
  background: rgba(47, 159, 111, 0.12);
}

.recipe-step.is-done .recipe-step__num {
  background: #2f9f6f;
  color: #fff;
}

.kitchen-stage {
  overflow: hidden;
}

.chef-board {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #173633;
  color: #fff7ea;
}

.chef-board .kicker,
.chef-board p {
  color: rgba(255, 247, 234, 0.78);
}

.chef-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2b94b, #e4572e);
  color: #24120a;
  font-weight: 900;
}

.chef-avatar.is-angry {
  background: linear-gradient(135deg, #c84b3b, #f2b94b);
}

.plate-scene {
  position: relative;
  min-height: 260px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 44px),
    #24433f;
}

.counter-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, #d6b579, #9d7040);
}

.plate {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: min(260px, 70%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #fff 0 35%, #e9edf0 36% 60%, #c8d0d6 61% 64%, #fff 65%);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.24);
}

.food-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.food-layer.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.food-layer--base {
  width: 56%;
  height: 26%;
  border-radius: 50%;
  background: #f2d079;
}

.food-layer--main {
  width: 42%;
  height: 34%;
  border-radius: 48% 52% 44% 56%;
  background: #de5b3f;
}

.food-layer--accent {
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: #2f9f6f;
  box-shadow: 42px -4px 0 #2f9f6f, -38px 8px 0 #f2b94b;
}

.steam {
  position: absolute;
  left: 50%;
  top: 48px;
  width: 12px;
  height: 64px;
  border-radius: 999px;
  border-left: 3px solid rgba(255, 255, 255, 0.45);
  opacity: 0;
  animation: steamRise 2.2s ease-in-out infinite;
}

.steam--one {
  margin-left: -38px;
}

.steam--two {
  margin-left: 26px;
  animation-delay: 0.5s;
}

.plate-scene.is-hot .steam {
  opacity: 1;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.zone-card {
  min-height: 128px;
  padding: 14px;
  border: 2px solid rgba(32, 48, 45, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--pg-text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.zone-card:hover,
.zone-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(228, 87, 46, 0.46);
  box-shadow: 0 14px 24px rgba(22, 51, 49, 0.14);
}

.zone-card.is-suggested {
  animation: zonePulse 1.4s ease-in-out infinite;
}

.zone-card.is-wrong {
  border-color: rgba(200, 75, 59, 0.65);
}

.zone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #173633;
  color: #fff7ea;
  font-weight: 900;
}

.zone-card strong,
.zone-card span {
  display: block;
}

.zone-card > span:last-child {
  margin-top: 6px;
  color: var(--pg-muted);
  font-size: 0.88rem;
}

.service-panel {
  display: grid;
  gap: 14px;
}

.score-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 10px;
}

.score-line strong {
  font-size: 2rem;
  line-height: 1;
}

.skill-panel strong {
  display: block;
  margin: 8px 0;
}

.intro-image {
  display: block;
  width: calc(100% + 44px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: -22px -22px 16px;
  border-radius: 16px 16px 0 0;
}

.specialty-badge {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(47, 159, 111, 0.12);
  color: #257450;
  font-size: 0.84rem;
  font-weight: 900;
}

.kitchen-modal p {
  color: var(--pg-muted);
}

@keyframes zonePulse {
  0%,
  100% {
    box-shadow: 0 0 18px 4px rgba(228, 87, 46, 0.12);
  }

  50% {
    box-shadow: 0 0 38px 12px rgba(228, 87, 46, 0.24);
  }
}

@keyframes steamRise {
  0% {
    transform: translateY(24px) scaleY(0.75);
    opacity: 0;
  }

  45% {
    opacity: 1;
  }

  100% {
    transform: translateY(-20px) scaleY(1.05);
    opacity: 0;
  }
}

@media (max-width: 1040px) {
  .kitchen-layout {
    grid-template-columns: 1fr 1fr;
  }

  .service-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .kitchen-shell {
    width: min(100% - 14px, 1260px);
  }

  .kitchen-layout,
  .service-panel {
    grid-template-columns: 1fr;
  }

  .order-panel,
  .kitchen-stage,
  .progress-panel,
  .skill-panel {
    padding: 14px;
  }

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

  .zone-card {
    min-height: 86px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
  }

  .zone-icon {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .plate-scene {
    min-height: 220px;
  }
}
