/* ============================================================
   ASCENDED TRACKING V3 — HUD & menus
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { width: 100%; height: 100%; overflow: hidden; background: #05070a; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #e9edf2;
  user-select: none;
}

#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }

.hidden { display: none !important; }

/* ---------------- HUD ---------------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }

/* "Show in-game HUD" off — everything hides except the crosshair */
#hud.hud-hidden > *:not(.crosshair) { display: none !important; }

.hud-panel {
  position: absolute;
  background: rgba(38, 48, 62, 0.82);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 285px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
.session-panel { top: 26px; left: 30px; }
.lastkill-panel { top: 178px; left: 30px; min-width: 250px; }

.session-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 4px; }
.session-title { font-size: 16px; font-weight: 600; letter-spacing: 0.06em; color: #dfe5ec; }
.session-time { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: auto; }
.session-body { font-size: 13px; line-height: 1.45; color: #c8d0da; }
.session-body b { color: #f2f5f8; font-weight: 600; }
.session-split { display: flex; justify-content: space-between; }

.big-timer {
  position: absolute; top: 22px; left: 50%;
  transform: translateX(-50%);
  font-size: 46px; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}

.fps-counter {
  position: absolute; top: 30px; right: 40px;
  font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: #f2f5f8; text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.fps-counter small { font-size: 13px; font-weight: 600; }

/* bot nameplate — positioned from JS */
.bot-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #ffb23e;
  color: #fff;
  font-size: 9px; font-weight: 600;
  padding: 1px 8px;
  border-radius: 7px;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.crosshair {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font-size: 17px; font-weight: 400;
  color: #ffb23e;
  text-shadow: 0 0 2px rgba(0,0,0,0.9);
}

/* ---------------- bottom HUD ---------------- */
.hud-bottom-left { position: absolute; left: 34px; bottom: 34px; }
.team-line { font-size: 20px; font-weight: 500; color: #e4e9ef; margin-bottom: 4px; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.team-line b { font-weight: 600; }
.health-bar {
  margin-top: 8px;
  width: 290px; height: 44px;
  background: linear-gradient(180deg, #ffb23e, #e8951f);
  border-radius: 22px;
  display: flex; align-items: center;
  padding: 0 18px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.25), 0 2px 8px rgba(0,0,0,0.5);
}
.hp-cross { font-size: 20px; color: #fff; }
.hp-value { margin-left: auto; font-size: 24px; font-weight: 700; color: #fff; }

.hud-bottom-center {
  position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  text-align: center;
}
.pill-row { display: flex; gap: 16px; justify-content: center; align-items: center; }
.hud-pill {
  background: rgba(245, 247, 249, 0.92);
  color: #2a2f36;
  border-radius: 22px;
  height: 44px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px;
  font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  position: relative;
}
.timer-pill { min-width: 250px; justify-content: space-between; }
.pill-icon { font-size: 20px; }
.ammo-pill { min-width: 250px; justify-content: center; flex-direction: column; gap: 0; line-height: 1.1; }
.ammo-label {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font-size: 17px; font-weight: 600; color: #eef1f5; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.scenario-title {
  margin-top: 14px;
  font-size: 24px; font-weight: 700; color: #f2f5f8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.hud-bottom-right {
  position: absolute; right: 34px; bottom: 34px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 26px;
}
.weapon-btn, .ads-btn {
  background: rgba(120, 132, 146, 0.85);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px; font-weight: 600; color: #fff;
  text-align: center; line-height: 1.25;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  max-width: 170px;
}
.weapon-btn small, .ads-btn small { font-size: 11px; font-weight: 500; color: #e3e8ee; }

/* ---------------- overlays ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(4, 6, 9, 0.82);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
}
.menu-box {
  background: rgba(30, 38, 50, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 42px 54px;
  text-align: center;
  box-shadow: 0 10px 50px rgba(0,0,0,0.6);
  min-width: 480px;
}
.menu-box h1 {
  font-size: 34px; font-weight: 700; letter-spacing: 0.04em; color: #f2f5f8;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
}
.menu-brand-tag {
  display: block; margin-bottom: 10px;
  color: #ffb23e; font-size: 12px; font-weight: 700; letter-spacing: 0.3em;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
}
.menu-box h1 em { font-style: normal; color: #ffb23e; }
.menu-box h1 span { color: #8c97a5; font-size: 22px; vertical-align: super; }
.menu-sub { margin: 14px 0 26px; color: #aeb8c4; font-size: 15px; }
.menu-sub b { color: #f2f5f8; }
.menu-row {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  margin-bottom: 28px; color: #c8d0da; font-size: 14px;
}
.menu-row input[type=range] { width: 220px; accent-color: #ffb23e; }
.menu-row span { min-width: 30px; text-align: left; font-weight: 700; color: #f2f5f8; }
.play-btn {
  background: linear-gradient(180deg, #ffc766, #ffb23e 55%, #e8951f);
  border: none; cursor: pointer;
  color: #0a0c0f; font-size: 19px; font-weight: 700; letter-spacing: 0.06em;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  padding: 14px 46px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 4px 18px rgba(255, 178, 62, 0.35);
  transition: filter 120ms, transform 120ms;
}
.play-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.menu-hint { margin-top: 18px; font-size: 12px; color: #77828f; }

.menu-home {
  display: inline-block; margin-top: 20px;
  color: #77828f; font-size: 13px; font-weight: 600; text-decoration: none;
  letter-spacing: 0.06em;
}
.menu-home:hover { color: #ffb23e; }

/* results */
.results-title { font-size: 28px !important; }
.score-line {
  margin: 22px 0 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.score-line span { font-size: 13px; letter-spacing: 0.2em; color: #8c97a5; }
.score-line b { font-size: 54px; font-weight: 800; color: #ffb23e; }
.res-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px;
  margin: 22px 0; text-align: center;
}
.res-grid div { display: flex; flex-direction: column; }
.res-grid span { font-size: 12px; letter-spacing: 0.1em; color: #8c97a5; text-transform: uppercase; }
.res-grid b { font-size: 24px; font-weight: 700; color: #f2f5f8; }
.hiscore { margin-bottom: 24px; font-size: 14px; color: #aeb8c4; }

/* ============================================================
   HUB PAGES (home / leaderboards / settings)
   ============================================================ */
body.hub {
  overflow: auto;
  background:
    radial-gradient(1100px 480px at 75% -10%, rgba(255, 178, 62, 0.07), transparent 60%),
    #0a0c0f;
  min-height: 100vh;
}

.hub-topbar {
  display: flex; align-items: center; gap: 40px;
  height: 62px; padding: 0 34px;
  background: linear-gradient(180deg, #161b23, #10141b);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 -2px 0 rgba(255, 178, 62, 0.3);
  position: sticky; top: 0; z-index: 10;
}
.hub-brand { display: flex; align-items: center; gap: 10px; }
.hub-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 21px; color: #14100a;
  background: linear-gradient(160deg, #ffc766, #ffb23e 60%, #e8951f);
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(255, 178, 62, 0.35);
}
.hub-name { font-size: 18px; font-weight: 800; letter-spacing: 0.05em; color: #f2f5f8; }
.hub-name em { font-style: normal; color: #ffb23e; }
.hub-nav { display: flex; gap: 6px; height: 100%; margin-left: auto; }
.hub-nav a {
  display: flex; align-items: center; padding: 0 16px;
  color: #9aa5b1; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  border-bottom: 3px solid transparent;
}
.hub-nav a:hover { color: #f2f5f8; }
.hub-nav a.active { color: #ffb23e; border-bottom-color: #ffb23e; }

.hub-content { max-width: 1180px; margin: 0 auto; padding: 30px 34px 70px; }
.hub-heading { font-size: 15px; font-weight: 800; letter-spacing: 0.18em; color: #8c97a5; margin-bottom: 14px; }

/* featured cards */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.feature-card {
  position: relative; display: block; text-decoration: none;
  background: #12161c; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; overflow: hidden;
  transition: transform 130ms, border-color 130ms, box-shadow 130ms;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 178, 62, 0.5);
  box-shadow: 0 10px 34px rgba(0,0,0,0.5);
}
.feature-card.featured { border-color: rgba(255, 178, 62, 0.45); }
.feature-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: #ffb23e; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 12px;
}
.feature-art { height: 130px; }
.art-ascended {
  background:
    radial-gradient(90px 46px at 30% 62%, rgba(210, 31, 31, 0.75), transparent 70%),
    radial-gradient(70px 36px at 62% 40%, rgba(210, 31, 31, 0.6), transparent 70%),
    radial-gradient(60px 30px at 82% 66%, rgba(210, 31, 31, 0.5), transparent 70%),
    linear-gradient(180deg, #232b36 0%, #161c25 100%);
}
.art-tile {
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    radial-gradient(40px 40px at 30% 45%, rgba(210, 31, 31, 0.8), transparent 60%),
    radial-gradient(40px 40px at 58% 70%, rgba(210, 31, 31, 0.65), transparent 60%),
    radial-gradient(40px 40px at 76% 30%, rgba(210, 31, 31, 0.55), transparent 60%),
    linear-gradient(180deg, #2a323e 0%, #1a212b 100%);
  background-size: 26px 26px, 26px 26px, auto, auto, auto, auto;
}
.feature-body { padding: 16px 18px 18px; }
.feature-body h3 { color: #f2f5f8; font-size: 20px; font-weight: 800; letter-spacing: 0.03em; }
.feature-body p { color: #9aa5b1; font-size: 13px; margin-top: 5px; }
.feature-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.feature-best { color: #8c97a5; font-size: 12px; }
.feature-best b { color: #ffb763; }
.feature-play { color: #ffb23e; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }

/* two-column hub grid */
.hub-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.hub-panel {
  background: #12161c; border: 1px solid #2a323d;
  padding: 18px 20px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.hub-panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.hub-panel-head h3 { color: #f2f5f8; font-size: 14px; font-weight: 800; letter-spacing: 0.14em; }
.hub-sub { color: #6f7a87; font-size: 12px; }
.hub-link { color: #ffb23e; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-decoration: none; }
.hub-link:hover { text-decoration: underline; }

/* daily challenges */
.daily-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.daily-item { display: flex; align-items: center; gap: 12px; }
.daily-check { font-size: 15px; color: #58636f; width: 20px; text-align: center; }
.daily-item.done .daily-check { color: #2fbb2f; }
.daily-body { flex: 1; min-width: 0; }
.daily-text { color: #c8d0da; font-size: 13px; }
.daily-item.done .daily-text { color: #77828f; text-decoration: line-through; }
.daily-bar { height: 5px; background: #232b36; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.daily-fill { height: 100%; background: #ffb23e; border-radius: 3px; }
.daily-item.done .daily-fill { background: #2fbb2f; }
.daily-progress { color: #8c97a5; font-size: 11px; font-weight: 700; white-space: nowrap; }
.daily-item.done .daily-progress { color: #2fbb2f; }

/* recent activity */
.best-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.best-chip {
  display: flex; flex-direction: column; gap: 2px;
  background: #1b212a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 8px 14px;
}
.best-chip span { color: #8c97a5; font-size: 11px; letter-spacing: 0.06em; }
.best-chip b { color: #ffb763; font-size: 17px; }
.best-chip.empty { color: #6f7a87; font-size: 12px; }
.activity-list { list-style: none; display: flex; flex-direction: column; }
.activity-item {
  display: grid; grid-template-columns: 1.3fr 0.9fr 1.1fr 0.6fr;
  gap: 10px; align-items: baseline;
  padding: 9px 2px; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.activity-item:first-child { border-top: none; }
.activity-mode { color: #c8d0da; font-weight: 600; }
.activity-score { color: #f2f5f8; font-weight: 700; }
.pb-badge {
  background: #ffb23e; color: #fff; border-radius: 8px;
  font-size: 9px; font-weight: 800; padding: 1px 6px; letter-spacing: 0.08em;
  vertical-align: 2px;
}
.activity-meta { color: #77828f; font-size: 12px; }
.activity-time { color: #58636f; font-size: 12px; text-align: right; }
.activity-item.empty { display: block; color: #6f7a87; }

/* leaderboards */
.lb-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.lb-tab {
  background: #12161c; border: 1px solid rgba(255,255,255,0.08);
  color: #9aa5b1; border-radius: 20px; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  padding: 8px 20px;
}
.lb-tab.active { background: #ffb23e; border-color: #ffb23e; color: #fff; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th {
  text-align: left; color: #6f7a87; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lb-table td {
  color: #c8d0da; font-size: 14px; padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-variant-numeric: tabular-nums;
}
.lb-table .lb-rank { color: #6f7a87; width: 48px; }
.lb-table tr:first-child .lb-rank, .lb-table tr:first-child .lb-score { color: #ffb763; font-weight: 800; }
.lb-score { font-weight: 700; color: #f2f5f8; }
.lb-empty { color: #6f7a87; padding: 26px 10px; text-align: center; }

/* settings */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.set-row { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.set-row label { color: #c8d0da; font-size: 13px; flex: 0 0 130px; }
.set-row input[type=range] { flex: 1; accent-color: #ffb23e; }
.set-row .set-val { color: #f2f5f8; font-weight: 700; font-size: 13px; min-width: 42px; text-align: right; }
.set-row select, .set-row input[type=color] {
  background: #1b212a; border: 1px solid rgba(255,255,255,0.12);
  color: #f2f5f8; border-radius: 6px; padding: 7px 10px; font-size: 13px;
}
.set-row input[type=color] { padding: 2px; width: 46px; height: 32px; cursor: pointer; }
.set-row input[type=checkbox] { width: 17px; height: 17px; accent-color: #ffb23e; }
.xhair-preview {
  height: 110px; border-radius: 8px; margin-top: 6px;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    #232b36;
  background-size: 22px 22px;
  display: grid; place-items: center;
}
.set-note { color: #6f7a87; font-size: 12px; margin-top: 12px; }
.set-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; }
.set-reset {
  background: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 20px;
  color: #9aa5b1; cursor: pointer; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; padding: 8px 18px;
}
.set-reset:hover { color: #f2f5f8; border-color: #9aa5b1; }
.set-saved { color: #2fbb2f; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity 200ms; }
.set-saved.show { opacity: 1; }

@media (max-width: 900px) {
  .feature-row, .hub-grid, .set-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PLAYTRENCHES.COM MAIN MENU (three-column launcher)
   ============================================================ */
body.mainmenu {
  overflow: auto;
  min-height: 100vh;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  background: #0a0c0f;
  color: #f2f5f8;
}

/* looping gameplay clip behind the menu (KovaaK launcher style) */
.mm-bg {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.mm-bg-overlay {
  position: fixed; inset: 0; z-index: 1;
  background:
    radial-gradient(1000px 520px at 50% -12%, rgba(255, 178, 62, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(10, 12, 15, 0.72), rgba(10, 12, 15, 0.82));
}
.mm-wrap { position: relative; z-index: 2; }

.mm-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.05fr;
  gap: 22px;
  max-width: 1420px;
  margin: 0 auto;
  padding: 30px;
  align-items: center;      /* columns center against each other */
  align-content: center;    /* whole cluster centers in the viewport */
  min-height: 100vh;
  box-sizing: border-box;
}
.mm-col { display: flex; flex-direction: column; gap: 22px; }

/* tactical corner-cut panel */
.mm-panel {
  background: #12161c;
  border: 1px solid #2a323d;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  position: relative;
}
.mm-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1b212a, #161b22);
  border-bottom: 1px solid #2a323d;
}
.mm-panel-head h2 {
  font-size: 14px; font-weight: 700; letter-spacing: 0.16em;
  color: #ffb23e; text-transform: uppercase;
}
.mm-panel-head .mm-sub { color: #5a6573; font-size: 11px; letter-spacing: 0.06em; }
.mm-panel-body { padding: 14px 16px 16px; }

/* -------- left: game modes -------- */
.mode-list { display: flex; flex-direction: column; gap: 10px; }
.mode-row {
  display: block; text-decoration: none;
  background: #1b212a; border: 1px solid #2a323d;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  padding: 12px 14px;
  transition: border-color 120ms, transform 120ms, box-shadow 120ms;
}
.mode-row:hover {
  border-color: #ffb23e;
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 #ffb23e, 0 0 18px rgba(255, 178, 62, 0.12);
}
.mode-row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mode-name { color: #f2f5f8; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.mode-play {
  color: #0a0c0f; background: #ffb23e;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 12px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}
.mode-row:hover .mode-play { background: #ffc766; }
.mode-blurb { color: #9aa7b4; font-size: 12px; margin-top: 5px; }
.mode-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: #5a6573; letter-spacing: 0.04em; }
.mode-meta b { color: #ffd33d; font-weight: 700; }
.mode-meta .mode-runs b { color: #9aa7b4; }

/* -------- center: logo + menu stack -------- */
.mm-center { text-align: center; padding-top: 8px; }
.mm-logo { margin-bottom: 26px; }
.mm-emblem {
  width: 92px; height: 92px; margin: 0 auto 14px;
  display: grid; place-items: center;
  font-size: 58px; color: #0a0c0f;
  background: linear-gradient(160deg, #ffc766, #ffb23e 55%, #e8951f);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 0 0 34px rgba(255, 178, 62, 0.4);
}
.mm-wordmark {
  font-size: 40px; font-weight: 700; letter-spacing: 0.06em; line-height: 1;
  color: #f2f5f8;
}
.mm-wordmark em { font-style: normal; color: #ffb23e; }
/* dashed tagline, matching the Trenches logo-sub treatment */
.mm-sub {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.26em; text-indent: 0.26em;
  text-transform: uppercase; color: #ffb23e;
  white-space: nowrap;
}
.mm-sub::before, .mm-sub::after { content: ""; height: 1px; width: 40px; flex: 0 0 auto; }
.mm-sub::before { background: linear-gradient(90deg, transparent, #ffb23e); }
.mm-sub::after { background: linear-gradient(90deg, #ffb23e, transparent); }
.mm-tagline { margin-top: 4px; color: #5a6573; font-size: 11px; letter-spacing: 0.2em; }

.mm-menu { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.mm-btn {
  display: block; text-decoration: none; text-align: center; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: 0.12em;
  padding: 15px 10px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: filter 120ms, transform 120ms, background 120ms;
}
.mm-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.mm-btn-primary {
  background: linear-gradient(180deg, #ffc766, #ffb23e 55%, #e8951f);
  color: #0a0c0f;
  box-shadow: 0 0 22px rgba(255, 178, 62, 0.35);
}
.mm-btn-secondary {
  background: #1b212a;
  border: 1.5px solid #ffb23e;
  color: #ffb23e;
}
.mm-btn-secondary:hover { background: rgba(255, 178, 62, 0.1); }
.mm-btn-ghost {
  background: #1b212a;
  border: 1px solid #2a323d;
  color: #9aa7b4;
}
.mm-btn-ghost:hover { color: #f2f5f8; border-color: #3a4452; }
.mm-version { margin-top: 22px; color: #5a6573; font-size: 11px; letter-spacing: 0.14em; }

/* -------- right: leaderboards + dailies -------- */
.mm-tabs { display: flex; gap: 6px; }
.mm-tab {
  background: none; border: 1px solid #2a323d; cursor: pointer;
  color: #9aa7b4; font-family: inherit;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}
.mm-tab.active { background: #ffb23e; border-color: #ffb23e; color: #0a0c0f; }
.mm-lb-table { width: 100%; border-collapse: collapse; }
.mm-lb-table th {
  text-align: left; color: #5a6573; font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 8px; border-bottom: 1px solid #2a323d;
}
.mm-lb-table td {
  color: #9aa7b4; font-size: 13px; padding: 8px;
  border-bottom: 1px solid rgba(42, 50, 61, 0.55);
  font-variant-numeric: tabular-nums;
}
.mm-lb-table .r { color: #5a6573; width: 34px; }
.mm-lb-table .s { color: #f2f5f8; font-weight: 700; }
.mm-lb-table tr:first-child .r, .mm-lb-table tr:first-child .s { color: #ffd33d; }
.mm-lb-empty { color: #5a6573; font-size: 12px; padding: 18px 4px; text-align: center; }
.mm-lb-foot { display: block; margin-top: 10px; text-align: right; }
.mm-lb-foot a { color: #ffb23e; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; }
.mm-lb-foot a:hover { text-decoration: underline; }

/* activity rows reuse daily/activity styles, tightened for the menu */
.mainmenu .daily-text, .mainmenu .activity-mode { font-size: 12px; }
.mainmenu .activity-item { grid-template-columns: 1.3fr 0.9fr 0.6fr; font-size: 12px; }
.mainmenu .activity-meta { display: none; }
.mainmenu .daily-progress { font-size: 10px; }

@media (max-width: 1100px) {
  .mm-wrap { grid-template-columns: 1fr; max-width: 640px; }
  .mm-center { order: -1; }
}

/* ================= TOURNAMENT ================= */
.tour-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; }
.tour-grid > div > .hub-panel { margin-bottom: 20px; }
.tour-banner {
  margin-bottom: 20px; color: #c8d0da; font-size: 14px; line-height: 1.5;
}
.tour-banner code {
  background: #1b212a; border: 1px solid #2a323d; border-radius: 4px;
  padding: 1px 7px; color: #ffb23e; font-size: 12px;
}
.tour-winner { border-color: #ffb23e; color: #f2f5f8; }
.tour-winner b { color: #ffb763; }
.tour-clock {
  font-size: 46px; font-weight: 800; letter-spacing: 0.06em; color: #f2f5f8;
  font-variant-numeric: tabular-nums; text-align: center; margin: 8px 0 2px;
}
.tour-clock-sub { text-align: center; color: #6f7a87; font-size: 12px; margin-bottom: 16px; }
.tour-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tour-stat {
  background: #171c24; border: 1px solid #2a323d; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.tour-stat-label { color: #6f7a87; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; }
.tour-stat b { color: #ffb763; font-size: 17px; font-variant-numeric: tabular-nums; }
.tour-btn { width: 100%; font-size: 14px; padding: 13px 10px; }
.tour-btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.tour-joined {
  text-align: center; padding: 13px 10px; font-size: 14px; font-weight: 800;
  letter-spacing: 0.1em; color: #2fbb2f; background: rgba(47, 187, 47, 0.08);
  border: 1px solid rgba(47, 187, 47, 0.35);
}
.tour-rules { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tour-rules li {
  color: #9aa5b1; font-size: 13px; line-height: 1.5; padding-left: 16px; position: relative;
}
.tour-rules li::before { content: "▸"; position: absolute; left: 0; color: #ffb23e; }
.tour-rules b { color: #c8d0da; }
.lb-table tr.tour-me td { background: rgba(255, 178, 62, 0.07); }
@media (max-width: 900px) { .tour-grid { grid-template-columns: 1fr; } }

/* tournament prize tiers + home panel */
.tour-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tour-tier {
  background: #171c24; border: 1px solid #2a323d; padding: 5px 10px;
  color: #c8d0da; font-size: 12px; font-variant-numeric: tabular-nums;
}
.tour-tier em { font-style: normal; color: #ffb763; font-weight: 800; margin-right: 4px; }
.tour-tier small { display: block; color: #6f7a87; font-size: 10px; margin-top: 2px; }
.tour-stat-note { color: #6f7a87; font-size: 10px; }
.tour-grow {
  margin-top: 10px; padding: 9px 12px; background: #171c24; border: 1px solid #2a323d;
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: #c8d0da;
  font-variant-numeric: tabular-nums;
}
.tour-grow-head {
  flex-basis: 100%; color: #ffb763; font-weight: 800;
  letter-spacing: 0.08em; font-size: 10px;
}
.tour-grow b { color: #ffb763; }
.tour-note-warn { color: #ffb763; font-weight: 600; }
.lb-views { margin-top: -6px; }
.lb-views .lb-tab { font-size: 11px; }
.lb-cta { display: inline-block; margin-top: 14px; font-size: 13px; padding: 11px 18px; }
.tour-buy {
  display: block; text-align: center; margin-top: 8px; font-size: 12px;
  color: #ffb763; text-decoration: none; letter-spacing: 0.04em;
}
.tour-buy:hover { text-decoration: underline; }
.tour-latest { margin-top: 10px; font-size: 12px; color: #c8d0da; }
.tour-latest b { color: #ffb763; }
@keyframes potPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 178, 62, 0.55); border-color: #ffb23e; }
  100% { box-shadow: 0 0 0 14px rgba(255, 178, 62, 0); border-color: #2a323d; }
}
.pot-pulse { animation: potPulse 0.9s ease-out 2; }
.tour-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 999; max-width: 340px;
  background: #12161c; border: 1px solid #ffb23e; padding: 12px 16px;
  color: #f2f5f8; font-size: 13px; line-height: 1.45;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.tour-toast b { color: #ffb763; }
.tour-prize-cell { color: #ffb763; font-variant-numeric: tabular-nums; }
.lb-table tr.tour-paid .lb-rank { color: #ffb763; font-weight: 800; }
.tour-mini-stats {
  display: flex; gap: 14px; margin-bottom: 10px;
  color: #6f7a87; font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
}
.tour-mini-stats b { color: #ffb763; font-size: 13px; margin-left: 4px; }

/* callsign (username) input */
.tour-callsign { margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 14px; }
.tour-cs-label { color: #6f7a87; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 8px; }
.tour-cs-row { display: flex; align-items: center; gap: 10px; }
.tour-cs-row input {
  flex: 1; min-width: 0; background: #1b212a; border: 1px solid rgba(255,255,255,0.12);
  color: #f2f5f8; padding: 11px 12px; font-family: inherit; font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; outline: none;
}
.tour-cs-row input:focus { border-color: #ffb23e; }
.tour-cs-status { width: 22px; text-align: center; font-size: 16px; font-weight: 800; }
.tour-cs-status.cs-ok { color: #2fbb2f; }
.tour-cs-status.cs-bad { color: #e5484d; }
.tour-cs-status.cs-wait { color: #6f7a87; }
.tour-cs-btn {
  background: linear-gradient(180deg, #ffc766, #ffb23e 55%, #e8951f);
  border: none; color: #0a0c0f; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; padding: 12px 18px;
}
.tour-cs-btn[disabled] { background: #1b212a; color: #5a6573; cursor: not-allowed; border: 1px solid #2a323d; }

/* share on X */
.tour-share { margin-top: 12px; font-size: 13px; }
