html.page--homepage,
html.page--homepage body,
.page--homepage #panel {
  background: #f5f7fb;
}

.page--homepage #panel > .main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1 0 auto;
}

@media (min-width: 601px) {
  .page--homepage #menu.hydro-redesign-nav {
    position: fixed;
    top: 0;
    height: 52px;
    background: rgb(255 255 255 / 85%);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
  }

  .page--homepage #menu.hydro-redesign-nav > .row { max-width: 1152px; }
  .page--homepage #menu.hydro-redesign-nav > .row > .columns { padding-inline: 28px; }
  .page--homepage #menu.hydro-redesign-nav .nav__item { height: 34px; padding-inline: 13px; }
  .page--homepage #menu.hydro-redesign-nav .nav--active { background: #e8f0f9; color: #244c71; border-radius: 9px; }
  .page--homepage #menu.hydro-redesign-nav .dashboard-account {
    border: 1px solid #dbe5f7;
    border-radius: 999px;
    background: rgb(255 255 255 / 85%);
    gap: 8px;
    padding-inline: 5px 10px;
  }
  .page--homepage #menu .dashboard-account-mark {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #e9f0f6;
    color: #335978;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
  }
}

@media (min-width: 851px) {
  .page--homepage #menu.hydro-redesign-nav + .nav--shadow + #panel { padding-top: 52px; }
}

@media (min-width: 601px) and (max-width: 960px) {
  .page--homepage #menu.hydro-redesign-nav > .row > .columns { padding-inline: 12px; }
  .page--homepage #menu.hydro-redesign-nav .nav__item { padding-inline: 7px; font-size: 13px; }
}

@media (max-width: 850px) {
  .hasjs.page--homepage .dashboard-mobile-header {
    background: rgb(255 255 255 / 85%);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .page--homepage .dashboard-mobile-account {
    border-radius: 999px;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .page--homepage .header--mobile {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(255 255 255 / 85%);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }
}

.panorama-home {
  --ph-bg: #f5f7fb;
  --ph-ink: #192230;
  --ph-muted: #506174;
  --ph-blue: #2e638a;
  --ph-link: #235977;
  --ph-border: rgba(0, 0, 0, .05);
  --ph-rule: #e9eef5;
  --ph-shadow: 0 13px 34px rgba(33, 67, 103, .09), 0 2px 8px rgba(33, 67, 103, .03);
  background: var(--ph-bg);
  color: var(--ph-ink);
  line-height: 1.5;
  padding-bottom: 44px;
}

.panorama-home *,
.panorama-home *::before,
.panorama-home *::after { box-sizing: border-box; }
.panorama-home h1, .panorama-home h2, .panorama-home h3, .panorama-home p,
.panorama-home ol, .panorama-home ul, .panorama-home dl, .panorama-home dd { margin: 0; }
.panorama-home ol, .panorama-home ul { list-style: none; padding: 0; }
.panorama-home a { text-decoration: none; }
.panorama-home :is(a, summary):focus-visible { outline: 2px solid var(--ph-blue); outline-offset: 3px; }
.ph-shell { max-width: 1200px; margin-inline: auto; padding-inline: clamp(24px, 5.55vw, 64px); }
.ph-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(125deg, #e2edf9, #edf5fb 47%, #a8cdf0);
  overflow: hidden;
}

.ph-hero::after {
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 91px;
  background: linear-gradient(transparent 8%, rgb(245 247 251 / 28%) 60%, var(--ph-bg) 100%);
  content: "";
  pointer-events: none;
}

.ph-mountains {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.ph-hero-inner { position: relative; height: clamp(410px, 37vw, 510px); padding-top: clamp(44px, 4.75vw, 54px); pointer-events: none; }
.ph-intro { position: relative; z-index: 2; width: 100%; max-width: 410px; margin-left: clamp(10px, 2.8vw, 34px); }
.ph-intro :is(h1, p, a) { pointer-events: auto; }
.panorama-home .ph-kicker { display: flex; align-items: center; gap: 7px; color: #4c6279; font-size: 13px; font-weight: 650; margin-bottom: 16px; }
.ph-kicker::before { width: 22px; height: 1.5px; border-radius: 2px; background: currentColor; content: ""; }
.panorama-home h1 { color: #172a3c; font-size: clamp(28px, 3.15vw, 38px); font-weight: 800; line-height: 1.24; letter-spacing: -.04em; }
.ph-intro h1 span { color: #315f84; }
.panorama-home .ph-description { color: #354e65; max-width: 350px; line-height: 1.65; font-size: 14px; margin-top: 10px; }
.ph-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; }
.ph-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 35px;
  padding: 6px 20px;
  border: 1px solid var(--ph-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 4px #1d31570a;
  color: var(--ph-ink);
  font-size: 13px;
  font-weight: 700;
  transition: background .16s, box-shadow .16s;
}
.ph-button:hover { color: var(--ph-link); background: #f7faff; box-shadow: 0 3px 9px #122d5b16; }
.panorama-home .ph-buttons .ph-button--primary { color: #fff; background: linear-gradient(172deg, #2b83c5, #125b9d); box-shadow: 0 4px 10px #125b9d30; }
.panorama-home .ph-buttons .ph-button--primary:hover { background: #124c84; }

.ph-trail {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.ph-trail-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-milestones { position: absolute; inset: 0; }
.ph-milestones li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding-bottom: 22px;
  transform: translate(-50%, -100%);
}
.ph-milestones li:nth-child(1) { --x: 38.2%; --y: 66%; }
.ph-milestones li:nth-child(2) { --x: 48.6%; --y: 57.75%; }
.ph-milestones li:nth-child(3) { --x: 58.7%; --y: 49.75%; }
.ph-milestones li:nth-child(4) { --x: 67.4%; --y: 42.5%; }
.ph-milestones li:nth-child(5) { --x: 75.8%; --y: 34.5%; }
.ph-milestones li:nth-child(6) { --x: 82.8%; --y: 28.25%; }
.ph-milestones li::before,
.ph-milestones li::after {
  position: absolute;
  left: 50%;
  content: "";
  pointer-events: none;
}
.ph-milestones li::before {
  bottom: 0;
  width: 1px;
  height: 22px;
  background: linear-gradient(#fffcf699, #fff3d9);
}
.ph-milestones li::after {
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fffaf0;
  border: 1px solid #fff6df;
  box-shadow: 0 0 8px 3px #ffe5adcc, 0 0 18px 5px #ffd88e80;
  transform: translate(-50%, 50%);
}
.ph-milestones li:nth-last-child(-n+2)::after { box-shadow: 0 0 10px 5px #ffe8b7, 0 0 22px 10px #ffd88e9c; }
.ph-milestones :is(a, .ph-milestone-label) {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 13px;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 999px;
  background: rgb(255 255 255 / 80%);
  color: #203353;
  box-shadow: 0 6px 15px #31577b18;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
  pointer-events: auto;
  transition: background .16s, box-shadow .16s;
}
.ph-milestones a:hover { color: var(--ph-link); background: #f1f6ff; box-shadow: 0 6px 16px #3065b835; }

.ph-content { position: relative; margin-top: clamp(-112px, -9.4vw, -104px); }
.ph-columns { display: grid; grid-template-columns: minmax(0, 2.06fr) minmax(0, 1fr); gap: 20px; }
.ph-sidebar { display: grid; grid-template-rows: max-content 1fr; gap: 20px; min-width: 0; }
.ph-card { background: #fff; border: 1px solid var(--ph-border); border-radius: 24px; box-shadow: var(--ph-shadow); }
.ph-contests {
  position: relative;
  padding: 18px 23px 5px;
  background: linear-gradient(rgb(255 255 255 / 32%), rgb(255 255 255 / 62%) 77px, rgb(255 255 255 / 86%) 116px, #fff 152px);
}
.ph-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.panorama-home h2 { color: var(--ph-ink); font-size: 16px; font-weight: 730; line-height: 1.4; }
.ph-card-heading h2 span { margin-right: 3px; }
.ph-link { color: var(--ph-link); font-size: 12px; font-weight: 630; white-space: nowrap; }
.ph-link:hover { color: #1246ab; text-decoration: underline; }
.panorama-home .ph-races { margin-top: 3px; }
.ph-races + .ph-contest-more .ph-races { margin-top: 0; }
.ph-race {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(114px, 22%) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 11px 8px;
  border: 1px solid transparent;
  border-bottom-color: var(--ph-rule);
  transition: background .16s, border-color .16s;
}
.ph-races > .ph-race:last-child { border-bottom-color: transparent; }
.ph-race:is(:hover, :focus-within) { background: rgb(255 248 231 / 72%); border-color: #ffdda0; border-radius: 11px; }
.ph-date {
  width: 52px;
  min-height: 50px;
  display: grid;
  align-content: center;
  justify-content: start;
  text-align: center;
  gap: 3px;
  border-right: 1px solid rgb(56 86 115 / 12%);
  color: var(--ph-muted);
  font-variant-numeric: tabular-nums;
}
.ph-date strong { color: #263447; font-size: 22px; line-height: 1.12; }
.ph-date > span { font-size: 10px; }
.ph-race-info h3 { font-size: 15px; color: var(--ph-ink); font-weight: 730; line-height: 1.4; overflow-wrap: anywhere; }
.ph-race-info h3 a, .ph-profile h2 a { color: inherit; }
.ph-race-info h3 a:hover, .ph-profile h2 a:hover { color: var(--ph-link); }
.ph-race-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 5px; color: var(--ph-muted); font-size: 11px; line-height: 1.35; }
.ph-race-meta-item { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ph-race-meta-item .ph-race-icon { width: 13px; height: 13px; }
.ph-chip { padding: 3px 6px; border-radius: 5px; color: #2c465e; background: #edf2f6; font-size: 11px; }
.ph-chip--rated { color: #9a450a; background: #fff0dc; }
.ph-chip--rated > span { color: #c76109; }
.ph-joined { color: #067854; }
.ph-race-when { display: flex; align-items: center; gap: 8px; color: #566982; }
.ph-race-when > svg { flex-shrink: 0; }
.ph-state { display: block; font-size: 11px; line-height: 1.3; font-weight: 640; }
.ph-race-time { display: block; margin-top: 3px; color: #2a3647; font-size: 12px; font-weight: 740; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ph-race[data-ph-state="upcoming"] .ph-race-when { color: #9a4609; }
.ph-race[data-ph-state="live"] .ph-race-when { color: #087454; }
.panorama-home .ph-race-button {
  display: inline-grid;
  place-items: center;
  min-width: 90px;
  min-height: 35px;
  padding: 5px 9px;
  border-radius: 9px;
  background: #ffb414;
  color: #382500;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.panorama-home .ph-race-button:hover { color: #382500; background: #ffc447; }
.panorama-home .ph-race-button--finished { color: #3d4c60; background: #f0f3f6; }
.panorama-home .ph-race-button--finished:hover { color: #253950; background: #e7edf2; }
.ph-race [hidden] { display: none; }
.ph-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ph-contest-more summary { position: absolute; top: 22px; right: 23px; cursor: pointer; list-style: none; }
.ph-contest-more summary::-webkit-details-marker, .ph-news-list summary::-webkit-details-marker { display: none; }
.ph-show-less, .ph-contest-more[open] .ph-show-more { display: none; }
.ph-contest-more[open] .ph-show-less { display: inline; }
.ph-all { display: block; width: fit-content; margin: 8px 0 0 auto; }
.panorama-home .ph-empty { color: var(--ph-muted); font-size: 13px; margin-top: 15px; }

.ph-profile, .ph-news { padding: 17px; }
.ph-profile { background: linear-gradient(rgb(255 255 255 / 93%), #fff 115px); }
.ph-profile-head { display: flex; align-items: center; gap: 13px; }
.ph-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid #e3e9ee;
  border-radius: 50%;
  background: #edf0f2;
  color: #233447;
  font-size: 16px;
  font-weight: 760;
  object-fit: cover;
}
.page--homepage #menu img.dashboard-account-mark,
.page--homepage .dashboard-mobile-account img.dashboard-account-mark {
  display: inline-block;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}
.ph-profile-head p { color: var(--ph-muted); font-size: 12px; }
.panorama-home .ph-stats {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 13px;
  padding-top: 16px;
  border-top: 1px solid var(--ph-rule);
}
.ph-stats div { display: grid; align-content: center; justify-items: center; min-height: 65px; padding: 7px; border-radius: 16px; background: #edf2f5; }
.ph-stats dt { grid-row: 2; color: var(--ph-muted); font-size: 11px; }
.ph-stats dd { grid-row: 1; color: var(--ph-ink); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 780; }
.ph-stats .ph-score, .ph-stats .ph-score a { color: #2e5b78; }
.ph-stats .ph-score a:hover { text-decoration: underline; }
.ph-news { display: flex; flex-direction: column; }
.panorama-home .ph-news-list { margin-top: 4px; margin-bottom: 8px; }
.ph-news-list summary { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; cursor: pointer; list-style: none; font-size: 12px; }
.ph-news-list summary:hover, .ph-news-list details[open] summary { color: var(--ph-link); }
.ph-news-list summary > span:first-child { overflow-wrap: anywhere; }
.ph-news-date { white-space: nowrap; color: var(--ph-muted); font-variant-numeric: tabular-nums; }
.panorama-home .ph-news-list p { padding: 0 0 8px; font-size: 12px; color: #465b75; white-space: pre-wrap; overflow-wrap: anywhere; }
.ph-community { margin-top: auto; border-top: 1px solid var(--ph-rule); padding-top: 9px; }
.ph-community h3 { font-size: 12px; color: #435973; font-weight: 680; }
.ph-community dl > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 3px; font-size: 12px; }
.ph-community dt { color: var(--ph-muted); }
.ph-community dd { text-align: right; color: var(--ph-ink); font-weight: 670; }
.ph-community a { color: #935217; overflow-wrap: anywhere; }
.ph-community a:hover { text-decoration: underline; }

.ph-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-top: 19px; }
.ph-quick-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 68px;
  padding: 13px 15px;
  color: var(--ph-ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.ph-quick-card:hover, .ph-quick-card:focus-visible { color: var(--ph-ink); transform: translateY(-3px); border-color: #d9e6fb; box-shadow: 0 15px 29px #21366319; }
.ph-quick-card strong, .ph-quick-card small { display: block; }
.ph-quick-card strong { font-weight: 730; font-size: 14px; }
.ph-quick-card small { color: var(--ph-muted); font-size: 12px; }
.ph-quick-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 13px; font-size: 18px; }
.ph-quick-icon--book { background: #fdf6e6; }
.ph-quick-icon--cup { background: #eef5ff; }
.ph-quick-icon--chart { background: #eeeffe; }
.ph-quick-icon--chat { background: #e8f9f0; }
.ph-quick-arrow { margin-left: auto; color: #7a8fa9; }

@media (min-width: 801px) and (max-width: 970px) {
  .ph-intro { max-width: 330px; }
  .ph-milestones :is(a, .ph-milestone-label) { padding-inline: 9px; }
}

@media (max-width: 800px) {
  .ph-shell { padding-inline: 20px; }
  .ph-hero { --photo-height: clamp(180px, 40vw, 315px); background: #e8f1f9; }
  .ph-hero-inner { height: auto; padding-top: 27px; }
  .ph-hero::after { height: 90px; }
  .ph-intro { max-width: 430px; margin-left: 0; }
  .ph-buttons { margin-top: 18px; }
  .ph-mountains { inset: auto 0 78px; height: var(--photo-height); mask-image: linear-gradient(transparent, #000 16%, #000 88%, transparent); }
  .ph-trail { position: relative; inset: auto; width: 100%; padding: 0 0 12px; margin: 8px 0 0; }
  .ph-trail-art { position: static; height: var(--photo-height); display: block; }
  .panorama-home .ph-milestones { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 auto; padding-inline: 20px; max-width: 430px; }
  .ph-milestones li { position: static; transform: none; padding: 0; }
  .ph-milestones li::before, .ph-milestones li::after { display: none; }
  .ph-milestones :is(a, .ph-milestone-label) { width: 100%; padding-inline: 4px; gap: 3px; }
  .ph-content { margin-top: 0; }
  .ph-columns { grid-template-columns: 1fr; gap: 13px; }
  .ph-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .ph-sidebar { gap: 13px; }
  .ph-contests, .ph-profile, .ph-news { padding: 16px; }
  .ph-contest-more summary { top: 20px; right: 16px; }
  .ph-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 620px) {
  .ph-sidebar { grid-template-columns: 1fr; }
  .ph-race { grid-template-columns: 41px minmax(0, 1fr) auto; gap: 8px; padding-inline: 4px; }
  .ph-date { grid-row: 1 / 3; width: 41px; }
  .ph-race-info { grid-column: 2 / 4; }
  .ph-race-when { grid-column: 2; }
  .ph-race-button { grid-column: 3; }
  .ph-news { min-height: 180px; }
}

@media (max-width: 390px) {
  .ph-shell { padding-inline: 13px; }
  .ph-race { gap: 7px; }
  .panorama-home .ph-race-button { min-width: 73px; }
  .ph-race-when { gap: 5px; }
  .ph-race-time { font-size: 11px; }
  .ph-quick-card { padding: 10px; gap: 8px; }
  .ph-quick-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .ph-quick-card small { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .panorama-home *, .panorama-home *::before, .panorama-home *::after { transition: none; }
  .ph-quick-card:is(:hover, :focus-visible) { transform: none; }
}
