:root {
  --bg: #080d11;
  --accent: #fde69b;
  --accent-soft: rgba(253, 230, 155, 0.15);
  --gold: var(--accent);
  --gold-soft: var(--accent-soft);
  --text: #cccccc;
  --text-soft: #e0e0e0;
  --text-muted: #808080;
  --text-black: #000000;

  --panel: rgba(23, 27, 29, 0.75);
  --panel-border: rgba(40, 40, 40, 0.75);
  --badge: rgba(36, 41, 44, 0.75);
  --badge-border: rgba(102, 102, 102, 0.75);
  --overlay: rgba(0, 0, 0, 0.1);

  --radius-sm: 10px;
  --radius-md: 15px;

  --font-display: "Cinzel", "Trajan Pro 3", "Trajan Pro", serif;
  --font-body: "Inter", system-ui, sans-serif;

  --page-pad-x: clamp(16px, 3.3vw, 63px);
  --page-pad-y: clamp(16px, 2.2vw, 40px);
  --content-max: min(1794px, calc(100vw - (var(--page-pad-x) * 2)));
  --header-pad-left: 21px;
  --header-gap: clamp(20px, 3.1vw, 60px);
  --header-h: 67px;
  --modal-gap: 40px;
  --modal-bottom: clamp(72px, 9.25vh, 100px);
  --modal-top: calc(
    env(safe-area-inset-top, 0px) + var(--page-pad-y) + var(--header-h) + var(--modal-gap)
  );
  --modal-max-h: calc(100dvh - var(--modal-top) - var(--modal-bottom));
  --nav-gap: clamp(16px, 2.1vw, 40px);
  --hero-gap: clamp(24px, 2.8vw, 40px);
  --cards-gap: clamp(12px, 1.7vw, 33px);
  --cards-top: clamp(32px, 8vh, 153px);

  --logo-size: clamp(18px, 1.25vw, 28px);
  --nav-size: clamp(14px, 0.85vw, 18px);
  --title-size: clamp(34px, 3.35vw, 72px);
  --title-tracking: clamp(0.12em, 0.22em, 0.22em);
  --subtitle-size: clamp(13px, 0.75vw, 16px);
  --card-title-size: clamp(18px, 1.25vw, 28px);
  --card-text-size: clamp(13px, 0.75vw, 16px);
  --ornament-h: 0px;

  --win: #36abf8;
  --android: #81c263;
  --mac: #fde69b;
  --tiktok: #ff808b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

*:focus,
*:focus-visible {
  outline: none !important;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  outline: none;
}

a,
button,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: clip;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

a,
button,
input,
textarea,
.btn {
  -webkit-user-select: text;
  user-select: text;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
}

@media (min-width: 901px) {
  .page {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .main {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: space-between;
    padding-bottom: clamp(12px, 2.2vh, 40px);
  }

  .hero {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: clamp(8px, 2.4vh, 48px);
    justify-content: center;
  }

  .cards {
    margin-top: clamp(12px, 3.5vh, 64px);
  }

  .footer {
    padding-bottom: clamp(10px, 1.8vh, 24px);
  }
}

.page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.page__bg-art {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 56.25vw; 
  min-height: 100%;
  min-width: 177.7778vh; 
  transform: translate(-50%, -50%);
}

.page__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page__chars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
  contain: strict;
}

.page__chars--back {
  z-index: 40;
}

.page__chars--front {
  z-index: 55;
}

.page__bg-char {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  object-fit: contain;
  object-position: center top;
  max-width: none;
  opacity: 0;
  backface-visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.page__bg-char.is-placed {
  opacity: 1;
  transition: none;
}

.page__bg-char--alisa {
  object-position: center top;
}

.page__bg-char--alex {
  object-position: right bottom;
}

.page__bg-char--vlad {
  object-position: center bottom;
}

.page__bg-dim {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 4;
}

.page__bg-fade-img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 22%;
  object-fit: cover;
  object-position: bottom center;
  pointer-events: none;
  z-index: 5;
}

.page__bg-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(
    180deg,
    rgba(8, 13, 17, 0) 0%,
    rgba(8, 13, 17, 0.55) 45%,
    rgba(8, 13, 17, 0.92) 78%,
    #080d11 100%
  );
  z-index: 6;
  pointer-events: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080d11;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.9s;
}

body.is-ready .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loading .page__bg-art,
body.is-loading .main,
body.is-loading .header,
body.is-loading .footer {
  opacity: 0;
}

body.is-loading .page__bg-art {
  filter: blur(16px);
  transform: translate(-50%, -50%) scale(1.03);
}

.page__bg-art {
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    filter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

body.is-loading .header,
body.is-loading .footer {
  transition: none;
}

body.is-ready .page__bg-art {
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

body.is-ready .header,
body.is-ready .main,
body.is-ready .footer {
  opacity: 1;
}

.main,
.header,
.footer,
.mobile-menu {
  position: relative;
  z-index: 1;
}

.header,
.footer {
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page__bg-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.modal-fade {
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.is-modal-open .modal-fade {
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(0.995);
  pointer-events: none;
}

body.is-modal-open .page__chars,
body.is-modal-open .page__bg-char {
  opacity: 0 !important;
  pointer-events: none;
}


body.is-modal-open {
  overflow: hidden;
}

body.is-modal-open .page {
  overflow: hidden;
}

body.is-modal-open .header {
  z-index: 110;
  pointer-events: auto;
}

body.is-modal-open .footer {
  z-index: 110;
  pointer-events: none;
}

body.is-modal-open .footer__link {
  pointer-events: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: clamp(13px, 0.75vw, 15px);
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  transition:
    filter 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn--gold,
.btn--accent {
  padding: clamp(9px, 0.7vw, 12px) clamp(20px, 1.6vw, 34px);
  background: var(--accent);
  color: var(--text-black);
  box-shadow: 0 0 0 rgba(253, 230, 155, 0);
  border: none;
  cursor: pointer;
}

.btn--wide {
  width: min(100%, 204px);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  gap: 12px;
  padding: 8px 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.btn__icon--20 {
  width: 20px;
  height: 20px;
}

.card__btn .btn__icon {
  transition: none;
}

.card__btn:hover .btn__icon,
.card__btn:focus-visible .btn__icon {
  filter: brightness(0) saturate(100%) invert(90%) sepia(28%) saturate(650%)
    hue-rotate(358deg) brightness(104%) contrast(96%);
}

@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover,
  .btn--accent:hover {
    filter: brightness(1.07);
    box-shadow: 0 0 24px rgba(253, 230, 155, 0.4);
  }

  .btn--gold:active,
  .btn--accent:active {
    filter: brightness(0.97);
    box-shadow: 0 0 10px rgba(253, 230, 155, 0.25);
  }

  .btn--ghost:hover {
    border-color: rgba(253, 230, 155, 0.55);
    background: rgba(253, 230, 155, 0.1);
    color: #fff1c2;
  }

  .btn--ghost:active {
    background: rgba(253, 230, 155, 0.16);
  }

}

@media (hover: none), (pointer: coarse) {
  .btn {
    transition:
      transform 0.2s ease,
      filter 0.2s ease,
      box-shadow 0.2s ease,
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease;
  }

  .btn:active {
    transform: scale(0.97);
    filter: brightness(1.05);
  }

  .btn--gold:active,
  .btn--accent:active {
    box-shadow: 0 0 18px rgba(253, 230, 155, 0.35);
  }

  .btn--ghost:active {
    border-color: rgba(253, 230, 155, 0.45);
    background: rgba(253, 230, 155, 0.1);
    color: #fff1c2;
  }

}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn__icon,
  .burger,
  .burger__lines span,
  .mobile-menu,
  .mobile-menu__backdrop,
  .mobile-menu__link,
  .hero__cta-bob,
  .hero__download,
  .page__bg-art,
  .header,
  .main,
  .footer {
    transition: none !important;
    animation: none !important;
  }

  .btn:hover,
  .btn:active {
    transform: none;
    filter: none;
  }
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--content-max);
  margin: var(--page-pad-y) auto 0;
  padding: 14px 14px 14px var(--header-pad-left);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  flex-shrink: 0;
  z-index: 50;
}

.header__left {
  display: flex;
  align-items: center;
  gap: var(--header-gap);
  min-width: 0;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.logo__mark {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 22px;
  color: var(--text);
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.nav__link,
.nav__btn {
  font-family: var(--font-body);
  font-size: var(--nav-size);
  font-weight: 400;
  line-height: normal;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__btn:hover {
  color: var(--accent);
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(253, 230, 155, 0.22);
  background:
    linear-gradient(180deg, rgba(36, 41, 44, 0.92), rgba(18, 22, 24, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease,
    transform 0.28s ease;
}

.burger:hover {
  border-color: rgba(253, 230, 155, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 18px rgba(253, 230, 155, 0.16);
  transform: translateY(-1px);
}

.burger__lines {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 5px;
}

.burger__lines span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    width 0.28s ease,
    background 0.28s ease;
}

.burger__lines span:nth-child(2) {
  width: 14px;
  justify-self: end;
}

.burger:hover .burger__lines span:nth-child(2) {
  width: 18px;
}

.mobile-menu,
.mobile-menu__backdrop {
  display: none;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  padding: 0 var(--page-pad-x) clamp(56px, 6vh, 78px);
  min-height: 0;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 560px);
  margin-top: clamp(24px, 5vh, 78px);
  flex: 1 1 auto;
  justify-content: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(100%, 476px);
}

.hero__content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: -1;
  width: min(100%, 640px);
  height: min(320px, 48vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.28) 42%,
    rgba(0, 0, 0, 0) 72%
  );
  pointer-events: none;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--title-size);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: var(--title-tracking);
  color: #ffffff;
  text-indent: var(--title-tracking);
  text-align: center;
  white-space: nowrap;
}

.hero__subtitle {
  margin-top: 4px;
  font-size: var(--subtitle-size);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--text-soft);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 204px);
}

.hero__cta-bob {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero__download {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__download::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translate(48%, 48%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__download > * {
  position: relative;
  z-index: 2;
}

@keyframes hero-btn-shine {
  0% {
    transform: translate(48%, 48%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translate(-48%, -48%);
    opacity: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero__download:hover::after {
    animation: hero-btn-shine 0.65s ease;
  }
}

.hero__version {
  font-size: clamp(10px, 0.55vw, 12px);
  line-height: normal;
  text-align: center;
  color: var(--text-soft);
  min-height: 1.2em;
}

.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  width: auto;
  margin-top: var(--hero-gap);
}

.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 8px 20px 8px 10px;
  background: var(--badge);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
}

.badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.badge__icon img {
  width: 16px;
  height: 20px;
  max-width: none;
  object-fit: contain;
}

.badge__icon--community img {
  width: 20px;
  height: 18px;
}

.badge__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 179px;
  flex-shrink: 0;
}

.badge__text h2 {
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: var(--text);
}

.badge__text p {
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--cards-gap);
  width: var(--content-max);
  margin-top: var(--cards-top);
  flex-shrink: 0;
}

.card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: start;
  align-content: start;
  row-gap: 0;
  height: 100%;
  min-height: 194px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
}

.card__label {
  margin: 0 0 18px;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold);
  white-space: nowrap;
}

.card__title {
  margin: 0 0 6px;
  width: 100%;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__desc {
  margin: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  min-height: calc(20px * 2);
  color: var(--text-muted);
}

.card__desc--pets {
  min-height: calc(20px * 2);
}

.card__btn {
  margin-top: 16px;
  justify-self: start;
  align-self: start;
  width: auto;
  max-width: max-content;
  height: auto;
}

.footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--content-max);
  margin: 0 auto;
  padding: 0 0 clamp(16px, 2vh, 30px);
  flex-shrink: 0;
}

.footer__copy {
  justify-self: start;
  font-size: clamp(12px, 0.75vw, 14px);
  line-height: normal;
  color: var(--text-muted);
}

.footer__link {
  justify-self: center;
  grid-column: 2;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: clamp(12px, 0.75vw, 14px);
  line-height: normal;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.footer__link:hover {
  color: var(--text);
}

@media (min-width: 2200px) {
  :root {
    --content-max: min(2100px, calc(100vw - 120px));
    --title-size: clamp(64px, 2.8vw, 80px);
    --card-title-size: 28px;
    --cards-top: clamp(60px, 7vh, 140px);
  }
}

@media (min-width: 3000px) {
  :root {
    --content-max: min(2400px, calc(100vw - 160px));
    --title-size: 84px;
    --logo-size: 30px;
    --nav-size: 18px;
  }
}

@media (max-height: 1000px) and (min-width: 901px) {
  :root {
    --page-pad-y: clamp(10px, 2vh, 28px);
    --header-h: 50px;
    --modal-gap: 24px;
    --modal-bottom: clamp(56px, 7vh, 80px);
    --ornament-h: clamp(88px, 14vh, 160px);
    --title-size: clamp(40px, 5.2vh, 64px);
    --cards-top: clamp(12px, 3vh, 48px);
  }

  .modal--rules {
    padding: 56px 24px 70px;
  }

  .modal--media {
    padding: 56px 24px 70px;
  }

  .rules-body {
    margin-top: 28px;
    height: auto;
    max-height: min(360px, 42vh);
  }

  .rules-footer-wrap {
    margin-top: 28px;
  }

  .media-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(
      calc(
        2 * ((var(--media-body-w) - var(--media-rail) - 2 * var(--media-gap)) / 3) *
          (236 / 454) + var(--media-gap) - 2px
      ),
      48vh
    );
  }

  .header {
    margin-top: var(--page-pad-y);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero__content {
    gap: clamp(10px, 1.6vh, 18px);
    margin-top: calc(var(--ornament-h) * -0.22);
  }

  .hero__content::before {
    height: min(260px, 36vh);
  }

  .hero__badges {
    margin-top: clamp(14px, 2.4vh, 28px);
  }

  .card {
    min-height: 0;
    padding: clamp(14px, 2vh, 22px);
  }

  .card__label {
    margin-bottom: clamp(10px, 1.4vh, 16px);
  }

  .card__title {
    font-size: clamp(18px, 2.4vh, 24px);
  }

  .card__desc {
    min-height: calc(18px * 2);
    line-height: 18px;
    font-size: 13px;
  }

  .card__btn {
    margin-top: clamp(10px, 1.4vh, 14px);
  }
}

@media (max-height: 1000px) and (min-width: 901px) {
  :root {
    --ornament-h: clamp(70px, 11vh, 120px);
    --title-size: clamp(36px, 4.8vh, 56px);
  }

  .hero__subtitle {
    font-size: 13px;
  }

  .badge {
    padding: 6px 16px 6px 8px;
  }

  .badge__text h2 {
    font-size: 13px;
  }

  .badge__text p {
    font-size: 11px;
  }
}

@media (max-height: 920px) and (min-width: 901px) {
  :root {
    --ornament-h: clamp(0px, 9vh, 96px);
    --title-size: clamp(34px, 4.4vh, 48px);
  }

  .hero__content {
    margin-top: calc(var(--ornament-h) * -0.15);
    gap: 10px;
  }

  .hero__badges {
    margin-top: 12px;
    gap: 16px;
  }

  .cards {
    margin-top: 12px;
  }

  .card__desc {
    font-size: 12px;
    line-height: 16px;
    min-height: calc(16px * 2);
  }
}

@media (max-height: 860px) and (min-width: 901px) {
  .hero__content {
    margin-top: 0;
  }

  .hero {
    margin-top: 8px;
  }

  .hero__badges {
    margin-top: 10px;
  }

  .cards {
    margin-top: 10px;
  }

  .card {
    padding: 12px 16px;
  }

  .card__label {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .card__title {
    font-size: 18px;
    margin-bottom: 4px;
  }
}

@media (max-width: 1700px) and (min-width: 901px) and (max-height: 1100px) {
  :root {
    --content-max: min(1600px, calc(100vw - 64px));
  }
}

@media (max-width: 1500px) and (min-width: 901px) and (max-height: 1100px) {
  :root {
    --content-max: min(1360px, calc(100vw - 48px));
    --title-tracking: 0.16em;
  }

  .hero__title {
    text-indent: 0.16em;
  }
}

@media (max-width: 1600px) and (min-width: 1101px) {
  .card {
    padding: 22px;
  }

  .card__label {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .card__title {
    font-size: 22px;
  }

  .card__desc {
    font-size: 13px;
    line-height: 18px;
    min-height: calc(18px * 2);
  }
}

@media (max-width: 1400px) {
  :root {
    --cards-top: clamp(40px, 6vh, 100px);
  }
}

@media (max-width: 1100px) {
  :root {
    --content-max: calc(100vw - 48px);
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .card {
    min-height: 194px;
  }

  .card__title {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  :root {
    --content-max: calc(100% - 32px);
    --page-pad-x: 16px;
    --header-h: 68px;
    --modal-gap: 12px;
    --modal-bottom: clamp(16px, 3vh, 28px);
  }

  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .header {
    width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
    padding: 12px 14px;
  }

  .mobile-menu__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    width: min(320px, 86vw);
    height: 100dvh;
    max-width: 100%;
    padding: 96px 24px 32px;
    background:
      linear-gradient(180deg, rgba(18, 22, 24, 0.98), rgba(8, 13, 17, 0.98));
    border-left: 1px solid rgba(253, 230, 155, 0.16);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.38s;
  }

  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-menu__link {
    position: relative;
    padding: 14px 14px;
    border-radius: 12px;
    font-size: 16px;
    color: var(--text);
    border: 1px solid transparent;
    transition:
      background 0.25s ease,
      color 0.25s ease,
      border-color 0.25s ease,
      transform 0.25s ease,
      padding-left 0.25s ease;
  }

  .mobile-menu__link:hover,
  .mobile-menu__link:focus-visible {
    background: rgba(253, 230, 155, 0.08);
    border-color: rgba(253, 230, 155, 0.18);
    color: var(--accent);
    transform: translateX(2px);
    padding-left: 18px;
  }

  .nav-toggle:checked ~ .mobile-menu {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .nav-toggle:checked ~ .mobile-menu__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle:checked ~ .header {
    z-index: 70;
  }

  .nav-toggle:checked ~ .header .burger {
    border-color: rgba(253, 230, 155, 0.55);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 18px rgba(253, 230, 155, 0.16);
  }

  .nav-toggle:checked ~ .header .burger__lines span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle:checked ~ .header .burger__lines span:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .nav-toggle:checked ~ .header .burger__lines span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .page {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .main {
    width: var(--content-max);
    margin: 0 auto;
    padding: 0 0 32px;
    align-items: center;
    flex: 1 1 auto;
    min-height: 0;
  }

  .hero {
    width: 100%;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    flex: 1 1 auto;
    min-height: calc(100dvh - 140px);
    justify-content: center;
    align-items: center;
    padding: 24px 0 32px;
  }

  .hero__content {
    width: 100%;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title {
    white-space: normal;
    text-indent: 0.08em;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .hero__badges {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }

  .badge {
    width: 100%;
    flex: 0 0 auto;
  }

  .badge__text {
    width: auto;
    flex: 1 1 auto;
  }

  .cards {
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    width: 100%;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
    text-align: center;
    width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 20px;
  }

  .footer__copy,
  .footer__link {
    justify-self: center;
    grid-column: auto;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 600px) {
  :root {
    --content-max: calc(100% - 32px);
    --page-pad-x: 16px;
    --page-pad-y: 12px;
    --header-h: 66px;
    --modal-gap: 10px;
    --title-size: clamp(28px, 10vw, 40px);
    --title-tracking: 0.08em;
  }

  .page__bg-image {
    object-position: center center;
  }

  .page__bg-dim {
    background: rgba(0, 0, 0, 0.28);
  }

  .header {
    width: var(--content-max);
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 12px;
  }

  .logo {
    font-size: 18px;
  }

  .main {
    width: var(--content-max);
    margin: 0 auto;
    padding: 0 0 24px;
  }

  .hero {
    margin-top: 0;
    min-height: calc(100dvh - 120px);
    padding: 20px 0 28px;
  }

  .hero__content {
    margin-top: 0;
    gap: 16px;
  }

  .hero__title {
    text-indent: 0.08em;
    letter-spacing: 0.08em;
  }

  .hero__subtitle {
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
  }

  .btn--wide {
    width: 100%;
  }

  .hero__cta {
    width: min(100%, 240px);
    margin-left: auto;
    margin-right: auto;
  }

  .card {
    padding: 20px;
    min-height: 0;
  }

  .card__label {
    margin-bottom: 14px;
  }

  .card__title {
    font-size: 20px;
    white-space: normal;
  }

  .footer {
    width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 26px;
    letter-spacing: 0.08em;
  }

  .btn span {
    font-size: 13px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero__content {
    margin-top: 0;
  }

  .hero__badges {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: 16px;
  }

  .badge {
    flex: 0 0 auto;
    width: auto;
  }

  .badge__text {
    width: 160px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
  }

  .card {
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding: 14px;
  }

  .card__desc {
    display: none;
  }

  .card__btn {
    margin-top: 12px;
  }
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--modal-top) clamp(12px, 2vw, 32px) var(--modal-bottom);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.22s;
  overflow: hidden;
}

.modal-layer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.modal-layer[hidden] {
  display: none !important;
}

.modal-layer.is-open[hidden] {
  display: flex !important;
}

.modal-layer__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-layer.is-open .modal-layer__backdrop {
  opacity: 1;
}

.modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(1152px, 100%);
  height: min(660px, var(--modal-max-h));
  max-height: var(--modal-max-h);
  overflow: hidden;
  padding: 69px;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  transform: translate3d(0, 10px, 0) scale(0.99);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: auto;
}

.modal-layer.is-open .modal {
  transform: translate3d(0, 0, 0) scale(1);
}

.modal-layer:not(.is-open) .modal {
  pointer-events: none;
}

.modal--media,
.modal--rules {
  width: min(1480px, calc(100vw - 80px));
  max-height: var(--modal-max-h);
  overflow: hidden;
}

.modal--rules {
  height: min(833px, var(--modal-max-h));
  padding: 69px 30px 70px;
}

.modal--media {
  container-type: inline-size;
  container-name: media-modal;
  height: min(833px, var(--modal-max-h));
  min-height: 0;
  padding: 69px 30px 70px;
}

.modal--legal {
  width: min(1200px, calc(100vw - 80px));
  height: min(720px, var(--modal-max-h));
  max-height: var(--modal-max-h);
  padding: 48px 36px 36px;
}

.modal--guide-ios {
  width: min(1480px, 100%);
  height: min(780px, var(--modal-max-h));
  max-height: var(--modal-max-h);
  padding: 48px 30px 36px;
}

.modal--guide {
  width: min(1480px, 100%);
  height: auto;
  max-height: var(--modal-max-h);
  padding: 48px 80px 36px;
  overflow: hidden;
}


.guide-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 41px;
  margin-top: 36px;
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.guide-step {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 239px;
  height: 242px;
  padding: 0;
  border: 1px solid rgba(40, 40, 40, 0.75);
  border-radius: 11px;
  overflow: hidden;
  background: #12161a;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.guide-step--1 {
  width: 239px;
}

.guide-step--2 {
  width: 284px;
}

.guide-step--3 {
  width: 230px;
}

.guide-step--4 {
  width: 265px;
}

.guide-step > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.guide-step:hover > img,
.guide-step:focus-visible > img {
  opacity: 1;
  transform: scale(1.03);
}

.guide-step__zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  z-index: 1;
  pointer-events: none;
}

.guide-step__zoom img {
  display: block;
  width: 36px;
  height: 36px;
  opacity: 1;
  transform: none;
  object-fit: contain;
}

.guide-flow__arrow {
  width: 18px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 66px;
  margin-top: 36px;
  padding: 14px 16px 14px 30px;
  background: rgba(253, 230, 155, 0.15);
  border: 1px solid rgba(253, 230, 155, 0.75);
  border-radius: 10px;
  box-sizing: border-box;
}

.guide-footer__text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #fde69b;
  text-align: left;
  white-space: nowrap;
}

.guide-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 38px;
  padding: 10px 30px;
  border: none;
  border-radius: 10px;
  background: #fde69b;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.guide-footer__btn img {
  width: 6px;
  height: 10px;
  object-fit: contain;
  transform: none;
}

.guide-footer__btn:hover {
  filter: brightness(1.05);
}

@media (max-width: 1400px) and (min-width: 901px) {
  .modal--guide {
    padding: 56px 40px 36px;
  }

  .guide-flow {
    gap: 20px;
  }

  .guide-step,
  .guide-step--1,
  .guide-step--2,
  .guide-step--3,
  .guide-step--4 {
    width: auto;
    height: min(220px, 22vw);
    aspect-ratio: auto;
  }

  .guide-step--1 {
    width: min(218px, 18vw);
  }

  .guide-step--2 {
    width: min(258px, 21vw);
  }

  .guide-step--3 {
    width: min(210px, 17vw);
  }

  .guide-step--4 {
    width: min(242px, 20vw);
  }
}

.modal__close {
  position: absolute;
  top: 19px;
  right: 19px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal__close:hover {
  opacity: 1;
  transform: scale(1.05);
}

.modal__close img {
  width: 40px;
  height: 40px;
}

.modal__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: normal;
  text-align: center;
  color: var(--text);
  flex-shrink: 0;
}

.modal__ornament {
  display: block;
  width: min(340px, 70%);
  height: 16px;
  margin: 14px auto 0;
  object-fit: contain;
  flex-shrink: 0;
}

.modal__subtitle {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  color: var(--text);
  flex-shrink: 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-sm);
}

.platform--win {
  background: rgba(54, 171, 248, 0.05);
  border: 1px solid rgba(54, 171, 248, 0.15);
}

.platform--android {
  background: rgba(129, 194, 99, 0.05);
  border: 1px solid rgba(129, 194, 99, 0.15);
}

.platform--mac {
  background: rgba(253, 230, 155, 0.05);
  border: 1px solid rgba(253, 230, 155, 0.15);
}

.platform--ios {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.platform--tiktok {
  background: rgba(255, 128, 139, 0.05);
  border: 1px solid rgba(255, 128, 139, 0.15);
}

.platform__head {
  display: flex;
  align-items: center;
  gap: 19px;
}

.platform__badge {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  flex: 0 0 60px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.platform__badge--circle {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  padding: 0;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  object-fit: none;
}

.platform__badge--purple {
  background: rgba(253, 230, 155, 0.15);
  border: 1px solid #fde69b;
}

.platform__badge--purple img {
  width: 30px;
  height: 30px;
  max-width: none;
  display: block;
  object-fit: contain;
}

.platform__badge--green {
  background: rgba(129, 194, 99, 0.15);
  border: 1px solid #81c263;
}

.platform__badge-img--support {
  width: 24px !important;
  height: 30px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  aspect-ratio: 24 / 30;
  flex-shrink: 0;
  display: block;
}

.platform__support-icon {
  width: 16px !important;
  height: 20px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  aspect-ratio: 24 / 30;
  flex-shrink: 0;
}

.platform__meta {
  min-width: 0;
}

.platform__name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}

.platform__name img {
  width: auto;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.platform__meta p {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.35;
  color: #c4c4c4;
}

.platform--mac .platform__name img {
  width: 21px;
  height: 24px;
}

.platform__actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.platform__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  min-height: 66px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.platform__btn span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.platform__btn strong {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.platform__btn small {
  font-size: 14px;
  font-weight: 400;
  color: #c4c4c4;
}

.platform__btn img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.platform__btn img.platform__doc,
.platform__btn img[src*="doc-"] {
  width: 12px;
  height: 16px;
}

.platform__btn--wide {
  width: 100%;
}

.platform__btn--win {
  background: rgba(54, 171, 248, 0.15);
  border: 1px solid rgba(54, 171, 248, 0.75);
  color: var(--win);
}

.platform__btn--android {
  background: rgba(129, 194, 99, 0.15);
  border: 1px solid rgba(129, 194, 99, 0.75);
  color: var(--android);
}

.platform__btn--mac {
  background: rgba(253, 230, 155, 0.15);
  border: 1px solid rgba(253, 230, 155, 0.75);
  color: var(--mac);
}

.platform__btn--ios {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

.platform__btn--tiktok {
  background: rgba(255, 56, 74, 0.15);
  border: 1px solid rgba(255, 128, 139, 0.75);
  color: var(--tiktok);
}

@media (hover: hover) and (pointer: fine) {
  .platform__btn:hover {
    filter: brightness(1.12);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
  }
}

.modal--media .modal__title,
.modal--media .modal__ornament,
.modal--media .media-toolbar {
  flex-shrink: 0;
}

.media-toolbar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(100%, 1422px);
  margin: 18px auto 0;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 40px;
  padding-right: 24px;
}

.media-toolbar__text {
  margin: 0;
  text-align: center;
  line-height: normal;
}

.media-sort {
  position: absolute;
  right: 24px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  z-index: 1;
}

.media-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.media-sort__btn:hover {
  border-color: rgba(253, 230, 155, 0.45);
}

.media-sort__label,
#media-sort-label {
  display: inline-block;
  min-width: 3.4em;
  text-align: left;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.media-sort__chevron {
  width: 10px;
  height: 6px;
  object-fit: contain;
  transform: rotate(-90deg);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-sort__btn.is-oldest .media-sort__chevron {
  transform: rotate(90deg);
}

.media-body {
  --media-gap: 14px;
  --media-rail: 20px;
  --media-body-w: min(100cqw, 1422px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px;
  column-gap: 10px;
  align-items: stretch;
  width: min(100%, 1422px);
  margin: 18px auto 0;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: calc(
    2 * ((var(--media-body-w) - var(--media-rail) - 2 * var(--media-gap)) / 3) *
      (236 / 454) + var(--media-gap) - 2px
  );
  overflow: hidden;
  box-sizing: border-box;
}

.media-scroll {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.media-scroll::-webkit-scrollbar {
  display: none;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--media-gap, 14px);
  width: 100%;
}

.media-card {
  position: relative;
  width: 100%;
  aspect-ratio: 454 / 236;
  border-radius: 14px;
  border: 1px solid rgba(40, 40, 40, 0.75);
  overflow: hidden;
  background: #12161a;
  cursor: pointer;
}

.media-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.media-card:hover > img {
  opacity: 1;
  transform: scale(1.03);
}

.media-card__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  transition: none;
  transform: none;
}

.media-card__zoom img {
  display: block;
  width: 44px;
  height: 44px;
  opacity: 1;
  transform: none;
  object-fit: contain;
}

.media-scrollbar {
  display: flex;
  justify-content: center;
  align-items: stretch;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.media-scrollbar__track {
  position: relative;
  box-sizing: border-box;
  width: 10px;
  height: 100%;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid rgba(40, 40, 40, 0.75);
  border-radius: 10px;
  overflow: hidden;
}

.media-scrollbar__thumb {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 4px;
  height: 100px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 10px;
  transition: top 0.08s linear;
  will-change: top;
}

.rules-intro {
  margin: 18px auto 0;
  max-width: 720px;
  text-align: center;
  line-height: normal;
  flex-shrink: 0;
}

.rules-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px;
  column-gap: 18px;
  align-items: stretch;
  width: min(100%, 1318px);
  margin: 50px auto 0;
  flex: 0 0 auto;
  height: min(402px, 100%);
  max-height: 402px;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.rules-scroll {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.rules-scroll::-webkit-scrollbar {
  display: none;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.rule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 66px;
  padding: 14px 30px;
  border-radius: 10px;
  box-sizing: border-box;
}

.rule-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.rule-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.rule-card__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.rule-card__note {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.95;
}

.rule-card__badge {
  flex-shrink: 0;
  align-self: center;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rule-card--ban {
  background: rgba(255, 56, 74, 0.15);
  border: 1px solid rgba(255, 128, 139, 0.75);
  color: #ff808b;
}

.rule-card--ban .rule-card__desc,
.rule-card--ban .rule-card__note {
  color: rgba(255, 128, 139, 0.75);
}

.rule-card--ban .rule-card__badge {
  background: rgba(255, 56, 74, 0.15);
  border: 1px solid rgba(255, 128, 139, 0.75);
  color: #ff808b;
}

.rule-card--mute,
.rule-card--mixed {
  background: rgba(255, 140, 90, 0.14);
  border: 1px solid rgba(255, 168, 120, 0.75);
  color: #ffb08a;
}

.rule-card--mute .rule-card__desc,
.rule-card--mute .rule-card__note,
.rule-card--mixed .rule-card__desc,
.rule-card--mixed .rule-card__note {
  color: rgba(255, 176, 138, 0.8);
}

.rule-card--mute .rule-card__badge,
.rule-card--mixed .rule-card__badge {
  background: rgba(255, 140, 90, 0.14);
  border: 1px solid rgba(255, 168, 120, 0.75);
  color: #ffb08a;
}

.rules-scrollbar {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.rules-scrollbar__track {
  position: relative;
  box-sizing: border-box;
  width: 10px;
  height: 100%;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid rgba(40, 40, 40, 0.75);
  border-radius: 10px;
}

.modal--legal {
  align-items: center;
}

.modal--legal > .modal__title,
.modal--legal > .modal__ornament,
.modal--legal > .legal-tabs {
  flex-shrink: 0;
}

.legal-tabs {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 22px;
  padding: 13.5px;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid rgba(40, 40, 40, 0.75);
  border-radius: 10px;
}

.legal-tabs__pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 240px;
  height: 38px;
  border-radius: 10px;
  background: #fde69b;
  box-shadow: 0 0 18px rgba(253, 230, 155, 0.28);
  pointer-events: none;
  transform: translate(13.5px, 13.5px);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
}

.legal-tabs__pill.is-instant {
  transition: none !important;
}

.legal-tabs__btn {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 10px 30px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #ccc;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.28s ease;
}

.legal-tabs__btn.is-active {
  color: #000;
  cursor: default;
}

.legal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px;
  column-gap: 18px;
  width: 100%;
  margin: 22px auto 0;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
}

.legal-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid rgba(40, 40, 40, 0.75);
  border-radius: 15px;
  box-sizing: border-box;
}

.legal-scroll::-webkit-scrollbar {
  display: none;
}

.legal-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 22px 28px 28px;
  box-sizing: border-box;
}

.legal-panel.is-active {
  display: flex;
}

.legal-panel__intro {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(204, 204, 204, 0.75);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-section__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #ccc;
}

.legal-section__text,
.legal-section p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(204, 204, 204, 0.75);
}

.legal-section strong {
  font-weight: 500;
  color: #ccc;
}

.legal-section p + p {
  margin-top: 6px;
}

.legal-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-list li {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(204, 204, 204, 0.75);
}

.legal-scrollbar {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.legal-scrollbar__track {
  position: relative;
  box-sizing: border-box;
  width: 10px;
  height: 100%;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid rgba(40, 40, 40, 0.75);
  border-radius: 10px;
}

.legal-scrollbar__thumb {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 4px;
  height: 100px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 10px;
  transition: top 0.08s linear;
}

.rules-scrollbar__thumb {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 4px;
  height: 100px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 10px;
  transition: top 0.08s linear;
}

.rules-footer-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px;
  column-gap: 18px;
  width: min(100%, 1318px);
  margin: 50px auto 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.rules-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 14px 16px 14px 30px;
  background: rgba(253, 230, 155, 0.15);
  border: 1px solid rgba(253, 230, 155, 0.75);
  border-radius: 10px;
  box-sizing: border-box;
}

.rules-footer__text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fde69b;
}

.rules-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 38px;
  padding: 10px 30px;
  border: none;
  border-radius: 10px;
  background: #fde69b;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.rules-footer__btn img {
  width: 6px;
  height: 10px;
  object-fit: contain;
  transform: none;
}

.rules-footer__btn:hover {
  filter: brightness(1.05);
}

.modal--guide-ios {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 69px 80px 48px;
}

.modal--guide-ios > .modal__title,
.modal--guide-ios > .modal__ornament {
  flex-shrink: 0;
}

.gios-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.gios-panel.is-active {
  display: flex;
}

.gios-panel[hidden] {
  display: none !important;
}

.gios-note {
  margin: 18px auto 0;
  max-width: 820px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: #ccc;
  flex-shrink: 0;
}

.gios-note__warn {
  color: #ff384a;
}

.gios-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px;
  column-gap: 18px;
  align-items: stretch;
  width: min(100%, 1290px);
  margin: 28px auto 0;
  flex: 1 1 auto;
  min-height: 0;
  height: min(402px, 100%);
  max-height: 402px;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}

.gios-scroll {
  min-width: 0;
  min-height: 0;
  height: min(402px, 100%);
  max-height: 402px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.gios-scroll::-webkit-scrollbar {
  display: none;
}

.gios-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gios-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
  min-height: 66px;
  max-height: 66px;
  padding: 14px 30px;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid rgba(23, 27, 29, 0.75);
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.gios-card__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.gios-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gios-card__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(204, 204, 204, 0.75);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.gios-card__desc--strong {
  font-weight: 500;
  color: #ccc;
}

.gios-card__desc a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gios-card__desc a:hover {
  color: #ccc;
}

.gios-shots {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(204, 204, 204, 0.75);
  border-radius: 10px;
  background: rgba(23, 27, 29, 0.75);
  color: #ccc;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .gios-shots:hover {
    border-color: rgba(253, 230, 155, 0.55);
    background: rgba(253, 230, 155, 0.1);
    color: #fff1c2;
  }
}

.gios-scrollbar {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.gios-scrollbar__track {
  position: relative;
  box-sizing: border-box;
  width: 10px;
  height: 100%;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid rgba(40, 40, 40, 0.75);
  border-radius: 10px;
}

.gios-direct-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
  margin: 36px auto 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.gios-direct-step {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 180px;
  height: 390px;
  padding: 0;
  border: 1px solid rgba(40, 40, 40, 0.75);
  border-radius: 11px;
  overflow: hidden;
  background: #12161a;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.gios-direct-step > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.gios-direct-step:hover > img,
.gios-direct-step:focus-visible > img {
  opacity: 1;
  transform: scale(1.02);
}

.gios-direct-step .guide-step__zoom {
  right: 8px;
  bottom: 8px;
}

.gios-scrollbar__thumb {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 4px;
  height: 100px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 10px;
  transition: top 0.08s linear;
}

.gios-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1290px);
  margin: 28px auto 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  padding: 0;
}

.gios-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1 1 auto;
  min-height: 66px;
  padding: 14px 16px 14px 30px;
  background: rgba(253, 230, 155, 0.15);
  border: 1px solid rgba(253, 230, 155, 0.75);
  border-radius: 10px;
  box-sizing: border-box;
}

.gios-support__text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fde69b;
}

.gios-support__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 38px;
  padding: 10px 30px;
  border: none;
  border-radius: 10px;
  background: #fde69b;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.gios-support__btn img {
  width: 6px;
  height: 10px;
  object-fit: contain;
  transform: none;
}

.gios-support__btn:hover {
  filter: brightness(1.05);
}

.gios-tabs {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 13.5px;
  background: rgba(23, 27, 29, 0.75);
  border: 1px solid rgba(40, 40, 40, 0.75);
  border-radius: 10px;
}

.gios-tabs__pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 199px;
  height: 38px;
  border-radius: 10px;
  background: #fde69b;
  box-shadow: 0 0 18px rgba(253, 230, 155, 0.28);
  pointer-events: none;
  transform: translate(13.5px, 13.5px);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
}

.gios-tabs__pill.is-instant {
  transition: none !important;
}

.gios-tabs__btn {
  position: relative;
  z-index: 1;
  width: 199px;
  min-height: 38px;
  padding: 10px 30px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #ccc;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 0.28s ease;
}

.gios-tabs__btn.is-active {
  background: transparent;
  color: #000;
  cursor: default;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.35s;
}

.lightbox.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox.is-open[hidden] {
  display: flex !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox.is-open .lightbox__backdrop {
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox__frame {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1600px);
  max-height: min(92vh, 1400px);
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  background: #12161a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 24px 80px rgba(0, 0, 0, 0.55);
  line-height: 0;
  isolation: isolate;
  opacity: 0;
  transform: scale(0.94);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.lightbox.is-open .lightbox__frame {
  opacity: 1;
  transform: scale(1);
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1600px);
  max-height: min(92vh, 1400px);
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  opacity: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.lightbox__frame.is-guide {
  max-width: min(96vw, 1200px);
  max-height: min(92vh, 1200px);
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.lightbox__frame.is-guide .lightbox__img {
  width: auto;
  height: auto;
  max-width: min(96vw, 1200px);
  max-height: min(92vh, 1200px);
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 24px 80px rgba(0, 0, 0, 0.55);
}

.lightbox__frame.is-hidden {
  display: none;
}

.lightbox__strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(96vw, 1800px);
  max-width: 96vw;
  max-height: min(92vh, 1400px);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.lightbox__strip[hidden] {
  display: none !important;
}

.lightbox.is-open .lightbox__strip:not([hidden]) {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.lightbox__strip-img {
  display: block;
  flex: 1 1 0;
  width: auto;
  height: auto;
  min-width: 0;
  max-width: calc((96vw - 20px) / 2);
  max-height: min(88vh, 1200px);
  object-fit: contain;
  border-radius: 15px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 24px 80px rgba(0, 0, 0, 0.55);
  background: #12161a;
}

.lightbox.is-open .lightbox__close {
  opacity: 1;
}

.mobile-menu__link {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

@media (max-width: 1100px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-body {
    height: calc(
      2 * ((var(--media-body-w) - var(--media-rail) - var(--media-gap)) / 2) *
        (236 / 454) + var(--media-gap) - 2px
    );
  }
}

@media (max-width: 900px) {
  .page__chars,
  .page__bg-char {
    display: none !important;
  }

  .page__bg-art {
    min-height: 100%;
  }

  .page {
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .modal-layer {
    inset: 0;
    padding: var(--modal-top) 12px var(--modal-bottom);
    align-items: center;
    overflow: hidden;
  }

  .modal-layer__backdrop {
    position: absolute;
    inset: 0;
  }

  #modal-rules.modal-layer,
  #modal-community.modal-layer,
  #modal-media.modal-layer {
    align-items: stretch;
  }

  .modal,
  .modal--media,
  .modal--rules,
  .modal--community,
  .modal--legal,
  .modal--guide,
  .modal--guide-ios {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--modal-top) - var(--modal-bottom) - 8px);
    min-height: 0;
    margin: 0;
    padding: 52px 16px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal--rules,
  .modal--community {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    max-height: none;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .modal--community .platform-grid {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal--legal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--modal-top) - var(--modal-bottom) - 8px);
    padding: 48px 14px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .modal--legal .modal__title {
    max-width: 100%;
    padding: 0 32px;
    font-size: 18px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .modal--legal .modal__ornament {
    max-width: min(100%, 280px);
    height: auto;
  }

  .legal-tabs {
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    margin-top: 16px;
    padding: 8px;
    box-sizing: border-box;
  }

  .legal-tabs__btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 10px 8px;
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  .legal-body {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    margin-top: 14px;
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .legal-scroll {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: min(48vh, 380px);
    -webkit-overflow-scrolling: touch;
  }

  .legal-panel {
    width: 100%;
    max-width: 100%;
    padding: 14px 14px 18px;
    box-sizing: border-box;
  }

  .legal-panel__intro,
  .legal-section__title,
  .legal-section__text,
  .legal-section p,
  .legal-list li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .legal-list {
    padding-left: 16px;
  }

  .legal-scrollbar {
    display: none;
  }

  .modal--guide-ios {
    padding: 52px 14px 18px;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  .gios-panel.is-active {
    overflow: visible;
  }

  .gios-body {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 20px;
    height: min(48vh, 360px);
    max-height: min(48vh, 360px);
    overflow: hidden;
  }

  .gios-scroll {
    height: min(48vh, 360px);
    max-height: min(48vh, 360px);
  }

  .gios-scrollbar {
    display: none;
  }

  .gios-list {
    gap: 12px;
  }

  .gios-card {
    height: auto;
    min-height: 0;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
    overflow: visible;
  }

  .gios-card__text {
    gap: 4px;
  }

  .gios-card__title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .gios-card__desc {
    display: block;
    white-space: normal;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
  }

  .gios-shots {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 10px 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .gios-direct-flow {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 14px;
    margin-top: 20px;
    overflow: visible;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 0;
  }

  .gios-direct-step {
    width: min(220px, 62vw);
    height: min(476px, 52vh);
  }

  .gios-direct-flow .guide-flow__arrow {
    width: 18px;
    height: 12px;
    transform: rotate(90deg);
  }

  .gios-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
  }

  .gios-support {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .gios-support__btn {
    width: 100%;
  }

  .gios-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .gios-tabs__btn {
    flex: 1 1 0;
    width: auto;
    padding: 10px 12px;
  }

  .lightbox__strip {
    flex-direction: column;
    width: min(96vw, 100%);
    max-width: 96vw;
    max-height: min(92vh, 100%);
    gap: 12px;
  }

  .lightbox__strip-img {
    flex: 0 1 auto;
    width: auto;
    max-width: min(96vw, 100%);
    max-height: calc((92vh - 12px) / 2);
  }

  .modal--guide {
    padding: 52px 14px 18px;
    overflow: hidden;
  }

  .guide-flow {
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    overflow: hidden;
  }

  .guide-step,
  .guide-step--1,
  .guide-step--2,
  .guide-step--3,
  .guide-step--4 {
    width: auto;
    height: 120px;
    flex: 1 1 0;
    min-width: 0;
  }

  .guide-step__zoom {
    width: 28px;
    height: 28px;
    right: 4px;
    bottom: 4px;
  }

  .guide-step__zoom img {
    width: 28px;
    height: 28px;
  }

  .guide-flow__arrow {
    width: 12px;
    height: 20px;
  }

  .guide-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 20px;
    padding: 14px;
    text-align: center;
  }

  .guide-footer__text {
    text-align: center;
    white-space: normal;
  }

  .guide-footer__btn {
    width: 100%;
  }

  .guide-footer__btn img,
  .gios-support__btn img,
  .rules-footer__btn img {
    transform: none;
  }

  .modal__title {
    font-size: 22px;
    padding-right: 0;
  }

  .modal__subtitle {
    font-size: 13px;
  }

  .modal__close {
    top: 4px;
    right: 6px;
    width: 36px;
    height: 36px;
    z-index: 2;
  }

  .modal__close img {
    width: 32px;
    height: 32px;
  }

  .platform-grid {
    margin-top: 20px;
    gap: 12px;
  }

  .platform {
    padding: 16px;
  }

  .platform__head {
    gap: 14px;
  }

  .platform__actions {
    flex-direction: column;
  }

  .platform__btn {
    width: 100%;
    min-height: 56px;
    padding: 12px 18px;
  }

  .media-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-height: 0;
    width: 100%;
  }

  .media-toolbar__text {
    text-align: center;
    font-size: 13px;
  }

  .media-sort {
    position: static;
    justify-content: center;
    flex-wrap: wrap;
  }

  .media-body {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    column-gap: 0;
    margin-top: 16px;
  }

  .media-toolbar {
    width: 100%;
    padding-right: 0;
  }

  .media-scroll {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .media-scrollbar {
    display: none;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .media-card {
    border-radius: 12px;
    aspect-ratio: 16 / 9;
  }

  .modal--media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 52px 16px 24px;
    height: 100%;
    max-height: calc(100dvh - var(--modal-top) - var(--modal-bottom) - 8px);
    min-height: 0;
    overflow: hidden;
  }

  .rules-body {
    width: 100%;
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    grid-template-columns: 1fr;
    column-gap: 0;
    margin-top: 16px;
  }

  .rules-footer-wrap {
    width: 100%;
    flex-shrink: 0;
  }

  .rules-scroll {
    height: 100%;
    max-height: none;
    min-height: 0;
  }

  .rules-scrollbar {
    display: none;
  }

  .rule-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .rule-card__badge {
    align-self: flex-end;
  }

  .rules-footer-wrap {
    grid-template-columns: 1fr;
    column-gap: 0;
    margin-top: 16px;
  }

  .rules-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px;
    text-align: center;
  }

  .rules-footer__btn {
    width: 100%;
  }

  .media-toolbar {
    padding-right: 0;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__frame {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 12px;
  }

  .lightbox__img {
    max-width: 100%;
    max-height: 78vh;
  }

  .hero__cta {
    width: min(100%, 240px);
  }

  .btn--wide,
  .hero__download {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .modal,
  .modal--media,
  .modal--rules,
  .modal--legal,
  .modal--guide-ios {
    padding: 48px 14px 20px;
    border-radius: 12px;
  }

  .modal--guide {
    padding: 48px 12px 16px;
  }

  .lightbox__frame.is-guide {
    max-width: 100%;
    max-height: 82vh;
  }

  .lightbox__frame.is-guide .lightbox__img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 82vh;
  }

  .platform__meta p br {
    display: none;
  }

  .platform--mac .platform__meta p {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main,
  .modal-layer,
  .modal,
  .lightbox,
  .lightbox__frame,
  .guide-step > img,
  .gios-tabs__pill,
  .legal-tabs__pill {
    transition: none !important;
  }

  .guide-step:hover > img,
  .guide-step:focus-visible > img {
    transform: none;
  }

  body.is-modal-open .main {
    transform: none;
    filter: none;
  }
}
