﻿:root {
  --bg: #faf6f0;
  --surface: #fffdf8;
  --surface-2: #f3ecdf;
  --text: #2c2416;
  --muted: #6b5d4d;
  --primary: #1e4d8c;
  --primary-strong: #163b6d;
  --gold: #c4922a;
  --gold-strong: #a77c22;
  --green: #5a7247;
  --border: #e0d6c8;
  --shadow: 0 10px 24px rgba(44, 36, 22, 0.08);
  --hero-section-height: clamp(240px, 42vh, 420px);

  /* Unified background config (Page -> File)
     home(index.html)        -> home-hero.jpg
     game(game.html)         -> game-hero.jpg
     news(news.html)         -> news-hero.jpg
     team(team.html)         -> team-hero.jpg
     download(download.html) -> download-hero.jpg
     contact(contact.html)   -> contact-hero.jpg
     Note: file missing = auto fallback to gradient-only style.
  */
  --hero-home-bg: url("../images/backgrounds/home-hero.jpg");
  --hero-game-bg: url("../images/backgrounds/game-hero.jpg");
  --hero-news-bg: url("../images/backgrounds/news-hero.jpg");
  --hero-team-bg: url("../images/backgrounds/team-hero.jpg");
  --hero-download-bg: url("../images/backgrounds/download-hero.jpg");
  --hero-contact-bg: url("../images/backgrounds/contact-hero.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--primary);
  color: #fff;
}

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 22px;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  border-radius: 10px;
  min-width: 52px;
  height: 40px;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-toggle:hover {
  background: var(--primary);
  color: #fff;
}

body.is-rtl .hero,
body.is-rtl .card,
body.is-rtl .title,
body.is-rtl .site-footer {
  text-align: right;
}

body.is-rtl .footer-bottom {
  direction: rtl;
}

.hero {
  position: relative;
  color: #fff;
  min-height: var(--hero-section-height);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--primary) 0%, #2d629e 45%, #f8f3ea 100%);
}

body[data-page="home"] .hero {
  background:
    linear-gradient(180deg, rgba(30, 77, 140, 0.34) 0%, rgba(45, 98, 158, 0.26) 45%, rgba(248, 243, 234, 0.18) 100%),
    linear-gradient(120deg, rgba(9, 23, 44, 0.52) 8%, rgba(20, 44, 82, 0.42) 58%, rgba(36, 23, 16, 0.3) 100%),
    var(--hero-home-bg) center/cover no-repeat;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
}

.hero p {
  margin: 18px 0 28px;
  max-width: 600px;
  font-size: clamp(16px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold-strong);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #fff;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.title {
  text-align: center;
  margin-bottom: 34px;
}

.title h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4.5vw, 42px);
  color: var(--primary);
}

.title p {
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--muted);
}

.product-card {
  overflow: hidden;
  padding: 0;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(44, 36, 22, 0.12);
  border-color: rgba(30, 77, 140, 0.3);
}

.product-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  transition: transform 0.35s ease;
}

.product-card:hover .product-media {
  transform: scale(1.04);
}

.product-body {
  padding: 16px 16px 18px;
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.product-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.product-tag.tag-2d {
  color: var(--primary);
  background: rgba(30, 77, 140, 0.12);
}

.product-tag.tag-3d {
  color: var(--gold-strong);
  background: rgba(196, 146, 42, 0.18);
}

.product-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.game-feature-card,
.game-mode-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.game-feature-card:hover,
.game-mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(44, 36, 22, 0.14);
}

.game-feature-card {
  position: relative;
  border: 1px solid rgba(30, 77, 140, 0.2);
  background: linear-gradient(160deg, #fffdf8 0%, #f6eee0 100%);
}

.game-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c4922a 0%, #1e4d8c 50%, #c4922a 100%);
  z-index: 2;
}

.game-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.game-card-media.mode {
  aspect-ratio: 2 / 1;
}

.game-card-body {
  padding: 16px;
}

.game-card-body h3 {
  margin: 0 0 8px;
}

.game-card-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.game-chip {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(30, 77, 140, 0.12);
  color: var(--primary);
}

.game-feature-card .list li {
  margin-bottom: 6px;
}

.game-feature-card .list li::marker {
  color: #c4922a;
}

.game-mode-card {
  position: relative;
  border: 1px solid rgba(14, 34, 63, 0.45);
  background: linear-gradient(160deg, #0f223f 0%, #1c3966 52%, #132b4f 100%);
  color: #f5ebd8;
}

.game-mode-card .game-card-media.mode {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  filter: saturate(1.05) brightness(0.88);
}

.game-mode-card .game-card-body h3 {
  color: #f7e7c4;
}

.game-mode-card .game-card-body p {
  color: rgba(245, 235, 216, 0.86);
}

.game-mode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-mode-meta span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(212, 168, 83, 0.24);
  color: #f8e4b3;
  border: 1px solid rgba(248, 228, 179, 0.32);
}

.feature-carousel-wrap {
  position: relative;
  padding: 6px 0 8px;
  max-width: 1240px;
  margin: 0 auto;
}

.feature-coverflow .coverflow-stage {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.coverflow-card {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 340px;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(6, 14, 30, 0.28);
  transform: translateX(-50%);
  transition: transform 0.62s ease, opacity 0.62s ease, filter 0.62s ease, z-index 0.62s ease;
  cursor: pointer;
}

.coverflow-card img {
  width: 100%;
  object-fit: cover;
}

.coverflow-card.is-center {
  box-shadow: 0 24px 48px rgba(6, 14, 30, 0.38);
}

.coverflow-card.is-far {
  filter: grayscale(0.12);
}

.feature-carousel-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(30, 77, 140, 0.25);
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.carousel-btn:hover {
  background: #f1ede6;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(30, 77, 140, 0.3);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 22px;
  background: linear-gradient(90deg, #1e4d8c, #c4922a);
}

.team-page .team-hero {
  position: relative;
  padding: 62px 0;
  min-height: var(--hero-section-height);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--primary) 0%, #2d629e 45%, #f8f3ea 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

body.team-page .team-hero {
  background:
    linear-gradient(180deg, rgba(30, 77, 140, 0.32) 0%, rgba(45, 98, 158, 0.24) 45%, rgba(248, 243, 234, 0.16) 100%),
    linear-gradient(120deg, rgba(16, 37, 70, 0.6) 10%, rgba(46, 90, 138, 0.5) 55%, rgba(167, 124, 34, 0.26) 100%),
    var(--hero-team-bg) center/cover no-repeat;
}

.team-eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.76);
}

.team-hero-stats {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.team-hero-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #fff;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.profile-main h3,
.profile-side h3 {
  margin-top: 0;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.profile-side {
  background: linear-gradient(170deg, #fffdf8 0%, #f7efdf 100%);
}

.metric-item + .metric-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(44, 36, 22, 0.18);
}

.metric-item strong {
  display: block;
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 4px;
}

.metric-item span {
  color: var(--muted);
  font-size: 14px;
}

.team-values .value-card {
  position: relative;
  border-top: 3px solid rgba(30, 77, 140, 0.15);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.team-values .value-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--gold);
  box-shadow: 0 14px 28px rgba(44, 36, 22, 0.1);
}

.value-index {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
}

.team-news-cta-wrap {
  padding-top: 36px;
}

.team-news-cta {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  border: 1px solid rgba(196, 146, 42, 0.35);
  background:
    linear-gradient(155deg, rgba(255, 253, 248, 0.96) 0%, rgba(245, 236, 221, 0.92) 100%);
  box-shadow: 0 16px 36px rgba(44, 36, 22, 0.12);
}

.team-news-cta-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.team-news-cta h2 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 40px);
}

.team-news-cta p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
}

.team-news-cta-btn {
  margin-top: 18px;
  background: linear-gradient(135deg, #1e4d8c 0%, #2f65a8 55%, #c4922a 100%);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(30, 77, 140, 0.28);
}

.team-news-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(30, 77, 140, 0.34);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat {
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 34px;
  color: var(--primary);
}

.news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-strip-link {
  display: block;
}

.news-strip {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.news-strip-link:hover .news-strip {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(44, 36, 22, 0.12);
}

.news-strip-thumb {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.news-strip-body h3 {
  margin: 0 0 8px;
}

.news-strip-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.news-card-link {
  display: block;
}

.news-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.news-card-link:hover .news-card {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(44, 36, 22, 0.14);
}

.news-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.news-card-body {
  padding: 16px;
}

.news-card-body h3 {
  margin: 0 0 8px;
}

.news-card-body p {
  margin: 0 0 8px;
}

.news-card-meta {
  font-size: 13px;
  color: var(--muted);
}

.news-detail {
  overflow: hidden;
  padding: 0;
}

.news-detail-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.news-detail-body {
  padding: clamp(18px, 3.2vw, 30px);
}

.news-detail-body h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary);
}

.news-detail-body p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.news-back-btn {
  margin-top: 10px;
  background: linear-gradient(135deg, #1e4d8c 0%, #2f65a8 100%);
  color: #fff;
}

.news-back-btn:hover {
  transform: translateY(-1px);
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-platform-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 77, 140, 0.16);
  background: linear-gradient(170deg, #fffdf8 0%, #f7f0e4 100%);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.download-platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e4d8c 0%, #c4922a 100%);
}

.download-platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(44, 36, 22, 0.16);
}

.download-platform-card.featured {
  border-color: rgba(196, 146, 42, 0.34);
  box-shadow: 0 12px 28px rgba(196, 146, 42, 0.2);
}

.download-card-head {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.download-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(30, 77, 140, 0.1);
}

.download-size {
  font-size: 12px;
  color: var(--muted);
}

.download-icon-wrap {
  margin: 14px 0 10px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(150deg, rgba(30, 77, 140, 0.14) 0%, rgba(196, 146, 42, 0.18) 100%);
}

.download-platform-card h3 {
  margin: 0 0 8px;
}

.download-platform-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.download-points {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
}

.download-points li {
  margin-bottom: 6px;
}

.download-points li::marker {
  color: #c4922a;
}

.download-card-btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #1e4d8c 0%, #2f65a8 58%, #c4922a 100%);
  color: #fff;
}

.download-card-btn:hover {
  transform: translateY(-1px);
}

.download-coming-note {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.download-platforms.app-style {
  gap: 20px;
}

.download-app-card {
  position: relative;
  padding: 16px 16px 18px;
  text-align: center;
  border-radius: 26px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 34px rgba(30, 30, 30, 0.2);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.download-app-card.android {
  background: linear-gradient(180deg, #4fcf7b 0%, #31b56a 56%, #73de9a 100%);
}

.download-app-card.ios {
  background: linear-gradient(180deg, #dfe3ea 0%, #c5ccd8 48%, #eef2f7 100%);
}

.download-app-card.windows {
  background: linear-gradient(180deg, #3aa2f4 0%, #1d84df 56%, #69bcff 100%);
}

.download-app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

.download-app-card::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.download-app-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 48px rgba(30, 30, 30, 0.28);
  filter: saturate(1.08);
}

.download-app-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.platform-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.download-app-card.ios .platform-tag {
  color: #3f4d64;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(63, 77, 100, 0.2);
}

.app-icon-shell {
  width: 146px;
  height: 146px;
  margin: 14px auto 16px;
  border-radius: 30px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16);
  position: relative;
  z-index: 1;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.platform-logo {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 241, 232, 0.94) 100%);
  fill: #1e4d8c;
  box-shadow: inset 0 0 0 1px rgba(30, 77, 140, 0.1);
}

.android-logo {
  fill: #3ddc84;
}

.ios-logo {
  fill: #2f6ab8;
}

.windows-logo {
  fill: #1e88e5;
}

.download-app-card:hover .app-icon-shell {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.download-app-card h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.download-app-card .app-size {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 700;
}

.download-app-btn {
  width: 78%;
  margin: 0 auto;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  color: #8a5f17;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.download-app-btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

.download-app-card.android .download-app-btn {
  color: #1f6b41;
}

.download-app-card.ios h3 {
  color: #364055;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.35);
}

.download-app-card.ios .app-size {
  color: #4c5d78;
}

.download-app-card.ios .download-app-btn {
  color: #3a4b63;
  border-color: rgba(58, 75, 99, 0.2);
}

.download-app-card.windows .download-app-btn {
  color: #1a5c9f;
}

.download-modal .modal-content {
  width: min(1120px, 96%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.download-modal .modal-platforms {
  margin-top: 2px;
  gap: 14px;
}

.download-modal .modal-platforms .download-app-card {
  border-radius: 22px;
  padding: 12px 12px 14px;
}

.download-modal .modal-platforms .app-icon-shell {
  width: 104px;
  height: 104px;
  margin: 10px auto 12px;
  border-radius: 22px;
}

.download-modal .modal-platforms .platform-logo {
  border-radius: 16px;
  padding: 18px;
}

.download-modal .modal-platforms .download-app-card h3 {
  font-size: 28px;
  margin-bottom: 2px;
}

.download-modal .modal-platforms .app-size {
  margin-bottom: 10px;
}

.download-modal .modal-platforms .download-app-btn {
  width: 86%;
}

.download-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  padding-bottom: 8px;
}

.news-article-page {
  background: #f4efe5;
}

.news-article-hero {
  position: relative;
  min-height: min(70vh, 700px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.news-article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 13, 28, 0.2) 10%, rgba(8, 18, 34, 0.7) 62%, rgba(8, 18, 34, 0.92) 100%);
}

.news-article-hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, 92%);
  margin: 0 auto;
  padding: 0 0 clamp(20px, 5vh, 48px);
}

.news-article-hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.news-article-hero-content .news-card-meta {
  color: rgba(255, 255, 255, 0.88);
}

.article-book-wrap {
  width: min(980px, 92%);
  margin: clamp(-56px, -8vh, -24px) auto 48px;
}

.article-book {
  background: linear-gradient(165deg, #fffdf8 0%, #f8f1e4 100%);
  border: 1px solid rgba(196, 146, 42, 0.26);
  border-radius: 18px;
  box-shadow: 0 20px 56px rgba(44, 36, 22, 0.16);
  padding: clamp(18px, 3.5vw, 34px);
  transform-origin: top center;
  animation: bookOpen 0.55s ease-out both;
}

@keyframes bookOpen {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(-12deg) translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
  }
}

.article-intro {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #3b3124;
  margin: 0 0 14px;
}

.article-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.article-block.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.article-block img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(196, 146, 42, 0.24);
}

.article-block p {
  margin: 0;
  color: #4a3d2f;
  line-height: 1.8;
}

.article-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-rtl {
  margin-top: 12px;
}

.article-rtl p {
  margin: 0 0 14px;
  color: #4a3d2f;
  line-height: 1.9;
  text-align: right;
  direction: rtl;
}

.article-rtl .article-image {
  width: 100%;
  margin: 8px 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(196, 146, 42, 0.24);
  box-shadow: 0 10px 26px rgba(44, 36, 22, 0.1);
}

.pdf-article-wrap {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(196, 146, 42, 0.3);
  background: #efe8da;
}

.pdf-article-frame {
  width: 100%;
  height: min(78vh, 980px);
  min-height: 520px;
  border: 0;
  display: block;
}

.thumb {
  min-height: 120px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

.list {
  margin: 0;
  padding-left: 20px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #f4ecdf 0%, #ece2d3 100%);
  border-top: 1px solid var(--border);
}

.footer-grid {
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}

.footer-grid h4 {
  margin-top: 0;
  color: var(--primary);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-lang-switch {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.footer-lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.footer-lang-btn.active {
  color: var(--primary);
  font-weight: 800;
}

.footer-lang-sep {
  color: #b7a98e;
}

.hero-mini {
  position: relative;
  overflow: hidden;
  padding: 62px 0;
  min-height: var(--hero-section-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--primary) 0%, #2d629e 45%, #f8f3ea 100%);
  color: #fff;
  text-align: center;
}

body[data-page="game"] .hero-mini {
  background:
    linear-gradient(180deg, rgba(30, 77, 140, 0.22) 0%, rgba(45, 98, 158, 0.18) 45%, rgba(248, 243, 234, 0.1) 100%),
    radial-gradient(140% 95% at 76% -8%, rgba(243, 196, 92, 0.22) 0%, rgba(243, 196, 92, 0) 50%),
    radial-gradient(120% 90% at 22% 102%, rgba(16, 51, 95, 0.46) 0%, rgba(16, 51, 95, 0) 58%),
    linear-gradient(118deg, rgba(5, 13, 28, 0.58) 8%, rgba(17, 40, 76, 0.46) 42%, rgba(49, 24, 16, 0.32) 100%),
    var(--hero-game-bg) center/cover no-repeat;
}

body[data-page="news"] .hero-mini {
  background:
    linear-gradient(180deg, rgba(30, 77, 140, 0.2) 0%, rgba(45, 98, 158, 0.16) 45%, rgba(248, 243, 234, 0.1) 100%),
    radial-gradient(110% 100% at 50% -10%, rgba(203, 237, 255, 0.16) 0%, rgba(203, 237, 255, 0) 46%),
    linear-gradient(120deg, rgba(6, 20, 40, 0.48) 8%, rgba(18, 48, 84, 0.38) 58%, rgba(18, 46, 78, 0.3) 100%),
    var(--hero-news-bg) center/cover no-repeat;
}

body[data-page="download"] .hero-mini {
  background:
    linear-gradient(180deg, rgba(30, 77, 140, 0.18) 0%, rgba(45, 98, 158, 0.14) 45%, rgba(248, 243, 234, 0.08) 100%),
    linear-gradient(120deg, rgba(33, 23, 15, 0.44) 12%, rgba(92, 56, 24, 0.36) 56%, rgba(20, 34, 58, 0.3) 100%),
    var(--hero-download-bg) center/cover no-repeat;
}

body[data-page="contact"] .hero-mini {
  background:
    linear-gradient(180deg, rgba(30, 77, 140, 0.2) 0%, rgba(45, 98, 158, 0.16) 45%, rgba(248, 243, 234, 0.1) 100%),
    linear-gradient(120deg, rgba(7, 30, 42, 0.44) 10%, rgba(10, 67, 87, 0.34) 52%, rgba(20, 44, 66, 0.26) 100%),
    var(--hero-contact-bg) center/cover no-repeat;
}

.hero-mini h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 54px);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
}

.hero-mini p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}

.download-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}

.download-modal.open {
  display: flex;
}

.modal-content {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 22px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.close-btn {
  border: 0;
  background: var(--surface-2);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
}

.hidden-mobile {
  display: inline;
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    left: 4%;
    right: 4%;
    top: 72px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .lang-toggle {
    min-width: 48px;
    height: 38px;
    font-size: 12px;
    padding: 0 8px;
  }

  .footer-lang-switch {
    width: 100%;
    order: 3;
    margin-inline-start: 0;
    justify-content: center;
  }

  .grid-3,
  .grid-4,
  .grid-2,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .download-platforms {
    grid-template-columns: 1fr;
  }

  .download-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .download-modal .modal-content {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 14px;
    padding: 14px;
  }

  .download-modal .modal-platforms {
    gap: 10px;
  }

  .download-modal .modal-platforms .download-app-card {
    padding: 10px 10px 12px;
    border-radius: 18px;
  }

  .download-modal .modal-platforms .platform-tag {
    top: 8px;
    right: 8px;
    font-size: 11px;
    padding: 3px 8px;
  }

  .download-modal .modal-platforms .app-icon-shell {
    width: 74px;
    height: 74px;
    margin: 8px auto 8px;
    border-radius: 16px;
    padding: 5px;
  }

  .download-modal .modal-platforms .platform-logo {
    border-radius: 12px;
    padding: 12px;
  }

  .download-modal .modal-platforms .download-app-card h3 {
    font-size: 20px;
    line-height: 1.15;
    margin-bottom: 0;
  }

  .download-modal .modal-platforms .app-size {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .download-modal .modal-platforms .download-app-btn {
    width: 92%;
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .news-strip {
    grid-template-columns: 1fr;
  }

  .news-strip-thumb {
    height: 180px;
  }

  .article-block,
  .article-block.reverse {
    grid-template-columns: 1fr;
  }

  .pdf-article-frame {
    min-height: 460px;
    height: 68vh;
  }

  .feature-coverflow .coverflow-stage {
    height: 440px;
  }

  .coverflow-card {
    width: 250px;
    height: auto;
    top: 10px;
  }

  .feature-carousel-controls {
    justify-content: center;
  }

  .hidden-mobile {
    display: none;
  }

  .hero,
  .hero-mini,
  .team-page .team-hero {
    min-height: 34vh;
    padding: 44px 0;
  }
}
