:root {
  --ice: #20a7ff;
  --ice-bright: #8fdcff;
  --aurora: #56e0c0;
  --night: #020711;
  --frost: rgba(215, 242, 255, 0.1);
  --line: rgba(187, 226, 255, 0.22);
  --text: #f5fbff;
  --muted: #a9bdcb;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--night);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 108px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(to bottom, rgba(1, 6, 15, 0.86), transparent);
}

.brand img {
  width: 126px;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 18px rgba(0, 127, 255, 0.3));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.7vw, 48px);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 18px 0;
  color: #c8d5de;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 2px;
  background: var(--ice);
  box-shadow: 0 0 14px var(--ice);
}

.site-nav .nav-donate {
  padding: 13px 20px;
  border: 1px solid rgba(143, 220, 255, 0.42);
  background: rgba(13, 97, 157, 0.17);
}

.site-nav .nav-donate::after {
  display: none;
}

.effects-toggle {
  padding: 10px 12px;
  border: 1px solid rgba(86, 224, 192, 0.35);
  color: #9ef5da;
  background: rgba(38, 157, 131, 0.12);
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.effects-toggle span {
  color: #fff;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 145px 5vw 180px;
  background-image: url("./assets/caf1440p.png");
  background-position: 66% center;
  background-size: cover;
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 5, 13, 0.92) 0%, rgba(1, 8, 20, 0.6) 37%, transparent 62%),
    linear-gradient(0deg, rgba(1, 5, 12, 0.76) 0%, transparent 35%),
    linear-gradient(180deg, rgba(1, 5, 12, 0.46), transparent 22%);
}

.aurora-glow {
  position: absolute;
  z-index: -1;
  left: 18%;
  top: 17%;
  width: 420px;
  height: 220px;
  border-radius: 50%;
  background: rgba(56, 255, 205, 0.1);
  filter: blur(90px);
  animation: aurora 8s ease-in-out infinite alternate;
}

.hero-content {
  width: min(680px, 52vw);
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ice-bright);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(66px, 7.7vw, 132px);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.045em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hero h1 strong {
  display: inline-block;
  margin-top: 0.18em;
  color: transparent;
  font-weight: 800;
  -webkit-text-stroke: 1px rgba(217, 243, 255, 0.85);
  text-shadow: 0 0 40px rgba(44, 165, 255, 0.22);
}

.hero-copy {
  max-width: 590px;
  margin: 34px 0 0;
  color: #b9c8d2;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-height: 56px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  border-color: #5ec8ff;
  background: linear-gradient(120deg, #0876c5, #15a2ee);
  box-shadow: 0 12px 40px rgba(0, 126, 227, 0.28), inset 0 1px rgba(255, 255, 255, 0.25);
}

.button--glass {
  border-color: var(--line);
  background: rgba(194, 230, 255, 0.07);
  backdrop-filter: blur(12px);
}

.server-card {
  position: absolute;
  right: 5vw;
  bottom: 54px;
  width: min(580px, 44vw);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(142, 211, 255, 0.14), rgba(0, 20, 40, 0.25)),
    rgba(2, 10, 22, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.server-card::before,
.rule-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 32%);
}

.server-card__top {
  padding: 25px 28px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-kicker {
  margin: 0 0 6px;
  color: var(--ice-bright);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.server-card h2 {
  font-size: 28px;
  letter-spacing: 0.04em;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7cf0c7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46e5ae;
  box-shadow: 0 0 12px #46e5ae;
  animation: pulse 1.8s infinite;
}

.status--checking,
.status--delayed {
  color: #e4c27a;
}

.status--checking i,
.status--delayed i {
  background: #e4b65c;
  box-shadow: 0 0 12px #e4b65c;
}

.status--offline {
  color: #f18c8c;
}

.status--offline i {
  background: #ef6f6f;
  box-shadow: 0 0 12px #ef6f6f;
  animation: none;
}

.server-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.server-card__stats > div {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.server-card__stats > div:last-child {
  border-right: 0;
}

.server-card__stats > div > span,
.server-address small {
  display: block;
  margin-bottom: 5px;
  color: #8fa9ba;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.server-card__stats strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.server-card__stats small {
  color: #748795;
  font-size: 12px;
}

.server-address {
  width: 100%;
  padding: 17px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.server-address b {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.launch-icon {
  padding: 8px 10px;
  border: 1px solid rgba(117, 207, 255, 0.28);
  color: var(--ice-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.scroll-cue {
  position: absolute;
  left: 5vw;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8094a3;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 76px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  width: 45%;
  height: 1px;
  background: var(--ice);
  animation: scan 2.4s infinite;
}

.content-section {
  position: relative;
  padding: 120px 7vw;
  overflow: hidden;
}

.rules-section {
  background:
    radial-gradient(circle at 90% 20%, rgba(23, 129, 190, 0.18), transparent 30%),
    linear-gradient(155deg, #06111f, #020710 70%);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.support-section h2 {
  font-size: clamp(48px, 5.5vw, 88px);
  line-height: 0.95;
}

.section-heading > p:last-child,
.support-section > div > p:last-child {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.7;
}

.rule-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rule-grid article {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border: 1px solid rgba(165, 219, 255, 0.16);
  background: rgba(165, 219, 255, 0.045);
}

.rule-grid article > span {
  color: var(--ice);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.rule-grid h3 {
  margin-top: 38px;
  font-size: 25px;
  letter-spacing: 0.02em;
}

.rule-grid p {
  color: #91a8b8;
  font-size: 14px;
  line-height: 1.65;
}

.rule-grid p strong {
  color: #d9f2ff;
}

.rules-report {
  margin-top: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid rgba(32, 167, 255, 0.34);
  background:
    linear-gradient(120deg, rgba(23, 139, 211, 0.17), transparent 55%),
    rgba(165, 219, 255, 0.05);
}

.rules-report > div {
  max-width: 760px;
}

.rules-report h3 {
  font-size: 28px;
  letter-spacing: 0.03em;
}

.rules-report p:last-child {
  margin-bottom: 0;
  color: #91a8b8;
  font-size: 14px;
  line-height: 1.65;
}

.game-section {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(1, 8, 18, 0.98), rgba(3, 18, 34, 0.74)),
    url("./assets/caf1440p.png") center 72% / cover;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.game-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 73% 38%, rgba(84, 224, 194, 0.13), transparent 27%),
    linear-gradient(115deg, transparent 60%, rgba(147, 93, 255, 0.09));
}

.game-section__copy,
.game-art,
.quest-status {
  position: relative;
  z-index: 1;
}

.game-section__label {
  margin: 0 0 13px;
  color: #6c8799;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.game-section h2 {
  font-size: clamp(62px, 7vw, 110px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.035em;
}

.game-section h2 strong {
  color: transparent;
  -webkit-text-stroke: 1px rgba(179, 227, 255, 0.86);
  text-shadow: 0 0 32px rgba(32, 167, 255, 0.16);
}

.game-section__copy > p:not(.eyebrow, .game-section__label) {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.game-features {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-features span {
  padding: 8px 11px;
  border: 1px solid rgba(143, 220, 255, 0.2);
  color: #9bb7c9;
  background: rgba(143, 220, 255, 0.05);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-art {
  width: 100%;
  margin: 0;
  justify-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(160, 220, 255, 0.28);
  background: rgba(2, 10, 20, 0.74);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.48);
}

.game-art img {
  width: 100%;
  aspect-ratio: 3 / 1;
  display: block;
  object-fit: cover;
  object-position: center 43%;
}

.game-art figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 44px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(160, 220, 255, 0.18);
  background: linear-gradient(90deg, rgba(1, 8, 17, 0.82), rgba(1, 8, 17, 0.96));
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.game-art figcaption span {
  color: #7894a5;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.game-art figcaption strong {
  color: var(--ice-bright);
  font-size: 21px;
  letter-spacing: 0.1em;
}

.game-preview {
  aspect-ratio: 1.35;
  overflow: hidden;
  border: 1px solid rgba(160, 220, 255, 0.28);
  background:
    linear-gradient(0deg, rgba(2, 10, 20, 0.58), transparent 55%),
    radial-gradient(circle at 50% 78%, rgba(201, 235, 250, 0.65), transparent 35%),
    linear-gradient(155deg, #081729 0%, #184158 47%, #b0ceda 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.18);
}

.game-preview::before,
.game-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.game-preview::before {
  opacity: 0.8;
  background:
    repeating-linear-gradient(105deg, transparent 0 21px, rgba(240, 250, 255, 0.15) 22px 23px, transparent 24px 38px);
  transform: scale(1.4);
  animation: preview-whiteout 4.5s linear infinite;
}

.game-preview::after {
  background:
    linear-gradient(110deg, transparent 40%, rgba(225, 248, 255, 0.24) 48%, transparent 56%),
    radial-gradient(circle at 50% 50%, transparent 36%, rgba(0, 7, 16, 0.62) 100%);
}

.game-preview__aurora {
  position: absolute;
  top: -20%;
  left: 18%;
  width: 70%;
  height: 58%;
  border-radius: 50%;
  background: linear-gradient(100deg, rgba(81, 255, 199, 0.55), rgba(132, 76, 255, 0.44), transparent);
  filter: blur(28px);
  transform: rotate(-8deg);
}

.game-preview__scope {
  position: absolute;
  z-index: 4;
  top: 43%;
  left: 57%;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(217, 245, 255, 0.82);
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgba(110, 215, 255, 0.7));
}

.game-preview__scope i {
  position: absolute;
  background: rgba(217, 245, 255, 0.82);
}

.game-preview__scope i:nth-child(1),
.game-preview__scope i:nth-child(2) {
  top: 50%;
  width: 28px;
  height: 1px;
}

.game-preview__scope i:nth-child(1) {
  left: -19px;
}

.game-preview__scope i:nth-child(2) {
  right: -19px;
}

.game-preview__scope i:nth-child(3),
.game-preview__scope i:nth-child(4) {
  left: 50%;
  width: 1px;
  height: 28px;
}

.game-preview__scope i:nth-child(3) {
  top: -19px;
}

.game-preview__scope i:nth-child(4) {
  bottom: -19px;
}

.game-preview__scope span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dff8ff;
  transform: translate(-50%, -50%);
}

.game-preview__target {
  position: absolute;
  z-index: 2;
  bottom: 18%;
  width: 54px;
  height: 105px;
  border-radius: 47% 47% 18% 18%;
  background: linear-gradient(90deg, #07101a, #172432 50%, #050a11);
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.35);
}

.game-preview__target::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 12px;
  width: 30px;
  height: 35px;
  border-radius: 46% 46% 38% 38%;
  background: #0b141e;
}

.game-preview__target::after {
  content: "";
  position: absolute;
  top: 28px;
  left: -10px;
  width: 74px;
  height: 8px;
  background: #0a121b;
  transform: rotate(-8deg);
}

.target-one {
  left: 22%;
  transform: scale(0.68);
  opacity: 0.66;
}

.target-two {
  left: 57%;
}

.target-three {
  right: 13%;
  bottom: 24%;
  transform: scale(0.48);
  opacity: 0.54;
}

.game-preview__hud,
.game-preview__footer {
  position: absolute;
  z-index: 5;
  right: 22px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
}

.game-preview__hud {
  top: 20px;
  color: #b5d5e7;
  font-size: 10px;
}

.game-preview__hud strong {
  color: #fff;
  font-size: 19px;
}

.game-preview__footer {
  bottom: 20px;
  align-items: flex-end;
  color: #6d8da1;
  font-size: 9px;
}

.game-preview__footer strong {
  color: var(--ice-bright);
  font-size: 24px;
}

.quest-status {
  grid-column: 1 / -1;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(143, 220, 255, 0.17);
  background: rgba(3, 13, 26, 0.72);
}

.quest-status > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.quest-status__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #65e4bc;
  box-shadow: 0 0 14px #65e4bc;
}

.quest-status p {
  margin: 0;
  color: #728b9b;
  font-size: 11px;
}

.quest-status p strong {
  display: block;
  margin-bottom: 2px;
  color: #c8e3ef;
  text-transform: uppercase;
}

.quest-status button,
.quest-status .steam-signin {
  padding: 10px 15px;
  border: 1px solid rgba(121, 179, 214, 0.2);
  color: #8ba6b7;
  background: rgba(135, 190, 223, 0.05);
  cursor: pointer;
  text-align: left;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.quest-status button small,
.quest-status .steam-signin small {
  display: block;
  margin-top: 3px;
  color: #526b7a;
  font-size: 8px;
  letter-spacing: 0.08em;
}

body.game-open {
  overflow: hidden;
}

.marksman-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: clamp(10px, 2vw, 30px);
  display: grid;
  place-items: center;
  background: rgba(0, 4, 10, 0.92);
  backdrop-filter: blur(16px);
}

.marksman-dialog {
  width: min(1480px, 100%);
  max-height: 100%;
  overflow: auto;
  border: 1px solid rgba(163, 222, 255, 0.25);
  background: #020914;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.8);
}

.marksman-dialog__header {
  position: static;
  width: auto;
  height: auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: #030d1a;
}

.marksman-dialog__header p {
  margin: 0 0 2px;
  color: var(--ice-bright);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 8px;
  letter-spacing: 0.22em;
}

.marksman-dialog__header h2 {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.marksman-identity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  text-align: right;
}

.marksman-identity img {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(143, 220, 255, 0.28);
  object-fit: cover;
}

.marksman-identity span,
.marksman-identity small {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.marksman-identity span {
  color: #cbeafa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.marksman-identity small {
  margin-top: 2px;
  color: #678092;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.marksman-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: #9db6c6;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.marksman-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 390px;
  overflow: hidden;
  background: #071321;
}

#marksman-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: crosshair;
  touch-action: none;
}

.marksman-hud {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr) 1.25fr repeat(2, 1fr);
  gap: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 5, 12, 0.88), transparent);
}

.marksman-hud > div {
  text-align: center;
}

.marksman-hud span,
.marksman-hud strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.marksman-hud span {
  color: #7894a5;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.marksman-hud strong {
  margin-top: 3px;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.marksman-hud__timer strong {
  color: var(--ice-bright);
  font-size: 25px;
}

.marksman-intro,
.marksman-end {
  position: absolute;
  z-index: 6;
  inset: 0;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(16, 52, 75, 0.62), rgba(1, 6, 14, 0.94) 66%),
    rgba(1, 6, 14, 0.88);
}

.marksman-intro h3,
.marksman-end h3 {
  font-size: clamp(40px, 5vw, 74px);
  letter-spacing: -0.02em;
}

.marksman-intro > p:not(.game-section__label),
.marksman-guest-note {
  max-width: 610px;
  color: #9db2bf;
  font-size: 13px;
  line-height: 1.65;
}

.marksman-legend {
  margin: 16px 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: #9bb3c1;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marksman-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.marksman-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-threat {
  background: #ffad6c;
  box-shadow: 0 0 8px #ff7a45;
}

.legend-friendly {
  background: #32b9ff;
  box-shadow: 0 0 8px #32b9ff;
}

kbd {
  padding: 2px 5px;
  border: 1px solid rgba(175, 222, 248, 0.25);
  border-radius: 2px;
  color: #d9f3ff;
  background: rgba(198, 232, 250, 0.08);
  font: inherit;
}

.marksman-results {
  width: min(620px, 100%);
  margin: 22px 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(129, 196, 231, 0.05);
}

.marksman-results > div {
  padding: 17px;
  border-right: 1px solid var(--line);
}

.marksman-results > div:last-child {
  border-right: 0;
}

.marksman-results span,
.marksman-results strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.marksman-results span {
  color: #7892a3;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.marksman-results strong {
  margin-top: 5px;
  color: #effaff;
  font-size: 25px;
  letter-spacing: 0.07em;
}

.marksman-end__actions {
  margin-top: 14px;
  display: flex;
  gap: 9px;
}

.marksman-message {
  position: absolute;
  z-index: 5;
  top: 24%;
  left: 50%;
  pointer-events: none;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 0;
}

.marksman-message.pop {
  animation: marksman-message 700ms ease-out;
}

.marksman-reload {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 17px;
  padding: 10px 14px;
  border: 1px solid rgba(138, 212, 250, 0.3);
  color: #b9e7fb;
  background: rgba(1, 9, 18, 0.76);
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.marksman-reload:disabled {
  color: #5d7483;
  cursor: wait;
}

.marksman-leaderboard {
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: rgba(3, 13, 26, 0.96);
}

.marksman-leaderboard p,
.marksman-leaderboard h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.marksman-leaderboard p {
  color: #668497;
  font-size: 7px;
  letter-spacing: 0.18em;
}

.marksman-leaderboard h3 {
  margin-top: 2px;
  color: #d6f1ff;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.marksman-leaderboard ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 7px;
  list-style: none;
}

.marksman-leaderboard li {
  min-width: 0;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  border: 1px solid rgba(143, 220, 255, 0.12);
  color: #8ca8b8;
  background: rgba(129, 196, 231, 0.035);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marksman-leaderboard li span {
  overflow: hidden;
  color: #b7d1df;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marksman-leaderboard li strong {
  color: var(--ice-bright);
  font-size: 11px;
}

.marksman-leaderboard .leaderboard-empty {
  grid-column: 1 / -1;
  display: block;
  text-align: center;
}

.marksman-dialog__footer {
  min-height: 0;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #526b7b;
  background: #020811;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes preview-whiteout {
  from {
    background-position: -220px 0;
  }
  to {
    background-position: 220px 80px;
  }
}

@keyframes marksman-message {
  0% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.9);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -18px) scale(1);
  }
}

.support-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  background:
    linear-gradient(90deg, rgba(2, 8, 18, 0.98), rgba(2, 8, 18, 0.7)),
    url("./assets/caf1440p.png") center 58% / cover;
  border-top: 1px solid var(--line);
}

.support-section > div {
  max-width: 760px;
}

footer {
  min-height: 130px;
  padding: 28px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #698090;
  background: #01050c;
  font-size: 12px;
}

footer img {
  width: 76px;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  color: #dff5ff;
  background: rgba(2, 12, 25, 0.94);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: 220ms ease;
}

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

.snow {
  position: fixed;
  z-index: 20;
  inset: -120px -190px 0;
  pointer-events: none;
  opacity: 0.68;
  background-image:
    radial-gradient(3px 3px at 20px 30px, white 48%, transparent 52%),
    radial-gradient(2px 2px at 90px 70px, white 48%, transparent 52%),
    radial-gradient(3px 3px at 150px 110px, white 48%, transparent 52%),
    radial-gradient(2px 2px at 210px 40px, white 48%, transparent 52%),
    radial-gradient(2px 2px at 260px 135px, white 48%, transparent 52%);
  background-size: 300px 170px;
}

.snow--far {
  animation:
    snowfall-far 17s linear infinite,
    snow-soft-sway 10s ease-in-out infinite alternate;
}

.snow--mid {
  opacity: 0.48;
  background-size: 230px 145px;
  animation:
    snowfall-mid 11s linear infinite,
    snow-soft-sway 7.6s ease-in-out infinite alternate;
}

.snow--near {
  opacity: 0.38;
  filter: blur(1px);
  background-size: 420px 260px;
  animation:
    snowfall-near 8s linear infinite,
    snow-soft-sway 6.4s ease-in-out infinite alternate;
}

.snow--foreground {
  z-index: 22;
  opacity: 0.58;
  filter: blur(0.7px) drop-shadow(0 0 5px rgba(218, 246, 255, 0.45));
  background-image:
    radial-gradient(8px 8px at 42px 55px, rgba(255, 255, 255, 0.92) 30%, transparent 58%),
    radial-gradient(5px 5px at 185px 220px, rgba(255, 255, 255, 0.9) 30%, transparent 60%),
    radial-gradient(10px 10px at 325px 96px, rgba(238, 251, 255, 0.84) 26%, transparent 57%),
    radial-gradient(6px 6px at 470px 305px, rgba(255, 255, 255, 0.9) 28%, transparent 60%),
    radial-gradient(7px 7px at 565px 155px, rgba(233, 248, 255, 0.76) 28%, transparent 58%);
  background-size: 640px 390px;
  animation:
    snowfall-foreground 7.8s linear infinite,
    foreground-sway 5.4s ease-in-out infinite alternate;
}

.aurora-arrival {
  position: fixed;
  z-index: 60;
  inset: -22vh -8vw auto;
  height: 72vh;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 22% 0%, rgba(64, 255, 194, 0.34), transparent 55%),
    radial-gradient(ellipse at 78% 0%, rgba(173, 74, 255, 0.36), transparent 56%);
  mix-blend-mode: screen;
}

.aurora-arrival span {
  position: absolute;
  top: -45%;
  width: 58%;
  height: 120%;
  border-radius: 45%;
  filter: blur(52px);
  transform-origin: top center;
}

.aurora-arrival__green {
  left: 4%;
  background:
    radial-gradient(ellipse at top, rgba(89, 255, 202, 1), transparent 67%),
    linear-gradient(110deg, transparent, rgba(63, 255, 194, 0.82), transparent);
}

.aurora-arrival__violet {
  right: 0;
  background:
    radial-gradient(ellipse at top, rgba(183, 91, 255, 1), transparent 68%),
    linear-gradient(75deg, transparent, rgba(133, 86, 255, 0.8), transparent);
}

.aurora-arrival__flash {
  left: 24%;
  width: 52%;
  background: radial-gradient(ellipse at top, rgba(219, 255, 248, 0.75), transparent 60%);
  filter: blur(38px);
}

.aurora-arrival.arrival-active {
  animation: aurora-arrival-shell 4.1s cubic-bezier(0.17, 0.67, 0.25, 1) forwards;
}

.aurora-arrival.arrival-active .aurora-arrival__green {
  animation: aurora-green-sweep 3.1s ease-out forwards;
}

.aurora-arrival.arrival-active .aurora-arrival__violet {
  animation: aurora-violet-sweep 3.3s 0.08s ease-out forwards;
}

.aurora-arrival.arrival-active .aurora-arrival__flash {
  animation: aurora-flash 2.4s ease-out forwards;
}

@keyframes snowfall-far {
  from {
    background-position: 0 -340px;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes snowfall-mid {
  from {
    background-position: 0 -290px;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes snowfall-near {
  from {
    background-position: 0 -520px;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes snowfall-foreground {
  from {
    background-position: 0 -780px;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes snow-soft-sway {
  from {
    transform: translateX(-18px);
  }
  to {
    transform: translateX(24px);
  }
}

@keyframes foreground-sway {
  from {
    transform: translateX(-28px) rotate(-0.5deg);
  }
  to {
    transform: translateX(38px) rotate(0.8deg);
  }
}

@keyframes aurora-arrival-shell {
  0% {
    opacity: 0;
    transform: translateY(-26%);
  }
  15% {
    opacity: 1;
  }
  55% {
    opacity: 0.94;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8%);
    visibility: hidden;
  }
}

@keyframes aurora-green-sweep {
  0% {
    transform: translateX(-35%) scaleY(0.45) rotate(-8deg);
  }
  45% {
    transform: translateX(20%) scaleY(1.1) rotate(3deg);
  }
  100% {
    transform: translateX(62%) scaleY(0.72) rotate(8deg);
  }
}

@keyframes aurora-violet-sweep {
  0% {
    transform: translateX(38%) scaleY(0.5) rotate(10deg);
  }
  48% {
    transform: translateX(-10%) scaleY(1.18) rotate(-2deg);
  }
  100% {
    transform: translateX(-55%) scaleY(0.7) rotate(-9deg);
  }
}

@keyframes aurora-flash {
  0%,
  100% {
    opacity: 0;
    transform: scaleY(0.25);
  }
  24% {
    opacity: 0.82;
  }
  48% {
    opacity: 0.32;
    transform: scaleY(1.08);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes scan {
  from {
    left: -50%;
  }
  to {
    left: 110%;
  }
}

@keyframes aurora {
  to {
    transform: translate(90px, 20px) scale(1.3);
  }
}

@media (max-width: 980px) {
  .site-header {
    height: 86px;
  }

  .brand img {
    width: 98px;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(1, 8, 18, 0.72);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    width: 24px;
    height: 2px;
    background: #fff;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 5vw;
    min-width: 220px;
    padding: 18px 22px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--line);
    background: rgba(2, 9, 20, 0.97);
    backdrop-filter: blur(16px);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav a.active::after {
    display: none;
  }

  .hero {
    align-items: flex-start;
    min-height: 980px;
    padding-top: 175px;
    background-position: 60% center;
  }

  .hero-content {
    width: min(650px, 90vw);
  }

  .server-card {
    right: 5vw;
    bottom: 75px;
    width: 90vw;
  }

  .scroll-cue {
    display: none;
  }

  .rule-grid {
    grid-template-columns: 1fr;
  }

  .rule-grid article {
    min-height: 190px;
  }

  .game-section {
    grid-template-columns: 1fr;
  }

  .game-section__copy {
    max-width: 700px;
  }

  .game-preview {
    width: 100%;
  }

  .game-art {
    justify-self: start;
  }

  .quest-status {
    grid-column: auto;
  }

  .support-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .rules-report {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .marksman-stage {
    min-height: 0;
  }

  .marksman-leaderboard {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .marksman-leaderboard ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marksman-leaderboard li:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 930px;
    padding-inline: 22px;
    background-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(1, 5, 13, 0.94), rgba(1, 7, 16, 0.34)),
      linear-gradient(0deg, rgba(1, 5, 12, 0.95), transparent 58%);
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 78px);
  }

  .hero-copy {
    font-size: 13px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .server-card {
    right: 22px;
    bottom: 36px;
    width: calc(100% - 44px);
  }

  .server-card__top {
    padding: 19px;
  }

  .server-card__stats > div {
    padding: 14px 12px;
  }

  .server-card__stats strong {
    font-size: 16px;
  }

  .content-section {
    padding: 88px 22px;
  }

  .game-section {
    min-height: auto;
    gap: 42px;
  }

  .game-section h2 {
    font-size: clamp(59px, 19vw, 88px);
  }

  .game-preview {
    aspect-ratio: 1.05;
  }

  .quest-status {
    align-items: stretch;
    flex-direction: column;
  }

  .quest-status button,
  .quest-status .steam-signin {
    width: 100%;
  }

  .marksman-modal {
    padding: 0;
  }

  .marksman-dialog {
    min-height: 100%;
    border: 0;
  }

  .marksman-dialog__header {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .marksman-identity {
    display: none;
  }

  .marksman-stage {
    min-height: 540px;
    aspect-ratio: auto;
  }

  .marksman-hud {
    padding: 12px 7px;
  }

  .marksman-hud span {
    font-size: 6px;
  }

  .marksman-hud strong,
  .marksman-hud__timer strong {
    font-size: 14px;
  }

  .marksman-intro,
  .marksman-end {
    padding: 25px 18px;
  }

  .marksman-intro h3,
  .marksman-end h3 {
    font-size: 43px;
  }

  .marksman-results {
    grid-template-columns: 1fr;
  }

  .marksman-results > div {
    padding: 9px 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .marksman-results > div:last-child {
    border-bottom: 0;
  }

  .marksman-end__actions {
    width: 100%;
    flex-direction: column;
  }

  .marksman-leaderboard {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .marksman-leaderboard ol {
    grid-template-columns: 1fr;
  }

  .marksman-leaderboard li:nth-child(n + 4) {
    display: none;
  }

  .marksman-dialog__footer {
    display: none;
  }

  footer {
    padding-inline: 22px;
  }
}

.effects-off .snow,
.effects-off .aurora-arrival {
  display: none;
}

.effects-off .effects-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  color: #7d909d;
  background: rgba(255, 255, 255, 0.04);
}
