:root {
  --green: #239321;
  --green-dark: #0e551f;
  --green-deep: #062b1d;
  --lime: #72c933;
  --teal: #159f91;
  --blue: #1678cf;
  --orange: #f29916;
  --violet: #7d42d8;
  --rose: #ed416a;
  --red: #e43f32;
  --ink: #14212f;
  --muted: #6e7783;
  --line: rgba(18, 33, 47, 0.1);
  --white: #ffffff;
  --soft: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 50px rgba(6, 32, 23, 0.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #102417;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(7, 36, 20, 0.28), rgba(6, 30, 17, 0.72)),
    url("./assets/park-bg-lite.jpg") center top / cover no-repeat;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(16, 72, 22, 0.12), rgba(10, 43, 23, 0.76)),
    rgba(8, 45, 19, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.app-version-badge {
  position: fixed;
  top: 8px;
  right: max(8px, calc((100vw - 520px) / 2 + 8px));
  z-index: 30;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(8, 45, 19, 0.7);
  color: rgba(255, 255, 255, 0.9);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.app-content {
  min-height: 100dvh;
}

.screen {
  display: none;
  min-height: calc(100dvh - 78px);
  padding: 18px 18px 22px;
}

.screen.is-active {
  display: block;
}

.is-hidden {
  display: none !important;
}

.hero-panel {
  color: var(--white);
  padding: 20px 10px 6px;
}

.brand-row {
  display: grid;
  grid-template-columns: 1fr 48px 48px auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-lockup strong {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.brand-lockup span {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.icon-link,
.sos-link,
.icon-btn,
.round-map-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.icon-link {
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  text-decoration: none;
}

.icon-link img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.sos-link {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #25581e;
  overflow: hidden;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.sos-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.brand-row .icon-link,
.brand-row .sos-link {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.brand-row .sos-link {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(8, 34, 21, 0.18);
}

.brand-row .sos-link span {
  display: block;
  color: #25581e;
}

.brand-row .icon-link img,
.brand-row .sos-link img {
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28));
}

.next-game-chip {
  min-width: 110px;
  text-align: right;
  border: 0;
  color: var(--white);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.next-game-chip strong {
  display: block;
  font-size: 15px;
  line-height: 1.05;
}

.next-game-chip small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.next-game-chip:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 5px;
  border-radius: 10px;
}

.search-bar {
  height: 66px;
  margin: 26px 0 12px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(5, 29, 18, 0.18);
}

.search-bar svg {
  width: 29px;
  height: 29px;
  color: var(--green);
}

.search-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
}

.search-bar input::placeholder {
  color: #a1a6ad;
}

.search-bar button {
  border: 0;
  background: transparent;
  color: var(--green);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.today-panel,
.map-panel,
.nearby-section {
  position: relative;
  margin-top: 16px;
}

.today-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 95% 12%, rgba(58, 179, 117, 0.24), transparent 34%),
    rgba(3, 44, 49, 0.92);
  border-radius: 22px;
  color: var(--white);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow);
}

.section-heading,
.map-title-row,
.plain-header,
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading > div,
.map-title-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.map-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.section-heading h1,
.section-heading h2,
.map-title-row h2,
.plain-header h1,
.admin-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.section-heading h1,
.map-title-row h2,
.plain-header h1 {
  font-size: 22px;
  line-height: 1.05;
}

.section-heading.compact h2 {
  color: var(--white);
  font-size: 18px;
}

.route-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(8, 34, 21, 0.16);
}

.route-mode-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  opacity: 0.42;
  filter: grayscale(0.9) brightness(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, filter 0.18s ease;
}

.route-mode-btn.is-active {
  opacity: 1;
  filter: none;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 43, 27, 0.16);
  transform: translateY(-1px);
}

.route-mode-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.section-heading svg {
  width: 27px;
  height: 27px;
}

.ghost-btn,
.solid-btn,
.outline-btn {
  min-height: 38px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 800;
}

.ghost-btn {
  color: var(--white);
  background: rgba(60, 157, 43, 0.95);
  padding: 0 13px;
}

.ghost-btn svg,
.solid-btn svg,
.outline-btn svg {
  width: 18px;
  height: 18px;
}

.solid-btn {
  color: var(--white);
  background: var(--green);
  padding: 0 18px;
  box-shadow: 0 12px 24px rgba(35, 147, 33, 0.24);
}

.outline-btn {
  color: var(--green);
  background: var(--white);
  border: 1px solid rgba(35, 147, 33, 0.18);
  padding: 0 14px;
}

.solid-btn.small,
.outline-btn.small {
  min-height: 34px;
  font-size: 13px;
}

.icon-btn,
.round-map-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.event-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 34px;
  scrollbar-width: none;
  margin-top: 13px;
  padding-inline: 34px;
  touch-action: pan-x;
}

.event-carousel::-webkit-scrollbar {
  display: none;
}

.event-card {
  --event-edit-size: 32px;
  --event-thumb-size: 90px;
  flex: 0 0 clamp(238px, 82%, 320px);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: var(--event-thumb-size) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 98px;
  border: 0;
  text-align: left;
  color: var(--white);
  background: transparent;
  padding: 0;
}

.event-card img {
  width: var(--event-thumb-size);
  height: var(--event-thumb-size);
  border-radius: 9px;
  object-fit: cover;
}

.event-card .card-edit-badge {
  top: 5px;
  right: auto;
  left: calc(var(--event-thumb-size) - var(--event-edit-size) - 4px);
  width: var(--event-edit-size);
  height: var(--event-edit-size);
  color: #111820;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(3, 17, 12, 0.22);
}

.event-card .card-edit-badge svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.event-card > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.event-card h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-meta,
.place-meta,
.tiny-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-meta,
.event-card .tiny-row {
  gap: 7px;
  row-gap: 5px;
}

.event-card .tiny-row {
  align-items: flex-start;
  flex-wrap: nowrap;
}

.event-card .tiny-row svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--white);
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.next {
  background: var(--blue);
}

.status-pill.later {
  background: #f0a21a;
}

.event-card small,
.event-card span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.event-card small {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  transform: translateY(-14%);
}

.carousel-nav.prev {
  left: 8px;
}

.carousel-nav.next {
  right: 8px;
}

.map-panel {
  background: var(--soft);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.filter-dock {
  margin-top: 14px;
  padding: 8px 10px 4px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.screen-map > .filter-row.large {
  margin-top: 14px;
  padding: 8px 10px 4px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.map-title-row {
  padding: 4px 4px 10px;
}

.map-title-row span,
.plain-header span,
.admin-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-canvas {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #dcebdc;
  border: 1px solid rgba(9, 46, 28, 0.08);
  isolation: isolate;
}

.home-map {
  height: 430px;
}

.city-map {
  height: calc(100dvh - 320px);
  min-height: 460px;
  border-radius: 20px;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-control-attribution {
  display: none;
}

.map-pin {
  width: var(--pin-size, 42px);
  height: var(--pin-size, 42px);
  border-radius: 50% 50% 50% 10px;
  background: var(--pin);
  display: grid;
  place-items: center;
  color: #fff;
  transform: rotate(-45deg);
  box-shadow: 0 8px 18px rgba(7, 21, 30, 0.2), inset 0 0 0 3px rgba(255, 255, 255, 0.9);
  transition: width 0.22s ease, height 0.22s ease, border-radius 0.22s ease, box-shadow 0.22s ease;
}

.map-pin svg,
.map-pin img {
  width: calc(var(--pin-size, 42px) * 0.52);
  height: calc(var(--pin-size, 42px) * 0.52);
  transform: rotate(45deg);
  stroke-width: 2.7;
}

.map-pin.is-mini {
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(7, 21, 30, 0.16), inset 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.map-pin.is-mini svg {
  opacity: 0;
}

.capivara-marker-icon {
  background: transparent;
  border: 0;
}

.capivara-marker-icon img {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-top: 0;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 76px;
  min-height: 84px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #1d2630;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 8px 4px;
  opacity: 1;
  scroll-snap-align: start;
  touch-action: manipulation;
  transition: background 0.18s ease, transform 0.18s ease;
}

.filter-chip.is-selected {
  background: color-mix(in srgb, var(--filter), transparent 88%);
  transform: translateY(-2px);
}

.filter-chip.is-selected .filter-icon {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.filter-chip.is-selected > span:last-child {
  color: color-mix(in srgb, var(--filter), #13202d 25%);
  font-weight: 950;
}

.filter-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--filter);
  box-shadow: 0 8px 14px color-mix(in srgb, var(--filter), transparent 72%);
  transition: transform 0.18s ease, outline-color 0.18s ease;
}

.filter-icon svg {
  width: 23px;
  height: 23px;
}

.filter-chip span {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.12;
  font-weight: 800;
}

.empty-event {
  grid-template-columns: 1fr;
  min-height: 90px;
  padding: 8px;
}

.nearby-section {
  padding: 0 0 4px;
}

.place-list,
.agenda-list,
.profile-grid {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.place-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.place-card img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  border-radius: 12px;
}

.place-card h3 {
  margin: 2px 0 4px;
  font-size: 20px;
  line-height: 1.08;
}

.place-type {
  color: var(--muted);
  font-size: 14px;
}

.rating {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0;
}

.place-meta {
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.place-meta.muted {
  color: var(--ink);
  font-weight: 600;
}

.place-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.favorite-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(20, 33, 47, 0.12);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.favorite-btn.is-active {
  color: var(--red);
  background: #fff1ef;
}

.route-btn {
  flex: 1;
}

.tv-card,
.profile-card,
.stats-card,
.admin-panel,
.agenda-card,
.empty-state {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.tv-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  padding: 12px;
  cursor: pointer;
}

.tv-thumb {
  position: relative;
}

.tv-thumb img {
  width: 128px;
  height: 172px;
  object-fit: cover;
  border-radius: 14px;
}

.tv-thumb span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.tv-card h2 {
  margin: 8px 0 8px;
  font-size: 21px;
}

.tv-card p {
  color: var(--muted);
  line-height: 1.4;
}

.plain-header {
  color: var(--white);
  padding: 22px 4px 16px;
}

.plain-header h1 {
  margin-top: 4px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.plain-header span {
  color: rgba(255, 255, 255, 0.72);
}

.plain-header .round-map-btn {
  flex: 0 0 auto;
}

.map-full-wrap {
  position: relative;
  margin-top: 12px;
}

.game-fab {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 550;
  min-height: 48px;
  padding: 5px 14px 5px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: #8b643e;
  box-shadow: 0 14px 32px rgba(57, 37, 18, 0.26);
  font-weight: 900;
}

.game-fab img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.game-fab.is-cooling-down {
  background: rgba(74, 82, 75, 0.92);
}

.capivara-challenge-hud {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 560;
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  color: #fff;
  background: rgba(5, 77, 39, 0.9);
  box-shadow: 0 12px 30px rgba(4, 45, 24, 0.24);
  backdrop-filter: blur(9px);
  transform: translateX(-50%);
  pointer-events: none;
}

.capivara-challenge-hud.is-visible {
  display: flex;
}

.capivara-challenge-hud img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.capivara-challenge-hud strong,
.capivara-challenge-hud span {
  display: block;
}

.capivara-challenge-hud strong {
  font-size: 22px;
  line-height: 1;
}

.capivara-challenge-hud span {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
}

.map-legend {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 540;
  display: block;
}

.legend-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 0;
  padding: 0 12px 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: var(--ink);
}

.legend-button span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.legend-button strong {
  font-size: 12px;
  font-weight: 900;
}

.agenda-card {
  position: relative;
  padding: 14px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  cursor: pointer;
}

.agenda-card.is-race {
  border-color: rgba(18, 168, 103, 0.28);
  box-shadow: 0 16px 36px rgba(8, 58, 31, 0.16);
}

.event-card {
  position: relative;
}

.edit-inline-btn,
.card-edit-badge,
.edit-round-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(9, 38, 20, 0.18);
}

.edit-inline-btn,
.card-edit-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
}

.card-edit-badge {
  pointer-events: auto;
}

.edit-inline-btn svg,
.card-edit-badge svg,
.edit-round-btn svg {
  width: 17px;
  height: 17px;
}

.modal-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.edit-place-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(20, 112, 31, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.edit-place-action svg {
  width: 16px;
  height: 16px;
}

.agenda-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.agenda-card h2 {
  margin: 2px 0 7px;
  font-size: 19px;
}

.agenda-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.race-agenda-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.race-chip,
.race-countdown {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.race-chip {
  color: #08763f;
  background: #dcf7e8;
}

.race-chip.muted {
  color: #395342;
  background: #eef4ef;
}

.race-chip svg {
  width: 13px;
  height: 13px;
}

.race-countdown {
  color: #ffffff;
  background: rgba(8, 118, 63, 0.88);
}

.leaflet-tooltip.race-pin-countdown-tooltip {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #159321;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.leaflet-tooltip.race-pin-countdown-tooltip::before {
  display: none;
}

.agenda-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.agenda-actions a,
.modal-actions a {
  text-decoration: none;
}

.race-modal-strip {
  display: grid;
  gap: 7px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #08763f;
  background: #e6f8ee;
  font-size: 12px;
  font-weight: 850;
}

.race-modal-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.race-modal-strip svg {
  width: 16px;
  height: 16px;
}

.video-feature-card {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #09170f;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-copy {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.video-copy span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-copy h2 {
  margin: 0;
  font-size: 24px;
}

.video-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.video-copy .outline-btn {
  justify-self: start;
  margin-top: 3px;
}

.profile-login-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.42);
  text-align: center;
}

.profile-login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.google-image-signin {
  width: min(100%, 290px);
  min-height: 52px;
  border: 0;
  padding: 0;
  justify-self: center;
  border-radius: 14px;
  background: transparent;
  display: block;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(14, 47, 24, 0.12);
}

.google-image-signin img {
  width: 100%;
  height: auto;
  min-height: 52px;
  display: block;
  object-fit: contain;
}

.login-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f4f7f3;
  overflow: hidden;
}

.login-mark img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.login-copy h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.login-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.google-signin {
  justify-self: center;
  padding: 0 18px 0 10px;
}

.google-signin img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.profile-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
}

.profile-avatar svg {
  width: 30px;
  height: 30px;
}

.profile-card h2,
.admin-panel h2 {
  margin: 0 0 6px;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.member-card {
  grid-template-columns: 1fr;
  align-items: center;
}

.profile-photo-picker {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: #eaf7e8;
  border: 3px solid rgba(35, 147, 33, 0.18);
}

.profile-photo-stack {
  position: relative;
  width: 112px;
  height: 112px;
}

.profile-photo-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-photo-picker span {
  position: absolute;
  right: -2px;
  bottom: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(10, 49, 22, 0.26);
}

.profile-photo-picker svg {
  width: 20px;
  height: 20px;
}

.profile-admin-btn {
  position: absolute;
  left: 50%;
  bottom: -12px;
  z-index: 3;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #078b33, #075f28);
  box-shadow: 0 12px 24px rgba(7, 86, 36, 0.34);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transform: translateX(-50%);
}

.profile-admin-btn svg {
  width: 15px;
  height: 15px;
}

.profile-hero-card {
  position: relative;
  margin-top: 28px;
  padding: 28px 22px 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(7, 28, 17, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: visible;
}

.profile-settings-btn {
  position: absolute;
  right: 18px;
  top: -32px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(14, 35, 21, 0.2);
}

.profile-settings-btn svg {
  width: 30px;
  height: 30px;
}

.profile-identity {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 22px;
}

.profile-main-copy {
  min-width: 0;
}

.profile-main-copy h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #0c141c;
  font-size: 30px;
  line-height: 1.02;
}

.profile-main-copy h2 svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: #55b944;
  fill: #55b944;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #1a1f25;
  font-size: 18px;
  font-weight: 700;
}

.profile-location svg {
  width: 20px;
  height: 20px;
  color: #4ba934;
  fill: #4ba934;
}

.profile-email {
  margin-top: 7px !important;
  font-size: 12px;
  font-weight: 800;
}

.member-badge {
  width: fit-content;
  min-height: 30px;
  margin: 8px 0 10px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #eaf7e8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
}

.member-badge svg {
  width: 15px;
  color: var(--green);
}

.profile-footer {
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 0 12px;
}

.publication-panel-entry {
  margin-top: 4px;
}

.publication-panel-btn {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  color: #fff;
  background: rgba(4, 52, 31, 0.76);
  box-shadow: 0 14px 30px rgba(3, 31, 20, 0.18);
  text-align: left;
}

.publication-panel-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--green-dark);
  background: #fff;
}

.publication-panel-icon svg {
  width: 22px;
  height: 22px;
}

.publication-panel-btn strong,
.publication-panel-btn small {
  display: block;
}

.publication-panel-btn strong {
  font-size: 15px;
}

.publication-panel-btn small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
}

.publication-panel-chevron {
  width: 20px;
  transition: transform 0.2s ease;
}

.publication-panel-btn.is-open .publication-panel-chevron {
  transform: rotate(180deg);
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 10px;
  text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(7, 28, 17, 0.16);
  border: 1px solid rgba(20, 33, 47, 0.08);
}

.stats-card div {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.stats-card div + div {
  border-left: 1px solid rgba(20, 33, 47, 0.1);
}

.stats-card svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  color: var(--green);
  background: #eef8ea;
}

.stats-card strong {
  display: block;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.stats-card span {
  color: #151b21;
  font-size: 12px;
  font-weight: 800;
}

.profile-xp-card,
.profile-challenges-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(7, 28, 17, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.profile-xp-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.xp-emblem {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #eef8ea;
  border: 6px solid rgba(35, 147, 33, 0.18);
  border-radius: 24px;
  font-size: 26px;
  font-weight: 950;
  box-shadow: inset 0 0 0 3px rgba(35, 147, 33, 0.18);
}

.xp-card-copy {
  min-width: 0;
}

.xp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.xp-card-head h2 {
  margin: 0;
  color: #0c141c;
  font-size: 25px;
  line-height: 1;
}

.xp-card-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.xp-card-head strong {
  color: #1f8f22;
  font-size: 18px;
  white-space: nowrap;
}

.profile-progress,
.challenge-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ece8;
}

.profile-progress {
  margin-top: 14px;
}

.profile-progress span,
.challenge-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4aa936, #239321);
  transition: width 0.25s ease;
}

.profile-xp-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.profile-challenges-card {
  padding: 18px;
}

.challenge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.challenge-head h2 {
  margin: 0;
  color: #0c141c;
  font-size: 22px;
}

.challenge-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.challenge-head svg {
  width: 15px;
  height: 15px;
}

.challenge-list {
  display: grid;
  gap: 12px;
}

.challenge-item {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 58px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(20, 33, 47, 0.08);
  box-shadow: 0 8px 22px rgba(7, 28, 17, 0.08);
}

.challenge-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: #e8f5e3;
}

.challenge-icon svg {
  width: 28px;
  height: 28px;
}

.challenge-item strong {
  display: block;
  color: #111820;
  font-size: 16px;
}

.challenge-item p {
  margin: 3px 0 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.challenge-item small {
  color: var(--green-dark);
  font-weight: 900;
  white-space: nowrap;
}

.challenge-item b {
  min-height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: #e5f3df;
  font-size: 17px;
  line-height: 1.05;
  text-align: center;
}

.xp-badge {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.xp-badge svg {
  width: 17px;
  color: var(--orange);
}

.admin-panel {
  padding: 16px;
}

.admin-head {
  align-items: flex-start;
}

.admin-head small {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.compact-head {
  margin-top: 10px;
}

.editor-block,
.editor-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

label {
  color: #3e4954;
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8faf8;
  color: var(--ink);
  outline: 0;
  padding: 0 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(35, 147, 33, 0.55);
  box-shadow: 0 0 0 3px rgba(35, 147, 33, 0.1);
}

textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
  font: inherit;
  line-height: 1.42;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.moderator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.moderator-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #eaf7e8;
  font-size: 12px;
  font-weight: 800;
}

.moderator-admin-tools {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

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

.permission-grid label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(35, 147, 33, 0.14);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 850;
}

.permission-grid input {
  accent-color: var(--green);
}

.permission-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.moderator-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(35, 147, 33, 0.12);
  border-radius: 14px;
  background: #f7fbf7;
}

.moderator-card strong,
.moderator-card span {
  display: block;
}

.moderator-card strong {
  color: var(--ink);
  font-size: 12px;
}

.moderator-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.moderator-card-actions {
  display: flex;
  gap: 6px;
}

.moderator-card-actions button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--green);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(7, 45, 19, 0.08);
}

.moderator-card-actions svg {
  width: 15px;
  height: 15px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.align-end {
  align-self: end;
}

.empty-state {
  padding: 32px 22px;
  text-align: center;
  color: var(--ink);
}

.empty-state svg {
  width: 52px;
  height: 52px;
  color: var(--red);
}

.empty-state h2 {
  margin: 12px 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.empty-inline {
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.94);
  font-weight: 800;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 800;
  width: min(100%, 520px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(20, 33, 47, 0.09);
  box-shadow: 0 -10px 28px rgba(13, 35, 22, 0.14);
  backdrop-filter: blur(18px);
}

.nav-item {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: #95999e;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.nav-item svg {
  width: 25px;
  height: 25px;
}

.nav-profile-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.nav-profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-profile-icon.has-photo {
  box-shadow: 0 0 0 2px rgba(35, 147, 33, 0.18);
}

.nav-item.is-active {
  color: var(--green);
}

.nav-play-shape {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: currentColor;
  border-radius: 10px;
}

.nav-play-shape svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.5;
  fill: currentColor;
  stroke-linejoin: round;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(1.1);
}

.modal-backdrop.is-hidden {
  display: none;
}

.app-modal {
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  overflow-x: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(8, 26, 18, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.modal-inner {
  padding: 14px;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.modal-top h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

.modal-top span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.close-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f3;
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.modal-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #dbe9dc;
}

.modal-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.modal-carousel img.is-active {
  opacity: 1;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
}

.modal-arrow.prev {
  left: 8px;
}

.modal-arrow.next {
  right: 8px;
}

.modal-body {
  padding: 14px 2px 2px;
}

.modal-body p {
  margin: 0 0 12px;
  color: #34404c;
  line-height: 1.52;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.info-pill {
  min-height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f3f7f2;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.info-pill svg {
  width: 18px;
  color: var(--green);
}

.legend-list {
  display: grid;
  gap: 10px;
  padding: 2px 0 4px;
}

.legend-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 10px;
  background: #f4f8f3;
}

.legend-pin-preview {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--pin);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.legend-pin-preview svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.7;
}

.legend-item strong {
  display: block;
  font-size: 15px;
}

.legend-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.brazil-games {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
}

.brazil-games-head {
  min-height: 68px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  background: #063d22;
}

.brazil-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.flag-orb,
.round-flag {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f7ee;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  font-size: 25px;
  flex: 0 0 auto;
}

.round-flag img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.brazil-title h2 {
  margin: 0;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.close-btn.on-green {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.finished-game {
  margin: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #e3e4e1;
  color: var(--ink);
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5e675f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-status svg {
  width: 15px;
  height: 15px;
}

.score-row {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.team-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.team-name.right {
  justify-content: flex-end;
}

.team-name span {
  font-size: 26px;
}

.score-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.score-main strong {
  font-size: 38px;
  line-height: 1;
}

.scorer-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  color: #606a66;
  font-size: 13px;
  font-weight: 700;
}

.scorer-team {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.scorer-team.right {
  align-items: flex-end;
  text-align: right;
}

.scorer-team span {
  max-width: 100%;
}

.games-divider {
  height: 3px;
  margin: 12px;
  border-radius: 999px;
  background: #e7e9e4;
}

.games-section-title {
  margin: 0 14px 10px;
  color: var(--green-dark);
  font-size: 15px;
  text-transform: uppercase;
}

.upcoming-games {
  display: grid;
  gap: 10px;
  padding: 0 12px;
}

.upcoming-game {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 104px;
  padding: 10px;
  border: 1px solid rgba(35, 147, 33, 0.22);
  border-radius: 14px;
  background: #f1f8ea;
}

.date-box {
  text-align: center;
}

.date-box strong {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--green);
  font-size: 14px;
  line-height: 1.12;
}

.date-box span {
  display: block;
  margin-top: 6px;
  color: #344438;
  font-size: 12px;
  font-weight: 900;
}

.date-box small {
  display: block;
  color: #69736d;
  font-size: 9px;
  line-height: 1.1;
}

.match-box {
  min-width: 0;
}

.match-line {
  display: grid;
  grid-template-columns: auto auto 14px auto auto;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 900;
}

.match-line .round-flag {
  width: 29px;
  height: 29px;
  font-size: 18px;
}

.match-x {
  color: var(--green);
  text-align: center;
  font-weight: 900;
}

.match-box p {
  margin: 9px 0 0;
  color: #344438;
  font-size: 12px;
  line-height: 1.35;
}

.games-alert-toggle {
  margin: 12px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
}

.bell-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f6f8f4;
  border: 1px solid rgba(35, 147, 33, 0.2);
}

.bell-badge svg {
  width: 19px;
  height: 19px;
}

.games-alert-toggle strong,
.games-alert-toggle small {
  display: block;
}

.games-alert-toggle strong {
  font-size: 12px;
  text-transform: uppercase;
}

.games-alert-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.games-alert-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-ui {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  position: relative;
  background: #aeb6af;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.18s ease;
}

.games-alert-toggle input:checked + .toggle-ui {
  background: var(--green);
}

.games-alert-toggle input:checked + .toggle-ui::after {
  transform: translateX(16px);
}

.modal-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.modal-actions.stack {
  display: grid;
}

.modal-actions .solid-btn,
.modal-actions .outline-btn {
  flex: 1;
}

.solid-btn.danger {
  background: #d83a2e;
  box-shadow: 0 12px 24px rgba(216, 58, 46, 0.22);
}

.game-panel {
  text-align: center;
  padding: 18px;
}

.game-panel img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.game-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.game-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.challenge-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.challenge-rules span {
  padding: 9px 5px;
  border-radius: 10px;
  color: #365244;
  background: #f0f6f1;
  font-size: 11px;
  font-weight: 800;
}

.challenge-rules strong {
  display: block;
  color: #087334;
  font-size: 15px;
}

.challenge-cooldown-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #365244;
  background: #f0f6f1;
  font-size: 12px;
  font-weight: 800;
}

.challenge-cooldown-note svg {
  width: 17px;
  height: 17px;
}

.challenge-result.is-success h2 {
  color: #078037;
}

.safety-modal {
  padding: 16px;
}

.safety-top {
  margin-bottom: 6px;
}

.safety-top h2 {
  font-size: 21px;
}

.safety-panel {
  display: grid;
  gap: 13px;
  justify-items: center;
  text-align: center;
  padding: 4px 2px 2px;
}

.safety-icon {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(180deg, #ff635f, #ff1f10);
  box-shadow: 0 18px 34px rgba(255, 44, 28, 0.24);
}

.safety-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.safety-panel p {
  max-width: 292px;
  margin: 0;
  color: #53616c;
  font-size: 14px;
  line-height: 1.42;
}

.safety-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.safety-action {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  font-size: 13px;
}

.safety-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-prompt {
  position: fixed;
  left: 50%;
  top: 62%;
  z-index: 1150;
  width: min(410px, calc(100vw - 30px));
  display: grid;
  gap: 8px;
  padding: 14px 40px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  color: #ffffff;
  background: rgba(7, 78, 36, 0.78);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.smart-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.smart-prompt-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.smart-prompt-close svg {
  width: 16px;
  height: 16px;
}

.smart-prompt-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 9px;
}

.smart-prompt-row.is-done {
  display: none;
}

.smart-prompt-row > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #0b5f2b;
  background: rgba(255, 255, 255, 0.92);
}

.smart-prompt-row svg {
  width: 16px;
  height: 16px;
}

.smart-prompt-row p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.smart-prompt-row button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #0b5f2b;
  background: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 900;
}

.smart-prompt-row button:disabled {
  opacity: 0.72;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 1200;
  max-width: min(420px, calc(100vw - 34px));
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 33, 47, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce), (max-width: 430px) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  :root {
    --shadow: 0 10px 24px rgba(6, 32, 23, 0.18);
  }

  .modal-backdrop,
  .bottom-nav,
  .smart-prompt {
    backdrop-filter: none;
  }

  .map-pin.capivara {
    animation: none;
  }
}

@media (min-width: 760px) {
  body {
    display: grid;
    place-items: start center;
    padding: 18px;
  }

  .app-shell {
    border-radius: 34px;
    min-height: calc(100dvh - 36px);
  }

  .bottom-nav {
    border-radius: 24px 24px 0 0;
  }
}

@media (min-width: 900px) {
  body {
    display: grid;
    place-items: start center;
    padding: 18px;
  }

  .app-shell {
    width: min(100%, 900px);
    max-width: 900px;
    min-height: calc(100dvh - 36px);
    border-radius: 34px;
    overflow: hidden;
  }

  .screen {
    padding: 24px clamp(24px, 4vw, 64px) 28px;
  }

  .screen-home.is-active {
    display: block;
  }

  .hero-panel {
    padding-top: 10px;
  }

  .today-panel {
    margin-top: 16px;
    padding: 18px;
  }

  .event-carousel {
    gap: 14px;
    padding-inline: 38px;
    scroll-padding-inline: 38px;
  }

  .event-card {
    --event-thumb-size: 96px;
    flex-basis: calc((100% - 28px) / 3);
    gap: 14px;
    min-height: 118px;
  }

  .map-panel {
    margin-top: 16px;
  }

  .filter-dock {
    margin-top: 14px;
  }

  .nearby-section {
    margin-top: 16px;
  }

  .home-map {
    height: min(64dvh, 620px);
    min-height: 500px;
  }

  .place-list {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    width: min(100%, 900px);
    max-width: 900px;
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .screen {
    min-height: calc(100dvh - 64px);
    padding: 8px 10px 14px;
  }

  .hero-panel {
    padding: 8px 4px 4px;
  }

  .brand-row {
    grid-template-columns: 1fr 32px 36px 76px;
    gap: 7px;
    margin-top: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-width: 3px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-lockup strong {
    font-size: 16px;
    line-height: 0.9;
  }

  .brand-lockup span {
    margin-top: 4px;
    font-size: 8px;
  }

  .icon-link,
  .sos-link {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .icon-link img {
    width: 23px;
    height: 23px;
  }

  .sos-link img {
    border-radius: 9px;
  }

  .next-game-chip {
    min-width: 76px;
  }

  .next-game-chip strong {
    font-size: 11px;
  }

  .next-game-chip small {
    margin-top: 3px;
    font-size: 8px;
  }

  .search-bar {
    height: 46px;
    margin: 12px 0 8px;
    padding: 0 11px;
    gap: 9px;
    border-radius: 16px;
  }

  .search-bar svg {
    width: 22px;
    height: 22px;
  }

  .search-bar input {
    font-size: 15px;
  }

  .search-bar button {
    width: 32px;
    height: 32px;
  }

  .today-panel,
  .map-panel,
  .nearby-section {
    margin-top: 9px;
  }

  .today-panel {
    padding: 10px 8px 12px;
    border-radius: 17px;
  }

  .section-heading h1,
  .map-title-row h2,
  .plain-header h1 {
    font-size: 17px;
  }

  .section-heading.compact h2 {
    font-size: 15px;
  }

  .section-heading svg {
    width: 21px;
    height: 21px;
  }

  .ghost-btn,
  .solid-btn,
  .outline-btn {
    min-height: 32px;
    font-size: 12px;
  }

  .event-carousel {
    margin-top: 8px;
    gap: 10px;
    padding-inline: 22px;
    scroll-padding-inline: 22px;
  }

  .event-card {
    --event-edit-size: 30px;
    --event-thumb-size: 72px;
    flex-basis: calc(100% - 44px);
    min-height: 82px;
    gap: 9px;
  }

  .event-card h3 {
    font-size: 14px;
  }

  .event-card > div {
    gap: 5px;
  }

  .event-card small,
  .event-card span {
    font-size: 11px;
  }

  .status-pill {
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  .event-card .tiny-row svg {
    width: 16px;
    height: 16px;
  }

  .carousel-nav {
    width: 28px;
    height: 38px;
  }

  .map-panel {
    padding: 8px;
    border-radius: 18px;
  }

  .map-title-row {
    padding: 2px 2px 7px;
  }

  .round-map-btn,
  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .home-map {
    height: min(29dvh, 255px);
    min-height: 220px;
  }

  .filter-dock,
  .screen-map > .filter-row.large {
    margin-top: 9px;
    padding: 6px 7px 2px;
    border-radius: 17px;
  }

  .filter-row {
    gap: 8px;
    padding-bottom: 6px;
  }

  .filter-chip {
    flex-basis: 55px;
    min-height: 52px;
    padding: 4px 1px;
    gap: 3px;
    border-radius: 14px;
  }

  .filter-icon {
    width: 32px;
    height: 32px;
  }

  .filter-icon svg {
    width: 16px;
    height: 16px;
  }

  .filter-chip span {
    min-height: 16px;
    font-size: 8px;
    line-height: 1.05;
  }

  .nearby-section {
    padding-bottom: 2px;
  }

  .place-list,
  .agenda-list,
  .profile-grid {
    gap: 10px;
    margin-top: 8px;
  }

  .profile-hero-card {
    margin-top: 24px;
    padding: 22px 16px 18px;
    border-radius: 24px;
  }

  .profile-settings-btn {
    right: 14px;
    top: -24px;
    width: 52px;
    height: 52px;
  }

  .profile-settings-btn svg {
    width: 24px;
    height: 24px;
  }

  .profile-identity {
    grid-template-columns: 86px 1fr;
    gap: 14px;
  }

  .profile-photo-picker {
    width: 86px;
    height: 86px;
  }

  .profile-photo-stack {
    width: 86px;
    height: 86px;
  }

  .profile-admin-btn {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .profile-photo-picker span {
    width: 34px;
    height: 34px;
    bottom: 3px;
  }

  .profile-main-copy h2 {
    font-size: 23px;
  }

  .profile-location {
    font-size: 14px;
  }

  .member-badge {
    min-height: 26px;
    margin: 7px 0 7px;
    padding: 0 9px;
    font-size: 10px;
  }

  .stats-card {
    padding: 12px 6px;
  }

  .stats-card strong {
    font-size: 20px;
  }

  .stats-card span {
    font-size: 10px;
  }

  .profile-xp-card {
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 15px;
    border-radius: 22px;
  }

  .xp-emblem {
    width: 56px;
    height: 56px;
    border-width: 4px;
    border-radius: 18px;
    font-size: 20px;
  }

  .xp-card-head h2 {
    font-size: 20px;
  }

  .xp-card-head strong {
    font-size: 14px;
  }

  .profile-challenges-card {
    padding: 13px;
    border-radius: 22px;
  }

  .challenge-head h2 {
    font-size: 18px;
  }

  .challenge-head span {
    font-size: 10px;
  }

  .challenge-item {
    grid-template-columns: 44px minmax(0, 1fr) auto 48px;
    gap: 9px;
    min-height: 82px;
    padding: 10px;
  }

  .challenge-icon {
    width: 44px;
    height: 44px;
  }

  .challenge-icon svg {
    width: 22px;
    height: 22px;
  }

  .challenge-item b {
    min-height: 46px;
    min-width: 48px;
    font-size: 14px;
  }

  .challenge-item small {
    margin: 0;
  }

  .place-card {
    grid-template-columns: 42% 1fr;
    gap: 10px;
    padding: 9px;
    border-radius: 15px;
  }

  .place-card img {
    width: 100%;
    height: 126px;
    border-radius: 10px;
  }

  .place-card h3 {
    font-size: 16px;
  }

  .place-type {
    font-size: 12px;
  }

  .place-meta {
    margin-top: 5px;
    font-size: 11px;
  }

  .place-actions {
    margin-top: 7px;
  }

  .favorite-btn,
  .route-mode-btn {
    width: 30px;
    height: 30px;
  }

  .route-mode-btn img {
    width: 21px;
    height: 21px;
  }

  .bottom-nav {
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  }

  .nav-item {
    min-height: 50px;
    border-radius: 12px;
    font-size: 10px;
  }

  .nav-item svg,
  .nav-play-shape svg {
    width: 22px;
    height: 22px;
  }

  .city-map {
    min-height: 340px;
    height: calc(100dvh - 275px);
  }

  .app-modal {
    border-radius: 22px;
  }

  .safety-modal {
    padding: 14px;
  }

  .safety-icon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
  }

  .safety-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .safety-action {
    min-height: 38px;
  }

  .smart-prompt {
    top: 58%;
    width: min(360px, calc(100vw - 24px));
    padding: 12px 36px 12px 12px;
    border-radius: 18px;
  }

  .smart-prompt-row {
    grid-template-columns: 26px minmax(0, 1fr) 40px;
    min-height: 36px;
  }

  .smart-prompt-row p {
    font-size: 12px;
  }

  .brazil-games-head {
    min-height: 60px;
    padding: 11px 13px;
  }

  .flag-orb {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .brazil-title h2 {
    font-size: 17px;
  }

  .finished-game {
    margin: 10px;
    padding: 10px;
  }

  .score-main strong {
    font-size: 32px;
  }

  .upcoming-games {
    gap: 8px;
    padding: 0 10px;
  }

  .upcoming-game {
    grid-template-columns: 64px 1fr;
    min-height: 94px;
    gap: 9px;
    padding: 8px;
  }

  .date-box strong {
    min-height: 46px;
    font-size: 12px;
  }

  .match-line {
    gap: 5px;
    font-size: 13px;
  }

  .match-line .round-flag {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }

  .match-box p {
    font-size: 11px;
  }

  .form-row.two,
  .inline-form {
    grid-template-columns: 1fr;
  }
}
