:root {
  --bg: #12080e;
  --bg-soft: #1a0f17;
  --panel: rgba(33, 17, 24, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --accent: #ff6d8f;
  --accent-soft: rgba(255, 109, 143, 0.15);
  --peach: #ffb36b;
  --ink: #fff4f8;
  --muted: #c9acb8;
  --line: rgba(255, 255, 255, 0.1);
  --danger: #ff8a93;
  --good: #97d5bc;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font-heading: "Sora", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(255, 109, 143, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 179, 107, 0.12), transparent 22%),
    linear-gradient(180deg, #160a11 0%, #0e060a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.085;
  background-image:
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png"),
    url("assets/emery_paw.png");
  background-repeat: no-repeat;
  background-size: 188px auto, 96px auto, 148px auto, 86px auto, 164px auto, 76px auto, 132px auto, 202px auto, 108px auto, 126px auto, 154px auto;
  background-position: 2% 12%, 92% 10%, 79% 40%, 6% 68%, 94% 86%, 49% 8%, 20% 52%, 70% 95%, 36% 30%, 12% 92%, 86% 60%;
  filter: grayscale(1) contrast(0.9) brightness(1.18);
  animation: background-drift 24s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  flex: 1 0 auto;
  width: min(100%, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: 0 24px 112px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background: linear-gradient(180deg, rgba(19, 9, 14, 0.84), rgba(19, 9, 14, 0.6));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-copy {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-width: 0;
}

.brand-logo {
  display: none;
  width: auto;
  height: 50px;
  max-width: min(46vw, 240px);
  object-fit: contain;
}

.brand-fallback {
  display: none;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-line {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.96;
  animation: brand-float 5.6s ease-in-out infinite;
}

.brand-tag {
  display: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-links a {
  padding: 11px 16px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.topbar-links a:hover,
.topbar-links a.current {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero,
.page-hero,
.section {
  padding-top: 26px;
}

.hero,
.page-hero {
  padding-top: 92px;
}

.hero-panel,
.page-hero-panel,
.card,
.preview-card,
.kink-card,
.toy-card,
.rule-card,
.limit-card,
.library-shell,
.admin-shell,
.admin-panel,
.login-card,
.age-gate-card,
.stat-box,
.social-link {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(37, 18, 27, 0.92), rgba(22, 11, 17, 0.97));
  box-shadow: var(--shadow);
}

.hero-panel,
.page-hero-panel,
.library-shell,
.admin-shell,
.login-card,
.age-gate-card {
  padding: 32px;
}

.hero-panel,
.page-hero-panel {
  padding-top: 84px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(240px, 0.78fr);
  gap: 18px;
  align-items: center;
}

.page-hero-panel {
  display: grid;
  gap: 10px;
}

.page-hero .page-hero-panel {
  grid-template-columns: minmax(0, 1.15fr) minmax(170px, 0.85fr);
  align-items: center;
  gap: 26px;
}

.rules-page .page-hero {
  padding-top: 108px;
}

.rules-page .page-hero-panel {
  justify-items: center;
  text-align: center;
  padding-top: 96px;
}

.rules-page .page-hero .hero-text {
  max-width: 42ch;
  margin-inline: auto;
}

.eyebrow,
.filter-label,
.admin-section-title,
.small-label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peach);
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1,
.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 0.96;
}

.hero-text,
.section-heading p,
.preview-card p,
.rule-copy p,
.toy-description,
.admin-note,
.helper-text,
.age-gate-card p,
.login-card p,
.empty-state {
  color: var(--muted);
  line-height: 1.6;
}

.quote-ribbon {
  display: inline-flex;
  align-items: center;
  margin: 20px 0 18px;
  max-width: 38ch;
  padding: 12px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 109, 143, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

.hero-tags,
.hero-actions,
.meta-row,
.stat-row,
.filter-chip-row,
.admin-tools,
.admin-row-actions,
.title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
.filter-chip,
.mini-pill,
.meta-chip,
.kink-state,
.status-badge,
.access-badge,
.wish-priority,
.limit-pill,
.social-tag,
.state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.button {
  min-height: 48px;
  text-decoration: none;
  padding: 0 18px;
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--peach));
  color: #1d0c12;
  font-weight: 700;
}

.button:hover,
.filter-chip:hover,
.mini-pill:hover,
.social-link:hover,
.card-link-block:hover {
  transform: translateY(-1px);
}

.button-hero-lift {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button-hero-lift:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 34px rgba(255, 109, 143, 0.22);
  filter: saturate(1.05);
}

.filter-chip.is-active {
  background: var(--accent-soft);
  border-color: rgba(255, 109, 143, 0.3);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 109, 143, 0.18), rgba(255, 179, 107, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(95%) sepia(18%) saturate(655%) hue-rotate(286deg) brightness(107%) contrast(103%);
}

.icon-badge-wand img,
.icon-badge-vibrator img {
  transform: rotate(-45deg);
  transform-origin: center;
}

.icon-badge-chain img {
  transform: rotate(-45deg) scale(1.02) !important;
  transform-origin: center;
}

.hero-art {
  position: relative;
  overflow: visible;
  min-height: 360px;
  display: grid;
  place-items: center;
  align-items: center;
}

.hero-art::before {
  content: none;
}

.hero-emery,
.partner-emery {
  position: absolute;
  left: -16%;
  bottom: 16px;
  z-index: 0;
  width: min(35%, 154px);
  pointer-events: none;
  opacity: 0.96;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.4));
  animation: emery-breathe 8.5s ease-in-out infinite;
}

.hero-emery::before,
.partner-emery::before {
  content: "";
  position: absolute;
  inset: auto 7% 2% 7%;
  height: 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 109, 143, 0.28), rgba(255, 109, 143, 0));
  filter: blur(18px);
  opacity: 0.78;
}

.hero-emery img,
.partner-emery img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.partner-hero-art {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center start;
}

.partner-emery {
  position: relative;
  left: auto;
  bottom: auto;
  width: min(100%, 270px);
  margin-left: -20px;
  animation: partner-emery-sway 7.2s ease-in-out infinite;
}

.hero-paw {
  position: relative;
  z-index: 2;
  width: min(100%, 268px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  justify-self: start;
  margin-left: 22%;
  margin-bottom: 0;
}

.hero-paw-art {
  width: 100%;
  height: 100%;
  background: url("assets/emery_paw.png") 56% center/contain no-repeat;
  filter: drop-shadow(0 18px 34px rgba(255, 109, 143, 0.16));
  transition: transform 220ms ease;
  transform-origin: 50% 78%;
  animation: paw-idle 6.4s ease-in-out infinite;
}

.hero-paw::before {
  content: "";
  position: absolute;
  inset: -10% -6% -10% -6%;
  z-index: -1;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 109, 143, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: panel-breathe 7.5s ease-in-out infinite;
}

.hero-paw.is-waving .hero-paw-art {
  animation: paw-wave 1.15s ease;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-grid,
.preview-grid,
.social-grid,
.kink-list,
.limits-grid,
.rules-list,
.category-grid,
.admin-grid,
.summary-bar {
  display: grid;
  gap: 18px;
}

.safeword-panel {
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(37, 18, 27, 0.92), rgba(22, 11, 17, 0.97));
  box-shadow: var(--shadow);
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 109, 143, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(37, 18, 27, 0.92), rgba(22, 11, 17, 0.97));
  box-shadow: var(--shadow);
}

.about-copy {
  display: grid;
  gap: 10px;
}

.about-copy h2 {
  margin-bottom: 0;
}

.about-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.about-stat {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.about-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
}

.about-stat strong {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}

.about-stat-subtle {
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-trait {
  gap: 10px;
  min-height: 40px;
  padding: 4px 14px 4px 4px;
  background: rgba(255, 109, 143, 0.12);
  border-color: rgba(255, 109, 143, 0.24);
}

.about-trait .icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  flex: 0 0 30px;
}

.about-trait .icon-badge img,
.about-trait .icon-badge svg {
  width: 16px;
  height: 16px;
}

.about-trait-femboy {
  background: rgba(196, 151, 255, 0.16);
  border-color: rgba(196, 151, 255, 0.28);
  color: #f3e7ff;
}

.about-trait-kitty-pet,
.about-trait-needy-in-cute-ways {
  background: rgba(151, 213, 188, 0.16);
  border-color: rgba(151, 213, 188, 0.28);
  color: #e2fdf2;
}

.about-trait-24-7-lifestyle,
.about-trait-love-irl-sessions {
  background: rgba(255, 109, 143, 0.16);
  border-color: rgba(255, 109, 143, 0.28);
  color: #ffe3eb;
}

.about-trait-love-online-play {
  background: rgba(128, 202, 255, 0.16);
  border-color: rgba(128, 202, 255, 0.28);
  color: #e5f6ff;
}

.about-trait-bratty {
  background: rgba(255, 179, 107, 0.18);
  border-color: rgba(255, 179, 107, 0.3);
  color: #ffe9ce;
}

.safeword-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.safeword-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.safeword-card::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -18%;
  width: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: rotate(14deg) translateX(-18%);
  transition: opacity 220ms ease;
}

.safeword-card h3 {
  margin-bottom: 0;
}

.safeword-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.safeword-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-block;
}

.safeword-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  opacity: 0.5;
}

.safeword-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.safeword-card:hover::after {
  opacity: 0.32;
}

.safeword-green {
  border-color: rgba(151, 213, 188, 0.28);
  animation: safeword-card-float 5.8s ease-in-out infinite;
}

.safeword-green .safeword-dot {
  background: #97d5bc;
  box-shadow: 0 0 0 8px rgba(151, 213, 188, 0.12);
  animation: safeword-glow-green 2.7s ease-in-out infinite;
}

.safeword-green .safeword-dot::after {
  background: rgba(151, 213, 188, 0.24);
}

.safeword-yellow {
  border-color: rgba(255, 179, 107, 0.28);
  animation: safeword-card-float 5.8s ease-in-out infinite 0.45s;
}

.safeword-yellow .safeword-dot {
  background: #ffb36b;
  box-shadow: 0 0 0 8px rgba(255, 179, 107, 0.12);
  animation: safeword-glow-yellow 2.9s ease-in-out infinite 0.25s;
}

.safeword-yellow .safeword-dot::after {
  background: rgba(255, 179, 107, 0.24);
}

.safeword-red {
  border-color: rgba(255, 138, 147, 0.28);
  animation: safeword-card-float 5.8s ease-in-out infinite 0.9s;
}

.safeword-red .safeword-dot {
  background: #ff8a93;
  box-shadow: 0 0 0 8px rgba(255, 138, 147, 0.12);
  animation: safeword-glow-red 2.45s ease-in-out infinite 0.5s;
}

.safeword-red .safeword-dot::after {
  background: rgba(255, 138, 147, 0.26);
}

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

.partner-hierarchy-intro,
.partner-section {
  display: grid;
  gap: 18px;
}

.partner-hierarchy-intro {
  margin-bottom: 14px;
}

.partner-map {
  display: grid;
  gap: 26px;
}

.partner-cluster {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top center, rgba(255, 109, 143, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(37, 18, 27, 0.92), rgba(22, 11, 17, 0.98));
  box-shadow: var(--shadow);
}

.partner-cluster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: translateX(-105%);
  animation: partner-cluster-sheen 9s ease-in-out infinite;
  pointer-events: none;
}

.partner-cluster-shell {
  position: relative;
  z-index: 1;
}

.partner-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.partner-branch-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.partner-branch-node.has-children {
  padding-bottom: 4px;
}

.partner-branch-node.has-children::after {
  content: none;
}

.partner-branch-children {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 22px;
  width: 100%;
  margin-top: 18px;
  padding-top: 38px;
}

.partner-branch-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(0px, calc(100% - 320px), 100%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 109, 143, 0.14), rgba(255, 179, 107, 0.36), rgba(255, 109, 143, 0.14));
  transform: translateX(-50%);
}

.partner-branch-children::after {
  content: "";
  position: absolute;
  top: -34px;
  left: 50%;
  width: 2px;
  height: 34px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 179, 107, 0.4), rgba(255, 109, 143, 0.14));
}

.partner-branch-children.is-single::before {
  left: 50%;
  right: auto;
  width: 2px;
  height: 30px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 179, 107, 0.4), rgba(255, 109, 143, 0.14));
}

.partner-branch-children > .partner-branch-node::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 50%;
  width: 2px;
  height: 38px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 179, 107, 0.38), rgba(255, 109, 143, 0.12));
}

.partner-branch-card {
  width: min(100%, 320px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.partner-branch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 109, 143, 0.24);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.partner-branch-node.depth-0 > .partner-branch-card {
  width: min(100%, 380px);
  background:
    radial-gradient(circle at top center, rgba(255, 109, 143, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(42, 19, 30, 0.96), rgba(24, 11, 18, 0.98));
}

.partner-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.partner-card h3 {
  margin-bottom: 6px;
}

.partner-card .eyebrow {
  margin-bottom: 6px;
}

.partner-role-chip {
  border-color: rgba(255, 255, 255, 0.08);
}

.partner-role-chip.role-mistress,
.partner-role-chip.role-dom {
  background: rgba(196, 151, 255, 0.16);
  border-color: rgba(196, 151, 255, 0.28);
}

.partner-role-chip.role-owner {
  background: rgba(255, 179, 107, 0.16);
  border-color: rgba(255, 179, 107, 0.28);
}

.partner-role-chip.role-partner {
  background: rgba(151, 213, 188, 0.16);
  border-color: rgba(151, 213, 188, 0.28);
}

.partner-tag {
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
}

.partner-tag-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.partner-tag-mark img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}

.partner-tag-owner {
  background: rgba(255, 179, 107, 0.2);
  border-color: rgba(255, 179, 107, 0.34);
  color: #ffe9ce;
}

.partner-tag-owner .partner-tag-mark svg {
  stroke: #fff9fb;
}

.partner-tag-owner .partner-tag-mark img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(7%) saturate(1620%) hue-rotate(286deg) brightness(109%) contrast(103%);
}

.partner-tag-mistress,
.partner-tag-dom {
  background: rgba(196, 151, 255, 0.18);
  border-color: rgba(196, 151, 255, 0.3);
  color: #f3e7ff;
}

.partner-tag-partner,
.partner-tag-irl,
.partner-tag-irl-partner {
  background: rgba(151, 213, 188, 0.18);
  border-color: rgba(151, 213, 188, 0.3);
  color: #e2fdf2;
}

.partner-tag-remote-only {
  background: rgba(128, 202, 255, 0.18);
  border-color: rgba(128, 202, 255, 0.3);
  color: #e4f6ff;
}

.partner-tag-love-of-my-life {
  background: linear-gradient(135deg, rgba(255, 82, 122, 0.3), rgba(255, 109, 143, 0.2));
  border-color: rgba(255, 82, 122, 0.44);
  color: #ffe8ef;
  box-shadow: 0 10px 22px rgba(255, 82, 122, 0.14);
}

.partner-card p:last-of-type {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.partner-image {
  min-height: 170px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.03);
}

.preview-grid,
.social-grid,
.limits-grid,
.rules-list,
.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kink-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.card,
.preview-card,
.rule-card,
.limit-card,
.social-link {
  padding: 22px;
}

.preview-card-kink,
.preference-card {
  position: relative;
  padding-top: 70px;
}

.footer-socials {
  flex-shrink: 0;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 8, 14, 0.86), rgba(18, 8, 14, 0.96));
  backdrop-filter: blur(18px);
}

.footer-socials-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  animation: footer-fade-in 700ms ease 120ms both;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.footer-social-link::before {
  content: "/";
  margin-right: 18px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-social-link:first-child::before {
  content: "";
  margin-right: 0;
}

.footer-social-link span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-social-link:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.footer-social-link.is-copied {
  color: var(--good);
}

.card-link,
.card-link-block {
  text-decoration: none;
}

.card-link-block {
  display: grid;
  gap: 12px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.category-grid .card-link-block:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 109, 143, 0.28);
  background: linear-gradient(180deg, rgba(48, 23, 35, 0.96), rgba(24, 11, 18, 0.98));
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.42);
}

.category-grid .card-link-block:hover .icon-badge {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px rgba(255, 109, 143, 0.18);
}

.category-grid .card-link-block:hover .title-row {
  color: #fff9fb;
}

.home-card {
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.home-card p {
  margin-bottom: 0;
}

.home-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 109, 143, 0.3);
  background: linear-gradient(180deg, rgba(46, 22, 33, 0.96), rgba(25, 12, 18, 0.98));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.kink-state-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.preference-badge {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.preference-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.preference-badge-symbol {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.preference-card .title-row {
  padding-right: 126px;
  align-items: flex-start;
}

.category-view-all {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.summary-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat-box {
  padding: 18px;
}

.stat-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
}

.kink-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.kink-list,
.toy-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.limits-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 4px 0 18px;
}

.limits-explainer-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(37, 18, 27, 0.88), rgba(20, 10, 15, 0.96));
  box-shadow: var(--shadow);
}

.limits-explainer-card h3 {
  margin-bottom: 10px;
}

.limits-explainer-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.limits-explainer-soft {
  border-color: rgba(255, 179, 107, 0.28);
}

.limits-explainer-hard {
  border-color: rgba(255, 138, 147, 0.32);
}

.kink-card,
.toy-card {
  overflow: hidden;
}

.kink-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.kink-card h3 {
  margin-bottom: 0;
  padding-right: 126px;
}

.kink-card.state-yes {
  border-color: rgba(151, 213, 188, 0.35);
}

.kink-card.state-try {
  border-color: rgba(255, 179, 107, 0.35);
}

.kink-card.state-no {
  border-color: rgba(255, 138, 147, 0.35);
}

.state-yes,
.state-pill.state-yes {
  background: rgba(151, 213, 188, 0.14);
}

.state-try,
.state-pill.state-try {
  background: rgba(255, 179, 107, 0.14);
}

.state-no,
.state-pill.state-no {
  background: rgba(255, 138, 147, 0.14);
}

.preference-badge.state-yes {
  border-color: rgba(151, 213, 188, 0.3);
  background: linear-gradient(180deg, rgba(151, 213, 188, 0.16), rgba(151, 213, 188, 0.08));
}

.preference-badge.state-try,
.preference-badge.limit-soft {
  border-color: rgba(255, 179, 107, 0.3);
  background: linear-gradient(180deg, rgba(255, 179, 107, 0.18), rgba(255, 179, 107, 0.08));
  color: var(--peach);
}

.preference-badge.state-no,
.preference-badge.limit-hard {
  border-color: rgba(255, 138, 147, 0.32);
  background: linear-gradient(180deg, rgba(255, 138, 147, 0.2), rgba(255, 138, 147, 0.08));
  color: var(--danger);
}

.preference-badge.limit-note {
  border-color: rgba(151, 213, 188, 0.3);
  background: linear-gradient(180deg, rgba(151, 213, 188, 0.16), rgba(151, 213, 188, 0.08));
}

.limit-hard {
  border-color: rgba(255, 138, 147, 0.35);
}

.limit-soft {
  border-color: rgba(255, 179, 107, 0.35);
}

.limit-note {
  border-color: rgba(151, 213, 188, 0.35);
}

.search-shell,
.filter-wrap,
.library-shell,
.admin-shell,
.admin-form,
.admin-panel {
  display: grid;
  gap: 16px;
}

.limit-card {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.limit-card h3 {
  margin-bottom: 0;
}

.limit-card .title-row {
  gap: 12px;
}

.toy-image {
  position: relative;
  min-height: 240px;
  background-size: cover;
  background-position: center;
  background-color: #160b10;
}

.toy-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 8, 12, 0.76);
  backdrop-filter: blur(10px);
  color: var(--ink);
}

.status-badge svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-badge img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  display: block;
  filter: none;
}

.storage-status svg {
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
}

.storage-status img {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.storage-status {
  gap: 10px;
  font-weight: 700;
}

.storage-icon-wrap {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(12, 6, 9, 0.08);
}

.toy-status-stack {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.status-unlocked {
  background: rgba(151, 213, 188, 0.22);
  border-color: rgba(151, 213, 188, 0.42);
  color: #dffcf1;
}

.status-locked {
  background: rgba(255, 138, 147, 0.22);
  border-color: rgba(255, 138, 147, 0.42);
  color: #ffe1e4;
}

.status-locked .storage-icon-wrap {
  background: #fff4f5;
}

.status-unlocked .storage-icon-wrap {
  background: #f3fff9;
}

.access-status {
  max-width: 100%;
}

.access-owner-only {
  background: rgba(255, 179, 107, 0.22);
  border-color: rgba(255, 179, 107, 0.4);
  color: #ffe7c8;
}

.access-ask-first {
  background: rgba(255, 109, 143, 0.2);
  border-color: rgba(255, 109, 143, 0.36);
  color: #ffdbe5;
}

.access-irl-only,
.access-mistress-only {
  background: rgba(183, 146, 255, 0.2);
  border-color: rgba(183, 146, 255, 0.34);
  color: #efe4ff;
}

.access-shared {
  background: rgba(151, 213, 188, 0.18);
  border-color: rgba(151, 213, 188, 0.34);
  color: #dffcf1;
}

.storage-status {
  margin-left: auto;
}

.toy-content {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.rule-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 28px;
}

.rule-card-golden {
  grid-column: 1 / -1;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  padding: 28px;
  border-color: rgba(255, 179, 107, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 179, 107, 0.2), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 109, 143, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(48, 24, 20, 0.96), rgba(24, 11, 15, 0.98));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.26);
}

.rule-card-golden .rule-index {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 179, 107, 0.28), rgba(255, 179, 107, 0.12));
  color: #ffe7c8;
  box-shadow: 0 12px 26px rgba(255, 179, 107, 0.14);
}

.rule-card-golden .rule-copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin-bottom: 10px;
}

.rule-crown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #ffcf93;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rule-crown::before,
.rule-crown::after {
  content: "✦";
  color: rgba(255, 179, 107, 0.92);
}

.rule-index {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--peach);
}

.admin-shell {
  padding: 40px 32px 32px;
  display: grid;
  gap: 28px;
}

.page-hero + .admin-shell {
  margin-top: 40px;
}

.admin-suite {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 0;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  z-index: 3;
}

.admin-sidebar-card {
  position: relative;
  z-index: 3;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(34, 17, 24, 0.94), rgba(19, 9, 14, 0.98));
  box-shadow: var(--shadow);
}

.admin-tab-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-tab-button {
  position: relative;
  z-index: 4;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.admin-tab-button:hover,
.admin-tab-button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 109, 143, 0.18);
  box-shadow: inset 3px 0 0 rgba(255, 109, 143, 0.75);
  transform: translateY(-1px);
}

.admin-sidebar-note p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-workspace {
  display: grid;
  gap: 20px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 109, 143, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(28, 14, 20, 0.95), rgba(17, 8, 13, 0.98));
  box-shadow: var(--shadow);
}

.admin-workspace-section {
  display: none;
  gap: 18px;
  min-height: 720px;
  align-content: start;
  padding: 6px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.015);
}

.admin-workspace-section.is-active {
  display: grid;
  opacity: 1;
  transform: none;
}

.admin-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 24px;
  margin-bottom: 0;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 179, 107, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 179, 107, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 179, 107, 0.08), rgba(255, 255, 255, 0.03));
}

.admin-banner p {
  margin: 0;
}

.admin-banner-copy {
  display: grid;
  gap: 8px;
}

.admin-sync-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: var(--ink);
}

.sync-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.sync-pill.sync-live {
  color: #bff5d7;
  background: rgba(151, 213, 188, 0.14);
  border-color: rgba(151, 213, 188, 0.26);
}

.sync-pill.sync-local {
  color: #ffd8dd;
  background: rgba(255, 109, 143, 0.14);
  border-color: rgba(255, 109, 143, 0.26);
}

.sync-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-banner-copy h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.admin-dashboard-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.admin-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-header h2,
.admin-panel-hero h2 {
  margin-bottom: 8px;
}

.admin-main-column,
.admin-side-column {
  display: grid;
  gap: 18px;
}

.admin-station-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.admin-station-grid-wide {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.admin-panel {
  padding: 24px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(34, 17, 24, 0.94), rgba(19, 9, 14, 0.98));
}

.admin-panel-feature {
  padding: 26px;
}

.admin-panel-hero {
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 109, 143, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(34, 17, 24, 0.96), rgba(18, 9, 13, 0.98));
}

.admin-panel > .admin-section-title + .admin-note {
  margin-top: -6px;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.admin-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-stat-card span {
  color: var(--muted);
  line-height: 1.5;
}

.storage-meter-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.storage-meter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.storage-meter {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24);
}

.storage-meter-compact {
  margin-top: 2px;
  height: 10px;
}

.storage-meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fdab9 0%, #f6c36f 58%, #ff7b93 100%);
  box-shadow: 0 0 18px rgba(255, 123, 147, 0.18);
  transition: width 260ms ease, filter 260ms ease;
}

.storage-meter-fill[data-level="low"] {
  filter: saturate(0.95);
}

.storage-meter-fill[data-level="mid"] {
  filter: saturate(1.05);
}

.storage-meter-fill[data-level="high"] {
  filter: saturate(1.18) brightness(1.05);
}

.storage-meter-caption {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.preference-library-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.preference-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preference-library-grid {
  display: grid;
  gap: 10px;
}

.preference-library-item {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.preference-library-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preference-library-copy strong {
  font-size: 0.98rem;
}

.preference-library-status {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

.preference-library-status.is-unset {
  color: #f3d8e1;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.preference-library-status.is-yes {
  color: #dffcf1;
  border-color: rgba(151, 213, 188, 0.28);
  background: rgba(151, 213, 188, 0.14);
}

.preference-library-status.is-try,
.preference-library-status.is-soft {
  color: #ffe7c8;
  border-color: rgba(255, 179, 107, 0.28);
  background: rgba(255, 179, 107, 0.14);
}

.preference-library-status.is-no,
.preference-library-status.is-hard {
  color: #ffe1e4;
  border-color: rgba(255, 138, 147, 0.3);
  background: rgba(255, 138, 147, 0.14);
}

.preference-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preference-action {
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  border-width: 1px;
}

.preference-action-yes {
  background: rgba(151, 213, 188, 0.1);
  border-color: rgba(151, 213, 188, 0.22);
}

.preference-action-try,
.preference-action-soft {
  background: rgba(255, 179, 107, 0.1);
  border-color: rgba(255, 179, 107, 0.22);
}

.preference-action-no,
.preference-action-hard {
  background: rgba(255, 138, 147, 0.1);
  border-color: rgba(255, 138, 147, 0.22);
}

.preference-action.is-active {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.preference-action-yes.is-active {
  background: rgba(151, 213, 188, 0.18);
  border-color: rgba(151, 213, 188, 0.32);
}

.preference-action-try.is-active,
.preference-action-soft.is-active {
  background: rgba(255, 179, 107, 0.18);
  border-color: rgba(255, 179, 107, 0.32);
}

.preference-action-no.is-active,
.preference-action-hard.is-active {
  background: rgba(255, 138, 147, 0.18);
  border-color: rgba(255, 138, 147, 0.32);
}

.preference-action-clear {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-divider {
  height: 1px;
  margin: 6px 0 2px;
  background: rgba(255, 255, 255, 0.08);
}

.preference-bucket-grid {
  display: grid;
  gap: 14px;
}

.preference-bucket {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.preference-bucket-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.compact-row {
  padding: 12px 14px;
}

.admin-checklist {
  display: grid;
  gap: 12px;
}

.admin-checklist-row {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-checklist-row span {
  color: var(--muted);
  line-height: 1.55;
}

.admin-row-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-row-copy span {
  color: var(--muted);
  word-break: break-word;
}

[data-partner-placement-preview] {
  margin-top: -4px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 179, 107, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.quick-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.partner-tag-pick {
  border-radius: 999px;
}

.partner-tag-pick.is-active {
  background: rgba(255, 109, 143, 0.18);
  border-color: rgba(255, 109, 143, 0.3);
  color: #fff0f4;
}

.partner-tag-preview-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.partner-tag-preview-panel .helper-text {
  margin: 0;
}

.toy-tag-pick {
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
}

.toy-tag-pick .icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

.toy-tag-pick .icon-badge svg,
.toy-tag-pick .icon-badge img {
  width: 15px;
  height: 15px;
}

.toy-tag-pick.is-active {
  background: rgba(255, 109, 143, 0.16);
  border-color: rgba(255, 109, 143, 0.28);
  color: #fff2f6;
}

.toy-tag-chip {
  gap: 8px;
  padding-left: 10px;
}

.toy-tag-chip .icon-badge {
  width: 24px;
  height: 24px;
  border-radius: 9px;
}

.toy-tag-chip .icon-badge svg,
.toy-tag-chip .icon-badge img {
  width: 13px;
  height: 13px;
}

.admin-login-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.login-card,
.age-gate-card {
  width: min(100%, 680px);
}

.login-card {
  justify-self: center;
  padding: 28px;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 109, 143, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(34, 17, 24, 0.96), rgba(18, 9, 13, 0.98));
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(7, 3, 5, 0.92);
  backdrop-filter: blur(18px);
}

.age-gate.is-open {
  display: grid;
}

.age-gate-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.status-line {
  min-height: 24px;
  color: var(--peach);
}

input,
select,
textarea,
.code-box {
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 4, 6, 0.55);
  color: var(--ink);
  line-height: 1.35;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 56px;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-right: 54px;
  cursor: pointer;
  border-radius: 22px;
  background-color: rgba(29, 14, 22, 0.98);
  background-image:
    radial-gradient(circle at calc(100% - 26px) 50%, rgba(255, 109, 143, 0.16) 0, rgba(255, 109, 143, 0.16) 16px, transparent 16px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    linear-gradient(45deg, transparent 50%, rgba(255, 244, 248, 0.96) 50%),
    linear-gradient(135deg, rgba(255, 244, 248, 0.96) 50%, transparent 50%);
  background-position:
    0 0,
    0 0,
    calc(100% - 29px) calc(50% - 3px),
    calc(100% - 22px) calc(50% - 3px);
  background-size: auto, auto, 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  border-color: rgba(255, 179, 107, 0.18);
  color: #fff5f8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.12);
}

select option {
  background: #24131d;
  color: #fff5f8;
}

select:hover {
  border-color: rgba(255, 109, 143, 0.36);
  background-color: rgba(35, 17, 26, 0.99);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 28px rgba(0, 0, 0, 0.16);
}

select:focus {
  outline: none;
  border-color: rgba(255, 109, 143, 0.46);
  box-shadow:
    0 0 0 4px rgba(255, 109, 143, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 30px rgba(0, 0, 0, 0.18);
}

.admin-form select,
.admin-login-row select {
  min-height: 58px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-left: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.admin-form {
  gap: 14px;
}

.admin-form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form-split-tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-tools {
  gap: 12px;
}

.admin-tools-inline {
  align-items: center;
  flex-wrap: wrap;
}

.upload-button {
  cursor: pointer;
}

#admin-toys,
#admin-partners,
#admin-media-library,
#admin-kinks,
#admin-limits,
#admin-rules,
#admin-socials {
  display: grid;
  gap: 12px;
}

#admin-toys .admin-row,
#admin-partners .admin-row,
#admin-media-library .admin-row,
#admin-kinks .admin-row,
#admin-limits .admin-row,
#admin-rules .admin-row,
#admin-socials .admin-row {
  padding: 16px 16px;
}

textarea,
.code-box {
  min-height: 130px;
  resize: vertical;
}

#admin-content {
  display: grid;
  gap: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes brand-float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes paw-idle {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes paw-wave {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  16% { transform: translateY(-6px) rotate(-7deg) scale(1.02); }
  34% { transform: translateY(-8px) rotate(10deg) scale(1.03); }
  52% { transform: translateY(-5px) rotate(-9deg) scale(1.02); }
  70% { transform: translateY(-7px) rotate(8deg) scale(1.02); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes emery-breathe {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.012); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes partner-emery-sway {
  0% { transform: translateY(0) rotate(-1deg) scale(1); }
  50% { transform: translateY(-4px) rotate(1deg) scale(1.018); }
  100% { transform: translateY(0) rotate(-1deg) scale(1); }
}

@keyframes partner-cluster-sheen {
  0%, 84% { transform: translateX(-105%); opacity: 0; }
  88% { opacity: 0.6; }
  100% { transform: translateX(105%); opacity: 0; }
}

@keyframes panel-breathe {
  0% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.015); opacity: 1; }
  100% { transform: scale(1); opacity: 0.92; }
}

@keyframes background-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -10px, 0); }
}

@keyframes footer-fade-in {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0.72; transform: translateY(0); }
}

@keyframes safeword-card-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

@keyframes safeword-glow-green {
  0%, 100% { box-shadow: 0 0 0 8px rgba(151, 213, 188, 0.12), 0 0 0 0 rgba(151, 213, 188, 0.18); }
  50% { box-shadow: 0 0 0 10px rgba(151, 213, 188, 0.18), 0 0 16px 2px rgba(151, 213, 188, 0.24); }
}

@keyframes safeword-glow-yellow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255, 179, 107, 0.12), 0 0 0 0 rgba(255, 179, 107, 0.16); }
  50% { box-shadow: 0 0 0 10px rgba(255, 179, 107, 0.18), 0 0 16px 2px rgba(255, 179, 107, 0.22); }
}

@keyframes safeword-glow-red {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255, 138, 147, 0.12), 0 0 0 0 rgba(255, 138, 147, 0.18); }
  50% { box-shadow: 0 0 0 10px rgba(255, 138, 147, 0.18), 0 0 16px 2px rgba(255, 138, 147, 0.24); }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .brand-mark,
  .hero-art::before,
  .hero-emery,
  .partner-emery,
  .hero-paw,
  .footer-social-row,
  .safeword-card,
  .safeword-dot {
    animation: none !important;
  }

  .safeword-card::after {
    transition: none;
  }
}

@media (max-width: 920px) {
  .hero-panel,
  .page-hero .page-hero-panel,
  .about-card,
  .safeword-grid,
  .limits-explainer,
  .section-grid,
  .preview-grid,
  .social-grid,
  .limits-grid,
  .rules-list,
  .category-grid,
  .admin-grid,
  .admin-dashboard-grid,
  .admin-suite,
  .admin-station-grid,
  .admin-station-grid-wide,
  .admin-snapshot-grid,
  .admin-form-split,
  .admin-form-split-tight,
  .admin-login-row {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-shell {
    padding: 0 16px calc(132px + env(safe-area-inset-bottom, 0px));
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(16, 9, 14, 0.97);
    box-shadow: var(--shadow);
  }

  .topbar.menu-open .topbar-links {
    display: grid;
  }

  .topbar-links a {
    width: 100%;
  }

  .hero-panel,
  .page-hero-panel,
  .library-shell,
  .admin-shell,
  .login-card,
  .age-gate-card {
    padding: 22px;
  }

  .hero-art {
    min-height: 260px;
  }

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

  .admin-banner,
  .admin-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-banner {
    grid-template-columns: 1fr;
  }

  .admin-tools {
    width: 100%;
  }

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

  .admin-panel-heading,
  .admin-section-header,
  .partner-card-top,
  .admin-row,
  .admin-row-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-cluster {
    padding: 22px;
    border-radius: 24px;
  }

  .partner-branch-card,
  .partner-branch-node.depth-0 > .partner-branch-card {
    width: min(100%, 100%);
  }

  .partner-branch-children {
    gap: 18px;
  }

  .partner-branch-children::before {
    width: clamp(0px, calc(100% - 160px), 100%);
  }

  .admin-overview {
    grid-template-columns: 1fr;
  }

  .footer-socials {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .summary-bar {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .brand-logo {
    height: 48px;
  }

  .brand-line {
    font-size: 0.82rem;
  }

  .hero-paw {
    width: min(100%, 280px);
    height: 240px;
    margin-right: 0;
    margin-bottom: 0;
    justify-self: center;
  }

  .hero-emery {
    left: -10%;
    bottom: 14px;
    width: min(30%, 104px);
  }

  .partner-hero-art {
    min-height: 172px;
  }

  .partner-emery {
    width: min(100%, 192px);
    margin-left: 0;
  }

  .partner-branch-children::before {
    left: 50%;
    width: 2px;
    height: 24px;
    transform: translateX(-50%);
  }

  .partner-branch-children::after {
    top: -24px;
    height: 24px;
  }

  .partner-branch-children > .partner-branch-node::before {
    top: -24px;
    height: 24px;
  }

  body::after {
    background-size: 116px auto, 92px auto, 104px auto, 86px auto, 98px auto;
  }
}
