/* Live matches: lobby, match page, stage, panels, captain's orders (loaded last). Everything is prefixed lv2- so nothing else on the site is touched. */
.lv2-starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 6px 0 22px; }
.lv2-start { padding: 18px; display: grid; gap: 12px; align-content: start; }
.lv2-start header { display: flex; align-items: center; gap: 12px; } .lv2-start header b { display: block; font: 800 18px var(--disp); letter-spacing: .06em; } .lv2-start header small { color: var(--muted); }
.lv2-start .pk small, .lv2-lab { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; } .lv2-lab { display: grid; gap: 6px; } .lv2-lab select { width: 100%; }
.pk-sel { position: relative; } .pk-sel input { width: 100%; }
.pk-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 270px; overflow: auto; background: #0b1624; border: 1px solid var(--line2, var(--line)); border-radius: 12px; box-shadow: 0 18px 40px -12px #000; padding: 4px; }
.pk-list button { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; } .pk-list button:hover { background: rgba(242, 193, 78, .12); } .pk-list small { color: var(--muted); }
.pk-chosen { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); min-height: 44px; } .pk-chosen small { color: var(--muted); margin-left: auto; } .pk-chosen.muted { color: var(--muted); }
.lv2-row { display: flex; gap: 8px; flex-wrap: wrap; } .lv2-start .hint { color: var(--muted); font-size: 12.5px; margin: 0; }
.live-h { margin: 22px 0 10px; font: 800 14px var(--disp); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.live-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); color: var(--text); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; } .live-card:hover { transform: translateY(-3px); border-color: var(--volt); text-decoration: none; } .live-card.live { border-color: rgba(239, 68, 68, .5); }
.lc-top { display: flex; align-items: center; gap: 10px; } .lc-top small { color: var(--muted); } .lc-v { margin-left: auto; }
.lc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 800 11px var(--disp); letter-spacing: .1em; background: rgba(255, 255, 255, .08); } .lc-badge.live { background: #ef4444; color: #fff; } .lc-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.lc-teams { display: flex; align-items: center; justify-content: space-around; gap: 8px; } .lc-teams div { display: grid; justify-items: center; gap: 4px; } .lc-teams span { color: var(--muted); } .lc-score { text-align: center; color: var(--muted); font-size: 13.5px; } .lc-score b { color: var(--text); }

/* ---- the match page ---- */
.lv2 { display: grid; gap: 14px; } .lv2 h4 { margin: 0 0 8px; font: 800 12.5px var(--disp); letter-spacing: .14em; text-transform: uppercase; color: var(--volt); display: flex; align-items: center; gap: 8px; } .lv2 .muted { color: var(--muted); font-size: 13px; }
.lv2-top { padding: 12px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.lv2-tl { display: flex; align-items: center; gap: 12px; } .lv2-comp b { display: block; font: 800 16px var(--disp); letter-spacing: .04em; } .lv2-comp small { color: var(--muted); }
.lv2-hd { display: grid; grid-template-columns: 1fr auto 1fr minmax(200px, auto); gap: 14px; align-items: center; min-width: 0; }
.lv2-team { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); min-width: 0; } .lv2-team.on { background: linear-gradient(120deg, rgba(59, 130, 246, .28), rgba(59, 130, 246, .05)); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .5); } .lv2-team.r { flex-direction: row; justify-content: flex-end; text-align: right; } .lv2-team.r.on { background: linear-gradient(240deg, rgba(59, 130, 246, .28), rgba(59, 130, 246, .05)); }
.lv2-team b { display: block; font: 800 16px var(--disp); letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv2-team small { color: var(--muted); } .lv2-sc { margin-inline: auto; text-align: center; } .lv2-sc strong { display: block; font: 900 28px var(--disp); line-height: 1; white-space: nowrap; } .lv2-sc small { display: block; }
.lv2-vs { font: 800 14px var(--disp); color: var(--muted); text-align: center; max-width: 150px; } .lv2-res { color: var(--volt); font-size: 12.5px; line-height: 1.3; display: block; }
.lv2-tgt { text-align: center; padding: 6px 12px; border-left: 1px solid var(--line); } .lv2-tgt small { display: block; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; } .lv2-tgt b { display: block; font: 800 15px var(--disp); } .lv2-tgt span { color: var(--muted); font-size: 12.5px; }
.lv2-st { display: grid; justify-items: end; gap: 3px; } .lv2-st small { color: var(--muted); font-size: 12px; }
.lv2-main { display: grid; grid-template-columns: 270px minmax(0, 1fr) 340px; gap: 14px; align-items: stretch; }
.lv2-left, .lv2-right { padding: 14px; display: grid; gap: 10px; align-content: start; max-height: 640px; overflow: auto; } .lv2-left h3 { margin: 0; font: 800 14px var(--disp); letter-spacing: .1em; text-transform: uppercase; }
.lv2-tabs2 { display: flex; gap: 4px; flex-wrap: wrap; } .lv2-tabs2 button { flex: 1; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font: 700 12px var(--disp); letter-spacing: .06em; cursor: pointer; white-space: nowrap; } .lv2-tabs2 button.on { background: linear-gradient(180deg, #4aa3ff, #2f6fd0); color: #fff; border-color: transparent; } .lv2-tabs2.wide { overflow-x: auto; flex-wrap: nowrap; }
.lv2-stage { position: relative; padding: 0; overflow: hidden; min-height: 460px; aspect-ratio: 1.12 / 1; background: #04100c; } .lv2-stage canvas { width: 100%; height: 100%; display: block; }
.lv2-leg { position: absolute; left: 12px; top: 12px; display: grid; gap: 4px; padding: 8px 12px; border-radius: 10px; background: rgba(8, 14, 26, .72); font: 700 12.5px var(--font); } .lv2-leg .b { color: #6aa8ff; } .lv2-leg .r { color: #ff7a7a; } .lv2-leg em { font-style: normal; color: #fff; }
.lv2-shot { position: absolute; right: 12px; top: 12px; display: grid; gap: 3px; padding: 8px 12px; border-radius: 10px; background: rgba(8, 14, 26, .78); font-size: 12.5px; min-width: 150px; } .lv2-shot:empty { display: none; } .lv2-shot b { color: var(--volt); }
.lv2-ov { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; background: rgba(4, 10, 20, .72); backdrop-filter: blur(3px); } .lv2-ov.hidden { display: none; } .lv2-ov small { letter-spacing: .24em; color: var(--volt); font: 800 13px var(--disp); } .lv2-ov b { font: 900 clamp(20px, 3.4vw, 34px) var(--disp); max-width: 560px; line-height: 1.2; } .lv2-ov span { color: var(--muted); }
.lv2-sbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 8px 14px; background: linear-gradient(0deg, rgba(4, 10, 20, .85), transparent); font-size: 12.5px; color: #cfe0ff; } .sync { color: var(--muted); } .sync.ok { color: #58d6a8; }
.lv2-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 560px; overflow: auto; }
.ev2 { display: grid; grid-template-columns: 48px 28px 1fr; gap: 8px; align-items: start; padding: 7px 8px; border-radius: 9px; background: rgba(255, 255, 255, .03); font-size: 13px; line-height: 1.35; } .ev2 .tg { color: var(--muted); font: 700 11.5px var(--disp); padding-top: 3px; } .ev2 .bb { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--disp); background: #3a465c; } .ev2 .bb.none { background: none; } .ev2 .bb.w { background: #ef4444; } .ev2 .bb.f { background: #2f6fd0; } .ev2 .bb.s { background: #c9961e; color: #1a1200; } .ev2 .bb.d { background: #4b5568; } .ev2 .bb.x { background: #7a5a2b; }
.ev2.w { background: rgba(239, 68, 68, .12); } .ev2.s, .ev2.f { background: rgba(242, 193, 78, .1); } .ev2.m { background: rgba(255, 255, 255, .06); font-weight: 600; } .ev2.c { background: rgba(88, 214, 168, .08); } .ev2.r { background: rgba(160, 120, 255, .12); }
.lv2-b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 50%; background: #3a465c; font: 800 12px var(--disp); font-style: normal; } .lv2-b.w { background: #ef4444; } .lv2-b.f { background: #2f6fd0; } .lv2-b.s { background: #c9961e; color: #1a1200; } .lv2-b.d { background: #4b5568; } .lv2-b.x { background: #7a5a2b; }
.lv2-mf { width: 100%; max-width: 220px; margin: 0 auto; display: block; } .lv2-fi { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .lv2-fi li { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); } .lv2-fi span { color: var(--muted); } .lv2-in { margin: 0; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lv2-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; } .pcs, .lv2-targ { padding: 12px; }
.lv2-pc { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; } .lv2-pc.empty { color: var(--muted); } .lv2-pc .av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #31507f, #1a2d4b); font: 800 17px var(--disp); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); } .lv2-pc.strike .av { box-shadow: inset 0 0 0 2px var(--volt); } .lv2-pc.bowl .av { background: linear-gradient(160deg, #7b2c2c, #451616); }
.lv2-pc .pi b { display: block; font: 800 15px var(--disp); } .lv2-pc .pi b em { color: var(--volt); font-style: normal; } .lv2-pc .pi small { color: var(--muted); } .lv2-pc .st { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 3px; flex-wrap: wrap; } .lv2-pc .st b { color: var(--text); }
.lv2-pc .sc { text-align: right; } .lv2-pc .sc strong { display: block; font: 900 24px var(--disp); line-height: 1; } .lv2-pc .sc small { color: var(--muted); }
.lv2-pc .fb { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); } .lv2-pc .fb i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; } .lv2-pc .fb i::after { content: ""; position: absolute; inset: 0; width: var(--p); background: linear-gradient(90deg, #58d6a8, #f2c14e); } .lv2-pc .fb b { color: var(--text); }
.lv2-targ { display: grid; align-content: center; text-align: center; } .lv2-targ .lv2-tgt { border: 0; } .lv2-targ .x { color: var(--muted); margin-top: 4px; }
.lv2-over h4 { margin-bottom: 6px; } .lv2-over .bs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .lv2-over small { color: var(--muted); }
.lv2-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; } .lv2-panels > .card { padding: 14px; min-width: 0; }
.lv2-t { width: 100%; border-collapse: collapse; font-size: 13px; } .lv2-t td, .lv2-t th { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; } .lv2-t th { color: var(--muted); font: 700 11.5px var(--disp); letter-spacing: .08em; text-transform: uppercase; } .lv2-t .n { text-align: right; white-space: nowrap; } .lv2-t .n.l { text-align: left; } .lv2-t small { color: var(--muted); } .lv2-t tr.at td { background: rgba(74, 163, 255, .1); } .lv2-t tr.dnb td { color: var(--muted); } .lv2-t .x { color: var(--muted); font-size: 12px; }
.lv2 h4 .tg { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-size: 11px; } .lv2 h4 .tg.h { background: #2f6fd0; color: #fff; margin-left: auto; } .lv2 h4 .tg.a { background: #7b2c2c; color: #fff; margin-left: 4px; }
.lv2-win { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin-top: 8px; font: 800 12px var(--disp); } .lv2-win span { display: grid; place-items: center; color: #fff; transition: width .6s ease; } .lv2-win .h { background: #2f6fd0; } .lv2-win .a { background: #b0302f; } .lv2-win .d { background: #5c6678; } .lv2-wl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.lv2-wg, .lv2-pm { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; align-items: center; } .lv2-wg svg, .lv2-pm svg { width: 100%; max-height: 220px; } .lv2-wg ul, .lv2-pm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; } .lv2-wg li, .lv2-pm li { display: flex; justify-content: space-between; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); } .lv2-wg .c1 { border-left: 3px solid #58d6a8; } .lv2-wg .c2 { border-left: 3px solid #4aa3ff; } .lv2-wg .c4 { border-left: 3px solid #f2c14e; } .lv2-wg .c6 { border-left: 3px solid #ff5d6c; }
.lv2-btabs { padding: 14px; display: grid; gap: 12px; } .lv2-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; } .tw { overflow-x: auto; } .lv2-sci { margin-bottom: 14px; } .lv2-sci h4 span { margin-left: auto; color: var(--text); } .lv2-sci .ex { color: var(--muted); font-size: 12.5px; margin: 6px 0; }
.lv2-cmp { display: grid; gap: 8px; max-width: 640px; } .lv2-cmp .cr { display: grid; grid-template-columns: 70px 1fr 70px; gap: 12px; align-items: center; text-align: center; } .lv2-cmp .cr span { display: grid; gap: 4px; color: var(--muted); font-size: 12px; } .lv2-cmp .cr b { font: 800 16px var(--disp); } .lv2-cmp .cmp { height: 6px; border-radius: 3px; background: #b0302f; overflow: hidden; } .lv2-cmp .cmp i { display: block; height: 100%; background: #2f6fd0; }
.lv2-pt { display: grid; grid-template-columns: 70px 1fr auto; gap: 4px 10px; align-items: center; margin: 6px 0; } .lv2-pt i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #2f6fd0, #4aa3ff); } .lv2-pt em { grid-column: 2 / 4; font-style: normal; color: var(--muted); font-size: 12px; } .lv2-pt span { color: var(--muted); font-size: 12px; }
.lv2-obo { display: flex; align-items: flex-end; gap: 6px; height: 170px; overflow-x: auto; padding-bottom: 4px; } .lv2-obo .o { flex: 0 0 26px; height: 100%; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; position: relative; } .lv2-obo .o i { align-self: end; width: 18px; border-radius: 4px 4px 0 0; background: #2f6fd0; min-height: 4px; } .lv2-obo .o i.w { background: #ef4444; } .lv2-obo .o i.m { background: #4b5568; } .lv2-obo .o b { font-size: 11.5px; } .lv2-obo .o small { color: var(--muted); font-size: 10.5px; } .lv2-obo .o em { position: absolute; top: 0; font: 800 10px var(--disp); color: #ff7a7a; font-style: normal; }
.lv2-fow { display: flex; flex-wrap: wrap; gap: 8px; } .lv2-fow > div { padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, .05); display: grid; } .lv2-fow span { font-size: 13px; } .lv2-fow small { color: var(--muted); }
.lv2-gr { width: 100%; max-height: 190px; background: rgba(255, 255, 255, .03); border-radius: 10px; } .lv2-mom svg { width: 100%; height: 80px; }
/* ---- captain's orders ---- */
.lv2-cap { position: fixed; z-index: 55; left: calc(var(--side, 0px) + 16px); bottom: 16px; width: min(420px, calc(100vw - 32px)); max-height: 76vh; display: grid; grid-template-rows: auto 1fr; border-radius: 16px; background: linear-gradient(180deg, #11223a, #0a1424); border: 1px solid rgba(242, 193, 78, .45); box-shadow: 0 24px 60px -18px #000; overflow: hidden; } .lv2-cap.hidden { display: none; } .lv2-cap.alert { border-color: #c9a6ff; box-shadow: 0 0 0 3px rgba(160, 120, 255, .35), 0 24px 60px -18px #000; }
.lv2-cap header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); } .lv2-cap header b { font: 800 13px var(--disp); letter-spacing: .06em; } .lv2-cap header small { color: var(--volt); } .lv2-cap .x { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.lv2-cap .body { overflow: auto; padding: 10px 12px; display: grid; gap: 12px; } .lv2-cap .body.hidden { display: none; } .lv2-cap section h5 { margin: 0 0 6px; font: 800 12px var(--disp); letter-spacing: .1em; text-transform: uppercase; } .lv2-cap section h5 small { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.lv2-cap .btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; } .lv2-cap button:not(.x) { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: var(--text); font: 700 12.5px var(--font); cursor: pointer; } .lv2-cap button:not(.x):hover:not(:disabled) { border-color: var(--volt); } .lv2-cap button:disabled { opacity: .4; cursor: not-allowed; } .lv2-cap button.on { background: rgba(242, 193, 78, .22); border-color: var(--volt); } .lv2-cap button.go { background: linear-gradient(180deg, #a98bff, #6c4cd4); border: 0; color: #fff; font-size: 14px; padding: 10px 16px; } .lv2-cap button.warn { background: #7b2c2c; } .lv2-cap button.ghost { background: none; }
.lv2-cap .fld { display: grid; gap: 8px; } .lv2-cap .fld .g { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .lv2-cap .fld .g small { flex: 0 0 100%; color: var(--muted); font-size: 11px; } .lv2-cap .chp { padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; cursor: pointer; background: rgba(255, 255, 255, .04); } .lv2-cap .chp input { display: none; } .lv2-cap .chp.on { background: rgba(88, 214, 168, .22); border-color: #58d6a8; } .lv2-cap .cnt { font-size: 12px; color: var(--muted); margin-right: auto; } .lv2-cap .cnt .ok { color: #58d6a8; } .lv2-cap .cnt .bad { color: #ff7a7a; }
.lv2-cap .ord { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: o; } .lv2-cap .ord li { display: flex; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 8px; background: rgba(255, 255, 255, .04); counter-increment: o; } .lv2-cap .ord li::before { content: counter(o); width: 18px; color: var(--muted); font-size: 11px; } .lv2-cap .ord li span { flex: 1; font-size: 13px; }
.lv2-cap .tac { display: grid; gap: 8px; max-height: 260px; overflow: auto; } .lv2-cap .tac label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); } .lv2-cap .tac label.tg { display: flex; gap: 8px; align-items: center; } .lv2-cap .rv p { margin: 0 0 6px; font-size: 13px; } .lv2-cap .rv b { color: var(--volt); }
/* ---- smaller screens ---- */
@media (max-width: 1280px) { .lv2-main { grid-template-columns: minmax(0, 1fr) 320px; } .lv2-left { grid-column: 1 / -1; grid-row: 2; max-height: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .lv2-left h3, .lv2-left .lv2-tabs2 { grid-column: 1 / -1; } .lv2-hd { grid-template-columns: 1fr auto 1fr; } .lv2-tgt { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 980px) { .lv2-main { grid-template-columns: minmax(0, 1fr); } .lv2-top { grid-template-columns: 1fr; } .lv2-st { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 12px; } .lv2-stage { aspect-ratio: 1 / 1; min-height: 340px; } .lv2-right { max-height: 420px; } .lv2-left { grid-row: auto; } }
@media (max-width: 640px) { .lv2-hd { grid-template-columns: 1fr; } .lv2-team, .lv2-team.r { flex-direction: row; text-align: left; justify-content: flex-start; } .lv2-sc { margin-inline: auto 0; text-align: right; } .lv2-team.r .lv2-sc { order: 3; } .lv2-vs { max-width: none; } .lv2-wg, .lv2-pm { grid-template-columns: 1fr; } .lv2-cap { left: 8px; right: 8px; width: auto; bottom: calc(78px + env(safe-area-inset-bottom)); max-height: 60vh; } .ev2 { grid-template-columns: 40px 26px 1fr; } .lv2-stage { aspect-ratio: .9 / 1; } }
.lv2 .tlogo, .lv2-start .tlogo, .live-card .tlogo, .pk-list .tlogo, .pk-chosen .tlogo { display: block; flex: none; max-width: none; }
.lv2-team .tlogo { width: 52px; height: 52px; } .lv2-team > div:not(.lv2-sc) { min-width: 0; }
.lv2-tabs2 button { white-space: normal; padding: 7px 6px; font-size: 11.5px; letter-spacing: .03em; line-height: 1.15; }
.lv2-top { min-width: 0; } .lv2-comp { min-width: 0; } .lv2-comp b, .lv2-comp small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.lv2-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tl st" "hd hd"; row-gap: 10px; } .lv2-tl { grid-area: tl; } .lv2-st { grid-area: st; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; } .lv2-hd { grid-area: hd; }
.lv2-left > *, .lv2-right > * { min-width: 0; } .lv2-left .lv2-t .n { white-space: normal; text-align: right; } .lv2-left .lv2-t td:first-child { width: 48%; } .lv2-fi li b { text-align: right; }
.lv2-sc strong { font-size: 26px; } .lv2-team b { font-size: 15px; }
@media (max-width: 980px) { .lv2-top { grid-template-columns: 1fr; grid-template-areas: "tl" "st" "hd"; } .lv2-st { justify-content: flex-start; } }
@media (max-width: 980px) { .lv2-stage { order: 1; } .lv2-right { order: 2; } .lv2-left { order: 3; } .lv2-comp b, .lv2-comp small { max-width: 56vw; } }
.lv2-ov.mini { inset: auto 12px 40px 12px; place-content: unset; justify-items: start; text-align: left; gap: 2px; padding: 10px 14px; background: rgba(46, 24, 92, .88); border: 1px solid #a98bff; border-radius: 12px; backdrop-filter: none; } .lv2-ov.mini b { font-size: 15px; } .lv2-ov.mini small { color: #c9b6ff; }

/* =====================================================================================================================================================
   Live page, second design pass: wide stage, roomy cards, cleaner type, effects chrome. Everything below overrides what is above.
   ===================================================================================================================================================== */
.lv2 { gap: 16px; }
.lv2 .card { border-radius: 16px; }
.lv2 h4 { font-size: 12px; letter-spacing: .16em; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lv2-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 16px; }
.lv2-stage { aspect-ratio: 16 / 10; min-height: 0; box-shadow: 0 30px 70px -30px #000; border: 1px solid rgba(255, 255, 255, .08); }
.lv2-right { height: var(--lvh, 560px); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 14px; max-height: none; }
.lv2-feed { overflow: auto; max-height: none; min-height: 0; padding-right: 4px; scrollbar-width: thin; }
.ev2 { grid-template-columns: 46px 28px minmax(0, 1fr); padding: 9px 10px; font-size: 13.5px; line-height: 1.4; border-left: 3px solid transparent; }
.ev2.w { border-left-color: #ef4444; } .ev2.s { border-left-color: #f2c14e; } .ev2.f { border-left-color: #4aa3ff; } .ev2.c { border-left-color: #58d6a8; } .ev2.r { border-left-color: #a98bff; } .ev2.m { border-left-color: rgba(255, 255, 255, .35); }
.ev2.ins { grid-template-columns: 1fr; } .ev2.ins .tx { grid-column: 1; }
.ev2 .tx { min-width: 0; overflow-wrap: anywhere; }
.lv2-tabs2 button { font-size: 12px; padding: 8px 6px; border-radius: 10px; }
.lv2-tabs2[data-grp=r] { display: grid; grid-template-columns: repeat(4, 1fr); }
.lv2-leg { top: 12px; left: 12px; background: rgba(8, 14, 26, .78); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .08); }
.lv2-shot { top: 12px; right: 12px; background: rgba(8, 14, 26, .78); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .08); }
.lv2-sbar { padding: 10px 14px; align-items: center; } .lv2-tools { display: flex; align-items: center; gap: 8px; } .lv2-tools button { padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(8, 14, 26, .7); color: #dce8ff; font: 700 11.5px var(--font); cursor: pointer; } .lv2-tools button:hover, .lv2-tools button.on { border-color: var(--volt); color: var(--volt); }
/* lower third: the TV caption for wickets and milestones */
.lv2-l3 { position: absolute; left: 14px; bottom: 52px; display: none; align-items: center; gap: 12px; max-width: min(520px, calc(100% - 28px)); padding: 10px 16px; border-radius: 12px; background: linear-gradient(100deg, rgba(10, 22, 44, .94), rgba(10, 22, 44, .78)); border-left: 5px solid var(--volt); box-shadow: 0 14px 30px -12px #000; }
.lv2-l3.show { display: grid; grid-template-columns: auto 1fr auto; animation: l3in .45s var(--ease) both; } .lv2-l3.wicket { border-left-color: #ef4444; } .lv2-l3.mile { border-left-color: #f2c14e; }
.lv2-l3 small { grid-row: 1 / 3; align-self: center; padding: 4px 10px; border-radius: 6px; background: var(--volt); color: #1a1200; font: 900 11px var(--disp); letter-spacing: .12em; } .lv2-l3.wicket small { background: #ef4444; color: #fff; }
.lv2-l3 b { font: 800 18px var(--disp); } .lv2-l3 b i { color: var(--muted); font-style: normal; font-size: 14px; } .lv2-l3 span { grid-column: 2; color: #cfe0ff; font-size: 12.5px; } .lv2-l3 em { grid-row: 1 / 3; grid-column: 3; font: 900 20px var(--disp); font-style: normal; }
@keyframes l3in { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
/* the strip of cards under the stage */
.lv2-players { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcs { padding: 16px; display: grid; align-content: start; gap: 10px; min-width: 0; }
.lv2-pc { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
.lv2-pc .pi b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv2-pc .pi small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-pc .st { gap: 4px 12px; }
.lv2-pc .sc strong { font-size: 24px; white-space: nowrap; } .lv2-pc.bowl .sc strong { font-size: 19px; } .lv2-pc .sc small { display: block; }
.lv2-ovc { gap: 14px; } .lv2-tgt.box { border: 0; padding: 0; text-align: left; } .lv2-tgt.box b { font-size: 16px; } .lv2-over .bs { gap: 7px; }
/* panels */
.lv2-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; } .lv2-panels > .card { padding: 18px; }
.lv2-panels .lv2-t td, .lv2-panels .lv2-t th { padding: 7px 8px; }
.lv2-sep { height: 1px; background: var(--line); margin: 16px 0; }
.lv2-fi li { padding: 6px 0; } .lv2-mf { max-width: 200px; margin: 0 auto 12px; } .lv2-panels h4 + .lv2-mf { margin-top: 4px; }
.lv2-win { height: 30px; border-radius: 10px; }
.lv2-btabs { padding: 18px; }
.lv2-t.sc td, .lv2-t.sc th { padding: 8px 10px; }
.lv2-top { padding: 14px 18px; }
.lv2-team { padding: 10px 16px; }
@media (max-width: 1500px) { .lv2-players { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv2-main { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 1360px) { .lv2-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .lv2-main { grid-template-columns: minmax(0, 1fr); } .lv2-right { height: auto; max-height: 460px; } .lv2-stage { order: 1; } .lv2-right { order: 2; } .lv2-left { display: none; } }
@media (max-width: 760px) { .lv2-players, .lv2-panels { grid-template-columns: minmax(0, 1fr); } .lv2-stage { aspect-ratio: 4 / 3; } .lv2-l3 { bottom: 46px; padding: 8px 12px; } .lv2-l3 b { font-size: 15px; } .lv2-tools button { padding: 5px 8px; } }
@media (max-width: 760px) {
  .lv2 { gap: 12px; } .lv2-top { padding: 10px 12px; gap: 8px; } .lv2-tl .btn { padding: 6px 10px; } .lv2-comp small { display: none; }
  .lv2-hd { gap: 8px; } .lv2-team, .lv2-team.r { padding: 8px 10px; gap: 10px; } .lv2-team .tlogo { width: 34px; height: 34px; } .lv2-team b { font-size: 14px; } .lv2-sc strong { font-size: 20px; } .lv2-vs { display: none; }
  .lv2-tgt { padding: 6px 0 0; } .lv2-tgt b { font-size: 14px; }
  .lv2-stage { aspect-ratio: 1 / 1; } .lv2-leg { font-size: 11px; padding: 5px 8px; } .lv2-shot { display: none; } .lv2-sbar { flex-wrap: wrap; gap: 6px; }
  .lv2-tabs2[data-grp=r] button { font-size: 11px; padding: 7px 2px; } .pcs { padding: 12px; } .lv2-panels > .card, .lv2-btabs { padding: 14px; }
}

/* the scorebug at the bottom of the picture, in the style of a television broadcast */
.lv2-shot { display: none !important; }
.lv2-bug { position: absolute; left: 12px; right: 12px; bottom: 44px; display: grid; gap: 4px; pointer-events: none; font-family: var(--font); color: #eef3ff; }
.lv2-bug.hidden { display: none; }
.lv2-bug .bg-tag { justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 0; max-width: 100%; font-size: 12px; border-radius: 7px; overflow: hidden; background: rgba(6, 12, 26, .88); border: 1px solid rgba(255, 255, 255, .12); }
.lv2-bug .bg-tag > span { padding: 4px 10px; border-left: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; } .lv2-bug .bg-tag > span:first-child { border-left: 0; background: #f2c14e; color: #1a1200; } .lv2-bug .bg-tag .spd b { font-size: 14px; } .lv2-bug .bg-tag .nm { font-weight: 700; } .lv2-bug .bg-tag .mv { color: #f2c14e; }
.lv2-bug .bg-tag .res { font-weight: 800; letter-spacing: .06em; background: #1f6a3a; } .lv2-bug .bg-tag .res.wicket { background: #c93a3a; } .lv2-bug .bg-tag .res.four { background: #1e63c8; } .lv2-bug .bg-tag .res.six { background: #7b3fd0; } .lv2-bug .bg-tag .res.dot { background: #3a4660; } .lv2-bug .bg-tag .res.wide, .lv2-bug .bg-tag .res.noball { background: #b9791f; }
.lv2-bug .bg-main { display: grid; grid-template-columns: minmax(210px, auto) minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: stretch; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, rgba(14, 26, 52, .96), rgba(5, 10, 24, .97)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 30px -10px #000; }
.lv2-bug .bg-main > div { padding: 7px 14px; display: grid; align-content: center; gap: 3px; min-width: 0; border-left: 1px solid rgba(255, 255, 255, .09); } .lv2-bug .bg-main > div:first-child { border-left: 0; }
.lv2-bug .bg-team { grid-auto-flow: column; justify-content: start; align-items: center; column-gap: 12px; background: linear-gradient(90deg, #17408a, #1c2f66); } .lv2-bug .bg-code { font: 800 17px var(--font); letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; background: #f2c14e; color: #1a1200; }
.lv2-bug .bg-score { display: flex; align-items: baseline; gap: 3px; font: 800 30px/1 var(--font); } .lv2-bug .bg-score i { font-style: normal; opacity: .6; font-size: 22px; } .lv2-bug .bg-ov { display: grid; line-height: 1.1; } .lv2-bug .bg-ov b { font-size: 15px; } .lv2-bug .bg-ov small, .lv2-bug .bg-state small { font-size: 10.5px; opacity: .72; letter-spacing: .05em; }
.lv2-bug .bg-b { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: baseline; gap: 8px; font-size: 14px; } .lv2-bug .bg-b i { color: #f2c14e; font-style: normal; font-size: 10px; } .lv2-bug .bg-b .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .lv2-bug .bg-b b { font-size: 17px; min-width: 24px; text-align: right; } .lv2-bug .bg-b small { opacity: .72; min-width: 22px; } .lv2-bug .bg-b.on .nm { color: #fff; font-weight: 800; } .lv2-bug .bg-b:not(.on) { opacity: .88; }
.lv2-bug .bg-bowl .bw { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 14px; } .lv2-bug .bg-bowl .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; } .lv2-bug .bg-bowl .bw b { font-size: 15px; }
.lv2-bug .bg-dots { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; } .lv2-bug .bg-dots .lv2-b { transform: scale(.9); transform-origin: left center; }
.lv2-bug .bg-state { text-align: center; justify-items: center; background: rgba(255, 255, 255, .05); min-width: 96px; } .lv2-bug .bg-state b { font-size: 16px; color: #f2c14e; }
@media (max-width: 860px) { .lv2-bug .bg-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .lv2-bug .bg-main > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .09); } .lv2-bug .bg-state { border-top: 1px solid rgba(255, 255, 255, .09); } .lv2-bug .bg-score { font-size: 24px; } }
@media (max-width: 520px) { .lv2-bug { left: 6px; right: 6px; bottom: 40px; } .lv2-bug .bg-tag .mv, .lv2-bug .bg-tag > span:nth-child(2) { display: none; } .lv2-bug .bg-main { grid-template-columns: 1fr 1fr; } .lv2-bug .bg-main > div { padding: 5px 8px; } .lv2-bug .bg-code { font-size: 14px; } .lv2-bug .bg-score { font-size: 21px; } .lv2-bug .bg-b { font-size: 12.5px; } .lv2-bug .bg-state, .lv2-bug .bg-bowl .bg-dots { display: none; } }

/* the footer of match facts in the scorebug, and the batter / bowler cards */
.lv2-bug .bg-main > .bg-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 14px; font-size: 11.5px; background: rgba(255, 255, 255, .06); border-left: 0; border-top: 1px solid rgba(255, 255, 255, .09); color: #cfe0ff; } .lv2-bug .bg-foot b { color: #fff; }
.lv2-bug .bg-b { grid-template-columns: 12px minmax(0, 1fr) auto auto auto; } .lv2-bug .bg-b em { font-style: normal; font-size: 10.5px; opacity: .7; white-space: nowrap; } .lv2-bug .bg-dots { align-items: center; } .lv2-bug .bg-dots em { margin-left: auto; font-style: normal; font-size: 10.5px; opacity: .75; white-space: nowrap; }
.lv2-card { position: absolute; left: 12px; bottom: 168px; max-width: calc(100% - 24px); pointer-events: none; animation: lvCardIn .45s ease both; } .lv2-card.hidden { display: none; }
.lv2-card .sc { display: flex; align-items: stretch; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, rgba(14, 26, 52, .97), rgba(5, 10, 24, .97)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 14px 34px -10px #000; color: #eef3ff; }
.lv2-card .tag { writing-mode: horizontal-tb; display: grid; place-items: center; padding: 0 12px; font: 800 12px var(--font); letter-spacing: .12em; background: #2a6fd6; color: #fff; text-align: center; } .lv2-card .sc.out .tag { background: #c93a3a; } .lv2-card .sc.bowl .tag { background: #1f8a4c; }
.lv2-card .av { align-self: center; margin: 8px 0 8px 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--font); background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .3); flex: none; }
.lv2-card .mn { display: grid; align-content: center; gap: 2px; padding: 8px 14px 8px 10px; min-width: 130px; max-width: 250px; } .lv2-card .mn b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv2-card .mn small { font-size: 12px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-card .big { display: grid; align-content: center; justify-items: center; padding: 6px 14px; border-left: 1px solid rgba(255, 255, 255, .1); } .lv2-card .big strong { font: 800 26px/1 var(--font); color: #f2c14e; } .lv2-card .big small { font-size: 11.5px; opacity: .8; }
.lv2-card .ex { display: grid; grid-auto-flow: column; gap: 0; align-items: stretch; border-left: 1px solid rgba(255, 255, 255, .1); } .lv2-card .ex span { display: grid; align-content: center; justify-items: center; padding: 6px 12px; font-size: 10.5px; letter-spacing: .06em; opacity: .9; border-left: 1px solid rgba(255, 255, 255, .06); } .lv2-card .ex span:first-child { border-left: 0; } .lv2-card .ex b { font-size: 16px; color: #fff; letter-spacing: 0; }
@keyframes lvCardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .lv2-card { bottom: 150px; left: 8px; } .lv2-card .ex { display: none; } .lv2-card .mn { min-width: 0; } .lv2-bug .bg-b em { display: none; } }
@media (max-width: 520px) { .lv2-bug .bg-foot { display: none; } .lv2-card .big { display: none; } }

.lv2-bug .bg-fh { font: 800 12px var(--font); letter-spacing: .12em; padding: 5px 9px; border-radius: 6px; color: #fff; background: #d62b3a; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); animation: bgPulse 1s ease-in-out infinite; }
@keyframes bgPulse { 50% { box-shadow: 0 0 14px 3px rgba(255, 70, 90, .75); } }
.lv2-bug .bg-main.fh { border-color: #d62b3a; }

/* the ball strip never cuts its result off: the movement text shrinks instead */
.lv2-bug { grid-template-columns: minmax(0, 1fr); justify-items: start; }
.lv2-bug .bg-main { justify-self: stretch; }
.lv2-bug .bg-tag { flex-wrap: nowrap; width: fit-content; max-width: 100%; min-width: 0; }
.lv2-bug .bg-tag > span { flex: none; } .lv2-bug .bg-tag > span.mv, .lv2-bug .bg-tag > span.nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lv2-clock { font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #cfe0ff; } .lv2-clock.done { opacity: .75; }
