/* ============================================================
   PUBLIC MATCH CENTER (match-center.php) — tournaments only.
   On top of engine.css; scoped to .k3mc.
============================================================ */

/* ---------- hero ---------- */
.k3mc .k3mc-hero{max-width:1280px;margin:0 auto;padding-bottom:clamp(48px,8vh,72px)}
.k3mc .k3mc-hero .k3-h1{font-size:clamp(2.6rem,7vw,5.6rem)}
.k3mc .k3-h-sub{max-width:56ch;margin-top:24px;color:rgba(241,239,228,.72)}
.k3mc-stats{display:flex;flex-wrap:wrap;gap:12px;margin:32px 0 0}
.k3mc-stats div{min-width:120px;padding:16px 20px;border-radius:16px;background:rgba(241,239,228,.05);border:1px solid rgba(241,239,228,.12)}
.k3mc-stats dt{font-size:.6875rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--k3-cream55)}
.k3mc-stats dd{margin:6px 0 0;font-family:var(--k3-display);font-size:2rem;line-height:1;color:var(--k3-cream);font-variant-numeric:tabular-nums}
.k3mc .k3mc-filter{margin-top:40px;padding:12px;gap:12px;border-radius:24px}
.k3mc .k3mc-filter select{flex:0 1 320px;padding-block:14px;font-size:.875rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F1EFE4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center}
.k3mc .k3mc-filter select option{color:#0B2018}
.k3mc .k3mc-filter .k3-s-input input{padding-block:14px;font-size:.9375rem}
.k3mc .k3mc-filter select:focus-visible,.k3mc .k3mc-filter input:focus-visible{outline:2px solid var(--k3-lime2);outline-offset:2px}

/* ---------- tabs ---------- */
.k3mc-body{padding-top:clamp(40px,7vh,64px)}
.k3mc-tabs{position:sticky;top:76px;z-index:5;display:flex;gap:4px;width:max-content;max-width:100%;overflow-x:auto;padding:6px;border-radius:999px;
  background:rgba(255,255,255,.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(11,32,24,.08);
  box-shadow:0 10px 30px rgba(11,32,24,.08);scrollbar-width:none}
.k3mc-tabs::-webkit-scrollbar{display:none}
.k3-scope .k3mc-tab{flex:none;display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border:0;border-radius:999px;background:none;
  font:700 .875rem/1 var(--k3-sans);color:rgba(11,32,24,.62);cursor:pointer;transition:background .2s,color .2s}
.k3mc-tab>span:not(.k3-live-dot){display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:rgba(11,32,24,.08);font-size:.6875rem}
.k3-scope .k3mc-tab:hover{color:var(--k3-ink)}
.k3-scope .k3mc-tab.is-on{background:var(--k3-ink);color:var(--k3-cream)}
.k3mc-tab.is-on>span:not(.k3-live-dot){background:var(--k3-lime);color:var(--k3-ink)}
.k3mc-tab:focus-visible{outline:2px solid var(--k3-lime);outline-offset:2px}
.k3mc-tab .k3-live-dot{position:relative;width:8px;height:8px;border-radius:50%;background:#E5484D}
.k3mc-count{min-height:1.2em;margin:16px 0 0;font-size:.8125rem;font-weight:600;color:rgba(11,32,24,.6)}
.k3mc-pane{margin-top:12px}
.k3mc-pane[hidden],.k3mc-m[hidden],[data-day][hidden]{display:none}
.k3mc-none{display:flex;align-items:center;gap:12px;margin:0;padding:28px 24px;border-radius:20px;background:rgba(255,255,255,.55);
  border:1.5px dashed rgba(11,32,24,.14);color:rgba(11,32,24,.7);font-weight:500}
.k3mc-none i{color:#4D7A00}

/* ---------- match rows ---------- */
.k3mc-day+.k3mc-day{margin-top:32px}
.k3mc-day-h{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-family:var(--k3-display);font-weight:400;font-size:1.25rem;letter-spacing:.02em;
  text-transform:uppercase;color:var(--k3-ink)}
.k3mc-day-h span{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--k3-ink);color:var(--k3-lime);
  font:700 .6875rem/1 var(--k3-sans)}
.k3mc-list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.k3mc-m{border-radius:20px;background:#fff;border:1px solid rgba(11,32,24,.08);box-shadow:0 2px 6px rgba(11,32,24,.04);overflow:hidden;
  transition:transform .2s cubic-bezier(.25,.1,.25,1),box-shadow .2s,border-color .2s}
.k3mc-m:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(11,32,24,.1);border-color:rgba(142,188,13,.45)}
.k3mc-m--live{border-color:rgba(229,72,77,.35);box-shadow:0 0 0 3px rgba(229,72,77,.08)}
.k3-scope .k3mc-m-btn{display:grid;grid-template-columns:88px minmax(0,1fr) 112px minmax(0,1fr) minmax(170px,.9fr) auto;align-items:center;gap:16px;
  width:100%;padding:16px 20px;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
.k3mc-m-btn:focus-visible{outline:2px solid var(--k3-lime);outline-offset:-2px;border-radius:20px}
.k3mc-m-when{display:flex;flex-direction:column;gap:2px;line-height:1.1}
.k3mc-m-when b{font-family:var(--k3-display);font-weight:400;font-size:1.35rem;color:var(--k3-ink)}
.k3mc-m-when small{font-size:.75rem;font-weight:600;color:rgba(11,32,24,.55)}
.k3mc-live{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#FDECEC;color:#C02D33;font-size:.75rem;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase}
.k3mc-live i{width:8px;height:8px;border-radius:50%;background:currentColor;animation:k3mc-pulse 1.4s infinite}
@keyframes k3mc-pulse{50%{opacity:.25}}
.k3mc-m-team{display:flex;align-items:center;gap:12px;min-width:0;font-weight:600;color:rgba(11,32,24,.78)}
.k3mc-m-team--h{justify-content:flex-end;text-align:right}
.k3mc-m-team.is-win{color:var(--k3-ink);font-weight:800}
.k3mc-m-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.k3mc-m-score{display:flex;justify-content:center;align-items:center;gap:8px;padding:8px 0;border-radius:14px;background:var(--k3-ink);color:var(--k3-cream)}
.k3mc-m-score b{font-family:var(--k3-display);font-weight:400;font-size:1.6rem;line-height:1;font-variant-numeric:tabular-nums}
.k3mc-m-score i{font-style:normal;color:var(--k3-lime)}
.k3mc-m-score>span{font-family:var(--k3-display);font-size:1.1rem;letter-spacing:.08em;color:var(--k3-lime2)}
.k3mc-m--upcoming .k3mc-m-score{background:rgba(11,32,24,.06)}
.k3mc-m--upcoming .k3mc-m-score>span{color:var(--k3-ink3)}
.k3mc-m-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:.75rem;color:rgba(11,32,24,.6)}
.k3mc-m-meta i{margin-right:4px;color:#4D7A00}
.k3mc-tag{padding:3px 9px;border-radius:999px;background:rgba(142,188,13,.16);color:#3D6100;font-weight:700}
.k3mc-pens{font-weight:700;color:#7A5A00}
.k3mc-m-go{display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:700;color:#4D7A00;white-space:nowrap}
.k3mc-m-go i{font-size:.7rem;transition:transform .2s}
.k3mc-m:hover .k3mc-m-go i{transform:translateX(4px)}
.k3mc-m-goals{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:start;margin:0 20px;padding:10px 0 14px 104px;
  border-top:1px dashed rgba(11,32,24,.1);font-size:.75rem;color:rgba(11,32,24,.6)}
.k3mc-m-goals span:first-child{text-align:right}
.k3mc-m-goals i{margin-top:2px;color:rgba(11,32,24,.3);font-size:.7rem}

/* ---------- crests ---------- */
.k3mc-crest{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid rgba(11,32,24,.1);overflow:hidden}
.k3mc-crest img{width:100%;height:100%;object-fit:contain;padding:3px}
.k3mc-crest--txt{background:linear-gradient(135deg,var(--k3-ink3),var(--k3-ink2));border-color:transparent;color:var(--k3-lime2);font:400 .9rem/1 var(--k3-display)}
.k3mc-crest--sm{width:28px;height:28px}
.k3mc-crest--sm.k3mc-crest--txt{font-size:.7rem}

/* ---------- tables ---------- */
.k3mc-tour+.k3mc-tour{margin-top:48px;padding-top:40px;border-top:1px solid rgba(11,32,24,.1)}
.k3mc-tour-h{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.k3mc-tour-h h2{margin:0;font-family:var(--k3-display);font-weight:400;font-size:clamp(1.6rem,3vw,2.2rem);text-transform:uppercase;color:var(--k3-ink)}
.k3mc-tour-h a{font-size:.8125rem;font-weight:700;color:#4D7A00;text-decoration:none}
.k3mc-tour-h a:hover{color:var(--k3-ink)}
.k3mc-tables{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:20px}
.k3mc-table{padding:18px;border-radius:20px;background:#fff;border:1px solid rgba(11,32,24,.08)}
.k3mc-table h3,.k3mc-sub{margin:0 0 10px;font-family:var(--k3-display);font-weight:400;font-size:1.15rem;text-transform:uppercase;color:var(--k3-ink)}
.k3mc-sub{margin-top:32px}
.k3mc-table .k3-table td{padding:.6rem .55rem}
.k3mc-tteam{display:inline-flex;align-items:center;gap:10px;font-weight:600}
.k3mc-qnote{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:.8125rem;color:rgba(11,32,24,.6)}
.k3mc-qdot{width:12px;height:12px;border-radius:3px;background:var(--k3-lime)}

/* ---------- stat leaders ---------- */
.k3mc-leaders{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:20px}
.k3mc-board{padding:22px;border-radius:24px;background:#fff;border:1px solid rgba(11,32,24,.08)}
.k3mc-board h3{display:flex;align-items:center;gap:12px;margin:0 0 16px;font-family:var(--k3-display);font-weight:400;font-size:1.3rem;text-transform:uppercase;color:var(--k3-ink)}
.k3mc-board h3 span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--k3-ink);color:var(--k3-lime2);font-size:.95rem}
.k3mc-board ol{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.k3mc-board li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px}
.k3mc-board li.is-top{background:linear-gradient(135deg,rgba(142,188,13,.2),rgba(142,188,13,.06))}
.k3mc-rank{width:18px;font-size:.8125rem;font-weight:800;color:rgba(11,32,24,.45);text-align:center}
.k3mc-board li.is-top .k3mc-rank{color:#3D6100}
.k3mc-who{flex:1;min-width:0;display:flex;flex-direction:column}
.k3mc-who b{font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.k3mc-who small{font-size:.75rem;color:rgba(11,32,24,.55);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.k3mc-val{display:flex;align-items:center;gap:4px;font-family:var(--k3-display);font-size:1.3rem;color:var(--k3-ink)}
.k3mc-card{display:inline-block;width:10px;height:14px;margin-right:6px;border-radius:2px}
.k3mc-card--y{background:#F5C518}
.k3mc-card--r{background:#E5484D}
.k3mc-board-empty{margin:0;font-size:.875rem;color:rgba(11,32,24,.55)}
.k3mc .k3-empty[hidden]{display:none}
.k3mc .k3-empty{margin-top:12px}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .k3-scope .k3mc-m-btn{grid-template-columns:72px minmax(0,1fr) 96px minmax(0,1fr);row-gap:10px}
  .k3mc-m-meta{grid-column:2 / -1}
  .k3mc-m-go{display:none}
  .k3mc-m-goals{padding-left:88px}
}
@media (max-width:640px){
  .k3mc .k3mc-filter{border-radius:20px}
  .k3mc .k3mc-filter select,.k3mc .k3mc-filter .k3-s-input{flex:1 1 100%}
  .k3mc-stats div{flex:1 1 40%;min-width:0;padding:12px 14px}
  .k3mc-stats dd{font-size:1.5rem}
  .k3mc-tabs{top:64px;width:100%}
  .k3-scope .k3mc-tab{flex:1 1 auto;justify-content:center;gap:6px;padding:10px 8px;font-size:.8125rem}
  .k3mc-tab>span:not(.k3-live-dot){min-width:20px;height:20px;font-size:.625rem}
  .k3-scope .k3mc-m-btn{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr);gap:10px;padding:14px}
  .k3mc-m-when{grid-column:1 / -1;flex-direction:row;align-items:baseline;gap:8px}
  .k3mc-m-when b{font-size:1.1rem}
  .k3mc-m-team{flex-direction:column;gap:6px;text-align:center;font-size:.8125rem}
  .k3mc-m-team--h{flex-direction:column-reverse}
  .k3mc-m-name{white-space:normal;overflow:visible;line-height:1.2}
  .k3mc-m-score b{font-size:1.35rem}
  .k3mc-m-meta{grid-column:1 / -1;justify-content:center}
  .k3mc-m-goals{margin:0 14px;padding:10px 0 12px}
}
@media (prefers-reduced-motion:reduce){
  .k3mc *{animation:none!important;transition:none!important}
}

/* Phones: a compact header so the matches show on the first screen.
   Title on one line, no intro paragraph, the four numbers in one strip,
   tournament picker and search side by side in a slim bar. */
@media (max-width:640px){
  .k3mc .k3mc-hero{padding:84px 16px 20px}
  .k3mc .k3mc-hero .k3-live-pill,.k3mc .k3mc-hero .k3-eyebrow{margin-bottom:8px;font-size:.6875rem;padding-block:6px}
  .k3mc .k3mc-hero .k3-h1{display:flex;flex-wrap:wrap;gap:0 .3em;font-size:2.25rem;line-height:1}
  .k3mc .k3mc-hero .k3-h-sub{display:none}
  .k3mc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:14px}
  .k3mc-stats div{min-width:0;padding:8px 6px;border-radius:12px;text-align:center}
  .k3mc-stats dt{font-size:.5625rem;letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .k3mc-stats dd{margin-top:3px;font-size:1.25rem}
  .k3mc .k3mc-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin-top:12px;padding:6px;border-radius:16px}
  .k3mc .k3mc-filter select,.k3mc .k3mc-filter .k3-s-input{flex:none;min-width:0}
  .k3mc .k3mc-filter select{padding-block:10px;font-size:.8125rem;border-radius:12px;text-overflow:ellipsis}
  .k3mc .k3mc-filter .k3-s-input input{padding-block:10px;font-size:16px;border-radius:12px}
  .k3mc .k3mc-filter .k3-s-input input::placeholder{font-size:.8125rem}
  .k3mc-body{padding-top:20px}
}
@media (max-width:360px){
  .k3mc .k3mc-filter{grid-template-columns:1fr}
  .k3mc-stats dd{font-size:1.05rem}
}
@media (max-width:640px){.k3mc .k3mc-hero .k3-hlwrap{padding-right:.14em}}

/* ================= tournament picker ================= */
.k3mc .k3mc-hero:has(.k3mc-pick[open]){z-index:40}
.k3mc .k3mc-filter{align-items:stretch}
.k3mc-pick{position:relative;flex:0 1 360px;min-width:0}
.k3mc-pick summary{display:flex;align-items:center;gap:12px;height:100%;min-height:56px;padding:8px 16px 8px 8px;border-radius:999px;cursor:pointer;list-style:none;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:var(--k3-cream);transition:background .2s,border-color .2s}
.k3mc-pick summary::-webkit-details-marker{display:none}
.k3mc-pick summary:hover{background:rgba(255,255,255,.1)}
.k3mc-pick summary:focus-visible{outline:2px solid var(--k3-lime2);outline-offset:2px}
.k3mc-pick[open] summary{border-color:var(--k3-lime);background:rgba(142,188,13,.1)}
.k3mc-pick-ic{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:var(--k3-lime);color:var(--k3-ink);font-size:.95rem}
.k3mc-pick-cur{flex:1;min-width:0;line-height:1.2}
.k3mc-pick-cur small{display:block;font-size:.625rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--k3-cream55)}
.k3mc-pick-cur b{display:block;margin-top:2px;font-size:.9375rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.k3mc-pick-car{flex:none;font-size:.75rem;color:var(--k3-cream55);transition:transform .25s}
.k3mc-pick[open] .k3mc-pick-car{transform:rotate(180deg);color:var(--k3-lime2)}

.k3mc-pick-menu{position:absolute;left:0;top:calc(100% + 10px);z-index:50;width:max(100%,380px);max-height:min(60vh,440px);overflow-y:auto;overscroll-behavior:contain;
  padding:8px;border-radius:20px;background:#0E2219;border:1px solid rgba(241,239,228,.14);box-shadow:0 24px 60px rgba(0,0,0,.55);
  animation:k3mc-drop .22s cubic-bezier(.2,.8,.2,1)}
@keyframes k3mc-drop{from{opacity:0;transform:translateY(-6px) scale(.98)}}
.k3mc-pick-opt{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;color:var(--k3-cream);text-decoration:none;transition:background .15s}
.k3mc-pick-opt+.k3mc-pick-opt{margin-top:2px}
.k3mc-pick-opt:hover,.k3mc-pick-opt:focus-visible{background:rgba(241,239,228,.07);outline:none}
.k3mc-pick-opt.is-on{background:rgba(142,188,13,.14)}
.k3mc-pick-oic{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:rgba(241,239,228,.07);color:var(--k3-lime2);font-size:.85rem}
.k3mc-pick-opt.is-on .k3mc-pick-oic{background:var(--k3-lime);color:var(--k3-ink)}
.k3mc-pick-txt{flex:1;min-width:0;line-height:1.25}
.k3mc-pick-txt b{display:block;font-size:.9rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.k3mc-pick-txt small{display:block;margin-top:2px;font-size:.75rem;color:var(--k3-cream55)}
.k3mc-pick-tick{flex:none;width:14px;font-size:.8rem;color:var(--k3-lime2);opacity:0}
.k3mc-pick-opt.is-on .k3mc-pick-tick{opacity:1}
.k3mc-chip{display:inline-flex;align-items:center;gap:6px;flex:none;height:24px;padding:0 10px;border-radius:999px;font-size:.6875rem;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.k3mc-chip .k3-live-dot{width:6px;height:6px}
.k3mc-chip--live{background:rgba(240,68,56,.18);color:#FFB4AB}
.k3mc-chip--on{background:rgba(142,188,13,.18);color:var(--k3-lime2)}
.k3mc-chip--done{background:rgba(241,239,228,.08);color:var(--k3-cream55)}
.k3mc-chip--soon{background:rgba(217,164,65,.16);color:#E9C27A}

@media (max-width:640px){
  .k3mc .k3mc-filter{position:relative}
  .k3mc-pick{position:static;flex:none}
  .k3mc-pick summary{min-height:44px;padding:4px 10px 4px 4px;gap:8px;border-radius:12px}
  .k3mc-pick-ic{width:32px;height:32px;border-radius:9px;font-size:.8rem}
  .k3mc-pick-cur small{font-size:.5625rem}
  .k3mc-pick-cur b{font-size:.8125rem}
  .k3mc-pick-menu{left:0;right:0;width:auto;top:calc(100% + 8px);max-height:62vh;border-radius:18px}
  .k3mc-pick-opt{padding:10px;gap:10px}
  .k3mc-pick-txt b{font-size:.875rem}
}

/* ================= section tabs ================= */
.k3mc-tabs{gap:4px;padding:6px;border-radius:20px;margin-bottom:8px}
.k3-scope .k3mc-tab{position:relative;gap:8px;padding:11px 18px;border-radius:14px}
.k3mc-tab-ic{font-size:.8rem;opacity:.7}
.k3-scope .k3mc-tab.is-on .k3mc-tab-ic{opacity:1;color:var(--k3-lime2)}
.k3mc-tab>.k3mc-tab-n{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:rgba(11,32,24,.08);font-size:.6875rem}
.k3mc-tab.is-on>.k3mc-tab-n{background:var(--k3-lime);color:var(--k3-ink)}
.k3-scope .k3mc-tab:hover:not(.is-on){background:rgba(11,32,24,.05)}

/* Phones: all sections visible at once, icon over label, count as a corner badge */
@media (max-width:640px){
  .k3mc-body{padding-left:14px;padding-right:14px}
  .k3mc-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%;max-width:none;overflow:visible;padding:5px;gap:3px;border-radius:18px;top:62px}
  .k3-scope .k3mc-tab{flex-direction:column;justify-content:center;gap:4px;min-width:0;padding:9px 2px 8px;border-radius:13px;font-size:.6875rem;line-height:1.1}
  .k3mc-tab-ic{font-size:.95rem}
  .k3mc-tab .k3-live-dot{width:9px;height:9px;margin:3px 0 2px}
  .k3mc-tab-l{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .k3mc-tab>.k3mc-tab-n{position:absolute;top:3px;right:calc(50% - 22px);min-width:16px;height:16px;padding:0 4px;font-size:.5625rem}
  .k3mc-count:empty{display:none}
}
@media (max-width:340px){
  .k3-scope .k3mc-tab{font-size:.625rem}
  .k3mc-tab>.k3mc-tab-n{right:2px}
}

/* tab label is plain text, not a pill (overrides the older count-pill rule) */
.k3mc-tab>.k3mc-tab-l{display:inline;min-width:0;height:auto;padding:0;border-radius:0;background:none!important;color:inherit!important;font-size:inherit}
@media (max-width:640px){
  .k3mc-tab>.k3mc-tab-l{display:block}
  .k3mc-tab>.k3mc-tab-n{top:4px;right:4px}
  .k3mc-tab .k3-live-dot{box-shadow:0 0 0 4px rgba(229,72,77,.18)}

  /* league tables: keep # · team · P · GD · Pts on phones, W/D/L are on wider screens */
  .k3mc-table{padding:12px 10px;border-radius:16px}
  .k3mc-table .k3-table-wrap{overflow-x:auto}
  .k3mc-table .k3-table th:nth-child(4),.k3mc-table .k3-table td:nth-child(4),
  .k3mc-table .k3-table th:nth-child(5),.k3mc-table .k3-table td:nth-child(5),
  .k3mc-table .k3-table th:nth-child(6),.k3mc-table .k3-table td:nth-child(6){display:none}
  .k3mc-table .k3-table td{padding:.55rem .35rem;font-size:.875rem}
  .k3mc-table .k3-table th{padding:.5rem .35rem;font-size:.6875rem}
  .k3mc-table .k3-table td:nth-child(2){width:100%}
}
@media (max-width:640px){
  .k3mc-tab>.k3mc-tab-n{top:2px;right:2px;min-width:15px;height:15px;padding:0 3px;font-size:.5rem;box-shadow:0 0 0 2px #fff}
  .k3mc-tab.is-on>.k3mc-tab-n{box-shadow:0 0 0 2px var(--k3-ink)}
}
@media (max-width:640px){
  .k3mc-tabs .k3mc-tab>span.k3mc-tab-n{position:absolute;top:3px;right:3px;min-width:16px;height:16px;padding:0 4px;font-size:.5625rem;line-height:16px}
}

/* ================= live updates ================= */
.k3mc-sync{display:inline-flex;align-items:center;gap:8px;margin:6px 0 0;padding:5px 12px;border-radius:999px;background:rgba(11,32,24,.05);
  font-size:.75rem;font-weight:600;color:rgba(11,32,24,.6)}
.k3mc-sync .k3-live-dot{width:7px;height:7px;background:#12B76A;box-shadow:0 0 0 3px rgba(18,183,106,.18)}
.k3mc-sync[data-live="1"] .k3-live-dot{background:#E5484D;box-shadow:0 0 0 3px rgba(229,72,77,.18);animation:k3mc-pulse 1.6s infinite}
.k3mc-sync.is-off .k3-live-dot{background:#F79009;animation:none}
@keyframes k3mc-pulse{50%{box-shadow:0 0 0 6px rgba(229,72,77,0)}}
.k3mc-flash{animation:k3mc-flash 2.6s ease}
@keyframes k3mc-flash{0%,30%{box-shadow:0 0 0 3px var(--k3-lime),0 10px 30px rgba(142,188,13,.35)}100%{box-shadow:0 2px 6px rgba(11,32,24,.04)}}

.k3mc-table tr.is-live td{background:rgba(229,72,77,.045)}
.k3mc-table tr.is-live td:first-child{box-shadow:inset 3px 0 0 #E5484D}
.k3mc-tlive{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:2px 7px;border-radius:999px;background:rgba(229,72,77,.12);color:#C4320A;
  font-size:.625rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle}
.k3mc-tlive .k3-live-dot{width:6px;height:6px;background:#E5484D}
.k3mc-livenote{display:flex;align-items:center;gap:8px}
.k3mc-livenote .k3-live-dot{width:7px;height:7px;background:#E5484D}
@media (prefers-reduced-motion:reduce){.k3mc-flash,.k3mc-sync .k3-live-dot{animation:none}}
@media (max-width:640px){
  .k3mc-sync{font-size:.6875rem;margin-top:8px}
  .k3mc-tlive{margin-left:6px;padding:1px 5px}
}

/* ================= stats sub-tabs ================= */
.k3mc-subtabs{display:flex;gap:6px;margin:4px 0 16px;padding:2px;overflow-x:auto;scrollbar-width:none}
.k3mc-subtabs::-webkit-scrollbar{display:none}
.k3-scope button.k3mc-subtab{flex:none;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;border:1px solid rgba(11,32,24,.12);
  background:#fff;font:700 .8125rem/1 var(--k3-sans);color:rgba(11,32,24,.65);cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.k3mc-subtab i{font-size:.8rem;color:#5E8A00}
.k3-scope button.k3mc-subtab:hover:not(.is-on){border-color:rgba(11,32,24,.25);color:var(--k3-ink)}
.k3-scope button.k3mc-subtab.is-on{background:var(--k3-lime);border-color:var(--k3-lime);color:var(--k3-ink)}
.k3mc-subtab.is-on i{color:var(--k3-ink)}
.k3mc-subtab:focus-visible{outline:2px solid var(--k3-ink);outline-offset:2px}
.k3mc-sboard[hidden]{display:none}

/* leader spotlight */
.k3-scope button.k3mc-spot{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"badge badge badge" "face who n";align-items:center;gap:12px 16px;
  width:100%;padding:20px 22px;border:0;border-radius:24px;overflow:hidden;text-align:left;font:inherit;color:#fff;cursor:pointer;
  background:radial-gradient(120% 160% at 100% 0%,rgba(142,188,13,.35),transparent 55%),linear-gradient(135deg,#123226,#050D09);box-shadow:0 14px 34px rgba(11,32,24,.18);transition:transform .18s}
.k3-scope button.k3mc-spot:hover{transform:translateY(-2px)}
.k3mc-spot:focus-visible{outline:3px solid var(--k3-lime);outline-offset:2px}
.k3mc-spot::after{content:"";position:absolute;right:-60px;top:-60px;width:200px;height:200px;border-radius:50%;border:1px solid rgba(255,255,255,.08);pointer-events:none}
.k3mc-spot-badge{grid-area:badge;display:inline-flex;align-items:center;gap:7px;justify-self:start;height:26px;padding:0 11px;border-radius:999px;background:rgba(182,230,69,.16);
  color:var(--k3-lime2);font-size:.6875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.k3mc-spot .k3mc-crest,.k3mc-spot .k3mc-sface{grid-area:face;width:72px!important;height:72px!important;border:3px solid rgba(255,255,255,.2);font-size:1.4rem}
.k3mc-spot-who{grid-area:who;min-width:0}
.k3mc-spot-who b{display:block;font-family:var(--k3-display);font-weight:400;font-size:1.7rem;line-height:1.05;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.k3mc-spot-who small{display:block;margin-top:4px;font-size:.8125rem;color:rgba(241,239,228,.7)}
.k3mc-spot-n{grid-area:n;display:flex;flex-direction:column;align-items:flex-end;font-family:var(--k3-display);font-size:3rem;line-height:1;color:var(--k3-lime2)}
.k3mc-spot-n small{font:700 .7rem/1.3 var(--k3-sans);letter-spacing:.06em;text-transform:uppercase;color:rgba(241,239,228,.6)}
.k3mc-spot-n .k3mc-cardn{font-size:2rem;color:#fff}

/* the rest of the board */
.k3mc-slist{display:flex;flex-direction:column;gap:6px;margin:12px 0 0;padding:0;list-style:none}
.k3-scope button.k3mc-srow{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border:1px solid rgba(11,32,24,.08);border-radius:16px;background:#fff;
  text-align:left;font:inherit;color:var(--k3-ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.k3-scope button.k3mc-srow:hover{border-color:rgba(142,188,13,.5);box-shadow:0 8px 20px rgba(11,32,24,.06)}
.k3mc-srow:focus-visible{outline:2px solid var(--k3-lime);outline-offset:2px}
.k3mc-srow .k3mc-rank{width:22px}
.k3mc-sface{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;overflow:hidden;background:#EEF6D6}
.k3mc-sface img{width:100%;height:100%;object-fit:cover}
.k3mc-sbar{display:block;height:4px;margin-top:6px;border-radius:999px;background:rgba(11,32,24,.07);overflow:hidden}
.k3mc-sbar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--k3-lime),var(--k3-lime2))}
.k3mc-cardn{display:inline-flex;align-items:center;gap:3px}
.k3mc-cardn+.k3mc-cardn{margin-left:8px}
.k3mc-cardn .k3mc-card{margin-right:0}
.k3mc-sempty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:44px 16px;border-radius:24px;background:#fff;border:1px dashed rgba(11,32,24,.15);text-align:center}
.k3mc-sempty span{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--k3-ink);color:var(--k3-lime2);font-size:1.2rem}
.k3mc-sempty b{font-size:1rem;color:var(--k3-ink)}
.k3mc-sempty small{font-size:.8125rem;color:rgba(11,32,24,.55)}
@media (min-width:900px){
  .k3mc-sboard{max-width:820px}
}
@media (max-width:640px){
  .k3mc-subtabs{gap:5px;margin:2px -14px 12px;padding:2px 14px}
  .k3-scope button.k3mc-subtab{height:36px;padding:0 13px;font-size:.75rem;gap:6px}
  .k3-scope button.k3mc-spot{gap:10px 12px;padding:16px;border-radius:20px}
  .k3mc-spot .k3mc-crest,.k3mc-spot .k3mc-sface{width:56px!important;height:56px!important;font-size:1.1rem}
  .k3mc-spot-who b{font-size:1.3rem}
  .k3mc-spot-who small{font-size:.75rem}
  .k3mc-spot-n{font-size:2.3rem}
  .k3mc-spot-n small{font-size:.6rem}
  .k3-scope button.k3mc-srow{gap:10px;padding:9px 11px;border-radius:14px}
  .k3mc-srow .k3mc-who b{font-size:.84rem}
}

/* ================= league / group table ================= */
.k3mc-table{padding:6px 18px 10px;border-radius:22px;background:#fff;border:1px solid rgba(11,32,24,.08);box-shadow:0 2px 10px rgba(11,32,24,.04)}
.k3mc-table h3{margin:14px 4px 4px}
.k3mc-st-wrap{overflow-x:auto;margin:0 -6px;padding:0 6px}
.k3mc-st{width:100%;border-collapse:separate;border-spacing:0;font-family:var(--k3-sans);font-size:.875rem;color:var(--k3-ink);font-variant-numeric:tabular-nums}
.k3mc-st th{padding:14px 8px 10px;font-size:.625rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:rgba(11,32,24,.45);text-align:center;
  border-bottom:1px solid rgba(11,32,24,.08);white-space:nowrap}
.k3mc-st td{padding:11px 8px;text-align:center;border-bottom:1px solid rgba(11,32,24,.06);font-weight:600;color:rgba(11,32,24,.72);transition:background .15s}
.k3mc-st tbody tr:last-child td{border-bottom:0}
.k3mc-st .k3mc-st-team{width:100%;text-align:left}
.k3mc-st .k3mc-st-pos{width:34px;padding-left:4px;padding-right:4px}
.k3mc-st-pos span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:8px;font-size:.75rem;font-weight:800;color:rgba(11,32,24,.55)}
.k3mc-st tbody tr:nth-child(1) .k3mc-st-pos span{background:var(--k3-ink);color:var(--k3-lime2)}
.k3mc-st tbody tr.is-qual .k3mc-st-pos span{background:rgba(142,188,13,.18);color:#3D6100}
.k3mc-st tbody tr.is-qual:nth-child(1) .k3mc-st-pos span{background:var(--k3-ink);color:var(--k3-lime2)}
.k3mc-st .k3mc-tteam{display:flex;align-items:center;gap:10px;min-width:0;font-weight:700}
.k3mc-st .k3mc-tteam b{min-width:0;font-size:.9rem;font-weight:700;color:var(--k3-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.k3mc-st .k3mc-crest--sm{width:30px;height:30px}
.k3mc-st-goals{white-space:nowrap}
.k3mc-st-goals i{margin:0 2px;font-style:normal;color:rgba(11,32,24,.3)}
.k3mc-st-gd.is-pos{color:#067647}
.k3mc-st-gd.is-neg{color:#B42318}
.k3mc-st .k3mc-st-pts{width:46px}
.k3mc-st td.k3mc-st-pts{font-family:var(--k3-display);font-weight:400;font-size:1.15rem;color:var(--k3-ink)}
.k3mc-st th.k3mc-st-pts{color:var(--k3-ink)}
.k3mc-st tbody tr{cursor:pointer}
.k3mc-st tbody tr:hover td{background:rgba(142,188,13,.07)}
.k3mc-st tbody tr:focus-visible{outline:2px solid var(--k3-lime);outline-offset:-2px}
.k3mc-st tbody tr.is-qual td:first-child{box-shadow:inset 3px 0 0 var(--k3-lime)}
.k3mc-st tbody tr.is-live td{background:rgba(229,72,77,.045)}
.k3mc-st tbody tr.is-live td:first-child{box-shadow:inset 3px 0 0 #E5484D}

@media (max-width:640px){
  .k3mc-table{padding:2px 10px 6px;border-radius:18px}
  .k3mc-st{font-size:.8125rem}
  .k3mc-st .k3mc-st-x{display:none}
  .k3mc-st th{padding:12px 5px 8px;font-size:.5625rem;letter-spacing:.08em}
  .k3mc-st td{padding:9px 5px}
  .k3mc-st .k3mc-st-pos{width:28px;padding-left:2px;padding-right:2px}
  .k3mc-st-pos span{width:22px;height:22px;font-size:.6875rem;border-radius:7px}
  .k3mc-st .k3mc-tteam{gap:8px}
  .k3mc-st .k3mc-tteam b{font-size:.8125rem}
  .k3mc-st .k3mc-crest--sm{width:26px;height:26px}
  .k3mc-st .k3mc-st-pts{width:38px}
  .k3mc-st td.k3mc-st-pts{font-size:1.05rem}
  .k3mc-st .k3mc-tlive{padding:1px 5px;font-size:.5625rem}
}

/* table: tighter type (second pass) */
.k3mc-st{font-size:.8125rem}
.k3mc-st th{padding:12px 7px 8px;font-size:.5625rem}
.k3mc-st td{padding:8px 7px}
.k3mc-st .k3mc-tteam{gap:8px}
.k3mc-st .k3mc-tteam b{font-size:.8125rem;font-weight:600}
.k3mc-st .k3mc-crest--sm{width:24px;height:24px;font-size:.5625rem}
.k3mc-st-pos span{width:22px;height:22px;font-size:.6875rem;border-radius:7px}
.k3mc-st td.k3mc-st-pts{font-size:1rem}
@media (max-width:640px){
  .k3mc-st{font-size:.75rem}
  .k3mc-st th{padding:10px 4px 7px;font-size:.5rem}
  .k3mc-st td{padding:7px 4px}
  .k3mc-st .k3mc-tteam{gap:7px}
  .k3mc-st .k3mc-tteam b{font-size:.75rem}
  .k3mc-st .k3mc-crest--sm{width:22px;height:22px;font-size:.5rem}
  .k3mc-st-pos span{width:20px;height:20px;font-size:.625rem;border-radius:6px}
  .k3mc-st .k3mc-st-pts{width:32px}
  .k3mc-st td.k3mc-st-pts{font-size:.9375rem}
  .k3mc-st .k3mc-tlive{font-size:.5rem}
}
