/* grill.css — kettle grill, coal bed, embers, cooking grate */

.grill {
  position: relative;
  display: grid; place-items: center;
  isolation: isolate;
}

.grill-haze {
  position: absolute; inset: -14% -8% -20%;
  background: radial-gradient(50% 46% at 50% 56%, rgba(245,149,99,0.32), rgba(228,106,85,0.05) 55%, rgba(0,0,0,0) 75%);
  filter: blur(10px);
  z-index: -1;
}
.grill-haze[data-motion="rich"] { animation: hazeBreath 4.5s ease-in-out infinite; }
@keyframes hazeBreath {
  0%,100% { opacity: .75; transform: scale(1); }
  50%     { opacity: 1;  transform: scale(1.05); }
}

/* outer kettle bowl rim — brushed charcoal steel */
.kettle-rim {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 210deg, #3a424d, #20252c 18%, #434c58 38%, #1b1f25 55%, #3a424d 72%, #20252c 88%, #3a424d);
  box-shadow:
    0 22px 50px -16px rgba(0,0,0,0.8),
    inset 0 2px 3px rgba(255,255,255,0.16),
    inset 0 -8px 18px rgba(0,0,0,0.7);
}

/* the charcoal bed well */
.kettle-bed {
  position: absolute; inset: 6.5%; border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 38%, #20252c 0%, #14171c 60%, #0a0c0e 100%);
  box-shadow:
    inset 0 6px 16px rgba(0,0,0,0.85),
    inset 0 -3px 8px rgba(0,0,0,0.6);
}
.bed-ash {
  position: absolute; inset: 0;
  background:
    radial-gradient(28% 22% at 36% 30%, rgba(196,190,188,0.08), rgba(0,0,0,0) 70%),
    radial-gradient(34% 26% at 68% 70%, rgba(196,190,188,0.06), rgba(0,0,0,0) 70%);
  mix-blend-mode: screen;
}
.bed-shimmer {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 32% at 50% 60%, rgba(245,149,99,0.12), rgba(0,0,0,0) 72%);
  mix-blend-mode: screen;
  animation: shimmer 3.6s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { opacity:.5; } 50% { opacity:1; } }

/* a coal */
.coal {
  position: absolute; left: 50%; top: 50%;
  transition:
    transform 0.95s cubic-bezier(.36,.66,.2,1),
    box-shadow 0.7s ease;
  will-change: transform;
}
.ember {
  position: absolute; inset: -30%;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity .7s ease;
}
.ember-pulse { animation: emberPulse 3s ease-in-out infinite; }
@keyframes emberPulse {
  0%,100% { opacity: var(--o, .8); transform: scale(0.96); }
  45%     { opacity: 1; transform: scale(1.12); }
  70%     { opacity: .7; transform: scale(1.0); }
}

/* cooking grate placed on top */
.grate {
  position: absolute; inset: 4%; border-radius: 50%;
  overflow: hidden; pointer-events: none;
  opacity: 0; transform: translateY(-16px) scale(1.04);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.grate.on { opacity: 1; transform: translateY(0) scale(1); }
.grate-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid #4d5662;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 2px 6px rgba(0,0,0,0.5);
}
.grate-bar {
  position: absolute; left: 4%; right: 4%; height: 4px; border-radius: 3px;
  background: linear-gradient(180deg, #6b7480, #353c45);
  box-shadow: 0 2px 4px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* zone legend chips */
.zones {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center;
}
.zone-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ash-soft);
}
.zone-chip .swatch { width: 9px; height: 9px; border-radius: 50%; }
.zone-chip.direct .swatch { background: var(--ember-hot); box-shadow: 0 0 8px 1px rgba(245,149,99,0.8); }
.zone-chip.medium .swatch { background: #d8825c; box-shadow: 0 0 6px 1px rgba(216,130,92,0.55); }
.zone-chip.indirect .swatch { background: #4d5662; }

/* ---- layout picker variants ---- */

/* tap: segmented cards */
.layout-tabs { display: flex; gap: 8px; }
.layout-tab {
  flex: 1; appearance: none; text-align: left;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
  border-radius: 14px; padding: 12px 13px; color: var(--ash-soft);
  transition: border-color .2s, background .2s, transform .15s, color .2s;
}
.layout-tab:hover { background: rgba(255,255,255,0.07); }
.layout-tab:active { transform: scale(0.97); }
.layout-tab.active {
  border-color: var(--fire);
  background: linear-gradient(180deg, rgba(228,106,85,0.18), rgba(228,106,85,0.06));
  color: #fff;
  box-shadow: 0 8px 22px -12px rgba(228,106,85,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
}
.layout-tab .lt-name { font-family: var(--font-head); font-weight: 800; font-size: 14px; line-height: 1.1; }
.layout-tab .lt-tag { font-size: 11px; margin-top: 3px; opacity: 0.72; line-height: 1.25; }

/* swipe: dots + arrows */
.swipe-wrap { user-select: none; }
.swipe-meta { display: flex; align-items: center; justify-content: center; gap: 14px; }
.swipe-arrow {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05); color: #fff;
  display: grid; place-items: center; transition: background .2s, transform .15s, opacity .2s;
}
.swipe-arrow:hover { background: rgba(255,255,255,0.12); }
.swipe-arrow:active { transform: scale(0.9); }
.swipe-name { font-family: var(--font-head); font-weight: 800; font-size: 20px; min-width: 150px; text-align: center; }
.swipe-dots { display: flex; gap: 7px; justify-content: center; }
.swipe-dots .d { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.22); transition: all .3s; }
.swipe-dots .d.on { width: 22px; border-radius: 999px; background: var(--fire); }
.swipe-hint { font-size: 12px; text-align: center; color: rgba(196,190,188,0.5); margin-top: 8px; font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; }

/* picker: wheel-style list */
.picker {
  border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  background: rgba(0,0,0,0.28); overflow: hidden;
}
.picker-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  appearance: none; background: transparent; border: none;
  padding: 14px 16px; color: var(--ash-soft); text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .2s, color .2s;
}
.picker-row:last-child { border-bottom: none; }
.picker-row:hover { background: rgba(255,255,255,0.05); }
.picker-row.active { background: rgba(228,106,85,0.12); color: #fff; }
.picker-row .pk-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}
.picker-row.active .pk-dot { border-color: var(--fire); background: var(--fire); box-shadow: 0 0 10px 1px rgba(228,106,85,0.7); }
.picker-row .pk-name { font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.picker-row .pk-tag { font-size: 12px; opacity: 0.7; margin-left: auto; }

/* place-grate button */
.grate-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  appearance: none; border: 1px dashed rgba(196,190,188,0.4);
  background: rgba(255,255,255,0.03); color: var(--ash-soft);
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  transition: all .2s;
}
.grate-toggle:hover { border-color: var(--fire); color: #fff; }
.grate-toggle.on { border-style: solid; border-color: var(--fire); color: #fff; background: rgba(228,106,85,0.12); }
