/* v1.0.0 Practice scrims hub (Scrims > Practice). Org-private practice: Owner schedules, players play, Practice ranking. */
.scrims-schedule-cta--single { grid-template-columns: 1fr; }
.scrims-mode--practice .scrims-hero-eyebrow { color: var(--sm-accent, #7aa7ff); }
.ph-wrap { display: grid; gap: 14px; margin: 14px 0 24px; min-width: 0; }
.ph-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; color: var(--on-surface-variant); background: var(--sm-glass); border: 1px solid var(--sm-line); }
.ph-note svg, .ph-foot svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.ph-card { position: relative; display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--sm-glass); border: 1px solid var(--sm-line); min-width: 0; animation: sm-rise .32s ease both; }
.ph-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.ph-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15.5px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-head h2 svg { flex: none; width: 18px; height: 18px; color: var(--primary, #f6c445); }
.ph-head .text-btn { flex: none; font-size: 12.5px; font-weight: 700; }
.ph-muted { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--on-surface-variant); overflow-wrap: anywhere; }
.ph-muted b { color: var(--on-surface); }
.ph-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-variant); }
.ph-subhead em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-actions .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.ph-actions .btn svg { width: 17px; height: 17px; }
.ph-actions--tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-actions--tools .btn { justify-content: center; padding-inline: 8px; font-size: 12.5px; white-space: nowrap; }
.ph-badge { font-style: normal; min-width: 18px; padding: 0 6px; border-radius: 999px; font-size: 11px; line-height: 18px; text-align: center; background: var(--sm-danger, #ef5350); color: #fff; }
.ph-wide { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
.ph-role { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: color-mix(in srgb, var(--on-surface) 8%, transparent); color: var(--on-surface-variant); }
.ph-role.is-owner { background: color-mix(in srgb, var(--primary, #f6c445) 18%, transparent); color: var(--primary, #f6c445); }

/* Empty / onboarding */
.ph-empty { text-align: center; justify-items: center; padding: 18px 16px; }
.ph-empty h2 { margin: 0; font-size: 17px; font-weight: 800; }
.ph-empty p { margin: 0; max-width: 42ch; font-size: 13px; line-height: 1.5; color: var(--on-surface-variant); }
.ph-empty .ph-actions { justify-content: center; }
.ph-empty--soft { border-style: dashed; }

/* My practice */
.ph-me { background: linear-gradient(160deg, color-mix(in srgb, var(--primary, #f6c445) 10%, transparent), transparent 60%), var(--sm-glass); }
.ph-me__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.ph-rank { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 92px; padding: 10px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--primary, #f6c445) 40%, transparent); background: color-mix(in srgb, var(--primary, #f6c445) 12%, transparent); color: var(--on-surface); font: inherit; }
.ph-rank svg { width: 22px; height: 22px; color: var(--primary, #f6c445); }
.ph-rank span { display: grid; justify-items: center; }
.ph-rank b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ph-rank small { font-size: 11px; color: var(--on-surface-variant); white-space: nowrap; }
.ph-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ph-stat { display: grid; gap: 1px; padding: 7px 8px; border-radius: 12px; background: color-mix(in srgb, var(--on-surface) 5%, transparent); min-width: 0; }
.ph-stat b { font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.ph-stat span { font-size: 10.5px; color: var(--on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-form { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.ph-form__pip { display: grid; justify-items: center; gap: 1px; padding: 6px 0; border-radius: 10px; background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.ph-form__pip b { font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.ph-form__pip small { font-size: 10px; color: var(--on-surface-variant); }
.ph-tone--gold { background: color-mix(in srgb, #f6c445 26%, transparent); color: var(--on-surface); }
.ph-tone--good { background: color-mix(in srgb, var(--sm-success, #34c759) 22%, transparent); }
.ph-tone--mid { background: color-mix(in srgb, var(--sm-accent, #7aa7ff) 16%, transparent); }
.ph-tone--low { background: color-mix(in srgb, var(--on-surface) 6%, transparent); color: var(--on-surface-variant); }

/* Leaders */
.ph-leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ph-leaders button { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) 64px auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 0; background: transparent; color: var(--on-surface); font: inherit; text-align: left; }
.ph-leaders button:active { background: var(--sm-glass-raised); }
.ph-leaders__no { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 850; background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.ph-leaders li:first-child .ph-leaders__no { background: color-mix(in srgb, #f6c445 30%, transparent); }
.ph-leaders__name { display: grid; min-width: 0; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-leaders__name small { font-size: 11px; font-weight: 500; color: var(--on-surface-variant); }
.ph-leaders__bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--on-surface) 8%, transparent); overflow: hidden; }
.ph-leaders__bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--sm-accent, #7aa7ff), var(--primary, #f6c445)); }
.ph-leaders b { font-variant-numeric: tabular-nums; font-size: 15px; }
.ph-leaders b small { font-size: 10px; color: var(--on-surface-variant); margin-left: 1px; }

/* Sessions */
.ph-group { display: grid; gap: 10px; scroll-margin-top: 80px; }
.ph-group__title { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 15px; font-weight: 800; }
.ph-group__title em { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--primary, #f6c445) 18%, transparent); color: var(--primary, #f6c445); }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sm-danger, #ef5350); box-shadow: 0 0 0 0 color-mix(in srgb, var(--sm-danger, #ef5350) 60%, transparent); animation: ph-pulse 1.6s ease-out infinite; }
@keyframes ph-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ph-day { margin: 4px 0 -2px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface-variant); }
.ph-session { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: var(--sm-glass); border: 1px solid var(--sm-line); animation: sm-rise .32s ease both; min-width: 0; }
.ph-session--live { border-color: color-mix(in srgb, var(--sm-danger, #ef5350) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--sm-danger, #ef5350) 10%, transparent), transparent 55%), var(--sm-glass); }
.ph-session--completed { opacity: .96; }
.ph-session__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ph-when { display: grid; justify-items: center; min-width: 62px; padding: 6px 8px; border-radius: 12px; background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.ph-when b { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-when small { font-size: 11px; color: var(--on-surface-variant); white-space: nowrap; }
.ph-session__main { display: grid; gap: 2px; min-width: 0; }
.ph-session__main b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-session__main small { font-size: 12px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-session__tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ph-session__tags .scrim-repeat-pill { display: inline-flex; align-items: center; gap: 4px; }
.ph-session__tags svg { width: 12px; height: 12px; }
.ph-matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ph-match { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; border: 1px solid transparent; background: color-mix(in srgb, var(--on-surface) 4%, transparent); color: var(--on-surface); font: inherit; text-align: left; transition: transform var(--sm-motion-fast, 140ms) ease, background var(--sm-motion-fast, 140ms) ease; }
.ph-match:active { transform: scale(.985); background: var(--sm-glass-raised); }
.ph-map { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 12px; font-weight: 900; color: #0b0d12; background: #b9c2d0; }
.ph-map--erangel { background: linear-gradient(135deg, #8fd18b, #4f9d57); }
.ph-map--miramar { background: linear-gradient(135deg, #f3d39b, #c9934b); }
.ph-map--rondo { background: linear-gradient(135deg, #9ec7ff, #5b84d8); }
.ph-match__main { display: grid; gap: 1px; min-width: 0; }
.ph-match__main b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-match__main small { font-size: 11.5px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-match .scrim-status-pill { white-space: nowrap; }
.ph-result { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-foot { display: flex; gap: 8px; align-items: flex-start; margin: 2px 4px 0; font-size: 11.5px; line-height: 1.45; color: var(--on-surface-variant); }

/* Skeleton */
.ph-skel { min-height: 92px; animation: none; }
.ph-skel span { display: block; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--on-surface) 9%, transparent); animation: ph-shimmer 1.2s ease-in-out infinite alternate; }
.ph-skel span:nth-child(1) { width: 55%; } .ph-skel span:nth-child(2) { width: 85%; } .ph-skel span:nth-child(3) { width: 40%; }
@keyframes ph-shimmer { to { opacity: .45; } }

@media (max-width: 360px) {
  .ph-me__top { grid-template-columns: 1fr; }
  .ph-rank { grid-auto-flow: column; justify-content: center; gap: 10px; }
  .ph-actions--tools { grid-template-columns: 1fr 1fr; }
  .ph-leaders button { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .ph-leaders__bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ph-card, .ph-session, .ph-dot, .ph-skel span { animation: none; } }
:root.sm-reduce-motion .ph-card, :root.sm-reduce-motion .ph-session, :root.sm-reduce-motion .ph-dot { animation: none; }

/* Publish progress (Review match results): upload -> check -> save -> publish, painted in place. */
.rv-pub-steps { list-style: none; margin: 10px 0 4px; padding: 10px 12px; display: grid; gap: 8px; border-radius: 14px;
  background: color-mix(in srgb, var(--primary, #f5b301) 9%, var(--surface, #09090b)); box-shadow: 0 -8px 24px rgba(0,0,0,.28); border: 1px solid color-mix(in srgb, var(--primary, #f5b301) 18%, transparent);
  animation: ph-in .22s ease both; }
.rv-pub-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .55; transition: opacity .2s ease, color .2s ease; }
.rv-pub-steps li small { margin-left: auto; font-variant-numeric: tabular-nums; opacity: .8; }
.rv-pub-steps li span { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; position: relative; transition: background .2s ease, border-color .2s ease; }
.rv-pub-steps li.is-now { opacity: 1; font-weight: 600; }
.rv-pub-steps li.is-now span { border-color: var(--primary, #f5b301); border-right-color: transparent; animation: rv-spin .8s linear infinite; }
.rv-pub-steps li.is-done { opacity: .9; }
.rv-pub-steps li.is-done span { background: var(--sm-success, #22c55e); border-color: var(--sm-success, #22c55e); animation: smDelPop .25s ease both; }
.rv-pub-steps li.is-done span::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes rv-spin { to { transform: rotate(360deg); } }
@keyframes ph-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-pub-steps, .rv-pub-steps li span { animation: none !important; } }
