.pr-page {
  min-height: 100vh;
  padding-bottom: 96px;
  background: radial-gradient(ellipse 100% 150% at 40% 0%, rgba(238, 36, 69, 0.10), #111 32%);
  color: #e2e8f0;
  font-family: var(--font-ui, "Causten", sans-serif);
  line-height: 1.6;
}

.pr-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 22pt 48px;
}

.pr-page a {
  color: #EE2445;
}

.pr-page a:hover {
  color: #C81E3A;
}

.pr-page button {
  font-family: inherit;
  cursor: pointer;
}

.pr-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pr-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #243533;
  border-radius: 16px;
  box-shadow: 0 2pt 16pt rgba(0, 0, 0, 0.25);
}

.pr-hero__bg {
  position: absolute;
  inset: 0;
}

.pr-hero__bg {
  background: url("/images/invid-bg-plain.jpg") center / cover no-repeat;
  filter: blur(18px) brightness(0.28) saturate(1.4);
  transform: scale(1.08);
}

.pr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 80% at -5% 0%, rgba(238, 36, 69, 0.38) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6, 5, 1, 0.55) 0%, rgba(6, 5, 1, 0.88) 100%);
}

.pr-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 28px;
}

.pr-hero__id {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pr-hero__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #060501;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.pr-hero__tile .material-symbols-outlined {
  font-size: 32px;
  color: #EE2445;
}

.pr-hero__text {
  min-width: 0;
}

.pr-hero__eyebrow {
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.pr-hero__title {
  margin: 2px 0 4px;
  padding: 0;
  border: 0;
  font-size: 22pt;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow: var(--shadow-header, 0 2px 8px rgba(0, 0, 0, 0.5));
}

.pr-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 10.5pt;
  color: rgba(255, 255, 255, 0.7);
}

.pr-hero__sep {
  color: rgba(255, 255, 255, 0.3);
}

.pr-stats {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.pr-stats__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
}

.pr-stats__cell + .pr-stats__cell {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.pr-stats__value {
  font-size: 16pt;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.pr-stats__label {
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.pr-tabbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 16px;
  border: 1px solid #243533;
  border-radius: 12px;
  background: #181F20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.pr-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.pr-tabs::-webkit-scrollbar {
  display: none;
}

.pr-page .pr-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px;
  font-size: 11pt;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  white-space: nowrap;
}

.pr-page .pr-tab:hover {
  color: #fff;
}

.pr-page .pr-tab.is-active {
  color: #fff;
}

.pr-tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: #EE2445;
  opacity: 0;
  transition: opacity 0.2s;
}

.pr-tab.is-active::after {
  opacity: 1;
}

.pr-tab__icon {
  font-size: 18px;
  color: #9ca3af;
}

.pr-tab.is-active .pr-tab__icon {
  color: #EE2445;
}

.pr-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(238, 36, 69, 0.32);
  background: rgba(238, 36, 69, 0.16);
  color: #ff5c78;
  font-size: 8.5pt;
  font-weight: 800;
}

.pr-scope {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 8px 10px;
}

.pr-dd {
  position: relative;
}

.pr-dd__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  max-width: 300px;
  padding: 0 8px 0 12px;
  border: 1px solid #243533;
  border-radius: 8px;
  background: #0d1010;
  color: #fff;
}

.pr-dd.is-open .pr-dd__button {
  border-color: #EE2445;
}

.pr-dd__label {
  font-size: 8.5pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.pr-dd__value {
  min-width: 0;
  overflow: hidden;
  font-size: 10.5pt;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-dd__panel {
  position: absolute;
  top: 110%;
  right: 0;
  z-index: 60;
  min-width: 240px;
  padding: 8px;
  border: 1px solid #EE2445;
  border-radius: 8px;
  background: #181F20;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.pr-dd__panel--wide {
  width: 340px;
}

.pr-dd__search {
  position: relative;
  margin-bottom: 6px;
}

.pr-dd__search .material-symbols-outlined,
.pr-search .material-symbols-outlined {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 18px;
  color: #9ca3af;
  pointer-events: none;
}

.pr-dd__search .pr-input,
.pr-search .pr-input {
  padding-left: 34px;
}

.pr-dd__list {
  max-height: 360px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.pr-dd__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  text-align: left;
}

.pr-dd__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pr-dd__item.is-selected {
  border-left-color: #EE2445;
  background: rgba(238, 36, 69, 0.1);
}

.pr-dd__item-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.pr-dd__item-name {
  overflow: hidden;
  font-size: 10.5pt;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-dd__item-meta {
  font-size: 9pt;
  color: #9ca3af;
}

.pr-dd__needs {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #EE2445;
  color: #fff;
  font-size: 8.5pt;
  font-weight: 800;
  text-align: center;
}

.pr-dd__empty {
  padding: 12px;
  font-size: 10pt;
  color: #9ca3af;
}

.pr-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 8px;
  background: #243533;
  color: #fff;
  font-size: 8.5pt;
  font-weight: 800;
}

.pr-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr-seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 3px;
  border: 1px solid #243533;
  border-radius: 8px;
  background: #0d1010;
}

.pr-seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10pt;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}

.pr-seg button.is-active {
  background: #EE2445;
  color: #fff;
}

.pr-seg__count {
  font-size: 9pt;
  font-weight: 800;
  color: #9ca3af;
}

.pr-seg button.is-active .pr-seg__count {
  color: #fff;
}

.pr-tz__icon {
  padding: 0 4px 0 6px;
  font-size: 18px;
  color: #9ca3af;
}

.pr-tz.is-single button[data-pr-tz="local"] {
  display: none;
}

.pr-input,
.pr-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #243533;
  border-radius: 8px;
  background: #0d1010;
  color: #fff;
  font-family: inherit;
  font-size: 10.5pt;
  outline: none;
}

.pr-input:focus,
.pr-select:focus {
  border-color: #EE2445;
  box-shadow: 0 0 0 2px rgba(238, 36, 69, 0.25);
}

.pr-filters {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #243533;
  border-radius: 12px;
  background: #181F20;
}

.pr-filters__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.pr-filters__row + .pr-filters__row {
  margin-top: 10px;
}

.pr-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
}

.pr-sort .pr-select {
  width: auto;
}

.pr-reset {
  border: 0;
  background: transparent;
  color: #EE2445;
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pr-games__label {
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.pr-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #2a3638;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pr-pill-btn.is-active {
  border-color: #EE2445;
  background: rgba(238, 36, 69, 0.14);
}

.pr-pill-btn__count {
  color: rgba(255, 255, 255, 0.4);
}

.pr-pill-btn.is-active .pr-pill-btn__count {
  color: #EE2445;
}

.pr-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.pr-card {
  overflow: hidden;
  border: 1px solid #243533;
  border-radius: 12px;
  background: #181F20;
  box-shadow: 0 2pt 16pt rgba(0, 0, 0, 0.25);
}

.pr-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #243533;
  background: rgba(6, 5, 1, 0.45);
}

.pr-body {
  padding: 8px 16px 20px;
  background: #121617;
}

.pr-empty {
  margin: 16px;
  padding: 48px 24px;
  border: 1px dashed #243533;
  border-radius: 16px;
  color: #9ca3af;
  font-size: 11pt;
  text-align: center;
}

.pr-empty a {
  font-weight: 700;
}

.pr-progress {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.pr-progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #EE2445;
  transition: width 0.25s ease;
}

.pr-progress[data-pct="0"] > span { width: 0; }
.pr-progress[data-pct="5"] > span { width: 5%; }
.pr-progress[data-pct="10"] > span { width: 10%; }
.pr-progress[data-pct="15"] > span { width: 15%; }
.pr-progress[data-pct="20"] > span { width: 20%; }
.pr-progress[data-pct="25"] > span { width: 25%; }
.pr-progress[data-pct="30"] > span { width: 30%; }
.pr-progress[data-pct="35"] > span { width: 35%; }
.pr-progress[data-pct="40"] > span { width: 40%; }
.pr-progress[data-pct="45"] > span { width: 45%; }
.pr-progress[data-pct="50"] > span { width: 50%; }
.pr-progress[data-pct="55"] > span { width: 55%; }
.pr-progress[data-pct="60"] > span { width: 60%; }
.pr-progress[data-pct="65"] > span { width: 65%; }
.pr-progress[data-pct="70"] > span { width: 70%; }
.pr-progress[data-pct="75"] > span { width: 75%; }
.pr-progress[data-pct="80"] > span { width: 80%; }
.pr-progress[data-pct="85"] > span { width: 85%; }
.pr-progress[data-pct="90"] > span { width: 90%; }
.pr-progress[data-pct="95"] > span { width: 95%; }
.pr-progress[data-pct="100"] > span { width: 100%; }

.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #243533;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 10.5pt;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pr-page a.pr-btn {
  color: #fff;
}

.pr-btn .material-symbols-outlined {
  font-size: 18px;
}

.pr-btn:hover {
  border-color: rgba(238, 36, 69, 0.4);
}

.pr-btn--primary {
  border-color: #EE2445;
  background: #EE2445;
  box-shadow: 0 0 12pt rgba(238, 36, 69, 0.2);
}

.pr-btn--primary:hover {
  border-color: #C81E3A;
  background: #C81E3A;
  box-shadow: 0 10px 26px rgba(238, 36, 69, 0.35);
}

.pr-btn--ghost {
  background: transparent;
}

.pr-btn:disabled {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  cursor: not-allowed;
}

.pr-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #243533;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.pr-page a.pr-icon-btn {
  color: #fff;
}

.pr-icon-btn .material-symbols-outlined {
  font-size: 18px;
}

.pr-icon-btn:hover,
.pr-page a.pr-icon-btn:hover {
  border-color: rgba(238, 36, 69, 0.4);
  color: #EE2445;
}

.pr-icon-btn--accent {
  color: #EE2445;
}

.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #243533;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5pt;
  font-weight: 700;
  white-space: nowrap;
}

.pr-chip__count {
  font-size: 9pt;
  font-weight: 800;
  color: #9ca3af;
}

.pr-chip.is-active {
  border-color: #EE2445;
  background: rgba(238, 36, 69, 0.14);
  color: #fff;
}

.pr-chip.is-active .pr-chip__count {
  color: #EE2445;
}

.pr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid #243533;
  border-radius: 999px;
  font-size: 8.5pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.pr-pill .material-symbols-outlined {
  font-size: 14px;
}

.pr-pill--void { border-color: #243533; background: rgba(255, 255, 255, 0.04); color: #9ca3af; }
.pr-pill--exact { border-color: rgba(250, 204, 21, 0.3); background: rgba(250, 204, 21, 0.08); color: #facc15; }
.pr-pill--winner,
.pr-pill--picked { border-color: rgba(110, 231, 183, 0.3); background: rgba(110, 231, 183, 0.08); color: #6ee7b7; }
.pr-pill--missed { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.08); color: #f87171; }
.pr-pill--locked,
.pr-pill--hidden,
.pr-pill--pending { border-color: #243533; background: rgba(255, 255, 255, 0.05); color: #fff; }
.pr-pill--live { border-color: rgba(255, 92, 120, 0.35); background: rgba(255, 92, 120, 0.08); color: #ff5c78; }
.pr-pill--draw { border-color: #243533; background: rgba(255, 255, 255, 0.04); color: #9ca3af; }
.pr-pill--unsaved { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); color: #fbbf24; }
.pr-pill--needs { border-color: rgba(238, 36, 69, 0.35); background: rgba(238, 36, 69, 0.1); color: #fff; }

.pr-day + .pr-day {
  margin-top: 8px;
}

.pr-day__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 2px 10px;
}

.pr-day__label {
  font-family: "Saira Condensed", var(--font-ui, sans-serif);
  font-size: 13pt;
  font-weight: 400;
  color: #fff;
}

.pr-day__today {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(238, 36, 69, 0.16);
  color: #EE2445;
  font-size: 8.5pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pr-day__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #243533, transparent);
}

.pr-day__count {
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.pr-day__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pr-eyebrow {
  overflow: hidden;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: #EE2445;
}

.pr-unsaved {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 24px);
  max-width: 720px;
  padding: 12px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(238, 36, 69, 0.45);
  border-radius: 12px;
  background: rgba(24, 31, 32, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.pr-unsaved[hidden] {
  display: none;
}

.pr-unsaved__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pr-unsaved__text strong {
  font-size: 11pt;
  color: #fff;
}

.pr-unsaved__text span {
  font-size: 9.5pt;
  color: #9ca3af;
}

.pr-unsaved__actions {
  display: flex;
  gap: 8px;
}

.pr-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  border-radius: 10px;
  background: #181F20;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 10.5pt;
  font-weight: 700;
}

.pr-toast[hidden] {
  display: none;
}

.pr-toast .material-symbols-outlined {
  color: #6ee7b7;
}

.pr-toast.is-error {
  border-color: rgba(239, 68, 68, 0.45);
}

.pr-toast.is-error .material-symbols-outlined {
  color: #f87171;
}

.pr-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
}

@media (max-width: 1099px) {
  .pr-tabbar {
    align-items: stretch;
  }
}

@media (max-width: 759px) {
  .pr-main {
    padding: 14px 12px 40px;
  }

  .pr-hero__inner {
    padding: 18px 16px;
  }

  .pr-hero__title {
    font-size: 16pt;
  }

  .pr-stats {
    width: 100%;
  }

  .pr-stats__cell {
    flex: 1;
    padding: 0 6px;
    text-align: center;
  }

  .pr-search {
    flex-basis: 100%;
    max-width: 100%;
  }

  .pr-dd__panel,
  .pr-dd__panel--wide {
    left: 0;
    right: auto;
    width: calc(100vw - 48px);
  }

  .pr-unsaved {
    flex-direction: column;
    align-items: stretch;
  }

  .pr-unsaved__actions .pr-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-page *,
  .pr-page *::before,
  .pr-page *::after {
    transition: none !important;
    animation: none !important;
  }
}

.pr-signin {
  margin-top: 16px;
}

.pr-signin .pr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pr-body--flush {
  padding-bottom: 0;
}
