/* Arc - playarcanists.com. The game's own menu look: deep purple glass, gold, the pixel display font. */

@font-face {
  font-family: "ArcMenu";
  src: url("/assets/ArcMenuFont.woff") format("woff");
  font-display: swap;
}

:root {
  --ink: #120820;
  --ink-2: #1c0d33;
  --card: rgba(34, 15, 56, 0.86);
  --card-edge: rgba(255, 255, 255, 0.08);
  --gold: #f5bd4a;
  --gold-deep: #d9851f;
  --text: #f2ebff;
  --muted: #b8a8d1;
  --good: #73e680;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--gold); }

/* The pixel font is drawn at whole multiples of its own size only (26 / 52), never smoothed. */
.px {
  font-family: "ArcMenu", system-ui, sans-serif;
  font-weight: normal;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  background: rgba(18, 8, 32, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 189, 74, 0.25);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 26px; }
.brand img { image-rendering: pixelated; }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.nav-cta { color: var(--ink); background: var(--gold); padding: 6px 14px; border-radius: var(--radius); }
.topbar nav a.nav-cta:hover { background: #ffd06a; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("/assets/bg.webp") center / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 8, 32, 0.15) 0%, rgba(18, 8, 32, 0.35) 55%, var(--ink) 100%);
}
.hero-chars {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1100px, 120%); opacity: 0.7; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 60px 16px 70px; }
/* a soft dark pool behind the words, so they read over the characters */
.hero-inner::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 55%;
  width: min(760px, 110vw); height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(14, 6, 26, 0.82), rgba(14, 6, 26, 0.55) 55%, transparent);
}
.logo { width: min(520px, 86vw); height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.tagline { font-size: 21px; margin: 18px auto 28px; max-width: 560px; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.online-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 6px 14px;
  background: rgba(18, 8, 32, 0.75); border: 1px solid var(--card-edge); border-radius: 999px;
  color: var(--muted); font-size: 14px;
}
.online-pill b, #online-count { color: var(--text); font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* ---- buttons: the menus' gold bevel and gold-rimmed glass ---- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 26px; border-radius: var(--radius); font-size: 17px;
  transition: transform 0.08s, filter 0.15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-gold {
  color: #2a1400;
  background: linear-gradient(180deg, #ffd977 0%, var(--gold) 45%, var(--gold-deep) 100%);
  border: 1px solid #ffe7a6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 14px rgba(0, 0, 0, 0.45);
}
.btn-glass {
  color: var(--text);
  background: rgba(60, 30, 95, 0.7);
  border: 1px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-small { padding: 7px 14px; font-size: 14px; }

/* ---- sections ---- */
section { padding: 70px 24px; }
.section-title { font-size: 52px; text-align: center; margin: 0 0 30px; color: var(--gold); text-shadow: 0 3px 0 #3a1a00; }
.panel {
  background: var(--card); border: 1px solid var(--card-edge);
  border-top: 2px solid rgba(245, 189, 74, 0.55);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
  max-width: 1150px; margin: 0 auto; padding-top: 20px;
}
.feature { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 26px; color: var(--gold); margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); }

.clips { background: var(--ink-2); }
.clip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1250px; margin: 0 auto; }
@media (max-width: 900px) { .clip-grid { grid-template-columns: 1fr; max-width: 560px; } }
.clip { margin: 0; background: #000; border: 1px solid var(--card-edge); border-radius: var(--radius); overflow: hidden; }
.clip video { display: block; width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; background: #000; }
.clip figcaption { padding: 8px 12px; font-weight: 600; color: var(--muted); }

.live-note { text-align: center; color: var(--muted); margin: -16px 0 24px; }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 1050px; margin: 0 auto; }
.stat-row { grid-column: 1 / -1; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 14px; text-align: center; }
.stat { display: flex; flex-direction: column; min-width: 140px; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 14px; }
.panel-title { font-size: 26px; margin: 0 0 12px; color: var(--gold); }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.board li:last-child { border-bottom: none; }
.board .rank { width: 26px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.board .rank.top { color: var(--gold); font-weight: 800; }
.board .name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .name .on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-left: 6px; vertical-align: middle; }
.board .val { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; }
.board .sub { color: var(--muted); font-size: 13px; margin-left: 6px; }
.board .empty { color: var(--muted); justify-content: center; }
.tour { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(245, 189, 74, 0.25); }
.tour-name { margin: 0; font-weight: 700; font-size: 18px; }
.tour-when { margin: 2px 0 12px; color: var(--muted); }

.download { background: var(--ink-2); text-align: center; }
.version { color: var(--muted); margin: -16px 0 26px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 1050px; margin: 0 auto; }
.dl h3 { font-size: 26px; margin: 0 0 16px; }
.dl.mine { border-top-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 30px rgba(245, 189, 74, 0.18); }
.dl-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.updates { color: var(--muted); margin-top: 26px; }

.footer { text-align: center; padding: 30px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--card-edge); }

@media (max-width: 760px) {
  .topbar { padding: 8px 16px; }
  .topbar nav { gap: 14px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 540px; }
  .tagline { font-size: 18px; }
  section { padding: 54px 16px; }
  .section-title { font-size: 26px; }
  .live-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 32px; }
}
