/* «اكشط واكشف هديتك» (/gift) و«اصنع طلبك بنفسك» (/start) — نفس هوية الموقع: أسود + ذهبي، ومتغيّرات src/index.css نفسها */
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('/fonts/alexandria-normal-200-700-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('/fonts/alexandria-normal-200-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0908;
  --bg-2: #100e0b;
  --ink: #efe9dd;
  --ink-2: #cfc6b6;
  --dim: #9a9284;
  --line: rgba(239, 233, 221, 0.11);
  --line-2: rgba(239, 233, 221, 0.2);
  --gold: #c9a86a;
  --gold-hi: #f3e2b3;
  --gold-lo: #8a6d3b;
  --gold-soft: #e3cc98;
  --gold-grad: linear-gradient(105deg, #9a7b45 0%, #f3e2b3 38%, #c9a86a 62%, #8a6d3b 100%);
  --bad: #e0705c;
  --sans: "Alexandria", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg) radial-gradient(60% 40% at 50% -6%, rgba(201, 168, 106, .14), transparent 70%) no-repeat;
  color: var(--ink); font: 400 16px/1.9 var(--sans); overflow-wrap: break-word; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.7; }
a { color: var(--gold-soft); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--gold); color: #120f09; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* الشريط العلوي */
.bar { max-width: 780px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.bar a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink-2); }
.bar a:hover { color: var(--gold-hi); }
.bar-lang { padding-inline: 16px; border: 1px solid var(--line-2); border-radius: 999px; }
.bar-lang:hover { border-color: var(--gold-soft); }

main { max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; }

/* الترويسة */
.mast { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); position: relative; }
.mast::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 96px; height: 1px; background: var(--gold-soft); }
.kicker { font-size: 13px; color: var(--gold-soft); letter-spacing: .02em; }
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
.mast h1 { margin-top: 14px; font-size: clamp(30px, 6vw, 52px); font-weight: 200; line-height: 1.35; color: var(--gold-hi); }
html[lang="en"] .mast h1 { line-height: 1.12; letter-spacing: -.02em; }
.tagline { margin-top: 16px; font-size: clamp(16px, 2.4vw, 19px); color: var(--ink-2); font-weight: 300; max-width: 52ch; }

/* الأزرار */
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 30px; border: 1px solid var(--gold-soft); border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; cursor: pointer; text-align: center; transition: background-color .3s, color .3s, border-color .3s; }
.btn-gold { background: var(--gold-soft); color: #120f09; }
.btn-gold:hover { background: transparent; color: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--gold-hi); }
.btn-ghost:hover { background: var(--gold-soft); color: #120f09; }

/* بطاقة الهدية */
.gift { text-align: center; }
.card {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 10; margin: 0 auto;
  border-radius: 22px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(201, 168, 106, .45);
  background: radial-gradient(90% 120% at 50% 0%, rgba(201, 168, 106, .16), transparent 65%), var(--bg-2);
  box-shadow: 0 30px 80px -30px rgba(201, 168, 106, .35), inset 0 0 0 1px rgba(243, 226, 179, .06);
}
.prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px clamp(18px, 5vw, 44px); }
.prize::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(201, 168, 106, .28); border-radius: 14px; pointer-events: none; }
.prize-label { font-size: 13px; color: var(--gold-soft); letter-spacing: .04em; }
html[lang="en"] .prize-label { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; }
.prize-gift { font-size: clamp(20px, 4.4vw, 30px); font-weight: 300; line-height: 1.5; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="en"] .prize-gift { line-height: 1.3; }
.prize-code { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px; border: 1px dashed rgba(201, 168, 106, .5); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.prize-code b { font-weight: 500; font-size: 17px; letter-spacing: .14em; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.scratch { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: grab; touch-action: none; transition: opacity .6s var(--ease); }
.scratch:active { cursor: grabbing; }
.scratch.gone { opacity: 0; pointer-events: none; }
.card.is-open { animation: glow 1.6s var(--ease) 1; }
@keyframes glow { 0% { box-shadow: 0 30px 80px -30px rgba(201, 168, 106, .35); } 40% { box-shadow: 0 30px 110px -16px rgba(243, 226, 179, .55); } 100% { box-shadow: 0 30px 80px -30px rgba(201, 168, 106, .35); } }
.note { margin-top: 22px; font-size: 13px; color: var(--dim); }
.nojs { padding: 24px; border: 1px solid var(--line-2); border-radius: 16px; color: var(--ink-2); }
.nojs .btn { margin-top: 16px; }
.cross { margin-top: 40px; text-align: center; font-size: 15px; }
.cross a { display: inline-flex; align-items: center; min-height: 44px; }

/* اصنع طلبك بنفسك */
.start { display: grid; gap: 34px; }
.step { border: 0; min-width: 0; }
.step legend, .step-label { display: grid; gap: 2px; margin-bottom: 14px; padding: 0; }
.step-n { font-size: 12.5px; color: var(--gold-soft); letter-spacing: .04em; }
html[lang="en"] .step-n { text-transform: uppercase; letter-spacing: .18em; font-size: 11.5px; }
.step-q { font-size: clamp(19px, 3vw, 23px); font-weight: 300; line-height: 1.5; color: var(--ink); }
.step-q small { font-size: 14px; color: var(--dim); }
.hint { margin: -8px 0 14px; font-size: 13.5px; color: var(--dim); }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; display: inline-flex; cursor: pointer; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 20px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; color: var(--ink-2); background: rgba(16, 14, 11, .7); transition: border-color .25s, background-color .25s, color .25s; }
.opt span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--dim); flex: none; transition: background-color .25s, border-color .25s; }
.opt input[type="checkbox"] + span::before { border-radius: 2px; }
.opt:hover span { border-color: rgba(201, 168, 106, .6); color: var(--ink); }
.opt input:checked + span { border-color: var(--gold-soft); color: var(--gold-hi); background: rgba(201, 168, 106, .13); }
.opt input:checked + span::before { background: var(--gold-soft); border-color: var(--gold-soft); }
.opt input:focus-visible + span { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.field { width: 100%; max-width: 440px; min-height: 50px; padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font-size: 16px; line-height: 1.4; }
.field::placeholder { color: #6f685c; }
.field:focus { border-color: var(--gold-soft); outline: none; }
.field:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.err { margin-top: 12px; font-size: 14px; color: var(--bad); }
.start .actions { justify-content: flex-start; margin-top: 0; }
.start .note { margin-top: -14px; }

.foot { max-width: 780px; margin: 0 auto; padding: 24px 24px 40px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--dim); }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--gold-hi); }

@media (max-width: 480px) {
  main { padding: 40px 16px 56px; }
  .bar, .foot { padding-inline: 16px; }
  .card { aspect-ratio: 4 / 3; border-radius: 18px; }
  .actions .btn { flex: 1 1 100%; }
  .opt span { padding: 8px 16px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
