@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Unbounded:wght@600;700;800;900&display=swap");
/* SideKvest site. Mobile-first. Brand 26.11: black + Antique White + Lime Green + Mexico Pink, pills, Unbounded. */
:root {
  /* brand (26.11, Tim via David): black, Antique White, Lime Green, Mexico Pink. No other hues. */
  --white: #F7FFF8;          /* text and light pills */
  --lime: #3EF747;           /* live, win, ok, ready, gains */
  --pinkx: #FF0543;          /* the main action; bad states are pink OUTLINES, actions are pink FILLS */
  --bg: #000000;
  --bg-2: #0a0a0a;
  --panel: #111111;
  --panel-2: #1a1a1a;
  --panel-3: #262626;
  --line: #2b2b2b;
  --text: #F7FFF8;
  --muted: #c3cbc4;          /* 11:1 on black */
  --faint: #8f978f;          /* 6:1 on #111 */
  --pink: #FF0543;           /* 5.4:1 on black (AA) */
  --cta-1: #FF0543;
  --cta-2: #FF0543;
  --cyan: #3EF747;           /* old accent slot: lime now */
  --up: #3EF747;
  --down: #FF0543;
  --gold: #3EF747;           /* winner = lime */
  --silver: #F7FFF8;
  --bronze: #FF0543;
  --live: #3EF747;           /* live = lime */
  --glow-lime: 0 0 22px rgba(62, 247, 71, .45);
  --glow-pink: 0 0 26px rgba(255, 5, 67, .5);
  --radius: 22px;
  --tab-h: 62px;
  --side-w: 0px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: .2px; }
h2 { font-size: 18px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 56px; padding: 0 14px;
  background: rgba(0, 0, 0, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-word { font: 900 18px/1 var(--display); letter-spacing: 1px; white-space: nowrap; }
.brand-word b { color: var(--pink); font-weight: 900; text-shadow: 0 0 14px rgba(255, 5, 67, .55); }
/* account slot: "Sign in" link, or the signed-in avatar with a small menu */
.auth-slot { position: relative; }
.btn-auth {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 10px; background: var(--panel-2); color: var(--text); font-weight: 650; font-size: 14px;
  border: 1px solid var(--line); text-decoration: none !important; white-space: nowrap;
}
.btn-auth:hover { background: var(--panel-3); }
details.me { position: relative; }
details.me > summary { list-style: none; color: var(--text); display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 6px; border-radius: 10px; cursor: pointer; }
details.me > summary::-webkit-details-marker { display: none; }
details.me > summary:hover, details.me[open] > summary { background: var(--panel-2); }
details.me .avatar { box-shadow: 0 0 0 2px var(--pink); }
.me-name { font-weight: 700; font-size: 14px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .me-name { display: none; }
.me-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 210px; padding: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); display: grid; }
.auth-slot.up .me-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.me-menu .me-who { padding: 8px 10px 6px; color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--text); font-weight: 650; font-size: 14px; text-decoration: none !important; }
.me-menu a:hover { background: var(--panel-2); }
.me-menu svg.i { width: 18px; height: 18px; color: var(--muted); }

.side { display: none; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #050505; border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; min-height: 44px; position: relative;
}
.tabbar a.on { color: var(--text); }
.tabbar a.on svg { color: var(--pink); }
.tabbar a.on::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--pink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(62, 247, 71, .6); animation: pulse 1.6s infinite; }
.tabbar .live-dot { position: absolute; top: 9px; left: calc(50% + 8px); }
.live-dot[hidden] { display: none !important; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 247, 71, .6); } 70% { box-shadow: 0 0 0 8px rgba(62, 247, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 247, 71, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.main { padding: 16px 14px calc(var(--tab-h) + 28px); max-width: 1180px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.foot { color: var(--faint); font-size: 12px; margin-top: 28px; text-align: center; }

@media (min-width: 768px) {
  :root { --side-w: 84px; }
  .topbar, .tabbar { display: none; }
  .side {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); z-index: 30;
    padding: 12px 8px; background: #050505; border-right: 1px solid var(--line);
  }
  .side .brand { justify-content: center; margin-bottom: 14px; }
  .side .brand-word { display: none; }
  .side-link {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
    border-radius: 10px; color: var(--muted); font-size: 11.5px; font-weight: 650; text-decoration: none !important; position: relative;
  }
  .side-link:hover { background: var(--panel); color: var(--text); }
  .side-link.on { background: var(--panel-2); color: var(--text); }
  .side-link.on svg { color: var(--pink); }
  .side-link .live-dot { position: absolute; top: 9px; right: 18px; }
  .side-spacer { flex: 1; }
  .side .btn-auth { justify-content: center; padding: 0; width: 100%; }
  .side .btn-auth span, .side .me-name { display: none; }
  .side details.me > summary { justify-content: center; }
  body { padding-left: var(--side-w); }
  .main { padding: 28px 28px 40px; }
  h1 { font-size: 28px; }
}
@media (min-width: 1100px) {
  :root { --side-w: 188px; }
  .side { padding: 16px 12px; }
  .side .brand { justify-content: flex-start; padding: 0 6px; }
  .side .brand-word { display: inline; }
  .side-link { flex-direction: row; gap: 12px; font-size: 14.5px; padding: 11px 12px; white-space: nowrap; }
  .side-link .live-dot { position: static; margin-left: auto; }
  .side .btn-auth { justify-content: flex-start; padding: 0 12px; }
  .side .btn-auth span, .side .me-name { display: inline; }
  .side details.me > summary { justify-content: flex-start; }
}

/* ---------- common bits ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 16px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-title h2 { font-size: 16px; }
.panel-title a { padding: 12px 14px; margin: -12px -14px; font-weight: 650; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel-3); color: var(--text); white-space: nowrap; }
.chip svg.i { width: 14px; height: 14px; }
.chip.stream { background: rgba(255, 5, 67, .12); color: var(--pink); min-height: 44px; height: auto; padding: 0 14px; border-radius: 10px; font-size: 13px; text-decoration: none !important; }
.chip.stream:hover { background: rgba(255, 5, 67, .22); }
.chip.cyan { background: rgba(62, 247, 71, .14); color: var(--cyan); }
.chip.pink { background: rgba(255, 5, 67, .14); color: var(--pink); }
.chip.live { background: rgba(62, 247, 71, .16); color: var(--lime); }
.chip.warn { background: rgba(247, 255, 248, .15); color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font: 650 14px var(--font); cursor: pointer; text-decoration: none !important;
}
.btn:hover { background: var(--panel-3); }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 10px 20px;
  border-radius: 14px; color: #fff; text-decoration: none !important;
  background: var(--pinkx);
  box-shadow: var(--glow-pink);
  font: 900 22px/1.1 var(--display); letter-spacing: .5px; text-transform: uppercase;
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.cta:hover { filter: brightness(1.08); }
.cta:active { transform: scale(.98); }
.cta small { display: block; font: 600 12.5px/1.3 var(--font); text-transform: none; font-style: normal; letter-spacing: 0; opacity: .92; margin-top: 3px; }
.cta svg.i { width: 30px; height: 30px; stroke-width: 2.2; }
.error { padding: 16px; border-radius: var(--radius); border: 1px solid rgba(255, 5, 67, .4); background: rgba(255, 5, 67, .08); color: var(--white); }
.empty { padding: 22px 16px; color: var(--muted); text-align: center; }
.avatar { border-radius: 50%; flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #000; text-transform: uppercase; }
.tag-prov { color: var(--faint); font-weight: 700; margin-left: 1px; cursor: help; }
.select {
  appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 40px 0 14px; border-radius: 10px;
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7a7bd' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  border: 1px solid var(--line); color: var(--text); font: 650 15px var(--font); cursor: pointer; max-width: 100%;
}
.result { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 850; font-size: 13px; flex: none; }
.result.won { background: rgba(62, 247, 71, .16); color: var(--up); }
.result.lost { background: rgba(255, 5, 67, .15); color: var(--down); }
.result.draw { background: var(--panel-3); color: var(--muted); }
.result.void { background: var(--panel-3); color: var(--faint); text-decoration: line-through; }

/* ---------- play ---------- */
.live-strip {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; margin-bottom: 16px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); font-size: 14px; min-height: 52px;
}
.live-strip > .muted { flex: 1; }
.live-strip a.live-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text); min-height: 44px; text-decoration: none !important; }
.live-strip a.live-link:hover .watch { text-decoration: underline; }
.lv-names { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.lv-names .nm { overflow: hidden; text-overflow: ellipsis; font-weight: 650; min-width: 0; }
.lv-names b { font: 900 15px var(--display); }
.lv-game { white-space: nowrap; display: none; }
.live-strip .watch { color: var(--cyan); font-weight: 700; margin-left: auto; white-space: nowrap; }
.live-strip .today { color: var(--muted); white-space: nowrap; padding: 6px 10px; border-left: 1px solid var(--line); }
.live-strip .today b { color: var(--text); }
@media (min-width: 560px) { .lv-game { display: inline; } .lv-game::before { content: "\00B7\00A0"; } }
.live-strip .watch { display: inline-flex; align-items: center; gap: 4px; }
.live-strip .watch svg.i { width: 16px; height: 16px; }
@media (max-width: 420px) {
  .live-strip .today .w, .live-strip .lv-t { display: none; }
  .live-strip .chip.live { padding: 0 8px; }
  .live-strip { gap: 8px; }
}

.play-grid { display: grid; gap: 20px; }
.hero h1 { font: 900 28px/1.05 var(--display); text-transform: uppercase; letter-spacing: .3px; }
.hero h1 span { color: var(--pink); text-shadow: 0 0 22px rgba(255, 5, 67, .45); }
.hero p { color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.find-wrap { margin: 18px 0 20px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; min-height: 168px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text);
  text-decoration: none !important; position: relative; overflow: hidden; transition: border-color .15s, transform .1s, background .15s;
}
.tile:hover { border-color: var(--pink); background: #161616; }
.tile.off, .cta.off { pointer-events: none; }
.cta.off { background: #1a1a1a; color: #8f978f; box-shadow: none; filter: none; }
.tile.off .go { color: var(--faint); }
.tile:active { transform: scale(.985); }
.tile .ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(62, 247, 71, .1); color: var(--cyan); }
.tile .ico svg.i { width: 28px; height: 28px; }
.tile:nth-child(1) .ico { background: rgba(255, 5, 67, .12); color: var(--pink); }
.tile h3 { font-size: 16px; }
.tile .rule { color: var(--muted); font-size: 13px; line-height: 1.4; flex: 1; }
.tile .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.tile .q { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--faint); padding-top: 8px; border-top: 1px solid var(--line); }
.tile .q.has { color: var(--up); }
.tile .go { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.tile .go svg.i { width: 16px; height: 16px; }
.tile:hover .go { color: var(--pink); }
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
.note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.note svg.i { color: var(--cyan); width: 18px; height: 18px; margin-top: 2px; }

.rail { display: grid; gap: 16px; align-content: start; }
.livecard { display: block; padding: 14px 16px; color: var(--text); text-decoration: none !important; }
.livecard:hover { background: #161616; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 10px; }
.vs .p { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vs .p:last-child { flex-direction: row-reverse; text-align: right; }
.vs .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs .sc { font: 900 24px var(--display); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 14px 10px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 900 22px var(--display); }
.stat span { color: var(--muted); font-size: 12px; }
.mini-lb a.row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--text); text-decoration: none !important; min-height: 44px; }
.mini-lb a.row:hover { background: #161616; }
.mini-lb .rk { width: 18px; color: var(--faint); font-weight: 800; text-align: center; }
.mini-lb .nm { flex: 1; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newhere { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--text); text-decoration: none !important; }
.newhere:hover { background: #161616; }
.newhere .ico { width: 42px; height: 42px; border-radius: 10px; background: rgba(62, 247, 71, .1); color: var(--cyan); display: flex; align-items: center; justify-content: center; flex: none; }

/* phone: CTA pinned above the tab bar */
@media (max-width: 767px) {
  body.play .find-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 25; margin: 0; padding: 10px 14px 12px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .96) 30%); }
  body.play .cta { min-height: 58px; font-size: 19px; }
  body.play .main { padding-bottom: calc(var(--tab-h) + 110px); }
}
@media (min-width: 560px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile:last-child:nth-child(odd) { grid-column: auto; min-height: 168px; }
}
@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .cta { min-height: 76px; font-size: 26px; }
}
@media (min-width: 1100px) {
  .play-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .tile { min-height: 200px; padding: 18px; }
}

/* ---------- leaderboard ---------- */
.narrow { max-width: 920px; }
.lb-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lb { width: 100%; border-collapse: collapse; }
.lb th { white-space: nowrap; text-align: left; font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.lb td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb tr:last-child td { border-bottom: 0; }
.lb tbody tr { cursor: pointer; }
.lb tbody tr:hover td { background: #161616; }
.lb th:first-child, .lb td:first-child { padding-left: 14px; width: 46px; }
.lb th:last-child, .lb td:last-child { padding-right: 14px; }
.lb .r { text-align: right; }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 850; font-size: 14px; color: var(--muted); }
.rank.g1 { background: var(--gold); color: #000; }
.rank.g2 { background: var(--silver); color: #000; }
.rank.g3 { background: var(--bronze); color: #fff; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-weight: 700; min-height: 44px; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating { font: 800 16px var(--font); font-variant-numeric: tabular-nums; }
.wdl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wdl .w { color: var(--up); } .wdl .l { color: var(--down); } .wdl .d { color: var(--muted); }
.trend { font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); padding: 12px 14px; border-top: 1px solid var(--line); }
#board { overflow-x: auto; }
@media (max-width: 559px) {
  .lb .hide-sm { display: none; }
  .lb th, .lb td { padding: 8px 4px; }
  .lb th { font-size: 11px; letter-spacing: .3px; }
  .lb .who { gap: 8px; }
  .lb .who .avatar { width: 26px !important; height: 26px !important; font-size: 12px !important; }
  .lb .who span { max-width: 22vw; }
  .lb .rating { font-size: 15px; }
  .lb .trend { font-size: 13px; }
  .rank { width: 24px; height: 24px; font-size: 13px; }
  .lb th:first-child, .lb td:first-child { padding-left: 10px; width: 38px; }
  .lb th:last-child, .lb td:last-child { padding-right: 10px; }
  .wdl { font-size: 12.5px; }
}

/* ---------- player ---------- */
.p-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.p-head h1 { overflow-wrap: anywhere; }
.rcards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.rcard { text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; min-height: 44px; }
.rcard:hover { border-color: var(--panel-3); background: #161616; }
.rcard.on { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.rcard[disabled] { cursor: default; opacity: .6; }
.rcard .gname { color: var(--muted); font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.rcard .gname svg.i { width: 16px; height: 16px; color: var(--cyan); }
.rcard .big { font: 900 26px var(--display); font-variant-numeric: tabular-nums; }
.rcard { grid-template-columns: auto minmax(0, 1fr) auto; }
.rcard .gname { grid-column: 1 / 3; }
.rcard svg.spark { width: 100%; height: 30px; grid-row: 2; grid-column: 2; }
.rcard .big { grid-row: 2; grid-column: 1; }
.rcard .gcount { grid-row: 1; grid-column: 3; font-size: 12.5px; text-align: right; white-space: nowrap; }
.rcard .gdelta { grid-row: 2; grid-column: 3; text-align: right; }
@media (min-width: 640px) {
  .rcards { grid-template-columns: repeat(3, 1fr); }
  .rcard { grid-template-columns: 1fr auto; }
  .rcard .gname { grid-column: auto; }
  .rcard .big, .rcard .gcount, .rcard .gdelta { grid-row: auto; grid-column: auto; }
  .rcard svg.spark { grid-column: 1 / -1; grid-row: auto; height: 36px; margin-top: 4px; }
}
@media (max-width: 559px) { .hide-sm { display: none; } }
.p-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .p-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.chart { position: relative; padding: 8px 8px 4px; }
.chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart .tip { position: absolute; pointer-events: none; background: #000; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -12px; display: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.chart .tip b { font-size: 14px; }
.wdl-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 10px 0 12px; background: var(--panel); }
.wdl-bar i { display: block; }
.wdl-list { display: grid; gap: 8px; }
.wdl-list div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.wdl-list .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.mrow { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none !important; min-height: 56px; }
.mrow:hover { background: #161616; }
.mrow .opp { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .sub { color: var(--faint); font-size: 12.5px; display: flex; gap: 6px; align-items: center; white-space: nowrap; min-width: 0; }
.mrow .sub .tx { overflow: hidden; text-overflow: ellipsis; }
.mrow .opp, .mrow .sub { display: block; }
.mrow .sub { display: flex; }
.mrow .sub svg.i { width: 14px; height: 14px; }
.mrow .rt { text-align: right; }
.mrow .sc { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mrow .dl { font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.mrow .info { min-width: 0; }

/* ---------- match ---------- */
.m-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.m-top h1 { display: flex; align-items: center; gap: 10px; }
.board { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pcard { padding: 16px; position: relative; overflow: hidden; }
.pcard.side0 { border-top: 3px solid var(--pink); }
.pcard.side1 { border-top: 3px solid var(--cyan); }
.pcard.win { box-shadow: inset 0 0 0 1px var(--gold); }
.pcard .top { display: flex; align-items: center; gap: 12px; }
.pcard .nm { padding: 10px 0; margin: -10px 0; font-weight: 800; font-size: 17px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.pcard .meta { color: var(--muted); font-size: 13px; }
.pcard .score { font: 900 44px/1 var(--display); font-variant-numeric: tabular-nums; margin-left: auto; text-align: right; }
.pips { display: flex; gap: 6px; margin-top: 14px; }
.pips i { flex: 1; height: 8px; border-radius: 4px; background: var(--panel-3); }
.side0 .pips i.f { background: var(--pink); box-shadow: 0 0 10px rgba(255, 5, 67, .5); }
.side1 .pips i.f { background: var(--cyan); box-shadow: 0 0 10px rgba(62, 247, 71, .45); }
.wbadge { display: block; margin-top: 6px; }
.mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 0; text-align: center; }
.clock { font: 900 34px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.mid .lbl { color: var(--muted); font-size: 12.5px; }
@media (min-width: 768px) { .board { grid-template-columns: 1fr 200px 1fr; align-items: stretch; } .mid { padding: 0; } .pcard.side1 .top { flex-direction: row-reverse; text-align: right; } .pcard.side1 .score { margin-left: 0; margin-right: auto; text-align: left; } }
.m-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 1000px) { .m-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.feed { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 52px 10px 1fr; gap: 10px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed .t { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 13px; }
.feed .s { width: 10px; height: 10px; border-radius: 50%; }
.feed .s0 { background: var(--pink); } .feed .s1 { background: var(--cyan); }
.feed .tx b { font-weight: 750; }
.feed .tx .bad { color: var(--down); font-weight: 750; }
.feed .tx .warn { color: var(--gold); font-weight: 750; }
.feed .tx .good { color: var(--up); font-weight: 750; }
.recent a.mrow { grid-template-columns: auto 1fr auto; }

/* ---------- connect + rules (article pages) ---------- */
.chooser { padding: 16px; margin-bottom: 20px; }
.chooser h2 { margin-bottom: 4px; }
.choices { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: 650 14.5px/1.3 var(--font); text-align: left; cursor: pointer; }
.choice:hover { border-color: var(--cyan); }
.choice.on { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.choice .k { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--panel-3); font-weight: 900; flex: none; color: var(--cyan); }
.answer { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 21px; }
.answer b { color: var(--text); }
.methods { display: grid; gap: 16px; }
.method { padding: 0; scroll-margin-top: 72px; transition: border-color .3s, box-shadow .3s; }
.method.hl { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 30px rgba(255, 5, 67, .18); }
.method-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.method-head .k { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 5, 67, .14); color: var(--pink); font: 900 18px var(--display); display: flex; align-items: center; justify-content: center; flex: none; }
.method-head h2 { flex: 1; min-width: 180px; }
.method-body { padding: 16px; display: grid; gap: 18px; }
@media (min-width: 900px) { .method-body { grid-template-columns: 1fr 1fr; } .method-body .diagram { grid-column: 1 / -1; } }
.other { margin-top: 28px; display: grid; gap: 12px; scroll-margin-top: 72px; }
.other-head p { margin-top: 6px; max-width: 760px; }
details.method > summary { cursor: pointer; list-style: none; border-bottom: 0; min-height: 56px; }
details.method > summary::-webkit-details-marker { display: none; }
details.method > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 6px 0 4px; transition: transform .15s; flex: none; }
details.method[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
details.method[open] > summary { border-bottom: 1px solid var(--line); }
details.method > summary:hover h2 { color: #fff; }
details.method h2 { font-size: 16px; }
details.method .method-head .k { width: 30px; height: 30px; font-size: 15px; }
#ps5 { margin-bottom: 8px; }
.method h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--faint); margin-bottom: 8px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps > li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--panel-3); color: var(--text); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps .path { color: var(--cyan); font-weight: 650; }
.bul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.bul li::marker { color: var(--faint); }
.limits { background: var(--panel-2); border-radius: 10px; padding: 12px 14px; }
.diagram { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 14px 10px; background: #0a0a0a; border: 1px dashed var(--line); border-radius: 10px; }
.dnode { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text); }
.dnode .l2 { display: block; }
.dnode .box { width: 54px; height: 54px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--cyan); position: relative; }
.dnode .box svg.i { width: 30px; height: 30px; }
.dnode.ps .box { color: var(--white); }
.dnode.dc .box { color: var(--white); }
.dnode.bad .box { border-color: var(--down); color: var(--down); }
.dnode .q { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #000; font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.dlink { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--faint); font-size: 11px; font-weight: 650; min-width: 54px; text-align: center; }
.dlink svg { width: 44px; height: 14px; }
.dlink.bad { color: var(--down); }
.dbranch { display: flex; flex-direction: column; align-items: center; gap: 4px; }
@media (max-width: 559px) {
  .diagram { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 14px; }
  .dnode { flex-direction: row; text-align: left; gap: 12px; font-size: 13px; }
  .dnode .l2 { display: inline; }
  .dnode .faint { font-weight: 600; }
  .dnode .box { width: 42px; height: 42px; border-radius: 10px; }
  .dnode .box svg.i { width: 24px; height: 24px; }
  .dlink { flex-direction: row; gap: 10px; min-height: 30px; padding-left: 10px; text-align: left; }
  .dlink svg { transform: rotate(90deg); width: 22px; height: 12px; }
}
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: rgba(247, 255, 248, .08); border: 1px solid rgba(247, 255, 248, .35); margin-bottom: 20px; }
.callout svg.i { color: var(--gold); margin-top: 1px; }
.callout p + p { margin-top: 6px; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
@media (max-width: 767px) {
  .toc { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 16px; padding: 0 14px 4px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc .btn { flex: none; }
}
.rule-sec { padding: 0; margin-bottom: 16px; scroll-margin-top: 72px; }
.rule-sec .method-body { grid-template-columns: 1fr; }
@media (min-width: 900px) { .rule-sec .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.rule-sec .two > div + div { margin-top: 18px; }
@media (min-width: 900px) { .rule-sec .two > div + div { margin-top: 0; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.kv dt { color: var(--faint); font-weight: 650; }
.kv dd { margin: 0; }
.stars { display: inline-flex; gap: 2px; vertical-align: -3px; }
.stars svg { width: 16px; height: 16px; }
.kv.ident { grid-template-columns: 120px 1fr; gap: 16px 16px; align-items: start; }
.kv.ident .stars svg { width: 120px; height: 44px; }
@media (max-width: 420px) { .kv.ident { grid-template-columns: 1fr; gap: 6px; } .kv.ident dd { margin-bottom: 12px; } }

/* connect: inline Google button and the step a chooser answer points at */
.btn-inline { margin-top: 8px; }
.steps > li.hl-step { background: rgba(255, 5, 67, .08); box-shadow: 0 0 0 1px var(--pink); border-radius: 10px; padding: 6px; margin: -6px; }

/* rules: kill levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lvl { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.lvl b { font: 900 26px/1 var(--display); color: var(--text); }
.lvl .lvl-n { font-size: 12px; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: .5px; }
.lvl span:last-child { color: var(--muted); font-size: 12.5px; }

/* match: one-player practice */
@media (min-width: 768px) { .board.solo { grid-template-columns: minmax(0, 1fr) 200px; } }

/* ---------- Play page, short version (David 26.11: "less text", explanations inside the card) ---------- */
.play-title { font: 900 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .3px; margin: 2px 0 0; }
.play-title span { color: var(--pink); text-shadow: 0 0 22px rgba(255, 5, 67, .45); }
.gtiles { display: grid; gap: 8px; }
.gtile { position: relative; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.gtile:hover { border-color: var(--pink); background: #161616; }
.gt-link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 56px 8px 10px; color: var(--text); text-decoration: none !important; }
.gt-link .ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(62, 247, 71, .1); color: var(--cyan); flex: none; }
.gtile[data-g="kills"] .ico { background: rgba(255, 5, 67, .12); color: var(--pink); }
.gt-link .ico svg.i { width: 26px; height: 26px; }
.gt-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gt-txt b { font-size: 16px; font-weight: 750; }
.gt-txt .q { font-size: 12.5px; font-weight: 700; color: var(--faint); }
.gt-txt .q.has { color: var(--up); }
.gt-go { color: var(--muted); display: flex; }
.gtile:hover .gt-go { color: var(--pink); }
.gt-info { position: absolute; top: 10px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font: italic 800 15px Georgia, serif; display: flex; align-items: center; justify-content: center; }
.gt-info::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1.6px solid currentColor; }
.gt-info:hover, .gt-info[aria-expanded="true"] { color: var(--cyan); }
.gt-link .gt-go { margin-right: 4px; }
.gt-rule { margin: 0; padding: 0 14px 12px 66px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.newbie { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 10px; padding: 0 12px; border-radius: var(--radius);
  color: var(--muted); font-weight: 650; font-size: 14px; text-decoration: none !important; border: 1px dashed var(--line); }
.newbie:hover { color: var(--text); border-color: var(--cyan); }
.newbie svg.i { width: 20px; height: 20px; color: var(--cyan); }
.newbie .go { margin-left: auto; color: var(--faint); }
@media (max-width: 767px) {
  body.play .rail, body.play .foot { display: none; }        /* phone: the main screen is only title, games and the button */
  body.play .live-strip { margin-bottom: 12px; }
}
@media (min-width: 768px) {
  body.play .find-wrap { margin: 14px 0 16px; }
  .play-title { font-size: 40px; }
  .gtiles { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gt-link { flex-direction: column; align-items: flex-start; min-height: 150px; padding: 16px; gap: 14px; }
  .gt-link .ico { width: 52px; height: 52px; }
  .gt-link .ico svg.i { width: 30px; height: 30px; }
  .gt-txt b { font-size: 18px; }
  .gt-go { position: absolute; bottom: 16px; right: 16px; }
  .gt-rule { padding: 0 16px 16px; }
}
@media (max-width: 767px) {
  .play-title { margin-bottom: 12px; }
  .gtiles { gap: 10px; }
  .gt-link { min-height: 76px; }
  .gt-info { top: 16px; }
}

/* ---------- segmented control (leaderboard tabs, game and level switches) ---------- */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font: 700 14.5px var(--font); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--pink); }
.seg button svg.i { width: 18px; height: 18px; }
.seg.small button { font-size: 13.5px; padding: 0 10px; }
.lb-sub { display: grid; gap: 0; }
@media (max-width: 559px) { .seg.small button { padding: 0 6px; font-size: 12.5px; } .seg.small button[data-game] svg.i { display: none; } }
[hidden] { display: none !important; }   /* "hidden" must win over component display rules */

/* ---------- player: one rating + solo records (26.11) ---------- */
.rhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px 0; }
.rbig { font: 900 40px/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.rbig .tag-prov { font-size: 26px; }
.rfacts { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; font-weight: 650; }
.solo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.solo-cell { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--panel); min-width: 0; }
.solo-cell .st { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.solo-cell .st svg.i { width: 15px; height: 15px; color: var(--cyan); }
.solo-cell b { font: 900 22px var(--display); font-variant-numeric: tabular-nums; }
.solo-cell.none b { color: var(--faint); }
.solo-cell .faint { font-size: 12px; }
.solo-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .solo-grid { grid-template-columns: repeat(5, 1fr); } .solo-grid > :last-child:nth-child(odd) { grid-column: auto; } }

.legend a { display: inline-block; padding: 14px 0; margin: -14px 0; }

/* ---------- connect (26.11): four short step cards, details inside ---------- */
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.two .choice { justify-content: center; font-size: 16px; }
.diagram.flow { margin: 0 0 14px; padding: 10px; flex-direction: row !important; flex-wrap: nowrap; gap: 2px; }
.diagram.flow .dnode { flex-direction: column; min-width: 0; font-size: 11.5px; gap: 4px; }
.diagram.flow .dnode .box { width: 40px; height: 40px; }
.diagram.flow .dnode .box svg.i { width: 22px; height: 22px; }
.diagram.flow .dlink { min-width: 18px; padding: 0; }
.diagram.flow .dlink svg { transform: none !important; width: 24px; height: 12px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
details.step > summary { list-style: none; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; cursor: pointer; }
details.step > summary::-webkit-details-marker { display: none; }
details.step > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 auto; flex: none; transition: transform .15s; }
details.step[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
details.step[open] > summary { border-bottom: 1px solid var(--line); }
details.step .n { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none;
  background: rgba(255, 5, 67, .14); color: var(--pink); font: 900 16px var(--display); }
details.step .t { display: flex; flex-direction: column; min-width: 0; }
details.step .t b { font-size: 16px; }
details.step .t span { color: var(--muted); font-size: 13.5px; }
details.step.hl, details.method.hl { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.step-body { padding: 14px 16px 16px; }
.signin-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-auth.alt { background: transparent; }
.cta.small { min-height: 48px; font-size: 16px; margin-top: 14px; box-shadow: var(--glow-pink); }
/* connect step 2 (27.11): Sign in with Twitch; .alt = "use another account" once the channel is confirmed */
.cta.tw-btn { margin-top: 0; gap: 10px; }
.cta.tw-btn svg.i { width: 20px; height: 20px; }
.cta.alt { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text);; font-size: 14px; }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; align-items: start; } }
details.step { scroll-margin-top: 72px; }
.me.signin > summary.btn-auth { padding: 0 14px; background: var(--panel-2); }
.side .me.signin > summary.btn-auth { padding: 0; justify-content: center; }
@media (min-width: 1100px) { .side .me.signin > summary.btn-auth { padding: 0 12px; justify-content: flex-start; } }

/* five games (26.11): solo bests in one row when there is room; the game switch wraps instead of squeezing */
@media (min-width: 640px) { .solo-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
#games.seg { flex-wrap: wrap; overflow: visible; }
#games.seg button { flex: 1 1 30%; }
@media (min-width: 760px) { #games.seg button { flex: 1 1 0; } }
@media (max-width: 767px) {                 /* five games still fit one 375x812 screen */
  .gtiles { gap: 8px; }
  .gt-link { min-height: 66px; padding-top: 6px; padding-bottom: 6px; }
  .gt-info { top: 11px; }
  .newbie { margin-top: 8px; }
}

/* ---------- language picker + "Possible problems" (assets/i18n.js, 26.11; moved here from live.html) ---------- */
.gfi-bar { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
.gfi-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.gfi-lang { min-height: 44px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 600 14px var(--font); cursor: pointer; }
.gfi-probs { margin-top: 12px; border: 1px solid rgba(247, 255, 248, .35); border-radius: 12px; padding: 0 14px; background: rgba(247, 255, 248, .06); }
.gfi-probs summary { cursor: pointer; font-weight: 700; color: var(--white); min-height: 44px; display: flex; align-items: center; }
.gfi-probs ul { margin: 4px 0 12px; padding-left: 18px; line-height: 1.5; font-size: 14.5px; color: var(--text); }
.gfi-probs li { margin-bottom: 6px; }

/* ---------- Rooms + Follow on the Live tab (assets/rooms.js, 26.11) ---------- */
.gfr-follow { margin-bottom: 12px; }
.gfr-flabel { display: block; font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.gfr-frow { display: flex; gap: 8px; }
.gfr-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 16px var(--font); }
.gfr-fbtn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; font: 800 15px var(--font); color: #fff; cursor: pointer; background: var(--pinkx); }
.gfr-following { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 8px 8px 14px; margin-bottom: 12px;
  border-radius: var(--radius); background: rgba(255, 5, 67, .1); border: 1px solid rgba(255, 5, 67, .4); }
.gfr-ftext { font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.gfr-factions { display: flex; gap: 6px; }
.gfr-small { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 700 14px var(--font); cursor: pointer; }
.gfr-msg { padding: 18px 16px; margin-bottom: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); font-size: 17px; text-align: center; overflow-wrap: anywhere; }
.gfr-offline { padding: 10px 14px; margin-bottom: 12px; border-radius: var(--radius); border: 1px solid var(--live); color: var(--white); font-size: 14px; }
.gfr-list { display: grid; gap: 12px; }
@media (min-width: 1100px) { .gfr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.gfr-room { padding: 12px; min-width: 0; border: 1px solid var(--line); }
.gfr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.gfr-name { font: 900 17px var(--display); text-transform: uppercase; letter-spacing: .3px; }
.gfr-game { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 650; min-width: 0; }
.gfr-game svg.i { width: 16px; height: 16px; color: var(--cyan); }
.gfr-status { margin-left: auto; }
.gfr-videos { display: grid; gap: 6px; }
.gfr-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.gfr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gfr-shield { position: absolute; inset: 0; z-index: 1; }
.gfr-tag { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .65); font-size: 12px; font-weight: 700; pointer-events: none; max-width: calc(100% - 70px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gfr-unmute { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); font-size: 20px; cursor: pointer; }
.gfr-video.on .gfr-shield, .gfr-video.on .gfr-unmute { display: none; }
.gfr-dyn { margin-top: 10px; }
.gfr-clock { font: 900 22px var(--display); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.gfr-place { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.gfr-score { display: grid; gap: 8px; }
.gfr-score.two { grid-template-columns: 1fr 1fr; }
.gfr-p { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.gfr-p .who { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gfr-big { font: 900 40px/1.05 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gfr-big small { font-size: 18px; color: var(--faint); }
.gfr-score.two .gfr-big { font-size: 30px; }
.gfr-pips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 8px; }
.gfr-pips i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--panel-3); }
.gfr-pips i.on { background: var(--pink); border-color: var(--pink); }
.gfr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-weight: 750; font-size: 13px; background: var(--bg-2); max-width: 100%; }
.gfr-badge.ok { color: var(--up); } .gfr-badge.bad { color: #fff; background: var(--live); }
.gfr-badge.gold { color: #111; background: var(--gold); } .gfr-badge.wait { color: var(--muted); }
.gfr-feed { list-style: none; margin: 10px 0 0; padding: 0; max-height: 180px; overflow: auto; }
.gfr-feed li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; display: flex; gap: 10px; }
.gfr-feed li b { min-width: 38px; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.gfr-none { color: var(--muted); text-align: center; padding: 18px 0; }
.gfr-search { margin-top: 14px; }
.gfr-search h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); margin-bottom: 6px; }
.gfr-search ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gfr-search li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 0 0; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.gfr-who { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--cyan); font: 700 15px var(--font); cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================================================
   BRAND 26.11 ("трушна веселка", Tim via David): black + Antique White + Lime Green + Mexico Pink.
   - Pink FILL = the main action (black text: 5.4:1). Lime = live / win / ok / gains (black text on lime fills).
   - Bad states (identified, stars, errors) = pink OUTLINE pills, never a pink fill, so they never look like a button.
   - Pills everywhere (border-radius 999px); heavy lowercase Unbounded for display type; soft glow behind lime and pink.
   ===================================================================================================== */
h1, h2, .play-title, .brand-word, .cta, .gfr-name, .rbig, .stat b, .clock, .pcard .score, .rcard .big, .solo-cell b,
.lvl b, .gfr-big, .gfr-clock, .page-head h1, .method-head h2, details.step .t b {
  font-family: var(--display);
}
h1, .play-title, .page-head h1 { font-weight: 900; text-transform: lowercase; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-weight: 800; letter-spacing: -.01em; }
.brand-word { font-weight: 900; text-transform: lowercase; letter-spacing: -.02em; font-size: 17px; }
.brand-word b { color: var(--pinkx); text-shadow: 0 0 14px rgba(255, 5, 67, .55); }
.play-title { font-size: 30px; }
.play-title span { color: var(--lime); text-shadow: 0 0 22px rgba(62, 247, 71, .45); }
@media (min-width: 768px) { .play-title { font-size: 44px; } }

/* links and accents */
a { color: var(--lime); }
.steps .path { color: var(--white); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }

/* the main action: pink pill, black heavy lowercase text, pink glow */
.cta { border-radius: 999px; color: #000; text-transform: lowercase; font-weight: 900; letter-spacing: -.01em; box-shadow: var(--glow-pink); }
.cta:hover { filter: brightness(1.08); }
.cta small { color: #000; opacity: .8; font-weight: 700; }
.cta.off { background: var(--panel-2); color: var(--faint); box-shadow: none; }
.cta.off small { color: var(--faint); }
.gfr-fbtn, .btn-auth.primary { color: #000; border-radius: 999px; box-shadow: var(--glow-pink); }

/* pills */
.btn, .btn-auth, .select, .gfr-input, .gfr-small, .gfr-fbtn, .gfi-lang, .seg, .seg button, .chip, .rank, .result,
.gfr-badge, .pl-badge, .choice, .tile .ico, .gt-link .ico, .newbie, .me-menu a, .live-strip, .gfr-following, .gfr-search li { border-radius: 999px; }
.choice { border-radius: 28px; }
.gt-link .ico, .tile .ico, .newhere .ico, .method-head .k, .dnode .box { border-radius: 50%; }
.seg { padding: 5px; }
.btn-auth { background: var(--white); color: #000; border-color: var(--white); }
.btn-auth:hover { background: #fff; }
.btn-auth.alt, .me.signin > summary.btn-auth { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn { background: var(--panel-2); }
.select { background-color: var(--panel-2); }

/* ranks: the card's three pills - lime, white, pink */
.rank { width: 34px; }
.rank.g1 { background: var(--lime); color: #000; box-shadow: var(--glow-lime); }
.rank.g2 { background: var(--white); color: #000; }
.rank.g3 { background: var(--pinkx); color: #000; box-shadow: var(--glow-pink); }

/* status chips: live/win = lime; warnings = white outline; bad = pink outline */
.chip.live { background: rgba(62, 247, 71, .14); color: var(--lime); box-shadow: 0 0 14px rgba(62, 247, 71, .3); }
.chip.warn { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(247, 255, 248, .55); }
.chip.win { background: var(--lime); color: #000; box-shadow: var(--glow-lime); }
.chip.cyan { background: rgba(62, 247, 71, .14); color: var(--lime); }
.chip.pink { background: transparent; color: var(--pinkx); box-shadow: inset 0 0 0 1.5px var(--pinkx); }
.gfr-badge.ok, .pl-badge.ok { color: var(--lime); background: rgba(62, 247, 71, .12); }
.gfr-badge.bad, .pl-badge.bad { color: var(--pinkx); background: transparent; box-shadow: inset 0 0 0 2px var(--pinkx); }
.gfr-badge.gold, .pl-badge.gold { color: #000; background: var(--lime); box-shadow: var(--glow-lime); }
.gfr-offline { border-color: var(--pinkx); color: var(--white); border-radius: 999px; }
.error { border-color: var(--pinkx); background: transparent; color: var(--white); }
.result.lost { background: transparent; color: var(--pinkx); box-shadow: inset 0 0 0 2px var(--pinkx); }
.result.won { background: var(--lime); color: #000; }

/* panels: near-black cards with a hairline; active / selected = lime ring, highlighted step = pink ring */
.panel { background: var(--panel); border-color: var(--line); }
.tile:hover, .gtile:hover, .rcard.on, .choice.on { border-color: var(--lime); }
.rcard.on, .choice.on { box-shadow: inset 0 0 0 1px var(--lime), var(--glow-lime); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--white); color: #000; box-shadow: none; }
.side-link.on svg, .tabbar a.on svg { color: var(--lime); }
.tabbar a.on::before { background: var(--lime); box-shadow: var(--glow-lime); }
.side-link.on { background: var(--panel-2); }
.gtile[data-g="kills"] .ico, .gt-link .ico, .tile .ico { background: rgba(62, 247, 71, .1); color: var(--lime); }
.tile:nth-child(1) .ico { background: rgba(62, 247, 71, .1); color: var(--lime); }
.method-head .k, details.step .n { background: var(--pinkx); color: #000; }
.steps > li::before { background: var(--white); color: #000; }
.pips i.f, .gfr-pips i.on { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 8px rgba(62, 247, 71, .6); }
.side0 .pips i.f { background: var(--pinkx); box-shadow: 0 0 10px rgba(255, 5, 67, .5); }
.side1 .pips i.f { background: var(--lime); box-shadow: 0 0 10px rgba(62, 247, 71, .45); }
.pcard.side0 { border-top-color: var(--pinkx); } .pcard.side1 { border-top-color: var(--lime); }
.feed .s0 { background: var(--pinkx); } .feed .s1 { background: var(--lime); }
.feed .tx .bad { color: var(--pinkx); } .feed .tx .good, .feed .tx .warn { color: var(--lime); }
.gfi-probs { border-color: rgba(247, 255, 248, .35); background: transparent; border-radius: 22px; }
.gfi-probs summary { color: var(--white); }
.live-dot { background: var(--lime); }
.legend .tag-prov, .tag-prov { color: var(--faint); }
.up { color: var(--lime); } .down { color: var(--pinkx); }
.dnode.bad .box { border-color: var(--pinkx); color: var(--pinkx); }
.dlink.bad { color: var(--pinkx); }
.gt-info:hover, .gt-info[aria-expanded="true"] { color: var(--lime); }
details.step.hl, details.method.hl, .method.hl { border-color: var(--pinkx); box-shadow: 0 0 0 1px var(--pinkx), 0 0 24px rgba(255, 5, 67, .25); }
.cta small { opacity: 1; }
.gt-txt b, .tile h3, .mrow .opp, .who span, .p-head h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
.gt-txt b { font-size: 15px; }

/* ---------- header language picker (app.js langPicker, 26.11) ---------- */
.top-right { display: flex; align-items: center; gap: 6px; }
.nav-lang { display: inline-flex; }
.nav-lang .gfi-lang { min-height: 44px; min-width: 56px; padding: 0 22px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3cbc4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center / 12px;
  color: var(--text); font: 800 13px var(--font); cursor: pointer; appearance: none; -webkit-appearance: none; }
.side .nav-lang { margin: 0 0 8px; justify-content: center; }
.side .nav-lang .gfi-lang { width: 100%; }
@media (max-width: 400px) { .brand-word { font-size: 15px; } .topbar .btn-auth span { display: none; } .topbar .btn-auth { padding: 0 12px; } }

/* rooms, review 26.11: heading, name tag at the bottom-left (Twitch puts its age label on top), a worded sound pill,
   the whole video is tappable (the shield acts like the pill), Follow is an outline pill so it never fights "Find opponent" */
.gfr-title { font: 900 22px var(--display); text-transform: lowercase; letter-spacing: -.02em; margin: 4px 0 10px; }
.gfr-tag { top: auto; bottom: 10px; left: 10px; max-width: calc(100% - 190px); }
.gfr-shield { cursor: pointer; }
.gfr-unmute { width: auto; height: 40px; min-width: 44px; padding: 0 12px; border-radius: 999px; font: 700 13px var(--font); color: var(--white);
  display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .72); box-shadow: inset 0 0 0 1.5px rgba(247, 255, 248, .5); }
.gfr-unmute { min-height: 44px; }
.gfr-fbtn.alt { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }

.mrow .opp { font-family: var(--font); font-weight: 700; letter-spacing: 0; }
@media (max-width: 559px) { .lb .rank { width: 28px; height: 26px; font-size: 12.5px; } }
@media (max-width: 559px) {               /* longer languages: table headers wrap instead of widening the table */
  .lb th { white-space: normal; font-size: 10.5px; letter-spacing: .2px; line-height: 1.2; vertical-align: bottom; }
  .lb .rating { font-size: 14px; }
  .lb .who { gap: 6px; }
  .lb .who span { max-width: 24vw; }
}
@media (max-width: 420px) { .lb .who .avatar { display: none; } .lb .who span { max-width: 30vw; } .lb td { padding-left: 3px; padding-right: 3px; } }
@media (max-width: 559px) { .lb th { overflow-wrap: anywhere; hyphens: auto; } }

/* brand 27.11: SideKvest keeps its capital S and K (no lowercase transform on the logo word) */
.brand-word { text-transform: none; letter-spacing: -.01em; }
