/* reset base */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  /* use a variable so header height and body padding stay in sync */
  --header-height: 100px;
  --header-bg: #0a0a0a;
  --menu-glass-surface: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  --page-body-bg:
    radial-gradient(92% 78% at 12% 0%, rgba(106, 8, 57, 0.26), rgba(106, 8, 57, 0) 72%),
    radial-gradient(84% 74% at 88% 100%, rgba(252, 145, 201, 0.20), rgba(252, 145, 201, 0) 76%),
    linear-gradient(180deg, rgba(6,6,6,0.98), rgba(0,0,0,1));
  --bottom-nav-height: 78px;
  --header-icon-size: 42px;
  --header-side-gap: calc((var(--header-height) - var(--header-icon-size)) / 2);
  --logo-width: 210px;
  --logo-left-nudge: -30px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.auth-connection-hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height) + 14px);
  transform: translateX(-50%);
  z-index: 1200;
  max-width: min(92vw, 560px);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(18,18,18,0.96);
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  /* space for fixed header so everything starts below it */
  padding-top: var(--header-height);
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background: var(--page-body-bg);
  background-attachment: fixed;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: #fff;
}

body.index-page {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

/* add subtle film overlay to main area */
.content {
  background: transparent;
  position: relative;
  overflow-x: clip;
  /* thin noise or gradient overlay could be added with pseudo-element */
}
.content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHJlY3Qgd2lkdGg9IjcwIiBoZWlnaHQ9IjcwIiBmaWxsPSIjNjY2IiBvcGFjaXR5PSIwLjEiLz4KPC9zdmc+');
  border-radius: inherit;
  pointer-events: none;
}

body.explore-page main {
  background: transparent;
}

body.explore-page {
  --explore-search-border: rgba(255,255,255,0.34);
  --explore-search-surface: var(--menu-glass-surface);
  --explore-search-shadow: 0 10px 26px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.26);
  --explore-sex-male: #5aa9ff;
  --explore-sex-female: #fc91c9;
}

body.explore-page .content {
  min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
  min-height: calc(100svh - var(--header-height) - var(--bottom-nav-height));
}

body.chat-page {
  background: var(--page-body-bg);
  background-attachment: fixed;
}

body.chat-page main,
body.chat-page .content {
  background: transparent;
}

body.chat-page .chat-content {
  min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
  min-height: calc(100svh - var(--header-height) - var(--bottom-nav-height));
}

body.chat-page .chat-header {
  justify-content: flex-start;
  padding-left: 0;
  align-items: center;
}

body.chat-page .chat-header-title {
  display: inline-block;
  margin: 0;
  text-align: left;
  text-transform: none;
  font-size: clamp(25px, 6.2vw, 50px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.98);
  -webkit-text-stroke: 1.3px rgba(10,10,10,0.96);
  paint-order: stroke fill;
  padding: 8px 18px 8px 28px;
  text-shadow:
    2px 0 0 rgba(106, 8, 57, 0.98),
    -2px 0 0 rgba(106, 8, 57, 0.98),
    0 2px 0 rgba(106, 8, 57, 0.98),
    0 -2px 0 rgba(106, 8, 57, 0.98),
    2px 2px 0 rgba(106, 8, 57, 0.96),
    -2px 2px 0 rgba(106, 8, 57, 0.96),
    2px -2px 0 rgba(106, 8, 57, 0.96),
    -2px -2px 0 rgba(106, 8, 57, 0.96),
    3px 0 0 rgba(106, 8, 57, 0.74),
    -3px 0 0 rgba(106, 8, 57, 0.74),
    0 3px 0 rgba(106, 8, 57, 0.74),
    0 -3px 0 rgba(106, 8, 57, 0.74),
    0 0 10px rgba(106, 8, 57, 0.5),
    0 0 18px rgba(106, 8, 57, 0.3);
}

body.explore-page .explore-community-title-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 16px;
  background: var(--header-bg);
}

body.explore-page .explore-community-title {
  display: inline-block;
  margin: 0;
  text-align: center;
  text-transform: none;
  font-size: clamp(25px, 6.2vw, 50px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.98);
  -webkit-text-stroke: 1.3px rgba(10,10,10,0.96);
  paint-order: stroke fill;
  padding: 8px 18px;
  text-shadow:
    2px 0 0 rgba(106, 8, 57, 0.98),
    -2px 0 0 rgba(106, 8, 57, 0.98),
    0 2px 0 rgba(106, 8, 57, 0.98),
    0 -2px 0 rgba(106, 8, 57, 0.98),
    2px 2px 0 rgba(106, 8, 57, 0.96),
    -2px 2px 0 rgba(106, 8, 57, 0.96),
    2px -2px 0 rgba(106, 8, 57, 0.96),
    -2px -2px 0 rgba(106, 8, 57, 0.96),
    3px 0 0 rgba(106, 8, 57, 0.74),
    -3px 0 0 rgba(106, 8, 57, 0.74),
    0 3px 0 rgba(106, 8, 57, 0.74),
    0 -3px 0 rgba(106, 8, 57, 0.74),
    0 0 10px rgba(106, 8, 57, 0.5),
    0 0 18px rgba(106, 8, 57, 0.3);
}

body.explore-page .explore-top-search-section {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 979;
  padding: 10px 12px 12px;
  background: var(--header-bg);
}

body.explore-page #header:not(.header-hidden):not(.header-compact) ~ .explore-top-search-section {
  top: var(--header-height);
}

body.explore-page #header.header-compact:not(.header-hidden) ~ .explore-top-search-section {
  top: var(--header-height);
}

body.explore-page #header.header-hidden ~ .explore-top-search-section {
  top: 8px;
}

body.explore-page .explore-top-search-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid var(--explore-search-border);
  background: var(--explore-search-surface);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--explore-search-shadow);
  padding: 7px 12px;
  overflow: hidden;
  transition: box-shadow 160ms ease-out, background 160ms ease-out, width 160ms ease-out, padding 160ms ease-out;
}

body.explore-page .explore-top-search-controls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.explore-page .explore-gender-wrap {
  position: relative;
  flex: 0 0 auto;
}

body.explore-page .explore-gender-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--explore-search-border);
  background: var(--explore-search-surface);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

body.explore-page .explore-gender-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,0.34);
  outline-offset: 1px;
}

body.explore-page .explore-gender-menu {
  position: absolute;
  left: -3px;
  top: calc(100% + 17px);
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--explore-search-border);
  background: var(--explore-search-surface);
  box-shadow: 0 7px 18px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.26);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  z-index: 4;
}

body.explore-page .explore-gender-menu.show {
  display: inline-flex;
}

body.explore-page .explore-top-search-inner.gender-menu-open {
  overflow: visible;
}

body.explore-page .explore-gender-option {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

body.explore-page .explore-gender-option:hover,
body.explore-page .explore-gender-option:focus-visible,
body.explore-page .explore-gender-option.is-selected {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.46);
  outline: none;
}

body.explore-page .explore-gender-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.explore-page .explore-gender-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.explore-page .explore-gender-icon .sex-symbol-male {
  stroke: var(--explore-sex-male);
}

body.explore-page .explore-gender-icon .sex-symbol-female {
  stroke: var(--explore-sex-female);
}

body.explore-page .explore-top-search-inner:not(:focus-within) {
  width: 94%;
  padding: 9px 12px;
}

body.explore-page .explore-top-search-input {
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  padding: 0 8px;
}

body.explore-page .explore-top-search-input::placeholder {
  color: rgba(255,255,255,0.72);
}

body.explore-page .explore-top-search-input:focus {
  outline: none;
}

body.explore-page .explore-top-search-inner:focus-within {
  outline: 2px solid rgba(255,255,255,0.34);
  outline-offset: 1px;
}

body.explore-page .explore-top-search-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  text-align: left;
  font-size: 15px;
}

body.explore-page .explore-top-search-input::placeholder {
  color: rgba(255,255,255,0.72);
}

body.explore-page .explore-top-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  cursor: pointer;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4L4 12' stroke='%23fc91c9' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
}

body.explore-page .explore-top-search-input:focus {
  outline: none;
}

body.explore-page .explore-feed {
  padding-top: 2px;
}

@media (max-width: 700px) {
  body.explore-page #header.header-hidden ~ .explore-top-search-section {
    top: 12px;
  }

  body.explore-page .explore-top-search-section {
    padding: 8px 10px 10px;
  }

  body.explore-page .explore-top-search-inner {
    padding: 6px 10px;
  }

  body.explore-page .explore-top-search-controls {
    gap: 6px;
  }

  body.explore-page .explore-gender-toggle {
    width: 32px;
    height: 32px;
  }

  body.explore-page .explore-gender-option {
    width: 28px;
    height: 28px;
  }

  body.explore-page .explore-gender-menu {
    left: -2px;
    top: calc(100% + 16px);
  }

  body.explore-page .explore-gender-icon {
    width: 16px;
    height: 16px;
  }

  body.explore-page .explore-top-search-inner:not(:focus-within) {
    width: 95%;
    padding: 8px 10px;
  }

  body.explore-page .explore-top-search-input {
    height: 32px;
    font-size: 14px;
  }

  body.explore-page .explore-community-title-wrap {
    padding: 3px 12px 2px;
  }

  body.explore-page .explore-community-title {
    font-size: clamp(22px, 7.2vw, 34px);
    letter-spacing: 0.05em;
    line-height: 1.1;
    padding: 6px 14px;
    text-shadow:
      2px 0 0 rgba(106, 8, 57, 0.98),
      -2px 0 0 rgba(106, 8, 57, 0.98),
      0 2px 0 rgba(106, 8, 57, 0.98),
      0 -2px 0 rgba(106, 8, 57, 0.98),
      2px 2px 0 rgba(106, 8, 57, 0.94),
      -2px 2px 0 rgba(106, 8, 57, 0.94),
      2px -2px 0 rgba(106, 8, 57, 0.94),
      -2px -2px 0 rgba(106, 8, 57, 0.94),
      3px 0 0 rgba(106, 8, 57, 0.72),
      -3px 0 0 rgba(106, 8, 57, 0.72),
      0 3px 0 rgba(106, 8, 57, 0.72),
      0 -3px 0 rgba(106, 8, 57, 0.72),
      0 0 8px rgba(106, 8, 57, 0.44),
      0 0 14px rgba(106, 8, 57, 0.26);
  }
}

@media (min-width: 701px) {
  body.explore-page .explore-community-title-wrap {
    padding: 5px 18px 3px;
  }

  body.explore-page .explore-community-title {
    font-size: clamp(30px, 4.6vw, 56px);
    letter-spacing: 0.075em;
    line-height: 1.06;
    padding: 8px 18px;
    text-shadow:
      2px 0 0 rgba(106, 8, 57, 0.99),
      -2px 0 0 rgba(106, 8, 57, 0.99),
      0 2px 0 rgba(106, 8, 57, 0.99),
      0 -2px 0 rgba(106, 8, 57, 0.99),
      2px 2px 0 rgba(106, 8, 57, 0.96),
      -2px 2px 0 rgba(106, 8, 57, 0.96),
      2px -2px 0 rgba(106, 8, 57, 0.96),
      -2px -2px 0 rgba(106, 8, 57, 0.96),
      3px 0 0 rgba(106, 8, 57, 0.76),
      -3px 0 0 rgba(106, 8, 57, 0.76),
      0 3px 0 rgba(106, 8, 57, 0.76),
      0 -3px 0 rgba(106, 8, 57, 0.76),
      0 0 12px rgba(106, 8, 57, 0.54),
      0 0 22px rgba(106, 8, 57, 0.32);
  }
}

body.explore-page .explore-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 920px;
  padding-top: 14px;
}

body.explore-page .explore-module {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

body.explore-page .explore-separator-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

body.explore-page .explore-module .picture {
  max-width: none;
  margin-top: 0;
}

body.explore-page .explore-separator-row .picture {
  max-width: none;
  margin-top: 0;
}

body.explore-page .explore-placeholder .thumb {
  aspect-ratio: 1 / 1;
  max-width: none;
}

body.explore-page .explore-module.variant-a .explore-placeholder.is-tall {
  grid-row: span 2;
  grid-column: 1;
}

body.explore-page .explore-module.variant-a .explore-placeholder.is-tall .thumb,
body.explore-page .explore-module.variant-b .explore-placeholder.is-tall .thumb {
  height: 100%;
  flex: 1 1 auto;
  aspect-ratio: auto;
}

body.explore-page .explore-module.variant-b .explore-placeholder.is-tall {
  grid-column: 2;
  grid-row: 2 / span 2;
}

@supports (min-height: 100dvh) {
  body.explore-page .content {
    min-height: calc(100dvh - var(--header-height) - var(--bottom-nav-height));
  }
}


/* HEADER FIXED */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);

  display: flex;
  justify-content: center;

  padding: 0 0;
  background: var(--header-bg);
  transform: translate3d(0, 0, 0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), height 0.22s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  z-index: 1000;
}

.header-hidden {
  transform: translate3d(0, -100%, 0);
}

.header.header-compact {
  height: var(--header-height);
}

.header.header-compact .logo {
  width: var(--logo-width);
}

.header.header-compact .header-profile-btn {
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  right: var(--header-side-gap);
}

.header.header-compact .header-profile-icon {
  width: 20px;
  height: 20px;
}

.header.header-compact .header-app-placeholders {
  right: calc(var(--header-side-gap) + var(--header-icon-size) + 16px);
  gap: 11px;
}

.header.header-compact .header-app-square {
  width: clamp(28px, calc(var(--header-icon-size) * 0.96), 40px);
}

/* LOGO */
.logo {
  width: var(--logo-width);
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0;
}

.header-profile-btn {
  position: absolute;
  right: var(--header-side-gap);
  top: 50%;
  transform: translateY(-50%);
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.header-profile-btn:hover,
.header-profile-btn:focus-visible {
  background: rgba(255,255,255,0.16);
  outline: none;
}

.header-profile-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.header-app-placeholders {
  position: absolute;
  right: calc(var(--header-side-gap) + var(--header-icon-size) + 16px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
}

.header-app-placeholders.show-credit-counter {
  gap: 0;
}

.header-app-placeholders.show-credit-counter .header-app-square {
  display: none;
}

.header-credit-badge {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  width: fit-content;
  max-width: 100%;
}

.header-credit-badge::after {
  content: '';
  order: 2;
  align-self: center;
  width: 1px;
  height: 18px;
  margin: 0 9px;
  background: rgba(255,255,255,0.45);
}

.header-credit-icon {
  order: 1;
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}

.header-credit-count {
  order: 3;
  min-width: 2ch;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0.96);
  letter-spacing: 0.02em;
}

.header-app-square {
  width: clamp(28px, calc(var(--header-icon-size) * 0.96), 40px);
  aspect-ratio: 1 / 1;
  border-radius: 24%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
  display: block;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease;
}

.header-app-square:nth-child(1) {
  background: #5865f2;
  position: relative;
}

.header-app-square:nth-child(1)::before {
  content: '';
  position: absolute;
  inset: 16%;
  background-image: url('../../logosdeluxo/logodiscordbianco.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.header-app-square:nth-child(1):hover,
.header-app-square:nth-child(1):focus-visible {
  background: #6673ff;
  border-color: rgba(188, 196, 255, 0.70);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 0 1px rgba(123, 139, 255, 0.30),
    0 0 18px rgba(112, 129, 255, 0.42),
    0 0 32px rgba(112, 129, 255, 0.28);
}

.header-app-square:nth-child(2) {
  background: #ff4500;
  position: relative;
}

.header-app-square:nth-child(2)::before {
  content: '';
  position: absolute;
  inset: 4%;
  background-image: url('../../logosdeluxo/logoredditbianco.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.header-app-square:nth-child(2):hover,
.header-app-square:nth-child(2):focus-visible {
  background: #ff5418;
  border-color: rgba(255, 204, 184, 0.70);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 0 1px rgba(255, 146, 108, 0.30),
    0 0 18px rgba(255, 133, 87, 0.42),
    0 0 32px rgba(255, 133, 87, 0.28);
}


/* BANNER */
.banner {
  width: 100%;
  height: 120px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  /* flush under header; body padding keeps it from sliding behind */
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #999;
}

/* Trends bar (horizontal scroll) */
.trends-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14,14,14,0.72), rgba(14,14,14,0.62));
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,255,255,0.10),
    0 8px 20px rgba(0,0,0,0.22);
  backdrop-filter: blur(16px) saturate(1.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.22);
}

body.explore-page .trends-section {
  position: sticky;
  top: 0;
  z-index: 980;
}

body.explore-page #trendMenuOverlay {
  position: relative;
  inset: auto;
  z-index: 981;
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 0;
  background: transparent;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

body.explore-page #trendMenuOverlay.show {
  pointer-events: auto;
}

body.explore-page #trendMenuOverlay .trend-menu-panel {
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transform: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 170ms ease-out, opacity 130ms ease-out;
}

body.explore-page #trendMenuOverlay.show .trend-menu-panel {
  max-height: 210px;
  opacity: 1;
}

body.explore-page #trendMenuOverlay .trend-menu-categories {
  margin-bottom: 0;
  padding: 4px 2px 8px;
  opacity: 0;
  transform: none;
  transition: opacity 110ms ease-out;
}

body.explore-page #trendMenuOverlay.show .trend-menu-categories {
  opacity: 1;
}

body.explore-page #trendMenuOverlay .trend-menu-chip {
  border-color: var(--explore-search-border);
  background: var(--explore-search-surface);
}

body.explore-page #trendMenuOverlay .trend-menu-chip:hover,
body.explore-page #trendMenuOverlay .trend-menu-chip:focus-visible {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.44);
}

body.explore-page #trendMenuOverlay .trend-menu-chip.active {
  background: linear-gradient(145deg, rgba(106, 8, 57, 0.84), rgba(252, 145, 201, 0.42));
  border-color: rgba(252,145,201,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 0 1px rgba(106, 8, 57, 0.34),
    0 0 14px rgba(252, 145, 201, 0.34),
    0 0 28px rgba(106, 8, 57, 0.34);
}

body.explore-page.explore-search-open .explore-top-search-inner {
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.26);
}

body.explore-page #header:not(.header-hidden):not(.header-compact) ~ .trends-section {
  top: var(--header-height);
}

body.explore-page #header.header-compact:not(.header-hidden) ~ .trends-section {
  top: var(--header-height);
}

.trends-container {
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 12px 14px;
  background: transparent;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 14px;
  align-items: center;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 14px;
  scroll-padding-right: 14px;
}

/* hide scrollbar (cross-browser) */
.trends-container::-webkit-scrollbar { height: 8px; display: none; }
.trends-container { scrollbar-width: none; -ms-overflow-style: none; }

.trend {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.12);
  scroll-snap-align: start;
  transition: background 160ms ease, transform 120ms ease;
}

#trendMenuBtn {
  padding-left: calc(18px * 1.3);
  padding-right: calc(18px * 1.3);
}
.trend:hover, .trend:focus { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* fade edges to indicate scrollability */
.trends-fade { position: absolute; z-index: 1; top: 0; bottom: 0; width: 48px; pointer-events: none; }
.trends-fade.left { left: 0; background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0)); }
.trends-fade.right { right: 0; background: linear-gradient(270deg, rgba(0,0,0,0.6), rgba(0,0,0,0)); }
.trends-fade { opacity: 0; transition: opacity 220ms ease; }

@media (max-width:640px) {
  .trend { font-size: 14px; padding: 8px 14px; }
  .trends-fade { width: 36px; }
}

/* Trend popup menu */
.trend-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-height) + 18px) 14px 18px;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.trend-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.trend-menu-panel {
  width: min(760px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(17,17,17,0.78);
  backdrop-filter: blur(8px);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.trend-menu-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.trend-menu-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.trend-menu-chip {
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.trend-menu-chip:hover,
.trend-menu-chip:focus-visible {
  background: rgba(255,255,255,0.15);
  outline: none;
}

.trend-menu-chip.active {
  background: linear-gradient(145deg, rgba(106, 8, 57, 0.84), rgba(252, 145, 201, 0.42));
  border-color: rgba(252,145,201,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 0 1px rgba(106, 8, 57, 0.34),
    0 0 14px rgba(252, 145, 201, 0.34),
    0 0 28px rgba(106, 8, 57, 0.34);
}

.trend-menu-search-wrap {
  width: 100%;
}

.trend-menu-tools {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trend-menu-image-toggle {
  min-height: 38px;
}

.trend-menu-search-field {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.12);
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trend-menu-search {
  flex: 1 1 160px;
  min-width: 160px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0 6px;
  font-size: 14px;
}

.trend-menu-search::placeholder {
  color: rgba(255,255,255,0.72);
}

.trend-menu-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  cursor: pointer;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4L4 12' stroke='%23fc91c9' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
}

.trend-menu-search:focus {
  outline: none;
}

.trend-menu-search-field:focus-within {
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 1px;
}

/* TEMP_IMAGE_TOGGLE_REMOVE: Provisional styles/rules for the dev-only image toggle button and image hiding behavior. */
body.images-hidden .picture[data-image*='girl'] .thumb,
body.images-hidden .explore-placeholder .thumb[style*='girl'],
body.images-hidden .thumb[style*='girl'] {
  background-image: none !important;
}

.profile-menu-overlay {
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
}

.profile-menu-panel {
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(10,10,10,0.48);
  backdrop-filter: blur(12px) saturate(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.34);
}

.profile-menu-panel .trend-menu-title {
  text-align: center;
  font-weight: 700;
}

.create-auth-disclaimer {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(252,145,201,0.38);
  background: linear-gradient(145deg, rgba(106, 8, 57, 0.28), rgba(252, 145, 201, 0.12));
  color: rgba(255,255,255,0.93);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.create-auth-disclaimer strong {
  color: #ffd6ea;
}

.create-auth-disclaimer-actions {
  margin-top: 12px;
}

body.create-auth-locked .create-content {
  filter: saturate(0.75) brightness(0.65);
  pointer-events: none;
}

body.create-auth-locked .bottom-navbar {
  pointer-events: none;
  opacity: 0.55;
}

.profile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-menu-action {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.profile-menu-social {
  justify-content: center;
  padding-left: 52px;
  padding-right: 52px;
  position: relative;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease;
}

.profile-menu-social-label {
  width: 100%;
  text-align: center;
}

.profile-menu-social-company {
  font-weight: 700;
}

.profile-menu-social-google:hover,
.profile-menu-social-google:focus-visible {
  background: rgba(255,255,255,0.24);
  border-color: rgba(255,255,255,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.26),
    0 0 0 1px rgba(255,255,255,0.16),
    0 0 14px rgba(255,255,255,0.34),
    0 0 24px rgba(255,255,255,0.20);
}

.profile-menu-social-discord:hover,
.profile-menu-social-discord:focus-visible {
  background: rgba(156, 167, 255, 0.22);
  border-color: rgba(188, 196, 255, 0.70);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 0 1px rgba(123, 139, 255, 0.22),
    0 0 14px rgba(112, 129, 255, 0.30),
    0 0 24px rgba(112, 129, 255, 0.18);
}

.profile-menu-social-reddit:hover,
.profile-menu-social-reddit:focus-visible {
  background: rgba(255, 184, 154, 0.22);
  border-color: rgba(255, 204, 184, 0.70);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 0 1px rgba(255, 146, 108, 0.22),
    0 0 14px rgba(255, 133, 87, 0.30),
    0 0 24px rgba(255, 133, 87, 0.18);
}

.profile-menu-social::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
}

.profile-menu-social-google::before {
  background-image: url('../../logosdeluxo/logogoogle.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-menu-social-discord::before {
  background-image: url('../../logosdeluxo/logodiscord.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-menu-social-reddit::before {
  background-image: url('../../logosdeluxo/logoreddit.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-menu-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.profile-menu-divider::before,
.profile-menu-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255,255,255,0.28);
}

.profile-menu-divider-text {
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  font-weight: 500;
}

.profile-menu-inputs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-menu-auth-status {
  margin: 0;
  min-height: 0;
  color: rgba(255,255,255,0.86);
  font-size: 12px;
}

.profile-menu-auth-status:not(:empty) {
  margin: 0 0 10px;
  min-height: 18px;
}

.profile-menu-auth-extra {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    max-height 320ms ease,
    opacity 230ms ease,
    transform 320ms ease,
    margin-top 320ms ease;
}

.profile-menu-auth-extra.is-visible {
  max-height: 130px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
  overflow: visible;
  pointer-events: auto;
}

.profile-menu-input-shell {
  cursor: text;
  padding: 0 14px;
}

.profile-menu-inputs .profile-menu-input-shell:first-child {
  margin-top: 0;
}

.profile-menu-input {
  width: 100%;
  height: 100%;
  min-height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.profile-menu-input::placeholder {
  color: rgba(255,255,255,0.72);
}

.profile-menu-input:focus {
  outline: none;
}

.profile-menu-input-shell:focus-within {
  background: rgba(255,255,255,0.15);
  outline: none;
}

.profile-menu-password-wrap {
  margin-top: 0;
}

.profile-menu-submit {
  min-height: 44px;
}

.profile-menu-submit-row {
  display: flex;
  gap: 10px;
}

.profile-menu-auth-submit {
  flex: 1 1 0;
  min-width: 0;
  transition:
    background-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-menu-auth-signin:hover,
.profile-menu-auth-signin:focus-visible,
.profile-menu-auth-register:hover,
.profile-menu-auth-register:focus-visible {
  background: rgba(252, 145, 201, 0.22);
  border-color: rgba(252, 145, 201, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 10px rgba(252, 145, 201, 0.20),
    0 0 22px rgba(184, 85, 146, 0.14),
    0 6px 18px rgba(184, 85, 146, 0.10);
}

/* CONTENUTO */
.content {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  /* padding handled globally via body */
  padding-top: 0;
}

.btn { background:#ffffff22; color:#fff; border:none; padding:8px 12px; border-radius:6px; cursor:pointer; }
.btn.outline { background:transparent; border:1px solid rgba(255,255,255,0.24); }

/* Header alignment */
.header { padding: 0; align-items: center; }
.header-logo-link {
  position: absolute;
  left: calc(var(--header-side-gap) + var(--logo-left-nudge));
  top: 50%;
  transform: translateY(calc(-50% + 5px));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTENT PLACEHOLDERS */
/* top padding is managed by body; placeholders begin just below toolbar */
.content { padding-top: 0; padding-bottom: 72px; }
.index-content { padding-bottom: 28px; }
.picture {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  padding: 14px;
  transition: background 200ms ease, transform 200ms ease;
}
.picture:hover {
  background: rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.thumb {
  background: linear-gradient(135deg,#0a0a0a,#151515);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.content-inner { --placeholder-gap: 18px; width: 100%; max-width: 920px; margin: 0 auto 0; padding: 0 16px 28px; display:flex; flex-direction:column; gap: var(--placeholder-gap); align-items: center; }
.picture {
  background: rgba(255, 255, 255, 0.045);
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  width:100%;
  max-width:420px;
  cursor: pointer;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(5px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    inset 0 0 22px rgba(106, 8, 57, 0.12),
    inset 0 0 36px rgba(252, 145, 201, 0.14),
    0 12px 28px rgba(0,0,0,0.28);
  position: relative;
  overflow: hidden;
}
.picture::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 0 0 34px rgba(106, 8, 57, 0.08),
    inset 0 0 20px rgba(252, 145, 201, 0.16);
}
.thumb {
  width:100%;
  max-width:420px;
  aspect-ratio: 10/13.2;
  background: linear-gradient(90deg,#1a1a1a,#0d0d0d);
  border-radius:10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14),
    inset 0 0 24px rgba(106, 8, 57, 0.18),
    inset 0 0 16px rgba(252, 145, 201, 0.20),
    0 8px 24px rgba(0,0,0,0.34);
  position: relative;
  overflow: hidden;
}
.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.38), rgba(0,0,0,0.02) 52%, rgba(255,255,255,0.06));
  pointer-events: none;
}
.desc {
  margin: 0;
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 6px rgba(255,255,255,0.45),
    0 0 18px rgba(255, 123, 190, 0.35),
    0 2px 8px rgba(0,0,0,0.65);
}
.desc .name {
  color: #fff;
  text-shadow:
    0 0 10px rgba(255,255,255,0.78),
    0 0 26px rgba(255, 145, 206, 0.48);
}
.desc .age {
  color: #6a0839;
  margin-left: 8px;
  text-shadow:
    0 0 10px rgba(106, 8, 57, 0.82),
    0 0 26px rgba(252, 145, 201, 0.46);
}

/* 4-video placeholder model */
.video-cluster-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 10/11;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(0,0,0,0.18);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  cursor: pointer;
}

.video-cluster-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  color: #fff;
  text-align: left;
}

.video-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1 1 auto;
}

.video-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.1);
  aspect-ratio: 1 / 1;
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

.video-tile:hover,
.video-tile:focus-visible {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  outline: none;
}

.video-cluster-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* give the first placeholder a little extra space from the header: half the gap between placeholders */
.content-inner > .picture:first-child { margin-top: calc(var(--placeholder-gap) / 2); }

/* FOOTER */
.site-footer {
  position: relative;
  margin-top: 0;
  padding: 24px 14px calc(var(--bottom-nav-height) + 25px);
  border-top: 1px solid rgba(255,255,255,0.18);
  background:
    radial-gradient(88% 140% at 80% 0%, rgba(252,145,201,0.14), rgba(252,145,201,0) 65%),
    linear-gradient(180deg, rgba(8,8,8,0.92), rgba(4,4,4,0.98));
  color: #fff;
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255,255,255,0.82);
}

.footer-legal {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.footer-copyright {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.footer-links {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  color: #fc91c9;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.4px;
  font-weight: 600;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffc3e4;
  text-shadow: 0 0 12px rgba(252,145,201,0.44);
}

@media (max-width:640px) {
  /* allow thumbnails to scale down to fit small screens */
  .thumb { width:100%; max-width:420px; }
  .content-inner { padding:10px; }
}

/* Ensure vertical, centered placeholders on narrow windows (mobile or small panels) */
@media (max-width:700px) {
  /* force vertical stacking and allow thumbnails to scale on narrow viewports */
  .content-inner { gap: var(--placeholder-gap); }
  .picture { width:100%; }
  .thumb { width:100%; max-width:420px; }
  .desc { font-size: calc(13px * 2.16); }
  .footer-inner { padding: 0 10px; }
}

/* Feed styles for infinite scroll */
#feed { max-width: 600px; margin: 0 auto 18px; width: min(100%, 600px); }
.index-content #feed { margin-bottom: 6px; }

/* small loading indicator */
.loading { display:none; align-items:center; justify-content:center; gap:8px; color:#666; font-size:14px; padding:12px; }
.loading::before { content: ''; width:18px; height:18px; border-radius:50%; border:2px solid rgba(0,0,0,0.08); border-top-color:#666; animation: spin 800ms linear infinite; display:inline-block; }

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

/* smooth appear animation already handled inline in JS, but provide a class fallback */
.fade-in-up { animation: fadeUp 360ms ease both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(8px);} to { opacity:1; transform: translateY(0);} }

/* sentinel visual (invisible but can be adjusted for debugging) */
.sentinel { height: 1px; }

/* AGE VERIFICATION MODAL */
.age-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.age-modal.show {
  opacity: 1;
  visibility: visible;
}
.age-modal-inner {
  width: min(520px, 92%);
  background: #111;
  color: #fff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  text-align: center;
  transform: translateY(8px);
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease;
  opacity: 0;
}
.age-modal.show .age-modal-inner { transform: translateY(0); opacity: 1; }
.age-modal-inner h2 { margin: 0 0 8px 0; font-size:20px; }
.age-modal-inner p { margin: 0 0 16px 0; color: #ddd; }
.age-actions { display:flex; gap:12px; justify-content:center; margin-top:6px; }
.age-actions .btn { padding:10px 16px; font-weight:600; }
.age-actions .age-no { background: transparent; border:1px solid rgba(255,255,255,0.24); }

/* BOTTOM NAVBAR */
.bottom-navbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottom-nav-height);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  box-sizing: border-box;
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.24);
  z-index: 1300;
}

@supports (bottom: max(0px)) {
  .bottom-navbar {
    bottom: max(0px, env(safe-area-inset-bottom, 0px));
  }
}

.nav-item {
  color: #fff;
  text-decoration: none;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  cursor: pointer;
  font: inherit;
  transition: color 260ms ease, text-shadow 260ms ease;
}

.nav-item.is-active {
  color: #fc91c9;
  text-shadow:
    0 0 3px rgba(106, 8, 57, 0.32),
    0 0 6px rgba(252, 145, 201, 0.18);
}

.nav-item.is-active .nav-icon,
.nav-item.is-active .profile-icon,
.nav-item.is-active .create-circle {
  filter:
    drop-shadow(0 0 2px rgba(106, 8, 57, 0.24))
    drop-shadow(0 0 4px rgba(252, 145, 201, 0.20));
}

.nav-item .nav-icon,
.nav-item .profile-icon,
.nav-item .create-circle {
  transition: filter 300ms ease;
}

.nav-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 10px;
}

.nav-icon {
  width: 23px;
  height: 23px;
  display: block;
}

.nav-label {
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
}

.nav-create .create-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0;
  line-height: 0;
}

.nav-create .create-circle::before,
.nav-create .create-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 999px;
}

.nav-create .create-circle::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.nav-create .create-circle::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.profile-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

@media (max-width:420px) {
  :root {
    --header-height: 94px;
    --bottom-nav-height: 74px;
    --header-icon-size: 40px;
    --logo-width: 178px;
    --logo-left-nudge: -8px;
  }

  .banner {
    height: 96px;
    font-size: 20px;
  }

  .content-inner {
    padding: 8px 10px 22px;
  }

  .video-cluster-title {
    font-size: 26px;
  }

  .nav-item {
    min-height: 54px;
  }

  .nav-label {
    font-size: 10px;
  }

  .age-modal-inner { padding:16px; }
  .age-actions { flex-direction:column-reverse; gap:10px; }
  .age-actions .btn { width:100%; }
}

.video-cluster-card::after { display: none; }

/* Fullscreen placeholder menu */
.placeholder-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.placeholder-fullscreen-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.placeholder-fullscreen-panel {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(252,145,201,0.18), rgba(252,145,201,0) 55%),
    radial-gradient(100% 80% at 90% 100%, rgba(106,8,57,0.28), rgba(106,8,57,0) 62%),
    rgb(12,12,12);
  transform-origin: 50% 35%;
  transform: scale(0.965);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.placeholder-fullscreen-overlay.show .placeholder-fullscreen-panel {
  transform: scale(1);
  opacity: 1;
}

.placeholder-fullscreen-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.placeholder-fullscreen-close:hover,
.placeholder-fullscreen-close:focus-visible {
  background: rgba(255,255,255,0.14);
  outline: none;
}

.placeholder-fullscreen-meta {
  width: 100%;
  padding: max(78px, calc(env(safe-area-inset-top, 0px) + 64px)) 20px 0;
  text-align: center;
}

.placeholder-fullscreen-title {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4.2vw, 36px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.placeholder-carousel-section {
  width: 100%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 14px 0;
}

.placeholder-carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.46);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.placeholder-carousel-arrow:hover,
.placeholder-carousel-arrow:focus-visible {
  background: rgba(255,255,255,0.14);
  outline: none;
}

.placeholder-carousel-viewport {
  width: min(100%, 420px);
  height: 100%;
  max-width: calc(50vh * (10 / 13.2));
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.placeholder-carousel-track {
  --carousel-slide-count: 1;
  width: calc(var(--carousel-slide-count) * 100%);
  height: 100%;
  display: flex;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.placeholder-carousel-slide {
  width: calc(100% / var(--carousel-slide-count));
  flex: 0 0 calc(100% / var(--carousel-slide-count));
  height: 100%;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-carousel-media {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  aspect-ratio: 10 / 13.2;
  background: linear-gradient(90deg,#1a1a1a,#0d0d0d);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.14),
    inset 0 0 24px rgba(106, 8, 57, 0.18),
    inset 0 0 16px rgba(252, 145, 201, 0.20),
    0 8px 24px rgba(0,0,0,0.34);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.placeholder-carousel-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.38), rgba(0,0,0,0.02) 52%, rgba(255,255,255,0.06));
  pointer-events: none;
}

.placeholder-carousel-media.is-empty {
  background-image: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.placeholder-fullscreen-description {
  width: min(900px, calc(100% - 28px));
  min-height: 180px;
  max-height: 30svh;
  margin: 22px auto 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  overflow-y: auto;
}

.placeholder-fullscreen-actions {
  width: min(900px, calc(100% - 28px));
  margin: 14px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.placeholder-action-btn {
  min-width: 132px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(252,145,201,0.58);
  background: linear-gradient(145deg, rgba(106, 8, 57, 0.9), rgba(252, 145, 201, 0.42));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 120ms ease, background 180ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 6px 18px rgba(106, 8, 57, 0.34);
}

.placeholder-action-btn:hover,
.placeholder-action-btn:focus-visible {
  background: linear-gradient(145deg, rgba(120, 12, 66, 0.95), rgba(252, 145, 201, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.26),
    0 0 14px rgba(252,145,201,0.42),
    0 0 28px rgba(252,145,201,0.24),
    0 8px 22px rgba(106, 8, 57, 0.42);
  filter: saturate(1.08);
  outline: none;
}

.placeholder-action-btn:active,
.placeholder-action-btn.is-pressed {
  background: linear-gradient(145deg, rgba(129, 13, 71, 0.98), rgba(252, 145, 201, 0.6));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 0 16px rgba(252,145,201,0.52),
    0 0 34px rgba(252,145,201,0.34),
    0 10px 26px rgba(106, 8, 57, 0.48);
  transform: translateY(1px) scale(0.995);
}

.placeholder-action-create {
  margin-right: auto;
}

.placeholder-action-chat {
  margin-left: auto;
}

@media (max-width: 700px) {
  .placeholder-carousel-section {
    gap: 8px;
    padding: 12px 8px 0;
  }

  .placeholder-carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .placeholder-carousel-viewport {
    max-width: calc(50vh * (10 / 13.2));
  }

  .placeholder-fullscreen-actions {
    margin-top: 12px;
  }

  .placeholder-action-btn {
    min-width: 116px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }
}

@supports (height: 100svh) {
  .placeholder-carousel-section {
    height: 50svh;
  }
}

.placeholder-fullscreen-body {
  width: 100%;
  height: calc(100% - max(78px, calc(env(safe-area-inset-top, 0px) + 64px)));
  display: flex;
  flex-direction: column;
}

body.placeholder-menu-open {
  overflow: hidden;
}

body.create-page {
  background: var(--page-body-bg);
  background-attachment: fixed;
}

body.create-page main,
body.create-page .content {
  background: transparent;
}

body.create-page .create-title-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 16px;
  background: var(--header-bg);
}

body.create-page .create-title {
  display: inline-block;
  margin: 0;
  text-align: center;
  text-transform: none;
  font-size: clamp(25px, 6.2vw, 50px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.98);
  -webkit-text-stroke: 1.3px rgba(10,10,10,0.96);
  paint-order: stroke fill;
  padding: 8px 18px;
  text-shadow:
    2px 0 0 rgba(106, 8, 57, 0.98),
    -2px 0 0 rgba(106, 8, 57, 0.98),
    0 2px 0 rgba(106, 8, 57, 0.98),
    0 -2px 0 rgba(106, 8, 57, 0.98),
    2px 2px 0 rgba(106, 8, 57, 0.96),
    -2px 2px 0 rgba(106, 8, 57, 0.96),
    2px -2px 0 rgba(106, 8, 57, 0.96),
    -2px -2px 0 rgba(106, 8, 57, 0.96),
    3px 0 0 rgba(106, 8, 57, 0.74),
    -3px 0 0 rgba(106, 8, 57, 0.74),
    0 3px 0 rgba(106, 8, 57, 0.74),
    0 -3px 0 rgba(106, 8, 57, 0.74),
    0 0 10px rgba(106, 8, 57, 0.5),
    0 0 18px rgba(106, 8, 57, 0.3);
}

body.create-page .create-content {
  min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
  min-height: calc(100svh - var(--header-height) - var(--bottom-nav-height));
  padding: 8px 12px 22px;
}

body.create-page .create-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.create-page .create-block {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.26);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 0 24px rgba(106, 8, 57, 0.12),
    0 10px 28px rgba(0,0,0,0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
}

body.create-page .create-block-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.create-page .create-block-copy {
  margin: 8px 0 14px;
  color: rgba(255,255,255,0.84);
  font-size: 14px;
}

body.create-page .create-gender-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.create-page .create-gender-button {
  min-height: 84px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 220ms ease;
}

body.create-page .create-gender-button:hover,
body.create-page .create-gender-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(252,145,201,0.72);
  background: rgba(252,145,201,0.16);
  box-shadow: 0 0 14px rgba(252,145,201,0.26);
  outline: none;
}

body.create-page .create-gender-button.is-selected {
  border-color: rgba(252,145,201,0.84);
  background: linear-gradient(180deg, rgba(252,145,201,0.34), rgba(106, 8, 57, 0.26));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 0 18px rgba(252,145,201,0.30);
}

body.create-page .create-look-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.create-page .create-look-chip {
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.create-page .create-look-chip:hover,
body.create-page .create-look-chip:focus-visible {
  border-color: rgba(252,145,201,0.66);
  background: rgba(252,145,201,0.18);
  outline: none;
}

body.create-page .create-look-chip.is-selected {
  border-color: rgba(252,145,201,0.84);
  background: rgba(252,145,201,0.26);
  box-shadow: 0 0 11px rgba(252,145,201,0.24);
}

body.create-page .create-prompt-label {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
}

body.create-page .create-prompt-input {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.32);
  padding: 12px;
  background: rgba(4,4,4,0.62);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

body.create-page .create-prompt-input::placeholder {
  color: rgba(255,255,255,0.62);
}

body.create-page .create-prompt-input:focus {
  outline: 2px solid rgba(252,145,201,0.40);
  border-color: rgba(252,145,201,0.74);
}

body.create-page .create-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

body.create-page .create-prompt-count {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.74);
}

body.create-page .create-submit {
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 999px;
  min-height: 42px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

body.create-page .create-submit:hover,
body.create-page .create-submit:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(252,145,201,0.72);
  background: rgba(252,145,201,0.26);
  outline: none;
}

body.create-page .create-submit:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

body.create-page .create-form-status {
  margin: 10px 0 0;
  min-height: 18px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

@media (max-width: 700px) {
  body.create-page .create-title-wrap {
    padding: 0 12px 12px;
  }

  body.create-page .create-content {
    padding: 6px 10px 18px;
  }

  body.create-page .create-block {
    padding: 14px;
  }

  body.create-page .create-gender-grid {
    grid-template-columns: 1fr;
  }

  body.create-page .create-gender-button {
    min-height: 74px;
    font-size: 20px;
  }

  body.create-page .create-footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.create-page .create-submit {
    width: 100%;
  }
}

body.create-page .create-shell {
  max-width: 920px;
}

body.create-page .create-gender-step {
  min-height: clamp(360px, 58vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.create-page .create-step-title {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.03em;
}

body.create-page .create-step-copy {
  margin-top: 10px;
  font-size: 15px;
}

body.create-page .create-gender-hero-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.create-page .create-gender-hero-button {
  min-height: 190px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.34);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 220ms ease, background 180ms ease;
}

body.create-page .create-gender-hero-button:hover,
body.create-page .create-gender-hero-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(252,145,201,0.7);
  background: linear-gradient(180deg, rgba(252,145,201,0.24), rgba(106,8,57,0.22));
  box-shadow: 0 0 22px rgba(252,145,201,0.24);
  outline: none;
}

body.create-page .create-gender-hero-button.is-selected {
  border-color: rgba(252,145,201,0.88);
  background: linear-gradient(180deg, rgba(252,145,201,0.34), rgba(106,8,57,0.28));
  box-shadow: 0 0 28px rgba(252,145,201,0.3);
}

body.create-page .create-gender-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

body.create-page .create-gender-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

body.create-page .create-gender-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.create-page .create-selection-summary {
  margin-bottom: -2px;
}

body.create-page .create-selection-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.08);
  padding: 8px 14px;
}

body.create-page .create-selection-back {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

body.create-page .create-selection-back svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.create-page .create-selection-back:hover,
body.create-page .create-selection-back:focus-visible {
  border-color: rgba(252,145,201,0.7);
  background: rgba(252,145,201,0.2);
  outline: none;
}

body.create-page .create-selection-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.create-page .create-selection-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.create-page .create-selection-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

body.create-page .create-trait-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.create-page .create-trait-category {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.04);
  padding: 12px;
}

body.create-page .create-trait-category-title {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
}

body.create-page .create-trait-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.create-page .create-trait-chip {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  min-height: 36px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body.create-page .create-trait-chip:hover,
body.create-page .create-trait-chip:focus-visible {
  border-color: rgba(252,145,201,0.7);
  background: rgba(252,145,201,0.18);
  outline: none;
}

body.create-page .create-trait-chip.is-selected {
  border-color: rgba(252,145,201,0.86);
  background: rgba(252,145,201,0.3);
  box-shadow: 0 0 14px rgba(252,145,201,0.22);
}

body.create-page .create-traits-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

body.create-page .create-traits-confirm-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

body.create-page .create-prompt-stage-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

body.create-page .create-prompt-stage-label {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}

@media (max-width: 900px) {
  body.create-page .create-trait-categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.create-page .create-gender-step {
    min-height: 0;
  }

  body.create-page .create-gender-hero-grid {
    grid-template-columns: 1fr;
  }

  body.create-page .create-gender-hero-button {
    min-height: 118px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 14px;
    gap: 12px;
  }

  body.create-page .create-gender-icon {
    width: 48px;
    height: 48px;
  }

  body.create-page .create-gender-label {
    font-size: 20px;
  }

  body.create-page .create-traits-confirm-row {
    justify-content: stretch;
  }

  body.create-page .create-traits-confirm-row .create-submit {
    width: 100%;
  }
}