/* TinCord Design System — Velvet Nocturne Editorial (Red Vermilion, Burgundy & Warm Cream) */
:root {
  color-scheme: dark;

  /* Warm Obsidian & Espresso Charcoal Architecture */
  --bg: #09090b;
  --well: #0e0d10;
  --surface: #151316;
  --surface-2: #1c191d;
  --raised: #252126;
  --raised-hover: #302a31;

  /* Precision Hairlines & Specular Edge */
  --line: rgba(245, 240, 230, 0.088);
  --line-strong: rgba(245, 240, 230, 0.18);
  --sheen: inset 0 1px 0 rgba(247, 239, 228, 0.08);

  /* Warm Cream Ivory & Stone Typography (Harmonized With "tin") */
  --white: #f5f0e6;
  --muted: #a9a198;
  --dim: #79726a;

  /* Brand-Harmonized TinCord Accents (Vermilion Red + Champagne Sand) */
  --coral: #ec4e30;
  --coral-soft: #ff8568;
  --pink: #ec4e30;
  --iris: #cfa972;
  --iris-soft: #ead3ab;

  /* Semantic Decision Tokens */
  --nope: #ef4444;
  --superlike: #38bdf8;
  --like: #22e59b;
  --boost: #e59934;
  --rewind: #dfb04b;
  --green: #22e59b;
  --green-soft: #7bf5c4;

  /* Refined Brand Gradients (Harmonized With New Logo Burgundy, Vermilion & Cream) */
  --brand-grad: linear-gradient(135deg, #c6321e 0%, #ec4e30 54%, #fc6238 100%);
  --tinder-grad: linear-gradient(135deg, #dd3b22 0%, #f55a36 100%);

  /* Spatial & Radius Rhythm */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 72px;
  --radius: 18px;
  --radius-lg: 24px;

  /* Z-Index Scale */
  --z-sticky: 20;
  --z-nav: 40;
  --z-grain: 60;
  --z-skip: 80;

  /* Typography */
  --body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Bricolage Grotesque", "DM Sans", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Motion Curves */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  -webkit-tap-highlight-color: rgba(236, 78, 48, 0.16);
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

body {
  display: flow-root;
  position: relative;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(ellipse 68% 40% at 22% -10%, rgba(85, 29, 38, 0.34), transparent 62%),
    radial-gradient(ellipse 56% 36% at 82% -8%, rgba(236, 78, 48, 0.11), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--white);
  font: 400 16px/1.6 var(--body);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle Analog Film Grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

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

button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}

button,
a {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease-spring);
}

button {
  cursor: pointer;
  border: 0;
  color: inherit;
}

button:active:not(:disabled),
.btn:active:not(:disabled) {
  transform: scale(0.97) translateY(1px);
  transition-duration: 80ms;
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
}

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

:focus-visible {
  outline: 2px solid var(--iris-soft);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.06;
  letter-spacing: -0.033em;
  text-wrap: balance;
  scroll-margin-top: 96px;
}

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

.skip {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: var(--z-skip);
  background: var(--white);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

svg.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header & Navigation — StalkCord Two-Stage Split-Capsule Morph With Clean Top Scrim */
.topbar {
  --ease-apple-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-apple-out: cubic-bezier(0.23, 1, 0.32, 1);
  --pep-pill-bg: rgba(21, 18, 21, 0.92);
  --pep-pill-border: rgba(245, 240, 230, 0.14);
  --pep-pill-shadow:
    inset 0 1px 0 rgba(247, 239, 228, 0.09),
    0 16px 38px -12px rgba(0, 0, 0, 0.8);
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  width: 100%;
  margin: 0;
  padding: 16px 24px 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  isolation: isolate;
  transition: padding 380ms var(--ease-apple-spring);
}

.topbar.is-scrolled-surface {
  padding-top: 12px;
}

/* Deep Scrim Prevents Scrolled Headings From Clashing Behind Split Pills */
.topbar-scrim {
  position: absolute;
  inset: 0 0 auto 0;
  height: 112px;
  z-index: -10;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.95) 0%,
    rgba(9, 9, 11, 0.72) 48%,
    rgba(9, 9, 11, 0) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 52%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 52%, transparent 100%);
  transition: opacity 280ms var(--ease-apple-out);
}

.topbar.is-scrolled-surface .topbar-scrim {
  opacity: 1;
}

.navwrap {
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1220px;
  min-height: 54px;
  padding: 6px 8px;
  border-radius: 9999px;
  pointer-events: auto;
  transition:
    max-width 480ms var(--ease-apple-spring),
    padding 420ms var(--ease-apple-spring),
    transform 340ms var(--ease-apple-spring);
}

.topbar-pill-surface {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 9999px;
  background: var(--pep-pill-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--pep-pill-border);
  box-shadow: var(--pep-pill-shadow);
  pointer-events: none;
  transition:
    opacity 420ms var(--ease-apple-spring),
    background-color 320ms var(--ease-apple-out),
    border-color 320ms var(--ease-apple-out),
    transform 420ms var(--ease-apple-spring);
}

.brand,
.account,
.nav-item,
.btn,
.text-link,
.link-btn,
.row,
.pill,
.chip,
.media-link,
.combination,
.mini-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand {
  position: relative;
  z-index: 1;
  height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  gap: 0;
  white-space: nowrap;
  color: var(--white);
  pointer-events: auto;
  transition:
    background-color 400ms var(--ease-apple-spring),
    border-color 400ms var(--ease-apple-spring),
    box-shadow 400ms var(--ease-apple-spring),
    padding 400ms var(--ease-apple-spring),
    height 400ms var(--ease-apple-spring),
    transform 200ms var(--ease-spring);
}

.brand:hover {
  transform: scale(1.025);
}

.brand-banner {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(247, 239, 228, 0.16))
    drop-shadow(0 2px 12px rgba(236, 78, 48, 0.2));
}

.foot-logo {
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.92;
}

.topbar nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-inline: auto;
  transform-origin: center center;
  transition:
    opacity 360ms var(--ease-apple-spring),
    transform 400ms var(--ease-apple-spring);
}

.topbar-actions {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 2px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  pointer-events: auto;
  transition:
    background-color 400ms var(--ease-apple-spring),
    border-color 400ms var(--ease-apple-spring),
    box-shadow 400ms var(--ease-apple-spring),
    padding 400ms var(--ease-apple-spring),
    height 400ms var(--ease-apple-spring);
}

@media (min-width: 761px) {
  .topbar.is-morphed-down .navwrap {
    max-width: min(1380px, calc(100vw - 48px));
    padding: 3px 0;
    pointer-events: none;
  }

  .topbar.is-morphed-down .topbar-pill-surface {
    opacity: 0;
    transform: scaleX(1.012);
  }

  .topbar.is-morphed-down nav {
    opacity: 0;
    transform: translateY(-6px) scale(0.95);
    pointer-events: none;
  }

  .topbar.is-morphed-down .brand {
    height: 46px;
    padding: 0 18px 0 14px;
    background: var(--pep-pill-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-color: var(--pep-pill-border);
    box-shadow: var(--pep-pill-shadow);
  }

  .topbar.is-morphed-down .topbar-actions {
    height: 48px;
    padding: 5px 6px;
    background: var(--pep-pill-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-color: var(--pep-pill-border);
    box-shadow: var(--pep-pill-shadow);
  }
}

.nav-item,
.account,
.text-link,
.link-btn,
.icon-btn {
  background: transparent;
}

.nav-item {
  position: relative;
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow-wrap: normal;
  flex-shrink: 0;
  gap: 6px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.065);
  color: var(--white);
}

.nav-item.active,
.nav-item[aria-current="page"] {
  background: var(--white);
  border-color: var(--white);
  color: #09090b;
  font-weight: 750;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.16);
}

.nav-item.active svg,
.nav-item[aria-current="page"] svg {
  color: var(--coral);
}

.nav-count {
  font-size: 0.71rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--tinder-grad);
  border: 0;
  color: #ffffff;
  min-width: 19px;
  border-radius: 99px;
  padding: 1px 6px;
  line-height: 1.4;
  text-align: center;
}

.quick-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  padding: 7px 11px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 99px;
  min-height: 38px;
}

.quick-search:hover {
  background: var(--raised);
  color: var(--white);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

kbd {
  font: 600 0.72rem/1.2 var(--body);
  padding: 2px 6px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.account {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 6px 15px;
  min-height: 38px;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: var(--sheen);
}

.account:hover {
  background: var(--raised-hover);
  border-color: rgba(236, 78, 48, 0.45);
  transform: translateY(-1px);
}

.account img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

main {
  min-height: calc(100dvh - 180px);
  padding-block: 30px 80px;
}

main:has(> .thread-workspace) {
  min-height: 0;
  padding-block: 16px 20px;
}

img.avatar,
.account img,
.deck-avatar {
  background: #181316;
}

img.avatar[src$="/assets/logo-icon.png"],
.account img[src$="/assets/logo-icon.png"],
.deck-avatar[src$="/assets/logo-icon.png"] {
  object-fit: contain;
  padding: 14%;
  background: #181316;
}

/* Editorial Footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  border-top: 1px solid var(--line);
  padding-block: 32px 44px;
  font-size: 0.86rem;
  color: var(--muted);
}

.foot-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.foot-wordmark {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

.foot-wordmark span {
  color: var(--coral-soft);
}

.foot-note {
  color: var(--dim);
  font-size: 0.82rem;
}

.foot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.foot .text-link {
  font-size: 0.85rem;
  color: var(--muted);
}

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

/* Tactile Buttons With Specular Sheen Sweep */
.btn {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 0.92rem;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  box-shadow: var(--sheen);
}

.btn:hover:not(:disabled),
.option:hover,
.media-link:hover,
.chip:hover,
.match-row:hover {
  background: var(--raised-hover);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
}

.btn.primary {
  overflow: hidden;
  background: var(--brand-grad);
  border-color: rgba(255, 212, 196, 0.34);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(10, 4, 20, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 26px -10px rgba(236, 78, 48, 0.55);
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.26) 50%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 560ms var(--ease-out);
  pointer-events: none;
}

.btn.primary:hover:not(:disabled)::after {
  transform: translateX(120%);
}

.btn.primary:hover:not(:disabled) {
  filter: brightness(1.06);
  border-color: rgba(255, 222, 206, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 14px 32px -8px rgba(236, 78, 48, 0.68);
}

.btn.sm {
  font-size: 0.84rem;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 10px;
}

.btn.danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.38);
  color: #ffc5bd;
}

.btn.danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.62);
  color: #ffffff;
}

.media-link,
.text-link,
.link-btn {
  color: var(--iris-soft);
  font-weight: 600;
}

.text-link,
.link-btn,
.icon-btn {
  padding: 4px;
}

.icon-btn:hover {
  background: var(--raised);
  color: var(--white);
}

.media-link {
  width: fit-content;
  border-radius: 8px;
}

.text-link:hover,
.link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--white);
}

.danger,
.link-btn.danger {
  color: var(--coral-soft);
}

/* Text Helpers & Editorial Hierarchy */
.lead,
.desc,
.muted,
.helper,
.empty p,
.subhead p,
.option p,
.kline,
.message-head small {
  color: var(--muted);
}

.helper,
.kline {
  font-size: 0.87rem;
}

.helper.warning {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(236, 78, 48, 0.36);
  background: rgba(236, 78, 48, 0.1);
  color: #ffd8c8;
  line-height: 1.5;
}

.kicker,
.mini-meta,
.cardtype {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-title,
.subhead,
.panel-head,
.between,
.actions,
.buttons,
.pills,
.inline,
.game-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.section-title,
.subhead,
.panel-head,
.between {
  justify-content: space-between;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2,
.panel-head h2 {
  font-weight: 750;
  letter-spacing: -0.028em;
  font-size: 1.28rem;
}

.subhead {
  margin-block: 4px 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  align-items: end;
}

.subhead h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.subhead p {
  margin-top: 8px;
  max-width: 56ch;
}

/* Architectural Obsidian Surfaces With Cursor-Aware Spotlight Sheen */
.panel,
.empty,
.profile-card,
.list-card,
.server-card,
.directory-card,
.chat-panel {
  position: relative;
  background:
    radial-gradient(
      460px circle at var(--mx, 50%) var(--my, -20%),
      rgba(236, 78, 48, 0.065),
      transparent 55%
    ),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--sheen), 0 18px 42px -28px rgba(0, 0, 0, 0.82);
}

.panel-head {
  margin-bottom: 12px;
}

.panel-head > svg {
  color: var(--iris-soft);
}

.list-card {
  display: grid;
  gap: 14px;
}

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

.server-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.server-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.server-card .btn {
  justify-self: start;
}

.empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  padding: 56px 28px;
  border-radius: var(--radius-lg);
  background: var(--well);
}

.empty h2 {
  font-size: 1.58rem;
}

.empty p {
  max-width: 38ch;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(207, 169, 114, 0.12);
  border: 1px solid rgba(207, 169, 114, 0.28);
  color: var(--coral-soft);
}

/* Grids, Forms & Controls */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.stack,
.form,
.form-grid,
.chat-matches,
.message-list {
  display: grid;
  gap: 14px;
}

.stack {
  align-content: start;
}

.form-grid {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  min-width: 0;
}

.field span {
  font-size: 0.79rem;
  color: var(--muted);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  background-color: var(--well);
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  min-height: 44px;
  padding: 9px 12px;
  min-width: 0;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

select option {
  background-color: #151316;
  color: #f5f0e6;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--iris-soft);
  box-shadow: 0 0 0 3px rgba(207, 169, 114, 0.18);
}

input::placeholder,
textarea::placeholder {
  color: var(--dim);
}

textarea {
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  accent-color: var(--coral);
  flex: none;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 4px 0;
}

.actions,
.buttons,
.pills,
.inline {
  flex-wrap: wrap;
}

.actions {
  justify-content: flex-start;
}

.pref-fields {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 14px;
  margin: 0;
  background: var(--well);
}

.pref-fields legend {
  color: var(--iris-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 6px;
}

.form-error {
  color: #ffb8c6;
  line-height: 1.45;
  font-size: 0.89rem;
  min-height: 0;
}

.form-error:empty {
  display: none;
}

/* Editorial Tags, Pills & Interactive Chips */
.pills {
  gap: 6px;
}

.pill,
.chip {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 11px;
  font-size: 0.79rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--white);
  transition: transform 180ms var(--ease-spring), border-color 180ms ease, background-color 180ms ease;
}

.chip {
  cursor: pointer;
  min-height: 34px;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.pill.pink,
.chip.sel {
  background: rgba(236, 78, 48, 0.16);
  border-color: rgba(236, 78, 48, 0.45);
  color: #ffd3c4;
}

.pill.green {
  color: var(--green-soft);
  background: rgba(34, 229, 155, 0.12);
  border-color: rgba(34, 229, 155, 0.34);
}

.pill.lilac {
  color: var(--iris-soft);
  background: rgba(207, 169, 114, 0.14);
  border-color: rgba(207, 169, 114, 0.34);
}

.cardtype {
  color: var(--iris-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature {
  background: var(--well);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
}

.feature strong {
  font-size: 0.98rem;
}

.feature .btn {
  justify-self: start;
}

/* Avatars & Profile Identity */
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--raised);
  object-fit: cover;
}

.avatar.lg {
  width: 82px;
  height: 82px;
  border-radius: 18px;
}

.profile-id {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-id h2 {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.panel p + .buttons {
  margin-top: 14px;
}

.profile-banner {
  display: block;
  object-fit: cover;
  width: 100%;
  max-height: 160px;
  aspect-ratio: 3.6;
  border-radius: 12px;
}

.discord-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discord-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  background: rgba(207, 169, 114, 0.13);
  border: 1px solid rgba(207, 169, 114, 0.3);
  color: var(--iris-soft);
  border-radius: 99px;
  padding: 3px 9px;
}

/* Live Radar Pulse Presence Dot */
@keyframes radarPulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(34, 229, 155, 0.65), 0 0 0 0 rgba(34, 229, 155, 0.38);
  }
  65% {
    box-shadow: 0 0 12px rgba(34, 229, 155, 0.9), 0 0 0 6px rgba(34, 229, 155, 0);
  }
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: radarPulse 2.4s ease-out infinite;
}

.on-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-soft);
  font-size: 0.76rem;
  font-weight: 650;
  margin-bottom: 4px;
}

/* Picks & Likes Shared Primitives */
.tinder-likes-screen {
  display: grid;
  gap: 22px;
}

.tinder-likes-screen > .subhead {
  margin-bottom: 0;
}

.tinder-likes-screen [role="tabpanel"]:not([hidden]) {
  display: grid;
  gap: 22px;
}

.tinder-top-tabs {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--well);
  border: 1px solid var(--line);
}

.tinder-top-tabs button {
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.87rem;
}

.tinder-top-tabs button:hover {
  color: var(--white);
}

.tinder-top-tabs button[aria-selected="true"] {
  background: var(--white);
  color: #09090b;
  font-weight: 750;
}

.tinder-section {
  display: grid;
  gap: 12px;
}

.tinder-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tinder-section-head h2 {
  font-size: clamp(1.2rem, 2.1vw, 1.48rem);
  font-weight: 750;
  color: var(--white);
  letter-spacing: -0.025em;
}

.tinder-see-more {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.tinder-see-more:hover {
  color: var(--white);
}

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

.tinder-pick-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--well);
  border: 1px solid var(--line);
  cursor: pointer;
}

.tinder-pick-open {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.tinder-pick-open img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms var(--ease-out);
}

.tinder-pick-card:hover .tinder-pick-open img {
  transform: scale(1.045);
}

.tinder-pick-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(9, 9, 11, 0.64) 70%, rgba(9, 9, 11, 0.96) 100%);
  pointer-events: none;
}

.tinder-pick-meta {
  position: absolute;
  inset: auto 54px 12px 12px;
  display: grid;
  gap: 3px;
  z-index: 2;
  color: var(--white);
}

.tinder-active-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #e4e2ef;
}

.tinder-pick-meta strong {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tinder-pick-meta strong span {
  font-weight: 500;
  opacity: 0.85;
}

.tinder-super-fab {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 13, 16, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: var(--superlike);
}

.tinder-super-fab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tinder-super-fab:hover:not(:disabled) {
  background: var(--superlike);
  color: #09090b;
  transform: scale(1.08) rotate(12deg);
}

.tinder-incoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

/* Voice Intro Button & Profile Voice Editor */
.voice-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 8px 0 4px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 13, 16, 0.88);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 650;
}

.voice-play-btn:hover {
  background: var(--raised);
  border-color: var(--iris-soft);
  transform: translateY(-1px);
}

.voice-play-btn[aria-pressed="true"] {
  background: rgba(236, 78, 48, 0.2);
  border-color: rgba(236, 78, 48, 0.58);
  color: #ffd5e1;
}

.voice-editor {
  display: grid;
  gap: 10px;
}

.voice-editor h3 {
  font-size: 1.08rem;
}

.voice-current,
.voice-preview {
  display: grid;
  gap: 8px;
}

.voice-current audio,
.voice-preview audio {
  width: 100%;
  height: 40px;
  border-radius: 10px;
}

.voice-current .btn {
  justify-self: start;
}

/* Group Plans Primitives */
.group-plan-card {
  gap: 14px;
}

.group-plan-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-plan-head .avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.group-plan-head strong {
  display: block;
  font-size: 0.98rem;
}

.group-plan-head small {
  color: var(--muted);
  font-size: 0.82rem;
}

.group-plan-card h2 {
  font-size: 1.28rem;
}

.group-members,
.group-pending {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.group-members small,
.group-pending small {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--well);
}

.room-account-panel .buttons {
  margin-top: 12px;
}

/* Directory Base */
.directory-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.directory-filters .field:first-child {
  flex: 2;
  min-width: 170px;
}

.directory-filters .field {
  flex: 1;
  min-width: 120px;
}

.directory-filters .check {
  align-self: center;
  font-size: 0.88rem;
}

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

.person-detail,
.quick-results {
  display: grid;
  gap: 12px;
}

.quick-results {
  margin-top: 12px;
}

.match-row {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--well);
  width: 100%;
  cursor: pointer;
}

.match-row.sel {
  border-color: rgba(236, 78, 48, 0.5);
  background: rgba(236, 78, 48, 0.12);
}

.match-row .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Dialogs — Outer <dialog> Is Strictly Transparent To Prevent Ghost Shells During Exit */
dialog:not([open]) {
  display: none !important;
}

dialog {
  color: var(--white);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  width: min(520px, calc(100% - 28px));
  max-height: 90dvh;
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(7, 6, 8, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: tcBackdropIn 220ms ease-out;
}

.dialog-inner {
  position: relative;
  padding: 28px;
  display: grid;
  gap: 14px;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 22px;
  box-shadow:
    var(--sheen),
    0 32px 90px -18px rgba(0, 0, 0, 0.92);
}

.dialog-inner h2 {
  font-size: 1.75rem;
  margin-right: 36px;
  margin-bottom: 4px;
}

.dialog-inner .desc {
  margin-bottom: 6px;
}

.close {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: var(--muted);
  line-height: 1;
  border-radius: 50%;
  width: 38px;
  height: 38px;
}

.close:hover {
  transform: rotate(90deg) scale(1.06);
}

.otp-input {
  font: 700 1.45rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  background: var(--well);
  text-align: center;
  letter-spacing: 0.36em;
}

.dm-guide,
.dm-help {
  color: var(--muted);
  font-size: 0.92rem;
}

.dm-guide {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.dm-guide-banner {
  display: block;
  width: 100%;
  height: 136px;
  object-fit: cover;
  object-position: center 48%;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.85);
}

.community-invite {
  color: var(--iris-soft);
  border-color: rgba(207, 169, 114, 0.34);
}

.dm-help summary {
  cursor: pointer;
  color: var(--iris-soft);
}

.dm-help p {
  margin-block: 8px;
}

/* Full-Screen Match Celebration Overlay */
dialog:has(.match-celebration) {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
}

dialog:has(.match-celebration) .dialog-inner {
  min-height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(ellipse 60% 48% at 50% 42%, rgba(85, 29, 38, 0.42), transparent 68%),
    radial-gradient(ellipse 46% 36% at 50% 56%, rgba(236, 78, 48, 0.22), transparent 62%),
    rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(18px);
}

dialog:has(.match-celebration) #dialog-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

dialog:has(.match-celebration) #close-dialog {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--white);
}

.match-celebration {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  max-width: 560px;
  width: 100%;
  padding: clamp(24px, 4vw, 40px);
}

.match-burst {
  position: absolute;
  inset: -40px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 78, 48, 0.24), rgba(207, 169, 114, 0.1) 45%, transparent 70%);
  animation: match-burst 2s var(--ease-out) forwards;
  pointer-events: none;
}

.match-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iris-soft);
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid rgba(207, 169, 114, 0.34);
  background: rgba(207, 169, 114, 0.12);
}

.match-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.3rem, 8vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #f7efe4 12%, #f0c993 52%, #fc6238 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.match-pair {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 4px;
}

.match-pair > img {
  width: clamp(92px, 16vw, 118px);
  height: clamp(92px, 16vw, 118px);
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid rgba(236, 78, 48, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.74);
  animation: match-glide-left 540ms var(--ease-spring) both;
}

.match-pair > img:last-child {
  border-color: rgba(234, 211, 171, 0.68);
  animation-name: match-glide-right;
}

.match-heart {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(236, 78, 48, 0.55);
  animation: celebrate-heart 580ms var(--ease-spring) both;
}

.match-heart svg {
  fill: currentColor;
}

.match-copy {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34ch;
}

.match-copy strong {
  color: var(--white);
}

.match-celebration .buttons {
  justify-content: center;
  margin-top: 6px;
}

@keyframes match-glide-left {
  from {
    opacity: 0;
    transform: translateX(-34px) rotate(-12deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(-5deg);
  }
}

@keyframes match-glide-right {
  from {
    opacity: 0;
    transform: translateX(34px) rotate(12deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(5deg);
  }
}

@keyframes match-burst {
  from {
    opacity: 0;
    transform: scale(0.65);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes celebrate-heart {
  0% {
    transform: scale(0.4);
    opacity: 0.2;
  }
  70% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: #09090b;
  max-width: min(480px, 90vw);
  width: max-content;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72);
  z-index: var(--z-nav);
}

#notice:empty {
  display: none;
}

.shortcuts {
  margin: 0;
}

.shortcuts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.shortcuts > div:last-child {
  border-bottom: 0;
}

.loading {
  color: var(--muted);
  padding: 36px 0;
}

/* Skeleton Loader Utility */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skeleton-card {
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: cm-shimmer 1.6s infinite linear;
}

@keyframes cm-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Legal Pages (KVKK & Terms) */
.legal-page .topbar {
  position: static;
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.legal-wrap {
  max-width: 820px;
  padding-block: 40px 84px;
}

.legal-card {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 4.5vw, 52px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.legal-eyebrow {
  justify-self: start;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(207, 169, 114, 0.34);
  background: rgba(207, 169, 114, 0.12);
  color: var(--iris-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-card h1 {
  font-size: clamp(1.95rem, 3.8vw, 2.9rem);
  letter-spacing: -0.035em;
}

.legal-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.legal-card section {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  font-size: 1.22rem;
  color: var(--white);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.68;
}

.legal-card strong {
  color: var(--white);
}

.legal-card ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-card code {
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--iris-soft);
  font-size: 0.86em;
}

/* Discovery Daily Picks Dossier */
.daily-picks {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.daily-picks .section-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-picks .section-title svg {
  color: var(--coral-soft);
  width: 18px;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.pick-card {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  cursor: pointer;
}

.pick-card:hover {
  border-color: rgba(236, 78, 48, 0.42);
  background: var(--surface-2);
  transform: translateX(3px);
}

.pick-card .avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
}

.pick-card strong,
.pick-card small {
  display: block;
}

.pick-card small {
  margin-top: 2px;
  font-size: 0.79rem;
  color: var(--muted);
}

/* Architectural Editorial Activity Ledger */
.activity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 0.85rem;
  color: var(--muted);
}

.activity-strip > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  padding-inline: 14px;
}

.activity-strip > span + span {
  border-left: 1px solid var(--line);
}

.activity-strip svg {
  color: var(--iris-soft);
}

.activity-strip b {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .topbar {
    padding-inline: 16px;
  }
  .navwrap {
    gap: 8px;
    padding-inline: 10px;
  }
  .nav-item {
    padding: 7px 10px;
    font-size: 0.82rem;
  }
  .quick-search kbd {
    display: none;
  }
  .directory-grid,
  .server-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tinder-pick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.8fr);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .topbar {
    position: static;
    top: auto;
    padding: 10px 12px 0;
  }
  .topbar-scrim {
    display: none;
  }
  .navwrap {
    width: 100%;
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
    min-height: 52px;
    border-radius: 16px;
  }
  .topbar-pill-surface {
    border-radius: 16px;
  }
  .topbar-actions {
    margin-left: auto;
  }
  .account {
    margin-left: 0;
    min-height: 40px;
    font-size: 0.83rem;
    padding: 6px 12px;
  }
  .quick-search {
    min-height: 40px;
    min-width: 40px;
    justify-content: center;
  }
  .brand {
    font-size: 1.2rem;
  }
  .brand-banner {
    height: 27px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding-bottom: 2px;
  }
  .nav-item {
    font-size: 0.76rem;
    padding: 6px 10px;
    min-height: 36px;
  }
  .nav-item svg {
    display: none;
  }
  main {
    padding-block: 16px 48px;
  }
  .subhead {
    align-items: start;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 18px;
  }
  .subhead h1 {
    font-size: 2.15rem;
  }
  .activity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 16px 4px;
  }
  .activity-strip > span {
    justify-content: flex-start;
    padding-inline: 0;
  }
  .activity-strip > span + span {
    border-left: 0;
  }
  .directory-grid,
  .server-grid,
  .skeleton-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .tinder-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tinder-pick-card {
    border-radius: 14px;
  }
  .tinder-super-fab {
    width: 36px;
    height: 36px;
    right: 8px;
    bottom: 8px;
  }
  .tinder-pick-meta {
    inset: auto 48px 10px 10px;
  }
  .directory-filters {
    gap: 10px;
  }
  .directory-filters .field:first-child {
    flex-basis: 100%;
  }
  .panel,
  .profile-card,
  .list-card,
  .server-card,
  .chat-panel {
    padding: 18px;
    border-radius: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Fluid Design-Spells Motion & Interactive Choreography (GPU Composited) */
@keyframes tcReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.982);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tcDialogIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tcBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tcBubblePop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tcShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.night-stage,
.activity-strip,
.how-step,
.feature-tile,
.starter,
.cta-band,
.tinder-pick-card,
.directory-card,
.server-card,
.likes-card,
.deck-intro,
.deck-center,
.deck-support,
.chat-panel,
.thread-sidebar {
  animation: tcReveal 460ms var(--ease-out) both;
}

.how-step:nth-child(2),
.feature-tile:nth-child(2),
.starter:nth-child(2),
.tinder-pick-card:nth-child(2),
.directory-card:nth-child(2),
.server-card:nth-child(2),
.likes-card:nth-child(2) {
  animation-delay: 55ms;
}

.how-step:nth-child(3),
.feature-tile:nth-child(3),
.starter:nth-child(3),
.tinder-pick-card:nth-child(3),
.directory-card:nth-child(3),
.server-card:nth-child(3),
.likes-card:nth-child(3) {
  animation-delay: 110ms;
}

.feature-tile:nth-child(4),
.tinder-pick-card:nth-child(4),
.directory-card:nth-child(4),
.server-card:nth-child(4),
.likes-card:nth-child(4) {
  animation-delay: 165ms;
}

.directory-card,
.server-card,
.list-card,
.likes-card,
.tinder-pick-card,
.feature-tile,
.starter {
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 260ms var(--ease-out),
    transform 280ms var(--ease-out);
}

.directory-card:hover,
.server-card:hover,
.likes-card:hover,
.tinder-pick-card:hover,
.feature-tile:hover,
.starter:hover {
  border-color: rgba(236, 78, 48, 0.42);
  transform: translateY(-4px);
  box-shadow:
    var(--sheen),
    0 22px 48px -20px rgba(0, 0, 0, 0.88),
    0 0 28px -14px rgba(236, 78, 48, 0.24);
}

.bubble {
  animation: tcBubblePop 260ms var(--ease-out) both;
}

dialog[open] > .dialog-inner {
  animation: tcDialogIn 300ms var(--ease-out);
}

#notice:not(:empty) {
  animation: tcDialogIn 260ms var(--ease-spring) both;
}

.form-error:not(:empty) {
  animation: tcShake 340ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  button:active:not(:disabled),
  .btn:active:not(:disabled) {
    transform: none !important;
  }
}

.cm-still *,
.cm-still *::before,
.cm-still *::after {
  transition: none !important;
  animation: none !important;
}

.cm-still button:active:not(:disabled),
.cm-still .btn:active:not(:disabled) {
  transform: none !important;
}
