/* ── Dana Font ── */
@font-face {
  font-family: 'Dana';
  src: url('../assets/dana/dana-thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../assets/dana/dana-extralight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../assets/dana/dana-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../assets/dana/dana-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../assets/dana/dana-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../assets/dana/dana-demibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../assets/dana/dana-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../assets/dana/dana-extrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../assets/dana/dana-black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0a0818;
  --bg-frame: #0d0b21;
  --purple-500: #9333ea;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-glow: rgba(147, 51, 234, 0.35);
  --lavender: #c4b5fd;
  --lavender-dim: #a78bfa;
  --lavender-accent: #b794f6;
  --lavender-404: #9b87f5;
  --text-primary: #f5f3ff;
  --text-muted: #c4b5fd;
  --card-bg: #1a1235;
  --card-border: rgba(139, 92, 246, 0.25);
  --frame-width: 430px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: 'Dana', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ── Desktop shell: mobile-only centered frame ── */
.desktop-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(109, 40, 217, 0.12) 0%, transparent 70%),
    var(--bg-deep);
}

.mobile-frame {
  width: 100%;
  max-width: var(--frame-width);
  min-height: 100vh;
  background: var(--bg-frame);
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 0 80px rgba(0, 0, 0, 0.6);
}

@media (min-width: 480px) {
  .mobile-frame {
    margin: 0 auto;
    min-height: 100vh;
    border-left: 1px solid rgba(139, 92, 246, 0.1);
    border-right: 1px solid rgba(139, 92, 246, 0.1);
  }
}

/* ── Header ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
}

.logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand {
  width: 80px;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.hero__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lavender-dim);
  line-height: 1.6;
}

.hero__subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.9;
}

.hero__media {
  position: relative;
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1a0a3e 0%, #0f172a 100%);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__banner[hidden] {
  display: none;
}

.hero__game {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

.hero__play[hidden] {
  display: none;
}

.hero__media:fullscreen,
.hero__media:-webkit-full-screen {
  border-radius: 0;
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
  margin-top: 0;
}

.hero__play::before {
  content: '';
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  position: absolute;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__play i {
  position: relative;
  z-index: 1;
  font-size: 1.6rem;
  color: #fff;
  margin-right: -3px;
}

.hero__play:hover::before,
.hero__play:focus-visible::before {
  transform: scale(1.08);
  background: rgba(109, 40, 217, 0.65);
}

.hero__play:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

/* ── CTA ── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 45%, #6d28d9 100%);
  box-shadow:
    0 4px 24px var(--purple-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.cta__button::after {
  content: '';
  width: 360px;
  height: 128px;
  background: #fff;
  position: absolute;
  border-radius: 50%;
  top: -20%;
  right: -30%;
  opacity: 0.1;
}

.cta__button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 32px rgba(147, 51, 234, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta__button:active {
  transform: translateY(0);
}

.cta__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
  text-align: center;
  line-height: 1.6;
}

.cta__hint i {
  position: relative;
  top: -4px;
  font-size: 0.85rem;
  flex-shrink: 0;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ── Features ── */
.features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.features__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.features__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.features__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lavender);
  white-space: nowrap;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.2);
}

.feature-card__icon i {
  font-size: 1rem;
  color: var(--purple-500);
}

.feature-card__title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

.feature-card__desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0.8;
}

/* ── Video Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: var(--frame-width);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: -44px;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.modal__video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.modal__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Coming Soon (index) ── */
.mobile-frame--soon {
  background: #0f0a24;
  padding: 48px 28px 40px;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.mobile-frame--soon .header {
  width: 100%;
  justify-content: center;
  padding: 0;
}

.header__brand {
  width: 140px;
  height: auto;
}

.mobile-frame--soon .hero {
  justify-content: center;
  width: 100%;
  gap: 0;
}

.hero__mascot {
  width: min(280px, 72vw);
  height: auto;
  margin: auto;
  filter: drop-shadow(0 12px 40px rgba(109, 40, 217, 0.25));
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.content__title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--lavender);
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-shadow:
    0 0 24px rgba(196, 181, 253, 0.45),
    0 0 48px rgba(147, 51, 234, 0.2);
}

.content__text {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.8;
  opacity: 0.92;
}

.content__text--accent {
  color: var(--lavender-accent);
  font-weight: 500;
  opacity: 1;
}

/* ── 404 ── */
.mobile-frame--404 {
  background: #120e2b;
  padding: 48px 28px 40px;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.mobile-frame--404 .header {
  width: 100%;
  justify-content: center;
  padding: 0;
  margin-bottom: auto;
}

.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  flex: 1;
  justify-content: center;
}

.error__code {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--lavender-404);
  line-height: 1;
  letter-spacing: -0.02em;
}

.error__message {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
}

.error__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #a995f7 0%, var(--lavender-404) 100%);
  box-shadow:
    0 4px 20px rgba(155, 135, 245, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.error__button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 28px rgba(155, 135, 245, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.error__button:active {
  transform: translateY(0);
}

/* ── Privacy Policy ── */
.mobile-frame--policy {
  max-width: 680px;
  padding: 24px 24px 48px;
  gap: 0;
}

.mobile-frame--policy .header {
  justify-content: center;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

.header__brand-link {
  display: inline-flex;
}

.policy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.policy__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lavender);
  line-height: 1.5;
  text-align: center;
}

.policy__intro {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.9;
  opacity: 0.92;
}

.policy__toc {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.policy__toc-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lavender-dim);
  margin-bottom: 12px;
}

.policy__toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy__toc-list li {
  font-size: 0.85rem;
  line-height: 1.7;
}

.policy__toc-list a {
  color: var(--lavender-accent);
  transition: color 0.15s ease;
}

.policy__toc-list a:hover {
  color: var(--text-primary);
}

.policy__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 20px;
}

.policy__heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lavender);
  line-height: 1.6;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.policy__subheading {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lavender-dim);
  line-height: 1.6;
  margin-top: 4px;
}

.policy__section p {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.9;
  opacity: 0.9;
}

.policy__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.policy__list li {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-primary);
  opacity: 0.9;
  padding-right: 16px;
  position: relative;
}

.policy__list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
  opacity: 0.7;
}

.policy__note {
  background: rgba(109, 40, 217, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.policy__link,
.policy__note a,
.policy__section a {
  color: var(--lavender-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.policy__link:hover,
.policy__note a:hover,
.policy__section a:hover {
  color: var(--text-primary);
}

.policy__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
}

.policy__updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.policy__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #a995f7 0%, var(--lavender-404) 100%);
  box-shadow:
    0 4px 20px rgba(155, 135, 245, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.policy__back:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 28px rgba(155, 135, 245, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.policy__back:active {
  transform: translateY(0);
}

