.ca-app-bottom-nav,
.ca-app-install,
.ca-app-language,
.ca-app-ios-tip,
.ca-app-home {
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.ca-app-home {
  margin: 0;
  min-height: 100vh;
  color: #f8fafc;
  background: #07130d;
}

.ca-app-home__shell {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 calc(92px + env(safe-area-inset-bottom));
}

.ca-app-home__hero {
  padding: 24px 0 20px;
}

.ca-app-home__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #07130d;
  background: #f6d67a;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.ca-app-home h1 {
  max-width: 760px;
  margin: 18px 0 0;
  color: #fff7dd;
  font-size: clamp(30px, 7vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.ca-app-home p {
  max-width: 660px;
  margin: 14px 0 0;
  color: #d7e5dc;
  font-size: 17px;
  line-height: 1.55;
}

.ca-app-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ca-app-home__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  color: #07130d;
  background: #f6d67a;
  border: 1px solid #f6d67a;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.ca-app-home__actions a.is-secondary {
  color: #f6d67a;
  background: transparent;
  border-color: rgba(246, 214, 122, 0.35);
}

.ca-app-home__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.ca-app-home__card,
.ca-app-home__note {
  color: #f8fafc;
  background: #0d1c14;
  border: 1px solid rgba(246, 214, 122, 0.18);
  border-radius: 8px;
}

.ca-app-home__card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 16px;
  text-decoration: none;
}

.ca-app-home__card strong,
.ca-app-home__note strong {
  color: #fff7dd;
  font-size: 17px;
  line-height: 1.25;
}

.ca-app-home__card span,
.ca-app-home__note span {
  color: #d7e5dc;
  font-size: 14px;
  line-height: 1.45;
}

.ca-app-home__note {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
}

@media (max-width: 640px) {
  .ca-app-home__grid {
    grid-template-columns: 1fr;
  }
}

.ca-app-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99980;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(64px + env(safe-area-inset-bottom));
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(7, 19, 13, 0.96);
  border-top: 1px solid rgba(246, 214, 122, 0.22);
  backdrop-filter: blur(14px);
}

.ca-app-bottom-nav__item {
  display: grid;
  grid-template-rows: 24px 16px;
  align-items: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 52px;
  padding: 5px 2px;
  color: #d7e5dc;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
}

.ca-app-bottom-nav__item svg,
.ca-app-install svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.ca-app-bottom-nav__item span {
  max-width: 100%;
  overflow: hidden;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-app-bottom-nav__item.is-active,
.ca-app-bottom-nav__item:focus-visible {
  color: #f6d67a;
  background: rgba(246, 214, 122, 0.12);
  border-color: rgba(246, 214, 122, 0.22);
  outline: none;
}

.ca-app-bottom-nav__item:active {
  transform: translateY(1px);
}

.ca-app-install-wrap--fixed {
  position: fixed;
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 99981;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.ca-app-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: #07130d;
  background: #f6d67a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.ca-app-install[hidden],
.ca-app-ios-tip[hidden] {
  display: none !important;
}

.ca-app-ios-tip {
  width: min(320px, calc(100vw - 24px));
  padding: 14px;
  color: #f8fafc;
  background: #0d1c14;
  border: 1px solid rgba(246, 214, 122, 0.24);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.ca-app-ios-tip strong,
.ca-app-ios-tip span {
  display: block;
}

.ca-app-ios-tip strong {
  font-size: 14px;
  line-height: 1.2;
}

.ca-app-ios-tip span {
  margin-top: 5px;
  color: #d7e5dc;
  font-size: 13px;
  line-height: 1.45;
}

.ca-app-ios-tip button,
.ca-app-ios-tip__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 36px;
  padding: 0 12px;
  color: #f6d67a;
  background: transparent;
  border: 1px solid rgba(246, 214, 122, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.ca-app-ios-tip__action {
  margin-right: 8px;
  color: #07130d;
  background: #f6d67a;
  border-color: #f6d67a;
}

.ca-app-language--fixed {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  right: 10px;
  z-index: 99979;
}

.ca-app-language__links {
  display: flex;
  max-width: min(92vw, 360px);
  overflow-x: auto;
  padding: 4px;
  gap: 3px;
  color: #d7e5dc;
  background: rgba(7, 19, 13, 0.9);
  border: 1px solid rgba(246, 214, 122, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.ca-app-language__links a {
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.ca-app-language__links a.is-active,
.ca-app-language__links a:focus-visible {
  color: #07130d;
  background: #f6d67a;
  outline: none;
}

.ca-app-language__plugin {
  max-width: min(92vw, 360px);
  padding: 6px;
  background: rgba(7, 19, 13, 0.9);
  border: 1px solid rgba(246, 214, 122, 0.18);
  border-radius: 8px;
}

@media (max-width: 782px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .ca-app-bottom-nav {
    display: grid;
  }
}

@media (min-width: 783px) {
  .ca-app-install-wrap--fixed,
  .ca-app-language--fixed {
    display: none;
  }
}

@media (display-mode: standalone) {
  .ca-app-install-wrap--fixed {
    display: none;
  }
}
