body:has(.story-dashboard-screen) .shell {
  background: transparent;
}

body:has(.story-dashboard-screen) .shell > .topbar-authed {
  display: none;
}

.story-dashboard-screen {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  overflow-x: hidden;
  margin: 0;
  padding: 1px 0 88px;
  isolation: isolate;
  background: linear-gradient(180deg, #001d66 0 72vh, #123679 98vh, #416ab1 136vh, #85a3d6 190vh, #b4c8eb 260vh, #c8d8f3 100%);
  color: #ffffff;
  font-family:
    "Montserrat", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.story-dashboard-screen::before {
  position: absolute;
  inset: -14px 0 auto;
  z-index: -2;
  height: min(1120px, 112vh);
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 29, 102, 0.04), rgba(0, 29, 102, 0.62) 62%, rgba(0, 29, 102, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 29, 102, 0.66), rgba(0, 29, 102, 0.16)),
    url("assets/hero-stadium.png") center 42% / cover no-repeat;
  opacity: 0.78;
  filter: blur(5px) saturate(1.08);
  transform: scale(1.018);
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(180deg, #000 0 68%, rgba(0, 0, 0, 0.9) 76%, rgba(0, 0, 0, 0.42) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0 68%, rgba(0, 0, 0, 0.9) 76%, rgba(0, 0, 0, 0.42) 90%, transparent 100%);
  pointer-events: none;
}

.story-dashboard-screen::after {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 134px;
  content: "";
  background:
    linear-gradient(
      90deg,
      transparent calc(50% - 12px),
      #0035b9 calc(50% - 12px),
      #0035b9 calc(50% - 1px),
      #ffffff calc(50% - 1px),
      #ffffff calc(50% + 10px),
      transparent calc(50% + 10px)
    ),
    rgba(0, 29, 102, 0.06);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0 70%, transparent 100%);
}

.story-dashboard-screen .dashboard-design-topbar {
  position: relative;
  z-index: 30;
}

.story-dashboard-screen .dashboard-design-switch button.active {
  color: #ffffff;
}

.story-view-heading {
  margin-bottom: 44px;
}

.story-main-content {
  position: relative;
  z-index: 2;
  width: min(1242px, calc(100vw - 80px));
  margin: 0 auto;
}

.story-dashboard-screen .start-wow {
  display: grid;
  gap: 31px;
}

.story-dashboard-screen .start-hero-card {
  position: relative;
  isolation: isolate;
  min-height: 188px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 0 3px, transparent 3.6px) calc(100% - 304px) 16px / 16px 22px repeat-y,
    linear-gradient(90deg, transparent 0 calc(100% - 312px), rgba(255, 255, 255, 0.14) calc(100% - 312px) calc(100% - 311px), transparent calc(100% - 311px)),
    radial-gradient(circle at calc(100% - 132px) 50%, rgba(20, 223, 25, 0.18), transparent 38%),
    linear-gradient(90deg, #001d66 0%, #002579 63%, #001d66 100%);
  padding: 34px 46px;
  box-shadow: 0 26px 56px rgba(0, 29, 102, 0.34);
  overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1242 240' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0,0H1242V31C1242,52,1214,54,1214,88C1214,122,1242,124,1242,145V154C1242,175,1214,177,1214,210C1214,232,1225,237,1242,240H0C17,237,28,232,28,210C28,177,0,175,0,154V145C0,124,28,122,28,88C28,54,0,52,0,31Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1242 240' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0,0H1242V31C1242,52,1214,54,1214,88C1214,122,1242,124,1242,145V154C1242,175,1214,177,1214,210C1214,232,1225,237,1242,240H0C17,237,28,232,28,210C28,177,0,175,0,154V145C0,124,28,122,28,88C28,54,0,52,0,31Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.story-dashboard-screen .start-hero-card > * {
  position: relative;
  z-index: 3;
}

.story-dashboard-screen .start-hero-card .start-eyebrow,
.story-dashboard-screen .start-section-heading .start-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.story-dashboard-screen .start-hero-card h2 {
  color: #ffffff;
  font-family: "Unbounded", "Montserrat", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
}

.story-dashboard-screen .start-hero-card p {
  max-width: 750px;
  color: rgba(255, 255, 255, 0.84);
  font-family: "Montserrat", Inter, sans-serif;
}

.story-dashboard-screen .start-scoreline {
  min-height: 126px;
  border-color: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.story-dashboard-screen .start-record-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 31px;
}

.story-dashboard-screen .start-record-card,
.story-dashboard-screen .start-story-panel,
.story-dashboard-screen .start-top-card,
.story-dashboard-screen .start-recent-card {
  min-height: 201px;
  border: 1px solid rgba(184, 204, 238, 0.82);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 12%, rgba(20, 223, 25, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  color: #001d66;
  box-shadow: 0 18px 42px rgba(0, 29, 102, 0.12);
  backdrop-filter: blur(14px);
}

.story-dashboard-screen .start-record-card.is-loss {
  border-color: rgba(255, 169, 184, 0.84);
  background:
    radial-gradient(circle at 90% 12%, rgba(240, 6, 130, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 249, 0.95));
}

.story-dashboard-screen .start-record-card b,
.story-dashboard-screen .start-record-card small,
.story-dashboard-screen .start-top-heading span,
.story-dashboard-screen .start-top-heading p,
.story-dashboard-screen .start-section-heading p {
  color: rgba(0, 29, 102, 0.7);
}

.story-dashboard-screen .start-record-card strong,
.story-dashboard-screen .start-record-card span,
.story-dashboard-screen .start-story-panel h2,
.story-dashboard-screen .start-section-heading h2,
.story-dashboard-screen .start-top-heading h2 {
  color: #001d66;
}

.story-dashboard-screen .start-story-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 31px;
}

.story-dashboard-screen .start-story-panel {
  padding: 28px;
}

.story-dashboard-screen .metric-grid {
  gap: 12px;
}

.story-dashboard-screen .metric-item,
.story-dashboard-screen .start-mini-list div,
.story-dashboard-screen .start-top-row,
.story-dashboard-screen .start-recent-row {
  border-color: rgba(197, 214, 241, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(0, 29, 102, 0.05);
}

.story-dashboard-screen .metric-item strong,
.story-dashboard-screen .metric-item span,
.story-dashboard-screen .start-mini-list strong,
.story-dashboard-screen .start-mini-list span,
.story-dashboard-screen .start-top-main strong,
.story-dashboard-screen .start-top-main small,
.story-dashboard-screen .start-recent-row strong,
.story-dashboard-screen .start-recent-row small,
.story-dashboard-screen .start-recent-row time,
.story-dashboard-screen .start-recent-row b,
.story-dashboard-screen .start-top-row b {
  color: #001d66;
}

.story-dashboard-screen .metric-item span,
.story-dashboard-screen .start-mini-list span,
.story-dashboard-screen .start-top-main small,
.story-dashboard-screen .start-recent-row small {
  color: #52637d;
}

.story-dashboard-screen .start-stats-for-you {
  gap: 24px;
  padding-top: 8px;
}

.story-dashboard-screen .start-section-heading {
  max-width: 880px;
  margin-top: 8px;
}

.story-dashboard-screen .start-stats-for-you > .start-section-heading {
  max-width: 960px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(0, 29, 102, 0.62), rgba(0, 53, 185, 0.34) 58%, rgba(0, 53, 185, 0.08));
  padding: 18px 22px;
  box-shadow: 0 24px 58px rgba(0, 29, 102, 0.18);
  backdrop-filter: blur(12px);
}

.story-dashboard-screen .start-section-heading .start-eyebrow {
  color: #0035b9;
}

.story-dashboard-screen .start-stats-for-you > .start-section-heading .start-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.story-dashboard-screen .start-stats-for-you > .start-section-heading h2 {
  color: #ffffff;
  text-shadow: 0 12px 28px rgba(0, 29, 102, 0.34);
}

.story-dashboard-screen .start-stats-for-you > .start-section-heading p {
  color: rgba(255, 255, 255, 0.84);
}

.story-dashboard-screen .start-top-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 31px;
}

.story-dashboard-screen .start-top-card.is-featured {
  grid-column: 1 / -1;
}

@media (max-width: 1080px) {
  .story-main-content {
    width: min(100% - 48px, 1242px);
  }

  .story-dashboard-screen .start-hero-card,
  .story-dashboard-screen .start-record-grid,
  .story-dashboard-screen .start-story-grid,
  .story-dashboard-screen .start-top-grid {
    grid-template-columns: 1fr;
  }

  .story-dashboard-screen .start-record-card:nth-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .story-main-content {
    width: min(100% - 28px, 1242px);
  }

  .story-dashboard-screen .start-hero-card {
    padding: 24px 22px;
    border-radius: 18px;
    -webkit-mask: none;
    mask: none;
  }

  .story-dashboard-screen .start-hero-card h2 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .story-dashboard-screen .start-hero-card,
  .story-dashboard-screen .start-record-card,
  .story-dashboard-screen .start-story-panel,
  .story-dashboard-screen .start-top-card,
  .story-dashboard-screen .start-recent-card {
    border-radius: 18px;
  }
}
