﻿/* Extracted from Design flow sharing issue/Lobby launchpad.html */
  /* ---------- tokens: one dark palette, whatever the device setting ---------- */
  :root,
  :root:not([data-theme="light"]),
  :root[data-theme="dark"] {
    --bg: #0A0A0A;
    --surface: #17161D;
    --text: #F4F3F7;
    --muted: #A6A3B1;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.26);
    --glass: rgba(255, 255, 255, 0.10);
    --glass-hover: rgba(255, 255, 255, 0.18);
    --glass-edge: rgba(255, 255, 255, 0.32);
    --amber: #FFA41B;
    --error: #FFB4AB;
    --glow: rgba(255, 159, 15, 0.16);
    --pearl: linear-gradient(180deg, #FFFFFF 0%, #ECEAF1 55%, #D2CFDB 100%);
    --pearl-fg: #121118;
  }
  :root {
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(.7, 0, .2, 1);
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    color-scheme: dark;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  *, *::before, *::after { box-sizing: inherit; }
  html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; background: var(--bg); }
  body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    overflow-x: hidden;
  }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  :focus-visible { outline: 4px solid rgba(255, 255, 255, 0.3); outline-offset: 2px; }
  [hidden] { display: none !important; }

  /* shared glass recipe */
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    backdrop-filter: blur(16px) saturate(1.6);
    border: 1px solid var(--glass-edge);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(255, 255, 255, 0.06),
      0 10px 30px -12px rgba(0, 0, 0, 0.6);
  }

  /* ---------- neutral abstract backdrop: fixed, takes no layout space ---------- */
  .backdrop::before, .backdrop::after { display: none !important; }
  .backdrop {
    background: #141414 !important;
  }
  .backdrop {
    position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background: var(--bg);
  }
  .backdrop::before {
    /* soft, desaturated light pools that drift very slowly */
    content: ""; position: absolute; inset: -25%;
    background:
      radial-gradient(38% 32% at 22% 28%, rgba(132, 124, 160, 0.20), transparent 70%),
      radial-gradient(34% 30% at 78% 70%, rgba(96, 108, 138, 0.16), transparent 70%),
      radial-gradient(26% 22% at 62% 18%, rgba(150, 132, 190, 0.10), transparent 70%),
      linear-gradient(118deg, transparent 42%, rgba(255, 255, 255, 0.035) 50%, transparent 58%);
    filter: blur(30px);
    animation: float 48s ease-in-out infinite alternate;
  }
  .backdrop::after {
    /* fine grain so the dark reads as a material, not a flat fill */
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: .07;
    mix-blend-mode: overlay;
  }
  @keyframes float {
    from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
    to   { transform: translate3d(3%, 2%, 0) rotate(6deg); }
  }

  /* ---------- brand lockup ---------- */
  .wordmark {
    display: inline-flex; align-items: center; gap: .3em;
    font-weight: 800; letter-spacing: .01em; line-height: 1;
    color: inherit; white-space: nowrap;
  }
  .wordmark .ring {
    border: 2px solid var(--amber);
    border-radius: 999px;
    padding: .28em .5em .24em;
  }

  .logo { display: block; width: auto; height: 48px; }
  .topbar-logo { height: auto; width: min(130px, 40vw); }
  .brand-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .env {
    position: relative; top: calc(min(130px, 40vw) * 0.065 + 1.5px);
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .75rem; font-weight: 400; letter-spacing: .02em; line-height: 1;
    color: rgba(255, 255, 255, 0.6); white-space: nowrap;
  }
  .env-text { display: flex; align-items: baseline; gap: .35em; }
  .env-dot { color: rgba(255, 255, 255, 0.3); }
  .env-version { color: rgba(255, 255, 255, 0.6); }
  .env::before { content: ""; width: 1px; height: 20px; background: rgba(255, 255, 255, 0.2); transform: translateY(-0.4px); }
  #signout { white-space: nowrap; flex-shrink: 0; font-weight: 400; position: relative; top: calc(min(130px, 40vw) * 0.065); }
  #signout { display: inline-flex; align-items: center; gap: 5px; }
  #signout .signout-icon { display: block; width: 18px; height: 18px; color: rgba(255, 255, 255, 0.95); }
  @media (min-width: 628px) and (orientation: landscape) and (max-height: 674px) {
    .topbar-logo { width: 112px; }
    .env { top: calc(112px * 0.065 + 1.5px); }
    #signout { top: calc(112px * 0.065); min-height: 38px; padding: 8px 16px; font-size: .875rem; }
    #signout .signout-icon { width: 16px; height: 16px; }
  }
  @media (max-width: 627px) {
    #signout { min-height: 38px; padding: 8px 14px; font-size: .875rem; top: calc(min(130px, 40vw) * 0.065); }
    #signout .signout-icon { width: 16px; height: 16px; }
    .brand-row { display: contents; }
    .topbar:has(.brand-row) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 8px; }
    .topbar:has(.brand-row) .topbar-logo { grid-column: 1; grid-row: 1; }
    .topbar:has(.brand-row) #signout { grid-column: 2; grid-row: 1; }
    .topbar:has(.brand-row) .env { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
    .env, .env { top: 0; }
    .env::before { display: none; }
    .view-launcher .launcher-head .signed-in { justify-content: flex-start; text-align: left; flex-basis: 100%; }
  }
  @media (max-width: 359px) {
    .launcher-wrap .topbar, header.topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .launcher-wrap .topbar:has(.brand-row), header.topbar:has(.brand-row) { display: grid; }
  }
  @media (max-width: 359px) {
    .topbar-logo { width: 104px; }
    .env { gap: 8px; top: 0; }
    #signout { min-height: 34px; padding: 6px 12px; font-size: .8125rem; gap: 4px; top: calc(104px * 0.065); }
    #signout .signout-icon { width: 15px; height: 15px; }
  }
  @media (max-width: 249px) {
    #signout { width: 36px; height: 36px; min-height: 36px; padding: 0; display: inline-grid; place-items: center; }
    #signout .signout-icon { translate: 1px 0; }
    #signout .signout-label { display: none; }
  }
  .env-login { display: flex; justify-content: center; margin: -8px 0 20px; font-size: .875rem; }
  html[data-env="prod"] body::after {
    content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; background: #FF2537; pointer-events: none;
  }
  .launcher-head .signed-in { margin: 0; color: var(--muted); font-size: 1.05rem; font-weight: 400; text-align: right; display: block; row-gap: 2px; }
  .launcher-head .signed-in strong { color: var(--text); font-weight: 400; }
  .signed-in .sep { color: rgba(255, 255, 255, 0.3); margin: 0 .27em; }
  .topbar .env { display: none; }
  .signed-in .account { white-space: nowrap; }
  @media (max-width: 299px) { .signed-in .account { white-space: normal; } }
  .signed-in .build {
    position: relative; display: inline; align-items: baseline; gap: .5em;
    margin-left: 14px; padding-left: 15px;
    font-family: inherit; font-size: inherit; color: rgba(255, 255, 255, 0.4); font-variant-numeric: tabular-nums;
  }
  .signed-in .build::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -8px; background: rgba(255, 255, 255, 0.2); }
  .signed-in .build-env { text-transform: none; letter-spacing: normal; }
  .signed-in .build-dot { color: rgba(255, 255, 255, 0.3); margin: 0 .5em; }
  .signed-in.is-wrapped .build-dot { margin: 0; }
  /* dot spacing = a normal word space, same as "v2.4.1 Â· build" */
  .signed-in .build, .signed-in.is-wrapped .build { gap: 0; }
  .signed-in .build-dot, .signed-in.is-wrapped .build-dot { margin: 0; }
  .signed-in .build-dot::before, .signed-in .build-dot::after { content: "\00a0"; }
  @media (max-width: 359px) { .signed-in .build, .signed-in.is-wrapped .build { white-space: normal; flex-wrap: wrap; } }
  .signed-in .build { white-space: nowrap; }
  .signed-in.is-wrapped .build { display: flex; margin: 8px 0 0; padding-left: 0; line-height: 1.2; }
  .signed-in.is-wrapped .build::before { display: none; }
  .login-card .logo { height: auto; width: min(190px, 70%); margin: 0 auto 20px; }
  .brand-plate .logo { height: 32px; }
  main { position: relative; z-index: 1; }

  /* ---------- login ---------- */
  .view-login {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    transition: padding 200ms ease-out;
  }
  @media (max-width: 627px), (pointer: coarse) and (max-height: 674px) {
    .view-login.kb-open { place-items: start center; padding-top: 16px; padding-bottom: 16px; }
  }
  .login-card {
    width: min(420px, 100%);
    border-radius: 28px;
    padding: clamp(28px, 6vw, 40px);
    padding-top: 24px;
    background: linear-gradient(180deg, #151413 0%, #0D0C0C 100%);
    border: 1px solid var(--line-strong);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 40px 90px -30px rgba(0, 0, 0, 0.85),
      0 0 0 1px rgba(0, 0, 0, 0.4);
  }
  .login-card .wordmark { font-size: 1.05rem; }
  .login-card h1 {
    margin: 28px 0 6px;
    font-size: clamp(2rem, 7vw, 2.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .login-card .lede { margin: 0 0 20px; color: var(--muted); text-align: left; }

  .field { margin-bottom: 12px; }
  .field label {
    display: block; margin: 0 0 8px 4px;
    font-weight: 500; font-size: .8125rem; color: rgba(255, 255, 255, 0.6);
  }
  .input-wrap { position: relative; }
  .field input {
    width: 100%;
    font: inherit;
    font-size: 1rem; font-weight: 500;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.03);
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    min-height: 48px;
    caret-color: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: background-color 120ms, box-shadow 120ms;
  }
  .field input:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), inset 0 1px 0 rgba(255,255,255,0.1); }
  .field input:focus-visible, .field input:focus, .field input:focus:not(:placeholder-shown) { outline: none; background: rgba(0,0,0,0.25); box-shadow: inset 0 0 0 1.5px #FF9F0F, inset 0 0 14px rgba(255,159,15,0.28), 0 0 12px rgba(255,159,15,0.25); }
  .field input:not(:placeholder-shown) { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), inset 0 1px 0 rgba(255,255,255,0.3); }
  .field input::placeholder { color: rgba(255,255,255,0.4); }
  .field input[aria-invalid="true"] { background: rgba(255, 37, 55, 0.12); box-shadow: 0 0 0 1px rgba(255, 37, 55, 0.5) inset, 0 0 12px rgba(255, 37, 55, 0.25); }
  .input-wrap input { padding-right: 76px; }
  .reveal {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    font: inherit; font-weight: 700; font-size: .9rem;
    color: var(--muted);
    background: transparent; border: 0; border-radius: 10px;
    padding: 8px; cursor: pointer; display: grid; place-items: center;
  }
  .reveal:hover { color: var(--text); }
  .input-wrap input { padding-right: 52px !important; }
  .field-error { margin: 6px 0 0 4px; color: var(--error); font-weight: 400; font-size: .8125rem; }
  .field-error:empty { display: none; }
  .form-error:empty { min-height: 0; margin: 0 0 20px; }
  .form-error { min-height: 1.5em; margin: 4px 0 12px; color: var(--error); font-weight: 400; font-size: .95rem; }

  .btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; min-height: 54px;
    font: inherit; font-size: 1.1rem; font-weight: 400; letter-spacing: .01em;
    position: relative;
    color: #FFFFFF; background: linear-gradient(180deg, #FC9D11 0%, #E37D26 100%);
    border: 0; border-radius: 999px; cursor: pointer;
    box-shadow: 0.2px 0.2px 0.2px 0 rgba(255,255,255,0.7) inset, 0.5px 0.5px 0.5px 0 rgba(255,255,119,0.9) inset, -0.2px -0.2px 0.2px 0 rgba(255,255,255,0.5) inset, -0.5px -0.5px 0.5px 0 rgba(255,255,119,0.5) inset, 0 12px 32px -10px rgba(255,159,15,0.45);
    transition: background 120ms, outline-color 120ms;
    outline: 4px solid transparent; outline-offset: 2px;
  }
  .btn-primary:hover { background: linear-gradient(180deg, #E8862A 0%, #E37D26 100%); }
  .btn-primary:active { background: linear-gradient(180deg, #F59414 0%, #E37D26 100%); }
  .btn-primary:focus-visible { outline-color: rgba(255, 255, 255, 0.3); }
  .btn-primary[disabled] { color: transparent; cursor: progress; background: linear-gradient(180deg, #FC9D11 0%, #E37D26 100%); }
  .btn-primary[disabled]::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 22px; height: 22px; margin: -11px 0 0 -11px;
    border-radius: 50%; border: 2px solid #FFFFFF; border-right-color: transparent; border-bottom-color: transparent;
    animation: btn-spin 800ms linear infinite;
  }
  @keyframes btn-spin { to { transform: rotate(360deg); } }

  /* ---------- launcher chrome ---------- */
  .topbar {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px clamp(16px, 4vw, 40px);
    max-width: 1360px; margin: 0 auto;
  }
  .brand-plate {
    display: inline-flex; align-items: center;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .95rem;
  }
  .view-error:not([hidden]) {
    min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center;
    padding: 32px 20px calc(32px + env(safe-area-inset-bottom, 0px)); text-align: center;
    background: #0D0C0C;
  }
  .error-page-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(440px, 100%); }
  .error-page-art { display: block; width: min(480px, 100vw, calc((100svh - 330px) * 1.48)); max-width: none; height: auto; margin-bottom: 8px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 55%, transparent 100%); }
  .view-error h1 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
  .view-error p { margin: 0 0 24px; color: var(--muted); font-size: 1rem; font-weight: 400; line-height: 1.5; text-wrap: pretty; }
  .view-error .error-page-btn { min-width: 200px; font-weight: 400; }
  .error-page-logo { display: block; width: 130px; height: auto; margin-top: 32px; }
  .error-dialog {
    width: min(420px, calc(100% - 32px)); margin: auto; color: var(--text);
    border-radius: 28px; padding: clamp(28px, 6vw, 40px);
    background: #0D0C0C;
    border: 1px solid var(--line-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
    text-align: center;
  }
  .error-dialog::backdrop { background: rgba(9, 9, 9, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .error-dialog[open] { animation: err-in 160ms cubic-bezier(.2, .8, .2, 1); }
  @keyframes err-in { from { opacity: 0; transform: scale(.97); } }
  .error-art { display: block; width: calc(100% + 2 * clamp(28px, 6vw, 40px)); max-width: none; height: auto; margin: calc(-1 * clamp(28px, 6vw, 40px)) calc(-1 * clamp(28px, 6vw, 40px)) 8px; aspect-ratio: 1526 / 1030; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .error-icon { width: 48px; height: 48px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #FF6B78; background: rgba(255, 37, 55, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 37, 55, 0.3); }
  .error-dialog h2 { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
  .error-dialog p { margin: 0 0 24px; color: var(--muted); font-size: 1rem; font-weight: 400; line-height: 1.45; text-wrap: pretty; }
  .error-dialog form { margin: 0; }
  .error-x:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.3); outline-offset: 2px; }
  /* no artwork: centre the text on the whole page, logo pinned to the bottom */
  @media (max-height: 529px) {
    .view-error .error-page-art { display: none; }
    /* logo stays in flow; an equal-height spacer on top keeps the text page-centred without overlap */
    .view-error:not([hidden]) { --logo-w: 130px; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
    .view-error::before { content: ""; flex: 0 0 auto; height: calc(var(--logo-w) * 2214 / 4823); }
    .view-error .error-page-body { flex: 0 0 auto; }
    .view-error .error-page-logo { width: var(--logo-w); margin: 0; }
  }
  @media (max-height: 360px) { .view-error:not([hidden]) { --logo-w: 100px; } }
  /* under 400px tall: centre the text in the space above the logo (no top spacer) */
  @media (max-height: 399px) {
    .view-error::before { display: none; }
    .view-error .error-page-body { flex: 1 0 auto; justify-content: center; }
  }
  /* landscape phones: no room for artwork (tablets keep it) */
  @media (orientation: landscape) and (max-height: 500px) {
    .error-dialog .error-art, .view-error .error-page-art { display: none; }
    .error-dialog .error-icon { display: none; }
  }
  .error-dialog:focus { outline: none; }
  .error-dialog .error-close { width: 100%; font-weight: 400; }
  .btn-glass {
    font: inherit; font-weight: 800; font-size: .95rem;
    color: var(--text);
    border-radius: 999px;
    padding: 11px 20px; min-height: 44px; cursor: pointer;
    background: #282828 !important;
    border: 0 !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 10px rgba(0,0,0,0.35) !important;
    outline: 4px solid transparent; outline-offset: 2px;
    transition: background-color 120ms, outline-color 120ms;
  }
  @media (hover: hover) { .btn-glass:hover { background: #2E2E2E !important; } }
  .btn-glass:active { background: #222222 !important; }
  .btn-glass:focus-visible { outline-color: rgba(255, 255, 255, 0.3); }

  .view-launcher {
    --grid-gap: 16px;
    padding: 0 clamp(16px, 4vw, 40px) clamp(32px, 6vw, 64px);
    max-width: 1360px;
    margin: 0 auto;
  }
  #launcher-wrap:not([hidden]) { display: flex; flex-direction: column; justify-content: flex-start; min-height: 100svh; }
  #launcher-wrap .topbar, #launcher-wrap .view-launcher { width: 100%; box-sizing: border-box; }
  /* tablets + desktop: centre the whole block; phones (portrait + landscape) stay top-aligned */
  @media (min-width: 720px) and (not ((pointer: coarse) and (max-height: 674px))) {
    #launcher-wrap:not([hidden]) { justify-content: center; }
  }
  @media (min-width: 1024px) {
  }
  /* V8: tall desktop screens â€” tiles grow into spare height (capped at 0.8 height/width), leftover space stays centred */
  @media (min-width: 1024px) {
    .view-launcher .lobby-grid { --tile-base-h: clamp(392px, calc(460px - (100vw - 1024px) * 0.2009), 460px); }
  }
  @media (min-width: 1024px) and (min-height: 801px) {
    .view-launcher .tile {
      --tw: calc((min(100vw, 1360px) - 2 * clamp(16px, 4vw, 40px) - var(--grid-gap, 16px)) / 2);
      aspect-ratio: auto; min-height: 0;
      height: max(340px, var(--tile-base-h), min(calc(100svh - 380px), calc(var(--tw) * 0.8)));
    }
  }
  .launcher-head { padding-top: clamp(8px, 3vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 20px 24px; flex-wrap: wrap; }
  /* header row lines up with the tiles' inner content edge at every size (--inset mirrors .tile --tile-pad) */
  #launcher-wrap { --inset: clamp(18px, 2.2vw, 30px); }
  @media (max-width: 627px) { #launcher-wrap { --inset: 18px; } }
  @media (min-width: 600px) and (max-width: 1023px) and (orientation: landscape) and (max-height: 674px) and (pointer: coarse) { #launcher-wrap { --inset: 16px; } }
  .topbar { padding-left: calc(clamp(16px, 4vw, 40px) + var(--inset)); padding-right: calc(clamp(16px, 4vw, 40px) + var(--inset)); }
  .launcher-head { padding-left: var(--inset); padding-right: var(--inset); }
  @media (min-width: 1024px) and (min-height: 675px) {
    .topbar-logo { width: 156px; }
    #signout { top: calc(156px * 0.065); }
  }
  .launcher-head h1, .launcher-head .signed-in { text-box: trim-both cap alphabetic; }
  .launcher-head .signed-in { align-self: center; }
  /* heading is mostly lowercase: centre the info line on its x-height band, not its cap band (Poppins cap .70em, x .55em) */
  @media (min-width: 628px) { .launcher-head .signed-in { translate: 0 calc(0.075 * (var(--h1-size) - 1.05rem)); } }
  @supports (text-box: trim-both cap alphabetic) {
    .launcher-head {
      padding-top: calc(clamp(20px, 3vw, 28px) + clamp(2rem, 4vw, 3rem) * 0.175);
      padding-bottom: calc(clamp(2rem, 4vw, 3rem) * 0.175);
    }
  }
  @media (max-width: 627px) {
    @supports (text-box: trim-both cap alphabetic) { .launcher-head { padding-bottom: 10px; row-gap: 20px; } }
  }
  /* tile titles are always 14/16 of the heading */
  :root { --h1-size: clamp(1.875rem, 3.4vw, 2.6875rem); }
  .tile-title { --title-size: calc(var(--h1-size) * 0.875); }
  .launcher-head h1 {
    margin: 0;
    font-size: var(--h1-size);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .launcher-head h1:focus { outline: none; }
  .launcher-head p { margin: 0; color: var(--muted); font-size: 1.05rem; text-align: right; }
  .launcher-head strong { color: var(--text); font-weight: 700; }

  /* ---------- image-led lobby cards ---------- */
  .lobby-grid {
    list-style: none; margin: clamp(12px, 1.6vw, 16px) 0 0; padding: 0;
    --grid-gap: 16px;
  }
  @media (min-width: 1024px) { .lobby-grid { margin-top: calc(clamp(12px, 1.6vw, 16px) + 4px); } }
  .lobby-grid {
    display: grid; gap: var(--grid-gap);
    grid-template-columns: minmax(0, 1fr);
    --tile-ratio: 8 / 7;
  }
  @media (min-width: 480px) { .lobby-grid { --tile-ratio: 19 / 10; } }
  @media (min-width: 720px) { .lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --grid-gap: 20px; --tile-ratio: 1 / 1; } }
  @media (min-width: 720px) { .view-launcher { --grid-gap: 20px; } }
  @media (min-width: 1100px) { .view-launcher { --grid-gap: 24px; } }
  @media (min-width: 1100px) { .lobby-grid { --grid-gap: 24px; --tile-ratio: 16 / 11; } }
  @media (min-width: 1400px) { .lobby-grid { --tile-ratio: 16 / 10; } }

  .tile {
    --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%;
    position: relative;
    isolation: isolate;
    aspect-ratio: var(--tile-ratio);
    min-height: 340px;
    container-type: inline-size;
    display: flex; flex-direction: column; justify-content: flex-end;
    --tile-pad: clamp(18px, 2.2vw, 30px);
    padding: var(--tile-pad);
    border-radius: calc(24px + var(--tile-pad));
    overflow: hidden;
    background: var(--surface);
    transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 500ms var(--ease-out), box-shadow 400ms var(--ease-out);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 24px 50px -28px rgba(0, 0, 0, 0.9);
  }
  .tile.is-tracking { transition: transform 80ms linear, box-shadow 400ms var(--ease-out); }

  /* one image per region, crossfaded */
  .tile-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 30%);
    scale: var(--zoom, 1); translate: var(--shift, 0 0); transform-origin: var(--focus, 50% 30%);
    z-index: -2;
    opacity: 0;
    transform: scale(1.1);
    filter: saturate(1.05) brightness(.9);
    transition: opacity 550ms var(--ease-out), transform 1400ms var(--ease-out), filter 600ms var(--ease-out);
  }
  .tile-img.is-active { opacity: 1; transform: scale(1.04); }
  .tile:hover .tile-img.is-active { transform: scale(1.1); filter: saturate(1.2) brightness(1); }

  .tile::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(to top, rgba(9, 8, 13, 0.95) 0%, rgba(9, 8, 13, 0.7) 30%, rgba(9, 8, 13, 0) 62%),
      linear-gradient(to bottom, rgba(9, 8, 13, 0.3), transparent 28%);
  }
  .tile[data-lobby="live"][data-region="row"]   { --tint: rgba(124, 0, 212, 0.32); }
  .tile[data-lobby="live"][data-region="asia"]  { --tint: rgba(173, 0, 0, 0.22); }
  .tile[data-lobby="slots"][data-region="row"]  { --tint: rgba(94, 3, 130, 0.32); }
  .tile[data-lobby="slots"][data-region="asia"] { --tint: rgba(94, 5, 163, 0.32); }
  .tile[data-lobby="live"][data-region="row"]   { --overlay: #4A037C; }
  .tile[data-lobby="live"][data-region="asia"]  { --overlay: #430F0F; }
  .tile[data-lobby="slots"][data-region="row"]  { --overlay: #5E0382; }
  .tile[data-lobby="slots"][data-region="asia"] { --overlay: #5E05A3; }
  .tile[data-region]::before, .tile[data-region]:hover::before {
    background:
      linear-gradient(to top, color-mix(in srgb, var(--overlay, #09080D) 95%, transparent) 0%, color-mix(in srgb, var(--overlay, #09080D) 70%, transparent) 30%, transparent 62%),
      linear-gradient(to bottom, rgba(9, 8, 13, 0.3), transparent 28%);
  }
  .tile::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    border-radius: inherit;
    background: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    opacity: 0;
    transition: opacity 200ms var(--ease-out);
  }
  .tile:hover {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.2),
      0 40px 70px -30px var(--tint, var(--glow)),
      0 24px 50px -28px rgba(0, 0, 0, 0.9);
  }
  .tile:hover::after { opacity: 1; }

  /* stacked content */
  .tile-title {
    margin: 0;
    font-size: var(--title-size);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
  }
  .tile-controls {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: clamp(16px, 4cqi, 24px);
  }

  /* region toggle: native radios, styled as a glass lozenge */
  .region-toggle {
    position: relative;
    display: inline-grid; grid-template-columns: 1fr 1fr;
    margin: 0; padding: 4px; min-width: 0;
    border-radius: 999px;
  }
  .region-toggle.glass {
    border: 0;
    box-shadow: 0.5px 0.5px 1px 0 rgba(255,255,255,0.7) inset, -0.5px -0.5px 1px 0 rgba(255,255,255,0.3) inset, 0 2px 10px 0 rgba(0,0,0,0.25);
  }
  .region-toggle legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .region-toggle::before {
    content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: var(--pearl);
    box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 14px -6px rgba(0, 0, 0, 0.6);
    transition: transform 320ms var(--ease-out);
  }
  .region-toggle:has(input[value="asia"]:checked)::before { transform: translateX(100%); }
  .region-toggle input { position: absolute; opacity: 0; pointer-events: none; }
  .region-toggle label {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    min-width: 64px; min-height: 40px;
    padding: 0 16px;
    font-weight: 800; font-size: .92rem; letter-spacing: .01em;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    cursor: pointer;
    transition: color 220ms;
  }
  .region-toggle label:hover { color: #FFFFFF; }
  .region-toggle input:not(:checked) + label { font-weight: 400; }
  /* reserve the bold width so switching regions never changes the toggle's width */
  .region-toggle label { grid-template-rows: 1fr 0; }
  .region-toggle label::after { content: attr(data-text); font-weight: 800; height: 0; visibility: hidden; overflow: hidden; }
  .region-toggle input:checked + label { color: var(--pearl-fg); }
  .region-toggle:has(input:focus-visible) { outline: 4px solid rgba(255, 255, 255, 0.3); outline-offset: 2px; }

  .launch {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800; font-size: 1rem;
    color: #1A1A1A; text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFCFD 55%, #EEEEF1 100%) !important;
    border: 0 !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -2px 2px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.35) !important;
    transition: background 120ms, outline-color 120ms;
    outline: 4px solid transparent; outline-offset: 2px;
  }
  .launch:hover { background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 55%, #F4F4F6 100%) !important; }
  .launch:active { background: linear-gradient(180deg, #F2F2F4 0%, #EEEEF1 100%) !important; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3) !important; }
  .launch:focus-visible { outline-color: rgba(255, 255, 255, 0.3); }
  .launch svg { width: 12px; height: 12px; }
  @container (max-width: 340px) {
    .tile-controls .launch { flex: 1 1 auto; }
  }
  @media (max-width: 627px) {
    .tile-controls { flex-wrap: nowrap; gap: 8px; }
    .tile-controls .region-toggle { flex: 1 1 0; display: grid; }
    .tile-controls .region-toggle label { min-width: 0; padding: 0 8px; }
    .tile-controls .launch { flex: 1 1 0; min-width: 0; padding-left: 14px; padding-right: 14px; }
    .tile { min-height: 240px; --tile-pad: 18px; }
  }
  @media (max-width: 719px) {
    .view-launcher .legacy { margin-top: 16px; padding: 18px; border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
  }
  @media (max-width: 627px) {
    .tile::before {
      background:
        linear-gradient(to top, rgba(9, 8, 13, 0.97) 0%, rgba(9, 8, 13, 0.8) 34%, rgba(9, 8, 13, 0.35) 58%, rgba(9, 8, 13, 0) 78%),
        linear-gradient(to bottom, rgba(9, 8, 13, 0.3), transparent 28%);
    }
  }
  @media (max-width: 479px) {
    .tile { aspect-ratio: auto; min-height: 0; height: max(234px, calc((100vw - 32px) * 0.64)); }
  }
  @media (min-width: 480px) and (max-width: 719px) {
    .tile { aspect-ratio: auto; min-height: 0; height: max(240px, calc((100vw - 2 * clamp(16px, 4vw, 40px)) / 1.9)); }
  }
  /* tablet + landscape phones: both tiles fit in the first screen; Old Lobby may sit below the fold */
  @media (min-width: 720px) and (max-width: 1023px) {
    .tile { aspect-ratio: auto; min-height: 0; height: clamp(220px, calc(100svh - 220px), calc((100vw - 2 * clamp(16px, 4vw, 40px) - 20px) / 2)); }
  }
  /* same short-screen sizing as 1024+ so tiles don't jump when crossing 1024px */
  @media (min-width: 720px) and (max-width: 1023px) and (orientation: landscape) and (max-height: 800px) {
    .tile { height: min(60svh, calc((100vw - 2 * clamp(16px, 4vw, 40px) - 20px) / 2)); }
  }
  @media (min-width: 600px) and (max-width: 1023px) and (orientation: landscape) and (max-height: 674px) and (pointer: coarse) {
    .topbar { padding-top: 8px; padding-bottom: 8px; }
    .topbar-logo { width: 104px; }
    .launcher-head { padding-top: calc(16px + 1.75rem * 0.175); }
    :root { --h1-size: 1.75rem; }
    .lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --grid-gap: 12px; margin-top: 10px; }
    .view-launcher { --grid-gap: 12px; }
    .tile { aspect-ratio: auto; min-height: 0; height: min(60svh, max(196px, calc(100svh - 128px))); --tile-pad: 16px; padding: 16px; }
    .view-launcher .legacy { padding-left: 16px; padding-right: 16px; }

  }
  @media (min-width: 1024px) and (orientation: landscape) and (max-height: 800px) {
    .tile { aspect-ratio: auto; min-height: 0; height: min(60svh, var(--tile-base-h)); }
    .launcher-head { padding-top: calc(4px + clamp(2rem, 4vw, 3rem) * 0.175); }
  }
  @media (min-width: 1024px) and (max-width: 1365px) and (orientation: landscape) and (max-height: 800px) {
    .launcher-head { padding-top: calc(24px + clamp(2rem, 4vw, 3rem) * 0.175); }
  }
  @media (min-width: 1024px) and (max-width: 1365px) and (orientation: landscape) and (max-height: 500px) {
    .launcher-head { padding-top: calc(10px + clamp(2rem, 4vw, 3rem) * 0.175); }
  }
  @container (max-width: 360px) {
    .view-launcher .tile-controls .stuck { white-space: normal; }
  }

  .stuck {
    appearance: none;
    -webkit-appearance: none;
    display: inline;
    align-self: flex-start;
    margin-top: 12px;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-weight: 600;
    font-size: .82rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.26);
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 160ms, text-decoration-color 160ms;
  }
  .stuck:hover { color: #FFFFFF; text-decoration-color: currentColor; }
  .stuck:focus { outline: none; }
  .stuck:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.35); outline-offset: 3px; }
  .tile-controls .stuck { flex: 1 0 100%; margin-top: 2px; }
  @media (max-width: 627px), (orientation: landscape) and (max-height: 406px) {
    .tile[data-region]::before, .tile[data-region]:hover::before {
      background:
        linear-gradient(to top, color-mix(in srgb, var(--overlay, #09080D) 97%, transparent) 0%, color-mix(in srgb, var(--overlay, #09080D) 85%, transparent) 42%, color-mix(in srgb, var(--overlay, #09080D) 40%, transparent) 64%, transparent 82%),
        linear-gradient(to bottom, rgba(9, 8, 13, 0.3), transparent 28%);
    }
  }
  @media (min-width: 628px) and (max-width: 1023px) {
    .view-launcher .tile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: end; column-gap: 10px; }
    .view-launcher .tile-controls { display: contents; }
    .view-launcher .tile-title { grid-column: 1 / -1; grid-row: 1; align-self: center; margin: 0; padding-right: 128px; }
    .view-launcher .tile-controls .stuck { grid-column: 1 / -1; grid-row: 1; align-self: center; justify-self: end; text-align: right; white-space: nowrap; margin: 0 0 0 16px; padding: 12px 0 12px 12px; line-height: 1; }
    .view-launcher .tile-controls .region-toggle { grid-column: 1; grid-row: 2; margin-top: 16px; display: grid; min-width: 0; }
    .view-launcher .tile-controls .region-toggle label { min-width: 0; }
    .view-launcher .tile-controls .launch { grid-column: 2; grid-row: 2; margin-top: 16px; min-width: 0; }
  }
  @media (max-width: 627px) {
    .view-launcher .tile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: end; column-gap: 8px; }
    .view-launcher .tile-controls { display: contents; }
    .view-launcher .tile-title { grid-column: 1 / -1; grid-row: 1; align-self: center; margin: 0; padding-right: 128px; }
    .view-launcher .tile-controls .stuck { grid-column: 1 / -1; grid-row: 1; align-self: center; justify-self: end; text-align: right; white-space: nowrap; margin: 0 0 0 16px; padding: 12px 0 12px 12px; line-height: 1; }
    .view-launcher .tile-controls .region-toggle { grid-column: 1; grid-row: 2; margin-top: 16px; }
    .view-launcher .tile-controls .launch { grid-column: 2; grid-row: 2; margin-top: 16px; }
  }
  @media (min-width: 400px) and (max-width: 627px) {
    .view-launcher .tile-controls .stuck { white-space: nowrap; margin-left: 0; }
  }
  @media (max-width: 249px) {
    .view-launcher .tile-title { padding-right: 0; white-space: nowrap; font-size: min(clamp(1rem, 11cqi, 1.5rem), var(--title-size)); }
    .view-launcher .tile-controls .region-toggle { grid-column: 1 / -1; grid-row: 2; }
    .view-launcher .tile-controls .launch { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
    .view-launcher .tile-controls .stuck { grid-column: 1 / -1; grid-row: 4; justify-self: center; text-align: center; margin: 4px 0 0; padding: 12px 0 0; white-space: nowrap; }
  }
  @media (min-width: 1024px) {
    .view-launcher .tile-controls { flex-wrap: nowrap; }
    .tile-controls .stuck { flex: 0 0 auto; margin: 0 0 0 auto; align-self: center; }
  }

  /* ---------- old lobby â€” deliberately quieter ---------- */
  .legacy {
    position: relative;
    margin-top: var(--grid-gap) !important;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 18px clamp(18px, 2.2vw, 30px);
    border-radius: calc(24px + clamp(18px, 2.2vw, 30px));
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    transition: border-color 160ms, background-color 160ms;
  }
  .legacy:hover { border-color: var(--line-strong); }

  .legacy:has(.legacy-link:focus-visible) { outline: 4px solid rgba(255, 255, 255, 0.3); outline-offset: 2px; }
  .legacy h2 { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
  .legacy-link { color: inherit; text-decoration: none; }
  .legacy-meta { margin: 4px 0 0; line-height: 1.2; font-size: .875rem; font-weight: 400; color: var(--muted); }
  .legacy-link:focus-visible { outline: none; }
  .legacy-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .legacy .region {
    display: inline-block; margin-left: 6px; vertical-align: .15em;
    font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  }
  .legacy .region { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
  .legacy-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); }
  .legacy:hover .legacy-go { color: var(--text); }
  .legacy-go svg { width: 12px; height: 12px; }

  /* ---------- the orchestrated moment ---------- */
  html[data-view="launcher"] .launcher-head,
  html[data-view="launcher"] .lobby-grid > li,
  html[data-view="launcher"] .legacy {
    animation: rise 750ms var(--ease-out) both;
  }
  html[data-view="launcher"] .launcher-head { animation-delay: 380ms; }
  html[data-view="launcher"] .lobby-grid > li:nth-child(1) { animation-delay: 460ms; }
  html[data-view="launcher"] .lobby-grid > li:nth-child(2) { animation-delay: 530ms; }
  html[data-view="launcher"] .legacy { animation-delay: 600ms; }
  @keyframes rise {
    from { opacity: 0; translate: 0 26px; }
    to   { opacity: 1; translate: 0 0; }
  }
  html.instant *, html.instant *::before, html.instant *::after { animation: none !important; transition: none !important; }

  @media (max-width: 520px) {
    .brand-plate { font-size: .85rem; }
    .tile { --tile-pad: 18px; }
  }
  @media (hover: none) {
    /* touch: show the glass rim at rest so the cards still feel premium */
    .tile::after { opacity: .6; background: none; }
    .tile:hover .tile-img.is-active { transform: scale(1.04); }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
    .tile { transform: none !important; }
  }
