:root {
  --cream: #f6efe2;
  --beige: #e8dbc4;
  --forest: #1f3a2f;
  --gold: #b28946;
  --burgundy: #6d2f3d;
  --ink: #1f1a17;
  --card: #fffbf5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at 11% 8%, rgba(109, 47, 61, 0.06), transparent 28%),
    radial-gradient(circle at 90% 16%, rgba(178, 137, 70, 0.11), transparent 34%),
    linear-gradient(180deg, #faf6ef 0%, var(--cream) 36%, #f1ebde 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 60;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(178, 137, 70, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 244, 233, 0.9));
  backdrop-filter: blur(4px);
}

.brand {
  color: var(--forest);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.01em;
}

.host {
  color: rgba(31, 31, 31, 0.7);
  font-size: 0.82rem;
}

.toolbar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.container {
  width: min(1120px, 92vw);
  margin: 1.25rem auto 2.4rem;
  flex: 1;
}

.hero-banner {
  min-height: 72vh;
  border-radius: 24px;
  margin-bottom: 1.2rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(
      to top,
      rgba(18, 31, 24, 0.42) 0%,
      rgba(18, 31, 24, 0.16) 50%,
      rgba(18, 31, 24, 0.04) 100%
    ),
    var(--hero-image);
  background-size: cover;
  background-position: center 24%;
  background-color: #f2eee3;
  background-blend-mode: normal;
  image-rendering: -webkit-optimize-contrast;
  box-shadow: 0 14px 38px rgba(39, 66, 53, 0.18);
}

.hero-overlay {
  width: 100%;
  padding: 1.1rem;
  color: #fff;
  text-align: center;
}

.hero-overlay h1,
.hero-overlay p {
  text-shadow: 0 2px 14px rgba(10, 20, 14, 0.34);
}

.hero-kicker {
  margin: 0 0 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.9;
}

.hero-cta {
  margin-top: 0.6rem;
}

.hero-hint {
  margin-top: 0.8rem;
  max-width: 58ch;
  font-size: clamp(0.94rem, 1.55vw, 1.05rem);
  color: rgba(255, 255, 255, 0.93);
}

.hero-hint-below {
  margin: 0.2rem 0 1rem;
  max-width: 72ch;
  text-align: center;
  color: rgba(31, 26, 23, 0.92);
  font-size: clamp(0.97rem, 1.45vw, 1.05rem);
  line-height: 1.45;
}

.card {
  background: var(--card);
  border: 1px solid rgba(31, 58, 47, 0.11);
  border-radius: 18px;
  box-shadow:
    0 9px 26px rgba(31, 58, 47, 0.1),
    0 1px 0 rgba(178, 137, 70, 0.22) inset;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* Center standalone copy blocks while keeping forms and tables unaffected */
section.card > h1,
section.card > h2,
section.card > p {
  text-align: center;
}

.hero {
  background:
    radial-gradient(circle at 12% 16%, rgba(184, 145, 76, 0.16), transparent 44%),
    linear-gradient(145deg, #fff, var(--beige));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.link-card {
  color: var(--forest);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.dashboard-grid.is-ready .dashboard-link-card {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
}

.dashboard-grid.is-ready.is-animated .dashboard-link-card {
  animation: dashboard-card-in 460ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--stagger-delay, 0ms);
}

@keyframes dashboard-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dashboard-link-card {
  min-height: 140px;
  aspect-ratio: 1 / 1;
  font-size: 1.14rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 1rem;
  position: relative;
  background: linear-gradient(180deg, #fffdf8 0%, #fdf6ea 100%);
  border: 1px solid rgba(31, 58, 47, 0.12);
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 24px rgba(31, 58, 47, 0.12),
    0 1px 0 rgba(178, 137, 70, 0.22) inset;
  will-change: transform, opacity, filter;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 32px rgba(31, 58, 47, 0.16),
    0 1px 0 rgba(178, 137, 70, 0.34) inset;
}

.link-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(39, 66, 53, 0.15);
}

.form-card {
  max-width: 560px;
}

.login-layout {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin-inline: auto;
}

.login-shell {
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
}

.login-intro {
  text-align: center;
}

.login-intro h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.05;
}

.login-intro p {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  color: rgba(31, 31, 31, 0.9);
}

.login-divider {
  border: 0;
  height: 1px;
  margin: 1.2rem 0 1rem;
  background: linear-gradient(90deg, rgba(122, 47, 63, 0.12), rgba(178, 137, 70, 0.42), rgba(122, 47, 63, 0.12));
}

.login-title {
  margin-bottom: 0.8rem;
}

.login-shell .form-grid {
  gap: 1rem;
}

.login-shell label {
  display: grid;
  gap: 0.32rem;
  font-weight: 600;
  color: rgba(31, 26, 23, 0.92);
}

.login-shell input[type="text"],
.login-shell input[type="password"] {
  margin-top: 0;
  min-height: 3.05rem;
  padding: 0.78rem 0.92rem;
  border-radius: 14px;
  border: 1px solid rgba(178, 137, 70, 0.45);
  background: rgba(255, 255, 255, 0.96);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input[type="password"],
.password-input-wrap input[type="text"] {
  padding-right: 3.1rem;
}

.password-input-wrap input[type="password"]::-ms-reveal,
.password-input-wrap input[type="password"]::-ms-clear {
  display: none;
}

.password-input-wrap input[type="password"]::-webkit-credentials-auto-fill-button,
.password-input-wrap input[type="password"]::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(122, 47, 63, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.password-toggle.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: rgba(122, 47, 63, 0.95);
  background: rgba(178, 137, 70, 0.16);
  outline: none;
}

.password-toggle .icon-eye {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .icon-eye-closed {
  display: none;
}

.password-toggle.is-active .icon-eye-open {
  display: none;
}

.password-toggle.is-active .icon-eye-closed {
  display: block;
}

.login-shell input[type="text"]:focus,
.login-shell input[type="password"]:focus {
  border-color: rgba(122, 47, 63, 0.58);
  box-shadow:
    0 0 0 3px rgba(178, 137, 70, 0.2),
    0 0 0 1px rgba(122, 47, 63, 0.14) inset;
}

.login-shell .btn {
  margin-top: 0.2rem;
  min-height: 3.05rem;
  border-radius: 15px;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #2f5948 0%, #1f3a2f 100%);
  box-shadow:
    0 10px 22px rgba(31, 58, 47, 0.26),
    0 1px 0 rgba(178, 137, 70, 0.32) inset;
}

.login-shell .btn:hover {
  box-shadow:
    0 14px 28px rgba(31, 58, 47, 0.28),
    0 1px 0 rgba(178, 137, 70, 0.4) inset;
}

.login-privacy-banner {
  position: fixed;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 1.2rem));
  z-index: 1250;
  border: 1px solid rgba(31, 58, 47, 0.16);
  border-radius: 14px;
  padding: 0.8rem 0.85rem;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
  text-align: center;
}

.login-privacy-title {
  margin: 0;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.95rem;
}

.login-privacy-text {
  margin: 0.32rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(31, 26, 23, 0.92);
}

.login-privacy-text a {
  color: var(--forest);
  font-weight: 700;
}

.login-privacy-btn {
  margin-top: 0.6rem;
  width: auto;
  min-width: 10rem;
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid #d4c2a4;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus {
  outline: none;
  border-color: rgba(184, 145, 76, 0.88);
  box-shadow: 0 0 0 3px rgba(178, 137, 70, 0.24);
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.member-card {
  border: 1px solid rgba(31, 58, 47, 0.12);
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(180deg, #fffdf8 0%, #fdf6ea 100%);
  box-shadow:
    0 8px 20px rgba(31, 58, 47, 0.11),
    0 1px 0 rgba(122, 47, 63, 0.18) inset;
}

.member-name {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.member-choice-row {
  display: grid;
  gap: 0.5rem;
}

.member-age-wrap {
  display: none;
  margin-top: 0.5rem;
}

.member-age-wrap.is-visible {
  display: grid;
}

.member-age-wrap small {
  color: rgba(31, 31, 31, 0.68);
}

.upload-card {
  max-width: 760px;
  margin-inline: auto;
}

.upload-intro {
  margin-top: -0.15rem;
  margin-bottom: 0.3rem;
  color: rgba(31, 31, 31, 0.82);
}

.upload-picker {
  display: grid;
  gap: 0.25rem;
  border: 1px dashed rgba(109, 47, 61, 0.34);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  justify-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.upload-picker:hover {
  border-color: rgba(109, 47, 61, 0.55);
  background: #fff;
}

.upload-picker:focus-within {
  border-color: rgba(184, 145, 76, 0.88);
  box-shadow: 0 0 0 3px rgba(184, 145, 76, 0.18);
}

.upload-picker-title {
  font-weight: 700;
}

.upload-picker-subtitle {
  color: rgba(31, 31, 31, 0.66);
  font-size: 0.92rem;
}

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

.upload-hint {
  margin: -0.2rem 0 0.1rem;
  color: rgba(31, 31, 31, 0.72);
  font-size: 0.92rem;
}

#extra-file-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.extra-file-input {
  display: grid;
}

.upload-add-wrap {
  display: grid;
}

.upload-add-wrap.is-hidden {
  display: none;
}

.upload-count {
  margin: 0.2rem 0 0;
  font-weight: 600;
  text-align: center;
}

.upload-ready {
  margin: -0.2rem 0 0;
  color: rgba(39, 66, 53, 0.88);
  font-weight: 600;
  display: none;
  text-align: center;
}

.upload-ready.is-visible {
  display: block;
}

.upload-file-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(31, 31, 31, 0.82);
  max-height: 10rem;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.upload-file-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(39, 66, 53, 0.2);
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.upload-file-remove {
  border: 0;
  background: transparent;
  color: rgba(39, 66, 53, 0.82);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #2a4a3b 0%, #1f3a2f 100%);
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 58, 47, 0.26);
}

.btn:disabled {
  cursor: not-allowed;
  background: rgba(39, 66, 53, 0.45);
  box-shadow: none;
  transform: none;
  filter: none;
}

.btn-ghost {
  color: var(--forest);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(31, 58, 47, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(178, 137, 70, 0.45);
  box-shadow: 0 6px 14px rgba(31, 58, 47, 0.12);
}

.form-grid .btn {
  width: 100%;
}

.topbar .btn-ghost {
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.98rem;
  font-weight: 600;
  min-height: 2.35rem;
}

.toolbar-nav-btn {
  width: 2.35rem;
  padding: 0;
  flex: 0 0 2.35rem;
}

.toolbar-nav-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.toolbar-session-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: nowrap;
}

.toolbar-timer {
  position: relative;
  z-index: 1201;
}

.toolbar-timer-btn {
  width: 2.35rem;
  padding: 0;
  flex: 0 0 2.35rem;
}

.toolbar-timer-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.toolbar-timer-popover {
  position: fixed;
  top: 4.4rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 12.4rem;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(39, 66, 53, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 26px rgba(39, 66, 53, 0.14);
  z-index: 1200;
}

.toolbar-timer-label {
  margin: 0 0 0.35rem;
  color: rgba(31, 31, 31, 0.72);
  font-size: 0.76rem;
  text-align: center;
}

.toolbar-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
}

.toolbar-timer-unit {
  background: rgba(178, 137, 70, 0.09);
  border: 1px solid rgba(31, 58, 47, 0.13);
  border-radius: 10px;
  padding: 0.38rem 0.18rem 0.3rem;
  display: grid;
  justify-items: center;
}

.toolbar-timer-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.toolbar-timer-value.is-updated {
  animation: countdown-pop 220ms ease;
}

.toolbar-timer-unit-label {
  margin-top: 0.1rem;
  color: rgba(31, 31, 31, 0.62);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.toolbar-timer-subline {
  margin: 0.42rem 0 0;
  color: rgba(31, 31, 31, 0.74);
  font-size: 0.74rem;
  text-align: center;
}

@keyframes countdown-pop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  35% {
    transform: translateY(-2px);
    opacity: 0.75;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.container > .flash,
.flash {
  width: min(760px, 100%);
  padding: 0.85rem 1.1rem;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 248, 244, 0.96) 0%, rgba(249, 240, 231, 0.98) 100%);
  border: 1px solid rgba(109, 47, 61, 0.18);
  color: #4c2330;
  text-align: center !important;
  box-shadow:
    0 10px 24px rgba(109, 47, 61, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
}

.gallery-card {
  background: linear-gradient(180deg, #fffdf8 0%, #fdf6ea 100%);
  border: 1px solid rgba(31, 58, 47, 0.12);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow:
    0 9px 22px rgba(31, 58, 47, 0.12),
    0 1px 0 rgba(122, 47, 63, 0.18) inset;
}

.gallery-media {
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.gallery-item figcaption {
  margin-top: 0.55rem;
  margin-bottom: 0.55rem;
}

.gallery-delete-form {
  margin: 0;
}

.btn-danger {
  background: linear-gradient(180deg, #7f3240 0%, #6d2f3d 100%);
}

.gallery-delete-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(109, 47, 61, 0.93);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-delete-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.gallery-delete-btn:hover {
  background: #5e2733;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 1rem;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-image {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  touch-action: pan-y;
}

.lightbox-close,
.lightbox-download,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close,
.lightbox-download {
  top: 1rem;
  width: 2.4rem;
  height: 2.4rem;
}

.lightbox-close {
  right: 1rem;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-counter {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.6);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.lightbox-download {
  right: 4rem;
}

.lightbox-download svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  font-size: 2rem;
  line-height: 1;
  opacity: 1;
  transition: opacity 420ms ease, background-color 220ms ease;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-controls-hidden .lightbox-nav {
  opacity: 0;
  pointer-events: none;
  transition-delay: 120ms;
}

.lightbox-close:hover,
.lightbox-download:hover,
.lightbox-nav:hover {
  background: rgba(20, 20, 20, 0.82);
}

.lightbox-image.is-fading {
  animation: lightbox-fade 220ms ease;
}

@keyframes lightbox-fade {
  from {
    opacity: 0.6;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.no-scroll {
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.stat-card h2 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.stat-card p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
}

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

.guest-table {
  width: 100%;
  border-collapse: collapse;
}

.guest-table th,
.guest-table td {
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid rgba(39, 66, 53, 0.12);
}

.guest-table th {
  font-weight: 600;
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 12px;
  margin: 0.8rem 0;
}

.schedule-timeline {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.schedule-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgba(31, 58, 47, 0.12);
  background-color: #f5ece0;
  background-image:
    linear-gradient(180deg, rgba(22, 34, 28, 0.5), rgba(22, 34, 28, 0.28)),
    var(--schedule-card-image);
  background-size: cover;
  background-position: var(--schedule-card-position, center);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(31, 58, 47, 0.15),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.schedule-time {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 247, 230, 0.95);
}

.schedule-item h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.15;
  color: #fff;
}

.schedule-item p {
  margin: 0.45rem 0 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.95);
}

.hotel-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.hotel-card {
  border-radius: 14px;
  border: 1px solid rgba(31, 58, 47, 0.12);
  padding: 1rem;
  text-align: center;
  background: linear-gradient(180deg, #fffdf8 0%, #fdf5e8 100%);
  box-shadow:
    0 10px 22px rgba(31, 58, 47, 0.12),
    0 1px 0 rgba(178, 137, 70, 0.2) inset;
}

.hotel-card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--forest);
}

.hotel-address {
  margin: 0.32rem 0 0;
  color: rgba(31, 58, 47, 0.84);
  font-size: 0.95rem;
}

.hotel-card p {
  margin: 0.52rem 0 0;
}

.hotel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.62rem;
  justify-content: center;
}

.hotel-badges span {
  border-radius: 999px;
  border: 1px solid rgba(31, 58, 47, 0.18);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.26rem 0.62rem;
  font-size: 0.86rem;
  color: rgba(31, 58, 47, 0.9);
}

.hotel-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
  justify-items: center;
}

.hotel-actions .btn {
  width: min(100%, 320px);
  border-radius: 999px;
  padding: 0.74rem 1.2rem;
}

body.has-route-modal {
  overflow: hidden;
}

.route-modal[hidden] {
  display: none;
}

.route-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.route-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 23, 0.62);
  backdrop-filter: blur(2px);
}

.route-modal-panel {
  position: relative;
  width: min(980px, 96vw);
  border-radius: 16px;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(31, 58, 47, 0.18);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.route-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(31, 58, 47, 0.12);
  background: linear-gradient(180deg, #fff, #fdf4e6);
}

.route-modal-head h2 {
  margin: 0;
  font-size: 1.04rem;
  color: var(--forest);
}

.route-modal-close {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.42rem 0.76rem;
  border-radius: 999px;
}

.route-modal-close.btn-ghost {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(31, 58, 47, 0.2);
  box-shadow: none;
}

.route-modal-body {
  padding: 0.65rem;
  position: relative;
}

.route-modal-body iframe {
  display: block;
  width: 100%;
  min-height: min(72vh, 640px);
  border: 0;
  border-radius: 12px;
}

.route-map-actions {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
}

.route-open-btn {
  min-width: clamp(220px, 38vw, 320px);
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  box-shadow: 0 10px 22px rgba(31, 58, 47, 0.24);
}

.taxi-coming-soon {
  margin: 0.3rem auto 0.9rem;
  max-width: min(460px, 100%);
}

.taxi-coming-soon--de {
  max-width: min(660px, 100%);
}

.taxi-coming-soon--en {
  max-width: min(460px, 100%);
  overflow: hidden;
}

.taxi-coming-soon--en .taxi-sticker--en {
  width: 156%;
  max-width: none;
  margin-left: -28%;
}

.taxi-coming-soon img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(31, 58, 47, 0.18));
}

.gift-fun {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(31, 58, 47, 0.12);
  padding: 1rem;
  background: linear-gradient(155deg, #fff8eb 0%, #f3e6cc 100%);
  text-align: center;
}

.gift-lead {
  margin: 0;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  font-weight: 700;
}

.gift-reveal-btn {
  margin-top: 0.85rem;
  width: auto;
}

.gift-reveal {
  margin-top: 0.95rem;
  position: relative;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 58, 47, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94));
}

.gift-reveal.is-active {
  animation: gift-pop-in 420ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.gift-image-wrap {
  max-width: min(640px, 100%);
  margin: 0 auto;
}

.gift-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(31, 58, 47, 0.2);
  box-shadow: 0 12px 28px rgba(31, 58, 47, 0.18);
}

.gift-caption {
  margin: 0.8rem 0 0;
  font-weight: 700;
  color: var(--forest);
  text-align: center;
}

.money-rain {
  pointer-events: none;
  position: absolute;
  inset: -6px;
  overflow: hidden;
}

.bill {
  position: absolute;
  width: 26px;
  height: 12px;
  top: -20px;
  left: calc((var(--idx) * 8.2%) - 2%);
  border-radius: 2px;
  border: 1px solid rgba(43, 107, 49, 0.46);
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 255, 240, 0.92) 0 28%, transparent 30%),
    linear-gradient(180deg, #d7f7bd 0%, #9fd58f 100%);
  opacity: 0;
}

.gift-reveal.is-active .bill {
  animation: money-fall 4200ms linear forwards;
  animation-delay: calc(var(--idx) * 120ms);
}

@keyframes gift-pop-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes money-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -12px, 0) rotate(0deg);
  }
  10% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(-22px, 240px, 0) rotate(30deg);
  }
}

.map-consent {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(31, 58, 47, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8 0%, #fdf6ea 100%);
  box-shadow:
    0 8px 20px rgba(31, 58, 47, 0.1),
    0 1px 0 rgba(122, 47, 63, 0.16) inset;
}

.map-consent p {
  margin: 0;
}

.map-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 0;
  border: 1px solid rgba(39, 66, 53, 0.16);
  border-radius: 12px;
  cursor: pointer;
  background-color: rgba(221, 230, 225, 0.95);
  background-image:
    linear-gradient(180deg, rgba(28, 45, 37, 0.22), rgba(28, 45, 37, 0.22)),
    var(--map-preview-image);
  background-size: contain;
  background-position: top left;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  padding: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.map-preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(39, 66, 53, 0.14);
  filter: brightness(1.02);
}

.map-preview-overlay {
  font-weight: 700;
  color: #fff;
  background: rgba(39, 66, 53, 0.9);
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
}

.map-embed-target:not(:empty) {
  margin-top: 0.35rem;
}

.location-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.55rem;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.location-actions .btn {
  width: min(100%, 320px);
  min-width: 240px;
  white-space: nowrap;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .container {
    margin: 1.15rem auto 1.25rem;
  }

  .toolbar-timer-popover {
    right: 0;
    min-width: 11.5rem;
    padding: 0.5rem 0.6rem;
  }

  .toolbar-timer-value {
    font-size: 0.9rem;
  }

  .login-privacy-banner {
    width: calc(100vw - 0.8rem);
    bottom: 0.35rem;
    border-radius: 12px;
    padding: 0.7rem;
  }

  .login-privacy-btn {
    width: 100%;
  }

  .location-actions {
    justify-content: center;
  }

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

  .dashboard-link-card {
    min-height: 0;
    font-size: 1.08rem;
  }

  .schedule-item {
    padding: 0.9rem;
  }

  .schedule-item h2 {
    font-size: 1.18rem;
  }

  .gift-reveal {
    padding: 0.75rem;
  }

  .route-modal {
    padding: 0.6rem;
  }

  .route-modal-head {
    align-items: center;
    flex-direction: row;
  }

  .route-modal-close {
    width: auto;
    align-self: center;
  }

  .route-modal-body iframe {
    min-height: 58vh;
  }

  .route-map-actions {
    left: 1.15rem;
    right: 1.15rem;
  }

  .route-open-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-reveal.is-active {
    animation: none;
  }

  .gift-reveal.is-active .bill {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 380px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-link-card {
    min-height: 118px;
    aspect-ratio: auto;
  }
}

.site-footer {
  border-top: 1px solid rgba(178, 137, 70, 0.26);
  background: rgba(252, 246, 237, 0.82);
  backdrop-filter: blur(4px);
  padding: 0.72rem 1rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.site-footer a {
  color: rgba(31, 58, 47, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.legal-card h2 {
  margin-top: 1.2rem;
}

@media (min-width: 768px) {
  .hero-overlay {
    max-width: 54ch;
    padding: 2rem;
    margin-inline: auto;
  }

  .hero-banner {
    min-height: 78vh;
    background-position: center 24%;
  }

  .hero-hint-below {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 1.72rem;
  }
}

@media (min-width: 1024px) {
  .login-layout {
    max-width: 840px;
    margin-top: 0.45rem;
  }
}

@media (min-width: 1200px) {
  .hero-banner {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    min-height: 68vh;
    padding: 2.5rem;
    align-items: flex-end;
    background-image:
      linear-gradient(90deg, rgba(18, 31, 24, 0.3) 0%, rgba(18, 31, 24, 0.16) 30%, rgba(18, 31, 24, 0.04) 58%, rgba(18, 31, 24, 0.02) 100%),
      linear-gradient(to top, rgba(18, 31, 24, 0.16) 0%, rgba(18, 31, 24, 0.02) 38%),
      var(--hero-image);
    background-position: center 18%;
    box-shadow: 0 24px 60px rgba(39, 66, 53, 0.2);
  }

  .hero-overlay {
    max-width: 33rem;
    margin: 0 0 1rem 1rem;
    padding: 0;
    text-align: left;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .hero-overlay h1 {
    font-size: clamp(3rem, 4vw, 4.2rem);
    line-height: 1;
    margin-bottom: 1.05rem;
    max-width: 11ch;
  }

  .hero-overlay p {
    font-size: 1.2rem;
    line-height: 1.55;
    max-width: 30ch;
    color: rgba(255, 255, 255, 0.94);
  }

  .hero-kicker {
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.84);
  }

  .hero-cta {
    margin-top: 1.2rem;
    box-shadow: 0 10px 24px rgba(18, 31, 24, 0.24);
  }

  .hero-hint-below {
    max-width: 62ch;
    margin: 1.1rem auto 1.2rem;
    font-size: 1.08rem;
    line-height: 1.55;
  }
}
