@font-face {
  font-family: "Vazir";
  src: url("../vazri/Vazir-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src: url("../vazri/Vazir-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src: url("../vazri/Vazir-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src: url("../vazri/Vazir-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fcfbf9;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-mute: #6b7280;
  --border: #d6d6d6;
  --border-soft: #f3e8d0;
  --primary: #e11d48;
  --primary-tint: rgba(225, 29, 72, 0.06);
  --surface: #f3f3f3;
  --white: #ffffff;
  --font-display: "Lalezar", system-ui, sans-serif;
  --font-ui: "Vazir", "IRANSansXFaNum", system-ui, sans-serif;
  --font-body: "IRANSansXFaNum", "Vazir", system-ui, sans-serif;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #c9c9c9;
}

/* ================= HEADER ================= */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.logo {
  height: 84px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.main-nav a.nav-highlight {
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 600;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.mascots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mascot {
  width: 28px;
  height: 38px;
  object-fit: cover;
}

.mascot-flip {
  transform: scaleX(-1);
}

/* ================= SECTION TITLE ================= */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin: 0 auto 48px;
  max-width: 760px;
}

.section-title h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -1px;
  margin: 0;
}

.section-title p {
  font-size: 22px;
  color: var(--ink-soft);
  margin: 0;
  font-family: var(--font-body);
}

section {
  padding: 64px 0;
  overflow: hidden;
}

/* ================= HERO ================= */
.hero {
  padding-top: 48px;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-art,
.hero-content {
  flex: 1 1 0;
  min-width: 0;
}

.hero-art {
  position: relative;
}

.hero-light {
  position: absolute;
  inset: -28%;
  z-index: 0;
  filter: blur(55px);
  background:
    radial-gradient(42% 46% at 48% 32%, #fff7ed 0%, rgba(253, 186, 116, 0.55) 45%, rgba(253, 186, 116, 0) 78%),
    radial-gradient(50% 54% at 44% 48%, #fef9c3 0%, rgba(254, 240, 138, 0.5) 50%, rgba(254, 240, 138, 0) 80%),
    radial-gradient(32% 34% at 68% 56%, rgba(254, 205, 211, 0.55) 0%, rgba(254, 205, 211, 0) 75%),
    radial-gradient(26% 28% at 24% 62%, rgba(251, 146, 60, 0.3) 0%, rgba(251, 146, 60, 0) 75%),
    radial-gradient(24% 26% at 58% 76%, rgba(253, 164, 175, 0.35) 0%, rgba(253, 164, 175, 0) 75%);
}

.hero-art-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin: 0;
  background: radial-gradient(130% 130% at 10% 50%, #c3193e 0%, #f17714 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subheadline {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.hero-desc {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 540px;
  margin: 0;
}

.hero-divider {
  width: 120px;
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 4px 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* ================= GAME EXPLAIN ================= */
.game-explain {
  position: relative;
  background: var(--bg);
}

.game-explain-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.game-explain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--bg) 4.6%,
    rgba(253, 235, 159, 0.1) 61.3%,
    var(--bg) 95.3%
  );
}

.game-explain .container {
  position: relative;
  z-index: 2;
}

.faq-wrap {
  position: relative;
}

.faq-character {
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  width: 58%;
  max-width: 300px;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.faq-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 220px;
}

.faq-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}

.faq-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -1px;
  margin: 0 0 11px;
}

.faq-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* دسکتاپ: چیدمان پراکنده و شیک دور شخصیت، مطابق طرح */
@media (min-width: 961px) {
  .faq-wrap {
    max-width: 1440px;
    aspect-ratio: 1440 / 584;
    margin: 0 auto;
  }

  .faq-character {
    left: 37.08%;
    top: 2.23%;
    width: 25.83%;
    max-width: none;
    transform: none;
    opacity: 1;
  }

  .faq-grid {
    display: block;
    padding-top: 0;
    height: 100%;
  }

  .faq-card {
    position: absolute;
    width: 20.83%;
  }

  .faq-card[data-card="1"] {
    left: 63.68%;
    top: 11.99%;
  }

  .faq-card[data-card="2"] {
    left: 67.08%;
    top: 52.23%;
  }

  .faq-card[data-card="3"] {
    left: 15.56%;
    top: 11.99%;
  }

  .faq-card[data-card="4"] {
    left: 12.5%;
    top: 56.51%;
  }
}

/* ================= REAL REWARDS ================= */
.prize-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
}

.prize-card {
  position: relative;
  flex: 1 1 0;
  max-width: 416px;
  background: var(--primary-tint);
  border-radius: 12px;
  padding: 100px 16px 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.prize-card img {
  position: absolute;
  top: -92px;
  left: 50%;
  transform: translateX(-50%);
  width: 205px;
  height: 205px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.12));
}

.prize-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 12px;
}

.prize-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ================= REGISTER FORM ================= */
.register-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.register-art {
  flex: 1 1 0;
  position: relative;
  min-width: 0;
}

.register-light {
  position: absolute;
  inset: -28%;
  z-index: 0;
  filter: blur(55px);
  background:
    radial-gradient(42% 46% at 48% 32%, #fff7ed 0%, rgba(253, 186, 116, 0.55) 45%, rgba(253, 186, 116, 0) 78%),
    radial-gradient(50% 54% at 44% 48%, #fef9c3 0%, rgba(254, 240, 138, 0.5) 50%, rgba(254, 240, 138, 0) 80%),
    radial-gradient(32% 34% at 68% 56%, rgba(254, 205, 211, 0.55) 0%, rgba(254, 205, 211, 0) 75%),
    radial-gradient(26% 28% at 24% 62%, rgba(251, 146, 60, 0.3) 0%, rgba(251, 146, 60, 0) 75%),
    radial-gradient(24% 26% at 58% 76%, rgba(253, 164, 175, 0.35) 0%, rgba(253, 164, 175, 0) 75%);
}

.register-art img {
  position: relative;
  z-index: 1;
}

.form-card {
  flex: 1 1 0;
  max-width: 600px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 48px;
}

.form-title-block h3 {
  font-size: 26px;
  margin: 0 0 8px;
  text-align: right;
}

.form-title-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  text-align: right;
}

.form-card hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 20px 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-error {
  margin: 0;
  font-size: 13px;
  color: var(--primary);
  text-align: right;
}

.field label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-align: right;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 14px;
  text-align: right;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}

.input-wrap input::placeholder {
  color: #9d9d9d;
}

.input-wrap img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-flip {
  transform: scaleX(-1);
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
}

.form-message {
  min-height: 20px;
  margin: 0 0 6px;
  font-size: 14px;
  text-align: center;
}

.form-message.success {
  color: #16a34a;
}

.form-message.error {
  color: var(--primary);
}

/* ================= REGISTER BONUS / COUNTDOWN ================= */
.bonus-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.bonus-art {
  flex: 1 1 0;
  position: relative;
  min-width: 0;
}

.bonus-light {
  position: absolute;
  inset: -28%;
  z-index: 0;
  filter: blur(55px);
  background:
    radial-gradient(42% 46% at 48% 32%, #fff7ed 0%, rgba(253, 186, 116, 0.55) 45%, rgba(253, 186, 116, 0) 78%),
    radial-gradient(50% 54% at 44% 48%, #fef9c3 0%, rgba(254, 240, 138, 0.5) 50%, rgba(254, 240, 138, 0) 80%),
    radial-gradient(32% 34% at 68% 56%, rgba(254, 205, 211, 0.55) 0%, rgba(254, 205, 211, 0) 75%),
    radial-gradient(26% 28% at 24% 62%, rgba(251, 146, 60, 0.3) 0%, rgba(251, 146, 60, 0) 75%),
    radial-gradient(24% 26% at 58% 76%, rgba(253, 164, 175, 0.35) 0%, rgba(253, 164, 175, 0) 75%);
}

.bonus-art img {
  position: relative;
  z-index: 1;
}

.bonus-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  text-align: right;
}

.bonus-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.countdown-timer {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-start;
}

.countdown-box {
  width: 100px;
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-box span {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.countdown-box small {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
}

/* ================= CREATORS ================= */
.creators {
  padding-bottom: 0;
}

.creators .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.creators-img {
  width: 100%;
}

/* ================= GAME FLOW OVERLAY ================= */
.flow-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.flow-overlay[hidden] {
  display: none;
}

.flow-modal {
  position: relative;
  background: var(--bg);
  border-radius: 24px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  padding: 32px;
}

.flow-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft);
}

.flow-progress {
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ink-mute);
  margin: 0 0 16px;
}

.flow-step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.flow-step.active {
  display: flex;
}

.flow-img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
}

.flow-question {
  font-size: 22px;
  margin: 0;
  max-width: 480px;
}

.flow-step .field {
  width: 100%;
  max-width: 380px;
}

.flow-actions {
  display: flex;
  justify-content: center;
}

.flow-actions-col {
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  gap: 12px;
}

.flow-actions-col .btn {
  width: 100%;
}

.flow-step-final {
  position: relative;
  min-height: 260px;
  justify-content: flex-start;
}

.flow-final-zone {
  position: relative;
  width: 100%;
  height: 120px;
}

#finalPointsBtn {
  position: relative;
}

/* ================= HOJJAT VIDEO MODAL ================= */
.hojjat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 19, 16, 0.78);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hojjat-overlay[hidden] {
  display: none;
}

.hojjat-modal {
  position: relative;
  background: var(--white);
  border-radius: 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  padding: 56px 40px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.hojjat-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft);
}

.hojjat-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hojjat-panel[hidden] {
  display: none;
}

.hojjat-icon {
  width: 64px;
  height: 64px;
  color: #b45309;
}

.hojjat-icon[hidden] {
  display: none;
}

.hojjat-headline {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  max-width: 420px;
  margin: 0;
}

.hojjat-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hojjat-actions .btn {
  flex-shrink: 0;
}

.hojjat-actions .btn[hidden] {
  display: none;
}

.hojjat-video-wrap {
  position: relative;
  width: 100%;
}

.hojjat-video {
  width: 100%;
  border-radius: 20px;
  background: #111827;
  display: block;
}

.hojjat-fullscreen-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hojjat-fullscreen-btn svg {
  width: 18px;
  height: 18px;
}

.hojjat-overlay.is-video .hojjat-close {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

@media (max-width: 640px) {
  .hojjat-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .hojjat-modal {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 28px 28px 0 0;
    padding: 48px 24px 32px;
  }

  .hojjat-actions {
    flex-direction: column;
    width: 100%;
  }

  .hojjat-actions .btn {
    width: 100%;
  }

  /* پخش ویدئو روی موبایل تمام صفحه میشه چون داخل باتم‌شیت کوچیک تجربه خوبی نداره */
  .hojjat-overlay.is-video {
    align-items: stretch;
    padding: 0;
  }

  .hojjat-overlay.is-video .hojjat-modal {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 0;
    background: #000;
    display: flex;
    align-items: center;
  }

  .hojjat-overlay.is-video .hojjat-panel-video,
  .hojjat-overlay.is-video .hojjat-video-wrap {
    width: 100%;
    height: 100%;
  }

  .hojjat-overlay.is-video .hojjat-video {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
  }

  .hojjat-overlay.is-video .hojjat-close {
    top: 20px;
    left: 20px;
  }

  .hojjat-overlay.is-video .hojjat-fullscreen-btn {
    bottom: 24px;
    left: 20px;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .section-title h2 {
    font-size: 32px;
  }

  .section-title p {
    font-size: 14px;
  }

  .hero-row,
  .register-row,
  .bonus-row {
    flex-direction: column;
  }

  .hero-art {
    order: 1;
  }

  .hero-content {
    order: 2;
    align-items: center;
    text-align: center;
  }

  .bonus-art {
    order: 1;
  }

  .bonus-content {
    order: 2;
  }

  .hero-headline {
    font-size: 36px;
    text-align: center;
  }

  .hero-subheadline {
    font-size: 16px;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .faq-character {
    width: 90%;
    max-width: 340px;
    top: 101px;
  }

  .faq-grid {
    padding-top: 32px;
  }

  .faq-card {
    padding: 14px 12px;
  }

  .faq-card h3 {
    font-size: 14px;
    margin: 0 0 6px;
  }

  .faq-card p {
    font-size: 12px;
  }

  .register-art {
    display: none;
  }

  .form-title-block h3 {
    font-size: 18px;
  }

  .form-title-block p {
    font-size: 13px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex-shrink: 0;
  }

  .header-row {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .prize-row {
    flex-direction: column;
    align-items: center;
  }

  .prize-card {
    width: 100%;
    max-width: 320px;
    padding: 100px 16px 20px 16px;
  }

  .prize-card img {
    top: -48px;
    width: 152px;
    height: 152px;
  }

  .form-card {
    padding: 28px 20px;
    max-width: 100%;
  }

  .countdown-box {
    width: 72px;
    padding: 10px 6px;
  }

  .countdown-box span {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-meta span:first-child {
    display: none;
  }

  .hero-headline {
    font-size: 28px;
  }

  section {
    padding: 48px 0;
  }
}
