.brand {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.home-side-action {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: -6px;
}

.home-side-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #27272a;
  color: #fff;
  font-size: 14px;
}

.home-side-label {
  min-width: 0;
}

.app-shell.sidebar-collapsed .home-side-action .home-side-icon {
  display: grid;
}

.app-shell.sidebar-collapsed .home-side-action .home-side-label {
  display: none;
}

.home-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background:
    radial-gradient(circle at 78% 6%, rgba(59, 130, 246, 0.1), transparent 31%),
    radial-gradient(circle at 12% 34%, rgba(168, 50, 50, 0.08), transparent 25%),
    #22252d;
  color: #f4f4f5;
}

.home-content {
  min-height: 100%;
}

.home-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 76px) clamp(22px, 4.5vw, 72px) 54px;
}

.home-hero {
  min-height: min(650px, calc(100vh - 130px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  align-items: center;
  gap: clamp(44px, 7vw, 110px);
}

.home-kicker,
.home-section-heading p,
.home-playground-title > p,
.home-personal-strip > div > span {
  margin: 0;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-kicker span {
  width: 28px;
  height: 1px;
  background: #60a5fa;
}

.home-hero-copy h2 {
  margin: 22px 0 24px;
  max-width: 760px;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: clamp(46px, 5.5vw, 82px);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.home-hero-copy h2 em {
  color: #93c5fd;
  font-style: normal;
}

.home-hero-copy h2 > span {
  white-space: nowrap;
}

.home-lead {
  max-width: 610px;
  margin: 0;
  color: #a1a1aa;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.home-hero-actions button,
.home-playground-title button,
.home-personal-strip button {
  border-radius: 9px;
  cursor: pointer;
  font-weight: 750;
}

.home-primary-action,
.home-secondary-action {
  min-height: 48px;
  padding: 0 18px;
}

.home-primary-action {
  border: 1px solid #3b82f6;
  background: #2563eb;
  color: #fff;
}

.home-primary-action span {
  margin-left: 18px;
}

.home-secondary-action {
  max-width: 280px;
  overflow: hidden;
  border: 1px solid rgba(161, 161, 170, 0.32);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-secondary-action:disabled {
  cursor: default;
  opacity: 0.48;
}

.home-primary-action:hover,
.home-secondary-action:not(:disabled):hover {
  transform: translateY(-2px);
}

.home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 42px;
}

.home-facts div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.home-facts strong {
  color: #f4f4f5;
  font-size: 20px;
}

.home-facts span {
  color: #71717a;
  font-size: 12px;
}

.home-live-stage {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #191b21;
  background-size: 28px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.home-live-stage::after {
  content: 'TYPE';
  position: absolute;
  right: -18px;
  bottom: 38px;
  color: rgba(255, 255, 255, 0.025);
  font-size: 108px;
  font-weight: 900;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.home-stage-bar {
  height: 48px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.home-stage-bar > span {
  display: flex;
  gap: 6px;
}

.home-stage-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52525b;
}

.home-stage-bar i:first-child { background: #a83232; }
.home-stage-bar i:nth-child(2) { background: #d97706; }
.home-stage-bar i:last-child { background: #2563eb; }

.home-stage-bar small {
  color: #52525b;
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}

.home-stage-body {
  min-height: 300px;
  padding: 42px 34px;
}

.home-stage-index {
  display: block;
  color: #52525b;
  font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.home-demo-text {
  min-height: 126px;
  margin: 42px 0 16px;
  display: inline;
  color: #f8fafc;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: clamp(31px, 3.7vw, 56px);
  line-height: 1.45;
}

.home-demo-caret {
  width: 2px;
  height: 1em;
  display: inline-block;
  margin-left: 5px;
  vertical-align: -0.08em;
  background: #60a5fa;
  animation: home-caret 850ms step-end infinite;
}

.home-demo-tags {
  position: absolute;
  left: 34px;
  bottom: 68px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-demo-tags span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  color: #71717a;
  font-size: 10px;
}

.home-stage-foot {
  height: 52px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #71717a;
  font-size: 11px;
}

.home-stage-foot strong {
  color: #93c5fd;
  font-size: 13px;
}

.home-track,
.home-playground {
  margin-top: clamp(52px, 8vw, 110px);
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.home-section-heading h2,
.home-playground-title h2 {
  margin: 8px 0 0;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 650;
}

.home-section-heading > span {
  color: #71717a;
  font-size: 12px;
}

.home-track-line {
  position: relative;
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 0;
}

.home-track-line::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, #a83232, #2563eb, #0f766e, #d97706);
  opacity: 0.55;
}

.home-track-line button {
  position: relative;
  z-index: 1;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0 10px 18px;
  background: transparent;
  color: #d4d4d8;
  cursor: pointer;
}

.home-track-line i {
  width: 48px;
  height: 48px;
  border: 1px solid #52525b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #22252d;
  color: #71717a;
  font: normal 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: 160ms ease;
}

.home-track-line strong {
  margin-top: 7px;
  font-size: 16px;
}

.home-track-line span {
  color: #71717a;
  font-size: 11px;
  text-align: center;
}

.home-track-line button:hover i,
.home-track-line button:focus-visible i {
  border-color: #60a5fa;
  background: #2563eb;
  color: #fff;
  transform: scale(1.1);
}

.home-playground {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 12px;
}

.home-playground-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.home-playground-title button {
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: #a1a1aa;
}

.home-game {
  position: relative;
  min-height: 310px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.home-game::after {
  content: '';
  position: absolute;
  inset: auto -25% -60% 20%;
  height: 200px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.09;
  filter: blur(22px);
  pointer-events: none;
}

.home-game:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.32);
}

.home-game-story {
  background: linear-gradient(145deg, rgba(147, 51, 234, 0.3), #27232d 66%);
  color: #d8b4fe;
}

.home-game-detective {
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.32), #202830 66%);
  color: #a5f3fc;
}

.home-game-memory {
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.3), #2b2721 66%);
  color: #fde68a;
}

.home-game-number {
  color: rgba(255, 255, 255, 0.35);
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.home-game-mark {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 40px;
  opacity: 0.55;
}

.home-game div {
  position: relative;
  z-index: 1;
  color: #f4f4f5;
}

.home-game small {
  display: block;
  margin-bottom: 8px;
  color: currentColor;
}

.home-game strong {
  display: block;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: clamp(25px, 2.6vw, 38px);
}

.home-game p {
  max-width: 300px;
  margin: 12px 0 0;
  color: #a1a1aa;
  line-height: 1.7;
}

.home-game em {
  position: relative;
  z-index: 1;
  color: currentColor;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.home-personal-strip {
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
}

.home-personal-strip > div {
  display: grid;
  gap: 5px;
}

.home-personal-strip strong {
  color: #d4d4d8;
  font-size: 13px;
}

.home-personal-strip button {
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 9px 13px;
  background: transparent;
  color: #a1a1aa;
}

.home-personal-strip button:hover,
.home-playground-title button:hover {
  color: #fff;
}

@keyframes home-caret {
  50% { opacity: 0; }
}

@media (max-width: 1160px) {
  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 40px;
  }

  .home-live-stage {
    min-height: 360px;
  }

  .home-stage-body {
    min-height: 240px;
  }

  .home-playground {
    grid-template-columns: 1.3fr 1fr;
  }

  .home-game-memory {
    grid-column: 1 / -1;
    min-height: 230px;
  }
}

@media (max-width: 760px) {
  .home-shell {
    padding: 28px 16px 40px;
  }

  .home-hero-copy h2 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .home-live-stage {
    min-height: 330px;
  }

  .home-stage-body {
    min-height: 220px;
    padding: 32px 22px;
  }

  .home-demo-tags {
    left: 22px;
  }

  .home-section-heading,
  .home-playground-title {
    align-items: start;
    flex-direction: column;
  }

  .home-track-line {
    margin-inline: -16px;
    padding: 0 16px 14px;
    grid-template-columns: repeat(5, 150px);
    overflow-x: auto;
  }

  .home-track-line::before {
    left: 90px;
    right: auto;
    width: 600px;
  }

  .home-playground {
    grid-template-columns: 1fr;
  }

  .home-game,
  .home-game-memory {
    grid-column: auto;
    min-height: 250px;
  }

  .home-personal-strip {
    grid-template-columns: 1fr 1fr;
  }

  .home-personal-strip > div {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-demo-caret {
    animation: none;
  }

  .home-game,
  .home-primary-action,
  .home-secondary-action,
  .home-track-line i {
    transition: none;
  }
}
