:root {
  color-scheme: light;
  --bg: #f5f2e9;
  --surface: #fffefa;
  --surface-strong: #ffffff;
  --ink: #18322b;
  --muted: #64736d;
  --line: #dce3dc;
  --primary: #17624c;
  --primary-dark: #104b3a;
  --primary-soft: #dceee6;
  --accent: #e78a43;
  --accent-soft: #fff0df;
  --danger: #a73939;
  --danger-soft: #fff0ee;
  --success: #276c4e;
  --success-soft: #e6f4ec;
  --shadow: 0 18px 50px rgba(24, 50, 43, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --content-width: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(231, 138, 67, 0.13), transparent 28rem),
    radial-gradient(circle at 94% 9%, rgba(23, 98, 76, 0.12), transparent 30rem),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 7vw, 4.9rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

h3 {
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
}

.site-shell {
  display: flex;
  width: min(100% - 2rem, var(--content-width));
  min-height: 100vh;
  margin-inline: auto;
  flex-direction: column;
}

.site-header {
  display: flex;
  min-height: 92px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px rgba(23, 98, 76, 0.22);
}

.main-content {
  flex: 1;
  padding-block: 2.25rem 4.5rem;
}

.site-footer {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid rgba(24, 50, 43, 0.12);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lead {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(400px, 0.78fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.intro-panel {
  padding-block: 1rem;
}

.steps {
  display: grid;
  margin: 2.2rem 0;
  padding: 0;
  gap: 0.9rem;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #42564f;
  font-weight: 650;
}

.step-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(23, 98, 76, 0.18);
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 850;
}

.card {
  border: 1px solid rgba(24, 50, 43, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
}

.form-card {
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.card-heading {
  margin-bottom: 1.7rem;
}

.registration-form {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.field-group legend {
  color: #344a43;
  font-size: 0.91rem;
  font-weight: 750;
}

.field input[type="text"] {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid #cbd6cf;
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--ink);
  background: var(--surface-strong);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input[type="text"]:hover {
  border-color: #9fb3a8;
}

.field input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23, 98, 76, 0.13);
}

.field-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-group legend {
  margin-bottom: 0.55rem;
}

.night-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.night-option {
  position: relative;
  cursor: pointer;
}

.night-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.night-option-content {
  display: flex;
  min-height: 5rem;
  padding: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #cbd6cf;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease,
    transform 150ms ease;
}

.night-option:hover .night-option-content {
  border-color: #90aa9d;
  transform: translateY(-1px);
}

.night-option input:checked + .night-option-content {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.night-option input:focus-visible + .night-option-content {
  outline: 3px solid rgba(23, 98, 76, 0.23);
  outline-offset: 3px;
}

.night-label,
.night-price {
  display: block;
}

.night-label {
  font-weight: 750;
  white-space: nowrap;
}

.night-price {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 850;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease,
    transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.copy-button:focus-visible,
.check-control input:focus-visible {
  outline: 3px solid rgba(23, 98, 76, 0.25);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(23, 98, 76, 0.2);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: #bdcbc3;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.button-secondary:hover {
  border-color: #8fa79b;
  background: #fff;
}

.button-block {
  width: 100%;
}

.button-small {
  min-height: 2.2rem;
  margin-top: 0.55rem;
  padding: 0.4rem 0.7rem;
  border-color: var(--line);
  background: #fff;
  font-size: 0.8rem;
}

.notice {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.93rem;
}

.notice strong {
  display: block;
  margin-bottom: 0.2rem;
}

.notice p {
  margin: 0;
  color: #52665f;
}

.notice-soft {
  border: 1px solid rgba(23, 98, 76, 0.14);
  background: rgba(220, 238, 230, 0.6);
}

.alert {
  display: flex;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  font-size: 0.92rem;
}

.alert-error {
  border-color: rgba(167, 57, 57, 0.2);
  color: #762626;
  background: var(--danger-soft);
}

.alert-success {
  border-color: rgba(39, 108, 78, 0.18);
  color: #205b41;
  background: var(--success-soft);
}

.payment-header,
.admin-header {
  display: flex;
  margin-bottom: 2.5rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.payment-header h1,
.admin-header h1 {
  max-width: none;
  font-size: clamp(2.35rem, 6vw, 4.4rem);
}

.amount-summary {
  display: grid;
  min-width: 13rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(23, 98, 76, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  text-align: right;
}

.amount-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.amount-summary strong {
  color: var(--primary);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.payment-card {
  display: flex;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  flex-direction: column;
}

.payment-card-featured {
  border-color: rgba(23, 98, 76, 0.32);
}

.payment-card-heading {
  display: flex;
  margin-bottom: 1.4rem;
  align-items: center;
  gap: 0.9rem;
}

.payment-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.method-badge {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #171717;
  font-size: 1.15rem;
  font-weight: 900;
}

.method-badge-bank {
  background: var(--primary);
}

.payment-details {
  display: grid;
  margin: 0 0 1.25rem;
  gap: 0;
}

.payment-details > div {
  display: grid;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  gap: 0.2rem;
}

.payment-details > div:first-child {
  padding-top: 0;
}

.payment-details dt {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-details dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.payment-details-compact {
  flex: 1;
}

.copy-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.copy-value code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.91rem;
}

.copy-button {
  flex: 0 0 auto;
  padding: 0.38rem 0.55rem;
  border: 1px solid #c5d1ca;
  border-radius: 8px;
  color: var(--primary-dark);
  background: #fff;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
}

.copy-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.helper-text {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.payment-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
  gap: 1.2rem;
}

.admin-header h1 {
  margin-bottom: 0.65rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.2rem;
  gap: 0.8rem;
}

.stat-card {
  display: grid;
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid rgba(24, 50, 43, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  gap: 0.2rem;
}

.stat-card span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card strong {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.04em;
}

.stat-card-positive strong {
  color: var(--success);
}

.stat-card-warning strong {
  color: #b45d24;
}

.registrations-card {
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(24, 50, 43, 0.07);
}

.table-heading {
  display: flex;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.table-heading .eyebrow {
  margin-bottom: 0.25rem;
}

.table-heading h2 {
  font-size: 1.45rem;
}

.count-badge {
  display: inline-grid;
  min-width: 2rem;
  height: 2rem;
  padding-inline: 0.55rem;
  place-items: center;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

th,
td {
  padding: 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  color: var(--muted);
  background: #f8faf7;
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(220, 238, 230, 0.23);
}

.person-name,
.amount-cell {
  font-weight: 800;
}

td time,
.paid-form time,
.status-note {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  padding: 0.25rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-viewed {
  color: var(--success);
  background: var(--success-soft);
}

.status-muted {
  color: #66736e;
  background: #edf0ee;
}

.cell-stack {
  display: block;
}

.paid-form {
  min-width: 8.25rem;
}

.check-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #344a43;
  font-size: 0.82rem;
  font-weight: 800;
}

.check-control input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.empty-state {
  display: grid;
  min-height: 15rem;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-state span {
  font-size: 2rem;
}

.empty-state p {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 950px) {
  .registration-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(370px, 1fr);
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 1.25rem, var(--content-width));
  }

  .site-header {
    min-height: 72px;
  }

  .main-content {
    padding-block: 1.25rem 3rem;
  }

  .registration-layout,
  .payment-options,
  .payment-notes {
    grid-template-columns: 1fr;
  }

  .registration-layout {
    gap: 2rem;
  }

  .intro-panel {
    padding-block: 0;
  }

  .steps {
    margin-block: 1.6rem;
  }

  .payment-header,
  .admin-header {
    align-items: stretch;
    flex-direction: column;
    gap: 1.2rem;
  }

  .amount-summary {
    min-width: 0;
    text-align: left;
  }

  .admin-header .button {
    align-self: flex-start;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  tbody tr {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
  }

  tbody tr:hover {
    background: #fff;
  }

  tbody th,
  tbody td {
    display: grid;
    grid-template-columns: minmax(8rem, 42%) 1fr;
    padding: 0.65rem 0;
    border: 0;
    border-bottom: 1px solid #edf0ed;
    align-items: start;
    gap: 0.75rem;
    text-align: right;
  }

  tbody tr > :last-child {
    border-bottom: 0;
  }

  tbody th::before,
  tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }

  .paid-form,
  .cell-stack,
  td time,
  .paid-form time,
  .status-note {
    justify-self: end;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.25rem, 13vw, 3.35rem);
  }

  .form-row,
  .night-options,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-card,
  .payment-card {
    border-radius: 19px;
  }

  .copy-value {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid {
    gap: 0.55rem;
  }

  .stat-card {
    display: flex;
    padding: 0.95rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .stat-card span {
    white-space: normal;
  }

  .stat-card strong {
    flex: 0 0 auto;
    font-size: 1.35rem;
  }

  tbody th,
  tbody td {
    grid-template-columns: minmax(6.5rem, 38%) 1fr;
  }
}

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

/* --------------------------------------------------------------------------
   Playful mountain expedition theme
   -------------------------------------------------------------------------- */

:root {
  --bg: #d9f2f4;
  --surface: #fffaf0;
  --surface-strong: #fffef8;
  --ink: #173f36;
  --muted: #587268;
  --line: #bad4bd;
  --primary: #187a54;
  --primary-dark: #0f5c3d;
  --primary-soft: #d8f1d8;
  --accent: #ef7d45;
  --accent-soft: #fff0c9;
  --danger: #a93d42;
  --danger-soft: #ffe7df;
  --success: #24764c;
  --success-soft: #daf3dc;
  --sky: #96d8ea;
  --sun: #ffd44f;
  --mountain-back: #86aaa5;
  --mountain-front: #587f70;
  --hill-back: #67a75e;
  --hill-front: #3b8250;
  --wood: #9b5c38;
  --paper-shadow: 8px 10px 0 rgba(31, 79, 58, 0.17);
  --shadow: var(--paper-shadow);
  --radius-lg: 26px 18px 30px 20px;
  --radius-md: 17px 12px 19px 14px;
  --radius-sm: 11px 8px 12px 9px;
  font-family: "Trebuchet MS", ui-rounded, system-ui, sans-serif;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(150, 216, 234, 0.88) 0 32rem, rgba(224, 244, 224, 0.92) 48rem),
    var(--bg);
}

.site-shell {
  position: relative;
  z-index: 2;
}

h1,
h2,
h3 {
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  font-weight: 900;
}

h1 {
  text-shadow: 2px 3px 0 rgba(255, 255, 255, 0.72);
  transform: rotate(-0.45deg);
}

.scenery {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sun {
  position: absolute;
  top: 5.5rem;
  right: max(4vw, 2rem);
  width: 6.5rem;
  height: 6.5rem;
  border: 4px solid #d59c2a;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 12px rgba(255, 220, 91, 0.22);
  animation: sun-bob 6s ease-in-out infinite;
}

.sun::before,
.sun::after,
.sun span::before,
.sun span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8.8rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(213, 156, 42, 0.72);
  content: "";
  transform: translate(-50%, -50%);
}

.sun::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sun span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sun span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cloud {
  position: absolute;
  width: 8rem;
  height: 2.35rem;
  border: 3px solid rgba(58, 112, 122, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 7px 0 rgba(67, 125, 132, 0.1);
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 0.55rem;
  border: inherit;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: inherit;
  content: "";
}

.cloud::before {
  left: 1rem;
  width: 2.8rem;
  height: 2.8rem;
}

.cloud::after {
  right: 1rem;
  width: 3.7rem;
  height: 3.7rem;
}

.cloud-one {
  top: 9rem;
  left: 8%;
  animation: cloud-drift 31s linear infinite;
}

.cloud-two {
  top: 15rem;
  left: 52%;
  opacity: 0.78;
  transform: scale(0.72);
  animation: cloud-drift 38s -14s linear infinite reverse;
}

.cloud-three {
  top: 3.5rem;
  left: 32%;
  opacity: 0.64;
  transform: scale(0.55);
  animation: cloud-drift 44s -8s linear infinite;
}

.bird {
  position: absolute;
  top: 10rem;
  left: 68%;
  width: 1rem;
  height: 0.55rem;
  border-top: 3px solid #31554e;
  border-radius: 50%;
  transform: rotate(14deg);
  animation: bird-hop 3.2s ease-in-out infinite;
}

.bird::after {
  position: absolute;
  top: -3px;
  left: 0.8rem;
  width: 1rem;
  height: 0.55rem;
  border-top: 3px solid #31554e;
  border-radius: 50%;
  content: "";
  transform: rotate(-28deg);
}

.bird-two {
  top: 13rem;
  left: 73%;
  animation-delay: -1.4s;
  transform: scale(0.72) rotate(14deg);
}

.mountain-range {
  position: absolute;
  right: -8vw;
  bottom: 9rem;
  left: -8vw;
  height: 28rem;
}

.mountain {
  position: absolute;
  bottom: 0;
  display: block;
  width: 46vw;
  height: 24rem;
  background: var(--mountain-back);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(4px 6px 0 rgba(34, 71, 65, 0.16));
}

.mountain::after {
  position: absolute;
  inset: 0;
  background: rgba(247, 251, 240, 0.9);
  clip-path: polygon(50% 0, 66% 32%, 58% 27%, 51% 38%, 43% 25%, 34% 33%);
  content: "";
}

.mountain-back-one {
  left: -8%;
  height: 18rem;
}

.mountain-back-two {
  left: 29%;
  height: 26rem;
}

.mountain-back-three {
  right: -4%;
  height: 20rem;
}

.mountain-range-front {
  bottom: 6rem;
  opacity: 0.86;
}

.mountain-range-front .mountain {
  width: 39vw;
  height: 17rem;
  background: var(--mountain-front);
}

.mountain-front-one {
  left: 5%;
}

.mountain-front-two {
  left: 37%;
  height: 21rem !important;
}

.mountain-front-three {
  right: -1%;
}

.rolling-hill {
  position: absolute;
  right: -12%;
  bottom: -8rem;
  left: -12%;
  height: 21rem;
  border: 4px solid rgba(33, 93, 54, 0.22);
  border-radius: 50% 50% 0 0;
  background: var(--hill-back);
}

.hill-front {
  right: -25%;
  bottom: -13rem;
  left: 15%;
  height: 24rem;
  background: var(--hill-front);
  transform: rotate(-2deg);
}

.forest {
  position: absolute;
  right: 0;
  bottom: 1.2rem;
  left: 0;
  height: 10rem;
}

.tree {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-right: 2.25rem solid transparent;
  border-bottom: 6.5rem solid #205d3d;
  border-left: 2.25rem solid transparent;
  filter: drop-shadow(3px 4px 0 rgba(21, 66, 42, 0.2));
  transform-origin: 50% 100%;
  animation: tree-sway 4.8s ease-in-out infinite;
}

.tree::before {
  position: absolute;
  top: 2rem;
  left: -2.75rem;
  width: 0;
  height: 0;
  border-right: 2.75rem solid transparent;
  border-bottom: 5.7rem solid #2c7146;
  border-left: 2.75rem solid transparent;
  content: "";
}

.tree i {
  position: absolute;
  z-index: -1;
  top: 6.4rem;
  left: -0.35rem;
  width: 0.7rem;
  height: 2.1rem;
  border-radius: 0 0 4px 4px;
  background: #75462e;
}

.tree-one { left: 2%; transform: scale(0.7); }
.tree-two { left: 15%; animation-delay: -1.2s; }
.tree-three { left: 27%; transform: scale(0.62); animation-delay: -2.1s; }
.tree-four { left: 43%; transform: scale(0.82); animation-delay: -0.7s; }
.tree-five { right: 37%; transform: scale(0.68); animation-delay: -3s; }
.tree-six { right: 23%; transform: scale(1.08); animation-delay: -1.8s; }
.tree-seven { right: 10%; transform: scale(0.75); animation-delay: -2.6s; }
.tree-eight { right: 1%; transform: scale(0.55); animation-delay: -0.3s; }

.cottage {
  position: absolute;
  bottom: 2.4rem;
  left: max(4vw, 1rem);
  width: 10rem;
  height: 8.5rem;
  filter: drop-shadow(7px 8px 0 rgba(21, 62, 39, 0.25));
  transform-origin: 50% 100%;
  animation: cottage-wiggle 7s ease-in-out infinite;
}

.cottage-wall {
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  width: 7.7rem;
  height: 5.3rem;
  border: 4px solid #633b2d;
  border-radius: 5px 5px 10px 8px;
  background: #e99a57;
}

.cottage-roof {
  position: absolute;
  z-index: 2;
  top: 0.3rem;
  left: 0;
  width: 10rem;
  height: 4.7rem;
  border-bottom: 5px solid #633b2d;
  background: #a7473d;
  clip-path: polygon(50% 0, 100% 82%, 92% 100%, 8% 100%, 0 82%);
}

.chimney {
  position: absolute;
  z-index: 1;
  top: 0.2rem;
  right: 1.7rem;
  width: 1.2rem;
  height: 2.8rem;
  border: 3px solid #633b2d;
  background: #bd7250;
}

.smoke {
  position: absolute;
  top: -1rem;
  left: 0.05rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  animation: smoke-puff 3.6s ease-out infinite;
}

.smoke-two { animation-delay: -1.2s; }
.smoke-three { animation-delay: -2.4s; }

.cottage-window,
.cottage-door {
  position: absolute;
  z-index: 3;
  bottom: 0.9rem;
  border: 3px solid #633b2d;
}

.cottage-window {
  width: 1.5rem;
  height: 1.6rem;
  background: #ffe27b;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.38);
}

.window-left { left: 2rem; }
.window-right { right: 1.2rem; }

.cottage-door {
  left: 4.25rem;
  width: 1.7rem;
  height: 2.9rem;
  border-radius: 7px 7px 0 0;
  background: #75462e;
}

.cottage-door i {
  position: absolute;
  top: 1.2rem;
  right: 0.2rem;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #ffd95e;
}

.site-header {
  min-height: 104px;
}

.brand {
  gap: 0.8rem;
  transform: rotate(-1deg);
}

.brand-mark {
  position: relative;
  width: 3.2rem;
  height: 3.2rem;
  overflow: visible;
  border: 3px solid var(--ink);
  background: #f5c36a;
  box-shadow: 4px 5px 0 rgba(23, 63, 54, 0.18);
}

.brand-roof,
.brand-house {
  position: absolute;
  display: block;
}

.brand-roof {
  top: 0.55rem;
  left: 0.48rem;
  width: 1.8rem;
  height: 1.2rem;
  background: #a7473d;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.brand-house {
  bottom: 0.55rem;
  left: 0.8rem;
  width: 1.2rem;
  height: 1.15rem;
  border: 2px solid var(--ink);
  background: #fff3bf;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.25rem;
}

.brand-copy small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.main-content {
  padding-block: 2.5rem 6rem;
}

.card {
  border: 3px solid rgba(23, 63, 54, 0.82);
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--paper-shadow);
}

.form-card,
.login-card {
  position: relative;
  transform: rotate(0.45deg);
}

.card-tape {
  position: absolute;
  z-index: 3;
  top: -0.8rem;
  width: 4.6rem;
  height: 1.55rem;
  background: rgba(255, 222, 114, 0.78);
  box-shadow: 0 2px 0 rgba(128, 92, 28, 0.13);
}

.card-tape-left {
  left: 1.8rem;
  transform: rotate(-6deg);
}

.card-tape-right {
  right: 1.8rem;
  transform: rotate(7deg);
}

.eyebrow {
  color: var(--primary-dark);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
}

.target-sign {
  position: relative;
  display: grid;
  width: min(100%, 25rem);
  margin: 1.8rem 0 1.4rem;
  padding: 1rem 1.2rem;
  border: 3px solid #5e3c2b;
  border-radius: 8px 13px 7px 12px;
  color: #fff9dd;
  background:
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(78, 43, 24, 0.12) 18px 20px),
    #9b5c38;
  box-shadow: 5px 7px 0 rgba(43, 67, 42, 0.19);
  transform: rotate(-1.2deg);
}

.target-sign > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.target-sign span {
  font-weight: 800;
}

.target-sign strong {
  color: #ffe274;
  font-size: 1.65rem;
}

.target-sign p {
  margin: 0.25rem 0 0;
  color: #fff3d4;
  font-size: 0.8rem;
}

.target-sign-pin {
  position: absolute;
  top: -0.45rem;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #7d6319;
  border-radius: 50%;
  background: #ffd44f;
  transform: translateX(-50%);
}

.steps li {
  align-items: flex-start;
  color: var(--ink);
}

.steps li > span:last-child {
  display: grid;
}

.steps li small {
  color: #29483e;
  font-size: 0.78rem;
  font-weight: 650;
}

.step-number {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: #ffd84d;
  font-size: 0.9rem;
  box-shadow: 2px 3px 0 rgba(23, 63, 54, 0.17);
  transform: rotate(-6deg);
}

.steps li:nth-child(2) .step-number {
  background: #ff9850;
  transform: rotate(5deg);
}

.steps li:nth-child(3) .step-number {
  background: #78ccdf;
  transform: rotate(-3deg);
}

.field input[type="text"],
.password-field input {
  border: 2px solid #87a891;
  background: #fffef7;
  box-shadow: inset 0 2px 0 rgba(31, 71, 54, 0.05);
}

.night-options {
  align-items: stretch;
}

.night-option-content {
  min-height: 7.2rem;
  border: 2px solid #89a98f;
  background: #fffef7;
  box-shadow: 3px 4px 0 rgba(31, 79, 58, 0.1);
}

.night-option:first-child .night-option-content {
  transform: rotate(-0.8deg);
}

.night-option:last-child .night-option-content {
  transform: rotate(0.8deg);
}

.night-option:hover .night-option-content {
  transform: translateY(-3px) rotate(-1deg);
}

.night-option input:checked + .night-option-content {
  border: 3px solid var(--primary-dark);
  background: #dff3d1;
  box-shadow: 4px 5px 0 rgba(24, 92, 61, 0.2);
}

.night-note {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.moon-set {
  position: relative;
  width: 2.5rem;
  height: 2.3rem;
  flex: 0 0 auto;
}

.moon-set i {
  position: absolute;
  top: 0.1rem;
  left: 0.2rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid #8c7021;
  border-radius: 50%;
  background: #ffe271;
  box-shadow: inset -0.4rem -0.15rem 0 #f1b948;
}

.two-moons i:first-child {
  top: 0.55rem;
  left: 0.95rem;
}

.two-moons i:last-child {
  transform: scale(0.84);
}

.button {
  border-width: 2px;
  border-color: var(--ink);
  border-radius: 12px 9px 13px 10px;
  box-shadow: 4px 5px 0 rgba(23, 63, 54, 0.21);
}

.button:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 5px 7px 0 rgba(23, 63, 54, 0.2);
}

.button-primary {
  border-color: #0c4931;
  background: var(--primary);
}

.button-arrow {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: #ffe177;
  transition: transform 160ms ease;
}

.button:hover .button-arrow {
  transform: translateX(3px) rotate(8deg);
}

.notice {
  display: flex;
  border: 2px dashed rgba(31, 94, 61, 0.45);
  gap: 0.8rem;
  background: rgba(244, 255, 234, 0.88);
}

.notice-icon,
.alert-symbol {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 900;
}

.notice-info {
  border-color: rgba(51, 111, 133, 0.4);
  background: rgba(225, 246, 250, 0.9);
}

.alert {
  border-width: 2px;
  box-shadow: 3px 4px 0 rgba(23, 63, 54, 0.1);
}

.payment-header,
.admin-header {
  align-items: center;
}

.amount-summary {
  border: 3px solid var(--ink);
  border-radius: 48% 52% 45% 55%;
  background: #fff4b7;
  box-shadow: 6px 7px 0 rgba(23, 63, 54, 0.16);
  transform: rotate(2deg);
}

.amount-summary small {
  color: var(--muted);
}

.goal-ribbon {
  display: flex;
  margin: -1rem 0 2rem;
  padding: 0.75rem 1rem;
  border: 2px dashed #5d7e69;
  border-radius: var(--radius-md);
  align-items: center;
  gap: 0.75rem;
  background: rgba(239, 250, 217, 0.91);
  transform: rotate(-0.3deg);
}

.goal-ribbon p {
  margin: 0;
}

.goal-ribbon-flag {
  color: var(--accent);
  font-size: 1.4rem;
}

.payment-card {
  position: relative;
}

.payment-card:first-child {
  transform: rotate(-0.35deg);
}

.payment-card:nth-child(2) {
  transform: rotate(0.35deg);
}

.payment-card-featured {
  border-color: var(--primary-dark);
  background: rgba(245, 255, 231, 0.97);
}

.recommended-tag {
  position: absolute;
  top: -0.85rem;
  right: 1.2rem;
  padding: 0.3rem 0.7rem;
  border: 2px solid #704624;
  border-radius: 7px;
  color: #543115;
  background: #ffd763;
  font-size: 0.7rem;
  font-weight: 900;
  transform: rotate(3deg);
}

.method-badge {
  border: 3px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(23, 63, 54, 0.18);
  transform: rotate(-5deg);
}

.method-badge-revolut {
  background: #222b31;
}

.copy-button {
  border-width: 2px;
  border-color: #769784;
  box-shadow: 2px 3px 0 rgba(31, 79, 58, 0.11);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-actions form {
  margin: 0;
}

.button-ghost {
  border-style: dashed;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.goal-dashboard {
  display: grid;
  margin-bottom: 1.3rem;
  gap: 1rem;
}

.goal-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    linear-gradient(115deg, rgba(225, 247, 205, 0.96), rgba(255, 248, 209, 0.96));
  transform: rotate(-0.25deg);
}

.goal-card-top,
.goal-numbers,
.progress-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.goal-card-top {
  margin-bottom: 1rem;
}

.goal-card-top .eyebrow {
  margin-bottom: 0.2rem;
}

.goal-flag {
  color: var(--accent);
  font-size: 3.1rem;
  filter: drop-shadow(3px 3px 0 rgba(90, 58, 33, 0.18));
  animation: flag-wave 2.6s ease-in-out infinite;
}

.goal-numbers {
  margin-bottom: 0.8rem;
}

.goal-numbers span {
  display: grid;
}

.goal-numbers span:last-child {
  text-align: right;
}

.goal-numbers small,
.progress-legend {
  color: var(--muted);
  font-size: 0.8rem;
}

.goal-numbers strong {
  color: var(--primary-dark);
  font-size: clamp(1.5rem, 4vw, 2.35rem);
}

.goal-progress {
  width: 100%;
  height: 1.45rem;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #f5e8c7;
  appearance: none;
}

.goal-progress::-webkit-progress-bar {
  background: #f5e8c7;
}

.goal-progress::-webkit-progress-value {
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, #3d9a5f 0 9px, #65bb67 9px 18px);
}

.goal-progress::-moz-progress-bar {
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, #3d9a5f 0 9px, #65bb67 9px 18px);
}

.progress-legend {
  margin-top: 0.5rem;
  justify-content: flex-end;
}

.target-edit-form {
  display: flex;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 2px dashed rgba(61, 104, 73, 0.4);
  align-items: end;
  justify-content: flex-end;
  gap: 0.7rem;
}

.target-edit-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.target-input-wrap {
  position: relative;
  display: block;
}

.target-input-wrap input {
  width: 9.5rem;
  min-height: 2.65rem;
  padding: 0.52rem 2rem 0.52rem 0.75rem;
  border: 2px solid #6d4a32;
  border-radius: 9px 7px 10px 8px;
  outline: 0;
  color: #4b2c1e;
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(84, 45, 25, 0.06) 14px 15px),
    #fff5cf;
  font-weight: 900;
  box-shadow: inset 0 2px 0 rgba(77, 45, 28, 0.08);
}

.target-input-wrap input:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 4px rgba(255, 212, 79, 0.48);
}

.target-input-wrap > span {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  color: #765039;
  font-size: 1rem;
  transform: translateY(-50%);
}

.button-wood {
  min-height: 2.65rem;
  border-color: #573523;
  color: #fff8db;
  background:
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(61, 31, 17, 0.12) 12px 13px),
    var(--wood);
  box-shadow: 3px 4px 0 rgba(68, 43, 27, 0.22);
}

.button-wood:hover {
  background-color: #81482d;
}

.target-sign-payment {
  margin: -0.5rem 0 2.2rem;
}

.payment-notes-single {
  grid-template-columns: minmax(0, 1fr);
}

.payment-notes-single .notice {
  max-width: 42rem;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
  border: 2px solid rgba(23, 63, 54, 0.62);
  background: rgba(255, 253, 239, 0.93);
  box-shadow: 3px 4px 0 rgba(23, 63, 54, 0.11);
}

.stat-card:nth-child(odd) {
  transform: rotate(-0.35deg);
}

.stat-card:nth-child(even) {
  transform: rotate(0.35deg);
}

.stat-card-people strong {
  color: #315d8f;
}

.stat-card-missing strong {
  color: #b65a29;
}

.stat-card-surplus {
  background: rgba(226, 248, 219, 0.96);
}

.stat-card-surplus strong,
.refund-cell strong {
  color: var(--success);
}

.registrations-card {
  border-width: 3px;
}

thead th {
  color: var(--ink);
  background: #e5f0d3;
}

.person-avatar {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  margin-right: 0.45rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50% 44% 52% 46%;
  color: #fff;
  background: var(--primary);
  font-size: 0.66rem;
  transform: rotate(-3deg);
}

.refund-cell strong {
  font-size: 1rem;
}

.actions-cell form {
  margin: 0;
}

.delete-button {
  padding: 0.42rem 0.58rem;
  border: 2px solid #a04646;
  border-radius: 8px 6px 9px 7px;
  color: #8d3036;
  background: #fff0e8;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  transition: transform 150ms ease, background 150ms ease;
}

.delete-button:hover {
  background: #ffdcd4;
  transform: rotate(-2deg) translateY(-1px);
}

.empty-state h3 {
  margin-top: 0.8rem;
}

.empty-tent {
  display: block;
  width: 5rem;
  height: 3.6rem;
  margin-inline: auto;
  border-bottom: 5px solid #65402e;
  background: #ee8f4f;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(4px 5px 0 rgba(23, 63, 54, 0.16));
}

.login-layout {
  display: grid;
  min-height: 35rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.6fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}

.login-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.login-lock {
  position: absolute;
  top: -3.4rem;
  right: 1.7rem;
  width: 3.8rem;
  height: 3.5rem;
  border: 4px solid var(--ink);
  border-radius: 50% 50% 8px 8px;
  background: #ffd45d;
  box-shadow: 4px 5px 0 rgba(23, 63, 54, 0.18);
  transform: rotate(5deg);
}

.login-lock::after {
  position: absolute;
  right: -0.3rem;
  bottom: -2rem;
  left: -0.3rem;
  height: 2.4rem;
  border: 4px solid var(--ink);
  border-radius: 9px;
  background: #f2a849;
  content: "";
}

.login-lock span {
  position: absolute;
  z-index: 2;
  bottom: -1rem;
  left: 50%;
  width: 0.5rem;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.login-form {
  display: grid;
  gap: 1.2rem;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.7rem 2.8rem 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  outline: 0;
}

.password-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(24, 122, 84, 0.15);
}

.password-field span {
  position: absolute;
  top: 50%;
  right: 1rem;
  color: var(--primary);
  letter-spacing: -0.25em;
  transform: translateY(-50%);
}

.setup-note {
  padding: 1rem;
  border: 2px dashed #a16c2f;
  border-radius: var(--radius-md);
  background: #fff1c9;
}

.setup-note p {
  margin: 0.4rem 0 0;
}

.setup-note code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.75);
}

.back-link {
  display: inline-flex;
  margin-top: 1.4rem;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.lost-card {
  width: min(100%, 43rem);
  margin: 4rem auto;
  padding: clamp(1.8rem, 5vw, 3.5rem);
  text-align: center;
  transform: rotate(-0.6deg);
}

.lost-card h1 {
  max-width: none;
}

.lost-card .lead {
  margin: 0 auto 1.5rem;
}

.lost-sign {
  display: inline-grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #ffd65b;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 4px 5px 0 rgba(23, 63, 54, 0.16);
  transform: rotate(8deg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 2px dashed rgba(23, 63, 54, 0.25);
  font-weight: 700;
}

.footer-tree {
  width: 0;
  height: 0;
  border-right: 0.8rem solid transparent;
  border-bottom: 1.8rem solid var(--primary);
  border-left: 0.8rem solid transparent;
}

@keyframes cloud-drift {
  0% { translate: -18vw 0; }
  50% { translate: 32vw 0.45rem; }
  100% { translate: 78vw 0; }
}

@keyframes sun-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(0.5rem) rotate(8deg); }
}

@keyframes bird-hop {
  0%, 100% { translate: 0 0; }
  50% { translate: 1rem -0.55rem; }
}

@keyframes tree-sway {
  0%, 100% { rotate: -1deg; }
  50% { rotate: 2deg; }
}

@keyframes smoke-puff {
  0% { opacity: 0; transform: translate(0, 0) scale(0.45); }
  25% { opacity: 0.75; }
  100% { opacity: 0; transform: translate(1.2rem, -3.2rem) scale(1.65); }
}

@keyframes cottage-wiggle {
  0%, 88%, 100% { transform: rotate(0); }
  92% { transform: rotate(-1.2deg); }
  96% { transform: rotate(1deg); }
}

@keyframes flag-wave {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg) scale(1.05); }
}

@media (max-width: 1050px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cottage {
    opacity: 0.7;
    scale: 0.82;
  }
}

@media (max-width: 760px) {
  .scenery {
    opacity: 0.7;
  }

  .sun {
    top: 4rem;
    right: 1rem;
    scale: 0.62;
  }

  .cloud-two,
  .bird-two,
  .tree-two,
  .tree-four,
  .tree-six {
    display: none;
  }

  .mountain-range {
    bottom: 6rem;
    height: 19rem;
  }

  .mountain {
    width: 70vw;
    height: 17rem;
  }

  .mountain-range-front .mountain {
    width: 62vw;
    height: 13rem;
  }

  .cottage {
    bottom: 1.5rem;
    left: -1.5rem;
    scale: 0.58;
  }

  .site-header {
    min-height: 82px;
  }

  .registration-layout,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-layout {
    min-height: 0;
    gap: 4.5rem;
  }

  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions .button {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-numbers {
    align-items: flex-start;
    flex-direction: column;
  }

  .goal-numbers span:last-child {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-copy small,
  .site-footer > span:last-child {
    display: none;
  }

  .target-sign > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .night-option-content {
    min-height: 5.6rem;
  }

  .moon-set {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .copy-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sun,
  .cloud,
  .bird,
  .tree,
  .cottage,
  .smoke,
  .goal-flag {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .target-edit-form {
    align-items: stretch;
    flex-direction: column;
  }

  .target-input-wrap input,
  .target-edit-form .button {
    width: 100%;
  }
}
