:root {
  --primary: #1f2937;
  --accent: #facc15;
  --bg: #f1f5f9;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.7;
}

#hero {
  background: linear-gradient(to right, #facc15, #fbbf24);
  text-align: center;
  padding: 4rem 2rem;
}

#hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.btn {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
}

.rules-list {
  margin-bottom: 1rem;
  list-style: square inside;
}

h2, h3 {
  margin-bottom: 1rem;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

tr:hover {
  background-color: #f9fafb;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background-color: #e2e8f0;
}

.year-break td {
  border-top: 2px solid #1f2937;
  padding-top: 0.5rem;
}

.beer-can {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 220px;
  background: linear-gradient(180deg, #bfbfbf 0%, #7f7f7f 100%);
  border-radius: 25px / 100px;
  box-shadow:
    inset 0 5px 10px rgba(255,255,255,0.7),
    0 0 12px rgba(191, 191, 191, 0.8);
  overflow: hidden;
  z-index: 9999;
  border: 2px solid #999;
}

#beer-can-left {
  left: 1rem;
}

#beer-can-right {
  right: 1rem;
}

.can-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(90deg, #a8a8a8 0%, #d6d6d6 50%, #a8a8a8 100%);
  border-radius: 25px 25px 0 0 / 40px 40px 0 0;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.9);
  z-index: 10;
}

.beer-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #f9d84a 0%, #d4af37 100%);
  border-radius: 0 0 25px 25px / 0 0 100px 100px;
  box-shadow: inset 0 5px 15px rgba(255, 255, 255, 0.7);
  overflow: visible;
  transition: height 0.25s ease-out;
}

.bubble {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  opacity: 0.7;
  animation: bubble-up 4s linear infinite;
  animation-delay: calc(var(--i) * -0.7s);
  transform: translateX(calc(var(--i) * 5px));
}

.bubble:nth-child(even) {
  animation-duration: 3.5s;
  opacity: 0.5;
}

@keyframes bubble-up {
  0% {
    transform: translateX(calc(var(--i) * 5px)) translateY(0);
    opacity: 0.7;
  }
  100% {
    transform: translateX(calc(var(--i) * 5px)) translateY(-180px);
    opacity: 0;
  }
}

.beer-can {
  display: block;
}

@media (max-width: 768px) {
  .beer-can {
    display: none;
  }
}

#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
  z-index: 200;
}

#menu-toggle:focus {
  outline: 2px solid var(--accent);
}

#menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive nav */
@media (max-width: 768px) {
  nav {
    position: relative;
  }
  
  #menu-toggle {
    display: flex;
  }

  #nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--primary);
    width: 200px;
    flex-direction: column;
    padding: 1rem 0;
    border-radius: 8px;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  #nav-links.show {
    display: flex;
  }

  #nav-links li {
    margin: 0.5rem 1rem;
  }

  #nav-links a {
    color: var(--white);
    font-weight: normal;
  }

  nav h1 {
    font-size: 1.25rem;
  }

  nav ul {
    gap: 0;
  }
}

@media (max-width: 768px) {
  #stats table,
  #stats th,
  #stats td {
    font-size: 0.8rem;
  }

  #stats th,
  #stats td {
    padding: 0.4rem 0.6rem;
  }
}

#gallery {
    margin-top: 4rem;
    padding: 2rem;
    margin-bottom: 6rem;
    background-color: #fefefe;
    text-align: center;
}

#gallery h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}