/* whocarried — loud layer on top of shared.css tokens */
body { background-image: radial-gradient(ellipse 50% 35% at 20% 0%, rgba(57,135,229,.22), transparent 60%), radial-gradient(ellipse 50% 35% at 80% 0%, rgba(217,89,38,.22), transparent 60%); background-repeat: no-repeat; font-size: 16px; }
.wrap { max-width: 1500px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; padding-top: 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.topbar a { color: var(--ink-2); text-decoration: none; font-weight: 600; } .topbar a:hover { color: var(--ink); }
.brand { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.btn { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); background: var(--surface-2); }
.btn.formula::before { content: "ƒ"; font-family: serif; font-style: italic; margin-right: 8px; color: var(--ink-2); }

.hero { text-align: center; padding: 44px 24px 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; animation: rise .6s ease-out both; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 70%; background: radial-gradient(ellipse at 30% 50%, rgba(57,135,229,.35), transparent 60%), radial-gradient(ellipse at 70% 50%, rgba(217,89,38,.35), transparent 60%); filter: blur(30px); }
.hero > * { position: relative; }
.hero .q { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.hero h1 { margin: 12px 0 0; font-size: clamp(38px, 5.2vw, 76px); font-weight: 900; letter-spacing: -.035em; line-height: .98; }
.hero h1 .a { color: var(--a); } .hero h1 .b { color: var(--b); }
.hero .line { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 820px; margin-inline: auto; line-height: 1.5; }
.tally { display: flex; justify-content: center; align-items: baseline; gap: 22px; margin-top: 26px; }
.tally .n { font-size: clamp(56px, 7vw, 104px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.tally .n.a { color: var(--a); } .tally .n.b { color: var(--b); } .tally .n.f { color: var(--muted); font-size: clamp(28px, 3vw, 44px); }
.tally .l { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 8px; }
.hero .meta { margin-top: 18px; font-size: 12px; color: var(--muted); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .meta b { color: var(--ink-2); }

.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } @media (max-width: 1000px) { .profiles { grid-template-columns: 1fr; } }
.prof { border-radius: 20px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; position: relative; --series: var(--a); animation: rise .6s .08s ease-out both; }
.prof.b { --series: var(--b); }
.prof .ph { display: flex; align-items: flex-end; gap: 18px; padding: 22px 24px 18px; background: var(--surface-2) var(--splash) center 20% / cover no-repeat; position: relative; min-height: 190px; }
.prof .ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 5%, rgba(18,18,21,.7) 50%, rgba(18,18,21,.2)); }
.prof .ph > * { position: relative; }
.prof .ph h2 { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--series); text-transform: none; }
.prof .ph .sub { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.prof .ph .avg { margin-left: auto; text-align: right; } .prof .ph .avg b { display: block; font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1; } .prof .ph .avg span { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.prof .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 20px 6px; }
.prof .st { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.prof .st b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; } .prof .st span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 6px; font-weight: 700; }
.prof .st.good b { color: var(--win); } .prof .st.bad b { color: var(--loss); }
.prof .wc { padding: 12px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prof .wc .box { border-radius: 12px; padding: 12px 14px; background: var(--surface-2); } .prof .wc .box b { font-size: 30px; font-weight: 900; display: block; line-height: 1; } .prof .wc .box small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.prof .swing { padding: 0 20px 6px; font-size: 14px; color: var(--ink-2); } .prof .swing b { color: var(--ink); }
.prof .roast { margin: 12px 20px 20px; padding: 14px 16px; border-left: 3px solid var(--series); background: var(--surface-2); border-radius: 0 12px 12px 0; font-size: 15px; line-height: 1.5; font-style: italic; }
.prof .champs { padding: 0 20px 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.prof .champs .c { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 6px 10px 6px 6px; font-size: 12px; } .prof .champs img { width: 28px; height: 28px; border-radius: 6px; }
.prof .champs .c b { display: block; } .prof .champs .c small { color: var(--muted); }

.sec { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px 24px; }
.sec h2 { font-size: 12px; letter-spacing: .18em; }
.sec h2 span { font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: 8px; }

/* head-to-head list */
.h2h { display: flex; flex-direction: column; gap: 8px; }
.g { display: grid; grid-template-columns: 90px 1fr 120px; gap: 16px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); text-decoration: none; color: inherit; border: 1px solid transparent; }
.g:hover { border-color: var(--border); background: color-mix(in oklab, var(--surface-2) 80%, var(--ink) 5%); }
.g .when { font-size: 12px; color: var(--muted); } .g .when b { display: block; font-size: 13px; color: var(--ink); } .g .when .w { color: var(--win); } .g .when .l { color: var(--loss); }
.g .mid { min-width: 0; }
.g .bars { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 10px; }
.g .side { display: flex; align-items: center; gap: 8px; } .g .side.r { flex-direction: row-reverse; }
.g .side img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.g .side .bar { flex: 1; height: 12px; background: var(--grid); border-radius: 6px; position: relative; overflow: hidden; }
.g .side .bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; } .g .side.l .bar i { right: 0; background: var(--a); } .g .side.r .bar i { left: 0; background: var(--b); } .g .side .bar i.neg { background: var(--loss); opacity: .75; }
.g .side .sc { font-size: 13px; font-weight: 800; width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.g .vs { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .1em; }
.g .line { font-size: 13px; color: var(--ink-2); margin-top: 6px; font-style: italic; }
.g .verdict { text-align: right; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.pill.a { background: var(--a); color: #fff; } .pill.b { background: var(--b); color: #fff; } .pill.f { background: var(--grid); color: var(--ink-2); }
.badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 8px; border-radius: 5px; text-transform: uppercase; color: #fff; }
.badge.carried { background: var(--win); } .badge.cocarry { background: #199e70; } .badge.contrib { background: #4a4a52; } .badge.passenger { background: #c98500; color: #000; }
.badge.tried { background: #3987e5; } .badge.lost { background: #5a3a3f; } .badge.anchor { background: var(--loss); }

/* halls */
.halls { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } @media (max-width: 1000px) { .halls { grid-template-columns: 1fr; } }
.hall { display: flex; flex-direction: column; gap: 8px; }
.hrow { display: grid; grid-template-columns: 30px 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; text-decoration: none; color: inherit; }
.hrow:hover { background: color-mix(in oklab, var(--surface-2) 80%, var(--ink) 5%); }
.hrow .rk { font-size: 18px; font-weight: 900; color: var(--muted); } .hrow img { width: 44px; height: 44px; border-radius: 10px; }
.hrow .who { font-weight: 700; } .hrow .who small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.hrow .rl { font-size: 13px; color: var(--ink-2); font-style: italic; margin-top: 3px; }
.hrow .sc { text-align: right; font-weight: 900; font-size: 20px; letter-spacing: -.02em; } .hrow .sc small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .1em; }
.hall .sc.bad { color: var(--loss); } .hall .sc.good { color: var(--win); }

/* per-player breakdown (game page) */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } @media (max-width: 1100px) { .teams { grid-template-columns: 1fr; } }
.team-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; } .team-h b { font-size: 16px; } .team-h .res.w { color: var(--win); } .team-h .res.l { color: var(--loss); }
.pr { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 12px; border-radius: 14px; background: var(--surface-2); margin-bottom: 8px; border-left: 4px solid transparent; }
.pr.ta { border-left-color: var(--a); } .pr.tb { border-left-color: var(--b); }
.pr img.c { width: 52px; height: 52px; border-radius: 12px; }
.pr .nm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 700; font-size: 15px; } .pr .nm small { color: var(--muted); font-weight: 400; }
.pr .nm .sc { margin-left: auto; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.pr .sbar { height: 10px; background: var(--grid); border-radius: 5px; margin: 8px 0; position: relative; overflow: hidden; }
.pr .sbar::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--muted); }
.pr .sbar i { position: absolute; top: 0; bottom: 0; background: var(--ink-2); } .pr .sbar i.pos { left: 50%; background: var(--win); border-radius: 0 5px 5px 0; } .pr .sbar i.neg { right: 50%; background: var(--loss); border-radius: 5px 0 0 5px; }
.pr .facts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pr .fact { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); } .pr .fact b { color: var(--ink); } .pr .fact.up { border-color: color-mix(in oklab, var(--win) 60%, transparent); } .pr .fact.dn { border-color: color-mix(in oklab, var(--loss) 60%, transparent); }
.pr .roast { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--ink-2); line-height: 1.45; }
.duo-verdict { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.duo-verdict .side { display: flex; gap: 14px; align-items: center; } .duo-verdict .side.r { flex-direction: row-reverse; text-align: right; }
.duo-verdict img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 3px var(--ring); }
.duo-verdict .side.l img { --ring: var(--a); } .duo-verdict .side.r img { --ring: var(--b); }
.duo-verdict .nm { font-size: 22px; font-weight: 900; } .duo-verdict .side.l .nm { color: var(--a); } .duo-verdict .side.r .nm { color: var(--b); }
.duo-verdict .kda { color: var(--ink-2); font-size: 14px; } .duo-verdict .sc { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.duo-verdict .mid { text-align: center; } .duo-verdict .mid .pill { font-size: 14px; padding: 8px 18px; }
.duo-verdict .mid .d { color: var(--muted); font-size: 12px; margin-top: 8px; }
.duo-line { text-align: center; font-size: 18px; font-style: italic; color: var(--ink-2); margin-top: 18px; line-height: 1.5; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal .box { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; max-width: 960px; width: 100%; max-height: 90vh; overflow: auto; padding: 26px 30px 30px; position: relative; }
.modal .box h2 { font-size: 22px; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 0 0 6px; }
.modal .box h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.modal .box p { color: var(--ink-2); line-height: 1.55; margin: 6px 0; font-size: 14px; } .modal .box p b { color: var(--ink); }
.modal .box pre { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink); overflow-x: auto; }
.modal .close { position: absolute; top: 14px; right: 16px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); border-radius: 999px; width: 34px; height: 34px; font: inherit; cursor: pointer; }
.ftable { width: 100%; border-collapse: collapse; font-size: 13px; } .ftable th { text-align: left; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 6px 8px; border-bottom: 1px solid var(--grid); }
.ftable td { padding: 8px; border-bottom: 1px solid var(--grid); vertical-align: top; color: var(--ink-2); } .ftable td b { color: var(--ink); } .ftable td small { display: block; color: var(--muted); font-size: 11px; }
.ftable td.w { font-weight: 800; color: var(--win); white-space: nowrap; font-variant-numeric: tabular-nums; } .ftable td.w.neg { color: var(--loss); } .ftable tr.tot td { border-bottom: 0; color: var(--ink); }
.ftable.small td, .ftable.small th { padding: 4px 6px; font-size: 12px; white-space: nowrap; } .scroll { overflow-x: auto; }
.blist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; color: var(--ink-2); } .blist .badge { margin-right: 8px; }
footer { color: var(--muted); font-size: 12px; text-align: center; padding-top: 10px; }
