:root {
  --rift-bg: #080a0b;
  --rift-ink: #f4f1ea;
  --rift-void: #080a0b;
  --rift-charcoal: #111417;
  --rift-blueblack: #101923;
  --rift-panel: rgba(17, 20, 23, 0.72);
  --rift-panel-solid: #14181c;
  --rift-paper: #f4f1ea;
  --rift-paper-2: #d9dee2;
  --rift-muted: #9ba3a8;
  --rift-graphite: #686f73;
  --rift-metal: #b7a98a;
  --rift-metal-soft: rgba(183, 169, 138, 0.18);
  --rift-line: rgba(244, 241, 234, 0.14);
  --rift-line-strong: rgba(244, 241, 234, 0.26);
  --rift-danger: #a7554e;
  --rift-radius: 8px;
  --rift-pill: 999px;
  --rift-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --dock-height: 76px;
}

:root[data-density="compact"] {
  --device-gap: 14px;
  --device-pad: 16px;
  --dock-height: 56px;
}

@keyframes airReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes airPan {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 160px 0, 0 120px; }
}

@keyframes airLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

html {
  background: var(--rift-bg);
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(90deg, rgba(244, 241, 234, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 241, 234, 0.018) 1px, transparent 1px),
    linear-gradient(135deg, #080a0b 0%, #101923 50%, #111417 100%) !important;
  background-size: 96px 96px, 96px 96px, 100% 100%;
  color: var(--rift-paper);
  animation: none;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 11, 0) 0%, rgba(8, 10, 11, 0.82) 92%),
    linear-gradient(115deg, transparent 0 58%, rgba(183, 169, 138, 0.12) 58% 59%, transparent 59%);
}

body::after {
  content: "";
  position: fixed;
  left: 32px;
  right: 32px;
  bottom: 18px;
  z-index: 9998;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(183, 169, 138, 0.72), transparent);
  transform-origin: left;
  animation: airLine 1.2s ease both;
}

h1,
h2,
h3 {
  color: var(--rift-paper) !important;
  letter-spacing: 0 !important;
}

p,
small,
label,
span {
  text-wrap: pretty;
}

.site-dock__shell,
.site-dock__panel,
.map-page-hero,
.profile-overview-hero,
.moderation-hero,
.auth-card,
.map-toolbar,
.map-panel,
.map-daily-panel,
.spots-panel,
.profile-panel,
.moderation-panel,
.home-contact-card,
.rank-board,
.action-card,
.spot-card,
.map-empty-card,
.moderation-card,
.profile-stat-card,
.profile-xp-card,
.map-stat-card,
.story-tile,
.sport-card {
  border-radius: var(--rift-radius) !important;
  border: 1px solid var(--rift-line) !important;
  box-shadow: var(--rift-shadow) !important;
  clip-path: none !important;
}

.map-page-hero,
.profile-overview-hero,
.moderation-hero,
.videos-hero,
.xp-hero {
  min-height: clamp(320px, 42svh, 520px) !important;
}

.site-dock__shell {
  background: rgba(8, 10, 11, 0.76) !important;
  border-color: rgba(244, 241, 234, 0.18) !important;
  color: var(--rift-paper) !important;
  backdrop-filter: blur(24px) saturate(1.08);
}

.site-dock__shell::after,
.map-toolbar::after,
.profile-panel::after,
.moderation-panel::after,
.auth-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 169, 138, 0.62), transparent);
  pointer-events: none;
}

.site-dock__brand-link,
.site-dock__link,
.site-dock__account,
.site-dock__menu-toggle {
  color: var(--rift-paper) !important;
}

.site-dock__brand-mark {
  width: 52px !important;
  height: 52px !important;
  border-radius: var(--rift-radius) !important;
  background: rgba(244, 241, 234, 0.92) !important;
  border: 1px solid rgba(183, 169, 138, 0.46) !important;
  box-shadow: 0 0 0 6px rgba(183, 169, 138, 0.08);
  overflow: hidden;
  padding: 3px;
}

.site-dock__brand-title {
  font-size: 1rem !important;
  letter-spacing: 0.04em;
}

.site-dock__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-dock__brand-subtitle,
.site-dock__panel-link em,
.map-page-hero p,
.moderation-hero p,
.profile-overview-copy p,
.auth-header p {
  color: rgba(244, 241, 234, 0.66) !important;
}

.site-dock__link,
.site-dock__account,
.site-dock__menu-toggle,
button,
.btn-cinema,
.map-primary-button,
.map-secondary-button,
.profile-primary-button,
.profile-secondary-button,
.moderation-primary-button,
.moderation-secondary-button,
.moderation-danger-button,
.auth-link,
.auth-link-button,
.spot-card-actions a,
.spot-card-actions button {
  border-radius: var(--rift-pill) !important;
  clip-path: none !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.site-dock__link,
.site-dock__account,
.site-dock__menu-toggle {
  min-height: 42px !important;
  padding-inline: 14px !important;
}

.site-dock__link.is-active,
.site-dock__account.is-active,
.site-dock__menu-toggle {
  background: var(--rift-paper) !important;
  border-color: var(--rift-paper) !important;
  color: var(--rift-void) !important;
}

.site-dock__link:hover,
.site-dock__account:hover,
.site-dock__menu-toggle:hover {
  border-color: rgba(183, 169, 138, 0.6) !important;
  background: rgba(183, 169, 138, 0.12) !important;
  color: var(--rift-paper) !important;
  transform: translateY(-1px);
}

.site-dock__panel {
  background:
    linear-gradient(180deg, rgba(17, 20, 23, 0.94), rgba(8, 10, 11, 0.96)),
    var(--rift-charcoal) !important;
  color: var(--rift-paper) !important;
  backdrop-filter: blur(24px);
}

.site-dock__panel-head {
  color: var(--rift-paper) !important;
  border-bottom-color: rgba(244, 241, 234, 0.14) !important;
}

.site-dock__panel-section--account {
  border-radius: var(--rift-radius) !important;
  border-color: rgba(183, 169, 138, 0.42) !important;
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.12), rgba(183, 169, 138, 0.08)),
    rgba(17, 20, 23, 0.78) !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34) !important;
  clip-path: none !important;
}

.site-dock__panel h2,
.site-dock__panel-section--account h2 {
  color: var(--rift-paper) !important;
}

.site-dock__panel-link {
  border-radius: var(--rift-radius) !important;
  background: rgba(244, 241, 234, 0.045) !important;
  border-color: rgba(244, 241, 234, 0.12) !important;
  color: var(--rift-paper) !important;
  clip-path: none !important;
}

.site-dock__panel-link:hover,
.site-dock__panel-link.is-active {
  background: var(--rift-paper) !important;
  color: var(--rift-void) !important;
}

.site-dock__panel-link:hover em,
.site-dock__panel-link.is-active em {
  color: rgba(8, 10, 11, 0.64) !important;
}

.hero-reel,
.map-page-hero,
.profile-overview-hero,
.moderation-hero {
  overflow: hidden;
}

.hero-reel {
  min-height: clamp(680px, 80svh, 840px) !important;
}

.hero-reel__copy {
  max-width: min(760px, calc(100vw - 48px)) !important;
}

.hero-reel__lead {
  max-width: min(62ch, 100%) !important;
  overflow-wrap: anywhere;
}

.hero-reel__media::after,
.map-page-hero::before,
.profile-overview-hero::before,
.moderation-hero::before {
  background:
    linear-gradient(90deg, rgba(8, 10, 11, 0.94), rgba(8, 10, 11, 0.36) 52%, rgba(8, 10, 11, 0.78)),
    linear-gradient(180deg, rgba(8, 10, 11, 0.18), rgba(8, 10, 11, 0.78)),
    linear-gradient(115deg, transparent 0 66%, rgba(183, 169, 138, 0.22) 66% 67%, transparent 67%) !important;
}

.map-page-hero,
.profile-overview-hero,
.moderation-hero,
.auth-card {
  background:
    linear-gradient(135deg, rgba(8, 10, 11, 0.92), rgba(16, 25, 35, 0.82)),
    var(--rift-blueblack) !important;
  color: var(--rift-paper) !important;
}

.map-page-kicker,
.moderation-kicker,
.profile-kicker,
.xp-kicker,
.videos-kicker,
.spot-card-tag,
.spot-difficulty-tag,
.daily-achievement-xp,
.videos-card-tag,
.moderation-status-badge,
.sport-card__meta,
.xp-level-card span,
.video-analysis-meta span,
.xp-badge-row span {
  border-radius: var(--rift-pill) !important;
  border: 1px solid rgba(183, 169, 138, 0.42) !important;
  background: rgba(183, 169, 138, 0.12) !important;
  color: var(--rift-paper) !important;
  clip-path: none !important;
}

.kicker {
  display: inline-flex !important;
  align-items: center;
  width: fit-content !important;
  max-width: min(100%, 42rem);
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(244, 241, 234, 0.82) !important;
  box-shadow: none !important;
}

.hero-reel__copy > .kicker {
  padding-right: clamp(56px, 16vw, 260px) !important;
  white-space: nowrap;
}

.hero-reel__copy > .kicker::after {
  content: "";
  flex: 1 1 auto;
  min-width: clamp(42px, 18vw, 220px);
  height: 1px;
  margin-left: 12px;
  background: linear-gradient(90deg, rgba(183, 169, 138, 0.8), transparent);
}

.map-toolbar,
.profile-panel,
.moderation-panel,
.spot-card,
.map-empty-card,
.moderation-card,
.profile-stat-card,
.profile-xp-card,
.map-stat-card,
.home-contact-card,
.rank-board,
.action-card,
.videos-card,
.videos-short-card,
.videos-empty-card,
.leaderboard-card,
.xp-level-card,
.xp-empty-card {
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.08), rgba(244, 241, 234, 0.035)),
    rgba(17, 20, 23, 0.78) !important;
  color: var(--rift-paper) !important;
  backdrop-filter: blur(18px);
}

.map-panel,
.map-daily-panel,
.spots-panel,
.videos-toolbar,
.videos-tabs,
.xp-panel {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.map-panel,
.spots-panel,
.xp-panel,
.videos-tabs {
  border-color: rgba(244, 241, 234, 0.12) !important;
}

.map-panel--primary {
  padding: 0 !important;
  border: 0 !important;
}

.map-panel--primary .map-section-head {
  margin: 0 0 14px !important;
}

.sport-card,
.story-tile {
  background: #0b0d0f !important;
}

.sport-card h3,
.story-tile h3,
.sport-card p,
.story-tile span,
.spot-card h3,
.moderation-card h3,
.profile-panel h2,
.spots-panel h2,
.map-panel h2,
.rank-board h2,
.action-card h2,
.map-empty-card h2 {
  color: var(--rift-paper) !important;
}

.spot-card p,
.moderation-card p,
.profile-panel p,
.spots-panel p,
.map-panel p,
.rank-board p,
.action-card p,
.map-empty-card p,
.videos-empty-card p,
.xp-empty-card p,
.profile-empty-card p {
  color: rgba(244, 241, 234, 0.78) !important;
}

.sport-card::before,
.story-tile::before {
  background:
    linear-gradient(180deg, rgba(8, 10, 11, 0.02), rgba(8, 10, 11, 0.86)),
    linear-gradient(90deg, rgba(183, 169, 138, 0.18), transparent 58%) !important;
}

.sport-card__image,
.story-tile::after,
.spot-preview img,
.hero-reel__frame {
  filter: saturate(0.84) contrast(1.08) brightness(0.82) !important;
}

.map-field span,
.profile-field span,
.form-group label {
  color: rgba(244, 241, 234, 0.78) !important;
}

.map-field input,
.map-field select,
.map-field textarea,
.profile-field input,
.profile-field textarea,
.auth-form input,
.moderation-search,
.moderation-filter {
  border-radius: var(--rift-radius) !important;
  border-color: rgba(244, 241, 234, 0.16) !important;
  background: rgba(8, 10, 11, 0.28) !important;
  color: var(--rift-paper) !important;
  box-shadow: inset 0 1px 0 rgba(244, 241, 234, 0.06);
}

.videos-field span,
.xp-panel-head p,
.leaderboard-rider p,
.leaderboard-score span,
.videos-card-top small,
.videos-card-meta,
.videos-card-copy p,
.profile-section-head span {
  color: rgba(244, 241, 234, 0.74) !important;
}

.videos-field input,
.videos-field select,
.xp-filter {
  border-radius: var(--rift-radius) !important;
  border-color: rgba(244, 241, 234, 0.16) !important;
  background: rgba(8, 10, 11, 0.28) !important;
  color: var(--rift-paper) !important;
}

.map-field input::placeholder,
.map-field textarea::placeholder,
.profile-field input::placeholder,
.profile-field textarea::placeholder,
.auth-form input::placeholder,
.moderation-search::placeholder {
  color: rgba(244, 241, 234, 0.44) !important;
}

.map-field input:focus,
.map-field select:focus,
.map-field textarea:focus,
.profile-field input:focus,
.profile-field textarea:focus,
.auth-form input:focus,
.moderation-search:focus,
.moderation-filter:focus {
  border-color: rgba(183, 169, 138, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(183, 169, 138, 0.14) !important;
}

.map-primary-button,
.profile-primary-button,
.moderation-primary-button,
.videos-card-actions a:first-child,
.btn-cinema--primary,
.auth-form .btn-primary,
button[type="submit"] {
  background: var(--rift-paper) !important;
  color: var(--rift-void) !important;
  border: 1px solid var(--rift-paper) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

.map-secondary-button,
.profile-secondary-button,
.moderation-secondary-button,
.xp-secondary-button,
.videos-card-actions a:last-child,
.videos-tab,
.btn-cinema--ghost,
.spot-card-actions .map-focus-button,
.spot-card-actions .map-directions-button,
.spot-card-actions .map-xp-button,
.auth-link,
.auth-link-button {
  background: transparent !important;
  color: var(--rift-paper) !important;
  border: 1px solid rgba(244, 241, 234, 0.24) !important;
}

.has-ui-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.has-ui-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1.8px solid currentColor;
  opacity: 0.88;
}

.icon-plus::before {
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
}

.icon-location::before {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.icon-refresh::before {
  border-radius: 50%;
  border-left-color: transparent;
}

.icon-send::before {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 14px solid currentColor;
  border-right: 0;
}

.icon-map::before {
  border-radius: 2px;
  box-shadow: inset 4px 0 0 transparent, inset 5px 0 0 currentColor, inset 10px 0 0 transparent, inset 11px 0 0 currentColor;
}

.icon-video::before {
  border-radius: 3px;
  box-shadow: 6px 0 0 -2px currentColor;
}

.icon-save::before,
.icon-open::before,
.icon-user::before,
.icon-bell::before,
.icon-edit::before,
.icon-ranking::before {
  border-radius: 3px;
}

.icon-search::before {
  border-radius: 50%;
}

.icon-ranking::before {
  border-width: 0;
  background:
    linear-gradient(currentColor, currentColor) 0 60%/3px 40% no-repeat,
    linear-gradient(currentColor, currentColor) 6px 28%/3px 72% no-repeat,
    linear-gradient(currentColor, currentColor) 12px 44%/3px 56% no-repeat;
}

.map-primary-button:hover,
.profile-primary-button:hover,
.moderation-primary-button:hover,
.btn-cinema--primary:hover,
.auth-form .btn-primary:hover,
button[type="submit"]:hover {
  background: var(--rift-metal) !important;
  border-color: var(--rift-metal) !important;
  transform: translateY(-1px);
}

.map-secondary-button:hover,
.profile-secondary-button:hover,
.moderation-secondary-button:hover,
.xp-secondary-button:hover,
.videos-tab:hover,
.btn-cinema--ghost:hover,
.spot-card-actions a:hover,
.spot-card-actions button:hover,
.auth-link:hover,
.auth-link-button:hover {
  border-color: rgba(183, 169, 138, 0.7) !important;
  background: rgba(183, 169, 138, 0.1) !important;
  transform: translateY(-1px);
}

.moderation-danger-button,
.map-delete-button {
  background: transparent !important;
  color: #f0c1bb !important;
  border-color: rgba(167, 85, 78, 0.72) !important;
}

.moderation-danger-button:hover,
.map-delete-button:hover {
  background: rgba(167, 85, 78, 0.18) !important;
}

.spot-card,
.moderation-card,
.profile-panel,
.spots-panel,
.map-panel,
.sport-card,
.story-tile,
.home-simple {
  animation: airReveal 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-pathways {
  width: min(var(--site-max, 1240px), calc(100vw - (var(--site-gutter, 48px) * 2)));
  margin: clamp(48px, 7vw, 92px) auto 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.home-pathways__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--rift-line);
  border-radius: var(--rift-radius);
  overflow: hidden;
  background: var(--rift-line);
}

.home-pathway {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 28px);
  background: rgba(8, 10, 11, 0.76);
  color: var(--rift-paper);
}

.home-pathway:hover {
  background: rgba(244, 241, 234, 0.08);
}

.home-pathway span {
  color: var(--rift-metal);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.home-pathway h3 {
  margin: auto 0 0;
  font-family: var(--ui-font-display);
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.home-pathway p {
  margin: 0;
  color: rgba(244, 241, 234, 0.72);
  line-height: 1.55;
}

.home-simple {
  margin-top: var(--section-gap, clamp(72px, 10vw, 136px));
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--rift-line);
  border-radius: var(--rift-radius);
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.08), rgba(183, 169, 138, 0.04)),
    rgba(17, 20, 23, 0.72);
  box-shadow: var(--rift-shadow);
}

.home-simple h2 {
  max-width: 12ch;
  margin: 14px 0 0;
  font-size: clamp(2.4rem, 6vw, 6.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.home-simple p:not(.kicker) {
  max-width: 52ch;
  margin: 18px 0 0;
  color: rgba(244, 241, 234, 0.68);
  line-height: 1.72;
}

.home-simple__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

#map,
.leaflet-container,
.spot-preview {
  border-radius: var(--rift-radius) !important;
  clip-path: none !important;
}

#map {
  min-height: 620px;
  box-shadow: var(--rift-shadow);
}

.leaflet-control-zoom a,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(17, 20, 23, 0.94) !important;
  color: var(--rift-paper) !important;
  border-color: rgba(244, 241, 234, 0.16) !important;
}

.map-panel .leaflet-tile {
  filter: saturate(0.48) contrast(1.12) brightness(0.58) grayscale(0.18) !important;
}

.map-spot-marker div {
  border-radius: 50% !important;
  background: var(--rift-paper) !important;
  color: var(--rift-void) !important;
  border-color: rgba(183, 169, 138, 0.88) !important;
  box-shadow: 0 0 0 10px rgba(183, 169, 138, 0.12), 0 18px 38px rgba(0, 0, 0, 0.45) !important;
}

.auth-logo-image {
  border-radius: 50% !important;
  border: 1px solid rgba(183, 169, 138, 0.42);
  box-shadow: 0 0 0 8px rgba(183, 169, 138, 0.08);
}

body.site-dock-auth {
  background:
    linear-gradient(90deg, rgba(8, 10, 11, 0.82), rgba(8, 10, 11, 0.28)),
    linear-gradient(180deg, rgba(8, 10, 11, 0.1), rgba(8, 10, 11, 0.84)),
    url("../assets/images/surfingboardsports.jpg") center/cover fixed !important;
}

.auth-container {
  margin-left: max(18px, 7vw) !important;
  margin-right: auto !important;
}

.auth-background,
.blob {
  display: none !important;
}

.auth-card::before {
  content: "Acesso BoardSports" !important;
  border-radius: var(--rift-pill) !important;
}

.auth-card {
  background: rgba(8, 10, 11, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.05) !important;
}

.auth-logo {
  border-radius: 50% !important;
  background: rgba(244, 241, 234, 0.92) !important;
}

.auth-header h1 {
  letter-spacing: 0 !important;
}

.videos-hero {
  border-radius: var(--rift-radius) !important;
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.92), rgba(3, 5, 8, 0.44)),
    url("../assets/images/cover-skate.png") center 58%/cover !important;
}

.videos-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)) !important;
}

.videos-card {
  padding: 0 !important;
  overflow: hidden;
}

.videos-card-media {
  border: 0 !important;
  border-radius: 0 !important;
}

.videos-card-top,
.videos-card-copy,
.videos-card-meta,
.videos-card-actions {
  margin-inline: 16px;
}

.videos-card-actions {
  margin-bottom: 16px;
}

.videos-short-card {
  border-radius: var(--rift-radius) !important;
}

.videos-tab.is-active {
  background: var(--rift-paper) !important;
  color: var(--rift-void) !important;
  border-color: var(--rift-paper) !important;
}

.leaderboard-card {
  position: relative;
  grid-template-columns: 112px minmax(0, 1fr) minmax(150px, auto) !important;
}

.leaderboard-card:first-child {
  padding-block: 22px !important;
  border-color: rgba(183, 169, 138, 0.68) !important;
  background:
    linear-gradient(90deg, rgba(183, 169, 138, 0.2), rgba(244, 241, 234, 0.08)),
    rgba(17, 20, 23, 0.88) !important;
}

.leaderboard-rank {
  min-height: 58px !important;
  border: 1px solid rgba(183, 169, 138, 0.34);
  border-radius: var(--rift-pill) !important;
}

.leaderboard-card:nth-child(1) .leaderboard-rank span,
.leaderboard-card:nth-child(2) .leaderboard-rank span,
.leaderboard-card:nth-child(3) .leaderboard-rank span {
  color: var(--rift-paper) !important;
}

.leaderboard-avatar {
  width: 68px !important;
  height: 68px !important;
  border-radius: var(--rift-radius) !important;
}

.leaderboard-xp-meter {
  display: block;
  width: min(180px, 100%);
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: var(--rift-pill);
  background: rgba(244, 241, 234, 0.12);
}

.leaderboard-xp-meter::before {
  content: "";
  display: block;
  width: var(--xp-progress, 8%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rift-metal), var(--rift-paper));
}

.map-empty-card,
.videos-empty-card,
.xp-empty-card,
.profile-empty-card {
  display: grid !important;
  place-items: center;
  gap: 10px;
  min-height: 118px;
  border-style: dashed !important;
  background: rgba(244, 241, 234, 0.035) !important;
}

.map-empty-card::before,
.videos-empty-card::before,
.xp-empty-card::before,
.profile-empty-card::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 1px solid rgba(183, 169, 138, 0.5);
  border-radius: 50%;
  background:
    linear-gradient(var(--rift-metal), var(--rift-metal)) center/14px 2px no-repeat,
    rgba(183, 169, 138, 0.08);
}

.auth-message.error,
.auth-message.success,
.auth-message.warning {
  border-radius: var(--rift-radius) !important;
  background: rgba(17, 20, 23, 0.86) !important;
  color: var(--rift-paper) !important;
}

.site-footer {
  color: rgba(244, 241, 234, 0.72);
  border-color: rgba(244, 241, 234, 0.12) !important;
}

@media (max-width: 860px) {
  body {
    background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%;
  }

  body::after {
    left: 16px;
    right: 16px;
    bottom: 12px;
  }

  .site-dock__shell {
    border-radius: var(--rift-radius) !important;
  }

  .hero-reel__copy {
    left: 14px !important;
    right: 14px !important;
    width: calc(100vw - 96px) !important;
    max-width: calc(100vw - 96px) !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-reel h1 {
    max-width: 10ch !important;
    font-size: clamp(3.9rem, 18vw, 5.8rem) !important;
    line-height: 0.9 !important;
  }

  .hero-reel__lead {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .hero-reel__actions {
    width: 100% !important;
  }

  .btn-cinema {
    width: 100%;
    min-width: 0 !important;
    white-space: normal !important;
    text-align: center;
  }

  .home-simple {
    padding: 22px;
  }

  .home-simple h2 {
    max-width: 11ch;
  }

  .home-simple__actions {
    display: grid;
  }

  .home-pathways {
    grid-template-columns: 1fr;
    width: min(100vw - 36px, 620px);
  }

  .home-pathways__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.landing-page {
    background:
      linear-gradient(180deg, rgba(8, 10, 11, 0.2), rgba(8, 10, 11, 0.96)),
      #080a0b !important;
  }

  body.landing-page::after {
    display: none;
  }

  .site-dock {
    left: 10px !important;
    right: 10px !important;
  }

  .site-dock__shell {
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 6px !important;
  }

  .site-dock__brand-link {
    flex: 1 1 auto !important;
    min-width: 0;
    gap: 8px !important;
  }

  .site-dock__brand-mark {
    width: 40px !important;
    height: 40px !important;
    box-shadow: none !important;
  }

  .site-dock__brand-title {
    font-size: 0.88rem !important;
  }

  .site-dock__brand-copy {
    min-width: 0;
  }

  .site-dock__brand-title {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-dock__actions {
    min-width: max-content;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .site-dock__menu-toggle {
    min-height: 40px !important;
    padding-inline: 14px !important;
    font-size: 0.72rem !important;
  }

  .hero-reel {
    min-height: 78svh !important;
    align-content: end !important;
    padding: 86px 20px 26px !important;
  }

  .hero-reel__media {
    inset: 0 0 22% !important;
    border-bottom: 1px solid rgba(183, 169, 138, 0.22);
  }

  .hero-reel__frame {
    object-position: 56% 18% !important;
    filter: saturate(0.9) contrast(1.08) brightness(0.78) !important;
    transform: scale(1.02) !important;
  }

  .hero-reel__media::after {
    background:
      linear-gradient(180deg, rgba(8, 10, 11, 0.08), rgba(8, 10, 11, 0.22) 44%, rgba(8, 10, 11, 0.98) 100%),
      linear-gradient(90deg, rgba(8, 10, 11, 0.44), transparent 62%) !important;
  }

  .hero-reel__grain,
  .hero-reel__hud,
  .hero-reel__scroll {
    display: none !important;
  }

  .hero-reel__copy {
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    gap: 14px !important;
    margin: 0 !important;
  }

  .hero-reel__copy > .kicker {
    max-width: 100% !important;
    padding-right: 0 !important;
    white-space: normal !important;
    font-size: 0.66rem !important;
  }

  .hero-reel__copy > .kicker::after {
    min-width: 54px;
    max-width: 96px;
  }

  .hero-reel h1 {
    max-width: 7.8ch !important;
    font-size: clamp(3.2rem, 17vw, 4.65rem) !important;
    line-height: 0.86 !important;
  }

  .hero-reel__lead {
    max-width: 31ch !important;
    font-size: 0.98rem !important;
    line-height: 1.62 !important;
    color: rgba(244, 241, 234, 0.8) !important;
  }

  .hero-reel__actions {
    display: grid !important;
    gap: 10px !important;
    margin-top: 2px;
  }

  .hero-reel__actions .btn-cinema {
    min-height: 50px;
    justify-content: center;
  }

  .home-contact-strip {
    width: 100% !important;
    margin-top: 0 !important;
    padding: 20px 0 34px;
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-contact-strip::-webkit-scrollbar {
    display: none;
  }

  .home-contact-card {
    position: relative;
    flex: 0 0 min(82vw, 330px);
    min-height: 340px;
    align-content: end !important;
    scroll-snap-align: center;
    overflow: hidden;
    padding: 18px !important;
    background: #0b0d0f !important;
  }

  .home-contact-card::before,
  .home-contact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .home-contact-card::before {
    z-index: 0;
    background: var(--contact-image) center/cover;
    opacity: 0.68;
    transform: scale(1.04);
  }

  .home-contact-card::after {
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(8, 10, 11, 0.1), rgba(8, 10, 11, 0.28) 36%, rgba(8, 10, 11, 0.92)),
      linear-gradient(90deg, rgba(8, 10, 11, 0.48), transparent);
  }

  .home-contact-card:nth-child(1) {
    --contact-image: url('/assets/images/surfingboardsports.jpg');
  }

  .home-contact-card:nth-child(2) {
    --contact-image: url('/assets/images/cover-skate.png');
  }

  .home-contact-card:nth-child(3) {
    --contact-image: url('/assets/images/boardsports-mix.jpg');
  }

  .home-contact-card > * {
    position: relative;
    z-index: 2;
  }

  .home-contact-card h2 {
    max-width: 10.5ch;
    font-size: clamp(2rem, 11vw, 3.15rem) !important;
    line-height: 0.92 !important;
  }

  .home-contact-card p {
    max-width: 28ch;
    margin: 10px 0 0;
    color: rgba(244, 241, 234, 0.78) !important;
  }

  .home-contact-card .text-link {
    margin-top: 16px;
  }

  .site-footer {
    width: calc(100vw - 40px) !important;
    margin-top: 8px;
    padding: 22px 0 calc(26px + env(safe-area-inset-bottom)) !important;
    display: grid !important;
    gap: 18px;
  }

  .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: flex-start !important;
  }

  .footer-sponsor-pill {
    min-height: 34px;
  }

  .auth-container {
    margin-inline: auto !important;
  }

  #map {
    min-height: 520px;
  }

  .leaderboard-card {
    grid-template-columns: 48px minmax(0, 1fr) !important;
  }

  .leaderboard-avatar {
    width: 46px !important;
    height: 46px !important;
  }
}

@media (max-width: 380px) {
  .hero-reel h1 {
    font-size: clamp(2.85rem, 16vw, 3.8rem) !important;
  }

  .hero-reel__lead {
    font-size: 0.92rem !important;
  }

  .home-contact-card {
    flex-basis: 86vw;
    min-height: 320px;
  }
}

/* Map-first experience: mapa.html behaves like an active tool, with controls on the map canvas. */
body.map-page .map-live-stage {
  position: relative !important;
  min-height: calc(100svh - 132px);
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.16) !important;
  background: #06090c !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48) !important;
  isolation: isolate;
}

body.map-page .map-live-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 9, 12, 0.72), rgba(6, 9, 12, 0.08) 34%, rgba(6, 9, 12, 0.22) 100%),
    linear-gradient(90deg, rgba(6, 9, 12, 0.68), transparent 38%, rgba(6, 9, 12, 0.28));
}

body.map-page .map-live-stage #map {
  width: 100%;
  height: calc(100svh - 132px) !important;
  min-height: 720px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.map-page .map-stage-overlay {
  position: absolute !important;
  z-index: 700;
}

body.map-page .map-stage-overlay--intro {
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 34px);
  right: auto;
  display: flex;
  gap: 10px;
  align-items: stretch;
  pointer-events: none;
}

body.map-page .map-stage-overlay--intro .map-page-copy {
  width: min(280px, calc(100vw - 48px));
  max-width: none;
  padding: 14px 16px;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: var(--rift-radius);
  background: rgba(8, 10, 11, 0.66);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px) saturate(1.04);
  pointer-events: auto;
}

body.map-page .map-stage-overlay--intro h1 {
  max-width: none;
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 1.8vw, 2rem) !important;
  line-height: 0.95;
  text-transform: uppercase;
}

body.map-page .map-stage-overlay--intro p {
  display: none;
  max-width: 52ch;
  color: rgba(244, 241, 234, 0.78) !important;
}

body.map-page .map-stage-overlay--intro .map-page-stats {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

body.map-page .map-stage-overlay--intro .map-stat-card {
  width: 112px;
  min-height: 76px;
  padding: 12px 14px;
  background: rgba(8, 10, 11, 0.64) !important;
  backdrop-filter: blur(22px) saturate(1.04);
}

body.map-page .map-stage-overlay--filters {
  left: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px !important;
  background: rgba(8, 10, 11, 0.74) !important;
  border: 1px solid rgba(244, 241, 234, 0.18) !important;
  backdrop-filter: blur(24px) saturate(1.06);
}

body.map-page .map-stage-overlay--filters::after {
  display: none;
}

body.map-page .map-stage-overlay--filters .map-field {
  gap: 6px;
}

body.map-page .map-stage-overlay--filters .map-field input,
body.map-page .map-stage-overlay--filters .map-field select {
  min-height: 44px;
}

body.map-page .map-stage-overlay--filters .map-toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

body.map-page .map-stage-overlay--filters button {
  min-height: 44px;
  white-space: nowrap;
}

body.map-page .map-live-stage .leaflet-control-container {
  position: relative;
  z-index: 650;
}

body.map-page .map-live-stage .leaflet-control-zoom {
  margin-top: clamp(190px, 20vw, 292px);
  margin-left: 18px;
}

body.map-page .map-daily-panel,
body.map-page .spots-panel {
  margin-top: 4px;
}

body.map-page .map-page-shell:has(.map-live-stage) {
  padding-top: 12px;
}

@media (min-width: 1280px) {
  body.map-page .map-page-shell:has(.map-live-stage) {
    width: min(100vw - 32px, 1580px);
  }
}

@media (max-width: 1180px) {
  body.map-page .map-stage-overlay--intro {
    max-width: min(560px, calc(100% - 36px));
  }

  body.map-page .map-stage-overlay--intro .map-page-stats {
    width: auto;
  }

  body.map-page .map-stage-overlay--filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.map-page .map-stage-overlay--filters .map-toolbar-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.map-page .map-page-shell:has(.map-live-stage) {
    width: 100% !important;
    padding-top: 0;
    gap: 14px;
  }

  body.map-page .map-live-stage {
    min-height: 100svh;
    border-width: 0 !important;
    border-radius: 0 !important;
  }

  body.map-page .map-live-stage #map {
    height: 100svh !important;
    min-height: 680px !important;
  }

  body.map-page .map-live-stage::before {
    background:
      linear-gradient(180deg, rgba(6, 9, 12, 0.76), rgba(6, 9, 12, 0.1) 36%, rgba(6, 9, 12, 0.78) 100%),
      linear-gradient(90deg, rgba(6, 9, 12, 0.42), transparent 66%);
  }

  body.map-page .map-stage-overlay--intro {
    top: max(76px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    max-width: none;
    gap: 10px;
  }

  body.map-page .map-stage-overlay--intro .map-page-copy {
    padding: 14px;
  }

  body.map-page .map-stage-overlay--intro .map-page-kicker {
    font-size: 0.62rem;
  }

  body.map-page .map-stage-overlay--intro h1 {
    max-width: 11ch;
    margin: 10px 0 8px;
    font-size: clamp(2rem, 10vw, 3.1rem) !important;
  }

  body.map-page .map-stage-overlay--intro p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  body.map-page .map-stage-overlay--intro .map-page-stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.map-page .map-stage-overlay--intro .map-stat-card {
    min-height: 82px;
    padding: 12px !important;
  }

  body.map-page .map-stage-overlay--intro .map-stat-card strong {
    font-size: 1.35rem;
  }

  body.map-page .map-stage-overlay--filters {
    left: 10px;
    right: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    top: auto !important;
    position: absolute !important;
    grid-template-columns: 1fr;
    max-height: 34svh;
    overflow: auto;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  body.map-page .map-stage-overlay--filters .map-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  body.map-page .map-live-stage .leaflet-control-zoom {
    margin-top: 330px;
    margin-left: 12px;
  }

  body.map-page .map-daily-panel,
  body.map-page .spots-panel {
    width: min(100% - 18px, 480px);
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  body.map-page .map-live-stage #map {
    min-height: 640px !important;
  }

  body.map-page .map-stage-overlay--intro p {
    display: none;
  }

  body.map-page .map-stage-overlay--filters {
    max-height: 34svh;
  }
}

/* BoardSports product polish: stronger brand, fewer repeated boxes, unified actions. */
body::after {
  display: none !important;
  content: none !important;
}

.site-dock__shell {
  max-width: min(1480px, calc(100vw - 32px)) !important;
  min-height: var(--dock-height) !important;
  height: auto !important;
  align-items: center !important;
}

.site-dock.is-menu-open {
  pointer-events: auto;
}

.site-dock__panel {
  z-index: 5100 !important;
}

.site-dock__brand-link {
  gap: 12px !important;
  align-items: center !important;
  min-height: 100%;
}

.site-dock__brand-mark {
  width: 58px !important;
  height: 58px !important;
  align-self: center !important;
}

.site-dock__brand-title {
  font-family: var(--ui-font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem) !important;
  line-height: 1;
  text-transform: uppercase;
}

.site-dock__brand-subtitle {
  max-width: 32ch;
  font-size: 0.66rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-primary-button,
.profile-primary-button,
.moderation-primary-button,
.videos-card-actions a:first-child,
.btn-cinema--primary,
.auth-form .btn-primary,
button[type="submit"] {
  min-height: 46px !important;
  border-radius: var(--rift-pill) !important;
  background: var(--rift-paper) !important;
  color: var(--rift-void) !important;
  border: 1px solid var(--rift-paper) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.map-secondary-button,
.profile-secondary-button,
.moderation-secondary-button,
.xp-secondary-button,
.videos-card-actions a:last-child,
.videos-tab,
.btn-cinema--ghost,
.spot-card-actions .map-focus-button,
.spot-card-actions .map-directions-button,
.spot-card-actions .map-xp-button,
.auth-link,
.auth-link-button {
  min-height: 46px !important;
  border-radius: var(--rift-pill) !important;
  background: transparent !important;
  color: var(--rift-paper) !important;
  border: 1px solid rgba(244, 241, 234, 0.28) !important;
  box-shadow: none !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.map-delete-button,
.moderation-danger-button {
  min-height: 46px !important;
  border-radius: var(--rift-pill) !important;
  background: transparent !important;
  color: #f0c1bb !important;
  border: 1px solid rgba(167, 85, 78, 0.78) !important;
}

.map-panel,
.map-daily-panel,
.spots-panel,
.videos-toolbar,
.videos-tabs,
.xp-panel,
.xp-levels-panel,
.profile-panel,
.moderation-panel {
  background: transparent !important;
  box-shadow: none !important;
}

.map-daily-panel,
.xp-levels-panel,
.videos-toolbar,
.videos-tabs {
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}

.map-section-head,
.xp-panel-head {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}

.map-modal-card {
  width: min(760px, 100%) !important;
}

.map-modal-copy {
  max-width: 56ch;
}

.map-form-section {
  padding: clamp(16px, 2.2vw, 22px) !important;
  background: rgba(244, 241, 234, 0.025) !important;
  border-color: rgba(244, 241, 234, 0.12) !important;
}

.map-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 12px;
  background: linear-gradient(180deg, transparent, rgba(17, 20, 23, 0.94) 34%);
}

body.videos-page .videos-shell,
body.xp-page .xp-shell {
  width: min(1500px, calc(100vw - 32px));
}

body.videos-page .videos-hero {
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(18px, 3vw, 34px) 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.videos-page .videos-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 6vw, 6.3rem) !important;
  line-height: 0.9;
  text-transform: uppercase;
}

body.videos-page .videos-stats {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  align-self: end;
}

.videos-shorts-feed {
  height: auto !important;
  min-height: 0 !important;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  align-items: start;
  overflow: visible;
  scroll-snap-type: none;
}

.videos-short-card {
  width: 100% !important;
  height: auto !important;
  min-height: 620px !important;
  border-radius: var(--rift-radius) !important;
  scroll-snap-align: none;
}

.videos-short-media {
  min-height: 430px;
}

.videos-short-overlay {
  min-height: 190px;
  align-content: start;
}

.videos-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
}

.videos-card {
  min-height: 100%;
  padding: 0 !important;
  overflow: hidden;
  border-radius: var(--rift-radius) !important;
}

.videos-card-media {
  min-height: 260px;
  border-radius: 0 !important;
}

.videos-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.videos-feed-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: var(--rift-pill);
  background: rgba(244, 241, 234, 0.06);
  color: rgba(244, 241, 234, 0.82);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.videos-card-fallback {
  min-height: inherit;
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.08), rgba(183, 169, 138, 0.04)),
    linear-gradient(160deg, rgba(8, 10, 11, 0.86), rgba(16, 25, 35, 0.96));
}

.videos-card-fallback > div {
  width: min(100% - 28px, 420px);
  display: grid;
  gap: 12px;
}

.videos-card-fallback strong {
  font-family: var(--ui-font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.videos-empty-card a {
  width: fit-content;
  margin-inline: auto;
}

body.xp-page .xp-hero {
  min-height: clamp(300px, 38svh, 460px) !important;
}

.leaderboard-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leaderboard-card {
  position: relative;
  overflow: hidden;
}

.leaderboard-card::before {
  content: attr(data-rank);
  position: absolute;
  right: 14px;
  bottom: -8px;
  color: rgba(244, 241, 234, 0.04);
  font-family: var(--ui-font-display);
  font-size: 6rem;
  line-height: 1;
  pointer-events: none;
}

.leaderboard-card.is-top-1 {
  grid-column: 1 / -1;
  min-height: 170px;
  grid-template-columns: 132px minmax(0, 1fr) minmax(220px, auto) !important;
  border-color: rgba(183, 169, 138, 0.74) !important;
  background:
    linear-gradient(90deg, rgba(183, 169, 138, 0.22), rgba(244, 241, 234, 0.08)),
    rgba(17, 20, 23, 0.92) !important;
}

.leaderboard-card.is-top-1 .leaderboard-avatar {
  width: 92px !important;
  height: 92px !important;
}

.leaderboard-card.is-top-2,
.leaderboard-card.is-top-3 {
  min-height: 136px;
}

.leaderboard-rank {
  border: 1px solid rgba(183, 169, 138, 0.34);
}

.leaderboard-card.is-top-1 .leaderboard-rank,
.leaderboard-card.is-top-2 .leaderboard-rank,
.leaderboard-card.is-top-3 .leaderboard-rank {
  min-height: 76px !important;
  border-radius: var(--rift-radius) !important;
}

.leaderboard-card.is-top-1 .leaderboard-rank span,
.leaderboard-card.is-top-2 .leaderboard-rank span,
.leaderboard-card.is-top-3 .leaderboard-rank span {
  font-family: var(--ui-font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.65rem);
  letter-spacing: 0.04em;
  color: var(--rift-paper) !important;
}

.leaderboard-card.is-top-1 .leaderboard-rank {
  background:
    linear-gradient(135deg, rgba(183, 169, 138, 0.32), rgba(244, 241, 234, 0.08)),
    rgba(8, 10, 11, 0.46) !important;
}

.leaderboard-card.is-top-2 .leaderboard-rank {
  background:
    linear-gradient(135deg, rgba(199, 208, 215, 0.24), rgba(244, 241, 234, 0.06)),
    rgba(8, 10, 11, 0.36) !important;
}

.leaderboard-card.is-top-3 .leaderboard-rank {
  background:
    linear-gradient(135deg, rgba(167, 85, 78, 0.26), rgba(244, 241, 234, 0.05)),
    rgba(8, 10, 11, 0.34) !important;
}

.leaderboard-xp-meter {
  position: relative;
  overflow: hidden;
}

.leaderboard-xp-meter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(244, 241, 234, 0.22), transparent);
  transform: translateX(-100%);
  animation: airPan 3s linear infinite;
}

@media (max-width: 900px) {
  body:not(.site-dock-auth)::after {
    display: none;
  }

  .site-dock__brand-subtitle {
    max-width: 20ch;
  }

  body.videos-page .videos-hero,
  body.xp-page .xp-hero {
    padding-top: 12px !important;
  }

  .leaderboard-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.videos-page .videos-shell,
  body.xp-page .xp-shell {
    width: min(100% - 16px, 480px) !important;
    padding-top: 8px !important;
  }

  body.videos-page .videos-hero,
  body.xp-page .xp-hero {
    min-height: 0 !important;
    padding: 6px 0 10px !important;
    gap: 10px !important;
  }

  body.videos-page .videos-hero h1,
  body.xp-page .xp-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.1rem) !important;
  }

  body.videos-page .videos-hero p,
  body.xp-page .xp-hero p {
    max-width: 34ch;
    font-size: 0.95rem;
  }

  body.videos-page .videos-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  body.videos-page .videos-stat-card {
    min-height: 0;
    padding: 10px !important;
  }

  body.videos-page .videos-stat-card strong {
    font-size: 1.35rem;
  }

  .videos-shorts-feed,
  .videos-grid {
    grid-template-columns: 1fr !important;
  }

  .videos-short-card {
    min-height: 560px !important;
  }

  .videos-short-media {
    min-height: 360px;
  }

  .leaderboard-card,
  .leaderboard-card.is-top-1 {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    min-height: 0;
  }

  .leaderboard-card.is-top-1 .leaderboard-avatar {
    width: 56px !important;
    height: 56px !important;
  }

  .leaderboard-card::before {
    font-size: 4rem;
  }

  .map-modal-copy {
    display: none;
  }

  .map-form-actions {
    position: static;
    background: transparent;
  }
}

:root[data-density="compact"] .map-page-shell,
:root[data-density="compact"] .videos-shell,
:root[data-density="compact"] .xp-shell,
:root[data-density="compact"] .profile-shell,
:root[data-density="compact"] .moderation-shell {
  gap: 12px !important;
}

:root[data-density="compact"] .map-field input,
:root[data-density="compact"] .map-field select,
:root[data-density="compact"] .videos-field input,
:root[data-density="compact"] .videos-field select,
:root[data-density="compact"] .profile-field input,
:root[data-density="compact"] .profile-field textarea,
:root[data-density="compact"] .xp-filter {
  min-height: 40px !important;
  padding-block: 8px !important;
}

.site-dock__appearance-grid {
  display: grid;
  gap: 12px;
}

.site-dock__appearance-grid > div {
  display: grid;
  gap: 8px;
}

.site-dock__appearance-grid strong {
  color: var(--rift-muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-dock__appearance-grid div div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-dock__appearance-option {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: var(--rift-pill);
  background: transparent;
  color: var(--rift-paper);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
}

.site-dock__appearance-option.is-active {
  background: var(--rift-paper);
  border-color: var(--rift-paper);
  color: var(--rift-void);
}

.appearance-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}

.appearance-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.appearance-choice-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: var(--rift-radius);
  background: rgba(244, 241, 234, 0.035);
}

.appearance-choice-group legend {
  padding: 0 6px;
  color: var(--rift-muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.appearance-choice-group label {
  position: relative;
  cursor: pointer;
}

.appearance-choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.appearance-choice-group label span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: var(--rift-pill);
  color: var(--rift-paper);
  font-size: 0.82rem;
  font-weight: 900;
}

.appearance-choice-group label span::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.72;
}

.appearance-choice-group input:checked + span {
  background: var(--rift-paper);
  border-color: var(--rift-paper);
  color: var(--rift-void);
}

.appearance-swatch--orange span::before {
  background: #d66d24;
}

.appearance-swatch--teal span::before {
  background: #2f9ea3;
}

.appearance-swatch--sand span::before {
  background: #b7a98a;
}

@media (max-width: 840px) {
  .appearance-controls {
    grid-template-columns: 1fr;
  }

}

/* Home hero sits on photography, so it must stay white over the image. */
body.landing-page .hero-reel h1,
body.landing-page .hero-reel .kicker,
body.landing-page .hero-reel__lead,
body.landing-page .hero-reel__hud,
body.landing-page .hero-reel__scroll {
  color: #fffaf2 !important;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.58);
}

body.landing-page .hero-reel__copy > .kicker {
  color: rgba(255, 250, 242, 0.92) !important;
}

body.landing-page .hero-reel__copy > .kicker::after {
  background: linear-gradient(90deg, rgba(255, 250, 242, 0.8), transparent) !important;
}

body.landing-page .hero-reel__actions .btn-cinema--ghost {
  color: #fffaf2 !important;
  border-color: rgba(255, 250, 242, 0.34) !important;
  background: rgba(255, 250, 242, 0.08) !important;
}

/* Final interaction system: one primary, one secondary, one danger and plain text links. */
.map-primary-button,
.profile-primary-button,
.moderation-primary-button,
.videos-card-actions a:first-child,
.spot-card-actions .map-video-button,
.spot-card-actions .map-edit-button,
.btn-cinema--primary,
button[type="submit"] {
  min-height: 46px !important;
  border-radius: var(--rift-pill) !important;
  background: var(--rift-paper) !important;
  border: 1px solid var(--rift-paper) !important;
  color: var(--rift-void) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22) !important;
}

.map-secondary-button,
.profile-secondary-button,
.moderation-secondary-button,
.xp-secondary-button,
.videos-card-actions a:last-child,
.spot-card-actions .map-focus-button,
.spot-card-actions .map-directions-button,
.spot-card-actions .map-xp-button,
.btn-cinema--ghost {
  min-height: 46px !important;
  border-radius: var(--rift-pill) !important;
  background: transparent !important;
  border: 1px solid rgba(244, 241, 234, 0.28) !important;
  color: var(--rift-paper) !important;
  box-shadow: none !important;
}

.map-delete-button,
.moderation-danger-button,
.spot-card-actions .map-delete-button {
  min-height: 46px !important;
  border-radius: var(--rift-pill) !important;
  background: transparent !important;
  border: 1px solid rgba(167, 85, 78, 0.78) !important;
  color: #f0c1bb !important;
  box-shadow: none !important;
}

.text-link,
.profile-hero-meta a:not(.profile-secondary-button),
.site-footer a {
  color: rgba(244, 241, 234, 0.82) !important;
  text-decoration: underline;
  text-decoration-color: rgba(183, 169, 138, 0.44);
  text-underline-offset: 4px;
}

.map-daily-panel,
.videos-toolbar,
.videos-tabs,
.xp-levels-panel,
.profile-security-section {
  background: transparent !important;
  box-shadow: none !important;
}

/* Final form and mobile pass: utility pages should get to the working surface quickly. */
.appearance-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.map-modal-card {
  gap: 18px !important;
}

.map-form-section {
  gap: 14px !important;
  padding: 18px !important;
}

.map-field input,
.map-field select,
.map-field textarea,
.profile-field input,
.profile-field textarea,
.videos-field input,
.videos-field select {
  border-radius: 14px !important;
}

.map-modal-card :focus-visible,
.profile-panel :focus-visible,
.videos-shell :focus-visible,
.leaderboard-shell :focus-visible,
.appearance-choice-group input:focus-visible + span {
  outline: 2px solid var(--rift-metal);
  outline-offset: 3px;
}

@media (max-width: 840px) {
  .appearance-controls {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .profile-hero,
  .moderation-hero,
  body.videos-page .videos-hero,
  body.xp-page .xp-hero {
    min-height: 0 !important;
    padding-block: 22px !important;
  }

  .profile-hero h1,
  .moderation-hero h1,
  body.videos-page .videos-hero h1,
  body.xp-page .xp-hero h1 {
    font-size: clamp(2rem, 13vw, 3.15rem) !important;
    line-height: 0.92 !important;
  }

  .map-modal-card {
    max-height: calc(100vh - 22px) !important;
    padding: 18px !important;
  }

  .map-form-section {
    padding: 15px !important;
  }

  .map-field textarea,
  .profile-field textarea {
    min-height: 88px !important;
  }

  .map-toolbar-actions,
  .spot-card-actions,
  .videos-card-actions,
  .profile-photo-actions,
  .profile-actions {
    gap: 10px !important;
  }

  .map-toolbar-actions button,
  .spot-card-actions a,
  .spot-card-actions button,
  .videos-card-actions a,
  .profile-photo-actions button,
  .profile-photo-actions label,
  .profile-actions button,
  .profile-actions a {
    width: 100% !important;
    min-height: 48px !important;
  }
}

/* Performance pass: keep the visual identity, but avoid costly repaint work while scrolling and panning maps. */
:root {
  --rift-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body::after {
  animation: none !important;
}

.site-dock__shell,
.site-dock__panel,
.map-toolbar,
.map-stat-card,
.map-modal,
.map-modal-card,
.map-panel .leaflet-popup-content-wrapper,
.map-panel .leaflet-popup-tip,
.auth-card,
.home-contact-card,
.rank-board,
.action-card,
.story-note,
.profile-panel,
.moderation-panel,
.videos-toolbar,
.videos-tabs,
.xp-levels-panel,
.map-daily-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#map {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26) !important;
  transform: translateZ(0);
}

.map-panel .leaflet-tile {
  filter: none !important;
}

.leaflet-fade-anim .leaflet-tile,
.leaflet-zoom-animated {
  transition: none !important;
}

.map-spot-marker div {
  box-shadow: 0 0 0 4px rgba(183, 169, 138, 0.16), 0 8px 18px rgba(0, 0, 0, 0.32) !important;
}

.hero-reel__frame,
.sport-card__image,
.story-tile::after {
  will-change: opacity, transform;
}

.home-contact-strip,
.section-intro,
.sport-grid,
.home-simple,
.community-feed,
.xp-arena,
.events-section,
.site-footer,
.spots-panel,
.videos-feed,
.leaderboard-board,
.profile-panel {
  content-visibility: auto;
  contain-intrinsic-size: 1px 620px;
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 120ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .hero-reel__frame,
  .sport-card__image,
  .story-tile::after {
    filter: none !important;
    transition: opacity 180ms ease !important;
    transform: none !important;
  }

  body,
  body.site-dock-auth {
    background-attachment: scroll !important;
  }
}

.map-mobile-exit {
  display: none;
}

@media (max-width: 720px) {
  body.map-page {
    overflow-x: hidden;
  }

  body.map-page .map-live-stage {
    min-height: min(82svh, 720px) !important;
    margin-bottom: 16px !important;
  }

  body.map-page .map-live-stage #map {
    height: min(82svh, 720px) !important;
    min-height: 560px !important;
  }

  body.map-page .map-mobile-exit {
    position: absolute;
    top: calc(78px + env(safe-area-inset-top));
    right: 12px;
    z-index: 650;
    display: flex;
    gap: 8px;
    pointer-events: auto;
  }

  body.map-page .map-mobile-exit__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(1, 25, 39, 0.78);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(1, 25, 39, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.map-page .map-mobile-exit__link--primary {
    background: #ffd447;
    border-color: #ffd447;
    color: #011927;
  }

  body.map-page .map-stage-overlay--intro {
    top: calc(124px + env(safe-area-inset-top)) !important;
  }

  body.map-page .map-stage-overlay--intro .map-page-stats {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }

  body.map-page .map-stage-overlay--intro .map-stat-card {
    min-width: 0 !important;
  }

  body.map-page .map-stage-overlay--filters {
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    max-height: 30svh !important;
  }
}

@media (max-width: 420px) {
  body.map-page .map-live-stage {
    min-height: 78svh !important;
  }

  body.map-page .map-live-stage #map {
    height: 78svh !important;
    min-height: 520px !important;
  }

  body.map-page .map-mobile-exit {
    left: 10px;
    right: 10px;
  }

  body.map-page .map-mobile-exit__link {
    flex: 1;
  }
}

/* Mobile map handling: keep Leaflet touch area clear and move controls outside it. */
@media (max-width: 720px) {
  body.map-page .map-page-shell:has(.map-live-stage) {
    width: min(100% - 18px, 480px) !important;
    padding-top: calc(96px + env(safe-area-inset-top)) !important;
    gap: 14px !important;
  }

  body.map-page .map-live-stage {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.map-page .map-live-stage::before {
    display: none !important;
  }

  body.map-page .map-live-stage #map {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: min(58svh, 520px) !important;
    min-height: 360px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 44px rgba(1, 25, 39, 0.28) !important;
    overflow: hidden !important;
  }

  body.map-page .map-mobile-exit,
  body.map-page .map-stage-overlay,
  body.map-page .map-stage-overlay--intro,
  body.map-page .map-stage-overlay--filters {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
  }

  body.map-page .map-mobile-exit {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: 100%;
    pointer-events: auto;
  }

  body.map-page .map-stage-overlay--intro {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    max-width: none !important;
    pointer-events: auto !important;
  }

  body.map-page .map-stage-overlay--intro .map-page-copy,
  body.map-page .map-stage-overlay--intro .map-stat-card,
  body.map-page .map-stage-overlay--filters {
    background: rgba(8, 10, 11, 0.88) !important;
    border: 1px solid rgba(244, 241, 234, 0.16) !important;
    box-shadow: 0 12px 30px rgba(1, 25, 39, 0.2) !important;
    backdrop-filter: blur(16px) saturate(1.04);
    -webkit-backdrop-filter: blur(16px) saturate(1.04);
  }

  body.map-page .map-stage-overlay--intro .map-page-copy {
    width: 100% !important;
    padding: 14px !important;
  }

  body.map-page .map-stage-overlay--intro h1 {
    max-width: none !important;
    margin: 8px 0 0 !important;
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }

  body.map-page .map-stage-overlay--intro .map-page-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.map-page .map-stage-overlay--intro .map-stat-card {
    width: auto !important;
    min-width: 0 !important;
    min-height: 78px !important;
  }

  body.map-page .map-stage-overlay--filters {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  body.map-page .map-stage-overlay--filters .map-toolbar-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.map-page .map-live-stage .leaflet-control-zoom {
    margin-top: 12px !important;
    margin-left: 12px !important;
  }
}

@media (max-width: 420px) {
  body.map-page .map-page-shell:has(.map-live-stage) {
    width: min(100% - 14px, 420px) !important;
  }

  body.map-page .map-live-stage #map {
    height: 54svh !important;
    min-height: 330px !important;
  }
}

/* Tablet and short landscape screens need the map controls outside the Leaflet canvas. */
@media (min-width: 721px) and (max-width: 1180px) {
  body.map-page .map-page-shell:has(.map-live-stage) {
    width: min(100% - 28px, 1040px) !important;
    padding-top: 14px !important;
    gap: 14px !important;
  }

  body.map-page .map-live-stage {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.map-page .map-live-stage::before {
    display: none !important;
  }

  body.map-page .map-live-stage #map {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: clamp(300px, 42svh, 420px) !important;
    min-height: 300px !important;
    border: 1px solid rgba(244, 241, 234, 0.16) !important;
    border-radius: 14px !important;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34) !important;
    overflow: hidden !important;
  }

  body.map-page .map-stage-overlay,
  body.map-page .map-stage-overlay--intro,
  body.map-page .map-stage-overlay--filters {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
  }

  body.map-page .map-stage-overlay--intro {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    max-width: none !important;
    gap: 12px !important;
    pointer-events: auto !important;
  }

  body.map-page .map-stage-overlay--intro .map-page-copy {
    width: auto !important;
    min-width: 0 !important;
  }

  body.map-page .map-stage-overlay--intro h1 {
    max-width: none !important;
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    line-height: 0.92 !important;
  }

  body.map-page .map-stage-overlay--intro .map-page-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(100px, 1fr)) !important;
    gap: 10px !important;
  }

  body.map-page .map-stage-overlay--intro .map-stat-card {
    width: auto !important;
    min-width: 0 !important;
  }

  body.map-page .map-stage-overlay--filters {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  body.map-page .map-stage-overlay--filters .map-toolbar-actions {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.map-page .map-stage-overlay--filters .map-toolbar-actions button {
    width: 100% !important;
  }

  body.map-page .map-live-stage .leaflet-control-zoom {
    margin-top: 12px !important;
    margin-left: 12px !important;
  }
}

@media (min-width: 721px) and (max-width: 860px) {
  body.map-page .map-stage-overlay--intro,
  body.map-page .map-stage-overlay--filters,
  body.map-page .map-stage-overlay--filters .map-toolbar-actions {
    grid-template-columns: 1fr !important;
  }

  body.map-page .map-page-shell:has(.map-live-stage) {
    padding-top: 92px !important;
  }

  body.map-page .map-live-stage #map {
    height: clamp(340px, 50svh, 500px) !important;
    min-height: 340px !important;
  }
}
