@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --flash-primary: #2FA8F5;
  --flash-primary-dark: #1B84D6;
  --flash-secondary: #9C6BEA;
  --flash-success: #6FBF2D;
  --flash-success-dark: #4E9418;
  --flash-warning: #F9A825;
  --flash-sky-top: #6BCDE8;
  --flash-sky-bottom: #B9ECF8;
  --flash-surface: #FFF8E5;
  --flash-surface-light: #FDEBC8;
  --flash-border: #E8C48E;
  --flash-text: #5B3A19;
  --flash-text-secondary: #8A6A46;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--flash-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--flash-sky-top) 0%, var(--flash-sky-bottom) 45%, var(--flash-sky-bottom) 100%);
}

.page {
  max-width: 1200px;
  padding: 0 24px;
  margin: 0 auto;
}

.dual-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 20px;
}

.game-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.layout-divider {
  display: none;
  width: 2px;
  background: var(--flash-border);
  border-radius: 2px;
  opacity: 0.4;
}


.sky-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky-sun {
  position: absolute;
  top: -180px;
  left: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
}

.cloud {
  position: absolute;
  opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(20, 90, 120, 0.12));
  animation: floatCloud 14s ease-in-out infinite;
}

.cloud svg { display: block; width: 100%; height: 100%; }

.cloud--1 { top: 8%;  right: -4%;  width: 220px; animation-duration: 16s; }
.cloud--2 { top: 22%; left: -6%;   width: 150px; animation-duration: 12s; animation-delay: -3s; }
.cloud--3 { top: 46%; right: 6%;   width: 120px; opacity: 0.75; animation-duration: 18s; animation-delay: -7s; }
.cloud--4 { top: 68%; left: 4%;    width: 170px; opacity: 0.8;  animation-duration: 15s; animation-delay: -5s; }
.cloud--5 { top: 85%; right: -5%; width: 140px; opacity: 0.65; animation-duration: 20s; animation-delay: -10s; }

@keyframes floatCloud {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-16px, 10px); }
}

.floaty-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
  animation: floatShape 10s ease-in-out infinite;
}

.floaty-shape--triangle {
  top: 14%; left: 8%;
  width: 0; height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 38px solid rgba(255, 255, 255, 0.55);
  animation-duration: 9s;
}

.floaty-shape--diamond {
  top: 62%; right: 10%;
  width: 34px; height: 34px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  border-radius: 6px;
  animation-duration: 11s;
  animation-delay: -4s;
}

.floaty-shape--circle {
  top: 38%; left: 88%;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation-duration: 8s;
  animation-delay: -2s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

@media (max-width: 720px) {
  .cloud--3, .cloud--5, .floaty-shape { display: none; }
}


.app-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out both;
}

.app-header__logo-wrapper {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  overflow: hidden;
  filter: drop-shadow(0 14px 28px rgba(30, 100, 130, 0.28));
}

.app-header__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-header__info {
  flex: 1;
  min-width: 0;
}

.badge-pill {
  display: inline-block;
  background: rgba(111, 191, 45, 0.16);
  color: var(--flash-success-dark);
  border: 1.5px solid rgba(111, 191, 45, 0.45);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.app-header__name-logo {
  height: 56px;
  width: auto;
  display: block;
  margin: 0 auto 12px auto;
  filter: drop-shadow(0 4px 10px rgba(30, 100, 130, 0.2));
}

.app-header__desc {
  font-size: 16px;
  color: var(--flash-text);
  margin-bottom: 20px;
  margin-top: 20px;
  line-height: 1.8;
  font-weight: 500;
}


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

.app-buttons--desktop {
  justify-content: center;
}

.app-buttons--mobile {
  display: none;
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-bottom: 48px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #7DD147 0%, var(--flash-success) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 5px 0 var(--flash-success-dark), 0 10px 20px rgba(78, 148, 24, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--flash-success-dark), 0 14px 26px rgba(78, 148, 24, 0.4);
}

.download-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--flash-success-dark), 0 4px 10px rgba(78, 148, 24, 0.35);
}

.download-btn--soon {
  background: rgba(255, 248, 229, 0.85);
  color: var(--flash-text);
  border: 2px solid var(--flash-border);
  box-shadow: 0 4px 0 var(--flash-border), 0 8px 16px rgba(30, 100, 130, 0.12);
}

.download-btn--soon svg path,
.download-btn--soon svg { fill: var(--flash-text-secondary) !important; }

.download-btn--soon:hover {
  box-shadow: 0 6px 0 var(--flash-border), 0 12px 20px rgba(30, 100, 130, 0.16);
  border-color: var(--flash-primary);
}

.download-btn--soon:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--flash-border), 0 3px 8px rgba(30, 100, 130, 0.12);
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  z-index: 1100;
  transform: translate(-50%, 24px);
  background: var(--flash-text);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .app-buttons--desktop { display: none; }
  .app-buttons--mobile { display: flex; }
}

@media (min-width: 900px) {
  .dual-layout {
    flex-direction: row;
    gap: 60px;
  }
  .layout-divider {
    display: block;
  }
}


.app-section {
  position: relative;
  z-index: 1;
  margin-bottom: 64px;
}

.app-section__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--flash-text);
}


.screenshots-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
}

.screenshots-list {
  display: flex;
  gap: 18px;
  padding-bottom: 8px;
  margin: 0 -24px;
  padding-inline: 24px;
  width: auto;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.screenshots-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--flash-border);
  background: rgba(255, 248, 229, 0.9);
  color: var(--flash-text-secondary);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(30, 100, 130, 0.18);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.screenshots-nav:hover {
  background: #fff;
  color: var(--flash-primary);
  border-color: var(--flash-primary);
}

.screenshots-nav--prev { right: -4px; }
.screenshots-nav--next { left: -4px; }

@media (max-width: 720px) {
  .screenshots-nav { display: none; }
}

.screenshot-link {
  display: block;
  flex-shrink: 0;
  width: 180px;
}

.screenshot-img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(20, 90, 120, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  background: #fff;
}

.screenshot-img:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 22px 40px rgba(20, 90, 120, 0.3);
}


.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--flash-surface);
  border: 2px solid var(--flash-border);
  border-radius: 18px;
  padding: 26px 20px;
  box-shadow: 0 6px 0 rgba(232, 196, 142, 0.5), 0 10px 24px rgba(30, 100, 130, 0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 0 rgba(232, 196, 142, 0.5), 0 18px 32px rgba(30, 100, 130, 0.18);
}

.feature-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.feature-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--flash-primary-dark);
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--flash-text-secondary);
  font-size: 13px;
  line-height: 1.8;
}


.app-description {
  background: rgba(255, 248, 229, 0.75);
  border: 2px solid var(--flash-border);
  border-radius: 20px;
  padding: 28px 26px;
}

.app-description p {
  color: var(--flash-text);
  font-size: 14px;
  line-height: 2;
  max-width: 720px;
  margin: 0;
}


.footer {
  position: relative;
  z-index: 1;
  padding: 24px 0 32px;
  color: var(--flash-text-secondary);
  font-size: 13px;
  text-align: center;
}


.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 45, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--flash-surface);
  border: 2px solid var(--flash-border);
  color: var(--flash-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}


.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 20px 0 0 0;
  background: rgba(255, 248, 229, 0.9);
  color: var(--flash-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  border-radius: 16px;
  border: 2px solid var(--flash-border);
  box-shadow: 0 4px 0 var(--flash-border);
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
  align-self: flex-start;
  width: max-content;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--flash-border);
  background: #fff;
}

.back-home-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--flash-border);
}


.main-hero {
  text-align: center;
  margin: 40px 0 20px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out both;
}

.main-hero .main-title {
  font-size: 38px;
  color: var(--flash-text);
  margin-bottom: 12px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6);
}

.main-hero .main-subtitle {
  font-size: 18px;
  color: var(--flash-text-secondary);
  font-weight: 500;
}


.btn-view-more {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background-color: var(--flash-surface);
  color: var(--flash-primary-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  border-radius: 16px;
  border: 2px solid var(--flash-primary);
  box-shadow: 0 4px 0 var(--flash-primary);
  transition: all 0.2s ease;
}

.btn-view-more:hover {
  background-color: var(--flash-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--flash-primary-dark);
}

.btn-view-more:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--flash-primary-dark);
}


.index-page .game-column {
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid var(--flash-border);
  border-radius: 28px;
  padding: 32px 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 12px 32px rgba(30, 100, 130, 0.08);
}

.index-page .game-column:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 48px rgba(30, 100, 130, 0.15);
  border-color: var(--flash-primary);
}

.index-page .layout-divider {
  display: none !important;
}



.btn-view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: rgba(255, 248, 229, 0.9);
  color: var(--flash-text);
  font-weight: 800;
  font-size: 14px;
  border-radius: 16px;
  border: 2px solid var(--flash-border);
  box-shadow: 0 0px 0 var(--flash-border);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-more:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0px 0 var(--flash-border);
  border-color: var(--flash-primary);
  color: var(--flash-primary-dark);
}

.btn-view-more:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--flash-border);
}

.game-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.game-card-icon {
  width: 150px;
  height: 150px;
  border-radius: 28px;
  margin: 0 !important; 
  flex-shrink: 0;
}


.game-card-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  flex: 1;
  min-width: 0;
  margin-bottom: 40px;
}

.game-card-title-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end; 
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.game-card-name {
  height: 44px;
  width: auto;
  margin: 0 !important;
  object-fit: contain;
}

.badge-pill {
  margin: 0 !important;
  white-space: nowrap;
}

.text-center {
  text-align: center !important;
  margin-top: 0;
}


@media (max-width: 600px) {
  .game-card-header {
    gap: 12px;
    margin-bottom: 16px;
  }
  .game-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }
  .game-card-name {
    height: 32px;
  }
  .game-card-title-wrap {
    gap: 10px;
    margin-bottom: 10px;
  }
  .btn-view-more {
    padding: 8px 16px;
    font-size: 13px;
  }
  .badge-pill {
    padding: 4px 10px;
    font-size: 11px;
  }
  .app-header__desc.text-center {
    font-size: 14px;
    padding: 0 10px;
    margin-top: 10px;
  }
}

@media (max-width: 380px) {

  .game-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .game-card-left {
    align-items: center;
  }
  .game-card-title-wrap {
    justify-content: center;
  }
}

.game-column {
  cursor: pointer;
}