*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary-color: #4a6baf;
  --primary-strong: #35548f;
  --primary-soft: #eef3ff;
  --secondary-color: #f0a830;
  --background: #f4f7fb;
  --text-color: #26364a;
  --muted-color: #64748b;
  --card-color: #ffffff;
  --border-color: #e2e8f0;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --dark-color: #22324a;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --telegram-color: #0088cc;
  --discord-color: #5865f2;
  --site-width: 1180px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 8px 24px rgba(38, 54, 74, 0.08);
  --shadow-md: 0 18px 45px rgba(38, 54, 74, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--background);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dark-mode {
  --background: #141b25;
  --text-color: #f1f5f9;
  --muted-color: #b8c2d1;
  --primary-color: #244f84;
  --primary-strong: #17385f;
  --primary-soft: #1d2b3e;
  --card-color: #1d2633;
  --border-color: #334155;
  --dark-color: #10233b;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.32);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(240, 168, 48, 0.65);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.site-header,
header {
  position: relative;
  z-index: 2000;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-color));
  color: #fff;
  box-shadow: 0 8px 24px rgba(24, 47, 87, 0.16);
  padding: 14px 0;
}

header .header-content {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--site-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 22px;
}

.logo {
  flex: 0 0 auto;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

header nav a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  margin: 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-weight: 600;
  font-size: .96rem;
  transition: background-color .2s ease, color .2s ease;
}

header nav a:hover,
header nav a.is-active {
  color: #fff;
  background: rgba(255,255,255,.13);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.lang-switcher {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}

.lang-switcher button {
  min-height: 38px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 9px;
  padding: 7px 30px 7px 11px;
  color: #20324b;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%2320324b' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

.lang-switcher ul {
  min-width: 160px;
  max-height: min(390px, 70vh);
  overflow-y: auto;
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 2200;
}

.lang-switcher.open ul {
  display: block;
}

.lang-switcher li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switcher li a:hover {
  background: var(--primary-soft);
}

#theme-toggle {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0 !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  cursor: pointer;
}

main {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 30px 22px 10px;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 28px;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(37, 63, 110, .92), rgba(74, 107, 175, .83)),
    url('/runi-8.jpg') center 44% / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.13), transparent 48%);
}

.home-hero-content {
  max-width: 820px;
}

.home-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-shadow: 0 3px 22px rgba(0,0,0,.22);
}

.home-hero p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,.94);
  font-size: clamp(1.02rem, 2vw, 1.23rem);
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  margin: 0;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--secondary-color);
  color: #2c2418;
  box-shadow: 0 10px 26px rgba(240,168,48,.28);
}

.btn-secondary {
  background: #fff;
  color: #2b4779;
}

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.32);
}

.card {
  background: var(--card-color);
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.section-heading,
.card h2 {
  margin-top: 0;
  line-height: 1.2;
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.lead-text {
  color: var(--muted-color);
  font-size: 1.04rem;
}

.info-card {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.info-card h3 {
  margin-top: 26px;
}

.info-card ol {
  margin-bottom: 0;
  padding-left: 22px;
}

.info-card li + li {
  margin-top: 8px;
}

.info-card a {
  color: var(--primary-color);
  font-weight: 600;
}

#download .download-block {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 20px 28px;
}

#download .top-up {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-height: 142px;
  padding: 12px;
  background: linear-gradient(160deg, #cfa86f, #956128);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 25px rgba(107,74,30,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}

#download .top-up:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(107,74,30,.26);
}

.top-up .txt {
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
}

.top-up .per {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #dc3f42;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 800;
}

.top-up .pic img {
  display: block;
  width: 100%;
  height: auto;
}

#download .download-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px 16px;
  align-items: stretch;
}

.download-links a,
.download-links .download-dropdown {
  text-decoration: none;
}

#download .download-links a img,
.download-dropdown > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(38,54,74,.1);
}

.download-dropdown {
  position: relative;
}

.download-dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 30;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
  border-radius: 12px;
  background: var(--card-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.download-dropdown:hover .dropdown-content,
.download-dropdown:focus-within .dropdown-content {
  display: flex;
}

.download-qr {
  text-align: center;
}

.download-qr .pic {
  width: 130px;
  height: 130px;
  margin: 0 auto 6px;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(38,54,74,.09);
}

.download-qr .pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-qr .txt {
  margin: 6px 0 0;
  color: var(--muted-color);
  font-weight: 600;
}

.site-footer {
  margin-top: 48px;
  padding: 36px 22px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-color));
  color: #fff;
}

.footer-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.footer-nav a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  color: rgba(255,255,255,.72);
  font-size: .9rem;
}

body.dark-mode .lang-switcher button {
  background-color: #fff;
  color: #20324b;
}

body.dark-mode .home-hero {
  background:
    linear-gradient(135deg, rgba(18, 37, 64, .94), rgba(31, 67, 111, .88)),
    url('/runi-8.jpg') center 44% / cover no-repeat;
}

@media (max-width: 900px) {
  header .header-content {
    gap: 12px;
  }

  header nav a {
    padding-inline: 8px;
  }

  #download .download-block {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  #download .top-up {
    width: 125px;
  }

  #download .download-qr {
    display: none;
  }
}

@media (max-width: 768px) {
  header .header-content {
    flex-wrap: wrap;
    padding: 0 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  header nav,
  .header-content > .lang-switcher,
  .header-content > #theme-toggle {
    display: none;
  }

  .header-content.menu-open nav {
    display: flex;
    order: 10;
    width: 100%;
    margin: 4px 0 0;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
  }

  .header-content.menu-open nav a {
    width: 100%;
  }

  .header-content.menu-open > .lang-switcher,
  .header-content.menu-open > #theme-toggle {
    display: block;
  }

  .header-content.menu-open > .lang-switcher {
    order: 11;
    width: calc(100% - 50px);
  }

  .header-content.menu-open > .lang-switcher button {
    width: 100%;
    text-align: left;
  }

  .header-content.menu-open > #theme-toggle {
    order: 11;
  }

  main {
    padding: 18px 14px 8px;
  }

  .home-hero {
    min-height: 360px;
    padding: 58px 18px;
    margin-bottom: 20px;
    border-radius: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 330px;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
  }

  .card {
    padding: 22px 18px;
    margin-bottom: 20px;
  }

  #download .download-block {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }

  #download .top-up {
    width: 108px;
    min-height: 106px;
    padding: 8px;
  }

  #download .download-links {
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer-nav {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  #download .download-block {
    grid-template-columns: 1fr;
  }

  #download .top-up {
    width: min(170px, 100%);
    margin: 0 auto;
  }

  #download .download-links {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero h1 {
    font-size: 2.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.download-dropdown summary {
  display: block;
  list-style: none;
  cursor: pointer;
  border-radius: 10px;
}

.download-dropdown summary::-webkit-details-marker {
  display: none;
}

.download-dropdown[open] .dropdown-content {
  display: flex;
}


/* Immersive, game-themed download panel inspired by the official landing page. */
#download.download-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  border: 1px solid rgba(226, 184, 111, .62);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(18, 19, 24, .88), rgba(28, 24, 19, .74) 50%, rgba(14, 18, 21, .83)), url('/runi-8.jpg') center 48% / cover no-repeat;
  box-shadow: 0 20px 48px rgba(20, 23, 29, .22), inset 0 0 0 5px rgba(220, 179, 105, .11);
}
#download.download-card::before {
  content: ''; position: absolute; z-index: -1; inset: 9px;
  border: 1px solid rgba(238, 207, 151, .25); border-radius: 13px; pointer-events: none;
}
#download .section-heading { margin-bottom: 26px; color: #fff4dc; text-shadow: 0 2px 18px rgba(0,0,0,.65); }
#download .download-block { grid-template-columns: minmax(170px,205px) minmax(0,1fr) 150px; gap: clamp(18px,3vw,34px); }
#download .top-up {
  width: 100%; min-height: 190px; padding: 16px; border: 1px solid rgba(255,229,178,.65); border-radius: 12px;
  background: linear-gradient(145deg,rgba(204,162,94,.96),rgba(91,58,31,.97));
  box-shadow: inset 0 0 0 4px rgba(255,236,199,.15), 0 12px 28px rgba(0,0,0,.3);
}
#download .top-up .txt { max-width: 140px; margin-top: 30px; margin-bottom: 12px; color: #fff9eb; font-size: 1.05rem; line-height: 1.25; text-shadow: 0 2px 5px rgba(0,0,0,.3); }
#download .top-up .per { top: 10px; left: 10px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.65); border-radius: 5px; background: linear-gradient(#e3433d,#a9151c); box-shadow: 0 3px 9px rgba(44,10,10,.35); font-size: .82rem; }
#download .top-up .pic img { max-height: 116px; object-fit: contain; }
#download .download-links { gap: 14px 16px; }
#download .download-links > a, #download .download-dropdown > summary { display: block; border-radius: 9px; transition: transform .18s ease, filter .18s ease; }
#download .download-links > a:hover, #download .download-dropdown > summary:hover { transform: translateY(-2px); filter: brightness(1.08); }
#download .download-links a img { border: 1px solid rgba(250,220,166,.44); border-radius: 8px; box-shadow: 0 7px 18px rgba(0,0,0,.3); }
.platform-button {
  display: flex; min-height: 66px; align-items: center; gap: 14px; padding: 10px 15px;
  border: 1px solid rgba(250,220,166,.48); border-radius: 8px;
  background: linear-gradient(145deg,rgba(175,132,71,.96),rgba(103,69,37,.98));
  color: #fff8eb; box-shadow: inset 0 0 0 3px rgba(255,236,199,.1), 0 7px 18px rgba(0,0,0,.3);
  font-size: clamp(.9rem,1.4vw,1.08rem); line-height: 1.22; text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.platform-button svg { flex: 0 0 42px; width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform-button strong { display: block; font-size: 1.18em; }
#download .download-dropdown .dropdown-content { top: calc(100% + 8px); padding: 9px; border-color: rgba(230,192,126,.62); border-radius: 10px; background: rgba(22,22,24,.97); }
#download .download-dropdown .dropdown-content img { display: block; width: 100%; border-radius: 7px; }
#download .download-qr .pic { width: 142px; height: 142px; padding: 7px; border: 1px solid rgba(245,220,176,.7); border-radius: 5px; box-shadow: 0 8px 22px rgba(0,0,0,.32); }
#download .download-qr .txt { color: #fff4dc; text-shadow: 0 2px 8px rgba(0,0,0,.75); }
@media (max-width: 900px) {
  #download .download-block { grid-template-columns: 130px minmax(0,1fr) 118px; gap: 16px; }
  #download .top-up { min-height: 166px; }
  #download .download-qr { display: block; }
  #download .download-qr .pic { width: 112px; height: 112px; }
}
@media (max-width: 680px) {
  #download .download-block { grid-template-columns: 112px minmax(0,1fr); grid-template-areas: 'offer links' 'qr links'; align-items: center; gap: 14px; }
  #download .top-up { grid-area: offer; min-height: 142px; padding: 10px; }
  #download .download-links { grid-area: links; grid-template-columns: 1fr; }
  .platform-button { min-height: 58px; gap: 10px; padding: 8px 10px; font-size: .85rem; }
  .platform-button svg { flex-basis: 34px; width: 34px; height: 34px; }
  #download .download-qr { grid-area: qr; }
  #download .download-qr .pic { width: 94px; height: 94px; }
  #download .top-up .per { top: 7px; left: 7px; font-size: .68rem; }
  #download .top-up .txt { margin-top: 22px; margin-bottom: 5px; font-size: .9rem; }
  #download .top-up .pic img { max-height: 72px; }
}
@media (max-width: 430px) {
  #download .download-block { grid-template-columns: 1fr 1fr; grid-template-areas: 'offer qr' 'links links'; gap: 16px 10px; }
  #download .top-up { width: 145px; min-height: 152px; margin: 0 auto; }
  #download .download-qr .pic { width: 106px; height: 106px; }
  #download .download-links { grid-template-columns: 1fr 1fr; }
}

/* Official Viking Rise page-one download scene */
body.official-home-page { background: #110c09; overflow-x: hidden; }
body.official-home-page .site-header { position: absolute; z-index: 20; top: 0; right: 0; left: 0; color: #fff; background: rgba(0,0,0,.56); }
body.official-home-page .site-header .header-content { min-height: 52px; }
body.official-home-page main { width: 100%; max-width: none; margin: 0; padding: 0; }
body.official-home-page .official-home {
  --vr-unit: 5.208333vw;
  position: relative; isolation: isolate; width: 100vw; height: 100vh; min-height: 560px;
  margin: 0 0 36px calc(50% - 50vw); overflow: hidden; background: #170f0a; color: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif; font-size: var(--vr-unit); line-height: normal;
}
@supports (height: 100svh) { body.official-home-page .official-home { height: 100svh; } }
body.official-home-page .official-home-bg,
body.official-home-page .official-home-bg img,
body.official-home-page .official-home-bg video { position: absolute; inset: 0; width: 100%; height: 100%; }
body.official-home-page .official-home-bg { z-index: -2; }
body.official-home-page .official-home-bg img { object-fit: cover; }
body.official-home-page .official-home-bg video { z-index: 1; object-fit: cover; }
body.official-home-page .official-home-logo {
  position: absolute; z-index: 3; top: calc(var(--vr-unit) * 1); left: 50%; width: calc(var(--vr-unit) * 4.7); height: calc(var(--vr-unit) * 1.5);
  transform: translateX(-23%); background: url('https://statics-global.igg.com/assets/nc/vr/2023/official-site-v2/prod/assets/eng.png') center / contain no-repeat;
}
body.official-home-page .official-mod-download {
  position: absolute; z-index: 4; top: 52.6%; left: 50%; display: flex; align-items: center; justify-content: center;
  width: max-content; transform: translateX(-50%);
}
body.official-home-page .official-sale {
  position: relative; z-index: 2; flex: 0 0 auto; width: calc(var(--vr-unit) * 1.81); height: calc(var(--vr-unit) * 3.11);
  color: #fff; background: url('https://statics-global.igg.com/assets/nc/vr/2023/official-site-v2/prod/assets/bg-sale.png') center / cover no-repeat;
  text-align: center; text-decoration: none; animation: official-swing 1.2s ease-in-out infinite alternate;
}
@keyframes official-swing { from { transform: rotate(-.15deg); } to { transform: rotate(.15deg); } }
body.official-home-page .official-sale-title {
  display: flex; align-items: center; justify-content: center; width: 100%; height: calc(var(--vr-unit) * .91);
  overflow: hidden; padding: calc(var(--vr-unit) * .35) calc(var(--vr-unit) * .25) 0; font-size: calc(var(--vr-unit) * .16);
}
body.official-home-page .official-sale-bonus {
  position: absolute; z-index: 5; top: calc(var(--vr-unit) * .9); left: calc(var(--vr-unit) * -.15); right: calc(var(--vr-unit) * -.15);
  display: flex; align-items: center; justify-content: center; width: fit-content; min-width: calc(var(--vr-unit) * .85); min-height: calc(var(--vr-unit) * .47);
  margin: 0 auto; padding: 0 calc(var(--vr-unit) * .1) calc(var(--vr-unit) * .1); color: #fff2d0; font-size: calc(var(--vr-unit) * .2); font-weight: 700; text-align: center;
}
body.official-home-page .official-sale-bonus::before {
  position: absolute; z-index: -1; inset: 0; content: ''; border-style: solid; border-width: .01em .1em .3em;
  border-image: url('https://statics-global.igg.com/assets/nc/vr/2023/official-site-v2/prod/assets/bg-sale-per2.png') 1 10 30 fill / .01em .1em .3em stretch;
}
body.official-home-page .official-sale-pic {
  display: flex; align-items: center; justify-content: center; width: calc(var(--vr-unit) * 1.6); height: calc(var(--vr-unit) * 1.6);
  margin: calc(var(--vr-unit) * .1) auto 0;
}
body.official-home-page .official-sale-pic img { width: 100%; height: 100%; object-fit: contain; }
body.official-home-page .official-download-buttons {
  display: flex; flex-wrap: wrap; flex: 0 0 auto; width: calc(var(--vr-unit) * 4.38); margin: 0 calc(var(--vr-unit) * .15) calc(var(--vr-unit) * -.1) 0;
}
body.official-home-page .official-download-buttons > a,
body.official-home-page .official-other-platforms {
  position: relative; flex: 0 0 auto; width: calc(var(--vr-unit) * 2.04); margin: 0 0 calc(var(--vr-unit) * .1) calc(var(--vr-unit) * .15);
  transition: filter .2s ease;
}
body.official-home-page .official-download-buttons > a:hover,
body.official-home-page .official-other-platforms:hover { filter: brightness(1.2); }
body.official-home-page .official-download-buttons > a img,
body.official-home-page .official-other-button { display: block; width: 100%; cursor: pointer; }
body.official-home-page .official-other-platforms { z-index: 5; }
body.official-home-page .official-platform-popup {
  position: absolute; top: 100%; left: 0; right: 0; display: none; max-height: calc(var(--vr-unit) * 1.35); overflow: auto;
  padding: 0 calc(var(--vr-unit) * .1) calc(var(--vr-unit) * .1); background: rgba(0,0,0,.5);
}
body.official-home-page .official-other-platforms:hover .official-platform-popup,
body.official-home-page .official-other-platforms:focus-within .official-platform-popup { display: block; }
body.official-home-page .official-platform-popup a { display: block; margin-top: calc(var(--vr-unit) * .1); }
body.official-home-page .official-platform-popup img { display: block; width: 100%; }
body.official-home-page .official-qr { flex: 0 0 auto; width: calc(var(--vr-unit) * 1.32); margin-top: calc(var(--vr-unit) * .32); }
body.official-home-page .official-qr-pic { position: relative; height: calc(var(--vr-unit) * 1.32); }
body.official-home-page .official-qr-pic img { display: block; height: 100%; }
body.official-home-page .official-qr-pic::after {
  position: absolute; top: .04em; left: 0; right: 0; height: .02em; border-radius: .02em; content: '';
  background: linear-gradient(90deg,transparent,#e8bd71 20%,#e8bd71 80%,transparent); animation: official-qr-scan 2s linear infinite alternate;
}
@keyframes official-qr-scan { from { transform: translateY(0); } to { transform: translateY(calc(var(--vr-unit) * 1.2)); } }
body.official-home-page .official-qr p { min-height: calc(var(--vr-unit) * .3); margin-top: calc(var(--vr-unit) * .05); color: #fff; font-size: calc(var(--vr-unit) * .15); text-align: center; }
body.official-home-page .official-home-copyright { position: absolute; z-index: 3; bottom: 4.2%; left: max(22px, 11.7vw); color: rgba(255,255,255,.85); font-size: clamp(12px,1.2vw,18px); text-shadow: 0 1px 4px #000; }
body.official-home-page .official-home-down { position: absolute; z-index: 3; bottom: 3%; left: 50%; width: 42px; height: 34px; transform: translateX(-50%); }
body.official-home-page .official-home-down::before,
body.official-home-page .official-home-down::after { position: absolute; left: 9px; width: 22px; height: 22px; content: ''; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
body.official-home-page .official-home-down::before { top: 0; }
body.official-home-page .official-home-down::after { top: -9px; }
body.official-home-page footer.site-footer { margin-top: 0; }
@media (max-width: 767px) and (orientation: portrait) {
  body.official-home-page .official-home { --vr-unit: 8vw; min-height: 640px; }
  body.official-home-page .official-home-logo { top: calc(var(--vr-unit) * 1.7); left: .1rem; width: calc(var(--vr-unit) * 4.7); height: calc(var(--vr-unit) * 1.5); transform: none; }
  body.official-home-page .official-mod-download { top: 40%; flex-wrap: wrap; width: 94vw; }
  body.official-home-page .official-sale { width: calc(var(--vr-unit) * 1.8); height: calc(var(--vr-unit) * 3.1); }
  body.official-home-page .official-download-buttons { width: calc(var(--vr-unit) * 4.38); }
  body.official-home-page .official-qr { display: none; }
  body.official-home-page .official-home-copyright { bottom: 6%; left: 16px; font-size: 10px; }
}


/* Official Viking Rise download block, integrated into the existing homepage. */
#download.download-card {
  isolation: auto; overflow: visible; padding: clamp(20px, 3vw, 32px);
  color: inherit; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#download.download-card::before { content: none; }
#download .section-heading { margin: 0 0 22px; color: inherit; text-shadow: none; }
.official-download-module {
  --vr-unit: min(5.208333vw, 64.08px);
  display: flex; align-items: center; justify-content: center;
  width: max-content; max-width: 100%; margin: 0 auto;
  color: #fff; font-size: var(--vr-unit); line-height: 1.2;
}
.official-sale {
  position: relative; flex: 0 0 calc(var(--vr-unit) * 1.81); width: calc(var(--vr-unit) * 1.81);
  height: calc(var(--vr-unit) * 3.11); color: #fff; text-align: center; text-decoration: none;
  background: center / cover no-repeat url('https://statics-global.igg.com/assets/nc/vr/2023/official-site-v2/prod/assets/bg-sale.png');
}
.official-sale-title {
  display: flex; height: calc(var(--vr-unit) * .91); align-items: center; justify-content: center;
  overflow: hidden; padding: calc(var(--vr-unit) * .35) calc(var(--vr-unit) * .25) 0;
  font-size: calc(var(--vr-unit) * .32); line-height: 1.2;
}
.official-sale-bonus {
  position: absolute; z-index: 2; top: calc(var(--vr-unit) * .9); left: calc(var(--vr-unit) * -.15);
  display: flex; min-width: calc(var(--vr-unit) * .85); min-height: calc(var(--vr-unit) * .47);
  align-items: center; justify-content: center; padding: 0 calc(var(--vr-unit) * .1) calc(var(--vr-unit) * .1);
  font-size: calc(var(--vr-unit) * .2); font-weight: 700; color: #fff2d0; white-space: nowrap;
}
.official-sale-bonus::before {
  position: absolute; z-index: -1; inset: 0; content: ''; border-style: solid;
  border-width: calc(var(--vr-unit) * .01) calc(var(--vr-unit) * .1) calc(var(--vr-unit) * .3);
  border-image: url('https://statics-global.igg.com/assets/nc/vr/2023/official-site-v2/prod/assets/bg-sale-per2.png') 1 10 30 fill / 1 / 0 stretch;
}
.official-sale-picture { display: flex; width: calc(var(--vr-unit) * 1.6); height: calc(var(--vr-unit) * 1.6); align-items: center; justify-content: center; margin: calc(var(--vr-unit) * .1) auto 0; }
.official-sale-picture img { width: 100%; height: 100%; object-fit: contain; }
.official-download-buttons {
  display: flex; width: calc(var(--vr-unit) * 4.38); flex-wrap: wrap; margin: 0 calc(var(--vr-unit) * .15) calc(var(--vr-unit) * -.1) 0;
}
.official-download-buttons > a, .official-other-platforms {
  position: relative; width: calc(var(--vr-unit) * 2.04); margin: 0 0 calc(var(--vr-unit) * .1) calc(var(--vr-unit) * .15);
}
.official-download-buttons > a img, .official-other-button { display: block; width: 100%; cursor: pointer; }
.official-platform-popup {
  position: absolute; z-index: 5; top: 100%; right: 0; left: 0; display: none; max-height: calc(var(--vr-unit) * 1.35);
  overflow: auto; padding: 0 calc(var(--vr-unit) * .1) calc(var(--vr-unit) * .1); background: rgba(0,0,0,.5);
}
.official-other-platforms:hover .official-platform-popup, .official-other-platforms:focus-within .official-platform-popup { display: block; }
.official-platform-popup a, .official-platform-popup img { display: block; width: 100%; }
.official-platform-popup img { margin-top: calc(var(--vr-unit) * .1); }
.official-download-qr { flex: 0 0 calc(var(--vr-unit) * 1.32); width: calc(var(--vr-unit) * 1.32); margin-top: calc(var(--vr-unit) * .32); }
.official-download-qr-picture { position: relative; height: calc(var(--vr-unit) * 1.32); }
.official-download-qr-picture img { display: block; height: 100%; }
.official-download-qr-picture::after {
  position: absolute; top: calc(var(--vr-unit) * .04); right: 0; left: 0; height: calc(var(--vr-unit) * .02); content: '';
  border-radius: 2px; background: linear-gradient(to right,transparent,#e8bd71 20%,#e8bd71 80%,transparent);
  animation: official-qr-scan 2s infinite linear alternate;
}
.official-download-qr p { min-height: calc(var(--vr-unit) * .3); margin: calc(var(--vr-unit) * .05) 0 0; color: #fff; font-size: calc(var(--vr-unit) * .15); text-align: center; }
@keyframes official-qr-scan { from { transform: translateY(0); } to { transform: translateY(calc(var(--vr-unit) * 1.26)); } }
@media (max-width: 700px) {
  .official-download-module { --vr-unit: min(8vw, 48px); flex-wrap: wrap; width: 100%; row-gap: 14px; }
  .official-download-qr { display: none; }
  .official-download-buttons { width: calc(var(--vr-unit) * 4.38); }
}
@media (max-width: 480px) {
  #download.download-card { padding: 18px 10px; }
  .official-download-module { --vr-unit: min(10vw, 38px); }
  .official-download-buttons { width: calc(var(--vr-unit) * 4.38); }
}


/* Mobile download block: stack the top-up card and keep official store buttons large enough to tap. */
@media (max-width: 480px) {
  #download.download-card { padding: 18px 10px; }
  .official-download-module {
    --vr-unit: min(14vw, 55px);
    display: flex; width: 100%; max-width: 100%; flex-wrap: wrap;
    align-items: flex-start; justify-content: center; row-gap: 12px;
  }
  .official-sale { margin: 0 auto; }
  .official-download-buttons {
    flex: 0 0 calc(var(--vr-unit) * 4.38); width: calc(var(--vr-unit) * 4.38);
    max-width: 100%; margin: 0 auto;
  }
  .official-download-qr { display: none; }
}

@media (max-width: 480px) {
  .official-sale-title { text-shadow: 0 1px 3px rgba(0,0,0,.78); }
  .official-download-buttons {
    flex: 0 0 100%; width: 100%; justify-content: center;
  }
}


.mobile-smart-download { display: none; }
@media (max-width: 768px) {
  .official-download-module {
    --vr-unit: 16px;
    display: flex; width: 100%; min-height: 0; flex-wrap: nowrap;
    align-items: center; justify-content: center; margin: 0 auto;
  }
  .official-download-module > .mobile-smart-download { display: flex; }
  .official-download-module > .official-sale,
  .official-download-module > .official-download-buttons,
  .official-download-module > .official-download-qr { display: none; }
  .mobile-smart-download {
    width: min(40vw, 210px); max-width: 100%; aspect-ratio: 3.225;
    align-items: center; justify-content: center; flex: 0 1 auto;
    color: #fff; font-size: 16px; font-weight: 600; text-decoration: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.65);
    background: center / 100% 100% no-repeat url('/vr-mobile-download-button.png');
  }
}


/* Match official desktop sizing and placement; the old homepage hero remains unchanged. */
@media (min-width: 769px) {
  #download.download-card { padding: 0 clamp(20px, 3vw, 32px) 32px; }
  #download .section-heading { display: none; }
  .official-download-module { --vr-unit: 5.208333vw; }
}
.official-sale { animation: swing-s 1.2s infinite; }
@keyframes swing-s {
  20% { transform: rotate(8deg); }
  40% { transform: rotate(-6deg); }
  60% { transform: rotate(3deg); }
  80% { transform: rotate(-3deg); }
  to { transform: rotate(0); }
}

@media (min-width: 769px) {
  .official-download-buttons > a:nth-of-type(n + 3),
  .official-download-buttons > .official-other-platforms { display: none; }
}
