/* ===== ASPL Panels — modern responsive shell ===== */

:root {
  --panel-max: 1100px;
  --panel-pad: clamp(12px, 3vw, 24px);
  --radius: 16px;
  --radius-sm: 12px;
  --touch: 44px;
}

/* Wide panel mode (admin / team / player / home / wall) */
body.panel-page {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(62, 207, 142, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(40, 110, 60, 0.18), transparent 50%),
    var(--page-bg);
  min-height: 100dvh;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.panel-page::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.panel-page .desktop-frame {
  display: block;
  min-height: 100dvh;
  padding: 0;
  background: transparent;
  place-items: unset;
}

body.panel-page .app.panel-shell {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100dvh;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 40% at 50% -10%, rgba(62, 207, 142, 0.12), transparent 55%),
    var(--bg);
}

body.panel-page .app.panel-shell .app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: calc(10px + var(--safe-top)) var(--panel-pad) 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

body.panel-page .app.panel-shell .header-row {
  max-width: var(--panel-max);
  margin: 0 auto;
  width: 100%;
  padding-bottom: 10px;
}

body.panel-page .app.panel-shell .app-scroll {
  flex: 1;
  overflow: visible;
  max-width: var(--panel-max);
  width: 100%;
  margin: 0 auto;
  padding: 16px var(--panel-pad) calc(28px + var(--safe-bottom));
}

body.panel-page .cricket-bg {
  opacity: 0.35;
}

.header-copy h1 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

body.panel-page .app-header .theme-toggle {
  position: static;
  right: auto;
  bottom: auto;
  margin: 0;
  min-height: 36px;
  padding: 0 10px;
  transform: none;
  z-index: auto;
  box-shadow: none;
  flex-shrink: 0;
}
body.panel-page .app-header .theme-toggle:hover {
  transform: none;
}

@media (max-width: 640px) {
  body.panel-page .app-header .theme-toggle em {
    display: none;
  }
  body.panel-page .app-header .theme-toggle {
    min-width: 36px;
    padding: 0;
    justify-content: center;
  }
  body.panel-page .app.panel-shell .header-row .header-copy h1 {
    font-size: 1.15rem;
  }
}

/* ===== Nav ===== */
.admin-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: var(--panel-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 0 10px;
}

.admin-nav::-webkit-scrollbar { display: none; }

.admin-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-nav a:hover {
  color: var(--ink);
  border-color: rgba(62, 207, 142, 0.35);
}

.admin-nav a.on {
  color: #111;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  border-color: transparent;
}

/* ===== Typography / sections ===== */
.section-title {
  font-family: var(--display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  line-height: 1.1;
}

.pay-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pay-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ===== Cards ===== */
body.panel-page .card {
  border-radius: var(--radius);
  padding: clamp(14px, 3vw, 20px);
  margin-bottom: 12px;
}

body.panel-page .card-head {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

/* ===== Stats ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 720px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px;
  min-width: 0;
}

.stat-box span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-box strong {
  font-family: var(--display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1;
  color: var(--gold-soft);
  word-break: break-word;
}

.stat-box.sold strong { color: #7dffb2; }
.stat-box.unsold strong { color: #ff8b8b; }

/* ===== Forms ===== */
.field {
  margin-bottom: 10px;
}

.field select,
.field input[type="color"] {
  width: 100%;
  border: 1px solid rgba(62, 207, 142, 0.2);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  font-size: 16px;
  min-height: var(--touch);
}

.field input[type="color"] {
  padding: 8px;
  height: 48px;
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.utr-form .cta-btn,
.cta-btn.pay-submit {
  width: 100%;
  text-align: center;
  min-height: 50px;
  margin-top: 6px;
}

/* ===== Buttons ===== */
.mini-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mini-btn.danger {
  border-color: rgba(255, 139, 139, 0.4);
  color: #ffb4b4;
}

.mini-btn.icon-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.mini-btn.icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-row .mini-btn,
.btn-row .cta-btn {
  flex: 1 1 auto;
}

.btn-row .mini-btn.icon-btn {
  flex: 0 0 auto;
  width: 40px;
}

.portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--chip-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  font-weight: 700;
  min-height: var(--touch);
  transition: transform 0.12s, border-color 0.15s, background 0.15s;
}

.portal-btn:active { transform: scale(0.985); }

.portal-btn:hover {
  border-color: rgba(62, 207, 142, 0.35);
}

.portal-btn.primary {
  color: #111;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  border-color: transparent;
}

.portal-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .portal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portal-grid .portal-btn {
    margin-bottom: 0;
  }
}

/* ===== Lists / rows ===== */
.team-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--tc, var(--gold));
  padding-left: 12px;
}

.team-row > div { min-width: 0; flex: 1; }
.team-row strong {
  display: block;
  word-break: break-word;
}
.team-row small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
  line-height: 1.35;
  word-break: break-word;
}

.board-list {
  display: grid;
  gap: 8px;
}

.board-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.board-item .btn-col {
  display: grid;
  gap: 4px;
}

@media (max-width: 480px) {
  .board-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .board-item .btn-col,
  .board-item > .tag,
  .board-item > .mini-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .board-item .btn-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

.board-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #222;
  display: grid;
  place-items: center;
  border: 1px solid rgba(62, 207, 142, 0.25);
  flex-shrink: 0;
}

.board-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-item strong {
  display: block;
  font-size: 0.95rem;
  word-break: break-word;
}

.board-item small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
  line-height: 1.35;
  word-break: break-word;
}

.tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag.avail {
  color: #7dffb2;
  background: rgba(125, 255, 178, 0.12);
}

.tag.unsold {
  color: #ff8b8b;
  background: rgba(255, 139, 139, 0.12);
}

.tag.price {
  color: #111;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

/* ===== Team cards ===== */
.team-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.team-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 3px solid var(--tc, var(--gold));
}

.team-code {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #111;
  background: var(--tc, var(--gold));
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.team-card strong { display: block; margin-bottom: 2px; }
.team-card small { color: var(--muted); font-size: 0.8rem; }

.purse-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.team-hero {
  border-color: color-mix(in srgb, var(--tc, var(--gold)) 50%, transparent);
}

.team-edit-card {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.team-edit-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===== Admin Teams page ===== */
.teams-page {
  padding-bottom: 8px;
}

.teams-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.teams-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.teams-add-btn {
  width: auto;
  margin: 0;
  min-height: 42px;
  padding: 10px 16px;
}

.teams-kicker {
  margin: 0 0 2px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.teams-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.teams-filter input {
  accent-color: var(--gold);
}

.teams-stats {
  margin-bottom: 16px;
}

.teams-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (min-width: 820px) {
  .teams-admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.team-admin-card {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.03), transparent 40%),
    var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}

.team-admin-banner {
  height: 6px;
  background: linear-gradient(90deg, var(--tc, var(--gold)), color-mix(in srgb, var(--tc, var(--gold)) 40%, #fff));
}

.team-admin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 10px;
}

.team-admin-logo {
  width: 64px;
  height: 64px;
}

.team-admin-title {
  flex: 1;
  min-width: 0;
}

.team-admin-title strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  line-height: 1.2;
  word-break: break-word;
}

.team-admin-title small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.team-status-pill {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-status-pill.ok {
  color: #7dffb2;
  background: rgba(125,255,178,0.12);
  border: 1px solid rgba(125,255,178,0.25);
}

.team-status-pill.wait {
  color: #ffc27a;
  background: rgba(255,194,122,0.12);
  border: 1px solid rgba(255,194,122,0.28);
}

.team-admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px;
}

.team-admin-metrics div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
}

.team-admin-metrics em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.team-admin-metrics b {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  font-weight: 600;
}

.team-admin-bar {
  margin: 10px 14px 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.team-admin-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tc, var(--gold)), #fff1b0);
}

.team-admin-details {
  margin: 12px 14px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0 12px;
}

.team-admin-details summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 2px;
  font-weight: 700;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.team-admin-details summary::-webkit-details-marker {
  display: none;
}

.team-admin-details summary::after {
  content: "▾";
  float: right;
  opacity: 0.7;
}

.team-admin-details[open] summary::after {
  content: "▴";
}

.team-admin-details .form-grid {
  padding-bottom: 4px;
}

.team-admin-details .cta-btn {
  margin-bottom: 12px;
}

.teams-add-card {
  border: 1px dashed rgba(62,207,142,0.35);
  background:
    linear-gradient(160deg, rgba(62,207,142,0.08), transparent 45%),
    var(--surface);
}

/* ===== Admin Players page ===== */
.players-page {
  padding-bottom: 8px;
}

.player-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.player-search {
  margin: 0;
}

.player-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pchip {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.pchip.on {
  color: #111;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  border-color: transparent;
}

.players-add-card {
  margin-bottom: 14px;
  border: 1px dashed rgba(62,207,142,0.35);
  background:
    linear-gradient(160deg, rgba(62,207,142,0.08), transparent 45%),
    var(--surface);
  padding: 0 14px 4px;
}

.players-add-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 2px;
  font-weight: 800;
  color: var(--gold-soft);
}

.players-add-summary::-webkit-details-marker { display: none; }

.players-add-summary em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.player-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.player-edit-modal.is-open {
  display: flex;
}

.player-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.players-edit-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(92dvh, 820px);
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 14px 16px 12px;
  border-color: rgba(62, 207, 142, 0.4);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.players-edit-card .card-head {
  flex-shrink: 0;
  position: relative;
  top: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--hairline, rgba(255, 255, 255, 0.08));
  background: transparent;
}

.players-edit-card .card-head h3 {
  margin: 0;
}

.players-edit-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 0;
}

.players-edit-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(62, 207, 142, 0.45) transparent;
}

.players-edit-body::-webkit-scrollbar {
  width: 6px;
}

.players-edit-body::-webkit-scrollbar-thumb {
  background: rgba(62, 207, 142, 0.45);
  border-radius: 999px;
}

.players-edit-body .form-grid {
  margin-bottom: 8px;
}

.players-edit-body .pay-note {
  margin: 4px 0 8px;
}

.players-edit-footer {
  flex-shrink: 0;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--hairline, rgba(255, 255, 255, 0.08));
  background: var(--card, var(--surface));
}

.players-edit-footer .pay-submit,
.players-edit-footer .cta-btn {
  position: static;
  width: 100%;
  margin: 0;
  box-shadow: 0 10px 24px rgba(62, 207, 142, 0.25);
}

/* Over-break advertisement manager */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ad-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--card);
}
.ad-item.is-editing {
  grid-column: 1 / -1;
  opacity: 1;
}
.ad-edit-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.ad-edit-form .field { margin: 0; }
.ad-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ad-edit-actions .cta-btn {
  margin: 0;
  flex: 1 1 auto;
  min-width: 140px;
}
.ad-edit-actions .mini-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ad-thumb {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}
.ad-thumb { position: relative; }
.ad-thumb img,
.ad-thumb video { width: 100%; height: 100%; object-fit: contain; }
.ad-over-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #08130d;
  background: linear-gradient(135deg, #7dffb2, #3ecf8e);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.ad-caption {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}
.ad-over-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}
.ad-over-form .field { flex: 1 1 120px; margin: 0; }
.ad-over-form .field input { padding: 8px 10px; width: 100%; }
.ad-over-form .field select { padding: 8px 34px 8px 10px; width: 100%; }
.ad-over-form .mini-btn { white-space: nowrap; }
.ad-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.ad-actions form { margin: 0; flex: 0 0 auto; }
.ad-actions .mini-btn { width: 40px; }

body.modal-open {
  overflow: hidden;
}

body.modal-open .theme-toggle {
  display: none !important;
}

@media (max-width: 640px) {
  .player-edit-modal {
    align-items: stretch;
    padding: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .players-edit-card {
    width: 100%;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
    padding: 12px;
  }

  .players-edit-card .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) {
  .players-edit-card .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.players-count-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.players-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .players-admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .players-admin-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.player-admin-card {
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.03), transparent 42%),
    var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.player-admin-card.is-sold { border-top-color: #7dffb2; }
.player-admin-card.is-unsold { border-top-color: #ff8b8b; }
.player-admin-card.is-avail { border-top-color: var(--gold); }

.player-admin-top {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.player-admin-photo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a211c;
  border: 1px solid rgba(62,207,142,0.3);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.player-admin-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-photo-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -4px;
}

.admin-photo-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.12));
  background: rgba(0, 0, 0, 0.25);
}

.admin-photo-preview small {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-photo-preview[hidden] {
  display: none !important;
}

.player-admin-info {
  min-width: 0;
  flex: 1;
}

.player-admin-info strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.2;
  word-break: break-word;
}

.player-admin-info > small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.player-admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.ptag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.ptag.auction {
  color: var(--gold-soft);
  border-color: rgba(62,207,142,0.3);
  background: rgba(62,207,142,0.1);
}

.player-admin-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.player-base-box {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.08);
}

.player-base-box > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.player-base-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.player-base-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
}

[data-theme="light"] .player-base-input {
  background: #f4faf7;
}

.player-base-row .mini-btn {
  flex: 0 0 auto;
  min-width: 64px;
}

.player-admin-meta div {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
}

.player-admin-meta em {
  display: block;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.player-admin-meta b {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--gold-soft);
  font-weight: 600;
}

.player-admin-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.player-admin-actions .mini-btn.primary {
  flex: 1 1 auto;
}

.player-admin-actions .mini-btn.icon-btn {
  width: 40px;
}

.players-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
}

/* ===== Admin Matches page ===== */
.matches-page {
  padding-bottom: 8px;
}

.matches-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 820px) {
  .matches-admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.match-admin-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  border-radius: 18px;
  padding: 12px;
  min-width: 0;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.03), transparent 42%),
    var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 4px solid var(--tc, var(--gold));
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.match-admin-card.is-done {
  border-left-color: #7dffb2;
}

.match-admin-date {
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 14px;
  padding: 10px 6px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(62,207,142,0.2);
  min-height: 100%;
}

.match-admin-date strong {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold-soft);
}

.match-admin-date span {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.match-admin-date em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e8e2d4;
}

.match-admin-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-admin-vs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.match-admin-vs b {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.match-admin-vs strong {
  font-size: 1.05rem;
  word-break: break-word;
}

.match-admin-body > small {
  color: var(--muted);
  font-size: 0.78rem;
}

.match-result {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(125,255,178,0.08);
  border: 1px solid rgba(125,255,178,0.2);
  color: #b8ffd6;
  font-size: 0.82rem;
  font-weight: 700;
}

.match-admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.match-admin-actions .btn-row {
  margin: 0;
}

.match-admin-actions .btn-row .mini-btn {
  flex: 0 0 auto;
}

/* ===== Desk / live player ===== */
.desk-player {
  text-align: center;
}

.desk-photo {
  width: min(140px, 36vw);
  height: min(140px, 36vw);
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 2px solid var(--gold);
  background: #222;
}

.desk-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desk-photo-empty {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
}

.desk-player h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  word-break: break-word;
}

.desk-meta,
.desk-code {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  word-break: break-word;
}

.desk-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 14px auto 0;
  text-align: left;
}

/* ===== Player list / chips ===== */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(60vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px;
}

.player-chip {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 12px 14px 12px 12px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  white-space: normal;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid transparent;
  cursor: pointer;
  overflow: visible;
}

.player-chip-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.player-chip-main strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
  color: var(--ink);
}

.player-chip .pid-tag,
.player-admin-info .pid-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.18);
  color: var(--gold-soft, #7dffb2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.player-chip-meta {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  text-decoration: none;
}

/* legacy markup fallback */
.player-chip > strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  word-break: break-word;
  line-height: 1.25;
}
.player-chip > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  word-break: break-word;
  text-decoration: none;
}

.player-chip.active {
  border-color: rgba(62, 207, 142, 0.55);
  background: rgba(62, 207, 142, 0.12);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.15);
}

.player-chip.status-sold { border-left-color: #7dffb2; }
.player-chip.status-unsold { border-left-color: #ff8b8b; }
.player-chip.status-available { border-left-color: var(--gold); }

.player-chip:hover {
  border-color: rgba(62, 207, 142, 0.35);
}

/* ===== Tabs ===== */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.tabs a {
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 4px;
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  font-weight: 700;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs a.on {
  color: #111;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  border-color: transparent;
}

.portal-hero .hero-sub {
  max-width: 36ch;
}

/* ===== Logo upload ===== */
.logo-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.logo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--tc, var(--gold));
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), #121812);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-preview span {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--tc, var(--gold-soft));
}

.captain-line {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.captain-line strong {
  color: var(--text, #f2f5f0);
}

.captain-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: #e8b84a;
  color: #1a1408;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.captain-badge[hidden] {
  display: none !important;
}

.board-item.is-captain {
  border-color: rgba(232, 184, 74, 0.55);
  background: linear-gradient(135deg, rgba(232, 184, 74, 0.12), transparent 70%);
}

button.board-item.squad-pick {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

button.board-item.squad-pick:hover,
button.board-item.squad-pick:focus-visible {
  border-color: rgba(62, 207, 142, 0.45);
  background: rgba(62, 207, 142, 0.08);
  outline: none;
}

button.board-item.squad-pick:active {
  transform: scale(0.99);
}

.squad-players-card .player-type {
  text-transform: capitalize;
}

.team-hero-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.board-item .pid-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.18);
  color: var(--gold-soft, #7dffb2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.auction-player-row[hidden] {
  display: none !important;
}

/* ===== Auction wall ===== */
.wall-body {
  --wall-ink: #f6f1e4;
  --wall-muted: #a8b0a4;
  --wall-bg: #040604;
  position: relative;
  background: var(--wall-bg);
  margin: 0;
  color: var(--wall-ink);
  font-family: var(--font);
}

@media (min-width: 900px) {
  .wall-body {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  html:has(.wall-body),
  html:has(.wall-body) body {
    height: 100%;
    overflow: hidden;
  }
}

.wall-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.wall-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wall-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: wallPulse 8s ease-in-out infinite;
}

.wall-glow-a {
  width: 45vw;
  height: 45vw;
  top: -12%;
  left: 20%;
  background: rgba(62, 207, 142, 0.28);
}

.wall-glow-b {
  width: 40vw;
  height: 40vw;
  right: -8%;
  bottom: 5%;
  background: rgba(28, 120, 70, 0.28);
  animation-delay: -3s;
}

.wall-gridlines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(62,207,142,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,207,142,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}

@keyframes wallPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 0.55; }
}

.wall-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: clamp(10px, 1.6vh, 18px) clamp(14px, 2vw, 28px) clamp(12px, 1.8vh, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
  overflow: hidden;
  box-sizing: border-box;
}

.wall-header {
  margin: 0;
  flex-shrink: 0;
}

.wall-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.wall-title-block {
  flex: 1;
  min-width: 0;
}

.wall-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.wall-kicker {
  margin: 0;
  font-size: clamp(0.58rem, 1.1vh, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.wall-header h1 {
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(1.8rem, 4.2vh, 3rem);
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--gold-soft);
  line-height: 0.92;
  text-shadow: 0 0 40px rgba(62, 207, 142, 0.25);
}

.wall-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 70, 70, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.4);
  color: #ffb4b4;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: clamp(0.62rem, 1.2vh, 0.78rem);
}

.wall-live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 12px #ff4d4d;
  animation: liveBlink 1.1s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.wall-clock {
  margin: 0;
  color: var(--wall-muted);
  font-size: clamp(0.7rem, 1.3vh, 0.85rem);
  white-space: nowrap;
}

.sold-flash {
  text-align: center;
  margin: 0;
  padding: clamp(8px, 1.2vh, 12px) 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 255, 178, 0.22), rgba(62, 207, 142, 0.28));
  border: 1px solid rgba(125, 255, 178, 0.45);
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(1.1rem, 3.2vh, 2rem);
  letter-spacing: 0.05em;
  animation: soldPop 0.45s ease;
  flex-shrink: 0;
}

.sold-flash[hidden] {
  display: none !important;
}

.sold-flash strong {
  color: #7dffb2;
  margin-right: 8px;
}

.sold-flash em {
  font-style: normal;
  color: var(--gold-soft);
}

@keyframes soldPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.wall-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.wall-player {
  position: relative;
  min-height: 0;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(62, 207, 142, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, rgba(18, 26, 20, 0.98), rgba(8, 12, 10, 0.99));
  border: 1px solid rgba(62, 207, 142, 0.28);
  border-radius: clamp(18px, 2vh, 26px);
  padding: clamp(12px, 1.6vh, 18px);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.wall-player.is-live {
  border-color: rgba(62, 207, 142, 0.55);
  box-shadow:
    0 0 0 1px rgba(62, 207, 142, 0.12),
    0 24px 70px rgba(62, 207, 142, 0.18);
}

.wall-player-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 20px);
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.wall-player-media {
  flex: 0 0 clamp(200px, 34%, 340px);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-width: 0;
  min-height: 0;
}

.wall-player-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 2px 2px 0 0;
}

.wall-player-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.wall-stage-ring {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
  padding: 5px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(62, 207, 142, 0.9), rgba(26, 100, 65, 0.5));
  flex: 1 1 auto;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  min-height: 0;
}

.wall-player:not(.is-live) .wall-stage-ring {
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.4), rgba(90, 100, 95, 0.2));
}

.wall-photo {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(62, 207, 142, 0.12), transparent 55%),
    #0e1410;
  display: grid;
  place-items: center;
  font-size: clamp(2.4rem, 6vh, 4rem);
  border: none;
}

.wall-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.wall-status-pill {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: clamp(0.6rem, 1.1vh, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #062816;
  background: linear-gradient(135deg, #7dffb2, #3ecf8e);
  flex-shrink: 0;
  align-self: flex-start;
}

.wall-player.is-live .wall-status-pill {
  background: linear-gradient(135deg, #ff7a7a, #ef4444);
  color: #fff;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
  animation: wallPulse 1.6s ease-in-out infinite;
}

@keyframes wallPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.wall-player h2 {
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(1.85rem, 4.8vh, 3.2rem);
  margin: 0;
  line-height: 0.95;
  letter-spacing: 0.04em;
  word-break: break-word;
  flex-shrink: 0;
  max-width: 100%;
  text-align: left;
  text-transform: uppercase;
}

.wall-meta-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  max-width: none;
  width: 100%;
  flex-shrink: 0;
}

.wall-chip {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(62, 207, 142, 0.16);
  text-align: left;
  box-shadow: none;
}

.wall-chip em {
  display: block;
  margin: 0 0 3px;
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wall-muted, #93a89e);
  font-weight: 700;
}

.wall-chip b {
  display: block;
  font-size: clamp(0.84rem, 1.55vh, 1rem);
  font-weight: 800;
  color: #f4efe3;
  line-height: 1.15;
  word-break: break-word;
}

.wall-chip.accent {
  border-color: rgba(62, 207, 142, 0.4);
  background: rgba(62, 207, 142, 0.12);
}

.wall-chip.accent b {
  color: #7dffb2;
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(1.1rem, 2.2vh, 1.35rem);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.wall-chip.code {
  min-width: 0;
  flex: initial;
}

.wall-chip.code b {
  font-size: clamp(0.7rem, 1.35vh, 0.82rem);
  letter-spacing: 0.03em;
  color: #c9d4c8;
  font-weight: 700;
}

.wall-chip.muted {
  min-width: auto;
  grid-column: 1 / -1;
  flex: initial;
  text-align: left;
  color: var(--wall-muted, #93a89e);
  font-size: clamp(0.75rem, 1.4vh, 0.88rem);
  font-weight: 600;
  padding: 12px 14px;
}

.wall-price-bar {
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(62, 207, 142, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  flex-shrink: 0;
}

.wall-price-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wall-price-bar span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--wall-muted, #93a89e);
  font-weight: 700;
}

.wall-price-bar em {
  font-style: normal;
  font-size: 0.72rem;
  color: #c5d0c4;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28ch;
}

.wall-price-bar strong {
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(1.35rem, 3.2vh, 2rem);
  color: #7dffb2;
  letter-spacing: 0.03em;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.16);
  border: 1px solid rgba(62, 207, 142, 0.35);
  flex-shrink: 0;
  line-height: 1;
}

.wall-side {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 12px);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.wall-side-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.wall-side-head h3 {
  margin: 0;
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(1.2rem, 2.8vh, 1.6rem);
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}

.wall-side-head span {
  color: var(--wall-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wall-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(6px, 1vh, 10px);
  flex: 1;
  min-height: 0;
  align-content: stretch;
}

.wall-team-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent),
    rgba(18, 24, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 3px solid var(--tc, var(--gold));
  border-radius: 14px;
  padding: clamp(8px, 1.2vh, 12px);
  min-width: 0;
  min-height: 0;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wall-team-card:hover {
  border-color: color-mix(in srgb, var(--tc, var(--gold)) 55%, transparent);
}

.wall-team-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.wall-squad {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  align-content: start;
}

.wall-squad li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border-left: 2px solid var(--tc, var(--gold));
  min-width: 0;
}

.wall-squad li span {
  font-size: clamp(0.58rem, 1.1vh, 0.72rem);
  font-weight: 700;
  color: #f0ebe0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.15;
}

.wall-squad li b {
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(0.68rem, 1.2vh, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  line-height: 1.1;
}

.wall-squad li.empty {
  grid-column: 1 / -1;
  align-items: center;
  border-left-color: rgba(255,255,255,0.12);
  color: var(--wall-muted);
  font-size: clamp(0.65rem, 1.2vh, 0.78rem);
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  padding: 6px;
}

.wall-team-foot {
  margin-top: auto;
  flex-shrink: 0;
}

.wall-team-logo {
  width: clamp(36px, 5.5vh, 52px);
  height: clamp(36px, 5.5vh, 52px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--tc, var(--gold));
  background: #111;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.wall-team-logo.fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(0.75rem, 1.5vh, 0.95rem);
  letter-spacing: 0.05em;
  color: #111;
  background: var(--tc, var(--gold));
}

.wall-team-top strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.75rem, 1.5vh, 0.92rem);
  line-height: 1.15;
  word-break: break-word;
}

.wall-team-stats {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 6px;
}

.wall-team-stats em {
  display: block;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wall-muted);
}

.wall-team-stats b {
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(1rem, 2.4vh, 1.3rem);
  letter-spacing: 0.03em;
  color: var(--gold-soft);
  font-weight: 600;
}

.wall-team-bar {
  margin-top: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.wall-team-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tc, var(--gold)), #fff3b0);
}

/* Wall stays one-screen on TV/laptop landscape */
@media (max-width: 900px) and (orientation: landscape) {
  .wall-player-media {
    flex-basis: clamp(150px, 28%, 220px);
  }
  .wall-player h2 {
    font-size: clamp(1.2rem, 4vh, 2rem);
  }
  .wall-meta-chips {
    gap: 6px;
  }
  .wall-chip {
    padding: 7px 9px;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .wall-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1.15fr 1fr;
  }
  .wall-brand {
    gap: 8px;
  }
  .wall-title-block {
    text-align: left;
  }
  .wall-player-media {
    flex-basis: clamp(130px, 32%, 200px);
  }
  .wall-player h2 {
    font-size: clamp(1.35rem, 4.2vw, 2.1rem);
  }
  .wall-teams {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .wall-player-split {
    flex-direction: column;
    gap: 12px;
  }
  .wall-player-media {
    flex: 0 0 auto;
    height: auto;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
  .wall-stage-ring {
    aspect-ratio: 3 / 4;
    height: auto;
  }
  .wall-player-info {
    gap: 10px;
  }
}

/* ===== Login / compact pages ===== */
.login-card {
  max-width: 420px;
  margin: 24px auto 0;
}

.alert {
  word-break: break-word;
}

@media (max-width: 380px) {
  .header-copy h1 { font-size: 1.25rem; }
  .crest { width: 40px; height: 44px; }
  .admin-nav a { padding: 8px 12px; font-size: 0.75rem; }
}

@media (min-width: 900px) {
  body.panel-page .app.panel-shell .app-scroll {
    padding-top: 22px;
  }

  .desk-actions {
    max-width: 480px;
  }
}

/* ===== Light theme panel + wall ===== */
[data-theme="light"] body.panel-page {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(62, 207, 142, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(24, 181, 111, 0.12), transparent 50%),
    var(--page-bg);
}

[data-theme="light"] body.panel-page .app.panel-shell {
  background:
    radial-gradient(ellipse 90% 40% at 50% -10%, rgba(62, 207, 142, 0.14), transparent 55%),
    var(--bg);
}

[data-theme="light"] .portal-btn:not(.primary) {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="light"] .team-admin-card,
[data-theme="light"] .player-admin-card,
[data-theme="light"] .match-admin-card,
[data-theme="light"] .card {
  box-shadow: 0 8px 24px rgba(30, 40, 30, 0.06);
}

[data-theme="light"] .player-edit-backdrop {
  background: rgba(30, 40, 30, 0.45);
}

/* Wall light/dark styling → assets/css/wall-modern.css */

/* Extra bottom space so FAB doesn't cover content */
body.panel-page .app.panel-shell .app-scroll {
  padding-bottom: calc(28px + var(--safe-bottom) + 56px);
}

.theme-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-seg button {
  appearance: none;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--muted);
  border-radius: 14px;
  min-height: 48px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.theme-seg button.on {
  color: #111;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  border-color: transparent;
}

/* ===== Hard fix: Live player list chips ===== */
button.player-chip,
a.player-chip {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: block !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  white-space: normal !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

.player-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.player-chip .player-chip-main {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.player-chip .player-chip-meta {
  display: block !important;
  margin-top: 6px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

/* ===== Team bid controls ===== */
.bid-now-box {
  margin: 14px 0 4px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(62, 207, 142, 0.14), transparent 55%),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(62, 207, 142, 0.3);
  text-align: left;
}
.bid-now-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.bid-now-top span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}
.bid-now-top strong {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  color: var(--gold-soft);
  letter-spacing: 0.03em;
  line-height: 1;
}
.bid-now-lead {
  margin: 4px 0 12px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}
.bid-plus-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bid-plus-btn {
  appearance: none;
  border: 1px solid rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.1);
  color: var(--gold-soft);
  border-radius: 14px;
  min-height: 54px;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.bid-plus-btn:hover:not(:disabled) {
  background: rgba(62, 207, 142, 0.2);
  border-color: rgba(62, 207, 142, 0.55);
  transform: translateY(-1px);
}
.bid-plus-btn:active:not(:disabled) { transform: scale(0.98); }
.bid-plus-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.bid-plus-btn.bid-plus-hot {
  color: #0a1f14;
  background: linear-gradient(135deg, #7dffb2, #3ecf8e 45%, #1f8f5c);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(62, 207, 142, 0.28);
}

/* Auction wall live bid flash */
.bid-flash {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: clamp(12px, 1.6vh, 16px) 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 214, 102, 0.22), rgba(62, 207, 142, 0.28));
  border: 1px solid rgba(255, 214, 102, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: bidFlashIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  flex-shrink: 0;
}
.bid-flash[hidden] { display: none !important; }
.bid-flash .bid-flash-kicker {
  display: block;
  margin: 0 0 4px;
  font-size: clamp(0.7rem, 1.3vh, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe89e;
}
.bid-flash strong {
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(1.4rem, 3.6vh, 2.2rem);
  letter-spacing: 0.04em;
  color: #fff;
}
.bid-flash em {
  font-style: normal;
  color: #7dffb2;
}
.bid-flash .bid-flash-plus {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(125, 255, 178, 0.2);
  border: 1px solid rgba(125, 255, 178, 0.45);
  color: #7dffb2;
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(1.1rem, 2.8vh, 1.6rem);
  letter-spacing: 0.04em;
}
@keyframes bidFlashIn {
  from { transform: scale(0.9) translateY(-8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Team groups board */
.groups-create-card { margin-bottom: 16px; }
.groups-create-form {
  display: grid;
  grid-template-columns: 1fr 90px 72px auto;
  gap: 10px;
  align-items: end;
}
.groups-create-form .cta-btn { margin: 0; min-height: 44px; }
.groups-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0;
}
@media (min-width: 820px) {
  .groups-board { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
.group-col {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--card);
  box-shadow: inset 0 3px 0 var(--gc, var(--gold));
}
.group-col-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.group-col-code {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gc, var(--gold)) 22%, transparent);
  color: var(--gc, var(--gold));
}
.group-col-head input[name="name"] {
  flex: 1 1 120px;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 4px 0;
}
.group-col-head input[name="short_code"] { width: 52px; padding: 6px 8px; }
.group-col-head input[type="color"] { width: 36px; height: 36px; padding: 0; border: 0; background: none; }
.group-col-count {
  margin: 8px 0 10px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.group-team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.group-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.group-team-code {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--tc, var(--gold));
}
.group-team strong { flex: 1; font-size: 0.88rem; }
.group-empty { color: var(--muted); font-size: 0.82rem; padding: 8px 2px; }
.group-add-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.group-add-form select {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  padding: 0 8px;
}
.groups-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.group-pool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  border-left: 3px solid var(--tc, var(--gold));
}
.team-group-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--gc, var(--gold)) 22%, transparent);
  color: var(--gc, var(--gold));
}
@media (max-width: 640px) {
  .groups-create-form { grid-template-columns: 1fr 1fr; }
  .groups-create-form .field:first-child,
  .groups-create-form .cta-btn { grid-column: 1 / -1; }
}

/* Points table */
a.pchip { text-decoration: none; display: inline-flex; align-items: center; }
.pts-table-wrap { overflow-x: auto; margin-top: 8px; }
.pts-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.pts-table th,
.pts-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.pts-table th {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pts-table td:nth-child(2),
.pts-table th:nth-child(2) { text-align: left; }
.pts-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.pts-team b {
  min-width: 36px;
  color: var(--tc, var(--gold));
  font-weight: 800;
}
.pts-strong { font-weight: 800; color: var(--gold); font-size: 1rem; }
.pts-pos { color: #7dffb2; font-weight: 700; }
.pts-neg { color: #ff8a9a; font-weight: 700; }
.pts-match-list { display: grid; gap: 12px; margin-top: 12px; }
.pts-match-form {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}
.pts-match-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
}
.pts-match-head span { color: var(--muted); font-size: 0.8rem; }
.pts-saved {
  margin-left: auto;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  color: #08130d;
  background: #7dffb2;
  padding: 2px 8px;
  border-radius: 999px;
}
.pts-match-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 720px) {
  .pts-match-grid { grid-template-columns: repeat(3, 1fr); }
}
.pts-match-form .cta-btn { margin: 12px 0 0; min-height: 42px; }
.pts-score-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.pts-score-line div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.pts-score-line b { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.06em; }
.pts-score-line span { font-size: 1.25rem; font-weight: 800; }
.pts-score-line small { color: var(--muted); font-weight: 700; }
.pts-result-note {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--gold-soft, #7dffb2);
}
