*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 193, 7, 0.18), transparent 35%),
    linear-gradient(160deg, #1a1208 0%, #2d1f0f 45%, #120c06 100%);
  color: #f5e6c8;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 0;
  color: #c9b48a;
  font-size: 1.05rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.beer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 193, 7, 0.25);
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.beer-select-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #d8c39a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.beer-select {
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: #24180d;
  color: #f5e6c8;
  font-size: 1rem;
}

.beer-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.beer-image {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.beer-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.beer-table th,
.beer-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 193, 7, 0.15);
}

.beer-table th {
  width: 45%;
  text-align: left;
  color: #d8c39a;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.18);
}

.beer-table td {
  text-align: right;
  font-weight: 700;
  color: #fff3d0;
}

.beer-table tr:last-child th,
.beer-table tr:last-child td {
  border-bottom: none;
}

.vs-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  align-self: center;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #2d1f0f;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(255, 152, 0, 0.35);
}

.actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.compare-btn {
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d1f0f;
  background: linear-gradient(135deg, #ffc107, #ffb300);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 28px rgba(255, 193, 7, 0.35);
}

.compare-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 193, 7, 0.45);
}

.compare-btn:active {
  transform: translateY(0);
}

.result {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: rgba(198, 40, 40, 0.25);
  border: 1px solid rgba(244, 67, 54, 0.45);
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .vs-badge {
    margin: 0 auto;
  }
}
