:root {
  --bg: #070a08;
  --bg-soft: #0c120f;
  --panel: #111914;
  --panel-2: #16211b;
  --line: #2a3a31;
  --line-strong: #3f5d4b;
  --text: #f4f8f5;
  --muted: #a9b7ad;
  --green: #7ba36f;
  --green-strong: #a6c995;
  --teal: #2fb9c8;
  --amber: #e59028;
  --danger: #d06464;
  --shadow: 0 22px 58px rgba(0, 0, 0, .34);
  --watermark: url("/assets/spotpeche-site-watermark.png");
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  /* Column layout so the footer can be pushed to the bottom of the screen
     when the page content is short. */
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(12, 18, 15, .96), rgba(7, 10, 8, .98) 46%, #050706),
    #070a08;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: min(760px, 78vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/assets/spotpeche-site-watermark.png") center / contain no-repeat;
  opacity: .34;
}
body.login-page::before {
  display: none;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.inline-link {
  color: var(--green-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 0 24px;
  background: rgba(7, 10, 8, .96);
  border-bottom: 1px solid rgba(122, 163, 111, .22);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
  letter-spacing: .01em;
}
.brand-banner {
  display: block;
  width: 100%;
  height: clamp(150px, 20vw, 320px);
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .36));
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

/* Desktop: banner spans the full topbar width with the menu overlaid on top,
   so there is no empty background block beside it. Scoped away from the login
   hero (which centers a contained logo) and mobile (which stacks vertically). */
@media (min-width: 921px) {
  body:not(.login-page) .topbar {
    justify-content: flex-end;
    gap: 0;
    padding: 0;
    height: clamp(120px, 10.45vw, 277px);
    min-height: 0;
  }
  body:not(.login-page) .brand {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    flex: none;
  }
  body:not(.login-page) .brand-banner {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    filter: none;
  }
  body:not(.login-page) .topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to right, rgba(7, 10, 8, 0) 58%, rgba(7, 10, 8, .5) 76%, rgba(7, 10, 8, .85) 100%);
  }
  body:not(.login-page) .main-nav {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .7);
  }
}
.nav-menu-concours { order: 1; }
.nav-menu-pecheurs { order: 2; }
.nav-menu-vie-club { order: 3; }
.nav-menu-mon-club { order: 4; }
.nav-menu-admin { order: 5; }
.nav-link-logout { order: 98; }
.nav-profile-photo-link { order: 99; }
.nav-link-annuaire { order: 99; }
.home-card-programme { order: 1; }
.home-card-profile { order: 2; }
.home-card-fishers { order: 3; }
.home-card-album { order: 4; }
.home-card-journal { order: 5; }
.home-card-score { order: 6; }
.home-card-annuaire { order: 99; }
.main-nav a,
.menu-group summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 11px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.main-nav a:hover,
.menu-group summary:hover,
.menu-group[open] summary {
  color: var(--text);
  background: rgba(123, 163, 111, .08);
  border-color: rgba(123, 163, 111, .22);
}
.nav-cta {
  color: #061008 !important;
  background: var(--green);
  border-color: var(--green) !important;
  font-weight: 800;
}
.nav-profile-photo-link {
  padding: 6px !important;
  min-height: 76px;
  border-radius: 999px !important;
}
.nav-profile-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  color: #071008;
  background: var(--green-strong);
  border: 1px solid rgba(166, 201, 149, .72);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}
.nav-profile-photo--placeholder {
  text-transform: uppercase;
}
.menu-group {
  position: relative;
}
.menu-group summary {
  list-style: none;
}
.menu-group summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 30;
  display: grid;
  min-width: 242px;
  padding: 8px;
  background: #0d130f;
  border: 1px solid rgba(123, 163, 111, .28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.menu-panel a {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}

.shell {
  position: relative;
  z-index: 1;
  /* Fluid: follows the screen width, with a cap so text stays readable on very
     large monitors. Adapts on its own, no fixed breakpoints. */
  width: min(calc(100% - 40px), 2100px);
  margin: 28px auto 64px;
  /* Takes the leftover height so the footer sits at the bottom on short pages. */
  flex: 1 0 auto;
}
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 18px 30px;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer a:hover { color: var(--text); }
.legal-copy { max-width: 860px; margin: 0 auto; }
.legal-copy h2 { margin: 12px 0 0; font-size: 1.15rem; }
.legal-copy p { margin: 0; line-height: 1.65; }
.checkbox-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  line-height: 1.5;
}
.checkbox-row input { margin-top: 4px; }
.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-header.compact { margin-bottom: 14px; }
.eyebrow {
  margin: 0 0 7px;
  color: var(--green-strong);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: 0; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { line-height: 1.5; }
.muted { color: var(--muted); }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 300px;
  margin-bottom: 18px;
  padding: clamp(24px, 5vw, 44px);
  background:
    linear-gradient(135deg, rgba(17, 25, 20, .64), rgba(9, 15, 12, .60)),
    var(--watermark) center / clamp(420px, 58vw, 780px) auto fixed no-repeat,
    #111914;
  border: 1px solid rgba(123, 163, 111, .24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.home-hero > div { max-width: 720px; }
.home-hero h1 { font-size: clamp(42px, 7vw, 72px); }
.home-hero p { max-width: 600px; font-size: 17px; }

.grid {
  display: grid;
  /* The number of columns is computed from the space actually available, so it
     adapts to any screen: 1 on a phone, 2 on a tablet, 4 from a laptop up to 4K.
     The card floor grows with the viewport so a 4K screen gets 4 wide cards
     rather than 6 narrow ones. min(100%) guards against overflow on narrow
     screens. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(320px, 22vw, 480px)), 1fr));
  gap: 14px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel,
.card,
.stat-card,
.login-panel {
  position: relative;
  background:
    linear-gradient(rgba(17, 25, 20, .68), rgba(17, 25, 20, .68)),
    var(--watermark) center / clamp(420px, 58vw, 780px) auto fixed no-repeat;
  border: 1px solid rgba(123, 163, 111, .22);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .20);
}
/* Sliding Connexion / Inscription card (Gears-style double panel, SpotPeche colours). */
.sp-auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(123, 163, 111, .22);
  border-radius: 18px;
  background:
    linear-gradient(rgba(17, 25, 20, .74), rgba(17, 25, 20, .74)),
    var(--watermark) center / clamp(420px, 58vw, 780px) auto fixed no-repeat;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .45);
}
.sp-auth-panel {
  min-width: 0;
  padding: 30px 28px;
  align-content: center;
}
.sp-auth-panel--login { grid-column: 1; grid-row: 1; }
.sp-auth-panel--register { grid-column: 2; grid-row: 1; }
/* The form keeps the .login-panel class for existing JS, but inside the shell it
   must not draw its own card. */
.sp-auth-shell .login-panel {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
/* The green cover slides over one half and carries the switch message. */
.sp-auth-cover {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px 26px;
  overflow: hidden;
  color: #061008;
  background:
    radial-gradient(ellipse at 30% 8%, rgba(255, 255, 255, .28), transparent 34%),
    linear-gradient(150deg, var(--green-strong) 0%, var(--green) 52%, #3f5d4b 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .25);
  border-radius: 90px 18px 18px 90px;
  transition: left .55s cubic-bezier(.7, 0, .22, 1), border-radius .55s ease;
  will-change: left;
}
.sp-auth-shell[data-auth-mode="register"] .sp-auth-cover {
  left: 0;
  border-radius: 18px 90px 90px 18px;
}
.sp-auth-cover-face {
  grid-area: 1 / 1;
  display: grid;
  gap: 12px;
  max-width: 300px;
  transition: opacity .3s ease;
}
.sp-auth-cover-face h2 { margin: 0; font-size: 1.5rem; color: #06120a; }
.sp-auth-cover-face p { margin: 0; color: rgba(6, 16, 10, .82); font-size: .92rem; line-height: 1.45; }
.sp-auth-cover-face--register { opacity: 0; pointer-events: none; }
.sp-auth-shell[data-auth-mode="register"] .sp-auth-cover-face--login { opacity: 0; pointer-events: none; }
.sp-auth-shell[data-auth-mode="register"] .sp-auth-cover-face--register { opacity: 1; pointer-events: auto; }
.sp-auth-switch {
  justify-self: center;
  min-height: 40px;
  padding: 10px 22px;
  border: 2px solid rgba(6, 16, 10, .55);
  border-radius: 999px;
  background: transparent;
  color: #06120a;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.sp-auth-switch:hover { background: rgba(6, 16, 10, .12); border-color: #06120a; }
/* Sous 860px il n'y a vraiment plus la place pour deux colonnes cote a cote :
   la bande verte passe en bandeau bas, mais les panneaux continuent de
   coulisser LATERALEMENT (meme principe que GEARS), jamais de haut en bas. */
@media (max-width: 860px) {
  .sp-auth-shell {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: min(86vh, 640px);
  }
  .sp-auth-panel--login,
  .sp-auth-panel--register {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 96px);
    overflow-y: auto;
    transition: transform .55s cubic-bezier(.7, 0, .22, 1);
  }
  .sp-auth-panel--login { transform: translateX(0); }
  .sp-auth-panel--register { transform: translateX(100%); }
  .sp-auth-shell[data-auth-mode="register"] .sp-auth-panel--login { transform: translateX(-100%); }
  .sp-auth-shell[data-auth-mode="register"] .sp-auth-panel--register { transform: translateX(0); }
  .sp-auth-cover {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 96px;
    border-radius: 22px 22px 0 0;
    padding: 12px 16px;
    transition: none;
  }
  .sp-auth-shell[data-auth-mode="register"] .sp-auth-cover {
    left: 0;
    border-radius: 22px 22px 0 0;
  }
  .sp-auth-cover-face {
    max-width: none;
    gap: 8px;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
  }
  .sp-auth-cover-face h2,
  .sp-auth-cover-face p { display: none; }
  .sp-auth-switch { min-height: 44px; padding: 10px 26px; }
}
.login-account-choice {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid rgba(123, 163, 111, .28);
  border-radius: 8px;
  background: rgba(7, 10, 8, .32);
  color: var(--text);
  text-decoration: none;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.login-account-choice:hover {
  border-color: var(--green);
  background: rgba(123, 163, 111, .1);
  transform: translateY(-1px);
}
.login-account-choice .pill { justify-self: start; }
.login-account-choice strong { font-size: 1.06rem; }
.page-header { position: relative; }
.has-score-mini {
  padding-right: 78px;
}
.score-mini {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  pointer-events: none;
}
.score-mini__trophies {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 34px;
}
.score-mini .score-trophy {
  width: 34px;
  height: 42px;
  margin: 0;
  scale: .56;
  transform-origin: center;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .34));
}
.score-mini .score-trophy + .score-trophy {
  margin-left: -12px;
}
.table-name-cell {
  position: relative;
  min-width: 150px;
  padding-right: 70px !important;
}
.table-name-cell .score-mini {
  top: 8px;
  right: 8px;
}
.menu-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.preview-phone {
  display: grid;
  gap: 12px;
}
.preview-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.preview-menu-tile {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(123, 163, 111, .20);
  border-radius: 8px;
  background: rgba(248, 250, 246, .045);
}
.preview-menu-tile strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.preview-menu-tile span {
  color: var(--muted);
  font-size: 12px;
}
.panel { padding: 18px; }
.panel.narrow { max-width: 560px; }
.card {
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 18px;
}
.feature-card {
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(166, 201, 149, .48);
  background:
    linear-gradient(rgba(22, 33, 27, .64), rgba(22, 33, 27, .64)),
    var(--watermark) center / clamp(420px, 58vw, 780px) auto fixed no-repeat;
}
.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid rgba(123, 163, 111, .30);
  border-radius: 999px;
  color: var(--green-strong);
  background: rgba(123, 163, 111, .08);
  font-size: 12px;
  font-weight: 800;
}
.status-badge.ok {
  color: #d8f0c7;
  border-color: rgba(166, 201, 149, .54);
}
.status-badge.warn {
  color: #ffd49a;
  border-color: rgba(229, 144, 40, .52);
  background: rgba(229, 144, 40, .10);
}
.status-badge.danger {
  color: #ffc2c2;
  border-color: rgba(208, 100, 100, .55);
  background: rgba(208, 100, 100, .10);
}

.toolbar,
.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}
.toolbar { margin: 0 0 16px; }
.stack { display: grid; gap: 14px; }
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--text);
  background: rgba(8, 13, 10, .88);
  border: 1px solid rgba(123, 163, 111, .27);
  border-radius: 6px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 185, 200, .12);
}
select,
select option {
  color: #f4f8f5;
  background-color: #0d130f;
}

.association-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 16px;
  background: #f4f8f5;
  padding: 6px;
}
.association-logo.small { width: 64px; height: 64px; }

.association-banner {
    display: block;
    width: 100%;
    height: clamp(130px, 22vw, 240px);
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.association-directory-toolbar {
  align-items: end;
}
.association-directory-toolbar label {
  min-width: min(220px, 100%);
}
.association-directory-grid {
  align-items: stretch;
}
.association-directory-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}
.association-directory-card .association-directory-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.association-directory-card .association-directory-tags > span:not(.association-directory-chip) {
  color: var(--muted);
  line-height: 1.2;
}
.association-directory-chip {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  min-height: 24px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  line-height: 1.15;
  white-space: nowrap;
  align-self: flex-start;
}
.association-directory-card .profile-title-row h2 {
  margin: 0;
  overflow-wrap: anywhere;
}
.association-directory-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.association-directory-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: auto;
  padding: 8px 10px;
  border: 1px solid rgba(123, 163, 111, .30);
  border-radius: 12px;
  background: rgba(123, 163, 111, .07);
  color: #d8f0c7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.association-directory-stat--warn {
  color: #ffd49a;
  border-color: rgba(229, 144, 40, .52);
  background: rgba(229, 144, 40, .10);
}
@media (max-width: 980px) {
  .association-directory-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .association-directory-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .association-directory-stats {
    grid-template-columns: 1fr;
  }
  .association-directory-chip {
    white-space: normal;
  }
}

.profile-photo,
.profile-photo-placeholder {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green);
    background: var(--panel-2);
}

.profile-photo-large,
.profile-photo-placeholder {
    width: 128px;
    height: 128px;
    flex-basis: 128px;
}

.profile-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--text);
    font-size: 42px;
    font-weight: 800;
}

.profile-media-form {
    align-items: flex-start;
}
.affiliation-pill { display: inline-flex; align-items: center; gap: 7px; }
.affiliation-pill img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; background: #fff; }
textarea {
  min-height: 104px;
  resize: vertical;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #071008;
  font-weight: 900;
  border-radius: 6px;
  cursor: pointer;
}

.app-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  background: rgba(9, 14, 11, .96);
  border: 1px solid rgba(123, 163, 111, .34);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.app-install-banner:not([hidden]) { display: flex; }
.app-install-banner strong,
.app-install-banner span {
  display: block;
}
.app-install-banner span {
  color: var(--muted);
  font-size: 13px;
}
.app-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.app-install-actions .button,
.app-install-actions button {
  min-height: 36px;
  padding: 8px 10px;
}
.button:hover,
button:hover {
  filter: brightness(1.06);
}
.button.ghost,
button.ghost {
  background: transparent;
  color: var(--green-strong);
}
.button.danger,
button.danger {
  border-color: var(--danger);
  background: transparent;
  color: #ffc2c2;
}

.password-toggle-field {
  position: relative;
  display: block;
}
.password-toggle-field input {
  padding-right: 54px;
}
.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 34px;
  padding: 0;
  transform: translateY(-50%);
  color: var(--green-strong);
  background: rgba(7, 10, 8, .84);
  border-color: rgba(166, 201, 149, .46);
  border-radius: 999px;
  line-height: 1;
}
.password-toggle-button:hover,
.password-toggle-button:focus-visible {
  color: #e9ffdf;
  border-color: rgba(194, 230, 176, .82);
}
.password-toggle-eye {
  width: 23px;
  height: 23px;
  display: block;
}
.password-toggle-eye__outline,
.password-toggle-eye__slash {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle-eye__pupil {
  fill: currentColor;
}
.password-toggle-eye__slash {
  opacity: 0;
  transition: opacity .16s ease;
}
.password-toggle-button[aria-pressed="true"] .password-toggle-eye__slash {
  opacity: 1;
}

.spot-helper {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}
.spot-helper__button,
.spot-helper__panel {
  pointer-events: auto;
}
.spot-helper__button {
  gap: 9px;
  min-height: 46px;
  padding: 8px 13px 8px 8px;
  color: #061008;
  background: linear-gradient(135deg, #b9dda8, #69b8c7);
  border-color: rgba(244, 248, 245, .55);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34);
}
.spot-helper__fish {
  width: 38px;
  height: 27px;
  overflow: visible;
}
.spot-helper__panel {
  width: min(410px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 96px));
  overflow-y: auto;
  padding: 14px;
  color: var(--text);
  background:
    linear-gradient(rgba(11, 17, 13, .96), rgba(11, 17, 13, .96)),
    var(--watermark) right bottom / 210px auto no-repeat;
  border: 1px solid rgba(166, 201, 149, .36);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(13px);
}
.spot-helper__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.spot-helper__head strong,
.spot-helper__head span {
  display: block;
}
.spot-helper__head strong {
  font-size: 15px;
}
.spot-helper__head span,
.spot-helper__note {
  color: var(--muted);
  font-size: 13px;
}
.spot-helper__close {
  min-height: 32px;
  padding: 6px 9px;
  color: var(--green-strong);
  background: transparent;
  border-color: rgba(166, 201, 149, .32);
  font-size: 12px;
}
.spot-helper__topics {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.spot-helper__topics button {
  min-height: 32px;
  padding: 6px 9px;
  color: var(--green-strong);
  background: rgba(7, 10, 8, .44);
  border-color: rgba(166, 201, 149, .30);
  font-size: 12px;
}
.spot-helper__topics button.active {
  color: #061008;
  background: var(--green-strong);
}
.spot-helper__walkthrough {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  color: #061008;
  background: linear-gradient(135deg, var(--green-strong), var(--teal));
  border-color: rgba(244, 248, 245, .55);
  font-weight: 900;
  text-align: center;
}
.spot-helper__menu-search,
/* Tightened so the space freed up goes to the textarea below. */
.spot-helper__question {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(166, 201, 149, .20);
}
.spot-helper__menu-search label,
.spot-helper__question label {
  color: #eaf4ec;
  font-size: 13px;
  font-weight: 800;
}
.spot-helper__menu-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.spot-helper__menu-search input,
.spot-helper__question textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: var(--text);
  background: rgba(6, 12, 9, .78);
  border: 1px solid rgba(166, 201, 149, .34);
  border-radius: 10px;
}
/* The writing area is the point of this panel, so give it real room. */
.spot-helper__question textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.45;
}
.spot-helper__menu-search button,
.spot-helper__question button {
  min-height: 40px;
  padding: 8px 11px;
}
.spot-helper__menu-results,
.spot-helper__answer {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #eaf4ec;
}
.spot-helper__menu-result {
  display: grid;
  gap: 5px;
  padding: 9px;
  background: rgba(6, 12, 9, .58);
  border: 1px solid rgba(166, 201, 149, .22);
  border-radius: 10px;
}
.spot-helper__menu-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.spot-helper__menu-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.spot-helper__menu-result-actions button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.spot-helper__content h2 {
  margin-bottom: 9px;
  font-size: 18px;
}
.spot-helper__content ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #eaf4ec;
}
.spot-helper__content li {
  line-height: 1.45;
}
.spot-helper__note {
  margin: 13px 0 0;
}
.spot-guide {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 95;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transform: translate(var(--spot-guide-x, 18px), var(--spot-guide-y, 18px));
  transition: transform 1.7s cubic-bezier(.18, .78, .16, 1);
  pointer-events: auto;
}
.spot-guide[hidden] {
  display: none;
}
.spot-guide--instant {
  transition: none !important;
}
.spot-guide__fish {
  flex: 0 0 92px;
  width: 92px;
  height: 55px;
  margin-top: 2px;
  overflow: visible;
  animation: spot-guide-swim 1.95s ease-in-out infinite;
  transform-style: preserve-3d;
}
.spot-guide__fish-body {
  fill: #7fc4d6;
  stroke: #e8ffff;
  stroke-width: 2;
}
.spot-guide__fish-back {
  fill: #1d7897;
  opacity: .82;
}
.spot-guide__fish-belly {
  fill: #d9fbff;
  opacity: .78;
}
.spot-guide__fish-tail {
  pointer-events: none;
}
.spot-guide__fish-tail-blade {
  fill: #48c7f1;
  stroke: #eaffff;
  stroke-width: 3.2;
}
.spot-guide__fish-tail-center {
  fill: #0f5874;
  stroke: #eaffff;
  stroke-width: 2.4;
}
.spot-guide__fish-fin {
  fill: #236b8f;
  opacity: .9;
}
.spot-guide__fish-gill {
  fill: none;
  stroke: #062836;
  stroke-width: 3.4;
  stroke-linecap: round;
  animation: spot-guide-gill-pulse .78s ease-in-out infinite;
}
.spot-guide__fish-gill-outline {
  fill: none;
  stroke: #f3ffff;
  stroke-width: 7.2;
  stroke-linecap: round;
  opacity: .95;
}
.spot-guide__fish-gill-outline--small {
  stroke-width: 5.6;
}
.spot-guide__fish-gill--small {
  opacity: 1;
  stroke-width: 2.8;
}
.spot-guide__fish-mouth {
  fill: none;
  stroke: #0d3850;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.spot-guide__fish-eye {
  fill: #061008;
  stroke: #f6ffff;
  stroke-width: 1.2;
}
.spot-guide__bubble {
  position: relative;
  min-width: 230px;
  padding: 12px;
  color: var(--text);
  background:
    radial-gradient(circle at 17% 18%, rgba(255, 255, 255, .34), transparent 0 11px),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, .22), transparent 0 7px),
    linear-gradient(145deg, rgba(177, 237, 250, .30), rgba(20, 88, 99, .88) 44%, rgba(7, 18, 15, .94));
  border: 1px solid rgba(185, 242, 255, .62);
  border-radius: 24px 24px 24px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -12px 22px rgba(21, 80, 91, .30),
    0 18px 44px rgba(0, 0, 0, .38);
  backdrop-filter: blur(13px) saturate(1.25);
  transform-origin: 10px 50%;
  transition: opacity .22s ease, transform .22s ease;
}
.spot-guide__bubble::before,
.spot-guide__bubble::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .88), rgba(179, 236, 246, .44) 34%, rgba(179, 236, 246, 0) 66%);
}
.spot-guide__bubble::before {
  left: -10px;
  top: 16px;
  width: 18px;
  height: 18px;
}
.spot-guide__bubble::after {
  left: -24px;
  top: 41px;
  width: 10px;
  height: 10px;
}
.spot-guide--moving .spot-guide__bubble {
  opacity: .42;
  transform: scale(.94);
}
.spot-guide--moving .spot-guide__fish {
  animation: spot-guide-travel 720ms ease-in-out infinite;
}
.spot-guide--turning .spot-guide__fish {
  animation: spot-guide-turn-right 620ms ease-in-out 1 both;
}
.spot-guide--turning[data-turn-direction="left"] .spot-guide__fish {
  animation-name: spot-guide-turn-left;
}
.spot-guide--turning .spot-guide__bubble {
  opacity: .5;
  transform: scale(.95);
}
.spot-guide--speaking .spot-guide__bubble {
  animation: spot-guide-bubble-talk 2s ease-in-out infinite;
}
.spot-guide__bubble strong {
  display: block;
  margin-bottom: 5px;
  color: #eaffff;
}
.spot-guide__bubble p {
  margin: 0 0 10px;
  color: #f3ffff;
}
.spot-guide__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.spot-guide__actions button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.spot-guide-target {
  position: relative;
  z-index: 96;
  outline: 3px solid rgba(47, 185, 200, .72) !important;
  box-shadow: 0 0 0 8px rgba(47, 185, 200, .18), 0 0 32px rgba(47, 185, 200, .28) !important;
  animation: spot-guide-pulse 1.2s ease-in-out infinite;
}
.spot-guide[data-placement="left"] {
  flex-direction: row-reverse;
}
.spot-guide[data-swim-direction="left"] .spot-guide__fish {
  animation-name: spot-guide-swim-left;
}
.spot-guide.spot-guide--moving[data-swim-direction="left"] .spot-guide__fish {
  animation-name: spot-guide-travel-left;
}
.spot-guide.spot-guide--turning .spot-guide__fish {
  animation: spot-guide-turn-right 620ms ease-in-out 1 both;
}
.spot-guide.spot-guide--turning[data-turn-direction="left"] .spot-guide__fish {
  animation-name: spot-guide-turn-left;
}
.spot-guide[data-placement="left"] .spot-guide__bubble {
  border-radius: 24px 24px 10px 24px;
  transform-origin: calc(100% - 10px) 50%;
}
.spot-guide[data-placement="left"] .spot-guide__bubble::before {
  left: auto;
  right: -10px;
}
.spot-guide[data-placement="left"] .spot-guide__bubble::after {
  left: auto;
  right: -24px;
}
.spot-guide[data-placement="top"],
.spot-guide[data-placement="bottom"] {
  flex-direction: column;
  align-items: center;
}
@keyframes spot-guide-swim {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}
@keyframes spot-guide-swim-left {
  0%, 100% { transform: scaleX(-1) translateY(0) rotate(-2deg); }
  50% { transform: scaleX(-1) translateY(-4px) rotate(2deg); }
}
@keyframes spot-guide-travel {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1); }
  35% { transform: translateY(-5px) rotate(4deg) scale(1.03); }
  70% { transform: translateY(2px) rotate(-2deg) scale(.99); }
}
@keyframes spot-guide-travel-left {
  0%, 100% { transform: scaleX(-1) translateY(0) rotate(-4deg) scale(1); }
  35% { transform: scaleX(-1) translateY(-5px) rotate(4deg) scale(1.03); }
  70% { transform: scaleX(-1) translateY(2px) rotate(-2deg) scale(.99); }
}
@keyframes spot-guide-turn-left {
  0% { transform: rotateY(0deg) translateY(0) scale(1); }
  45% { transform: rotateY(88deg) translateY(-4px) scale(.96); }
  100% { transform: rotateY(180deg) translateY(0) scale(1); }
}
@keyframes spot-guide-turn-right {
  0% { transform: rotateY(180deg) translateY(0) scale(1); }
  45% { transform: rotateY(92deg) translateY(-4px) scale(.96); }
  100% { transform: rotateY(0deg) translateY(0) scale(1); }
}
@keyframes spot-guide-gill-pulse {
  0%, 100% { opacity: .72; }
  45% { opacity: 1; }
  70% { opacity: .86; }
}
@keyframes spot-guide-bubble-talk {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  45% { transform: scale(1.018); filter: saturate(1.16); }
}
@keyframes spot-guide-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(47, 185, 200, .16), 0 0 30px rgba(47, 185, 200, .22) !important; }
  50% { box-shadow: 0 0 0 11px rgba(47, 185, 200, .24), 0 0 38px rgba(47, 185, 200, .32) !important; }
}

.table-panel {
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(17, 25, 20, .66), rgba(17, 25, 20, .66)),
    var(--watermark) center / clamp(420px, 58vw, 780px) auto fixed no-repeat;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}
.table th,
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(123, 163, 111, .16);
  text-align: left;
  vertical-align: top;
}
.table th {
  color: var(--green-strong);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.table tr:hover td {
  background: rgba(123, 163, 111, .045);
}
.inner-table {
  margin-top: 12px;
  border-top: 1px solid rgba(123, 163, 111, .16);
}
/* Lets a wide results table scroll on its own instead of stretching the page. */
.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}
/* A results table has few, short columns. Stretching it across a 4K screen just
   inflates the name column and leaves a void, so let it size to its content and
   centre it. If it ever gets wider than the screen it simply scrolls. */
/* Wide and centred, but with a fixed layout so the extra width is shared between
   the columns instead of being dumped into the name column (which is what left a
   void in the middle). Capped so lines stay readable on a 4K screen. */
.table-wrap .table {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-inline: auto;
  table-layout: fixed;
}
/* Columns are targeted by class, not position, so hiding an empty column never
   shifts the alignment onto the wrong one. No percentage widths here: with an
   auto-width table they would inflate the name column instead of shrinking. */
.table .col-rank,
.table .col-tight,
.table .col-num {
  white-space: nowrap;
}
/* Breathing room so the ranking does not read as a cramped block. Larger text
   also fills the row, which keeps the columns visually close together. */
.table-wrap .table th,
.table-wrap .table td {
  padding: 17px 18px;
  font-size: 19px;
}
.table-wrap .table th {
  font-size: 13px;
}
/* Proportional shares of the table width, so every column grows together.
   Optional columns (club, sector) simply take their share when present. */
.table-wrap .table .col-rank { width: 10%; }
.table-wrap .table .col-tight { width: 16%; }
.table-wrap .table .col-name { width: 26%; }
.table-wrap .table .col-club { width: 24%; }
.table-wrap .table .col-num { width: 20%; }
/* On a wide table the leftover room piles up inside whichever column is
   left-aligned, which reads as one big hole. Centring each cell spreads that
   room evenly between the columns instead. */
.table-wrap .table th,
.table-wrap .table td {
  text-align: center;
}
/* Long names must wrap rather than overflow, since the layout is fixed. */
.table-wrap .table .col-name,
.table-wrap .table .col-club {
  white-space: normal;
  overflow-wrap: anywhere;
}
.table .col-num {
  font-variant-numeric: tabular-nums;
}
.table td.col-rank {
  color: var(--green-strong);
  font-weight: 800;
}
/* Alternating rows make a long ranking far easier to follow across. */
.table-wrap .table tbody tr:nth-child(even) td {
  background: rgba(123, 163, 111, .035);
}
.flash {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(123, 163, 111, .24);
  background:
    linear-gradient(rgba(22, 33, 27, .68), rgba(22, 33, 27, .68)),
    var(--watermark) center / clamp(420px, 58vw, 780px) auto fixed no-repeat;
  border-radius: 8px;
}
.flash.success { border-color: rgba(166, 201, 149, .60); }
.flash.error { border-color: rgba(208, 100, 100, .75); }
.empty {
  padding: 34px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(123, 163, 111, .34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(17, 25, 20, .54), rgba(17, 25, 20, .54)),
    var(--watermark) center / clamp(420px, 58vw, 780px) auto fixed no-repeat;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(123, 163, 111, .20);
  border-radius: 8px;
  background: #080d0a;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 8px;
  background:
    linear-gradient(rgba(17, 25, 20, .62), rgba(17, 25, 20, .62)),
    var(--watermark) center / clamp(420px, 58vw, 780px) auto fixed no-repeat;
  border: 1px solid rgba(123, 163, 111, .18);
  border-radius: 8px;
}
.admin-tabs a {
  min-height: 36px;
  padding: 9px 11px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
}
.admin-tabs a.active,
.admin-tabs a:hover {
  color: var(--text);
  background: rgba(47, 185, 200, .08);
  border-color: rgba(47, 185, 200, .32);
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  display: grid;
  gap: 7px;
  min-height: 130px;
  padding: 18px;
}
.stat-card span {
  color: var(--teal);
  font-size: 28px;
  font-weight: 900;
}
.stat-card strong { font-size: 18px; }
.stat-card small {
  color: var(--muted);
  line-height: 1.45;
}
.stat-card.alert span { color: var(--amber); }
.admin-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}
.soft-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}
.admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.check-panel {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(123, 163, 111, .22);
  border-radius: 8px;
}
.check-panel legend {
  padding: 0 6px;
  color: var(--green-strong);
  font-weight: 800;
}
.check-panel label,
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-panel input,
.checkbox-line input {
  width: 18px;
  min-height: 18px;
}

.login-page .topbar {
  justify-content: center;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.login-page .brand-banner {
  width: clamp(520px, 48vw, 720px);
  height: clamp(120px, 10vw, 150px);
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .24));
}
.login-page .main-nav {
  position: absolute;
  right: 24px;
}
.login-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  /* As large as possible on wide screens (great on 4K) while always leaving the
     left area free so the card never covers the sun/moon of the scene. */
  grid-template-columns: min(1000px, calc(100vw - 700px));
  justify-content: end;
  align-items: start;
  min-height: calc(100vh - 150px);
  padding-top: 18px;
  padding-right: clamp(16px, 6vw, 90px);
}
/* Fenetre reduite : on ne peut plus decaler la carte a droite sans l'ecraser,
   on la recentre et on lui laisse toute la largeur — la carte garde ainsi ses
   deux panneaux cote a cote et le meme coulissement lateral que sur grand
   ecran. (Cette regle doit rester APRES celle du dessus, sinon elle est
   ecrasee : c'est ce qui se passait avant et la carte restait etroite.) */
@media (max-width: 1300px) {
  .login-wrap {
    grid-template-columns: min(980px, calc(100% - 24px));
    justify-content: center;
    padding-right: 0;
  }
}
.login-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: rgba(8, 14, 11, .82);
  border-color: rgba(146, 190, 134, .34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
  backdrop-filter: blur(7px);
}
.login-panel::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 0;
  width: 108px;
  aspect-ratio: 1;
  background: var(--watermark) center / contain no-repeat;
  opacity: .16;
  pointer-events: none;
}
.login-panel > * {
  position: relative;
  z-index: 1;
}
.login-panel h1 { font-size: 32px; }
.login-session-options {
  display: grid;
  gap: 9px;
}
.login-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(123, 163, 111, .22);
  border-radius: 7px;
  background: rgba(7, 10, 8, .32);
  cursor: pointer;
}
.login-option input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 1px;
}
.login-option span {
  display: grid;
  gap: 3px;
  color: var(--text);
  font-weight: 700;
}
.login-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.login-page {
  overflow-x: hidden;
  background: #07100d;
}
.login-page .shell {
  z-index: 2;
}
.login-lake-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}
.login-lake-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 6, .08), rgba(4, 8, 6, .20) 48%, rgba(4, 8, 6, .48)),
    linear-gradient(180deg, rgba(3, 7, 5, .12), transparent 40%, rgba(3, 7, 5, .40));
}
.login-lake-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}
.login-scene__lake-svg {
  transition: filter 1.4s ease, opacity 1.4s ease;
}
.login-scene__sun,
.login-scene__moon,
.login-scene__clouds {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.login-scene__sun-rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: login-sun-breathe 5.5s ease-in-out infinite;
}
.login-weather--day .login-scene__sun {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.login-weather--day .login-scene__lake-svg {
  filter: brightness(1.18) saturate(1.08);
}
.login-weather--night .login-scene__moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.login-weather--night .login-scene__lake-svg {
  filter: brightness(.58) saturate(.72) hue-rotate(7deg);
}
.login-weather--rain .login-scene__lake-svg {
  filter: brightness(.72) saturate(.78);
}
.login-weather--rain .login-scene__clouds {
  opacity: 1;
}
.login-scene__cloud {
  transform-box: fill-box;
  transform-origin: center;
}
.login-scene__cloud--back {
  animation: login-cloud-drift-back 28s ease-in-out infinite alternate;
}
.login-scene__cloud--front {
  animation: login-cloud-drift-front 21s ease-in-out infinite alternate;
}
.login-weather--snow .login-scene__lake-svg {
  filter: brightness(.76) saturate(.36) contrast(.9);
}
.login-scene__precipitation {
  position: absolute;
  inset: -18%;
  z-index: 2;
  opacity: 0;
  transition: opacity .7s ease;
}
.login-scene__rain {
  background-image: repeating-linear-gradient(108deg, transparent 0 58px, rgba(198, 221, 220, .18) 59px 60px, transparent 61px 100px);
  background-size: 118px 160px;
  animation: login-rain-fall 1.6s linear infinite;
}
.login-scene__snow {
  background-image:
    radial-gradient(circle, rgba(239, 247, 240, .82) 0 2px, transparent 2.8px),
    radial-gradient(circle, rgba(225, 238, 228, .65) 0 3px, transparent 3.8px),
    radial-gradient(circle, rgba(245, 250, 246, .52) 0 1.5px, transparent 2.2px);
  background-position: 0 0, 42px 66px, 86px 28px;
  background-size: 118px 132px, 156px 174px, 92px 110px;
  animation: login-snow-fall 10s linear infinite;
}
.login-weather--rain .login-scene__rain {
  opacity: .22;
}
.login-weather--snow .login-scene__snow {
  opacity: .72;
}
.login-scene__waves {
  animation: login-water-breathe 6.5s ease-in-out infinite;
}
.login-scene__angler-svg {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(360px, 49vw, 660px) !important;
  height: auto !important;
  max-height: 64vh;
  overflow: visible;
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.login-scene__seated-angler,
.login-scene__standing-angler,
.login-scene__rising-angler,
.login-scene__walking-angler,
.login-scene__rod,
.login-scene__fishing-line-air {
  transition: opacity .45s ease, transform .65s ease;
}
.login-scene__raincoat,
.login-scene__raincoat-sleeves {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.login-weather--rain .login-scene__raincoat {
  animation: login-raincoat-body 1.9s cubic-bezier(.2, .75, .25, 1) both;
}
.login-weather--rain .login-scene__raincoat-sleeves {
  animation: login-raincoat-sleeves 1.9s cubic-bezier(.2, .75, .25, 1) both;
}
.login-weather-transition--rain-on .login-scene__seated-upper {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: login-raincoat-angler-on 1.9s ease-in-out both;
}
.login-weather--rain.login-weather-transition--rain-off .login-scene__raincoat {
  animation: login-raincoat-body-off 1.75s cubic-bezier(.45, 0, .3, 1) both;
}
.login-weather--rain.login-weather-transition--rain-off .login-scene__raincoat-sleeves {
  animation: login-raincoat-sleeves-off 1.75s cubic-bezier(.45, 0, .3, 1) both;
}
.login-weather-transition--rain-off .login-scene__seated-upper {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: login-raincoat-angler-off 1.75s ease-in-out both;
}
.login-scene__standing-angler,
.login-scene__rising-angler,
.login-scene__walking-angler {
  opacity: 0;
  transform-origin: center bottom;
}
.login-scene__sleeper {
  opacity: 0;
  transform: translate(-22px, 26px) scale(.95);
  transform-origin: 210px 350px;
  transition: opacity 1s ease, transform 1.2s ease;
}
.login-weather--night .login-scene__seated-angler,
.login-weather--night .login-scene__standing-angler,
.login-weather--night .login-scene__rising-angler,
.login-weather--night .login-scene__walking-angler,
.login-weather--night .login-scene__rod,
.login-weather--night .login-scene__fishing-line-air,
.login-weather--night .login-scene__fishing-line-auth,
.login-weather--night .login-scene__fishing-line-cast,
.login-weather--night .login-scene__auth-fish,
.login-weather--night .login-scene__auth-splash,
.login-weather--night .login-scene__auth-keepnet-splash,
.login-weather--night .login-scene__auth-return-splash {
  opacity: 0;
  transform: translateY(34px);
}
.login-weather--night .login-scene__sleeper {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
.login-weather-transition--night .login-scene__seated-angler {
  animation: login-angler-pack-up 2.6s ease-in-out both;
}
.login-weather-transition--rise .login-scene__seated-angler,
.login-weather-transition--stand .login-scene__seated-angler,
.login-weather-transition--walk .login-scene__seated-angler,
.login-weather-transition--rise .login-scene__rod,
.login-weather-transition--stand .login-scene__rod,
.login-weather-transition--walk .login-scene__rod,
.login-weather-transition--rise .login-scene__fishing-line-air,
.login-weather-transition--stand .login-scene__fishing-line-air,
.login-weather-transition--walk .login-scene__fishing-line-air {
  opacity: 0;
}
.login-weather-transition--rise .login-scene__rising-angler,
.login-weather-transition--sit .login-scene__rising-angler {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
.login-weather-transition--stand .login-scene__standing-angler {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
.login-weather-transition--walk .login-scene__walking-angler {
  opacity: 1;
  animation: login-angler-walk-to-bed 1.7s linear both;
}
.login-weather-transition--return .login-scene__walking-angler {
  opacity: 1;
  animation: login-angler-walk-to-station 1.6s linear both;
}

.login-scene__walk-leg,
.login-scene__walk-arm,
.login-scene__seated-upper,
.login-scene__seated-legs {
  transform-box: view-box;
}

.login-scene__walk-leg {
  transform-origin: 128px 282px;
}

.login-scene__walk-arm {
  transform-origin: 128px 202px;
}

.login-weather-transition--walk .login-scene__walk-leg--front,
.login-weather-transition--return .login-scene__walk-leg--back {
  animation: login-walk-leg-forward .54s ease-in-out infinite alternate;
}

.login-weather-transition--walk .login-scene__walk-leg--back,
.login-weather-transition--return .login-scene__walk-leg--front {
  animation: login-walk-leg-back .54s ease-in-out infinite alternate;
}

.login-weather-transition--walk .login-scene__walk-arm--front,
.login-weather-transition--return .login-scene__walk-arm--back {
  animation: login-walk-arm-forward .54s ease-in-out infinite alternate;
}

.login-weather-transition--walk .login-scene__walk-arm--back,
.login-weather-transition--return .login-scene__walk-arm--front {
  animation: login-walk-arm-back .54s ease-in-out infinite alternate;
}
.login-weather-transition--stand .login-scene__sleeper {
  opacity: .18;
  transform: translate(0, 0) scale(1);
}
.login-weather-transition--walk .login-scene__sleeper,
.login-weather-transition--return .login-scene__sleeper {
  opacity: .38;
  transform: translate(0, 0) scale(1);
}
.login-weather-transition--sit .login-scene__sleeper {
  opacity: .16;
  transform: translate(0, 0) scale(1);
}
.login-weather-transition--stand .login-scene__sleeping-person,
.login-weather-transition--walk .login-scene__sleeping-person,
.login-weather-transition--return .login-scene__sleeping-person,
.login-weather-transition--sit .login-scene__sleeping-person,
.login-weather-transition--stand .login-scene__zzz,
.login-weather-transition--walk .login-scene__zzz,
.login-weather-transition--return .login-scene__zzz,
.login-weather-transition--sit .login-scene__zzz {
  opacity: 0;
}
.login-weather-transition--waking .login-scene__sleeper {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  animation: login-sleeper-wake 1.3s ease-in-out both;
}
.login-scene__seated-upper {
  transform-origin: 231px 240px;
}

.login-scene__seated-legs {
  transform-origin: 248px 244px;
}

.login-weather-transition--casting .login-scene__seated-upper {
  animation: login-cast-upper 3.6s cubic-bezier(.2, .75, .25, 1) both;
}

.login-weather-transition--casting .login-scene__seated-legs {
  animation: login-cast-legs 3.6s cubic-bezier(.2, .75, .25, 1) both;
}
.login-weather--snow .login-scene__angler-svg {
  opacity: 0;
  transform: translateY(16px);
}
.login-weather--night .login-scene__jumping-fish,
.login-weather--night .login-scene__fish-splash,
.login-weather--snow .login-scene__jumping-fish,
.login-weather--snow .login-scene__fish-splash,
.login-weather--snow .login-scene__fishing-line-air,
.login-weather--snow .login-scene__fishing-line-auth,
.login-weather--snow .login-scene__fishing-line-cast,
.login-weather--snow .login-scene__auth-fish,
.login-weather--snow .login-scene__auth-splash,
.login-weather--snow .login-scene__auth-keepnet-splash,
.login-weather--snow .login-scene__auth-return-splash {
  animation: none !important;
  opacity: 0 !important;
}
.login-scene__zzz {
  opacity: 0;
}
.login-weather--night .login-scene__zzz {
  animation: login-sleep-zzz 2.6s ease-in-out infinite;
}
.login-weather-tester {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 5;
  width: min(330px, calc(100vw - 28px));
  padding: 8px 10px;
  border: 1px solid rgba(146, 190, 134, .30);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(7, 12, 9, .84);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
  backdrop-filter: blur(6px);
}
.login-weather-tester summary {
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.login-weather-tester__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.login-weather-tester button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px;
}
.login-weather-tester button.is-active {
  color: #07100d;
  background: var(--green-strong);
}
.login-weather-status {
  margin: 7px 0 0;
  font-size: 11px;
}
.login-weather-demo {
  overflow: hidden;
}
.login-weather-demo .topbar,
.login-weather-demo .login-wrap,
.login-weather-demo .site-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.login-weather-demo .login-lake-scene {
  opacity: 1;
}
.login-weather-demo .login-scene__angler-svg {
  width: clamp(540px, 65vw, 820px) !important;
  max-height: 78vh;
  opacity: 1;
}
.login-weather-demo.login-weather--snow .login-scene__angler-svg {
  opacity: 0;
}
.login-weather-demo .login-weather-tester {
  top: 14px;
  right: 14px;
  bottom: auto;
}
.login-scene__keepnet {
  transform-box: view-box;
  transform-origin: 451px 326px;
  animation: login-keepnet-drift 5.8s ease-in-out infinite;
}
.login-scene__keepnet path,
.login-scene__keepnet circle,
.login-scene__keepnet ellipse {
  vector-effect: non-scaling-stroke;
}
.login-scene__keepnet-wave {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: login-keepnet-wave 3.8s ease-out infinite;
}
.login-scene__keepnet-wave--two {
  animation-delay: 1.9s;
}
.login-scene__wave--one { animation: login-water-drift 10s linear infinite; }
.login-scene__wave--two { animation: login-water-drift 14s linear infinite reverse; }
.login-scene__wave--three { animation: login-water-drift 18s linear infinite; }
.login-scene__wave--four { animation: login-water-drift 23s linear infinite reverse; }
.login-scene__fish-spot--one { --fish-duration: 13s; --fish-delay: -3s; }
.login-scene__fish-spot--two { --fish-duration: 19s; --fish-delay: -14s; }
.login-scene__fish-spot--three { --fish-duration: 17s; --fish-delay: -8s; }
.login-scene__fish-spot--four { --fish-duration: 23s; --fish-delay: -19s; }
.login-scene__jumping-fish {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: login-fish-jump var(--fish-duration) var(--fish-delay) ease-in-out infinite;
}
.login-scene__fish-splash {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: login-fish-splash var(--fish-duration) var(--fish-delay) ease-out infinite;
}
.login-scene__crank {
  transform-box: view-box;
}
.login-scene__fishing-line-air {
  vector-effect: non-scaling-stroke;
}
.login-scene__fishing-line-auth,
.login-scene__fishing-line-cast {
  opacity: 0;
  vector-effect: non-scaling-stroke;
}
.login-weather-transition--casting .login-scene__fishing-line-air {
  opacity: 0;
  transition: none;
}
.login-auth--success .login-scene__fishing-line-air,
.login-auth--failure .login-scene__fishing-line-air {
  opacity: 0;
  transition: none;
}
.login-auth--success .login-scene__fishing-line-auth,
.login-auth--failure .login-scene__fishing-line-auth {
  opacity: .82;
}
.login-weather--night.login-auth--success .login-scene__fishing-line-auth,
.login-weather--night.login-auth--failure .login-scene__fishing-line-auth,
.login-weather--snow.login-auth--success .login-scene__fishing-line-auth,
.login-weather--snow.login-auth--failure .login-scene__fishing-line-auth,
.login-weather--night.login-auth--success .login-scene__auth-fish,
.login-weather--night.login-auth--failure .login-scene__auth-fish,
.login-weather--snow.login-auth--success .login-scene__auth-fish,
.login-weather--snow.login-auth--failure .login-scene__auth-fish {
  animation: none !important;
  opacity: 0 !important;
}
.login-auth-status {
  margin: -4px 0 0;
  color: var(--green-strong);
  font-weight: 800;
  letter-spacing: .02em;
}
.login-panel.is-checking {
  pointer-events: none;
}
.login-panel.is-checking input,
.login-panel.is-checking a {
  opacity: .68;
}
.login-scene__auth-fish,
.login-scene__auth-splash,
.login-scene__auth-keepnet-splash,
.login-scene__auth-return-splash {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.login-auth--success .login-scene__jumping-fish,
.login-auth--success .login-scene__fish-splash,
.login-auth--failure .login-scene__jumping-fish,
.login-auth--failure .login-scene__fish-splash {
  animation: none;
  opacity: 0;
}
.login-auth--success .login-scene__auth-fish {
  animation: login-auth-fish-success 3.4s linear 1 both;
}
.login-auth--failure .login-scene__auth-fish {
  animation: login-auth-fish-failure 3.4s linear 1 both;
}
.login-auth--success .login-scene__auth-splash,
.login-auth--failure .login-scene__auth-splash {
  animation: login-auth-splash-out 3.4s ease-out 1 both;
}
.login-auth--failure .login-scene__auth-return-splash {
  animation: login-auth-splash-return 3.4s ease-out 1 both;
}
.login-auth--success .login-scene__auth-keepnet-splash {
  animation: login-auth-splash-keepnet 3.4s ease-out 1 both;
}
.login-auth--success .login-scene__keepnet-body {
  transform-box: fill-box;
  transform-origin: center top;
  animation: login-auth-keepnet-catch 3.4s ease-out 1 both;
}

@keyframes login-water-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -330px; }
}
@keyframes login-sun-breathe {
  0%, 100% { opacity: .50; transform: scale(.96); }
  50% { opacity: .72; transform: scale(1.04); }
}
@keyframes login-cloud-drift-back {
  from { transform: translateX(-28px); }
  to { transform: translateX(46px); }
}
@keyframes login-cloud-drift-front {
  from { transform: translateX(34px); }
  to { transform: translateX(-54px); }
}
@keyframes login-rain-fall {
  from { background-position: 0 0; }
  to { background-position: -118px 160px; }
}
@keyframes login-snow-fall {
  from { background-position: 0 0, 42px 66px, 86px 28px; }
  to { background-position: 118px 132px, 198px 240px, 178px 138px; }
}
@keyframes login-sleep-zzz {
  0%, 100% { opacity: .25; transform: translateY(7px); }
  50% { opacity: .92; transform: translateY(-7px); }
}
@keyframes login-raincoat-body {
  0% { opacity: 0; transform: translate(-12px, 18px) scale(.72); }
  30% { opacity: .8; transform: translate(-7px, -5px) scale(.9); }
  58% { opacity: 1; transform: translate(2px, -2px) scale(1.04); }
  78% { transform: translate(-1px, 1px) scale(.99); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes login-raincoat-sleeves {
  0% { opacity: 0; transform: translate(-18px, -17px) rotate(-16deg) scale(.82); }
  38% { opacity: .85; transform: translate(-4px, -12px) rotate(-8deg) scale(.94); }
  66% { opacity: 1; transform: translate(3px, 3px) rotate(3deg) scale(1.03); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes login-raincoat-body-off {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  35% { opacity: 1; transform: translate(3px, -8px) scale(1.02); }
  68% { opacity: .82; transform: translate(-9px, 7px) scale(.88); }
  100% { opacity: 0; transform: translate(-17px, 22px) scale(.7); }
}
@keyframes login-raincoat-sleeves-off {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  36% { opacity: 1; transform: translate(5px, -10px) rotate(7deg) scale(1.02); }
  72% { opacity: .7; transform: translate(-10px, -4px) rotate(-12deg) scale(.88); }
  100% { opacity: 0; transform: translate(-20px, 18px) rotate(-18deg) scale(.76); }
}
@keyframes login-raincoat-angler-on {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  28% { transform: translate(-3px, 4px) rotate(-2deg); }
  58% { transform: translate(3px, -2px) rotate(2deg); }
  78% { transform: translate(-1px, 1px) rotate(-1deg); }
}
@keyframes login-raincoat-angler-off {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(3px, -3px) rotate(2deg); }
  62% { transform: translate(-4px, 4px) rotate(-3deg); }
  82% { transform: translate(1px, 1px) rotate(1deg); }
}
@keyframes login-angler-pack-up {
  0%, 18% { transform: translate(0, 0) rotate(0); }
  48% { transform: translate(5px, 3px) rotate(3deg); }
  72% { transform: translate(-2px, -3px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes login-angler-walk-to-bed {
  0% { transform: translateX(112px); }
  100% { transform: translateX(0); }
}
@keyframes login-angler-walk-to-station {
  0% { transform: translateX(0); }
  100% { transform: translateX(112px); }
}
@keyframes login-walk-leg-forward {
  from { transform: rotate(-4deg); }
  to { transform: rotate(6deg); }
}
@keyframes login-walk-leg-back {
  from { transform: rotate(6deg); }
  to { transform: rotate(-4deg); }
}
@keyframes login-walk-arm-forward {
  from { transform: rotate(4deg); }
  to { transform: rotate(-5deg); }
}
@keyframes login-walk-arm-back {
  from { transform: rotate(-5deg); }
  to { transform: rotate(4deg); }
}
@keyframes login-sleeper-wake {
  0% { transform: translate(0, 0) rotate(0); }
  45% { transform: translate(0, -3px) rotate(-1deg); }
  100% { transform: translate(-2px, 2px) rotate(0); }
}
@keyframes login-cast-upper {
  0%, 8% { transform: translate(0, 0) rotate(0); }
  18% { transform: translate(-8px, 6px) rotate(-10deg); }
  34% { transform: translate(-13px, 7px) rotate(-17deg); }
  48% { transform: translate(17px, -5px) rotate(21deg); }
  62% { transform: translate(9px, -2px) rotate(10deg); }
  78% { transform: translate(-2px, 0) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes login-cast-legs {
  0%, 8% { transform: translate(0, 0) rotate(0) scale(1); }
  18% { transform: translate(5px, 5px) rotate(2deg) scale(.98, .94); }
  34% { transform: translate(8px, 8px) rotate(4deg) scale(.96, .89); }
  48% { transform: translate(-5px, -3px) rotate(-3deg) scale(1.02, 1.04); }
  62% { transform: translate(0, 1px) rotate(1deg) scale(.99, .97); }
  100% { transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes login-water-breathe {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}
@keyframes login-keepnet-drift {
  0%, 100% { transform: translate(0, 0) rotate(-.5deg); }
  50% { transform: translate(1px, 2px) rotate(1.1deg); }
}
@keyframes login-keepnet-wave {
  0% { opacity: 0; transform: scale(.72); }
  18% { opacity: .34; }
  100% { opacity: 0; transform: scale(1.22); }
}
@keyframes login-fish-jump {
  0%, 82%, 100% { opacity: 0; transform: translateY(2px) rotate(-32deg) scale(.72); }
  83% { opacity: .82; }
  87% { opacity: .92; transform: translateY(-48px) rotate(-3deg) scale(.84); }
  91% { opacity: .78; transform: translateY(-3px) rotate(34deg) scale(.76); }
  92% { opacity: 0; }
}
@keyframes login-fish-splash {
  0%, 82%, 100% { opacity: 0; transform: scale(.35); }
  83% { opacity: .38; transform: scale(.4); }
  86% { opacity: 0; transform: scale(1.2); }
  90% { opacity: 0; transform: scale(.4); }
  91% { opacity: .34; transform: scale(.45); }
  95% { opacity: 0; transform: scale(1.3); }
}
@keyframes login-auth-fish-success {
  0%, 42% { opacity: 0; transform: translate(0, 10px) rotate(-18deg) scale(.72); }
  52% { opacity: 1; transform: translate(-30px, -70px) rotate(-28deg) scale(.86); }
  62% { opacity: 1; transform: translate(-130px, -100px) rotate(8deg) scale(.94); }
  72% { opacity: 1; transform: translate(-250px, -100px) rotate(-12deg) scale(1); }
  84% { opacity: 1; transform: translate(-460px, -80px) rotate(12deg) scale(.92); }
  92% { opacity: 1; transform: translate(-575px, 15px) rotate(58deg) scale(.76); }
  97% { opacity: 1; transform: translate(-617px, 78px) rotate(82deg) scale(.64); }
  100% { opacity: 0; transform: translate(-617px, 92px) rotate(88deg) scale(.5); }
}
@keyframes login-auth-fish-failure {
  0%, 42% { opacity: 0; transform: translate(0, 10px) rotate(-18deg) scale(.72); }
  52% { opacity: 1; transform: translate(-30px, -70px) rotate(-28deg) scale(.86); }
  62% { opacity: 1; transform: translate(-130px, -100px) rotate(8deg) scale(.94); }
  70% { opacity: 1; transform: translate(-230px, -100px) rotate(-12deg) scale(1); }
  76% { opacity: 1; transform: translate(-350px, -82px) rotate(76deg) scale(.94); }
  88% { opacity: 1; transform: translate(-460px, -10px) rotate(138deg) scale(.84); }
  96% { opacity: .9; transform: translate(-552px, 95px) rotate(174deg) scale(.74); }
  100% { opacity: 0; transform: translate(-552px, 120px) rotate(196deg) scale(.66); }
}
@keyframes login-auth-splash-out {
  0%, 44% { opacity: 0; transform: scale(.3); }
  48% { opacity: .52; transform: scale(.48); }
  58%, 100% { opacity: 0; transform: scale(1.55); }
}
@keyframes login-auth-splash-return {
  0%, 92% { opacity: 0; transform: scale(.3); }
  96% { opacity: .5; transform: scale(.5); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes login-auth-splash-keepnet {
  0%, 91% { opacity: 0; transform: scale(.35); }
  96% { opacity: .58; transform: scale(.62); }
  100% { opacity: 0; transform: scale(1.45); }
}
@keyframes login-auth-keepnet-catch {
  0%, 91%, 100% { transform: translateY(0) scaleY(1); }
  96% { transform: translateY(3px) scaleY(.9); }
}
.score-personal {
  border-color: rgba(47, 185, 200, .32);
}
.score-list {
  display: grid;
  gap: 12px;
}
.score-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.score-podium__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(123, 163, 111, .18);
  border-radius: 8px;
  background: rgba(248, 250, 246, .045);
}
.score-podium__item--1 {
  padding-top: 6px;
  border-color: rgba(232, 185, 80, .32);
}
.score-podium__item--2 {
  border-color: rgba(220, 226, 229, .28);
}
.score-podium__item--3 {
  border-color: rgba(181, 113, 61, .30);
}
.score-podium__item .score-trophy {
  margin: 0 auto;
}
.score-podium__item strong,
.score-podium__item span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.score-podium__item span {
  color: var(--muted);
  font-size: 12px;
}
.contest-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin: 18px 0;
}
.contest-podium__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 164px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid rgba(123, 163, 111, .18);
  border-radius: 8px;
  background: rgba(248, 250, 246, .055);
}
.contest-podium__item--rank-1 {
  min-height: 188px;
  padding-top: 8px;
  border-color: rgba(232, 185, 80, .38);
  background: linear-gradient(180deg, rgba(232, 185, 80, .12), rgba(248, 250, 246, .045));
}
.contest-podium__item--rank-2 {
  border-color: rgba(220, 226, 229, .30);
}
.contest-podium__item--rank-3 {
  border-color: rgba(181, 113, 61, .34);
}
.contest-podium__item .score-trophy {
  margin: 0 auto;
}
.contest-podium__item strong,
.contest-podium__item span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contest-podium__association {
  width: 100%;
  overflow: hidden;
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contest-podium__metric {
  color: var(--muted);
  font-size: 12px;
}
.score-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(123, 163, 111, .18);
  border-radius: 8px;
  background: rgba(248, 250, 246, .045);
}
.score-card--no-trophy {
  grid-template-columns: minmax(0, 1fr);
}
.score-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.score-card__head h2 {
  margin-bottom: 4px;
}
.score-card__head strong {
  white-space: nowrap;
  color: var(--text);
}
.score-progress {
  height: 7px;
  margin: 12px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}
.score-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal));
}
.score-next {
  margin-bottom: 10px;
}
.score-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.score-counts span {
  padding: 4px 7px;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid rgba(123, 163, 111, .16);
  border-radius: 999px;
  background: rgba(7, 10, 8, .26);
}
.score-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.score-awards span {
  padding: 5px 8px;
  color: #eaf7ec;
  font-size: 12px;
  border: 1px solid rgba(123, 191, 111, .30);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(81, 130, 74, .42), rgba(23, 87, 73, .30));
}
.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.plain-list li + li {
  margin-top: 8px;
}
.score-trophy {
  position: relative;
  width: 54px;
  height: 68px;
  margin-inline: auto;
  transform-style: preserve-3d;
  filter: drop-shadow(0 13px 16px rgba(0, 0, 0, .30));
  animation: trophy-turn 10s linear infinite;
}
.score-trophy::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 1px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 72%);
  transform: translateZ(-2px);
}
.score-trophy__body,
.score-trophy__base,
.score-trophy__tail,
.score-trophy__fish,
.score-trophy__hook,
.score-trophy__eye {
  position: absolute;
  display: block;
}
.score-trophy__body {
  left: 10px;
  top: 8px;
  width: 34px;
  height: 37px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 12px 12px 18px 18px / 11px 11px 22px 22px;
  background:
    radial-gradient(ellipse at 35% 18%, rgba(255, 255, 255, .58), rgba(255, 255, 255, 0) 34%),
    linear-gradient(105deg, #65402b 0%, #d19358 25%, #f3b774 42%, #9b5e35 67%, #4e2f20 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .42),
    inset -8px -7px 9px rgba(0, 0, 0, .20),
    0 10px 16px rgba(0, 0, 0, .28);
}
.score-trophy__body::before,
.score-trophy__body::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 15px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 999px;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, .32);
}
.score-trophy__body::before { left: -15px; border-right: 0; }
.score-trophy__body::after { right: -15px; border-left: 0; }
.score-trophy__base {
  left: 13px;
  bottom: 7px;
  width: 30px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px 999px 7px 7px;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .58) 30%, currentColor 58%, rgba(0, 0, 0, .32)),
    currentColor;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .24), 0 6px 9px rgba(0, 0, 0, .25);
}
.score-trophy__base::before {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 9px;
  width: 12px;
  height: 15px;
  border-radius: 5px;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, .34), rgba(255, 255, 255, .54) 36%, currentColor 68%, rgba(0, 0, 0, .28)),
    currentColor;
}
.score-trophy__base::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .50);
}
.score-trophy__fish {
  left: 8px;
  top: 14px;
  width: 17px;
  height: 7px;
  opacity: 0;
  border-radius: 999px 70% 70% 999px;
  background:
    radial-gradient(ellipse at 34% 28%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 48%),
    rgba(7, 10, 8, .74);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .18);
}
.score-trophy__fish::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 1px;
  width: 7px;
  height: 7px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: rgba(7, 10, 8, .72);
}
.score-trophy__eye {
  opacity: 0;
}
.score-trophy__hook {
  opacity: 0;
}
.score-trophy__tail {
  opacity: 0;
}
.score-trophy--none {
  color: #657568;
  opacity: .7;
}
.score-trophy--bronze {
  color: #b87949;
}
.score-trophy--silver {
  color: #d8e0e2;
}
.score-trophy--silver .score-trophy__body {
  background:
    radial-gradient(ellipse at 34% 18%, rgba(255, 255, 255, .82), rgba(255, 255, 255, 0) 36%),
    linear-gradient(105deg, #78878a 0%, #f7fcff 28%, #c4d4d8 48%, #819195 70%, #edf6f8 100%);
}
.score-trophy--silver .score-trophy__fish {
  opacity: 1;
}
.score-trophy--gold {
  color: #f2c84b;
}
.score-trophy--gold .score-trophy__body {
  left: 8px;
  top: 14px;
  width: 39px;
  height: 25px;
  border-radius: 999px 62% 62% 999px;
  background:
    radial-gradient(ellipse at 38% 24%, rgba(255, 255, 255, .64), rgba(255, 255, 255, 0) 36%),
    linear-gradient(115deg, #8b6108 0%, #edb82e 23%, #ffe17b 47%, #d59d16 69%, #6f4a06 100%);
}
.score-trophy--gold .score-trophy__body::before {
  display: none;
}
.score-trophy--gold .score-trophy__body::after {
  right: 19px;
  top: 9px;
  width: 11px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(95, 62, 5, .28);
  box-shadow: 7px 0 0 rgba(95, 62, 5, .20), 14px 0 0 rgba(95, 62, 5, .16);
}
.score-trophy--gold .score-trophy__tail {
  opacity: 1;
  left: 0;
  top: 17px;
  width: 16px;
  height: 20px;
  clip-path: polygon(100% 50%, 0 0, 12% 50%, 0 100%);
  background:
    linear-gradient(115deg, #755006, #ffe17b 50%, #9a6b08);
}
.score-trophy--gold .score-trophy__eye {
  opacity: 1;
  right: 10px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #08100a;
  box-shadow: 1px -1px 0 rgba(255, 255, 255, .65);
}
.score-trophy--platinum {
  color: #dff8ff;
  filter: drop-shadow(0 0 17px rgba(47, 185, 200, .62));
  animation: trophy-turn 8s linear infinite, platinum-glow 2.8s ease-in-out infinite;
}
.score-trophy--platinum .score-trophy__body {
  left: 5px;
  top: 11px;
  width: 44px;
  height: 30px;
  border-radius: 999px 52% 52% 999px;
  background:
    radial-gradient(ellipse at 36% 20%, rgba(255, 255, 255, .88), rgba(255, 255, 255, 0) 34%),
    linear-gradient(115deg, #50aeca 0%, #e8fbff 25%, #ffffff 43%, #83dbec 66%, #3aa8c4 100%);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, .70),
    inset -9px -8px 12px rgba(30, 126, 145, .30),
    0 0 20px rgba(81, 225, 245, .38);
}
.score-trophy--platinum .score-trophy__body::before {
  display: none;
}
.score-trophy--platinum .score-trophy__body::after {
  right: 3px;
  top: 10px;
  width: 13px;
  height: 8px;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: rgba(7, 10, 8, .78);
}
.score-trophy--platinum .score-trophy__tail {
  opacity: 1;
  left: -3px;
  top: 15px;
  width: 17px;
  height: 24px;
  clip-path: polygon(100% 50%, 0 0, 11% 50%, 0 100%);
  background:
    linear-gradient(115deg, #45a8c0, #ffffff 48%, #67d4e8 68%, #2e8da5);
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, .44));
}
.score-trophy--platinum .score-trophy__eye {
  opacity: 1;
  right: 15px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #08100a;
}
.score-trophy--platinum .score-trophy__hook {
  opacity: 1;
  right: -7px;
  top: 16px;
  width: 12px;
  height: 18px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  border-radius: 0 0 999px 999px;
  box-shadow: 0 0 12px rgba(255, 255, 255, .95);
}
.score-trophy--transmission {
  color: #bfe9c0;
  filter: drop-shadow(0 0 13px rgba(123, 191, 111, .44));
}
.score-trophy--transmission .score-trophy__body {
  background:
    radial-gradient(ellipse at 33% 16%, rgba(255, 255, 255, .74), rgba(255, 255, 255, 0) 35%),
    linear-gradient(105deg, #51794d 0%, #e8f8e4 28%, #a6c99c 48%, #487844 70%, #f3fff1 100%);
}
.score-trophy--transmission .score-trophy__fish {
  opacity: 1;
  background:
    radial-gradient(ellipse at 34% 28%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 48%),
    rgba(21, 55, 36, .78);
}
.score-trophy--transmission .score-trophy__eye {
  opacity: 1;
  left: 25px;
  top: 17px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0a160d;
}
.score-trophy--transmission .score-trophy__hook {
  opacity: 1;
  left: 11px;
  top: 31px;
  width: 31px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(35, 79, 45, .86), rgba(230, 255, 225, .72), rgba(35, 79, 45, .86));
  box-shadow: 0 0 10px rgba(185, 236, 176, .28);
}
.score-trophy--size-1 { scale: .84; }
.score-trophy--size-2 { scale: .92; }
.score-trophy--size-3 { scale: 1; }
.score-trophy--size-4 { scale: 1.08; }
.score-trophy--size-5 { scale: 1.16; }
.score-mini .score-trophy.score-trophy--size-1,
.score-mini .score-trophy.score-trophy--size-2,
.score-mini .score-trophy.score-trophy--size-3,
.score-mini .score-trophy.score-trophy--size-4,
.score-mini .score-trophy.score-trophy--size-5 {
  scale: .56;
}

/* Keep the website awards identical to the realistic cup used by Android. */
.score-trophy {
  background: center / contain no-repeat url("/images/award_cup_realistic.png");
}
.score-trophy::after {
  left: 4px;
  right: 4px;
  bottom: -2px;
}
.score-trophy > .score-trophy__tail,
.score-trophy > .score-trophy__body,
.score-trophy > .score-trophy__base {
  display: none;
}
.score-trophy--none {
  filter: grayscale(1) opacity(.55) drop-shadow(0 10px 13px rgba(0, 0, 0, .28));
}
.score-trophy--bronze {
  filter: sepia(.78) saturate(1.9) hue-rotate(330deg) brightness(.82) contrast(1.08) drop-shadow(0 13px 16px rgba(0, 0, 0, .30));
}
.score-trophy--silver {
  filter: saturate(.65) brightness(1.05) drop-shadow(0 13px 16px rgba(0, 0, 0, .30));
}
.score-trophy--gold {
  filter: sepia(1) saturate(2.8) hue-rotate(352deg) brightness(1.14) contrast(1.04) drop-shadow(0 13px 16px rgba(0, 0, 0, .30));
}
.score-trophy--platinum {
  filter: grayscale(.35) sepia(.45) saturate(2.4) hue-rotate(138deg) brightness(1.15) drop-shadow(0 0 17px rgba(47, 185, 200, .62));
}
.score-trophy--transmission {
  filter: sepia(.65) saturate(1.8) hue-rotate(62deg) brightness(1.02) drop-shadow(0 0 13px rgba(123, 191, 111, .44));
}
.club-call-frame {
  position: relative;
  width: 100%;
  min-height: min(72vh, 720px);
  overflow: hidden;
  border: 1px solid rgba(123, 191, 111, .45);
  border-radius: 20px;
  background: #050b08;
}
.club-call-meet {
  width: 100%;
  height: min(72vh, 720px);
  min-height: 520px;
}
.club-call-meet iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.club-call-logo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: clamp(42px, 6vw, 66px);
  height: clamp(42px, 6vw, 66px);
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid rgba(200, 255, 189, .58);
  border-radius: 999px;
  background: rgba(5, 11, 8, .76);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
}
.club-call-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
}
@keyframes trophy-turn {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes platinum-glow {
  0%, 100% { filter: grayscale(.35) sepia(.45) saturate(2.4) hue-rotate(138deg) brightness(1.15) drop-shadow(0 0 10px rgba(47, 185, 200, .55)); }
  50% { filter: grayscale(.35) sepia(.45) saturate(2.4) hue-rotate(138deg) brightness(1.15) drop-shadow(0 0 24px rgba(255, 255, 255, .90)); }
}

@media (prefers-reduced-motion: reduce) {
  .login-scene__waves { animation-duration: 16s; }
  .login-scene__wave { animation-duration: 24s; }
  .login-scene__jumping-fish,
  .login-scene__fish-splash { animation-duration: 30s; }
}

@media (max-width: 920px) {
  .topbar {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding: 0 0 10px;
  }
  .brand {
    justify-content: center;
    width: 100%;
  }
  .brand-banner {
    width: min(100%, 880px);
    height: auto;
    object-fit: contain;
  }
  .login-page .main-nav {
    position: static;
  }
  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 0 12px;
  }
  .topbar .nav-cta {
    display: none;
  }
  .menu-group { width: auto; }
  .menu-group summary,
  .main-nav .nav-link {
    width: auto;
    min-height: 34px;
    padding: 7px 9px;
    font-size: .92rem;
  }
  .menu-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 142px;
    width: auto;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }
  .home-hero,
  .login-wrap,
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .login-wrap {
    padding-top: 12px;
    /* Full-width card on phones: keep it centred, drop the desktop right shift. */
    justify-content: center;
    padding-right: 0;
  }
  .login-lake-scene {
    opacity: .78;
  }
  .login-scene__angler-svg {
    width: clamp(350px, 76vw, 520px) !important;
    opacity: .86;
  }
  .score-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }
  .score-card__head {
    flex-direction: column;
    gap: 4px;
  }
  .score-podium {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 22px, 1180px); margin-top: 18px; }
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .grid,
  .grid.two,
  .photo-grid,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }
  .menu-preview-grid,
  .preview-menu {
    grid-template-columns: 1fr;
  }
  .table-panel {
    overflow-x: auto;
  }
  .table { min-width: 720px; }
  .admin-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .app-install-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .app-install-actions {
    width: 100%;
  }
  .app-install-actions .button,
  .app-install-actions button {
    flex: 1;
  }
}
