/* ماهی خوب · سامانهٔ نمایشگاه IFEX 2026 — تم سرمه‌ای تیره و طلایی مات (DESIGN.md بخش ۱۱) */
@font-face { font-family: "Vazirmatn"; src: url("/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-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: "Vazirmatn"; src: url("/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Estedad"; src: url("/fonts/estedad-arabic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Estedad"; src: url("/fonts/estedad-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

@font-face { font-family: "Vazirmatn"; src: url("/fonts/vazirmatn-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Estedad"; src: url("/fonts/estedad-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #07111e; --navy: #0e2746; --navy-2: #14335a; --frame: #1f4068; --steel: #3a6073;
  --gold: #c5a568; --gold-hi: #e2c98f; --gold-deep: #8f7440; --ivory: #faf8f2; --mist: #b7c4d2; --fog: #7d92a8;
  --sea: #6fcfb0; --coral: #e8907c;
  --sans: "Vazirmatn", Tahoma, "Segoe UI", Roboto, sans-serif; --head: "Estedad", "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.kiosk { font-size: clamp(18px, 1.15vmin + 9px, 30px); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; color: var(--ivory); font-family: var(--sans); font-size: 1rem; line-height: 1.8;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  background: var(--ink) url("/img/bg-portrait.jpg") center top / cover fixed no-repeat; }
@media (min-aspect-ratio: 1/1) { body { background-image: url("/img/bg-wide.jpg"); } }
main { flex: 1; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.4; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--gold); text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }
svg { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute !important; width: 1px !important; height: 1px; margin: 0 !important; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
html:not(.kiosk) .only-kiosk { display: none !important; }
html.kiosk .only-mobile { display: none !important; }

/* سربرگ */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; padding-top: max(.7rem, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ivory); }
.medal { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgb(197 165 104 / .18); overflow: hidden; flex: none; }
.medal img { width: 84%; height: 84%; object-fit: contain; }
.brand-txt { display: grid; line-height: 1.25; white-space: nowrap; }
.brand-txt b { font-family: var(--head); font-weight: 800; font-size: 1.05rem; }
.brand-txt small { color: var(--gold); font-size: .68rem; letter-spacing: .12em; font-weight: 600; }
.nav { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin-inline-end: -1rem; padding-inline-end: 1rem; }
.nav::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .top { flex-wrap: wrap; row-gap: .5rem; } .nav { flex: 1 1 100%; margin-inline: -1rem; padding-inline: 1rem; } }
.nav a { white-space: nowrap; padding: .3rem .75rem; border-radius: 999px; color: var(--mist); font-size: .8rem; font-weight: 500; border: 1px solid transparent; }
.nav a[aria-current] { color: var(--gold); border-color: rgb(197 165 104 / .45); }
.foot { padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); text-align: center; color: var(--fog); font-size: .78rem; border-top: 1px solid rgb(31 64 104 / .6); margin-top: 3rem; }
.foot-sub { color: var(--gold); margin-top: .2rem; }

/* متن‌ها */
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.display { font-size: clamp(1.75rem, 6.2vw, 2.9rem); font-weight: 800; margin-top: .25rem; }
.h2 { font-size: 1.3rem; font-weight: 700; }
.h3 { font-size: 1.05rem; font-weight: 700; }
.lead { color: var(--mist); max-width: 62ch; margin-top: .6rem; }
.lead-sm { color: var(--mist); font-size: .9rem; margin-top: .5rem; }
.fine { color: var(--fog); font-size: .74rem; text-align: center; }
.center { text-align: center; }
.center .lead, .center .btn { margin-inline: auto; }

/* دکمه‌ها */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; padding: .55rem 1.15rem; border-radius: .85rem; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.4; text-align: center; transition: transform .16s var(--ease), background-color .2s, border-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ghost { background: rgb(250 248 242 / .06); color: var(--ivory); border-color: var(--frame); }
.btn-line { background: transparent; color: var(--gold); border-color: rgb(197 165 104 / .55); }
.btn-danger { background: transparent; color: var(--coral); border-color: rgb(232 144 124 / .5); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 2.3rem; padding: .25rem .8rem; font-size: .82rem; border-radius: .65rem; }
.btn-xl { min-height: 3.8rem; font-size: 1.15rem; padding-inline: 2rem; border-radius: 1.1rem; box-shadow: 0 10px 34px -12px rgb(197 165 104 / .7); }
.btn.busy { pointer-events: none; opacity: .7; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
.btn-col { display: grid; gap: .6rem; margin-top: 1.1rem; }
.link { background: none; border: 0; padding: .4rem 0; color: var(--gold); font-size: .85rem; font-weight: 600; }
.link[disabled] { color: var(--fog); cursor: default; }
.row-links { display: flex; justify-content: space-between; gap: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--gold-hi); } .btn-ghost:hover { border-color: var(--gold); } .btn-line:hover { background: rgb(197 165 104 / .12); }
  .nav a:hover { color: var(--ivory); }
}

/* فرم */
.form { display: grid; gap: .85rem; margin-top: 1rem; }
.card-form { background: rgb(14 39 70 / .82); border: 1px solid var(--frame); border-radius: 1.1rem; padding: 1.15rem; margin-top: 1.4rem; }
.field { display: grid; gap: .3rem; }
.field > span, .chips legend { font-size: .82rem; color: var(--mist); font-weight: 500; }
input[type="text"], input[type="tel"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; min-height: 3.1rem; padding: .6rem .9rem; background: rgb(7 17 30 / .7); border: 1px solid var(--frame); border-radius: .8rem; color: var(--ivory); font-size: 1rem; outline: none;
  transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 6.5rem; line-height: 1.8; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(197 165 104 / .18); }
input::placeholder, textarea::placeholder { color: var(--fog); opacity: .8; }
input[dir="ltr"] { text-align: left; letter-spacing: .04em; }
html[dir="rtl"] input[dir="ltr"]::placeholder { text-align: right; letter-spacing: 0; }
.grid2 { display: grid; gap: .85rem; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips legend { width: 100%; margin-bottom: .45rem; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--frame); border-radius: 999px; font-size: .85rem; color: var(--mist); transition: all .2s; }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.err { color: var(--coral); font-size: .85rem; min-height: 0; }
.err:empty, .note:empty { display: none; }
.note { color: var(--sea); font-size: .85rem; margin-top: .5rem; }
.note.bad { color: var(--coral); }
.ok { color: var(--sea); font-size: .9rem; }
.done-box { background: rgb(14 39 70 / .82); border: 1px solid rgb(111 207 176 / .4); border-radius: 1.1rem; padding: 1.4rem; margin-top: 1.4rem; display: grid; gap: .7rem; justify-items: start; }

/* چیدمان عمومی */
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; padding-block: 1.6rem; }
.wrap.narrow { width: min(100% - 2rem, 40rem); }
.wrap.wide { width: min(100% - 2rem, 84rem); }
.split { display: grid; gap: 2rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.hero { position: relative; isolation: isolate; }
.hero-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--img) center / cover no-repeat; opacity: .5;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.hero-in { width: min(100% - 2rem, 68rem); margin-inline: auto; padding: clamp(2.2rem, 9vw, 5.5rem) 0 1.2rem; }
.chip-line { display: inline-block; margin-top: .8rem; padding: .25rem .9rem; border: 1px solid rgb(197 165 104 / .5); border-radius: 999px; color: var(--gold-hi); font-size: .82rem; font-weight: 600; background: rgb(7 17 30 / .55); }
.award { margin-top: .9rem; color: var(--gold); font-size: .88rem; font-weight: 600; }
.addr { display: flex; gap: .45rem; align-items: flex-start; color: var(--mist); font-size: .86rem; margin-top: 1rem; }
.addr svg { margin-top: .3em; color: var(--gold); }
.offers { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.offers li { display: grid; gap: .1rem; padding: .85rem 1rem; background: rgb(14 39 70 / .82); border: 1px solid var(--frame); border-inline-start: 3px solid var(--gold); border-radius: .9rem; }
.offers b { font-family: var(--head); font-size: 1.02rem; }
.offers span { color: var(--mist); font-size: .86rem; }

/* کارت دعوت VIP */
.vcard { position: relative; overflow: hidden; padding: 1.4rem; border-radius: 1.25rem; border: 1px solid rgb(197 165 104 / .55);
  background: linear-gradient(150deg, #10294a, #07111e 70%); box-shadow: 0 24px 60px -30px #000; display: grid; gap: .55rem; }
.vcard::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 45%; background: url("/img/bg-wide.jpg") center bottom / cover; opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.vcard > * { position: relative; z-index: 1; }
.vcard-top { display: flex; align-items: center; gap: .8rem; }
.vcard-top b { display: block; font-family: var(--head); font-size: .95rem; }
.vcard-top small { color: var(--fog); font-size: .7rem; line-height: 1.5; display: block; }
.vcard-title { font-family: var(--head); font-weight: 800; font-size: 1.7rem; color: var(--gold-hi); margin-top: .6rem; line-height: 1.3; }
.vcard-sub { color: var(--ivory); font-weight: 600; }
.vcard ul { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .25rem; font-size: .92rem; }
.vcard li::before { content: ""; display: inline-block; width: .4rem; height: .4rem; background: var(--gold); transform: rotate(45deg); margin-inline-end: .6rem; vertical-align: middle; }
.vcard-for { color: var(--mist); font-size: .8rem; margin-top: .3rem; }
.vcard-name { font-weight: 700; color: var(--gold-hi); }
.vcard-offer { color: var(--gold-hi); font-weight: 600; }
.vcard-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed rgb(197 165 104 / .4); font-size: .82rem; color: var(--mist); }
.vcard-foot bdi { color: var(--gold-hi); font-weight: 700; letter-spacing: .04em; }
.vcard-intl { font-size: .95rem; }

/* شعب */
.city { font-size: 1.05rem; color: var(--gold); margin: 2rem 0 .8rem; display: flex; align-items: center; gap: .8rem; }
.city::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgb(197 165 104 / .5), transparent); }
html[dir="rtl"] .city::after { background: linear-gradient(270deg, rgb(197 165 104 / .5), transparent); }
.branch-grid { display: grid; gap: .8rem; margin-top: .8rem; }
@media (min-width: 720px) { .branch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .branch-grid { grid-template-columns: repeat(3, 1fr); } }
.branch { background: rgb(14 39 70 / .82); border: 1px solid var(--frame); border-radius: 1rem; padding: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.branch.is-vip { border-color: rgb(197 165 104 / .6); }
.branch-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.branch h3 { font-size: 1.02rem; }
.branch-tag { color: var(--gold); font-size: .8rem; }
.branch .addr { margin-top: .4rem; flex: 1; }
.branch-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.branch-actions .btn { min-height: 2.6rem; font-size: .84rem; padding: .3rem .8rem; flex: 1 1 auto; }
.badge { font-size: .68rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; background: var(--gold); color: var(--ink); white-space: nowrap; }

/* بین‌المللی */
.langs { display: flex; justify-content: center; gap: .4rem; padding: .3rem 1rem; flex-wrap: wrap; }
.langs a { padding: .35rem 1rem; border-radius: 999px; border: 1px solid var(--frame); color: var(--mist); font-size: .88rem; font-weight: 600; background: rgb(7 17 30 / .6); }
.langs a[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.facts li { text-align: center; padding: 1rem .5rem; background: rgb(14 39 70 / .82); border: 1px solid var(--frame); border-radius: 1rem; }
.facts b { display: block; font-family: var(--head); font-size: clamp(1.5rem, 6vw, 2.4rem); font-weight: 800; color: var(--gold-hi); line-height: 1.2; }
.facts span { font-size: .78rem; color: var(--mist); line-height: 1.5; display: block; margin-top: .3rem; }
.media { margin-top: 1.2rem; border-radius: 1.1rem; overflow: hidden; border: 1px solid var(--frame); aspect-ratio: 16 / 9; background: var(--navy); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.side-img { border-radius: 1.1rem; border: 1px solid var(--frame); margin-top: 1.2rem; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.scan { display: flex; align-items: center; gap: 1rem; padding: .9rem; background: rgb(14 39 70 / .82); border: 1px solid var(--frame); border-radius: 1rem; margin-top: 1rem; }
.scan b { font-family: var(--head); font-size: .95rem; } .scan p { color: var(--mist); font-size: .82rem; }
.qr { flex: none; width: 7.5rem; height: 7.5rem; background: var(--ivory); border-radius: .6rem; padding: .35rem; }
.qr svg { width: 100%; height: 100%; stroke: none; fill: initial; }
html:not(.kiosk) .p-intl .scan { display: none; }
@media (min-width: 860px) { html:not(.kiosk) .p-intl .scan { display: flex; } }

/* ───── گردونه ───── */
.game { width: min(100% - 2rem, 76rem); margin-inline: auto; padding-block: .6rem 2rem; display: grid; gap: 1.4rem; justify-items: center; }
.game-wheel { display: grid; justify-items: center; text-align: center; width: 100%; }
.game-wheel .lead { margin-inline: auto; font-size: .92rem; }
.wheel-wrap { position: relative; width: min(88vw, 54dvh, 30rem); aspect-ratio: 1; margin: 1.3rem 0 1.5rem; filter: drop-shadow(0 24px 40px rgb(0 0 0 / .55)); }
.wheel { width: 100%; height: 100%; border-radius: 50%; transition: transform 5.4s cubic-bezier(.1, .7, .1, 1); will-change: transform; }
.wheel svg { width: 100%; height: 100%; display: block; stroke: none; }
.wheel-pointer { position: absolute; z-index: 2; top: -3.5%; left: 50%; width: 9%; aspect-ratio: 1 / 1.25; transform: translateX(-50%);
  background: linear-gradient(var(--gold-hi), var(--gold)); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 3px 4px rgb(0 0 0 / .5)); }
.wheel-hub { position: absolute; z-index: 2; inset: 37%; border-radius: 50%; border: 0; padding: 0; background: var(--ivory); box-shadow: 0 0 0 .28rem var(--gold), 0 0 0 .55rem rgb(7 17 30 / .85), 0 6px 20px rgb(0 0 0 / .5); display: grid; place-items: center; overflow: hidden; }
.wheel-hub img { width: 82%; height: 82%; object-fit: contain; }
.game[data-state="intro"] .wheel-hub { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 .28rem var(--gold-hi), 0 0 0 .8rem rgb(197 165 104 / .25), 0 6px 20px rgb(0 0 0 / .5); } }
.game-panel { width: min(100%, 30rem); display: none; background: rgb(11 30 55 / .9); border: 1px solid var(--frame); border-radius: 1.3rem; padding: 1.15rem; backdrop-filter: blur(6px); }
.step { display: none; }
.game[data-state="result"] .game-panel, .game[data-state="otp"] .game-panel, .game[data-state="done"] .game-panel, .game[data-state="already"] .game-panel { display: block; animation: rise .5s var(--ease) both; }
.game[data-state="result"] [data-step="result"], .game[data-state="otp"] [data-step="otp"], .game[data-state="done"] [data-step="done"], .game[data-state="already"] [data-step="already"] { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
/* موبایل: پس از توقف گردونه، خود گردونه کنار می‌رود تا کارت هدیه و فرم دیده شود */
html:not(.kiosk) .game:not([data-state="intro"]):not([data-state="spinning"]) .game-wheel { display: none; }
.game[data-state="spinning"] #spin { opacity: .55; pointer-events: none; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .game { min-height: calc(100dvh - 9rem); align-content: center; }
  .game:not([data-state="intro"]):not([data-state="spinning"]) { grid-template-columns: 1fr 1fr; align-items: center; }
  html:not(.kiosk) .game:not([data-state="intro"]):not([data-state="spinning"]) .game-wheel { display: grid; }
  .game:not([data-state="intro"]):not([data-state="spinning"]) .game-wheel > :not(.wheel-wrap) { display: none; }
}
.prize { display: grid; gap: .8rem; }
.prize-img { position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy); }
.prize-img img { width: 100%; height: 100%; object-fit: cover; }
.prize-img small { position: absolute; inset-inline-end: .5rem; bottom: .4rem; font-size: .62rem; color: rgb(250 248 242 / .75); background: rgb(7 17 30 / .6); padding: 0 .5rem; border-radius: 999px; }
.prize-title { font-size: 1.5rem; font-weight: 800; color: var(--gold-hi); margin-top: .1rem; }
.prize-gift { color: var(--ivory); font-weight: 600; }
.form-lead { color: var(--mist); font-size: .88rem; }
.otp-input { text-align: center !important; font-size: 1.9rem !important; letter-spacing: .5em !important; font-weight: 700; min-height: 4rem !important; padding-inline-start: 1.4em !important; }
.code-card { margin: 1rem 0; padding: 1rem; text-align: center; border-radius: 1rem; border: 1px dashed var(--gold); background: rgb(197 165 104 / .08); display: grid; gap: .1rem; }
.code-card span { color: var(--mist); font-size: .8rem; }
.code-card b { font-family: var(--head); font-size: 2.6rem; font-weight: 800; letter-spacing: .14em; color: var(--ivory); line-height: 1.3; }
.code-card small { color: var(--gold); font-size: .82rem; font-weight: 600; }
.invite { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--frame); }
.invite-form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-top: .8rem; }
.kiosk-end { margin-top: 1.2rem; display: grid; gap: .5rem; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* کیوسک */
.numpad { width: min(100%, 26rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; direction: ltr; }
.numpad button { min-height: 3.6rem; border-radius: .9rem; border: 1px solid var(--frame); background: rgb(14 39 70 / .9); font-size: 1.5rem; font-weight: 700; font-family: var(--head); }
.numpad button:active { background: var(--gold); color: var(--ink); }
.numpad button[data-k="ok"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
html.kiosk .top { justify-content: center; }
html.kiosk .game { min-height: calc(100dvh - 5rem); align-content: center; }
html.kiosk .game-panel { width: min(100%, 34rem); }
/* کیوسک صفحه‌کلید متنی ندارد: نام اختیاری است و فقط شماره با صفحه‌کلید عددی گرفته می‌شود */
html.kiosk .field[for="name"], html.kiosk #claimForm .fine { display: none; }
html.kiosk .prize-img { aspect-ratio: 16 / 7; }
html.kiosk .game { gap: 1rem; padding-block: .3rem .8rem; }
@media (max-aspect-ratio: 1/1) {
  html.kiosk .game:not([data-state="intro"]):not([data-state="spinning"]) .game-wheel > :not(.wheel-wrap) { display: none; }
  html.kiosk .game:not([data-state="intro"]):not([data-state="spinning"]) .wheel-wrap { width: min(40vw, 19dvh); margin: 0; }
  html.kiosk .wheel-wrap { width: min(86vw, 50dvh); }
}
@media (min-aspect-ratio: 1/1) {
  html.kiosk .game:not([data-state="intro"]):not([data-state="spinning"]) { grid-template-columns: 1fr 1fr; align-items: center; }
  html.kiosk .game:not([data-state="intro"]):not([data-state="spinning"]) .game-wheel > :not(.wheel-wrap) { display: none; }
  html.kiosk { font-size: clamp(15px, 1.55vh, 28px); }
  html.kiosk .wheel-wrap { width: min(44vw, 74dvh); }
  html.kiosk .numpad { grid-column: 2; }
  html.kiosk .game-wheel { grid-row: span 2; }
}
.saver { position: fixed; inset: 0; z-index: 60; background: var(--ink); }
.saver-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.saver-slide.on { opacity: 1; }
.saver-slide img { width: 100%; height: 100%; object-fit: cover; animation: kb 14s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.saver-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(7 17 30 / .25), rgb(7 17 30 / .1) 40%, rgb(7 17 30 / .94) 82%); }
.saver-txt { position: absolute; z-index: 1; inset-inline: 6vw; bottom: 16vh; display: grid; gap: .6rem; }
.saver-txt h2 { font-size: clamp(2rem, 6vmin, 4.5rem); font-weight: 800; }
.saver-txt p:last-child { color: var(--mist); font-size: clamp(1rem, 2.6vmin, 1.8rem); }
.saver-txt .eyebrow { font-size: clamp(.9rem, 2.2vmin, 1.5rem); }
.saver-tap { position: absolute; z-index: 1; inset-inline: 0; bottom: 6vh; text-align: center; color: var(--gold-hi); font-weight: 700; font-size: clamp(1rem, 2.6vmin, 1.7rem); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ───── پنل صندوق و مدیریت ───── */
.panel { background: rgb(14 39 70 / .88); border: 1px solid var(--frame); border-radius: 1.1rem; padding: 1.1rem; margin-top: 1rem; }
.panel > h2 { font-size: 1.05rem; margin-bottom: .8rem; display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bar small { color: var(--mist); }
.search { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.search input { font-size: 1.25rem; min-height: 3.6rem; }
.res { border: 1px solid var(--frame); border-radius: 1rem; padding: 1rem; margin-top: .8rem; background: rgb(7 17 30 / .55); display: grid; gap: .5rem; }
.res.used, .res.expired { opacity: .7; }
.res-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.res-title { font-family: var(--head); font-weight: 800; font-size: 1.2rem; color: var(--gold-hi); }
.res-meta { color: var(--mist); font-size: .84rem; }
.res-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.res-actions .btn { flex: 1 1 10rem; }
.tag { font-size: .72rem; font-weight: 700; padding: .1rem .65rem; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.tag.active { color: var(--sea); } .tag.used { color: var(--fog); } .tag.expired { color: var(--coral); } .tag.gold { color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr)); gap: .6rem; }
.stat { background: rgb(7 17 30 / .55); border: 1px solid var(--frame); border-radius: .9rem; padding: .7rem .8rem; }
.stat b { display: block; font-family: var(--head); font-size: 1.6rem; font-weight: 800; line-height: 1.3; }
.stat span { color: var(--mist); font-size: .76rem; }
.stat small { color: var(--gold); font-size: .72rem; display: block; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { text-align: start; padding: .45rem .6rem; border-bottom: 1px solid rgb(31 64 104 / .6); vertical-align: top; }
th { color: var(--mist); font-weight: 600; font-size: .76rem; white-space: nowrap; }
td bdi, td code { direction: ltr; unicode-bidi: isolate; font-family: inherit; }
.cols { display: grid; gap: 1rem; }
@media (min-width: 960px) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } .cols .panel { margin-top: 0; } .cols { margin-top: 1rem; } }
.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.inline > * { flex: 1 1 9rem; }
.inline .btn { flex: 0 0 auto; }
.secret { background: rgb(197 165 104 / .1); border: 1px dashed var(--gold); border-radius: .8rem; padding: .7rem .9rem; margin-top: .7rem; font-size: .9rem; }
.secret code { font-size: 1.1rem; font-weight: 700; color: var(--gold-hi); direction: ltr; unicode-bidi: isolate; user-select: all; }
.muted { color: var(--fog); font-size: .8rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; font-size: .86rem; }
.kv dt { color: var(--mist); } .kv dd { margin: 0; word-break: break-all; }
.qr-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; }
.qr-row figure { margin: 0; text-align: center; font-size: .74rem; color: var(--mist); width: 9rem; }
.qr-row .qr { width: 9rem; height: 9rem; margin-bottom: .3rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .wheel { transition-duration: .8s; }
}
