/* Snipe: the logo's pixel art on the web. Crimson, gold and a near-black red. */
:root {
  --bg: #12070a;
  --panel: #1d0e13;
  --panel-hi: #2a141b;
  --line: #3d1b24;
  --red: #e82834;
  --red-hi: #ff6858;
  --red-lo: #7c0a1e;
  --gold: #ffc43a;
  --gold-hi: #ffe278;
  --gold-lo: #b07814;
  --ink: #fff2ee;
  --muted: #c4a7ad;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 500 18px/1.5 'Pixelify Sans', system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 2px, transparent 2px);
  background-size: 32px 32px;
  z-index: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b, strong { color: var(--gold); font-weight: 700; }

/* Pixel corners: a box with its four corner pixels cut away. */
.px {
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%,
    6px calc(100% - 6px), 0 calc(100% - 6px));
}

/* Buttons: blocks like the logo's letters, a lighter top and a darker side under them. */
.btn {
  --face: var(--red);
  font: 700 18px 'Pixelify Sans', system-ui, sans-serif;
  color: #fff;
  background: var(--face);
  border: 0;
  padding: 12px 22px 16px;
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: inset 0 4px 0 var(--red-hi), inset 0 -6px 0 var(--red-lo), 0 0 0 3px #160409;
  transition: transform .15s var(--ease), filter .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 4px 0 var(--red-lo), 0 0 0 3px #160409; }
.btn-small { font-size: 15px; padding: 8px 14px 11px; }
.btn-ghost {
  background: var(--panel-hi);
  box-shadow: inset 0 4px 0 #46303a, inset 0 -6px 0 #0f080a, 0 0 0 3px #160409;
}

/* The bar along the top. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  transition: background .3s, box-shadow .3s;
}
.nav.solid { background: rgba(18, 7, 10, .92); box-shadow: 0 4px 0 var(--red-lo); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; letter-spacing: .08em; }
.brand img, .foot img, .play img { image-rendering: pixelated; border-radius: 50%; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { position: relative; color: var(--muted); transition: color .2s; }
.links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.links a:hover { color: var(--ink); }
.links a:hover::after { transform: scaleX(1); }

/* The top of the page: the cinematic loop under the word. */
.hero {
  position: relative;
  min-height: max(100svh, 600px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; z-index: -2; transform: scale(1.04); filter: saturate(1.05) brightness(.72); }
.hero-shade {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(18, 7, 10, 0) 0%, rgba(18, 7, 10, .55) 62%, rgba(18, 7, 10, .9) 100%),
    linear-gradient(180deg, rgba(124, 10, 30, .25) 0%, rgba(18, 7, 10, 0) 40%, var(--bg) 100%);
}
.hero-inner { display: grid; justify-items: center; gap: 18px; padding: 120px 20px 80px; text-align: center; }
.word {
  width: min(880px, 92vw);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .35));
  animation: rise .9s var(--ease) both, bob 4.5s ease-in-out 1s infinite;
}
.tag {
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  animation: rise .9s var(--ease) .15s both;
}
.ip {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  padding: 14px 14px 14px 26px;
  background: rgba(29, 14, 19, .88);
  box-shadow: inset 0 0 0 3px var(--line);
  animation: rise .9s var(--ease) .3s both;
}
.ip div { display: grid; text-align: left; }
.ip strong { font-size: clamp(20px, 3vw, 28px); color: var(--ink); }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); animation: rise .9s var(--ease) .45s both; }
.dot { width: 12px; height: 12px; background: #6b5a5e; }
.status.on .dot { background: #48e06a; box-shadow: 0 0 0 0 rgba(72, 224, 106, .6); animation: pulse 2s infinite; }
.status.off .dot { background: var(--red); }
.scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  border: 3px solid rgba(255, 242, 238, .6);
}
.scroll span { position: absolute; left: 50%; top: 8px; width: 6px; height: 6px; margin-left: -3px; background: var(--gold); animation: wheel 1.8s infinite; }

.sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff, -4px 0 0 #fff, 4px 0 0 #fff;
  opacity: 0;
  animation: twinkle 3.6s infinite;
}
.sparkle.gold { background: var(--gold-hi); box-shadow: 0 -4px 0 var(--gold), 0 4px 0 var(--gold), -4px 0 0 var(--gold), 4px 0 0 var(--gold); }

/* Sections. */
main { position: relative; z-index: 1; }
.section { width: min(1240px, 100% - 32px); margin: 0 auto; padding: 96px 0 24px; }
.head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.head h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 4px 4px 0 var(--red-lo);
}
.head p { color: var(--gold); font-size: 20px; }
.center { display: flex; justify-content: center; margin-top: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  font: 600 16px 'Pixelify Sans', system-ui, sans-serif;
  color: var(--muted);
  background: var(--panel);
  border: 0;
  padding: 8px 14px 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--line);
  transition: color .2s, background .2s, box-shadow .2s, transform .15s var(--ease);
}
.chip:hover { color: var(--ink); transform: translateY(-2px); }
.chip.on { color: #2a1600; background: var(--gold); box-shadow: inset 0 3px 0 var(--gold-hi), inset 0 -4px 0 var(--gold-lo); }
.chip span { opacity: .65; margin-left: 4px; }

.grid { display: grid; gap: 18px; }
.modes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.maps { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ffa { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  position: relative;
  background: var(--panel);
  box-shadow: inset 0 0 0 3px var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 3px var(--gold), 0 10px 0 rgba(0, 0, 0, .35); }
.card .pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 3px 3px 0; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .pic img { transform: scale(1.08); }
.card .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 7, 10, .65)); }
.card .body { padding: 12px 16px 16px; }
.card h3 { font-size: 21px; line-height: 1.2; }
.card p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.kind {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px 4px;
  color: #fff;
  background: rgba(124, 10, 30, .9);
  box-shadow: inset 0 0 0 2px var(--red);
}
.card.hide { display: none; }
.card.pop { animation: pop .45s var(--ease) both; }
.card.new { box-shadow: inset 0 0 0 3px var(--line); }

/* The hubs, each a slideshow of renders. */
.hubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.hub { background: var(--panel); box-shadow: inset 0 0 0 3px var(--line); }
.slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 3px 3px 0; }
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s linear;
}
.slides img.on { opacity: 1; transform: scale(1); }
.hub-text { padding: 16px 20px 20px; }
.hub h3 { font-size: 28px; text-transform: uppercase; letter-spacing: .04em; }
.hub p { color: var(--muted); }

.play {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px clamp(20px, 4vw, 44px);
  background: linear-gradient(135deg, var(--panel-hi), var(--panel));
  box-shadow: inset 0 0 0 3px var(--red-lo), inset 0 -8px 0 rgba(0, 0, 0, .3);
}
.play h2 { font-size: 40px; text-transform: uppercase; text-shadow: 4px 4px 0 var(--red-lo); }
.play ol { margin: 8px 0 0 22px; color: var(--muted); }
.play li::marker { color: var(--gold); font-weight: 700; }

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 70px 16px 40px;
  color: var(--ink);
}
.muted { color: var(--muted); font-size: 15px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  padding: 10px 18px 12px;
  background: var(--gold);
  color: #2a1600;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: transform .35s var(--ease), opacity .35s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Things that slide in as they come into view. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(72, 224, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(72, 224, 106, 0); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

@media (max-width: 760px) {
  .links { display: none; }
  .nav .copy { margin-left: auto; }
  .ip { flex-wrap: wrap; justify-content: center; padding: 14px 18px; }
  .play { grid-template-columns: 1fr; justify-items: start; }
  .section { padding-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
