:root {
  --ink: #102019;
  --ink-soft: #3d5248;
  --muted: #6b7f74;
  --paper: #f3f6f3;
  --paper-2: #e7eee8;
  --line: #cfdad2;
  --pitch: #0f2a1d;
  --pitch-2: #163828;
  --leaf: #1f9d57;
  --leaf-deep: #157a42;
  --sun: #e8b84a;
  --danger: #c23b3b;
  --danger-bg: #fdecec;
  --shadow: 0 10px 28px rgba(16, 32, 25, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --sidebar-width: 200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  font-size: 14px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.lead {
  color: var(--ink-soft);
  max-width: 34ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 157, 87, 0.28);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--secondary:hover {
  background: var(--paper-2);
}

.btn--ghost {
  width: 100%;
  background: transparent;
  color: #d7e6db;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: rgba(31, 157, 87, 0.12);
  color: var(--leaf-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.status-chip--ok {
  color: #166534;
  background: #dcfce7;
}

.status-chip--warn {
  color: #9a3412;
  background: #ffedd5;
}

.status-chip--muted {
  color: #64748b;
  background: #f1f5f9;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.stats-row__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm);
}

.stats-row__item strong {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 720px) {
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert--error {
  background: var(--danger-bg);
  color: var(--danger);
}

.alert--dev {
  background: rgba(232, 184, 74, 0.18);
  color: #7a5a10;
}

.alert--ok {
  background: rgba(31, 157, 87, 0.12);
  color: var(--leaf-deep);
}

.btn--small {
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
}

.btn--danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.btn--danger:hover {
  filter: brightness(0.97);
}

.page-intro--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.875rem;
}

.data-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #f8fbf9;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.avatar--placeholder,
.avatar--initials {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  user-select: none;
}

.avatar--placeholder {
  background: rgba(31, 157, 87, 0.12);
  color: var(--leaf-deep);
}

.player-cell {
  display: block;
  min-width: 0;
}

.player-cell strong {
  font-weight: 600;
}

.player-cell .muted {
  margin-left: 0.25rem;
  font-weight: 400;
}

.rate-pill {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  padding: 0.15rem 0.4rem;
  margin-right: 0.2rem;
  border-radius: 8px;
  background: rgba(31, 157, 87, 0.12);
  color: var(--leaf-deep);
  font-family: var(--font-display);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.player-form,
.form-section {
  margin-top: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.form-grid--rates {
  margin-top: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field--full {
  grid-column: 1 / -1;
}

.star-rate {
  display: grid;
  gap: 0.45rem;
}

.star-rate__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.star-rate__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.star-rate__stars {
  display: inline-flex;
  gap: 0.15rem;
}

.star-rate__star {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c5d2c9;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.star-rate__glyph {
  display: block;
  line-height: 1;
}

.star-rate__star:hover,
.star-rate__star:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.star-rate__star.is-active {
  color: var(--sun);
}

.star-rate__star.is-half {
  color: #c5d2c9;
}

.star-rate__star.is-half .star-rate__glyph {
  background: linear-gradient(90deg, var(--sun) 50%, #c5d2c9 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.rate-pill--none {
  background: rgba(138, 148, 144, 0.16);
  color: #6b7570;
}

.star-rate__value {
  min-width: 3.5rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(31, 157, 87, 0.1);
  color: var(--leaf-deep);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.field.has-error .star-rate__value {
  background: var(--danger-bg);
  color: var(--danger);
}


.field select {
  width: 100%;
  min-height: 36px;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--danger);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.82rem;
}

.hint,
.section-hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-section {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.form-section h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.photo-uploader {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
}

.photo-preview,
.photo-preview img,
.photo-preview__placeholder {
  width: 120px;
  height: 120px;
  border-radius: 18px;
}

.photo-preview img {
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.photo-preview img[hidden],
.photo-preview__placeholder[hidden] {
  display: none !important;
}

.photo-preview__placeholder {
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.5rem;
  border: 1px dashed #b7c9bc;
}

.photo-uploader__controls input[type="file"] {
  width: 100%;
  max-width: 320px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.checkbox__box {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: #fff;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.checkbox__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s var(--ease);
}

.checkbox input:checked + .checkbox__box {
  background: var(--leaf);
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(31, 157, 87, 0.15);
}

.checkbox input:checked + .checkbox__box::after {
  transform: rotate(45deg) scale(1);
}

.checkbox input:focus-visible + .checkbox__box {
  box-shadow: 0 0 0 3px rgba(31, 157, 87, 0.2);
}

.checkbox--card {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.checkbox--card:hover {
  border-color: #b7c9bc;
}

.checkbox__label {
  font-weight: 500;
  color: var(--ink);
}

.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.form-grid--status {
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}

.field--injury {
  grid-column: 1 / -1;
}

.injury-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.injury-dates__item {
  display: grid;
  gap: 0.3rem;
}

.injury-dates__item label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.injury-dates__item input {
  width: 100%;
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 20, 15, 0.55);
}

.crop-modal[hidden] {
  display: none !important;
}

.crop-modal__dialog {
  width: min(100%, 640px);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.crop-modal__header {
  padding: 1rem 1.15rem 0.5rem;
}

.crop-modal__header h3 {
  margin-bottom: 0.2rem;
}

.crop-modal__header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.crop-modal__stage {
  height: min(55vh, 420px);
  background: #111;
}

.crop-modal__stage img {
  display: block;
  max-width: 100%;
}

.crop-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
}

body.crop-open {
  overflow: hidden;
}

/* Auth */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(31, 157, 87, 0.35), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(232, 184, 74, 0.18), transparent 40%),
    linear-gradient(160deg, #0b1f16 0%, #143024 48%, #0d2419 100%);
  color: #eef7f1;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: rise 0.7s var(--ease) both;
}

.auth-visual__glow {
  position: absolute;
  inset: auto -10% 10% 20%;
  height: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.auth-visual__mark {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.auth-visual__tag {
  position: relative;
  margin-top: 1.25rem;
  max-width: 24ch;
  color: rgba(238, 247, 241, 0.78);
  font-size: 1.05rem;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 246, 243, 0.95)),
    var(--paper);
  animation: fade-up 0.55s 0.1s var(--ease) both;
}

.auth-panel__header {
  margin-bottom: 1.75rem;
}

.auth-panel__header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.65rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:disabled {
  background: var(--paper-2);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.field textarea {
  width: 100%;
  min-height: 7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(31, 157, 87, 0.15);
}

/* App shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.75rem;
  background:
    radial-gradient(circle at top left, rgba(31, 157, 87, 0.22), transparent 45%),
    linear-gradient(180deg, var(--pitch) 0%, var(--pitch-2) 100%);
  color: #e8f2ec;
  z-index: 40;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0.4rem;
}

.sidebar__logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--leaf), var(--leaf-deep));
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.sidebar__brand-text {
  display: grid;
  gap: 0.05rem;
}

.sidebar__brand-text strong {
  font-size: 0.88rem;
}

.sidebar__brand-text span {
  font-size: 0.7rem;
  color: rgba(232, 242, 236, 0.65);
}

.sidebar__nav {
  display: grid;
  gap: 0.15rem;
  flex: 1;
  align-content: start;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(232, 242, 236, 0.78);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar__link.is-active {
  background: rgba(31, 157, 87, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(31, 157, 87, 0.35);
}

.sidebar__icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar__icon svg {
  width: 15px;
  height: 15px;
}

.sidebar__footer {
  display: grid;
  gap: 0.5rem;
  padding: 0.25rem 0.2rem 0;
}

.sidebar__footer .btn {
  min-height: 34px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.sidebar__user {
  font-size: 0.72rem;
  color: rgba(232, 242, 236, 0.62);
  word-break: break-all;
  padding: 0 0.35rem;
}

.sidebar-backdrop {
  display: none;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem clamp(0.85rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 243, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar__menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.topbar__menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

.topbar__title {
  flex: 1;
  min-width: 0;
}

.topbar__title h1 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.topbar__title p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.content {
  padding: clamp(0.85rem, 2vw, 1.25rem);
  animation: fade-up 0.45s var(--ease) both;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(31, 157, 87, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.hero-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.hero-panel__copy p:last-child {
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.stat__label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat__hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.backup-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.join-settings {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.join-settings--off {
  border-color: rgba(183, 129, 3, 0.35);
  background:
    linear-gradient(135deg, rgba(232, 184, 74, 0.12), rgba(255, 255, 255, 0.98));
}

.join-settings--waitlist {
  border-color: rgba(37, 99, 155, 0.3);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.98));
}

.join-settings h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.join-settings__copy p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 52ch;
  margin: 0;
}

.join-settings__copy em {
  font-style: normal;
  color: var(--ink);
}

.join-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill--on {
  color: var(--leaf-deep);
  background: rgba(31, 157, 87, 0.14);
}

.status-pill--off {
  color: #8a5f00;
  background: rgba(232, 184, 74, 0.28);
}

.status-pill--waitlist {
  color: #1d4f7a;
  background: rgba(59, 130, 246, 0.16);
}

.backup-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.backup-panel__copy p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 52ch;
}

.backup-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sql-import-details {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
}

.page-intro {
  margin-bottom: 0.9rem;
}

.page-intro h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: 0.25rem;
}

.page-intro p {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #fff, #f8fbf9),
    #fff;
  border: 1px dashed #b7c9bc;
}

.empty-state__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(31, 157, 87, 0.12);
  color: var(--leaf-deep);
  font-family: var(--font-display);
  font-weight: 700;
}

.empty-state h3 {
  font-size: 1.2rem;
}

.empty-state p {
  color: var(--muted);
  max-width: 40ch;
}

.empty-state--compact {
  padding: 1rem 1.15rem;
}

.pending-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(183, 129, 3, 0.35);
  background:
    linear-gradient(135deg, rgba(232, 184, 74, 0.18), rgba(255, 248, 230, 0.95));
  color: var(--ink);
}

.pending-banner__copy {
  display: grid;
  gap: 0.2rem;
  min-width: min(100%, 18rem);
}

.pending-banner__copy strong {
  font-size: 0.98rem;
  color: #8a5f00;
}

.pending-banner__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.pending-banner .btn {
  flex-shrink: 0;
}

.history-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(37, 99, 235, 0.28);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(239, 246, 255, 0.96));
  color: var(--ink);
}

.history-banner__copy {
  display: grid;
  gap: 0.2rem;
  min-width: min(100%, 18rem);
}

.history-banner__copy strong {
  font-size: 0.98rem;
  color: #1e40af;
}

.history-banner__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.history-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.history-logs {
  margin-top: 0.5rem;
}

.badge--editor {
  background: rgba(71, 85, 105, 0.12);
  color: #334155;
}

tr.is-pending-player {
  background: rgba(232, 184, 74, 0.1);
}

tr.is-inactive-player {
  background: rgba(194, 59, 59, 0.08);
}

.stat--pending {
  border-color: rgba(183, 129, 3, 0.35);
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.95), #fff);
}

.stat--pending .stat__value {
  color: #b78103;
}

.player-name--external {
  color: #1f6feb;
}

.player-name--pending {
  color: #b78103;
}

.player-name--resigned {
  color: #8a9490;
}

.player-name--injured {
  color: #c23b3b;
}

a.player-name-link {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

a.player-name-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.player-name-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}

.player-status-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.injury-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #c23b3b;
  flex-shrink: 0;
}

.injury-icon svg {
  width: 14px;
  height: 14px;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
}

.players-list {
  display: grid;
  gap: 0.75rem;
}

.players-search {
  display: grid;
  gap: 0.55rem;
}

.players-search__input {
  width: 100%;
  max-width: 28rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #c8d5cb;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.players-search__input:focus {
  outline: 2px solid rgba(31, 157, 87, 0.25);
  border-color: var(--leaf);
}

.players-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.players-filters__btn {
  appearance: none;
  border: 1px solid #c8d5cb;
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.players-filters__btn:hover {
  border-color: var(--leaf);
  color: var(--leaf-deep);
}

.players-filters__btn.is-active {
  border-color: rgba(31, 157, 87, 0.45);
  background: rgba(31, 157, 87, 0.12);
  color: var(--leaf-deep);
}

.players-search__meta,
.players-search__empty {
  margin: 0;
  font-size: 0.85rem;
}

.data-table--players .col-lp {
  width: 2.75rem;
  min-width: 2.75rem;
  max-width: 2.75rem;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.data-table--players .col-avatar {
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  padding-right: 0.35rem;
}

.data-table--players tbody tr {
  transition: background-color 0.15s ease;
}

.data-table--players tbody tr:hover {
  background: rgba(31, 157, 87, 0.06);
}

.data-table--players tbody tr.is-pending-player:hover {
  background: rgba(232, 184, 74, 0.18);
}

.data-table--players tbody tr.is-inactive-player:hover {
  background: rgba(194, 59, 59, 0.14);
}

.data-table--players tbody tr.is-pending-player.is-inactive-player:hover {
  background: rgba(194, 59, 59, 0.14);
}

.data-table--players .col-row-actions {
  width: 1%;
  white-space: nowrap;
  padding-left: 0.25rem;
  padding-right: 0.5rem;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

.data-table--players tbody tr:hover .row-actions,
.data-table--players tbody tr:focus-within .row-actions {
  opacity: 1;
}

.row-action-form {
  display: inline-flex;
  margin: 0;
}

.row-action {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.row-action svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.row-action:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--leaf-deep);
}

.row-action--danger:hover {
  background: var(--danger-bg);
  border-color: rgba(194, 59, 59, 0.25);
  color: var(--danger);
}

.row-action--approve {
  color: var(--leaf-deep);
}

.row-action--approve:hover {
  background: rgba(31, 157, 87, 0.12);
  border-color: rgba(31, 157, 87, 0.35);
  color: var(--leaf-deep);
}

.player-row-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.row-action--extra {
  width: auto;
  height: 1.85rem;
  padding: 0 0.55rem;
  border-color: var(--line);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.row-action--extra.is-active,
.row-action--extra[aria-pressed="true"] {
  background: rgba(31, 157, 87, 0.14);
  border-color: rgba(31, 157, 87, 0.45);
  color: var(--leaf-deep);
}

.data-table--players tbody tr.is-extra-game {
  box-shadow: inset 3px 0 0 var(--leaf);
}

.row-action:focus-visible {
  outline: 2px solid rgba(31, 157, 87, 0.35);
  outline-offset: 1px;
  opacity: 1;
}

.status-legend__item::before {
  content: "";
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  vertical-align: middle;
}

.status-legend__item--external::before {
  background: #1f6feb;
}

.status-legend__item--pending::before {
  background: #b78103;
}

.status-legend__item--resigned::before {
  background: #8a9490;
}

.status-legend__item--injured::before {
  background: #c23b3b;
}

.status-legend__item--inactive::before {
  background: #c23b3b;
}

.status-legend__item--extra-game::before {
  background: var(--leaf);
}

.status-legend__item--no-rate::before {
  background: #8a9490;
  box-shadow: inset 0 0 0 1px #6b7570;
}

.status-legend__item--present::before {
  background: var(--leaf);
}

.status-legend__item--planned::before {
  background: #8ecea8;
}

.status-legend__item--absent::before {
  background: var(--danger);
}

.link-strong {
  font-weight: 600;
  color: var(--leaf-deep);
}

.link-strong:hover {
  text-decoration: underline;
}

.page-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.avatar--sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.avatar--lg {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  font-size: 1.85rem;
}

.player-profile {
  display: grid;
  gap: 1.25rem;
}

.player-profile__main {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.player-profile__identity {
  flex: 1;
  min-width: 12rem;
}

.player-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

.player-profile__meta > span {
  display: grid;
  gap: 0.15rem;
}

.player-profile__privacy--missing {
  color: var(--danger);
  font-weight: 600;
}

.player-profile__rates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.section-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.section-heading-row h3 {
  margin-bottom: 0.2rem;
}

.section-heading-row .section-hint {
  margin: 0;
}

.section-heading-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-items: center;
}

.form-grid--contribution {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-actions--compact {
  margin-top: 0.65rem;
}

.contribution-form {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7faf8;
}

.data-table tr.is-editing {
  background: #eef8f1;
}

@media (max-width: 720px) {
  .form-grid--contribution {
    grid-template-columns: 1fr;
  }
}

.stats--compact {
  margin-bottom: 1.25rem;
}

.player-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.player-pick {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfb;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.player-pick.is-selected {
  border-color: rgba(31, 157, 87, 0.45);
  background: rgba(31, 157, 87, 0.06);
}

.player-pick__main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.player-pick__main input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.player-pick__team select {
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.player-pick__team[hidden] {
  display: none !important;
}

.match-players {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.match-players__empty {
  padding: 0.65rem 0.8rem;
  border: 1px dashed #b7c9bc;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: #f8fbf9;
  font-size: 0.85rem;
}

.match-player-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.player-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin-top: 0.2rem;
}

.player-rates__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.player-rates__label {
  font-size: 0.72rem;
  color: var(--muted);
}

.rate-pill--soft {
  background: rgba(16, 32, 25, 0.06);
  color: var(--ink-soft);
}

.player-draw-counts {
  gap: 0.35rem;
}

.draw-count {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 2.1rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.draw-count__label {
  opacity: 0.85;
}

.draw-count--a {
  background: rgba(31, 111, 235, 0.12);
  color: #1f6feb;
}

.draw-count--b {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.team-icons {
  display: inline-flex;
  gap: 0.3rem;
}

.team-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.team-icon--a.is-active {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #fff;
}

.team-icon--b.is-active {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

.team-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 0.4rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #fff;
  vertical-align: middle;
}

.team-badge--a {
  background: #1f6feb;
}

.team-badge--b {
  background: #d97706;
}

.add-player-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.add-player-row select {
  width: 100%;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.875rem;
}

.draw-teams-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.draw-teams-row .hint {
  margin: 0;
  flex: 1;
  min-width: 12rem;
}

.match-anon-heading {
  display: none;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.teams-editor {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.teams-editor__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.team-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.team-row__input {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.teams-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.team-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.team-card--muted {
  background: #f7faf8;
}

.team-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.team-card__header h3 {
  font-size: 1.05rem;
}

.team-strength {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.25rem 0 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  background: #f4f7f5;
  border: 1px solid var(--line);
}

.team-strength__power {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.team-strength__label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-strength__value {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.team-strength__parts {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.team-power-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 0 0.25rem;
}

.team-power-summary__team {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  background: #f4f7f5;
  border: 1px solid var(--line);
  min-width: 7.5rem;
}

.team-power-summary__label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-power-summary__value {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.team-move-btn {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.team-move-btn:hover {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.team-move-btn--right {
  margin-left: 0.15rem;
}

.team-move-btn--left {
  margin-right: 0.15rem;
}

.match-show.is-move-busy .team-move-btn,
.match-show.is-move-busy .goal-stepper {
  opacity: 0.7;
  pointer-events: none;
}

.match-show.is-anonymous [data-anon-hide],
.match-show.is-anonymous .avatar,
.match-show.is-anonymous .team-move-btn {
  display: none !important;
}

.match-show.is-anonymous [data-anon-only] {
  display: block !important;
}

.match-show.is-anonymous .draw-teams-row {
  margin-bottom: 2.25rem;
}

.match-show.is-anonymous .player-list__item {
  padding: 0.2rem 0;
}

.match-show.is-anonymous .player-name-anon {
  font-weight: 600;
  color: inherit;
}

.player-list__lp {
  display: none;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 2.05rem;
  height: 2.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
  color: #fff;
  text-align: center;
  clip-path: polygon(
    22% 8%,
    78% 8%,
    100% 38%,
    82% 46%,
    82% 100%,
    18% 100%,
    18% 46%,
    0 38%
  );
}

.player-list__lp--a {
  background: #1f6feb;
}

.player-list__lp--b {
  background: #d97706;
}

.match-show.is-anonymous .player-list__lp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.player-list__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.match-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 157, 87, 0.12), rgba(31, 157, 87, 0.03)),
    #fff;
  border: 1px solid var(--line);
}

.match-scoreboard__team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.match-scoreboard__team--a {
  background: rgba(31, 111, 235, 0.12);
  color: #1f6feb;
}

.match-scoreboard__team--b {
  background: rgba(220, 70, 70, 0.12);
  color: #c43c3c;
}

.match-scoreboard__score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.match-scoreboard__score span {
  opacity: 0.35;
  font-weight: 500;
}

.goal-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(16, 32, 25, 0.05);
}

.goal-stepper--readonly {
  padding: 0.25rem 0.55rem;
  background: transparent;
}

.goal-stepper__btn {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 32, 25, 0.08);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), opacity 0.15s var(--ease);
}

.goal-stepper__btn:hover:not(:disabled) {
  background: var(--leaf);
  color: #fff;
}

.goal-stepper__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.goal-stepper__value {
  min-width: 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.match-show.is-goals-busy .goal-stepper {
  opacity: 0.7;
  pointer-events: none;
}

.goal-stepper--own {
  margin-left: 0;
  background: rgba(196, 60, 60, 0.08);
}

.goal-stepper + .goal-stepper--own {
  margin-left: 0.15rem;
}

.goal-stepper--own .goal-stepper__btn {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.95rem;
}

.goal-stepper--own .goal-stepper__btn:hover:not(:disabled) {
  background: #c43c3c;
}

.goal-stepper--own .goal-stepper__value {
  min-width: 1.1rem;
  font-size: 0.85rem;
  color: #c43c3c;
}

.goal-stepper__tag {
  padding: 0 0.15rem 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c43c3c;
  cursor: help;
}

.match-score-pill {
  display: inline-block;
  min-width: 3.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(31, 157, 87, 0.1);
  color: var(--leaf-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.player-cell--inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stats-pair-sep {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.table-wrap--tight {
  width: max-content;
  max-width: 100%;
}

.data-table--tight {
  width: auto;
  min-width: 0;
}

.data-table--tight th,
.data-table--tight td {
  padding: 0.28rem 0.4rem;
  white-space: nowrap;
}

.data-table--tight th:first-child,
.data-table--tight td:first-child,
.data-table--tight th:last-child,
.data-table--tight td:last-child {
  width: 1%;
  text-align: right;
}

.data-table--tight .data-table__lp {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.data-table--tight .data-table__num {
  width: 1%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table--tight .avatar--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.68rem;
}

.data-table--tight .player-cell--inline {
  gap: 0.35rem;
}

.data-table--tight .rate-pill {
  margin-right: 0;
}

.scorers-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin: 0 0 0.65rem;
}

.scorers-controls__month {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.scorers-controls__month label {
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}

.scorers-controls__month select {
  min-height: 32px;
  min-width: 10.5rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.scorers-controls__month select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(31, 157, 87, 0.16);
  outline: none;
}

.scorers-controls__limit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.scorers-controls__limit input {
  width: 3.4rem;
  min-height: 32px;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.scorers-controls__limit input:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(31, 157, 87, 0.16);
  outline: none;
}

.scorers-controls__of {
  color: var(--muted);
}

.scorers-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
  max-width: 28rem;
}

.scorers-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.scorers-summary__item strong {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.scorers-summary__item span {
  font-size: 0.8rem;
  color: var(--muted);
}

.scorers-block {
  margin: 0 0 1.25rem;
}

.scorers-block > h3 {
  margin: 0 0 0.35rem;
}

.scorers-block > .section-hint {
  margin-top: 0;
}

.form-section[data-scorers-section] > h3 {
  margin-bottom: 0.45rem;
}

.form-section[data-scorers-section].is-anonymous [data-anon-hide],
.form-section[data-scorers-section].is-anonymous .avatar {
  display: none !important;
}

.form-section[data-scorers-section].is-anonymous .player-name-anon {
  font-weight: 600;
  color: inherit;
}

@media (max-width: 560px) {
  .scorers-summary {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 240px;
    justify-content: flex-end;
  }

  .auth-visual__mark {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
    max-width: 14ch;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, var(--sidebar-width));
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.25);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 15, 0.45);
    border: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease);
    z-index: 30;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar__menu {
    display: inline-block;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .backup-panel {
    grid-template-columns: 1fr;
  }

  .join-settings {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .form-grid--rates,
  .form-grid--status {
    grid-template-columns: 1fr;
  }

  .photo-uploader {
    grid-template-columns: 1fr;
  }

  .player-pick-grid,
  .teams-board {
    grid-template-columns: 1fr;
  }

  .match-player-row {
    grid-template-columns: auto 1fr auto;
  }

  .match-player-row .btn {
    grid-column: 1 / -1;
  }

  .add-player-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar__meta {
    display: none;
  }

  .hero-panel__actions {
    width: 100%;
  }

  .hero-panel__actions .btn {
    width: 100%;
  }
}

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

/* Match rating links + public wizard */
.player-list__tools {
  margin-left: auto;
  display: flex;
  align-items: flex-start;
}

.btn--icon {
  position: relative;
  min-width: 34px;
  padding-inline: 0.45rem;
}

.btn--icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.btn--icon-pending {
  color: #8a9490;
  border-color: #cfd6d2;
  background: #f3f5f4;
}

.btn--icon-pending:hover {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.btn--icon-sent {
  color: #166534;
  border-color: #86efac;
  background: #dcfce7;
}

.btn--icon-sent:hover {
  color: #14532d;
  background: #bbf7d0;
}

.rating-link-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 32, 25, 0.55);
}

.rating-link-modal[hidden] {
  display: none !important;
}

.rating-link-modal__dialog {
  width: min(100%, 520px);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(16, 32, 25, 0.18);
}

.rating-link-modal__header h3 {
  margin: 0 0 0.2rem;
}

.rating-link-modal__header p {
  margin: 0;
  color: var(--muted);
}

.rating-link-modal__body {
  margin: 1rem 0;
}

.rating-link-modal__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.rating-link-modal__row input {
  width: 100%;
  min-height: 36px;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.rating-link-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.rating-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 32, 25, 0.55);
}

.rating-admin-modal[hidden] {
  display: none !important;
}

.rating-admin-modal__dialog {
  width: min(100%, 640px);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(16, 32, 25, 0.18);
}

.rating-admin-modal__header h3 {
  margin: 0 0 0.2rem;
}

.rating-admin-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.rating-public {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 157, 87, 0.12), transparent 40%),
    var(--paper);
}

.rating-shell {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
  display: grid;
  gap: 0.85rem;
}

.rating-welcome {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 157, 87, 0.16), rgba(31, 157, 87, 0.04)),
    #fff;
  border: 1px solid rgba(31, 157, 87, 0.22);
}

.rating-welcome__photo {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  align-self: stretch;
  padding: 0;
  border: none;
  border-right: 1px solid rgba(31, 157, 87, 0.18);
  background: #0f1a14;
  cursor: pointer;
  overflow: hidden;
}

.rating-welcome__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating-welcome__photo-hint {
  position: absolute;
  inset: auto 0 0;
  padding: 0.4rem 0.3rem;
  background: linear-gradient(transparent, rgba(10, 20, 15, 0.85));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.rating-welcome__photo:hover .rating-welcome__photo-hint,
.rating-welcome__photo:focus-visible .rating-welcome__photo-hint {
  opacity: 1;
}

.rating-welcome__photo:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: -2px;
}

.rating-welcome__copy {
  flex: 1;
  padding: 1rem 1.2rem;
}

.rating-welcome__hello {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
}

.rating-welcome__hint {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.rating-public .star-rate__stars {
  gap: 0.2rem;
}

.rating-public .star-rate__star {
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.rating-public .star-rate__value {
  min-width: 4rem;
  font-size: 0.95rem;
  padding: 0.35rem 0.65rem;
}

@media (max-width: 640px) {
  .rating-welcome__photo {
    flex-basis: 80px;
    width: 80px;
  }

  .rating-welcome__photo-hint {
    opacity: 1;
  }

  .rating-public .star-rate__star {
    width: 42px;
    height: 42px;
    font-size: 1.75rem;
  }
}

.rating-photo-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid #f0c36a;
  background: linear-gradient(135deg, #fff8e8, #fff3d6);
}

.rating-photo-banner__copy {
  flex: 1 1 220px;
}

.rating-photo-banner__copy strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.rating-photo-banner__copy p {
  margin: 0;
  color: #6b5420;
}

.rating-why {
  margin: 0 0 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(31, 157, 87, 0.22);
  background:
    linear-gradient(135deg, rgba(31, 157, 87, 0.1), rgba(243, 246, 243, 0.95));
}

.rating-why strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--leaf-deep);
}

.rating-why p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rating-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 32, 25, 0.06);
}

.rating-wall__card {
  display: grid;
  gap: 0.85rem;
}

.rating-wall__title {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.45rem);
}

.rating-wall__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.rating-wall__link {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rating-wall__form {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
}

.rating-wall__check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rating-wall__check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--leaf);
}

.rating-wall__check a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rating-wall__submit {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.rating-progress {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.rating-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.rating-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-deep));
}

.rating-player__identity {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  margin: 0.35rem 0 1.1rem;
}

.rating-player__name {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 1.25rem;
  font-weight: 650;
}

.rating-player__rates {
  display: grid;
  gap: 0.85rem;
}

.rating-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem 0.65rem;
  align-items: center;
  margin-top: 1.25rem;
}

.rating-nav .btn {
  min-height: 42px;
  padding: 0.5rem 1rem;
}

.rating-nav [data-rating-prev] {
  justify-self: start;
}

.rating-nav [data-rating-skip] {
  justify-self: center;
}

.rating-nav [data-rating-next] {
  justify-self: end;
}

.rating-nav [data-rating-prev]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--skip {
  min-width: 6.75rem;
  background: #f6f8f7;
  color: #5f6f66;
  border: 1px dashed #b8c5bc;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn--skip::before {
  content: '↷';
  margin-right: 0.35rem;
  font-size: 0.95em;
  opacity: 0.85;
}

.btn--skip:hover {
  background: #eef3f0;
  color: var(--ink-soft);
  border-color: #8fa399;
  border-style: solid;
}

.btn--skip:focus-visible {
  outline: 2px solid rgba(31, 157, 87, 0.35);
  outline-offset: 2px;
}

.rating-nav .btn--primary {
  min-width: 6.75rem;
}

.rating-nav .btn--secondary {
  min-width: 6.75rem;
}

@media (max-width: 520px) {
  .rating-nav {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'prev next'
      'skip skip';
  }

  .rating-nav [data-rating-prev] {
    grid-area: prev;
    width: 100%;
  }

  .rating-nav [data-rating-next] {
    grid-area: next;
    width: 100%;
  }

  .rating-nav [data-rating-skip] {
    grid-area: skip;
    width: 100%;
    min-width: 0;
  }
}

.rating-nav--done {
  justify-content: flex-end;
}

.rating-done h2 {
  margin: 0 0 0.4rem;
}

.rating-done > p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.rating-summary {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.rating-summary__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
}

.rating-summary__name {
  font-weight: 600;
  color: var(--ink);
}

.rating-summary__rate {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--leaf-deep);
  white-space: nowrap;
}

.rating-thanks {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(31, 157, 87, 0.22);
  background: linear-gradient(135deg, rgba(31, 157, 87, 0.1), rgba(243, 246, 243, 0.95));
  text-align: left;
}

.rating-thanks strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  color: var(--leaf-deep);
}

.rating-thanks p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rating-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 20, 15, 0.55);
}

.rating-photo-modal[hidden] {
  display: none !important;
}

.rating-photo-modal__dialog {
  width: min(100%, 560px);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rating-photo-modal__header {
  padding: 1rem 1.15rem 0.5rem;
}

.rating-photo-modal__header h3 {
  margin: 0 0 0.25rem;
}

.rating-photo-modal__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.rating-photo-modal__pick {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem 0.25rem;
}

.rating-photo-modal__crop .crop-modal__stage {
  margin-top: 0.5rem;
}

.rating-photo-modal__status {
  margin: 0.75rem 1.15rem 0;
}

.rating-photo-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
}

/* Public landing — single screen, RWD */
body.page-landing {
  background: var(--pitch);
  font-size: 16px;
}

.landing {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4.5vw, 2.75rem);
  overflow-x: hidden;
  overflow-y: auto;
  color: #f4faf6;
}

.landing__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, rgba(15, 42, 29, 0.92), rgba(22, 56, 40, 0.88)),
    url("/img/img_pilka_nozna_morasko.jpg") center / cover no-repeat;
}

.landing__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  opacity: 0.45;
}

.landing__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: landing-float 9s var(--ease) infinite alternate;
}

.landing__orb--one {
  top: -4rem;
  right: -3rem;
  width: 14rem;
  height: 14rem;
  background: rgba(31, 157, 87, 0.35);
}

.landing__orb--two {
  bottom: 8%;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(232, 184, 74, 0.18);
  animation-delay: -3s;
}

.landing__shell {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  display: grid;
  gap: 1.6rem;
  justify-items: stretch;
  animation: fade-up 0.65s 0.05s var(--ease) both;
}

.landing__intro {
  text-align: center;
  display: grid;
  justify-items: center;
}

.landing__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6.5vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.landing__headline {
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(238, 247, 241, 0.92);
  
}

.landing__lead {
  margin: 0 0 1.1rem;
  color: rgba(238, 247, 241, 0.76);
  font-size: clamp(1.05rem, 3.4vw, 1.2rem);
  line-height: 1.55;
  max-width: 34ch;
}

.landing__note {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 184, 74, 0.35);
  background: rgba(232, 184, 74, 0.12);
  color: rgba(255, 236, 190, 0.95);
  font-size: clamp(0.98rem, 3.2vw, 1.08rem);
  line-height: 1.45;
  text-align: left;
}

.landing__note-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #f0d078;
}

.landing__note-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.landing__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.landing__facts li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing__fact-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(31, 157, 87, 0.18);
  color: #7ddea8;
}

.landing__fact-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.landing__fact-body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  align-content: center;
}

.landing__fact-body--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.landing__fact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 247, 241, 0.5);
}

.landing__fact-value {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  color: #eef7f1;
  word-break: break-word;
}

.landing-map-btn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #f0d078;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.landing-map-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.landing-map-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffe09a;
  filter: none;
}

.landing-btn {
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
  text-decoration: none;
  width: auto;
}

.landing-form {
  display: grid;
  gap: 1rem;
  width: 100%;
  padding: 1.4rem 1.25rem 1.35rem;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 20px 44px rgba(0, 0, 0, 0.28);
  text-align: left;
  animation: fade-up 0.6s 0.1s var(--ease) both;
}

.landing-form__top {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.landing-form__heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.landing-form__sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.landing-form__waitlist {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 155, 0.28);
  background: rgba(59, 130, 246, 0.08);
}

.landing-form__waitlist-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4f7a;
}

.landing-form__waitlist p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.landing-form__hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.landing-form .field label,
.landing-form .star-rate__label {
  font-size: 1rem;
  color: var(--ink-soft);
}

.landing-form .field input {
  min-height: 3.15rem;
  font-size: 1.1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
}

.landing-form .star-rate {
  gap: 0.55rem;
}

.landing-form .star-rate__row {
  flex-wrap: wrap;
  gap: 0.4rem;
}

.landing-form .star-rate__stars {
  gap: 0.15rem;
  flex-wrap: wrap;
}

.landing-form .star-rate__star {
  font-size: 1.4rem;
  min-width: 1.85rem;
  min-height: 1.85rem;
}

.landing-form .star-rate__value {
  color: var(--ink-soft);
  font-size: 1rem;
}

.landing-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.2rem;
}

.landing-form__note {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.landing-form__privacy {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.landing-form__privacy:hover {
  color: var(--leaf);
}

.landing-closed {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.5rem 1.35rem 1.55rem;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  animation: fade-up 0.5s var(--ease) both;
}

.landing-closed__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a5f00;
}

.landing-closed h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  max-width: 16ch;
  line-height: 1.25;
}

.landing-closed p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 34ch;
}

.landing-closed__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.4rem;
}

.landing-closed__actions .btn {
  text-decoration: none;
}

.landing-success {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.5rem 1.35rem 1.55rem;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  animation: fade-up 0.5s var(--ease) both;
}

.landing-success__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.landing-success h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4.5vw, 1.75rem);
  max-width: 14ch;
  line-height: 1.25;
}

.landing-success p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 32ch;
}

.landing-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.4rem;
}

.landing-success__actions .btn {
  text-decoration: none;
}

.landing .alert {
  margin: 0;
  font-size: 1rem;
}

@keyframes landing-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, 12px, 0) scale(1.04);
  }
}

@media (max-width: 480px) {
  .landing {
    align-items: start;
    padding: 1.25rem 1rem 1.75rem;
  }

  .landing__shell {
    width: 100%;
    gap: 1.35rem;
  }

  .landing__facts li {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .landing__fact-icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .landing-success__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-success__actions .landing-btn {
    width: 100%;
    justify-content: center;
  }

  .landing-closed__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-closed__actions .landing-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 720px) {
  .landing__shell {
    width: min(100%, 54rem);
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem 2.75rem;
    align-items: center;
  }

  .landing__intro {
    text-align: left;
    justify-items: start;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
  }

  .landing__lead {
    max-width: 38ch;
  }

  .landing-success {
    justify-items: start;
    text-align: left;
  }

  .landing-success__actions {
    justify-content: flex-start;
  }

  .landing-closed {
    justify-items: start;
    text-align: left;
  }

  .landing-closed__actions {
    justify-content: flex-start;
  }
}

@media (min-width: 960px) {
  .landing__shell {
    width: min(100%, 60rem);
    gap: 2.25rem 3.25rem;
  }

  .landing__title {
    font-size: 2.65rem;
  }

  .landing__headline {
    font-size: 1.5rem;
  }

  .landing__lead {
    font-size: 1.22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing__orb,
  .landing__shell,
  .landing-form,
  .landing-success {
    animation: none;
  }

  .landing-closed {
    animation: none;
  }
}

/* Public legal / RODO page */
body.page-legal {
  background: var(--pitch);
}

.legal {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 1.75rem 1.15rem 2.5rem;
  color: #f4faf6;
  overflow: hidden;
}

.legal__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(15, 42, 29, 0.92), rgba(22, 56, 40, 0.88)),
    url("/img/img_pilka_nozna_morasko.jpg") center / cover no-repeat;
}

.legal__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  opacity: 0.45;
}

.legal__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: landing-float 9s var(--ease) infinite alternate;
}

.legal__orb--one {
  top: -4rem;
  right: -3rem;
  width: 14rem;
  height: 14rem;
  background: rgba(31, 157, 87, 0.35);
}

.legal__orb--two {
  bottom: 8%;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(232, 184, 74, 0.18);
  animation-delay: -3s;
}

.legal__shell {
  display: grid;
  gap: 1.5rem;
  width: min(100%, 42rem);
  margin: 0 auto;
}

.legal__header {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  animation: fade-up 0.45s var(--ease) both;
}

.legal__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd9b4;
}

.legal__title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.15;
  color: #fff;
}

.legal__lead {
  margin: 0;
  color: rgba(244, 250, 246, 0.82);
  font-size: 1.05rem;
  line-height: 1.5;
}

.legal__back {
  margin-top: 0.35rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.legal__back:hover {
  background: rgba(255, 255, 255, 0.2);
}

.legal__content {
  display: grid;
  gap: 1.35rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  animation: fade-up 0.55s var(--ease) 0.08s both;
}

.legal__section {
  display: grid;
  gap: 0.55rem;
}

.legal__section + .legal__section {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.legal__section h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--pitch);
}

.legal__section p,
.legal__section li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.legal__section ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.legal__section a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal__contact-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--leaf-deep);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.legal__contact-btn:hover {
  color: var(--leaf);
}

.legal__contact-btn--footer {
  color: #c8eed6;
}

.legal__contact-btn--footer:hover {
  color: #fff;
}

.legal__section code {
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--pitch);
}

.legal__updated {
  margin-top: 0.25rem !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

.legal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  color: rgba(244, 250, 246, 0.7);
  font-size: 0.9rem;
}

.legal__footer a {
  color: #c8eed6;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 20, 15, 0.55);
  box-sizing: border-box;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal__dialog {
  width: min(100%, 40rem);
  overflow: visible;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  position: relative;
}

.contact-modal__header {
  position: relative;
  padding-right: 2rem;
  margin-bottom: 1rem;
}

.contact-modal__header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.contact-modal__header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-modal__close {
  position: absolute;
  top: -0.2rem;
  right: -0.25rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__close:hover {
  background: var(--line);
  color: var(--ink);
}

.contact-modal__form {
  display: grid;
  gap: 0.85rem;
}

.contact-modal__grid {
  display: grid;
  gap: 0.85rem;
}

.contact-modal__form .field textarea {
  min-height: 5.5rem;
}

.contact-modal__form-error {
  margin: 0;
}

.contact-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

@media (min-width: 560px) {
  .contact-modal__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .legal {
    padding: 2.5rem 1.5rem 3rem;
  }

  .legal__content {
    padding: 1.75rem 1.75rem 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal__orb,
  .legal__header,
  .legal__content {
    animation: none;
  }
}

/* Contact messages (admin) */
tr.is-unread-message td {
  font-weight: 700;
}

.contact-messages__sender {
  display: grid;
  gap: 0.2rem;
  min-width: 10rem;
}

.contact-messages__name {
  color: var(--ink);
}

.contact-messages__email {
  color: var(--leaf-deep);
  font-size: 0.92rem;
  font-weight: inherit;
  text-decoration: none;
  word-break: break-all;
}

.contact-messages__email:hover {
  text-decoration: underline;
}

.contact-messages__date {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: inherit;
}

.contact-messages__body {
  max-width: 36rem;
}

.contact-messages__text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  font-weight: inherit;
  color: var(--ink-soft);
}

tr.is-unread-message .contact-messages__text,
tr.is-unread-message .contact-messages__date {
  color: var(--ink);
}

.data-table--messages td.actions {
  vertical-align: top;
  white-space: nowrap;
}

/* Banner artboard — 150 × 100 cm (3:2), print-ready */
body.page-banner {
  background: #0a1a12;
  font-size: 16px;
}

.banner-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.banner-page__chrome {
  display: grid;
  gap: 0.85rem;
  width: min(100%, 56rem);
  margin-inline: auto;
  color: rgba(238, 247, 241, 0.72);
}

.banner-page__chrome-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.banner-page__meta {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.banner-page__sep {
  margin: 0 0.45rem;
  opacity: 0.45;
}

.banner-page__bleed {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(238, 247, 241, 0.86);
  cursor: pointer;
  user-select: none;
}

.banner-page__bleed input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--leaf);
}

.banner-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.banner-page__actions .btn {
  width: auto;
}

.banner-page__actions .btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.banner-page__status {
  margin: 0;
  font-size: 0.88rem;
  color: #f0d078;
}

.banner-export-host,
.banner-art--export {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.banner-art {
  position: relative;
  isolation: isolate;
  width: min(100%, 56rem);
  margin-inline: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  color: #f4faf6;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.banner-art__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(155deg, rgba(15, 42, 29, 0.84), rgba(22, 56, 40, 0.76)),
    url("/img/img_pilka_nozna_morasko.jpg") center / cover no-repeat;
}

.banner-art__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 4.5% 4.5%;
  mask-image: radial-gradient(ellipse at 40% 45%, #000 30%, transparent 78%);
  opacity: 0.35;
}

.banner-art__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: none;
}

.banner-art__orb--one {
  top: -18%;
  right: -14%;
  width: 58%;
  height: 72%;
  background: radial-gradient(
    circle at center,
    rgba(31, 157, 87, 0.42) 0%,
    rgba(31, 157, 87, 0.18) 35%,
    rgba(31, 157, 87, 0) 70%
  );
}

.banner-art__orb--two {
  bottom: -22%;
  left: -16%;
  width: 62%;
  height: 76%;
  background: radial-gradient(
    circle at center,
    rgba(232, 184, 74, 0.22) 0%,
    rgba(232, 184, 74, 0.08) 38%,
    rgba(232, 184, 74, 0) 72%
  );
}

/* Trim stage — all type/layout units are relative to this box (same as HTML preview). */
.banner-art__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  container-type: size;
}

.banner-art__logo {
  position: absolute;
  z-index: 2;
  right: 5.5cqi;
  bottom: 5.5cqh;
  left: auto;
  width: 18.5cqi;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.banner-art__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3.8cqh;
  padding: 7cqh 7cqi;
}

.banner-art__title {
  margin: 0;
  display: grid;
  gap: 0.08em;
  font-family: var(--font-display);
  font-size: 9.4cqi;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.banner-art__title-line {
  display: block;
  white-space: nowrap;
}

.banner-art__headline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 3.4cqi;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(238, 247, 241, 0.92);
  white-space: nowrap;
}

.banner-art__schedule {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 1.2cqi 2.4cqi;
  font-family: var(--font-body);
  font-size: 4cqi;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(238, 247, 241, 0.9);
  white-space: nowrap;
}

.banner-art__schedule-label,
.banner-art__schedule-time {
  white-space: nowrap;
  flex-shrink: 0;
}

.banner-art__schedule-label {
  letter-spacing: -0.01em;
}

.banner-art__schedule-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: -0.02em;
  color: #f0d078;
}

.banner-art__rule {
  width: 12cqi;
  height: 0.45cqi;
  min-height: 3px;
  margin: 0.4cqh 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), rgba(232, 184, 74, 0.85));
}

.banner-art__cta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8cqi 1.4cqi;
  font-size: 3.2cqi;
  line-height: 1.25;
}

.banner-art__cta-label {
  font-family: var(--font-body);
  font-weight: 500;
  color: rgba(238, 247, 241, 0.78);
}

.banner-art__url {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f4faf6;
}

.banner-art__fb {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.2cqi;
  font-size: 3cqi;
  line-height: 1.2;
  color: rgba(238, 247, 241, 0.9);
}

.banner-art__fb-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  color: #7ddea8;
}

.banner-art__fb-icon svg {
  width: 100%;
  height: 100%;
}

.banner-art__fb-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media print {
  .banner-page__chrome {
    display: none !important;
  }

  .banner-art {
    box-shadow: none;
  }
}

/* 404 page */

.page-404 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pitch);
  overflow: hidden;
}

.page-404__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-404__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-404__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.page-404__orb--one {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(31, 157, 87, 0.25), transparent 70%);
}

.page-404__orb--two {
  width: 400px;
  height: 400px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(232, 184, 74, 0.15), transparent 70%);
}

.page-404__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  padding: 2.5rem 1.5rem;
}

.page-404__content {
  text-align: center;
}

.page-404__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(135deg, var(--leaf) 0%, var(--sun) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.page-404__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
}

.page-404__text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 36ch;
  margin: 0 auto 2rem;
}

.page-404__actions {
  display: flex;
  justify-content: center;
}

.page-404__btn {
  font-size: 1rem;
  padding: 0.7rem 2rem;
}

.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.stats-tabs__link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8d5cb;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.stats-tabs__link:hover {
  border-color: var(--leaf);
  color: var(--leaf-deep);
}

.stats-tabs__link.is-active {
  border-color: rgba(31, 157, 87, 0.45);
  background: rgba(31, 157, 87, 0.12);
  color: var(--leaf-deep);
}

.attendance-matrix {
  max-height: calc(100vh - 10.5rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.attendance-matrix__table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: max-content;
}

.attendance-matrix__col-player {
  width: 18rem;
}

.attendance-matrix__col-match {
  width: 2.25rem;
}

.attendance-matrix__player {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 18rem;
  min-width: 18rem;
  max-width: 18rem;
  padding: 0.55rem 0.8rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
  border-bottom: 1px solid var(--line);
}

.attendance-matrix thead .attendance-matrix__player {
  top: 0;
  z-index: 5;
  background: #f8fbf9;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}

.attendance-matrix tbody .attendance-matrix__player .muted {
  font-weight: 500;
  font-size: 0.9rem;
}

.attendance-matrix__match {
  position: sticky;
  top: 0;
  z-index: 3;
  width: 2.25rem;
  min-width: 2.25rem;
  max-width: 2.25rem;
  padding: 0.55rem 0 0.5rem;
  background: #f8fbf9;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  vertical-align: bottom;
  box-shadow: 0 1px 0 var(--line);
}

.attendance-matrix__date {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.15;
}

.attendance-matrix__date:hover {
  color: var(--leaf-deep);
  text-decoration: underline;
}

.attendance-matrix__match.is-future .attendance-matrix__date {
  color: var(--ink-soft);
  font-weight: 600;
}

.attendance-matrix__cell {
  width: 2.25rem;
  min-width: 2.25rem;
  max-width: 2.25rem;
  padding: 0.35rem 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  vertical-align: middle;
}

.attendance-matrix__match:last-child,
.attendance-matrix__cell:last-child {
  border-right: 1px solid var(--line);
}

.attendance-matrix tbody tr:hover .attendance-matrix__cell,
.attendance-matrix tbody tr:hover .attendance-matrix__player {
  background: #f4faf6;
}

.attendance-matrix__separator {
  height: 0;
  pointer-events: none;
}

.attendance-matrix__separator .attendance-matrix__player,
.attendance-matrix__separator .attendance-matrix__cell {
  padding: 0;
  height: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  box-shadow: none;
}

.attendance-matrix tbody tr.attendance-matrix__separator:hover .attendance-matrix__cell,
.attendance-matrix tbody tr.attendance-matrix__separator:hover .attendance-matrix__player {
  background: transparent;
}

.attendance-matrix tbody .attendance-matrix__player .link-strong.player-name--resigned,
.attendance-matrix tbody .attendance-matrix__player .link-strong.player-name--external {
  color: inherit;
}

.attendance-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.attendance-icon svg {
  width: 20px;
  height: 20px;
}

.attendance-icon circle {
  fill: currentColor;
}

.attendance-icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attendance-icon--present {
  color: var(--leaf);
}

.attendance-icon--planned {
  color: #8ecea8;
}

.attendance-icon--absent {
  color: var(--danger);
}

.attendance-na {
  color: #c5d0c8;
  font-size: 0.7rem;
}

/* Match SMS invitations */
.match-invites {
  display: grid;
  gap: 1.25rem;
}

.match-invites__bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
}

.match-invites__status {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  background: rgba(31, 157, 87, 0.1);
  color: var(--leaf-deep);
  font-size: 0.9rem;
}

.match-invites__status.is-error {
  background: rgba(176, 48, 48, 0.1);
  color: var(--danger);
}

.data-table--invites {
  min-width: 980px;
}

.data-table--invites .col-lp {
  width: 3rem;
  text-align: center;
  color: var(--muted);
}

.data-table--invites .col-row-actions {
  width: 1%;
  white-space: nowrap;
}

.match-invites__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #eef2ef;
  color: var(--ink-soft);
}

.match-invites__badge.is-pending {
  background: #f3efe6;
  color: #8a6a2f;
}

.match-invites__badge.is-sent {
  background: rgba(31, 157, 87, 0.14);
  color: var(--leaf-deep);
}

.match-invites__badge.is-reply-accepted {
  background: rgba(31, 157, 87, 0.16);
  color: var(--leaf-deep);
}

.match-invites__badge.is-reply-declined {
  background: rgba(176, 48, 48, 0.12);
  color: var(--danger);
}

.match-invites__badge.is-reply-other {
  background: #eef1f6;
  color: #445066;
}

.match-invites__badge.is-reply-none {
  background: #f3efe6;
  color: #8a6a2f;
}

.match-invites__badge.is-reply-late {
  margin-left: 0.35rem;
  background: rgba(176, 48, 48, 0.12);
  color: var(--danger);
}

.match-invites__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
}

.match-invites__badge.is-inbound-saved {
  background: rgba(31, 157, 87, 0.16);
  color: var(--leaf-deep);
}

.match-invites__badge.is-inbound-unmatched {
  background: #f3efe6;
  color: #8a6a2f;
}

.match-invites__badge.is-inbound-parse_error,
.match-invites__badge.is-inbound-unauthorized,
.match-invites__badge.is-inbound-error {
  background: rgba(176, 48, 48, 0.12);
  color: var(--danger);
}

.data-table--inbound-logs {
  min-width: 720px;
}

.match-invites__msg-id {
  font-size: 0.78rem;
  word-break: break-all;
}

.match-invites__row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.btn--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn--with-icon svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
