.food-spin-page{
  max-width: 950px;
}

.food-panel{
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}

.login-panel{
  max-width: 580px;
  margin: 70px auto;
}

.food-heading{
  margin-bottom: 24px;
  text-align: center;
}

.food-heading h1{
  margin-top: 8px;
}

.food-icon{
  font-size: 38px;
}

.food-spin-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
}

.food-spin-header h1{
  margin-bottom: 8px;
}

.food-layout{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 20px;
}

.spinner-panel{
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.result-label{
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.spin-result{
  min-height: 100px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.spin-result.spinning{
  animation: foodPulse .18s ease infinite alternate;
}

.spin-button{
  min-width: 140px;
  padding: 14px 24px;
  font-size: 17px;
}

.input-row{
  display: flex;
  gap: 10px;
}

.input-row input{
  flex: 1;
}

label{
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.form-message{
  min-height: 24px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message.error{
  color: #fda4af;
}

.form-message.success{
  color: #86efac;
}

.food-list-header{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-top: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.food-list{
  max-height: 430px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.food-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}

.food-name{
  overflow-wrap: anywhere;
}

.delete-food{
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid rgba(251,113,133,.35);
  border-radius: 10px;
  background: rgba(251,113,133,.08);
  color: #fda4af;
  cursor: pointer;
}

.delete-food:hover{
  background: rgba(251,113,133,.15);
}

.empty-food-list{
  padding: 28px 4px;
  color: var(--muted);
  text-align: center;
}

@keyframes foodPulse{
  from{
    transform: scale(.98);
    opacity: .65;
  }

  to{
    transform: scale(1.03);
    opacity: 1;
  }
}

@media (max-width: 750px){
  .food-layout{
    grid-template-columns: 1fr;
  }

  .food-spin-header{
    align-items: flex-start;
  }

  .spinner-panel{
    min-height: 280px;
  }
}

@media (max-width: 500px){
  .input-row{
    flex-direction: column;
  }

  .input-row .btn{
    width: 100%;
  }
}