:root {
  color-scheme: dark;
  --black: #050505;
  --void: #020202;
  --ink: #101010;
  --charcoal: #181818;
  --smoke: #242424;
  --steel: #3c3c3c;
  --gray: #9a9a9a;
  --silver: #d8d8d8;
  --white: #f7f7f4;
  --line: rgba(255, 255, 255, 0.14);
  --line-bright: rgba(255, 255, 255, 0.34);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, transparent 0 64%, rgba(255, 255, 255, 0.055) 64% 64.35%, transparent 64.35%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #0d0d0d 0%, #030303 42%, #151515 100%);
  background-size: auto, 54px 54px, auto;
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px),
    linear-gradient(118deg, transparent 0 62%, rgba(255, 255, 255, 0.11) 62% 62.4%, transparent 62.4%),
    linear-gradient(70deg, transparent 0 36%, rgba(255, 255, 255, 0.06) 36% 36.25%, transparent 36.25%);
  opacity: 0.9;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(247, 247, 244, 0.06), transparent 34%),
    rgba(3, 3, 3, 0.9);
  border-bottom: 1px solid var(--line-bright);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--white);
  overflow: visible;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.16);
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: center;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--silver);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 34px);
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 44px;
}

.auth-link {
  color: var(--silver);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-link:hover {
  color: var(--white);
}

.auth-button {
  min-height: 40px;
  padding: 0 16px;
  background: var(--white);
  color: var(--black);
  font-size: 0.82rem;
}

.auth-status {
  display: inline-grid;
  min-height: 34px;
  align-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--silver);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.user-button-mount {
  display: inline-grid;
  place-items: center;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  min-height: calc(78svh - 74px);
  padding: clamp(46px, 7vw, 78px) clamp(18px, 6vw, 88px) clamp(38px, 6vw, 64px);
  border-bottom: 1px solid var(--line-bright);
  overflow: hidden;
}

.hero::before {
  content: "WPK";
  position: absolute;
  right: -0.05em;
  top: 50%;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.075);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(14rem, 34vw, 34rem);
  line-height: 1;
  transform: translateY(-50%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 22%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.04) 46%, rgba(0, 0, 0, 0.2));
  clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%);
  opacity: 0.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--white);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(3.5rem, 7.4vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  text-shadow:
    0 1px 0 #bdbdbd,
    0 16px 38px rgba(255, 255, 255, 0.12),
    0 26px 74px rgba(0, 0, 0, 0.86);
}

h1 span {
  display: block;
}

.hero-text {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--silver);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.play-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--white);
  border-radius: 2px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button::before,
.play-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.4) 48%, transparent 62% 100%);
  transform: translateX(-115%);
  transition: transform 320ms ease;
}

.button:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.button:hover::before,
.play-button:hover::before {
  transform: translateX(115%);
}

.button.auth-button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.82rem;
}

.primary,
.play-button {
  background: var(--white);
  color: var(--black);
}

.ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.button.muted {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--silver);
  cursor: default;
  box-shadow: none;
}

.button.muted::before {
  display: none;
}

.button.muted:hover {
  transform: none;
  box-shadow: none;
}

.wolf-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(48vw, 560px);
  isolation: isolate;
}

.wolf-stage::before,
.wolf-stage::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  aspect-ratio: 1;
}

.wolf-stage::before {
  width: min(88%, 560px);
  animation: spin 26s linear infinite;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.18), transparent 28%);
  mask: radial-gradient(circle, transparent 66%, #000 67%);
}

.wolf-stage::after {
  width: min(94%, 610px);
  transform: rotate(-12deg);
  border-style: dashed;
  opacity: 0.42;
}

.moon-ring {
  position: absolute;
  width: min(76%, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.17) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 68%);
  background-size: 24px 24px, auto;
  box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.08), 0 0 90px rgba(255, 255, 255, 0.08);
  animation: pulse 4s ease-in-out infinite;
}

.wolf-stage img {
  position: relative;
  z-index: 1;
  width: min(76%, 440px);
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  filter: grayscale(1) contrast(1.15);
}

.stage-label {
  position: absolute;
  right: 7%;
  bottom: 10%;
  z-index: 2;
  padding: 10px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  background: rgba(5, 5, 5, 0.84);
  color: var(--white);
  font-weight: 900;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: clamp(18px, 4vw, 34px) clamp(18px, 6vw, 88px) 0;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  border-bottom: 1px solid var(--line-bright);
  background: var(--white);
  color: var(--black);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    10px 10px 0 rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.ticker span {
  position: relative;
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px clamp(14px, 2.2vw, 24px);
  border-right: 1px solid rgba(0, 0, 0, 0.18);
  text-align: left;
}

.ticker span:nth-child(even) {
  background: #e7e7e2;
}

.ticker span:last-child {
  border-right: 0;
}

.ticker span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 42%, rgba(0, 0, 0, 0.08) 42% 43%, transparent 43%);
  pointer-events: none;
}

.games-preview {
  scroll-margin-top: 76px;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 6vw, 88px);
  border-bottom: 1px solid var(--line-bright);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), transparent 34%),
    linear-gradient(180deg, #101010, #080808);
}

.preview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.preview-heading h2 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

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

.preview-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 42%),
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(255, 255, 255, 0.025) 13px 14px),
    #111;
  overflow: hidden;
}

.preview-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.13) 50%);
}

.preview-number {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  font-family: Anton, Impact, sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.1);
}

.preview-card h3 {
  margin: 6px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1;
  text-transform: uppercase;
}

.section {
  scroll-margin-top: 76px;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
}

.page-hero {
  position: relative;
  min-height: 46svh;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 6vw, 88px) 32px;
  border-bottom: 1px solid var(--line-bright);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.09) 58% 58.4%, transparent 58.4%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06));
}

.page-hero h1 {
  max-width: 100%;
  font-size: clamp(4rem, 14vw, 10rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--silver);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: end;
  gap: clamp(28px, 6vw, 76px);
  padding: clamp(52px, 7vw, 86px) clamp(18px, 6vw, 88px) clamp(32px, 5vw, 54px);
  border-bottom: 1px solid var(--line-bright);
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(255, 255, 255, 0.1) 62% 62.4%, transparent 62.4%),
    linear-gradient(180deg, #0e0e0e, #050505);
  overflow: hidden;
}

.hub-hero::before {
  content: "HUB";
  position: absolute;
  right: -0.04em;
  bottom: -0.18em;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(12rem, 30vw, 28rem);
  line-height: 1;
}

.hub-hero > * {
  position: relative;
  z-index: 1;
}

.hub-hero h1 {
  font-size: clamp(4.4rem, 12vw, 10rem);
}

.hub-hero p:not(.eyebrow):not(.game-type) {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--silver);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.hub-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, transparent 0 15px, rgba(255, 255, 255, 0.03) 15px 16px),
    rgba(8, 8, 8, 0.9);
  box-shadow: var(--shadow);
}

.hub-panel h2 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.hub-panel .button {
  width: fit-content;
  margin-top: 8px;
}

.hub-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(18px, 4vw, 34px) clamp(18px, 6vw, 88px) 0;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow:
    10px 10px 0 rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.hub-strip span {
  display: grid;
  gap: 4px;
  min-height: 78px;
  align-content: center;
  padding: 14px clamp(14px, 2.2vw, 24px);
  border-right: 1px solid rgba(0, 0, 0, 0.18);
  color: rgba(5, 5, 5, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-strip span:last-child {
  border-right: 0;
}

.hub-strip strong {
  color: var(--black);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.hub-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 18px;
}

.hub-history,
.member-updates {
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 38%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 10px),
    #121212;
}

.hub-history h2,
.member-updates h2 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.history-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.history-list article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.history-list span {
  color: var(--gray);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-list strong {
  color: var(--silver);
  line-height: 1.45;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  min-height: calc(100svh - 75px);
  padding: clamp(48px, 7vw, 92px) clamp(18px, 6vw, 88px);
  border-bottom: 1px solid var(--line-bright);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.09), transparent 34%),
    linear-gradient(180deg, #080808, #111);
}

.auth-copy p:not(.eyebrow) {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--silver);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.auth-panel {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, 0.025) 16px 17px),
    #0f0f0f;
  box-shadow: var(--shadow);
}

.clerk-mount {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 16px;
}

.clerk-embed {
  width: 100%;
  display: grid;
  place-items: center;
}

.auth-placeholder {
  width: 100%;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-placeholder h2 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
}

.auth-placeholder p:not(.game-type) {
  max-width: 520px;
  color: var(--silver);
  line-height: 1.55;
}

.auth-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.join-section {
  border-bottom: 1px solid var(--line-bright);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 36%),
    linear-gradient(180deg, #080808, #121212);
}

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

.join-card {
  position: relative;
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 42%),
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, 0.025) 16px 17px),
    #111;
  overflow: hidden;
}

.join-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--white);
  opacity: 0.86;
}

.join-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  font-family: Anton, Impact, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

.join-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1;
  text-transform: uppercase;
}

.join-card p {
  margin: 0;
  color: var(--silver);
  line-height: 1.55;
}

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

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

.news-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 38%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 10px),
    #121212;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--white);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.22);
}

.news-card h3 {
  margin: 12px 0;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1;
  text-transform: uppercase;
}

.news-card p:not(.game-type) {
  margin: 0;
  color: var(--silver);
  line-height: 1.55;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-rows: 230px 1fr;
  min-height: 520px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #121212;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
  transition: transform 160ms ease, border-color 160ms ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(255, 255, 255, 0.85);
  opacity: 0.75;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.42);
}

.game-art {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  overflow: hidden;
}

.game-art::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  transform: rotate(-6deg);
}

.game-art::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.18);
}

.game-art span {
  position: relative;
  z-index: 1;
  color: var(--black);
  font-family: Anton, Impact, sans-serif;
  font-size: 6rem;
  line-height: 1;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clone-wars-art::before,
.clone-wars-art::after {
  display: none;
}

.runner-art {
  background:
    linear-gradient(115deg, transparent 0 45%, rgba(255, 255, 255, 0.15) 45% 46%, transparent 46%),
    linear-gradient(135deg, #0a0a0a, #353535);
}

.maze-art {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, 0.08) 70%),
    linear-gradient(180deg, #242424, #080808);
  background-size: 48px 48px, auto;
}

.catch-art {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.16), transparent 22%),
    repeating-linear-gradient(120deg, transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 19px),
    linear-gradient(135deg, #040404, #2c2c2c 55%, #111);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.game-type {
  margin: 0;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-card h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1;
  text-transform: uppercase;
}

.game-card p:not(.game-type) {
  margin: 0;
  color: var(--silver);
  line-height: 1.55;
}

.play-button {
  width: 100%;
  margin-top: auto;
}

.play-button.disabled,
.play-button:disabled {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 16px),
    #2b2b2b;
  color: #bdbdbd;
  cursor: not-allowed;
}

label {
  display: grid;
  gap: 8px;
  color: var(--silver);
  font-weight: 900;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #121212;
  color: var(--white);
  padding: 0 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.035);
    opacity: 1;
  }
}

.player-modal {
  width: min(1120px, calc(100vw - 24px));
  height: min(760px, calc(100svh - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080808;
  color: var(--white);
  box-shadow: var(--shadow);
}

.player-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 16px 0 22px;
  border-bottom: 1px solid var(--line);
}

.player-bar h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.close-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-weight: 900;
}

#game-frame {
  display: block;
  width: 100%;
  height: calc(100% - 58px);
  border: 0;
  background: #000;
}

@media (max-width: 980px) {
  .hero,
  .page-hero,
  .hub-hero,
  .auth-page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .wolf-stage {
    min-height: 360px;
  }

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

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

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

  .join-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-lower {
    grid-template-columns: 1fr;
  }

  .game-card {
    grid-template-columns: minmax(190px, 0.7fr) 1fr;
    grid-template-rows: 1fr;
    min-height: 320px;
  }

  .auth-panel {
    min-height: 480px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .brand {
    max-width: 100%;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 28px;
    font-size: 0.78rem;
  }

  .header-right {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .auth-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.65rem, 9vw, 4rem);
  }

  .wolf-stage {
    min-height: 300px;
  }

  .moon-ring {
    width: min(72%, 300px);
  }

  .wolf-stage img {
    width: min(66%, 280px);
  }

  .stage-label {
    display: none;
  }

  .ticker {
    grid-template-columns: repeat(4, minmax(164px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .ticker span {
    scroll-snap-align: start;
  }

  .hub-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-strip span:nth-child(2) {
    border-right: 0;
  }

  .hub-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  }

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

  .section-heading {
    display: block;
  }

  .preview-heading {
    display: block;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
