:root {
  --yellow: #ffcc00;
  --yellow-deep: #ffb300;
  --yellow-soft: #fff3c4;
  --ink: #4a3500;
  --ink-soft: #7a5b00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 50% 20%, var(--yellow) 0%, var(--yellow-deep) 100%);
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 1.5rem env(safe-area-inset-bottom);
  overflow: hidden;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: pop 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.title {
  font-size: clamp(2.5rem, 12vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.45), 0 8px 24px rgba(122, 91, 0, 0.25);
}

.title::after {
  content: "🍺";
  display: block;
  font-size: 0.6em;
  margin-top: 0.25rem;
  animation: wobble 2.5s ease-in-out infinite;
}

.cta {
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--ink-soft);
  transition: transform 120ms ease, box-shadow 120ms ease, background 200ms ease;
}

.cta:hover {
  background: var(--yellow-soft);
}

.cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink-soft);
}

.cta:disabled {
  opacity: 0.6;
  cursor: default;
}

.status {
  min-height: 1.4em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .title::after {
    animation: none;
  }
}

/* --- Admin panel --- */
.admin {
  margin-top: 1rem;
  width: min(92vw, 360px);
  background: rgba(255, 255, 255, 0.6);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 6px 0 var(--ink-soft);
}

.admin-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  color: var(--ink);
}

#login-form {
  margin-bottom: 1.5rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.field {
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  width: 100%;
}

.field:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--yellow-deep);
}

.cta-small {
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  box-shadow: 0 4px 0 var(--ink-soft);
}

.cta-small:active {
  box-shadow: 0 1px 0 var(--ink-soft);
}

.link-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.25rem;
}

.footer {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 0.75rem);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.footer .link-btn {
  opacity: 0.7;
}

