/* “机”缘 product shell — selected Product Design direction */
:root {
  --product-rail: 76px;
  --product-rail-expanded: 184px;
  --product-content-gutter: max(clamp(38px, 6vw, 92px), calc(var(--product-rail-expanded) - var(--product-rail) + 32px));
  --product-ticker: 42px;
  --product-black: #121118;
  --product-black-2: #1a1921;
  --product-paper: #f8f7f2;
  --product-violet: #7659df;
  --product-violet-soft: #eee9ff;
  --product-hairline: rgba(18, 17, 24, 0.13);
}

.jiyuan-locale-switch {
  position: fixed;
  z-index: 10020;
  right: 18px;
  bottom: calc(var(--product-ticker, 0px) + 14px);
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #17151d;
  border-radius: 999px;
  color: #17151d;
  background: rgba(247, 244, 238, 0.94);
  box-shadow: 0 7px 22px rgba(16, 13, 24, 0.16);
  font: 800 12px/1 Inter, sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.jiyuan-locale-switch:hover { background: #fff; transform: translateY(-1px); }
.jiyuan-locale-switch:focus-visible { outline: 3px solid rgba(129, 102, 232, 0.38); outline-offset: 2px; }

@media (max-width: 768px) {
  .jiyuan-locale-switch { right: 12px; bottom: 84px; }
}

body:has(.product-shell) {
  background: var(--product-paper);
}

body:has(.landing-shell) {
  background: var(--product-paper);
}

.landing-shell {
  min-height: 148vh;
  padding-bottom: var(--product-ticker);
  overflow: clip;
  color: var(--product-black);
  background:
    linear-gradient(rgba(18, 17, 24, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 17, 24, .018) 1px, transparent 1px),
    var(--product-paper);
  background-size: 28px 28px;
}

.landing-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 106px;
  padding: 0 clamp(34px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(18, 17, 24, .08);
  background: color-mix(in srgb, var(--product-paper) 88%, transparent);
  backdrop-filter: blur(16px);
}

.landing-brand { display: inline-flex; align-items: center; gap: 13px; }
.landing-brand .brand-mark { width: 44px; height: 44px; }
.landing-brand strong { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .08em; }

.landing-auth { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 720; }
.landing-register { min-width: 94px; height: 46px; padding: 0 22px; background: var(--product-black); color: #fff; transition: transform 180ms ease, background 180ms ease; }
.landing-register:hover { transform: translateY(-2px); background: var(--product-violet); }
.landing-auth--signed { gap: 8px; }
.landing-auth--signed button:first-child { min-width: 148px; padding: 8px 15px; display: flex; flex-direction: column; align-items: flex-start; background: var(--product-black); color: #fff; }
.landing-auth--signed span, .landing-auth--signed small { display: block; }
.landing-auth--signed small { margin-top: 2px; color: rgba(255,255,255,.52); font-family: var(--font-mono); font-size: 9px; }
.landing-auth--signed button:last-child { height: 46px; padding: 0 14px; border: 1px solid var(--product-black); }

.landing-main { width: min(1500px, 100%); margin: 0 auto; }
.landing-hero {
  min-height: calc(100vh - 106px - var(--product-ticker));
  padding: clamp(44px, 7vh, 82px) clamp(34px, 7vw, 112px) clamp(52px, 8vh, 94px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
}

.landing-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.landing-live { width: fit-content; display: grid; grid-template-columns: 8px auto auto; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; }
.landing-live i { width: 8px; height: 8px; border-radius: 50%; background: #62bd4f; box-shadow: 0 0 0 5px rgba(98,189,79,.12); animation: landingLive 1.8s ease-in-out infinite; }
.landing-live span { font-weight: 850; }
.landing-live b { padding-left: 10px; border-left: 1px solid var(--product-hairline); color: rgba(18,17,24,.38); font-size: 9px; letter-spacing: .12em; }
.landing-copy h1 { margin-top: clamp(42px, 7vh, 76px); font-size: clamp(74px, 9.2vw, 148px); line-height: .82; letter-spacing: -.085em; }
.landing-copy h1 span, .landing-copy h1 strong { display: block; }
.landing-copy h1 span { font-weight: 520; }
.landing-copy h1 strong { margin-left: clamp(32px, 5vw, 86px); color: var(--product-violet); font-weight: 780; }
.landing-copy > p { max-width: 480px; margin: 42px 0 0 clamp(32px, 5vw, 86px); color: rgba(18,17,24,.54); font-size: 17px; line-height: 1.7; }
.landing-scroll-cue { width: fit-content; margin: auto 0 0; display: inline-flex; align-items: center; gap: 10px; color: rgba(18,17,24,.46); font-family: var(--font-mono); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.landing-scroll-cue .icon { transform: rotate(90deg); }

.landing-match {
  position: fixed;
  z-index: 30;
  top: 50%;
  right: clamp(34px, 7vw, 112px);
  width: clamp(238px, 22vw, 310px);
  aspect-ratio: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  border: 3px solid var(--product-black);
  border-radius: 4px;
  background: var(--product-black);
  color: #fff;
  box-shadow: 12px 12px 0 #b9a5ff;
  isolation: isolate;
  transform: translateY(-50%);
  transition: transform 420ms cubic-bezier(.22,1,.36,1), box-shadow 420ms cubic-bezier(.22,1,.36,1);
}
.landing-match::before { content: ""; position: absolute; z-index: -1; inset: 60% -30% -26%; transform: rotate(-12deg); background: repeating-linear-gradient(90deg, #b9a5ff 0 28px, var(--product-black) 28px 44px); transition: inset 500ms cubic-bezier(.22,1,.36,1); }
.landing-match::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(118deg, transparent 35%, rgba(255,255,255,.08) 48%, transparent 60%); transform: translateX(-130%); transition: transform 700ms cubic-bezier(.22,1,.36,1); }
.landing-match:hover { animation: landingMatchHoverShake 460ms cubic-bezier(.22,1,.36,1) both; box-shadow: 20px 20px 0 #b9a5ff; }
.landing-match:hover::before { inset: 48% -30% -20%; }
.landing-match:hover::after { transform: translateX(130%); }
.landing-match-code { font-family: var(--font-mono); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.landing-match strong { font-size: clamp(62px, 6vw, 88px); line-height: .82; letter-spacing: -.08em; }
.landing-match-action { width: 100%; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 780; }
.landing-match > i { position: absolute; right: 26px; top: 26px; width: 10px; height: 10px; border: 2px solid #b9a5ff; border-radius: 50%; }

.landing-more { min-height: 48vh; padding: 64px clamp(34px, 7vw, 112px) 96px; border-top: 1px solid var(--product-hairline); background: rgba(255,255,255,.28); }
.landing-statement { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; font-size: clamp(28px, 3vw, 48px); letter-spacing: -.045em; }
.landing-statement span { color: rgba(18,17,24,.35); }
.landing-statement strong { text-align: right; }
.landing-lower-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(320px, .75fr) 1.25fr; gap: 18px; }
.landing-contact, .landing-reserved { min-height: 146px; padding: 26px; border: 1px solid var(--product-hairline); background: var(--product-paper); }
.landing-contact { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 10px 22px; text-align: left; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.landing-contact span { font-size: 25px; font-weight: 780; }
.landing-contact small { color: rgba(18,17,24,.46); font-size: 11px; }
.landing-contact .icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; transform: rotate(-45deg); }
.landing-contact:hover { transform: translateY(-3px); background: var(--product-black); color: #fff; }
.landing-contact:hover small { color: rgba(255,255,255,.55); }
.landing-reserved { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 20px; color: rgba(18,17,24,.35); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.landing-reserved i { display: block; height: 1px; background: var(--product-hairline); }

@keyframes landingLive { 50% { opacity: .52; transform: scale(.82); } }
@keyframes landingMatchHoverShake {
  0% { transform: translate3d(0, -50%, 0) rotate(0); }
  22% { transform: translate3d(-4px, calc(-50% - 4px), 0) rotate(-.7deg); }
  44% { transform: translate3d(1px, calc(-50% - 8px), 0) rotate(.55deg); }
  66% { transform: translate3d(-9px, calc(-50% - 6px), 0) rotate(-.35deg); }
  82% { transform: translate3d(-5px, calc(-50% - 8px), 0) rotate(.18deg); }
  100% { transform: translate3d(-7px, calc(-50% - 7px), 0) rotate(0); }
}

.product-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--product-rail) minmax(0, 1fr);
  padding-bottom: var(--product-ticker);
  background: var(--product-paper);
  color: var(--product-black);
}

.product-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  height: calc(100vh - var(--product-ticker));
  width: var(--product-rail);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(180deg, #111018, #17161e 76%, #121118);
  color: #f8f7f2;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 16px 0 34px rgba(18, 17, 24, 0);
  overflow: hidden;
  transition: width 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease;
}

.product-rail:hover,
.product-rail:focus-within,
.product-rail.is-staggered-open,
.product-rail.is-account-menu-open {
  width: var(--product-rail-expanded);
  box-shadow: 16px 0 34px rgba(18, 17, 24, 0.16);
}

.product-rail.is-route-held { transition: none; }

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

.product-rail-layer {
  position: absolute;
  inset: 0;
  display: block;
  will-change: transform;
}

.product-rail-layer--violet { background: #7659df; }
.product-rail-layer--ink { background: linear-gradient(180deg, #17151f, #201e2a 72%, #121118); }
.product-rail > :not(.product-rail-layers) { position: relative; z-index: 1; }

.product-brand {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-brand .brand-mark {
  width: 54px;
  height: 54px;
  filter: brightness(.86) saturate(1.18) drop-shadow(0 10px 24px rgba(92, 63, 195, 0.22));
}

.product-brand strong {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  font-weight: 650;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-height 200ms ease, opacity 180ms ease;
}

.product-rail:hover .product-brand strong,
.product-rail:focus-within .product-brand strong,
.product-rail.is-staggered-open .product-brand strong { max-height: 28px; opacity: 1; }

.product-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 10px;
}

.product-nav-link {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  color: rgba(248, 247, 242, 0.72);
  font-size: 16px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.product-nav-link > span {
  display: block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 220ms ease, opacity 160ms ease;
}

.product-rail:hover .product-nav-link,
.product-rail:focus-within .product-nav-link,
.product-rail.is-staggered-open .product-nav-link { justify-content: flex-start; gap: 20px; padding: 0 20px; }
.product-rail:hover .product-nav-link > span,
.product-rail:focus-within .product-nav-link > span,
.product-rail.is-staggered-open .product-nav-link > span { max-width: 100px; opacity: 1; }

.product-nav-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--product-violet);
  transform: scaleY(0);
  transition: transform 160ms ease;
}

.product-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(2px);
}

.product-nav-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(118, 89, 223, 0.17), rgba(255, 255, 255, 0.045));
}

.product-nav-link.is-active::before {
  transform: scaleY(1);
}

.product-nav-link.is-active .icon {
  color: #9a7cff;
}

.product-rail-footer {
  margin-top: auto;
  padding: 22px 18px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.product-account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(248, 247, 242, 0.72);
  text-align: left;
  justify-content: center;
}

.product-account-avatar {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: calc(34px * .866);
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.product-account-avatar .avatar-wrap {
  width: 34px !important;
  min-width: 34px;
  max-width: 34px;
  height: calc(34px * .866) !important;
  flex: none;
}

.product-account-icon {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
}

.product-account b,
.product-account-name {
  display: block;
  color: #fff;
  font-size: 13px;
}

.product-account div > span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.product-account button {
  color: inherit;
}

.product-account > div,
.product-account-name {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 220ms ease, opacity 160ms ease;
}

.product-rail:hover .product-account,
.product-rail:focus-within .product-account,
.product-rail.is-staggered-open .product-account { justify-content: flex-start; }
.product-rail:hover .product-account > div,
.product-rail:focus-within .product-account > div,
.product-rail.is-staggered-open .product-account > div,
.product-rail:hover .product-account-name,
.product-rail:focus-within .product-account-name,
.product-rail.is-staggered-open .product-account-name { max-width: 110px; opacity: 1; }

.product-account--signed {
  color: #fff;
}

.product-account-menu {
  position: relative;
  width: 100%;
}

.product-account-menu > .product-account {
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-account-menu > .product-account:focus-visible {
  outline: 2px solid #b9a5ff;
  outline-offset: 5px;
}

.product-account-popover {
  position: absolute;
  z-index: 8;
  left: -7px;
  bottom: calc(100% + 16px);
  width: calc(var(--product-rail-expanded) - 22px);
  overflow: hidden;
  color: #f8f7f2;
  border: 1px solid rgba(185, 165, 255, 0.42);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(31, 29, 41, 0.985), rgba(16, 15, 22, 0.99));
  box-shadow: 12px 14px 0 rgba(118, 89, 223, 0.34), 0 24px 42px rgba(0, 0, 0, 0.38);
  transform-origin: left bottom;
  animation: accountPopoverIn 220ms cubic-bezier(.2,.82,.22,1) both;
}

.product-account-popover[hidden] { display: none; }

.product-account-popover-head {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 15px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-account-popover-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  opacity: .78;
  background: repeating-linear-gradient(90deg, #b9a5ff 0 8px, transparent 8px 13px);
}

.product-account-popover-avatar,
.product-account-popover-avatar .avatar-wrap {
  width: 42px !important;
  min-width: 42px;
  height: calc(42px * .866) !important;
}

.product-account-popover-head b,
.product-account-popover-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-account-popover-head b { font-size: 13px; font-weight: 760; }
.product-account-popover-head small { margin-top: 3px; color: rgba(248,247,242,.5); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; }
.product-account-popover-head em { position: absolute; top: 13px; right: 12px; display: inline-flex; align-items: center; gap: 5px; color: #9ad983; font-family: var(--font-mono); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .06em; }
.product-account-popover-head em i { width: 6px; height: 6px; border-radius: 50%; background: #8ed46d; box-shadow: 0 0 0 3px rgba(142,212,109,.11); }

.product-account-popover-group { display: grid; gap: 2px; padding: 8px; }
.product-account-popover-group button { min-height: 38px; display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 9px; color: rgba(248,247,242,.76); text-align: left; background: transparent; border: 0; cursor: pointer; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.product-account-popover-group button:hover,
.product-account-popover-group button:focus-visible { color: #fff; background: rgba(185,165,255,.14); outline: none; transform: translateX(2px); }
.product-account-popover-group button .icon { color: #b9a5ff; }
.product-account-popover-group button span { font-size: 12px; font-weight: 700; }

.product-account-popover-seal { height: 20px; overflow: hidden; border-block: 1px solid rgba(255,255,255,.08); color: rgba(185,165,255,.84); background: rgba(118,89,223,.12); font-family: var(--font-mono); font-size: 8px; font-weight: 800; line-height: 20px; letter-spacing: .1em; white-space: nowrap; }
.product-account-popover-seal span { display: inline-block; min-width: 220%; animation: accountSealMove 8s linear infinite; }
.product-account-popover-group--exit button { color: rgba(255,255,255,.56); }
.product-account-popover-group--exit button .icon { color: #d799a4; }
.product-account-popover-group--exit button:hover { color: #fff; background: rgba(215, 112, 128, .13); }

@keyframes accountPopoverIn { from { opacity: 0; transform: translate3d(-8px, 10px, 0) scale(.96); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes accountSealMove { to { transform: translateX(-45.45%); } }

.product-surface {
  min-width: 0;
  min-height: calc(100vh - var(--product-ticker));
  background:
    radial-gradient(circle at 72% 2%, rgba(184, 160, 240, 0.09), transparent 30%),
    linear-gradient(rgba(18, 17, 24, 0.009) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 17, 24, 0.009) 1px, transparent 1px),
    var(--product-paper);
  background-size: auto, 24px 24px, 24px 24px, auto;
}

.product-topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--product-content-gutter);
  background: color-mix(in srgb, var(--product-paper) 91%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 17, 24, 0.045);
}

.product-topbar-kicker {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.product-topbar-kicker i { color: rgba(18, 17, 24, 0.38); font-size: 10px; font-style: normal; }
.product-topbar-kicker b { color: var(--product-black); font-family: var(--font-sans); font-size: 16px; letter-spacing: 0; }

.product-auth-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 650;
}

.product-register {
  min-width: 96px;
  height: 48px;
  padding: 0 24px;
  background: var(--product-black);
  color: #fff;
  transition: transform 150ms ease, background 150ms ease;
}

.product-register:hover,
.product-topbar-user:hover {
  transform: translateY(-1px);
  background: #27242f;
}

.product-user-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.product-topbar-user {
  min-width: 150px;
  min-height: 48px;
  padding: 7px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--product-black);
  color: #fff;
}

.product-topbar-user span,
.product-topbar-user small { display: block; }
.product-topbar-user span { font-size: 13px; font-weight: 760; }
.product-topbar-user small { margin-top: 2px; color: rgba(255, 255, 255, 0.55); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; }

.product-topbar-logout {
  min-width: 78px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--product-black);
  color: var(--product-black);
  font-size: 12px;
  font-weight: 720;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.product-topbar-logout:hover { background: var(--product-black); color: #fff; transform: translateY(-1px); }

.product-surface .home-main {
  min-height: auto;
  padding: 12px var(--product-content-gutter) 72px;
}

.match-workspace {
  width: min(1124px, 100%);
  margin: 0 auto;
  padding-bottom: 110px;
}

.match-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-height: 184px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--product-hairline);
}

.match-eyebrow {
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.match-head h1 {
  font-family: var(--font-sans);
  font-size: clamp(48px, 5vw, 70px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.065em;
}

.match-head p { margin-top: 16px; color: rgba(18, 17, 24, 0.55); font-size: 17px; }

.match-head-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  padding-bottom: 6px;
}

.match-contact {
  min-width: 178px;
  min-height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--product-black);
  background: transparent;
  border: 1px solid var(--product-black);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.match-contact > svg { color: var(--product-violet); }
.match-contact span { display: grid; gap: 3px; }
.match-contact b { font-size: 13px; }
.match-contact small { color: rgba(18, 17, 24, 0.46); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.11em; }
.match-contact:hover,
.match-contact:focus-visible { color: #fff; background: var(--product-black); transform: translateY(-2px); }
.match-contact:hover small,
.match-contact:focus-visible small { color: rgba(255, 255, 255, 0.58); }
.match-contact:focus-visible { outline: 3px solid rgba(143, 104, 255, 0.34); outline-offset: 3px; }

.match-live {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.match-live > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #58b54d;
  box-shadow: 0 0 0 4px rgba(88, 181, 77, 0.1);
}

.match-live b {
  font-weight: 700;
}

.match-live i,
.match-live em {
  color: rgba(18, 17, 24, 0.43);
  font-style: normal;
}

@media (max-width: 760px) {
  .match-head { align-items: flex-start; flex-direction: column; }
  .match-head-tools { width: 100%; align-items: flex-start; }
  .match-games-grid { grid-template-columns: 1fr; }
}

.match-game-stage {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(180px, 0.25fr) minmax(0, 0.75fr);
  border-bottom: 1px solid var(--product-hairline);
}

.match-stage-copy,
.match-wizard-copy {
  padding: 46px 34px 46px 0;
  border-right: 1px solid var(--product-hairline);
}

.match-stage-copy > span,
.match-wizard-copy > span,
.match-coming-soon > span {
  color: var(--product-violet);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.match-stage-copy h2,
.match-wizard-copy h2,
.match-coming-soon h2 {
  max-width: none;
  margin-top: 18px;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.match-stage-copy p,
.match-wizard-copy p,
.match-coming-soon p {
  max-width: 220px;
  margin-top: 12px;
  color: rgba(18, 17, 24, 0.5);
  font-size: 11px;
  line-height: 1.45;
}

.match-game-stage > .match-options--games {
  padding: 46px 0 46px 42px;
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
}

.match-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(272px, 286px); gap: 28px; align-items: start; padding-top: 28px; }
.match-primary-stage { min-width: 0; }
.match-games-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.product-shell .match-game-card { position: relative; height: clamp(270px, 29vw, 320px); min-height: 0; display: flex; flex-direction: column; align-items: stretch; padding: 14px; overflow: hidden; border: 1px solid rgba(18,17,24,.14); border-radius: 14px; background: rgba(255,255,255,.82); color: var(--product-black); box-shadow: 0 1px 0 rgba(18,17,24,.04); text-align: left; transition: transform 260ms cubic-bezier(.22,1,.36,1), background 220ms ease, border-color 220ms ease, box-shadow 260ms cubic-bezier(.22,1,.36,1); }
.product-shell .match-game-card:hover { border-color: rgba(118,89,223,.52); background: #fff; box-shadow: 0 14px 28px rgba(18,17,24,.1); transform: translateY(-5px); }
.product-shell .match-game-card.is-on { border-color: var(--product-violet); background: #fff; box-shadow: 0 14px 28px rgba(118,89,223,.16), 0 0 0 2px rgba(118,89,223,.12); transform: translateY(-3px); }
.product-shell .match-game-card--soon { cursor: default; isolation: isolate; }
.product-shell .match-game-card--soon:hover { border-color: rgba(18,17,24,.22); background: rgba(255,255,255,.9); box-shadow: 0 10px 24px rgba(18,17,24,.07); }
.match-game-art-slot { position: relative; width: 100%; height: auto; aspect-ratio: 1.38; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 10px; background: #132f31; transition: filter 260ms ease, transform 420ms cubic-bezier(.22,1,.36,1); }
.match-game-art-slot img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.match-game-art-slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,18,20,.02), rgba(9,18,20,.28)); pointer-events: none; }
.match-game-card:hover .match-game-art-slot, .match-game-card.is-on .match-game-art-slot { filter: saturate(1.08) brightness(1.04); transform: scale(1.025); }
.match-game-card--soon { padding: 0 !important; background: #17131f !important; }
.match-game-card--soon .match-game-art-slot { position: absolute; z-index: 0; inset: 0; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; background: #17131f; transform: none; }
.match-game-card--soon .match-game-art-slot { background: radial-gradient(circle at 50% 36%, rgba(185,165,255,.3), transparent 38%), linear-gradient(145deg, #34284d, #17131f 62%); }
.match-game-card--soon .match-game-art-slot::before { content: ""; position: absolute; z-index: 1; inset: -12%; background: radial-gradient(circle at 50% 44%, rgba(242,236,255,.2), transparent 45%), linear-gradient(145deg, rgba(118,89,223,.3), rgba(18,17,24,.68)); filter: blur(12px); pointer-events: none; }
.match-game-card--soon .match-game-art-slot::after { z-index: 2; background: linear-gradient(180deg, rgba(9,8,16,.08), rgba(9,8,16,.52)); }
.match-game-card--soon .match-game-card-info { position: relative; z-index: 3; width: 100%; height: 100%; min-height: 100%; padding: 16px 10px; display: grid; place-items: center; color: #fff; }
.match-game-card--soon .match-game-card-title-row { width: auto; max-width: 100%; gap: 0; }
.match-game-card--soon .match-game-option-main .match-option-icon { display: none; }
.match-game-card--soon .match-game-option-main b { color: #fff; font-size: clamp(11px, 1.1vw, 15px); letter-spacing: .03em; line-height: 1; white-space: nowrap; text-shadow: 0 2px 14px rgba(0,0,0,.42); }
.match-game-card--soon:hover .match-game-art-slot { filter: saturate(1.08) brightness(1.04); transform: scale(1.025); }
.match-game-art-slot i { position: relative; z-index: 1; color: rgba(18,17,24,.5); font-family: var(--font-mono); font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .12em; }
.room-recruitment-indicator { display:grid; gap:7px; margin:14px 0 2px; color:rgba(18,17,24,.62); font:800 10px/1 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; }
.room-recruitment-indicator i { display:block; height:3px; overflow:hidden; background:rgba(18,17,24,.1); border-radius:999px; }
.room-recruitment-indicator i::after { content:""; display:block; width:42%; height:100%; border-radius:inherit; background:var(--product-violet); animation:roomRecruitmentProgress 1.25s ease-in-out infinite; }
@keyframes roomRecruitmentProgress { from { transform:translateX(-110%); } to { transform:translateX(350%); } }
@media (prefers-reduced-motion: reduce) { .room-recruitment-indicator i::after { animation:none; width:56%; margin-left:20%; } }
.match-game-option-main { position: relative; z-index: 1; width: 100%; min-width: 0; min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 11px 8px 2px; background: transparent; color: var(--product-black); text-align: center; }
.match-game-card-kicker { color: rgba(18,17,24,.42); font-family: var(--font-mono); font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.match-game-card-title-row { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; }
.match-game-option-main .match-option-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(118,89,223,.5); color: var(--product-violet); }
.match-game-option-main b { font-size: clamp(18px, 2vw, 23px); letter-spacing: -.04em; line-height: 1; }
.match-game-option-main .match-option-check { position: static; margin-left: 2px; display: grid; place-items: center; width: 25px; height: 25px; background: var(--product-violet); color: var(--product-black); box-shadow: none; }
.match-game-card-caption { color: rgba(18,17,24,.52); font-size: 11px; }
.match-directory { position: sticky; top: 26px; overflow: hidden; border: 1px solid rgba(18,17,24,.14); border-radius: 14px; background: rgba(255,255,255,.82); color: var(--product-black); box-shadow: 0 1px 0 rgba(18,17,24,.04); }
.match-directory-caution { height: 4px; overflow: hidden; background: linear-gradient(90deg, var(--product-violet), #a28df0 52%, rgba(162,141,240,.2)); }
.match-directory-caution span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.match-directory > .match-directory-head { min-height: 54px; padding: 15px 16px 13px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--product-hairline); }
.match-directory > .match-directory-head span { display: flex; align-items: center; gap: 8px; color: var(--product-violet); font-family: var(--font-mono); font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.match-directory > .match-directory-head span i { width: 6px; height: 6px; border-radius: 50%; background: var(--product-violet); box-shadow: 0 0 0 4px rgba(118,89,223,.1); animation: matchDirectoryPulse 1.8s ease-in-out infinite; }
.match-directory > .match-directory-head em { color: rgba(18,17,24,.38); font-family: var(--font-mono); font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-align: right; }
.match-directory-list { max-height: min(404px, calc(100vh - 475px)); overflow: auto; }
.match-directory-player { padding: 11px 14px; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 10px; border-bottom: 1px solid var(--product-hairline); background: transparent; transition: background 180ms ease, transform 180ms ease; }
.match-directory-player:hover { z-index: 2; background: rgba(118,89,223,.06); transform: translateX(2px); }
.match-directory-player-mark { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(118,89,223,.28); border-radius: 8px; background: var(--product-violet-soft); color: var(--product-violet); }
.match-directory-player-copy { min-width: 0; }
.match-directory-player-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.match-directory-player-top b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.match-directory-player-top span { padding: 3px 6px; border-radius: 5px; background: var(--product-violet-soft); color: var(--product-violet); font-family: var(--font-mono); font-size: 8px; font-weight: 850; }
.match-directory-player p { margin-top: 5px; color: rgba(18,17,24,.62); font-size: 10px; }
.match-directory-player footer { margin-top: 7px; display: flex; justify-content: space-between; gap: 7px; color: rgba(18,17,24,.48); font-size: 9px; }
.match-directory-player footer i { color: var(--product-violet); font-style: normal; font-weight: 800; }
.match-directory-empty { min-height: 148px; padding: 22px 18px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.match-directory-empty-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(118,89,223,.28); border-radius: 9px; background: var(--product-violet-soft); color: var(--product-violet); font-family: var(--font-mono); font-size: 20px; }
.match-directory-empty b { color: var(--product-black); font-size: 12px; }
.match-directory-livebar { min-height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--product-hairline); background: rgba(118,89,223,.055); color: var(--product-violet); }
.match-directory-livebar span { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 850; }
.match-directory-livebar span i { width: 5px; height: 5px; border-radius: 50%; background: var(--product-violet); box-shadow: 0 0 0 4px rgba(118,89,223,.1); }
.match-directory-livebar small { font-family: var(--font-mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; opacity: .72; }
@keyframes matchDirectoryPulse { 0%,100% { opacity: .5; transform: scale(.82); } 50% { opacity: 1; transform: scale(1); } }
.product-shell .match-game-option > small { color: rgba(18, 17, 24, 0.4); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; }
.product-shell .match-game-option.is-ready > small { color: var(--product-violet); }
.product-shell .match-game-option.is-soon { background: rgba(18, 17, 24, 0.025); }

.match-coming-soon {
  min-height: 430px;
  padding: 70px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-bottom: 1px solid var(--product-hairline);
}

.match-coming-soon .match-wizard-back { margin-top: 34px; }

.match-wizard { padding-top: 28px; }

.match-wizard-stepper {
  width: min(900px, 100%);
  min-height: 76px;
  margin: 0 auto 22px;
  display: flex;
  align-items: flex-start;
}

.match-back-games {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--product-hairline);
  border-radius: 4px;
  background: color-mix(in srgb, var(--product-paper) 82%, transparent);
  color: rgba(18, 17, 24, .58);
  font-size: 10px;
  font-weight: 780;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.match-back-games:hover { border-color: var(--product-violet); color: var(--product-violet); transform: translateY(-2px); }

.match-wizard-marker {
  flex: none;
  min-width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.match-wizard-marker b {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 17, 24, 0.2);
  border-radius: 50%;
  color: rgba(18, 17, 24, 0.42);
  font-family: var(--font-mono);
  font-size: 10px;
  transition: transform 320ms cubic-bezier(.22,1,.36,1), color 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 320ms ease;
}

.match-wizard-marker b::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(118, 89, 223, 0.28);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.72);
}

.match-wizard-marker em { color: rgba(18, 17, 24, 0.42); font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; transition: color 240ms ease; }
.match-wizard-marker.is-active b { transform: scale(1.1); border-color: var(--product-violet); background: var(--product-violet); color: #fff; box-shadow: 0 0 0 6px rgba(118, 89, 223, 0.1); animation: matchMarkerArrive 480ms cubic-bezier(.22,1,.36,1); }
.match-wizard-marker.is-active b::after { animation: matchMarkerEcho 700ms cubic-bezier(.22,1,.36,1); }
.match-wizard-marker.is-active em { color: var(--product-black); }
.match-wizard-marker.is-complete b { border-color: var(--product-black); background: var(--product-black); color: #fff; }
.match-wizard-marker.is-complete em { color: rgba(18, 17, 24, 0.68); }

.match-wizard-line { position: relative; flex: 1; height: 2px; margin: 16px 6px 0; overflow: hidden; background: rgba(18, 17, 24, 0.13); }
.match-wizard-line i { position: absolute; inset: 0; background: var(--product-violet); transform: scaleX(0); transform-origin: left; transition: transform 520ms cubic-bezier(.22,1,.36,1); }
.match-wizard-line i::after { content: ""; position: absolute; top: 50%; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--product-violet), 0 0 16px rgba(118, 89, 223, .72); opacity: 0; transform: translateY(-50%) scale(.4); }
.match-wizard-line.is-complete i { transform: scaleX(1); }
.match-wizard-line.is-complete i::after { animation: matchLineSignal 620ms cubic-bezier(.22,1,.36,1); }

.match-wizard-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(300px, 0.31fr) minmax(0, 0.69fr);
  overflow: hidden;
  border-block: 1px solid var(--product-hairline);
}

.match-wizard-stage.is-forward { animation: matchStageForward 440ms cubic-bezier(.22,1,.36,1) both; }
.match-wizard-stage.is-backward { animation: matchStageBackward 440ms cubic-bezier(.22,1,.36,1) both; }
.match-wizard-options { min-width: 0; padding: 46px 0 46px 42px; display: flex; align-items: center; }
.match-wizard-options > * { width: 100%; }
.match-options--goal, .match-options--voice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.match-options--ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.match-options--roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.match-options--team { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.match-options--roles .match-option { min-height: 48px; padding: 6px 8px; gap: 2px; }
.match-options--team .match-option { min-height: 70px; }
.product-shell .match-team-option { align-items: center; justify-content: center; text-align: center; }
.match-team-number { font-family: var(--font-display); font-size: clamp(34px, 3.2vw, 48px); font-weight: 780; line-height: 1; letter-spacing: -.05em; }
.match-team-range { --team-range-min: 0%; --team-range-max: 0%; --team-range-fill-left: 0%; --team-range-fill-right: 100%; position: relative; width: min(100%, 560px); min-width: 320px; padding: 22px 24px 19px; overflow: hidden; border: 1px solid rgba(18, 17, 24, .2); background: linear-gradient(145deg, #fffefa 0%, #f6f1ff 100%); box-shadow: 10px 10px 0 rgba(18, 17, 24, .06); }
.match-team-range::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(118, 89, 223, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(118, 89, 223, .07) 1px, transparent 1px); background-size: 22px 22px; content: ""; opacity: .38; pointer-events: none; }
.match-team-range::after { position: absolute; top: -60px; right: -45px; width: 170px; height: 170px; border: 1px solid rgba(118, 89, 223, .2); border-radius: 50%; box-shadow: 0 0 0 16px rgba(118, 89, 223, .035), 0 0 0 34px rgba(118, 89, 223, .025); content: ""; pointer-events: none; }
.match-team-range > * { position: relative; z-index: 1; }
.match-team-range-head { display: block; }
.match-team-range-head strong { display: block; color: var(--product-black); font-family: var(--font-display); font-size: clamp(18px, 2.5vw, 30px); font-weight: 800; letter-spacing: -.065em; line-height: 1; text-align: left; white-space: nowrap; transition: color 220ms ease, transform 220ms ease; }
.match-team-range.is-locked .match-team-range-head strong { color: var(--product-violet); transform: translateX(2px); }
.match-team-range-track-wrap { position: relative; height: 77px; margin: 25px 8px 0; cursor: grab; touch-action: none; }
.match-team-range-track-wrap.is-dragging { cursor: grabbing; }
.match-team-range-track { position: absolute; top: 20px; right: 0; left: 0; height: 9px; overflow: hidden; border: 1px solid rgba(18, 17, 24, .13); border-radius: 999px; background: rgba(18, 17, 24, .11); box-shadow: inset 0 1px 2px rgba(18, 17, 24, .1); }
.match-team-range-track i { position: absolute; top: 0; right: var(--team-range-fill-right); bottom: 0; left: var(--team-range-fill-left); display: block; border-radius: inherit; background: linear-gradient(90deg, #5b42c8 0%, #8467ec 54%, #ad96ff 100%); box-shadow: 0 0 0 1px rgba(118, 89, 223, .18), 0 4px 12px rgba(118, 89, 223, .28); transition: left 420ms cubic-bezier(.22, 1.25, .36, 1), right 420ms cubic-bezier(.22, 1.25, .36, 1); }
.match-team-range-track-glow { position: absolute; top: 0; bottom: 0; left: var(--team-range-fill-left); width: max(16%, calc(var(--team-range-max) - var(--team-range-min) + 16%)); border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .44), transparent); animation: teamRangeShimmer 2.8s ease-in-out infinite; pointer-events: none; }
.match-team-range-detents { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.match-team-range-detent { position: absolute; top: 32px; width: 16px; transform: translateX(-50%); color: rgba(18, 17, 24, .42); font-family: var(--font-mono); font-size: 9px; text-align: center; transition: color 220ms ease, transform 220ms ease; }
.match-team-range-detent i { display: block; width: 2px; height: 7px; margin: 0 auto 5px; background: rgba(18, 17, 24, .26); transition: height 220ms ease, background 220ms ease, box-shadow 220ms ease; }
.match-team-range-detent b { font-weight: 700; }
.match-team-range-detent.is-active { color: var(--product-violet); }
.match-team-range-detent.is-active i { height: 10px; background: var(--product-violet); box-shadow: 0 0 0 2px rgba(118, 89, 223, .1); }
.match-team-range-detent.is-edge { transform: translateX(-50%) scale(1.08); }
.match-team-range-thumb { position: absolute; top: 10px; left: var(--team-range-min); width: 22px; height: 22px; transform: translateX(-50%); border: 3px solid var(--product-black); border-radius: 6px; background: #fff; box-shadow: 0 5px 0 rgba(18, 17, 24, .14), 0 0 0 0 rgba(118, 89, 223, 0); pointer-events: none; transition: left 430ms cubic-bezier(.22, 1.25, .36, 1), transform 180ms ease, background 220ms ease, box-shadow 220ms ease; }
.match-team-range-thumb--max { left: var(--team-range-max); z-index: 2; }
.match-team-range-thumb--min { z-index: 1; }
.match-team-range-thumb i { position: absolute; top: 27px; left: 50%; transform: translateX(-50%); color: rgba(18, 17, 24, .48); font-family: var(--font-mono); font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.match-team-range.is-locked .match-team-range-thumb { background: #e8e0ff; box-shadow: 0 5px 0 rgba(18, 17, 24, .14), 0 0 0 6px rgba(118, 89, 223, .14); }
.match-team-range-input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 54px; margin: 0; appearance: none; border: 0; outline: none; background: transparent; cursor: grab; opacity: 0; pointer-events: none; }
.match-team-range-input--max { z-index: 4; }
.match-team-range-input:active { cursor: grabbing; }
.match-team-range:focus-within .match-team-range-track { box-shadow: inset 0 1px 2px rgba(18, 17, 24, .1), 0 0 0 4px rgba(118, 89, 223, .14); }
.match-team-range-labels { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 0; color: rgba(18, 17, 24, .5); font-family: var(--font-mono); font-size: 9px; text-align: center; }
.match-team-range-labels span:first-child { text-align: left; }
.match-team-range-labels span:last-child { text-align: right; }
@keyframes teamRangeShimmer { 0%, 45% { transform: translateX(-135%); opacity: 0; } 55% { opacity: .8; } 100% { transform: translateX(240%); opacity: 0; } }
@media (max-width: 980px) { .match-team-range { min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .match-team-range-track i, .match-team-range-thumb, .match-team-range-detent, .match-team-range-detent i, .match-team-range-head strong { transition-duration: 0ms; } .match-team-range-track-glow { animation: none; } }
.match-option > small { color: rgba(18, 17, 24, 0.42); font-size: 9px; }
.match-role-picker { display: flex; flex-direction: column; gap: 10px; }
.match-role-groups { display: grid; gap: 16px; }
.match-role-multi { min-height: 24px; display: flex; align-items: center; gap: 8px; }
.match-role-multi strong { min-width: 82px; color: var(--product-black); font-size: 12px; }
.match-role-multi b { padding: 4px 7px; border: 1px solid var(--product-violet); border-radius: 999px; color: var(--product-violet); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; }
.match-role-multi span { color: rgba(18, 17, 24, .48); font-size: 10px; }
.match-role-option { align-items: center !important; text-align: center !important; }
.match-role-number { display: inline-flex; align-items: baseline; gap: 3px; font-family: var(--font-display); font-size: 20px; font-weight: 780; line-height: 1; letter-spacing: -.05em; }
.match-role-number small { color: rgba(18, 17, 24, .48); font-family: var(--font-sans); font-size: 9px; font-weight: 720; letter-spacing: 0; }
.match-role-option.is-on .match-role-number small { color: var(--product-violet); }
.product-shell .match-rank-option { min-height: 54px; padding: 8px 10px; gap: 3px; align-content: center; }
.match-rank-option .match-rank-name { font-size: 12px; font-weight: 760; }
.match-rank-option > small { margin-top: 1px; font-family: var(--font-mono); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.match-rank-option.is-on > small { color: var(--product-violet); }
.match-choice-stack { display: flex; flex-direction: column; gap: 18px; }

.match-rank-note {
  min-height: 58px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--product-violet);
  background: rgba(118, 89, 223, 0.07);
}

.match-rank-note > span, .match-rank-note b, .match-rank-note small { display: block; }
.match-rank-note b { font-size: 12px; }
.match-rank-note small { margin-top: 3px; color: rgba(18, 17, 24, 0.5); font-size: 10px; }

.match-wizard-actions {
  grid-column: 1 / -1;
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-right: 6px;
  border-top: 1px solid var(--product-hairline);
}

.match-wizard-actions-left { display: flex; align-items: center; gap: 18px; }

.match-wizard-actions > [data-home-wizard-advance] {
  width: min(380px, 52%);
  min-width: min(190px, 52%);
  flex: 0 1 380px;
}

.match-wizard-back { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: rgba(18, 17, 24, 0.58); font-size: 12px; font-weight: 750; }
.match-wizard-next { min-width: 190px; max-width: 100%; min-height: 54px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 2px solid var(--product-black); border-radius: 6px; background: var(--product-black); color: #fff; font-weight: 800; transition: background 150ms ease; }
.match-wizard-next svg { transition: transform 180ms cubic-bezier(.22,1,.36,1); }
.match-wizard-next:hover { background: var(--product-violet); }
.match-wizard-next:hover svg { transform: translateX(3px); }
.match-wizard-actions .match-start-dock { width: 100%; min-width: 0; margin: 0; }
.match-stage-enter { animation: matchStageForward 440ms cubic-bezier(.22,1,.36,1) both; }

@keyframes matchStageForward { from { opacity: 0; transform: translateX(30px); clip-path: inset(0 8% 0 0); } to { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); } }
@keyframes matchStageBackward { from { opacity: 0; transform: translateX(-30px); clip-path: inset(0 0 0 8%); } to { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); } }
@keyframes matchMarkerArrive { 0% { transform: scale(.72) rotate(-10deg); } 62% { transform: scale(1.2) rotate(2deg); } 100% { transform: scale(1.1) rotate(0); } }
@keyframes matchMarkerEcho { 0% { opacity: 0; transform: scale(.72); } 34% { opacity: .75; } 100% { opacity: 0; transform: scale(1.42); } }
@keyframes matchLineSignal { 0%, 18% { opacity: 0; transform: translateY(-50%) scale(.35); } 48% { opacity: 1; transform: translateY(-50%) scale(1); } 100% { opacity: 0; transform: translateY(-50%) scale(.45); } }

/* “机”缘 waiting transition: gaming hardware cycles while two live caution tapes keep the system moving. */
body.is-project-transitioning { overflow: hidden; }

.project-transition {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  grid-template-rows: 38px 1fr 38px;
  overflow: hidden;
  color: #17131f;
  background: var(--product-violet);
  clip-path: inset(50% 0 50%);
  transition: clip-path 420ms cubic-bezier(.22,1,.36,1);
  contain: layout paint;
}

.project-transition.is-visible { clip-path: inset(0); }
.project-transition.is-leaving { animation: projectTransitionOut 400ms cubic-bezier(.55,0,1,.45) both; }

.project-transition-tape {
  position: relative;
  z-index: 2;
  overflow: hidden;
  color: #f5f2eb;
  background: var(--product-black);
  border-block: 1px solid rgba(255, 255, 255, .28);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
  height: 38px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}

.project-transition-tape-track {
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  will-change: transform;
  animation: projectTape 13s linear infinite;
}

.project-transition-tape--bottom .project-transition-tape-track { animation-direction: reverse; animation-duration: 15s; }
.project-transition-tape-track > span { height: 100%; flex: none; display: flex; align-items: center; }

.project-transition-center {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.project-transition-devices { position: relative; width: 120px; height: 120px; }

.project-transition-device {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #f5f2eb;
  animation: projectDeviceCycle 1.8s linear infinite;
  animation-delay: calc(var(--device-index) * .3s);
}

.project-transition-device .icon { filter: drop-shadow(0 8px 0 rgba(23, 19, 31, .16)); }

@keyframes projectDeviceCycle {
  0%, 1% { opacity: 1; transform: translateY(3px); }
  12% { opacity: 1; transform: translateY(0); }
  17%, 100% { opacity: 0; transform: translateY(-3px); }
}

@keyframes projectTape { to { transform: translate3d(-50%, 0, 0); } }
@keyframes projectTransitionOut { to { opacity: 0; transform: scale(1.018); } }

/* Matching is presented as a focused, expanding modal rather than a second dashboard. */
.matching-modal-page {
  position: fixed;
  z-index: 80;
  inset: 0 0 var(--product-ticker);
  padding: 26px;
  display: grid;
  place-items: center;
  overflow: auto;
}

.matching-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 15, .86);
  backdrop-filter: blur(16px) saturate(.7);
  animation: matchingBackdropIn 360ms ease-out both;
}

.matching-modal {
  position: relative;
  width: min(780px, calc(100vw - 52px));
  max-height: calc(100vh - var(--product-ticker) - 52px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: var(--product-paper);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .54), 0 0 0 1px rgba(118, 89, 223, .22);
  transform-origin: 82% 88%;
  animation: matchingModalIn 620ms cubic-bezier(.22,1,.36,1) both;
}

.matching-modal::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 6px;
  background: repeating-linear-gradient(110deg, var(--product-violet) 0 16px, var(--product-black) 16px 28px);
}

.matching-modal-head {
  min-height: 76px;
  padding: 18px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--product-hairline);
}

.matching-modal-head p { margin-top: 5px; color: rgba(18, 17, 24, .46); font-size: 10px; }
.matching-modal-live { display: inline-flex; align-items: center; gap: 8px; color: var(--product-black); font-family: var(--font-mono); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.matching-modal-live i { width: 7px; height: 7px; border-radius: 50%; background: #62bd4f; box-shadow: 0 0 0 4px rgba(98, 189, 79, .12); animation: matchingLive 1.6s ease-in-out infinite; }
.matching-modal-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--product-hairline); border-radius: 50%; transition: color 160ms ease, background 160ms ease, transform 220ms cubic-bezier(.22,1,.36,1); }
.matching-modal-close:hover { background: var(--product-black); color: #fff; transform: rotate(90deg); }

.matching-modal-content { padding: 20px 38px 24px; text-align: center; }
.matching-signal { position: relative; width: min(420px, 100%); height: 142px; margin: 0 auto 8px; display: grid; place-items: center; perspective: 900px; }
.matching-signal-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(118, 89, 223, .28); border-radius: 50%; transform: translate(-50%, -50%); animation: matchingRadar 2.8s ease-out infinite; }
.matching-signal-ring--one { width: 76px; height: 76px; }
.matching-signal-ring--two { width: 112px; height: 112px; animation-delay: .72s; }
.matching-signal-ring--three { width: 148px; height: 148px; animation-delay: 1.44s; }

.matching-player-card { position: absolute; width: 82px; height: 106px; display: grid; place-items: center; border: 1px solid rgba(18, 17, 24, .14); border-radius: 9px; background: rgba(255, 255, 255, .9); color: rgba(18, 17, 24, .28); font-family: var(--font-mono); font-size: 18px; font-weight: 850; box-shadow: 0 14px 34px rgba(18, 17, 24, .11); }
.matching-player-card--left { left: 70px; transform: rotate(-9deg) translateY(8px); animation: matchingCardLeft 720ms 110ms cubic-bezier(.22,1,.36,1) both, matchingCardFloat 3.8s 900ms ease-in-out infinite; }
.matching-player-card--center { z-index: 2; left: 50%; color: #fff; border-color: var(--product-violet); background: linear-gradient(145deg, #8e73ed, #6346c9); transform: translateX(-50%); animation: matchingCardCenter 720ms 40ms cubic-bezier(.22,1,.36,1) both, matchingCardFloatCenter 3.4s 820ms ease-in-out infinite; }
.matching-player-card--right { right: 70px; transform: rotate(9deg) translateY(8px); animation: matchingCardRight 720ms 180ms cubic-bezier(.22,1,.36,1) both, matchingCardFloat 4.1s 980ms ease-in-out infinite reverse; }

.matching-modal-copy { position: relative; z-index: 2; }
.matching-modal-copy h1 { margin-top: 8px; font-size: clamp(32px, 4vw, 48px); line-height: 1.04; letter-spacing: -.055em; }
.matching-modal-copy p { max-width: 520px; margin: 12px auto 0; color: rgba(18, 17, 24, .52); font-size: 12px; line-height: 1.7; }
.matching-query { margin-top: 18px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.matching-query > span { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(118, 89, 223, .3); border-radius: 999px; background: rgba(118, 89, 223, .07); color: var(--product-black); font-size: 10px; font-weight: 760; animation: matchingDetailIn 460ms cubic-bezier(.22,1,.36,1) both; }
.matching-query > span:nth-child(2) { animation-delay: 60ms; }
.matching-query > span:nth-child(3) { animation-delay: 120ms; }
.matching-query > span:nth-child(4) { animation-delay: 180ms; }
.matching-query > span:nth-child(5) { animation-delay: 240ms; }
.matching-ready-state { margin: 14px auto 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.matching-ready-state > span { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(16, 16, 21, .18); border-radius: 8px; background: rgba(255, 255, 255, .62); color: rgba(16, 16, 21, .62); font-size: 11px; font-weight: 760; transition: background 220ms ease, border-color 220ms ease, color 220ms ease; }
.matching-ready-state > span.is-ready { border-color: rgba(77, 166, 86, .42); background: rgba(77, 166, 86, .1); color: #276d30; }
.matching-group-members { max-width: 520px; margin: 18px auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; text-align: left; }
.matching-group-member { min-height: 54px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(16,16,21,.14); background: rgba(255,255,255,.58); border-radius: 8px; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.matching-group-member.is-ready { border-color: rgba(77,166,86,.4); background: rgba(77,166,86,.08); }
.matching-group-member-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 50%; background: var(--product-black); color: var(--product-violet); font-family: var(--font-mono); font-weight: 800; }
.matching-group-member > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.matching-group-member b { overflow: hidden; color: var(--product-black); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.matching-group-member small { color: rgba(18,17,24,.48); font-size: 9px; }
.matching-group-member i { margin-left: auto; color: #27733a; font-size: 9px; font-style: normal; white-space: nowrap; }
.matching-group-start { background: var(--product-black); color: #fff !important; }
.matching-group-start:hover { background: var(--product-violet) !important; border-color: var(--product-violet) !important; }

.matching-modal-progress { display: grid; grid-template-columns: .86fr 1.14fr; background: var(--product-black); color: #fff; }
.matching-modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-right: 1px solid rgba(255, 255, 255, .1); }
.matching-modal-stats > span { min-height: 118px; padding: 20px 12px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255, 255, 255, .08); }
.matching-modal-stats > span:last-child { border-right: 0; }
.matching-modal-stats b { font-family: var(--font-mono); font-size: 24px; letter-spacing: -.04em; }
.matching-modal-stats small { margin-top: 8px; color: rgba(255, 255, 255, .46); font-size: 9px; white-space: nowrap; }
.matching-modal-steps { padding: 18px 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.matching-modal-step { display: grid; grid-template-columns: 10px 1fr; align-items: center; gap: 10px; color: rgba(255, 255, 255, .34); font-size: 10px; transition: color 260ms ease, transform 260ms cubic-bezier(.22,1,.36,1); }
.matching-modal-step i { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; transition: background 240ms ease, box-shadow 240ms ease; }
.matching-modal-step.is-done { color: rgba(255, 255, 255, .58); }
.matching-modal-step.is-done i { border-color: #62bd4f; background: #62bd4f; }
.matching-modal-step.is-active { color: #fff; transform: translateX(4px); }
.matching-modal-step.is-active i { border-color: #b9a5ff; background: #b9a5ff; box-shadow: 0 0 0 4px rgba(185, 165, 255, .14); animation: matchingStepPulse 1.2s ease-in-out infinite; }

.matching-modal-footer { min-height: 72px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #eeece7; }
.matching-modal-footer p { display: flex; align-items: center; gap: 8px; color: rgba(18, 17, 24, .48); font-size: 10px; }
.matching-modal-footer p i { width: 6px; height: 6px; border-radius: 50%; background: var(--product-violet); }
.matching-modal-footer button { min-width: 132px; min-height: 42px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--product-black); border-radius: 5px; color: var(--product-black); font-size: 11px; font-weight: 780; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.matching-modal-footer button:hover { background: var(--product-black); color: #fff; transform: translateY(-1px); }
.matching-confirm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.matching-confirm-actions button[data-action="confirm-match"] { background: var(--product-black); color: #fff; }
.matching-confirm-actions button[data-action="confirm-match"]:hover { background: var(--product-violet); border-color: var(--product-violet); }

@keyframes matchingBackdropIn { from { opacity: 0; backdrop-filter: blur(0) saturate(1); } to { opacity: 1; backdrop-filter: blur(16px) saturate(.7); } }
@keyframes matchingModalIn { 0% { opacity: 0; transform: translate(18vw, 20vh) scale(.18); filter: blur(12px); } 62% { opacity: 1; transform: translate(0) scale(1.025); filter: blur(0); } 100% { opacity: 1; transform: translate(0) scale(1); filter: blur(0); } }
@keyframes matchingLive { 50% { opacity: .45; transform: scale(.75); } }
@keyframes matchingRadar { 0% { opacity: .5; transform: translate(-50%, -50%) scale(.58); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28); } }
@keyframes matchingCardLeft { from { opacity: 0; transform: translate(90px, 36px) rotate(4deg) scale(.72); } to { opacity: 1; transform: rotate(-9deg) translateY(8px) scale(1); } }
@keyframes matchingCardCenter { from { opacity: 0; transform: translateX(-50%) translateY(42px) scale(.65); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes matchingCardRight { from { opacity: 0; transform: translate(-90px, 36px) rotate(-4deg) scale(.72); } to { opacity: 1; transform: rotate(9deg) translateY(8px) scale(1); } }
@keyframes matchingCardFloat { 50% { translate: 0 -6px; } }
@keyframes matchingCardFloatCenter { 50% { transform: translateX(-50%) translateY(-7px) scale(1.02); } }
@keyframes matchingDetailIn { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes matchingStepPulse { 50% { box-shadow: 0 0 0 7px rgba(185, 165, 255, 0); } }

.match-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 46px;
}

.match-block {
  min-width: 0;
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--product-hairline);
}

.match-block:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--product-hairline);
}

.match-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
}

.match-block h2 span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.match-options,
.home-filter-tag-group.match-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: none;
  margin: 0;
}

.match-options--games {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.product-shell .match-options--time .match-option {
  min-height: 58px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.product-shell .match-option,
.product-shell .home-filter-game-row,
.product-shell .home-filter-tag {
  position: relative;
  min-width: 0;
  min-height: 104px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--product-hairline);
  border-radius: 4px;
  clip-path: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--product-black);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.product-shell .match-option:hover {
  border-color: rgba(118, 89, 223, 0.58);
  background: rgba(255, 255, 255, 0.64);
  transform: translateY(-2px);
}

/* Role choices are deliberately compact horizontal controls, not generic option cards. */
.product-shell .match-options--roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.product-shell .match-options--roles .match-role-option {
  min-height: 48px;
  padding: 6px 8px;
  flex-direction: row;
  align-items: center !important;
  justify-content: center;
  gap: 3px;
  text-align: center !important;
}

.match-target-zone.is-target-cursor-active,
.match-target-zone.is-target-cursor-active .cursor-target { cursor: none; }
.match-wizard-actions button,
.match-workspace .match-start { cursor: pointer; }

.target-cursor-wrapper {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  will-change: transform, opacity;
}

.target-cursor.is-visible { opacity: 1; }
.target-cursor-dot { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); will-change: transform; }
.target-cursor-corner { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border: 3px solid #fff; will-change: transform; }
.target-cursor-corner.is-tl { border-right: 0; border-bottom: 0; }
.target-cursor-corner.is-tr { border-left: 0; border-bottom: 0; }
.target-cursor-corner.is-br { border-left: 0; border-top: 0; }
.target-cursor-corner.is-bl { border-right: 0; border-top: 0; }

.product-shell .match-option.is-on,
.product-shell .home-filter-game-row.is-on,
.product-shell .home-filter-tag.is-on {
  border-color: rgba(118, 89, 223, 0.78);
  background: linear-gradient(135deg, rgba(238, 233, 255, 0.95), rgba(229, 221, 255, 0.72));
  color: var(--product-black);
  box-shadow: none;
}

.match-option-icon {
  color: var(--product-black);
}

.match-option-check {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--product-violet);
  color: #fff;
  opacity: 0;
}

.match-option.is-on .match-option-check {
  opacity: 1;
}

/* Expandable-card treatment for game selection: keep both live and coming-soon cards on the same visual system. */
.product-shell .match-option.match-game-card {
  height: clamp(270px, 29vw, 320px);
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(18,17,24,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 1px 0 rgba(18,17,24,.04);
  text-align: left;
  transition: transform 260ms cubic-bezier(.22,1,.36,1), background 220ms ease, border-color 220ms ease, box-shadow 260ms cubic-bezier(.22,1,.36,1);
}
.product-shell .match-option.match-game-card:hover { border-color: rgba(118,89,223,.52); background: #fff; box-shadow: 0 14px 28px rgba(18,17,24,.1); transform: translateY(-5px); }
.product-shell .match-option.match-game-card.is-on { border-color: var(--product-violet); background: #fff; box-shadow: 0 14px 28px rgba(118,89,223,.16), 0 0 0 2px rgba(118,89,223,.12); transform: translateY(-3px); }
.product-shell .match-option.match-game-card .match-option-check { position: static; margin-left: 2px; width: 25px; height: 25px; border-radius: 0; opacity: 0; }
.product-shell .match-option.match-game-card.is-on .match-option-check { opacity: 1; }

/* Smaller expandable-card family for goal and rank choices. Each art slot is intentionally empty for future artwork. */
.match-choice-cards { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-shell .match-option.match-choice-card { height: 174px; min-height: 0; padding: 10px; display: flex; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid rgba(18,17,24,.14); border-radius: 12px; background: rgba(255,255,255,.82); text-align: left; transition: transform 230ms cubic-bezier(.22,1,.36,1), border-color 180ms ease, box-shadow 230ms ease, background 180ms ease; }
.product-shell .match-option.match-choice-card:hover { border-color: rgba(118,89,223,.52); background: #fff; box-shadow: 0 10px 20px rgba(18,17,24,.1); transform: translateY(-3px); }
.product-shell .match-option.match-choice-card.is-on { border-color: var(--product-violet); background: #fff; box-shadow: 0 10px 20px rgba(118,89,223,.14), 0 0 0 2px rgba(118,89,223,.1); }
.match-choice-art-slot { width: 100%; height: 104px; flex: none; border-radius: 8px; background: linear-gradient(145deg, rgba(118,89,223,.2), rgba(18,17,24,.05)), repeating-linear-gradient(135deg, rgba(118,89,223,.18) 0 2px, transparent 2px 11px); transition: transform 320ms cubic-bezier(.22,1,.36,1), filter 220ms ease; }
.match-choice-art-slot--casual { background: linear-gradient(145deg, rgba(79,167,157,.23), rgba(18,17,24,.04)), repeating-linear-gradient(135deg, rgba(79,167,157,.16) 0 2px, transparent 2px 11px); }
.match-choice-card:hover .match-choice-art-slot, .match-choice-card.is-on .match-choice-art-slot { filter: saturate(1.1); transform: scale(1.025); }
.match-choice-card-body { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.match-choice-card-title { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.match-choice-card-title b { font-size: 16px; letter-spacing: -.03em; }
.match-choice-card-title .match-option-icon { width: 27px; height: 27px; display: grid; place-items: center; color: var(--product-violet); }
.product-shell .match-option.match-choice-card .match-option-check { position: static; margin-left: 2px; width: 21px; height: 21px; border-radius: 0; opacity: 0; }
.product-shell .match-option.match-choice-card.is-on .match-option-check { opacity: 1; }

/* Casual intent deliberately uses the same compact card grammar as voice.
   More is just another choice until its advanced panel is requested. */
.match-casual-intent-options { width: 100%; display: flex; flex-wrap: wrap; align-content: center; gap: 14px; }
.match-options--casual-intents { flex: 1 1 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-shell .match-options--casual-intents .match-option { min-height: 104px; }
.product-shell .match-options--casual-intents .match-option-icon { color: var(--product-violet); }
.match-casual-advanced-panel { width: min(100%, 620px); margin: 4px auto 0; flex: 1 1 100%; min-width: 0; animation: casualAdvancedIn .18s ease both; }
.match-casual-advanced-panel[hidden] { display: none; }
.match-casual-advanced-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 9px; }
.match-casual-advanced-panel__head > div { display: flex; align-items: baseline; gap: 9px; }
.match-casual-advanced-panel__head b { font: 800 12px/1.2 var(--font-sans); }
.match-casual-advanced-panel__head span,
.match-casual-advanced-panel__head small { color: rgba(20, 18, 27, .5); font: 700 9px/1.2 var(--font-mono); }
.match-casual-advanced-panel__head small { text-transform: uppercase; letter-spacing: .08em; }
.match-casual-advanced-panel .match-team-range { width: 100%; box-sizing: border-box; }
.match-wizard-options:has(.match-options--casual-intents) { flex-wrap: wrap; align-content: center; }
.match-wizard-stage:has(.match-options--casual-intents) { grid-template-columns: minmax(230px, .36fr) minmax(360px, .64fr); }
@keyframes casualAdvancedIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.match-rank-panel { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.match-rank-policy-note { min-height: 36px; padding: 8px 11px; display: flex; align-items: center; gap: 8px; border-left: 2px solid var(--product-violet); background: rgba(118,89,223,.07); color: rgba(18,17,24,.62); font-size: 10px; line-height: 1.4; }
.match-rank-policy-note svg { flex: none; color: var(--product-violet); }
.match-rank-panel .match-options--ranks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.product-shell .match-option.match-rank-option { height: 92px; min-height: 0; padding: 7px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; border-radius: 9px; background: rgba(255,255,255,.78); text-align: center; transition: transform 200ms cubic-bezier(.22,1,.36,1), border-color 180ms ease, box-shadow 200ms ease, background 180ms ease; }
.product-shell .match-option.match-rank-option:hover { border-color: rgba(118,89,223,.52); background: #fff; box-shadow: 0 7px 14px rgba(18,17,24,.08); transform: translateY(-2px); }
.product-shell .match-option.match-rank-option.is-on { border-color: var(--product-violet); background: #fff; box-shadow: 0 7px 14px rgba(118,89,223,.12); }
.match-rank-art-slot { position: relative; width: 100%; height: 42px; flex: none; overflow: hidden; border-radius: 6px; background: #111116; }
.match-rank-art-slot img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 45%; }
.match-rank-option--upper .match-rank-art-slot img { object-position: 50% 35%; }
.match-rank-option--seeker .match-rank-art-slot img,
.match-rank-option--acolyte .match-rank-art-slot img { object-position: 50% 28%; }
.match-rank-option--second-row .match-rank-art-slot img { object-position: 50% 24%; }
.match-rank-option--sentinel .match-rank-art-slot img { object-position: calc(50% + 4px) 31%; transform: scale(1.16); transform-origin: 50% 42%; }
.match-rank-option--oracle .match-rank-art-slot img { object-position: calc(50% + 4px) 21%; transform: scale(1.16); transform-origin: 50% 38%; }
.match-rank-option--phantom .match-rank-art-slot img { object-position: 50% 35%; transform: scale(1.1); transform-origin: 50% 42%; }
.match-rank-card-body { position: relative; min-width: 0; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.match-rank-card-body .match-rank-name { font-size: 11px; font-weight: 760; line-height: 1.1; }
.match-rank-card-body > small { margin-top: 1px; color: rgba(18,17,24,.48); font-family: var(--font-mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.match-rank-card-body .match-option-check { position: absolute; right: -2px; bottom: -1px; width: 15px; height: 15px; opacity: 0; }
.match-rank-option.is-on .match-rank-card-body .match-option-check { opacity: 1; }
.match-role-label { color: rgba(18,17,24,.68); font-size: 10px; font-weight: 760; line-height: 1; }
.match-role-option.is-on .match-role-label { color: var(--product-violet); }

.product-shell .home-filter-tag::before,
.product-shell .home-filter-game-check,
.product-shell .home-filter-game-swell,
.product-shell .home-filter-game-ph {
  display: none;
}

.match-start {
  position: relative;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 3px solid var(--product-black);
  border-radius: 7px;
  background: #b9a5ff;
  box-shadow: 5px 5px 0 var(--product-black);
  color: var(--product-black);
  font-size: 20px;
  font-weight: 850;
  transition: width 320ms cubic-bezier(.2,.85,.25,1), min-height 320ms cubic-bezier(.2,.85,.25,1), padding 320ms ease, border-radius 320ms ease, transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.match-start:hover {
  background: #c5b5ff;
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--product-black);
}

.match-start:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--product-black);
}

.match-start-dock {
  width: calc(50% - 23px);
  min-height: 72px;
  margin: 28px 0 0 calc(50% + 23px);
}

.match-start.is-floating {
  position: fixed;
  z-index: 62;
  right: clamp(20px, 4vw, 56px);
  bottom: calc(var(--product-ticker) + 24px);
  width: 68px;
  min-height: 68px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

.match-start > span {
  max-width: 180px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 220ms ease, opacity 160ms ease;
}

.match-start.is-floating > span { max-width: 0; opacity: 0; }
.match-start.is-floating svg { animation: matchPetFloat 3.8s ease-in-out infinite; }
.match-start.is-floating:hover svg { animation-play-state: paused; }
.match-start.is-floating:active svg { animation: none; }

@keyframes matchPetFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  45% { transform: translateY(-6px) rotate(-0.18deg); }
  55% { transform: translateY(-6px) rotate(0.18deg); }
}

.community-workspace {
  width: min(1124px, 100%);
  min-height: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--product-hairline);
  border-bottom: 1px solid var(--product-hairline);
}

.community-workspace h1 {
  font-family: var(--font-sans);
  font-size: clamp(64px, 8vw, 116px);
  letter-spacing: -0.06em;
}

.community-workspace p {
  margin-top: 18px;
  color: var(--product-violet);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.18em;
}

.community-workspace > span {
  max-width: 520px;
  margin-top: 30px;
  color: rgba(18, 17, 24, 0.54);
  font-size: 15px;
}

.product-auth-workspace,
.identity-workspace,
.product-me-workspace {
  width: min(1124px, 100%);
  margin: 0 auto;
}

.product-auth-workspace {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  border: 1px solid var(--product-hairline);
  background: rgba(255, 255, 255, 0.28);
}

.product-auth-intro {
  position: relative;
  min-width: 0;
  padding: clamp(54px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--product-black);
  color: #fff;
}

.product-auth-intro h1 {
  max-width: 520px;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.product-auth-intro > p {
  max-width: 440px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.8;
}

.auth-warning-rule {
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: 54px;
  height: 42px;
  box-sizing: border-box;
  padding-inline: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transform: rotate(-3deg);
  border: 2px solid #0c0b10;
  background: #b9a5ff;
  color: var(--product-black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.auth-warning-rule span,
.auth-warning-rule i { flex: 0 0 auto; }
.auth-warning-rule i { font-style: normal; font-weight: 500; }

.product-auth-panel {
  align-self: center;
  padding: clamp(46px, 6vw, 78px);
}

.registration-stepper {
  width: 100%;
  display: flex;
  align-items: flex-start;
  margin-bottom: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--product-hairline);
}

.registration-step {
  flex: none;
  min-width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.registration-step b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 17, 24, 0.22);
  border-radius: 50%;
  background: transparent;
  color: rgba(18, 17, 24, 0.42);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.registration-step em { color: rgba(18, 17, 24, 0.42); font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.registration-step.is-active b { transform: scale(1.08); border-color: var(--product-violet); background: var(--product-violet); color: #fff; box-shadow: 0 0 0 6px rgba(118, 89, 223, 0.11); }
.registration-step.is-active em { color: var(--product-black); }
.registration-step.is-complete b { border-color: var(--product-black); background: var(--product-black); color: #fff; }
.registration-step.is-complete em { color: rgba(18, 17, 24, 0.72); }

.registration-step-line { position: relative; flex: 1; height: 2px; margin: 15px 8px 0; overflow: hidden; border-radius: 2px; background: rgba(18, 17, 24, 0.14); }
.registration-step-line i { position: absolute; inset: 0; background: var(--product-violet); transform: scaleX(0); transform-origin: left; transition: transform 420ms cubic-bezier(.22,1,.36,1); }
.registration-step-line.is-complete i { transform: scaleX(1); }

.identity-workspace > .registration-stepper { width: min(760px, 100%); margin: 6px auto 38px; }
.identity-form { animation: registerStepEnter 420ms 60ms cubic-bezier(.2,.8,.2,1) both; }

@keyframes registerStepEnter { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }

.product-auth-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.product-auth-heading > span {
  font-size: 30px;
  font-weight: 760;
}

.product-auth-tabs {
  position: relative;
  width: 174px;
  height: 42px;
  display: flex;
  gap: 0;
  padding: 4px;
  overflow: hidden;
  border: 2px solid var(--product-black);
  border-radius: 6px;
  background: var(--product-black);
  box-shadow: 3px 3px 0 rgba(118, 89, 223, 0.72);
}

.product-auth-tabs button {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  height: 30px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 650;
  transition: color 360ms cubic-bezier(.2,.8,.2,1), font-weight 360ms ease;
}

.product-auth-tabs button.is-active { color: #fff; font-weight: 850; }

.product-auth-tab-indicator {
  position: absolute;
  z-index: 1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 3px;
  background: #514d49;
  transform: translateX(0);
  transition: transform 420ms cubic-bezier(.22,1,.36,1), background 320ms ease;
}

.product-auth-workspace.is-register .product-auth-tab-indicator {
  transform: translateX(100%);
  background: var(--product-violet);
}

.product-auth-form { min-height: 386px; display: flex; flex-direction: column; gap: 18px; }
.product-auth-form--simple { min-height: 300px; }

.product-auth-field { display: flex; flex-direction: column; gap: 8px; }

.product-auth-field > span {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.product-auth-field > div {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid rgba(18, 17, 24, 0.17);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 17, 24, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.product-auth-field > div:focus-within {
  border-color: var(--product-violet);
  box-shadow: 0 0 0 3px rgba(118, 89, 223, 0.12);
}

.product-auth-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--product-black); }
.auth-verification-copy { color: rgba(18, 17, 24, 0.62); font-size: 13px; line-height: 1.65; }
.auth-verification-copy strong { color: var(--product-black); font-weight: 800; overflow-wrap: anywhere; }
.auth-otp-field input { font-size: 22px; font-weight: 800; letter-spacing: 0.28em; font-variant-numeric: tabular-nums; }
.auth-verification-back { align-self: flex-start; color: rgba(18, 17, 24, 0.58); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.product-auth-field .icon { color: rgba(18, 17, 24, 0.4); }
.product-auth-field .auth-password-toggle {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: rgba(18, 17, 24, 0.48);
  border-radius: 50%;
  transform: none;
  transition: color 160ms ease, background 160ms ease;
}
.product-auth-field .auth-password-toggle:hover { color: var(--product-violet); background: var(--product-violet-soft); }
.auth-forgot-row { display: flex; justify-content: flex-end; margin-top: -10px; }
.auth-forgot-link { color: rgba(18, 17, 24, 0.58); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.auth-forgot-link:hover { color: var(--product-violet); }
.auth-confirm-slot {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(.22,1,.36,1), visibility 0s linear 0s;
}
.auth-email-slot {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(.22,1,.36,1), visibility 0s linear 0s;
}
.product-auth-workspace.is-login .auth-email-slot {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 320ms cubic-bezier(.22,1,.36,1), visibility 0s linear 320ms;
}
.product-auth-workspace.is-login .auth-confirm-slot {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 320ms cubic-bezier(.22,1,.36,1), visibility 0s linear 320ms;
}
.password-eye { grid-area: 1 / 1; transition: opacity 180ms ease, transform 240ms cubic-bezier(.2,.8,.2,1); }
.password-eye--open { opacity: 0; transform: scale(.68) rotate(-8deg); }
.password-eye--closed { opacity: 1; transform: scale(1) rotate(0); }
.auth-password-toggle.is-show .password-eye--open { opacity: 1; transform: scale(1) rotate(0); }
.auth-password-toggle.is-show .password-eye--closed { opacity: 0; transform: scale(.7) rotate(8deg); }

.product-auth-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; }
.product-auth-submit-row p { color: rgba(18, 17, 24, 0.5); font-size: 13px; }
.product-auth-submit-row p button { margin-left: 4px; color: var(--product-black); text-decoration: underline; text-underline-offset: 3px; }
.product-auth-submit { min-width: 126px; height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 3px solid var(--product-black); border-radius: 7px; background: #b9a5ff; box-shadow: 4px 4px 0 var(--product-black); font-weight: 850; transition: transform 120ms ease, box-shadow 120ms ease; }
.product-auth-submit:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--product-black); }
.product-auth-submit:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--product-black); }

.identity-head,
.product-me-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 0 34px;
  border-bottom: 1px solid var(--product-hairline);
}

.identity-head h1,
.product-me-head h1 { font-size: clamp(48px, 5vw, 72px); letter-spacing: -0.055em; }
.identity-head p,
.product-me-head p { margin-top: 15px; color: rgba(18, 17, 24, 0.52); }

.identity-form--step { display: block; }
.identity-form--step.is-forward { animation: identityStepForward 480ms cubic-bezier(.22,1,.36,1) both; }
.identity-form--step.is-backward { animation: identityStepBackward 480ms cubic-bezier(.22,1,.36,1) both; }
.identity-step-card { position: relative; min-height: 360px; display: grid; grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr); overflow: hidden; border-bottom: 1px solid var(--product-hairline); }
.identity-step-card::after { content: ""; position: absolute; z-index: 4; top: 0; bottom: 96px; left: 0; width: 2px; pointer-events: none; background: var(--product-violet); opacity: 0; animation: identityStepScan 520ms cubic-bezier(.22,1,.36,1) both; }
.identity-step-copy { padding: 36px 28px 36px 0; border-right: 1px solid var(--product-hairline); }
.identity-step-copy > span { color: var(--product-violet); font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.identity-step-copy h2 { max-width: none; margin-top: 18px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -0.065em; white-space: nowrap; }
.identity-step-copy p { display: none; }
.identity-step-body { min-width: 0; min-height: 260px; padding: 36px 0 36px 40px; display: flex; align-items: center; }
.identity-field { display: flex; flex-direction: column; gap: 10px; }
.identity-field > span { font-size: 13px; font-weight: 750; }
.identity-field > span small { margin-left: 6px; color: rgba(18, 17, 24, 0.42); font-weight: 500; }
.identity-field > small { color: rgba(18, 17, 24, 0.42); font-size: 11px; }
.identity-field input,
.identity-field select { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--product-hairline); border-radius: 5px; background: rgba(255, 255, 255, 0.52); outline: 0; }
.identity-field input:focus,
.identity-field select:focus { border-color: var(--product-violet); }
.identity-field--hero { width: min(520px, 100%); }
.identity-field--hero input { height: 76px; padding: 0 22px; border-width: 2px; background: #fff; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.identity-avatar-options { width: 100%; display: flex; align-items: center; gap: 12px; }
.identity-choice-grid { width: 100%; display: grid; gap: 12px; }
.identity-choice-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.identity-choice-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.identity-choice-grid--genres { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.identity-gender-field { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.identity-matching-note { min-height: 48px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; border-left: 3px solid var(--product-violet); background: rgba(118, 89, 223, 0.07); color: rgba(18, 17, 24, 0.66); font-size: 12px; }
.identity-matching-note span { color: var(--product-violet); font-family: var(--font-mono); font-size: 10px; font-weight: 850; letter-spacing: 0.08em; white-space: nowrap; }
.identity-matching-note b { color: var(--product-black); font-weight: 700; }
.identity-choice { min-width: 0; min-height: 52px; padding: 14px 18px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--product-hairline); border-radius: 6px; background: rgba(255, 255, 255, 0.38); text-align: center; transition: border-color 170ms ease, background 170ms ease, transform 170ms ease; }
.identity-choice:hover { transform: translateY(-2px); border-color: rgba(118, 89, 223, 0.55); }
.identity-choice.is-on { border: 2px solid var(--product-violet); padding: 13px 17px; background: var(--product-violet-soft); }
.identity-art-slot { position: relative; min-height: 102px; display: grid; place-items: center; overflow: hidden; border: 1px dashed rgba(18, 17, 24, 0.18); border-radius: 3px; background: rgba(18, 17, 24, 0.025); }
.identity-art-slot i { color: rgba(18, 17, 24, 0.25); font-family: var(--font-mono); font-size: 9px; font-style: normal; letter-spacing: 0.08em; }
.identity-choice--avatar .identity-art-slot { min-height: 210px; }
.identity-art-slot .avatar-canvas { width: 100%; height: 100%; border-radius: 2px; clip-path: none; object-fit: cover; }
.identity-choice-label { width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 7px; }
.identity-choice-label b { overflow: visible; font-size: 13px; text-overflow: clip; white-space: nowrap; }
.identity-choice-label small { color: rgba(18, 17, 24, 0.4); font-size: 9px; white-space: nowrap; }
.identity-step-actions { grid-column: 1 / -1; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--product-hairline); }
.identity-back { min-height: 44px; display: flex; align-items: center; gap: 9px; color: rgba(18, 17, 24, 0.58); font-size: 12px; font-weight: 700; }
.identity-back .icon { transform: rotate(180deg); }
.identity-submit { min-width: 260px; min-height: 60px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border: 3px solid var(--product-black); border-radius: 7px; background: #b9a5ff; box-shadow: 5px 5px 0 var(--product-black); font-size: 15px; font-weight: 850; }

@keyframes identityStepForward { from { opacity: .15; transform: translateX(34px); clip-path: inset(0 8% 0 0); } to { opacity: 1; transform: translateX(0); clip-path: inset(0); } }
@keyframes identityStepBackward { from { opacity: .15; transform: translateX(-34px); clip-path: inset(0 0 0 8%); } to { opacity: 1; transform: translateX(0); clip-path: inset(0); } }
@keyframes identityStepScan { 0% { opacity: 0; transform: translateX(0); } 18% { opacity: .55; } 100% { opacity: 0; transform: translateX(760px); } }

.product-line-button { min-height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--product-black); border-radius: 5px; font-weight: 700; }
.product-me-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; padding-top: 26px; }
.product-me-card { min-width: 0; padding: 26px; border: 1px solid var(--product-hairline); border-radius: 6px; background: rgba(255, 255, 255, 0.38); }
.product-me-card--identity { grid-row: span 2; }
.product-me-card-label { margin-bottom: 20px; color: rgba(18, 17, 24, 0.4); font-family: var(--font-mono); font-size: 10px; font-weight: 750; letter-spacing: 0.13em; }
.product-me-identity { display: flex; align-items: center; gap: 18px; }
.product-me-identity h2 { font-size: 28px; }
.product-me-identity p { margin-top: 2px; color: rgba(18, 17, 24, 0.48); font-size: 13px; }
.product-me-identity span { display: block; margin-top: 10px; font-size: 12px; }
.product-me-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-block: 1px solid var(--product-hairline); }
.product-me-stats div { padding: 20px 10px; text-align: center; }
.product-me-stats div + div { border-left: 1px solid var(--product-hairline); }
.product-me-stats b { display: block; font-size: 24px; }
.product-me-stats span { display: block; margin-top: 4px; color: rgba(18, 17, 24, 0.46); font-size: 11px; }
.product-code { margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.product-code > span { font-size: 11px; color: rgba(18, 17, 24, 0.48); }
.product-code > b { font-family: var(--font-mono); font-size: 13px; }
.product-code button { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.product-me-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.product-me-card-head h2 { font-size: 22px; }
.product-me-card-head a { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }
.product-person-list,
.product-history-list { margin-top: 18px; }
.product-person { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--product-hairline); }
.product-person b,
.product-person span { display: block; }
.product-person span { margin-top: 3px; color: rgba(18, 17, 24, 0.45); font-size: 11px; }
.product-person i { color: #4a9d43; font-size: 10px; font-style: normal; }
.product-history-list > div:not(.product-empty) { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--product-hairline); font-size: 12px; }
.product-history-list i { color: rgba(18, 17, 24, 0.45); font-style: normal; }
.product-empty { min-height: 100px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; color: rgba(18, 17, 24, 0.45); }
.product-empty b { color: var(--product-black); font-size: 13px; }
.product-empty span { font-size: 11px; line-height: 1.5; }
.product-logout { margin: 22px 0 0 auto; display: flex; align-items: center; gap: 8px; color: rgba(18, 17, 24, 0.5); font-size: 12px; }

/* Player profile: one composed dossier instead of a grid of generic cards. */
.player-profile-workspace { width: min(1124px, 100%); margin: 0 auto; padding-bottom: 110px; }
.player-profile-head { min-height: 164px; padding: 12px 0 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--product-hairline); }
.player-profile-head h1 { font-size: clamp(48px, 5vw, 70px); letter-spacing: -.06em; }
.player-profile-head p { margin-top: 14px; color: rgba(18,17,24,.54); font-size: 15px; }
.player-profile-edit { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--product-black); color: var(--product-black); font-size: 11px; font-weight: 780; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.player-profile-edit:hover { background: var(--product-black); color: #fff; transform: translateY(-2px); }
.player-profile-hero { position: relative; min-height: 210px; margin-top: 26px; padding: 30px 34px 58px; display: flex; align-items: center; justify-content: space-between; gap: 26px; overflow: hidden; border: 1px solid var(--product-black); background: #14131b; color: #fff; box-shadow: 6px 6px 0 var(--product-violet); }
.player-profile-hero::after { content: ""; position: absolute; z-index: 0; right: -6%; bottom: 24px; width: 410px; height: 160px; background: linear-gradient(120deg, transparent 30%, rgba(185,165,255,.32) 30% 32%, transparent 32% 54%, rgba(185,165,255,.12) 54% 55%, transparent 55%); transform: skewX(-18deg); }
.player-profile-identity, .player-profile-status { position: relative; z-index: 1; }
.player-profile-identity { display: flex; align-items: center; gap: 20px; }
.player-profile-avatar { position: relative; flex: 0 0 auto; }
.player-profile-avatar i { position: absolute; right: 2px; bottom: 4px; width: 14px; height: 14px; border: 3px solid #14131b; border-radius: 50%; background: #67c755; }
.player-profile-identity > div:last-child > span { color: #cbbcff; font-family: var(--font-mono); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.player-profile-identity h2 { margin-top: 8px; font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.player-profile-identity p { margin-top: 7px; color: rgba(255,255,255,.5); font-family: var(--font-mono); font-size: 10px; }
.player-profile-status { min-width: 112px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.2); }
.player-profile-status i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #67c755; }
.player-profile-status span { color: rgba(255,255,255,.47); font-size: 10px; }
.player-profile-status b { display: block; margin-top: 8px; font-size: 18px; }
.player-profile-tape { position: absolute; z-index: 2; left: -24px; right: -24px; bottom: 14px; height: 25px; display: flex; align-items: center; overflow: hidden; transform: rotate(-1.5deg); border-block: 1px solid #0a090d; background: var(--product-violet); color: var(--product-black); }
.player-profile-tape-track { display: flex; width: max-content; height: 100%; align-items: center; will-change: transform; animation: projectTape 16s linear infinite; }
.player-profile-tape span { height: 100%; flex: none; display: flex; align-items: center; padding-right: 42px; white-space: nowrap; font-family: var(--font-mono); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.player-profile-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; margin-top: 34px; }
.player-profile-panel { min-width: 0; padding: 22px; border: 1px solid var(--product-hairline); background: rgba(255,255,255,.36); }
.player-profile-panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.player-profile-panel > header span { color: rgba(18,17,24,.43); font-family: var(--font-mono); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.player-profile-panel > header b { font-size: 18px; letter-spacing: -.04em; }
.player-profile-panel--game { grid-row: span 2; background: rgba(255,255,255,.52); }
.player-game-art-slot { min-height: 218px; margin-top: 20px; display: grid; place-items: center; overflow: hidden; border: 1px dashed rgba(18,17,24,.22); background: linear-gradient(135deg, rgba(118,89,223,.16), rgba(255,255,255,.4)); }
.player-game-art-slot::before { content: ""; width: 62%; height: 62%; border: 1px solid rgba(118,89,223,.34); transform: rotate(45deg); }
.player-game-art-slot i { position: absolute; color: rgba(18,17,24,.42); font-family: var(--font-mono); font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .12em; }
.player-game-specs { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--product-hairline); }
.player-game-specs > div { min-width: 0; padding: 14px 10px 0 0; }
.player-game-specs > div + div { padding-left: 12px; border-left: 1px solid var(--product-hairline); }
.player-game-specs dt { color: rgba(18,17,24,.42); font-size: 9px; }
.player-game-specs dd { margin-top: 7px; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.player-profile-panel--numbers { background: var(--product-violet); }
.player-profile-numbers { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
.player-profile-numbers div + div { border-left: 1px solid rgba(18,17,24,.22); padding-left: 18px; }
.player-profile-numbers b { display: block; font-family: var(--font-display); font-size: 48px; line-height: .9; letter-spacing: -.07em; }
.player-profile-numbers small { font-size: 18px; }
.player-profile-numbers span { display: block; margin-top: 10px; color: rgba(18,17,24,.62); font-size: 10px; font-weight: 750; }
.player-profile-panel--numbers > p { max-width: 280px; margin-top: 28px; color: rgba(18,17,24,.64); font-size: 11px; line-height: 1.65; }
.player-profile-panel--friends { background: #191820; color: #fff; }
.player-profile-panel--friends > header span { color: rgba(255,255,255,.43); }
.player-soon { min-height: 148px; display: flex; flex-direction: column; justify-content: flex-end; margin-top: 16px; }
.player-soon > div { color: #cbbcff; }
.player-soon b { margin-top: 12px; color: #fff; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; }
.player-soon p { max-width: 290px; margin-top: 8px; color: rgba(255,255,255,.52); font-size: 11px; line-height: 1.55; }
.player-profile-panel--recent { grid-column: 1 / -1; }
.player-recent-list { margin-top: 16px; }
.player-recent-list article { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--product-hairline); }
.player-recent-list article b, .player-recent-list article small { display: block; }
.player-recent-list article b { font-size: 12px; }
.player-recent-list article small, .player-recent-list article i { margin-top: 3px; color: rgba(18,17,24,.46); font-size: 10px; font-style: normal; }
.player-recent-empty { min-height: 110px; display: flex; flex-direction: column; justify-content: center; gap: 6px; color: rgba(18,17,24,.46); font-size: 11px; }
.player-recent-empty b { color: var(--product-black); font-size: 12px; }
.player-profile-logout { margin: 24px 0 0 auto; display: flex; align-items: center; gap: 8px; color: rgba(18,17,24,.55); font-size: 11px; }
.connection-friend-paused { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: rgba(18,17,24,.46); font-size: 11px; }

.product-ticker {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--product-ticker);
  overflow: hidden;
  border-top: 2px solid var(--product-black);
  background: #b9a5ff;
  color: var(--product-black);
  pointer-events: none;
}

.product-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.product-ticker-text {
  display: block;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--product-black);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 750;
  line-height: var(--product-ticker);
  letter-spacing: 0.02em;
  user-select: none;
}

.pc-only-gate { display: none; }

.pc-only-card {
  width: min(520px, calc(100% - 34px));
  padding: 34px 30px 30px;
  border: 2px solid var(--product-black);
  border-radius: 8px;
  background: var(--product-paper);
  box-shadow: 8px 8px 0 var(--product-black);
}
.pc-only-mark { width: 58px; margin-bottom: 34px; }
.pc-only-card h1 { margin-top: 20px; font-size: clamp(38px, 12vw, 58px); letter-spacing: -0.055em; }
.pc-only-card > p { margin-top: 16px; color: rgba(18, 17, 24, 0.58); font-size: 14px; line-height: 1.7; }
.pc-only-device { margin-top: 28px; padding-top: 22px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--product-hairline); }
.pc-only-device b, .pc-only-device small { display: block; }
.pc-only-device b { font-size: 13px; }
.pc-only-device small { margin-top: 3px; color: rgba(18, 17, 24, 0.48); font-size: 11px; }
.pc-only-warning { position: absolute; left: -8%; right: -8%; bottom: 7vh; height: 42px; display: flex; align-items: center; justify-content: center; gap: 22px; transform: rotate(-3deg); border-block: 2px solid var(--product-black); background: #b9a5ff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pc-only-warning i { font-style: normal; font-weight: 500; }

@media (max-width: 900px) and (hover: none) and (pointer: coarse) {
  .pc-only-gate {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px 0 100px;
    background: var(--product-paper);
  }
}

@media (max-width: 980px) {
  .match-content-grid { grid-template-columns: 1fr; }
  .match-directory { position: static; }
  .match-directory-list { max-height: 260px; }
  .player-profile-grid { grid-template-columns: 1fr; }
  .player-profile-panel--game, .player-profile-panel--recent { grid-column: auto; grid-row: auto; }
  .match-game-stage,
  .match-wizard-stage { grid-template-columns: 1fr; }
  .match-stage-copy,
  .match-wizard-copy { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--product-hairline); }
  .match-game-stage > .match-options--games,
  .match-wizard-options { padding: 30px 0; }
}

@media (max-width: 640px) {
  .player-profile-head { align-items: flex-start; flex-direction: column; }
  .player-profile-hero { min-height: 270px; padding: 26px 22px 58px; align-items: flex-start; flex-direction: column; }
  .player-profile-status { padding: 0; border-left: 0; }
  .player-game-specs { grid-template-columns: 1fr; }
  .player-game-specs > div + div { padding-left: 0; border-left: 0; }
}

@media (max-width: 1120px) {
  :root { --product-rail-expanded: 152px; }
  .landing-hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 46px; }
  .landing-match { right: 44px; width: 270px; }
  .landing-copy h1 { font-size: clamp(70px, 9vw, 102px); }
  .product-nav-link { padding: 0 14px; gap: 14px; }
  .match-options--games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-game-stage,
  .match-wizard-stage { grid-template-columns: 1fr; }
  .match-stage-copy,
  .match-wizard-copy { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--product-hairline); }
  .match-game-stage > .match-options--games,
  .match-wizard-options { padding: 30px 0; }
  .product-auth-workspace { grid-template-columns: minmax(320px, 0.85fr) minmax(390px, 1.15fr); }
  .product-auth-intro,
  .product-auth-panel { padding: 46px; }
}

@media (max-height: 800px) and (min-width: 821px) {
  .landing-header { height: 82px; }
  .landing-hero { min-height: calc(100vh - 82px - var(--product-ticker)); padding-block: 28px 42px; }
  .landing-copy h1 { margin-top: 32px; }
  .landing-copy > p { margin-top: 24px; }
  .landing-match { width: min(22vw, 260px); }
  .product-topbar { height: 96px; }
  .product-surface .home-main { padding-top: 10px; padding-bottom: 48px; }
  .match-workspace { padding-bottom: 72px; }
  .match-head { min-height: 132px; padding-bottom: 24px; }
  .match-head h1 { font-size: clamp(50px, 5vw, 68px); }
  .match-head p { margin-top: 14px; font-size: 17px; }
  .match-wizard { padding-top: 12px; }
  .match-wizard-stepper { min-height: 58px; margin-bottom: 10px; }
  .match-wizard-stage { min-height: 386px; }
  .match-wizard-copy { padding-block: 30px; }
  .match-wizard-copy h2 { font-size: 32px; }
  .match-wizard-options {
    height: auto;
    min-height: 292px;
    padding-block: 24px;
    align-items: flex-start;
    overflow: visible;
  }
  .match-wizard-actions { min-height: 78px; }
  .match-role-groups { gap: 16px; }
  .match-options--roles .match-option { min-height: 48px; padding: 6px 8px; gap: 2px; }
  .match-role-number { font-size: 20px; }
  .product-auth-workspace { min-height: 520px; }
  .product-auth-intro { padding: 44px; }
  .product-auth-intro h1 { font-size: clamp(46px, 4.3vw, 64px); }
  .product-auth-intro > p { margin-top: 20px; }
  .auth-warning-rule { bottom: 34px; }
  .product-auth-panel { padding: 36px 46px; }
  .product-auth-heading { margin-bottom: 28px; }
  .product-auth-form { min-height: 350px; gap: 12px; }
  .product-auth-field { gap: 6px; }
  .product-auth-field > div { height: 50px; }
}

@media (max-width: 820px) {
  :root { --product-ticker: 36px; }
  .landing-shell { min-height: 100vh; }
  .landing-header { height: 82px; padding-inline: 20px; }
  .landing-brand strong { display: none; }
  .landing-hero { min-height: calc(100vh - 82px - var(--product-ticker)); padding: 36px 20px 70px; grid-template-columns: 1fr; }
  .landing-match { right: 20px; width: min(34vw, 238px); padding: 20px; }
  .landing-match strong { font-size: clamp(48px, 9vw, 68px); }
  .landing-more { padding: 52px 20px 90px; }
  .landing-statement { align-items: flex-start; flex-direction: column; }
  .landing-statement strong { text-align: left; }
  .landing-lower-grid { grid-template-columns: 1fr; }
  .landing-ticker { bottom: 0; }
  .product-shell { display: block; padding-bottom: calc(var(--product-ticker) + 70px); }
  .product-rail,
  .product-rail:hover,
  .product-rail:focus-within { position: fixed; inset: auto 0 0; z-index: 80; width: auto; height: 70px; display: block; border: 0; box-shadow: none; }
  .product-brand, .product-rail-footer { display: none; }
  .product-nav { height: 100%; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .product-nav-link,
  .product-rail:hover .product-nav-link,
  .product-rail:focus-within .product-nav-link { min-height: 70px; justify-content: center; padding: 0; gap: 7px; font-size: 12px; }
  .product-nav-link > span,
  .product-rail:hover .product-nav-link > span,
  .product-rail:focus-within .product-nav-link > span { max-width: 80px; opacity: 1; }
  .product-nav-link::before { inset: 0 22% auto; width: auto; height: 3px; transform: scaleX(0); }
  .product-nav-link.is-active::before { transform: scaleX(1); }
  .product-surface { min-height: calc(100vh - 106px); }
  .product-topbar { height: 82px; padding: 0 20px; }
  .product-surface .home-main { padding: 8px 20px 50px; }
  .product-ticker { bottom: 70px; height: var(--product-ticker); }
  .product-ticker-text { font-size: 12px; }
  .match-head { align-items: flex-start; flex-direction: column; min-height: 160px; }
  .match-head h1 { font-size: 54px; }
  .match-game-stage,
  .match-wizard-stage { grid-template-columns: 1fr; }
  .match-stage-copy,
  .match-wizard-copy { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--product-hairline); }
  .match-game-stage > .match-options--games,
  .match-wizard-options { padding: 30px 0; }
  .match-wizard-marker { min-width: 54px; }
  .match-wizard-marker em { display: none; }
  .match-wizard-actions { grid-column: 1; }
  .match-options--roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-rank-panel .match-options--ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-options--team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .match-wizard-actions .match-start-dock { width: 100%; }
  .matching-modal-page { bottom: calc(var(--product-ticker) + 70px); padding: 12px; }
  .matching-modal { width: calc(100vw - 24px); max-height: calc(100vh - var(--product-ticker) - 94px); }
  .matching-modal-content { padding-inline: 22px; }
  .matching-player-card--left { left: 12%; }
  .matching-player-card--right { right: 12%; }
  .matching-modal-progress { grid-template-columns: 1fr; }
  .matching-modal-stats { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .match-form { grid-template-columns: 1fr; }
  .match-block:nth-child(even) { padding-left: 0; border-left: 0; }
  .match-options--games, .match-options, .home-filter-tag-group.match-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-start-dock { width: 100%; margin-left: 0; }
  .match-start.is-floating { right: 18px; bottom: calc(var(--product-ticker) + 88px); width: 62px; min-height: 62px; }
  .product-auth-workspace,
  .identity-form,
  .product-me-grid { grid-template-columns: 1fr; }
  .product-auth-intro { min-height: 330px; padding: 40px 28px 100px; }
  .product-auth-panel { padding: 38px 24px; }
  .product-auth-submit-row { align-items: stretch; flex-direction: column; }
  .product-auth-submit { width: 100%; }
  .identity-step-card { grid-template-columns: 1fr; }
  .identity-step-copy { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--product-hairline); }
  .identity-step-body { min-height: 220px; padding: 28px 0; }
  .identity-choice-grid--genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-choice-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-step-actions { grid-column: 1; }
  .identity-submit { min-width: 0; }
  .product-me-card--identity { grid-row: auto; }
  .product-me-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .match-choice-cards { grid-template-columns: 1fr; }
  .product-shell .match-option.match-choice-card { height: 146px; }
  .match-choice-art-slot { height: 82px; }
  .product-shell .match-option.match-rank-option { height: 86px; }
  .match-rank-art-slot { height: 38px; }
}

@keyframes matchSoonDrift {
  from { transform: scale(1.08) translate3d(-1.4%, 0, 0); }
  to { transform: scale(1.08) translate3d(1.4%, 0, 0); }
}

.hero-boot { position: fixed; inset: 0; z-index: 10020; overflow: hidden; display: grid; grid-template-rows: 38px 1fr 38px; color: #17131f; background: var(--product-violet); }
html:not([data-initial-route="hero"]) .hero-boot { display: none; }
.hero-boot.is-leaving { animation: projectTransitionOut 400ms cubic-bezier(.55,0,1,.45) both; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-boot.is-leaving { animation-duration: .15s; }
  .landing-live i { animation: none; }
  .landing-match { animation: none; }
  .match-game-card--soon .match-game-art-slot img { animation: none; }
  .landing-scroll-cue { scroll-behavior: auto; }
  .match-start svg { animation: none; }
  .target-cursor { display: none; }
  .match-target-zone.is-target-cursor-active,
  .match-target-zone.is-target-cursor-active .cursor-target { cursor: pointer; }
  .registration-stepper,
  .identity-form,
  .registration-step-line.is-complete i { animation: none; }
  .registration-step-line.is-complete i { transform: scaleX(1); }
  .match-stage-enter,
  .match-wizard-stage,
  .identity-step-card::after,
  .matching-modal-backdrop,
  .matching-modal,
  .matching-signal-ring,
  .matching-player-card,
  .matching-query > span { animation: none; }
  .project-transition { transition: none; clip-path: inset(0); }
  .project-transition-tape-track { animation: none; }
  .project-transition-device { animation: none; opacity: 0; }
  .project-transition-device:first-child { opacity: 1; }
}

/* Hero activity board: a restrained translation of the glowy-wave reference
   into the existing “机”缘 paper / violet / warning-stripe language. */
.landing-shell { position: relative; isolation: isolate; background: var(--product-paper); }
.landing-waves { position: absolute; z-index: 0; inset: 106px 0 var(--product-ticker); width: 100%; height: calc(100% - 148px); pointer-events: none; opacity: .9; }
.landing-grain { position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: .28; background-image: radial-gradient(rgba(18,17,24,.16) .65px, transparent .65px); background-size: 13px 13px; mix-blend-mode: multiply; }
.landing-header, .landing-main, .landing-ticker { position: relative; }
.landing-header { z-index: 40; }
.landing-main { z-index: 1; }
.landing-hero { position: relative; min-height: calc(100vh - 106px - var(--product-ticker)); grid-template-columns: minmax(0, 1fr) minmax(340px, .76fr); gap: clamp(42px, 7vw, 108px); }
.landing-copy, .landing-activity { position: relative; z-index: 1; }
.landing-copy > p { max-width: 390px; }
.landing-activity { width: min(100%, 480px); justify-self: end; padding: 22px; border: 1px solid rgba(18,17,24,.15); background: rgba(248,247,242,.74); box-shadow: 11px 11px 0 rgba(185,165,255,.72); backdrop-filter: blur(18px); }
.landing-activity::before { content: ""; position: absolute; z-index: -1; inset: -9px -9px auto auto; width: 88px; height: 42px; background: repeating-linear-gradient(135deg, var(--product-black) 0 11px, #b9a5ff 11px 21px); opacity: .94; }
.landing-activity-head, .hero-directory-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.landing-activity-head { padding-bottom: 18px; border-bottom: 1px solid var(--product-hairline); }
.landing-activity-head span { display: inline-flex; align-items: center; gap: 8px; color: rgba(18,17,24,.48); font-family: var(--font-mono); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.landing-activity-head span i { width: 7px; height: 7px; border-radius: 50%; background: #62bd4f; box-shadow: 0 0 0 4px rgba(98,189,79,.12); animation: landingLive 1.8s ease-in-out infinite; }
.landing-activity-head b { font-size: 14px; letter-spacing: -.03em; }
.landing-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--product-hairline); }
.landing-stat { min-height: 132px; padding: 19px 15px 16px 0; border-right: 1px solid var(--product-hairline); }
.landing-stat + .landing-stat { padding-left: 18px; border-right: 0; }
.landing-stat small, .landing-stat span { display: block; color: rgba(18,17,24,.48); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.landing-stat strong { display: block; margin: 11px 0 4px; color: var(--product-violet); font-size: clamp(46px, 5vw, 68px); font-weight: 760; line-height: .8; letter-spacing: -.08em; }
.landing-stat--play strong { color: var(--product-black); }
.hero-directory-head { padding: 18px 0 10px; }
.hero-directory-head span { font-size: 13px; font-weight: 780; }
.hero-directory-head small { color: rgba(18,17,24,.42); font-family: var(--font-mono); font-size: 9px; }
.hero-directory { min-height: 216px; max-height: 258px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(18,17,24,.22) transparent; }
.hero-directory-person { padding: 11px 0; border-top: 1px solid rgba(18,17,24,.09); }
.hero-directory-person-main, .hero-directory-person-meta { display: flex; align-items: center; gap: 8px; }
.hero-directory-person-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.hero-directory-avatar { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(18,17,24,.2); border-radius: 50%; color: var(--product-violet); }
.hero-directory-person-meta { margin-top: 6px; padding-left: 33px; color: rgba(18,17,24,.52); font-family: var(--font-mono); font-size: 9px; }
.hero-directory-person-meta span { color: var(--product-black); font-weight: 800; }
.hero-directory-person-meta i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.hero-directory-empty { min-height: 190px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; color: rgba(18,17,24,.48); }
.hero-directory-empty b { color: var(--product-black); font-size: 13px; }
.hero-directory-empty small { font-family: var(--font-mono); font-size: 9px; }
.hero-directory-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--product-violet); box-shadow: 0 0 0 7px rgba(118,89,223,.12); animation: landingLive 1.8s ease-in-out infinite; }
.landing-match { right: clamp(24px, 5vw, 76px); width: clamp(206px, 18vw, 270px); box-shadow: 10px 10px 0 #b9a5ff; }
.landing-match:hover { box-shadow: 16px 16px 0 #b9a5ff; }
.landing-more { position: relative; z-index: 1; min-height: 38vh; padding-top: 58px; }
.landing-statement { max-width: 1000px; font-size: clamp(24px, 2.5vw, 40px); }
.landing-lower-grid { margin-top: 42px; }

@media (max-width: 980px) {
  .landing-waves { inset: 82px 0 var(--product-ticker); height: calc(100% - 118px); }
  .landing-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 28px; padding-inline: 34px; }
  .landing-activity { padding: 18px; }
  .landing-match { right: 24px; width: 220px; }
}

@media (max-width: 820px) {
  .landing-waves { inset: 82px 0 var(--product-ticker); height: calc(100% - 118px); }
  .landing-hero { grid-template-columns: 1fr; align-items: start; gap: 32px; padding: 42px 20px 94px; }
  .landing-copy { min-height: 420px; }
  .landing-activity { width: 100%; justify-self: stretch; }
  .landing-match { right: 20px; top: 45%; width: 190px; }
  .landing-match strong { font-size: 52px; }
  .landing-statement { flex-direction: column; align-items: flex-start; gap: 8px; }
  .landing-statement strong { text-align: left; }
}

@media (max-width: 560px) {
  .landing-activity { padding: 15px; }
  .landing-stat { min-height: 112px; }
  .landing-stat strong { font-size: 44px; }
  .landing-match { width: 166px; padding: 17px; }
  .landing-match-code { font-size: 8px; }
  .landing-match strong { font-size: 44px; }
  .landing-match-action { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-activity-head span i, .hero-directory-pulse { animation: none; }
}

/* Reactive Canvas Hero: centered composition, living line field, and a compact
   activity rail. The warning stripe remains the product's one hard-edged mark. */
.landing-shell {
  min-height: 100svh;
  overflow-x: hidden;
  background: #fbfaf7;
}
.landing-waves {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .86;
  mix-blend-mode: multiply;
}
.landing-grain {
  opacity: .16;
  background-image: radial-gradient(rgba(18,17,24,.18) .55px, transparent .6px);
  background-size: 15px 15px;
}
.landing-header { position: relative; z-index: 40; }
.landing-reactive-main { width: 100%; }
.landing-reactive-hero {
  min-height: calc(100svh - var(--product-ticker));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: clamp(28px, 5vh, 60px) clamp(20px, 5vw, 80px) calc(36px + var(--product-ticker));
  text-align: center;
}
.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid rgba(18,17,24,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 8px 24px rgba(118,89,223,.08);
  color: rgba(18,17,24,.62);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .2em;
  backdrop-filter: blur(8px);
}
.hero-top-badge span { display: grid; place-items: center; color: var(--product-violet); }
.hero-top-badge i { padding-left: 12px; border-left: 1px solid rgba(18,17,24,.15); color: var(--product-violet); font-style: normal; letter-spacing: .08em; }
.hero-center-copy { display: flex; flex-direction: column; align-items: center; margin-top: clamp(36px, 7vh, 78px); }
.hero-center-copy .landing-live { display: inline-flex; grid-template-columns: none; justify-content: center; }
.hero-center-copy .landing-live b { display: none; }
.hero-center-copy h1 {
  max-width: 1180px;
  margin-top: 25px;
  font-size: clamp(66px, 10.2vw, 154px);
  line-height: .86;
  letter-spacing: -.095em;
  font-weight: 690;
}
.hero-center-copy h1 span, .hero-center-copy h1 strong { display: block; }
.hero-center-copy h1 span { color: var(--product-black); }
.hero-center-copy h1 strong { margin-left: clamp(30px, 8vw, 130px); color: var(--product-violet); font-weight: 780; }
.hero-center-copy > p { max-width: 680px; margin-top: 30px; color: rgba(18,17,24,.58); font-size: clamp(16px, 1.55vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; }
.hero-launch, .hero-explore {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 780;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.hero-launch { min-width: 250px; padding: 0 27px; background: var(--product-black); color: #fff; letter-spacing: .16em; }
.hero-launch .icon { transition: transform 180ms ease; }
.hero-launch:hover { transform: translateY(-3px); background: var(--product-violet); box-shadow: 0 10px 0 rgba(185,165,255,.8); }
.hero-launch:hover .icon { transform: translateX(5px); }
.hero-explore { min-width: 220px; padding: 0 24px; border: 1px solid rgba(18,17,24,.12); background: rgba(255,255,255,.72); color: rgba(18,17,24,.76); }
.hero-explore:hover { transform: translateY(-3px); border-color: var(--product-violet); color: var(--product-violet); box-shadow: 0 8px 0 rgba(185,165,255,.32); }
.hero-metrics {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  margin-top: clamp(42px, 7vh, 76px);
  border-top: 1px solid rgba(18,17,24,.16);
  border-bottom: 1px solid rgba(18,17,24,.16);
  text-align: left;
}
.hero-metrics--quiet { grid-template-columns: 1fr; }
.hero-metrics--quiet .hero-metric { padding-left: 0; border-right: 0; }
.hero-metric { min-height: 82px; padding: 15px 22px 13px 0; border-right: 1px solid rgba(18,17,24,.13); }
.hero-metric + .hero-metric { padding-left: 22px; }
.hero-metric:last-child { border-right: 0; }
.hero-metric strong { display: inline-block; min-width: 38px; color: var(--product-violet); font-size: 43px; line-height: .9; letter-spacing: -.08em; }
.hero-metric span, .hero-metric b { display: block; margin-top: 8px; color: rgba(18,17,24,.5); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.hero-metric--wide b { margin-top: 4px; color: var(--product-black); font-family: var(--font-body); font-size: 14px; letter-spacing: -.02em; }
.hero-directory-shell { width: min(900px, 100%); margin-top: 22px; text-align: left; }
.hero-directory-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.hero-directory-head span { color: var(--product-black); font-size: 13px; font-weight: 780; }
.hero-directory-head small { color: rgba(18,17,24,.43); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; }
.hero-directory { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 10px; min-height: 66px; max-height: 76px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scrollbar-width: none; }
.hero-directory::-webkit-scrollbar { display: none; }
.hero-directory-person { min-width: 0; padding: 10px 12px; border: 1px solid rgba(18,17,24,.11); background: rgba(255,255,255,.55); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.hero-directory-person:hover { transform: translateY(-3px); border-color: rgba(118,89,223,.55); background: rgba(255,255,255,.84); }
.hero-directory-person-main, .hero-directory-person-meta { display: flex; align-items: center; gap: 7px; }
.hero-directory-person-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.hero-directory-avatar { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 22px; border: 1px solid rgba(18,17,24,.18); border-radius: 50%; color: var(--product-violet); }
.hero-directory-person-meta { margin-top: 6px; padding-left: 29px; color: rgba(18,17,24,.48); font-family: var(--font-mono); font-size: 8px; }
.hero-directory-person-meta span { color: var(--product-black); font-weight: 800; }
.hero-directory-person-meta i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.hero-directory-empty { min-height: 66px; display: flex; align-items: center; gap: 9px; color: rgba(18,17,24,.5); }
.hero-directory-empty b { color: var(--product-black); font-size: 12px; }
.hero-directory-empty small { font-family: var(--font-mono); font-size: 9px; }
.hero-directory-pulse { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--product-violet); box-shadow: 0 0 0 6px rgba(118,89,223,.12); animation: landingLive 1.8s ease-in-out infinite; }
.hero-feature-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.hero-feature-pills span { min-height: 39px; display: inline-flex; align-items: center; padding: 0 20px; border: 1px solid rgba(18,17,24,.1); border-radius: 999px; background: rgba(255,255,255,.5); color: rgba(18,17,24,.55); font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; }
.landing-reactive-hero + .landing-more { margin-top: 0; }

@media (max-width: 700px) {
  .landing-reactive-hero { padding-inline: 16px; }
  .hero-top-badge { gap: 8px; padding-inline: 14px; font-size: 8px; letter-spacing: .13em; }
  .hero-top-badge i { padding-left: 8px; }
  .hero-center-copy { margin-top: 42px; }
  .hero-center-copy h1 { font-size: clamp(56px, 16vw, 94px); }
  .hero-center-copy h1 strong { margin-left: 38px; }
  .hero-center-copy > p { margin-top: 22px; font-size: 15px; }
  .hero-actions { width: 100%; flex-direction: column; gap: 10px; margin-top: 26px; }
  .hero-launch, .hero-explore { width: min(340px, 100%); }
  .hero-metrics { grid-template-columns: 1fr 1fr; margin-top: 42px; }
  .hero-metrics--quiet { grid-template-columns: 1fr; }
  .hero-metric { min-height: 70px; padding-right: 12px; }
  .hero-metric + .hero-metric { padding-left: 12px; }
  .hero-metric--wide { grid-column: 1 / -1; border-top: 1px solid rgba(18,17,24,.13); border-right: 0; }
  .hero-directory-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .hero-directory { grid-auto-columns: minmax(172px, 1fr); }
  .hero-feature-pills { gap: 7px; }
  .hero-feature-pills span { min-height: 34px; padding-inline: 13px; font-size: 8px; }
  .hero-directory-shell--activity .hero-directory { height: 198px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-launch, .hero-explore, .hero-directory-person { transition: none; }
  .hero-directory-pulse { animation: none; }
  .hero-directory-shell--activity .hero-directory-person,
  .hero-directory-shell--activity .hero-directory-person.is-exiting,
  .hero-directory-shell--activity .hero-directory-person.is-entering,
  .hero-directory-shell--activity .hero-directory-person.is-shifting,
  .hero-directory-shell--activity .hero-directory-person.is-solo-refresh,
  .match-directory[data-directory-activity] .match-directory-player,
  .match-directory[data-directory-activity] .match-directory-player.is-exiting,
  .match-directory[data-directory-activity] .match-directory-player.is-entering,
  .match-directory[data-directory-activity] .match-directory-player.is-shifting,
  .match-directory[data-directory-activity] .match-directory-player.is-solo-refresh { animation: none; }
}

/* Hero composition pass: quiet left message, live matching rail on the right. */
.landing-reactive-hero {
  width: min(1280px, 100%);
  min-height: calc(100svh - var(--product-ticker));
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 8vw, 128px);
  margin: 0 auto;
  padding: clamp(58px, 10vh, 120px) clamp(24px, 5vw, 84px) calc(52px + var(--product-ticker));
  text-align: left;
}
.hero-center-copy {
  align-items: flex-start;
  margin-top: 0;
}
.hero-center-copy h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(64px, 7.4vw, 116px);
  line-height: .88;
  letter-spacing: -.1em;
}
.hero-center-copy h1 span,
.hero-center-copy h1 strong { display: block; }
.hero-center-copy h1 strong { margin: 10px 0 0; }
.hero-slogan {
  margin-top: 26px;
  color: var(--product-violet);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 780;
  letter-spacing: .26em;
}
.hero-actions { justify-content: flex-start; margin-top: 34px; }
.hero-explore,
.hero-top-badge,
.hero-center-copy .landing-live,
.hero-feature-pills { display: none; }
.hero-right-rail { min-width: 0; width: 100%; }
.hero-right-rail .hero-metrics,
.hero-right-rail .hero-directory-shell { width: 100%; }
.hero-right-rail .hero-metrics { margin-top: 0; }
.hero-directory-shell { margin-top: 26px; }
.hero-directory-head { padding-bottom: 12px; }
.hero-directory-head span { font-size: 17px; letter-spacing: -.02em; }

/* Hero activity is a small live window: three quiet rows, one leaves every
   two seconds, and the next player takes the same place. */
.hero-directory-shell--activity { margin-top: 0; }
.hero-directory-shell--activity .hero-directory-head small { color: var(--product-violet); }
.hero-directory-shell--activity .hero-directory {
  position: relative;
  height: 216px;
  min-height: 66px;
  max-height: 216px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 0 3px 4px 0;
}
.hero-directory-shell--activity .hero-directory-person {
  flex: 0 0 auto;
  width: 100%;
  min-height: 62px;
  padding: 12px 14px;
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: none;
}
.hero-directory-shell--activity .hero-directory-person.is-exiting { animation: heroDirectoryExit 520ms cubic-bezier(.22,1,.36,1) both; }
.hero-directory-shell--activity .hero-directory-person.is-entering { animation: heroDirectoryEnter 520ms cubic-bezier(.22,1,.36,1) both; }
.hero-directory-shell--activity .hero-directory-person.is-shifting { animation: heroDirectoryShift 520ms cubic-bezier(.22,1,.36,1) both; }
.hero-directory-shell--activity .hero-directory-person.is-solo-refresh { animation: heroDirectorySolo 760ms cubic-bezier(.22,1,.36,1) both; }

/* The home activity rail uses the same vertical carousel as Hero, but keeps
   six compact slots and advances one player every eight seconds. */
.match-directory[data-directory-activity] { align-self: start; margin-top: 0; }
.match-directory[data-directory-activity] .match-directory-list--activity {
  position: relative;
  height: 296px;
  min-height: 148px;
  max-height: min(296px, calc(100vh - 583px));
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0 0 4px;
}
.match-directory[data-directory-activity] .match-directory-player {
  flex: 0 0 74px;
  height: 74px;
  min-height: 74px;
  padding: 10px 14px;
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: none;
}
.match-directory[data-directory-activity] .match-directory-player p { margin-top: 4px; }
.match-directory[data-directory-activity] .match-directory-player footer { margin-top: 6px; }
.match-directory[data-directory-activity] .match-directory-player.is-exiting { animation: heroDirectoryExit 520ms cubic-bezier(.22,1,.36,1) both; }
.match-directory[data-directory-activity] .match-directory-player.is-entering { animation: heroDirectoryEnter 520ms cubic-bezier(.22,1,.36,1) both; }
.match-directory[data-directory-activity] .match-directory-player.is-shifting { animation: heroDirectoryShift 520ms cubic-bezier(.22,1,.36,1) both; }
.match-directory[data-directory-activity] .match-directory-player.is-solo-refresh { animation: heroDirectorySolo 760ms cubic-bezier(.22,1,.36,1) both; }
.match-directory[data-directory-activity] .match-directory-empty { min-height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .match-directory > .match-directory-head span i { animation: none; opacity: 1; transform: none; }
}

/* Direct-join confirmation sheet. The sheet intentionally repeats only the
   public matchmaking preferences shown on the card; no profile or account
   identifiers are exposed. */
.public-join-sheet {
  max-width: 560px;
}
.public-join-target {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(118,89,223,.24);
  background: rgba(118,89,223,.08);
}
.public-join-target-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--product-black);
  color: var(--product-violet);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 850;
}
.public-join-target > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.public-join-target strong {
  overflow: hidden;
  color: var(--product-black);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-join-target small {
  color: rgba(18,17,24,.47);
  font-family: var(--font-mono);
  font-size: 10px;
}
.public-join-copy {
  margin: 14px 0;
  color: rgba(18,17,24,.58);
  font-size: 12px;
  line-height: 1.55;
}
.public-join-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--product-hairline);
  border-left: 1px solid var(--product-hairline);
}
.public-join-details > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-right: 1px solid var(--product-hairline);
  border-bottom: 1px solid var(--product-hairline);
}
.public-join-details span {
  color: rgba(18,17,24,.48);
  font-family: var(--font-mono);
  font-size: 10px;
}
.public-join-details b {
  overflow: hidden;
  color: var(--product-black);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Direct-join handoff state. The API call can take a moment while the pair
   and realtime snapshot are committed; show a deliberate connection moment
   so the user never reads that network wait as a frozen click. */
.public-join-transition {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18,17,24,.86);
  backdrop-filter: blur(14px) saturate(.76);
  animation: publicJoinTransitionIn 260ms cubic-bezier(.22,1,.36,1) both;
}
.public-join-transition-card {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 34px 34px;
  border: 1px solid rgba(185,165,255,.42);
  background: #f6f4ee;
  box-shadow: 0 28px 90px rgba(0,0,0,.34), 0 0 0 10px rgba(185,165,255,.06);
  text-align: center;
  animation: publicJoinTransitionCardIn 420ms cubic-bezier(.22,1,.36,1) both;
}
.public-join-transition-card .match-eyebrow { color: rgba(18,17,24,.48); }
.public-join-transition-card h2 {
  margin: 20px 0 7px;
  color: var(--product-black);
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -.045em;
}
.public-join-transition-card p {
  margin: 0;
  color: rgba(18,17,24,.52);
  font-size: 12px;
}
.public-join-transition-orbit {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: var(--product-violet);
}
.public-join-transition-orbit b {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--product-black);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 850;
  animation: publicJoinTransitionPulse 1.8s ease-in-out infinite;
}
.public-join-transition-orbit i {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(118,89,223,.62);
  border-radius: 50%;
  animation: publicJoinTransitionOrbit 1.8s linear infinite;
}
.public-join-transition-orbit i:last-child {
  inset: 0;
  border-color: rgba(118,89,223,.2);
  animation-direction: reverse;
  animation-duration: 2.8s;
}
.public-join-transition-route {
  width: min(100%, 290px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: rgba(18,17,24,.58);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.public-join-transition-route i {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(118,89,223,.22);
}
.public-join-transition-route i::after {
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  content: "";
  background: var(--product-violet);
  animation: publicJoinTransitionSignal 1.1s ease-in-out infinite;
}
@keyframes publicJoinTransitionIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes publicJoinTransitionCardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes publicJoinTransitionPulse { 50% { box-shadow: 0 0 0 9px rgba(118,89,223,.08); transform: scale(1.04); } }
@keyframes publicJoinTransitionOrbit { to { transform: rotate(360deg); } }
@keyframes publicJoinTransitionSignal { to { transform: translateX(390%); } }

@media (prefers-reduced-motion: reduce) {
  .public-join-transition,
  .public-join-transition-card,
  .public-join-transition-orbit b,
  .public-join-transition-orbit i,
  .public-join-transition-route i::after { animation: none; }
}

@media (max-width: 620px) {
  .public-join-details { grid-template-columns: 1fr; }
}

@keyframes heroDirectoryEnter {
  from { opacity: 0; transform: translateY(18px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDirectoryExit {
  to { opacity: 0; transform: translateY(-24px); filter: blur(2px); }
}
@keyframes heroDirectoryShift {
  from { transform: translateY(0); }
  to { transform: translateY(-74px); }
}
@keyframes heroDirectorySolo {
  0%, 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  42% { opacity: 0; transform: translateY(0) scale(.985); filter: blur(2px); }
  58% { opacity: 0; transform: translateY(0) scale(.985); filter: blur(2px); }
}

@media (max-width: 920px) {
  .landing-reactive-hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 52px;
    padding-top: 64px;
  }
  .hero-center-copy { align-items: center; text-align: center; }
  .hero-center-copy h1 { font-size: clamp(62px, 12vw, 100px); }
  .hero-actions { justify-content: center; }
  .hero-right-rail { width: min(720px, 100%); margin-inline: auto; }
}

@media (max-width: 700px) {
  .landing-reactive-hero { gap: 38px; padding-inline: 16px; }
  .hero-center-copy h1 { font-size: clamp(54px, 17vw, 86px); }
  .hero-slogan { margin-top: 20px; font-size: 11px; letter-spacing: .18em; }
  .hero-launch { width: min(320px, 100%); }
  .hero-right-rail .hero-metrics { margin-top: 0; }
}

/* Goal cards: supplied character artwork sits above each mode label. */
.match-choice-art-slot {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
}
.match-choice-art-slot > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 43%;
  filter: saturate(.9) contrast(1.03);
  transition: transform 320ms cubic-bezier(.22,1,.36,1), filter 220ms ease;
}
.match-choice-art-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18,17,24,.02), rgba(18,17,24,.28));
}
.match-choice-card:hover .match-choice-art-slot > img,
.match-choice-card.is-on .match-choice-art-slot > img {
  transform: scale(1.04);
  filter: saturate(1.03) contrast(1.05);
}

/* Keep the Hero composition visually above the fold. */
.landing-reactive-hero {
  padding-top: clamp(30px, 5vh, 64px);
  transform: translateY(clamp(-54px, -4vh, -24px));
}
@media (max-width: 920px) {
  .landing-reactive-hero { transform: translateY(-24px); }
}

/* Matching workbench preview: the left column is a living user queue and
   the right column keeps the selected intent readable at a glance. */
.matching-modal-content--workbench {
  display: grid;
  grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr);
  gap: clamp(24px, 4vw, 52px);
  padding: 28px 38px 30px;
  text-align: left;
}
.matching-roster {
  min-width: 0;
  padding-right: 22px;
  border-right: 1px solid var(--product-hairline);
}
.matching-roster-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.matching-roster-head span { color: var(--product-black); font-size: 14px; font-weight: 820; letter-spacing: -.02em; }
.matching-roster-head small { color: rgba(18,17,24,.42); font-family: var(--font-mono); font-size: 9px; white-space: nowrap; }
.matching-roster-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.matching-roster-member { min-height: 58px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(18,17,24,.13); background: rgba(255,255,255,.56); border-radius: 8px; }
.matching-roster-member.is-ready { border-color: rgba(77,166,86,.4); background: rgba(77,166,86,.08); }
.matching-roster-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 50%; background: var(--product-black); color: var(--product-violet); font-family: var(--font-mono); font-size: 13px; font-weight: 850; }
.matching-roster-member-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.matching-roster-member-copy b { overflow: hidden; color: var(--product-black); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.matching-roster-member-copy small { color: rgba(18,17,24,.47); font-size: 9px; }
.matching-roster-member-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 2px; }
.matching-roster-member-meta strong { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px; border: 1px solid rgba(118,89,223,.26); border-radius: 999px; background: rgba(118,89,223,.09); color: #4d349d; font-family: var(--font-mono); font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; }
.matching-roster-member-meta strong:last-child { border-color: rgba(39,115,58,.28); background: rgba(77,166,86,.1); color: #27733a; }
.matching-roster-member-meta .icon { flex: 0 0 auto; }
.matching-roster-member > i { margin-left: auto; color: #27733a; font-size: 9px; font-style: normal; white-space: nowrap; }
.matching-roster-placeholder { min-height: 58px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 7px; border: 1px dashed rgba(118,89,223,.45); border-radius: 8px; background: rgba(118,89,223,.045); color: rgba(18,17,24,.47); font-family: var(--font-mono); font-size: 9px; }
.matching-roster-placeholder .progress { width: 100%; height: 14px; overflow: hidden; backface-visibility: hidden; transform: skew(150deg); background-color: #fff; }
.matching-roster-placeholder .inner { height: 100%; transform-origin: left; transform: skew(-150deg); background-image: linear-gradient(to right bottom, #1d2671, #4b2776, #6d2677, #8c2674, #a62a6f, #a73071, #a93572, #aa3a74, #943e7b, #7c417e, #65437c, #4e4376); animation: matchingRosterProgress 1.8s infinite; }
@keyframes matchingRosterProgress { 0% { transform: scaleX(10%) translateX(-10%); } 100% { transform: scaleX(90%) translateX(150%); } }
.matching-workbench-main { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.matching-workbench-main .matching-signal { width: min(360px, 100%); height: 112px; margin-bottom: 0; }
.matching-workbench-main .matching-player-card { width: 66px; height: 86px; }
.matching-workbench-main .matching-player-card--right { right: 34px; }
.matching-workbench-main .matching-modal-copy h1 { max-width: 540px; font-size: clamp(30px, 3.6vw, 46px); }
.matching-workbench-main .matching-modal-copy p { max-width: 500px; }
.matching-workbench-main .matching-query { justify-content: center; }
.matching-modal-progress--quiet { grid-template-columns: 1.12fr .88fr; }
.matching-progress-copy { min-height: 118px; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.1); }
.matching-progress-copy .match-eyebrow { color: rgba(255,255,255,.48); }
.matching-progress-copy strong { margin-top: 9px; color: #fff; font-size: clamp(16px, 2vw, 22px); line-height: 1.15; letter-spacing: -.04em; }
.matching-progress-copy small { margin-top: 9px; color: rgba(255,255,255,.46); font-family: var(--font-mono); font-size: 9px; }
.matching-progress-copy small b { color: #fff; font-size: 12px; }

@media (max-width: 760px) {
  .matching-modal-content--workbench { grid-template-columns: 1fr; gap: 24px; padding-inline: 22px; }
  .matching-roster { padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--product-hairline); }
  .matching-modal-progress--quiet { grid-template-columns: 1fr; }
  .matching-progress-copy { min-height: 92px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
}

@media (prefers-reduced-motion: reduce) {
  .matching-roster-placeholder .inner { animation: none; transform: skew(-150deg) scaleX(.55); }
}

/* Session handoff preview: once the room is full, the search UI becomes a
   quiet two-person conversation surface. The left rail keeps identity fixed;
   the right side carries the fit readout and chat. */
.session-preview-page {
  --session-paper: #f7f4ee;
  --session-ink: #14121b;
  --session-violet: #8166e8;
  --session-mint: #dff2e7;
  width: 100%;
  max-width: 1160px;
  min-height: calc(100vh - var(--header-h));
  margin: 0 auto;
  padding: calc(var(--header-h) + 54px) 0 98px;
  color: var(--session-ink);
}
.session-preview-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(20,18,27,.16); }
.session-preview-kicker { display: inline-flex; align-items: center; gap: 8px; color: #6e5ab6; font: 800 10px/1 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; }
.session-preview-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #54b764; box-shadow: 0 0 0 4px rgba(84,183,100,.13); }
.session-preview-topbar h1 { margin: 13px 0 7px; font-size: clamp(34px, 5vw, 60px); line-height: .98; letter-spacing: -.07em; }
.session-preview-topbar p { margin: 0; color: rgba(20,18,27,.55); font-size: 14px; }
.session-preview-topbar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.session-preview-status { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(84,183,100,.35); background: rgba(223,242,231,.7); color: #287d3d; font: 800 10px/1 var(--font-mono); letter-spacing: .06em; }
.session-preview-leave { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(20,18,27,.8); background: transparent; color: var(--session-ink); font-size: 13px; font-weight: 800; cursor: pointer; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.session-preview-leave:hover { background: var(--session-ink); color: #fff; transform: translateY(-2px); }
.session-preview-layout { display: grid; grid-template-columns: minmax(230px, .6fr) minmax(0, 1.4fr); gap: 18px; margin-top: 18px; align-items: stretch; }
.session-preview-rail, .session-preview-chat { border: 1px solid rgba(20,18,27,.16); background: rgba(255,255,255,.55); box-shadow: 8px 8px 0 rgba(129,102,232,.1); }
.session-preview-rail { min-height: 620px; display: flex; flex-direction: column; background: var(--session-ink); color: #fff; overflow: hidden; }
.session-preview-rail__head { padding: 20px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.13); }
.session-preview-rail__head > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.session-preview-rail__head b { font-size: 25px; letter-spacing: -.06em; }
.session-preview-rail__head small { color: rgba(255,255,255,.46); font: 800 10px/1 var(--font-mono); }
.session-preview-players { padding: 15px; display: flex; flex-direction: column; gap: 9px; }
.session-preview-player { position: relative; min-height: 88px; padding: 13px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.055); transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.session-preview-player.is-me { border-color: rgba(183,164,255,.68); background: linear-gradient(120deg, rgba(129,102,232,.34), rgba(255,255,255,.05)); }
.session-preview-player.is-partner { background: rgba(255,255,255,.08); }
.session-preview-player .avatar-wrap { flex: 0 0 auto; border-color: rgba(255,255,255,.22); }
.session-preview-player__index { position: absolute; top: 8px; right: 9px; color: rgba(255,255,255,.36); font: 800 8px/1 var(--font-mono); }
.session-preview-player > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.session-preview-player > div b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.session-preview-player > div small { color: rgba(255,255,255,.58); font-size: 10px; }
.session-preview-player > div span { color: #cdbfff; font: 800 8px/1 var(--font-mono); letter-spacing: .04em; }
.room-recruitment-loop { margin: auto 15px 15px; display: grid; gap: 9px; color: rgba(255,255,255,.68); font: 800 10px/1 var(--font-mono); letter-spacing: .09em; }
.room-recruitment-loop i { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.14); }
.room-recruitment-loop i::after { content: ""; display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b74ed, #d7cdff, #8b74ed); animation: roomRecruitmentScan 1.1s linear infinite; }
@keyframes roomRecruitmentScan { from { transform: translateX(-105%); } to { transform: translateX(240%); } }
.session-preview-rail__footer { padding: 15px 21px 19px; border-top: 1px solid rgba(255,255,255,.13); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.session-preview-rail__footer span { color: rgba(255,255,255,.38); font: 800 9px/1 var(--font-mono); letter-spacing: .12em; }
.session-preview-rail__footer b { min-width: 0; overflow: hidden; color: #cdbfff; font: 800 11px/1 var(--font-mono); letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.session-preview-chat { min-width: 0; min-height: 620px; padding: 25px 28px 22px; display: flex; flex-direction: column; }
.session-preview-chat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.session-preview-chat__head h2 { margin: 9px 0 4px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.06em; }
.session-preview-chat__head h2 i { color: var(--session-violet); font-style: normal; }
.session-preview-chat__head p { margin: 0; color: rgba(20,18,27,.55); font-size: 12px; }
.session-preview-live { display: inline-flex; align-items: center; gap: 7px; color: #3d8d48; font: 800 9px/1 var(--font-mono); letter-spacing: .12em; }
.session-preview-live i { width: 7px; height: 7px; border-radius: 50%; background: #54b764; box-shadow: 0 0 0 4px rgba(84,183,100,.12); }
.chat-skeleton { display: grid; align-content: start; gap: 12px; min-height: 92px; padding: 18px 0; }
.chat-skeleton i { display: block; height: 10px; width: 62%; border-radius: 999px; background: linear-gradient(90deg, rgba(20,18,27,.07), rgba(129,102,232,.18), rgba(20,18,27,.07)); background-size: 220% 100%; animation: chatSkeletonShimmer 1.25s ease-in-out infinite; }
.chat-skeleton i:nth-child(2) { width: 78%; animation-delay: 100ms; }
.chat-skeleton i:nth-child(3) { width: 46%; animation-delay: 200ms; }
@keyframes chatSkeletonShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.session-fit-table { margin-top: 22px; display: grid; border-top: 1px solid rgba(20,18,27,.16); border-bottom: 1px solid rgba(20,18,27,.16); }
.session-fit-table--solo { grid-template-columns: minmax(0, 1fr); }
.session-fit-table--solo .session-fit-row { grid-template-columns: minmax(62px, .32fr) minmax(0, 1fr); }
.session-fit-table--solo .session-fit-row--solo-head { min-height: 38px; display: flex; align-items: center; border-top: 0; }
.session-fit-table--solo .session-fit-row--solo-head b { max-width: 100%; overflow: hidden; padding: 0 10px; text-overflow: ellipsis; white-space: nowrap; font: 800 10px/1 var(--font-mono); letter-spacing: .08em; }
.session-fit-table--solo .session-fit-member { justify-self: start; padding-inline: 10px; text-align: start; }
.session-fit-row { min-height: 35px; display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; border-top: 1px solid rgba(20,18,27,.09); font-size: 12px; }
.session-fit-row:first-child { border-top: 0; }
.session-fit-row > * { min-width: 0; padding: 0 10px; }
.session-fit-row > span { color: rgba(20,18,27,.46); font-size: 10px; }
.session-fit-conditions { min-width: 0; padding: 0 !important; display: contents; }
.session-fit-member { min-width: 0; overflow: hidden; display: block; justify-self: stretch; font-weight: 750; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.session-fit-label { min-width: 0; }
.session-fit-link { position: relative; align-self: stretch; min-width: 0; min-height: 22px; width: 100%; display: grid; place-items: center; color: var(--session-violet); }
.session-fit-link--empty { color: transparent; pointer-events: none; }
.session-fit-line { position: absolute; inset-inline: 12px; top: 50%; z-index: 0; height: 2px; background: transparent; transform: translateY(-50%); }
.session-fit-link.is-match .session-fit-line { background: rgba(129,102,232,.72); }
.session-fit-link .icon { position: relative; z-index: 1; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--session-violet); color: #fff; }
.session-fit-row--head { min-height: 31px; color: rgba(20,18,27,.44); font: 800 9px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.session-fit-row--head .session-fit-header-label { color: transparent; font-size: 0; }
.session-fit-row--head .session-fit-member { display: block; justify-self: stretch; text-align: center; }
.session-fit-row--head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-fit-row--head .session-fit-conditions > i { display: block; }
.session-fit-row--group .session-fit-conditions .session-fit-link { min-width: 0; padding: 0; }
.session-fit-row--head .session-fit-conditions--group .session-fit-link { min-height: 0; color: transparent; }
.session-preview-chat__divider { margin-top: 24px; display: flex; align-items: center; gap: 10px; color: var(--session-ink); font: 800 10px/1 var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
.session-preview-chat__divider i { height: 1px; flex: 1; background: rgba(20,18,27,.14); }
.session-preview-chat__divider small { color: rgba(20,18,27,.4); font-size: 8px; font-weight: 700; letter-spacing: .05em; }
.session-preview-messages {
  min-height: 142px;
  max-height: clamp(220px, 32vh, 320px);
  margin-top: 14px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.session-preview-message { width: fit-content; max-width: min(70%, 360px); padding: 9px 12px 8px; border: 1px solid rgba(20,18,27,.12); background: #fff; }
.session-preview-message--me { align-self: flex-end; border-color: rgba(129,102,232,.24); background: #ece7ff; }
.session-preview-message span { display: block; color: rgba(20,18,27,.45); font: 800 8px/1 var(--font-mono); letter-spacing: .06em; }
.session-preview-message p { margin: 7px 0 5px; font-size: 13px; line-height: 1.35; }
.session-preview-message time { display: block; color: rgba(20,18,27,.4); font: 9px/1 var(--font-mono); }
.session-preview-quick { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.session-preview-quick button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(129,102,232,.35); border-radius: 999px; background: rgba(236,231,255,.55); color: #4f3b9a; font-size: 10px; cursor: pointer; transition: background 160ms ease, transform 160ms ease, opacity 160ms ease; }
.session-preview-quick button:hover { background: #e2d9ff; transform: translateY(-1px); }
.session-preview-quick button:disabled { cursor: wait; opacity: .52; transform: none; }
.session-preview-quick button:focus-visible, .session-preview-goodbye:focus-visible, .session-preview-leave:focus-visible { outline: 2px solid var(--session-violet); outline-offset: 3px; }
.session-preview-composer { margin-top: auto; min-height: 48px; display: flex; gap: 8px; border: 1px solid rgba(20,18,27,.22); background: #fff; }
.session-preview-composer.is-loading { border-color: rgba(129,102,232,.54); }
.session-preview-composer input { width: 100%; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--session-ink); font: inherit; font-size: 12px; }
.session-preview-composer input:focus-visible { outline: 2px solid var(--session-violet); outline-offset: -3px; border-radius: 2px; }
.session-preview-composer button { width: 47px; display: grid; place-items: center; flex: 0 0 47px; border: 0; background: var(--session-ink); color: #fff; cursor: pointer; }
.session-preview-composer button:disabled { cursor: wait; opacity: .7; }
.is-spinning { animation: sessionActionSpin 800ms linear infinite; }
@keyframes sessionActionSpin { to { transform: rotate(360deg); } }
.session-preview-bottom { min-height: 76px; margin-top: 12px; padding: 13px 2px 0; display: flex; align-items: center; gap: 16px; }
.session-preview-goodbye { min-height: 44px; padding: 0 15px 0 18px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(214,83,77,.46); background: rgba(255,245,243,.8); color: #b04640; font-weight: 800; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.session-preview-goodbye em { min-width: 30px; padding: 4px 6px; border-radius: 999px; background: rgba(214,83,77,.1); color: #b04640; font: 800 10px/1 var(--font-mono); font-style: normal; text-align: center; }
.session-preview-goodbye:disabled { cursor: wait; opacity: .7; transform: none; }
.session-preview-goodbye:hover { background: #fff0ed; transform: translateY(-2px); }
.session-preview-bottom p { margin: 0; color: rgba(20,18,27,.48); font-size: 10px; }
.session-preview-bottom p i { width: 6px; height: 6px; margin-right: 6px; display: inline-block; border-radius: 50%; background: var(--session-violet); }
.session-preview-bottom__hint { margin-left: auto; color: rgba(20,18,27,.34); font: 800 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* The preview keeps the exact matching modal frame. Only its inner stage
   changes once the room is full, so there is no second page or route jump. */
.matching-session-modal { --session-paper: #f7f4ee; --session-ink: #14121b; --session-violet: #8166e8; --session-mint: #dff2e7; width: min(1120px, calc(100vw - 52px)); max-height: calc(100vh - var(--product-ticker) - 28px); }
.matching-session-state { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(77,166,86,.34); background: rgba(77,166,86,.09); color: #27733a; font: 800 9px/1 var(--font-mono); letter-spacing: .04em; white-space: nowrap; }
.matching-session-title { padding: 22px 30px 4px; }
.matching-session-title h1 { margin-top: 8px; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.065em; }
.matching-session-title p { margin: 9px 0 0; color: rgba(18,17,24,.5); font-size: 11px; }
.matching-session-content { display: grid; grid-template-columns: minmax(230px, .54fr) minmax(0, 1.46fr); gap: 12px; padding: 17px 18px 18px; }
.matching-session-content .session-preview-rail { min-height: 516px; box-shadow: none; }
.matching-session-main { min-width: 0; }
.matching-session-main .session-preview-chat { height: 516px; min-height: 516px; max-height: 516px; overflow: hidden; box-shadow: none; padding: 22px 24px 19px; }
.matching-session-main .session-preview-chat__head h2 { font-size: clamp(23px, 3vw, 32px); }
.matching-session-main .session-fit-table { margin-top: 17px; }
.matching-session-main .session-preview-messages { min-height: 0; max-height: none; flex: 1 1 0; }
.matching-session-main .session-preview-chat__divider { margin-top: 17px; }
.matching-session-main .session-preview-composer { min-height: 42px; }
.matching-session-footer { min-height: 68px; }
.matching-session-footer-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.matching-session-footer-left p { white-space: nowrap; }
.matching-session-footer .session-preview-goodbye,
.matching-session-footer .session-preview-leave { min-height: 40px; }
.matching-session-footer .session-preview-leave { background: transparent; }
.session-preview-stop { border-color: rgba(129,102,232,.5); background: rgba(236,231,255,.84); color: #4f3b9a; }
.session-preview-stop:hover { background: #e2d9ff; }
.session-preview-stop.is-selected { border-color: rgba(129,102,232,.82); background: #d9ceff; box-shadow: inset 0 0 0 1px rgba(79,59,154,.12); }
.session-preview-slip { min-height: 42px; padding: 0 15px; border: 1px solid rgba(20,20,24,.18); background: rgba(255,255,255,.78); color: #24222b; font-weight: 800; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.session-preview-slip:hover { background: #fff; transform: translateY(-1px); }
.session-preview-slip:disabled { cursor: wait; opacity: .65; transform: none; }
.session-preview-player--joining { border-style: dashed; background: rgba(129,102,232,.045); }
.session-preview-player__joining-mark { width: 42px; height: 42px; border: 2px solid rgba(129,102,232,.18); border-top-color: #8166e8; border-radius: 50%; animation: roomJoiningSpin 1s linear infinite; }
@keyframes roomJoiningSpin { to { transform: rotate(360deg); } }
.is-room-fragment-entering { animation: roomFragmentEnter 180ms ease-out both; }
@keyframes roomFragmentEnter { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.matching-session-handoff-modal { --session-paper: #f7f4ee; --session-ink: #14121b; --session-violet: #8166e8; --session-mint: #dff2e7; width: min(900px, calc(100vw - 52px)); }
.matching-session-handoff-content { display: grid; grid-template-columns: minmax(230px, .64fr) minmax(0, 1.36fr); gap: 14px; padding: 18px; }
.matching-session-handoff-content .session-preview-rail { min-height: 430px; box-shadow: none; }
.matching-session-handoff-copy { min-height: 430px; padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border: 1px solid rgba(20,18,27,.14); background: rgba(255,255,255,.58); }
.matching-session-countdown { width: 112px; height: 112px; margin: 24px 0 20px; display: grid; place-items: center; border: 1px solid rgba(129,102,232,.42); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a994ff, #7053d4); color: #fff; font: 800 58px/.9 var(--font-mono); letter-spacing: -.1em; box-shadow: 0 18px 42px rgba(129,102,232,.24); }
.matching-session-handoff-copy h1 { max-width: 440px; margin: 0; color: var(--session-ink); font-size: clamp(27px, 4vw, 46px); line-height: 1; letter-spacing: -.065em; }
.matching-session-handoff-copy p { max-width: 450px; margin: 13px 0 0; color: rgba(20,18,27,.55); font-size: 12px; line-height: 1.65; }
.matching-session-handoff-track { width: min(430px, 100%); height: 5px; margin-top: 28px; overflow: hidden; background: rgba(20,18,27,.1); }
.matching-session-handoff-track span { display: block; width: var(--handoff-progress, 0%); height: 100%; background: linear-gradient(90deg, #8166e8, #54b764); transition: width 160ms linear; }

@media (max-width: 780px) {
  .matching-session-modal { width: min(640px, calc(100vw - 28px)); }
  .matching-session-content { grid-template-columns: 1fr; }
  .matching-session-content .session-preview-rail,
  .matching-session-main .session-preview-chat { height: min(560px, calc(100dvh - 112px)); min-height: 420px; max-height: 560px; }
  .matching-session-content .session-preview-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matching-session-footer-left p { white-space: normal; }
  .matching-session-handoff-modal { width: min(640px, calc(100vw - 28px)); }
  .matching-session-handoff-content { grid-template-columns: 1fr; }
  .matching-session-handoff-content .session-preview-rail,
  .matching-session-handoff-copy { min-height: 0; }
  .matching-session-handoff-copy { padding: 30px 24px; }
}
@media (max-width: 540px) {
  .matching-session-title { padding-inline: 18px; }
  .matching-session-content { padding-inline: 12px; }
  .matching-session-content .session-preview-players { grid-template-columns: 1fr; }
  .matching-session-footer { align-items: stretch; flex-direction: column; }
  .matching-session-footer-left { align-items: stretch; flex-direction: column; }
}

@media (max-width: 860px) {
  .session-preview-page { width: 100%; padding-top: calc(var(--header-h) + 32px); }
  .session-preview-topbar { align-items: flex-start; flex-direction: column; }
  .session-preview-topbar__actions { justify-content: flex-start; }
  .session-preview-layout { grid-template-columns: 1fr; }
  .session-preview-rail { min-height: 0; }
  .session-preview-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-preview-rail__note { margin-top: 0; }
  .session-preview-chat { min-height: 560px; }
}
@media (max-width: 560px) {
  .session-preview-page { width: 100%; }
  .session-preview-players { grid-template-columns: 1fr; }
  .session-preview-chat { padding: 20px 16px 17px; }
  .session-preview-bottom { align-items: flex-start; flex-wrap: wrap; }
  .session-preview-bottom__hint { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .session-preview-leave:hover, .session-preview-goodbye:hover, .session-preview-quick button:hover { transform: none; }
  .room-recruitment-loop i::after, .chat-skeleton i, .is-room-fragment-entering, .session-preview-player__joining-mark { animation: none; }
}
