:root {
  --bg: #fff9f5;
  --bg-alt: #fff3ee;
  --card: #ffffff;
  --ink: #2f2a2a;
  --muted: #6f6461;
  --accent: #ff9fb0;
  --accent-strong: #ff7f99;
  --accent-soft: #ffe5eb;
  --line: rgba(47, 42, 42, 0.12);
  --line-strong: rgba(255, 127, 153, 0.45);
  --radius-sm: 0.85rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.8rem;
  --shadow-soft: 0 10px 24px -20px rgba(47, 42, 42, 0.3);
  --shadow: 0 18px 36px -30px rgba(47, 42, 42, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 18rem, #ffffff 32rem);
  -webkit-tap-highlight-color: transparent;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 159, 176, 0.28);
  backdrop-filter: blur(8px);
}

.nav-desktop {
  display: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

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

@media (min-width: 1280px) {
  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }
}

.nav-link {
  color: #6d605d;
  text-decoration: none;
  font-weight: 700;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent-strong);
}

.nav-brand-link {
  text-decoration: none;
}

.nav-logo {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 65;
}

.account-toggle {
  appearance: none;
  border: 1px solid rgba(47, 42, 42, 0.18);
  background: #ffffff;
  color: #5e5351;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.46rem 0.68rem;
  min-height: 2.25rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.account-toggle:hover,
.account-toggle:focus-visible,
.account-toggle[aria-expanded="true"] {
  border-color: var(--accent-strong);
  background: #fff4f7;
  color: #4b4342;
}

.account-toggle-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-toggle-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.account-toggle-label {
  display: none;
  font-size: 0.85rem;
}

@media (min-width: 1280px) {
  .account-toggle {
    padding: 0.5rem 0.82rem;
  }

  .account-toggle-label {
    display: inline;
  }
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0.75rem;
  width: min(19rem, calc(100vw - 1.5rem));
  border: 1px solid rgba(255, 159, 176, 0.28);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 0.9rem;
  z-index: 90;
}

@media (min-width: 768px) {
  .account-dropdown {
    right: 1.15rem;
  }
}

.account-dropdown-kicker {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a7d79;
  font-weight: 700;
}

.account-dropdown-email {
  margin: 0.25rem 0 0.7rem;
  color: #413a39;
  font-weight: 700;
  font-size: 0.9rem;
  word-break: break-word;
}

.account-dropdown-copy {
  margin: 0.28rem 0 0.75rem;
  color: #5d514e;
  font-size: 0.86rem;
  line-height: 1.45;
}

.account-dropdown-links,
.account-dropdown-actions {
  display: grid;
  gap: 0.45rem;
}

.account-dropdown-actions {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 159, 176, 0.2);
}

.account-dropdown-links a,
.account-dropdown-actions button {
  appearance: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(255, 159, 176, 0.26);
  border-radius: 0.72rem;
  background: #fff9fb;
  color: #4d4543;
  padding: 0.5rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.account-dropdown-links a:hover,
.account-dropdown-actions button:hover,
.account-dropdown-links a:focus-visible,
.account-dropdown-actions button:focus-visible {
  border-color: var(--accent-strong);
  background: #fff1f5;
}

.account-dropdown-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hero-wide {
  border-bottom: 1px solid rgba(255, 159, 176, 0.14);
  background: linear-gradient(180deg, rgba(255, 235, 241, 0.85) 0%, rgba(255, 249, 245, 0.8) 58%, rgba(255, 249, 245, 0) 100%);
}

.hero-wide.no-divider {
  border-bottom: none;
}

.hero-kicker {
  letter-spacing: 0.2em;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.15;
}

.section-soft,
.contact-shell,
.info-card,
.no-results-card,
.modal-panel {
  background: var(--card);
  border: 1px solid rgba(255, 159, 176, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #fff6f8 100%);
}

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

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.info-card {
  padding: 1.25rem;
}

.info-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .feature-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.feature-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 159, 176, 0.2);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.feature-list li {
  color: var(--muted);
  padding-left: 1.3rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent-strong);
}

.nav-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.62rem 1.2rem;
  line-height: 1.1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.nav-pill:hover {
  background: #f06c87;
  border-color: #f06c87;
}

.nav-pill:active {
  transform: translateY(1px);
}

.nav-pill-secondary {
  background: transparent;
  color: #5f5451;
  border-color: rgba(47, 42, 42, 0.25);
}

.nav-pill-secondary:hover {
  background: #f7f0ed;
  border-color: rgba(47, 42, 42, 0.38);
}

.nav-pill:disabled,
.nav-pill[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

#mobile-menu {
  display: none;
}

#mobile-menu.is-open {
  display: block;
}

.mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 10, 0.38);
}

.mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(82vw, 340px);
  background: #ffffff;
  border-left: 1px solid var(--line);
  padding: 1.7rem;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

#mobile-menu.is-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-link {
  color: #5f5451;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.mobile-link[aria-current="page"] {
  color: var(--accent-strong);
}

.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.05rem;
  background: #ffffff;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 159, 176, 0.24);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.character-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-media {
  width: 6.9rem;
  height: 6.9rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 159, 176, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card-media {
    width: 7.6rem;
    height: 7.6rem;
  }
}

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

.media-fallback {
  font-size: 1.2rem;
  font-weight: 700;
  color: #514746;
  letter-spacing: 0.08em;
}

.filter-panel {
  background: var(--card);
  border: 1px solid rgba(255, 159, 176, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  position: sticky;
  top: 5.8rem;
  height: fit-content;
}

@media (max-width: 1023px) {
  .filter-panel {
    display: none;
    position: static;
    top: auto;
    margin-bottom: 1rem;
  }

  .filter-panel.is-open {
    display: block;
  }
}

.filter-pill {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 159, 176, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #5f5451;
  font-weight: 700;
  text-align: left;
  padding: 0.56rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  border-color: var(--line-strong);
  background: #fff4f7;
  color: #443c3b;
}

.filter-pill.is-active {
  background: var(--accent-soft);
  color: #423a39;
  border-color: var(--accent-strong);
}

.search-input {
  border-radius: 999px;
  border: 1px solid rgba(255, 159, 176, 0.34);
  background: #ffffff;
  color: #4f4544;
  font-weight: 600;
  padding: 0.68rem 1rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(255, 159, 176, 0.2);
}

.no-results {
  margin-top: 1rem;
}

.no-results-card {
  text-align: center;
  padding: 1.4rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 10, 10, 0.46);
}

.modal-panel {
  width: min(100%, 34rem);
  overflow: hidden;
}

.modal-media-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.modal-extra-images {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.modal-media-row .card-media,
.modal-extra-images .card-media {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .modal-overlay {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    border-radius: 1.55rem 1.55rem 0 0;
  }

  .modal-media-row {
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }
}

.adopt-btn {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid transparent;
}

.contact-shell {
  border-radius: 1.55rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .contact-shell {
    padding: 2rem;
  }
}

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

.contact-meta-card {
  border: 1px solid rgba(255, 159, 176, 0.2);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  background: #fff9fb;
}

.contact-meta-card p {
  margin: 0;
}

.contact-meta-card .meta-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #877973;
  font-size: 0.7rem;
  font-weight: 700;
}

.contact-meta-card .meta-value {
  margin-top: 0.3rem;
  color: #4a4140;
  font-size: 0.95rem;
  font-weight: 700;
}

.input-field {
  margin-top: 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  color: #3f3736;
  padding: 0.72rem 0.85rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(255, 159, 176, 0.2);
}

.form-check {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(47, 42, 42, 0.3);
  accent-color: var(--accent-strong);
}

.notice {
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.notice-success {
  color: #5d4650;
  background: #ffeef3;
  border-color: rgba(255, 159, 176, 0.4);
}

.notice-error {
  color: #7a2f35;
  background: #ffebed;
  border-color: rgba(245, 104, 117, 0.38);
}

.notice a {
  color: #8f3d51;
  font-weight: 700;
}

.social-link {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 159, 176, 0.24);
  background: #ffffff;
  padding: 0.9rem 1rem;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--accent-strong);
  background: #fff4f7;
}

.social-link-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #3f3736;
}

.social-link-copy {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.quiz-shell {
  width: min(100%, 54rem);
  margin: 0 auto;
  position: relative;
}

.quiz-progress {
  min-height: 1rem;
  letter-spacing: 0.08em;
}

.quiz-question {
  margin: 0.5rem 0 1rem;
  min-height: 4.4rem;
  line-height: 1.2;
}

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

.quiz-option {
  border: 1px solid rgba(255, 159, 176, 0.28);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #3f3736;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.3;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--accent-strong);
  background: #fff2f6;
}

.quiz-loading-screen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 249, 245, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.quiz-spinner {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 3px solid rgba(255, 159, 176, 0.26);
  border-top-color: var(--accent-strong);
  animation: quizSpin 0.9s linear infinite;
}

.quiz-loading-title {
  margin-top: 0.9rem;
  margin-bottom: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #4b4240;
}

.quiz-loading-copy {
  margin-top: 0.3rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

@keyframes quizSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-question {
    min-height: 0;
  }
}

.quiz-result-shell {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.quiz-result-kicker {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7f6f69;
  font-weight: 700;
}

.quiz-result-title {
  margin: 0;
  line-height: 1.2;
}

.quiz-type-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quiz-result-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.quiz-match-card {
  --match-color: #ffd5de;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 159, 176, 0.24);
  border-left: 4px solid var(--match-color);
  background: linear-gradient(180deg, #ffffff 0%, #fff7f9 100%);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.quiz-match-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quiz-match-media {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 159, 176, 0.26);
  overflow: hidden;
  background: #ffffff;
}

.quiz-match-copy {
  min-width: 0;
}

.quiz-match-rank {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #887873;
  font-weight: 700;
}

.quiz-match-name {
  margin: 0.22rem 0 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.quiz-match-tagline {
  margin: 0.22rem 0 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a06a79;
  font-weight: 700;
}

.quiz-match-personality {
  margin: 0;
  color: #5e5553;
  line-height: 1.42;
  font-size: 0.92rem;
}

.quiz-match-shop {
  align-self: flex-start;
  margin-top: 0.1rem;
}

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.collection-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.collection-consent {
  max-width: 46rem;
}

.collection-consent-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: #5a4f4c;
  line-height: 1.45;
}

.collection-consent-label a {
  color: #9c3f55;
  font-weight: 700;
}

.collection-disclaimer {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: #7a6d68;
  line-height: 1.45;
}

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

@media (min-width: 640px) {
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.collection-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid rgba(255, 159, 176, 0.24);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.collection-media {
  width: 4.8rem;
  height: 4.8rem;
  flex: 0 0 auto;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 159, 176, 0.24);
  background: #fff3f7;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.collection-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-media-fallback {
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #5f5451;
}

.collection-copy {
  min-width: 0;
  flex: 1;
}

.collection-name {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.2;
}

.collection-status {
  margin: 0.45rem 0 0.65rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.collection-status-verified {
  color: #1b6a54;
  background: #dcf7ef;
  border: 1px solid #afe8d7;
}

.collection-status-owned {
  color: #9c3f55;
  background: #ffeaf0;
  border: 1px solid #ffc8d5;
}

.collection-status-none {
  color: #625855;
  background: #f5efec;
  border: 1px solid #e4d9d4;
}

.collection-action {
  width: 100%;
}

.footer-note {
  color: #8f7e78;
}

.footer-links {
  color: #7d706c;
}

.footer-links a {
  color: #7d706c;
}

.footer-links a:hover {
  color: #5d524f;
}

.legal-wrap {
  max-width: 54rem;
  margin: 0 auto;
  padding: 2.25rem 1rem 5rem;
}

.legal-card {
  background: #ffffff;
  border: 1px solid rgba(255, 159, 176, 0.2);
  border-radius: 1.2rem;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .legal-card {
    padding: 1.6rem;
  }
}

.legal-card h2,
.legal-card h3 {
  margin-top: 0;
}

.legal-card h3 {
  margin-bottom: 0.35rem;
  margin-top: 1.15rem;
  font-size: 1.02rem;
}

.legal-card p,
.legal-card li {
  color: #514744;
  line-height: 1.55;
}

.legal-card ul {
  margin: 0.4rem 0 0.2rem 1.2rem;
}

.legal-updated {
  margin-top: 0;
  color: #7d706c;
  font-size: 0.85rem;
}

.auth-shell {
  max-width: 34rem;
  margin: 0 auto;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.auth-mode-btn {
  appearance: none;
  border: 1px solid rgba(255, 159, 176, 0.3);
  border-radius: 0.85rem;
  background: #fff9fb;
  color: #5f5451;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.62rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.auth-mode-btn:hover,
.auth-mode-btn:focus-visible {
  border-color: var(--accent-strong);
}

.auth-mode-btn.is-active {
  border-color: var(--accent-strong);
  background: #ffeef3;
  color: #4d4341;
}

.auth-step-card {
  border: 1px solid rgba(255, 159, 176, 0.22);
  border-radius: var(--radius-md);
  background: #fffdfd;
  padding: 1rem;
}

.auth-inline-btn {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #9c3f55;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #5f5451;
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-check a {
  color: #9c3f55;
  font-weight: 700;
}

.auth-verify {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 159, 176, 0.24);
}

.auth-switch-note {
  margin-top: 1rem;
  margin-bottom: 0;
  color: #6b5f5c;
  font-size: 0.9rem;
}

.auth-switch-note a {
  color: #9c3f55;
  font-weight: 700;
}

.auth-captcha-wrap {
  border: 1px solid rgba(255, 159, 176, 0.24);
  border-radius: var(--radius-sm);
  background: #fff9fb;
  padding: 0.72rem 0.75rem;
}

.auth-captcha-title {
  margin: 0 0 0.45rem;
  color: #5c504d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-captcha-host {
  min-height: 65px;
}

.auth-captcha-note {
  margin: 0.45rem 0 0;
  color: #7a2f35;
  font-size: 0.8rem;
  font-weight: 700;
}

.page-lock-note {
  margin-bottom: 1rem;
  border: 1px dashed rgba(255, 159, 176, 0.44);
  border-radius: var(--radius-md);
  background: #fff5f8;
  color: #5b4f4c;
  padding: 0.72rem 0.88rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.page-lock-note a {
  color: #934358;
}

.auth-site-banner {
  border-bottom: 1px solid rgba(255, 159, 176, 0.22);
  background: #fff5f8;
}

.auth-site-banner-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.auth-site-banner-copy {
  margin: 0;
  color: #5a4f4c;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-site-banner-actions {
  display: flex;
  gap: 0.45rem;
}

.account-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.account-panel {
  border: 1px solid rgba(255, 159, 176, 0.24);
  border-radius: 1rem;
  padding: 1rem;
  background: #fffdfd;
}

.account-list {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.account-list dt {
  color: #7a6e69;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.account-list dd {
  margin: 0.2rem 0 0;
  color: #443c3b;
  font-weight: 700;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.account-admin {
  margin-left: auto;
  margin-right: auto;
}

.account-admin-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

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

.account-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.account-table th,
.account-table td {
  text-align: left;
  border-bottom: 1px solid rgba(255, 159, 176, 0.2);
  padding: 0.5rem 0.55rem;
  font-size: 0.84rem;
}

.poll-list {
  display: grid;
  gap: 1rem;
}

.poll-card {
  border: 1px solid rgba(255, 159, 176, 0.26);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.poll-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.poll-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.poll-description {
  margin: 0.35rem 0 0;
  color: #675c59;
  font-size: 0.9rem;
}

.poll-state {
  border-radius: 999px;
  padding: 0.16rem 0.62rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
}

.poll-state-open {
  background: #dcf7ef;
  color: #1b6a54;
  border: 1px solid #afe8d7;
}

.poll-state-closed {
  background: #f5efec;
  color: #625855;
  border: 1px solid #e4d9d4;
}

.poll-options {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.poll-option {
  border: 1px solid rgba(255, 159, 176, 0.28);
  border-radius: 0.7rem;
  background: #fff9fb;
  color: #4b4240;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.poll-option:not(:disabled):hover {
  border-color: var(--accent-strong);
  background: #fff1f5;
}

.poll-option.is-selected {
  border-color: var(--accent-strong);
  background: #ffe8ef;
}

.poll-option:disabled {
  opacity: 0.88;
}

.poll-foot {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.poll-total {
  margin: 0;
  color: #6f6461;
  font-weight: 700;
  font-size: 0.84rem;
}

#poll-empty a {
  color: #9c3f55;
  font-weight: 700;
}

.poll-admin-btn {
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

.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;
}

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