/* ====== BSC2026 Bracket (v5.2) ====== */

/* ===== Theme tokens ===== */
:root{
  --bsc-bg: #070d1a;
  --bsc-tools-bg: rgba(2,6,23,.97);
  --bsc-tools-border: rgba(226,232,240,.22);
  --bsc-panel: rgba(15,23,42,.84);
  --bsc-panel-strong: rgba(15,23,42,.95);
  --bsc-drawer-bg: linear-gradient(180deg, rgba(7,12,26,.99), rgba(3,8,20,.99));
  --bsc-detail-card-bg: rgba(255,255,255,.07);
  --bsc-text: rgba(255,255,255,.97);
  --bsc-muted: rgba(226,232,240,.80);
  --bsc-border: rgba(148,163,184,.34);
  --bsc-border-strong: rgba(148,163,184,.50);
  --bsc-line: rgba(148,163,184,.56);
  --bsc-pill: rgba(2,6,23,.92);
  --bsc-backdrop: rgba(0,0,0,.70);
  --bsc-detail-surface: rgba(15,23,42,.26);
  --bsc-detail-inset: rgba(2,6,23,.60);
}

.bsc26-page[data-bsc-theme="light"]{
  /* Light theme tuned for contrast */
  --bsc-bg: #edf2f9;
  --bsc-tools-bg: rgba(255,255,255,.96);
  --bsc-tools-border: rgba(17,24,39,.18);
  --bsc-panel: rgba(255,255,255,.98);
  --bsc-panel-strong: rgba(255,255,255,1);
  --bsc-drawer-bg: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.99));
  --bsc-detail-card-bg: rgba(15,23,42,.06);
  --bsc-text: rgba(15,23,42,.96);
  --bsc-muted: rgba(30,41,59,.78);
  --bsc-border: rgba(30,41,59,.22);
  --bsc-border-strong: rgba(30,41,59,.32);
  --bsc-line: rgba(71,85,105,.62);
  --bsc-pill: rgba(255,255,255,.98);
  --bsc-backdrop: rgba(0,0,0,.35);
  --bsc-detail-surface: rgba(255,255,255,.90);
  --bsc-detail-inset: rgba(241,245,249,.98);
}

/* page */
html, body { height: 100%; }
.bsc26-main{ padding:0 !important; margin:0 !important; }

/* Ensure the site header stays pinned on mobile; do NOT change its colors. */
.bsc26-page .site-header{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 5000 !important;
}

/* Apply browser form-coloring only to our bracket UI (avoid altering site header icons/buttons) */
.bsc26-tools,
.bsc26-stage,
.bsc26-drawer,
.bsc26-modal,
.bsc26-zoombar{
  color-scheme: dark;
}
.bsc26-page[data-bsc-theme="light"] .bsc26-tools,
.bsc26-page[data-bsc-theme="light"] .bsc26-stage,
.bsc26-page[data-bsc-theme="light"] .bsc26-drawer,
.bsc26-page[data-bsc-theme="light"] .bsc26-modal,
.bsc26-page[data-bsc-theme="light"] .bsc26-zoombar{
  color-scheme: light;
}

/* Keep the site header fixed while scrolling the page */
.bsc26-page .site-header{
  position: fixed;
  top: 0;
  z-index: 10050;
}

/* breakout: this page should use full width */
.bsc26-page .site-main,
.bsc26-page .bsc26-main{
  max-width: none !important;
  width: 100% !important;
}

/* Header is fixed on this page, so reserve its height in layout flow. */
.site-main.bsc26-main{
  padding-top: var(--bsc-site-header-h, 60px) !important;
}

/* ===== Tools bar ===== */
.bsc26-tools{
  position: sticky;
  top: var(--bsc-site-header-h, 64px);
  z-index: 4500;
  /* Always opaque/dark so the bracket doesn't bleed through (mobile Safari especially) */
  background: var(--bsc-tools-bg);
  color: var(--bsc-text);
  border-bottom: 1px solid var(--bsc-tools-border);
  padding: 10px 0 8px;
}
.bsc26-tools-inner{
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 16px;
}

.bsc26-tools-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
}

.bsc26-field{ display:flex; flex-direction:column; gap:6px; }
.bsc26-field-grow{ flex:1 1 260px; }
.bsc26-field-actions{ margin-left:auto; }

/* Mobile: allow collapsing the tools to free vertical space */
.bsc26-tools.is-collapsed .bsc26-tools-row > :not(.bsc26-field-actions):not(.bsc26-field-month):not(.bsc26-field-region):not(.bsc26-field-event):not(.bsc26-field-bracket){
  display: none !important;
}
.bsc26-tools.is-collapsed .bsc26-round-tabs{ display:none !important; }
/* Hide all action buttons except the collapse button when collapsed */
.bsc26-tools.is-collapsed .bsc26-field-actions > :not(#toolsCollapseBtn){
  display: none !important;
}

/* Round tabs: keep in one row, scroll horizontally on small screens (no height jumps) */
.bsc26-round-tabs{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
@media (max-width: 720px){
  .bsc26-round-tabs{ flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .bsc26-round-tabs::-webkit-scrollbar{ display:none; }
}
.bsc26-field-actions{
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  max-width: 100%;
}
#langToggleBtn{ order: 1; }
#themeToggleBtn{ order: 2; }
#toolsCollapseBtn{ order: 3; }

.bsc26-label{
  font-size:11px;
  font-weight:900;
  color: var(--bsc-muted);
}

.bsc26-select,
.bsc26-input{
  -webkit-appearance: none;
  appearance: none;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--bsc-border);
  background: var(--bsc-panel-strong);
  color: var(--bsc-text);
  padding: 0 10px;
  font-size: 14px;
  outline: none;
}

.bsc26-select option{
  color: #e5e7eb;
  background: #111827;
}
.bsc26-page[data-bsc-theme="light"] .bsc26-select option{
  color: #111827;
  background: #ffffff;
}

.bsc26-btn{
  min-width: 0;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--bsc-border-strong);
  background: rgba(127,127,127,.10);
  color: var(--bsc-text);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.bsc26-btn-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-width: 0;
  line-height: 1.05;
}
.bsc26-btn-main{
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .02em;
  white-space: nowrap;
}
.bsc26-btn-sub{
  font-size: 10px;
  font-weight: 700;
  color: var(--bsc-muted);
  white-space: nowrap;
}
.bsc26-page[data-bsc-theme="light"] .bsc26-btn-sub{
  color: rgba(30,41,59,.72);
}
.bsc26-page[data-bsc-theme="dark"] .bsc26-btn{ background: rgba(255,255,255,.06); }
.bsc26-btn-link{
  text-decoration: none;
}
.bsc26-btn:disabled,
.bsc26-btn.is-disabled{
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.bsc26-round-tab{
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--bsc-border-strong);
  background: rgba(127,127,127,.08);
  color: var(--bsc-text);
  font-weight: 1000;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.bsc26-page[data-bsc-theme="dark"] .bsc26-round-tab{ background: rgba(255,255,255,.06); }
.bsc26-round-tab.is-active{
  background: var(--bsc-text);
  color:#fff;
  border-color: transparent;
}

.bsc26-errorbox{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: rgba(239,68,68,.95);
  font-weight: 1000;
  white-space: pre-wrap;
}
.bsc26-status{ margin-top: 8px; font-size: 12px; }

/* ===== Stage ===== */
.bsc26-stage{
  position: relative;
  width: 100%;
  min-height: 70vh;
  background: var(--bsc-bg);
  overflow: hidden;
}

/* ===== Logo submit info ===== */
.bsc26-logo-submit{
  background: var(--bsc-bg);
  padding: 16px 0 24px;
  border-top: 1px solid var(--bsc-tools-border);
}
.bsc26-logo-submit-inner{
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 16px;
}
.bsc26-logo-submit-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 1000;
  color: var(--bsc-text);
}
.bsc26-logo-submit-text{
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bsc-muted);
}
.bsc26-logo-submit-link{
  color: var(--bsc-text);
  font-weight: 1000;
  text-decoration: underline;
}
.bsc26-logo-submit-link:hover{
  opacity: .9;
}

/* Prevent text selection while dragging the bracket */
.bsc26-stage, .bsc26-board, .bsc26-lines{
  user-select: none;
  -webkit-user-select: none;
}
.bsc26-input{ user-select: text; -webkit-user-select: text; }

/* Zoom UI: fixed bottom-right (avoid round title overlap) */
.bsc26-zoombar{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9000;
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--bsc-border-strong);
  background: var(--bsc-pill);
  backdrop-filter: none;
}

.bsc26-zoombtn{
  border: 1px solid var(--bsc-border-strong);
  background: rgba(127,127,127,.10);
  color: var(--bsc-text);
  height: 34px;
  width: 40px;
  border-radius: 12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.bsc26-zoomlabel{
  min-width: 56px;
  text-align:center;
  color: var(--bsc-text);
  font-weight: 1100;
  font-size: 12px;
}

/* viewport (pan & zoom target) */
.bsc26-viewport{
  position:absolute;
  inset: 0;
  /* Allow page vertical scroll on touch (we only hijack horizontal pan in JS) */
  touch-action: pan-y pinch-zoom;
  transform-origin: 0 0;
  will-change: transform;
}

.bsc26-lines{
  position:absolute;
  inset: 0;
  pointer-events:none;
  z-index: 2;
}

.bsc26-board{
  position: relative;
  z-index: 3;
  display:flex;
  gap: 64px;
  padding: 18px 12px 20px;
}
.bsc26-board.is-stacked-view{
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 104px;
}
.bsc26-bracket-section{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bsc26-bracket-section-head{
  position: sticky;
  left: 0;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--bsc-border-strong);
  background: var(--bsc-panel-strong);
  color: var(--bsc-text);
  font-size: 12px;
  font-weight: 1100;
  letter-spacing: .03em;
}
.bsc26-bracket-section-board{
  display: flex;
  gap: 24px;
  width: max-content;
  max-width: none;
  padding-bottom: 6px;
  position: relative;
}

.bsc26-col{
  min-width: 286px;
  max-width: 322px;
  flex: 0 0 auto;
}

.bsc26-col-head{
  position: relative; /* avoid overlapping cards when zooming/panning */
  top: auto;
  z-index: 1;
  background: var(--bsc-panel-strong);
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--bsc-border-strong);
  margin-bottom: 12px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:10px;
}
.bsc26-col-title{ font-weight: 1100; color: var(--bsc-text); font-size: 14px; }
.bsc26-col-sub{ font-size: 12px; color: var(--bsc-muted); font-weight: 900; }

.bsc26-col-body{ position: relative; }

/* match cards */
.bsc26-match{
  position: absolute;
  left: 10px;
  right: 10px;
  border-radius: 14px;
  border: 1px solid var(--bsc-border-strong);
  background: var(--bsc-panel);
  padding: 9px 8px 10px;
  cursor: pointer;
  overflow: hidden; /* prevent team row overflow */
  box-shadow: 0 8px 22px rgba(2,6,23,.32);
  /* Let vertical scroll win on mobile; JS will lock to pan when horizontal drag is dominant */
  touch-action: pan-y;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
/* Hover effects only on hover-capable devices (avoid sticky hover on mobile) */
@media (hover: hover) and (pointer: fine){
  .bsc26-match:hover{
    transform: translateY(-1px);
    border-color: rgba(129,140,248,.55);
    background: var(--bsc-panel-strong);
  }
}
.bsc26-match.is-selected{
  border-color: rgba(129,140,248,.95);
  box-shadow: 0 0 0 3px rgba(129,140,248,.18);
}

.bsc26-match-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:8px;
  margin-bottom: 8px;
}
.bsc26-match-id{ font-weight: 1100; color: var(--bsc-text); font-size: 13px; }

.bsc26-pill{
  font-size: 11px;
  font-weight: 1100;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--bsc-border-strong);
  color: var(--bsc-muted);
}
.bsc26-pill.is-finished{ border-color: rgba(34,197,94,.45); color: rgba(34,197,94,.95); }
.bsc26-pill.is-live{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(248,113,113,.95);
  color: rgba(254,226,226,.98);
  background: linear-gradient(180deg, rgba(127,29,29,.46), rgba(69,10,10,.42));
  box-shadow:
    0 0 0 1px rgba(248,113,113,.2) inset,
    0 0 16px rgba(239,68,68,.26);
  text-transform: uppercase;
  letter-spacing: .05em;
  animation: bsc26-live-pill-pulse 1.4s ease-in-out infinite;
}
.bsc26-pill.is-live::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,.9);
  animation: bsc26-live-dot-pulse 1.15s ease-out infinite;
}
.bsc26-pill.is-pending{ border-color: rgba(148,163,184,.35); color: rgba(148,163,184,.95); }
.bsc26-pill.is-new{ border-color: rgba(148,163,184,.45); color: rgba(148,163,184,.95); background: rgba(148,163,184,.08); }

.bsc26-pill.is-walkover{ border-color: rgba(59,130,246,.45); color: rgba(59,130,246,.95); }

@keyframes bsc26-live-pill-pulse{
  0%, 100% { box-shadow: 0 0 0 1px rgba(248,113,113,.2) inset, 0 0 12px rgba(239,68,68,.2); }
  50% { box-shadow: 0 0 0 1px rgba(248,113,113,.32) inset, 0 0 20px rgba(239,68,68,.38); }
}
@keyframes bsc26-live-dot-pulse{
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.7); opacity: 1; }
  70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); opacity: .95; }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); opacity: .88; }
}

.bsc26-team{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:10px;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--bsc-detail-inset);
  margin-top: 6px;
  min-height: 32px;
}
.bsc26-team-left{
  display:flex;
  align-items:center;
  gap:8px;
  min-width: 0; /* enable ellipsis */
}
.bsc26-team-logo{
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  flex: 0 0 auto;
}
.bsc26-team-name{
  font-weight: 1100;
  color: var(--bsc-text);
  font-size: 13px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bsc26-team-score{
  min-width: 18px;
  text-align:right;
  font-family: "Arial Black", "Segoe UI Black", "Yu Gothic UI", "Meiryo", sans-serif;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  font-size: 13px;
}
.bsc26-team-score.is-win{ color: rgba(34,197,94,.98); }
.bsc26-team-score.is-loss{ color: rgba(239,68,68,.98); }
.bsc26-team.is-winner{
  outline: 2px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
}
.bsc26-team.is-bye .bsc26-team-name{ color: rgba(148,163,184,.95); }

/* ===== Modal (detail) ===== */
.bsc26-backdrop{
  position: fixed;
  inset: 0;
  background: var(--bsc-backdrop);
  backdrop-filter: blur(6px);
  z-index: 9100;
}
.bsc26-drawer{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(760px, 94vw);
  max-height: min(86vh, 820px);
  background:
    radial-gradient(120% 120% at 100% -10%, rgba(56,189,248,.12), transparent 55%),
    radial-gradient(120% 120% at -10% 115%, rgba(99,102,241,.10), transparent 58%),
    var(--bsc-drawer-bg);
  color: var(--bsc-text);
  border: 1px solid var(--bsc-border-strong);
  border-radius: 22px;
  box-shadow: 0 26px 56px rgba(0,0,0,.45);
  z-index: 9200;
  overflow: auto;
  padding: 18px;
}
.bsc26-drawer .muted{
  color: var(--bsc-muted) !important;
}
.bsc26-drawer i{
  color: var(--bsc-text);
}
.bsc26-drawer-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bsc-border);
}
.bsc26-detail-title{
  font-size: 22px;
  font-weight: 1200;
  letter-spacing: .01em;
  line-height: 1.15;
  color: var(--bsc-text);
}
.bsc26-detail-meta{
  font-size: 12px;
  margin-top: 8px;
  color: var(--bsc-muted);
  line-height: 1.35;
}

.bsc26-detail-close{
  border: 1px solid var(--bsc-border);
  background: var(--bsc-detail-card-bg);
  color: var(--bsc-text);
  border-radius: 14px;
  height: 38px;
  width: 42px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.bsc26-detail-close:hover{
  transform: translateY(-1px);
  border-color: rgba(99,102,241,.45);
  background: rgba(99,102,241,.16);
}

.bsc26-detail-score{ display:flex; flex-direction: column; gap: 14px; }
.bsc26-detail-scoreline{
  display:grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--bsc-border);
  background: linear-gradient(180deg, var(--bsc-detail-surface), var(--bsc-detail-card-bg));
}

.bsc26-detail-side{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
  border: 1px solid var(--bsc-border);
  border-radius: 14px;
  padding: 10px;
  background: var(--bsc-detail-surface);
}
.bsc26-detail-side.is-right{
  justify-content: flex-end;
}
.bsc26-detail-side.is-right .bsc26-detail-side-text{
  align-items: flex-end;
  text-align: right;
}
.bsc26-detail-side.is-win{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.12);
}
.bsc26-detail-side.is-loss{
  border-color: rgba(239,68,68,.40);
  background: rgba(239,68,68,.10);
}
.bsc26-detail-side-text{
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bsc26-detail-team-logo{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  flex: 0 0 auto;
}
.bsc26-detail-team-name{
  display: block;
  max-width: 100%;
  font-size: 15px;
  font-weight: 1100;
  color: var(--bsc-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bsc26-detail-side .seed{
  font-size: 10px;
  font-weight: 1100;
  padding: 3px 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148,163,184,.14);
  color: var(--bsc-muted);
  width: fit-content;
}
.bsc26-detail-s{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  background: var(--bsc-detail-inset);
  padding: 10px 14px;
  min-width: 128px;
}
.bsc26-detail-s .n{
  font-size: 37px;
  font-family: "Arial Black", "Segoe UI Black", "Yu Gothic UI", "Meiryo", sans-serif;
  font-weight: 900;
  color: var(--bsc-text);
  line-height: 1;
}
.bsc26-detail-s .n.is-win{ color: rgba(34,197,94,.98); }
.bsc26-detail-s .n.is-loss{ color: rgba(239,68,68,.98); }
.bsc26-detail-s .sep{
  font-size: 20px;
  color: var(--bsc-muted);
  line-height: 1;
}

/* Hide the standalone schedule section since it's now integrated into games */
#detailSchedule { display: none; }
#detailRaw { display: none; }

.bsc26-detail-block{
  margin-top: 12px;
  border: 1px solid var(--bsc-border);
  border-radius: 16px;
  background: var(--bsc-detail-card-bg);
  padding: 12px;
}
.bsc26-block-title{
  font-size: 12px;
  font-weight: 1100;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
  color: var(--bsc-text);
  opacity: .86;
}

.bsc26-players{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bsc26-player-team{
  border: 1px solid var(--bsc-border);
  border-radius: 14px;
  background: var(--bsc-detail-surface);
  padding: 10px;
  min-width: 0;
}
.bsc26-player-team-head{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 8px;
}
.bsc26-player-team-logo{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255,255,255,.05);
  flex: 0 0 auto;
}
.bsc26-player-team-name{
  font-weight: 1100;
  font-size: 14px;
  color: var(--bsc-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bsc26-player-row{ display:flex; flex-wrap: wrap; gap: 8px; }

.bsc26-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border: none;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 1000;
  background: rgba(148,163,184,.14);
  text-decoration: none;
  color: var(--bsc-text);
}
.bsc26-chip-link{
  transition: background .15s ease, color .15s ease;
}
.bsc26-chip-link:hover{
  background: rgba(129,140,248,.18);
  color: var(--bsc-text);
}

.bsc26-games{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}
.bsc26-games::-webkit-scrollbar{ height: 6px; }

/* New game card style with map/mode info */
.bsc26-game-card{
  position: relative;
  border: 1px solid var(--bsc-border);
  border-radius: 14px;
  padding: 10px;
  background: var(--bsc-detail-surface);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  scroll-snap-align: start;
}
.bsc26-game-index{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  font-size: 10px;
  font-weight: 1100;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bsc-muted);
  border: none;
  background: var(--bsc-detail-inset);
  border-radius: 999px;
  padding: 2px 7px;
}

.bsc26-game-thumb{
  width: 100%;
  aspect-ratio: 1.12 / 1;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: rgba(0,0,0,.18);
}

.bsc26-game-header{
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 2px;
}

.bsc26-game-mode-icon{
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.bsc26-game-info{
  flex: 1;
  min-width: 0;
}

.bsc26-game-mode{
  font-weight: 1100;
  font-size: 11.5px;
  color: var(--bsc-text);
  line-height: 1.25;
}

.bsc26-game-map{
  font-weight: 900;
  font-size: 11px;
  color: var(--bsc-muted);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.bsc26-game-score-large{
  font-size: 24px;
  font-family: "Arial Black", "Segoe UI Black", "Yu Gothic UI", "Meiryo", sans-serif;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  padding: 4px 0 2px;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 10px;
  background: var(--bsc-detail-inset);
}
.bsc26-game-score-large .n{ color: var(--bsc-text); }
.bsc26-game-score-large .n.is-win{ color: rgba(34,197,94,.98); }
.bsc26-game-score-large .n.is-loss{ color: rgba(239,68,68,.98); }
.bsc26-game-score-large .sep{ color: var(--bsc-muted); padding: 0 6px; }

/* live match detail block (under Games) */
.bsc26-live-root{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bsc26-live-badge{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 1100;
  color: rgba(16,185,129,.95);
  background: rgba(16,185,129,.14);
}
.bsc26-live-note{
  font-size: 13px;
}
.bsc26-live-set{
  border-radius: 14px;
  background: var(--bsc-detail-surface);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bsc26-live-set-head{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bsc26-live-set-index{
  font-size: 11px;
  font-weight: 1100;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bsc-muted);
}
.bsc26-live-set-game-header{
  margin-top: 0;
  min-height: 0;
}
.bsc26-live-set-meta{
  font-size: 11px;
  color: var(--bsc-muted);
}
.bsc26-live-ban-row,
.bsc26-live-pick-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.bsc26-live-ban-col{
  min-height: 44px;
  border-radius: 10px;
  background: rgba(148,163,184,.18);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bsc26-live-ban-icon{
  width: 28px;
  height: 28px;
  border-radius: 0;
  object-fit: cover;
  background: rgba(15,23,42,.25);
  filter: grayscale(1) saturate(0) brightness(.9);
}
.bsc26-live-vs{
  display: flex;
  align-items: center;
  justify-content: center;
}
.bsc26-live-vs img{
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.bsc26-live-vs.is-lock img{
  width: 34px;
  height: 34px;
}
.bsc26-live-pick-col{
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.bsc26-live-pick{
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(84px, 100%);
}
.bsc26-live-pick-icon{
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: cover;
  background: rgba(15,23,42,.25);
}
.bsc26-live-player-name{
  min-width: 0;
  width: 100%;
  text-align: center;
  color: var(--bsc-text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bsc26-live-player-name a{
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}
.bsc26-live-player-tag{
  display: block;
  color: var(--bsc-muted);
  font-size: 10px;
  margin-top: 1px;
}
.bsc26-live-score{
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto auto minmax(0,1fr);
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--bsc-detail-inset);
}
.bsc26-live-score .label{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--bsc-muted);
}
.bsc26-live-score .n{
  font-family: "Arial Black", "Segoe UI Black", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 22px;
  line-height: 1;
}
.bsc26-live-score .n.is-win{ color: rgba(34,197,94,.98); }
.bsc26-live-score .n.is-loss{ color: rgba(239,68,68,.98); }
.bsc26-live-score .sep{ color: var(--bsc-muted); font-weight: 1000; }
.bsc26-live-stats-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.bsc26-live-collapse{
  border-radius: 10px;
  background: rgba(15,23,42,.14);
  border: 1px solid var(--bsc-border-strong);
}
.bsc26-live-collapse-summary{
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 1000;
  color: var(--bsc-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bsc26-live-collapse-summary::-webkit-details-marker{ display: none; }
.bsc26-live-collapse-summary::before{
  content: "▸";
  font-size: 10px;
  color: var(--bsc-muted);
  transform: rotate(0deg);
  transition: transform .15s ease;
}
.bsc26-live-collapse[open] > .bsc26-live-collapse-summary::before{
  transform: rotate(90deg);
}
.bsc26-live-collapse-body{
  padding: 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bsc26-live-team{
  border-radius: 10px;
  background: rgba(15,23,42,.20);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bsc26-live-team-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 1000;
}
.bsc26-live-team-head .is-win{ color: rgba(34,197,94,.98); }
.bsc26-live-team-head .is-loss{ color: rgba(239,68,68,.98); }
.bsc26-live-stat-row{
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bsc26-live-stat-player{
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.bsc26-live-stat-icon{
  width: 24px;
  height: 24px;
  border-radius: 0;
  object-fit: cover;
  background: rgba(15,23,42,.25);
}
.bsc26-live-stat-player .bsc26-live-player-name{
  text-align: left;
}
.bsc26-live-stat-player .bsc26-live-player-tag{
  display: inline;
  margin-left: 6px;
}
.bsc26-live-stat-text{
  font-size: 11px;
  color: var(--bsc-muted);
  line-height: 1.25;
}

/* Old game style (fallback) */
.bsc26-game{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--bsc-border);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(15,23,42,.03);
}
.bsc26-game-name{ font-weight: 1100; font-size: 12px; color: var(--text-sub); }
.bsc26-game-score{ font-weight: 1100; }

/* schedule tiles */
.bsc26-mapgrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.bsc26-mapcard{
  border: 1px solid var(--bsc-border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15,23,42,.03);
}
.bsc26-mapthumb{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: rgba(0,0,0,.05);
}
.bsc26-mapmeta{
  padding: 8px 10px;
  display:flex;
  gap:10px;
  align-items:center;
}
.bsc26-modeicon{
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.bsc26-maptext{ min-width:0; }
.bsc26-mapname{ font-weight: 1100; font-size: 12px; }
.bsc26-modename{ font-weight: 1000; font-size: 12px; color: var(--text-sub); }

/* mobile */
@media (max-width: 920px){
  .bsc26-tools{ top: var(--bsc-site-header-h, 56px); padding: 10px 0; }
  .bsc26-tools-inner{ padding: 0 10px; }
  .bsc26-tools-row{ gap: 8px; }
  .bsc26-label{ display:none; }
  /* 2-column compact toolbar like CoreStats */
  .bsc26-field{ flex: 1 1 calc(50% - 8px); }
  .bsc26-field-grow{ flex: 1 1 100%; }
  .bsc26-field-actions{
    margin-left: 0;
    flex: 1 1 100%;
    width: 100%;
    margin-top: 2px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }
  .bsc26-field-actions > *{
    width: 100%;
    max-width: none;
    justify-content: center;
  }
  .bsc26-btn{
    padding: 0 10px;
    gap: 6px;
    min-height: 40px;
  }
  .bsc26-btn-main{ font-size: 11px; }
  .bsc26-btn-sub{ font-size: 9px; }
  .bsc26-round-tabs{
    margin-top: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 6px;
    scroll-snap-type: x proximity;
  }
  .bsc26-round-tabs::-webkit-scrollbar{ display:none; }
  .bsc26-round-tab{
    padding: 7px 12px;
    font-size: 12px;
    min-height: 38px;
    scroll-snap-align: start;
  }
  .bsc26-select, .bsc26-input{ height: 42px; border-radius: 16px; font-size: 14px; }
  .bsc26-tools.is-collapsed .bsc26-tools-row{
    align-items: center;
  }
  .bsc26-tools.is-collapsed .bsc26-field-month,
  .bsc26-tools.is-collapsed .bsc26-field-region,
  .bsc26-tools.is-collapsed .bsc26-field-bracket{
    flex: 1 1 calc(50% - 8px);
  }
  .bsc26-tools.is-collapsed .bsc26-field-event{
    flex: 1 1 100%;
  }
  .bsc26-tools.is-collapsed .bsc26-field-actions{
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    overflow: visible;
    padding-bottom: 0;
    display: flex;
  }
  .bsc26-tools.is-collapsed #toolsCollapseBtn .bsc26-btn-main{
    display: none;
  }
  .bsc26-drawer{ width: 95vw; max-height: 90vh; border-radius: 18px; padding: 14px; }
  .bsc26-detail-title{ font-size: 19px; }
  .bsc26-detail-meta{ margin-top: 6px; }
  .bsc26-detail-scoreline{ grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .bsc26-detail-side,
  .bsc26-detail-side.is-right{ justify-content: space-between; }
  .bsc26-detail-team-logo{ width: 40px; height: 40px; border-radius: 10px; }
  .bsc26-detail-team-name{ font-size: 14px; }
  .bsc26-detail-s{ justify-content: center; min-width: 100%; padding: 8px 10px; }
  .bsc26-detail-s .n{ font-size: 32px; }
  .bsc26-players{ grid-template-columns: 1fr; }
  .bsc26-detail-block{ padding: 10px; margin-top: 10px; }
  .bsc26-games{
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .bsc26-game-card{ min-width: 132px; padding: 9px; }
  .bsc26-game-index{ top: 6px; right: 6px; }
  .bsc26-game-score-large{ font-size: 21px; }
  .bsc26-live-ban-row,
  .bsc26-live-pick-row{
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    gap: 6px;
  }
  .bsc26-live-vs img{ width: 30px; height: 30px; }
  .bsc26-live-vs.is-lock img{ width: 22px; height: 22px; }
  .bsc26-live-ban-col{ min-height: 40px; padding: 4px; gap: 4px; }
  .bsc26-live-ban-icon{ width: 24px; height: 24px; }
  .bsc26-live-pick-col{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    justify-items: center;
    align-items: start;
  }
  .bsc26-live-pick{ width: 100%; gap: 2px; }
  .bsc26-live-pick-icon{ width: 38px; height: 38px; }
  .bsc26-live-pick .bsc26-live-player-name{
    font-size: 9px;
    line-height: 1.15;
  }
  .bsc26-live-pick .bsc26-live-player-tag{ display: none; }
  .bsc26-live-set-game-header .bsc26-game-mode{ font-size: 11px; }
  .bsc26-live-set-game-header .bsc26-game-map{
    font-size: 10px;
    -webkit-line-clamp: 1;
  }
  .bsc26-live-score{
    grid-template-columns: 1fr auto auto auto 1fr;
    gap: 6px;
    padding: 7px 8px;
  }
  .bsc26-live-score .n{ font-size: 18px; }
  .bsc26-live-score .label{ font-size: 11px; }
  .bsc26-live-stats-grid{ grid-template-columns: 1fr; }
  .bsc26-mapgrid{ grid-template-columns: 1fr; }
  .bsc26-zoombar{
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 6px;
    padding: 6px 8px;
    border-radius: 16px;
  }
  .bsc26-zoombtn{
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 16px;
  }
  .bsc26-zoomlabel{
    min-width: 46px;
    font-size: 11px;
  }
  .bsc26-board{
    gap: 28px;
    padding: 14px 10px calc(112px + env(safe-area-inset-bottom)) 10px;
  }
  .bsc26-col{
    min-width: 250px;
    max-width: 274px;
  }
  .bsc26-col-title{
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bsc26-col-sub{
    white-space: nowrap;
    flex: 0 0 auto;
  }
}
