@font-face {
  font-family: "Game Of Squids";
  src: url("assets/fonts/Game%20Of%20Squids.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07120f;
  --panel: rgba(8, 18, 17, 0.82);
  --panel-strong: rgba(9, 22, 20, 0.95);
  --line: rgba(255, 255, 255, 0.15);
  --text: #f5fff8;
  --muted: #9fb5ad;
  --guard: #ff2c7d;
  --guard-dark: #9d1247;
  --player: #1ed760;
  --teal: #44f1ce;
  --cream: #f8e8d1;
  --danger: #ff4b4b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

.arena-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(4, 11, 10, 0.22), rgba(4, 11, 10, 0.9)),
    url("https://images.unsplash.com/photo-1535223289827-42f1e9919769?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
}

.arena-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 80%);
}

.arena-bg::after {
  content: "○ △ □";
  position: absolute;
  inset: auto 4vw 7vh auto;
  color: rgba(255, 44, 125, 0.16);
  font-family: "Game Of Squids", Orbitron, sans-serif;
  font-size: clamp(80px, 14vw, 210px);
  letter-spacing: 18px;
  text-shadow: 0 0 36px rgba(255, 44, 125, .35);
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 9, 8, 0.78);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255,44,125,.9), rgba(16,30,28,.96));
  border-radius: 8px;
  font-family: "Game Of Squids", Orbitron, sans-serif;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(255,44,125,.28);
}

.brand strong, h1, h2 {
  font-family: "Game Of Squids", Orbitron, sans-serif;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab, .primary-btn, .ghost-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 11px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.tab::before {
  content: "○";
  margin-right: 8px;
  color: var(--guard);
}

.tab:nth-child(2)::before { content: "△"; }
.tab:nth-child(3)::before { content: "□"; }

.tab:hover, .primary-btn:hover, .ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
}

.tab.active, .primary-btn {
  background: linear-gradient(135deg, var(--guard), var(--guard-dark));
  border-color: rgba(255, 255, 255, 0.28);
}

.ghost-btn {
  background: rgba(30, 215, 96, 0.1);
  border-color: rgba(30, 215, 96, 0.35);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto 60px;
}

.view { display: none; }
.view.active { display: block; animation: fadeUp 0.28s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 28px;
  padding: 48px 0 32px;
}

.hero-copy {
  max-width: 640px;
  padding-bottom: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--player);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(54px, 8vw, 108px);
  margin: 0;
  line-height: 0.92;
  color: var(--cream);
  text-shadow: 0 0 38px rgba(255, 44, 125, 0.32);
}

.hero-logo-title {
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}

.hero-logo {
  display: block;
  width: clamp(320px, 38vw, 560px);
  max-width: 100%;
  height: auto;
  margin: 6px 0 18px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 20px rgba(255, 44, 125, 0.18));
}

h2 {
  font-size: 34px;
  margin: 0;
}

.lead {
  max-width: 640px;
  color: #d8eee5;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.event-panel, .summary-grid article, .clip-card, .player-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
}

.event-panel {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.event-panel::before {
  content: "△";
  position: absolute;
  right: 18px;
  top: 8px;
  color: rgba(255, 44, 125, 0.18);
  font-family: "Game Of Squids", Orbitron, sans-serif;
  font-size: 76px;
}

.event-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dfe7ff;
  font-size: 13px;
  font-weight: 800;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--guard);
  box-shadow: 0 0 16px var(--guard);
}

.event-number {
  font-family: "Game Of Squids", Orbitron, sans-serif;
  font-size: 88px;
  line-height: 1;
  margin-top: 20px;
  color: var(--player);
}

.event-label, .meta-row, .clip-card p, .player small {
  color: var(--muted);
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 18px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--guard), var(--player));
}

.meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
}

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

.summary-grid article {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.summary-grid article::after {
  content: "○";
  position: absolute;
  right: 16px;
  bottom: -20px;
  color: rgba(255, 44, 125, .12);
  font-size: 72px;
  font-family: "Game Of Squids", Orbitron, sans-serif;
}

.summary-grid article:nth-child(2)::after { content: "△"; }
.summary-grid article:nth-child(3)::after { content: "□"; }

.summary-grid span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.summary-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 26px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.small { padding: 9px 13px; }

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

.clip-card { overflow: hidden; }

.clip-thumb {
  height: 220px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.clip-thumb::before {
  content: "REC";
  position: absolute;
  left: 12px;
  top: 12px;
  color: #fff;
  background: rgba(255, 44, 125, .9);
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.clip-thumb span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  font-weight: 800;
}

.c1 { background-image: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.38)), url("https://images.unsplash.com/photo-1618346136472-090de27fe3b5?auto=format&fit=crop&w=900&q=80"); }
.c2 { background-image: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.38)), url("https://images.unsplash.com/photo-1519751138087-5bf79df62d5b?auto=format&fit=crop&w=900&q=80"); }
.c3 { background-image: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.38)), url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=900&q=80"); }

.clip-card h3, .clip-card p { padding: 0 16px; }
.clip-card h3 { margin: 15px 0 6px; }
.clip-card p { margin: 0 0 16px; }

.search {
  width: 260px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.players {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: 18px;
}

.player-card {
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(30, 215, 96, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(255, 44, 125, 0.13), transparent 44%);
  opacity: 0.9;
  z-index: -1;
}

.player-card.is-dead::before {
  background:
    linear-gradient(135deg, rgba(255, 75, 75, 0.19), transparent 42%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.08), transparent 44%);
}

.player-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 24%, rgba(68, 241, 206, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.28));
  overflow: hidden;
}

.player-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.player-card.is-dead .player-image {
  filter: grayscale(0.25) contrast(1.08) brightness(0.82);
}

.player-number,
.state-ribbon {
  position: absolute;
  font-weight: 900;
}

.player-number {
  left: 14px;
  top: 13px;
  font-family: "Game Of Squids", Orbitron, sans-serif;
  color: rgba(248, 232, 209, 0.9);
  font-size: 34px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.state-ribbon {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 215, 96, 0.88);
  color: #03110a;
  font-size: 12px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.player-card.is-dead .state-ribbon {
  background: rgba(255, 75, 75, 0.9);
  color: #fff;
}

.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.rank {
  display: block;
  margin-bottom: 5px;
  font-family: "Game Of Squids", Orbitron, sans-serif;
  color: var(--guard);
}

.player strong {
  display: block;
  font-size: 21px;
  line-height: 1;
}

.player small { display: block; }

.state-switch {
  display: grid;
  gap: 7px;
  min-width: 86px;
}

.state-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.state-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
}

.state-btn.active[data-state="alive"] {
  background: rgba(30, 215, 96, 0.2);
  border-color: rgba(30, 215, 96, 0.55);
  color: var(--player);
}

.state-btn.active[data-state="dead"] {
  background: rgba(255, 75, 75, 0.18);
  border-color: rgba(255, 75, 75, 0.55);
  color: #ff9b9b;
}

@media (max-width: 820px) {
  .topbar {
    height: auto;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 28px 0 20px; }
  .hero-copy, .event-panel { margin: 0; padding-bottom: 0; }
  .hero-logo { width: min(100%, 430px); margin: 4px 0 14px; }
  .summary-grid, .clips-grid { grid-template-columns: 1fr; }
  .section-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .search { width: 100%; }
  .players { grid-template-columns: 1fr; }
  .player-info { align-items: stretch; flex-direction: column; }
  .state-switch { grid-template-columns: repeat(2, 1fr); }
}
