:root {
  --bg: #080809;
  --ink: #f4efe6;
  --muted: #c4beb4;
  --orange: #ff5a14;
  --orange-dim: rgba(255, 90, 20, 0.42);
  --lime: #d8ff3c;
  --lime-ink: #16160a;
  --header: 4.25rem;
  --pad: 1.15rem;
  --max: 68rem;
  --display: "Black Ops One", "Arial Narrow", Impact, sans-serif;
  --ui: "Rajdhani", "Segoe UI", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: var(--pad);
  top: 0;
  z-index: 80;
  transform: translateY(-120%);
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1rem;
}

.skip:focus {
  transform: none;
}

.field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-image:
    linear-gradient(30deg, rgba(255, 90, 20, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(255, 90, 20, 0.18) 87.5%),
    linear-gradient(150deg, rgba(255, 90, 20, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(255, 90, 20, 0.18) 87.5%),
    linear-gradient(30deg, rgba(255, 90, 20, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(255, 90, 20, 0.18) 87.5%),
    linear-gradient(150deg, rgba(255, 90, 20, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(255, 90, 20, 0.18) 87.5%),
    linear-gradient(60deg, rgba(216, 255, 60, 0.05) 25%, transparent 25.5%, transparent 75%, rgba(216, 255, 60, 0.05) 75.5%),
    linear-gradient(60deg, rgba(216, 255, 60, 0.05) 25%, transparent 25.5%, transparent 75%, rgba(216, 255, 60, 0.05) 75.5%);
  background-size: 52px 90px;
  background-position:
    0 0,
    0 0,
    26px 45px,
    26px 45px,
    0 0,
    26px 45px;
}

.field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(255, 90, 20, 0.22), transparent 42%),
    radial-gradient(ellipse at 8% 88%, rgba(216, 255, 60, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(8, 8, 9, 0.2), rgba(8, 8, 9, 0.72) 78%, #080809);
  pointer-events: none;
}

#gate {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
}

#gate.is-on {
  opacity: 1;
  transition: opacity 0.6s ease;
}

body.gate-on .field {
  display: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.2) 0%, transparent 18%, transparent 62%, rgba(5, 5, 6, 0.88) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: var(--header);
  padding: env(safe-area-inset-top) var(--pad) 0;
  background: rgba(8, 8, 9, 0.88);
  border-bottom: 1px solid var(--orange-dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #000;
  box-shadow: 0 0 0 1px var(--orange);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(2.15);
}

.brand-name {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.98rem;
}

.desk-nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}

.desk-nav a {
  font-family: var(--ui);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.desk-nav a:hover,
.desk-nav a:focus-visible {
  color: var(--lime);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.15rem;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-lime {
  color: var(--lime-ink);
  background-color: var(--lime);
  background-image: linear-gradient(110deg, #d8ff3c 0%, #d8ff3c 38%, #f6ffb8 50%, #d8ff3c 62%, #d8ff3c 100%);
  background-size: 220% 100%;
  background-position: 0 0;
}

.btn-ghost {
  background: rgba(5, 5, 6, 0.78);
  color: var(--ink);
  border-color: var(--orange);
}

.btn-compact {
  padding-inline: 0.85rem;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
}

.menu-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--orange-dim);
  background: transparent;
  color: var(--lime);
  cursor: pointer;
  padding: 0;
}

.bars {
  display: grid;
  gap: 5px;
}

.bars i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.menu-btn[aria-expanded="true"] .bars i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .bars i:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .bars i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.full-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header) + env(safe-area-inset-top) + 1.25rem) var(--pad) calc(1.5rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 78% 0%, rgba(255, 90, 20, 0.24), transparent 46%),
    #080809;
}

.full-menu[hidden] {
  display: none;
}

.full-menu nav a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 90, 20, 0.28);
  font-family: var(--display);
  font-size: clamp(2.15rem, 11vw, 3.3rem);
  line-height: 1.05;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.full-menu nav a:active {
  color: var(--lime);
}

.full-menu-actions {
  display: grid;
  gap: 0.7rem;
}

.full-menu-actions .btn {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  padding: 1.25rem var(--pad) 2.4rem;
}

.rail {
  display: none;
}

.hero-copy {
  position: relative;
  text-align: center;
  min-width: 0;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -18%;
  right: -18%;
  top: -12%;
  bottom: -14%;
  background: radial-gradient(ellipse at center, rgba(5, 5, 6, 0.78), rgba(5, 5, 6, 0.28) 62%, transparent 78%);
  pointer-events: none;
}

.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--lime);
  font-size: 0.78rem;
  text-shadow: 0 0 14px #000, 0 2px 8px #000;
}

h1,
h2,
h3 {
  font-weight: 400;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 13vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-shadow: 0 0 28px rgba(255, 90, 20, 0.28);
}

.domain {
  margin: 0.7rem 0 0;
  font-family: var(--ui);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-size: 0.82rem;
}

.lede,
.section-lede,
.game p,
.svc p,
.join p {
  color: var(--muted);
}

.lede {
  max-width: 36rem;
  margin: 0.9rem auto 0;
  color: #f7f3ea;
  text-shadow: 0 2px 10px #000, 0 0 22px #000;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.hero-actions .btn {
  width: 100%;
}

.emblem {
  position: relative;
  width: min(64vw, 21rem);
  aspect-ratio: 1;
  margin: 0 auto;
  order: -1;
  animation: drift 6.5s ease-in-out infinite;
}

.ring {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.ring polygon {
  fill: none;
}

.ring-a {
  inset: 0;
  color: var(--orange);
  filter: drop-shadow(0 0 6px rgba(255, 90, 20, 0.85));
}

.ring-a polygon {
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linejoin: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 1.35s ease forwards, glow 3.6s ease 1.35s infinite;
}

.ring-b {
  inset: 6.5%;
  color: var(--lime);
  filter: drop-shadow(0 0 4px rgba(216, 255, 60, 0.65));
}

.ring-b polygon {
  stroke: currentColor;
  stroke-width: 0.55;
  stroke-dasharray: 7 8;
  animation: march 22s linear infinite;
}

.emblem-photo {
  position: absolute;
  inset: 13%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #000;
  animation: fade 0.9s ease 0.25s both;
}

.emblem-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.72);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--orange-dim);
  background: rgba(0, 0, 0, 0.45);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker-track p {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0.72rem 0 0.72rem 1.2rem;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.84rem;
  white-space: nowrap;
}

.ticker-track span {
  width: 0.42rem;
  height: 0.42rem;
  background: var(--lime);
  transform: rotate(45deg);
  flex: none;
}

.section {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 4.2rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-size: 0.8rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 9vw, 4.4rem);
  line-height: 0.92;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
}

.section-lede {
  margin: 0.8rem 0 0;
}

#games,
#services,
#community,
#top {
  scroll-margin-top: calc(var(--header) + 0.6rem);
}

.game-grid,
.service-grid,
.join-grid {
  display: grid;
  gap: 0.85rem;
}

.game {
  position: relative;
  padding: 1.35rem 1.15rem 1.45rem;
  background:
    linear-gradient(155deg, rgba(255, 90, 20, 0.2), rgba(8, 8, 10, 0.94) 46%);
  border: 1px solid var(--orange-dim);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.game::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  right: 1.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--lime);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.game-bgmi {
  border-color: rgba(216, 255, 60, 0.45);
  background:
    linear-gradient(200deg, rgba(216, 255, 60, 0.14), rgba(8, 8, 10, 0.94) 46%);
}

.game-index {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--orange);
}

.game-bgmi .game-index,
.game-bgmi .game-tag {
  color: var(--lime);
}

.game-tag {
  margin: 0.85rem 0 0;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--orange);
}

.game h3,
.svc h3,
.join h3 {
  margin: 0.3rem 0 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.05;
  color: var(--ink);
}

.game p:last-child,
.svc p:last-child {
  margin: 0;
  max-width: 36rem;
}

.band {
  background: rgba(5, 5, 6, 0.72);
  border-block: 1px solid rgba(255, 90, 20, 0.22);
}

.svc {
  padding: 1.15rem 1.1rem 1.25rem;
  background: rgba(12, 12, 14, 0.88);
  border: 1px solid rgba(255, 90, 20, 0.28);
}

.svc-a {
  border-left: 4px solid var(--lime);
}

.svc-b {
  background:
    linear-gradient(180deg, rgba(255, 90, 20, 0.12), rgba(12, 12, 14, 0.9));
}

.svc-c {
  border-color: rgba(216, 255, 60, 0.35);
}

.svc-d {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

.svc-d h3,
.svc-d .num {
  color: var(--lime-ink);
}

.svc-d p {
  color: #323218;
}

.num {
  margin: 0;
  font-family: var(--display);
  color: var(--orange);
  font-size: 1.35rem;
  line-height: 1;
}

.join {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 44px;
  padding: 1.2rem 1.1rem 1.15rem;
  text-decoration: none;
  background: rgba(8, 8, 10, 0.92);
  border: 1px solid var(--orange-dim);
}

.join p {
  margin: 0;
}

.join-kicker {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--orange);
}

.join-url {
  margin-top: 0.85rem;
  font-family: var(--ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lime);
  font-size: 0.95rem;
}

.join-go {
  margin-top: 1rem;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-ink);
  background: var(--lime);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
}

.join-discord {
  background:
    linear-gradient(160deg, rgba(255, 90, 20, 0.22), rgba(8, 8, 9, 0.94) 52%);
  min-height: 16rem;
}

.join:active {
  border-color: var(--lime);
}

.site-footer {
  display: grid;
  gap: 1rem;
  padding: 2rem var(--pad) calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--orange-dim);
  background: #050506;
}

.site-footer .brand {
  margin-right: 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
}

.site-footer nav a {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--lime);
}

@media (hover: hover) {
  .btn-lime:hover {
    animation: sheen 0.75s ease;
  }

  .btn-ghost:hover {
    background: rgba(255, 90, 20, 0.12);
  }

  .game,
  .svc,
  .join {
    transition: translate 0.35s ease, border-color 0.35s ease;
  }

  .game:hover,
  .svc:hover,
  .join:hover {
    border-color: var(--lime);
    translate: 0 -8px;
  }

  .svc-d:hover {
    filter: brightness(1.05);
  }
}

@media (min-width: 560px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 11rem;
  }
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }

  .site-footer .brand-name {
    display: inline;
  }
}

@media (min-width: 800px) {
  :root {
    --pad: 1.75rem;
  }

  .game-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 1.15rem;
  }

  .game-bgmi {
    margin-top: 3.25rem;
  }

  .service-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-areas:
      "a b c"
      "a d d";
    gap: 0.9rem;
  }

  .svc-a { grid-area: a; }
  .svc-b { grid-area: b; }
  .svc-c { grid-area: c; }
  .svc-d { grid-area: d; }

  .svc-a {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 1.6rem;
  }

  .svc-a h3 {
    font-size: 2.5rem;
  }
}

@media (min-width: 860px) {
  .menu-btn {
    display: none;
  }

  .desk-nav {
    display: flex;
  }

  .full-menu {
    display: none !important;
  }

  .join-grid {
    grid-template-columns: 1.25fr 1fr;
    grid-template-areas:
      "discord group"
      "discord channel";
    gap: 0.9rem;
  }

  .join-discord {
    grid-area: discord;
  }

  .join-grid .join:nth-child(2) {
    grid-area: group;
  }

  .join-grid .join:nth-child(3) {
    grid-area: channel;
  }
}

@media (min-width: 980px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2rem;
    padding: 2rem 5vw 3rem 4.5rem;
  }

  .hero-copy {
    text-align: left;
    order: 0;
  }

  .lede {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .emblem {
    order: 0;
    width: min(100%, 30rem);
    margin: 0 0 0 auto;
  }

  .vignette {
    background:
      linear-gradient(90deg, rgba(5, 5, 6, 0.88) 0%, rgba(5, 5, 6, 0.45) 34%, transparent 58%);
  }

  .rail {
    display: block;
    position: absolute;
    left: 0.85rem;
    top: 22%;
    margin: 0;
    writing-mode: vertical-rl;
    font-family: var(--ui);
    font-weight: 700;
    letter-spacing: 0.42em;
    font-size: 0.75rem;
    color: rgba(255, 90, 20, 0.85);
  }

  .site-footer {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding-inline: 5vw;
  }

  .site-footer p {
    text-align: center;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease both;
  animation-play-state: paused;
}

.js .reveal.in {
  animation-play-state: running;
}

.hero-copy > * {
  animation: rise 0.75s ease both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.4s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes glow {
  0%,
  100% { filter: drop-shadow(0 0 2px rgba(255, 90, 20, 0.45)); }
  50% { filter: drop-shadow(0 0 9px rgba(255, 90, 20, 0.95)); }
}

@keyframes march {
  to { stroke-dashoffset: -220; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes drift {
  0%,
  100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes sheen {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .hero-copy > *,
  .emblem-photo {
    opacity: 1;
    transform: none;
  }
}
