/* t-30.net/play: T-30 for players in a browser. Works with site-v3.css. */
.pl { font-family: var(--sans); font-size: 1rem; line-height: 1.5; background: #f3f6fc; min-height: 70vh; padding-bottom: 3rem; }
.pl h1 { font-size: 1.8rem; color: var(--ink); letter-spacing: -0.02em; margin: 1.2rem 0 0.8rem; line-height: 1.2; overflow-wrap: anywhere; }
.pl h2 { font-size: 1.1rem; color: var(--ink); margin: 0 0 0.6rem; }
.pl-wait { padding: 2rem 0; color: var(--soft); }
.pl-err { margin: 0.7rem 0; padding: 0.6rem 0.8rem; border: 1.5px solid var(--red); border-radius: 6px; background: #fff3f4; color: #8f0b20; font-weight: 600; }
.pl-ok { margin: 0.7rem 0; color: var(--green); font-weight: 600; }
.pl-note { color: var(--soft); margin: 0.3rem 0 0.8rem; }
.pl-note.small { font-size: 0.88rem; }
.pl-page { padding-top: 1rem; }
.pl-sign { max-width: 27rem; margin: 1.5rem auto; padding: 1.5rem; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; }
.pl-sign h1 { margin-top: 0; }
.pl-field { display: block; font-weight: 700; font-size: 0.9rem; color: var(--soft); margin: 0.9rem 0 0.3rem; }
.pl input[type=text], .pl input[type=tel], .pl input[type=email], .pl input[type=password] { font: 600 1.05rem var(--sans); color: var(--ink); padding: 0.6rem 0.75rem; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); width: 100%; min-height: 2.8rem; }
.pl-phone { display: flex; }
.pl-phone span { display: grid; place-items: center; padding: 0 0.75rem; border: 1.5px solid var(--ink); border-right: 0; border-radius: 6px 0 0 6px; background: var(--mesh); font-weight: 700; }
.pl-phone input { border-radius: 0 6px 6px 0 !important; }
.pl-check { display: flex; gap: 0.65rem; align-items: flex-start; margin: 1rem 0 0.4rem; font-size: 0.95rem; cursor: pointer; }
.pl-check input { width: 1.35rem; height: 1.35rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--ink); }
.pl-radios { border: 0; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pl-radios legend { font-weight: 700; font-size: 0.9rem; color: var(--soft); margin-bottom: 0.4rem; }
.pl-radios label { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.8rem; border: 1.5px solid var(--line); border-radius: 6px; cursor: pointer; font-weight: 600; }
.pl-radios label:has(input:checked) { border-color: var(--ink); background: var(--mesh); }
.pl-btn { font: 700 1rem var(--sans); padding: 0.65rem 1.1rem; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; min-height: 2.75rem; }
.pl-btn:hover { border-color: var(--ink); }
.pl-btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.pl-btn.wide { width: 100%; margin-top: 0.8rem; }
.pl-btn.small { min-height: 2.2rem; padding: 0.35rem 0.8rem; font-size: 0.9rem; }
.pl-btn:disabled { opacity: 0.5; cursor: default; }
.pl-or { text-align: center; color: var(--soft); margin: 0.7rem 0 0; }

.pl-top { background: var(--ink); }
.pl-topin { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pl-nav { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.pl-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 0.45rem 0.75rem; border-radius: 6px; }
.pl-nav a:hover { background: #1c3a7a; color: #fff; }
.pl-nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.pl-who { display: flex; align-items: center; gap: 0.7rem; color: #dce6ff; font-weight: 600; }
.pl-who .pl-btn { background: transparent; color: #fff; border-color: #5c74a8; }
.pl-main { outline: none; }

.pl-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; margin-top: 1rem; }
.pl-card.live { border-color: var(--red); }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pl-head a { font-weight: 600; }
.pl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.6rem; }
.pl-stat { display: flex; flex-direction: column; padding: 0.6rem 0.7rem; background: var(--mesh); border-radius: 6px; }
.pl-statv { font-size: 1.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-statl { font-size: 0.85rem; color: var(--soft); }
.pl-list { list-style: none; margin: 0; padding: 0; }
.pl-list li { margin: 0; border-top: 1px solid var(--line); }
.pl-list li:first-child { border-top: 0; }
.pl-srow { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name pill" "when pill"; gap: 0 0.8rem; padding: 0.65rem 0.2rem; color: var(--text); text-decoration: none; align-items: center; }
.pl-srow:hover .pl-sname { text-decoration: underline; }
.pl-sname { grid-area: name; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.pl-swhen { grid-area: when; font-size: 0.88rem; color: var(--soft); }
.pl-pill { grid-area: pill; font-size: 0.78rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 1rem; border: 1.5px solid var(--line); color: var(--soft); white-space: nowrap; justify-self: end; }
.pl-pill.live { background: var(--red); border-color: var(--red); color: #fff; }
.pl-pill.upcoming { border-color: #7b3fcf; color: #5b2aa0; }
.pl-pill.completed { border-color: var(--green); color: #0f6b3a; }
.pl-pill.incomplete { border-color: #e8820c; color: #9a5300; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.pl-chips button { font: 700 0.9rem var(--sans); padding: 0.45rem 0.8rem; border-radius: 1.2rem; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.pl-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pl-main > .pl-list { background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 0.9rem; }
.pl-shead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pl-shead h1 { margin-bottom: 0.2rem; }
.pl-sc { margin-top: 0.6rem; }
.pl-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0.9rem 0; }
.pl-facts dt { color: var(--soft); }
.pl-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.pl-back { margin-top: 1rem; }
.pl-codeform { max-width: 26rem; }
.pl-row { display: flex; gap: 0.6rem; }
.pl-row input { letter-spacing: 0.2em; text-transform: uppercase; }

/* part 2: stats, following, the bell */
.pl-bell { position: relative; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid #5c74a8; background: transparent; color: #fff; cursor: pointer; }
.pl-badge { position: absolute; top: -0.35rem; right: -0.35rem; min-width: 1.2rem; height: 1.2rem; padding: 0 0.25rem; border-radius: 0.6rem; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; }
.pl-badge:empty { display: none; }
.pl-seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; margin: 0.4rem 0 0.6rem; background: var(--paper); }
.pl-seg button { font: 700 0.95rem var(--sans); padding: 0.5rem 0.9rem; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.pl-seg button + button { border-left: 1.5px solid var(--line); }
.pl-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pl-sel { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 700; font-size: 0.85rem; color: var(--soft); flex: 1 1 13rem; }
.pl select, .pl input[type=search] { font: 600 1rem var(--sans); color: var(--ink); padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); min-height: 2.7rem; width: 100%; }
.pl-pickrow { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.4rem 0 0.6rem; }
.pl-filters { background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 0.6rem 0.9rem; margin: 0.4rem 0 0.6rem; }
.pl-filters summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.pl-filtergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.6rem; margin: 0.7rem 0; }
.pl-card h3 { font-size: 0.95rem; color: var(--soft); margin: 0.9rem 0 0.3rem; }
.pl-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pl-pie svg { flex: none; }
.pl-piemid { font: 800 20px var(--sans); fill: var(--ink); }
.pl-key { list-style: none; margin: 0; padding: 0; }
.pl-key li { display: flex; align-items: center; gap: 0.5rem; margin: 0.15rem 0; font-size: 0.93rem; }
.pl-key b { margin-left: auto; padding-left: 0.8rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-dot { width: 0.8rem; height: 0.8rem; border-radius: 3px; flex: none; }
.pl-cols { display: flex; align-items: flex-end; gap: 0.35rem; height: 155px; padding-top: 0.4rem; }
.pl-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.pl-colbar { width: 100%; max-width: 2.6rem; background: var(--blue); border-radius: 3px 3px 0 0; }
.pl-colv { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.pl-coll { font-size: 0.72rem; color: var(--soft); margin-top: 0.2rem; white-space: nowrap; }
.pl-bars { list-style: none; margin: 0; padding: 0; }
.pl-bars li { display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr auto; gap: 0.6rem; align-items: center; padding: 0.3rem 0; }
.pl-barl { font-size: 0.93rem; overflow-wrap: anywhere; }
.pl-bartrack { height: 0.75rem; background: var(--mesh); border-radius: 3px; }
.pl-bar { display: block; height: 100%; background: var(--blue); border-radius: 3px; min-width: 2px; }
.pl-barv { font-size: 0.88rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 30rem) { .pl-bars li { grid-template-columns: 1fr auto; } .pl-bartrack { grid-column: 1 / -1; grid-row: 2; } }
.pl-form { list-style: none; margin: 0 0 0.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pl-form li { display: flex; flex-direction: column; padding: 0.5rem 0.7rem; background: var(--mesh); border-radius: 6px; min-width: 5.5rem; }
.pl-form b { font-size: 1.3rem; color: var(--ink); }
.pl-sub { display: block; font-size: 0.84rem; font-weight: 400; color: var(--soft); }
.pl-tablewrap { overflow-x: auto; }
.pl .pl-table { display: table; width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 0; }
.pl .pl-table thead { display: table-header-group; position: static; }
.pl .pl-table tbody { display: table-row-group; }
.pl .pl-table tr { display: table-row; padding: 0; border: 0; }
.pl .pl-table th, .pl .pl-table td { display: table-cell; width: auto; padding: 0.5rem 0.5rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.pl .pl-table thead th { border-top: 0; border-bottom: 2px solid var(--ink); font-size: 0.82rem; color: var(--soft); }
.pl .pl-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl .pl-table tbody th { font-weight: 600; color: var(--ink); }
.pl-cmp td.win { color: var(--green); font-weight: 800; }
.pl-verdict { font-weight: 700; color: var(--ink); background: var(--mesh); padding: 0.6rem 0.8rem; border-radius: 6px; }
.pl-people { list-style: none; margin: 0.5rem 0; padding: 0; background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; }
.pl-people li { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); margin: 0; }
.pl-people li:first-child { border-top: 0; }
.pl-people b { color: var(--ink); margin-right: 0.5rem; }
.pl-people .pl-pill { display: inline-block; text-decoration: none; }
a.pl-btn { display: inline-grid; place-items: center; text-decoration: none; }
.pl-dlg { width: min(34rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); padding: 0 1rem 1rem; border: 1.5px solid var(--ink); border-radius: 10px; font-family: var(--sans); color: var(--text); }
.pl-dlg::backdrop { background: rgba(11, 37, 89, 0.45); }
.pl-dlghead { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--paper); padding: 0.8rem 0; border-bottom: 1px solid var(--line); margin-bottom: 0.6rem; }
.pl-dlghead h2 { margin: 0; font-size: 1.2rem; color: var(--ink); }
.pl-x { font-size: 1.5rem; width: 2.4rem; height: 2.4rem; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; }
.pl-notes { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.pl-notes li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.6rem 0; border-top: 1px solid var(--line); margin: 0; }
.pl-notes li.new { background: #f5f8ff; }
.pl-notes li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.pl-notes b { color: var(--ink); }
.pl-noteacts { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: flex-start; justify-content: flex-end; }

/* part 3: teams */
.pl-inline { max-width: 34rem; margin-bottom: 1rem; }
.pl-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.pl-row input { flex: 1 1 12rem; }
.pl-boxed { background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 0.9rem; }
.pl-newp { margin-top: 0.8rem; max-width: 30rem; }
.pl-newp .pl-row { margin-top: 0.8rem; }
#addBox input[type=search] { margin-bottom: 0.4rem; }
#addBox > .pl-btn { margin-top: 0.6rem; }

/* part 4: setting up and scoring a session */
.pl-btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.pl-btn.danger-soft { border-color: var(--red); color: var(--red); }
.pl-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pl-link { font: 600 1rem var(--sans); background: none; border: 0; padding: 0.5rem 0; color: var(--blue); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; margin-top: 0.4rem; }
.pl-link:disabled { opacity: 0.4; cursor: default; }
.pl-dlgfoot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; padding-top: 0.9rem; border-top: 1px solid var(--line); margin-top: 0.9rem; }
.pl-kv { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--line); }
.pl-kv:first-child { border-top: 0; }
.pl-stepper { display: inline-flex; align-items: center; gap: 0.5rem; }
.pl-stepper output { min-width: 4.5rem; text-align: center; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-stepper .pl-btn { width: 2.6rem; padding: 0; font-size: 1.2rem; }
.pl-toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.pl-toggle b { display: block; color: var(--ink); }
.pl-toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 3.2rem; height: 1.9rem; border-radius: 1rem; border: 1.5px solid var(--ink); background: #e4e9f4; position: relative; cursor: pointer; margin: 0; }
.pl-toggle input::after { content: ""; position: absolute; top: 0.15rem; left: 0.15rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); transition: left 0.15s; }
.pl-toggle input:checked { background: var(--green); border-color: var(--green); }
.pl-toggle input:checked::after { left: 1.45rem; border-color: var(--green); }
@media (prefers-reduced-motion: reduce) { .pl-toggle input::after { transition: none; } }
.pl-config h3 { margin-top: 1.2rem; }
.pl-cfgbox summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.pl-newsession .pl-sel { margin-bottom: 0.3rem; }
.pl-roles { display: flex; gap: 0.35rem; flex: none; }
.pl-chiprow { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin: 0.3rem 0 0.7rem; }
.pl-pchip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.4rem 0.35rem 0.8rem; border: 1.5px solid var(--line); border-radius: 1.2rem; font-weight: 700; color: var(--ink); background: var(--paper); }
.pl-chipx { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--soft); cursor: pointer; font-size: 1.05rem; line-height: 1; }
.pl-pick { display: inline-flex; align-items: center; gap: 0.3rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); padding-right: 0.35rem; }
.pl-pick > button:first-child { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 0.45rem 0.7rem; border: 0; background: none; cursor: pointer; font: inherit; color: var(--text); }
.pl-pick b { color: var(--ink); }
.pl-pick span { font-size: 0.82rem; color: var(--soft); }
.pl-pick.on { background: var(--ink); border-color: var(--ink); }
.pl-pick.on b, .pl-pick.on span { color: #fff; }
.pl-pick.on .pl-chipx { background: transparent; color: #fff; border-color: #5c74a8; }
.pl-segrow { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.6rem; align-items: center; padding: 0.3rem 0; }
.pl-segrow .pl-chiprow { margin: 0; }
.pl-segrow input { max-width: 8rem; }
.pl-seglbl { font-weight: 700; font-size: 0.88rem; color: var(--soft); }
.pl-opt { font: 700 0.92rem var(--sans); padding: 0.45rem 0.75rem; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; min-height: 2.5rem; }
.pl-opt.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pl-run { min-width: 2.8rem; font-size: 1.05rem; }
.pl-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.45rem; margin: 0.3rem 0 0.8rem; }
.pl-shot { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; text-align: left; font: 600 0.92rem var(--sans); padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; min-height: 3rem; }
.pl-shot b { font-size: 1.05rem; }
.pl-shot.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pl-actions { display: grid; grid-template-columns: auto auto 1fr; gap: 0.5rem; margin-top: 0.9rem; }
.pl-actions .pl-btn { min-height: 3.1rem; font-size: 1.05rem; }
.pl-save { background: var(--green) !important; border-color: var(--green) !important; }
.pl-btn:disabled { opacity: 0.45; cursor: default; }
.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 0.8rem; }
.pl-code { font: 800 2.2rem var(--sans); letter-spacing: 0.25em; color: var(--ink); text-align: center; margin: 0.6rem 0; }
.pl-scorehead { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 0.6rem; }
.pl-scorehead h1 { margin-bottom: 0; }
.pl-scorehead .pl-note { margin: 0.1rem 0 0; }
.pl-sctotal { border-radius: 8px; margin-top: 0.8rem; }
@media (max-width: 30rem) { .pl-actions { grid-template-columns: 1fr 1fr; } .pl-save { grid-column: 1 / -1; } .pl-segrow { grid-template-columns: 1fr; gap: 0.2rem; } }

/* part 5: profile, more, help */
.pl-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--mesh); color: var(--ink); font-weight: 800; font-size: 1.6rem; border: 1.5px solid var(--line); }
.pl-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-photo { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.6rem; }
.pl-photo > div { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; flex: 1; min-width: 12rem; }
.pl-photo .pl-note { width: 100%; margin: 0; }
label.pl-btn { display: inline-grid; place-items: center; }
.vh:focus + label, input.vh:focus-visible { outline: 3px solid var(--blue); }
.pl-profile { max-width: 36rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem 1.2rem; }
.pl-profile h2 { margin-top: 1.2rem; }
.pl-profile input[type=date] { font: 600 1.05rem var(--sans); color: var(--ink); padding: 0.55rem 0.7rem; border: 1.5px solid var(--ink); border-radius: 6px; min-height: 2.8rem; }
.pl-sec { margin-top: 1.4rem !important; }
.pl-rowbtn { width: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.pl-rowbtn.danger .pl-sname { color: var(--red); }
.pl-notice { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 0.8rem 1rem; border: 1.5px solid var(--blue); border-radius: 8px; background: #eef4ff; margin-top: 0.6rem; }
.pl-notice.imp { border-color: var(--red); background: #fff3f4; }
.pl-notice b { color: var(--ink); }
.pl-notice p { margin: 0.2rem 0 0; }
.pl-faq { border-top: 1px solid var(--line); padding: 0.5rem 0; }
.pl-faq summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.pl-faq p { margin: 0.4rem 0 0.2rem; white-space: pre-line; }
.pl-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.8rem; }
.pl-plans .pl-card.cur { border-color: var(--ink); }
.pl-dlg ul { margin: 0.2rem 0 0.8rem; padding-left: 1.2rem; }

/* =====================================================================================================
   v6: the look and the navigation of the app. The app's own colours (lib/theme.ts, White theme), a top bar
   (your photo, the T-30 logo, the bell, settings) and a bottom bar (Home, Sessions, Teams, Analytics, More).
   ===================================================================================================== */
body.pl-app {
  --a-navy: #0B2559; --a-blue: #1450C8; --a-red: #C8102E; --a-green: #1B8F4F; --a-orange: #E8820C; --a-purple: #5B50E0; --a-teal: #0E8A9E;
  --a-ink: #101828; --a-muted: #5B6678; --a-line: #D9E0EC; --a-bg: #E4ECFA; --a-card: #FFFFFF;
  --a-blueTint: #EAF0FC; --a-greenTint: #E6F5EC; --a-greenLine: #BFE3CC; --a-redTint: #FCECEE; --a-orangeTint: #FDF1E3; --a-purpleTint: #ECEAFB; --a-greyTint: #E9EDF4;
  background: var(--a-bg); font-family: var(--sans); font-size: 1rem; line-height: 1.45; color: var(--a-ink);
}
body.pl-app .pl { background: transparent; min-height: 100vh; padding-bottom: 0; }
.pl .center { text-align: center; }
.pl-main { display: block; max-width: 46rem; margin: 0 auto; padding: 0.4rem 1rem calc(5.6rem + env(safe-area-inset-bottom)); outline: none; }
.pl-main > h1:first-child, .pl-main > .pl-head:first-child h1 { margin-top: 0.6rem; }
.pl h1 { color: var(--a-navy); font-size: 1.6rem; }
.pl h2 { color: var(--a-navy); }

/* top bar */
.pl-bar { position: sticky; top: 0; z-index: 20; background: var(--a-bg); }
.pl-barin { max-width: 46rem; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0.55rem 1rem; }
.pl-me { justify-self: start; border-radius: 50%; }
.pl-logo { justify-self: center; display: block; line-height: 0; }
.pl-logo img { height: 34px; width: auto; }
.pl-icons { justify-self: end; display: flex; gap: 0.5rem; }
.pl-round { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--a-card); border: 1px solid var(--a-line); color: var(--a-navy); cursor: pointer; text-decoration: none; }
.pl-round:hover { border-color: var(--a-navy); }
.pl-avatar { background: var(--a-blueTint); color: var(--a-navy); border-color: var(--a-line); font-size: 1rem; }

/* bottom bar */
.pl-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: var(--a-card); border-top: 1px solid var(--a-line); padding: 0.4rem 0 calc(0.35rem + env(safe-area-inset-bottom)); }
.pl-tabs a { flex: 1; max-width: 9rem; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; color: var(--a-muted); text-decoration: none; font-size: 0.74rem; font-weight: 600; padding-bottom: 0.15rem; border-bottom: 3px solid transparent; }
.pl-tabs a[aria-current="page"] { color: var(--a-blue); font-weight: 800; border-bottom-color: var(--a-blue); }
.pl-tabs a:hover { color: var(--a-navy); }

/* Home tiles (components/PlayerHome.tsx) */
.pl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.4rem; }
.pl-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; min-height: 8.2rem; padding: 0.85rem; border-radius: 16px; border: 0; color: #fff; text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.pl-tile:hover { filter: brightness(1.06); color: #fff; }
.pl-tile.blue { background: var(--a-blue); } .pl-tile.green { background: var(--a-green); } .pl-tile.orange { background: var(--a-orange); } .pl-tile.purple { background: var(--a-purple); } .pl-tile.teal { background: var(--a-teal); }
.pl-tile.wide { min-height: 0; flex-direction: row; align-items: center; gap: 0.8rem; margin-top: 0.6rem; padding: 1rem 0.9rem; }
.pl-tart { position: absolute; right: -14px; bottom: -18px; opacity: 0.16; line-height: 0; }
.pl-ticon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255,255,255,0.22); }
.pl-ttext { display: flex; flex-direction: column; position: relative; }
.pl-ttext b { font-size: 1.05rem; font-weight: 800; }
.pl-ttext span { font-size: 0.85rem; opacity: 0.92; }
.pl-tile.wide .pl-ttext { flex: 1; }
.pl-tgo { position: absolute; top: 0.85rem; right: 0.85rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(255,255,255,0.25); }
.pl-tgo.mid { position: static; }
.pl-tsoon { position: absolute; top: 0.85rem; right: 0.85rem; font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.5rem; border-radius: 0.8rem; background: rgba(255,255,255,0.25); }

/* the live card */
.pl-live { margin-top: 0.7rem; padding: 0.8rem; border-radius: 16px; background: var(--a-greenTint); border: 1px solid var(--a-greenLine); }
.pl-livetop { display: flex; justify-content: space-between; align-items: center; }
.pl-livetag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 800; color: var(--a-red); letter-spacing: 0.04em; }
.pl-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--a-red); }
.pl-timer { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--a-green); font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-livename { display: block; font-size: 1.1rem; color: var(--a-ink); margin-top: 0.3rem; }
.pl-livemeta { display: block; font-size: 0.85rem; color: var(--a-muted); }
.pl-livebtns { margin-top: 0.6rem; }
.pl-livego { display: flex; justify-content: center; align-items: center; gap: 0.4rem; padding: 0.7rem; border-radius: 12px; background: var(--a-green); color: #fff; font-weight: 800; text-decoration: none; }
.pl-livego:hover { color: #fff; filter: brightness(1.06); }

/* your numbers */
.pl-mine { font-size: 1.05rem !important; margin: 1.1rem 0 0.5rem !important; }
.pl-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.pl-num { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.55rem 0.45rem; border-radius: 12px; min-width: 0; }
.pl-num b { font-size: 1.25rem; color: var(--a-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pl-num span { font-size: 0.72rem; color: var(--a-muted); line-height: 1.2; }
.pl-num.blue { background: var(--a-blueTint); color: var(--a-blue); } .pl-num.red { background: var(--a-redTint); color: var(--a-red); } .pl-num.orange { background: var(--a-orangeTint); color: var(--a-orange); }
.pl-num.green { background: var(--a-greenTint); color: var(--a-green); } .pl-num.purple { background: var(--a-purpleTint); color: var(--a-purple); }

/* headings with View all */
.pl .pl-head { display: flex; justify-content: space-between; align-items: center; margin: 1.1rem 0 0.45rem; }
.pl .pl-head h2 { margin: 0; font-size: 1.05rem; }
.pl .pl-head a { font-weight: 700; color: var(--a-blue); text-decoration: none; font-size: 0.9rem; }

/* session rows (components/SessionRow.tsx) */
.pl .pl-list { list-style: none; margin: 0; padding: 0; }
.pl .pl-list li { border: 0; margin: 0 0 0.4rem; }
.pl .pl-srow { display: flex; align-items: center; gap: 0.6rem; background: var(--a-card); border-radius: 12px; padding: 0.5rem 0.65rem; text-decoration: none; color: var(--a-ink); grid-template-areas: none; }
.pl .pl-srow:hover { box-shadow: 0 0 0 1.5px var(--a-line); }
.pl-sicon { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--a-bg); color: var(--a-muted); }
.pl-smid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl .pl-sname { font-weight: 700; color: var(--a-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .pl-swhen { font-size: 0.8rem; color: var(--a-muted); }
.pl-chev { color: var(--a-muted); line-height: 0; flex: none; }
.pl .pl-pill { border: 0; padding: 0.25rem 0.6rem; font-size: 0.75rem; background: var(--a-greyTint); color: var(--a-muted); }
.pl .pl-pill.live { background: var(--a-redTint); color: var(--a-red); }
.pl .pl-pill.upcoming { background: var(--a-purpleTint); color: var(--a-purple); }
.pl .pl-pill.draft { background: var(--a-blueTint); color: var(--a-blue); }
.pl .pl-pill.completed { background: var(--a-greenTint); color: var(--a-green); }
.pl .pl-pill.incomplete { background: var(--a-orangeTint); color: #9A5700; }
.pl-boxed { background: transparent !important; border: 0 !important; padding: 0 !important; }
.pl .pl-boxed .pl-srow { flex-wrap: wrap; }
.pl .pl-boxed .pl-sname { white-space: normal; flex: 1 1 100%; }
.pl .pl-boxed .pl-swhen { flex: 1 1 100%; }
.pl-rowbtn.pl-srow { display: flex; width: 100%; }

/* cards everywhere take the app look */
.pl .pl-card { border: 0; border-radius: 14px; background: var(--a-card); }
.pl .pl-card.live { box-shadow: 0 0 0 1.5px var(--a-red) inset; }
.pl-notice { border-radius: 12px; margin: 0.5rem 0 0.2rem; }
.pl .pl-chips button[aria-pressed="true"], .pl .pl-seg button[aria-pressed="true"] { background: var(--a-navy); }
.pl-btn.primary, .pl .pl-btn.primary { background: var(--a-blue); border-color: var(--a-blue); }
.pl-signlogo { display: block; height: 52px; width: auto; margin: 0 auto 0.6rem; }
.pl-sign { border: 0; border-radius: 16px; box-shadow: 0 2px 10px rgba(11,37,89,0.08); }
.pl-signlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem; margin: 1rem 0 0; font-size: 0.88rem; }
.pl-page { padding-top: 0.5rem; }
@media (max-width: 26rem) { .pl-nums { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48rem) { .pl-tiles { grid-template-columns: repeat(4, 1fr); } }

/* v7: a way back to the website from the app's top bar */
.pl-left { justify-self: start; display: flex; align-items: center; gap: 0.5rem; }
.pl-site { width: auto; padding: 0 0.7rem; border-radius: 1.3rem; gap: 0.35rem; display: inline-flex; align-items: center; font-weight: 700; font-size: 0.85rem; }
@media (max-width: 26rem) { .pl-sitetxt { display: none; } .pl-site { width: 2.6rem; padding: 0; justify-content: center; } }

/* Step 34: the scorecard link card on a finished session (the scorer only) */
.pl-linkcard { margin-top: 1rem; }
.pl-linkcard .pl-sec { margin-top: 0; }
.pl-linkurl { margin: 0.5rem 0; overflow-wrap: anywhere; font-weight: 600; }

/* Step 37: report or block a player */
.pl-dots { min-width: 2.2rem; height: 2.2rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.pl-dots:hover, .pl-dots:focus-visible { border-color: var(--blue); }
.pl-reasons { border: 0; padding: 0; margin: 0 0 0.6rem; display: grid; gap: 0.5rem; }
.pl-reasons legend { font-weight: 700; margin-bottom: 0.4rem; }
.pl-reason { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem 0.7rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.pl-reason:has(input:checked) { border-color: var(--blue); background: #eef3fd; }
.pl-reason span { display: grid; }
.pl-input { width: 100%; box-sizing: border-box; padding: 0.6rem; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; }

/* Step 39: email and password sign-in */
.pl-tabs2 { display: flex; gap: 4px; padding: 4px; margin: 0 0 1rem; background: var(--a-line, #e3e8f0); border-radius: 12px; }
.pl-tabs2[hidden] { display: none; }
.pl-tab { flex: 1; min-height: 2.4rem; border: 1px solid transparent; border-radius: 9px; background: transparent; font: inherit; font-weight: 700; color: var(--soft); cursor: pointer; }
.pl-tab[aria-selected="true"] { background: var(--a-card, #fff); border-color: var(--a-line, #d5dce6); color: var(--a-navy, #0b2559); }
.pl-tab:focus-visible, .pl-linkbtn:focus-visible { outline: 3px solid var(--a-blue, #1a5fd6); outline-offset: 2px; }
.pl-pwrow { display: flex; gap: 0.5rem; align-items: stretch; }
.pl-pwrow input { flex: 1; min-width: 0; }
.pl-linkbtn { border: 0; background: none; padding: 0.4rem 0.2rem; font: inherit; font-weight: 700; color: var(--a-blue, #1a5fd6); cursor: pointer; }
.pl-linkbtn[hidden] { display: none; }
.pl-linkbtn:disabled { color: var(--soft); cursor: default; }
.pl-right { text-align: right; margin: 0.2rem 0 0; }
.pl-center { text-align: center; margin: 0.4rem 0 0; }
.pl-sign [hidden] { display: none !important; }

/* Step 40: the profile's mobile number (verified by SMS) */
.pl-numrow { margin: 0.9rem 0 0.4rem; }
.pl-numrow > .pl-field { margin-top: 0; }
.pl-numval { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; min-height: 2.8rem; padding: 0.4rem 0.75rem; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); }
.pl-numval b { flex: 1; min-width: 8rem; font-weight: 600; }
.pl-pill { font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--a-line, #e3e8f0); color: var(--soft); }
.pl-pill.ok { background: #e6f5ec; color: #157347; }
.pl-tabs2 .pl-tab { white-space: nowrap; font-size: 0.92rem; padding: 0 0.4rem; }

/* Step 41: a Back button on every step of signing in */
.pl-backbtn { display: inline-flex; align-items: center; gap: 0.25rem; margin: 0 0 0.6rem; padding: 0.35rem 0.8rem 0.35rem 0.55rem; border: 1px solid var(--a-line, #d5dce6); border-radius: 10px; background: var(--paper); color: var(--a-blue, #1a5fd6); font: inherit; font-weight: 700; cursor: pointer; }
.pl-backbtn[hidden] { display: none !important; }
.pl-backbtn:focus-visible { outline: 3px solid var(--a-blue, #1a5fd6); outline-offset: 2px; }
.pl-sign h1 { margin-bottom: 0.2rem; }
.pl-sign input[type=email], .pl-sign input[type=password], .pl-sign input[type=tel], .pl-sign input[type=text] { min-height: 3rem; }

/* Step 42: the Admin button in the top bar (admins only) */
.pl-adminbtn { display: inline-flex; align-items: center; height: 2.4rem; padding: 0 0.9rem; border-radius: 1.2rem; background: var(--a-navy, #0b2559); color: #fff; font-weight: 800; font-size: 0.9rem; text-decoration: none; }
.pl-adminbtn[hidden] { display: none; }
.pl-adminbtn:focus-visible { outline: 3px solid var(--a-blue, #1a5fd6); outline-offset: 2px; }
.pl-adminbtn { gap: 0.35rem; }
@media (max-width: 520px) {
  .pl-adminbtn { width: 2.6rem; height: 2.6rem; padding: 0; justify-content: center; border-radius: 50%; }
  .pl-adminbtn span { display: none; }
}

/* ---------- Step 45: join links, share, Pay, live strip, QR ---------- */
.pl-livestrip { margin-top: 0.7rem; }
.pl-livescroll { display: flex; gap: 0.7rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 0.3rem; }
.pl-livescroll > .pl-live { flex: 0 0 min(100%, 26rem); scroll-snap-align: start; margin-top: 0; }
.pl-strong { font-weight: 800; color: var(--blue); margin: 0.3rem 0; }
.pl-join { text-align: center; }
.pl-join h1 { margin: 0.2rem 0; }
.pl-join .pl-row { justify-content: center; }
.pl-sharerow { margin-top: 1rem; align-items: center; }
.pl-pay h2 { margin-top: 0; }
.pl-paystatus { margin: 0.2rem 0 0.8rem; color: var(--soft); }
.pl-paystatus.claimed { color: #8f5700; font-weight: 600; }
.pl-paystatus.confirmed { color: #0f6b3a; font-weight: 700; }
.pl-paystatus.rejected { color: #8f0b20; font-weight: 700; }
.pl-pay .pl-paid { margin-top: 0.8rem; }
.pl-pay input[type=text] { width: 100%; max-width: 22rem; }
.pl-qr { display: flex; justify-content: center; margin: 0.8rem 0 0.3rem; }
.pl-qr svg { width: min(240px, 70vw); height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pl-pst.amber { color: #8f5700; font-weight: 700; }
.pl-pst.green { color: #0f6b3a; font-weight: 700; }
.pl-pst.red { color: #8f0b20; font-weight: 700; }
.pl-btn.ok { background: var(--green); border-color: var(--green); color: #fff; }
.pl-tick { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; cursor: pointer; }
.pl-tick input { width: 1.2rem; height: 1.2rem; accent-color: var(--blue); }
.pl-tick input:not(:checked) + span { color: var(--soft); text-decoration: line-through; }
.pl-addme { border-style: dashed; border-color: var(--blue); color: var(--blue); margin: 0.25rem 0 0.75rem; }
.pl-dlg .center { text-align: center; }
.pl-upirow { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.6rem 0.8rem; margin: 0.4rem 0 0.6rem; border-radius: 8px; background: var(--a-blueTint, #eaf0fc); }
.pl-upirow > span { display: flex; flex-direction: column; }
.pl-upirow b { font-size: 1.05rem; word-break: break-all; }
.pl-notpaying b { color: var(--soft); font-weight: 600; }
/* Step 45c: Pay on WhatsApp, and "Did you pay?" */
.pl-btn.pl-wa { background: #1F8F4E; border-color: #1F8F4E; color: #fff; font-weight: 800; margin-top: 0.6rem; }
.pl-btn.pl-wa:hover { background: #197a42; }
.pl-ask { margin-top: 0.8rem; padding: 0.8rem; border-radius: 10px; background: var(--a-greenTint, #E6F5EC); border: 1px solid #BFE3CC; }
.pl-ask b { display: block; font-size: 1.1rem; margin-bottom: 0.5rem; }
/* Step 46: Welcome. Home, dimmed, with a small card at the bottom */
.pl-welcomebg { pointer-events: none; user-select: none; }
.pl-welcomedim { position: fixed; inset: 0; background: rgba(11, 22, 45, 0.45); z-index: 40; }
.pl-welcome { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(30rem, calc(100% - 1.5rem)); z-index: 41;
  background: var(--a-card, #fff); border: 1px solid var(--a-line, #DDE3EE); border-radius: 18px; padding: 1rem 1rem 0.8rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.pl-welcome h1 { font-size: 1.25rem; margin: 0; }
.pl-welcome .pl-note { margin: 0.25rem 0 0; }
.pl-welbtns { margin-top: 0.9rem; gap: 0.6rem; }
.pl-welbtns .pl-btn { flex: 1; min-height: 2.9rem; font-weight: 800; }
.pl-welcome .pl-note.small { margin-top: 0.6rem; }
.pl-wellegal { font-size: 0.75rem; line-height: 1.35; }
.pl-welbtns .pl-btn:not(.primary) { border: 1.5px solid var(--a-blue, #1550C9); color: var(--a-blue, #1550C9); }
/* Step 48: players picked to add to a team */
.pl-pend { margin: 0.4rem 0 0.8rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--a-greenTint, #E6F5EC); border: 1px solid var(--a-greenLine, #BFE3CC); }
.pl-pend > b { display: block; color: var(--a-green, #1B7F44); margin-bottom: 0.4rem; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.pl-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--a-greenLine, #BFE3CC); background: var(--a-card, #fff); font: inherit; font-weight: 600; cursor: pointer; }
.pl-chip span { color: var(--a-muted, #5B6678); font-size: 0.8rem; }
.pl-btn.pl-picked { border-color: var(--a-green, #1B7F44); color: var(--a-green, #1B7F44); }
