* {
  box-sizing: border-box;
}

:root {
  --bg: #080808;
  --panel: #101010;
  --panel-2: #151515;
  --line: rgba(255,255,255,.09);
  --text: #f4f4f4;
  --muted: #8d8d8d;
  --accent: #ff2a2a;
  --accent-soft: rgba(255,42,42,.15);
  --green: #56ef91;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(255,35,35,.11), transparent 25rem),
    linear-gradient(180deg, #080808 0%, #0b0b0b 60%, #070707 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.018) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(255,255,255,.014) 50%, transparent 50.2%);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(22px, 5vw, 72px);
  background: rgba(7,7,7,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  height: 38px;
  min-width: 64px;
  padding: 0 9px;
  background: var(--accent);
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -2px;
  transform: skew(-8deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: .19em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav a {
  padding: 10px 13px;
  border-radius: 5px;
  color: #a6a6a6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  color: white;
  background: rgba(255,255,255,.055);
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(86,239,145,.25);
  background: rgba(86,239,145,.07);
  border-radius: 999px;
  color: #bdfbd4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(86,239,145,.45);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(86,239,145,0); }
  100% { box-shadow: 0 0 0 0 rgba(86,239,145,0); }
}

main {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "NFS";
  position: absolute;
  right: -35px;
  bottom: -75px;
  color: rgba(255,255,255,.018);
  font-size: clamp(210px, 31vw, 430px);
  line-height: .8;
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -.08em;
  pointer-events: none;
}

.eyebrow,
.kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
}

.hero h1 {
  margin: 16px 0;
  max-width: 760px;
  font-size: clamp(54px, 8vw, 102px);
  line-height: .82;
  letter-spacing: -.07em;
  font-style: italic;
  font-weight: 1000;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.8);
}

.hero p {
  max-width: 620px;
  margin: 9px 0 0;
  color: #989898;
  line-height: 1.7;
  font-size: 15px;
}

.hero-stats {
  display: flex;
  gap: 52px;
  margin-top: 38px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats span {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.hero-stats small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
}

.section {
  padding: 66px 0 10px;
}

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

.section h2 {
  margin: 7px 0 0;
  font-size: 32px;
  letter-spacing: -.04em;
}

.updated {
  color: var(--muted);
  font-size: 12px;
}

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

.server-card {
  position: relative;
  min-height: 210px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 45%),
    var(--panel);
  border-radius: 8px;
}

.server-card::after {
  content: attr(data-short);
  position: absolute;
  right: -12px;
  bottom: -23px;
  color: rgba(255,255,255,.025);
  font-size: 95px;
  font-weight: 1000;
  font-style: italic;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.game-name {
  font-size: 18px;
  font-weight: 900;
}

.game-subtitle {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: fit-content;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.status.offline {
  color: #ff7070;
}

.status i {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 50px;
}

.card-stat {
  display: flex;
  flex-direction: column;
}

.card-stat strong {
  font-size: 27px;
  line-height: 1;
}

.card-stat span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.photos-section {
  padding-bottom: 70px;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: #aaa;
  border-radius: 5px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 700;
}

.ghost-button:hover {
  color: white;
  border-color: rgba(255,255,255,.18);
}

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

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.photo-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 73% 30%, rgba(255,37,37,.26), transparent 34%),
    linear-gradient(140deg, #232323, #090909 64%);
}

.photo-image::before {
  content: "";
  position: absolute;
  width: 170%;
  height: 38px;
  background: rgba(255,255,255,.035);
  transform: rotate(-25deg);
}

.photo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.22);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
}

.photo-meta {
  padding: 15px;
}

.photo-title {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
}

.photo-by {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.photo-by strong {
  color: #d5d5d5;
}

footer {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 25px 0 42px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #5d5d5d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

@media (max-width: 900px) {
  .server-grid {
    grid-template-columns: 1fr;
  }

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

  .nav {
    display: none;
  }

  .live-pill {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: 68px;
    padding: 0 18px;
  }

  .brand-copy {
    display: none;
  }

  main {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 430px;
  }

  .hero-stats {
    gap: 26px;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  footer {
    width: min(100% - 28px, 1180px);
    gap: 12px;
    flex-direction: column;
  }
}

.connection-warning {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 80, 80, .25);
  border-radius: 7px;
  background: rgba(255, 50, 50, .07);
  color: #ff9d9d;
  font-size: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.018);
  font-size: 13px;
}

.empty-state code {
  color: #ddd;
}

.player-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.player-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 10px minmax(150px, 1fr) minmax(120px, .7fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.player-row:last-child { border-bottom: 0; }
.player-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(86,239,145,.4);
}
.player-game { color: #b9b9b9; }
.player-since { color: var(--muted); font-size: 11px; }

@media (max-width: 620px) {
  .player-row {
    grid-template-columns: 10px 1fr auto;
  }
  .player-since { display: none; }
}

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

.room-card {
  position: relative;
  min-height: 230px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 50%),
    var(--panel);
}

.room-card.race-active {
  border-color: rgba(255,42,42,.28);
  box-shadow: inset 0 0 0 1px rgba(255,42,42,.035);
}

.room-card.race-active::after {
  content: "RACE";
  position: absolute;
  right: -12px;
  bottom: -20px;
  color: rgba(255,42,42,.045);
  font-size: 74px;
  font-style: italic;
  font-weight: 1000;
  pointer-events: none;
}

.room-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.room-game {
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .18em;
}

.room-state {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #aaa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.room-state.racing {
  color: #ff9292;
  border-color: rgba(255,42,42,.25);
  background: rgba(255,42,42,.07);
}

.room-card h3 {
  position: relative;
  z-index: 1;
  margin: 17px 0 5px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.room-host,
.room-personas,
.room-details {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 11px;
}

.room-host strong {
  color: #d7d7d7;
}

.room-population {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 27px;
}

.room-population strong {
  font-size: 27px;
  line-height: 1;
}

.room-population span {
  color: #555;
  font-weight: 900;
}

.room-population small {
  margin-left: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
}

.room-personas {
  margin-top: 12px;
  min-height: 14px;
  color: #b8b8b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-details {
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .room-grid {
    grid-template-columns: 1fr;
  }
}

/* v0.4 Connect & Downloads */
.connect-section {
  padding-top: 66px;
}

.connect-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 14px;
  margin-bottom: 14px;
}

.address-card,
.connect-help {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 45%),
    var(--panel);
}

.address-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.address-card::after {
  content: "CONNECT";
  position: absolute;
  right: -18px;
  bottom: -28px;
  color: rgba(255,255,255,.022);
  font-size: 84px;
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -.06em;
  pointer-events: none;
}

.address-label {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.address-value-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.address-value-row strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(27px, 4vw, 46px);
  letter-spacing: -.045em;
}

.address-card p,
.connect-help p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.copy-button {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  background: rgba(255,255,255,.05);
  color: #d9d9d9;
  padding: 9px 11px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.copy-button:hover {
  border-color: rgba(255,255,255,.28);
  color: white;
}

.copy-button.copied {
  border-color: rgba(86,239,145,.32);
  color: var(--green);
}

.connect-statuses {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.connect-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: #aaa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.connect-status-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #666;
}

.connect-status-chip.online i {
  background: var(--green);
  box-shadow: 0 0 10px rgba(86,239,145,.32);
}

.connect-status-chip.offline i {
  background: #ff6666;
}

.connect-help {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-content: center;
  gap: 2px 10px;
  padding: 22px;
}

.connect-help .connect-step {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border: 1px solid rgba(255,42,42,.3);
  border-radius: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.connect-help strong {
  font-size: 12px;
}

.connect-help p {
  margin: 2px 0 13px;
}

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

.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.download-card.recommended {
  border-color: rgba(255,42,42,.27);
  background:
    radial-gradient(circle at 88% 12%, rgba(255,42,42,.12), transparent 34%),
    var(--panel);
}

.download-tag {
  width: fit-content;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 4px;
  color: var(--muted);
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.download-card.recommended .download-tag {
  border-color: rgba(255,42,42,.25);
  color: #ff8282;
}

.download-card h3 {
  margin: 13px 0 5px;
  font-size: 21px;
  letter-spacing: -.025em;
}

.download-description {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.download-meta span {
  color: #888;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.download-meta strong {
  color: #c9c9c9;
}

.download-sha {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #666;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
}

.download-sha code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  border: 1px solid rgba(255,42,42,.38);
  border-radius: 5px;
  background: var(--accent);
  color: white;
  padding: 10px 13px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.download-button:hover {
  filter: brightness(1.08);
}

.download-button.disabled {
  pointer-events: none;
  border-color: var(--line);
  background: #171717;
  color: #555;
}

@media (max-width: 900px) {
  .connect-panel,
  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .address-value-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .address-card {
    padding: 21px;
  }

  .download-card {
    min-height: 220px;
  }
}

/* Support + contact */
.support-section {
  position: relative;
}

.support-target {
  color: var(--accent);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: stretch;
}

.support-card,
.support-method,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.008)), var(--panel);
}

.support-intro-card {
  min-height: 100%;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

.support-intro-card::after {
  content: "€4";
  position: absolute;
  right: -8px;
  bottom: -34px;
  color: rgba(255,255,255,.025);
  font-size: 132px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.08em;
  pointer-events: none;
}

.support-mark {
  flex: 0 0 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,42,42,.42);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 1000;
  font-style: italic;
  letter-spacing: -.05em;
  transform: skew(-6deg);
}

.support-label {
  display: block;
  margin: 2px 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .18em;
}

.support-intro-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.support-intro-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 590px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.support-intro-card p strong {
  color: var(--text);
}

.support-methods {
  display: grid;
  gap: 10px;
}

.support-method {
  min-width: 0;
  padding: 14px 15px;
  display: grid;
  gap: 11px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.support-method:hover,
.contact-card:hover {
  border-color: rgba(255,42,42,.34);
  background: linear-gradient(145deg, rgba(255,42,42,.055), rgba(255,255,255,.008)), var(--panel);
}

.support-method-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.support-method-head > div {
  min-width: 0;
}

.support-method-head strong,
.contact-copy strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
}

.support-method-head small,
.contact-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.support-coin,
.contact-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,42,42,.27);
  border-radius: 5px;
  background: rgba(255,42,42,.07);
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
}

.support-address-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.support-address-row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 5px;
  background: #0a0a0a;
  color: #bdbdbd;
  font: 10px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.support-copy {
  min-width: 72px;
}

.support-method-link {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.support-open {
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}

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

.contact-card {
  min-width: 0;
  min-height: 82px;
  padding: 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
}

.contact-card-button {
  width: 100%;
  appearance: none;
}

.contact-copy {
  min-width: 0;
}

.contact-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  color: #707070;
  font-size: 14px;
  font-weight: 900;
}

.copy-hint {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .support-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .support-intro-card {
    padding: 20px;
    flex-direction: column;
  }

  .support-address-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.contact-card-static {
  cursor: default;
}

.contact-card-static:hover {
  transform: none;
}

.contact-discord-copy {
  min-width: 64px;
}


/* News + Terms pages */
.subpage-body { min-height:100vh; background:radial-gradient(circle at 12% -10%,rgba(255,42,42,.11),transparent 34%),var(--bg); }
.subpage-header { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:22px; min-height:72px; padding:12px max(22px,calc((100vw - 1180px)/2)); border-bottom:1px solid var(--line); background:rgba(8,8,8,.92); backdrop-filter:blur(14px); }
.subpage-brand { display:flex; align-items:center; gap:11px; color:var(--text); text-decoration:none; }
.subpage-brand-mark { display:grid; place-items:center; height:36px; min-width:60px; padding:0 9px; border-radius:3px; background:var(--accent); font-style:italic; font-weight:1000; letter-spacing:-2px; transform:skew(-8deg); }
.subpage-brand>span:last-child { display:flex; flex-direction:column; line-height:1; }
.subpage-brand strong { font-size:15px; letter-spacing:.08em; }
.subpage-brand small { margin-top:5px; color:var(--muted); font-size:8px; letter-spacing:.12em; }
.subpage-nav { display:flex; gap:6px; margin-left:auto; }
.subpage-nav a { padding:10px 14px; border-radius:5px; color:#a6a6a6; text-decoration:none; font-size:12px; font-weight:800; letter-spacing:.03em; }
.subpage-nav a:hover,.subpage-nav a.active { background:var(--accent-soft); color:var(--text); }
.page-shell { width:min(1180px,calc(100% - 44px)); margin:0 auto; padding:74px 0 90px; }
.page-hero { position:relative; margin-bottom:34px; padding:38px 0 34px; border-bottom:1px solid var(--line); }
.page-hero.compact { margin-bottom:20px; }
.page-kicker,.page-updated { color:var(--accent); font-size:10px; font-weight:950; letter-spacing:.2em; }
.page-hero h1 { margin:10px 0 12px; color:var(--text); font-size:clamp(52px,10vw,110px); line-height:.86; letter-spacing:-.065em; }
.page-hero p { max-width:760px; margin:0 0 19px; color:var(--muted); font-size:14px; line-height:1.7; }
.news-list { display:grid; gap:14px; }
.news-card,.terms-card,.page-empty { border:1px solid var(--line); border-radius:8px; background:linear-gradient(145deg,rgba(255,255,255,.027),rgba(255,255,255,.006)),var(--panel); }
.news-card { position:relative; overflow:hidden; padding:28px 30px; }
.news-card.featured { border-color:rgba(255,42,42,.34); background:linear-gradient(145deg,rgba(255,42,42,.075),rgba(255,255,255,.008)),var(--panel); }
.news-card.featured::before { content:"LATEST"; position:absolute; top:0; right:0; padding:7px 12px; background:var(--accent); color:white; font-size:8px; font-weight:1000; letter-spacing:.16em; }
.news-meta { display:flex; align-items:center; gap:12px; margin-bottom:13px; }
.news-tag { border:1px solid rgba(255,42,42,.32); border-radius:4px; padding:5px 8px; color:var(--accent); font-size:9px; font-weight:950; letter-spacing:.14em; }
.news-meta time { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; }
.news-card h2 { margin:0 0 10px; color:var(--text); font-size:clamp(22px,4vw,34px); line-height:1.08; letter-spacing:-.035em; }
.news-card>p { max-width:850px; margin:0; color:var(--muted); font-size:13px; line-height:1.7; }
.news-points { display:grid; gap:7px; margin:20px 0 0; padding:18px 0 0; border-top:1px solid var(--line); list-style:none; }
.news-points li { position:relative; padding-left:17px; color:#bdbdbd; font-size:12px; line-height:1.5; }
.news-points li::before { content:">"; position:absolute; left:0; color:var(--accent); font-weight:950; }
.page-empty { padding:34px; color:var(--muted); text-align:center; font-size:12px; }
.terms-card { overflow:hidden; }
.terms-notice { padding:25px 28px; border-bottom:1px solid rgba(255,42,42,.25); background:rgba(255,42,42,.065); }
.terms-notice strong { color:var(--accent); font-size:10px; letter-spacing:.18em; }
.terms-notice p { margin:8px 0 0; color:#c6c6c6; font-size:12px; line-height:1.65; }
.term-section { display:grid; grid-template-columns:54px 1fr; gap:18px; padding:27px 28px; border-bottom:1px solid var(--line); }
.term-section:last-child { border-bottom:0; }
.term-section>span { color:rgba(255,42,42,.7); font-size:11px; font-weight:950; letter-spacing:.14em; }
.term-section h2 { margin:0 0 8px; color:var(--text); font-size:17px; letter-spacing:-.015em; }
.term-section p { max-width:880px; margin:0; color:var(--muted); font-size:12px; line-height:1.75; }
.term-section code { border:1px solid var(--line); border-radius:4px; background:#0b0b0b; color:#d7d7d7; padding:2px 5px; }
.subpage-footer { display:flex; justify-content:space-between; gap:20px; width:min(1180px,calc(100% - 44px)); margin:0 auto; padding:23px 0 34px; border-top:1px solid var(--line); color:#5f5f5f; font-size:9px; font-weight:850; letter-spacing:.12em; }
@media (max-width:660px) {
 .subpage-header { min-height:64px; padding:10px 16px; }
 .subpage-brand small { display:none; }
 .subpage-brand-mark { min-width:50px; }
 .subpage-nav a { padding:9px 9px; font-size:10px; }
 .page-shell,.subpage-footer { width:min(100% - 28px,1180px); }
 .page-shell { padding-top:35px; }
 .page-hero { padding-top:24px; }
 .news-card { padding:22px 20px; }
 .term-section { grid-template-columns:32px 1fr; gap:10px; padding:22px 18px; }
 .terms-notice { padding:22px 18px; }
}


/* Live game-server News/TOS */
.news-card.unavailable { opacity: .62; }
.server-term-section > div { min-width: 0; }
.legal-live-text {
  margin: 14px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.018);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 14px;
  line-height: 1.75;
}

.simple-terms-card {
  padding: 24px;
}
.simple-terms-card .legal-live-text {
  margin: 0;
}


/* Leaderboards */
.leaderboard-shell { padding-bottom: 70px; }
.leaderboard-panel { border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.018); overflow:hidden; }
.game-tabs { display:flex; gap:0; border-bottom:1px solid var(--line); overflow-x:auto; scrollbar-width:none; }
.game-tabs::-webkit-scrollbar { display:none; }
.game-tab { appearance:none; border:0; border-right:1px solid var(--line); background:transparent; color:#777; padding:16px 22px; font:inherit; font-size:11px; font-weight:900; letter-spacing:.06em; cursor:pointer; white-space:nowrap; }
.game-tab:hover { color:#ccc; background:rgba(255,255,255,.025); }
.game-tab.active { color:#fff; background:rgba(204,20,30,.12); box-shadow:inset 0 -2px 0 var(--red); }
.leaderboard-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; border-bottom:1px solid var(--line); }
.leaderboard-game-title { display:block; color:#f4f4f4; font-size:18px; font-weight:950; letter-spacing:-.02em; }
.leaderboard-count { display:block; margin-top:4px; color:#666; font-size:9px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.mode-picker { display:flex; align-items:center; gap:10px; color:#777; font-size:9px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.mode-picker select { min-width:130px; border:1px solid var(--line); border-radius:4px; background:#111; color:#eee; padding:9px 32px 9px 11px; font:inherit; font-size:11px; font-weight:800; outline:none; }
.mode-picker select:focus { border-color:#555; }
.leaderboard-table-wrap { overflow-x:auto; }
.leaderboard-table { width:100%; border-collapse:collapse; min-width:620px; }
.leaderboard-table th { color:#666; font-size:9px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; text-align:right; padding:13px 18px; border-bottom:1px solid var(--line); }
.leaderboard-table th:nth-child(1), .leaderboard-table th:nth-child(2) { text-align:left; }
.leaderboard-table td { color:#aaa; font-size:12px; font-weight:750; text-align:right; padding:14px 18px; border-bottom:1px solid rgba(255,255,255,.055); font-variant-numeric:tabular-nums; }
.leaderboard-table tbody tr:last-child td { border-bottom:0; }
.leaderboard-table tbody tr:hover td { background:rgba(255,255,255,.018); }
.leaderboard-table .rank-number { width:54px; text-align:left; color:#666; font-weight:950; }
.leaderboard-table .rank-player { text-align:left; color:#eee; font-size:13px; font-weight:900; }
.leaderboard-table .rank-1 .rank-number, .leaderboard-table .rank-1 .rank-player { color:#f0c65a; }
.leaderboard-table .rank-2 .rank-number, .leaderboard-table .rank-2 .rank-player { color:#c5cbd2; }
.leaderboard-table .rank-3 .rank-number, .leaderboard-table .rank-3 .rank-player { color:#c28b61; }
.leaderboard-empty { text-align:center !important; color:#666 !important; padding:44px 18px !important; font-size:11px !important; font-weight:800 !important; letter-spacing:.04em; }
@media (max-width: 620px) {
  .leaderboard-toolbar { align-items:flex-start; flex-direction:column; }
  .mode-picker { width:100%; justify-content:space-between; }
  .mode-picker select { flex:1; max-width:220px; }
  .game-tab { padding:14px 17px; }
}

/* Account */
.account-shell { max-width: 1080px; }
.account-card {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,10,12,.82);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.account-loading { color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .08em; }
.account-card-heading h2,
.account-card h2 { margin: 5px 0 8px; font-size: clamp(1.35rem, 3vw, 2rem); }
.account-card-heading p,
.account-summary p { margin: 0; color: rgba(255,255,255,.64); }
.account-security-note {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid #d73535;
  background: rgba(215,53,53,.08);
  color: rgba(255,255,255,.82);
}
.account-form { display: grid; gap: 15px; max-width: 520px; margin-top: 20px; }
.account-form label { display: grid; gap: 7px; }
.account-form label > span { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.account-form input {
  width: 100%; box-sizing: border-box; padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.18); background: #09090b; color: #fff;
  font: inherit; outline: none;
}
.account-form input:focus { border-color: rgba(215,53,53,.8); box-shadow: 0 0 0 2px rgba(215,53,53,.12); }
.account-primary-button,
.account-secondary-button {
  border: 0; cursor: pointer; font: inherit; font-weight: 900; letter-spacing: .08em;
  padding: 12px 18px; text-transform: uppercase;
}
.account-primary-button { background: #d73535; color: #fff; }
.account-secondary-button { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.account-primary-button:disabled,
.account-secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.account-message { min-height: 1.3em; margin: 0; color: #ff7b7b; }
.account-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.persona-list, .entitlement-list { display: grid; gap: 10px; margin-top: 16px; }
.persona-chip, .entitlement-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025);
}
.persona-chip span, .entitlement-item span { font-size: .7rem; letter-spacing: .1em; color: rgba(255,255,255,.48); }
.account-empty { color: rgba(255,255,255,.48); }
.account-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.account-stat-card { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); padding: 16px; min-height: 126px; }
.account-stat-game { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.account-stat-skill { display: flex; align-items: baseline; gap: 8px; margin: 15px 0; }
.account-stat-skill strong { font-size: 2rem; line-height: 1; }
.account-stat-skill span { font-size: .68rem; letter-spacing: .1em; color: rgba(255,255,255,.45); }
.account-stat-row { display: flex; flex-wrap: wrap; gap: 10px; font-size: .7rem; color: rgba(255,255,255,.58); }
.account-stat-empty { display: block; margin-top: 25px; color: rgba(255,255,255,.38); font-size: .78rem; }
@media (max-width: 760px) {
  .account-grid, .account-stats-grid { grid-template-columns: 1fr; }
  .account-summary { align-items: flex-start; flex-direction: column; }
  .account-card { padding: 18px; }
}

/* Account social / EA Messenger */
.social-panel { margin-top: 18px; }
.social-heading { align-items: flex-start; }
.social-search { display: flex; gap: 10px; margin: 16px 0 6px; }
.social-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(0,0,0,.24);
  color: inherit;
  padding: 11px 12px;
  font: inherit;
}
.social-status { min-height: 20px; margin: 8px 0; font-size: .86rem; opacity: .75; }
.social-status.social-error { color: #ff8a8a; opacity: 1; }
.social-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.social-group { min-width: 0; }
.social-group h3 { margin: 0 0 8px; font-size: .86rem; letter-spacing: .07em; text-transform: uppercase; opacity: .72; }
.social-list { display: grid; gap: 8px; }
.social-search-results:not(:empty) { margin: 12px 0 18px; }
.social-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.social-player-identity { min-width: 0; }
.social-player-name-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.social-player-name-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-player small { display: block; margin-top: 3px; opacity: .58; font-size: .72rem; letter-spacing: .04em; }
.social-presence-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: rgba(255,255,255,.25); }
.social-presence-dot.online { background: #76e18b; box-shadow: 0 0 8px rgba(118,225,139,.45); }
.social-player-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.social-action {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  color: inherit;
  padding: 7px 9px;
  font: inherit;
  font-size: .76rem;
  cursor: pointer;
}
.social-action:hover { background: rgba(255,255,255,.12); }
.social-action-danger { opacity: .8; }
.social-pending { align-self: center; font-size: .68rem; letter-spacing: .06em; opacity: .55; }
.social-empty { margin: 0; padding: 9px 2px; opacity: .48; font-size: .82rem; }
.social-footnote { margin: 16px 0 0; opacity: .46; font-size: .76rem; }

@media (max-width: 760px) {
  .social-columns { grid-template-columns: 1fr; }
  .social-player { align-items: flex-start; flex-direction: column; }
  .social-player-actions { justify-content: flex-start; width: 100%; }
  .social-search { flex-direction: column; }
  .social-search .social-action { align-self: stretch; }
}
