html,
body {
  -webkit-font-smoothing: antialiased;
  background: #000;
  color: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  margin: 0;
  min-height: 100%;
  padding: 0;
  width: 100%;
}

* { box-sizing: border-box; }

img,
video {
  border: 0;
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: #000;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  height: 58px;
  justify-content: space-between;
  left: 0;
  padding: 0 22px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 16px;
  height: 100%;
  min-width: 0;
}

.brand img {
  height: 35px;
  width: auto;
}

.brand span {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 20px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.join-link {
  background: #cc0033;
  border-radius: 2px;
  color: #fff;
  padding: 12px 18px;
}

.gallery-shell {
  padding-top: 64px;
}

.gallery-grid {
  column-count: 4;
  column-gap: 6px;
  display: block;
  margin: 0 auto;
  max-width: 1980px;
  padding: 6px;
}

.tile {
  aspect-ratio: 16 / 9;
  background: #090909;
  break-inside: avoid;
  cursor: pointer;
  display: block;
  margin: 0 0 6px;
  overflow: hidden;
  position: relative;
}

.banner-tile {
  aspect-ratio: 400 / 625;
}

.square-tile,
.logo-tile {
  aspect-ratio: 1;
}

.logo-tile {
  align-items: center;
  background: #060606;
  display: flex;
  justify-content: center;
  padding: 32px;
}

.logo-tile.red {
  background: #1b0208;
}

.tile::after {
  border-bottom: 22px solid transparent;
  border-left: 34px solid rgba(255, 255, 255, 0.92);
  border-top: 22px solid transparent;
  content: "";
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-38%, -50%);
  transition: opacity 160ms ease;
  z-index: 2;
}

.tile:hover::after,
.tile:focus-visible::after {
  opacity: 0.88;
}

.tile img,
.tile video {
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
  width: 100%;
}

.logo-tile img {
  height: auto;
  object-fit: contain;
  width: 92%;
}

.tile:hover img,
.tile:hover video,
.tile:focus-visible img,
.tile:focus-visible video {
  filter: brightness(0.78);
  transform: scale(1.025);
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  padding: 22px 10px 12px;
}

.pagination a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  padding: 10px 8px;
}

.pagination a:hover {
  color: #cc0033;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 20px;
  justify-content: center;
  padding: 4px 20px 22px;
}

.legal-footer {
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  padding: 20px;
  text-align: center;
}

.legal-footer p {
  margin: 0 0 4px;
}

.legal-footer a {
  font-weight: 700;
}

.badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 15px;
}

.badges img {
  height: 25px;
  object-fit: contain;
  width: auto;
}

.badges a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 25px;
  justify-content: center;
  min-width: 52px;
  padding: 0 7px;
}

.age-toggle {
  opacity: 0;
  pointer-events: none;
  position: fixed;
}

.age-toggle:checked + .age-overlay {
  display: none;
}

.age-overlay {
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  flex-direction: column;
  inset: 0;
  overflow: auto;
  position: fixed;
  z-index: 2147483646;
}

.age-card {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  margin: 0 auto;
  max-width: 560px;
  padding: 0 30px;
  width: 100%;
}

.gate-logo {
  padding: 20px 0;
}

.gate-logo img {
  margin: 0 auto;
  max-width: 240px;
}

.gate-panel {
  background: rgba(0, 0, 0, 0.74);
  border: 1px solid #333;
  padding: 30px;
}

.gate-panel h2,
.terms-title h2 {
  color: #d6d6d6;
  font-size: 18px;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.gate-panel h2 {
  margin-bottom: 30px;
  padding: 0 30px;
}

.gate-panel p {
  color: #c9c9c9;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 18px 0 22px;
}

.gate-button {
  border: 0;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  justify-content: center;
  min-width: 142px;
  padding: 13px 18px;
  text-transform: uppercase;
}

.exit-button {
  background: #2a2a2a;
}

.enter-button {
  background: #cc0033;
}

.terms-title {
  padding: 2px 0 12px;
}

.terms-scroll {
  color: #c9c9c9;
  font-size: 13px;
  line-height: 1.42;
  margin-bottom: 20px;
  max-height: 215px;
  overflow: auto;
  padding-right: 10px;
}

.terms-scroll p {
  margin: 0 0 8px;
}

.terms-scroll ul {
  margin: 0;
  padding-left: 20px;
}

.overlay-footer {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    height: auto;
    padding: 0;
    position: relative;
  }

  .brand {
    height: 52px;
    justify-content: center;
    padding: 8px 10px 4px;
    width: 100%;
  }

  .brand img {
    height: 32px;
    max-width: 86%;
  }

  .brand span {
    display: none;
  }

  .header-actions {
    align-items: stretch;
    border-top: 1px solid #2a2a2a;
    display: grid;
    flex: 1;
    font-size: 18px;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    line-height: 1;
  }

  .header-actions a {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }

  .join-link {
    border-radius: 0;
    padding: 0 10px;
  }

  .gallery-shell {
    padding-top: 8px;
  }

  .gallery-grid {
    column-count: 1;
    padding: 5px;
  }

  .tile {
    margin-bottom: 6px;
  }

  .age-card {
    padding: 0 16px;
  }

  .gate-panel {
    padding: 22px 18px;
  }

  .gate-panel h2 {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0;
  }

  .gate-actions {
    flex-direction: column;
  }

  .gate-button {
    width: 100%;
  }
}
