:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: #0f1420;
  --text: #f2f4f8;
  --muted: #9ba5b7;
  --line: rgba(255, 255, 255, .12);
  --mint: #91f5c9;
  --purple: #b49aff;
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { width: 100%; margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); }
a { color: inherit; }
.page-shell { max-width: 1600px; margin: 0 auto; overflow: hidden; background: var(--bg); }
.hero {
  min-height: max(720px, 100svh); position: relative; display: grid; place-items: center;
  isolation: isolate; width: 100%; max-width: 100%; overflow: hidden;
  background-color: #101521;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('wallpaper.png') center / contain no-repeat; }
.hero::after { content: ''; position: absolute; inset: -20px; z-index: -3; background: url('wallpaper.png') center / cover no-repeat; filter: blur(18px) brightness(.45); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 44%, transparent 0%, rgba(5, 8, 14, .18) 42%, rgba(5, 8, 14, .82) 100%), linear-gradient(180deg, rgba(5, 8, 14, .22) 0%, rgba(5, 8, 14, .16) 48%, var(--bg) 100%); }
.hero-content { width: min(100% - 40px, 680px); margin-top: -24px; text-align: center; animation: arrive .8s ease both; }
.eyebrow, .section-kicker, .section-count, .scroll-cue, .back-top { font-size: .7rem; font-weight: 700; letter-spacing: .19em; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; color: #dce2ed; }
.status-dot { height: 7px; width: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 15px var(--mint); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; font: 700 clamp(4.2rem, 13vw, 9rem)/.92 'Space Grotesk', sans-serif; letter-spacing: -.095em; color: transparent; -webkit-text-stroke: 1.8px rgba(255,255,255,.94); text-shadow: 0 0 48px rgba(180,154,255,.12); }
.tagline { margin-bottom: 34px; color: rgba(238,242,249,.79); font-size: clamp(.94rem, 2vw, 1.08rem); }
.server-list { width: min(100%, 500px); display: grid; gap: 11px; margin: 0 auto; text-align: left; }
.server-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px 13px 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; background: rgba(9,12,20,.55); backdrop-filter: blur(12px); transition: border-color .2s ease, background .2s ease; }
.server-row:hover { border-color: rgba(145,245,201,.65); background: rgba(15,20,32,.78); }
.server-info { min-width: 0; display: grid; gap: 5px; }
.server-edition { color: var(--mint); font-size: .61rem; font-weight: 700; letter-spacing: .17em; }
.server-address { overflow-wrap: anywhere; font: 600 clamp(1rem, 4vw, 1.2rem) 'Space Grotesk', sans-serif; letter-spacing: .025em; }
.copy-button, .gallery-button { border: 1px solid rgba(255,255,255,.24); border-radius: 4px; background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.copy-button { min-height: 42px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 13px; padding: 0 14px; font: 700 .65rem 'DM Sans', sans-serif; letter-spacing: .12em; }
.server-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.open-button { text-decoration: none; }
.copy-button span { color: var(--mint); font-size: .9rem; }
.copy-button:hover, .copy-button:focus-visible, .gallery-button:hover, .gallery-button:focus-visible { border-color: var(--mint); background: rgba(145,245,201,.12); outline: none; }
.copy-button:active, .gallery-button:active { transform: scale(.97); }
.copy-button:disabled { cursor: default; opacity: .8; }
.home-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; margin-top: 18px; padding: 0 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 4px; background: rgba(9,12,20,.55); color: var(--text); text-decoration: none; font-size: .65rem; font-weight: 700; letter-spacing: .12em; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.home-button span { color: var(--mint); }
.home-button:hover, .home-button:focus-visible { border-color: var(--mint); background: rgba(145,245,201,.12); outline: none; }
.home-button:active { transform: scale(.97); }
.scroll-cue { position: absolute; left: 50%; bottom: 36px; display: flex; align-items: center; gap: 12px; color: rgba(231,236,245,.61); text-decoration: none; transform: translateX(-50%); white-space: nowrap; font-size: .61rem; }
.scroll-cue span { height: 28px; width: 17px; border: 1px solid rgba(255,255,255,.5); border-radius: 10px; position: relative; }
.scroll-cue span::after { content: ''; position: absolute; left: 50%; top: 5px; height: 4px; width: 2px; background: var(--mint); animation: scroll 1.4s infinite; }
.hero-index { position: absolute; right: 40px; bottom: 42px; color: rgba(255,255,255,.45); font: 600 .75rem 'Space Grotesk', sans-serif; letter-spacing: .14em; }
.content-section { width: min(100% - 48px, 1100px); margin: 0 auto; padding: 112px 0 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-kicker { margin-bottom: 12px; color: var(--mint); font-size: .65rem; }
h2 { margin: 0; font: 600 clamp(2.2rem, 6vw, 4rem)/1 'Space Grotesk', sans-serif; letter-spacing: -.06em; }
.accent { color: var(--mint); }
.section-count { margin-bottom: 6px; color: #778195; white-space: nowrap; font-size: .63rem; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.gallery-controls[hidden] { display: none; }
.gallery-button { width: 42px; height: 42px; font-size: 1.15rem; }
.gallery { display: flex; gap: 16px; overflow-x: auto; padding: 0 0 15px; scroll-snap-type: x mandatory; scrollbar-color: var(--purple) rgba(255,255,255,.08); scrollbar-width: thin; }
.gallery-card { flex: 0 0 min(82%, 760px); overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: var(--surface); scroll-snap-align: start; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.gallery-card img { display: block; width: 100%; max-height: 570px; aspect-ratio: 16 / 9; object-fit: cover; background: #101521; }
.gallery-caption { margin: 0; padding: 13px 16px; color: #aeb7c6; font-size: .75rem; letter-spacing: .08em; }
.gallery-message { width: 100%; min-height: 110px; display: grid; place-items: center; margin: 0; padding: 24px; border: 1px dashed rgba(255,255,255,.18); color: var(--muted); text-align: center; }
.gallery-message.error-copy { border-color: rgba(255,150,150,.35); color: #e6a8a8; }
.section-note { margin: 16px 0 0; color: #818b9d; font-size: .83rem; }
.site-footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px max(24px, calc((100% - 1100px) / 2)); border-top: 1px solid var(--line); color: #808a9c; }
.footer-brand { color: var(--text); font: 700 1.5rem 'Space Grotesk', sans-serif; text-decoration: none; }
.footer-brand span { color: var(--mint); }
.site-footer p { margin: 0; font-size: .78rem; }
.back-top { color: #a4adbc; text-decoration: none; font-size: .61rem; }
.back-top:hover { color: var(--mint); }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,8px); } }
@media (max-width: 650px) {
  .hero { min-height: max(680px, 100svh); }
  .hero-content { width: min(100% - 30px, 520px); margin-top: -12px; }
  h1 { font-size: clamp(4rem, 19vw, 7rem); -webkit-text-stroke-width: 1.3px; }
  .tagline { margin-bottom: 27px; line-height: 1.6; }
  .server-row { min-height: 72px; padding-left: 14px; gap: 10px; }
  .copy-button { min-height: 40px; gap: 8px; padding: 0 10px; font-size: .59rem; }
  .server-actions { gap: 6px; }
  .home-button { min-height: 40px; gap: 8px; padding: 0 12px; font-size: .59rem; }
  .hero-index { right: 20px; bottom: 38px; }
  .content-section { width: calc(100% - 40px); padding: 78px 0; }
  .section-heading { align-items: start; }
  .section-count { padding-top: 5px; font-size: .55rem; }
  .gallery-card { flex-basis: 92%; }
  .gallery-card img { aspect-ratio: 4 / 3; }
  .site-footer { flex-wrap: wrap; padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
