:root {
  color-scheme: dark;
  --bg: #080908;
  --graphite-100: #101211;
  --graphite-200: #151816;
  --graphite-300: #1c211e;
  --graphite-400: #2a302c;
  --text: #f4f6ef;
  --muted: #aeb8ad;
  --muted-strong: #d6dfcc;
  --blue: #8fb6ff;
  --blue-strong: #6da5ff;
  --blue-soft: rgba(143, 182, 255, 0.18);
  --yellow: #f0cf58;
  --line: #283029;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

.top-nav {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 4;
  width: min(640px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(143, 182, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(12, 15, 14, 0.58), rgba(8, 9, 8, 0.34)),
    radial-gradient(circle at 50% 0, rgba(143, 182, 255, 0.12), transparent 58%);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.top-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(214, 221, 214, 0.56);
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(143, 182, 255, 0.26);
  background: rgba(143, 182, 255, 0.1);
  text-shadow: 0 0 22px rgba(143, 182, 255, 0.28);
}

.top-nav a:hover {
  transform: translateY(-1px);
}

.top-nav a[aria-current="page"] {
  box-shadow:
    0 0 32px rgba(143, 182, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 108vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.12) 0%, rgba(8, 9, 8, 0.2) 46%, rgba(8, 9, 8, 0.86) 100%),
    radial-gradient(circle at 50% 56%, rgba(143, 182, 255, 0.16), transparent 38%),
    url("/assets/minecraft-bg.png") center bottom / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 600px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0) 0%, rgba(8, 9, 8, 0.18) 18%, rgba(8, 9, 8, 0.56) 44%, rgba(8, 9, 8, 0.9) 72%, var(--bg) 100%),
    linear-gradient(180deg, rgba(8, 9, 8, 0) 0%, var(--bg) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  mask-image: linear-gradient(180deg, transparent 0%, black 24%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 24%, black 100%);
}

.section-transition {
  position: relative;
  z-index: 2;
  height: 210px;
  margin-top: -210px;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0) 0%, rgba(8, 9, 8, 0.74) 34%, var(--bg) 86%);
}

.section-transition::before {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 100vw;
  height: 216px;
  border-radius: 0 0 50% 50%;
  content: "";
  background: var(--bg);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.92);
  filter: none;
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(760px, 100%);
  text-align: center;
}

.hero-content::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(920px, calc(100vw - 20px));
  height: 322px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(9, 13, 10, 0.82), rgba(9, 13, 10, 0));
  filter: blur(22px);
  transform: translate(-50%, -50%) scale(1.18);
}

.server-mark,
.online,
.tagline {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

.server-mark {
  color: var(--yellow);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fff8d6;
  font-size: clamp(76px, 17vw, 184px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow:
    0 10px 0 rgba(44, 57, 36, 0.55),
    0 0 80px rgba(143, 182, 255, 0.22);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo {
  display: block;
  width: min(1540px, 98vw);
  max-height: clamp(180px, 34vw, 430px);
  object-fit: contain;
  filter:
    drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 38px rgba(0, 184, 204, 0.12));
}

.tagline {
  color: var(--muted-strong);
}

.hero-cta {
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 0 24px;
  border: 1px solid rgba(143, 182, 255, 0.24);
  border-radius: 16px;
  color: #08101d;
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(180deg, #9ec3ff, var(--blue-strong));
  box-shadow:
    0 0 0 rgba(109, 165, 255, 0),
    0 12px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease, transform 220ms ease;
}

.hero-cta::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  opacity: 0;
  transform: translateX(-80%);
  transition: opacity 260ms ease, transform 520ms ease;
}

.hero-cta:hover {
  border-color: rgba(178, 209, 255, 0.72);
  box-shadow:
    0 0 80px 18px rgba(109, 165, 255, 0.16),
    0 16px 42px rgba(0, 0, 0, 0.28);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.hero-cta:hover::before {
  opacity: 1;
  transform: translateX(80%);
}

.hero-cta:focus-visible {
  outline: 3px solid rgba(143, 182, 255, 0.58);
  outline-offset: 4px;
}

.online {
  color: var(--blue-strong);
}

.shamewall {
  position: relative;
  z-index: 5;
  padding: 72px 0 120px;
  overflow: clip;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%),
    var(--bg);
  margin-top: -94px;
  padding-top: 46px;
  transform: translateY(calc((1 - var(--shame-progress, 0)) * 150px - (var(--shame-progress, 0) * 24px)));
  opacity: calc(0.62 + (var(--shame-progress, 0) * 0.38));
  transition: opacity 120ms linear, transform 120ms linear;
  will-change: transform, opacity;
}

.shamewall.is-visible {
  opacity: 1;
}

.shamewall::before {
  position: absolute;
  left: 50%;
  top: -92px;
  z-index: 0;
  width: min(1100px, 100vw);
  height: 184px;
  border-radius: 0 0 999px 999px;
  content: "";
  background: var(--bg);
  filter: none;
  pointer-events: none;
  transform: translateX(-50%);
}

.shamewall::after {
  position: absolute;
  left: 50%;
  top: -48px;
  z-index: 0;
  width: min(980px, 100vw);
  height: 96px;
  border-radius: 0 0 999px 999px;
  content: "";
  background: linear-gradient(180deg, rgba(8, 9, 8, 0), var(--bg) 72%);
  pointer-events: none;
  transform: translateX(-50%);
}

.section-heading {
  position: relative;
  z-index: 1;
  width: min(996px, calc(100% - 32px));
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: #8f968f;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
}

.players-scroll {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 32px));
  display: grid;
  grid-auto-columns: minmax(240px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 auto;
  padding: 64px 18px 64px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.players-scroll:focus-visible {
  outline: 3px solid rgba(143, 182, 255, 0.5);
  outline-offset: 8px;
}

.players-scroll::-webkit-scrollbar {
  display: none;
}

.player-card {
  position: relative;
  min-height: 212px;
  padding: 0;
  border-radius: 16px;
  overflow: visible;
  scroll-snap-align: start;
  transition: transform 220ms ease;
}

.player-card-surface {
  position: relative;
  min-height: 212px;
  padding: 70px 18px 22px;
  border: 1px solid #202520;
  border-radius: 16px;
  background: #141615;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.player-card-surface::before {
  position: absolute;
  right: -6px;
  bottom: 0;
  content: "kal";
  color: rgba(255, 255, 255, 0.055);
  font-size: 76px;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: lowercase;
  transition: color 220ms ease, text-shadow 220ms ease, transform 220ms ease;
  transform: rotate(-3deg);
}

.player-card:hover {
  transform: scale(1.025);
}

.player-card:hover .player-card-surface {
  border-color: rgba(143, 182, 255, 0.38);
  box-shadow: 0 18px 48px rgba(87, 140, 255, 0.12);
}

.player-card:hover .player-card-surface::before {
  color: rgba(143, 182, 255, 0.78);
  text-shadow:
    0 0 18px rgba(109, 165, 255, 0.46),
    0 0 34px rgba(109, 165, 255, 0.2);
  transform: rotate(-3deg) scale(1.03);
}

.player-card-surface::after {
  position: absolute;
  inset: 58px 0 auto;
  height: 1px;
  content: "";
  background: #202520;
}

.player-card .player-head {
  position: absolute;
  top: -30px;
  left: 16px;
  z-index: 2;
  width: 82px;
  height: 82px;
  image-rendering: pixelated;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46))
    drop-shadow(-8px 8px 0 rgba(255, 255, 255, 0.04));
  transform: perspective(180px) rotateX(6deg) rotateY(-10deg);
  transform-origin: 50% 70%;
  transition: filter 220ms ease, transform 220ms ease;
}

.player-card:hover .player-head {
  filter:
    drop-shadow(0 24px 26px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 18px rgba(143, 182, 255, 0.28));
  transform: perspective(180px) rotateX(4deg) rotateY(-7deg) translateY(-3px) scale(1.04);
}

.quote-mark {
  position: absolute;
  top: 28px;
  right: 24px;
  color: var(--blue-strong);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.role,
.player-card h3,
.player-card blockquote {
  position: relative;
  z-index: 1;
}

.role {
  margin: 0 0 8px;
  color: #6f756f;
  font-size: 14px;
  font-weight: 800;
}

.player-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
}

.player-card blockquote {
  margin: 0;
  color: #9ca29c;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.45;
}

.scroll-hint {
  position: relative;
  z-index: 1;
  margin: -30px 0 0;
  color: #626862;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.moments-callout {
  display: flex;
  justify-content: center;
  padding: 34px 16px 18px;
  background: var(--bg);
}

.moments-button {
  position: relative;
  min-width: min(360px, 100%);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid rgba(143, 182, 255, 0.3);
  border-radius: 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  background:
    linear-gradient(145deg, rgba(23, 27, 25, 0.96), rgba(12, 14, 13, 0.98)),
    radial-gradient(circle at 50% 0, rgba(143, 182, 255, 0.14), transparent 64%);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.moments-button::before {
  position: absolute;
  right: -10px;
  bottom: -10px;
  content: "kal";
  color: rgba(255, 255, 255, 0.055);
  font-size: 62px;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: lowercase;
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
  transform: rotate(-3deg);
}

.moments-button:hover {
  border-color: rgba(143, 182, 255, 0.64);
  box-shadow:
    0 22px 66px rgba(87, 140, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.moments-button:hover::before {
  color: rgba(143, 182, 255, 0.72);
  text-shadow:
    0 0 18px rgba(109, 165, 255, 0.42),
    0 0 34px rgba(109, 165, 255, 0.18);
  transform: rotate(-3deg) scale(1.04);
}

.moments-button svg,
.moments-button span {
  position: relative;
  z-index: 1;
}

.moments-button svg {
  width: 23px;
  height: 23px;
  fill: var(--blue);
}

.moments-page {
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.32), var(--bg) 560px),
    url("/assets/minecraft-bg.png") center top / cover fixed,
    var(--bg);
}

.moments-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 120px 20px 64px;
  overflow: hidden;
}

.moments-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.45), var(--bg)),
    radial-gradient(circle at 50% 44%, rgba(143, 182, 255, 0.14), transparent 38%);
  pointer-events: none;
}

.moments-heading {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  text-align: center;
}

.moments-heading h1 {
  margin: 10px 0 14px;
  color: var(--text);
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.9;
  text-shadow:
    0 8px 0 rgba(20, 25, 22, 0.6),
    0 0 44px rgba(143, 182, 255, 0.18);
}

.moments-heading p:not(.server-mark) {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted-strong);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.moments-grid {
  width: min(1120px, calc(100% - 32px));
  display: grid;
  gap: 22px;
  margin: -36px auto 96px;
  position: relative;
  z-index: 2;
}

.moment-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 0;
  border: 1px solid rgba(143, 182, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 22, 21, 0.96), rgba(10, 12, 11, 0.99));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.moment-card::before {
  position: absolute;
  right: -12px;
  bottom: -13px;
  content: "kal";
  color: rgba(255, 255, 255, 0.045);
  font-size: 96px;
  font-weight: 900;
  line-height: 0.8;
  transform: rotate(-3deg);
}

.moment-media {
  position: relative;
  z-index: 1;
  min-height: 360px;
  background: #0d0f0e;
}

.moment-media img,
.moment-media iframe,
.moment-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  object-fit: cover;
  background: #0d0f0e;
}

.youtube-preview {
  position: relative;
  min-height: 360px;
  display: block;
  color: var(--text);
  overflow: hidden;
}

.youtube-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48) saturate(0.95);
  transform: scale(1.04);
  transition: filter 220ms ease, transform 220ms ease;
}

.youtube-preview::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, rgba(143, 182, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(8, 9, 8, 0.12), rgba(8, 9, 8, 0.72));
}

.youtube-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 76px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 182, 255, 0.32);
  border-radius: 18px;
  background: rgba(15, 18, 17, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.youtube-play svg {
  width: 30px;
  height: 30px;
  fill: var(--blue);
}

.youtube-label {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  transform: translateX(-50%);
}

.youtube-preview:hover img {
  filter: brightness(0.58) saturate(1.08);
  transform: scale(1.08);
}

.youtube-preview:hover .youtube-play {
  background: rgba(143, 182, 255, 0.16);
  box-shadow: 0 0 54px rgba(109, 165, 255, 0.22);
  transform: translate(-50%, -50%) scale(1.04);
}

.moment-card-video .moment-media {
  aspect-ratio: 16 / 9;
}

.moment-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.moment-copy span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.moment-copy h2 {
  margin: 16px 0 12px;
  color: var(--text);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.moment-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
}

.social-footer {
  width: min(1040px, calc(100% - 32px));
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
  padding: 18px 0 96px;
}

.social-button {
  position: relative;
  min-width: 172px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid rgba(143, 182, 255, 0.24);
  border-radius: 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(23, 27, 25, 0.94), rgba(12, 14, 13, 0.98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.social-button::before {
  position: absolute;
  right: -8px;
  bottom: -9px;
  content: "kal";
  color: rgba(255, 255, 255, 0.055);
  font-size: 58px;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: lowercase;
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
  transform: rotate(-3deg);
}

.social-button:hover {
  border-color: rgba(143, 182, 255, 0.54);
  box-shadow: 0 18px 52px rgba(87, 140, 255, 0.12);
  transform: translateY(-2px);
}

.social-button:hover::before {
  color: rgba(143, 182, 255, 0.72);
  text-shadow:
    0 0 18px rgba(109, 165, 255, 0.42),
    0 0 34px rgba(109, 165, 255, 0.18);
  transform: rotate(-3deg) scale(1.04);
}

.social-button svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  fill: var(--blue);
}

.social-button span {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .hero {
    min-height: 100vh;
    padding: 64px 16px;
  }

  .players-scroll {
    grid-auto-columns: 82%;
    width: 100%;
    padding-inline: 16px;
  }

  .section-heading {
    width: min(100% - 32px, 996px);
  }

  .social-footer {
    flex-direction: column;
    padding-bottom: 72px;
  }

  .social-button {
    width: 100%;
  }

  .moments-hero {
    min-height: 360px;
    padding-top: 112px;
  }

  .moment-card {
    grid-template-columns: 1fr;
  }

  .moment-media,
  .moment-media img,
  .moment-media iframe,
  .moment-media video {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shamewall {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
