/*
 * SussexFurs - Combined Stylesheet
 * Merged from: index.html, partners.html, staff.html, calendar.html, gallery.html,
 * privacy.html and rules.html.
 */


/* =========================================================
   Shared site styles
   ========================================================= */

/* =========================================================
   THEME SYSTEM
   Theme is controlled by: <html data-theme="light|dark">
========================================================= */

:root {
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f5f5f5;
  --text: #0b0b0d;
  --text-muted: #777777;
  --text-subtle: #999999;
  --border: #e4e4e4;
  --border-light: #eeeeee;
  --border-strong: #d1d1d1;
  --button-bg: #ffffff;
  --button-text: #111111;
  --button-hover: #f7f7f7;
  --button-border: #d1d1d1;
  --mobile-border: #d2d2d2;
  --header-border: #eeeeee;
  --footer-border: #e8e8e8;
  --social-bg: #f3f3f3;
  --social-text: #222222;
  --hero-bg: #eeeeee;
  --card-bg: #111111;
  --card-text: #ffffff;
  --legal-top: #3f3f3f;
  --legal-heading-border: #e5e5e5;
  --accent: #f5bf22;
  --accent-strong: #ffc400;
}

html[data-theme="dark"] {
  --page-bg: #0f1012;
  --surface: #151619;
  --surface-alt: #1c1d21;
  --text: #f2f2f2;
  --text-muted: #a6a6a6;
  --text-subtle: #85868a;
  --border: #2c2d31;
  --border-light: #292a2e;
  --border-strong: #3a3b40;
  --button-bg: #191a1e;
  --button-text: #f2f2f2;
  --button-hover: #242529;
  --button-border: #3a3b40;
  --mobile-border: #3a3b40;
  --header-border: #292a2e;
  --footer-border: #292a2e;
  --social-bg: #222328;
  --social-text: #f2f2f2;
  --hero-bg: #202126;
  --card-bg: #222328;
  --card-text: #ffffff;
  --legal-top: #292a2e;
  --legal-heading-border: #303136;
  --accent: #f5bf22;
  --accent-strong: #ffc400;
}

html,
body {
  background-color: var(--page-bg);
  color: var(--text);
  transition: background-color .2s ease, color .2s ease;
}

/* Smooth theme transitions without affecting layout */
body,
.site-header,
.site-footer,
.event-card,
.manage-btn,
.mobile-toggle,
.social-icons a,
.page-header {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* =========================================================
   END THEME SYSTEM
========================================================= */


:root {
  --page-width: 1158px;
  --black: var(--text);
  --muted: var(--text-muted);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0; padding: 0;
}

body {
  min-height: 100vh;
      border-top: 4px solid var(--border-strong);
      background: var(--surface);
      color: var(--text);
      font-family: Inter, Arial, Helvetica, sans-serif;
      -webkit-font-smoothing: antialiased;
}

.site-shell {
  width: min(var(--page-width), calc(100% - 40px));
      margin: 0 auto;
}

.site-header {
  height: 139px;
      display: flex;
      align-items: center;
      justify-content: space-between;
}

.brand {
  display: inline-flex;
      align-items: center;
      gap: 42px;
      color: var(--text);
      text-decoration: none;
      font-size: 15px;
      font-weight: 500;
}

.brand img {
  width: 68px;
      height: 69px;
      display: block;
      object-fit: cover;
}

.desktop-actions {
  display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap;
      flex-shrink: 0;
}

.manage-btn {
  width: 105px;
        min-width: 0;
        height: 35px;
        border: 1px solid var(--button-border);
        border-radius: 999px;
        background: var(--surface);
        color: var(--button-text);
        font-size: 13px;
        font-weight: 500;
        font-family: inherit;
        font-weight: 500;
        padding: 0 10px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-sizing: border-box;
        cursor: pointer;
        transition: background .15s ease, border-color .15s ease;
}

.manage-btn:hover {
  background: var(--button-hover);
        border-color: var(--border-strong);
}

.mobile-toggle {
  display: none;
      border: 1px solid var(--mobile-border);
      border-radius: 10px;
      width: 43px;
      height: 39px;
      background: var(--surface);
      align-items: center;
      justify-content: center;
      font-size: 21px;
}

.mobile-menu {
  display: none;
      padding: 12px 0 16px;
}

.mobile-menu.open {
  display: flex;
      flex-direction: column;
      gap: 8px;
}

.hero {
  width: 100%;
      aspect-ratio: 1158 / 367;
      overflow: hidden;
      background: var(--hero-bg);
}

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

.intro {
  padding-top: 69px;
      padding-bottom: 55px;
}

.intro h1 {
  margin: 0;
      font-size: clamp(38px, 4vw, 52px);
      line-height: 1.08;
      letter-spacing: -2px;
      font-weight: 800;
}

.intro p {
  margin: 20px 0 0;
      font-size: 15px;
      line-height: 1.5;
      font-weight: 400;
}

.events {
  padding-bottom: 70px;
}

.event-card {
  border: 1px solid var(--border);
      border-radius: 14px;
      padding: 24px;
      background: var(--surface);
}

/* =========================
   Theme toggle
   ========================= */

.theme-toggle {
  width: 38px;
  height: 38px;
  margin-left: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border: 1px solid var(--button-border);
  border-radius: 50%;
  background: var(--button-bg);
  color: var(--button-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.theme-toggle:hover {
  background: var(--button-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px) rotate(-8deg);
}

.theme-toggle:active {
  transform: scale(.94);
}

.theme-toggle i {
  line-height: 1;
}

@media (max-width: 900px) {
  .site-shell {
          width: min(100% - 32px, 760px);
        }

        .site-header {
          height: 105px;
        }

        .brand {
          gap: 18px;
        }

        .brand img {
          width: 58px;
          height: 59px;
        }

        .hero {
          aspect-ratio: 16 / 6.4;
        }

        .intro {
          padding-top: 52px;
        }
}

@media (max-width: 1150px) {
  .site-shell {
          width: calc(100% - 28px);
        }

        .site-header {
          height: 82px;
        }

        .brand {
          gap: 13px;
          font-size: 14px;
        }

        .brand img {
          width: 50px;
          height: 50px;
        }

        .desktop-actions {
          display: none;
        }

        .mobile-toggle {
          display: inline-flex;
        }

        .mobile-menu {
          border-top: 1px solid var(--header-border);
        }

        .mobile-menu .manage-btn {
          width: 100%;
          height: 42px;
        }

        .hero {
          aspect-ratio: 16 / 9;
        }

        .hero img {
          object-fit: cover;
        }

        .intro {
          padding-top: 39px;
          padding-bottom: 38px;
        }

        .intro h1 {
          font-size: 34px;
          letter-spacing: -1.2px;
          line-height: 1.1;
        }

        .intro p {
          margin-top: 15px;
          font-size: 14px;
        }
}

.site-footer {
  margin-top: 80px;
      border-top: 1px solid var(--footer-border);
      background: var(--surface);
}

.footer-inner {
  display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 60px;
      padding: 55px 0 40px;
}

.footer-brand {
  margin: 0 0 12px;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.4px;
}

.footer-text {
  margin: 0;
      max-width: 430px;
      color: var(--text-muted);
      font-size: 13px;
      line-height: 1.65;
}

.footer-heading {
  margin: 0 0 14px;
      font-size: 13px;
      font-weight: 700;
      color: var(--button-text);
}

.footer-links {
  display: flex;
      flex-direction: column;
      gap: 9px;
}

.footer-links a {
  color: var(--text-muted);
      font-size: 13px;
      text-decoration: none;
      transition: color .15s ease;
}

.footer-links a:hover {
  color: var(--button-text);
}

.footer-bottom {
  border-top: 1px solid var(--header-border);
      padding: 18px 0 22px;
      color: var(--text-subtle);
      font-size: 11px;
}

.who-we-are {
  display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 70px;
		align-items: center;
		padding-top: 70px;
		padding-bottom: 70px;
}

.who-text h2 {
  margin: 0 0 22px;
		font-size: 36px;
		font-weight: 700;
		letter-spacing: -1px;
}

.who-text p {
  margin: 0 0 16px;
		font-size: 15px;
		line-height: 1.6;
}

.who-image {
  width: 100%;
		aspect-ratio: 4 / 3;
		overflow: hidden;
}

.who-image img {
  width: 100%;
		height: 100%;
		display: block;
		object-fit: cover;
}

.meet-us {
  display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 70px;
		align-items: center;
		padding-top: 70px;
		padding-bottom: 70px;
}

.meet-map {
  width: 100%;
		height: 380px;
		overflow: hidden;
}

.meet-map iframe {
  width: 100%;
		height: 100%;
		border: 0;
		display: block;
}

.meet-text h2 {
  margin: 0 0 22px;
		font-size: 36px;
		font-weight: 700;
		letter-spacing: -1px;
}

.meet-text p {
  margin: 0 0 16px;
		font-size: 15px;
		line-height: 1.6;
}

.meet-text .address {
  margin-top: 20px;
		line-height: 1.7;
}

.map-button {
  display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-top: 10px;
		padding: 11px 20px;
		border: 1px solid var(--button-border);
		border-radius: 999px;
		background: var(--surface);
		color: var(--button-text);
		text-decoration: none;
		font-size: 13px;
		font-weight: 500;
		transition: background .15s ease, border-color .15s ease;
}

.social-section {
  padding: 10px 0;
    text-align: center;
}

.social-icons {
  display: flex;
      justify-content: left;
      align-items: left;
      gap: 10px;
}

.social-icons a {
  width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;

      border-radius: 50%;
      background: var(--social-bg);
      color: var(--social-text);

      text-decoration: none;
      font-size: 19px;

      transition: all 0.2s ease;
}

.social-icons a:hover {
  background: var(--text);
      color: var(--surface);
      transform: translateY(-3px);
}

.map-button:hover {
  background: var(--button-hover);
		border-color: var(--border-strong);
}

@media (max-width: 1000px) {
  .site-footer {
          margin-top: 50px;
        }

        .footer-inner {
          grid-template-columns: 1fr 1fr;
          gap: 35px 25px;
          padding: 40px 0 30px;
        }

        .footer-main {
          grid-column: 1 / -1;
        }
  	  .who-we-are {
  			grid-template-columns: 1fr;
  			gap: 35px;
  			padding-top: 45px;
  			padding-bottom: 45px;
  		}

  		.who-text h2 {
  			font-size: 30px;
  		}
  		.meet-us {
  			grid-template-columns: 1fr;
  			gap: 35px;
  			padding-top: 45px;
  			padding-bottom: 45px;
  		}

  		.meet-map {
  			height: 300px;
  		}

  		.meet-text h2 {
  			font-size: 30px;
  		}
}
/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;

    color: var(--text);

    font-size: 14px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;

    padding: 13px 15px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form input {
    height: 48px;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 191, 34, 0.15);
}

.contact-form .form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 120px;
    height: 44px;

    padding: 0 22px;

    border: 1px solid var(--button-border);
    border-radius: 999px;

    background: var(--button-bg);
    color: var(--button-text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.contact-form .form-submit:hover {
    background: var(--button-hover);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.contact-form .form-submit:active {
    transform: translateY(0);
}


/* Mobile */

@media (max-width: 640px) {

    .contact-form {
        max-width: 100%;
    }

    .contact-form input {
        height: 46px;
    }

    .contact-form textarea {
        min-height: 140px;
    }

    .contact-form .form-submit {
        width: 100%;
    }

}

/* ==========================================
   MAIN CURSOR PAW
   ========================================== */

#mouse-paw {
    position: fixed !important;

    width: 25px !important;
    height: 25px !important;

    max-width: 25px !important;
    max-height: 25px !important;

    object-fit: contain !important;

    pointer-events: none !important;

    z-index: 999999 !important;

    transform: translate(-50%, -50%);
}


/* ==========================================
   PAW SHAKE
   ========================================== */

#mouse-paw.shake {
    animation: pawShake 0.5s ease-in-out;
}

@keyframes pawShake {

    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    20% {
        transform: translate(-50%, -50%) rotate(-15deg);
    }

    40% {
        transform: translate(-50%, -50%) rotate(15deg);
    }

    60% {
        transform: translate(-50%, -50%) rotate(-12deg);
    }

    80% {
        transform: translate(-50%, -50%) rotate(8deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

}


/* ==========================================
   PAW TRAIL
   ========================================== */

.paw-trail {
    position: fixed !important;

    width: 18px !important;
    height: 18px !important;

    max-width: 18px !important;
    max-height: 18px !important;

    object-fit: contain !important;

    pointer-events: none !important;

    z-index: 999998 !important;

    transform: translate(-50%, -50%);

    opacity: 0.7;

    animation: pawTrailFade 0.7s ease-out forwards;
}

@keyframes pawTrailFade {

    0% {
        opacity: 0.7;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    100% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0.5);
    }

}


/* ==========================================
   PAW RAIN CONTAINER
   ========================================== */

#paw-rain {
    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    pointer-events: none;

    overflow: hidden;

    z-index: 999999;
}


/* ==========================================
   FALLING PAWS
   ========================================== */

#paw-rain .falling-paw {

    position: absolute !important;

    top: -60px;

    width: 30px !important;
    height: 30px !important;

    max-width: 30px !important;
    max-height: 30px !important;

    object-fit: contain !important;

    pointer-events: none !important;

    animation-name: pawFall;

    animation-timing-function: linear;

    animation-fill-mode: forwards;

}


/* ==========================================
   PAW FALL ANIMATION
   ========================================== */

@keyframes pawFall {

    0% {
        transform:
            translateY(-60px)
            rotate(var(--rotation));

        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform:
            translateY(110vh)
            rotate(calc(var(--rotation) + 360deg));

        opacity: 0;
    }

}


/* ==========================================
   FUR MODE BANNER
   ========================================== */

#fur-mode-banner {

    position: fixed;

    top: 25px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 1000000;

    padding: 14px 28px;

    border-radius: 50px;

    background: rgba(20, 20, 20, 0.95);

    color: white;

    font-family: inherit;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: 1px;

    white-space: nowrap;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3);

    animation:
        furBannerIn 0.6s
        cubic-bezier(.17,.67,.35,1.4)
        forwards;

}


/* Banner paws */

#fur-mode-banner span {

    display: inline-block;

    margin: 0 8px;

    animation:
        bannerPaw 0.7s
        ease-in-out
        infinite alternate;

}


/* Banner disappearing */

#fur-mode-banner.fur-mode-hide {

    animation:
        furBannerOut 0.6s ease forwards;

}


/* ==========================================
   BANNER ANIMATIONS
   ========================================== */

@keyframes furBannerIn {

    from {
        opacity: 0;

        transform:
            translate(-50%, -100px)
            scale(0.7);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, 0)
            scale(1);
    }

}


@keyframes furBannerOut {

    from {
        opacity: 1;

        transform:
            translate(-50%, 0)
            scale(1);
    }

    to {
        opacity: 0;

        transform:
            translate(-50%, -100px)
            scale(0.7);
    }

}


@keyframes bannerPaw {

    from {
        transform: rotate(-15deg) scale(1);
    }

    to {
        transform: rotate(15deg) scale(1.15);
    }

}
/* ==========================================
   ACHIEVEMENT BUTTON
   ========================================== */

#achievement-button {
    position: fixed;

    bottom: 20px;
    right: 20px;

    width: 50px;
    height: 50px;

    border: 1px solid var(--button-border);
    border-radius: 50%;

    background: var(--button-bg);
    color: var(--button-text);

    font-family: inherit;
    font-size: 23px;
    line-height: 1;

    cursor: pointer;

    z-index: 99990;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.18);

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


#achievement-button:hover {
    background: var(--button-hover);
    border-color: var(--border-strong);

    transform:
        scale(1.15)
        rotate(8deg);
}


#achievement-button:active {
    transform: scale(.95);
}


/* ==========================================
   ACHIEVEMENT PANEL
   ========================================== */

#achievement-panel {
    position: fixed;

    bottom: 80px;
    right: 20px;

    width: 340px;
    max-width: calc(100vw - 40px);

    max-height: 70vh;

    overflow-y: auto;

    padding: 20px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, .25);

    z-index: 99989;

    opacity: 0;

    transform:
        translateY(20px)
        scale(.95);

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease,
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}


#achievement-panel.achievement-panel-open {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


/* ==========================================
   ACHIEVEMENT HEADER
   ========================================== */

.achievement-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}


.achievement-header h3 {
    margin: 0;

    color: var(--text);

    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}


#achievement-close {
    width: 32px;
    height: 32px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--button-border);
    border-radius: 50%;

    background: var(--button-bg);
    color: var(--button-text);

    font-family: inherit;
    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


#achievement-close:hover {
    background: var(--button-hover);

    border-color: var(--border-strong);

    transform: rotate(90deg);
}


/* ==========================================
   ACHIEVEMENT ITEMS
   ========================================== */

.achievement-item {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 12px;

    margin-bottom: 8px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface-alt);

    color: var(--text);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.achievement-item.unlocked {
    background: var(--surface-alt);

    border-color: var(--border);
}


.achievement-item.unlocked:hover {
    border-color: var(--accent);

    transform: translateX(3px);
}


.achievement-item.locked {
    opacity: .45;

    background: var(--surface-alt);
}


/* ==========================================
   ACHIEVEMENT ICON
   ========================================== */

.achievement-item-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--button-bg);
    color: var(--text);

    font-size: 22px;
}


/* ==========================================
   ACHIEVEMENT TEXT
   ========================================== */

.achievement-item strong {
    display: block;

    margin-bottom: 3px;

    color: var(--text);

    font-size: 14px;
    font-weight: 700;
}


.achievement-item span {
    display: block;

    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.4;
}


/* ==========================================
   UNLOCKED ACCENT
   ========================================== */

.achievement-item.unlocked
.achievement-item-icon {
    border-color: var(--accent);

    background: var(--surface);

}


/* ==========================================
   ACHIEVEMENT NOTIFICATION
   ========================================== */

.achievement-notification {
    position: fixed;

    top: 25px;
    right: 25px;

    width: 330px;
    max-width: calc(100vw - 50px);

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px 18px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);

    border-left: 4px solid var(--accent);

    border-radius: 15px;

    z-index: 1000001;

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);

    animation:
        achievementIn .5s ease forwards;
}


/* ==========================================
   NOTIFICATION ICON
   ========================================== */

.achievement-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--surface-alt);

    font-size: 28px;
}


/* ==========================================
   NOTIFICATION TEXT
   ========================================== */

.achievement-notification small {
    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}


.achievement-notification strong {
    display: block;

    color: var(--text);

    font-size: 16px;
    font-weight: 700;
}


.achievement-notification span {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.4;
}


/* ==========================================
   NOTIFICATION EXIT
   ========================================== */

.achievement-notification.achievement-hide {
    animation:
        achievementOut .5s ease forwards;
}


/* ==========================================
   NOTIFICATION ANIMATIONS
   ========================================== */

@keyframes achievementIn {

    from {
        opacity: 0;

        transform:
            translateX(100px)
            scale(.95);
    }

    to {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }

}


@keyframes achievementOut {

    from {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }

    to {
        opacity: 0;

        transform:
            translateX(100px)
            scale(.95);
    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 640px) {

    #achievement-button {
        width: 46px;
        height: 46px;

        bottom: 15px;
        right: 15px;
    }


    #achievement-panel {
        right: 15px;
        bottom: 72px;

        width: calc(100vw - 30px);

        max-height: 70vh;

        padding: 16px;
    }


    .achievement-notification {
        top: 15px;
        right: 15px;

        width: calc(100vw - 30px);

        max-width: none;
    }

}

#curious-secret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#curious-secret:hover {
    opacity: 1;
    transform: scale(1.2);
}
.hidden-paw {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.25;
    user-select: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.hidden-paw:hover {
    opacity: 1;
    transform: scale(1.25);
}
/* =========================================================
   Page-specific styles: partners.html
   ========================================================= */

.staff-page {
  padding: 69px 0 80px;
}

.staff-intro {
  padding-bottom: 45px;
}

.staff-intro h1 {
  margin: 0;
      font-size: clamp(38px, 4vw, 52px);
      line-height: 1.08;
      letter-spacing: -2px;
      font-weight: 800;
}

.staff-intro p {
  margin: 20px 0 0;
      max-width: 760px;
      font-size: 15px;
      line-height: 1.5;
}

.staff-grid {
  display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 44px 28px;
}

.staff-card {
  min-width: 0;
}

.staff-photo {
  width: 100%;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      background: var(--surface);
}

.staff-photo img {
  width: 100%;
      height: 100%;
      display: block;
      background-color: var(--page-bg);
      object-fit: cover;
}

.staff-info {
  width: calc(100% - 24px);
      min-height: 70px;
      margin: -10px 0 0 12px;
      padding: 14px 16px;
      position: relative;
      background: var(--card-bg);
      color: var(--card-text);
}

.staff-name {
  margin: 0 0 5px;
      color: var(--accent);
      font-size: 16px;
      line-height: 1.2;
      font-weight: 600;
}

.staff-role {
  margin: 0;
      color: var(--card-text);
      font-size: 12px;
      line-height: 1.35;
      font-weight: 400;
}

@media (max-width: 1000px) {
  .staff-page {
          padding-top: 52px;
        }

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

@media (max-width: 1150px) {
  .staff-page {
          padding-top: 39px;
        }

        .staff-intro h1 {
          font-size: 34px;
          letter-spacing: -1.2px;
          line-height: 1.1;
        }

        .staff-intro p {
          margin-top: 15px;
          font-size: 14px;
        }

        .staff-grid {
          gap: 32px 18px;
        }
}

@media (max-width: 700px) {
  .staff-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .staff-intro {
          padding-bottom: 32px;
        }

        .staff-info {
          width: calc(100% - 16px);
          margin-left: 8px;
          padding: 11px 12px;
          min-height: 64px;
        }

        .staff-name {
          font-size: 14px;
        }

        .staff-role {
          font-size: 11px;
        }
}

@media (max-width: 440px) {
  .staff-grid {
          grid-template-columns: 1fr;
          gap: 30px;
        }

        .staff-photo {
          aspect-ratio: 4 / 3;
        }

        .staff-info {
          width: calc(100% - 24px);
          margin-left: 12px;
        }
}
/* =========================================================
   ACHIEVEMENTS
   ========================================================= */

#achievement-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--button-border);
    border-radius: 50%;

    background: var(--button-bg);
    color: var(--button-text);

    font-family: inherit;
    font-size: 23px;
    line-height: 1;

    cursor: pointer;

    z-index: 99990;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

#achievement-button:hover {
    background: var(--button-hover);
    border-color: var(--border-strong);
    transform: scale(1.15) rotate(8deg);
}

#achievement-button:active {
    transform: scale(.95);
}


/* =========================================================
   ACHIEVEMENT PANEL
   ========================================================= */

#achievement-panel {
    position: fixed;

    bottom: 80px;
    right: 20px;

    width: 340px;
    max-width: calc(100vw - 40px);
    max-height: 70vh;

    overflow-y: auto;

    padding: 20px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: 0 15px 50px rgba(0, 0, 0, .25);

    z-index: 99989;

    opacity: 0;

    transform:
        translateY(20px)
        scale(.95);

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease,
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}


/* OPEN */

#achievement-panel.achievement-panel-open {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.achievement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.achievement-header h3 {
    margin: 0;

    color: var(--text);

    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

#achievement-close {
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--button-border);
    border-radius: 50%;

    background: var(--button-bg);
    color: var(--button-text);

    font-family: inherit;
    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

#achievement-close:hover {
    background: var(--button-hover);

    border-color:
        var(--border-strong);

    transform:
        rotate(90deg);
}


/* =========================================================
   ACHIEVEMENT ITEMS
   ========================================================= */

.achievement-item {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 12px;
    margin-bottom: 8px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-alt);
    color: var(--text);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


/* UNLOCKED */

.achievement-item.unlocked {
    background: var(--surface-alt);
    border-color: var(--border);
}

.achievement-item.unlocked:hover {
    border-color: var(--accent);
    transform: translateX(3px);
}


/* LOCKED */

.achievement-item.locked {
    opacity: .45;

    background:
        var(--surface-alt);
}


/* =========================================================
   ACHIEVEMENT ICON
   ========================================================= */

.achievement-item-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--button-bg);
    color: var(--text);

    font-size: 22px;
}


/* =========================================================
   ACHIEVEMENT TEXT
   ========================================================= */

.achievement-item strong {
    display: block;

    margin-bottom: 3px;

    color: var(--text);

    font-size: 14px;
    font-weight: 700;
}

.achievement-item span {
    display: block;

    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   ACHIEVEMENT NOTIFICATION
   ========================================================= */

.achievement-notification {
    position: fixed;

    top: 25px;
    right: 25px;

    width: 330px;
    max-width: calc(100vw - 50px);

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 15px 18px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);

    border-radius: 15px;

    z-index: 1000001;

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);

    animation:
        achievementIn .5s ease forwards;
}


/* =========================================================
   NOTIFICATION ICON
   ========================================================= */

.achievement-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--surface-alt);

    font-size: 28px;
}


/* =========================================================
   NOTIFICATION TEXT
   ========================================================= */

.achievement-notification small {
    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}

.achievement-notification strong {
    display: block;

    color: var(--text);

    font-size: 16px;
    font-weight: 700;
}

.achievement-notification span {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   NOTIFICATION EXIT
   ========================================================= */

.achievement-notification.achievement-hide {
    animation:
        achievementOut .5s ease forwards;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes achievementIn {

    from {
        opacity: 0;

        transform:
            translateX(100px)
            scale(.95);
    }

    to {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }

}


@keyframes achievementOut {

    from {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }

    to {
        opacity: 0;

        transform:
            translateX(100px)
            scale(.95);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    #achievement-button {
        width: 46px;
        height: 46px;

        bottom: 15px;
        right: 15px;
    }


    #achievement-panel {
        right: 15px;
        bottom: 72px;

        width: calc(100vw - 30px);

        max-height: 70vh;

        padding: 16px;
    }


    .achievement-notification {
        top: 15px;
        right: 15px;

        width: calc(100vw - 30px);
        max-width: none;
    }

}

/* Hide achievements on mobile */
@media (max-width: 768px) {
    #achievement-button,
    #achievement-panel,
    .achievement-notification {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hidden-paw {
        display: none !important;
    }
}

/* =========================================================
   Page-specific styles: staff.html
   ========================================================= */

.staff-page {
  padding: 69px 0 80px;
}

.staff-intro {
  padding-bottom: 45px;
}

.staff-intro h1 {
  margin: 0;
      font-size: clamp(38px, 4vw, 52px);
      line-height: 1.08;
      letter-spacing: -2px;
      font-weight: 800;
}

.staff-intro p {
  margin: 20px 0 0;
      max-width: 760px;
      font-size: 15px;
      line-height: 1.5;
}

.staff-grid {
  display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 44px 28px;
}

.staff-card {
  min-width: 0;
}

.staff-photo {
  width: 100%;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      background: var(--hero-bg);
}

.staff-photo img {
  width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
}

.staff-info {
  width: calc(100% - 24px);
      min-height: 70px;
      margin: -10px 0 0 12px;
      padding: 14px 16px;
      position: relative;
      background: var(--card-bg);
      color: var(--card-text);
}

.staff-name {
  margin: 0 0 5px;
      color: var(--accent);
      font-size: 16px;
      line-height: 1.2;
      font-weight: 600;
}

.staff-role {
  margin: 0;
      color: var(--card-text);
      font-size: 12px;
      line-height: 1.35;
      font-weight: 400;
}

@media (max-width: 1000px) {
  .staff-page {
          padding-top: 52px;
        }

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

@media (max-width: 1150px) {
  .staff-page {
          padding-top: 39px;
        }

        .staff-intro h1 {
          font-size: 34px;
          letter-spacing: -1.2px;
          line-height: 1.1;
        }

        .staff-intro p {
          margin-top: 15px;
          font-size: 14px;
        }

        .staff-grid {
          gap: 32px 18px;
        }
}

@media (max-width: 700px) {
  .staff-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .staff-intro {
          padding-bottom: 32px;
        }

        .staff-info {
          width: calc(100% - 16px);
          margin-left: 8px;
          padding: 11px 12px;
          min-height: 64px;
        }

        .staff-name {
          font-size: 14px;
        }

        .staff-role {
          font-size: 11px;
        }
}

@media (max-width: 440px) {
  .staff-grid {
          grid-template-columns: 1fr;
          gap: 30px;
        }

        .staff-photo {
          aspect-ratio: 4 / 3;
        }

        .staff-info {
          width: calc(100% - 24px);
          margin-left: 12px;
        }
}


/* =========================================================
   Page-specific styles: gallery.html
   ========================================================= */

.gallery-page {
  padding-top: 60px;
      padding-bottom: 20px;
}

.gallery-grid {
  display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      column-gap: 40px;
      row-gap: 64px;
}

.gallery-card {
  min-width: 0;
}

.gallery-card a {
  display: block;
      color: inherit;
      text-decoration: none;
}

.gallery-image {
  width: 100%;
      aspect-ratio: 405 / 270;
      overflow: hidden;
      background: var(--hero-bg);
}

.gallery-image img {
  width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      transition: transform .2s ease;
}

.gallery-card a:hover .gallery-image img {
  transform: scale(1.025);
}

.gallery-caption {
  width: calc(100% - 24px);
      min-height: 52px;
      margin: -16px 0 0 12px;
      padding: 14px 16px;
      position: relative;
      background: var(--card-bg);
      color: var(--accent-strong);
      font-size: 16px;
      line-height: 1.35;
      font-weight: 500;
}

@media (max-width: 1100px) {
  .gallery-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
          column-gap: 28px;
          row-gap: 50px;
        }
}

@media (max-width: 760px) {
  .gallery-page {
          padding-top: 40px;
        }

        .gallery-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          column-gap: 18px;
          row-gap: 38px;
        }

        .gallery-caption {
          width: calc(100% - 14px);
          margin-left: 7px;
          padding: 11px 12px;
          font-size: 13px;
        }
}

@media (max-width: 480px) {
  .gallery-grid {
          grid-template-columns: 1fr;
          row-gap: 35px;
        }

        .gallery-image {
          aspect-ratio: 16 / 10;
        }
}


/* =========================================================
   Legal page styles: privacy.html
   Scoped to body.privacy-page so they do not affect the main site.
   ========================================================= */

body.privacy-page {
  margin: 0;
      padding: 0;
      background: var(--surface);
      color: var(--button-text);
      font-family: Arial, Helvetica, sans-serif;
      -webkit-font-smoothing: antialiased;
}

body.privacy-page {
  border-top: 10px solid var(--legal-top);
}

body.privacy-page .page-header {
  height: 115px;
      border-bottom: 1px solid var(--header-border);
      display: flex;
      align-items: center;
}

body.privacy-page .page-width {
  width: min(1000px, calc(100% - 40px));
      margin: 0 auto;
}

body.privacy-page .logo {
  width: 68px;
      height: 68px;
      object-fit: cover;
      display: block;
}

body.privacy-page main {
  padding: 31px 0 80px;
}

body.privacy-page h1 {
  margin: 0 0 31px;
      font-size: 28px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: -0.6px;
}

body.privacy-page h2 {
  margin: 20px 0 20px;
      padding-top: 20px;
      border-top: 1px solid var(--legal-heading-border);
      font-size: 21px;
      line-height: 1.25;
      font-weight: 700;
}

body.privacy-page p {
  margin: 0 0 17px;
      font-size: 14px;
      line-height: 1.3;
}

body.privacy-page ul {
  margin: 0 0 20px;
      padding-left: 22px;
      font-size: 14px;
      line-height: 1.45;
}

body.privacy-page li {
  margin-bottom: 7px;
}

@media (max-width: 640px) {
  body.privacy-page .page-width {
    width: calc(100% - 28px);
  }
  body.privacy-page .page-header {
    height: 90px;
  }
  body.privacy-page .logo {
    width: 54px;
          height: 54px;
  }
  body.privacy-page main {
    padding-top: 27px;
  }
  body.privacy-page h1 {
    font-size: 25px;
          margin-bottom: 27px;
  }
  body.privacy-page h2 {
    font-size: 19px;
          margin-top: 18px;
          padding-top: 18px;
  }
  body.privacy-page p, body.privacy-page ul {
    font-size: 14px;
  }
}

/* ========================================
   THANK YOU PAGE
   ======================================== */

.thank-you-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: var(--page-bg);
    color: var(--text);
}

.thank-you-card {
    width: 100%;
    max-width: 520px;

    padding: 50px 40px;

    text-align: center;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.thank-you-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent);
    color: #111;

    font-size: 28px;
}

.thank-you-card h1 {
    margin: 0 0 12px;

    color: var(--text);

    font-size: 32px;
    font-weight: 700;
}

.thank-you-card p {
    max-width: 400px;

    margin: 0 auto 30px;

    color: var(--text-muted);

    font-size: 15px;
    line-height: 1.6;
}

.thank-you-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;

    padding: 0 22px;

    border: 1px solid var(--button-border);
    border-radius: 999px;

    background: var(--button-bg);
    color: var(--button-text);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.thank-you-button:hover {
    background: var(--button-hover);
    color: var(--button-text);

    border-color: var(--border-strong);

    transform: translateY(-1px);
}

@media (max-width: 640px) {

    .thank-you-page {
        padding: 20px;
    }

    .thank-you-card {
        padding: 40px 25px;
    }

    .thank-you-card h1 {
        font-size: 28px;
    }

    .thank-you-button {
        width: 100%;
    }

}

/* =========================================================
   Legal page styles: rules.html
   Scoped to body.rules-page so they do not affect the main site.
   ========================================================= */

body.rules-page {
  margin: 0;
      padding: 0;
      background: var(--surface);
      color: var(--button-text);
      font-family: Arial, Helvetica, sans-serif;
      -webkit-font-smoothing: antialiased;
}

body.rules-page {
  border-top: 10px solid var(--legal-top);
}

body.rules-page .page-header {
  height: 115px;
      border-bottom: 1px solid var(--header-border);
      display: flex;
      align-items: center;
}

body.rules-page .page-width {
  width: min(1000px, calc(100% - 40px));
      margin: 0 auto;
}

body.rules-page .logo {
  width: 68px;
      height: 68px;
      object-fit: cover;
      display: block;
}

body.rules-page main {
  padding: 31px 0 80px;
}

body.rules-page h1 {
  margin: 0 0 31px;
      font-size: 28px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: -0.6px;
}

body.rules-page h2 {
  margin: 20px 0 20px;
      padding-top: 20px;
      border-top: 1px solid var(--legal-heading-border);
      font-size: 21px;
      line-height: 1.25;
      font-weight: 700;
}

body.rules-page p {
  margin: 0 0 17px;
      font-size: 14px;
      line-height: 1.3;
}

body.rules-page h3 {
  margin: 20px 0 10px;
      font-size: 16px;
      line-height: 1.3;
      font-weight: 700;
}

body.rules-page ul {
  margin: 0 0 20px;
      padding-left: 22px;
      font-size: 14px;
      line-height: 1.45;
}

body.rules-page li {
  margin-bottom: 7px;
}

@media (max-width: 640px) {
  body.rules-page .page-width {
    width: calc(100% - 28px);
  }
  body.rules-page .page-header {
    height: 90px;
  }
  body.rules-page .logo {
    width: 54px;
          height: 54px;
  }
  body.rules-page main {
    padding-top: 27px;
  }
  body.rules-page h1 {
    font-size: 25px;
          margin-bottom: 27px;
  }
  body.rules-page h2 {
    font-size: 19px;
          margin-top: 18px;
          padding-top: 18px;
  }
  body.rules-page p, body.rules-page ul {
    font-size: 14px;
  }
  body.rules-page h3 {
    font-size: 15px;
  }
}
/* =========================================================
   SUSSEXFURS DYNAMIC ATMOSPHERE
   ========================================================= */

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

/* ---------------------------------------------------------
   NIGHT
   --------------------------------------------------------- */

html[data-time="night"] {
    --atmosphere-overlay: rgba(10, 15, 35, 0.08);
}

html[data-time="night"] body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--atmosphere-overlay);
    z-index: 998;
}

/* ---------------------------------------------------------
   STARS
   --------------------------------------------------------- */

.sf-stars span {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    animation: sfTwinkle 3s infinite ease-in-out;
}

@keyframes sfTwinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ---------------------------------------------------------
   SNOW
   --------------------------------------------------------- */

.sf-snow span {
    position: absolute;
    top: -30px;
    color: white;
    opacity: 0.8;
    animation: sfSnowFall linear infinite;
}

@keyframes sfSnowFall {

    0% {
        transform:
            translateY(-30px)
            translateX(0)
            rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform:
            translateY(50vh)
            translateX(40px)
            rotate(180deg);
    }

    100% {
        transform:
            translateY(110vh)
            translateX(-40px)
            rotate(360deg);
        opacity: 0;
    }
}

/* ---------------------------------------------------------
   AUTUMN
   --------------------------------------------------------- */

.sf-leaves span {
    position: absolute;
    top: -30px;
    animation: sfLeafFall linear infinite;
}

@keyframes sfLeafFall {

    0% {
        transform:
            translateY(-30px)
            rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform:
            translateY(50vh)
            translateX(70px)
            rotate(180deg);
    }

    100% {
        transform:
            translateY(110vh)
            translateX(-70px)
            rotate(360deg);
        opacity: 0;
    }
}

/* ---------------------------------------------------------
   HALLOWEEN
   --------------------------------------------------------- */

html[data-atmosphere="halloween"] {
    --sf-accent: #ff7518;
}

html[data-atmosphere="halloween"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 100, 0, 0.08),
            transparent 60%
        );
    z-index: 997;
}

.sf-halloween span {
    position: absolute;
    animation: sfSpookyFloat 5s ease-in-out infinite;
    font-size: 24px;
    opacity: 0.65;
}

@keyframes sfSpookyFloat {

    0%, 100% {
        transform:
            translateY(0)
            rotate(-8deg);
    }

    50% {
        transform:
            translateY(-25px)
            rotate(8deg);
    }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .sf-atmosphere span {
        animation: none !important;
    }
}
/* =========================================================
   FINAL THEME OVERRIDES
   These rules intentionally sit at the end of the stylesheet
   so the theme wins over earlier component/page styles.
   ========================================================= */

html[data-theme="light"] body,
html[data-theme="light"] main,
html[data-theme="light"] section {
  background-color: var(--page-bg);
  color: var(--text);
}

html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] section {
  background-color: var(--page-bg) !important;
  color: var(--text) !important;
}

/* Main site containers */
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .mobile-menu,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .meet-us,
html[data-theme="dark"] .who-we-are,
html[data-theme="dark"] .intro,
html[data-theme="dark"] .events,
html[data-theme="dark"] .staff-page,
html[data-theme="dark"] .gallery-page,
html[data-theme="dark"] .partners-page,
html[data-theme="dark"] .calendar-page {
  background-color: var(--page-bg) !important;
  color: var(--text) !important;
}

/* Text */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] span,
html[data-theme="dark"] label,
html[data-theme="dark"] strong,
html[data-theme="dark"] small,
html[data-theme="dark"] dt,
html[data-theme="dark"] dd {
  color: var(--text);
}

html[data-theme="dark"] .footer-text,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .staff-role {
  color: var(--text-muted) !important;
}

/* Links */
html[data-theme="dark"] a:not(.social-icons a) {
  color: var(--text);
}

html[data-theme="dark"] a:not(.social-icons a):hover {
  color: var(--text-muted);
}

/* Navigation buttons */
html[data-theme="dark"] .manage-btn,
html[data-theme="dark"] .map-button,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .mobile-toggle {
  background-color: var(--button-bg) !important;
  color: var(--button-text) !important;
  border-color: var(--button-border) !important;
}

html[data-theme="dark"] .manage-btn:hover,
html[data-theme="dark"] .map-button:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .mobile-toggle:hover {
  background-color: var(--button-hover) !important;
  color: var(--button-text) !important;
  border-color: var(--border-strong) !important;
}

/* Brand */
html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand span {
  color: var(--text) !important;
}

/* Borders */
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .mobile-menu,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .map-button,
html[data-theme="dark"] .manage-btn,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .mobile-toggle {
  border-color: var(--border) !important;
}

/* Images / image placeholders */
html[data-theme="dark"] .hero,
html[data-theme="dark"] .gallery-image,
html[data-theme="dark"] .staff-photo,
html[data-theme="dark"] .who-image {
  background-color: var(--hero-bg) !important;
}

/* Staff and gallery overlay cards deliberately remain dark */
html[data-theme="dark"] .staff-info,
html[data-theme="dark"] .gallery-caption {
  background-color: var(--card-bg) !important;
  color: var(--card-text) !important;
}

html[data-theme="dark"] .staff-info .staff-name,
html[data-theme="dark"] .gallery-caption {
  color: var(--accent-strong) !important;
}

html[data-theme="dark"] .staff-info .staff-role {
  color: var(--card-text) !important;
}

/* Social icons */
html[data-theme="dark"] .social-icons a {
  background-color: var(--social-bg) !important;
  color: var(--social-text) !important;
}

html[data-theme="dark"] .social-icons a:hover {
  background-color: var(--text) !important;
  color: var(--page-bg) !important;
}

/* Legal pages */
html[data-theme="dark"] body.privacy-page,
html[data-theme="dark"] body.rules-page {
  background-color: var(--page-bg) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] body.privacy-page h1,
html[data-theme="dark"] body.privacy-page h2,
html[data-theme="dark"] body.privacy-page h3,
html[data-theme="dark"] body.privacy-page p,
html[data-theme="dark"] body.privacy-page li,
html[data-theme="dark"] body.rules-page h1,
html[data-theme="dark"] body.rules-page h2,
html[data-theme="dark"] body.rules-page h3,
html[data-theme="dark"] body.rules-page p,
html[data-theme="dark"] body.rules-page li {
  color: var(--text) !important;
}

html[data-theme="dark"] body.privacy-page h2,
html[data-theme="dark"] body.rules-page h2 {
  border-color: var(--legal-heading-border) !important;
}
