*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    Roboto, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #060715 0, #02030a 45%, #000 100%);
  color: #f5f5f7;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-nav-contract {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 240px;
  min-width: 0;
}

.contract-address {
  flex: 1;
  min-width: 0;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  color: #b8e8d4;
  background: rgba(0, 24, 12, 0.7);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(72, 255, 160, 0.25);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-address:hover {
  border-color: rgba(72, 255, 160, 0.5);
}

.contract-copy {
  flex-shrink: 0;
  padding: 0.28rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #02120a;
  background: linear-gradient(135deg, #2dff96, #0cd8a0);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contract-copy:hover {
  filter: brightness(1.08);
}

@media (max-width: 900px) {
  .top-nav-contract {
    display: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #8ae6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  padding: 3.5rem min(6vw, 4rem) 3rem;
  align-items: center;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(1, 6, 14, 0.9),
    rgba(1, 7, 16, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(36, 56, 86, 0.9);
}

.top-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem min(6vw, 4rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-nav-logo {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b6ffe0;
}

.top-nav-links {
  display: flex;
  flex: 1;
  gap: 1rem;
  font-size: 0.85rem;
  color: #a4aec4;
}

.top-nav-links a {
  color: inherit;
  position: relative;
  padding-block: 0.25rem;
}

.top-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3dff9b, #34d2ff);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.14s ease-out, opacity 0.14s ease-out;
}

.top-nav-links a:hover {
  color: #e4f5ff;
}

.top-nav-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.top-nav-cta {
  font-size: 0.8rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(78, 241, 171, 0.9);
  background: radial-gradient(circle at top, #29ff90 0, #06d79f 70%);
  color: #02130b;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(33, 230, 150, 0.45);
}

.top-nav-cta:hover {
  text-decoration: none;
}

@media (max-width: 900px) {
  .top-nav-inner {
    padding-inline: 1.2rem;
    gap: 0.8rem;
  }

  .top-nav-links {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 2.5rem 1.5rem 2rem;
  }

  .hero-media {
    order: 2;
  }

  .hero-content {
    order: 1;
  }
}

.hero-media {
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(136, 255, 186, 0.2);
  background: radial-gradient(circle at top, #0b151f 0, #02040c 70%);
  padding: 0.75rem;
}

.hero-media-frame {
  border-radius: 18px;
  overflow: hidden;
}

.hero-media-caption {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #a9b4c9;
}

.hero-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 18, 9, 0.9);
  border: 1px solid rgba(87, 255, 176, 0.8);
  color: #9dffca;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content {
  max-width: 520px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(136, 255, 186, 0.4);
  background: radial-gradient(circle at top left, #30ff94 0, #0b1722 60%);
  color: #04120a;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  color: #c7cad5;
  font-size: 0.98rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out, border-color 0.12s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, #31ff96, #0cf0c8);
  color: #02120c;
  box-shadow: 0 10px 35px rgba(49, 255, 150, 0.38);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(49, 255, 150, 0.5);
}

.btn.secondary {
  background: rgba(8, 24, 40, 0.96);
  border-color: rgba(71, 194, 255, 0.55);
  color: #e7f6ff;
}

.btn.secondary:hover {
  background: rgba(9, 31, 55, 0.98);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Accent strip – JOIN THE COLONY (BEAR-style) */
.accent-strip {
  padding: 2rem min(6vw, 4rem);
  background: linear-gradient(135deg, #0d2a1a 0%, #0a1f14 40%, #062010 100%);
  border-top: 1px solid rgba(72, 255, 160, 0.25);
  border-bottom: 1px solid rgba(72, 255, 160, 0.25);
}

.accent-strip-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.accent-socials {
  flex: 1;
  min-width: 200px;
}

.accent-title {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8fff4;
}

.accent-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #a8d4be;
}

.accent-icons {
  display: flex;
  gap: 0.6rem;
}

.accent-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0a0f0c;
  border: 2px solid rgba(120, 255, 180, 0.6);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 58%;
  transition: transform 0.12s ease-out, border-color 0.12s ease-out,
    box-shadow 0.12s ease-out;
}

.accent-icon:hover {
  transform: scale(1.06);
  border-color: rgba(160, 255, 200, 0.95);
  box-shadow: 0 0 20px rgba(80, 255, 160, 0.35);
  text-decoration: none;
}

.accent-icon.social-x {
  background-image: url("images/X.svg");
}
.accent-icon.social-tg {
  background-image: url("images/Telegram.svg");
}
.accent-icon.social-dex {
  background-image: url("images/Dexscreener.svg");
}

.accent-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #c62828, #b71c1c);
  border: 2px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 8px 28px rgba(198, 40, 40, 0.5);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.accent-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(198, 40, 40, 0.6);
  text-decoration: none;
}

.accent-brand {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #e0ffe8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 700px) {
  .accent-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .accent-socials {
    min-width: auto;
  }

  .accent-icons {
    justify-content: center;
  }

  .accent-brand {
    order: -1;
    width: 100%;
  }
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(140, 183, 214, 0.7);
  background: radial-gradient(circle at top, #05070b 0, #02030a 70%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    border-color 0.12s ease-out, background 0.12s ease-out;
  overflow: hidden;
}

.social-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  border-color: rgba(152, 242, 203, 0.95);
  text-decoration: none;
}

.social-x {
  background-image: url("images/X.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.social-tg {
  background-image: url("images/Telegram.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.social-dex {
  background-image: url("images/Dexscreener.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.section {
  padding: 2.75rem min(6vw, 4rem);
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.7rem;
  margin: 0 0 1rem;
}

.section p {
  margin: 0 0 0.8rem;
  color: #c3c7d5;
  font-size: 0.96rem;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .section-split {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 1.5rem;
  }
}

.section-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(88, 249, 183, 0.25);
  cursor: zoom-in;
}

.section-media-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-ants-tagline {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9dffca;
  text-shadow: 0 0 24px rgba(61, 255, 167, 0.4);
}

.section-dark {
  background: radial-gradient(circle at top, #061522 0, #02040d 60%, #000 100%);
}

.section-dark h2 {
  text-align: center;
}

.section-dark .section-text {
  text-align: center;
}

.section-text.narrow {
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.stream-frame {
  max-width: 960px;
  margin: 0 auto;
}

.stream-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid rgba(72, 255, 160, 0.4);
  background: radial-gradient(circle at top, #0a1820 0%, #051018 70%);
  color: #e8f5ee;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stream-card:hover {
  border-color: rgba(72, 255, 160, 0.75);
  box-shadow: 0 0 40px rgba(72, 255, 160, 0.15);
}

.stream-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dff96, #0cd8a0);
  color: #02120a;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  line-height: 1;
}

.stream-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.stream-card-desc {
  font-size: 0.9rem;
  color: #9fc9b5;
}

@media (max-width: 640px) {
  .stream-iframe {
    height: 360px;
  }
}

.stream-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px dashed rgba(139, 232, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7aa2bc;
  font-size: 0.9rem;
  background: radial-gradient(circle at top, #02111c 0, #000814 60%);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.9);
}

.stream-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #a2ffcf;
}

/* How to buy – Hege-style with ant connectors */
.how-contract {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.how-contract-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a8d4be;
}

.how-contract-address {
  flex: 1;
  min-width: 180px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: #d4ffe8;
  background: rgba(0, 28, 14, 0.6);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(72, 255, 160, 0.35);
  cursor: pointer;
}

.how-contract-address:hover {
  border-color: rgba(72, 255, 160, 0.6);
}

.how-contract-copy {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #02120a;
  background: linear-gradient(135deg, #2dff96, #0cd8a0);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.how-contract-copy:hover {
  filter: brightness(1.08);
}

.steps-vertical {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.step-block {
  width: 100%;
  padding: 1.5rem 1.5rem;
  border-radius: 16px;
  background: radial-gradient(circle at top, #08192b 0, #020712 65%);
  border: 1px solid rgba(122, 234, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #31ff96, #0cf0c8);
  color: #02120c;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.step-block h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step-block p {
  margin: 0;
  font-size: 0.9rem;
  color: #c3c7d5;
}

.step-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin: 0.6rem 0;
  padding: 0.25rem 0;
}

.step-connector span {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.9;
}

.token-links-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.token-links-row a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(3, 37, 24, 0.9);
  border: 1px solid rgba(61, 255, 167, 0.5);
  font-size: 0.85rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .section {
    padding-inline: 1.5rem;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step {
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 18px;
  background: radial-gradient(circle at top, #08192b 0, #020712 65%);
  border: 1px solid rgba(122, 234, 255, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #31ff96, #0cf0c8);
  color: #02120c;
  font-weight: 700;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
}

.token-info {
  margin-top: 2rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #032313 0, #01040a 60%);
  border: 1px solid rgba(80, 242, 170, 0.45);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .token-info {
    grid-template-columns: minmax(0, 1fr);
  }
}

.label {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #8ab9a0;
  margin-bottom: 0.2rem;
}

.value {
  font-weight: 600;
}

.value.mono {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.82rem;
}

.token-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .token-links {
    justify-content: flex-start;
  }
}

.token-links a {
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(3, 37, 24, 0.9);
  border: 1px solid rgba(61, 255, 167, 0.5);
}

.section-gallery {
  padding-bottom: 3.5rem;
}

.gallery-intro {
  max-width: 520px;
}

.gallery-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery-grid img {
  border-radius: 16px;
  border: 1px solid rgba(115, 236, 189, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.footer {
  margin-top: auto;
  padding: 1.8rem min(6vw, 4rem) 2.1rem;
  border-top: 1px solid rgba(63, 80, 105, 0.9);
  background: radial-gradient(circle at top, #020917 0, #000 70%);
}

.disclaimer {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: #8a8fa0;
  max-width: 840px;
}

.footer-meta {
  margin: 0;
  font-size: 0.75rem;
  color: #5f6474;
}

.tokenomics-intro {
  max-width: 520px;
}

.tokenomics-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .tokenomics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tokenomics-card {
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 20px;
  background: radial-gradient(circle at top left, #061623 0, #020714 70%);
  border: 1px solid rgba(122, 234, 255, 0.4);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.9);
}

.tokenomics-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: #a0b8d5;
  margin-bottom: 0.35rem;
}

.tokenomics-value {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.tokenomics-note {
  font-size: 0.82rem;
  color: #9fd4ff;
}

.community-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .community-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.community-item {
  padding: 1.2rem 1.1rem 1.3rem;
  border-radius: 18px;
  background: radial-gradient(circle at top, #050c16 0, #01040a 70%);
  border: 1px solid rgba(92, 148, 255, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
}

.community-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.community-item p {
  font-size: 0.9rem;
}

.link-pill {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(113, 199, 255, 0.8);
  font-size: 0.82rem;
  color: #dceeff;
  background: radial-gradient(circle at top, #05182a 0, #020814 70%);
}

.link-pill:hover {
  text-decoration: none;
  border-color: rgba(148, 235, 255, 0.95);
}

.section-lore {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.lore-intro {
  max-width: 560px;
}

.lore-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .lore-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lore-item {
  padding: 1rem 1rem 1.1rem;
  border-radius: 16px;
  background: radial-gradient(circle at top, #050b15 0, #010308 70%);
  border: 1px solid rgba(119, 188, 255, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);
}

.lore-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e6f1ff;
  margin-bottom: 0.4rem;
}

.lore-text {
  font-size: 0.88rem;
  color: #c1c7da;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
  z-index: 80;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  max-width: min(1000px, 92vw);
  max-height: 88vh;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(10, 13, 18, 0.9);
  color: #f5f5f7;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9);
}

.lightbox-close:hover {
  background: rgba(20, 26, 33, 0.98);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(10, 13, 18, 0.9);
  color: #f5f5f7;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9);
}

.lightbox-prev {
  left: -18px;
}

.lightbox-next {
  right: -18px;
}

.lightbox-arrow:hover {
  background: rgba(20, 26, 33, 0.98);
}

.lightbox-open {
  overflow: hidden;
}

.back-to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(120, 203, 255, 0.9);
  background: radial-gradient(circle at top, #08192a 0, #02040a 70%);
  color: #e9f5ff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: radial-gradient(circle at top, #0d2840 0, #02050c 70%);
}



