@font-face {
  font-family: 'Jolly Lodger';
  src: url('@fonts/Jolly_Lodger/JollyLodger-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jim Nightshade';
  src: url('@fonts/Jim_Nightshade/JimNightshade-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5efe6;          /* light cream-beige */
  --bg-dark: #e8dcc8;     /* deeper beige */
  --paper: #fbf4ea;       /* card background */
  --paper-alt: #f0e4d4;   /* alt card */
  --ink: #3a2a18;         /* dark brown text */
  --ink-muted: #6f5b3e;   /* muted brown text */
  --accent: #d27f46;      /* warm accent */
  --gold: #c8a36e;        /* secondary accent */
  --nav: #f3e3cf;         /* navbar bg */
  --white: #fff;
  --shadow: rgba(58, 42, 24, 0.12);
  --border: #e2d6c8;      /* soft brown border */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Jim Nightshade', cursive;
  color: var(--ink);
  background: var(--bg) url('/images/signin/background.PNG') no-repeat center center fixed;
  background-size: cover;
  font-size: 18px;
}

.page-title,
.project-row__title,
.detail-subtitle,
.project-detail__title,
.shop-card__title,
.modal__title,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Jolly Lodger', cursive;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  position: sticky;
  top: 12px;
  z-index: 120;
  width: min(1400px, 96vw);
  margin: 12px auto 0;
  background: rgba(243, 227, 207, 0.78);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border-radius: 16px;
  border: 1px solid rgba(58, 42, 24, 0.14);
  box-shadow: 0 12px 28px rgba(58, 42, 24, 0.16);
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav {
  display: flex;
  gap: 24px;
}
.nav__item {
  color: #221b12;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.nav__item[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.nav__item--active {
  background: rgba(200, 163, 110, 0.28);
  color: #20170f;
  box-shadow: 0 0 0 2px rgba(214, 161, 97, 0.24) inset;
  text-decoration: none;
}
.nav__item:hover {
  transform: translateY(-1px);
  background: rgba(58, 42, 24, 0.08);
  box-shadow: 0 2px 6px rgba(58, 42, 24, 0.12);
}
.nav__item:active {
  transform: translateY(0);
  box-shadow: none;
}
.coins {
  background: linear-gradient(135deg, #f2d39e, #efd1a4);
  color: #3a2a18;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(58, 42, 24, 0.12);
}

/* Containers */
.container {
   width: min(1200px, 95vw);
   margin: 18px auto;
}
.container > .card {
   margin-top: 32px;
}
.container--center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
}
.card {
   background: var(--paper);
   border-radius: 12px;
   padding: 20px;
   box-shadow: 0 1px 3px var(--shadow);
   border: 1px solid var(--border);
   animation: fade-in-up 420ms ease both;
}
.page-title {
   font-size: 36px;
   font-weight: 700;
   margin: 0;
   padding: 20px 20px 0;
}

/* Projects grid */
.grid {
   display: grid;
   grid-template-columns: 300px 1fr;
   gap: 24px;
   padding: 20px;
}
@media (max-width: 980px) {
   .grid {
     grid-template-columns: 1fr;
   }
}

/* Projects list */
.projects-list {
   display: flex;
   flex-direction: column;
   gap: 8px;
}
.projects-list .project-row {
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   align-items: flex-start;
   gap: 12px;
   background: var(--paper);
   border: 1px solid var(--border);
   border-radius: 12px;
   padding: 16px;
   margin: 0;
   cursor: pointer;
   transition: transform 140ms ease, box-shadow 160ms ease, outline-color 160ms ease;
   animation: fade-in-up 440ms ease both;
}
.project-row--alt {
   background: var(--paper-alt);
}
.project-row--selected {
   border-color: var(--gold);
   background: var(--paper);
   box-shadow: 0 0 0 2px rgba(214, 161, 97, 0.2);
}
a.project-row {
   text-decoration: none;
   color: inherit;
}
a.project-row:hover {
   border-color: var(--gold);
   box-shadow: 0 6px 12px var(--shadow);
   transform: translateY(-1px);
}
.project-row__title {
   font-size: 20px;
   font-weight: 700;
   margin: 0;
}
.pill {
   border-radius: 6px;
   padding: 4px 8px;
   font-weight: 600;
   text-align: center;
   font-size: 12px;
   display: inline-block;
}
.pill--status {
   background: #fef3c7;
   color: #92400e;
}
.pill--time {
   background: #dcfce7;
   color: #166534;
}

/* Detail panel */
.project-detail__header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 20px;
   padding-bottom: 16px;
   border-bottom: 1px solid var(--border);
}
.project-detail__title {
   font-size: 32px;
   font-weight: 700;
   margin: 0;
}
.project-detail__actions {
   display: flex;
   gap: 12px;
}
.project-detail__content .detail-panel {
   background: var(--paper);
   color: var(--ink);
   border-radius: 12px;
   padding: 20px;
   min-height: 420px;
   border: 1px solid var(--border);
}
.detail-row {
   display: grid;
   grid-template-columns: 140px 1fr;
   padding: 12px 0;
   border-bottom: 1px solid var(--border);
}
.detail-row:last-child {
   border-bottom: none;
}
.detail-label {
   color: var(--ink-muted);
   font-weight: 600;
   font-size: 13px;
}
.detail-value {
   color: var(--ink);
   font-size: 14px;
}
.detail-group {
  margin-top: 18px;
}
.detail-subtitle {
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 8px;
}
.tracking-table {
  display: grid;
  gap: 8px;
}
.tracking-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.8fr;
  background: rgba(0, 0, 0, 0.04);
  padding: 8px 10px;
  border-radius: 6px;
}
.tracking-row--head {
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 800;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #b8b6b1;
  margin-right: 6px;
  vertical-align: middle;
}
.dot--filled {
  background: #26c281;
  border-color: #26c281;
}
.spacer {
  display: inline-block;
  width: 16px;
}

/* Forms */
.signin {
  width: min(520px, 92vw);
}
.heading {
  margin: 6px 0 4px;
}
.muted {
  color: var(--ink-muted);
}
.form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.form__label {
  font-weight: 700;
}
.form__input {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #b8b6b1;
  background: #fffdf9;
  outline: none;
}
.form__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 161, 97, 0.25);
}

/* Buttons */
.btn {
   appearance: none;
   border: 0;
   background: #e8e8e8;
   color: #1f2430;
   font-weight: 600;
   padding: 10px 16px;
   border-radius: 8px;
   cursor: pointer;
   box-shadow: none;
   text-decoration: none;
   display: inline-block;
   text-align: center;
   font-size: 14px;
   transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease, background-color 160ms ease;
}
.btn:hover:not(:disabled) {
   background: #d8d8d8;
   box-shadow: 0 6px 14px var(--shadow);
   transform: translateY(-1px);
}
.btn:active:not(:disabled) {
   transform: translateY(0);
   box-shadow: 0 2px 6px var(--shadow);
}
.btn:disabled {
   opacity: 0.6;
   cursor: not-allowed;
}
.btn[aria-busy="true"] {
   opacity: 0.8;
   pointer-events: none;
}
.btn--primary {
   background: var(--gold);
   color: #fff;
}
.btn--primary:hover:not(:disabled) {
   background: #c89650;
}
.btn--accent {
   background: var(--accent);
   color: var(--white);
}
.btn--accent:hover:not(:disabled) {
   background: #e05a2a;
}
.btn--block {
   width: 100%;
   margin-top: 0;
}
.btn--ghost {
   background: transparent;
   box-shadow: none;
   border: 1px solid var(--border);
}
/* Refine ghost button in topbar */
.topbar__right .btn--ghost {
  border-color: rgba(58, 42, 24, 0.18);
  color: #2a2118;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
.topbar__right .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 6px 14px rgba(58, 42, 24, 0.12);
  transform: translateY(-1px);
}
.topbar__right .btn--ghost:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn--hca {
   background: #ec3750;
   color: white;
   font-size: 18px;
   padding: 14px 24px;
}
/* Button size/shape utilities */
.btn--xl {
   font-size: 18px;
   padding: 12px 20px;
}
.btn--pill {
   border-radius: 999px;
}

/* Subtle animated glow for call-to-action buttons */
@keyframes btn-glow-pulse {
  0%, 100% {
    box-shadow: 0 6px 14px var(--shadow), 0 0 0 0 rgba(210, 127, 70, 0.0);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 10px 22px var(--shadow), 0 0 18px 2px rgba(210, 127, 70, 0.35);
  }
}
.btn--glow {
  animation: btn-glow-pulse 2.4s ease-in-out infinite;
}

/* Animated accent gradient for CTA button */
@keyframes accent-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn--accent-gradient {
  background: linear-gradient(90deg, #d27f46, #e05a2a, #d27f46);
  background-size: 200% 200%;
  color: var(--white);
  border: 0;
  animation: accent-gradient-shift 6s ease infinite;
}
.btn--accent-gradient:hover:not(:disabled) {
  filter: brightness(1.02);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 22px var(--shadow);
}

/* Flash messages */
.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px;
  font-weight: 600;
}
.flash--error {
  background: #fdecea;
  color: #c62828;
}
.flash--success {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.2s;
}
.modal.modal--hidden {
  display: none;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.modal__content {
  position: relative;
  width: min(480px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  animation: subtle-pop 180ms ease both;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.modal__title {
  margin: 0;
  font-size: 26px;
}
.modal__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink-muted);
  line-height: 1;
}
.modal__close:hover {
  color: var(--ink);
}
.form__textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}
.form__error {
  background: #fdecea;
  color: #c62828;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}

/* Shop */
.shop-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
   gap: 20px;
   padding: 20px;
}
.shop-card {
   display: flex;
   flex-direction: column;
   overflow: hidden;
   padding: 0;
   transition: transform 160ms ease, box-shadow 180ms ease, border-color 160ms ease;
   border: 1px solid var(--border);
   animation: fade-in-up 460ms ease both;
}
.shop-card:hover {
   border-color: var(--gold);
   box-shadow: 0 12px 24px var(--shadow);
   transform: translateY(-2px);
}
.shop-card__image {
   width: 100%;
   height: 160px;
   object-fit: cover;
   background: linear-gradient(135deg, var(--paper-alt) 0%, #f0f0ee 100%);
}
.shop-card__image--placeholder {
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 48px;
}
.shop-card__body {
   padding: 16px;
   display: flex;
   flex-direction: column;
   flex: 1;
}
.shop-card__title {
   margin: 0 0 8px;
  font-size: 20px;
   font-weight: 700;
   color: var(--ink);
}
.shop-card__description {
   margin: 0 0 12px;
   flex: 1;
   font-size: 13px;
   color: var(--ink-muted);
   line-height: 1.4;
}
.shop-card__footer {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   margin-top: 8px;
   padding-top: 12px;
   border-top: 1px solid var(--border);
}
.shop-card__price {
   font-weight: 700;
   font-size: 16px;
   color: var(--gold);
}
.purchase-form {
   flex: 1;
}
.shop-card .btn {
   width: 100%;
   padding: 8px 12px;
   font-size: 13px;
}

/* New Shop layout (category left, detail right) */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}
.shop-heading {
  font-family: 'Jolly Lodger', cursive;
  font-size: 28px;
  margin: 0 0 10px;
}
.shop-categories {
  position: sticky;
  top: 20px;
  height: fit-content;
}
.shop-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-category-item {
  width: 100%;
  text-align: left;
  background: #f5f5f3;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
.shop-category-item:hover {
  background: #efefeb;
  box-shadow: 0 6px 12px var(--shadow);
  transform: translateY(-1px);
}
.shop-category-item.is-active {
  background: #e8dcc8;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(214, 161, 97, 0.2);
}
.shop-category-item[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}
.shop-category-item__badge {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 90px;
  height: auto;
  transform: rotate(35deg);
  pointer-events: none;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.shop-items {
  padding: 16px;
}
.shop-items__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.shop-cart {
  font-size: 0;
}
/* (Removed rules button animation) */
.shop-item-detail {
  display: none;
  padding: 8px 0 0;
  margin-top: 8px;
}
.shop-item-detail.is-active {
  display: block;
}
.shop-item-title {
  margin: 0 0 6px;
  font-size: 28px;
}
.shop-item-desc {
  margin: 0 0 12px;
  color: var(--ink-muted);
}
.shop-item-image {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  object-fit: cover;
}
.shop-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.shop-item-image--placeholder {
  background: linear-gradient(135deg, var(--paper-alt), #f0f0ee);
}
.shop-item-detail__variants {
  display: grid;
  gap: 12px;
}
.shop-variant {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
}
.shop-variant__thumb {
  width: 120px;
  height: 90px;
  border-radius: 10px;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.shop-variant__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shop-variant__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  justify-self: end;
}
.shop-variant__name {
  font-family: 'Jolly Lodger', cursive;
  font-size: 22px;
  color: var(--ink);
}
.shop-variant__price {
  font-weight: 800;
  color: #e05a2a;
  font-size: 20px;
}
.shop-variant__priceBox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #efd1a4;
  color: #3a2a18;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.bolt-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}
.bolt-svg {
  width: 20px;
  height: 20px;
}
.shop-cart .bolt-svg {
  width: 24px;
  height: 24px;
}
.shop-cart .bolt-icon {
  width: 24px;
  height: 24px;
}
.shop-variant__pill {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
}
.shop-variant__pill--economic {
  background: #e7f4e7;
  color: #326f3d;
}
.shop-variant__pill--quality {
  background: #e5f2ff;
  color: #1e4f7a;
}
.shop-variant__pill--standard {
  background: #f3ecd8;
  color: #6b4f1d;
}
.shop-variant__pill--advanced {
  background: #f0e7ff;
  color: #4e2f91;
}
.shop-variant__pill--professional {
  background: #e6f6ef;
  color: #0c6b4a;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-categories {
    position: static;
  }
  .shop-item-detail {
    grid-template-columns: 1fr;
  }
  .shop-variant {
    grid-template-columns: 100px 1fr auto;
  }
  .shop-variant .purchase-form {
    grid-column: 1 / -1;
  }
}
/* Purchases */
.purchases-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.purchase-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  animation: fade-in-up 480ms ease both;
}
.purchase-row__image {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--paper-alt);
  flex-shrink: 0;
}
.purchase-row__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.purchase-row__details {
  flex: 1;
}
.purchase-row__title {
  margin: 0 0 4px;
  font-size: 20px;
}
.purchase-row__status {
  flex-shrink: 0;
}
.pill--pending {
  background: #ffeeba;
  color: #856404;
}
.pill--fulfilled {
  background: #d4edda;
  color: #155724;
}
.pill--shipped {
  background: #cce5ff;
  color: #004085;
}

/* FAQ */
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  animation: fade-in-up 500ms ease both;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.faq-item p {
  margin: 0;
}

/* Admin */
.admin-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}
.admin-row__main {
  flex: 1;
}
.admin-row__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.admin-row__meta {
  font-size: 14px;
  margin-bottom: 8px;
}
.admin-row__desc {
  margin: 8px 0;
  font-size: 14px;
}
.admin-row__links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.admin-row__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.admin-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pill--in-review {
  background: #fff3cd;
  color: #856404;
}
.pill--rejected {
  background: #f8d7da;
  color: #721c24;
}
.admin-approve-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-card {
  background: #e8f5e9;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #2e7d32;
}
.review-card p {
  margin: 0 0 4px;
}
.review-card--rejected {
  background: #fdecea;
  border-left-color: #c62828;
}

/* Signin Page */
[data-page="signin"] {
  background: var(--bg) url('/images/signin/background.PNG') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  overflow: hidden;
}

/* FAQ Page - custom background */
[data-page="faq"] {
  background: var(--bg) url('https://files.slack.com/files-pri/T09V59WQY1E-F0A71GFN7N2/untitled_artwork.png?pub_secret=e6e1934613') no-repeat center center fixed;
  background-size: cover;
  font-size: 20px; /* bump base size on FAQ */
}

.signin-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.signin-flag {
  position: absolute;
  top: 16px;
  left: 0px;
  width: 200px;
  z-index: 10;
}

.signin-content {
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   z-index: 5;
   gap: 0;
}

.signin-crane-text {
   width: clamp(550px, 90vw, 1100px);
   height: auto;
   margin-bottom: 0px;
   order: 1;
}

/* Start button image */
.signin-start-img {
  width: clamp(250px, 22vw, 200px);
  height: auto;
  animation: signin-bob 2.6s ease-in-out infinite;
  will-change: transform;
}

.signin-content form {
   order: 2;
   margin-top: -150px;
}

.signin-subtitle {
   font-family: 'Jolly Lodger', cursive;
   font-size: clamp(24px, 4vw, 36px);
   margin-top: -3vh;
   color: #000;
   order: 3;
}

.signin-btn {
   background: #d8d8d8;
   border: none;
   border-radius: 10px;
   padding: 10px 36px;
   font-family: 'Jim Nightshade', cursive;
   font-size: clamp(18px, 2.5vw, 24px);
   cursor: pointer;
   color: #000;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   transition: transform 0.2s;
   margin-top: 0;
}

.signin-btn:hover {
   transform: scale(1.03);
}

.signin-mole {
   position: absolute;
   bottom: 0;
   left: 0;
   width: clamp(400px, 20vw, 280px);
   z-index: 2;
}

/* Mirror animal on bottom-right for signin page */
.signin-mole--right {
  right: 0;
  left: auto;
  transform: scaleX(-1);
}

/* Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes subtle-pop {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes signin-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Global corner images */
.corner-img {
  position: fixed;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}
.corner-img--left {
  left: 0;
  width: clamp(160px, 20vw, 320px);
  height: auto;
}
.corner-img--right {
  right: 0;
  width: clamp(160px, 22vw, 360px);
  height: auto;
}

/* Signin-only tweaks: make bottom-left corner image bigger and slightly lower */
[data-page="signin"] .corner-img--left {
  width: clamp(220px, 28vw, 440px);
  bottom: -50px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
