*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #050505;
  --color-red: #d40000;
  --color-red-dark: #a00101;
  --color-white: #ffffff;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --header-height: 88px;
  --page-gutter: clamp(20px, 2.2vw, 34px);
  --container: min(1520px, 100% - 2 * var(--page-gutter));
  --hero-bg-image: url("../image/main-bg.webp");
  --scrollbar-size: 8px;
  --scrollbar-track: rgba(255, 255, 255, 0.05);
  --scrollbar-thumb: rgba(212, 0, 0, 0.5);
  --scrollbar-thumb-hover: rgba(212, 0, 0, 0.78);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Custom scrollbar (WebKit / Blink) */
*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(220, 30, 30, 0.55) 0%,
    rgba(160, 1, 1, 0.72) 100%
  );
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.35);
  background-clip: padding-box;
  transition: background 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(240, 40, 40, 0.75) 0%,
    rgba(212, 0, 0, 0.9) 100%
  );
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-white);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Soft page enter (load / reload) —— */
@keyframes ui-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ui-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bg-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes hero-banner-enter {
  from {
    transform: translateX(105%);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes hero-banner-exit {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(105%);
    opacity: 0.5;
  }
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding-inline: var(--page-gutter);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  animation: ui-fade-in 0.7s ease-out both;
}

.site-header__inner {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo__img {
  display: block;
  height: clamp(38px, 4.2vw, 50px);
  width: auto;
  max-width: min(140px, 28vw);
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 3.2vw, 3.5rem);
  max-width: calc(100% - 300px);
  flex-wrap: wrap;
}

.site-nav__link {
  font-size: clamp(1.125rem, 1.45vw, 1.4375rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  --nav-blend: 0;
  color: color-mix(
    in srgb,
    var(--color-white) calc((1 - var(--nav-blend)) * 100%),
    var(--color-red) calc(var(--nav-blend) * 100%)
  );
  opacity: calc(0.48 + 0.52 * var(--nav-blend));
  transition:
    color 0.12s linear,
    opacity 0.12s linear;
}

.site-nav__link:hover {
  opacity: 1;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-header__actions .btn {
  min-width: 7.25rem;
  box-sizing: border-box;
}

.site-header__account {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
  padding-right: 4px;
}

.site-header__account [hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-red);
}

.site-header__user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem 0.15rem;
  font-family: inherit;
  color: var(--color-white);
  transition: opacity 0.15s ease;
}

.site-header__user:hover {
  opacity: 0.9;
}

.site-header__user-name {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__user-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: block;
  overflow: visible;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.site-header__avatar-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}

.site-header__user-icon-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.site-header__team-badge {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  background: #121212;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 2px;
  box-sizing: border-box;
  z-index: 3;
  pointer-events: none;
}

.site-header__user-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header__user-icon {
  color: rgba(255, 255, 255, 0.85);
}

/* —— Hero —— */
.hero {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  overflow: hidden;
}

.hero--main-bg .hero__bg {
  background-image: var(--hero-bg-image);
}

.hero--has-banner .hero__bg {
  background-image: var(--hero-bg-image);
  background-position: center center;
  opacity: 0.42;
}

.hero--has-banner .hero__bg::after {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 38%,
    rgba(0, 0, 0, 0.15) 50%,
    transparent 62%
  );
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #0a0a0a;
  background-image: var(--hero-bg-image);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  pointer-events: none;
  transform-origin: center;
  animation:
    ui-fade-in 0.95s ease-out both,
    bg-breathe 22s ease-in-out 1s infinite;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 95% 80% at 0% 0%,
    rgba(220, 25, 25, 0.52) 0%,
    rgba(190, 0, 0, 0.24) 26%,
    rgba(120, 0, 0, 0.08) 48%,
    transparent 62%
  );
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 36%,
    rgba(0, 0, 0, 0.08) 52%,
    transparent 68%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  width: min(1520px, 100%);
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding:
    var(--header-height)
    max(var(--page-gutter), 16px)
    clamp(3rem, 8vh, 5rem)
    var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  height: 100%;
  min-height: 0;
}

.hero__content {
  max-width: 880px;
  justify-self: start;
  padding-left: 0;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin-bottom: 1.25rem;
  min-height: clamp(5rem, 13vw, 9.25rem);
}

.hero__title-line {
  font-family: var(--font-body);
  font-size: clamp(2.35rem, 5.4vw, 4.35rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
}

.hero__title-line--accent {
  color: var(--color-red);
}

.hero__desc {
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 430px;
  margin-bottom: clamp(1.5rem, 3vh, 2.25rem);
  min-height: clamp(4.5rem, 10vh, 5.75rem);
}

.text-accent {
  color: var(--color-red);
  font-weight: 700;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__cta-label {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-red);
  line-height: 1.05;
}

.hero__live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem 0.5rem 1.35rem;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.85vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero__live-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.hero__play {
  flex-shrink: 0;
  width: 11px;
  height: 13px;
  margin-top: 1px;
}

.hero__apk {
  display: none;
}

@keyframes hero-apk-call {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.28),
      0 0 0 0 rgba(124, 196, 62, 0.55);
  }
  45% {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
      0 14px 24px rgba(0, 0, 0, 0.34),
      0 0 0 8px rgba(124, 196, 62, 0);
  }
}

@keyframes hero-apk-bob {
  0%,
  70%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-4px);
  }
}

@keyframes hero-apk-shine {
  0%,
  58% {
    transform: translateX(-130%);
  }
  82%,
  100% {
    transform: translateX(220%);
  }
}

.hero__visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: clamp(320px, 48vw, 620px);
}

.hero--has-banner .hero__visual {
  position: absolute;
  z-index: 50;
  top: 10px;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(88vw, 1320px);
  min-height: 0;
  padding: 0;
  margin: 0;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.hero--has-banner .hero-slider {
  pointer-events: auto;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: calc(100vh - 10px);
  overflow: hidden;
}

.hero-slider__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}

.hero-slider__layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transform: translateX(105%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.68s cubic-bezier(0.33, 1, 0.36, 1),
    opacity 0.68s ease;
  will-change: transform, opacity;
}

.hero-slider__layer--active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slider__layer--enter {
  visibility: visible;
  z-index: 2;
  transform: translateX(105%);
  opacity: 0.85;
}

.hero-slider__layer--enter-end {
  transform: translateX(0);
  opacity: 1;
}

.hero-slider__layer--exit {
  visibility: visible;
  z-index: 0;
  transform: translateX(105%);
  opacity: 0.45;
}

.hero--has-banner .hero-slider__layer .hero-slider__img {
  width: auto;
  height: calc(100vh - 10px);
  max-height: none;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
}

.hero--has-banner .hero-slider__dots {
  right: 16px;
  left: auto;
  bottom: 20px;
  transform: none;
}

.hero__visual[hidden] {
  display: none;
}

.hero-slider {
  position: relative;
  width: min(100%, 680px);
  height: min(72vh, 620px);
  overflow: hidden;
}

.hero-slider__link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slider__link[hidden] {
  display: none;
}

.hero-slider__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  display: block;
  transition: opacity 0.6s ease;
}

.hero-slider--fallback .hero-slider__img {
  object-fit: contain;
  object-position: center right;
}

.hero-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-slider__dot--active {
  background: var(--color-red);
  transform: scale(1.15);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .logo {
    order: 1;
  }

  .site-header__actions {
    order: 2;
  }

  .site-header__account {
    order: 2;
    margin-left: auto;
  }

  .site-header__user {
    order: unset;
    margin-left: 0;
  }

  .site-nav {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    max-width: none;
    justify-content: center;
    padding-top: 0.25rem;
  }

  .hero__bg {
    background-position: 72% center;
  }

  .hero--main-bg .hero__bg {
    background-position: 70% 42%;
    background-size: cover;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero__content {
    max-width: none;
  }

  .hero--has-banner .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 300px;
    align-items: center;
    justify-content: center;
  }

  .hero--has-banner .hero-slider {
    min-height: 0;
    height: min(52vh, 400px);
  }

  .hero--has-banner .hero-slider__img {
    width: 100%;
    height: 100%;
    object-position: center bottom;
  }

  .hero__visual {
    min-height: 300px;
    justify-content: center;
    padding-right: 0;
  }

  .hero-slider {
    height: min(50vh, 360px);
    width: 100%;
    max-width: 520px;
  }

  .hero-slider__img {
    object-position: center;
  }

  .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.5) 45%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: auto;
  }

  .site-header {
    position: relative;
    padding: 1rem 0;
    height: auto;
  }

  .hero {
    min-height: calc(100vh - 120px);
    padding-top: 0;
  }

  .btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.6875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .site-header,
  .hero__bg,
  .hero__content,
  .page-rail .hero__apk,
  .page-rail .hero__apk img,
  .page-rail .hero__apk::after {
    animation: none;
  }

  .app-dl {
    transition: none;
  }

  .hero-slider__layer {
    transition: none;
  }

  .site-nav__link {
    transition: none;
  }

  .scroll-section .section-enter__item,
  .scroll-section .section-enter__media,
  .scroll-section .page-section__bg {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* —— Section enter (scroll pages — not header nav) —— */
.scroll-section .section-enter__item {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s ease;
}

.scroll-section.section-enter--visible .section-enter__item {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.scroll-section.section-enter--visible .section-enter__item:nth-child(1) {
  transition-delay: 0.06s;
}

.scroll-section.section-enter--visible .section-enter__item:nth-child(2) {
  transition-delay: 0.14s;
}

.scroll-section.section-enter--visible .section-enter__item:nth-child(3) {
  transition-delay: 0.22s;
}

.scroll-section .section-enter__media {
  opacity: 0;
  transform: translateX(56px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-section.section-enter--visible .section-enter__media {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.scroll-section .page-section__bg {
  opacity: 0.35;
  transition: opacity 0.9s ease;
}

.scroll-section.section-enter--visible .page-section__bg {
  opacity: 0.85;
}

.scroll-section.hero.hero--main-bg:not(.section-enter--visible) .hero__bg {
  opacity: 0.65;
}

.scroll-section.hero.hero--main-bg.section-enter--visible .hero__bg {
  opacity: 1;
}

/* —— Full-page sections (scroll) —— */
.scroll-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  box-sizing: border-box;
  position: relative;
  margin: 0;
  overflow: hidden;
}

.page-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.page-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 95% 80% at 0% 0%,
    rgba(220, 25, 25, 0.35) 0%,
    transparent 55%
  );
  opacity: 0.85;
}

.page-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
}

.page-section__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: min(1520px, 100%);
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  padding:
    var(--header-height)
    max(var(--page-gutter), 16px)
    clamp(2rem, 5vh, 3rem)
    var(--page-gutter);
}

.page-section__title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-section__title-accent {
  color: var(--color-red);
}

.page-section__lead {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
}

/* Phone: pages sit side by side. Vertical scroll stays inside the page. */
.page-rail {
  display: contents;
}

@media (max-width: 900px) {
  :root {
    --header-height: 0px;
  }

  html {
    height: 100%;
    overflow: hidden;
    scroll-snap-type: none;
  }

  body {
    height: 100%;
    overflow: hidden;
  }

  .page {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-area: 1 / 1;
    align-self: start;
    position: relative;
    height: auto;
    z-index: 40;
    padding: 10px 12px 4px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: transparent;
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo account" "nav nav";
    align-items: center;
    column-gap: 8px;
    row-gap: 0.15rem;
  }

  .logo {
    grid-area: logo;
    position: relative;
    z-index: 3;
    margin-left: 0;
    height: 30px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .logo__img {
    height: 30px;
    width: auto;
    max-width: 108px;
  }

  .site-header__account {
    grid-area: account;
    margin-left: 0;
    margin-right: 34px;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    height: 30px;
    gap: 6px;
    display: flex;
    align-items: center;
  }

  .site-header__user {
    min-width: 0;
    gap: 6px;
    padding: 0;
  }

  .site-header__user-name {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    max-width: 4.4rem;
  }

  .site-header__user-avatar {
    width: 28px;
    height: 28px;
    border-width: 1.5px;
  }

  .site-header__team-badge {
    width: 15px;
    height: 15px;
    right: -3px;
    bottom: -2px;
    border-width: 1.5px;
    padding: 1px;
  }

  .site-header__actions {
    height: 34px;
    align-items: center;
    gap: 8px;
  }

  .site-nav {
    grid-area: nav;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: calc(100% + 24px);
    max-width: none;
    margin-top: 5px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 0.4rem 14px 0.2rem;
    box-sizing: border-box;
  }

  .site-nav__link {
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(0.62rem, 2.7vw, 0.84rem);
    letter-spacing: 0.02em;
    font-weight: 700;
  }

  .lang-switch {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    z-index: 5;
    height: 30px;
    display: flex;
    align-items: center;
  }

  .lang-switch__btn {
    width: 28px;
    height: 28px;
  }

  .site-header__actions .btn,
  .btn {
    min-width: 0;
    height: 34px;
    padding: 0 0.9rem;
    font-size: 0.625rem;
    box-sizing: border-box;
  }

  .page-rail {
    display: flex;
    grid-area: 1 / 1;
    height: 100%;
    min-height: 0;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .page-rail.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .page-rail::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .page-rail > .scroll-section {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
    max-height: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .page-rail > .hero {
    min-height: 0;
    padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .page-rail .hero__inner,
  .page-rail .page-section--live .page-section__inner,
  .page-rail .page-section__inner--about,
  .page-rail .page-section--contacts .page-section__inner {
    height: auto;
    min-height: 100%;
    overflow: visible;
    padding-top: clamp(0.85rem, 2.2vh, 1.2rem);
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    padding-left: max(16px, var(--page-gutter));
    padding-right: max(16px, var(--page-gutter));
  }

  .page-rail .page-section__inner--scores {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding-top: clamp(0.55rem, 1.6vh, 0.85rem);
    padding-left: max(16px, var(--page-gutter));
    padding-right: max(16px, var(--page-gutter));
  }

  .page-rail .scores-top {
    margin-left: 0;
    margin-right: 0;
  }

  .page-rail .hero__title,
  .page-rail .hero__desc {
    min-height: 0;
  }

  .page-rail .hero__title {
    margin-bottom: 0.55rem;
  }

  .page-rail .hero__content {
    align-self: start;
    margin-top: 0;
  }

  .page-rail .hero__title-line {
    font-size: clamp(1.65rem, 8vw, 2.55rem);
  }

  .page-rail .hero__desc {
    margin-bottom: 1rem;
    max-width: 36rem;
  }

  .page-rail .hero__cta-label {
    font-size: clamp(1.45rem, 6.5vw, 2.1rem);
  }

  .page-rail .hero__apk {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    margin-top: 0.95rem;
    padding: 0.18rem 0.72rem 0.18rem 0.22rem;
    border-radius: 999px;
    background: #fff;
    color: #161616;
    text-decoration: none;
    overflow: hidden;
    animation: hero-apk-call 1.7s ease-in-out infinite;
  }

  .page-rail .hero__apk::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      transparent 28%,
      rgba(255, 255, 255, 0.85) 48%,
      transparent 68%
    );
    transform: translateX(-130%);
    animation: hero-apk-shine 2.4s ease-in-out infinite;
    pointer-events: none;
  }

  .page-rail .hero__apk img {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    animation: hero-apk-bob 1.7s ease-in-out infinite;
  }

  .page-rail .hero__apk-label {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
  }

  .page-rail > .hero.hero--has-banner {
    --phone-banner: auto;
  }

  .page-rail .hero--has-banner .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 56%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    align-items: stretch;
    justify-content: center;
  }

  .page-rail .hero--has-banner .hero__inner {
    z-index: 2;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    align-items: center;
    align-content: center;
    justify-content: start;
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-rail .hero-slider,
  .page-rail .hero--has-banner .hero-slider,
  .page-rail .hero-slider__viewport,
  .page-rail .hero-slider__link {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .page-rail .hero-slider__layer {
    justify-content: stretch;
    align-items: flex-end;
  }

  .page-rail .hero--has-banner .hero-slider__layer .hero-slider__img,
  .page-rail .hero--has-banner .hero-slider__img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    transform: none;
  }

  .page-rail .page-section__title,
  .page-rail .page-section__title--live {
    font-size: clamp(1.45rem, 6.4vw, 2rem);
    margin-bottom: 0.85rem;
  }

  .page-rail .live-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    justify-content: stretch;
  }

  .page-rail .live-card {
    width: 100%;
  }
}

@media (max-width: 900px) and (min-height: 521px) and (max-height: 720px) {
  .page-rail .hero--has-banner .hero__inner {
    flex: 0 1 auto;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    padding-top: 1.15rem;
  }

  .page-rail .hero__title {
    gap: 0.02em;
    margin-bottom: 0.28rem;
  }

  .page-rail .hero__title-line {
    font-size: 1.28rem;
    line-height: 1.08;
  }

  .page-rail .hero__desc {
    min-height: 0;
    margin-bottom: 0.45rem;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .page-rail .hero__cta-label {
    font-size: 1.15rem;
  }

  .page-rail .hero__live-btn {
    font-size: 1rem;
    padding: 0.42rem 1rem 0.42rem 1.1rem;
  }

  .page-rail .hero__apk {
    margin-top: 0.55rem;
  }

  .page-rail .hero--has-banner .hero__visual {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    align-self: stretch;
  }

  .page-rail .hero--has-banner .hero-slider__layer .hero-slider__img,
  .page-rail .hero--has-banner .hero-slider__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }
}

@media (max-width: 900px) and (max-height: 520px) {
  .page-rail .hero__title-line {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }

  .page-rail .hero__desc {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 0.7rem;
  }

  .page-rail .hero--has-banner .hero__visual {
    max-height: 46%;
  }
}

.app-dl {
  display: none;
}

@media (max-width: 900px) {
  .app-dl {
    display: block;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 90;
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.4s ease;
  }

  .app-dl.is-in {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .app-dl.is-out {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
  }

  .app-dl__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 16px 10px 8px 8px;
    border-radius: 20px 20px 0 0;
    background: #ffd3da;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    margin-bottom: -10px;
  }

  .app-dl__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #120a3a;
  }

  .app-dl__copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .app-dl__title {
    margin: 0;
    color: #161616;
    font-family: "Montserrat", "Myanmar Text", "Padauk", sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
  }

  .app-dl__text {
    margin: 2px 0 0;
    overflow: hidden;
    color: #3d3d3d;
    font-family: "Myanmar Text", "Padauk", "Noto Sans Myanmar", "Montserrat", sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    font-synthesis: none;
    letter-spacing: 0;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .app-dl__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    background: #2ecc40;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
  }

  .app-dl__btn:active {
    transform: translateY(1px);
  }

  .app-dl__close {
    position: absolute;
    top: 1px;
    right: 8px;
    z-index: 2;
    width: 24px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
  }
}
