/* CroreBet App download page. Gold stage, white instruction card, site header and footer stay dark. */

.page-app {
  background: #0c0e12;
}

.page-app .app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: start;
  background: #ffc20a;
  color: #141414;
}

.page-app .app-stage {
  width: 100%;
  margin: 0 auto;
  padding: 8px 0 36px;
}

.page-app .app-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 28px 12px 78px;
  text-align: center;
}

.page-app .app-hero-art {
  position: absolute;
  top: 0;
  right: 18px;
  width: min(340px, 24vw);
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}

.page-app .app-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.page-app .app-mark {
  width: 168px;
  height: auto;
  border-radius: 6px;
}

.page-app .app-hero h1 {
  margin: 14px 0 8px;
  color: #111;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-app .app-hero p {
  margin: 0;
  color: #111;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
}

.page-app .app-card {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 32px));
  margin: -56px auto 0;
  background: #fff;
  color: #161616;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(80, 50, 0, 0.16);
  padding: 18px 28px 28px;
}

.page-app .app-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e6e6e6;
}

.page-app .app-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 12px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #b5b5b5;
  font: inherit;
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
}

.page-app .app-tabs button[aria-selected="true"] {
  color: #111;
  border-bottom-color: #111;
}

.page-app .app-tabs svg {
  width: 26px;
  height: 26px;
}

.page-app .app-panel {
  padding-top: 22px;
}

.page-app .app-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.page-app .app-panel ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.page-app .app-panel li {
  margin: 6px 0;
  font-size: 16px;
}

.page-app .app-panel li b {
  font-weight: 800;
}

.page-app .app-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 520px);
  min-height: 58px;
  margin-top: 8px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-app .app-download:hover,
.page-app .app-download:focus-visible {
  background: #000;
}

.page-app .app-download svg {
  width: 22px;
  height: 22px;
}

.page-app .app-ios {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: center;
}

.page-app .app-phone {
  width: 188px;
  height: 360px;
  margin: 0 auto;
  border: 8px solid #111;
  border-radius: 32px;
  background: #ffc20a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  position: relative;
}

.page-app .app-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #111;
}

.page-app .app-phone img {
  width: 132px;
  height: auto;
  border-radius: 4px;
}

.page-app .app-rail {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 100%;
  padding: 16px 6px 24px;
  background: #fff;
  border-left: 1px solid #f3e2a4;
}

.page-app .app-rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 74px;
  color: #3a3a3a;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.page-app .app-rail a:hover,
.page-app .app-rail a:focus-visible {
  color: #111;
}

.page-app .app-rail svg {
  width: 26px;
  height: 26px;
}

.page-app .rail-cricket { color: #1f8a4c; }
.page-app .rail-live { color: #111; }
.page-app .rail-aviator { color: #e10600; }
.page-app .rail-jet { color: #4b5563; }
.page-app .rail-aviatrix { color: #111; }
.page-app .rail-book { color: #111; }

.page-app .seo {
  width: min(780px, calc(100% - 32px));
  margin: 22px auto 0;
  background: #fff;
  border: 1px solid #ead89a;
  color: #1c1c1c;
}

.page-app .seo-bar h2 {
  color: #1c1c1c;
  font-size: 15px;
}

.page-app .seo-toggle {
  border-color: #e4e4e4;
  background: #fff;
  color: #222;
}

.page-app .seo-body p,
.page-app .seo-body li {
  color: #333;
}

.page-app .seo-body h2 {
  color: #111;
  font-size: 18px;
}

.page-app .seo-body details {
  border-top: 1px solid #eee;
  padding: 8px 0;
}

.page-app .seo-body summary {
  cursor: pointer;
  font-weight: 800;
  color: #111;
}

.page-app .seo-body details p {
  margin-top: 8px;
}

@media (max-width: 800px) {
  .page-app .app-shell {
    grid-template-columns: 1fr;
  }

  .page-app .app-rail {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    order: -1;
    gap: 8px;
    padding: 10px 12px;
    border-left: 0;
    border-bottom: 1px solid #f3e2a4;
  }

  .page-app .app-rail a {
    flex: 0 0 auto;
  }

  .page-app .app-hero {
    min-height: 250px;
    padding-bottom: 64px;
  }

  .page-app .app-hero-art {
    width: 46%;
    right: 0;
    opacity: 0.35;
  }

  .page-app .app-card {
    padding: 14px 16px 20px;
  }

  .page-app .app-tabs button {
    font-size: 20px;
    min-height: 50px;
  }

  .page-app .app-ios {
    grid-template-columns: 1fr;
  }

  .page-app .app-phone {
    height: 280px;
  }
}
