/* --------------------------------------------------------------------------
   Velvetly — an intimate, editorial interface for two
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #130b10;
  --bg-deep: #0e080c;
  --bg-raised: #1c1018;
  --bg-card: #23141d;
  --cream: #f7ede2;
  --cream-bright: #fff9f2;
  --cream-deep: #ead8c7;
  --ink: #2b1921;
  --ink-soft: #68545c;
  --muted: rgba(247, 237, 226, 0.64);
  --faint: rgba(247, 237, 226, 0.4);
  --line: rgba(247, 237, 226, 0.14);
  --line-strong: rgba(247, 237, 226, 0.24);
  --rose: #e77988;
  --rose-deep: #b84b60;
  --gold: #e8bd84;
  --gold-deep: #a77738;
  --sage: #a9beaa;
  --sage-deep: #5f8068;
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 26px;
  --radius-lg: 34px;
  --radius-xl: 44px;
  --shadow-card: 0 28px 80px rgba(0, 0, 0, 0.42), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.24, 1.08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 0% -10%, rgba(177, 61, 84, 0.2), transparent 62%),
    radial-gradient(ellipse 55% 45% at 100% 12%, rgba(217, 158, 91, 0.09), transparent 60%),
    linear-gradient(180deg, #160d13 0%, #130b10 48%, #0f080d 100%);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

::selection {
  background: rgba(231, 121, 136, 0.35);
  color: var(--cream-bright);
}

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

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

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 50%;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  transform: translate(-50%, -160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  z-index: 300;
  inset: auto 20px 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.wrap {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(calc(100% - 48px), 960px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  padding-top: calc(22px + var(--safe-top));
  padding-bottom: 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  white-space: nowrap;
}

.brand-mark {
  width: 27px;
  height: 27px;
  color: var(--gold);
  transition: transform 0.45s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.04);
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 23px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
}

.brand-name span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--cream);
}

.lang-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-pill:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.lang-pill .lang-globe {
  position: absolute;
  left: 11px;
  width: 13px;
  height: 13px;
  color: var(--faint);
  pointer-events: none;
}

.lang-pill .lang-chevron {
  position: absolute;
  right: 9px;
  width: 11px;
  height: 11px;
  color: var(--faint);
  pointer-events: none;
}

.lang-pill select {
  min-width: 74px;
  padding: 8px 24px 8px 29px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  appearance: none;
  cursor: pointer;
}

.lang-pill option {
  background: var(--bg-raised);
  color: var(--cream);
  letter-spacing: 0;
  text-transform: none;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.46;
  pointer-events: none;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.btn--primary:hover {
  background: var(--cream-bright);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: rgba(247, 237, 226, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

.btn--rose {
  background: linear-gradient(135deg, #eb8492, #c84e65);
  color: #fff8f4;
  box-shadow: 0 14px 36px rgba(180, 55, 80, 0.28);
}

.btn--rose:hover {
  box-shadow: 0 18px 44px rgba(180, 55, 80, 0.36);
}

.btn--small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 11px;
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--cream);
}

.text-link .icon {
  width: 14px;
  height: 14px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker::before {
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
  content: '';
  opacity: 0.6;
}

.kicker--centered {
  justify-content: center;
}

.kicker--centered::after {
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
  content: '';
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.home-main {
  flex: 1;
}

.hero {
  display: grid;
  min-height: min(760px, calc(100svh - 110px));
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.8fr);
  gap: clamp(36px, 6vw, 84px);
  padding: clamp(30px, 5vh, 60px) 0 clamp(70px, 10vh, 120px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-title {
  max-width: 620px;
  margin-top: 24px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(54px, 6.4vw, 92px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.hero-title em {
  display: inline-block;
  color: var(--rose);
  font-weight: 400;
  white-space: nowrap;
}

.hero-lede {
  max-width: 500px;
  margin-top: 29px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-actions .btn--primary {
  min-height: 56px;
  padding-inline: 27px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 27px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-item::before {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  content: '';
  opacity: 0.8;
}

.hero-art {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 540px;
  min-height: 560px;
  justify-self: center;
  place-items: center;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 83, 107, 0.38) 0%, rgba(194, 108, 80, 0.12) 44%, transparent 70%);
  filter: blur(24px);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 237, 226, 0.08);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border: 1px solid rgba(247, 237, 226, 0.06);
  border-radius: 50%;
  content: '';
}

.hero-orbit::before {
  inset: 9%;
}

.hero-orbit::after {
  inset: 21%;
}

.art-card {
  position: absolute;
  display: flex;
  width: min(66%, 320px);
  aspect-ratio: 0.71;
  flex-direction: column;
  padding: 27px;
  border: 1px solid rgba(67, 38, 45, 0.1);
  border-radius: 28px;
  background: linear-gradient(150deg, #fff9f1 0%, #f3e5d6 56%, #ecd3c2 100%);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.art-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  content: '';
  mix-blend-mode: multiply;
  opacity: 0.07;
  pointer-events: none;
}

.art-card--back {
  z-index: 0;
  top: 46px;
  left: 3%;
  transform: rotate(-15deg) translate(-18px, 10px);
  opacity: 0.65;
  background: linear-gradient(160deg, #33202a, #1b1017);
  border-color: rgba(247, 237, 226, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.art-card--mid {
  z-index: 1;
  top: 16px;
  right: 1%;
  transform: rotate(9deg) translate(16px, 0);
  opacity: 0.85;
  background: linear-gradient(150deg, #e9d7c7, #c8a99c);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.art-card--front {
  z-index: 2;
  top: 64px;
  transform: rotate(-3.5deg);
}

.art-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(43, 25, 33, 0.46);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.art-card-top .icon {
  width: 15px;
  height: 15px;
  color: var(--rose-deep);
}

.art-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-top: 12px;
}

.art-prompt {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(25px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.01;
}

.art-note {
  max-width: 190px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.art-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(43, 25, 33, 0.12);
  color: rgba(43, 25, 33, 0.38);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.art-seal {
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(43, 25, 33, 0.18);
  border-radius: 50%;
  color: var(--rose-deep);
  place-items: center;
}

.art-seal .icon {
  width: 10px;
  height: 10px;
}

.art-chip {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(26, 14, 21, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.art-chip .icon {
  width: 13px;
  height: 13px;
}

.art-chip--yes {
  top: 18%;
  right: 0;
  color: var(--gold);
  transform: rotate(5deg);
}

.art-chip--maybe {
  bottom: 17%;
  left: 0;
  color: var(--cream);
  transform: rotate(-5deg);
}

.art-badge {
  position: absolute;
  right: 2%;
  bottom: 4%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(247, 237, 226, 0.16);
  border-radius: 14px;
  background: rgba(30, 16, 24, 0.84);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.art-badge .icon {
  width: 16px;
  height: 16px;
  color: var(--rose);
}

.section {
  padding: clamp(70px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  max-width: 780px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: 30px;
  margin-top: 18px;
}

.section-heading--single {
  max-width: 760px;
  grid-template-columns: minmax(0, 1fr);
}

.section-title {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.section-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 52px;
}

.step {
  position: relative;
  padding: 24px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.step h3 {
  margin-top: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.step p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.packs-section {
  position: relative;
}

.packs-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 48px;
}

.pack-tile {
  --theme-a: #df9b62;
  --theme-b: #94414c;
  --theme-c: #4e252b;
  position: relative;
  display: flex;
  width: 100%;
  min-height: 380px;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease;
}

.pack-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-5px);
}

.pack-art {
  position: relative;
  height: 196px;
  flex: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 27% 24%, var(--theme-a) 0%, transparent 39%),
    radial-gradient(circle at 80% 74%, var(--theme-b) 0%, transparent 55%),
    linear-gradient(145deg, var(--theme-c), #120a10 80%);
}

.pack-art::before {
  position: absolute;
  width: 150px;
  height: 150px;
  top: -52px;
  right: -38px;
  border: 1px solid rgba(255, 249, 242, 0.16);
  border-radius: 50%;
  content: '';
}

.pack-art::after {
  position: absolute;
  width: 92px;
  height: 92px;
  right: 18%;
  bottom: -40px;
  border: 1px solid rgba(255, 249, 242, 0.12);
  border-radius: 50%;
  content: '';
}

.pack-art-glyph {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  color: rgba(255, 249, 242, 0.88);
  transform: translate(-50%, -50%);
}

.pack-art-glyph .icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
}

.pack-art-label {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 17px;
  color: rgba(255, 249, 242, 0.55);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pack-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.pack-name {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.pack-tagline {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.pack-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pack-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pack-cta .icon {
  width: 13px;
  height: 13px;
  color: var(--gold);
  transition: transform 0.25s var(--ease-out);
}

.pack-tile:hover .pack-cta .icon {
  transform: translateX(3px);
}

.pack-tile--custom {
  justify-content: center;
  border-style: dashed;
  background:
    radial-gradient(circle at 50% 22%, rgba(231, 121, 136, 0.1), transparent 45%),
    rgba(255, 255, 255, 0.015);
}

.pack-tile--custom .custom-art {
  display: grid;
  min-height: 196px;
  place-items: center;
}

.custom-art-ring {
  display: grid;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(231, 121, 136, 0.35);
  border-radius: 50%;
  color: var(--rose);
  place-items: center;
}

.custom-art-ring .icon {
  width: 22px;
  height: 22px;
}

.theme-ember {
  --theme-a: #df9b62;
  --theme-b: #94414c;
  --theme-c: #4e252b;
}

.theme-midnight {
  --theme-a: #9d6a9e;
  --theme-b: #4c325f;
  --theme-c: #24172d;
}

.theme-blush {
  --theme-a: #e99aa0;
  --theme-b: #b44c66;
  --theme-c: #4b202d;
}

.theme-sage {
  --theme-a: #a8bea5;
  --theme-b: #46675d;
  --theme-c: #1f322f;
}

.privacy-section {
  padding-top: 20px;
}

.privacy-panel {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 0.8fr);
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(34px, 6vw, 78px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 121, 136, 0.18), transparent 38%),
    linear-gradient(135deg, #fbf2e7, #efe0d2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  overflow: hidden;
}

.privacy-panel::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(43, 25, 33, 0.1);
  border-radius: 50%;
  content: '';
}

.privacy-panel .kicker {
  color: var(--rose-deep);
}

.privacy-title {
  max-width: 540px;
  margin-top: 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.privacy-text {
  max-width: 480px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.privacy-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}

.privacy-point {
  padding: 18px 0;
  border-top: 1px solid rgba(43, 25, 33, 0.12);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.7;
}

.privacy-point:last-child {
  border-bottom: 1px solid rgba(43, 25, 33, 0.12);
}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(34px, 5vw, 60px);
  margin: 20px 0 102px;
  border: 1px solid rgba(232, 189, 132, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 100%, rgba(180, 60, 84, 0.2), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(232, 189, 132, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.024);
  overflow: hidden;
}

.banner::after {
  position: absolute;
  top: -90px;
  right: 10%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(232, 189, 132, 0.12);
  border-radius: 50%;
  content: '';
}

.banner-copy {
  position: relative;
  z-index: 1;
}

.banner-title {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.banner-text {
  max-width: 440px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.banner .btn {
  position: relative;
  z-index: 1;
  flex: none;
}

.recent-section {
  padding: 30px 0 72px;
  border-top: 1px solid var(--line);
}

.recent-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.recent-title {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.recent-text {
  margin-top: 7px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.history-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-row {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-out);
}

.history-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.history-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--gold);
  place-items: center;
}

.history-icon .icon {
  width: 17px;
  height: 17px;
}

.history-body {
  min-width: 0;
  flex: 1;
}

.history-title {
  display: block;
  overflow: hidden;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.history-meta .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.history-chevron {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--faint);
}

.footer {
  margin-top: auto;
  padding: 28px 0 calc(30px + var(--safe-bottom));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Create
   -------------------------------------------------------------------------- */

.page--create {
  background: transparent;
}

.create-main {
  flex: 1;
  padding: clamp(32px, 5vw, 64px) 0 0;
}

.create-head {
  max-width: 760px;
}

.create-title {
  margin-top: 20px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(58px, 8vw, 94px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.87;
}

.create-text {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.create-form {
  display: grid;
  gap: 42px;
  max-width: 980px;
  margin-top: clamp(38px, 5vw, 62px);
}

.form-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.form-section-title {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.form-section-note {
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.deck-option {
  --theme-a: #df9b62;
  --theme-b: #94414c;
  --theme-c: #4e252b;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-height: 124px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--cream);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-out);
}

.deck-option:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.deck-option.is-selected {
  border-color: rgba(232, 189, 132, 0.62);
  background: rgba(232, 189, 132, 0.06);
  box-shadow: inset 0 0 0 1px rgba(232, 189, 132, 0.16);
}

.deck-option-art {
  position: relative;
  width: 98px;
  flex: none;
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 24%, var(--theme-a) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, var(--theme-b) 0%, transparent 55%),
    linear-gradient(145deg, var(--theme-c), #160c12);
  overflow: hidden;
}

.deck-option-art::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 249, 242, 0.2);
  border-radius: 50%;
  content: '';
}

.deck-option-art .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  color: rgba(255, 249, 242, 0.8);
  transform: translate(-50%, -50%);
}

.deck-option-art--custom {
  display: grid;
  border: 1px dashed rgba(231, 121, 136, 0.38);
  background: rgba(231, 121, 136, 0.06);
  place-items: center;
}

.deck-option-art--custom .icon {
  position: static;
  color: var(--rose);
  transform: none;
}

.deck-option-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}

.deck-option-name {
  overflow: hidden;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-option-tagline {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.deck-option-meta {
  margin-top: 10px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deck-option-check {
  position: absolute;
  top: 20px;
  right: 18px;
  display: grid;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  place-items: center;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.deck-option-check .icon {
  width: 11px;
  height: 11px;
}

.deck-option.is-selected .deck-option-check {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.deck-option--custom .deck-option-name {
  font-style: italic;
}

.no-decks {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.custom-panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  animation: panel-in 0.4s var(--ease-out) both;
}

.custom-panel[hidden] {
  display: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.custom-panel-title {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.custom-panel-text {
  max-width: 520px;
  margin-top: 7px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
}

.field + .field {
  margin-top: 22px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-label small {
  color: var(--faint);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.field-hint {
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.5;
}

.input,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 6, 10, 0.28);
  color: var(--cream);
  font-size: 13px;
  line-height: 1.45;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(247, 237, 226, 0.28);
}

.input:focus,
.textarea:focus {
  border-color: rgba(232, 189, 132, 0.55);
  outline: none;
  background: rgba(12, 6, 10, 0.4);
}

.input.is-invalid,
.textarea.is-invalid {
  border-color: rgba(231, 121, 136, 0.8);
}

.textarea {
  min-height: 62px;
  resize: vertical;
}

.custom-cards {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.custom-card-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.custom-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.custom-card-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.custom-card-index .dot {
  width: 19px;
  height: 19px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0;
  place-items: center;
}

.remove-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.remove-card .icon {
  width: 12px;
  height: 12px;
}

.remove-card:hover {
  color: var(--rose);
}

.remove-card[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.add-card-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.add-card-button:hover {
  border-color: rgba(232, 189, 132, 0.48);
  background: rgba(232, 189, 132, 0.04);
  color: var(--cream);
}

.add-card-button .icon {
  width: 14px;
  height: 14px;
}

.language-section {
  max-width: 760px;
}

.language-choices {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.language-choice {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.language-choice:hover {
  border-color: var(--line-strong);
  color: var(--cream);
}

.language-choice.is-selected {
  border-color: rgba(232, 189, 132, 0.55);
  background: rgba(232, 189, 132, 0.07);
  color: var(--cream);
}

.language-choice strong {
  font-size: 12px;
  font-weight: 650;
}

.language-choice span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.language-hint {
  margin-top: 10px;
  color: var(--faint);
  font-size: 9.5px;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(231, 121, 136, 0.35);
  border-radius: 14px;
  background: rgba(231, 121, 136, 0.07);
  color: #f1b1b8;
  font-size: 11px;
  line-height: 1.55;
}

.form-alert .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.form-alert[hidden] {
  display: none;
}

.create-submit {
  position: sticky;
  z-index: 15;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 calc(18px + var(--safe-bottom));
  margin-top: 10px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 11, 16, 0.1), rgba(19, 11, 16, 0.94) 28%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.create-submit-note {
  max-width: 430px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.55;
}

.create-submit .btn {
  min-width: 246px;
  flex: none;
}

.create-bottom-space {
  height: 24px;
}

/* --------------------------------------------------------------------------
   Session shared
   -------------------------------------------------------------------------- */

.session-page {
  min-height: 100svh;
}

.session-header {
  position: relative;
  z-index: 20;
  padding-top: calc(17px + var(--safe-top));
  padding-bottom: 6px;
}

.session-header-inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
}

.session-header-side {
  display: flex;
  align-items: center;
}

.session-header-side--right {
  justify-content: flex-end;
  gap: 8px;
}

.session-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px 8px 8px;
  margin-left: -8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.session-back:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}

.session-back .icon {
  width: 16px;
  height: 16px;
}

.session-brand {
  justify-self: center;
}

.session-brand .brand-name {
  font-size: 21px;
}

.session-brand .brand-mark {
  width: 23px;
  height: 23px;
}

.session-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-lang-badge .icon {
  width: 12px;
  height: 12px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  place-items: center;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}

.icon-button .icon {
  width: 16px;
  height: 16px;
}

.session-main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Lobby
   -------------------------------------------------------------------------- */

.lobby {
  display: grid;
  width: min(calc(100% - 48px), 1080px);
  flex: 1;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(40px, 7vw, 100px);
  margin-inline: auto;
  padding: 38px 0 80px;
}

.lobby-copy {
  max-width: 560px;
}

.lobby-title {
  margin-top: 18px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(54px, 6.5vw, 82px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.lobby-text {
  max-width: 490px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.invite-panel {
  margin-top: 34px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.028);
  box-shadow: var(--shadow-soft);
}

.invite-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px 11px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 5, 8, 0.4);
}

.link-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
}

.link-input:focus {
  outline: none;
}

.link-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.link-actions .btn {
  flex: 1;
}

.link-copy {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.link-copy:hover {
  background: var(--cream-bright);
}

.link-copy .icon {
  width: 13px;
  height: 13px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
}

.status-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(232, 189, 132, 0.3);
  border-radius: 50%;
  content: '';
  animation: soft-pulse 2.4s ease-out infinite;
}

.status-line.is-live {
  color: var(--sage);
}

.status-line.is-live .status-dot {
  background: var(--sage);
}

.status-line.is-live .status-dot::after {
  border-color: rgba(169, 190, 170, 0.3);
}

@keyframes soft-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.lobby-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 26px;
}

.lobby-hint {
  max-width: 360px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.55;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.6;
}

.privacy-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex: none;
  color: var(--gold);
}

.lobby-art {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.lobby-art::before {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 74, 98, 0.27), transparent 68%);
  content: '';
  filter: blur(24px);
}

.sealed-stack {
  position: relative;
  width: min(78%, 310px);
  aspect-ratio: 0.705;
  transform: rotate(-4deg);
}

.sealed-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid rgba(232, 189, 132, 0.28);
  border-radius: 27px;
  background:
    radial-gradient(circle at 80% 10%, rgba(232, 189, 132, 0.13), transparent 42%),
    linear-gradient(150deg, #30202a, #1a1017 70%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.sealed-card::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(232, 189, 132, 0.13);
  border-radius: 17px;
  content: '';
}

.sealed-card::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(232, 189, 132, 0.09);
  border-radius: 50%;
  content: '';
  transform: translate(-50%, -50%);
}

.sealed-stack::before,
.sealed-stack::after {
  position: absolute;
  inset: 0;
  border-radius: 27px;
  content: '';
}

.sealed-stack::before {
  z-index: -1;
  background: #2c1a23;
  transform: translate(22px, 22px) rotate(7deg);
  opacity: 0.52;
}

.sealed-stack::after {
  z-index: -2;
  background: #22141c;
  transform: translate(42px, 40px) rotate(12deg);
  opacity: 0.35;
}

.sealed-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 237, 226, 0.42);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sealed-brand .icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.sealed-lock {
  position: relative;
  z-index: 1;
  display: grid;
  width: 73px;
  height: 73px;
  margin: auto;
  border: 1px solid rgba(232, 189, 132, 0.28);
  border-radius: 50%;
  color: var(--gold);
  place-items: center;
}

.sealed-lock::before,
.sealed-lock::after {
  position: absolute;
  border-radius: 50%;
  content: '';
}

.sealed-lock::before {
  inset: -11px;
  border: 1px solid rgba(232, 189, 132, 0.1);
}

.sealed-lock::after {
  inset: 10px;
  border: 1px solid rgba(232, 189, 132, 0.12);
}

.sealed-lock .icon {
  width: 25px;
  height: 25px;
}

.sealed-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: rgba(247, 237, 226, 0.35);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sealed-foot .icon {
  width: 15px;
  height: 15px;
  color: var(--rose);
}

/* --------------------------------------------------------------------------
   Swipe deck
   -------------------------------------------------------------------------- */

.deck-view {
  display: flex;
  width: min(calc(100% - 36px), 520px);
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding: 16px 0 calc(18px + var(--safe-bottom));
}

.deck-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 12px;
}

.deck-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

.deck-counter span {
  color: var(--faint);
  font: inherit;
  font-variant-numeric: tabular-nums lining-nums;
}

.deck-private {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.deck-private .icon {
  width: 11px;
  height: 11px;
  color: var(--gold);
}

.progress-track {
  width: 100%;
  max-width: 430px;
  height: 2px;
  margin: 0 auto 21px;
  border-radius: 999px;
  background: rgba(247, 237, 226, 0.09);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: width 0.4s var(--ease-out);
}

.card-stage {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: clamp(355px, 55svh, 474px);
  margin: 0 auto;
  perspective: 1400px;
  touch-action: none;
}

.stack-card {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(63, 34, 42, 0.14);
  border-radius: 29px;
  background: linear-gradient(150deg, #d9c6b6, #b49a91);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  pointer-events: none;
}

.stack-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(43, 25, 33, 0.12);
  border-radius: 50%;
  content: '';
  transform: translate(-50%, -50%);
}

.stack-card::after {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(43, 25, 33, 0.2);
  font-family: var(--font-display);
  font-size: 48px;
  font-style: italic;
  content: 'S';
  transform: translate(-50%, -50%);
}

.stack-card--1 {
  z-index: 1;
  transform: translateY(18px) scale(0.955) rotate(1.5deg);
  opacity: 0.7;
}

.stack-card--2 {
  z-index: 0;
  transform: translateY(34px) scale(0.91) rotate(-1.5deg);
  opacity: 0.38;
}

.swipe-card {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(23px, 5vw, 32px);
  border: 1px solid rgba(63, 34, 42, 0.1);
  border-radius: 29px;
  background:
    radial-gradient(circle at 100% 0%, rgba(224, 168, 137, 0.33), transparent 42%),
    linear-gradient(150deg, #fffaf3 0%, #f5e8da 57%, #eed9c7 100%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.46), 0 2px 0 rgba(255, 255, 255, 0.4) inset;
  color: var(--ink);
  cursor: grab;
  transform-origin: 50% 85%;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  content: '';
  mix-blend-mode: multiply;
  opacity: 0.07;
  pointer-events: none;
}

.swipe-card::after {
  position: absolute;
  z-index: 0;
  top: 31%;
  right: -24%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(163, 86, 86, 0.13);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.swipe-card.is-entering {
  animation: card-enter 0.46s var(--ease-out) both;
}

@keyframes card-enter {
  from {
    opacity: 0.42;
    transform: translateY(18px) scale(0.945) rotate(1.4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

.card-top,
.card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-top {
  color: rgba(43, 25, 33, 0.44);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.card-mini-brand .icon {
  width: 14px;
  height: 14px;
  color: var(--rose-deep);
}

.card-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(43, 25, 33, 0.42);
}

.card-number strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 20px 0;
}

.card-glyph {
  width: 24px;
  height: 24px;
  margin-bottom: 18px;
  color: var(--rose-deep);
  opacity: 0.78;
}

.card-title {
  max-width: 94%;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.card-description {
  max-width: 92%;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* Long custom cards keep the fixed swipe stage and still stay inside the card. */
.card-content--compact {
  padding: 14px 0;
}

.card-content--compact .card-glyph {
  margin-bottom: 10px;
}

.card-content--compact .card-title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: clamp(22px, 6vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.card-content--compact .card-description {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 10.2px;
  line-height: 1.5;
}

.card-content--dense {
  justify-content: flex-start;
  overflow: hidden;
  padding: 9px 0;
}

.card-content--dense .card-glyph {
  width: 17px;
  height: 17px;
  margin-bottom: 8px;
}

.card-content--dense .card-title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: clamp(15px, 4.6vw, 23px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.card-content--dense .card-description {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  font-size: clamp(8.5px, 2.4vw, 10px);
  line-height: 1.45;
}

.card-foot {
  padding-top: 15px;
  border-top: 1px solid rgba(43, 25, 33, 0.11);
  color: rgba(43, 25, 33, 0.36);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-seal {
  display: grid;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(43, 25, 33, 0.16);
  border-radius: 50%;
  color: var(--rose-deep);
  place-items: center;
}

.card-seal .icon {
  width: 11px;
  height: 11px;
}

.swipe-stamp {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 2px solid currentColor;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.swipe-stamp .icon {
  width: 14px;
  height: 14px;
}

.swipe-stamp--yes {
  top: 26px;
  left: 24px;
  color: var(--sage-deep);
  transform: rotate(-9deg);
}

.swipe-stamp--no {
  top: 26px;
  right: 24px;
  color: #b84b60;
  transform: rotate(9deg);
}

.swipe-stamp--maybe {
  top: 40%;
  left: 50%;
  padding: 9px 15px;
  color: var(--gold-deep);
  font-size: 12px;
  transform: translateX(-50%) rotate(-2deg);
}

.choice-bar {
  display: grid;
  width: 100%;
  max-width: 370px;
  align-items: start;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 44px auto 0;
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  transition: transform 0.2s var(--ease-out);
}

.choice:active {
  transform: scale(0.96);
}

.choice-circle {
  display: grid;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cream);
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice:hover .choice-circle {
  transform: translateY(-2px);
}

.choice-circle .icon {
  width: 22px;
  height: 22px;
}

.choice--no .choice-circle {
  border-color: rgba(231, 121, 136, 0.34);
  background: rgba(231, 121, 136, 0.07);
  color: #f09aa4;
}

.choice--no:hover .choice-circle {
  border-color: rgba(231, 121, 136, 0.6);
  background: rgba(231, 121, 136, 0.13);
}

.choice--maybe .choice-circle {
  width: 66px;
  height: 66px;
  margin-top: -4px;
  border-color: rgba(232, 189, 132, 0.38);
  background: rgba(232, 189, 132, 0.07);
  color: var(--gold);
}

.choice--maybe:hover .choice-circle {
  border-color: rgba(232, 189, 132, 0.65);
  background: rgba(232, 189, 132, 0.13);
}

.choice--yes .choice-circle {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.choice--yes:hover .choice-circle {
  background: var(--cream-bright);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.choice-label {
  color: var(--faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.swipe-hint {
  margin-top: 15px;
  color: rgba(247, 237, 226, 0.3);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Waiting
   -------------------------------------------------------------------------- */

.waiting-view {
  display: flex;
  width: min(calc(100% - 40px), 620px);
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 40px 0 90px;
  text-align: center;
}

.waiting-orbit {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  margin-bottom: 30px;
  border-radius: 50%;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(232, 189, 132, 0.18);
  border-radius: 50%;
}

.orbit-ring--one {
  inset: 0;
  animation: orbit-drift 8s linear infinite;
}

.orbit-ring--two {
  inset: 16px;
  border-color: rgba(231, 121, 136, 0.18);
  animation: orbit-drift 6s linear infinite reverse;
}

.orbit-ring--one::before,
.orbit-ring--two::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 189, 132, 0.8);
  content: '';
}

.orbit-ring--two::before {
  top: auto;
  right: 10%;
  bottom: 8%;
  left: auto;
  width: 4px;
  height: 4px;
  background: var(--rose);
  box-shadow: 0 0 12px rgba(231, 121, 136, 0.8);
}

@keyframes orbit-drift {
  to {
    transform: rotate(360deg);
  }
}

.orbit-center {
  display: grid;
  width: 65px;
  height: 65px;
  border: 1px solid rgba(232, 189, 132, 0.28);
  border-radius: 50%;
  background: rgba(232, 189, 132, 0.04);
  color: var(--gold);
  place-items: center;
}

.orbit-center .icon {
  width: 23px;
  height: 23px;
}

.waiting-kicker {
  justify-content: center;
}

.waiting-title {
  max-width: 520px;
  margin-top: 20px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.waiting-text {
  max-width: 410px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.waiting-panel {
  width: 100%;
  max-width: 460px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.026);
  text-align: left;
}

.progress-row {
  display: grid;
  gap: 8px;
}

.progress-row + .progress-row {
  margin-top: 17px;
}

.progress-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.progress-row-top span:last-child {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.progress-row .progress-track {
  height: 3px;
  margin: 0;
  max-width: none;
}

.progress-row .progress-fill {
  background: var(--cream);
}

.progress-row--partner .progress-fill {
  background: linear-gradient(90deg, var(--rose), var(--gold));
}

.waiting-note {
  max-width: 410px;
  margin-top: 24px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.65;
}

.waiting-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.waiting-small {
  max-width: 420px;
  margin-top: 16px;
  color: rgba(247, 237, 226, 0.28);
  font-size: 8.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Results
   -------------------------------------------------------------------------- */

.results-main {
  position: relative;
  flex: 1;
  padding: 30px 0 80px;
}

.results-wrap {
  width: min(calc(100% - 40px), 840px);
  margin-inline: auto;
}

.results-hero {
  position: relative;
  padding: 30px 0 20px;
  text-align: center;
}

.results-title {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 104px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.results-title em {
  color: var(--rose);
  font-style: italic;
}

.results-text {
  max-width: 500px;
  margin: 23px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.results-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 34px;
}

.results-count {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(60px, 13vw, 104px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.7;
}

.results-count-label {
  padding-top: 8px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: left;
}

.match-list {
  display: grid;
  gap: 10px;
  margin-top: 49px;
}

.match-card {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 19px 20px;
  border: 1px solid rgba(63, 34, 42, 0.08);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0%, rgba(224, 168, 137, 0.2), transparent 45%),
    linear-gradient(145deg, #fff9f2, #f1e1d2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  color: var(--ink);
  overflow: hidden;
  animation: match-rise 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 65ms + 160ms);
}

.match-card::after {
  position: absolute;
  top: -50px;
  right: 25%;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(43, 25, 33, 0.07);
  border-radius: 50%;
  content: '';
}

@keyframes match-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-index {
  color: rgba(43, 25, 33, 0.34);
  font-family: var(--font-display);
  font-size: 25px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.match-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.match-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.match-description {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.match-votes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.vote {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(43, 25, 33, 0.14);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vote b {
  color: var(--ink);
  font-weight: 800;
}

.vote--yes {
  border-color: rgba(95, 128, 104, 0.32);
  color: var(--sage-deep);
}

.vote--maybe {
  border-color: rgba(167, 119, 56, 0.32);
  color: var(--gold-deep);
}

.empty-result {
  display: flex;
  max-width: 520px;
  flex-direction: column;
  align-items: center;
  margin: 40px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.022);
  text-align: center;
}

.empty-rings {
  position: relative;
  width: 78px;
  height: 62px;
  margin-bottom: 18px;
}

.empty-rings i {
  position: absolute;
  top: 0;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(232, 189, 132, 0.38);
  border-radius: 50%;
}

.empty-rings i:first-child {
  left: 0;
}

.empty-rings i:last-child {
  right: 0;
  border-color: rgba(231, 121, 136, 0.38);
}

.empty-rings .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  color: var(--gold);
  transform: translate(-50%, -50%);
}

.empty-title {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.empty-text {
  max-width: 360px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 35px;
}

.result-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.result-note .icon {
  width: 12px;
  height: 12px;
  color: var(--gold);
}

.result-date {
  margin-top: 7px;
  color: rgba(247, 237, 226, 0.28);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  text-align: center;
}

.celebration {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.celebration span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 9px var(--c);
  opacity: 0;
  animation: twinkle 4.8s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.45) translateY(0);
  }
  35% {
    opacity: 0.8;
    transform: scale(1) translateY(-6px);
  }
  65% {
    opacity: 0.22;
    transform: scale(0.7) translateY(-11px);
  }
}

/* --------------------------------------------------------------------------
   Loading, not found, toasts
   -------------------------------------------------------------------------- */

.loading-screen {
  display: flex;
  min-height: 68svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.loading-mark {
  display: grid;
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  place-items: center;
  animation: loading-breathe 2.2s ease-in-out infinite;
}

.loading-mark .icon {
  width: 27px;
  height: 27px;
}

@keyframes loading-breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.loading-text {
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.not-found {
  display: flex;
  min-height: 74svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found-mark {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--rose);
  place-items: center;
}

.not-found-mark .icon {
  width: 25px;
  height: 25px;
}

.not-found-title {
  max-width: 540px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 74px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.93;
}

.not-found-text {
  max-width: 420px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.not-found .btn {
  margin-top: 28px;
}

.toast-host {
  position: fixed;
  z-index: 100;
  bottom: calc(22px + var(--safe-bottom));
  left: 50%;
  display: flex;
  width: min(calc(100% - 32px), 420px);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(247, 237, 226, 0.12);
  border-radius: 999px;
  background: rgba(247, 237, 226, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  pointer-events: auto;
  animation: toast-in 0.35s var(--ease-out) both;
}

.toast.is-leaving {
  animation: toast-out 0.25s ease both;
}

.toast--error {
  background: #f5d9dc;
  color: #6e2735;
}

.toast .icon {
  width: 14px;
  height: 14px;
  flex: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 38px;
    padding-bottom: 82px;
  }

  .hero-copy {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-copy .kicker {
    justify-content: center;
  }

  .hero-copy .kicker::after {
    width: 26px;
    height: 1px;
    flex: none;
    background: currentColor;
    content: '';
    opacity: 0.6;
  }

  .hero-title,
  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-art {
    min-height: 500px;
    max-width: 470px;
    margin-top: 8px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .lobby {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
    text-align: center;
  }

  .lobby-copy {
    margin-inline: auto;
  }

  .lobby-copy .kicker {
    justify-content: center;
  }

  .lobby-copy .kicker::after {
    width: 26px;
    height: 1px;
    flex: none;
    background: currentColor;
    content: '';
    opacity: 0.6;
  }

  .lobby-text {
    margin-inline: auto;
  }

  .invite-panel {
    text-align: left;
  }

  .lobby-start {
    justify-content: center;
  }

  .lobby-hint {
    text-align: center;
  }

  .privacy-note {
    justify-content: center;
    text-align: left;
  }

  .lobby-art {
    min-height: 380px;
    order: -1;
  }

  .sealed-stack {
    width: min(55%, 245px);
  }

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

  .banner .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .wrap,
  .wrap--narrow,
  .lobby,
  .deck-view {
    width: calc(100% - 32px);
  }

  .site-header {
    padding-top: calc(16px + var(--safe-top));
  }

  .header-actions {
    gap: 10px;
  }

  .nav-link,
  .header-actions > .btn {
    display: none;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 62px;
  }

  .hero-title {
    font-size: clamp(50px, 13.5vw, 78px);
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 13.5px;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 27px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 11px 16px;
    margin-top: 21px;
    font-size: 8px;
  }

  .hero-art {
    min-height: 425px;
    margin-top: 10px;
  }

  .art-card {
    width: min(67%, 280px);
    padding: 23px;
    border-radius: 23px;
  }

  .art-card--back {
    top: 34px;
    left: 1%;
  }

  .art-card--mid {
    top: 8px;
    right: 0;
  }

  .art-card--front {
    top: 48px;
  }

  .art-prompt {
    font-size: 28px;
  }

  .art-chip {
    padding: 8px 11px;
    font-size: 8px;
  }

  .art-chip--yes {
    top: 13%;
    right: 0;
  }

  .art-chip--maybe {
    bottom: 10%;
    left: 0;
  }

  .art-badge {
    right: 1%;
    bottom: 0;
    font-size: 8px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: clamp(40px, 11vw, 58px);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 32px;
  }

  .step {
    padding: 19px 20px 22px;
  }

  .step h3 {
    margin-top: 14px;
    font-size: 25px;
  }

  .packs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 31px;
  }

  .pack-tile {
    min-height: 0;
    display: grid;
    grid-template-columns: 100px 1fr;
  }

  .pack-art {
    height: 100%;
    min-height: 132px;
  }

  .pack-art-glyph .icon {
    width: 27px;
    height: 27px;
  }

  .pack-art-label {
    display: none;
  }

  .pack-content {
    padding: 18px;
  }

  .pack-name {
    font-size: 24px;
  }

  .pack-tagline {
    font-size: 10.5px;
  }

  .pack-meta {
    padding-top: 12px;
    margin-top: 12px;
    font-size: 8px;
  }

  .pack-tile--custom {
    display: block;
  }

  .pack-tile--custom .custom-art {
    min-height: 132px;
    border-bottom: 1px solid var(--line);
  }

  .privacy-panel {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .privacy-title {
    font-size: 39px;
  }

  .privacy-point {
    padding: 14px 0;
  }

  .banner {
    margin-bottom: 60px;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .banner-title {
    font-size: 37px;
  }

  .history-list {
    grid-template-columns: 1fr;
  }

  .recent-section {
    padding-bottom: 48px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .create-main {
    padding-top: 26px;
  }

  .create-title {
    font-size: clamp(56px, 17vw, 82px);
  }

  .create-text {
    font-size: 12.5px;
  }

  .create-form {
    gap: 34px;
    margin-top: 36px;
  }

  .form-section-title {
    font-size: 29px;
  }

  .deck-options {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .deck-option {
    min-height: 98px;
    gap: 13px;
    padding: 10px;
    border-radius: 19px;
  }

  .deck-option-art {
    width: 80px;
    border-radius: 13px;
  }

  .deck-option-name {
    font-size: 22px;
  }

  .deck-option-tagline {
    font-size: 9.5px;
  }

  .deck-option-meta {
    margin-top: 6px;
    font-size: 7.5px;
  }

  .deck-option-check {
    top: 16px;
    right: 14px;
    width: 19px;
    height: 19px;
  }

  .custom-panel {
    padding: 18px;
    border-radius: 23px;
  }

  .custom-panel-head {
    margin-bottom: 18px;
  }

  .custom-panel-title {
    font-size: 27px;
  }

  .custom-card-row {
    padding: 12px;
  }

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

  .create-submit {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    padding-top: 14px;
    padding-bottom: calc(14px + var(--safe-bottom));
  }

  .create-submit-note {
    display: none;
  }

  .create-submit .btn {
    min-width: 0;
    width: 100%;
    min-height: 54px;
  }

  .session-header-inner {
    gap: 8px;
  }

  .session-back {
    gap: 4px;
    padding-right: 6px;
    font-size: 9px;
  }

  .session-back span {
    display: none;
  }

  .session-brand .brand-name {
    font-size: 19px;
  }

  .session-brand .brand-mark {
    width: 20px;
    height: 20px;
  }

  .session-lang-badge {
    padding: 6px 8px;
    font-size: 7px;
  }

  .lobby {
    gap: 20px;
    padding-top: 11px;
    padding-bottom: 50px;
  }

  .lobby-art {
    min-height: 300px;
  }

  .sealed-stack {
    width: min(58%, 205px);
  }

  .sealed-card {
    padding: 20px;
    border-radius: 23px;
  }

  .sealed-card::before {
    inset: 12px;
    border-radius: 15px;
  }

  .sealed-lock {
    width: 60px;
    height: 60px;
  }

  .sealed-lock .icon {
    width: 21px;
    height: 21px;
  }

  .lobby-title {
    font-size: clamp(48px, 13vw, 65px);
  }

  .lobby-text {
    font-size: 12.5px;
  }

  .invite-panel {
    margin-top: 25px;
    padding: 12px;
  }

  .link-input {
    font-size: 10px;
  }

  .link-actions {
    flex-direction: column;
  }

  .link-actions .btn {
    width: 100%;
  }

  .lobby-start {
    flex-direction: column;
    align-items: stretch;
  }

  .lobby-start .btn {
    width: 100%;
  }

  .lobby-hint {
    text-align: center;
  }

  .deck-view {
    padding-top: 9px;
    padding-bottom: calc(10px + var(--safe-bottom));
    justify-content: flex-start;
  }

  .deck-topline {
    margin-bottom: 9px;
  }

  .progress-track {
    margin-bottom: 15px;
  }

  .card-stage {
    height: clamp(342px, 53svh, 450px);
  }

  .swipe-card {
    padding: 24px;
    border-radius: 25px;
  }

  .stack-card {
    border-radius: 25px;
  }

  .card-title {
    font-size: clamp(29px, 8.4vw, 39px);
  }

  .card-description {
    margin-top: 13px;
    font-size: 10.8px;
    line-height: 1.55;
  }

  .choice-bar {
    margin-top: 38px;
  }

  .choice-circle {
    width: 58px;
    height: 58px;
  }

  .choice--maybe .choice-circle {
    width: 62px;
    height: 62px;
  }

  .choice-circle .icon {
    width: 20px;
    height: 20px;
  }

  .swipe-hint {
    margin-top: 10px;
  }

  .waiting-view {
    padding-top: 25px;
    padding-bottom: 60px;
  }

  .waiting-orbit {
    width: 112px;
    height: 112px;
    margin-bottom: 25px;
  }

  .orbit-center {
    width: 57px;
    height: 57px;
  }

  .waiting-title {
    font-size: clamp(44px, 12vw, 62px);
  }

  .waiting-panel {
    margin-top: 26px;
    padding: 16px;
  }

  .results-main {
    padding-top: 18px;
    padding-bottom: 55px;
  }

  .results-wrap {
    width: calc(100% - 32px);
  }

  .results-hero {
    padding-top: 22px;
  }

  .results-title {
    font-size: clamp(52px, 15vw, 76px);
  }

  .results-text {
    margin-top: 17px;
    font-size: 11.5px;
  }

  .results-stat {
    margin-top: 27px;
  }

  .match-list {
    gap: 8px;
    margin-top: 35px;
  }

  .match-card {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 10px;
    padding: 16px 15px;
    border-radius: 18px;
  }

  .match-title {
    font-size: 21px;
  }

  .match-description {
    font-size: 9.8px;
  }

  .match-index {
    font-size: 21px;
  }

  .empty-result {
    margin-top: 31px;
    padding: 26px 20px;
  }

  .result-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
  }

  .result-actions .btn {
    width: 100%;
  }

  .not-found {
    min-height: 72svh;
    padding: 30px 0;
  }

  .toast-host {
    bottom: calc(14px + var(--safe-bottom));
  }
}

@media (max-width: 340px) {
  .header-inner {
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-name span {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .lang-pill select {
    min-width: 68px;
    padding: 8px 20px 8px 25px;
  }

  .lang-pill .lang-globe {
    left: 9px;
  }

  .lang-pill .lang-chevron {
    right: 7px;
  }
}

@media (max-width: 390px) {
  .hero-art {
    min-height: 390px;
  }

  .art-card {
    padding: 20px;
  }

  .art-prompt {
    font-size: 25px;
  }

  .art-note {
    margin-top: 11px;
  }

  .card-stage {
    height: clamp(325px, 50svh, 420px);
  }

  .swipe-card {
    padding: 21px;
  }

  .card-title {
    font-size: 28px;
  }

  .card-glyph {
    width: 20px;
    height: 20px;
    margin-bottom: 14px;
  }

  .choice-circle {
    width: 54px;
    height: 54px;
  }

  .choice--maybe .choice-circle {
    width: 58px;
    height: 58px;
  }

  .swipe-hint {
    font-size: 8px;
  }

  .results-count {
    font-size: 72px;
  }

  .results-count-label {
    font-size: 8px;
  }
}

@media (max-height: 710px) and (max-width: 760px) {
  .deck-view {
    justify-content: flex-start;
    padding-top: 2px;
  }

  .card-stage {
    height: clamp(305px, 48svh, 370px);
  }

  .card-title {
    font-size: clamp(26px, 7.8vw, 34px);
  }

  .card-description {
    font-size: 10px;
    margin-top: 10px;
  }

  .choice-bar {
    margin-top: 31px;
  }

  .swipe-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Application states
   -------------------------------------------------------------------------- */

.hero-title em {
  display: inline;
  white-space: normal;
}

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-turn 0.7s linear infinite;
}

@keyframes spinner-turn {
  to {
    transform: rotate(360deg);
  }
}

.packs-loading {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  border: 1px dashed var(--line);
  border-radius: 26px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.packs-error {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
  padding: 28px;
  border: 1px dashed rgba(231, 121, 136, 0.28);
  border-radius: 26px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
}

.text-link .icon {
  width: 14px;
  height: 14px;
}

.error-panel {
  display: flex;
  min-height: 64svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.waiting-no-partner {
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  line-height: 1.55;
}

.choice[disabled] {
  opacity: 0.42;
  pointer-events: none;
}

@media (max-width: 760px) {
  .create-submit {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .create-submit .btn {
    width: 100%;
    min-width: 0;
  }

  .create-submit-note {
    display: none;
  }

  .session-back-label {
    display: none;
  }

  .session-back {
    width: 40px;
    padding: 8px;
    justify-content: center;
  }

  .session-header-inner {
    gap: 10px;
  }

  .session-brand .brand-name {
    font-size: 19px;
  }

  .invite-label span:last-child {
    display: none;
  }

  .link-copy {
    padding-inline: 11px;
  }

  .waiting-actions .btn {
    flex: 1 1 auto;
  }

  .results-count-label {
    max-width: 82px;
  }
}

/* --------------------------------------------------------------------------
   Velvetly catalog, dialogs and session controls
   -------------------------------------------------------------------------- */

.session-delete-button,
.icon-button--danger {
  color: rgba(240, 154, 164, 0.82);
}

.icon-button--danger:hover {
  border-color: rgba(231, 121, 136, 0.42);
  background: rgba(231, 121, 136, 0.09);
  color: #f3aeb6;
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.flag .icon {
  width: 10px;
  height: 10px;
}

.flag--adult {
  border-color: rgba(231, 121, 136, 0.42);
  background: rgba(231, 121, 136, 0.09);
  color: #f0a0aa;
}

.flag--lock {
  border-color: rgba(232, 189, 132, 0.34);
  background: rgba(232, 189, 132, 0.07);
  color: var(--gold);
}

.pack-badges {
  display: flex;
  min-height: 21px;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pack-tile.is-locked .pack-art {
  filter: saturate(0.55) brightness(0.8);
}

.pack-tile.is-locked .pack-name {
  color: var(--muted);
}

.pack-cta--locked {
  color: var(--gold);
}

.categories-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.category-reset {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.category-reset:hover {
  border-color: var(--line-strong);
  color: var(--cream);
}

.categories-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.category-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 121, 136, 0.07), transparent 48%),
    rgba(255, 255, 255, 0.018);
  color: var(--cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.2s ease, background 0.2s ease;
}

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

.category-card.is-active {
  border-color: rgba(232, 189, 132, 0.55);
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 189, 132, 0.1), transparent 48%),
    rgba(232, 189, 132, 0.045);
}

.category-card--adult {
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 121, 136, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.018);
}

.category-top {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-name {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.category-text {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.categories-section .packs-grid {
  margin-top: 28px;
}

.packs-empty {
  margin-top: 28px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  text-align: center;
}

.packs-empty .no-decks {
  margin: 0;
}

.seen-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 52px;
}

.faq-section .section-title {
  max-width: 640px;
}

.faq-list {
  max-width: 780px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 2px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  content: '+';
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  max-width: 620px;
  padding: 0 2px 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

body.has-dialog {
  overflow: hidden;
}

.dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 20px;
  background: rgba(8, 5, 8, 0.72);
  opacity: 0;
  backdrop-filter: blur(7px);
  place-items: center;
  transition: opacity 0.18s ease;
}

.dialog-backdrop.is-open {
  opacity: 1;
}

.dialog-backdrop.is-closing {
  opacity: 0;
}

.dialog {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 121, 136, 0.08), transparent 46%),
    var(--bg-raised);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.22s var(--ease-out);
}

.dialog-backdrop.is-open .dialog {
  transform: translateY(0) scale(1);
}

.dialog--danger {
  border-color: rgba(231, 121, 136, 0.35);
}

.dialog-title {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.dialog-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 26px;
}

.dialog-actions .btn {
  flex: 1 1 auto;
}

.btn--danger {
  background: var(--rose-deep);
  color: var(--cream-bright);
}

.btn--danger:hover {
  background: #c8556c;
}

.btn.is-busy {
  opacity: 0.6;
}

@media (max-width: 900px) {
  .seen-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 0;
  }

  .category-name {
    margin-top: 14px;
  }
}

@media (max-width: 760px) {
  .session-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .session-back-label,
  .session-lang-badge {
    display: none;
  }

  .session-brand {
    justify-self: start;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .icon-button .icon {
    width: 16px;
    height: 16px;
  }

  .categories-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .categories-grid {
    gap: 8px;
    margin-top: 23px;
  }

  .category-card {
    padding: 17px;
  }

  .category-name {
    font-size: 25px;
  }

  .dialog {
    padding: 23px;
    border-radius: 24px;
  }

  .dialog-actions {
    flex-direction: column;
  }

  .dialog-actions .btn {
    width: 100%;
  }
}

/* The session back arrow already anchors the header; the monogram would double it. */
.session-brand .brand-mark {
  display: none;
}
