/* قیمتِ لحظه‌ای (/live، ۲.۰.۳): صفحه‌ی گرافیکیِ دستگاهِ قیمت. تیره و گرم با زردِ آهن کاوه.
   رنگ معنا دارد: زرد = برند و نمودار، قرمز = گران‌تر، سبز = ارزان‌تر (همیشه با فلش)؛ هیچ تزئینی قرمز یا سبز نیست.
   پس‌زمینه: نورِ شناور + توری + جرقه‌های canvas. جلوه‌ها: لبه‌ی چرخان و برقِ گذرا روی کالای برگزیده، نورِ دنبالِ اشاره‌گر،
   رقم‌های غلتان که با تغییرِ قیمت یک لحظه قرمز یا سبز می‌شوند. ≥۱۱۰۰: یک نما بی اسکرول. حرکت‌ها با prefers-reduced-motion خاموش. */

@font-face { font-family: Vazirmatn; src: url("/fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("/fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF; }

:root {
  --bg: #0C0A09; --glass: rgb(28 25 23 / .66); --line: rgb(255 255 255 / .08); --line-2: rgb(255 255 255 / .16);
  --fg: #FAFAF9; --fg-2: #E7E5E4; --dim: #A8A29E;
  --y: #FACC15; --y2: #FDE047; --y-soft: rgb(250 204 21 / .14); --ink: #1C1917;
  --rise: #F87171; --rise-soft: rgb(248 113 113 / .16); --fall: #34D399; --fall-soft: rgb(52 211 153 / .16);
  --font: Vazirmatn, Tahoma, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 22px; --g: clamp(12px, 1.4vw, 20px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--fg); font: 500 15px/1.7 var(--font); overflow-x: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--y); color: var(--ink); }

/* پس‌زمینه‌ی زنده (فقط زرد و گرم؛ قرمز و سبز برای معنا نگه داشته شده‌اند) */
body::before { content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 25%, rgb(250 204 21 / .2), transparent 70%),
    radial-gradient(35% 30% at 85% 70%, rgb(234 179 8 / .13), transparent 70%),
    radial-gradient(30% 30% at 60% 8%, rgb(251 146 60 / .07), transparent 70%);
  filter: blur(10px); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%); }
.lx-sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { body::before { animation: lx-aurora 28s ease-in-out infinite alternate; } }
@keyframes lx-aurora { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(3%, -2%) rotate(6deg); } 100% { transform: translate(-3%, 3%) rotate(-4deg); } }

.lx { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto auto; grid-template-columns: minmax(0, 1fr); max-width: 1920px; margin-inline: auto; }

/* سرِ صفحه */
.lx-top { display: flex; align-items: center; gap: 16px; padding: calc(12px + env(safe-area-inset-top)) var(--g) 12px; }
.lx-logo img { display: block; height: 40px; width: auto; }
.lx-title { min-width: 0; }
.lx-title h1 { margin: 0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 900; line-height: 1.3; }
.lx-title p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--dim); font-size: 13px; }
.lx-live { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px 1px 8px; border-radius: 999px; background: var(--y-soft); color: var(--y); font-weight: 800; font-size: 12.5px; }
.lx-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lx-live.beat i { animation: lx-ping 1.2s ease-out; }
@keyframes lx-ping { 0% { box-shadow: 0 0 0 0 rgb(250 204 21 / .75); } 100% { box-shadow: 0 0 0 10px rgb(250 204 21 / 0); } }
.lx.off .lx-live { background: rgb(255 255 255 / .1); color: var(--fg-2); }
.lx.off .lx-live i { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.lx.off #lx-at { color: var(--y2); }
.lx-when { margin-inline-start: auto; display: grid; justify-items: end; gap: 2px; padding: 8px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.lx-clock { font: 800 clamp(18px, 1.8vw, 28px)/1 var(--font); color: var(--fg); font-variant-numeric: tabular-nums; }
.lx-clock .s { color: var(--y); }
#lx-date { color: var(--dim); font-size: 12px; font-weight: 700; line-height: 1.2; }
.lx-tools { display: flex; gap: 8px; }
.lx-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(12px); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s; }
.lx-btn:hover { border-color: var(--y); }
.lx-btn.icon { width: 44px; padding: 0; justify-content: center; }
.lx-btn[hidden] { display: none; }
.lx-phone { color: var(--y); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
#lx-install { border-color: rgb(250 204 21 / .6); color: var(--y); }
:is(.lx-btn, .lx-row, .lx-ring, .lx-dots button, .lx-order, .lx-contact a):focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }

/* چیدمان */
.lx-main { display: grid; gap: var(--g); padding: 4px var(--g) var(--g); grid-template-columns: minmax(0, 1fr); align-content: start; }
@media (min-width: 1100px) {
  .lx { height: 100dvh; }
  .lx-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
  .lx-hero { grid-row: 1; grid-column: 1; min-height: 0; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; }
  .lx-list { grid-row: 1 / span 2; grid-column: 2; min-height: 0; }
  .lx-markets { grid-row: 2; grid-column: 1; }
  .lx-main .lx-contact { display: none; }
  .lx.no-markets .lx-main .lx-contact { display: grid; grid-row: 2; grid-column: 1; }
  .lx-odo { font-size: clamp(48px, 6vw, 108px); }
  .lx-chart { min-height: 0; }
}

/* کارتِ شیشه‌ای + نورِ دنبالِ اشاره‌گر */
.lx-hero, .lx-panel, .lx-mk { position: relative; border-radius: var(--r); background-color: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .8); isolation: isolate; }
.lx-panel::after, .lx-mk::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgb(250 204 21 / .1), transparent 65%); }
:is(.lx-panel, .lx-mk):hover::after { opacity: 1; }

/* کالای برگزیده: لبه‌ی چرخان، برقِ گذرا هنگامِ عوض شدن */
.lx-hero { display: grid; grid-template-rows: auto auto auto auto minmax(140px, 1fr) auto; gap: 6px; padding: clamp(18px, 2vw, 30px); overflow: hidden;
  background-image: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .08) 50%, transparent 58%); background-size: 260% 100%; background-position: 160% 0; background-repeat: no-repeat; }
.lx-hero.sheen { animation: lx-sheen 1.3s cubic-bezier(.3, .7, .2, 1); }
@keyframes lx-sheen { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.lx-hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 60%, rgb(250 204 21 / .9) 75%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.lx-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 85%) var(--my, 0%), rgb(250 204 21 / .16), transparent 70%); transition: background .1s; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@media (prefers-reduced-motion: no-preference) { .lx-hero::before { animation: lx-spin 9s linear infinite; } }
@keyframes lx-spin { to { --a: 360deg; } }

.lx-hero-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lx-cat { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 6px; border-radius: 999px; background: var(--y); color: var(--ink); font-weight: 800; font-size: 13.5px; }
.lx-cat .picon { width: 26px; height: 26px; padding: 2px; border-radius: 50%; background: #FFFFFF; }
.lx-status { font-size: 13px; font-weight: 700; color: var(--dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-status.stale { color: var(--y2); }
/* دکمه‌ی حلقه: شمارنده‌ی چرخش؛ زدن = مکث/پخش */
.lx-ring { margin-inline-start: auto; position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.lx-ring svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.lx-ring circle { stroke: rgb(255 255 255 / .12); stroke-width: 3; fill: none; }
.lx-ring .lx-ring-on { stroke: var(--y); stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.lx-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 11.5px/1 var(--font); color: var(--fg-2); transition: opacity .2s; }
.lx-pause { position: absolute; inset: 0; margin: auto; width: 12px; height: 14px; opacity: 0; transition: opacity .2s; border-inline: 4px solid var(--y); }
.lx-ring:is(:hover, :focus-visible) b { opacity: 0; }
.lx-ring:is(:hover, :focus-visible) .lx-pause { opacity: 1; }
.lx-ring[aria-pressed="true"] b { opacity: 0; }
.lx-ring[aria-pressed="true"] .lx-pause { opacity: 1; width: 14px; border: 0; background: var(--y); clip-path: polygon(15% 0, 100% 50%, 15% 100%); }
.lx-name { margin: 8px 0 0; font-size: clamp(22px, 2.6vw, 40px); font-weight: 900; line-height: 1.35; }
.lx-name.in { animation: lx-in .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lx-in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }

/* رقم‌های غلتان */
.lx-price { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.lx-odo { display: flex; align-items: flex-end; font-weight: 900; font-size: clamp(54px, 7.4vw, 124px); line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; transition: opacity .4s; }
.lx-odo.tick-up { animation: lx-tu 2.4s ease-out; }
.lx-odo.tick-down { animation: lx-td 2.4s ease-out; }
@keyframes lx-tu { 0%, 35% { color: var(--rise); } }
@keyframes lx-td { 0%, 35% { color: var(--fall); } }
.lx-d { display: inline-block; height: 1.1em; overflow: hidden; position: relative; }
.lx-d > span { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(.2, .9, .1, 1); }
.lx-d > span > i { font-style: normal; height: 1.1em; display: grid; place-items: center; }
.lx-sep { display: inline-block; width: .32em; text-align: center; color: var(--y); }
.lx-unit { color: var(--dim); font-size: clamp(14px, 1.1vw, 17px); font-weight: 700; padding-bottom: .9em; }
.lx-change { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 34px; }
.lx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: rgb(255 255 255 / .08); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.lx-chip.up { background: var(--rise-soft); color: #FCA5A5; }
.lx-chip.down { background: var(--fall-soft); color: #86EFAC; }
.lx-chip small { font-weight: 600; font-size: 12.5px; color: var(--fg-2); }
.lx.off :is(.lx-odo, .lx-row .p, .lx-mk .v) { opacity: .45; }

/* نمودار: خطِ زرد، برچسبِ بیشینه و کمینه کنارِ همان نقطه */
.lx-chart { position: relative; min-height: 140px; margin-bottom: 26px; }
.lx-chart svg.lc { width: 100%; height: 100%; display: block; overflow: visible; }
.lc .grid line { stroke: rgb(255 255 255 / .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc .line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.lc .area { stroke: none; }
.lx-chart .lbl { position: absolute; font-size: 12px; font-weight: 700; color: var(--dim); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.lx-chart .lbl.hi { transform: translate(-50%, -150%); color: var(--fg-2); }
.lx-chart .lbl.lo { transform: translate(-50%, 45%); }
.lx-chart .mark { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--y); pointer-events: none; }
.lx-chart .tip { position: absolute; z-index: 2; transform: translate(-50%, -125%); padding: 4px 10px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.lx-chart .cross { position: absolute; top: 0; bottom: 0; width: 1px; background: rgb(255 255 255 / .25); pointer-events: none; }
.lx-chart .end { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--y); pointer-events: none; }
.lx-chart .pulse { display: grid; place-items: center; height: 100%; min-height: 140px; color: var(--dim); font-size: 13.5px; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .lc .line.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: lx-draw 1.6s cubic-bezier(.4, 0, .2, 1) forwards; }
  .lc .area.draw { opacity: 0; animation: lx-fade 1.2s .5s ease forwards; }
  .lx-chart .end { animation: lx-land .9s 1.5s ease-out both; }
  .lx-chart :is(.lbl.hi, .lbl.lo, .mark) { animation: lx-fade .5s 1.3s ease both; opacity: 0; }
}
@keyframes lx-draw { to { stroke-dashoffset: 0; } }
@keyframes lx-fade { to { opacity: 1; } }
@keyframes lx-land { 0% { transform: scale(.6); opacity: 0; box-shadow: 0 0 0 0 rgb(250 204 21 / .7); } 50% { transform: scale(1.3); } 100% { transform: scale(1); box-shadow: 0 0 0 16px rgb(250 204 21 / 0); } }

/* نقطه‌ها: ناحیه‌ی لمسِ ۲۴ پیکسل، نشانه‌ی کوچک */
.lx-dots { display: flex; flex-wrap: wrap; justify-content: center; }
.lx-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: width .2s cubic-bezier(.23, 1, .32, 1); }
.lx-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 9px; background: rgb(255 255 255 / .22); transition: width .2s cubic-bezier(.23, 1, .32, 1), background-color .2s; }
.lx-dots button[aria-pressed="true"] { width: 36px; }
.lx-dots button[aria-pressed="true"]::before { width: 26px; background: var(--y); }

/* فهرست */
.lx-panel { padding: 16px; display: grid; gap: 10px; align-content: start; }
.lx-list { grid-template-rows: auto minmax(0, 1fr); }
.lx-panel h3 { margin: 0; font-size: 16px; font-weight: 900; color: var(--y); display: flex; align-items: center; gap: 8px; }
.lx-panel h3 small { color: var(--dim); font-weight: 600; font-size: 12.5px; }
.lx-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; min-height: 0; align-content: start; }
.lx-row { width: 100%; text-align: start; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "c n p" "c b k"; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / .035); border: 1px solid transparent; cursor: pointer; transition: background .25s, border-color .25s; overflow: hidden; }
.lx-row:hover { background: rgb(255 255 255 / .07); }
.lx-row.on { border-color: rgb(250 204 21 / .55); background: var(--y-soft); }
.lx-row .c { grid-area: c; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(255 255 255 / .06); }
.lx-row .c .picon { width: 34px; height: 34px; }
.lx-row.on .c { background: rgb(250 204 21 / .2); box-shadow: inset 0 0 0 1px rgb(250 204 21 / .7); }
.lx-row .n { grid-area: n; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-row .n small { margin-inline-start: 8px; font-size: 11.5px; font-weight: 700; color: var(--y2); }
.lx-row .p { grid-area: p; justify-self: end; font-weight: 900; font-size: 19px; font-variant-numeric: tabular-nums; transition: opacity .4s; }
.lx-row .b { grid-area: b; height: 22px; }
.lx-row .b svg { width: 100%; height: 22px; display: block; }
.lx-row .k { grid-area: k; justify-self: end; font-size: 13px; font-weight: 800; color: var(--dim); font-variant-numeric: tabular-nums; }
.lx-row .k.up { color: var(--rise); } .lx-row .k.down { color: var(--fall); }
.lx-row.stale .p { color: var(--dim); }
.lx-row.flash-up { animation: lx-fu 2s ease-out; } .lx-row.flash-down { animation: lx-fd 2s ease-out; }
@keyframes lx-fu { from { background: var(--rise-soft); border-color: var(--rise); } }
@keyframes lx-fd { from { background: var(--fall-soft); border-color: var(--fall); } }
@media (prefers-reduced-motion: no-preference) {
  .lx-row.enter { animation: lx-rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@keyframes lx-rise { from { opacity: 0; transform: translateY(10px); } }

/* بازارها */
.lx-markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--g); }
.lx-markets[hidden] { display: none; }
.lx-mk { padding: 14px 16px 10px; display: grid; gap: 2px; overflow: hidden; }
.lx-mk .t { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-weight: 700; font-size: 14px; }
.lx-mk .sym { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--y-soft); color: var(--y); font: 800 13px/1 var(--mono); }
.lx-mk .v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; transition: opacity .4s; }
.lx-mk .v b { font-weight: 900; font-size: clamp(18px, 1.5vw, 26px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-mk .v small { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.lx-mk .k { font-size: 13px; font-weight: 800; color: var(--dim); } .lx-mk .k.up { color: var(--rise); } .lx-mk .k.down { color: var(--fall); }
.lx-mk .s { height: 42px; margin-top: 4px; } .lx-mk .s svg { width: 100%; height: 42px; display: block; }
.lx-mk .s .wait { display: block; font-size: 12px; color: var(--dim); border-top: 1px dashed var(--line-2); padding-top: 8px; }

/* تماس و QR */
.lx-contact { grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 16px; }
.lx-qr { background: #fff; border-radius: 14px; padding: 8px; }
.lx-qr svg { width: 100%; height: auto; display: block; stroke: none; }
.lx-contact b { display: block; font-size: 17px; }
.lx-contact a[dir="ltr"] { display: block; font-weight: 900; font-size: 22px; line-height: 1.5; color: var(--y); text-decoration: none; text-align: start; font-variant-numeric: tabular-nums; }
.lx-hint { display: block; color: var(--dim); font-size: 13px; margin: 4px 0 10px; }
.lx-order { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--y); color: var(--ink); font-weight: 800; text-decoration: none; }

/* پیام و نوارِ روان (روی هاور می‌ایستد) */
.lx-promo { margin: 0 var(--g) 10px; padding: 10px 16px; border-radius: 14px; background: var(--y); color: var(--ink); font-weight: 800; overflow: hidden; white-space: nowrap; }
.lx-promo[hidden] { display: none; }
.lx-promo span { display: inline-block; padding-inline-start: 100%; }
@media (prefers-reduced-motion: no-preference) { .lx-promo span { animation: lx-marq 22s linear infinite; } }
.lx-tape { border-top: 1px solid var(--line); background: rgb(12 10 9 / .75); overflow: hidden; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.lx-tape-run { display: inline-flex; gap: 36px; white-space: nowrap; padding-inline-start: 100%; font-weight: 700; color: var(--fg-2); }
.lx-tape-run b { color: var(--fg); font-variant-numeric: tabular-nums; margin-inline: 6px; }
.lx-tape-run .up { color: var(--rise); } .lx-tape-run .down { color: var(--fall); }
@media (prefers-reduced-motion: no-preference) { .lx-tape-run { animation: lx-marq var(--dur, 40s) linear infinite; } }
.lx-tape:hover .lx-tape-run, .lx-promo:hover span { animation-play-state: paused; }
@keyframes lx-marq { to { transform: translateX(100%); } }

.lx-ios { border: 1px solid var(--line-2); border-radius: 16px; background: var(--ink); color: var(--fg); max-width: 340px; }
.lx-ios::backdrop { background: rgb(0 0 0 / .6); }

@media (max-width: 640px) {
  .lx-top { flex-wrap: wrap; gap: 10px; }
  .lx-logo img { height: 32px; }
  .lx-title { flex: 1; }
  .lx-when { padding: 6px 10px; }
  .lx-clock { font-size: 16px; }
  #lx-date { display: none; }
  .lx-tools { width: 100%; }
  .lx-phone { margin-inline-end: auto; }
  /* فقط از دید پنهان: صفحه‌خوان «نصب روی گوشی» را نامِ دکمه می‌خواند */
  .lx-btn:not(.icon, .lx-phone) span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #lx-install { width: 44px; padding: 0; justify-content: center; }
  .lx-hero { grid-template-rows: auto auto auto auto 160px auto; }
  .lx-contact { grid-template-columns: minmax(0, 1fr); }
  .lx-qr, .lx-hint { display: none; }
}
/* تمام‌صفحه روی تلویزیون: بی دکمه، نشانگر پنهان پس از سه ثانیه */
.tv .lx-tools { display: none; }
.tv body.idle { cursor: none; }

/* کاهشِ حرکت (۹ آبان ۱۴۰۵): نوار و پیام بی فاصله‌ی شروع و با اسکرول؛ کاشی‌های عدد بی چرخش */
@media (prefers-reduced-motion: reduce) {
  .lx-tape { overflow-x: auto; }
  .lx-tape-run, .lx-promo span { padding-inline-start: 16px; }
  .lx-promo { overflow-x: auto; }
  .lx-d > span { transition: none; }
}
