@import url("https://fonts.cdnfonts.com/css/chinese-rocks");
@import url("https://fonts.cdnfonts.com/css/typewriter");

:root {
  --ink: #f4ead8;
  --muted: #c9bfae;
  --paper: #211814;
  --panel: rgba(18, 14, 12, 0.88);
  --line: rgba(235, 187, 103, 0.35);
  --gold: #d99536;
  --red: #9f1d16;
  --black: #070504;
  --shadow: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(7, 5, 4, 0.68), rgba(7, 5, 4, 0.92)),
    url("./background-f49ab53a8fa340f8.png") center / cover fixed;
  font-family: Typewriter, Georgia, serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background: url("./noise-2e797020c7cb7a45.png") center / 480px;
  mix-blend-mode: screen;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(7, 5, 4, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 0.9;
  font-family: "Chinese Rocks Rg", Impact, fantasy;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: clamp(48px, 7vw, 72px);
  height: auto;
  filter: drop-shadow(0 4px 14px var(--shadow));
}

.brand span {
  display: grid;
  gap: 0;
}

.brand strong {
  color: var(--gold);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
}

.brand small {
  color: var(--ink);
  font-size: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 180ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--ink);
}

.nav-cta {
  color: var(--gold);
}

.hero {
  min-height: 82vh;
  display: flex;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  align-items: flex-end;
  padding: clamp(96px, 13vw, 160px) clamp(18px, 5vw, 72px) clamp(48px, 8vw, 88px);
  background:
    linear-gradient(rgba(7, 5, 4, 0.08), rgba(7, 5, 4, 0.82)),
    url("./banner-2022d3509f9afe23.png") center / cover;
}

.hero-copy {
  max-width: 820px;
  text-shadow: 0 2px 18px var(--shadow);
}

.hero-logo {
  width: clamp(118px, 18vw, 220px);
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.75));
}

.player-feed {
  width: min(100%, 320px);
  padding: 20px;
  background: rgba(7, 5, 4, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px var(--shadow);
  backdrop-filter: blur(8px);
}

.player-feed::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--gold);
}

.feed-kicker,
.player-feed small {
  display: block;
  color: var(--muted);
  font: 700 12px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-feed strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: "Chinese Rocks Rg", Impact, fantasy;
  font-size: clamp(54px, 8vw, 88px);
  line-height: 0.9;
}

.player-feed span[data-player-detail] {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 18px;
}

.player-feed small {
  margin-top: 16px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.player-feed[data-state="online"]::before {
  background: #00d294;
}

.player-feed[data-state="offline"]::before {
  background: var(--red);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font: 700 14px/1.4 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Chinese Rocks Rg", Impact, fantasy;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  font-size: clamp(58px, 11vw, 142px);
  line-height: 0.85;
}

h2 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.9;
}

h3 {
  color: var(--gold);
  font-size: 34px;
}

.hero p,
.section-heading p,
.apply-band p,
.role-grid p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions,
.rules-actions,
.apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(7, 5, 4, 0.72);
  color: var(--ink);
  font: 700 14px/1 system-ui, sans-serif;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.button.primary {
  background: var(--red);
  border-color: #c24434;
}

.button.secondary {
  color: var(--gold);
}

.rules-section,
.game-band,
.content-band,
.apply-band {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: rgba(7, 5, 4, 0.72);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 28px;
}

.rules-frame {
  height: min(78vh, 980px);
  min-height: 560px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 60px var(--shadow);
}

.rules-frame object,
.rules-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rules-frame p {
  padding: 24px;
}

.rules-frame a {
  color: var(--gold);
  text-decoration: underline;
}

.target-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
}

.game-hud {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(90px, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
}

.game-hud div,
.game-name,
.leaderboard {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.game-hud span,
.game-name span {
  display: block;
  color: var(--muted);
  font: 700 12px/1.2 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-name input {
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(7, 5, 4, 0.72);
  border: 1px solid var(--line);
  outline: none;
}

.game-name input:focus {
  border-color: var(--gold);
}

.game-hud strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: "Chinese Rocks Rg", Impact, fantasy;
  font-size: 42px;
  line-height: 0.9;
}

.game-hud .button {
  width: 100%;
  min-height: 100%;
}

.game-range {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  cursor: crosshair;
  background:
    linear-gradient(rgba(7, 5, 4, 0.2), rgba(7, 5, 4, 0.78)),
    url("./background-f49ab53a8fa340f8.png") center / cover;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.55);
}

.game-range::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(65, 36, 18, 0.86));
}

.game-range p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 20px;
}

.target {
  position: absolute;
  width: 74px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  cursor: crosshair;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, #33100d 0 14%, #f4ead8 15% 29%, #9f1d16 30% 48%, #f4ead8 49% 66%, #211814 67%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  animation: target-pop 0.16s ease-out;
}

.target span {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  color: var(--gold);
  font: 700 13px/1 system-ui, sans-serif;
  text-shadow: 0 2px 4px #000;
}

.target.hit {
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
}

.bonus-target {
  width: 98px;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.75));
  animation: bonus-flash 1s ease both;
}

.bonus-target img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.bonus-target span {
  bottom: -18px;
  color: var(--gold);
  font-size: 16px;
}

.leaderboard h3 {
  margin-bottom: 14px;
}

.leaderboard ol {
  display: grid;
  gap: 8px;
  list-style: decimal inside;
}

.leaderboard li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(235, 187, 103, 0.18);
}

.leaderboard strong {
  color: var(--gold);
}

@keyframes target-pop {
  from {
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0;
  }
}

@keyframes bonus-flash {
  0% {
    transform: translate(-50%, -50%) scale(0.35) rotate(-8deg);
    opacity: 0;
  }

  12%,
  78% {
    transform: translate(-50%, -50%) scale(1) rotate(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.7) rotate(8deg);
    opacity: 0;
  }
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.role-grid article {
  min-height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.role-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

.role-card-text {
  background: var(--panel);
}

.role-more {
  border-color: var(--gold);
}

.role-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 260ms ease, filter 260ms ease;
}

.role-grid article:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.role-grid h3,
.role-grid p {
  padding-inline: 18px;
}

.role-grid h3 {
  padding-top: 18px;
}

.role-grid p {
  padding-bottom: 20px;
  font-size: 16px;
}

.staff-band {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: rgba(13, 10, 8, 0.84);
  border-top: 1px solid var(--line);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.staff-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.staff-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

.staff-grid img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.staff-grid h3 {
  padding: 16px 18px 18px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
}

.gallery-band {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: rgba(7, 5, 4, 0.72);
  border-top: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: clamp(180px, 20vw, 320px);
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    filter 220ms ease;
}

.gallery-grid img:hover,
.gallery-grid img:focus-visible {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--gold);
  filter: saturate(1.08) contrast(1.04);
  outline: none;
}

.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(10) {
  grid-column: span 2;
}

.discord-band {
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(rgba(13, 10, 8, 0.88), rgba(13, 10, 8, 0.92)),
    url("./gallery-10.png") center / cover;
  border-top: 1px solid var(--line);
}

.discord-copy {
  max-width: 720px;
}

.discord-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--muted);
}

.reference-hero {
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(96px, 13vw, 150px) clamp(18px, 5vw, 72px) clamp(48px, 8vw, 84px);
  background:
    linear-gradient(rgba(7, 5, 4, 0.2), rgba(7, 5, 4, 0.88)),
    url("./gallery-07.png") center / cover;
  border-bottom: 1px solid var(--line);
}

.reference-hero > div {
  max-width: 960px;
  text-shadow: 0 2px 18px var(--shadow);
}

.reference-band {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: rgba(7, 5, 4, 0.78);
  border-top: 1px solid var(--line);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.keybind-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.keybind-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.keybind-row:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

.keybind-row h2 {
  margin-bottom: 6px;
  font-size: clamp(30px, 4vw, 48px);
}

.keybind-row p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

.keycap {
  display: grid;
  place-items: center;
  width: 92px;
  min-height: 78px;
  padding: 12px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244, 234, 216, 0.14), rgba(7, 5, 4, 0.5)),
    #17110f;
  border: 1px solid rgba(244, 234, 216, 0.42);
  border-bottom-width: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.35);
  font: 800 30px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.keycap.wide {
  width: 104px;
  font-size: 24px;
}

.reference-card {
  padding: clamp(18px, 3vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
}

.reference-card h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
}

.reference-card-wide {
  grid-column: 1 / -1;
}

.reference-list,
.command-list,
.key-command-list {
  display: grid;
  gap: 10px;
}

.reference-list div,
.command-list div,
.key-command-list div {
  display: grid;
  grid-template-columns: minmax(94px, max-content) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(235, 187, 103, 0.16);
}

kbd,
code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--gold);
  background: rgba(7, 5, 4, 0.72);
  border: 1px solid var(--line);
  font: 700 14px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.reference-list span,
.command-list span,
.key-command-list span {
  color: var(--muted);
  line-height: 1.5;
}

.apply-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--black);
  border-top: 1px solid var(--line);
}

footer a {
  color: var(--gold);
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  place-items: center;
  gap: 12px;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(7, 5, 4, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  width: min(100%, 1180px);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}

.lightbox figcaption {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

.lightbox button {
  border: 1px solid var(--line);
  background: rgba(18, 14, 12, 0.9);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  border-color: var(--gold);
  background: rgba(159, 29, 22, 0.88);
  outline: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-nav {
  width: 54px;
  height: 72px;
  font-size: 54px;
  line-height: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 42px;
  height: auto;
  filter: drop-shadow(0 4px 12px var(--shadow));
}

@media (max-width: 760px) {
  .site-header,
  .apply-band,
  .discord-band,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .brand img {
    width: 48px;
  }

  .brand strong {
    font-size: 28px;
  }

  .hero {
    min-height: 76vh;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
  }

  .role-grid,
  .staff-grid,
  .target-game,
  .gallery-band,
  .gallery-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-list div,
  .command-list div,
  .key-command-list div,
  .keybind-row {
    grid-template-columns: 1fr;
  }

  .keycap,
  .keycap.wide {
    width: 100%;
    min-height: 64px;
  }

  .game-hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-name {
    grid-column: 1 / -1;
  }

  .game-hud .button {
    grid-column: 1 / -1;
    min-height: 46px;
  }

  .game-range {
    min-height: 360px;
  }

  .rules-frame {
    min-height: 480px;
  }
}
