/* styles-gog.css */

/* Minimal reset */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Comic Neue", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #eaf3ea;

  /* Base background */
  background:
    radial-gradient(1200px 900px at 20% 10%, rgba(40,90,60,.35), transparent 60%),
    radial-gradient(900px 700px at 80% 70%, rgba(20,60,40,.35), transparent 60%),
    #07120c;
}

/* --- Soft vignette overlay to avoid hard background edges while scrolling --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(900px 700px at 10% 40%, rgba(40,90,60,.28), transparent 70%),
    linear-gradient(
      to right,
      rgba(7,18,12,.80),
      transparent 18%,
      transparent 82%,
      rgba(7,18,12,.80)
    );
}

/* Ensure content stays above vignette */
.topbar, .wrap, .lightbox { position: relative; z-index: 1; }

.no-scroll { overflow: hidden; }

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,18,12,.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(180,255,200,.12);
}

.topnav {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(180,255,200,.18);
  background: rgba(16,40,26,.55);
  color: #eaf3ea;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: rgba(20,55,35,.65); border-color: rgba(180,255,200,.28); }
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent;
  border-color: rgba(180,255,200,.14);
}

.hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  align-items: stretch;
}

.hero-media {
  border-radius: 20px;
  border: 1px solid rgba(180,255,200,.14);
  background: rgba(10,24,16,.55);
  padding: 10px;
  display: grid;
  place-items: center;

  /* force square hero */
  aspect-ratio: 1 / 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill square */
  border-radius: 14px;
}

.hero-text {
  border-radius: 20px;
  border: 1px solid rgba(180,255,200,.14);
  background: rgba(10,24,16,.55);
  padding: 18px;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 4.2vw, 44px);
  letter-spacing: .2px;
}

.subtitle {
  margin: 0 0 14px;
  opacity: .86;
  font-size: 16px;
}

.lede p {
  margin: 10px 0;
  line-height: 1.55;
  opacity: .95;
}

.badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  border: 1px solid rgba(180,255,200,.18);
  background: rgba(16,40,26,.45);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.badge.closed {
  border-color: rgba(255,210,120,.25);
  background: rgba(70,40,10,.35);
}

.rule-card {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid rgba(180,255,200,.14);
  background: rgba(10,24,16,.55);
  padding: 14px 16px;
}

.rule-title {
  font-weight: 900;
  margin-bottom: 6px;
}
.rule-body { opacity: .92; line-height: 1.45; }

.gallery-block {
  margin-top: 18px;
  border-radius: 20px;
  border: 1px solid rgba(180,255,200,.14);
  background: rgba(10,24,16,.35);
  padding: 16px;
}

.gallery-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.gallery-head p {
  margin: 0 0 14px;
  opacity: .9;
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(180,255,200,.12);
  background: rgba(7,18,12,.35);
  border-radius: 16px;
  padding: 10px;
  cursor: pointer;
  color: inherit;
  text-align: left;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.tile:hover {
  transform: translateY(-1px);
  border-color: rgba(180,255,200,.24);
  background: rgba(7,18,12,.5);
}

.thumb {
  border-radius: 12px;
  border: 1px solid rgba(180,255,200,.10);
  background: rgba(10,24,16,.45);
  overflow: hidden;

  /* Portrait-friendly tiles */
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* do NOT crop the art */
  display: block;
}

.label {
  font-weight: 900;
  font-size: 13px;
  opacity: .92;
  padding: 0 2px;
}

/* Transition + footer */
.transition {
  margin-top: 18px;
  border-radius: 20px;
  border: 1px solid rgba(180,255,200,.14);
  background: rgba(10,24,16,.55);
  padding: 16px 18px;
}
.transition h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.transition p {
  margin: 10px 0;
  line-height: 1.55;
  opacity: .93;
}
.transition .quiet { opacity: .8; }

.footer {
  margin-top: 18px;
  opacity: .85;
  text-align: center;
  padding: 18px 0 8px;
}
.footer-sub { opacity: .8; margin-top: 6px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}
.lightbox.open { display: block; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}

.lightbox-panel {
  position: absolute;
  inset: 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  margin: auto;
  width: min(980px, calc(100% - 40px));
  max-height: calc(100% - 40px);
  border-radius: 18px;
  border: 1px solid rgba(180,255,200,.14);
  background: rgba(7,18,12,.9);
  backdrop-filter: blur(10px);
  padding: 12px;
}

.lb-close {
  justify-self: end;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(180,255,200,.18);
  background: rgba(16,40,26,.55);
  color: #eaf3ea;
  font-size: 22px;
  cursor: pointer;
}

.lb-stage {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(180,255,200,.10);
  background: rgba(10,24,16,.35);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
}

#lbImg {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  border-radius: 10px;
}

/* Small arrows near image edges (Style B) */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(180,255,200,.18);
  background: rgba(16,40,26,.55);
  color: #eaf3ea;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: .9;
}
.lb-arrow:hover { opacity: 1; }
.lb-left { left: 10px; }
.lb-right { right: 10px; }

.lb-caption {
  text-align: center;
  font-weight: 900;
  padding: 4px 0 2px;
  opacity: .95;
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-media { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox-panel {
    inset: 12px;
    width: calc(100% - 24px);
    max-height: calc(100% - 24px);
  }
  #lbImg { max-height: calc(100vh - 240px); }
}
/* Subtle page turn navigation */
.page-nav {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  opacity: .75;
}

.page-nav a {
  color: #eaf3ea;
  text-decoration: none;
  margin: 0 6px;
}

.page-nav a:hover {
  text-decoration: underline;
  opacity: 1;
}