/* Pelada Pantanal F.C. — identidade tirada do escudo:
   verde do jacaré, vermelho-tijolo da faixa, creme da barriga. */
:root {
  --bg: #f5f2ea;
  --header-crest-size: 80px;
  --surface: #ffffff;
  --surface-2: #faf7f0;
  --ink: #142019;
  --ink-2: #47564c;
  --ink-3: #7c887f;
  --line: #e7e1d3;
  --line-2: #efeadf;

  --green-950: #0d2611;
  --green-900: #15361b;
  --green-800: #1c4623;
  --green-700: #245a2c;
  --green-600: #2f7538;
  --green-500: #3d8d45;
  --green-200: #c9e0c3;
  --green-100: #e4efdf;
  --green-50: #f0f6ec;

  --brick-800: #6a2a1e;
  --brick-700: #7d3122;
  --brick-600: #8f3b2a;
  --brick-100: #f6e4de;
  --brick-50: #fbf1ee;

  --cream: #f3e4bf;
  --cream-2: #e8d3a0;

  --amber-100: #fbefd2;
  --amber-700: #8a5a0b;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgb(20 32 25 / 0.06);
  --shadow: 0 1px 2px rgb(20 32 25 / 0.05), 0 6px 18px -6px rgb(20 32 25 / 0.12);
  --shadow-lg: 0 18px 48px -12px rgb(13 38 17 / 0.35);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: 'cv11', 'ss01';
}
body.no-scroll {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
a {
  color: var(--green-700);
}
.tnum {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 2.5px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 6px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.sm {
  width: 16px;
  height: 16px;
}
.icon.lg {
  width: 24px;
  height: 24px;
}

/* ───────── Layout ───────── */
.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(32px + var(--safe-b));
}
.app.has-nav {
  padding-bottom: calc(96px + var(--safe-b));
}
.page {
  padding: 0 16px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgb(245 242 234 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar.scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.topbar .crest {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}
.topbar .titles {
  flex: 1;
  min-width: 0;
}
.topbar .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick-600);
}
.topbar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  flex: none;
}
.icon-btn:active {
  transform: scale(0.95);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--green-800);
  background: var(--green-100);
  border: 1px solid var(--green-200);
  flex: none;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 2px 10px;
}
.section-title h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-title .aside {
  font-size: 13px;
  color: var(--ink-3);
}

/* ───────── Botões ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--r);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.12s var(--ease), background 0.15s, box-shadow 0.15s, opacity 0.15s;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}
a.btn {
  text-decoration: none;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn.block {
  width: 100%;
}
.btn.lg {
  min-height: 56px;
  font-size: 16px;
  border-radius: 16px;
}
.btn.sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 12px;
}
.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 6px 16px -6px rgb(36 90 44 / 0.6);
}
.btn-primary:hover {
  background: var(--green-800);
}
.btn-brick {
  background: var(--brick-600);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.14) inset, 0 6px 16px -6px rgb(143 59 42 / 0.6);
}
.btn-brick:hover {
  background: var(--brick-700);
}
.btn-cream {
  background: var(--cream);
  color: var(--green-900);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 8px 22px -8px rgb(0 0 0 / 0.45);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost-dark {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.18);
}
.btn-text {
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink-2);
  font-weight: 600;
}
.btn-danger {
  background: var(--brick-50);
  color: var(--brick-700);
  border: 1px solid var(--brick-100);
}
.btn-whats {
  background: #1f9d55;
  color: #fff;
  box-shadow: 0 6px 16px -6px rgb(31 157 85 / 0.55);
}
.btn .spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ───────── Cards ───────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card.pad {
  padding: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 20px 20px 18px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(61 141 69 / 0.55) 0%, transparent 55%),
    linear-gradient(165deg, var(--green-800) 0%, var(--green-950) 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero::after {
  content: '';
  position: absolute;
  right: -46px;
  bottom: -40px;
  width: 210px;
  height: 210px;
  background: url('/img/logo.png') center / contain no-repeat;
  opacity: 0.1;
  z-index: -1;
  transform: rotate(-8deg);
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero .kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fe08a;
  box-shadow: 0 0 0 4px rgb(127 224 138 / 0.2);
}
.hero h2 {
  margin: 8px 0 4px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px;
  color: rgb(255 255 255 / 0.78);
}
.hero .meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero .meta .icon {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}
.hero .count-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}
.hero .count {
  font-size: 44px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.hero .count small {
  font-size: 18px;
  font-weight: 600;
  color: rgb(255 255 255 / 0.55);
  letter-spacing: -0.01em;
}
.hero .count-label {
  font-size: 13px;
  color: rgb(255 255 255 / 0.7);
  text-align: right;
}
.hero .count-label strong {
  display: block;
  color: #fff;
  font-size: 15px;
}
.hero .actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.progress {
  height: 8px;
  border-radius: 99px;
  background: var(--line-2);
  overflow: hidden;
  display: flex;
}
.progress > i {
  display: block;
  height: 100%;
  transition: width 0.5s var(--ease);
}
.progress > i + i {
  box-shadow: -1.5px 0 0 var(--surface);
}
.hero .progress,
.stat .progress {
  background: rgb(255 255 255 / 0.14);
  height: 10px;
}
.hero .progress > i + i,
.stat .progress > i + i {
  box-shadow: -2px 0 0 var(--green-900);
}
.seg-jogador {
  background: var(--cream);
}
.seg-frequente {
  background: #7fc287;
}
.seg-manual {
  background: #9cc9e6;
}
.progress .seg-default {
  background: var(--green-600);
}
.progress.full .seg-default {
  background: var(--brick-600);
}

.me-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.16);
}
.me-badge .check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #7fe08a;
  color: var(--green-950);
  flex: none;
}
.me-badge.wait .check {
  background: var(--cream);
}
.me-badge .txt {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: rgb(255 255 255 / 0.75);
}
.me-badge .txt strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

/* ───────── Agenda ───────── */
.agenda {
  display: grid;
  gap: 10px;
}
.day {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  width: 100%;
  transition: transform 0.12s var(--ease);
}
.day:active {
  transform: scale(0.985);
}
.day .date {
  width: 52px;
  height: 56px;
  border-radius: 14px;
  flex: none;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}
.day .date b {
  display: block;
  font-size: 21px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.day .date span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brick-600);
}
.day.mine .date {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}
.day.mine .date span {
  color: var(--cream);
}
.day .body {
  flex: 1;
  min-width: 0;
}
.day .row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.day .title {
  font-weight: 650;
  font-size: 15px;
}
.day .sub {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.day .progress {
  margin-top: 8px;
  height: 6px;
}
.day.dim {
  opacity: 0.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  flex: none;
}
.pill .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}
.pill-green {
  background: var(--green-100);
  color: var(--green-800);
}
.pill-brick {
  background: var(--brick-100);
  color: var(--brick-700);
}
.pill-amber {
  background: var(--amber-100);
  color: var(--amber-700);
}
.pill-gray {
  background: var(--line-2);
  color: var(--ink-2);
}
.pill-sky {
  background: #e3f0f9;
  color: #2b5e80;
}
.pill-dark {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

/* ───────── Lista de nomes ───────── */
.names {
  list-style: none;
  margin: 0;
  padding: 0;
}
.names li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line-2);
}
.names li:last-child {
  border-bottom: 0;
}
.names .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.names .who {
  flex: 1;
  min-width: 0;
}
.names .who b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.names .who small {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.names li.you {
  background: var(--green-50);
  margin: 0 -10px;
  padding: 8px 14px;
  border-radius: 12px;
  border-bottom-color: transparent;
}
.names li.you .n {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}
.names button.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  min-height: 52px;
}
.divider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-700);
}
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ───────── Formulários ───────── */
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.field .hint {
  font-size: 12.5px;
  color: var(--ink-3);
}
.input,
.textarea,
.select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 16px; /* evita zoom no iOS */
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.textarea {
  padding: 14px 16px;
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
  font-size: 15px;
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgb(47 117 56 / 0.14);
}
.input.invalid {
  border-color: var(--brick-600);
}
.input-wrap {
  position: relative;
}
.input-wrap .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.input-wrap .input {
  padding-left: 44px;
}
.input-wrap .reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.input-wrap.with-reveal .input {
  padding-right: 84px;
}
.input-wrap.with-reveal .reveal {
  min-width: 68px;
  height: 44px;
  border-radius: 8px;
}
.input-wrap.with-reveal .reveal:focus-visible {
  outline: 2px solid var(--green-600);
}
.form-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--brick-50);
  border: 1px solid var(--brick-100);
  color: var(--brick-700);
  font-size: 14px;
  font-weight: 500;
}
.form-error.show {
  display: flex;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}
.check-row input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green-700);
  flex: none;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #ebe6d9;
}
.segmented button {
  min-height: 40px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.segmented button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ───────── Auth ───────── */
.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(28px + var(--safe-t)) 20px calc(28px + var(--safe-b));
}
.auth .brand {
  text-align: center;
  margin-bottom: 26px;
}
.auth .brand img {
  width: 132px;
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 18px rgb(13 38 17 / 0.2));
}
.auth .brand h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.auth .brand p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}
.auth .card {
  padding: 18px 18px 6px;
}
.auth .segmented {
  margin-bottom: 18px;
}
.auth .foot {
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

/* ───────── Bottom sheet ───────── */
.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(13 24 16 / 0.45);
  opacity: 0;
  transition: opacity 0.22s;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgb(0 0 0 / 0.18);
  transform: translateY(100%);
  transition: transform 0.28s var(--ease);
}
.sheet-root.open .sheet-backdrop {
  opacity: 1;
}
.sheet-root.open .sheet {
  transform: translateY(0);
}
.sheet-handle {
  flex: none;
  padding: 10px 0 4px;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}
.sheet-handle::before {
  content: '';
  width: 40px;
  height: 5px;
  border-radius: 99px;
  background: #d5cebd;
}
.sheet-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 20px 12px;
  touch-action: none;
}
.sheet-head .t {
  flex: 1;
  min-width: 0;
}
.sheet-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.sheet-head p {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}
.sheet-head .icon-btn {
  width: 36px;
  height: 36px;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 20px;
}
.sheet-foot {
  flex: none;
  padding: 12px 20px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  gap: 8px;
}

.menu {
  display: grid;
  gap: 8px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s var(--ease);
}
.menu-item:active {
  transform: scale(0.985);
}
.menu-item .mi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--green-50);
  color: var(--green-700);
}
.menu-item .mi-icon.brick {
  background: var(--brick-50);
  color: var(--brick-600);
}
.menu-item .mi-icon.whats {
  background: #e3f6ea;
  color: #1f9d55;
}
.menu-item .mi-icon.sky {
  background: #e3f0f9;
  color: #2b5e80;
}
.menu-item .mi-txt {
  flex: 1;
  min-width: 0;
}
.menu-item .mi-txt b {
  display: block;
  font-weight: 650;
}
.menu-item .mi-txt small {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
}
.menu-item .chev {
  color: var(--ink-3);
}

/* ───────── Toast ───────── */
.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(18px + var(--safe-b));
  z-index: 200;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}
.app.has-nav ~ .toasts,
body.has-nav .toasts {
  bottom: calc(92px + var(--safe-b));
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--green-950);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.4);
  animation: toast-in 0.28s var(--ease);
}
.toast.error {
  background: var(--brick-700);
}
.toast .icon {
  width: 18px;
  height: 18px;
}
.toast.out {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

/* ───────── Estados ───────── */
.empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--ink-2);
}
.empty .em-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-700);
}
.empty h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
}
.empty p {
  margin: 0 auto;
  font-size: 14px;
  max-width: 300px;
}
.skeleton {
  border-radius: 18px;
  background: linear-gradient(90deg, #ece7db 0%, #f4f0e7 50%, #ece7db 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  background: var(--amber-100);
  color: var(--amber-700);
}
.notice.green {
  background: var(--green-50);
  color: var(--green-800);
}
.notice .icon {
  margin-top: 1px;
}

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

/* ═════════════ Painel admin ═════════════ */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 16px 12px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  scroll-snap-align: center;
  flex: none;
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 64px;
  padding: 8px 10px 9px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, color 0.15s, transform 0.12s var(--ease);
}
.chip:active {
  transform: scale(0.96);
}
.chip .m {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brick-600);
}
.chip .d {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.chip .c {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.chip.past {
  opacity: 0.55;
}
.chip.off .d {
  text-decoration: line-through;
}
.chip.full .c {
  color: var(--green-600);
}
.chip[aria-pressed='true'] {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
  opacity: 1;
  box-shadow: 0 8px 18px -8px rgb(28 70 35 / 0.7);
}
.chip[aria-pressed='true'] .m {
  color: var(--cream);
}
.chip[aria-pressed='true'] .c {
  color: rgb(255 255 255 / 0.75);
}
.chips-bar {
  position: sticky;
  top: calc(62px + var(--safe-t));
  z-index: 15;
  background: rgb(245 242 234 / 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 16px;
}

.stat {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 18px 18px 16px;
  color: #fff;
  background:
    radial-gradient(110% 80% at 100% 0%, rgb(61 141 69 / 0.5) 0%, transparent 55%),
    linear-gradient(165deg, var(--green-800) 0%, var(--green-950) 100%);
  box-shadow: var(--shadow-lg);
}
.stat .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.stat .label {
  font-size: 13px;
  color: rgb(255 255 255 / 0.7);
}
.stat .label b {
  display: block;
  font-size: 18px;
  color: #fff;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.stat .big {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 14px 0 12px;
}
.stat .big .num {
  font-size: 56px;
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat .big .num small {
  font-size: 22px;
  font-weight: 600;
  color: rgb(255 255 255 / 0.5);
  letter-spacing: -0.01em;
}
.stat .big .rest {
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  color: rgb(255 255 255 / 0.7);
}
.stat .big .rest b {
  display: block;
  font-size: 22px;
  color: var(--cream);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: rgb(255 255 255 / 0.78);
  font-variant-numeric: tabular-nums;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.action-main {
  margin-top: 14px;
}
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.quick button {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 4px 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  transition: transform 0.12s var(--ease);
}
.quick button:active {
  transform: scale(0.95);
}
.quick .qi {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-700);
}
.quick .qi.whats {
  background: #e3f6ea;
  color: #1f9d55;
}
.quick .qi.brick {
  background: var(--brick-50);
  color: var(--brick-600);
}

.list-card {
  padding: 4px 14px;
}
.search {
  position: relative;
  margin-bottom: 10px;
}
.search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.search .input {
  padding-left: 42px;
  min-height: 46px;
  border-radius: 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.tag .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.6;
}
.tag-link {
  background: var(--cream);
  color: #6b5216;
}
.tag-freq {
  background: var(--green-100);
  color: var(--green-800);
}
.tag-manual {
  background: #e3f0f9;
  color: #2b5e80;
}
.tag-warn {
  background: var(--brick-100);
  color: var(--brick-700);
}
.names .act {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink-3);
  flex: none;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + var(--safe-b));
}
.bottom-nav .inner {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 0;
  min-height: 54px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: 12px;
}
.bottom-nav button .ni {
  width: 54px;
  height: 30px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  transition: background 0.18s;
}
.bottom-nav button[aria-current='page'] {
  color: var(--green-800);
}
.bottom-nav button[aria-current='page'] .ni {
  background: var(--green-100);
}

.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  padding: 14px;
}
.kpi b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kpi span {
  font-size: 13px;
  color: var(--ink-3);
}

.preview-msg {
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.5;
  max-height: 46dvh;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: #e9f7ef;
  border: 1px solid #cdebd8;
  color: #143322;
  font-variant-numeric: tabular-nums;
}
.stack {
  display: grid;
  gap: 10px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: 13px;
}
.problems {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.problems li {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.file-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px dashed var(--cream-2);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 14px;
}
.file-drop input {
  display: none;
}

.invite {
  margin: 2px 0 14px;
}
.btn.xl {
  min-height: 64px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 18px;
  gap: 10px;
}
.btn-whats:hover {
  background: #1a8a4a;
}

.pick-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--green-50);
  color: var(--green-700);
  transition: background 0.15s, color 0.15s;
}
.pick-btn .spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.pick.done {
  opacity: 0.65;
}
.pick.done .pick-btn {
  background: var(--green-700);
  color: #fff;
}
.new-player {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.new-player summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  min-height: 24px;
}
.new-player summary::-webkit-details-marker {
  display: none;
}

/* ═════════════ Link da pelada: convite, confirmação e sucesso ═════════════ */
.auth .brand.compact {
  margin-bottom: 16px;
}
.auth .brand.compact img {
  width: 84px;
  margin-bottom: 10px;
}
.auth .brand.compact h1 {
  font-size: 23px;
}
.invite-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(61 141 69 / 0.55) 0%, transparent 55%),
    linear-gradient(165deg, var(--green-800) 0%, var(--green-950) 100%);
  box-shadow: var(--shadow-lg);
}
.invite-card .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cream);
}
.invite-card .kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fe08a;
  box-shadow: 0 0 0 4px rgb(127 224 138 / 0.2);
}
.invite-card b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.invite-card .meta {
  font-size: 14px;
  color: rgb(255 255 255 / 0.78);
}
.switch-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1.5px dashed var(--cream-2);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.data-card {
  padding: 4px 16px;
}
.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.data-row:last-child {
  border-bottom: 0;
}
.data-row span {
  color: var(--ink-3);
  flex: none;
}
.data-row b {
  font-weight: 650;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.done-page {
  min-height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
}
.done-page .crest {
  width: 56px;
  height: auto;
  margin-bottom: 26px;
}
.done-check {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-600);
  box-shadow: 0 0 0 10px var(--green-100), 0 18px 40px -10px rgb(36 90 44 / 0.6);
  animation: pop 0.5s var(--ease) both;
}
.done-check .icon {
  width: 46px;
  height: 46px;
  stroke-width: 3;
}
.done-check .icon path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.45s 0.25s var(--ease) forwards;
}
.done-page.wait .done-check {
  background: var(--amber-700);
  box-shadow: 0 0 0 10px var(--amber-100), 0 18px 40px -10px rgb(138 90 11 / 0.5);
}
.done-page.wait .done-check .icon path {
  stroke-dashoffset: 0;
  animation: none;
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.done-page h1 {
  margin: 30px 0 6px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.done-page .lead {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
}
.done-card {
  width: 100%;
  margin-top: 26px;
  padding: 6px 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.done-card .when {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.done-card .when .date {
  width: 50px;
  height: 54px;
  border-radius: 14px;
  flex: none;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--green-700);
  color: #fff;
}
.done-card .when .date b {
  display: block;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}
.done-card .when .date span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}
.done-card .when > div:last-child b {
  display: block;
  font-size: 16px;
}
.done-card .when > div:last-child span {
  font-size: 13.5px;
  color: var(--ink-3);
}
.done-actions {
  width: 100%;
  margin-top: 22px;
}
.done-page .foot {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ═════════════ Marca: escudo em destaque + "PANTANAL F.C." ═════════════ */
.wordmark {
  font-size: clamp(17px, 5.3vw, 22px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: #202020;
  white-space: nowrap;
}
.wordmark span {
  color: inherit;
}
.topbar {
  padding-top: calc(8px + var(--safe-t));
  padding-bottom: 8px;
}
.topbar .crest {
  width: var(--header-crest-size);
  height: var(--header-crest-size);
}
.topbar .titles h1 {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}
.chips-bar {
  top: calc(var(--header-crest-size) + 16px + var(--safe-t));
}
.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 28px;
}
.lockup img,
.auth .brand .lockup img {
  width: clamp(80px, 26vw, 112px);
  height: auto;
  flex: none;
  margin: 0;
}
.lockup .wordmark {
  font-size: clamp(18px, 5.8vw, 26px);
}
.auth .brand .lockup {
  margin-bottom: 20px;
}
@media (max-width: 340px) {
  :root { --header-crest-size: 72px; }
  .topbar { gap: 8px; }
  .topbar .wordmark { font-size: 16px; }
}

/* Box "Ainda não se cadastrou?" em destaque verde */
.switch-card {
  justify-items: center;
  gap: 4px;
  margin-top: 16px;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--green-100) 100%);
  border: 1.5px solid var(--green-200);
  box-shadow: 0 10px 24px -14px rgb(36 90 44 / 0.45);
}
.switch-card .sc-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-600);
  box-shadow: 0 0 0 6px rgb(61 141 69 / 0.15);
}
.switch-card b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-900);
}
.switch-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--green-800);
}
.switch-card .btn {
  margin-top: 12px;
  background: var(--green-600);
}
.switch-card .btn:hover {
  background: var(--green-700);
}
/* Frase de apoio do cadastro sempre em uma linha (encolhe um pouco em telas estreitas) */
.switch-card {
  padding-left: 14px;
  padding-right: 14px;
}
.switch-card span {
  white-space: nowrap;
  font-size: clamp(10px, 3.3vw, 14px);
  letter-spacing: -0.01em;
}

/* Páginas do cadastro e da revisão de presença pelo convite. */
.registration-invite {
  width: 100%;
  margin-top: 26px;
  text-align: left;
}
.registration-invite .invite-card {
  margin-bottom: 0;
}
.confirm-page {
  max-width: 440px;
  margin: 0 auto;
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
}
.confirm-page .lockup {
  justify-content: center;
}
.confirm-page h1 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.confirm-page .data-row {
  flex-direction: column;
  gap: 5px;
}
.confirm-page .data-row b {
  text-align: left;
}
.confirm-actions {
  margin-top: 20px;
}

/* Toda a linha abre as opções; os três pontos indicam essa ação. */
.player-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.player-more {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #202020;
  background: var(--surface-2);
}
.names button.row:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: -2px;
  border-radius: var(--r-sm);
}

/* Prévia dos avisos recebidos pelo organizador. */
.push-preview { display: flex; align-items: center; gap: 12px; }
.push-preview img { flex: none; border-radius: 10px; }
.push-preview div { min-width: 0; }
.push-preview b, .push-preview span { display: block; }
.push-preview b { font-size: 15px; }
.push-preview span { margin-top: 3px; font-size: 13px; color: var(--ink-3); }
