:root {
  color-scheme: dark;
  font-family: var(--body-font, Inter, Segoe UI, Arial, sans-serif);
  background: #0b0b0d;
  color: #f4f1e8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--body-font, Inter, Segoe UI, Arial, sans-serif);
  background:
    radial-gradient(circle at 20% 18%, rgba(219, 74, 42, 0.24), transparent 30%),
    linear-gradient(135deg, #111114 0%, #1e1715 48%, #101215 100%);
}

body.site-masterelem {
  background:
    linear-gradient(180deg, rgba(1, 4, 11, 0.22) 0%, rgba(1, 4, 11, 0.7) 100%),
    linear-gradient(100deg, rgba(1, 4, 12, 0.98) 0%, rgba(4, 16, 39, 0.96) 28%, rgba(6, 42, 70, 0.88) 45%, rgba(7, 17, 36, 0.94) 58%, rgba(69, 39, 14, 0.62) 75%, rgba(4, 5, 10, 0.98) 100%),
    url("/static/masterelem/bg-flame.jpg") center / cover fixed,
    linear-gradient(135deg, #01040c 0%, #071d3c 46%, #05070d 100%);
}

a {
  color: inherit;
}

.landing {
  width: min(1180px, calc(100% - 80px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
}

.language-bar,
.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 36px;
}

.language-link,
.top-nav a {
  border: 1px solid rgba(246, 193, 91, 0.22);
  border-radius: 6px;
  padding: 8px 11px;
  background: rgba(13, 13, 15, 0.34);
  text-decoration: none;
  color: rgba(244, 241, 232, 0.76);
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.language-link:hover,
.top-nav a:hover {
  border-color: rgba(246, 193, 91, 0.72);
  background: rgba(246, 193, 91, 0.1);
  color: #fff7de;
  box-shadow: 0 0 22px rgba(246, 193, 91, 0.14), inset 0 0 14px rgba(246, 193, 91, 0.08);
}

.language-link.is-current {
  border-color: #f6c15b;
  color: #f6c15b;
  box-shadow: inset 0 0 18px rgba(246, 193, 91, 0.12);
}

.landing-grid {
  flex: 0 1 auto;
  width: 100%;
  margin: auto 0;
  padding: 20px 0 24px;
}

.landing-grid::after {
  content: "";
  display: block;
  clear: both;
}

.copy {
  max-width: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f6c15b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--display-font, Georgia, serif);
  font-size: clamp(2.2rem, 4.8vw, 4.15rem);
  font-weight: normal;
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: #fff3c7;
  text-shadow: 0 3px 20px rgba(246, 122, 61, 0.24), 0 0 38px rgba(246, 193, 91, 0.16);
}

.tagline {
  margin: 20px 0 0;
  color: #f6c15b;
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.42;
  text-shadow: 0 0 20px rgba(246, 193, 91, 0.14);
}

.summary {
  margin: 18px 0 0;
  color: rgba(244, 241, 232, 0.76);
  font-size: 1.12rem;
  line-height: 1.64;
}

.description-panel {
  max-width: none;
  margin-top: 18px;
}

.description-copy {
  color: rgba(244, 241, 232, 0.74);
  font-size: 1.04rem;
  line-height: 1.54;
}

.description-copy .summary {
  margin-top: 0;
}

.description-copy p {
  margin: 0;
}

.description-copy p + p {
  margin-top: 16px;
}

.site-masterelem .summary,
.site-masterelem .description-copy {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.62);
}

.site-masterelem .eyebrow {
  color: #9edcff;
  text-shadow: 0 0 18px rgba(90, 206, 255, 0.2);
}

.site-masterelem h1 {
  color: #fff3c7;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.68),
    0 0 26px rgba(97, 215, 255, 0.16),
    0 0 34px rgba(246, 193, 91, 0.14);
}

.site-masterelem .tagline {
  color: #d8f18b;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(116, 215, 108, 0.18);
}

.site-masterelem .language-link,
.site-masterelem .top-nav a {
  border-color: rgba(114, 209, 255, 0.25);
  background: rgba(2, 13, 28, 0.46);
}

.site-masterelem .language-link:hover,
.site-masterelem .top-nav a:hover {
  border-color: rgba(216, 241, 139, 0.74);
  background: rgba(52, 112, 88, 0.18);
  box-shadow: 0 0 22px rgba(77, 199, 255, 0.15), inset 0 0 14px rgba(216, 241, 139, 0.08);
}

.site-masterelem .language-link.is-current {
  border-color: #d8f18b;
  color: #d8f18b;
  box-shadow: inset 0 0 18px rgba(216, 241, 139, 0.12), 0 0 18px rgba(77, 199, 255, 0.1);
}

.site-masterelem .description-copy b,
.site-masterelem .summary b {
  color: #fff3c7;
  font-weight: 900;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.76),
    0 0 12px rgba(246, 193, 91, 0.2);
}

.description-extra p:first-child {
  margin-top: 16px;
}

.description-panel:not(.is-expanded) .description-extra,
.description-panel.is-expanded .description-more {
  display: none;
}

.description-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65em;
  height: 1.38em;
  border: 1px solid rgba(246, 193, 91, 0.34);
  border-radius: 5px;
  padding: 0;
  background: rgba(18, 14, 14, 0.72);
  color: #f6c15b;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  vertical-align: baseline;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.22);
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.description-toggle .material-symbols-outlined {
  font-size: 1.05em;
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 20;
  line-height: 1;
}

.description-toggle:hover {
  border-color: rgba(246, 193, 91, 0.82);
  background: rgba(246, 193, 91, 0.08);
  color: #fff3c7;
  box-shadow: 0 0 16px rgba(246, 193, 91, 0.16);
}

.site-masterelem .description-toggle {
  border-color: rgba(114, 209, 255, 0.34);
  background: rgba(2, 13, 28, 0.62);
  color: #d8f18b;
  box-shadow: 0 0 14px rgba(77, 199, 255, 0.1), inset 0 0 12px rgba(216, 241, 139, 0.04);
}

.site-masterelem .description-toggle:hover {
  border-color: rgba(216, 241, 139, 0.78);
  background: rgba(52, 112, 88, 0.2);
  color: #fff3c7;
  box-shadow: 0 0 18px rgba(77, 199, 255, 0.16), inset 0 0 14px rgba(216, 241, 139, 0.08);
}

.store-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 32px;
  width: auto;
  max-width: 100%;
  align-items: center;
}

.store-link {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border: 1px solid rgba(246, 193, 91, 0.36);
  border-radius: 8px;
  padding: 3px;
  background: linear-gradient(180deg, rgba(22, 22, 24, 0.94), rgba(3, 3, 4, 0.96));
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.28);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.store-link img {
  display: block;
  width: auto;
  height: 50px;
  max-width: 100%;
  border-radius: 5px;
}

.store-link:hover {
  border-color: rgba(246, 193, 91, 0.88);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(246, 193, 91, 0.18);
}

.site-masterelem .store-link {
  border-color: rgba(114, 209, 255, 0.32);
  background: linear-gradient(180deg, rgba(2, 18, 38, 0.94), rgba(1, 5, 13, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(158, 220, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(77, 199, 255, 0.08);
}

.site-masterelem .store-link:hover {
  border-color: rgba(216, 241, 139, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 28px rgba(0, 0, 0, 0.36),
    0 0 24px rgba(77, 199, 255, 0.18),
    0 0 18px rgba(216, 241, 139, 0.12);
}

.other-games {
  width: 100%;
  margin: 2px 0 10px;
  text-align: center;
}

.other-games h2 {
  margin: 0 0 10px;
  color: rgba(255, 243, 199, 0.86);
  font-family: var(--display-font, Georgia, serif);
  font-size: 1.18rem;
  font-weight: normal;
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(246, 193, 91, 0.12);
}

.other-games-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.other-game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(246, 193, 91, 0.28);
  border-radius: 8px;
  padding: 4px;
  background: rgba(14, 13, 15, 0.52);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.22);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.other-game-link img {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 6px;
}

.other-game-link:hover {
  border-color: rgba(246, 193, 91, 0.82);
  background: rgba(246, 193, 91, 0.08);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 26px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(246, 193, 91, 0.16);
}

.site-masterelem .other-games h2 {
  color: #d8f18b;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(77, 199, 255, 0.14);
}

.site-masterelem .other-game-link {
  border-color: rgba(114, 209, 255, 0.3);
  background: rgba(2, 13, 28, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(158, 220, 255, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.24),
    0 0 14px rgba(77, 199, 255, 0.08);
}

.site-masterelem .other-game-link:hover {
  border-color: rgba(216, 241, 139, 0.82);
  background: rgba(52, 112, 88, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 14px 26px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(77, 199, 255, 0.16),
    0 0 16px rgba(216, 241, 139, 0.1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  margin-top: 8px;
  color: rgba(244, 241, 232, 0.62);
  font-size: 1rem;
}

.footer-links > * + *::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: rgba(246, 193, 91, 0.5);
}

.footer-brand {
  color: rgba(255, 243, 199, 0.86);
  font-weight: 700;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: #f6c15b;
}

.visual {
  float: right;
  width: calc((100% - 28px) / 2);
  margin: 8px 0 20px 28px;
  padding-top: 8px;
}

.hero-slideshow {
  position: relative;
}

.hero-frame {
  display: block;
  width: 100%;
  max-height: min(74vh, 720px);
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.42));
  transition: opacity var(--hero-transition-ms, 900ms) ease-in-out;
}

.hero-frame + .hero-frame {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-frame.is-active {
  opacity: 1;
}

picture .hero-frame,
.hero-slideshow .hero-frame:first-child {
  position: relative;
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 72px;
}

.top-nav {
  justify-content: space-between;
  color: rgba(244, 241, 232, 0.7);
}

.top-nav-title {
  font-family: var(--display-font, Georgia, serif);
  color: #fff3c7;
  font-size: 1.3rem;
  line-height: 1.2;
  text-align: right;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38), 0 0 22px rgba(246, 193, 91, 0.14);
}

.site-masterelem .top-nav-title {
  color: #fff3c7;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.68),
    0 0 20px rgba(97, 215, 255, 0.14),
    0 0 24px rgba(216, 241, 139, 0.12);
}

.legal-document {
  margin-top: 72px;
}

.legal-document h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.legal-document p {
  color: rgba(244, 241, 232, 0.78);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-document h2,
.legal-document h3,
.legal-document h4 {
  color: #fff3c7;
  line-height: 1.25;
}

.legal-document h2 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.legal-document h3 {
  margin-top: 32px;
  font-size: 1.35rem;
}

.legal-document ul {
  color: rgba(244, 241, 232, 0.78);
  line-height: 1.75;
}

.legal-document li + li {
  margin-top: 6px;
}

.privacy-policy-updated {
  color: #f6c15b;
  font-weight: 600;
}

.updated {
  color: #f6c15b;
}

.legal-page .footer-links {
  margin-top: 56px;
}

@media (max-width: 820px) {
  .landing {
    width: min(620px, calc(100% - 40px));
    padding-top: 18px;
  }

  .landing-grid {
    flex: 0 0 auto;
    margin: 0;
    padding: 18px 0 14px;
    text-align: center;
  }

  .language-bar {
    justify-content: center;
    flex-wrap: wrap;
  }

  .copy {
    max-width: none;
  }

  .tagline,
  .summary,
  .description-panel,
  .description-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .store-links,
  .footer-links,
  .other-games-list {
    justify-content: center;
  }

  .store-links {
    margin-left: auto;
    margin-right: auto;
  }

  .other-games {
    margin-top: 18px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .visual {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }

  .hero-frame {
    max-height: 34vh;
  }

  .legal-page {
    padding-top: 18px;
  }

  .legal-document {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .landing {
    width: min(100% - 28px, 420px);
  }

  h1 {
    font-size: 2.15rem;
  }

  .tagline {
    font-size: 1.32rem;
  }

  .summary {
    font-size: 1.04rem;
  }

  .description-copy {
    line-height: 1.58;
  }

  .store-links {
    gap: 10px;
  }

  .store-link img {
    height: 44px;
  }

  .other-game-link {
    width: 54px;
    height: 54px;
  }

  .other-game-link img {
    width: 46px;
    height: 46px;
  }

  .legal-document {
    margin-top: 20px;
  }
}
