/* 机缘 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);
}

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 {
  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: drop-shadow(0 10px 24px rgba(118, 89, 223, 0.18));
}

.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-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(58px, 6vw, 88px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.065em;
}

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

.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;
}

.match-game-stage {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  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: 330px;
  margin-top: 18px;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.match-stage-copy p,
.match-wizard-copy p,
.match-coming-soon p {
  max-width: 310px;
  margin-top: 20px;
  color: rgba(18, 17, 24, 0.5);
  font-size: 13px;
  line-height: 1.75;
}

.match-game-stage > .match-options--games {
  padding: 46px 0 46px 42px;
  align-content: center;
}

.product-shell .match-game-option { min-height: 150px; }
.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(230px, 0.34fr) minmax(0, 0.66fr);
  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, .match-options--team .match-option { min-height: 92px; }
.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-option > small { color: rgba(18, 17, 24, 0.42); font-size: 9px; }
.match-role-picker { display: flex; flex-direction: column; gap: 14px; }
.match-role-groups { display: grid; gap: 22px; }
.match-role-multi { min-height: 30px; display: flex; align-items: center; gap: 10px; }
.match-role-multi strong { min-width: 92px; color: var(--product-black); font-size: 13px; }
.match-role-multi b { padding: 5px 9px; border: 1px solid var(--product-violet); border-radius: 999px; color: var(--product-violet); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.match-role-multi span { color: rgba(18, 17, 24, .48); font-size: 11px; }
.match-role-option { align-items: center !important; text-align: center !important; }
.match-role-number { display: inline-flex; align-items: baseline; gap: 5px; font-family: var(--font-display); font-size: 38px; 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: 10px; font-weight: 720; letter-spacing: 0; }
.match-role-option.is-on .match-role-number small { color: var(--product-violet); }
.match-rank-option { min-height: 68px; align-content: center; }
.match-rank-option .match-rank-name { font-weight: 760; }
.match-rank-option > small { margin-top: 3px; font-family: var(--font-mono); font-size: 9px; font-weight: 800; letter-spacing: .12em; 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-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: min(380px, 52%); 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-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);
}

.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;
}

.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;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  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 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-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); }
.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-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;
}
.product-auth-workspace.is-login .auth-confirm-slot {
  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: 500px; display: grid; grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr); 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: 42px 34px 42px 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: 280px; margin-top: 18px; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; letter-spacing: -0.045em; }
.identity-step-copy p { max-width: 280px; margin-top: 20px; color: rgba(18, 17, 24, 0.5); font-size: 13px; line-height: 1.75; }
.identity-step-body { min-width: 0; min-height: 390px; padding: 42px 0 42px 46px; 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: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.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; padding: 8px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--product-hairline); border-radius: 6px; background: rgba(255, 255, 255, 0.38); text-align: left; 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: 7px; 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 { min-height: 38px; display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.identity-choice-label b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; 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: 96px; 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; }

.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);
}

.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: 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)); }
  .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: clamp(30px, 3vw, 42px); }
  .match-wizard-options {
    height: 292px;
    min-height: 0;
    padding-block: 24px;
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .match-wizard-actions { min-height: 78px; }
  .match-role-groups { gap: 16px; }
  .match-options--roles .match-option { min-height: 68px; }
  .match-role-number { font-size: 30px; }
  .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-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: 58%; }
  .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: 320px; padding: 30px 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; }
}

.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; }
  .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; }
}
