/* ===========================================================================
   PROJECT EMX - game presentation layer.
   Every selector is namespaced .pe-* and every colour is a --pe-* token defined
   on .pe-scope, so none of this reaches the EMX Software store styling. The
   band stays dark in both site themes on purpose: it is a poster, not a panel.
   =========================================================================== */

.pe-scope {
  --pe-void: #04060f;
  --pe-navy: #080e22;
  --pe-navy-raised: #0d1530;
  --pe-blue: #1f8cff;
  --pe-blue-bright: #5cb6ff;
  --pe-blue-deep: #0a4fa8;
  --pe-violet: #7b3dff;
  --pe-violet-soft: #a978ff;
  --pe-silver: #c3d2ea;
  --pe-silver-dim: #8c9cba;
  --pe-white: #ffffff;
  --pe-edge: rgba(92, 182, 255, .28);
  --pe-edge-strong: rgba(92, 182, 255, .62);
  --pe-panel: rgba(10, 18, 42, .72);
  --pe-display: "Space Grotesk", Inter, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* --------------------------------------------------------------- hero ---- */
.pe-hero {
  position: relative;
  isolation: isolate;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  min-height: min(84vh, 760px);
  display: grid;
  align-content: center;
  padding: clamp(72px, 11vh, 132px) clamp(16px, 5vw, 72px) clamp(28px, 5vh, 56px);
  background: var(--pe-void);
  overflow: hidden;
}

.pe-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
/* The backdrop is the game's own Roblox key art, which carries its own logo
   type. It is blurred and scaled past the edges so it reads as atmosphere and
   colour rather than competing with the title set over it. */
.pe-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.18);
  filter: blur(26px) saturate(1.35) contrast(1.05) brightness(.72);
}
/* Scrims: a blue/violet wash over the screenshot, then a vertical fade so the
   type always has contrast no matter how bright the art behind it is. */
.pe-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(31, 140, 255, .34), transparent 62%),
    radial-gradient(90% 80% at 14% 86%, rgba(123, 61, 255, .36), transparent 64%),
    linear-gradient(180deg, rgba(4, 6, 15, .82) 0%, rgba(4, 6, 15, .42) 34%, rgba(4, 6, 15, .88) 86%, var(--pe-void) 100%);
}
.pe-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(92, 182, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 182, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 78%);
}

.pe-hero-inner {
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2vh, 22px);
}

.pe-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 clamp(10px, 1.2vw, 12px)/1 var(--pe-display);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--pe-blue-bright);
}
.pe-kicker span {
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pe-blue));
}

.pe-title {
  margin: 0;
  display: grid;
  justify-items: center;
  line-height: .82;
  font-family: var(--pe-display);
  text-transform: uppercase;
}
.pe-title-top {
  font-size: clamp(26px, 5.2vw, 62px);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--pe-white);
  text-shadow: 0 0 28px rgba(31, 140, 255, .45);
}
.pe-title-main {
  font-size: clamp(64px, 14vw, 184px);
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #eaf5ff 6%, #7ec6ff 42%, #1f8cff 70%, #0b4fa6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(31, 140, 255, .5));
}

.pe-headline {
  margin: 0;
  font: italic 700 clamp(22px, 4.4vw, 54px)/1 var(--pe-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--pe-white);
  text-shadow: 0 2px 18px rgba(4, 6, 15, .8);
}
.pe-headline em {
  font-style: italic;
  color: var(--pe-blue-bright);
  text-shadow: 0 0 26px rgba(92, 182, 255, .6);
}

.pe-tagline {
  margin: 0;
  max-width: 46ch;
  font: 500 clamp(12px, 1.5vw, 17px)/1.5 var(--pe-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pe-silver);
}

.pe-rule {
  width: min(560px, 90%);
  height: 1px;
  border: 0;
  margin: 2px 0 0;
  background: linear-gradient(90deg, transparent, var(--pe-edge-strong), transparent);
}

/* ---------------------------------------------------------- hero CTAs ---- */
.pe-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.pe-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px clamp(20px, 3vw, 38px);
  border: 1px solid var(--pe-edge-strong);
  background: linear-gradient(180deg, rgba(13, 21, 48, .92), rgba(6, 10, 26, .94));
  color: var(--pe-white);
  font: 700 clamp(13px, 1.4vw, 17px)/1 var(--pe-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.pe-btn:hover,
.pe-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--pe-blue-bright);
  box-shadow: 0 14px 38px rgba(31, 140, 255, .34);
}
.pe-btn:focus-visible {
  outline: 2px solid var(--pe-blue-bright);
  outline-offset: 3px;
}
.pe-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}
.pe-btn-label { text-align: left; }
.pe-btn small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--pe-silver-dim);
}

.pe-btn-discord {
  padding-inline: clamp(24px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(31, 140, 255, .26), rgba(10, 18, 42, .94)),
    var(--pe-navy);
  box-shadow: 0 0 0 1px rgba(92, 182, 255, .18), 0 18px 46px rgba(10, 60, 140, .4);
}

/* A control with nowhere to go is never dressed up as a working button. */
.pe-btn[aria-disabled="true"] {
  cursor: not-allowed;
  border-color: rgba(140, 156, 186, .3);
  background: rgba(10, 16, 34, .8);
  color: var(--pe-silver-dim);
  box-shadow: none;
}
.pe-btn[aria-disabled="true"]:hover,
.pe-btn[aria-disabled="true"]:focus-visible {
  transform: none;
  box-shadow: none;
  border-color: rgba(140, 156, 186, .3);
}

/* ---------------------------------------------------------- mode strip --- */
.pe-modes {
  list-style: none;
  margin: clamp(18px, 3vh, 34px) 0 0;
  padding: 0;
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--pe-edge);
  background: var(--pe-panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pe-modes li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 10px;
  font: 600 clamp(10px, 1.1vw, 14px)/1.2 var(--pe-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pe-white);
  border-left: 1px solid var(--pe-edge);
}
.pe-modes li:first-child { border-left: 0; }
.pe-modes svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--pe-blue-bright);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------ dashboard -- */
.pe-dash {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding: clamp(34px, 6vh, 64px) clamp(16px, 5vw, 72px);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(31, 140, 255, .12), transparent 60%),
    var(--pe-navy);
  border-top: 1px solid var(--pe-edge);
  border-bottom: 1px solid var(--pe-edge);
  color: var(--pe-white);
}
.pe-dash-inner { width: min(1180px, 100%); margin-inline: auto; }

.pe-dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: clamp(18px, 3vh, 28px);
}
.pe-dash-head h2 {
  margin: 0;
  font: 700 clamp(18px, 2.6vw, 30px)/1 var(--pe-display);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pe-dash-stamp {
  margin: 0;
  font: 500 11px/1.4 var(--pe-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pe-silver-dim);
}

.pe-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.pe-tile {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid var(--pe-edge);
  background: linear-gradient(180deg, rgba(14, 24, 54, .9), rgba(7, 12, 30, .92));
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 132px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.pe-tile-label {
  margin: 0;
  font: 600 10px/1 var(--pe-display);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pe-blue-bright);
}
.pe-tile-value {
  margin: 0;
  font: 700 clamp(26px, 3.4vw, 42px)/1 var(--pe-display);
  letter-spacing: .01em;
  color: var(--pe-white);
  font-variant-numeric: tabular-nums;
}
.pe-tile-note {
  margin: 0;
  font: 500 12px/1.45 var(--pe-display);
  color: var(--pe-silver-dim);
}
/* Text-first tiles (next playtest, latest update) read as copy, not a metric. */
.pe-tile-text .pe-tile-value {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.3;
  letter-spacing: .02em;
}

/* Honest states. An unknown never borrows the styling of a real value. */
.pe-tile[data-state="loading"] .pe-tile-value,
.pe-tile[data-state="unavailable"] .pe-tile-value,
.pe-tile[data-state="empty"] .pe-tile-value {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.35;
  color: var(--pe-silver-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pe-tile[data-state="loading"] { border-color: rgba(140, 156, 186, .26); }
.pe-tile[data-state="empty"] { border-color: rgba(140, 156, 186, .26); }
.pe-tile[data-state="empty"] .pe-tile-label { color: var(--pe-silver-dim); }
.pe-tile[data-state="unavailable"] { border-color: rgba(255, 138, 118, .4); }
.pe-tile[data-state="unavailable"] .pe-tile-label { color: #ff9f8c; }

.pe-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--pe-blue-bright);
  box-shadow: 0 0 0 0 rgba(92, 182, 255, .6);
  animation: pe-pulse 2.4s ease-out infinite;
}
@keyframes pe-pulse {
  70% { box-shadow: 0 0 0 11px rgba(92, 182, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 182, 255, 0); }
}
.pe-tile[data-state="unavailable"] .pe-pulse,
.pe-tile[data-state="loading"] .pe-pulse,
.pe-tile[data-state="empty"] .pe-pulse {
  background: var(--pe-silver-dim);
  animation: none;
  box-shadow: none;
}

.pe-dash-foot {
  margin: 16px 0 0;
  font: 500 11px/1.6 var(--pe-display);
  letter-spacing: .08em;
  color: var(--pe-silver-dim);
}
.pe-dash-foot a { color: var(--pe-blue-bright); }

/* ----------------------------------------------------- more from EMX ----- */
.pe-more {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding: clamp(28px, 5vh, 52px) clamp(16px, 5vw, 72px);
  background: var(--pe-void);
  color: var(--pe-white);
}
.pe-more-inner { width: min(1180px, 100%); margin-inline: auto; }
.pe-more-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font: 600 clamp(11px, 1.2vw, 14px)/1 var(--pe-display);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--pe-silver);
}
.pe-more-head::before,
.pe-more-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pe-edge), transparent);
}
.pe-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: 12px;
}
.pe-more-grid a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--pe-edge);
  background: linear-gradient(180deg, rgba(13, 21, 48, .82), rgba(6, 10, 26, .9));
  color: var(--pe-white);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.pe-more-grid a:hover,
.pe-more-grid a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--pe-blue-bright);
  box-shadow: 0 12px 30px rgba(31, 140, 255, .24);
}
.pe-more-grid svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: var(--pe-blue-bright);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pe-more-grid b {
  display: block;
  font: 700 13px/1.2 var(--pe-display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pe-more-grid small {
  display: block;
  margin-top: 4px;
  font: 500 11px/1.3 var(--pe-display);
  letter-spacing: .08em;
  color: var(--pe-silver-dim);
}
.pe-signature {
  margin: 20px 0 0;
  font: 500 clamp(10px, 1.1vw, 13px)/1 var(--pe-display);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--pe-silver-dim);
}

/* ------------------------------------------------------- inner pages ----- */
.pe-page {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding: clamp(84px, 13vh, 140px) clamp(16px, 5vw, 72px) clamp(40px, 7vh, 80px);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(31, 140, 255, .16), transparent 62%),
    radial-gradient(70% 60% at 12% 100%, rgba(123, 61, 255, .16), transparent 64%),
    var(--pe-void);
  color: var(--pe-white);
}
.pe-page-inner { width: min(1180px, 100%); margin-inline: auto; }
.pe-page h1 {
  margin: 10px 0 0;
  font: 700 clamp(34px, 6.6vw, 76px)/.92 var(--pe-display);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pe-page h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #eaf5ff 10%, #5cb6ff 60%, #1f8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pe-page-lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font: 500 clamp(14px, 1.6vw, 17px)/1.6 var(--pe-display);
  color: var(--pe-silver);
}

.pe-section {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding: clamp(32px, 6vh, 64px) clamp(16px, 5vw, 72px);
  background: var(--pe-navy);
  border-top: 1px solid var(--pe-edge);
  color: var(--pe-white);
}
.pe-section:nth-of-type(even) { background: var(--pe-void); }
.pe-section-inner { width: min(1180px, 100%); margin-inline: auto; }
.pe-section h2 {
  margin: 0 0 6px;
  font: 700 clamp(18px, 2.6vw, 28px)/1.1 var(--pe-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pe-section-note {
  margin: 0 0 20px;
  font: 500 13px/1.6 var(--pe-display);
  color: var(--pe-silver-dim);
}

.pe-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pe-card {
  padding: 20px;
  border: 1px solid var(--pe-edge);
  background: linear-gradient(180deg, rgba(14, 24, 54, .9), rgba(7, 12, 30, .92));
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.pe-card h3 {
  margin: 0 0 8px;
  font: 700 15px/1.3 var(--pe-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pe-white);
}
.pe-card p {
  margin: 0;
  font: 500 13px/1.6 var(--pe-display);
  color: var(--pe-silver-dim);
}
.pe-card-time {
  display: block;
  margin-bottom: 8px;
  font: 600 10px/1 var(--pe-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pe-blue-bright);
}

/* Empty states carry the same weight as content: nothing is faked to fill a grid. */
.pe-empty {
  padding: 28px 22px;
  border: 1px dashed rgba(140, 156, 186, .38);
  background: rgba(8, 14, 34, .6);
  color: var(--pe-silver-dim);
  font: 500 13px/1.6 var(--pe-display);
}
.pe-empty strong {
  display: block;
  margin-bottom: 6px;
  font: 700 12px/1.3 var(--pe-display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pe-silver);
}

/* A stub is labelled a stub. It never shows invented weapons, skins or maps. */
.pe-stub {
  padding: 22px;
  border: 1px solid rgba(140, 156, 186, .26);
  background: rgba(8, 14, 34, .5);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.pe-stub h3 {
  margin: 0 0 6px;
  font: 700 14px/1.3 var(--pe-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pe-silver);
}
.pe-stub p {
  margin: 0;
  font: 500 12px/1.6 var(--pe-display);
  color: var(--pe-silver-dim);
}
.pe-stub-flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 9px;
  border: 1px solid rgba(140, 156, 186, .4);
  font: 700 9px/1 var(--pe-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pe-silver-dim);
}

/* ------------------------------------------------------------ responsive - */
@media (max-width: 900px) {
  .pe-hero { min-height: auto; padding-top: clamp(88px, 15vh, 124px); }
  .pe-modes { grid-template-columns: repeat(2, 1fr); }
  .pe-modes li {
    justify-content: flex-start;
    padding-inline: 16px;
    border-left: 0;
    border-top: 1px solid var(--pe-edge);
  }
  .pe-modes li:first-child,
  .pe-modes li:nth-child(2) { border-top: 0; }
  .pe-modes li:nth-child(even) { border-left: 1px solid var(--pe-edge); }
  .pe-cta { width: 100%; }
  .pe-btn { flex: 1 1 100%; justify-content: center; }
  .pe-btn-label { text-align: center; }
}
@media (max-width: 560px) {
  .pe-modes { grid-template-columns: 1fr; }
  .pe-modes li:nth-child(2) { border-top: 1px solid var(--pe-edge); }
  .pe-modes li:nth-child(even) { border-left: 0; }
  .pe-tiles { grid-template-columns: 1fr; }
  .pe-hero-media img { object-position: center 42%; }
}

@media (prefers-reduced-motion: reduce) {
  .pe-pulse { animation: none; }
  .pe-btn,
  .pe-more-grid a { transition: none; }
  .pe-btn:hover,
  .pe-more-grid a:hover { transform: none; }
}

/* ===========================================================================
   PROJECT EMX - finish pass.
   Everything below sharpens the same layout rather than changing it: hairline
   rules instead of borders, real glass, HUD corner brackets, numbered modules
   and one slow sheen across the title. Motion is slow and small on purpose,
   and all of it is switched off under prefers-reduced-motion at the end.
   =========================================================================== */

.pe-scope {
  --pe-hair: rgba(140, 190, 255, .16);
  --pe-hair-lit: rgba(120, 190, 255, .42);
  --pe-glass: rgba(10, 18, 42, .5);
  --pe-glass-lit: rgba(18, 32, 68, .62);
  --pe-inner-top: inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* ---------------------------------------------------------- hero frame --- */

/* A fine scanline field over the whole hero. Low enough to read as texture
   rather than as a pattern. */
.pe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(180, 220, 255, .035) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: screen;
}

/* HUD brackets around the hero content. */
.pe-hero-inner::before,
.pe-hero-inner::after {
  content: "";
  position: absolute;
  width: clamp(26px, 4vw, 54px);
  height: clamp(26px, 4vw, 54px);
  pointer-events: none;
  opacity: .72;
}
.pe-hero-inner::before {
  top: clamp(-34px, -3vw, -12px);
  left: clamp(-10px, 1vw, 24px);
  border-top: 1px solid var(--pe-hair-lit);
  border-left: 1px solid var(--pe-hair-lit);
}
.pe-hero-inner::after {
  right: clamp(-10px, 1vw, 24px);
  bottom: clamp(-34px, -3vw, -12px);
  border-right: 1px solid var(--pe-hair-lit);
  border-bottom: 1px solid var(--pe-hair-lit);
}

.pe-kicker {
  padding: 7px 14px;
  border: 1px solid var(--pe-hair);
  border-radius: 999px;
  background: var(--pe-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--pe-inner-top);
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: .38em;
  text-indent: .38em;
}
.pe-kicker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pe-blue-bright);
  box-shadow: 0 0 10px var(--pe-blue-bright);
  animation: pe-breathe 3.4s ease-in-out infinite;
}
@keyframes pe-breathe {
  50% { opacity: .35; }
}

/* ------------------------------------------------------------- title ----- */

.pe-title-top {
  font-weight: 600;
  letter-spacing: .42em;
  text-indent: .42em;
  font-size: clamp(20px, 3.4vw, 40px);
  color: var(--pe-silver);
  text-shadow: none;
}

/* The wordmark gets a brighter metal ramp and a slow sheen that travels across
   it once every ten seconds. */
.pe-title-main {
  position: relative;
  background: linear-gradient(176deg, #ffffff 2%, #d7ecff 20%, #74c0ff 48%, #1f8cff 72%, #0a4ea6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .5)) drop-shadow(0 10px 40px rgba(31, 140, 255, .45));
}
.pe-title-main::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .92) 50%, transparent 62%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pe-sheen 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pe-sheen {
  0%, 62% { background-position: 170% 0; }
  88%, 100% { background-position: -70% 0; }
}

.pe-headline {
  letter-spacing: -.005em;
  text-shadow: 0 2px 26px rgba(4, 6, 15, .9);
}
.pe-tagline {
  font-size: clamp(11px, 1.35vw, 15px);
  letter-spacing: .24em;
  color: var(--pe-silver-dim);
}
.pe-rule {
  width: min(320px, 70%);
  background: linear-gradient(90deg, transparent, var(--pe-hair-lit) 35%, var(--pe-blue-bright) 50%, var(--pe-hair-lit) 65%, transparent);
  opacity: .8;
}

/* ----------------------------------------------------------- buttons ----- */

.pe-btn {
  padding-block: 15px;
  border-color: var(--pe-hair);
  background: var(--pe-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--pe-inner-top);
  letter-spacing: .16em;
  overflow: hidden;
}
/* A light sweeps across the face on hover instead of the block changing colour. */
.pe-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(170, 220, 255, .16) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 160% 0;
  transition: background-position .7s ease;
  pointer-events: none;
}
.pe-btn:hover::before,
.pe-btn:focus-visible::before { background-position: -60% 0; }
.pe-btn:hover,
.pe-btn:focus-visible {
  border-color: var(--pe-hair-lit);
  background: var(--pe-glass-lit);
  box-shadow: var(--pe-inner-top), 0 16px 44px -18px rgba(31, 140, 255, .9);
}
.pe-btn-discord {
  border-color: rgba(92, 182, 255, .44);
  background:
    linear-gradient(180deg, rgba(31, 140, 255, .22), rgba(10, 18, 42, .6));
  box-shadow: var(--pe-inner-top), 0 20px 50px -22px rgba(31, 140, 255, .95);
}
.pe-btn[aria-disabled="true"]::before { content: none; }

/* -------------------------------------------------------- mode strip ----- */

.pe-modes {
  counter-reset: pe-mode;
  border: 1px solid var(--pe-hair);
  border-radius: 2px;
  background: var(--pe-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--pe-inner-top);
  overflow: hidden;
}
.pe-modes li {
  counter-increment: pe-mode;
  position: relative;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 16px;
  border-left-color: var(--pe-hair);
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: .18em;
  transition: background .25s ease, color .25s ease;
}
/* Module numbers come from a counter, so the markup stays clean. */
.pe-modes li::before {
  content: counter(pe-mode, decimal-leading-zero);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--pe-blue-bright);
  opacity: .55;
}
/* A hairline that grows along the bottom of the module on hover. */
.pe-modes li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--pe-blue), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22, .68, .3, 1);
}
.pe-modes li:hover { background: rgba(31, 140, 255, .07); }
.pe-modes li:hover::after { transform: scaleX(1); }
.pe-modes svg { opacity: .9; }

/* --------------------------------------------------------- dashboard ----- */

.pe-dash,
.pe-section {
  border-top-color: var(--pe-hair);
  border-bottom-color: var(--pe-hair);
}
.pe-dash-head h2,
.pe-section h2 {
  position: relative;
  padding-left: 16px;
  font-weight: 600;
  letter-spacing: .14em;
}
.pe-dash-head h2::before,
.pe-section h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 1.05em;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pe-blue-bright), var(--pe-violet));
  box-shadow: 0 0 14px rgba(31, 140, 255, .6);
}
.pe-dash-stamp {
  padding: 6px 12px;
  border: 1px solid var(--pe-hair);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .2em;
}

.pe-tiles { gap: 14px; }

.pe-tile {
  padding: 22px;
  border: 1px solid var(--pe-hair);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pe-glass-lit), var(--pe-glass));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--pe-inner-top);
  clip-path: none;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
/* Hairline along the top edge, brightest on the live tiles. */
.pe-tile::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pe-hair-lit) 20%, var(--pe-blue-bright) 50%, var(--pe-hair-lit) 80%, transparent);
  opacity: .5;
}
/* Corner bracket, bottom right. */
.pe-tile::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--pe-hair-lit);
  border-bottom: 1px solid var(--pe-hair-lit);
  opacity: .5;
}
.pe-tile:hover {
  transform: translateY(-2px);
  border-color: var(--pe-hair-lit);
  box-shadow: var(--pe-inner-top), 0 22px 50px -26px rgba(31, 140, 255, .9);
}
.pe-tile[data-state="ok"]::before { opacity: 1; }
.pe-tile[data-state="loading"]::before,
.pe-tile[data-state="empty"]::before,
.pe-tile[data-state="unavailable"]::before {
  background: linear-gradient(90deg, transparent, rgba(150, 165, 195, .5), transparent);
  opacity: .5;
}

.pe-tile-label {
  font-size: 9px;
  letter-spacing: .26em;
  color: var(--pe-silver-dim);
}
.pe-tile[data-state="ok"] .pe-tile-label { color: var(--pe-blue-bright); }
.pe-tile-value {
  font-weight: 600;
  letter-spacing: -.01em;
  text-shadow: 0 0 34px rgba(31, 140, 255, .35);
}
.pe-tile-note { font-size: 11.5px; letter-spacing: .01em; }

.pe-pulse {
  width: 7px;
  height: 7px;
  margin-right: 11px;
  box-shadow: 0 0 10px var(--pe-blue-bright), 0 0 0 0 rgba(92, 182, 255, .55);
  vertical-align: middle;
}

.pe-dash-foot {
  padding-top: 16px;
  border-top: 1px solid var(--pe-hair);
  font-size: 10.5px;
  letter-spacing: .1em;
}
.pe-dash-foot strong { color: var(--pe-silver); font-weight: 600; }
.pe-dash-foot a { text-decoration: none; border-bottom: 1px solid var(--pe-hair-lit); }
.pe-dash-foot a:hover { color: #fff; border-bottom-color: var(--pe-blue-bright); }

/* ------------------------------------------------------ more from EMX ---- */

.pe-more-head { letter-spacing: .42em; text-indent: .42em; font-size: clamp(9px, 1vw, 11px); }
.pe-more-grid { gap: 14px; }
.pe-more-grid a {
  position: relative;
  padding: 20px;
  border: 1px solid var(--pe-hair);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pe-glass-lit), var(--pe-glass));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--pe-inner-top);
  clip-path: none;
  overflow: hidden;
}
/* The arrow slides in from the edge rather than sitting there permanently. */
.pe-more-grid a::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translate(8px, -50%);
  color: var(--pe-blue-bright);
  font-size: 15px;
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.pe-more-grid a:hover::after,
.pe-more-grid a:focus-visible::after { transform: translate(0, -50%); opacity: 1; }
.pe-more-grid a:hover,
.pe-more-grid a:focus-visible {
  border-color: var(--pe-hair-lit);
  box-shadow: var(--pe-inner-top), 0 20px 44px -24px rgba(31, 140, 255, .9);
}
.pe-more-grid b { font-weight: 600; letter-spacing: .16em; font-size: 12px; }
.pe-more-grid small { letter-spacing: .1em; }
.pe-signature { letter-spacing: .46em; text-indent: .46em; opacity: .7; }

/* ----------------------------------------------------- inner pages ------- */

.pe-page h1 { font-weight: 600; letter-spacing: -.005em; }
.pe-page-lead { color: var(--pe-silver-dim); }
.pe-card,
.pe-stub,
.pe-empty {
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pe-glass-lit), var(--pe-glass));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--pe-inner-top);
  clip-path: none;
}
.pe-card {
  border: 1px solid var(--pe-hair);
  transition: border-color .3s ease, transform .3s ease;
}
.pe-card:hover { transform: translateY(-2px); border-color: var(--pe-hair-lit); }
.pe-card h3 { font-weight: 600; letter-spacing: .12em; }
.pe-card-time { letter-spacing: .24em; opacity: .85; }
.pe-stub { border-color: rgba(150, 165, 195, .2); }
.pe-stub-flag { border-radius: 999px; letter-spacing: .24em; }
.pe-empty { border: 1px dashed rgba(150, 165, 195, .3); }
.pe-section-note { letter-spacing: .02em; }

/* ---------------------------------------------------------- restraint ---- */

@media (prefers-reduced-motion: reduce) {
  .pe-kicker span,
  .pe-title-main::after { animation: none; }
  .pe-title-main::after { opacity: 0; }
  .pe-btn::before,
  .pe-modes li::after,
  .pe-more-grid a::after,
  .pe-tile,
  .pe-card { transition: none; }
  .pe-tile:hover,
  .pe-card:hover { transform: none; }
}

/* --------------------------------------------------------- corrections --- */

/* The tagline is one line on desktop; at 46ch it broke after "BATTLE". */
.pe-tagline { max-width: 64ch; }

/* Pull the HUD brackets in so they frame the hero copy instead of drifting out
   towards the header. */
.pe-hero-inner::before {
  top: clamp(-18px, -1vw, -6px);
  left: clamp(4px, 3vw, 64px);
}
.pe-hero-inner::after {
  right: clamp(4px, 3vw, 64px);
  bottom: clamp(-18px, -1vw, -6px);
}

/* Five tiles across on a wide screen rather than four and a stretched orphan. */
.pe-tiles { grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); }
@media (max-width: 1180px) {
  .pe-tiles { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
}

/* The brackets framed the full content column, which left them floating in
   empty space beside centred copy. Cleaner without them. */
.pe-hero-inner::before,
.pe-hero-inner::after { content: none; }

/* Tagline: one line on a wide screen, and a balanced break rather than an
   orphaned last word when it does wrap. */
.pe-tagline {
  max-width: min(100%, 880px);
  letter-spacing: .18em;
  text-wrap: balance;
}

/* Five equal columns squeezed "OPEN BETA" onto two lines. On a wide screen the
   home dashboard runs three tiles then two wider ones, which gives the values
   room and reads as a deliberate rhythm rather than a stretched orphan.
   Scoped to .pe-dash so the two-tile grids on Game Info and Community keep
   their own layout. */
@media (min-width: 1020px) {
  .pe-dash .pe-tiles { grid-template-columns: repeat(6, 1fr); }
  .pe-dash .pe-tile { grid-column: span 2; }
  .pe-dash .pe-tile:nth-child(4),
  .pe-dash .pe-tile:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 1019px) {
  .pe-tiles { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
}

/* ------------------------------------------------- playable vs planned --- */

/* The hero used to show five unlabelled feature tiles, which read as five modes
   you could go and play. The beta's actual modes are listed under "Playable
   now"; Battle Royale, Reload and Arena sit under "Coming next" and are styled
   so they cannot be mistaken for something you can load today. */
.pe-lineup {
  width: min(1100px, 100%);
  margin-top: clamp(18px, 3vh, 32px);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.pe-lineup-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font: 600 10px/1 var(--pe-display);
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--pe-blue-bright);
}
.pe-lineup-label-soon {
  margin-top: 6px;
  color: var(--pe-silver-dim);
}
.pe-lineup-label .pe-pulse { margin-right: 2px; }

/* Chips rather than a fixed five-column bar, so the real list fits at any
   length without the layout dictating the content. */
.pe-lineup .pe-modes {
  width: auto;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  counter-reset: none;
}
.pe-lineup .pe-modes li {
  counter-increment: none;
  padding: 11px 16px;
  border: 1px solid var(--pe-hair);
  border-radius: 999px;
  background: var(--pe-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--pe-inner-top);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: .14em;
}
.pe-lineup .pe-modes li::before,
.pe-lineup .pe-modes li::after { content: none; }
.pe-lineup .pe-modes svg { width: 16px; height: 16px; }

/* Planned modes: outlined, dimmed, no glass, no icon - visibly a different
   class of thing from the row above. */
.pe-lineup .pe-modes-soon li {
  border-style: dashed;
  border-color: rgba(150, 165, 195, .34);
  background: none;
  box-shadow: none;
  color: var(--pe-silver-dim);
  padding-block: 9px;
}

/* ------------------------------------------------------- mode cards ----- */

/* The game's own mode card art, copied from the Studio project. The picture
   does the work, so the card itself gets out of the way: no padding at the top,
   and the text sits under the image. */
.pe-mode-cards { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.pe-mode-card {
  padding: 0 0 18px;
  overflow: hidden;
}
.pe-mode-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a1024;
  border-bottom: 1px solid var(--pe-hair);
}
.pe-mode-card h3 { margin: 16px 18px 6px; }
.pe-mode-card p { margin: 0 18px; }

/* ===========================================================================
   Depth pass. The hero was reading flat because the backdrop was blurred to
   26px to stop the key art's own logo competing with the title. Cropping to
   the right-hand side of the frame moves that logo out of shot, so the blur
   can come most of the way off and the art can actually be seen.
   =========================================================================== */

.pe-hero-media img {
  object-position: 78% 45%;
  transform: scale(1.06);
  filter: blur(7px) saturate(1.55) contrast(1.12) brightness(.62);
}

/* Colour comes back up: a deeper violet on one shoulder, electric blue on the
   other, and a tighter floor so the type still sits on something solid. */
.pe-hero-media::after {
  background:
    radial-gradient(85% 70% at 78% 28%, rgba(31, 140, 255, .42), transparent 60%),
    radial-gradient(80% 75% at 18% 72%, rgba(123, 61, 255, .5), transparent 62%),
    linear-gradient(180deg, rgba(4, 6, 15, .78) 0%, rgba(4, 6, 15, .3) 30%, rgba(4, 6, 15, .72) 72%, var(--pe-void) 100%);
}

/* Angular light streaks, the one piece of pure decoration here. They sit
   behind the content and drift slowly across the frame. */
.pe-hero-grid::before,
.pe-hero-grid::after {
  content: "";
  position: absolute;
  top: -20%;
  width: 2px;
  height: 140%;
  background: linear-gradient(180deg, transparent, var(--pe-blue-bright), transparent);
  opacity: .5;
  filter: blur(1px);
}
.pe-hero-grid::before {
  left: 16%;
  transform: rotate(14deg);
  animation: pe-streak 11s ease-in-out infinite;
}
.pe-hero-grid::after {
  right: 22%;
  transform: rotate(-12deg);
  background: linear-gradient(180deg, transparent, var(--pe-violet-soft), transparent);
  animation: pe-streak 14s ease-in-out infinite 2s;
}
@keyframes pe-streak {
  0%, 100% { opacity: 0; transform: translateY(-8%) rotate(14deg); }
  50% { opacity: .55; transform: translateY(8%) rotate(14deg); }
}

/* The wordmark earns a real glow rather than a flat gradient. */
.pe-title-main {
  background: linear-gradient(174deg, #ffffff 2%, #e4f1ff 16%, #8fd0ff 42%, #2f9bff 66%, #7b3dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, .55))
    drop-shadow(0 6px 24px rgba(31, 140, 255, .55))
    drop-shadow(0 14px 60px rgba(123, 61, 255, .45));
}
.pe-headline em { text-shadow: 0 0 34px rgba(92, 182, 255, .85), 0 0 8px rgba(255, 255, 255, .35); }

/* Buttons get weight: a lit primary, and a visible edge on the secondary. */
.pe-btn-discord {
  border-color: rgba(140, 200, 255, .62);
  background:
    linear-gradient(180deg, rgba(60, 120, 255, .55), rgba(123, 61, 255, .42)),
    var(--pe-navy);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 10px 28px -10px rgba(80, 60, 255, .9),
    0 0 44px -14px rgba(92, 182, 255, .9);
}
.pe-cta .pe-btn:not(.pe-btn-discord) {
  border-color: rgba(150, 200, 255, .4);
  background: linear-gradient(180deg, rgba(18, 30, 64, .82), rgba(8, 12, 30, .86));
}

/* Chips lift off the background instead of sitting flush on it. */
.pe-lineup .pe-modes li {
  border-color: rgba(140, 195, 255, .34);
  background: linear-gradient(180deg, rgba(24, 40, 86, .72), rgba(10, 18, 42, .66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 20px -12px rgba(0, 0, 0, .9);
}

/* Section bands get a lit top edge so each one reads as its own surface. */
.pe-dash,
.pe-section {
  position: relative;
}
.pe-dash::before,
.pe-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 182, 255, .55), rgba(123, 61, 255, .45), transparent);
}
.pe-dash {
  background:
    radial-gradient(70% 120% at 20% 0%, rgba(123, 61, 255, .18), transparent 60%),
    radial-gradient(70% 120% at 80% 0%, rgba(31, 140, 255, .18), transparent 60%),
    var(--pe-navy);
}

/* Tiles: more contrast between the lit edge and the body, and a real shadow. */
.pe-tile {
  background: linear-gradient(180deg, rgba(20, 34, 72, .92), rgba(7, 12, 30, .94));
  box-shadow: var(--pe-inner-top), 0 16px 34px -22px rgba(0, 0, 0, .95);
}
.pe-tile[data-state="ok"] .pe-tile-value { text-shadow: 0 0 42px rgba(92, 182, 255, .6); }

@media (prefers-reduced-motion: reduce) {
  .pe-hero-grid::before,
  .pe-hero-grid::after { animation: none; opacity: .3; }
}

/* The crop could not clear the key art's own logo: the hero box is wider than
   the image, so cover trims vertically and horizontal positioning does nothing.
   Blur is the lever that works. 14px is past the point where the lettering
   reads, but well short of the flat wash 26px produced - the colour, the lights
   and the shape of the stage all survive. */
.pe-hero-media img {
  object-position: 50% 62%;
  transform: scale(1.12);
  filter: blur(14px) saturate(1.7) contrast(1.15) brightness(.66);
}

/* An extra pool of shade over the top-left, where that lettering sits. */
.pe-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(60% 55% at 12% 10%, rgba(4, 6, 15, .85), transparent 70%);
}

/* --------------------------------------------------- home mode band ----- */

/* The homepage band that replaced the chip rows. Mode art is the most colourful
   thing the project owns, so it gets the space the chips were wasting. */
.pe-modeband {
  background:
    radial-gradient(80% 110% at 15% 0%, rgba(123, 61, 255, .2), transparent 62%),
    radial-gradient(80% 110% at 85% 10%, rgba(31, 140, 255, .18), transparent 62%),
    var(--pe-void);
}
.pe-modeband .pe-lineup-label { margin-bottom: 10px; }
.pe-modeband h2 {
  margin: 0 0 20px;
  padding-left: 0;
  font-size: clamp(22px, 3.4vw, 38px);
  letter-spacing: .06em;
}
.pe-modeband h2::before { content: none; }
.pe-modeband .pe-mode-cards { margin-bottom: 18px; }
.pe-modeband-note {
  margin: 0 0 18px;
  max-width: 70ch;
  font: 500 13px/1.6 var(--pe-display);
  color: var(--pe-silver-dim);
}
.pe-modeband .pe-modes-soon {
  width: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.pe-modeband .pe-modes-soon li {
  border: 1px dashed rgba(150, 165, 195, .34);
  border-radius: 999px;
  padding: 9px 16px;
  background: none;
  box-shadow: none;
  color: var(--pe-silver-dim);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: .14em;
}
.pe-modeband .pe-modes-soon li::before,
.pe-modeband .pe-modes-soon li::after { content: none; }

/* Card art gets a lit edge and a real lift on hover. */
.pe-mode-card {
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pe-mode-card:hover {
  transform: translateY(-3px);
  border-color: var(--pe-hair-lit);
  box-shadow: var(--pe-inner-top), 0 24px 46px -24px rgba(31, 140, 255, .85);
}
@media (prefers-reduced-motion: reduce) {
  .pe-mode-card { transition: none; }
  .pe-mode-card:hover { transform: none; }
}

/* ---------------------------------------------------------- code drop --- */

/* A one-time code is a race, not an offer, so the banner is built to read that
   way: loud about the reward, equally plain that the first person to redeem it
   ends it. It ships hidden and only appears when a code is configured. */
.pe-codedrop {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding: clamp(22px, 4vh, 34px) clamp(16px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(123, 61, 255, .3), rgba(31, 140, 255, .22) 55%, transparent),
    var(--pe-navy-raised);
  border-top: 1px solid rgba(160, 120, 255, .45);
  border-bottom: 1px solid rgba(160, 120, 255, .45);
  color: var(--pe-white);
}
.pe-codedrop[hidden] { display: none; }
.pe-codedrop-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.pe-codedrop-kicker {
  margin: 0 0 6px;
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid rgba(255, 214, 102, .55);
  border-radius: 999px;
  font: 700 9px/1 var(--pe-display);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #ffd666;
}
.pe-codedrop h2 {
  margin: 0 0 8px;
  font: 700 clamp(22px, 3.4vw, 36px)/1.05 var(--pe-display);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pe-codedrop h2 strong {
  font-weight: 700;
  background: linear-gradient(180deg, #fff 10%, #ffd666 55%, #ff9f1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 22px rgba(255, 180, 60, .45));
}
.pe-codedrop-note {
  margin: 0;
  max-width: 58ch;
  font: 500 13px/1.6 var(--pe-display);
  color: var(--pe-silver);
}
.pe-codedrop-note b { color: var(--pe-white); font-weight: 700; }

.pe-codedrop-action {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  min-width: min(300px, 100%);
}
.pe-codedrop-code {
  display: block;
  padding: 15px 20px;
  border: 1px dashed rgba(255, 214, 102, .6);
  border-radius: 2px;
  background: rgba(6, 10, 26, .75);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(15px, 1.9vw, 21px);
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  color: #ffe9a8;
  -webkit-user-select: all;
  user-select: all;
}
.pe-codedrop-copy-btn { justify-content: center; }
.pe-codedrop-status {
  margin: 0;
  min-height: 1.2em;
  font: 500 11px/1.2 var(--pe-display);
  letter-spacing: .08em;
  text-align: center;
  color: var(--pe-silver-dim);
}

@media (max-width: 760px) {
  .pe-codedrop-inner { flex-direction: column; align-items: stretch; }
  .pe-codedrop-action { min-width: 0; }
}

/* ------------------------------------------------- dashboard reflow ----- */

/* The dashboard arranges five tiles as three then two. Panels with nothing in
   them are hidden rather than left reading "nothing yet", so that arrangement
   would leave holes: with any other count, fall back to an even row. */
@media (min-width: 1020px) {
  .pe-dash .pe-tiles:not([data-count="5"]) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .pe-dash .pe-tiles:not([data-count="5"]) .pe-tile,
  .pe-dash .pe-tiles:not([data-count="5"]) .pe-tile:nth-child(4),
  .pe-dash .pe-tiles:not([data-count="5"]) .pe-tile:nth-child(5) { grid-column: auto; }
}
.pe-tile[hidden] { display: none; }

/* The clips moved up into the game half of the page, so the band needs the
   game's own surface rather than the storefront's. */
.pe-scope .store-gameplay {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding: clamp(32px, 6vh, 64px) clamp(16px, 5vw, 72px);
  background: var(--pe-navy);
  border-top: 1px solid var(--pe-hair);
}
.pe-scope .store-gameplay > * { width: min(1180px, 100%); margin-inline: auto; }

/* ------------------------------------------------------- hero video ---- */

/* The lobby plays behind the title. It sits over the still, which stays as the
   poster and as the fallback for anyone who never gets the video. A light blur
   keeps the game's own lettering along the top edge from reading as a second
   wordmark under ours. */
.pe-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: blur(5px) saturate(1.5) contrast(1.08) brightness(.62);
  transform: scale(1.06);
}
/* No video: the still underneath is already doing the job. */
.pe-hero-video:not([src]):not(:has(source)) { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pe-hero-video { display: none; }
}

/* ------------------------------------------------------------ clips ---- */

.pe-clips { background: var(--pe-void); }
.pe-clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.pe-clip-grid figure {
  margin: 0;
  border: 1px solid var(--pe-hair);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pe-glass-lit), var(--pe-glass));
  box-shadow: var(--pe-inner-top);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.pe-clip-grid figure:hover {
  transform: translateY(-3px);
  border-color: var(--pe-hair-lit);
  box-shadow: var(--pe-inner-top), 0 24px 46px -24px rgba(31, 140, 255, .85);
}
.pe-clip {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: #060a18;
  border-bottom: 1px solid var(--pe-hair);
}
.pe-clip-grid figcaption {
  padding: 14px 16px;
  font: 600 12px/1.3 var(--pe-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pe-white);
}
@media (prefers-reduced-motion: reduce) {
  .pe-clip-grid figure { transition: none; }
  .pe-clip-grid figure:hover { transform: none; }
}

/* --------------------------------------------- the live figures pop ---- */

/* Players, favourites and the rating are the numbers that are actually live,
   and the build status is the claim people check. Give them the lit treatment
   rather than leaving them the same weight as a copy panel. */
.pe-tile[data-pe-tile="players"][data-state="ok"],
.pe-tile[data-pe-tile="favourites"][data-state="ok"],
.pe-tile[data-pe-tile="rating"][data-state="ok"],
.pe-tile[data-pe-tile="status"][data-state="ok"] {
  border-color: rgba(120, 190, 255, .46);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(31, 140, 255, .16), transparent 62%),
    linear-gradient(180deg, rgba(22, 38, 80, .94), rgba(7, 12, 30, .94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 18px 38px -24px rgba(31, 140, 255, .95);
}
.pe-tile[data-pe-tile="players"][data-state="ok"] .pe-tile-value,
.pe-tile[data-pe-tile="favourites"][data-state="ok"] .pe-tile-value,
.pe-tile[data-pe-tile="rating"][data-state="ok"] .pe-tile-value {
  background: linear-gradient(180deg, #ffffff 10%, #bfe2ff 55%, #4fa8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 20px rgba(31, 140, 255, .6));
}
.pe-tile[data-pe-tile="status"][data-state="ok"] .pe-tile-value {
  background: linear-gradient(180deg, #ffffff 10%, #c7f5d4 50%, #4fe08a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 22px rgba(79, 224, 138, .5));
}
