/* Chess World: news, tournaments, results, live games, broadcasts and players. Builds on the Fusion tokens. */
.wsub { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 6px; scrollbar-width: none; }
.wsub::-webkit-scrollbar { display: none; }
.wsub a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--glass-line); color: var(--muted); font: 700 .9rem var(--cond); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; background: rgba(0, 0, 0, .18); }
:root[data-theme='light'] .wsub a { background: rgba(255, 255, 255, .7); }
.wsub a:hover { color: var(--text); border-color: var(--gold-hi); }
.wsub a.on { background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: #0b1410; border-color: transparent; box-shadow: 0 3px 0 var(--gold-deep); }
.wsearch { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.wsearch input { min-height: 38px !important; width: 230px; padding: 6px 14px !important; border-radius: 99px !important; }
.wfilters { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; align-items: center; }
.wfilters input, .wfilters select { min-width: 150px; flex: 1 1 150px; max-width: 260px; }
.wfilters.wide input, .wfilters.wide select { max-width: 220px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipb { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--glass-line); background: transparent; color: var(--muted); font: 700 .82rem var(--cond); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.chipb.on { background: var(--accent-soft); color: var(--gold-hi); border-color: var(--gold-hi); }
:root[data-theme='light'] .chipb.on { color: #7d5f12; border-color: #a8822f; }
.center { text-align: center; margin: 18px 0; }
.wcount { text-align: right; } .wcount b { display: block; font: 600 2rem var(--serif); } .wcount small { color: var(--muted); }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }

/* chips and tags */
.wchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font: 800 .72rem var(--cond); letter-spacing: .12em; text-transform: uppercase; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); }
.wchip .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.wchip.s-live { background: #e5484d; } .wchip.s-up { background: rgba(31, 107, 74, .9); } .wchip.s-done { background: rgba(60, 70, 66, .85); } .wchip.s-prov { background: rgba(201, 165, 74, .95); color: #1b1407; }
.wtags { display: flex; gap: 6px; flex-wrap: wrap; position: absolute; left: 12px; top: 12px; z-index: 2; }
.wheader .wtags, .wevhead .wtags { position: static; margin-bottom: 8px; }
.wcat { position: absolute; left: 12px; top: 12px; padding: 4px 11px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: var(--gold-pale); font: 800 .7rem var(--cond); letter-spacing: .12em; text-transform: uppercase; z-index: 2; }
.wtier { position: absolute; right: 12px; top: 10px; color: var(--gold-hi); font-size: 1.1rem; z-index: 2; text-shadow: 0 1px 6px #000; }
.wflag { font-size: 1.05em; } .wsrc { color: var(--muted); font-size: .8rem; display: block; margin-top: 6px; } .wsrc b { color: var(--text); }

/* cards and grids */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wgrid.players { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.lead-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lead-grid .wcard.lead { grid-column: span 2; grid-row: span 2; }
.wcard { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid var(--glass-line); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)); color: var(--text); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; min-width: 0; }
:root[data-theme='light'] .wcard { background: rgba(255, 255, 255, .8); }
.wcard:hover { transform: translateY(-4px); border-color: rgba(230, 200, 110, .6); box-shadow: var(--shadow); }
.wimg { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #14412e, #0b1812); overflow: hidden; }
.wimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.wcard:hover .wimg img { transform: scale(1.05); }
[data-img].noimg .wimg, .wimg:empty { background: linear-gradient(135deg, #1f6b4a, #0b1812 70%), radial-gradient(circle at 80% 20%, rgba(201, 165, 74, .5), transparent 60%); }
.wimg::after { content: '♞'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; color: rgba(255, 255, 255, .1); z-index: 0; }
.wimg img { position: relative; z-index: 1; }
.wimg.round { aspect-ratio: 1; border-radius: 0; }
.wimg.round.big { width: 190px; height: 190px; border-radius: 50%; border: 3px solid var(--gold); flex: none; }
.wimg .credit { position: absolute; bottom: 0; left: 0; right: 0; padding: 3px 8px; font-size: .62rem; background: rgba(0, 0, 0, .55); color: #ddd; z-index: 3; text-align: center; }
.wbody { padding: 16px 18px 18px; display: grid; gap: 4px; align-content: start; flex: 1; }
.wbody h3 { font-size: 1.35rem; line-height: 1.15; margin: 0 0 2px; }
.wcard.lead .wbody h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 500; }
.wcard.lead .wimg { aspect-ratio: 16 / 10; }
.wcard.event.live { border-color: rgba(229, 72, 77, .6); }
.wcard.player { text-align: center; } .wcard.player .wimg.round { aspect-ratio: 1; }
.wfacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .wfacts span { padding: 2px 9px; border-radius: 99px; background: rgba(0, 0, 0, .25); font-size: .75rem; color: var(--muted); }
:root[data-theme='light'] .wfacts span { background: rgba(0, 0, 0, .06); }
.wfacts.big { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 6px 0 16px; } .wfacts.big div { padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, .22); } .wfacts.big small { display: block; color: var(--muted); font: 700 .7rem var(--cond); letter-spacing: .14em; text-transform: uppercase; } .wfacts.big b { font-weight: 600; }
.wcd { margin-top: 8px; font: 700 .9rem var(--cond); letter-spacing: .06em; color: var(--gold-hi); } .wcd b { font-variant-numeric: tabular-nums; } .wcd.big { font-size: 1.6rem; }
.wrates { display: flex; justify-content: center; gap: 8px; margin-top: 6px; } .wrates span { display: grid; font: 600 1.15rem var(--serif); } .wrates small { font: 700 .6rem var(--cond); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.wrates.big { justify-content: flex-start; gap: 22px; margin: 14px 0 8px; } .wrates.big span { font-size: 2.2rem; }
.wsec { margin-top: 30px; } .wsec h2 { margin-bottom: 14px; } .wsec.live h2::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; margin-right: 10px; animation: pulse 1.6s infinite; }
.wsec .more { display: inline-flex; gap: 6px; align-items: center; font: 700 .8rem var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); }
.wempty { padding: 20px; border: 1px dashed var(--glass-line); border-radius: 18px; text-align: center; }
.w2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }

/* hero */
.whero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 10px 0 6px; }
.whero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1; margin: 6px 0 14px; }
.whero p { color: var(--muted); max-width: 54ch; }
.wfeat { display: grid; gap: 8px; padding: 24px; border-radius: 26px; border: 1px solid rgba(229, 72, 77, .5); background: linear-gradient(160deg, rgba(229, 72, 77, .18), rgba(31, 107, 74, .25)); color: var(--text); box-shadow: var(--shadow); }
.wfeat h3 { font-size: 1.8rem; margin: 6px 0 0; }

/* lists */
.wlist { display: grid; }
.wrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid rgba(201, 165, 74, .14); color: var(--text); }
.wrow:last-child { border-bottom: 0; } .wrow:hover { background: rgba(201, 165, 74, .07); }
.wrow.ev { grid-template-columns: minmax(0, 1fr) auto auto; }
.wrow.game { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 12px 16px; }
.wrow.game .wev { grid-column: 1 / -1; }
.wp { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wp.r { text-align: right; }
.wres { font: 600 1.1rem var(--serif); padding: 2px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
:root[data-theme='light'] .wres { background: rgba(0, 0, 0, .06); }
.wlist.tight .wrow { padding: 10px 16px; }
.wpod { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; } .wpod li { display: flex; align-items: center; gap: 8px; } .wpod li b, .wpod .pts { margin-left: auto; }
.wpod.big li { padding: 12px 16px; border-radius: 16px; background: rgba(0, 0, 0, .22); font-size: 1.1rem; }
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 800 .8rem var(--cond); color: #1b1407; } .medal.m1 { background: var(--gold-hi); } .medal.m2 { background: #c8cdd2; } .medal.m3 { background: #cd8a55; }

/* event page */
.wevhead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; padding: 26px; margin: 12px 0 18px; border-radius: 26px; overflow: hidden; border: 1px solid var(--glass-line); background: linear-gradient(160deg, rgba(31, 107, 74, .5), rgba(0, 0, 0, .3)); }
.wevhead .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.wevhead > * { position: relative; } .wevhead h1 { margin: 0 0 6px; }
.wtabs { margin-bottom: 16px; } .wpane { min-height: 200px; }
.wround { margin-bottom: 10px; border: 1px solid var(--glass-line); border-radius: 18px; overflow: hidden; } .wround summary { padding: 14px 18px; cursor: pointer; list-style: none; background: rgba(0, 0, 0, .18); }
.wsched { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .wsched li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(0, 0, 0, .2); align-items: center; } .wsched li.now { border: 1px solid #e5484d; } .wsched li.done { opacity: .65; }
.wstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 10px 0 16px; } .wstats div { padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .22); text-align: center; } .wstats b { display: block; font: 600 1.9rem var(--serif); } .wstats small { color: var(--muted); font: 700 .68rem var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.wbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(0, 0, 0, .3); margin: 6px 0 12px; } .wbar i.w { background: var(--teal); } .wbar i.d { background: var(--gold); } .wbar i.l { background: #e5484d; }

/* replay */
.wreplay { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 26px; align-items: start; }
.wreplay.live { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
.wleft { display: grid; gap: 10px; } .wright { display: grid; gap: 14px; min-width: 0; }
.wboard { display: grid; grid-template-columns: repeat(8, 1fr); width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.wboard span { position: relative; display: block; } .wboard span.hl::before { content: ''; position: absolute; inset: 0; background: rgba(230, 200, 110, .45); z-index: 0; }
.wboard .piece-svg, .wboard img { position: absolute; inset: 4%; width: 92%; height: 92%; z-index: 1; }
.wboard i { position: absolute; font: 700 .62rem var(--cond); opacity: .65; z-index: 2; } .wboard i.rk { left: 3px; top: 2px; } .wboard i.fl { right: 3px; bottom: 1px; }
.wplayer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.wclk { font: 700 1.3rem var(--cond); font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 8px; background: rgba(0, 0, 0, .35); }
.wctl { display: flex; gap: 8px; justify-content: center; } .wctl .btn { min-width: 46px; }
.wmoves { max-height: 340px; overflow: auto; padding: 10px; display: grid; gap: 2px; align-content: start; }
.wmv { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 4px; align-items: center; } .wmv .no { color: var(--muted); font-size: .8rem; text-align: right; padding-right: 4px; }
.wmv button { text-align: left; padding: 5px 9px; border-radius: 8px; border: 0; background: transparent; color: var(--text); font: 600 .95rem var(--font); cursor: pointer; display: flex; justify-content: space-between; gap: 6px; }
.wmv button small { color: var(--muted); font-size: .68rem; } .wmv button:hover { background: rgba(201, 165, 74, .12); } .wmv button.on { background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: #0b1410; } .wmv button.on small { color: #4d3a0c; }
.wmv.res { grid-template-columns: 1fr; text-align: center; padding: 8px; }
.wgraph { width: 100%; height: 70px; display: block; cursor: pointer; } .wgraph .bg { fill: rgba(0, 0, 0, .2); } .wgraph .mid { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 3 3; } .wgraph .area { fill: rgba(230, 200, 110, .22); } .wgraph .ln { fill: none; stroke: var(--gold-hi); stroke-width: 1.4; vector-effect: non-scaling-stroke; } .wgraph .cur { stroke: #e5484d; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.wev-now { font: 700 1.2rem var(--cond); color: var(--gold-hi); }

/* live */
.wlivegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.wlive { display: grid; gap: 6px; padding: 10px; border-radius: 18px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; text-align: left; font: inherit; transition: transform .2s, border-color .2s; min-width: 0; }
.wlive:hover { transform: translateY(-3px); border-color: var(--gold-hi); } .wlive.on { border-color: #e5484d; box-shadow: 0 0 0 2px rgba(229, 72, 77, .35); }
.wl-p { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; } .wl-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wl-p b { font: 700 .95rem var(--cond); font-variant-numeric: tabular-nums; } .wl-p.turn b { color: #e5484d; }
.wbig { margin-bottom: 22px; padding: 22px; }

/* broadcasts */
.wvideo { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow); } .wvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wstage { max-width: 980px; }
.empty.small { padding: 18px; }

/* profile */
.wpro { display: flex; gap: 28px; align-items: center; margin: 14px 0 6px; flex-wrap: wrap; } .wpro h1 { margin-bottom: 4px; } .wtitle { color: var(--gold-hi); font-style: italic; }
.wbio { line-height: 1.7; } .wach { padding-left: 1.2em; } .wach li { margin: 6px 0; }
.news-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.news-grid2 .wcard.lead { grid-column: 1 / -1; flex-direction: row; } .news-grid2 .wcard.lead .wimg { flex: 1.1; aspect-ratio: auto; min-height: 280px; } .news-grid2 .wcard.lead .wbody { flex: 1; align-content: center; padding: 28px; }
.wart { max-width: 820px; margin: 0 auto; } .wart h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 6px 0 10px; } .wmeta { margin-bottom: 18px; }
.wfig { margin: 0 0 22px; } .wfig img { width: 100%; border-radius: 22px; display: block; max-height: 460px; object-fit: cover; } .wfig figcaption { margin-top: 6px; }
.notice-card { display: grid; gap: 10px; margin-top: 18px; }
.card-h { padding: 12px 16px; border-bottom: 1px solid rgba(201, 165, 74, .14); }

@media (max-width: 1000px) { .lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .whero, .w2col, .wreplay, .wreplay.live { grid-template-columns: 1fr; } .news-grid2 .wcard.lead { flex-direction: column; } .news-grid2 .wcard.lead .wimg { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 700px) {
  .wsearch input { width: 150px; } .wsub { margin-right: -14px; padding-right: 14px; }
  .lead-grid { grid-template-columns: 1fr; } .lead-grid .wcard.lead { grid-column: auto; grid-row: auto; }
  .wrow.game { grid-template-columns: 1fr auto 1fr; padding: 10px; font-size: .88rem; } .wrow { gap: 8px; }
  .wevhead { grid-template-columns: 1fr; padding: 18px; } .wimg.round.big { width: 130px; height: 130px; } .wpro { gap: 16px; }
  .wrates.big span { font-size: 1.7rem; } .wfilters input, .wfilters select { max-width: none; flex: 1 1 100%; }
  .wlivegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .wl-p { font-size: .72rem; } .wlive { padding: 7px; }
  .wsched li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .wcard, .wcard .wimg img, .wlive { transition: none; } .pulse, .wchip .dot { animation: none; } }

/* the Chess World strip on the Rookery home page */
.fx-world { margin-top: 18px; padding: 20px 22px; background: linear-gradient(150deg, rgba(31, 107, 74, .3), rgba(201, 165, 74, .1)); }
.fx-world-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; margin-top: 10px; }
.fx-wlive, .fx-wnews { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid rgba(201, 165, 74, .14); color: var(--text); } .fx-wlive { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; } .fx-wlive small { grid-column: 2; }
.fx-wnews b { font: 600 1.15rem var(--serif); }
@media (max-width: 800px) { .fx-world-grid { grid-template-columns: 1fr; gap: 6px; } }

/* ---- game rows: both players with photo, title, flag and ratings ---- */
.wgames { display: grid; gap: 10px; }
.wgm { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 12px 16px 10px; border-radius: 20px; border: 1px solid var(--glass-line); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)); color: var(--text); transition: transform .2s var(--ease), border-color .2s; }
:root[data-theme='light'] .wgm { background: rgba(255, 255, 255, .8); }
.wgm:hover { transform: translateY(-2px); border-color: rgba(230, 200, 110, .6); }
.wpc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wpc.b { flex-direction: row-reverse; text-align: right; }
.wav { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font: 600 1.1rem var(--serif); color: #fff; background: linear-gradient(145deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 40) 50% 18%)); border: 2px solid rgba(201, 165, 74, .55); }
.wav b { font-weight: 600; letter-spacing: .02em; }
.wav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpi { display: grid; gap: 2px; min-width: 0; }
.wpn { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-weight: 700; font-size: 1.02rem; } .wpc.b .wpn { justify-content: flex-end; }
.wpn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtl { font: 800 .66rem var(--cond); letter-spacing: .08em; font-style: normal; padding: 1px 6px; border-radius: 6px; background: var(--gold); color: #1b1407; flex: none; }
.wpm { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .82rem; color: var(--muted); } .wpc.b .wpm { justify-content: flex-end; }
.wpm .wfr { color: var(--gold-hi); font-weight: 600; } :root[data-theme='light'] .wpm .wfr { color: #7d5f12; }
.wpm .wtm { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgc { display: grid; justify-items: center; gap: 2px; min-width: 76px; }
.wgc .wres { font: 700 1.3rem var(--serif); padding: 3px 14px; border-radius: 12px; } .wgc .wres.w { background: rgba(230, 200, 110, .22); } .wgc .wres.b { background: rgba(0, 0, 0, .4); } .wgc .wres.d { background: rgba(45, 212, 191, .18); }
.wgi { grid-column: 1 / -1; padding-top: 6px; border-top: 1px solid rgba(201, 165, 74, .12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .wgm { grid-template-columns: 1fr auto 1fr; gap: 6px 8px; padding: 10px; }
  .wgm .wav { --s: 38px; } .wpc { gap: 8px; } .wpn { font-size: .88rem; flex-wrap: wrap; gap: 3px; } .wpm { font-size: .74rem; gap: 2px 6px; }
  .wgc { min-width: 56px; } .wgc .wres { font-size: 1.05rem; padding: 2px 8px; } .wpm .wtm { display: none; }
}

/* ---- live boards: a card never grows with a long name ---- */
.wlive { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 8px; }
.wlive .wboard { box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.wlive .wl-p { padding: 2px 4px; } .wlive .wl-p span { min-width: 0; } .wlive .wl-p b { flex: none; }
.wlivegrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ---- filter picker (country): searchable, flags and counts ---- */
.wpick { position: relative; flex: 1 1 200px; max-width: 280px; min-width: 180px; }
.wpk-btn { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(0, 0, 0, .25); color: var(--text); font: 600 .95rem var(--font); cursor: pointer; }
:root[data-theme='light'] .wpk-btn { background: rgba(255, 255, 255, .85); }
.wpk-btn:hover, .wpk-btn[aria-expanded=true] { border-color: var(--gold-hi); }
.wpk-cur { display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .wpk-car { opacity: .7; }
.wpk-ic { font-size: 1.25rem; line-height: 1; }
.wpk-panel { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: max(100%, 280px); border-radius: 18px; border: 1px solid rgba(201, 165, 74, .45); background: linear-gradient(180deg, #11261c, #0b1812); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: hidden; }
:root[data-theme='light'] .wpk-panel { background: #fffdf6; box-shadow: 0 18px 40px rgba(60, 50, 20, .25); }
.wpk-q { display: block; width: calc(100% - 20px) !important; max-width: none !important; margin: 10px; min-height: 40px !important; border-radius: 99px !important; }
.wpk-panel ul { list-style: none; margin: 0; padding: 0 6px 8px; max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.wpk-panel li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; cursor: pointer; color: var(--text); outline: none; }
.wpk-panel li .wpk-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpk-panel li small { color: var(--muted); font: 700 .75rem var(--cond); letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .25); }
.wpk-panel li:hover, .wpk-panel li:focus { background: rgba(201, 165, 74, .16); }
.wpk-panel li[aria-selected=true] { background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: #0b1410; } .wpk-panel li[aria-selected=true] small { color: #4d3a0c; background: rgba(255, 255, 255, .4); }
.wpk-panel li[hidden] { display: none; }

/* ---- native selects: dark list instead of the grey system one ---- */
select { color-scheme: dark; } :root[data-theme='light'] select { color-scheme: light; }
select option { background: #0e2017; color: #efe8d6; padding: 8px; } :root[data-theme='light'] select option { background: #fffdf6; color: #1a2a22; }
@media (max-width: 700px) { .wpick { max-width: none; flex: 1 1 100%; } .wpk-panel { width: 100%; } }

/* ---- avatars of any size (initials until the photo arrives) ---- */
.wav { width: var(--s, 52px); height: var(--s, 52px); font-size: calc(var(--s, 52px) * .38); }
.wavw { display: inline-flex; vertical-align: middle; margin-right: 6px; flex: none; }
.wl-p span { display: flex; align-items: center; gap: 4px; } .wl-p .wav { border-width: 1px; }
.wplayer .wname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wstp { display: flex; align-items: center; gap: 6px; } .wstp .wavw { margin-right: 4px; }
.wav img { z-index: 1; }
