.visually-hidden {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.home-page {
  padding-top: 96px;
  background:
    radial-gradient(circle at 82% 8%, rgba(98, 67, 210, .14), transparent 24%),
    radial-gradient(circle at 8% 45%, rgba(28, 194, 190, .07), transparent 27%),
    #050914;
}

.home-page .section-shell {
  width: min(1480px, calc(100% - 32px));
}

.home-page .site-header {
  width: min(1480px, calc(100% - 32px));
  height: 66px;
  margin: 0;
  padding: 0 18px;
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  border-color: rgba(105, 155, 230, .17);
  border-radius: 16px;
  background: rgba(3, 7, 18, .83);
  box-shadow: 0 12px 42px rgba(0, 0, 0, .28);
}

.home-page .brand-mark {
  transform: none;
  border-color: rgba(32, 218, 216, .5);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(19, 71, 93, .5), rgba(10, 18, 45, .85));
  box-shadow: inset 0 0 16px rgba(67, 226, 211, .08), 0 0 20px rgba(67, 226, 211, .05);
}

.home-page .desktop-nav {
  gap: 9px;
}

.home-page .desktop-nav a {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border-radius: 9px;
  font-size: 12px;
  letter-spacing: .02em;
}

.home-page .desktop-nav a:hover {
  background: rgba(255, 255, 255, .035);
}

.home-page .desktop-nav svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-page .desktop-nav a.active {
  color: var(--cyan);
}

.home-page .desktop-nav a.active::after {
  position: absolute;
  bottom: 2px;
  margin: 0 0 0 18px;
}

.home-page .header-tools {
  gap: 13px;
}

.home-page .theme-button::before {
  content: "☼";
  margin-right: 7px;
  color: var(--gold);
  font-size: 13px;
}

.home-page .avatar {
  width: 38px;
  height: 38px;
  border-color: rgba(67, 226, 211, .25);
  background: linear-gradient(145deg, rgba(24, 67, 93, .62), rgba(18, 24, 57, .88));
}

.platform-hero {
  min-height: clamp(520px, 59vh, 640px);
  padding: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(117, 151, 234, .16);
  border-radius: 28px;
  background-image: url("../assets/images/home/uk-quest-hero.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
}

.platform-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, .99) 0%, rgba(3, 7, 18, .93) 31%, rgba(3, 7, 18, .45) 52%, rgba(3, 7, 18, .06) 78%),
    linear-gradient(0deg, rgba(3, 7, 18, .6), transparent 42%);
}

.platform-hero::after {
  content: "";
  width: 480px;
  height: 180px;
  position: absolute;
  right: 5%;
  bottom: -105px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(94, 78, 255, .23);
  filter: blur(80px);
}

.platform-hero-copy {
  width: min(650px, 50%);
  min-height: inherit;
  padding: clamp(44px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.platform-hero-copy > .eyebrow {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.platform-hero-copy > .eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(67, 226, 211, .48);
}

.platform-hero h1 {
  max-width: 620px;
  color: #f8faff;
  font-size: clamp(46px, 3.9vw, 64px);
  line-height: .95;
  text-wrap: balance;
  text-shadow: 0 7px 35px rgba(0, 0, 0, .45);
}

.platform-hero h1 > span,
.platform-hero h1 > em {
  display: inline-block;
  white-space: nowrap;
}

.platform-hero h1 em {
  color: transparent;
  background: linear-gradient(95deg, #29e6dc 4%, #54a8ff 52%, #a367ff 92%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
}

.platform-hero-intro {
  max-width: 505px;
  margin: 24px 0 27px;
  color: #b6bfd4;
  font-size: 16px;
  line-height: 1.65;
}

.platform-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-hero-actions .button {
  min-width: 180px;
  min-height: 47px;
  border-radius: 9px;
}

.platform-hero-actions .button-primary {
  background: linear-gradient(105deg, #2d73ed, #6957e7);
  box-shadow: 0 14px 32px rgba(56, 84, 226, .34), inset 0 1px rgba(255, 255, 255, .18);
}

.platform-hero-actions .button-ghost {
  color: #e5e9f5;
  border-color: rgba(138, 153, 204, .32);
  background: rgba(4, 8, 21, .42);
  backdrop-filter: blur(9px);
}

.platform-features {
  max-width: 570px;
  margin-top: clamp(30px, 5vh, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.platform-features > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-feature-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(155, 108, 255, .28);
  border-radius: 50%;
  color: #c476ff;
  background: rgba(80, 42, 142, .12);
  box-shadow: inset 0 0 14px rgba(155, 108, 255, .08), 0 0 13px rgba(155, 108, 255, .08);
  font-size: 15px;
}

.platform-features p {
  min-width: 0;
  margin: 0;
  display: grid;
}

.platform-features strong {
  color: #f3f6ff;
  font: 700 9px var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.platform-features small {
  overflow: hidden;
  color: #8894b0;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-route-badge {
  min-width: 230px;
  padding: 13px 16px;
  display: grid;
  gap: 2px;
  position: absolute;
  top: 28px;
  right: 28px;
  border: 1px solid rgba(120, 157, 232, .18);
  border-radius: 12px;
  background: rgba(5, 10, 25, .58);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}

.platform-route-badge span {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.platform-route-badge strong {
  color: #f4f7ff;
  font: 600 12px var(--display);
}

.platform-route-badge i {
  width: 100%;
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--cyan) 0 28%, rgba(255, 255, 255, .1) 28%);
  box-shadow: 0 0 12px rgba(67, 226, 211, .14);
}

.platform-games {
  padding: 30px 0 50px;
  scroll-margin-top: 90px;
}

.platform-section-title {
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
  align-items: center;
  gap: 14px;
}

.platform-section-title span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67, 226, 211, .25));
}

.platform-section-title span:last-child {
  transform: scaleX(-1);
}

.platform-section-title p {
  margin: 0;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.platform-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.platform-game-card {
  min-height: 355px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(119, 151, 230, .19);
  border-radius: 18px;
  background: #091126;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .2);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.platform-game-card:hover {
  z-index: 2;
  transform: translateY(-6px);
  border-color: rgba(67, 226, 211, .48);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .34), 0 0 28px rgba(67, 226, 211, .07);
}

.platform-game-card > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -3;
  object-fit: cover;
  object-position: center;
  transition: transform .55s ease, filter .35s ease;
}

.platform-game-card:hover > img {
  transform: scale(1.035);
  filter: saturate(1.08) brightness(1.04);
}

.platform-card-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, .97) 0%, rgba(3, 7, 18, .82) 41%, rgba(3, 7, 18, .18) 83%),
    linear-gradient(0deg, rgba(3, 7, 18, .95) 0%, rgba(3, 7, 18, .08) 63%);
}

.platform-card-content {
  min-height: 355px;
  padding: 21px;
  display: flex;
  flex-direction: column;
}

.platform-card-topline {
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.platform-card-topline p {
  margin: 0;
  color: var(--cyan);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.platform-card-state {
  max-width: 48%;
  overflow: hidden;
  color: #a9b5ce;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.platform-game-card h3 {
  max-width: 300px;
  margin: 28px 0 12px;
  color: white;
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: .9;
  text-transform: uppercase;
  text-shadow: 0 6px 26px rgba(0, 0, 0, .58);
}

.platform-game-card h3 em {
  color: var(--cyan);
  font-style: normal;
}

.platform-card-copy {
  max-width: 325px;
  margin: 0;
  color: #aeb8cf;
  font-size: 11px;
  line-height: 1.5;
}

.platform-card-tags {
  list-style: none;
  margin: auto 0 13px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.platform-card-tags li {
  max-width: 190px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(152, 170, 218, .16);
  border-radius: 5px;
  color: #aab4cb;
  background: rgba(5, 9, 22, .5);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.platform-card-play {
  width: min(180px, 100%);
  min-height: 39px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid rgba(67, 226, 211, .6);
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(3, 22, 30, .64);
  box-shadow: inset 0 0 16px rgba(67, 226, 211, .06), 0 0 18px rgba(67, 226, 211, .06);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.platform-card-play:hover {
  color: #041313;
  background: var(--cyan);
  transform: translateY(-2px);
}

.platform-card-play-purple {
  border-color: rgba(170, 92, 255, .65);
  color: #c379ff;
  background: rgba(26, 8, 48, .66);
}

.platform-card-play-purple:hover {
  color: white;
  background: #7e45dc;
}

.home-page .site-footer {
  margin-top: 20px;
}

:root[data-theme="light"] .home-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(98, 67, 210, .1), transparent 24%),
    #eef3fb;
}

:root[data-theme="light"] .home-page .site-header {
  border-color: rgba(48, 74, 124, .16);
  background: rgba(255, 255, 255, .9);
}

:root[data-theme="light"] .platform-section-title span {
  background: linear-gradient(90deg, transparent, rgba(7, 143, 137, .28));
}

@media (max-width: 1180px) {
  .platform-hero-copy {
    width: 58%;
  }

  .platform-route-badge {
    display: none;
  }

  .platform-features {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 1050px) {
  .home-page .desktop-nav {
    display: flex;
  }

  .home-page .header-tools {
    margin-left: auto;
  }

  .home-page .theme-button,
  .home-page .sound-button {
    display: none;
  }

  .platform-game-grid {
    grid-template-columns: 1fr 1fr;
  }

  .platform-game-card-road {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .home-page {
    padding-top: 82px;
  }

  .home-page .section-shell,
  .home-page .site-header {
    width: calc(100% - 20px);
  }

  .home-page .site-header {
    height: 62px;
    top: 10px;
    padding: 0 12px;
  }

  .home-page .desktop-nav {
    margin-left: auto;
    gap: 2px;
  }

  .home-page .desktop-nav a {
    min-height: 38px;
    padding: 0 9px;
    font-size: 0;
  }

  .home-page .desktop-nav svg {
    width: 18px;
    height: 18px;
  }

  .home-page .desktop-nav a.active::after {
    margin-left: 1px;
  }

  .home-page .header-tools {
    margin-left: 0;
    padding-left: 8px;
  }

  .platform-hero {
    min-height: 610px;
    border-radius: 22px;
    background-position: 64% center;
  }

  .platform-hero::before {
    background:
      linear-gradient(90deg, rgba(3, 7, 18, .97), rgba(3, 7, 18, .63) 75%, rgba(3, 7, 18, .28)),
      linear-gradient(0deg, rgba(3, 7, 18, .88), rgba(3, 7, 18, .08) 70%);
  }

  .platform-hero-copy {
    width: 100%;
    min-height: 610px;
    padding: 38px 28px 30px;
    justify-content: flex-end;
  }

  .platform-hero h1 {
    font-size: clamp(40px, 10vw, 56px);
  }

  .platform-hero-intro {
    max-width: 460px;
    font-size: 14px;
  }

  .platform-features {
    max-width: 430px;
    margin-top: 28px;
  }

  .platform-games {
    padding-top: 24px;
  }
}

@media (max-width: 620px) {
  .home-page .brand > span:last-child {
    display: none;
  }

  .platform-hero-actions .button {
    min-width: 0;
    flex: 1 1 170px;
  }

  .platform-game-grid {
    grid-template-columns: 1fr;
  }

  .platform-game-card-road {
    grid-column: auto;
  }

  .platform-game-card,
  .platform-card-content {
    min-height: 365px;
  }

  .platform-game-card h3 {
    font-size: 37px;
  }
}

@media (max-width: 430px) {
  .home-page .avatar {
    display: none;
  }

  .home-page .header-tools {
    border-left: 0;
  }

  .platform-hero {
    min-height: 640px;
  }

  .platform-hero-copy {
    min-height: 640px;
    padding: 34px 20px 24px;
  }

  .platform-hero h1 {
    font-size: clamp(32px, 10vw, 39px);
  }

  .platform-hero-actions .button {
    width: 100%;
    flex-basis: 100%;
  }

  .platform-features {
    grid-template-columns: 1fr 1fr;
  }

  .platform-section-title {
    gap: 9px;
  }

  .platform-game-card,
  .platform-card-content {
    min-height: 350px;
  }
}
