/* OnlyGames launcher: dark, quiet chrome so each game's cover art carries the colour. */
:root {
  color-scheme: dark;
  --bg: #0a0b10;
  --bg-2: #11131b;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #eef0f6;
  --muted: #9aa0b2;
  --faint: #626879;
  --accent: #ff6a3d;
  --accent-2: #ffb547;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --good: #3ddc97;
  --gold: #f4c95d;
  --silver: #c7cdd8;
  --bronze: #d99566;
  --radius: 18px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 15px/1.5 var(--font); color: var(--text); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(255, 106, 61, .13), transparent 62%),
    radial-gradient(800px 480px at 98% 4%, rgba(125, 95, 255, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  transition: opacity .2s ease;
}
body.leaving { opacity: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: rgba(10, 11, 16, .72); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 20px/1 var(--font-display); letter-spacing: -.02em; }
.logo svg { width: 28px; height: 28px; }
.logo b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.account { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .25); }
.btn.primary { border: 0; background: var(--grad); color: #1b0d05; box-shadow: 0 6px 24px -8px rgba(255, 106, 61, .6); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(255, 106, 61, .7); }
.btn.block { width: 100%; height: 46px; font-size: 15px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.chip { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.chip:hover { background: var(--surface-2); }
.chip .caret { width: 10px; height: 10px; opacity: .6; }
.chip .warn { position: absolute; top: 2px; left: 28px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 2px var(--bg); }
.avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 700 13px/1 var(--font-display); color: #fff; background: linear-gradient(135deg, hsl(var(--h, 20) 80% 58%), hsl(calc(var(--h, 20) + 40) 85% 48%)); text-transform: uppercase; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.bot { background: var(--surface-2); font-size: 14px; }

.menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; padding: 6px; border-radius: 14px; background: rgba(22, 24, 33, .96); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7); backdrop-filter: blur(20px); z-index: 30; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; font-size: 15px; }
.menu .who small { color: var(--muted); font-size: 12.5px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 14px; color: var(--text); }
.menu button:hover { background: var(--surface-2); }
.menu button.hl { color: var(--accent-2); }
.account-wrap { position: relative; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 28px; }
.hero h1 { margin: 0; font: 700 clamp(30px, 4.6vw, 46px)/1.08 var(--font-display); letter-spacing: -.03em; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 12px 0 0; color: var(--muted); font-size: 16.5px; max-width: 620px; }
.hero p b { color: var(--text); font-weight: 600; }
.hero .turnlink { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.hero .turnlink:hover { text-decoration: underline; }

/* ---------- game tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; padding-bottom: 12px; }
.tile {
  --accent: #888; --mx: 50%; --my: 30%;
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  text-decoration: none; color: #fff; background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .9);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.tile .art { position: absolute; inset: 0; z-index: -2; }
.tile .art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .35s; }
.tile::before { /* bottom shade for the text */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 11, 16, .35) 0%, transparent 20%, transparent 34%, rgba(10, 11, 16, .72) 55%, rgba(10, 11, 16, .94) 72%, rgba(10, 11, 16, .98) 100%);
}
.tile::after { /* light that follows the pointer */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 45%);
}
.tile.live:hover, .tile.live:focus-visible { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 70px -28px var(--accent), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.tile.live:hover .art img, .tile.live:focus-visible .art img { transform: scale(1.06); }
.tile.live:hover::after { opacity: 1; }
.tile .top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; background: rgba(10, 11, 16, .62); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(61, 220, 151, .18); }
.pill.turn { background: var(--grad); color: #1b0d05; border: 0; box-shadow: 0 6px 20px -6px rgba(255, 106, 61, .8); }
.pill.turn i { background: #1b0d05; box-shadow: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.5); opacity: .5; } }
.tile .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 18px; }
.tile h3 { margin: 0; font: 700 23px/1.1 var(--font-display); letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.tile p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: rgba(238, 240, 246, .78); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 500; color: rgba(238, 240, 246, .88); background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .08); }
.meta svg { width: 13px; height: 13px; opacity: .8; }
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; margin-top: 14px; border-radius: 12px; font-weight: 700; font-size: 14.5px; background: #fff; color: #0a0b10; transition: background .2s, transform .2s; }
.cta svg { width: 16px; height: 16px; transition: transform .25s; }
.tile.live:hover .cta { background: var(--grad); }
.tile.live:hover .cta svg { transform: translateX(3px); }

.tile.soon { cursor: default; }
.tile.soon .art img { filter: grayscale(.55) brightness(.55) blur(.5px); }
.tile.soon .ribbon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -80%); padding: 9px 16px; border-radius: 999px; font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; background: rgba(10, 11, 16, .6); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.tile.soon h3 { color: rgba(255, 255, 255, .85); }

/* ---------- leaderboard ---------- */
.board { padding: 56px 0 24px; }
.sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.sechead h2 { margin: 0; font: 700 26px/1.1 var(--font-display); letter-spacing: -.02em; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset; }
.seg button small { color: var(--faint); font-weight: 500; margin-left: 4px; }

.lbgrid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); border: 1px solid var(--line); overflow: hidden; }
.card h3 { margin: 0; padding: 16px 18px 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

table.lb { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb th { padding: 14px 12px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); text-align: right; border-bottom: 1px solid var(--line); }
.lb th:nth-child(2) { text-align: left; }
.lb td { padding: 11px 12px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, .045); font-variant-numeric: tabular-nums; }
.lb tr:last-child td { border-bottom: 0; }
.lb tbody tr { transition: background .15s; }
.lb tbody tr:hover { background: rgba(255, 255, 255, .03); }
.lb tr.me { background: rgba(255, 106, 61, .07); }
.lb td.rank { width: 52px; text-align: center; padding-left: 16px; }
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 12px/1 var(--font-display); color: var(--muted); }
.medal.m1 { background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 55%, #b88a1c); color: #3b2a00; }
.medal.m2 { background: radial-gradient(circle at 35% 30%, #ffffff, var(--silver) 55%, #8a93a3); color: #22262e; }
.medal.m3 { background: radial-gradient(circle at 35% 30%, #ffe0c8, var(--bronze) 55%, #8a5126); color: #2e1606; }
.lb td.player { text-align: left; }
.lb .pl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb .pl span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.you { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: rgba(255, 106, 61, .16); color: var(--accent-2); }
.lb td.wins { font-weight: 700; font-size: 15px; }
.rate { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.rate .bar { width: 54px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rate .bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad); }
.thumbs { display: inline-flex; gap: 4px; justify-content: flex-end; }
.thumbs img { width: 20px; height: 26px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line-2); }

.recent .item { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .045); }
.recent .item:first-of-type { border-top: 0; }
.recent .item img { flex: none; width: 36px; height: 48px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line-2); }
.recent .item .t { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .item .s { font-size: 12.5px; color: var(--muted); }
.recent .item .ps { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.recent .item .ps .w { color: var(--gold); font-weight: 600; }
.recent .item .ps b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.recent .item > div { min-width: 0; }

.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty .big { font-size: 30px; margin-bottom: 6px; }
.skeleton { height: 14px; margin: 14px 18px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.foot { padding: 32px 24px 48px; color: var(--faint); font-size: 13px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .18s ease; }
.modal[hidden] { display: none; }
.dialog { position: relative; width: 100%; max-width: 400px; padding: 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(30, 32, 44, .96), rgba(18, 20, 28, .96)); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8); animation: rise .22s cubic-bezier(.2, .8, .2, 1); }
.dialog h2 { margin: 0 0 4px; font: 700 22px/1.2 var(--font-display); letter-spacing: -.02em; }
.dialog .sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.dialog .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); color: var(--muted); font-size: 18px; line-height: 1; }
.dialog .x:hover { background: var(--surface-2); color: var(--text); }
.dialog .seg { display: flex; margin-bottom: 20px; }
.dialog .seg button { flex: 1; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 61, .18); }
.dialog .err { min-height: 20px; margin: -4px 0 10px; font-size: 13px; color: #ff8a73; }
.dialog .note { margin: 14px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.tiles[hidden], .board[hidden] { display: none; }

/* ---------- signed out: the front page is the way in ---------- */
.hero.gated { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; align-items: center; padding: 80px 0 64px; }
.hero.gated .pitch p { max-width: 460px; }
.gate-art { display: flex; margin-top: 32px; }
.gate-art img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8); }
.gate-art img + img { margin-left: -18px; transform: rotate(5deg) translateY(6px); }
.gate-art img:first-child { transform: rotate(-4deg); }
.gate-card { animation: none; }

/* ---------- admin ---------- */
.dialog.wide { max-width: 600px; max-height: calc(100dvh - 32px); overflow: auto; }
.codeForm { display: flex; gap: 10px; align-items: flex-end; }
.codeForm .field { flex: 1; margin-bottom: 0; }
.codeForm .btn { height: 46px; }
.codeForm input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.dialog .codeErr { margin: 6px 0 0; }
.dialog .hint { margin: 0 0 22px; font-size: 12.5px; color: var(--faint); }
.subhead { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.subhead small { color: var(--faint); margin-left: 4px; }
.urow { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.urow:first-child { border-top: 0; }
.urow .ui { flex: 1; min-width: 0; }
.urow .ui b { font-weight: 600; }
.urow .ui small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tag.warn { background: rgba(255, 181, 71, .14); color: var(--accent-2); }
.btn.danger { height: 34px; padding: 0 14px; font-size: 13px; color: #ff8a73; border-color: rgba(255, 138, 115, .35); }
.btn.danger:hover { background: rgba(255, 138, 115, .12); border-color: rgba(255, 138, 115, .6); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: rgba(30, 32, 44, .96); border: 1px solid var(--line-2); font-size: 14px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (hover: none) {
  .tile.live .cta { background: var(--grad); }
}
@media (max-width: 900px) {
  .lbgrid { grid-template-columns: 1fr; }
  .hero.gated { grid-template-columns: minmax(0, 440px); gap: 32px; padding-top: 48px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .bar { height: 58px; }
  .logo { font-size: 18px; }
  .chip .nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 32px 0 20px; }
  .hero.gated { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 32px; }
  .gate-art { display: none; }
  .gate-card { padding: 22px; }
  .hero p { font-size: 15px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { border-radius: 14px; }
  .tile .top { top: 8px; left: 8px; right: 8px; }
  .tile .top .online { display: none; }
  .pill { height: 24px; padding: 0 9px; font-size: 11.5px; }
  .tile .info { padding: 12px; }
  .tile h3 { font-size: 18px; }
  .tile p, .tile .meta { display: none; }
  .cta { height: 36px; margin-top: 10px; font-size: 13.5px; border-radius: 10px; }
  .tile.soon .ribbon { font-size: 10px; padding: 7px 11px; letter-spacing: .12em; }
  .board { padding-top: 40px; }
  .sechead h2 { font-size: 22px; }
  .lb th.games, .lb td.games, .lb th.rate-h, .lb td.rate-c { display: none; }
  .lb td, .lb th { padding-left: 8px; padding-right: 8px; }
  .lb td.rank { padding-left: 12px; width: 44px; }
  .recent .item { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Community (only for accounts an administrator added) ---------- */
.navlink { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s; }
.navlink:hover { background: var(--surface-2); }
.navlink svg { width: 16px; height: 16px; opacity: .85; }
.navlink[hidden] { display: none; }
.navlink.fresh::after { content: ''; position: absolute; top: 4px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.commcard { display: flex; align-items: center; gap: 16px; margin: 22px 0 0; padding: 18px 20px; border-radius: var(--radius); text-decoration: none; background: linear-gradient(120deg, rgba(255, 106, 61, .10), rgba(125, 95, 255, .08) 60%, rgba(255, 255, 255, .02)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.commcard[hidden] { display: none; }
.commcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.commcard .ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #1b0d05; }
.commcard .ic svg { width: 22px; height: 22px; }
.commcard .tx { flex: 1; min-width: 0; }
.commcard .tx b { display: block; font: 700 18px/1.2 var(--font-display); letter-spacing: -.01em; }
.commcard .tx small { color: var(--muted); font-size: 13.5px; }
.commcard .go svg { width: 18px; height: 18px; opacity: .7; }
.commcard .pill[hidden] { display: none; }
.cswitch { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 7px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cswitch::before { content: ''; width: 24px; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .14) radial-gradient(circle at 7px 7px, #fff 5px, transparent 5.5px); transition: background .15s; }
.cswitch[aria-checked="true"] { color: var(--text); border-color: rgba(61, 220, 151, .45); }
.cswitch[aria-checked="true"]::before { background: var(--good) radial-gradient(circle at 17px 7px, #fff 5px, transparent 5.5px); }
.cswitch.always { opacity: .6; }
.cswitch.always::before { background: var(--good) radial-gradient(circle at 17px 7px, #fff 5px, transparent 5.5px); }
@media (max-width: 640px) {
  .navlink { padding: 0 11px; gap: 6px; font-size: 13px; }
  .commcard { gap: 12px; padding: 14px; }
  .commcard .tx small { display: none; }
  .urow { flex-wrap: wrap; }
}
