:root {
  --purple-dark: #1a0b2e;
  --purple-deep: #3b0f70;
  --purple-mid: #6d28d9;
  --purple-bright: #a855f7;
  --white: #f5f0ff;
  --banner-height: 3.5rem;
}

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

html, body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--banner-height) + 6rem);
}

html {
  background: var(--purple-dark);
}

body {
  font-family: 'Oswald', sans-serif;
  background: radial-gradient(circle at 50% 20%, var(--purple-deep), var(--purple-dark) 70%);
  background-attachment: fixed;
  color: var(--white);
  overflow-x: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 4, 20, 0.9);
  backdrop-filter: blur(8px);
}

.age-gate:not([hidden]) {
  display: flex;
}

.download-toast {
  position: fixed;
  top: calc(var(--banner-height) + 5.5rem);
  left: 50%;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(90vw, 480px);
  padding: 1rem 1.25rem;
  background: var(--purple-deep);
  border: 1px solid var(--purple-bright);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.download-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.download-toast-text {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
}

.download-toast-button {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--purple-deep);
  background: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.download-toast-button:hover {
  background: rgba(245, 240, 255, 0.85);
}

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  width: 100%;
}

.gallery-viewport {
  width: min(90vw, 640px);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--purple-mid);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  color: var(--white);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--purple-bright);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
  background: rgba(168, 85, 247, 0.35);
  transform: scale(1.08);
}

.gallery-dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.3);
  border: 1px solid var(--purple-bright);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.gallery-dot.active {
  background: var(--purple-bright);
}

@media (max-width: 640px) {
  .gallery {
    gap: 0.75rem;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
}

.age-gate-card {
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  background: var(--purple-deep);
  border: 1px solid var(--purple-bright);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.age-gate-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 2rem;
}

.age-gate-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.age-gate-buttons .action-button {
  flex: 1;
  border-radius: 999px;
  cursor: pointer;
}

.age-gate-buttons .action-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(90deg, var(--purple-mid), var(--purple-bright));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 110;
}

.announcement-text {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white);
}

.announcement-button {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--purple-deep);
  text-decoration: none;
  padding: 0.4rem 1.1rem;
  background: var(--white);
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.announcement-button:hover {
  background: rgba(245, 240, 255, 0.85);
  transform: translateY(-1px);
}

.topbar {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}

.menu {
  position: relative;
}

.menu-toggle {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  padding: 0.7rem 1.5rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--purple-bright);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(168, 85, 247, 0.3);
}

.menu-dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: var(--purple-deep);
  border: 1px solid var(--purple-mid);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-dropdown li a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
}

.menu-dropdown li a:hover {
  background: var(--purple-mid);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(2rem + var(--banner-height)) 2rem 2rem;
}

.hero-title {
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
  line-height: 1;
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-bright);
}

.hero-hint {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  opacity: 0.8;
}

.error-title {
  font-size: clamp(6rem, 22vw, 14rem);
  color: var(--purple-bright);
  text-shadow: 0 0 60px rgba(168, 85, 247, 0.8);
}

.error-home-button {
  margin-top: 2.5rem;
}

.page-button {
  margin-top: 2rem;
}

.page .page-hint {
  max-width: 540px;
}

.inline-link {
  color: var(--purple-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--white);
}

.site-footer {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--purple-mid);
}

.site-footer p {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white);
  opacity: 0.6;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(2rem + var(--banner-height)) 2rem 2rem;
}

.page-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  line-height: 1;
}

.page-hint {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  opacity: 0.7;
}

.info-page {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(8rem + var(--banner-height)) 2rem 5rem;
}

.info-page .page-title {
  text-align: center;
  font-size: clamp(2.5rem, 8vw, 4rem);
}

.section-divider {
  border: none;
  height: 2px;
  margin: 3rem 0 2rem;
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent);
}

.category-divider {
  border: none;
  height: 3px;
  margin: 4rem 0 0;
  background: linear-gradient(90deg, transparent, var(--purple-mid), var(--purple-bright), var(--purple-mid), transparent);
}

.category-title {
  margin-top: 2rem;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--white);
  text-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

.subsection-title {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--purple-bright);
  margin-bottom: 1rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.quick-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--purple-mid);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.quick-link:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: var(--purple-bright);
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-list li {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
  opacity: 0.9;
}

.step-list li strong {
  color: var(--purple-bright);
  font-weight: 700;
}

.screenshot-frame {
  margin: 1.5rem 0;
  border: 1px solid var(--purple-mid);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.screenshot-image {
  display: block;
  width: 100%;
  height: auto;
}

.inline-code {
  font-family: 'Courier New', monospace;
  font-size: 0.92em;
  color: var(--purple-bright);
  background: rgba(168, 85, 247, 0.15);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  word-break: break-all;
}

.inline-code-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.section {
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--purple-bright);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--white);
  opacity: 0.9;
}

.rule-punishment {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #ff5c5c;
}

.rule-punishment strong {
  font-weight: 700;
}

.section-list {
  list-style: none;
}

.section-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--white);
  opacity: 0.9;
}

.section-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-bright);
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.server-info + .button-group {
  margin-top: 1.5rem;
}

.button-with-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.button-note {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-bright);
}

.server-info-item .button-note {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
  opacity: 0.7;
}

.action-button {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--purple-bright);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.action-button:hover {
  background: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}

.info-page .page-hint {
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.75rem 1rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--purple-mid);
  border-radius: 14px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
  border-color: var(--purple-bright);
  background: rgba(168, 85, 247, 0.18);
  transform: translateY(-3px);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-bright);
}

.stat-value {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

.server-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.server-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--purple-mid);
  border-radius: 12px;
}

.server-info-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-bright);
}

.server-info-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  word-break: break-word;
}

.server-info-item--wide {
  grid-column: 1 / -1;
}

.server-info-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.copy-button {
  flex-shrink: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--purple-bright);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.copy-button:hover {
  background: rgba(168, 85, 247, 0.4);
}

@media (max-width: 640px) {
  .topbar {
    padding: 1rem 1.25rem;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .menu-toggle {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
  }

  .menu-dropdown {
    min-width: 160px;
  }

  .hero,
  .page {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.75rem, 16vw, 10rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4.5vw, 2rem);
  }

  .hero-hint {
    font-size: 0.9rem;
  }

  .error-title {
    font-size: clamp(4rem, 22vw, 14rem);
  }

  .info-page {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-title {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
  }

  .stats-grid,
  .server-info {
    grid-template-columns: 1fr;
  }

  .action-button {
    font-size: 0.95rem;
    padding: 0.9rem 1.25rem;
  }
}

@media (max-width: 420px) {
  :root {
    --banner-height: 5.5rem;
  }

  .announcement-banner {
    padding: 0.5rem 1rem;
    gap: 0.4rem 0.6rem;
  }

  .announcement-text {
    font-size: 0.8rem;
  }

  .announcement-button {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
  }

  .brand-name {
    display: none;
  }
}
