/* Public-facing pages: header, tabs, hero, lists, footer
   Background: assets/bg.png, placed fixed and covering the whole page */

body.public {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-image: url("../assets/bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Header and tab navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 32, 24, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-cream);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.event-meta {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.brand span {
  color: var(--accent-red);
}

.tabs {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.tabs a {
  display: block;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.tabs a:hover {
  color: var(--text-main);
}

.tabs a.active {
  background: var(--accent-red);
  color: #fff;
}

main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Hero (home) */
.hero {
  text-align: center;
  padding: 22px 0 16px;
}

.hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--accent-cream);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.hero p {
  color: var(--text-main);
  max-width: 760px;
  margin: 0 auto 12px;
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Lists and grids for dynamic content */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.item-card h3 {
  color: var(--accent-cream);
}

.item-card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(245, 192, 74, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 192, 74, 0.35);
}

.badge.live {
  background: var(--accent-red);
  color: #fff;
  border-color: transparent;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

/* Prize list */
.prize {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-soft);
}

.prize:last-child {
  border-bottom: none;
}

.prize strong {
  color: var(--accent-gold);
}

/* Toasts */
.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.toast {
  background: var(--bg-panel-solid);
  color: var(--text-main);
  border-left: 4px solid var(--accent-red);
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 220px;
  animation: toast-in 0.25s ease;
}

.toast.success {
  border-left-color: var(--accent-gold);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modals and confirm dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 16px;
}

.modal {
  background: var(--bg-panel-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  width: min(420px, 100%);
  box-shadow: var(--shadow);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Footer */
#site-footer {
  margin-top: auto;
}

.site-footer {
  margin-top: 0;
  padding: 6px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-soft);
  background: rgba(8, 32, 24, 0.85);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 16px 0 12px;
  }
  .tabs a {
    padding: 6px 12px;
  }
}
.prize {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}