@font-face {
  font-family: 'Estedad';
  src: url('https://karbaloo.ir/assets/fonts/Estedad-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazir';
  src: url('https://karbaloo.ir/assets/fonts/Vazir-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazir';
  src: url('https://karbaloo.ir/assets/fonts/Vazir-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: #2a1c12;
  color: #1a120c;
  font-family: 'Vazir', sans-serif;
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: 1fr auto;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 3px);
  z-index: 4;
}

.spine {
  grid-row: 1 / 3;
  background: linear-gradient(180deg, #3d2416 0%, #1a100a 100%);
  color: #e8d5a3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 8px;
  border-left: 1px solid #c9a22755;
}

.spine-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 6px #c9a22722;
}

.spine-name,
.spine-year {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.35em;
  font-size: 13px;
  font-family: 'Estedad', sans-serif;
}

.spine-year { color: #a65d3a; letter-spacing: 0.2em; }

.sheet {
  background:
    radial-gradient(1200px 400px at 80% -10%, #fff6e8 0%, transparent 50%),
    #f3e6d2;
  padding: 48px 8vw 72px;
  position: relative;
}

.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #a65d3a, #c9a227, #5c4033);
}

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.seal { width: 56px; height: 56px; }

.kicker {
  font-family: 'Estedad', sans-serif;
  font-size: 13px;
  color: #6b5344;
  letter-spacing: 0.28em;
  flex: 1;
}

.top-link {
  font-family: 'Estedad', sans-serif;
  font-size: 13px;
  color: #a65d3a;
  text-decoration: none;
  border-bottom: 1px solid #c9a227;
  padding-bottom: 2px;
}

h1 {
  font-family: 'Estedad', sans-serif;
  font-weight: 400;
  line-height: 0.85;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
}

.word-taj {
  font-size: clamp(64px, 12vw, 140px);
  color: #c9a227;
}

.word-and {
  font-size: clamp(28px, 4vw, 42px);
  color: #a65d3a;
}

.word-khak {
  font-size: clamp(64px, 12vw, 140px);
  color: #3d2416;
}

.lead {
  max-width: 34em;
  font-size: 20px;
  line-height: 1.9;
  color: #3d2b1f;
  margin-bottom: 36px;
}

.ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 0;
  border-top: 1px solid #c9a22766;
  border-bottom: 1px solid #c9a22766;
  margin-bottom: 40px;
  font-family: 'Estedad', sans-serif;
  color: #5c4033;
  font-size: 15px;
}

.ribbon i {
  width: 28px;
  height: 1px;
  background: #c9a227;
  display: inline-block;
}

.letter {
  max-width: 38em;
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
  font-size: 17px;
  line-height: 2;
  color: #4a372c;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 0;
  margin-bottom: 48px;
  border-top: 1px solid #d9c4a8;
}

.steps li {
  padding: 22px 20px 22px 8px;
  border-left: 1px solid #d9c4a8;
}

.steps li:last-child { border-left: none; }

.steps strong {
  display: block;
  font-family: 'Estedad', sans-serif;
  font-size: 28px;
  color: #3d2416;
  margin-bottom: 8px;
}

.steps em {
  font-style: normal;
  color: #6b5344;
  font-size: 14px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.wax {
  display: inline-block;
  background: #3d2416;
  color: #f3e6d2;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 999px;
  font-family: 'Estedad', sans-serif;
  font-size: 16px;
  box-shadow: 0 8px 0 #c9a227;
}

.wax:hover { transform: translateY(2px); box-shadow: 0 6px 0 #c9a227; }

.wax.ghost {
  background: transparent;
  color: #3d2416;
  box-shadow: 0 0 0 1px #c9a227;
}

.wax.ghost:hover { box-shadow: 0 0 0 1px #3d2416; transform: none; }

footer {
  grid-column: 2;
  background: #1a100a;
  color: #e8d5a3;
  padding: 18px 8vw 64px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.game-body {
  display: block;
  background:
    radial-gradient(900px 500px at 20% 0%, #5c3318 0%, transparent 55%),
    #1a100a;
  color: #f3e6d2;
  min-height: 100vh;
}

.back-home {
  position: relative;
  z-index: 5;
  display: inline-block;
  margin: 28px 8vw 0;
  color: #e8d5a3;
  text-decoration: none;
  font-family: 'Estedad', sans-serif;
  font-size: 14px;
  border-bottom: 1px solid #c9a22766;
  padding-bottom: 4px;
}

.poster {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr 220px;
  gap: 32px;
  align-items: end;
  min-height: calc(100vh - 140px);
  padding: 48px 8vw 100px;
}

.poster-brand {
  font-family: 'Estedad', sans-serif;
  letter-spacing: 0.4em;
  color: #c9a227;
  font-size: 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.poster-tag {
  margin-top: 24px;
  color: #a65d3a;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.poster-kicker {
  font-family: 'Estedad', sans-serif;
  color: #c9a227;
  letter-spacing: 0.22em;
  font-size: 13px;
  margin-bottom: 18px;
}

.poster-title {
  display: block;
  font-family: 'Estedad', sans-serif;
  font-weight: 400;
  line-height: 0.9;
  margin-bottom: 24px;
}

.poster-title span {
  display: block;
  font-size: clamp(56px, 11vw, 128px);
  color: #f3e6d2;
}

.poster-title .poster-thin {
  font-size: clamp(22px, 3vw, 36px);
  color: #a65d3a;
  margin: 8px 0;
}

.poster-lead {
  max-width: 28em;
  font-size: 17px;
  line-height: 2;
  color: #d9c4a8;
  margin-bottom: 36px;
}

.dl-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #e8c547, #c9a227 42%, #8a6a12);
  color: #1a100a;
  text-decoration: none;
  font-family: 'Estedad', sans-serif;
  font-size: 16px;
  box-shadow: 0 0 0 10px #c9a22722, 0 18px 40px #0008;
}

.box-back {
  background: #f3e6d2;
  color: #3d2416;
  padding: 28px 22px;
  border-top: 8px solid #c9a227;
}

.box-label {
  font-family: 'Estedad', sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #a65d3a;
  margin-bottom: 18px;
}

.box-back ul { list-style: none; display: grid; gap: 16px; }

.box-back li {
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px dashed #d9c4a8;
  padding-bottom: 12px;
}

.box-back b {
  display: block;
  font-family: 'Estedad', sans-serif;
  font-size: 12px;
  color: #6b5344;
  margin-bottom: 4px;
}

.game-foot {
  background: transparent;
  color: #a65d3a;
  padding: 0 8vw 72px;
  letter-spacing: 0.16em;
  font-size: 12px;
}

@media (max-width: 800px) {
  body { grid-template-columns: 1fr; }
  .spine {
    grid-row: auto;
    flex-direction: row;
    padding: 14px 20px;
    border-left: none;
    border-bottom: 1px solid #c9a22755;
  }
  .spine-name, .spine-year {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.2em;
  }
  .steps { grid-template-columns: 1fr; }
  .steps li {
    border-left: none;
    border-bottom: 1px solid #d9c4a8;
    padding: 18px 0;
  }
  .poster {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
  }
  .poster-brand, .poster-tag {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .poster-meta { display: flex; gap: 16px; align-items: baseline; }
}
