:root {
  --bg: #050505;
  --cream: #f5efe5;
  --cream2: #fffaf2;
  --ink: #111;
  --muted: #6f6a63;
  --gold: #e7d8bd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  max-width: 980px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #101010 0%, #050505 56%, #000 100%);
}

.tap-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px 0;
}

.tap-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(231, 216, 189, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 250, 242, 0.04);
  color: #fff7e8;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.tap-nav a.active,
.tap-nav a:hover {
  border-color: rgba(231, 216, 189, 0.62);
  background: rgba(231, 216, 189, 0.12);
}

.hero {
  padding: 26px 18px 8px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(56vw, 420px);
  height: auto;
  margin: 0 auto 6px;
}

.rule,
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 22px;
  letter-spacing: 0;
}

.rule span,
.section-title span {
  display: block;
  width: min(20vw, 140px);
  height: 1px;
  background: var(--gold);
}

.rule strong {
  font-size: 52px;
}

.hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
}

.tower-wrap {
  display: grid;
  place-items: center;
  padding: 8px 18px 34px;
  overflow: visible;
}

.tower-map {
  position: relative;
  width: min(82vw, 620px);
  aspect-ratio: 2 / 3;
}

.tower-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tap-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tap-lines line {
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.72;
}

.callout {
  position: absolute;
  z-index: 2;
  left: calc(var(--label-x) * 1%);
  top: calc(var(--label-y) * 1%);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 10px 22px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff7e8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.beer-section {
  padding: 20px min(4vw, 64px) 28px;
  background: var(--cream);
  color: var(--ink);
}

.section-title {
  margin: 4px 0 20px;
  color: var(--ink);
}

.section-title strong {
  font-size: 34px;
}

.section-title span {
  background: #b9aa92;
}

.beer-card {
  display: grid;
  grid-template-columns: 108px 136px 1fr 44px;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: var(--cream2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: inherit;
  scroll-margin: 24px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.beer-card:hover,
.beer-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}


.tap-number {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #050505;
  color: white;
}

.tap-number small {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.tap-number strong {
  display: block;
  font-size: 58px;
  line-height: 0.85;
}

.label,
.placeholder {
  width: 136px;
  height: 92px;
  border-radius: 8px;
}

.label {
  object-fit: cover;
}

.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  background: #e9e1d6;
  color: #aaa096;
}

.lock-shackle {
  position: absolute;
  top: 20px;
  width: 34px;
  height: 30px;
  border: 5px solid #aaa096;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.lock-body {
  position: absolute;
  top: 44px;
  width: 52px;
  height: 34px;
  border-radius: 7px;
  background: #aaa096;
}

.beer-info {
  min-width: 0;
}

.beer-info h2 {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1.02;
}

.beer-info p {
  margin: 2px 0;
  font-size: 20px;
}

.meta {
  font-weight: 650;
}

.arrow {
  padding-right: 12px;
  color: var(--ink);
  font-size: 48px;
  line-height: 1;
  text-align: left;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.beer-card:hover,
.beer-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}


.lock-text {
  margin-right: 10px;
  color: #777;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.unavailable {
  color: #777;
}

footer {
  padding: 24px;
  color: var(--gold);
  font-size: 20px;
  text-align: center;
}

@media (max-width: 700px) {
  .page {
    max-width: none;
  }

  .hero {
    padding-top: 24px;
  }

  .brand-logo {
    width: min(74vw, 330px);
  }

  .rule {
    gap: 18px;
    margin-top: 20px;
  }

  .rule strong {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .tower-wrap {
    padding: 16px 10px 28px;
  }

  .tower-map {
    width: min(96vw, 460px);
  }

  .callout {
    padding: 7px 12px;
    font-size: 13px;
  }


  .beer-section {
    padding-inline: 12px;
  }

  .section-title strong {
    font-size: 25px;
  }

  .beer-card {
    grid-template-columns: 74px 88px 1fr 38px;
    gap: 10px;
    min-height: 96px;
  }

  .tap-number small {
    font-size: 13px;
  }

  .tap-number strong {
    font-size: 44px;
  }

  .label,
  .placeholder {
    width: 88px;
    height: 68px;
  }

  .lock-shackle {
    top: 13px;
    width: 26px;
    height: 24px;
    border-width: 4px;
  }

  .lock-body {
    top: 34px;
    width: 40px;
    height: 27px;
  }

  .beer-info h2 {
    font-size: 21px;
  }

  .beer-info p {
    font-size: 14px;
  }

  .arrow {
    padding-right: 8px;
    font-size: 36px;
  }

  .lock-text {
    margin-right: 6px;
    font-size: 11px;
  }
}


body.modal-open {
  overflow: hidden;
}

.tap-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
}

.tap-modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.86);
  cursor: zoom-out;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 1060px);
  max-height: 94vh;
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 54px 18px 18px;
  border: 1px solid rgba(231, 216, 189, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, #131313 0%, #050505 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.modal-content {
  min-width: 0;
  text-align: center;
}

.modal-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

#modalImage {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(68vh, 660px);
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

#modalImage[hidden] {
  display: none;
}

#modalTitle {
  margin: 16px 0 4px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

#modalMeta {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2vw, 22px);
}

.modal-close,
.modal-nav,
.modal-dots button {
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, 0.72);
  color: #fff7e8;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
}

.modal-nav {
  width: 56px;
  height: 74px;
  border-radius: 999px;
  font-size: 54px;
  line-height: 0.8;
}

.modal-prev { grid-column: 1; grid-row: 1; }
.modal-content { grid-column: 2; grid-row: 1; }
.modal-next { grid-column: 3; grid-row: 1; }

.modal-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}

.modal-dots button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-weight: 900;
}

.modal-dots button.active {
  background: var(--gold);
  color: #050505;
}

@media (max-width: 700px) {
  .modal-panel {
    grid-template-columns: 44px 1fr 44px;
    padding: 50px 10px 14px;
  }

  .modal-nav {
    width: 42px;
    height: 58px;
    font-size: 42px;
  }

  #modalImage {
    max-height: 60vh;
  }
}
