:root {
  --ink: #10131a;
  --ink-soft: #252a36;
  --paper: #f5f7fb;
  --white: #fff;
  --line: #dce1ec;
  --muted: #697083;
  --blue: #554cff;
  --blue-deep: #3429d8;
  --acid: #c9ff55;
  --shadow: 0 22px 70px rgba(23, 28, 44, .12);
  --sans: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --display: "Arial Black", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { min-height: 100vh; margin: 0; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: #b9c0d0;
  background: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}
.boot-screen img { width: 64px; height: 64px; border-radius: 18px; background: white; }
.boot-screen:after {
  content: "";
  width: 46px;
  height: 4px;
  border-radius: 99px;
  background: var(--acid);
  animation: pulse 900ms ease-in-out infinite alternate;
}
@keyframes pulse { to { width: 90px; opacity: .45; } }

.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 43px;
  height: 43px;
  overflow: hidden;
  border-radius: 13px;
  background: white;
  box-shadow: 0 6px 18px rgba(16, 19, 26, .12);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 18px; font-weight: 900; letter-spacing: -.03em; }
.brand-place {
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--muted);
  background: rgba(105, 112, 131, .1);
  font-size: 12px;
  font-weight: 800;
}

/* Signed-out */
.access-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr); background: var(--ink); }
.auth-side {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(24px, 4vw, 62px) 32px;
  color: var(--ink);
  background:
    linear-gradient(rgba(30, 34, 45, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 34, 45, .055) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
}
.auth-side header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.secure-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.secure-chip i { width: 8px; height: 8px; border-radius: 50%; background: #22af68; box-shadow: 0 0 0 5px rgba(34,175,104,.1); }
.auth-card { width: min(480px, 100%); margin: auto; padding: 64px 0 48px; }
.eyebrow { margin: 0; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.auth-card h1 {
  max-width: 460px;
  margin: 16px 0 14px;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 76px);
  line-height: .95;
  letter-spacing: -.07em;
}
.form-intro { min-height: 52px; margin: 0 0 32px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #e9edf5;
}
.mode-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.mode-tabs button.active { color: var(--ink); background: white; box-shadow: 0 4px 13px rgba(35, 40, 55, .1); }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 800; }
.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #cfd5e1;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.auth-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(85, 76, 255, .12); }
.primary-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
  padding: 14px 17px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--blue);
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(85,76,255,.24);
  transition: transform 150ms ease, background 150ms ease;
}
.primary-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--blue-deep); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--acid); }
.text-button { justify-self: start; padding: 4px 0; border: 0; color: var(--muted); background: transparent; font-size: 14px; font-weight: 750; cursor: pointer; }
.text-button:hover { color: var(--blue); }
.notice, .error { margin: 0 0 20px; padding: 13px 15px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.notice { color: #13603b; background: #def8e9; }
.error { color: #8f2f2b; background: #ffe7e5; }
.terms { display: block; margin-top: 24px; color: #8a91a2; font-size: 13px; line-height: 1.5; }
.auth-foot { display: flex; justify-content: space-between; gap: 20px; color: #858c9c; font-size: 12px; font-weight: 700; }

.showcase-side {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px clamp(25px, 4vw, 62px) 34px;
  color: white;
  background:
    radial-gradient(circle at 92% 8%, rgba(201,255,85,.2), transparent 22%),
    radial-gradient(circle at 4% 72%, rgba(85,76,255,.34), transparent 28%),
    var(--ink);
}
.showcase-top { display: flex; justify-content: space-between; gap: 20px; color: #8d95a8; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.showcase-copy { max-width: 730px; padding: clamp(70px, 12vh, 145px) 0 48px; }
.showcase-copy h2 { margin: 0 0 18px; font-size: clamp(48px, 6.2vw, 96px); line-height: .92; letter-spacing: -.07em; }
.showcase-copy p { max-width: 560px; margin: 0; color: #aeb6c6; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; }
.mini-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.mini-app {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  padding: 13px;
  border: 1px solid #303541;
  border-radius: 18px;
  color: white;
  background: rgba(32,36,46,.8);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
.mini-app:hover { transform: translateY(-3px); border-color: #616a80; }
.mini-app img { width: 48px; height: 48px; border-radius: 13px; object-fit: contain; background: white; }
.mini-app span { min-width: 0; }
.mini-app small { display: block; margin-bottom: 3px; color: #7f8799; font-size: 11px; font-weight: 800; }
.mini-app strong { display: block; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.mini-app b { color: var(--acid); font-size: 20px; }

/* Signed-in */
.workspace { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); background: var(--paper); }
.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 22px;
  color: white;
  background: var(--ink);
}
.side-rail .brand { padding: 0 8px; }
.side-rail .brand-place { color: #a6afc0; background: #272c37; }
.rail-nav { display: grid; gap: 7px; margin: 58px 0; }
.rail-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 10px 13px;
  border-radius: 13px;
  color: #979fb1;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.rail-link i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #39404e; border-radius: 9px; font-style: normal; }
.rail-link.active { color: white; background: #242936; }
.rail-link.active i { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.rail-profile { margin-top: auto; }
.rail-profile-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #313744; border-radius: 16px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--blue); font-size: 14px; font-style: normal; font-weight: 900; }
.rail-profile-card span { min-width: 0; }
.rail-profile-card strong, .rail-profile-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-profile-card strong { font-size: 13px; }
.rail-profile-card small { margin-top: 2px; color: #858ea0; font-size: 12px; }
.rail-profile-card a { color: #aeb6c5; font-size: 18px; text-decoration: none; }
.logout-button { width: 100%; margin-top: 9px; padding: 10px 12px; border: 0; color: #8e97a9; background: transparent; font-size: 13px; font-weight: 750; cursor: pointer; text-align: left; }
.logout-button:hover { color: white; }

.workspace-main { min-width: 0; padding: 25px clamp(22px, 4.5vw, 70px) 40px; }
.mobile-top { display: none; }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 62px; }
.workspace-head > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); background: white; font-size: 12px; font-weight: 800; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22af68; }
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; padding: clamp(44px, 8vh, 92px) 0 38px; }
.welcome h1 { max-width: 760px; margin: 12px 0 0; font-family: var(--display); font-size: clamp(52px, 7vw, 104px); line-height: .87; letter-spacing: -.075em; }
.welcome-note { max-width: 290px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 30px rgba(25,30,46,.06); }
.welcome-note strong { display: block; margin-bottom: 7px; font-size: 15px; }
.welcome-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-head span { color: var(--muted); font-size: 13px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.app-card {
  --accent: var(--blue);
  position: relative;
  min-width: 0;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 25px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(20,25,40,.055);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.app-card:after { content: ""; position: absolute; right: -50px; bottom: -82px; width: 200px; height: 200px; border: 42px solid var(--accent); border-radius: 50%; opacity: .12; transition: transform 220ms ease; }
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.app-card:hover:after { transform: scale(1.12) rotate(12deg); }
.app-card.split { --accent: #ff705f; }
.app-card.fantasy { --accent: #98c600; }
.app-card.casino { --accent: #19a773; }
.app-card.arena { --accent: #ff965c; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.app-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.app-identity img { width: 54px; height: 54px; flex: none; border-radius: 15px; object-fit: contain; background: white; box-shadow: 0 8px 20px rgba(16,19,26,.12); }
.app-identity span { min-width: 0; }
.app-identity small, .app-identity strong { display: block; }
.app-identity small { margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .07em; }
.app-identity strong { font-size: 18px; }
.launch-arrow { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%; color: white; background: var(--ink); font-size: 18px; transition: transform 180ms ease, background 180ms ease; }
.app-card:hover .launch-arrow { transform: rotate(-35deg); background: var(--accent); }
.card-body { position: relative; z-index: 1; max-width: 460px; margin-top: auto; padding-top: 54px; }
.card-body p { margin: 0 0 21px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.feature-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 7px 10px; border-radius: 99px; color: var(--ink-soft); background: #f0f2f7; font-size: 12px; font-weight: 750; }
.workspace-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; color: #8a91a1; font-size: 12px; }

@media (max-width: 980px) {
  .access-page { grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr); }
  .mini-apps { grid-template-columns: 1fr; }
  .showcase-copy { padding-top: 90px; }
  .workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .welcome-note { display: none; }
}
@media (max-width: 760px) {
  .access-page { display: flex; flex-direction: column; }
  .auth-side { min-height: 100vh; padding: 20px 20px 28px; }
  .auth-card { padding: 62px 0 42px; }
  .auth-card h1 { font-size: clamp(48px, 14vw, 70px); }
  .showcase-side { min-height: auto; padding: 64px 20px 24px; }
  .showcase-copy { padding: 0 0 38px; }
  .showcase-copy h2 { font-size: 52px; }
  .mini-apps { grid-template-columns: 1fr 1fr; }
  .workspace { display: block; }
  .side-rail { display: none; }
  .workspace-main { padding: 16px 16px 30px; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .mobile-top .brand-place { display: none; }
  .mobile-profile { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--blue); font-weight: 900; text-decoration: none; }
  .workspace-head { min-height: 55px; margin-top: 18px; border-top: 1px solid var(--line); }
  .welcome { padding: 42px 0 32px; }
  .welcome h1 { font-size: clamp(50px, 15.5vw, 78px); }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 275px; }
}
@media (max-width: 480px) {
  .secure-chip, .showcase-side, .workspace-head > span { display: none; }
  .auth-side .brand-place { display: none; }
  .workspace-footer span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
