
  :root {
    --royal: #247ad0;       /* center of the 1v1LB banner */
    --royal-deep: #175291;  /* banner edges */
    --black: #0a0c10;
    --navy: #0c2240;       /* header and footer: the 1v1LB blue, near night */
    --ink: #0d1520;
    --ink-2: #5a6676;
    --silver: #eef1f5;
    --rule: #d9dfe7;
    --white: #ffffff;
    --win: #1f9d55;
    --loss: #c2412d;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body { background: var(--silver); color: var(--ink); font: 15px/1.5 Inter, system-ui, sans-serif; }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
  .label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

  /* top bar */
  .top { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
  .top .wrap { display: flex; align-items: center; height: 56px; gap: 28px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand img { height: 18px; }
  .brand b { font-weight: 900; font-size: 17px; letter-spacing: .02em; }
  .top nav { display: flex; gap: 22px; }
  .top nav a { text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fa6c4; }
  .top nav a.on { color: #fff; }
  .discord { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.18); padding: 8px 12px; border-radius: 2px; }
  .discord:hover { border-color: #5865f2; }
  .discord svg { width: 16px; height: 16px; }
  @media (max-width: 760px) { .top nav { display: none; } }

  /* banner */
  .banner { background: radial-gradient(ellipse 70% 120% at 50% 50%, var(--royal), var(--royal-deep)); color: #fff; position: relative; overflow: hidden; }
  .banner::after { content: ''; position: absolute; inset: 0; background: url(/img/mark.svg) no-repeat right -60px center / 620px auto; opacity: .06; pointer-events: none; }
  .banner .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 420px; gap: 48px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
  @media (max-width: 900px) { .banner .wrap { grid-template-columns: 1fr; gap: 32px; } }
  .banner .mark { width: 120px; display: block; margin-bottom: 22px; }
  .banner h1 { font-size: 44px; line-height: 1.02; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 14px; }
  .banner p { margin: 0; max-width: 470px; color: rgba(255,255,255,.82); font-size: 16px; }
  .banner .facts { display: flex; gap: 28px; margin-top: 28px; }
  .banner .facts div { border-left: 2px solid rgba(255,255,255,.35); padding-left: 12px; }
  .banner .facts b { display: block; font-size: 15px; }
  .banner .facts span { font-size: 12px; color: rgba(255,255,255,.7); }

  /* play panel */
  .play { background: var(--white); color: var(--ink); border-radius: 2px; box-shadow: 0 18px 40px rgba(5,25,55,.35); }
  .play .head { display: flex; border-bottom: 1px solid var(--rule); }
  .play .head button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 0 12px; font: 700 12px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
  .play .head button.on { color: var(--ink); border-bottom-color: var(--royal); }
  .play .body { padding: 20px; }
  .play .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
  .play .row:last-of-type { border-bottom: 0; }
  .play .row span:first-child { color: var(--ink-2); }
  .seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 2px; }
  .seg button { background: none; border: 0; padding: 5px 12px; font: 600 13px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
  .seg button + button { border-left: 1px solid var(--rule); }
  .seg button.on { background: var(--ink); color: #fff; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .btn { display: block; text-align: center; text-decoration: none; font: 700 14px Inter, sans-serif; padding: 12px 10px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; }
  .btn.primary { background: var(--royal); color: #fff; }
  .btn.primary:hover { background: #1f6dbb; }
  .btn.dark { background: var(--ink); color: #fff; }
  .btn.dark:hover { background: #000; }
  .btn.full { grid-column: 1 / -1; }
  .note { font-size: 12px; color: var(--ink-2); margin-top: 12px; }
  .hidden { display: none !important; }

  /* ranked queue card */
  .me-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
  .me-card .av { width: 44px; height: 44px; border-radius: 2px; background: var(--royal-deep); color: #fff; display: grid; place-items: center; font-weight: 800; }
  .me-card .who { font-weight: 800; }
  .me-card .sub { font-size: 12px; color: var(--ink-2); }
  .me-card .rating { text-align: right; }
  .me-card .rating b { font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1; display: block; }
  .me-card .rating span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .progress { margin-top: 12px; }
  .progress .bar { height: 4px; background: var(--rule); }
  .progress .bar i { display: block; height: 100%; background: var(--royal); }
  .progress .ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-top: 5px; }
  .field { padding: 14px 0 0; }
  .field .label { margin-bottom: 8px; }
  .pool { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pool div { border: 1px solid var(--rule); padding: 10px 12px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
  .pool div span { font-size: 11px; font-weight: 600; color: var(--ink-2); }
  .seg.wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .seg.wide button { padding: 9px 0; }
  .queue-btn { margin-top: 16px; width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; }
  .queue-btn .t { font-variant-numeric: tabular-nums; font-weight: 600; opacity: .85; }
  .stat-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
  .found { border: 1px solid var(--royal); margin-top: 16px; }
  .found .bar-top { background: var(--royal); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; display: flex; justify-content: space-between; }
  .found .vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 12px; text-align: center; }
  .found .vs b { display: block; }
  .found .vs span { font-size: 12px; color: var(--ink-2); }
  .found .vs em { font-style: normal; font-weight: 900; color: var(--ink-2); font-size: 13px; }
  .found .go { padding: 0 12px 12px; }

  /* content */
  #home-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; padding-top: 28px; padding-bottom: 56px; }
  @media (max-width: 900px) { #home-grid { grid-template-columns: 1fr; } }
  .panel { background: var(--white); border: 1px solid var(--rule); border-radius: 2px; }
  .panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .panel-head h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .sample { font-size: 11px; color: var(--ink-2); }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th { text-align: left; padding: 9px 16px; border-bottom: 1px solid var(--rule); }
  td { padding: 11px 16px; border-bottom: 1px solid var(--rule); }
  tr:last-child td { border-bottom: 0; }
  .num { text-align: right; font-variant-numeric: tabular-nums; }
  .pos { width: 44px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .name { font-weight: 700; }
  .title-slot { margin-top: 4px; width: 160px; height: 16px; background: repeating-linear-gradient(90deg, #e9edf2 0 6px, #f4f6f9 6px 12px); border-radius: 1px; }
  @media (max-width: 560px) { .title-slot { display: none; } }
  .tier { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
  .tier i { width: 8px; height: 8px; display: inline-block; }
  tr.me td { background: #f2f7fd; }
  tr.me .name::after { content: 'You'; margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); }
  .match { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  .match:last-child { border-bottom: 0; }
  .match .vs { font-weight: 700; font-size: 14px; }
  .match .meta { font-size: 12px; color: var(--ink-2); }
  .match .score { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 800; font-variant-numeric: tabular-nums; }
  .score .w { color: var(--win); } .score .l { color: var(--loss); }
  .rules dl { margin: 0; padding: 4px 16px 8px; }
  .rules dl div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
  .rules dl div:last-child { border-bottom: 0; }
  .rules dt { color: var(--ink-2); } .rules dd { margin: 0; font-weight: 600; }
  .stack { display: grid; gap: 28px; align-content: start; }

  footer { background: var(--navy); color: #8fa6c4; font-size: 13px; }
  footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; }
  .toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--black); color: #fff; padding: 10px 16px; border-radius: 2px; font-size: 14px; display: none; z-index: 9; }

  /* header right side */
  .top .right { margin-left: auto; display: flex; align-items: center; }
  .top .discord { margin-left: 0; }
  .devlogin { margin-left: 8px; background: none; border: 1px dashed rgba(255,255,255,.3); color: #8fa6c4; font: 600 12px Inter, sans-serif; padding: 8px 10px; border-radius: 2px; cursor: pointer; }
  body:not(.in) .in-only, body.in .out-only { display: none !important; }
  .in-only, .out-only { }
  .top .in-only { display: flex; align-items: center; gap: 10px; }
  .iconbtn { position: relative; background: none; border: 1px solid rgba(255,255,255,.14); width: 38px; height: 38px; border-radius: 2px; display: grid; place-items: center; cursor: pointer; }
  .iconbtn:hover, .iconbtn.open { border-color: rgba(255,255,255,.4); }
  .iconbtn svg { width: 18px; height: 18px; }
  .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--royal); color: #fff; font: 800 11px/18px Inter, sans-serif; text-align: center; border: 2px solid var(--navy); }
  .bell-wrap, .acct-wrap { position: relative; }
  .acct { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(255,255,255,.14); color: #fff; height: 38px; padding: 0 10px 0 4px; border-radius: 2px; cursor: pointer; font: 700 13px Inter, sans-serif; }
  .acct:hover, .acct.open { border-color: rgba(255,255,255,.4); }
  .acct-rating { color: #8fa6c4; font-weight: 600; font-variant-numeric: tabular-nums; }
  .av { width: 28px; height: 28px; border-radius: 2px; background: var(--royal-deep) center / cover; color: #fff; display: grid; place-items: center; font: 800 11px Inter, sans-serif; flex: none; }
  .av.big { width: 44px; height: 44px; font-size: 14px; }
  .dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); color: var(--ink); border: 1px solid var(--rule); border-radius: 2px; box-shadow: 0 16px 40px rgba(5,25,55,.25); z-index: 20; }
  .acct-drop { width: 200px; padding: 6px 0; }
  .acct-drop a, .acct-drop button { display: block; width: 100%; text-align: left; padding: 9px 14px; font: 500 14px Inter, sans-serif; text-decoration: none; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .acct-drop a:hover, .acct-drop button:hover { background: var(--silver); }
  .acct-drop button { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 11px; }
  .notif-drop { width: 380px; }
  @media (max-width: 520px) { .notif-drop { width: calc(100vw - 24px); right: -60px; } }
  .drop-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; }
  .linkbtn { background: none; border: 0; color: var(--royal); font: 600 12px Inter, sans-serif; cursor: pointer; padding: 0; }
  .notif-drop .notif-list { max-height: 420px; overflow-y: auto; }
  .notif { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rule); cursor: default; }
  .notif:last-child { border-bottom: 0; }
  .notif.unread { background: #f4f8fd; }
  .notif .ic { width: 28px; height: 28px; border-radius: 2px; display: grid; place-items: center; background: var(--silver); }
  .notif .ic svg { width: 15px; height: 15px; }
  .notif .t { font-weight: 700; font-size: 14px; line-height: 1.35; }
  .notif .b { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
  .notif .when { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
  .notif .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--royal); margin-left: 6px; vertical-align: middle; }
  .notif .tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--rule); padding: 0 5px; margin-left: 6px; vertical-align: middle; }
  .empty { padding: 18px 14px; color: var(--ink-2); font-size: 14px; }

  /* logged-in banner */
  .kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 8px; }
  .statrow { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin-top: 22px; justify-content: start; }
  .statrow div { padding: 0 22px; border-left: 1px solid rgba(255,255,255,.25); }
  .statrow div:first-child { padding-left: 0; border-left: 0; }
  .statrow b { display: block; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
  .statrow span { font-size: 12px; color: rgba(255,255,255,.72); }
  @media (max-width: 640px) { .statrow { grid-template-columns: repeat(2, auto); row-gap: 14px; } .statrow div:nth-child(3) { padding-left: 0; border-left: 0; } }
  .setup { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(8,30,60,.35); border: 1px solid rgba(255,255,255,.18); padding: 14px 16px; max-width: 560px; }
  .setup b { display: block; } .setup span { font-size: 13px; color: rgba(255,255,255,.75); }
  .btn.ghost-light { color: #fff; border-color: rgba(255,255,255,.5); white-space: nowrap; }
  .btn.ghost-light:hover { background: rgba(255,255,255,.1); }

  /* match finder */
  .finder-wrap { padding-top: 36px; }
  body:not(.in) .finder-wrap .head-actions { display: none; }
  .head-actions { display: flex; gap: 8px; }
  .btn.small { padding: 7px 12px; font-size: 13px; }
  .btn.ghost { background: var(--white); color: var(--ink); border-color: var(--rule); }
  .btn.ghost:hover { border-color: var(--ink-2); }
  .board td { vertical-align: middle; }
  .board .who { display: flex; align-items: center; gap: 10px; }
  .board .who .av { width: 30px; height: 30px; }
  .board .r { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
  .board td:last-child { text-align: right; width: 1%; white-space: nowrap; }
  .pill { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
  .pill.ranked { color: var(--royal); }
  .tag-s { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--rule); padding: 0 5px; margin-left: 6px; }
  @media (max-width: 760px) { .board th:nth-child(4), .board td:nth-child(4) { display: none; } }
  #mine .mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: #f2f7fd; }
  #mine .mine b { font-weight: 800; }
  #mine .mine .st { font-size: 12px; color: var(--ink-2); }

  /* modal */
  .modal { position: fixed; inset: 0; background: rgba(8,20,40,.55); display: grid; place-items: center; z-index: 30; padding: 16px; }
  .modal-card { background: var(--white); width: min(460px, 100%); border-radius: 2px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
  .modal-body { padding: 4px 18px 18px; }
  .seg.three { grid-template-columns: 1fr 1fr 1fr; }
  .input { width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 2px; font: 14px Inter, sans-serif; }
  .results { border: 1px solid var(--rule); border-top: 0; max-height: 220px; overflow-y: auto; }
  .results:empty { display: none; }
  .results button, .picked { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--rule); font: 600 14px Inter, sans-serif; text-align: left; cursor: pointer; }
  .results button:hover { background: var(--silver); }
  .results .r, .picked .r { margin-left: auto; color: var(--ink-2); font-weight: 500; font-size: 12px; }
  .picked { border: 1px solid var(--royal); cursor: default; }

  /* match room */
  .room-wrap { padding-top: 36px; padding-bottom: 56px; }
  .room { background: var(--white); border: 1px solid var(--rule); border-radius: 2px; }
  .room-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
  .room-top .code { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 34px 18px; gap: 18px; }
  .side { text-align: center; }
  .side .av { width: 72px; height: 72px; font-size: 20px; margin: 0 auto 10px; }
  .side .n { font-weight: 900; font-size: 20px; }
  .side .r { color: var(--ink-2); font-size: 13px; }
  .side .rd { margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
  .side .rd.ok { color: var(--win); }
  .vs-mark { font-weight: 900; font-size: 22px; color: var(--ink-2); }
  .room-info { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
  .room-info div { padding: 14px 18px; border-left: 1px solid var(--rule); }
  .room-info div:first-child { border-left: 0; }
  .room-info b { display: block; }
  .room-actions { display: flex; gap: 10px; justify-content: center; padding: 18px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
  .room-actions .btn { min-width: 180px; }
  .room-status { text-align: center; color: var(--ink-2); font-size: 14px; padding: 0 18px 18px; }
  @media (max-width: 640px) { .room-info { grid-template-columns: 1fr; } .room-info div { border-left: 0; border-top: 1px solid var(--rule); } }
  .notif.linked { cursor: pointer; }
  .notif.linked:hover .t { color: var(--royal); }
  /* Discord avatars: always fill the square, whatever card they sit in */
  .av { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }

  /* app-style boot: nothing shows until the session is known */
  .boot { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 28px; background: radial-gradient(ellipse 70% 120% at 50% 50%, var(--royal), var(--royal-deep)); transition: opacity .25s ease; }
  .boot img { width: 120px; }
  .spinner { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  body:not(.booting) .boot { opacity: 0; pointer-events: none; }
  body.booting { overflow: hidden; }

  /* setup */
  .setup-body { padding: 22px 22px 18px; }
  .setup-title { margin: 0 0 12px; font-size: 22px; font-weight: 900; }
  .setup-steps { margin: 0 0 18px; padding-left: 20px; color: var(--ink); }
  .setup-steps li { margin: 6px 0; }
  .setup-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
  .setup-row b { display: block; } .setup-row span { font-size: 13px; color: var(--ink-2); }
  .linked { border: 1px solid var(--rule); margin: 4px 0 12px; }
  .linked-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--silver); border-bottom: 1px solid var(--rule); }
  .linked-head .ok { color: var(--win); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .linked-head .bad { color: var(--loss); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .linked-perm { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--rule); }
  .checks { list-style: none; margin: 0; padding: 0 14px; }
  .checks li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
  .checks li:last-child { border-bottom: 0; }
  .checks li.ok span:first-child { color: var(--ink); } .checks li.ok span:first-child::first-letter { color: var(--win); }
  .checks li.miss { color: var(--loss); }
  .checks li span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }

  /* MW2 art from the player's own files */
  .art-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
  .art-card { position: relative; aspect-ratio: 16 / 7; background: repeating-linear-gradient(135deg, #e9edf2 0 10px, #f2f5f8 10px 20px) center / cover; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; }
  .art-card b { font-weight: 900; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
  .art-card span { font-size: 12px; color: var(--ink-2); }
  .art-card.has-art { background-size: cover; background-position: center; }
  .art-card.has-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,15,30,.75)); }
  .art-card.has-art b { position: relative; color: #fff; }
  .maptile { position: relative; overflow: hidden; }
  .maptile.has-art { background-size: cover; background-position: center; color: #fff; border-color: transparent; min-height: 64px; align-items: flex-end; }
  .maptile.has-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,15,30,.05), rgba(5,15,30,.72)); }
  .maptile.has-art, .maptile.has-art span { z-index: 0; }
  .maptile.has-art > * { position: relative; }
  .maptile.has-art span { color: rgba(255,255,255,.8); position: relative; }

  /* home link card states */
  .setup .ls-main { display: flex; align-items: flex-start; gap: 12px; }
  .setup .ls-side { display: flex; align-items: center; gap: 14px; flex: none; }
  .ok-ic, .warn-ic { width: 22px; height: 22px; flex: none; margin-top: 1px; }
  .ok-ic { color: #7ef0b0; } .warn-ic { color: #ffd27a; }
  .setup.state-ready { border-color: rgba(126,240,176,.45); background: rgba(8,40,40,.28); }
  .setup.state-incomplete, .setup.state-unsupported { border-color: rgba(255,210,122,.5); }
  .linkbtn.light { color: rgba(255,255,255,.75); font-size: 12px; text-decoration: none; }
  .linkbtn.light:hover { color: #fff; text-decoration: underline; }
  @media (max-width: 640px) { .setup { flex-direction: column; align-items: flex-start; } }

  /* hero layout: left column fills the height of the play card; link status sits at its bottom */
  .banner .wrap { align-items: stretch; }
  .hero-left { display: flex; flex-direction: column; justify-content: center; }
  body.in .hero-left { justify-content: flex-start; }
  .hero-in { display: flex; flex-direction: column; flex: 1; }
  .hero-in .setup { margin-top: auto; max-width: none; }
  @media (max-width: 900px) { .hero-in .setup { margin-top: 26px; } }

  /* link status card */
  .setup { background: rgba(6,24,48,.45); border: 1px solid rgba(255,255,255,.22); padding: 16px 18px; }
  .setup.state-ready { background: rgba(6,36,40,.5); border-color: rgba(126,240,176,.5); }
  .setup.state-none, .setup.state-incomplete { background: rgba(120,20,20,.35); border-color: rgba(255,120,110,.6); }
  .btn.mini-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 7px 12px; font-size: 12px; font-weight: 700; text-decoration: none; }
  .btn.mini-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }

  /* red call to link, full width of the hero content */
  .link-alert { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #c8322a; border: 1px solid #ff8a80; padding: 16px 20px; box-shadow: 0 10px 30px rgba(80,0,0,.35); }
  .link-alert > div { display: flex; align-items: flex-start; gap: 12px; }
  .link-alert .warn-ic { color: #fff; width: 26px; height: 26px; }
  .link-alert b { display: block; font-size: 18px; font-weight: 900; }
  .link-alert span { color: rgba(255,255,255,.88); font-size: 14px; }
  .btn.alert-btn { background: #fff; color: #b0271f; white-space: nowrap; padding: 12px 18px; }
  .btn.alert-btn:hover { background: #ffecea; }
  @media (max-width: 640px) { .link-alert { flex-direction: column; align-items: flex-start; } }

  /* setup page: linked or not */
  .setup-page { max-width: 760px; margin: 0 auto; }
  .setup-body.big { padding: 30px 28px 24px; }
  .setup-title { margin: 6px 0 8px; font-size: 26px; font-weight: 900; }
  .setup-lede { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; max-width: 560px; }
  .setup-lede code, .note code { font: 12px ui-monospace, Menlo, monospace; background: var(--silver); padding: 1px 5px; border: 1px solid var(--rule); word-break: break-all; }
  .setup-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
  .setup-actions .btn { padding: 12px 18px; }
  .state-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border: 1px solid; }
  .state-badge svg { width: 13px; height: 13px; }
  .state-badge.none { color: #b0271f; border-color: #f0b4ae; background: #fff4f3; }
  .state-badge.ok { color: var(--win); border-color: #b5e3c9; background: #f1fbf5; }
  .state-badge.bad { color: #b0271f; border-color: #f0b4ae; background: #fff4f3; }
  .more { margin: 6px 0 10px; font-size: 14px; }
  .more summary { cursor: pointer; color: var(--royal); font-weight: 600; }
  .more .setup-steps { margin-top: 10px; }

  /* linked: the proof card, painted with art read from their own files */
  .proof { position: relative; aspect-ratio: 16 / 6.5; background: var(--royal-deep) center / cover; display: flex; align-items: flex-end; }
  .proof::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,20,40,.1) 0%, rgba(5,20,40,.82) 78%); }
  .proof-in { position: relative; color: #fff; padding: 22px 26px; }
  .proof-tick { width: 40px; height: 40px; border-radius: 50%; background: #1f9d55; display: grid; place-items: center; margin-bottom: 10px; box-shadow: 0 0 0 4px rgba(31,157,85,.3); }
  .proof-tick svg { width: 22px; height: 22px; color: #fff; }
  .proof h2 { margin: 0 0 4px; font-size: 28px; font-weight: 900; }
  .proof p { margin: 0; max-width: 520px; color: rgba(255,255,255,.88); font-size: 14px; }
  .linked-name { padding: 4px 0 10px; }
  .linked-name b { display: block; font-size: 16px; }
  .setup-body .checks { padding: 0; border-top: 1px solid var(--rule); margin-bottom: 14px; }

  /* dialogs: fade the backdrop, lift the card a few pixels into place */
  .dlg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(8,20,40,0); transition: background .18s ease; }
  .dlg.open { background: rgba(8,20,40,.55); }
  .dlg-card { background: var(--white); width: min(420px, 100%); padding: 22px 22px 18px; border-radius: 2px; box-shadow: 0 24px 60px rgba(0,0,0,.3); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .18s ease, transform .18s cubic-bezier(.2,.8,.3,1); }
  .dlg.open .dlg-card { opacity: 1; transform: none; }
  .dlg-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
  .dlg-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
  .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
  .dlg-actions .btn { padding: 10px 16px; }
  .btn.danger { background: #c8322a; color: #fff; }
  .btn.danger:hover { background: #b0271f; }
  @media (prefers-reduced-motion: reduce) { .dlg, .dlg-card { transition: none; } }

  .modal { animation: dlg-fade .18s ease; }
  .modal .modal-card { animation: dlg-rise .18s cubic-bezier(.2,.8,.3,1); }
  @keyframes dlg-fade { from { background: rgba(8,20,40,0); } }
  @keyframes dlg-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }

  /* page header inside cards: square back button, breadcrumb, system chip */
  .room-top { padding: 12px 16px; }
  .crumb { display: flex; align-items: center; gap: 12px; font-size: 14px; }
  .crumb .back { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); text-decoration: none; }
  .crumb .back:hover { border-color: var(--ink-2); background: var(--silver); }
  .crumb .muted { color: var(--ink-2); text-decoration: none; }
  .crumb .muted:hover { color: var(--ink); }
  .crumb .sep { color: var(--rule); }
  .chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--silver); border: 1px solid var(--rule); padding: 5px 10px; border-radius: 2px; }
  .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--win); }
  .chip .dot.warn { background: #d4a72c; }

  .pool.four { grid-template-columns: 1fr 1fr; }
  .pool.four .maptile { min-height: 48px; }
  .seg.four { grid-template-columns: repeat(4, 1fr); }
  .btn.off { opacity: .45; pointer-events: none; }
  #maps button { padding: 5px 9px; }

  .invite-link { display: block; margin-top: 10px; font-size: 13px; }
  .share { display: flex; gap: 8px; margin-top: 10px; }
  .share .input { flex: 1; font-size: 13px; }
  .share-room { width: min(320px, 100%); font-size: 13px; }

  /* header controls, softened: round bell, pill account button */
  .iconbtn { border: 0; border-radius: 50%; width: 40px; height: 40px; background: transparent; transition: background .15s ease; }
  .iconbtn:hover, .iconbtn.open { background: rgba(255,255,255,.1); }
  .iconbtn svg { width: 20px; height: 20px; }
  .badge { top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e5483d; font: 800 10px/17px Inter, sans-serif; border: 2px solid var(--navy); }
  .acct { border: 0; border-radius: 20px; background: rgba(255,255,255,.07); height: 40px; padding: 0 12px 0 5px; transition: background .15s ease; }
  .acct:hover, .acct.open { background: rgba(255,255,255,.14); }
  .acct .av { border-radius: 50%; width: 30px; height: 30px; }
  .dropdown { border-radius: 6px; overflow: hidden; }

  /* link status sits under your name; no longer pinned to the bottom */
  .hero-in .setup { margin-top: 18px; }
  .setup.compact { padding: 12px 14px; max-width: 560px; }
  .setup.compact b { font-size: 15px; }
  .setup.compact span { font-size: 13px; }
  .hero-in .statrow { margin-top: 26px; }
  body.in .banner .wrap { align-items: center; }
  /* the play card keeps one height whichever tab is open */
  .play .body { min-height: 404px; display: flex; flex-direction: column; }
  .play .body > .note:last-child, .play .body > #q-idle, .play .body > #q-search, .play .body > #q-found { margin-top: auto; }
  .play [data-pane="practice"] .actions { margin-top: auto; }

  /* calling cards, emblems, socials */
  a.who.plain { text-decoration: none; color: inherit; }
  a.who.plain:hover .name { color: var(--royal); }
  .emblem { width: 34px; height: 34px; flex: none; border-radius: 2px; background: var(--silver) center / contain no-repeat; border: 1px solid var(--rule); }
  .emblem.has-art { border-color: transparent; background-color: transparent; }
  .emblem.big { width: 72px; height: 72px; }
  .titlebar-art { display: block; width: 150px; height: 26px; margin-top: 3px; background: center / cover no-repeat; border-radius: 1px; }
  .titlebar-art:not(.has-art) { background: repeating-linear-gradient(90deg, #e9edf2 0 6px, #f4f6f9 6px 12px); }
  .socials { white-space: nowrap; text-align: right; }
  .social { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--ink-2); border-radius: 50%; }
  .social:hover { color: var(--ink); background: var(--silver); }
  .social svg { width: 16px; height: 16px; }
  .socials.big .social { width: 38px; height: 38px; background: rgba(255,255,255,.12); color: #fff; }
  .socials.big .social svg { width: 18px; height: 18px; }
  .ladder-table tr.me td { background: #f2f7fd; }
  .card-hero { position: relative; padding: 22px 18px; background: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .calling-card { position: relative; display: flex; align-items: center; gap: 14px; width: min(520px, 100%); aspect-ratio: 520 / 120; padding: 12px 16px; background: #1a2d4a center / cover no-repeat; border: 1px solid rgba(255,255,255,.15); color: #fff; }
  .calling-card .cc-name b { display: block; font-size: 20px; font-weight: 900; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
  .calling-card .cc-name span { font-size: 13px; color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
  .calling-card .tag-s { color: #fff; border-color: rgba(255,255,255,.4); }
  .cc-preview { background: var(--navy); padding: 16px; margin-top: 8px; }
  .room-info.four { grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 640px) { .room-info.four { grid-template-columns: 1fr 1fr; } }
  .picker { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; padding: 6px; border: 1px solid var(--rule); background: var(--silver); }
  .picker.titles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .picker.emblems { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .pick { padding: 3px; border: 2px solid transparent; background: var(--white); cursor: pointer; border-radius: 2px; }
  .pick.on { border-color: var(--royal); }
  .pick span { display: block; background: center / contain no-repeat; }
  .picker.titles .pick span { aspect-ratio: 140 / 32; background-size: cover; }
  .picker.emblems .pick span { aspect-ratio: 1; }

  #home-grid { grid-template-columns: 1fr; }
  #home-grid #ladder .name { font-size: 15px; }

  /* profile: who they are on the left, their calling card untouched on the right */
  .pf-banner { background: var(--navy); color: #fff; padding: 26px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; align-items: center; }
  .pf-banner .pf-card { align-items: center; }
  .pf-banner .pf-card .xp { width: auto; min-width: 340px; }
  /* The card and the level bar under it share one centre line. */
  .pf-banner .pf-card .mw2-only { display: flex; flex-direction: column; align-items: center; }
  .pf-banner .pf-card .xp { justify-content: center; }
  @media (max-width: 860px) { .pf-banner { grid-template-columns: 1fr; } .pf-banner .pf-card { align-items: flex-start; } }
  .pf-who { display: flex; gap: 18px; align-items: flex-start; }
  .pf-who .av.pf-av { width: 84px; height: 84px; font-size: 24px; border-radius: 50%; }
  .pf-who h1 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.1; }
  .pf-who .tag-s { color: #fff; border-color: rgba(255,255,255,.4); vertical-align: middle; }
  .pf-handle { color: #8fa6c4; font-size: 14px; margin-top: 2px; }
  .pf-rank { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
  .pf-rank span + span::before { content: '·'; margin-right: 14px; color: rgba(255,255,255,.35); }
  .tier.light { color: #fff; }
  .pf-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
  .label.light { color: #8fa6c4; margin-bottom: 8px; }
  .cc-plate { display: flex; align-items: center; gap: 10px; }
  .cc-emblem { width: 64px; height: 64px; background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
  .cc-title { display: block; width: 280px; height: 64px; background: rgba(255,255,255,.06) center / contain no-repeat; border: 1px solid rgba(255,255,255,.15); border-radius: 2px; }
  .cc-title.has-art, .cc-emblem.has-art { background-color: transparent; border-color: transparent; }
  .cc-note { font-size: 12px; color: #8fa6c4; margin-top: 8px; }
  .room-info.five { grid-template-columns: repeat(5, 1fr); }
  @media (max-width: 760px) { .room-info.five { grid-template-columns: 1fr 1fr; } }
  a.plain { color: inherit; text-decoration: none; } a.plain:hover { color: var(--royal); }
  .board .w { color: var(--win); } .board .l { color: var(--loss); }
  .titlebar-art { background-size: contain; background-position: left center; }

  /* sticky footer: short pages still put the footer at the bottom of the window */
  body { min-height: 100vh; display: flex; flex-direction: column; }
  main { flex: 1 0 auto; }

  /* practice: picture tiles to pick the map; play buttons pinned to the card bottom */
  .pool.pickable .maptile { cursor: pointer; font: inherit; text-align: left; border: 1px solid var(--rule); background-color: var(--white); padding: 10px 12px; min-height: 64px; display: flex; align-items: flex-end; }
  .pool.pickable .maptile b { font-weight: 800; font-size: 14px; position: relative; }
  .pool.pickable .maptile.on { outline: 2px solid var(--royal); outline-offset: -2px; }
  .pool.pickable .maptile.has-art.on { outline-color: #fff; box-shadow: 0 0 0 2px var(--royal); }
  .play .pinned { margin-top: auto; padding-top: 16px; }
  .play .pinned .actions { margin-top: 0; }
  .play .pinned .note { margin-top: 10px; }
  .play [data-pane="practice"] .actions { margin-top: 0; }
  .row-acts { text-align: right; white-space: nowrap; }
  .row-acts .btn + .btn { margin-left: 6px; }

  /* MW2 player card: translucent bar, emblem, name, title art with its text */
  .pcard { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: rgba(8,14,24,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); color: #fff; width: max-content; max-width: 100%; }
  .pc-emblem { flex: none; width: 64px; height: 64px; background: rgba(255,255,255,.06) center / contain no-repeat; }
  .pc-emblem.has-art { background-color: transparent; }
  .pc-body { min-width: 0; }
  .pc-name { font-weight: 900; font-size: 18px; letter-spacing: .01em; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pc-sub { margin-left: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
  .pc-title { position: relative; display: grid; place-items: center; width: 256px; height: 48px; margin-top: 6px; background: rgba(255,255,255,.06) center / 100% 100% no-repeat; }
  .pc-title.empty { display: none; }
  .pc-title-text { font-weight: 900; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 0 2px #000, 0 1px 3px #000, 0 0 8px rgba(0,0,0,.6); padding: 0 8px; text-align: center; line-height: 1.05; }
  .pcard.lg .pc-emblem { width: 76px; height: 76px; }
  .pcard.lg .pc-name { font-size: 22px; }
  .pcard.lg .pc-title { width: 300px; height: 56px; }
  .pcard.lg .pc-title-text { font-size: 19px; }
  .pcard.sm { padding: 5px 10px 5px 5px; gap: 10px; background: #13233b; }
  .pcard.drawn { padding: 0; background: none; border: 0; backdrop-filter: none; display: inline-flex; align-items: center; gap: 12px; }
  .mw2-card { display: block; height: auto; max-width: 100%; }
  .pcard.sm .pc-emblem { width: 40px; height: 40px; }
  .pcard.sm .pc-name { font-size: 14px; }
  .pcard.sm .pc-sub { font-size: 10px; }
  .pcard.sm .pc-title { width: 168px; height: 32px; margin-top: 3px; }
  .pcard.sm .pc-title-text { font-size: 12px; }
  .hello-row { display: flex; align-items: flex-end; gap: 14px 32px; flex-wrap: wrap; }
  .hello-row h1 { margin-bottom: 0; }
  #my-card { margin: 0; display: flex; flex-direction: column; align-items: flex-end; }
  #my-card .edit-chip { margin-top: 6px; }
  #my-card:empty { display: none; }
  .picker.titles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-height: 360px; }
  .picker.titles .pick { padding: 0; background: #13233b; }
  .picker.titles .pick .pc-title { width: 100%; height: auto; aspect-ratio: 256 / 48; margin: 0; }
  .picker.titles .pick .pc-title-text { font-size: 13px; }
  .cc-preview { background: var(--navy); padding: 18px; margin-top: 8px; }
  @media (max-width: 560px) { .pcard.lg .pc-title { width: 220px; height: 42px; } .pcard.lg .pc-emblem { width: 60px; height: 60px; } }

  /* empty states sit centered in their table or panel */
  .board td.empty, .empty { text-align: center; color: var(--ink-2); padding: 28px 16px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  /* The card is see-through: on the white ladder it sits on the profile banner's navy. */
  /* The ladder is navy like the profile banner, so the see-through cards sit on the colour they were tuned on. */
  .room.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
  .room.dark .crumb, .room.dark .crumb a { color: rgba(255,255,255,.7); }
  .room.dark .crumb b, .room.dark .crumb .here { color: #fff; }
  .room.dark .room-top { border-color: rgba(255,255,255,.08); }
  .room.dark .crumb .back { color: #fff; border-color: rgba(255,255,255,.2); }
  .room.dark .crumb .back:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
  .room.dark .crumb .sep { color: rgba(255,255,255,.25); }
  .room.dark .board th { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.08); background: transparent; }
  .room.dark .board td { border-color: rgba(255,255,255,.08); }
  .ladder-table tbody tr { cursor: pointer; }
  .ladder-table tbody tr:hover td { background: #f6f9fd; }
  /* The card is see-through; on the white ladder it sits on a navy plate, the colour it reads clearest on. */
  /* The card is see-through; on the white ladder it sits on a navy plate cut exactly to the card, the profile banner colour. */
  .ladder-table .pcard.drawn .mw2-card { background: none; }
  .ladder-table td { padding-top: 12px; padding-bottom: 12px; }
  .ladder-table td.pos { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ink-2); width: 44px; }
  .ladder-table tr.top1 td.pos { color: #c9a227; }
  .ladder-table tr.top2 td.pos { color: #8e9aa8; }
  .ladder-table tr.top3 td.pos { color: #b07345; }
  .ladder-table td.num b { font-size: 17px; }
  /* Phones: the ladder keeps rank, player, record and the claim button; socials live on the profile. */
  @media (max-width: 600px) {
    .ladder-table th.socials-h, .ladder-table td.socials { display: none; }
    .ladder-table .open-sub { display: none; }
    .ladder-table td, .ladder-table th { padding-left: 5px; padding-right: 5px; }
    .ladder-table td.pos { width: 34px; font-size: 17px; }
  }
  .ladder-table tr.open-spot { cursor: default; }
  .ladder-table tr.open-spot:hover td { background: none; }
  .ladder-table tr.open-spot td { padding-top: 16px; padding-bottom: 16px; }
  .ladder-table .open-label { display: block; font-size: 15px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
  .ladder-table .open-sub { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
  .ladder-table td.claim-cell { text-align: right; white-space: nowrap; }
  .ladder-table .vacate { margin-left: 10px; font-size: 11px; color: var(--ink-2); }
  .ladder-table .pcard .pc-sub { color: var(--ink-2); }
  .room.dark .ladder-table tbody tr:hover td { background: rgba(255,255,255,.05); }
  .room.dark .ladder-table tr.me td { background: rgba(36,122,208,.18); }
  .room.dark .tier { color: #fff; }
  .room.dark .social { color: rgba(255,255,255,.65); }
  .room.dark .social:hover { color: #fff; background: rgba(255,255,255,.1); }
  .room.dark .pcard .pc-sub { color: rgba(255,255,255,.55); }
  /* profile tabs */
  .pf-tabs { display: flex; gap: 4px; padding: 0 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .pf-tabs a { padding: 14px 10px 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
  .pf-tabs a:hover { color: var(--ink); }
  .pf-tabs a.on { color: var(--ink); border-bottom-color: var(--royal); }
  .pf-videos { padding: 18px; }
  .pf-videos .frame { position: relative; aspect-ratio: 16 / 9; max-width: 820px; background: #000; }
  .pf-videos iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  /* ladder socials: each network in its own colour */
  .ladder-table th.socials-h { text-align: right; }
  .ladder-table td.socials { min-width: 150px; }
  .ladder-table td.socials .none { color: var(--rule); }
  .ladder-table .social { width: 32px; height: 32px; margin-left: 2px; }
  .ladder-table .social svg { width: 19px; height: 19px; }
  .ladder-table .social-youtube { color: #ff0000; }
  .ladder-table .social-twitter { color: #000; }
  .ladder-table .social-twitch { color: #9146ff; }
  .ladder-table .social-tiktok { color: #000; }
  .ladder-table .social:hover { background: var(--silver); }
  .ladder-table .social-discord { color: #5865f2; }
  .pf-discord { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
  .pf-discord svg { width: 16px; height: 16px; color: #8b95f7; }
  .pf-discord:hover { color: #fff; }
  .ladder-table th.num, .ladder-table td.num { width: 110px; }
  .ladder-table td.num { font-size: 15px; font-weight: 600; }
  .ladder-table td.socials, .ladder-table th.socials-h { width: 200px; }
  /* level, prestige and XP */
  .xp { display: flex; align-items: center; gap: 12px; margin-top: 14px; max-width: 420px; }
  .xp-icon { flex: none; width: 34px; height: 34px; background: center / contain no-repeat; }
  .xp-body { flex: 1; min-width: 0; }
  .xp-line { display: flex; align-items: baseline; gap: 10px; font-size: 13px; margin-bottom: 6px; }
  .xp-line b { font-size: 15px; font-weight: 900; }
  .xp-pres { font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #f2c14e; }
  .xp-num { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12px; }
  .xp-bar { height: 6px; background: var(--silver); border-radius: 3px; overflow: hidden; }
  .xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f2c14e, #ffd977); border-radius: 3px; transition: width .6s cubic-bezier(.2,.8,.3,1); }
  .xp.dark { color: #fff; }
  .xp.dark .xp-num { color: rgba(255,255,255,.65); }
  .xp.dark .xp-bar { background: rgba(255,255,255,.14); }
  .pf-card { display: flex; flex-direction: column; align-items: flex-start; }
  .pf-card .xp { width: 100%; max-width: none; }
  #my-card[data-edit-card] { cursor: pointer; }
  #my-xp .xp { max-width: 560px; margin: 0 0 22px; }
  /* Hovering your own card offers the editor: the card dims and an Edit Card pill rises in. */
  #my-card[data-edit-card] .pcard { position: relative; }
  #my-card[data-edit-card] .pcard::before { content: ''; position: absolute; inset: 0; background: rgba(8,20,40,.55); opacity: 0; transition: opacity .16s ease; }
  #my-card[data-edit-card] .pcard { cursor: pointer; }
  .edit-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); background: none; border: 0; cursor: pointer; }
  .edit-chip:hover { color: #fff; }
  .edit-chip svg { width: 12px; height: 12px; }
  #my-card[data-edit-card]:hover .pcard::before, #my-card[data-edit-card]:focus-within .pcard::before { opacity: 1; }
  #my-card[data-edit-card] { position: relative; }
  .edit-hover { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; line-height: 1; background: var(--royal); border-radius: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s cubic-bezier(.2,.8,.3,1); white-space: nowrap; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
  .edit-hover svg { width: 13px; height: 13px; flex: none; }
  #my-card[data-edit-card]:hover .edit-hover, #my-card[data-edit-card]:focus-within .edit-hover { opacity: 1; transform: translate(-50%, -50%); }
  /* calling-card editor */
  .card-editor { width: min(760px, 100%); padding: 20px 20px 16px; }
  .ce-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .ce-climb { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
  .ce-preview { display: grid; place-items: center; min-height: 96px; margin: 14px 0; background: radial-gradient(ellipse 70% 120% at 50% 50%, var(--royal), var(--royal-deep)); }
  .ce-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); }
  .ce-tabs button { padding: 10px 12px 9px; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
  .ce-tabs button span { font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
  .ce-tabs button.on { color: var(--ink); border-bottom-color: var(--royal); }
  .ce-grid { display: grid; gap: 8px; max-height: min(46vh, 420px); overflow-y: auto; padding: 10px 2px; }
  .ce-grid.titles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .ce-grid.emblems { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .ce-item { position: relative; padding: 0; border: 2px solid transparent; background: #13233b; cursor: pointer; border-radius: 2px; }
  .ce-item.on { border-color: var(--royal); box-shadow: 0 0 0 2px rgba(36,122,208,.25); }
  .ce-art { display: grid; place-items: center; background: center / cover no-repeat; }
  .ce-grid.titles .ce-art { aspect-ratio: 160 / 32; }
  .ce-grid.titles .ce-title canvas { display: block; }
  .ce-grid.emblems .ce-art { aspect-ratio: 1; background-size: contain; margin: 6px; }
  .ce-text { color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .04em; text-shadow: 0 0 2px #000, 0 1px 2px #000; padding: 0 6px; text-align: center; line-height: 1.05; }
  .ce-item.locked .ce-art { filter: grayscale(1) brightness(.45); }
  .ce-item.locked { cursor: not-allowed; }
  .ce-lock { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 2px 4px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(8,20,40,.75); }
  .ce-grid.emblems .ce-lock { font-size: 9px; }
  .socials.big { display: inline-flex; gap: 8px; }
  .mw2-text { display: inline-flex; align-items: flex-end; }
  .mw2-text.drawn canvas { display: block; }
  .xp-line { align-items: flex-end; }
  .xp-line .mw2-text.xp-pres { margin-bottom: 1px; }
  .xp-line .mw2-text.xp-num { margin-left: auto; }
  #my-card .edit-chip { display: none; }

  /* ---- MW2 not linked: nothing drawn from MW2 shows; one clear way in ---- */
  body:not(.mw2) .mw2-only, body:not(.mw2) #my-xp, body:not(.mw2) #my-card, body:not(.mw2) .statrow .st-level { display: none !important; }
  body.mw2 .mw2-locked, body.mw2 .mw2-locked-bar { display: none !important; }
  /* stand-in cards on the ladder: just the name */
  body:not(.mw2) .pcard { background: none; border: 0; padding: 0; backdrop-filter: none; color: inherit; }
  body:not(.mw2) .pcard .pc-emblem { display: none; }
  body:not(.mw2) .pcard .pc-name { font-size: 15px; font-weight: 800; text-shadow: none; }
  body:not(.mw2) .ladder-table td { padding-top: 14px; padding-bottom: 14px; }
  .mw2-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; width: 100%; max-width: 380px; min-height: 120px; padding: 18px 20px; border: 1px dashed rgba(255,255,255,.28); border-radius: 2px; color: #fff; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
  .mw2-locked:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.04); }
  .mw2-locked b { font-size: 14px; font-weight: 800; }
  .mw2-locked span { font-size: 12px; color: rgba(255,255,255,.65); }
  .mw2-locked .lock-ic { width: 18px; height: 18px; margin-bottom: 4px; opacity: .8; }
  .mw2-locked.light { color: var(--ink); border-color: var(--rule); max-width: none; margin-top: 8px; }
  .mw2-locked.light span { color: var(--ink-2); }
  .mw2-locked.light:hover { border-color: var(--ink-2); background: var(--silver); }
  .mw2-locked-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #f2f7fd; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 13px; }
  .mw2-locked-bar .lock-ic { width: 15px; height: 15px; color: var(--royal); flex: none; }
  .mw2-locked-bar .go { margin-left: auto; font-weight: 800; color: var(--royal); white-space: nowrap; }
  .mw2-locked-bar:hover .go { text-decoration: underline; }
  /* the unlinked hero */
  .setup.unlock { display: block; padding: 22px 22px 20px; background: rgba(8,20,40,.28); border: 1px solid rgba(255,255,255,.16); }
  .unlock-head b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
  .unlock-head span { display: block; margin-top: 6px; color: rgba(255,255,255,.8); font-size: 14px; max-width: 520px; }
  .unlock-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
  .unlock-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
  .unlock-list .ok-ic { width: 16px; height: 16px; color: #7fd6a1; flex: none; }
  .unlock-cta { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
  .unlock-cta span { font-size: 12px; color: rgba(255,255,255,.65); }
  .btn.unlock-btn { background: #fff; color: var(--navy); padding: 12px 22px; font-weight: 800; }
  .btn.unlock-btn:hover { background: #e9f1fb; }
  .pcard.drawn { line-height: 0; }
  .ce-grid[hidden] { display: none; }
  .unlock-buy { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.7); }
  .unlock-buy a { color: #fff; font-weight: 800; }
  .unlock-buy.center { text-align: center; }
  .ruleset { margin-left: 8px; padding: 2px 7px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--royal); background: #e8f1fb; border-radius: 2px; vertical-align: middle; }
  .crumb b .ruleset { font-size: 10px; }
  .pf-ladder { border-top: 1px solid var(--rule); }
  .pf-place { margin-left: 8px; color: var(--royal); }
  .ladder-table tr.focus td { background: #eaf3fd; }
  .ladder-table tr.focus td.pos { color: var(--royal); }
  /* match results */
  .report-form { padding: 18px; border-top: 1px solid var(--rule); }
  .rf-head b { display: block; font-size: 15px; font-weight: 800; }
  .rf-head span { font-size: 13px; color: var(--ink-2); }
  .rf-games { display: grid; gap: 8px; margin-top: 12px; max-width: 360px; }
  .rf-game { display: grid; grid-template-columns: 70px 1fr 14px 1fr; align-items: center; gap: 8px; }
  .rf-game .input { text-align: center; font-variant-numeric: tabular-nums; }
  .rf-dash { text-align: center; color: var(--ink-2); }
  .rf-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
  .dispute { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
  .dispute div { padding: 14px 18px; } .dispute div + div { border-left: 1px solid var(--rule); }
  .result { padding: 20px 18px; border-top: 1px solid var(--rule); }
  .result-head { font-size: 26px; font-weight: 900; letter-spacing: -.01em; }
  .result-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .result.ended .result-head { font-size: 20px; color: var(--ink); }
  .result-note { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
  .result.won .result-head { color: var(--win, #1f9d55); }
  .result.lost .result-head { color: var(--loss); }
  .result-games { display: flex; gap: 28px; margin-top: 10px; }
  .result-games b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
  .result-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .result-meta span:first-child { color: #b88a12; }
  .ladder-cut td { padding: 12px 18px !important; background: #f6f8fb; font-size: 12px; color: var(--ink-2); text-align: left !important; cursor: default; }
  .ladder-cut b { color: var(--ink); margin-right: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .ladder-rules { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .ladder-rules div { padding: 14px 18px; } .ladder-rules div + div { border-left: 1px solid var(--rule); }
  .ladder-rules b { display: block; font-size: 13px; font-weight: 800; }
  .ladder-rules span { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
  @media (max-width: 760px) { .ladder-rules { grid-template-columns: 1fr; } .ladder-rules div + div { border-left: 0; border-top: 1px solid var(--rule); } }
  .pf-hold { margin-top: 8px; font-size: 12px; font-weight: 700; color: #8fd0a8; }
  .pf-hold.soon { color: #f2c14e; }
  .bots-upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0 4px; padding: 16px 18px; background: #f2f7fd; border: 1px solid #d6e5f6; border-radius: 2px; }
  .bots-upsell b { display: block; font-size: 15px; font-weight: 800; }
  .bots-upsell span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); }
  .bots-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .foot-link { background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.75); cursor: pointer; }
  .foot-link:hover { color: #fff; text-decoration: underline; }
  body:not(.in) .foot-link.in-only { display: none; }
  .fb-text { width: 100%; margin-top: 12px; resize: vertical; font: inherit; }
  .fb-row { padding: 14px 18px; border-bottom: 1px solid var(--rule); }
  .fb-meta { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
  .fb-meta b { color: var(--ink); }
  .fb-body { margin-top: 6px; white-space: pre-wrap; font-size: 14px; }
  .stake { margin: 8px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
  .stake.warn { color: var(--loss); }
  .pool div span.mw2-text { font-size: inherit; font-weight: inherit; color: inherit; }   /* map names keep the tile type until drawn in MW2 font */
  /* below the Ranked Ladder: a royal line where the top 10 ends, and an XP tag on each rank */
  .ladder-table tr.xp-start td { border-top: 2px solid var(--royal); }
  .ladder-table tr.by-xp td.pos { color: var(--ink-2); }
  .fr-tag { display: inline-block; margin-left: 6px; padding: 1px 4px; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #8a6a0c; background: #fbf0cf; border-radius: 2px; vertical-align: middle; }
  .xp-tag { display: inline-block; margin-left: 6px; padding: 1px 4px; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--royal); background: #e8f1fb; border-radius: 2px; vertical-align: middle; }
  /* recent matches */
  .board.recent tbody tr { cursor: pointer; }
  .board.recent tbody tr:hover td { background: #f6f9fd; }
  .res-cell { white-space: nowrap; }
  .res { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-right: 10px; font-size: 12px; font-weight: 900; color: #fff; border-radius: 2px; vertical-align: middle; }
  .res.w { background: var(--win); color: #fff !important; } .res.l { background: var(--loss); color: #fff !important; }
  .res.live { background: var(--silver); color: var(--ink-2); font-weight: 700; font-size: 11px; }
  .series { font-size: 15px; font-variant-numeric: tabular-nums; margin-right: 10px; vertical-align: middle; }
  .games { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; vertical-align: middle; }
  .opp { font-weight: 700; }
  .ladder-table td.pos { white-space: nowrap; width: 64px; }
  body:not(.mw2) #feedback-open { display: none; }   /* feedback is for players with MW2 linked */
  /* /matches: challenges, live, history */
  .mx-section + .mx-section { border-top: 1px solid var(--rule); }
  .mx-count { margin-left: 6px; padding: 1px 7px; font-size: 11px; color: #fff; background: var(--royal); border-radius: 10px; letter-spacing: 0; }
  .mx-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr auto; align-items: center; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--rule); }
  .mx-row.incoming { background: #f2f7fd; }
  .mx-row.live { background: #eef8f2; }
  .mx-what b { display: block; font-size: 14px; }
  .mx-what span { font-size: 12px; color: var(--ink-2); }
  @media (max-width: 640px) { .mx-row { grid-template-columns: 1fr auto; } .mx-row .mx-what { grid-column: 1 / -1; grid-row: 2; } }
  .noshow { display: block; margin-top: 4px; color: var(--loss); font-weight: 800; }
  .mx-row .who, .board.recent .who { display: flex; align-items: center; gap: 10px; }
  .mx-row .who .av, .board.recent .who .av { width: 30px; height: 30px; flex: none; }
  .mx-row .who .name { font-weight: 700; }
  .mx-row .who .r, .board.recent .who .r { font-size: 12px; color: var(--ink-2); }
  /* ---- logged in, MW2 not linked: only the setup pitch ---- */
  /* Not logged in, or not set up: the nav is just Home and Setup. */
  body:not(.in) nav a[data-nav="/matches"], body:not(.in) nav a[data-nav="/ladder"],
  body.unlinked nav a[data-nav="/play"], body:not(.in) nav a[data-nav="/play"],
  body.unlinked nav a[data-nav="/matches"], body.unlinked nav a[data-nav="/ladder"],
  body.in.unlinked #home-grid, body.in.unlinked .banner .play, body.in.unlinked .statrow, body.in.unlinked #finder { display: none !important; }
  body.in.unlinked .banner .wrap { display: block; }
  body.in.unlinked .hero-left { max-width: 640px; margin: 0 auto; text-align: left; }
  body.in.unlinked .banner { min-height: calc(100vh - 56px - 64px); display: flex; align-items: center; }
  body.in.unlinked .banner > .wrap { width: 100%; }
  .undo-btn { float: right; }
  .muted-note { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); }
  /* getting started */
  .wizard { display: flex; gap: 6px; list-style: none; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--rule); counter-reset: none; flex-wrap: wrap; }
  .wizard li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); background: var(--silver); border-radius: 20px; }
  .wizard li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--ink-2); font-size: 11px; }
  .wizard li.on { color: #fff; background: var(--royal); }
  .wizard li.on span { color: var(--royal); }
  .wizard li.done { color: var(--win); background: #e6f6ec; }
  .wizard li.done span { background: var(--win); color: #fff; }
  .owns { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 2px; font-size: 14px; cursor: pointer; }
  .owns input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
  .owns.done { background: #f2faf5; border-color: #cfe9d9; cursor: default; }
  .btn[disabled] { opacity: .45; pointer-events: none; }
  .bots-dlg { width: min(600px, 100%); }
  .bots-dlg .wizard li { font-size: 11px; padding: 5px 10px 5px 5px; }
  .bots-dlg .wizard { padding: 0 0 14px; margin-bottom: 14px; }
  .name-row { display: flex; gap: 8px; max-width: 460px; margin-top: 14px; }
  .name-row .input { flex: 1; font-weight: 800; font-size: 16px; }
  .note.ok { color: var(--win); } .note.bad { color: var(--loss); }
  /* the wizard on the blue page */
  .setup.unlock .wizard { padding: 0 0 16px; margin: 0 0 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .setup.unlock .wizard li { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
  .setup.unlock .wizard li span { background: rgba(255,255,255,.18); color: #fff; }
  .setup.unlock .wizard li.on { background: #fff; color: var(--navy); }
  .setup.unlock .wizard li.on span { background: var(--royal); color: #fff; }
  .setup.unlock .wizard li.done { background: rgba(127,214,161,.18); color: #bff0d2; }
  .setup.unlock .wizard li.done span { background: #7fd6a1; color: var(--navy); }
  .setup.unlock .owns { border-color: rgba(255,255,255,.22); color: #fff; background: rgba(8,20,40,.18); }
  .setup.unlock .owns.done { background: rgba(127,214,161,.12); border-color: rgba(127,214,161,.35); }
  .setup.unlock .name-row .input { background: #fff; }
  .setup.unlock .note { color: rgba(255,255,255,.8); }
  .setup.unlock .note.ok { color: #9be6b8; } .setup.unlock .note.bad { color: #ffb4a6; }
  .setup.unlock .unlock-hint { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.7); }
  .btn.ghost-light[disabled], .btn.unlock-btn[disabled] { opacity: .45; }
  body.in.unlinked .hero-left { max-width: 720px; }
  .setup.unlock .wizard { gap: 4px; flex-wrap: nowrap; overflow-x: auto; }
  .setup.unlock .wizard li { font-size: 11px; padding: 5px 9px 5px 5px; white-space: nowrap; gap: 6px; }
  .setup.unlock .wizard li span { width: 18px; height: 18px; font-size: 10px; }
  /* Setup when not linked: the blue wizard, full width */
  .setup-hero { margin: -36px calc(50% - 50vw) 0; padding: 56px 16px 72px; min-height: calc(100vh - 56px - 64px); background: radial-gradient(ellipse 70% 120% at 50% 50%, var(--royal), var(--royal-deep)); color: #fff; display: flex; justify-content: center; align-items: flex-start; }
  .setup-hero .setup.unlock { width: min(760px, 100%); max-width: none; }
  .setup.unlock .btn.ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.08); }
  .setup.unlock .btn.ghost-light:hover { background: rgba(255,255,255,.16); }
  .setup.unlock .btn[disabled] { opacity: .4; }
  body.in.unlinked #setup { padding-bottom: 0; margin-bottom: 0; }
  body.in.unlinked footer { margin-top: 0; }
  .setup.unlock .wizard { flex-wrap: wrap; overflow: visible; }
  /* Home for players who have not linked MW2 yet: the about page */
  body.in.unlinked .banner .out-only { display: block !important; }
  body.in.unlinked .banner .hero-in { display: none !important; }
  .unlinked-only { display: none; }
  body.in.unlinked .unlinked-only { display: flex; }
  .hero-cta { align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
  .hero-cta span { font-size: 13px; color: rgba(255,255,255,.75); }
  .foot-links { display: inline-flex; gap: 18px; align-items: center; }
  footer a.foot-link { color: rgba(255,255,255,.75); text-decoration: none; }
  footer a.foot-link:hover { color: #fff; text-decoration: underline; }
  .legal { max-width: 760px; padding: 6px 22px 30px; line-height: 1.65; font-size: 15px; }
  .legal h1 { font-size: 28px; font-weight: 900; margin: 18px 0 4px; }
  .legal h2 { font-size: 17px; font-weight: 800; margin: 26px 0 6px; }
  .legal p, .legal li { color: var(--ink); }
  .legal .updated { color: var(--ink-2); font-size: 13px; }
  /* wizard steps slide in */
  @keyframes wizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .wiz-step { animation: wizIn .32s cubic-bezier(.2,.8,.3,1) both; }
  .setup.unlock .wizard li { transition: background .25s ease, color .25s ease; }
  .wiz-proof { margin: 18px 0 4px; aspect-ratio: 16 / 9; max-height: 260px; width: 100%; background: rgba(8,20,40,.35) center / cover no-repeat; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; }
  .wiz-proof:not(.has-art) { display: none; }
  .setup.unlock .owns, .setup.unlock .btn { transition: opacity .2s ease, background .2s ease; }
  @media (prefers-reduced-motion: reduce) { .wiz-step { animation: none; } }
  /* Setup: always the full blue page */
  body.page-setup #setup { max-width: none; width: 100%; padding: 0; margin: 0; }
  body.page-setup .setup-hero { margin: 0; min-height: calc(100vh - 56px - 64px); padding: 56px 16px 72px; }
  body.page-setup footer { margin-top: 0; }
  .setup.unlock .unlock-head.center, .setup.unlock .unlock-cta.center { text-align: center; justify-content: center; }
  .setup.unlock .unlock-head.center span { margin-left: auto; margin-right: auto; }
  .congrats-tick { width: 64px; height: 64px; margin: 4px auto 16px; display: grid; place-items: center; border-radius: 50%; background: #7fd6a1; color: var(--navy); animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
  .congrats-tick svg { width: 34px; height: 34px; }
  @keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
  .wiz-proof.small { max-height: 170px; }
  .checks.light li { color: #fff; border-color: rgba(255,255,255,.14); }
  .checks.light li.ok span:first-child { color: #9be6b8; }
  .checks.light li.miss span:first-child { color: #ffb4a6; }
  .checks.light { padding-left: 0; } .checks.light li span:last-child { color: rgba(255,255,255,.72); }
  .setup-hero em.folder { font-style: normal; font-weight: 700; color: #fff; }
  .setup-steps.light li { color: rgba(255,255,255,.9); }
  .linkbtn.light { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }

  td a.watch { margin-right: 12px; font-size: 12px; font-weight: 800; color: var(--royal); text-decoration: none; }
  td a.watch:hover { text-decoration: underline; }


  /* A live server match: the score as it happens. */
  .live-score { border-top: 1px solid var(--rule); padding: 22px 18px 20px; text-align: center; }
  .ls-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #d33; }
  .ls-tag i { width: 8px; height: 8px; border-radius: 50%; background: #e33; animation: lspulse 1.4s ease-in-out infinite; }
  @keyframes lspulse { 50% { opacity: .35; } }
  .ls-row { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 14px; margin-top: 10px; }
  .ls-row span { font-weight: 800; font-size: 16px; }
  .ls-row span:first-child { text-align: right; }
  .ls-row span:last-child { text-align: left; }
  .ls-row b { font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
  .ls-row em { font-style: normal; color: var(--ink-2); font-size: 24px; }
  .ls-note { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
  .ls-acts { margin-top: 14px; } .ls-acts .btn { display: inline-flex; width: auto; padding-left: 22px; padding-right: 22px; }

.play-count{font-weight:700}

/* Check My Setup: the diagnostic's answer, under the setup panel's links */
.diag-box { margin-top: 14px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.18); color: #fff; font-size: 14px; }
.diag-box.ok { border-color: rgba(120,220,140,.55); }
.diag-box.bad { border-color: rgba(255,170,90,.7); }
.diag-box > b { display: block; font-size: 15px; }
.diag-box > span { display: block; margin-top: 8px; color: rgba(255,255,255,.7); font-size: 13px; }
.diag-box ul { margin: 8px 0 0; padding-left: 18px; }
.diag-box li { margin: 4px 0; }
.diag-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 10px 0 0; font-size: 13px; }
.diag-box dt { color: rgba(255,255,255,.6); }
.diag-box dd { margin: 0; overflow-wrap: anywhere; }
.diag-box .linkbtn { margin-top: 10px; }
