:root {
  --red:#ff242c;
  --green:#39eb69;
  --muted:#9b9ba2;
  --line:rgba(255,255,255,.18);
  --shell:1180px
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  min-width:320px;
  background:#020203;
  color:#f5f5f5;
  font-family:"Arial Narrow","Roboto Condensed",Arial,sans-serif;
  letter-spacing:.035em
}

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

.shell {
  width:min(var(--shell),calc(100% - 48px));
  margin-inline:auto
}

.site-header {
  height:108px;
  background:#020203;
  border-bottom:1px solid rgba(255,255,255,.035);
  position:relative;
  z-index:20
}

.nav-inner {
  height:100%;
  display:grid;
  grid-template-columns:290px 1fr 190px;
  align-items:center
}

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

.brand img {
  width:76px;
  height:72px;
  object-fit:contain;
  filter:drop-shadow(0 0 12px rgba(255,25,35,.22))
}

.brand span {
  display:grid;
  gap:5px
}

.brand strong {
  font-size:17px;
  letter-spacing:.29em
}

.brand small {
  font-size:9px;
  color:var(--red);
  letter-spacing:.34em
}

.primary-nav {
  display:flex;
  justify-content:center;
  gap:32px;
  height:100%;
  align-items:center
}

.primary-nav a {
  height:100%;
  display:grid;
  place-items:center;
  position:relative;
  color:#aaaab0;
  font-size:12px;
  letter-spacing:.08em
}

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

.primary-nav a.active:after {
  content:"";
  position:absolute;
  bottom:28px;
  left:0;
  right:0;
  height:2px;
  background:var(--red);
  box-shadow:0 0 9px var(--red)
}

.discord-btn {
  height:44px;
  border:1px solid rgba(255,36,44,.8);
  border-radius:4px;
  color:var(--red);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-weight:700;
  font-size:12px;
  letter-spacing:.08em
}

.nav-toggle {
  display:none
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 43px 0 28px;
  background-color: #020203;
  background-image: url("../images/hero-network-background.webp");
  background-repeat: no-repeat;
  background-position: center -270px;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(2, 2, 3, 0.40) 0%,
      rgba(2, 2, 3, 0.28) 34%,
      rgba(2, 2, 3, 0.48) 72%,
      rgba(2, 2, 3, 0.88) 92%,
      #020203 100%
    );
}

.hero-grid {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align:center
}

.eyebrow {
  margin:0;
  font-size:13px;
  letter-spacing:.43em
}

.eyebrow span {
  color:var(--red)
}

h1 {
  margin:8px 0 4px;
  font-size:clamp(76px,8.6vw,132px);
  line-height:.9;
  letter-spacing:.018em;
  font-weight:900;
  background:linear-gradient(#fff 0,#e5e5e5 36%,#9b9b9f 72%,#efefef 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 10px 35px rgba(255,255,255,.06)
}

.tagline {
  margin:0;
  font-size:14px;
  letter-spacing:.45em
}

.network-panel {
  position: relative;
  width: min(100%, 900px);
  height: 235px;
  margin-top: 32px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 205px 1fr;
  align-items: center;
  column-gap: 6px;
  padding: 14px 22px;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.96), rgba(3, 3, 4, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  clip-path: polygon(
    3% 0,
    97% 0,
    100% 11%,
    100% 89%,
    97% 100%,
    3% 100%,
    0 89%,
    0 11%
  );
  box-shadow:
    inset 0 0 45px rgba(255, 255, 255, 0.018),
    0 24px 54px rgba(0, 0, 0, 0.62);
}

.network-panel::before {
  content: "";
  position: absolute;
  inset: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  clip-path: inherit;
  pointer-events: none;
}

.edge-light {
  position: absolute;
  top: 63px;
  width: 2px;
  height: 108px;
  background: var(--red);
  box-shadow:
    0 0 7px var(--red),
    0 0 20px rgba(255, 36, 44, 0.78);
}

.edge-light--left {
  left:1px
}

.edge-light--right {
  right:1px
}

.panel-side {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 12px;
}

.panel-side--left,
.panel-side--right {
  justify-items: center;
  text-align: center;
}

.panel-side--left {
  grid-column: 1;
}

.dial-wrap {
  grid-column: 2;
}

.panel-side--right {
  grid-column: 3;
}

.metric {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.metric-icon {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.users-icon {
  font-size: 15px;
  letter-spacing: -0.18em;
}

.bolt-icon {
  font-size: 24px;
}

.signal-icon {
  font-size: 17px;
}

.metric span {
  color: #b3b3b8;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.metric strong {
  font-size: 24px;
  line-height: 1;
}

.metric strong.online {
  color: var(--green);
  font-size: 18px;
}

.metric-divider {
  width: min(125px, 80%);
  height: 1px;
  margin: auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.17),
    transparent
  );
}

.dial-wrap {
  height: 100%;
  display: grid;
  place-items: center;
}

.dial {
  position: relative;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #050506 0 53%, transparent 54%),
    conic-gradient(
      from 226deg,
      rgba(255, 255, 255, 0.08) 0 57%,
      #ff222b 57% 76%,
      rgba(255, 255, 255, 0.07) 76%
    );
  box-shadow:
    0 0 0 3px #050505,
    0 0 0 4px rgba(255, 255, 255, 0.14),
    0 0 0 11px #070708,
    0 0 0 12px rgba(255, 255, 255, 0.10),
    inset 0 0 28px rgba(255, 0, 0, 0.12),
    0 0 22px rgba(255, 0, 0, 0.11);
}

.dial-bezel {
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.dial-ticks {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.72) 0 1deg,
      transparent 1deg 6deg
    );
  mask: radial-gradient(circle, transparent 0 79%, #000 80%);
}

.dial-red-arc {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 42deg, var(--red) 0 28%, transparent 28%);
  mask: radial-gradient(circle, transparent 0 86%, #000 87%);
  filter: drop-shadow(0 0 6px var(--red));
}

.dial-core {
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.dial-core strong {
  font-size: 62px;
  line-height: 0.86;
}

.dial-core span {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.dial-core small {
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.dial-lights {
  position: absolute;
  bottom: 7px;
  display: flex;
  gap: 6px;
}

.dial-lights i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b4b4e;
}

.dial-lights i:first-child {
  background:var(--red);
  box-shadow:0 0 8px var(--red)
}

.games {
  padding:26px 0 32px
}

.section-heading {
  text-align:center
}

.section-heading h2 {
  margin:0;
  font-size:23px;
  letter-spacing:.34em
}

.section-heading p {
  margin:6px 0 0;
  font-size:10px;
  color:#999;
  letter-spacing:.14em
}

.game-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  margin-top:20px
}

.game-card {
  border:1px solid rgba(255,255,255,.25);
  border-radius:6px;
  overflow:hidden;
  background:#060607;
  box-shadow:0 18px 45px rgba(0,0,0,.4)
}

.game-art {
  height:250px;
  background-size:cover;
  background-position:center;
  position:relative
}

.game-art:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 50%,rgba(0,0,0,.75))
}

.game-name {
  position:absolute;
  z-index:2;
  left:25px;
  top:22px;
  font-size:31px;
  font-weight:900
}

.game-stats {
  min-height:96px;
  display:grid;
  grid-template-columns:1fr 110px;
  align-items:center;
  padding:14px 24px;
  border-top:1px solid rgba(255,255,255,.08);
  background:linear-gradient(90deg,#080809,#050506)
}

.game-stats>div {
  display:grid;
  gap:4px
}

.game-stats strong {
  font-size:47px;
  line-height:.9
}

.game-stats span {
  font-size:11px
}

.joining {
  text-align:center
}

.joining strong {
  font-size:33px;
  color:var(--red)
}

.joining i {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--red);
  margin:2px 2px 0;
  box-shadow:0 0 7px var(--red)
}

.game-footer {
  height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 22px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:12px;
  color:#aaa
}

.game-footer b {
  width:38px;
  height:38px;
  border:1px solid var(--red);
  color:var(--red);
  border-radius:4px;
  display:grid;
  place-items:center;
  font-size:20px
}

.features {
  margin-top:0;
  border:1px solid rgba(255,255,255,.22);
  border-radius:6px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:26px 0
}

.features article {
  text-align:center;
  padding:0 25px;
  border-right:1px solid rgba(255,255,255,.12)
}

.features article:last-child {
  border:0
}

.features article>div {
  font-size:44px;
  color:var(--red)
}

.features h3 {
  font-size:14px;
  letter-spacing:.08em
}

.features p {
  color:#aaa;
  font-size:12px;
  line-height:1.7
}

.site-footer {
  margin-top:38px;
  padding:0 0 20px
}

.footer-grid {
  display:grid;
  grid-template-columns:1.55fr repeat(3,.8fr) 1.2fr;
  gap:42px;
  padding:0 8px
}

.footer-grid h4 {
  font-size:12px;
  letter-spacing:.14em
}

.footer-grid a:not(.discord-btn) {
  display:block;
  color:#aaa;
  font-size:12px;
  margin:10px 0
}

.footer-grid p {
  color:#999;
  font-size:12px;
  line-height:1.6
}

.footer-brand .brand img {
  width:70px
}

.socials {
  color:#999;
  letter-spacing:.35em
}

.footer-bottom {
  margin-top:24px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.05);
  display:flex;
  justify-content:space-between;
  color:#777;
  font-size:10px;
  letter-spacing:.08em
}

@media(max-width:1050px) {
.nav-inner {
    grid-template-columns:auto 1fr auto
  }

.primary-nav {
    gap:18px
  }

.network-panel {
    grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
    column-gap: 10px;
    padding-inline: 22px;
  }

.dial {
    width: 205px;
  }

.game-grid {
    gap:16px
  }

}

@media(max-width:820px) {
.network-panel {
    width: 100%;
  }

.site-header {
    height:82px
  }

.nav-inner {
    grid-template-columns:1fr auto
  }

.brand img {
    width:58px;
    height:56px
  }

.discord-btn {
    display:none
  }

.nav-toggle {
    display:block;
    background:none;
    border:0;
    width:38px
  }

.nav-toggle span {
    display:block;
    height:2px;
    background:#fff;
    margin:6px
  }

.primary-nav {
    display:none;
    position:absolute;
    top:82px;
    left:0;
    right:0;
    height:auto;
    padding:20px;
    background:#050506;
    flex-direction:column
  }

.primary-nav.is-open {
    display:flex
  }

.primary-nav a {
    height:auto;
    padding:10px
  }

.hero {
    padding-top:32px
  }

.network-panel {
    height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 22px;
    clip-path: polygon(
      4% 0,
      96% 0,
      100% 4%,
      100% 96%,
      96% 100%,
      4% 100%,
      0 96%,
      0 4%
    );
  }

.panel-side {
    grid-template-columns:1fr 1px 1fr;
    align-items:center
  }

.metric-divider {
    width:1px;
    height:80px
  }

.dial-wrap {
    grid-row:1
  }

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

.features {
    grid-template-columns:1fr 1fr
  }

.features article:nth-child(2) {
    border-right:0
  }

.features article:nth-child(-n+2) {
    border-bottom:1px solid rgba(255,255,255,.12);
    padding-bottom:22px;
    margin-bottom:22px
  }

.footer-grid {
    grid-template-columns:1fr 1fr
  }

.footer-brand {
    grid-column:1/-1
  }

}

@media(max-width:520px) {
.shell {
    width:min(100% - 24px,var(--shell))
  }

h1 {
    font-size:58px
  }

.eyebrow,.tagline {
    font-size:9px
  }

.dial {
    width:235px
  }

.panel-side {
    gap:12px
  }

.metric strong {
    font-size:29px
  }

.game-art {
    height:220px
  }

.features {
    grid-template-columns:1fr
  }

.features article {
    border-right:0!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    padding:22px
  }

.footer-grid {
    grid-template-columns:1fr
  }

.footer-brand {
    grid-column:auto
  }

.footer-bottom {
    display:grid;
    gap:8px
  }

}

/* =========================================================
   MOBILE PANEL FIX ONLY
   Desktop and tablet styling above this point is untouched.
   ========================================================= */

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .network-panel {
    width: min(100%, 520px);
    height: auto;
    margin-inline: auto;
    padding: 24px 18px 22px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 20px;
  }

  .dial-wrap {
    grid-column: 1;
    grid-row: 1;
    height: auto;
  }

  .panel-side--left {
    grid-column: 1;
    grid-row: 2;
  }

  .panel-side--right {
    grid-column: 1;
    grid-row: 3;
  }

  .panel-side {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 14px;
  }

  .metric-divider {
    width: 1px;
    height: 58px;
  }

  .dial {
    width: 185px;
  }

  .edge-light {
    top: 50%;
    height: 78px;
    transform: translateY(-50%);
  }
}

@media (max-width: 520px) {
  .network-panel {
    width: 100%;
    padding: 22px 12px 20px;
    row-gap: 18px;
  }

  .dial {
    width: 165px;
  }

  .dial-core strong {
    font-size: 48px;
  }

  .dial-core span {
    font-size: 10px;
  }

  .dial-core small {
    font-size: 7px;
  }

  .panel-side {
    gap: 8px;
  }

  .metric-divider {
    height: 50px;
  }

  .metric {
    gap: 3px;
  }

  .metric strong {
    font-size: 20px;
  }

  .metric strong.online {
    font-size: 15px;
  }

  .metric span {
    max-width: 105px;
    font-size: 7px;
    line-height: 1.3;
    letter-spacing: 0.1em;
  }

  .metric-icon {
    font-size: 15px;
  }

  .bolt-icon {
    font-size: 20px;
  }

  .signal-icon {
    font-size: 14px;
  }

  .edge-light {
    height: 64px;
  }
}