#top.home-masthead {
  background: var(--app-masthead);
  color: #f8faf4;
  border-bottom-color: #213d31;
}
html:has(body:not(.waiting-access) #top.home-masthead),
body:not(.waiting-access):has(#top.home-masthead) {
  overscroll-behavior-y: none;
}
.workspace-home.home-pull-motion {
  position: relative;
  transform: translateY(var(--home-pull-offset, 0px));
}
.workspace-home.home-pull-motion::before {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  height: 96px;
  background: #fff;
  pointer-events: none;
}
.workspace-home.home-pull-motion:not(.home-pull-tracking) {
  transition: transform .19s ease-out;
}
.brand-load-screen {
  min-height: 100vh;
  min-height: calc(100svh - var(--app-safe-top));
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 42%, #233f2a 0, #10281d 32%, #0b1d16 71%);
  color: #f8faf4;
  text-align: center;
}
.brand-load-name {
  margin-top: 12px;
  font: italic 800 clamp(38px, 10vw, 58px)/.95 'Barlow Condensed', sans-serif;
}
.brand-load-name b { color: #baf340; }
.brand-load-name small { display: block; margin-top: .25em; font-size: .36em; letter-spacing: .14em; text-transform: uppercase; color: #f4f7f1; }
.brand-load-message { color: #d2dfcb; font-size: 14px; }
.brand-load-screen.brand-load-leaving { opacity: 0; transition: opacity .22s ease; }
.brand-load-mark {
  --load-size: 112px;
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--load-size);
  height: var(--load-size);
}
.brand-load-track,
.brand-load-orbit {
  position: absolute;
  inset: 0;
  border: 2px solid #baf34033;
  border-radius: 50%;
}
.brand-load-track::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #e0f8bd22;
  border-radius: inherit;
}
.brand-load-orbit {
  border-color: #baf340 #baf34039 transparent transparent;
  transform: rotate(-34deg);
}
.brand-load-orbit::after {
  content: "";
  position: absolute;
  top: 3%;
  left: 71%;
  width: 7%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #dafb8c;
  box-shadow: 0 0 9px #baf34091;
}
.brand-load-crest {
  width: 51%;
  height: 57%;
  display: grid;
  place-items: center;
  transform-origin: center;
}
.brand-load-crest svg,
.brand-load-crest .group-icon-photo {
  width: 100%;
  height: 100%;
}
.brand-load-crest .group-icon-photo {
  height: auto;
  aspect-ratio: 1;
}
.brand-load-screen .brand-load-orbit,
.home-pull-refresh[data-mode="loading"] .brand-load-orbit {
  animation: brand-load-lap 1.15s cubic-bezier(.55,.16,.45,.84) infinite;
}
.brand-load-screen .brand-load-crest,
.home-pull-refresh[data-mode="loading"] .brand-load-crest {
  animation: brand-load-crest-pulse 1.15s ease-in-out infinite;
}
@keyframes brand-load-lap {
  to { transform: rotate(326deg); }
}
@keyframes brand-load-crest-pulse {
  0%, 100% { transform: translateY(0) scale(.96); }
  47% { transform: translateY(-3%) scale(1.06); }
}
.home-pull-refresh {
  position: fixed;
  z-index: 6;
  top: calc(var(--app-safe-top) + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 7px;
  border-radius: 999px;
  background: #0c231a;
  border: 1px solid #496557;
  color: #f8faf4;
  box-shadow: 0 3px 10px #08171038;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
.home-pull-refresh[hidden],
body:has(#top:not(.home-masthead)) .home-pull-refresh { display: none; }
.home-pull-refresh:is([data-mode="pulling"],[data-mode="loading"]) {
  top: calc(var(--app-safe-top) + var(--home-pull-offset, 0px) / 2);
  transform: translate(-50%, -50%);
}
.home-pull-refresh .brand-load-mark { --load-size: 29px; }
.home-pull-refresh .brand-load-track,
.home-pull-refresh .brand-load-orbit { border-width: 1px; }
.home-pull-refresh .brand-load-track::before { display: none; }
.home-pull-refresh:not([data-mode="loading"]) .brand-load-orbit { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .workspace-home.home-pull-motion:not(.home-pull-tracking) { transition: none; }
  .brand-load-screen .brand-load-mark *,
  .home-pull-refresh[data-mode="loading"] .brand-load-mark * { animation: none; }
}
.home-masthead .group {
  gap: 6px;
  padding: 0;
  color: #baf340;
  min-height: 44px;
}
.home-masthead .groupmark {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.home-masthead .groupmark svg:first-child {
  width: 31px;
  height: 34px;
}
.home-masthead-wordmark {
  font: italic 800 27px/.9 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-masthead .headright .feature-search,
.home-masthead .headright .bell {
  color: inherit;
  border-color: #496557;
}
.home-masthead .headright .divider {
  border-color: #496557;
}
.home-masthead .group:focus-visible,
.home-masthead .headright button:focus-visible,
.home-masthead .menu:focus-visible {
  outline: 2px solid #baf340;
  outline-offset: 3px;
}

.home-cover {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dae3d8;
  border-radius: 17px;
}
.home-cover-photo {
  display: flex;
  align-items: end;
  min-height: 308px;
  color: #fff;
  background-color: #0c231a;
  background-image: linear-gradient(180deg, transparent 29%, #0817108c 64%, #081710f0 100%), url('/img/pelada-cover.webp');
  background-size: cover;
  background-position: center 47%;
}
.home-cover-copy {
  width: 100%;
  padding: 26px;
}
.home-cover-copy h1 {
  margin: 0 0 17px;
  padding-inline-end: .12em;
  font: italic 900 clamp(45px, 4.5vw, 72px)/.88 'Barlow Condensed', sans-serif;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.home-cover-copy h1 span,
.home-cover-copy h1 strong { display: block; }
.home-cover-copy h1 strong { color: #baf340; font-size: 1.3em; }
.home-cover-copy p {
  display: flex;
  align-items: start;
  gap: 9px;
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}
.home-cover-copy p svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.home-cover-attendance { padding: 16px 20px 10px; }
.home-action-detail { margin: 7px 0 0; color: #456052; font-size: .82rem; font-weight: 700; text-align: center; }
.home-action-standalone { margin-top: 8px; padding: 12px; border-radius: 12px; background: #fff; }
.home-cover-attendance .button {
  justify-content: center;
  width: 100%;
  min-height: 48px;
  background: #baf340;
  color: #162b1a;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 800;
}
.home-cover-attendance .button:hover { background: #ace739; }
.home-cover-roster {
  min-height: 47px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 6px;
  font-size: 14px;
}
.home-cover-confirmed,
.home-cover-roster > button { display: flex; align-items: center; gap: 8px; }
.home-cover-confirmed { flex-wrap: wrap; gap: 4px 8px; }
.home-cover-keeper-note { display: block; margin-top: 2px; color: #355b4a; font-size: .75rem; font-weight: 750; }
.home-cover-confirmed > svg { flex: none; width: 19px; height: 19px; color: #456052; }
.home-cover-confirmed .avatars { flex: none; }
.home-cover-confirmed .avatars .avatar,
.home-cover-confirmed .avatars strong {
  width: 27px;
  height: 27px;
  border: 2px solid #fff;
  border-radius: 50%;
  margin-left: -4px;
}
.home-cover-confirmed .avatars .club-anonymous svg { width: 14px; height: 14px; }
.home-cover-confirmed .home-scout-avatar {
  padding: 0;
  margin-left: -4px;
  border-radius: 50%;
}
.home-cover-confirmed .home-scout-avatar .avatar { display: grid; margin-left: 0; }
.home-cover-roster > button {
  white-space: nowrap;
  min-height: 44px;
  padding: 0 0 0 4px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-cover-roster > button svg { width: 15px; }
.home-cover button:focus-visible { outline: 2px solid #275138; outline-offset: 3px; }

.home-quick .section h2 {
  font-style: italic;
  text-transform: uppercase;
}
.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-shortcut {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid #163b2a;
  border-radius: 12px;
  background-color: #0c231a;
  background-image: linear-gradient(180deg, #0718100d, #0718102e 31%, #071810ae 52%, #071810f7 100%), var(--shortcut-photo);
  background-position: center, var(--shortcut-position, center);
  background-size: cover;
  color: #fff;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.home-shortcut--draw { --shortcut-photo: url('/img/shortcut-draw.webp'); }
.home-shortcut--match { --shortcut-photo: url('/img/shortcut-match.webp'); --shortcut-position: center 55%; }
.home-shortcut--group { --shortcut-photo: url('/img/shortcut-group.webp'); --shortcut-position: center 26%; }
.home-shortcut--money { --shortcut-photo: url('/img/shortcut-money.webp'); --shortcut-position: center 56%; }
.home-shortcut-arrow {
  position: absolute;
  inset: 7px 7px auto auto;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #071810d9;
  color: #c4f561;
}
.home-shortcut-arrow svg { width: 15px; height: 15px; }
.home-shortcut-label {
  font-size: 15px;
  font-weight: 780;
  line-height: 1.15;
}
.home-shortcut:active { transform: scale(.98); }
@media (hover: hover) {
  .home-shortcut:hover { transform: translateY(-2px); border-color: #83a547; box-shadow: 0 6px 15px #17342426; }
}
@media (prefers-reduced-motion: reduce) {
  .home-shortcut { transition: none; }
}
@media (max-width: 680px) {
  .home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-shortcut { min-height: 88px; }
  .home-shortcut-label { font-size: 14px; }
  #top.home-masthead { height: 62px; }
  .home-masthead .group > svg { display: none; }
  .home-masthead .headright { gap: 5px; }
  .home-masthead .headright .feature-search,
  .home-masthead .headright .bell { width: 32px; height: 32px; padding: 0; justify-content: center; }
  #main:has(.home-cover) { padding-top: 0; }
  .home-grid:has(.home-cover) { row-gap: 16px; }
  .home-cover { margin-inline: -14px; border-width: 0 0 1px; border-radius: 0; }
  .home-cover-photo { min-height: clamp(310px, 90vw, 410px); }
  .home-cover-copy { padding: 20px; }
  .home-cover-copy h1 { font-size: clamp(42px, 13.8vw, 68px); }
  .home-cover-copy h1 strong { font-size: 1.42em; }
  .home-masthead .profileBtn .avatar svg { display: block; }
}
@media (max-width: 365px) {
  .home-masthead-wordmark { font-size: 23px; }
  .home-masthead .groupmark svg:first-child { width: 26px; height: 29px; }
  .home-masthead .groupmark .group-icon-photo { width: 27px; height: 27px; }
  .home-cover-attendance { padding-inline: 16px; }
  .home-cover-roster { gap: 6px; }
}

/* Selo de situação na capa: confirmado ou na fila. Parece estado, não ação. */
.home-status {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid #cfe6b0;
  border-radius: 12px;
  background: #f1f9e4;
  color: #1f3a24;
  text-align: left;
}
.home-status > svg:first-child { width: 26px; height: 26px; flex-shrink: 0; color: #3f7d1f; }
.home-status > svg:last-child { width: 18px; height: 18px; flex-shrink: 0; margin-left: auto; color: #6a8a66; }
.home-status span { display: grid; gap: 2px; min-width: 0; }
.home-status strong { font-size: 16px; font-weight: 800; }
.home-status small { color: #567058; font-size: 13px; font-weight: 600; }
.home-status:hover { background: #e9f5d6; }

/* Ação que desfaz (cancelar presença, sair da fila). */
.button.danger { background: #fff; color: #a3321f; border-color: #e8b9ae; }
.button.danger:hover { background: #fdf1ee; }

/* Destaques sem resultado: um cartão só. */
.home-awards-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 14px;
  padding: 16px 18px;
}
.home-awards-empty > svg { width: 28px; height: 28px; color: #6b8a5c; }
.home-awards-empty p { margin: 0; color: #2c4234; font-size: 14px; font-weight: 600; }
.home-awards-empty .cup-tools { grid-column: 1 / -1; margin: 10px 0 0; }

/* Celular deitado (tela baixa): capa mais curta para o botão principal aparecer sem rolar. */
@media (max-height: 520px) and (orientation: landscape) {
  .home-cover-photo { min-height: 176px; }
  .home-cover-copy { padding: 12px 18px; }
  .home-cover-copy h1 { margin-bottom: 8px; font-size: 38px; }
  .home-cover-copy h1 strong { font-size: 1.2em; }
  .home-cover-copy p { margin-block: 2px; font-size: 14px; }
  .home-cover-attendance { padding-block: 10px 8px; }
  .home-cover-attendance .button, .home-status { min-height: 46px; }
  #top { height: 56px; }
}
/* Situação já resolvida no cartão da Agenda: mesmo selo da capa. */
.button.is-status { background: #f1f9e4; color: #1f3a24; border-color: #cfe6b0; }
.button.is-status svg { color: #3f7d1f; }
/* Computador: o menu lateral já mostra o logo, então o topo da tela inicial mostra o grupo (igual às outras páginas). */
.home-masthead-group { display: none; }
@media (min-width: 681px) {
  .home-masthead .home-masthead-wordmark { display: none; }
  .home-masthead .home-masthead-group { display: inline; color: #eef6e6; font-size: 15px; font-weight: 800; }
  .home-masthead .groupmark:not(:has(.group-icon-photo)) { display: none; }
}
