/* iamamirhossein.ir — the room */
@font-face { font-family: 'Sacramento'; src: url(../fonts/sacramento-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Syne'; src: url(../fonts/syne-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Syne'; src: url(../fonts/syne-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../fonts/manrope-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../fonts/manrope-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../fonts/manrope-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JBM'; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JBM'; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url(../fonts/vazirmatn-arabic-300-normal.woff2) format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn'; src: url(../fonts/vazirmatn-arabic-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn'; src: url(../fonts/vazirmatn-arabic-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn'; src: url(../fonts/vazirmatn-arabic-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Vazirmatn'; src: url(../fonts/vazirmatn-arabic-900-normal.woff2) format('woff2'); font-weight: 800 900; font-display: swap; unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #040507;
  --fg: #eceae4;
  --fg-2: #b6b5b0;
  --muted: #74747a;
  --line: rgba(236, 234, 228, .09);
  --line-2: rgba(236, 234, 228, .18);
  --cyan: #46e6ff;
  --pink: #ff3d8b;
  --frost: #9fd6ff;
  --steam: #66c0f4;
  --kick: #53fc18;
  --twitch: #a970ff;
  --display: 'Syne', 'Vazirmatn', system-ui, sans-serif;
  --body: 'Manrope', 'Vazirmatn', system-ui, sans-serif;
  --mono: 'JBM', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --pad: clamp(16px, 3vw, 40px);
}
html[lang="fa"] { --display: 'Vazirmatn', 'Syne', system-ui, sans-serif; --body: 'Vazirmatn', 'Manrope', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html.is-loading body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: #001015; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
html[lang="fa"] .mono { letter-spacing: 0; font-family: 'Vazirmatn', var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }

/* ---------------------------------------------------------------- scene */
#scene { position: fixed; inset: 0; z-index: 0; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: default; }
#track { position: relative; z-index: -1; pointer-events: none; }

.fx-vignette { position: fixed; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(ellipse 110% 85% at 50% 50%, transparent 52%, rgba(0,0,0,.72) 100%); }
.fx-grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
 }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-8%,4%)} 40%{transform:translate(5%,-7%)} 60%{transform:translate(-3%,9%)} 80%{transform:translate(9%,2%)} 100%{transform:translate(0,0)} }

/* ---------------------------------------------------------------- boot */
.boot { position: fixed; inset: 0; z-index: 100; background: #020304; color: #8fe9ff; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 4vw, 56px); transition: opacity .9s ease, filter .9s ease; direction: ltr; }
.boot.is-done { opacity: 0; filter: brightness(3) blur(6px); pointer-events: none; }
.boot__head, .boot__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: rgba(143,233,255,.55); }
.boot__log { flex: 1; margin: 32px 0; font-size: clamp(11px, 1.15vw, 14px); line-height: 1.9; letter-spacing: .06em; text-transform: none; white-space: pre-wrap; text-shadow: 0 0 12px rgba(70,230,255,.45); overflow: hidden; }
.boot__log::after { content: '█'; animation: blink 1s steps(1) infinite; }
.boot__bar { flex: 1; max-width: 460px; height: 2px; background: rgba(143,233,255,.12); position: relative; }
.boot__bar i { position: absolute; inset: 0; background: #8fe9ff; transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px #46e6ff; }
#bootPct { color: #d9f8ff; font-size: 13px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 18px var(--pad); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__brand { font: 800 18px/1 'Syne', sans-serif; letter-spacing: -.02em; direction: ltr; }
.nav__brand sup { font-size: 9px; opacity: .6; margin-inline-start: 2px; }
.nav__right { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.nav__clock { color: var(--muted); }
.nav__lang { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; background: rgba(6,8,12,.4); backdrop-filter: blur(8px); transition: background .3s, color .3s; }
.nav__lang:hover { background: var(--fg); color: var(--bg); }
html[lang="en"] .nav__lang span { font-family: 'Vazirmatn', sans-serif; font-size: 15px; }
.livepill { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2);
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); background: rgba(8,10,14,.5); backdrop-filter: blur(10px); white-space: nowrap; }
html[lang="fa"] .livepill { letter-spacing: 0; font-family: var(--body); font-size: 12px; }
.livepill i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.livepill[data-state="check"] i { animation: blink 1s infinite; }
.livepill[data-state="live"] { color: #fff; border-color: color-mix(in srgb, var(--lc) 60%, transparent); background: color-mix(in srgb, var(--lc) 16%, rgba(8,10,14,.6)); }
.livepill[data-state="live"] i { background: var(--lc); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lc, #f35) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* ---------------------------------------------------------------- station rail */
.stations { position: fixed; inset-inline-end: var(--pad); bottom: clamp(24px, 5vh, 56px); z-index: 30; display: flex; flex-direction: column; gap: 6px; }
.stations button { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 0; color: var(--muted); transition: color .3s; }
.stations button b { font: 600 13px var(--body); opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .5s var(--ease); }
html[dir="rtl"] .stations button b { transform: translateX(-8px); }
.stations button::after { content: ''; width: 18px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.stations button:hover, .stations button.is-active { color: var(--fg); }
.stations button:hover b, .stations button.is-active b { opacity: 1; transform: none; }
.stations button.is-active::after { width: 40px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pager { display: none; }

/* ---------------------------------------------------------------- intro overlay */
.intro { position: fixed; inset-inline-start: var(--pad); bottom: clamp(24px, 5vh, 56px); z-index: 20; max-width: 470px; opacity: 0; transform: translateY(20px); transition: opacity .5s linear, transform 1.4s var(--ease); }
.intro.is-shown { transform: none; }
.intro__kicker { color: var(--cyan); margin: 0 0 12px; text-shadow: 0 0 14px rgba(70,230,255,.4); }
.intro__role { margin: 0 0 14px; font: 600 clamp(20px, 2.1vw, 28px)/1.2 var(--body); display: flex; align-items: center; gap: 14px; min-height: 1.3em; }
.intro__dash { width: 40px; height: 1px; background: var(--pink); box-shadow: 0 0 10px var(--pink); flex: none; }
#role .sc { color: var(--cyan); }
.intro__bio { margin: 0 0 22px; color: var(--fg-2); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.7; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
html[lang="fa"] .intro__bio { line-height: 2; }
.intro__cta { display: flex; align-items: center; gap: 14px; color: var(--fg-2); flex-wrap: wrap; }
.intro__cta i { width: 1px; height: 30px; background: var(--line-2); position: relative; overflow: hidden; }
.intro__cta i::after { content: ''; position: absolute; inset: 0; background: var(--cyan); animation: drip 2s var(--ease-io) infinite; }
.intro__cta small { color: var(--muted); font-size: 10px; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------------------------------------------------------------- shared bits */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px;
  position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .4s; white-space: nowrap; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--c, var(--fg)); transform: translateY(101%); transition: transform .55s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:hover { color: #050607; border-color: var(--c, var(--fg)); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid::before { background: var(--c, var(--cyan)); }
.btn i { font-style: normal; }
html[dir="rtl"] .btn i { transform: scaleX(-1); }
.skeleton { height: 100%; min-height: 200px; border-radius: 16px; background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%); background-size: 300% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -100% 0; } }

/* ---------------------------------------------------------------- screens (designed at 1280×720) */
.scr { container-type: inline-size; position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; color: var(--fg);
  background: radial-gradient(ellipse 80% 70% at 15% 0%, #0f1c30 0%, #070a10 55%, #05060a 100%); }
.scr::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.scr__bar { flex: none; height: 40px; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 12px; }
.scr__bar > span { display: inline-flex; align-items: center; gap: 10px; }
.scr__bar .rec { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.scr--live.is-onair .scr__bar .rec { background: #ff2448; box-shadow: 0 0 10px #ff2448; animation: blink 1s infinite; }
.scr__bar .dia { width: 7px; height: 7px; background: var(--frost); transform: rotate(45deg); }
.scr__bar .dia--steam { background: var(--steam); }
.scr__body { flex: 1; min-height: 0; padding: 34px 44px 30px; position: relative; }
.scr__title { margin: 0; font: 800 76px/.95 var(--display); letter-spacing: -.04em; }
html[lang="fa"] .scr__title { letter-spacing: 0; font-weight: 900; line-height: 1.2; }
.scr__sub { margin: 10px 0 0; color: var(--fg-2); font-size: 18px; }

/* desktop: the HTML screen is laid over the 3D monitor only while the camera rests on it */
html.mode-3d #screens { position: fixed; inset: 0; z-index: 18; pointer-events: none; }
html.mode-3d .scr { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s ease, visibility 0s linear .28s; border-radius: 2px; }
html.mode-3d .scr--phone { width: 390px; height: 800px; border-radius: 6px; }
html.mode-3d .scr.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .28s ease; }

/* LIVE */
.live__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; height: calc(100% - 128px); }
.stream { position: relative; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); padding: 26px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; isolation: isolate; }
.stream.is-live { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 7%, rgba(8,10,14,.6)); box-shadow: 0 0 60px -20px var(--c) inset; }
.stream.is-live::before { content: ''; position: absolute; inset: -60%; z-index: -1; opacity: .16; background: conic-gradient(from 0deg, transparent 0 70%, var(--c), transparent 90%); animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.stream__top { display: flex; justify-content: space-between; align-items: center; }
.stream__brand { font: 800 15px/1 'Syne', sans-serif; letter-spacing: .14em; color: var(--c); }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
html[lang="fa"] .badge { font-family: var(--body); letter-spacing: 0; font-size: 12px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge--live { color: #041004; background: var(--c); border-color: var(--c); font-weight: 600; }
.badge--live i { background: #041004; animation: blink 1.1s infinite; }
.stream__handle { margin-top: auto; font: 800 50px/1 'Syne', sans-serif; letter-spacing: -.045em; direction: ltr; text-align: start; overflow-wrap: anywhere; }
html[dir="rtl"] .stream__handle { text-align: right; }
.stream__info { color: var(--fg-2); font-size: 15px; min-height: 58px; }
.stream__info p { margin: 0; }
.stream__title { color: var(--fg); font-size: 17px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.stream__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.stream__meta b { color: var(--fg); }
.stream__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* WOW + STEAM share the "character sheet" layout */
.wow, .steam { display: grid; grid-template-columns: 43% 1fr; gap: 36px; align-items: center; }
.wow__visual, .steam__visual { position: relative; height: 100%; display: grid; place-items: center; }
.wow__visual::before, .steam__visual::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(95,184,255,.32), transparent 68%); filter: blur(18px); }
.sigil { position: absolute; width: min(100%, 520px); height: auto; fill: none; stroke: rgba(159,214,255,.28); stroke-width: 1; animation: spin 80s linear infinite; }
.sigil text { fill: rgba(159,214,255,.5); stroke: none; font: 500 13px 'JBM', monospace; letter-spacing: 6px; }
.steam .sigil { stroke: rgba(102,192,244,.26); animation-direction: reverse; }
.wow__img { position: relative; height: 112%; width: auto; max-width: 125%; object-fit: contain; opacity: 0; transition: opacity 1s;
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 98%); mask-image: linear-gradient(to bottom, #000 75%, transparent 98%); filter: drop-shadow(0 0 40px rgba(95,184,255,.25)); }
.wow__img.is-loaded { opacity: 1; }
.wow__img.is-inset { height: auto; width: 78%; border-radius: 18px; -webkit-mask-image: none; mask-image: none; }
.wow__glyph { position: relative; font: 800 170px/1 'Syne', sans-serif; color: transparent; -webkit-text-stroke: 1px rgba(159,214,255,.55); }
.realm { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.realm i { width: 6px; height: 6px; background: var(--frost); transform: rotate(45deg); }
.bigname { margin: 10px 0 8px; font: 800 62px/.95 'Syne', sans-serif; letter-spacing: -.045em; direction: ltr; text-align: start; overflow-wrap: anywhere; }
html[dir="rtl"] .bigname { text-align: right; }
.wow__class { font-size: 19px; color: var(--fg-2); }
.wow__class .spec { color: var(--frost); font-weight: 600; } .wow__class .cls { color: #ff4d64; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin: 22px 0; }
.stat { padding: 16px 0; display: grid; gap: 6px; }
.stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.stat b { font: 800 38px/1 'Syne', sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
html[lang="fa"] .stat b { font-family: 'Vazirmatn', sans-serif; font-weight: 900; letter-spacing: 0; }
.stat span { color: var(--muted); font-size: 13px; }
.label { color: var(--muted); margin: 0 0 12px; }
.raid { margin-bottom: 18px; }
.raid__head, .gbar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 10px; font-weight: 600; }
.raid__head b { font: 500 13px var(--mono); color: var(--frost); letter-spacing: .08em; direction: ltr; }
.raid__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.raid__bar i { height: 8px; border-radius: 2px; background: rgba(255,255,255,.07); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.is-seen .raid__bar i, .mode-2d .scr.is-active .raid__bar i { transform: none; }
.raid__bar i.n { background: #3ea653; } .raid__bar i.h { background: #a335ee; box-shadow: 0 0 10px rgba(163,53,238,.5); } .raid__bar i.m { background: #ff8000; box-shadow: 0 0 10px rgba(255,128,0,.5); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.src { color: var(--muted); margin-top: 16px; font-size: 10px; }

.fan { position: relative; width: 46%; aspect-ratio: 2 / 3; }
.fan__card { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #1b2838, #0b0f16); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); z-index: var(--z); transform-origin: 50% 110%; transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r)); transition: transform 1s var(--ease); }
html[dir="rtl"] .fan__card { transform: translateX(calc(var(--x) * -1)) translateY(var(--y)) rotate(calc(var(--r) * -1)); }
.fan:hover .fan__card { transform: translateX(calc(var(--x) * 1.35)) translateY(calc(var(--y) * 1.4)) rotate(calc(var(--r) * 1.35)); }
.fan__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fan__card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(5,6,9,.92)); }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; direction: ltr; overflow-wrap: anywhere; font: 800 26px/1 'Syne', sans-serif; color: rgba(255,255,255,.14); }
.fan__meta { position: absolute; inset-inline: 12px; bottom: 10px; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; color: rgba(255,255,255,.7); }
.fan__meta b { font: 800 17px 'Syne', sans-serif; color: #fff; }
html[lang="fa"] .fan__meta b { font-family: 'Vazirmatn', sans-serif; font-weight: 900; }
.who { display: flex; align-items: center; gap: 16px; margin: 10px 0 6px; }
.who .bigname { margin: 0; font-size: 54px; }
.who__av { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--sc), 0 0 26px -4px var(--sc); }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--sc); font-weight: 600; font-size: 18px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); --lc: var(--sc); animation: pulse 1.8s infinite; }
.steam .stats { margin: 18px 0; }
.gbar { margin-bottom: 16px; }
.gbar__head b { font: 500 13px var(--mono); color: var(--fg-2); letter-spacing: .06em; }
.gbar__head em { font-style: normal; color: var(--fg); }
.gbar__track { height: 8px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.gbar__track i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, #1a9fff, #66c0f4 60%, #c7ecff); box-shadow: 0 0 16px rgba(102,192,244,.5); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease); }
html[dir="rtl"] .gbar__track i { transform-origin: right; background: linear-gradient(-90deg, #1a9fff, #66c0f4 60%, #c7ecff); }
.is-seen .gbar__track i, .mode-2d .scr.is-active .gbar__track i { transform: none; }
.gbar__sub { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 10px; }
.gbar__sub .hot { color: var(--steam); }
.steam .links { margin-top: 12px; }

/* PHONE (390×800) */
.scr--phone { background: radial-gradient(ellipse at 50% 0%, #10263a, #06070b 60%); border-radius: 26px; }
.phone__status { display: flex; justify-content: space-between; padding: 16px 26px 0; color: var(--fg-2); font-size: 12px; }
.phone__body { padding: 30px 22px 22px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.phone__kicker { color: var(--cyan); margin: 0; }
.phone__title { margin: 8px 0 22px; font: 800 46px/1 var(--display); letter-spacing: -.04em; }
html[lang="fa"] .phone__title { letter-spacing: 0; font-weight: 900; }
.phone__list { display: grid; gap: 10px; }
.plink { display: flex; align-items: center; gap: 14px; padding: 16px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.plink:hover { background: color-mix(in srgb, var(--c) 16%, transparent); border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateX(4px); }
html[dir="rtl"] .plink:hover { transform: translateX(-4px); }
.plink__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.plink__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.plink__txt b { font: 800 20px/1.1 'Syne', sans-serif; letter-spacing: -.02em; }
.plink__txt small { color: var(--muted); direction: ltr; text-align: start; font-size: 10px; }
.plink__arr { font-size: 18px; color: var(--fg-2); }
html[dir="rtl"] .plink__arr { transform: scaleX(-1); }
.phone__cta { margin-top: auto; height: 56px; border-radius: 16px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 16px; transition: background .3s; }
.phone__cta:hover { background: var(--cyan); }

/* narrow screens (phones, 2D mode) */
@container (max-width: 760px) {
  .scr__body { padding: 22px 18px; }
  .scr__title { font-size: 44px; }
  .scr__sub { font-size: 15px; }
  .live__grid { grid-template-columns: 1fr; height: auto; }
  .stream { min-height: 230px; padding: 20px; }
  .stream__handle { font-size: min(32px, 6.2cqi); }
  .wow, .steam { display: block; }
  .wow__visual, .steam__visual { height: 300px; margin-bottom: 14px; }
  .sigil { width: 290px; }
  .wow__img { height: 110%; }
  .fan { width: 34%; }
  .bigname { font-size: min(38px, 7.6cqi); }
  .who .bigname { font-size: min(32px, 7cqi); }
  .who__av { width: 44px; height: 44px; }
  .stat b { font-size: min(26px, 5.8cqi); }
  .fan__meta b { font-size: 12px; }
  .fan__meta { inset-inline: 8px; bottom: 6px; }
  .stat + .stat { padding-inline-start: 12px; }
  .stat span { font-size: 11px; }
}

/* ---------------------------------------------------------------- contact (final station) */
.contact { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 80px var(--pad) 40px; opacity: 0; pointer-events: none; }
.contact.is-on { pointer-events: auto; }
.contact__card { width: min(760px, 100%); max-height: 100%; overflow: auto; padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: rgba(6,8,12,.72); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(70,230,255,.05) inset; }
.contact__label { color: var(--muted); margin: 0 0 16px; } .contact__label span:first-child { color: var(--cyan); }
.contact__title { margin: 0; font: 800 clamp(36px, 5.4vw, 72px)/.95 var(--display); letter-spacing: -.045em; }
html[lang="fa"] .contact__title { letter-spacing: 0; font-weight: 900; line-height: 1.25; }
.contact__sub { color: var(--fg-2); margin: 14px 0 22px; }
.mail { display: grid; gap: 6px; text-align: start; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); width: 100%; }
.mail__addr { font: 800 clamp(18px, 2.2vw, 28px)/1.15 'Syne', sans-serif; direction: ltr; text-align: start; overflow-wrap: anywhere; transition: color .3s; }
html[dir="rtl"] .mail__addr { text-align: right; }
.mail:hover .mail__addr { color: var(--cyan); }
.mail__hint { color: var(--muted); }
.form { display: grid; gap: 8px; }
.form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--fg); font: 500 17px/1.4 var(--body); padding: 24px 0 10px; outline: none; resize: vertical; border-radius: 0; }
.field textarea { min-height: 90px; }
.field span { position: absolute; inset-inline-start: 0; top: 24px; color: var(--muted); pointer-events: none; transition: transform .45s var(--ease), color .3s; transform-origin: left top; }
html[dir="rtl"] .field span { transform-origin: right top; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-20px) scale(.72); color: var(--cyan); }
.form__row { display: flex; align-items: center; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.form__status { margin: 0; color: var(--fg-2); font-size: 14px; }
.form__status.ok { color: #7cf29a; } .form__status.err { color: #ff7a8a; }
.contact__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- embed */
.embed { position: fixed; inset: 0; z-index: 80; background: rgba(2,3,5,.9); backdrop-filter: blur(12px); display: grid; place-items: center; padding: var(--pad); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.embed.is-open { opacity: 1; visibility: visible; }
.embed__box { width: min(1280px, 100%); }
.embed__close { display: block; margin-inline-start: auto; margin-bottom: 12px; color: var(--fg-2); }
.embed__frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.embed__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------- 2D mode (phones / narrow windows) */
html.mode-2d #screens { position: fixed; inset: 72px 12px 78px; z-index: 22; pointer-events: none; }
html.mode-2d .scr { position: absolute; inset: 0; height: auto; max-height: 100%; overflow: auto; overscroll-behavior: contain; border-radius: 20px; border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .5s, transform .7s var(--ease); pointer-events: none; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
html.mode-2d .scr .scr__body { flex: none; }
html.mode-2d .scr.is-active { opacity: 1; transform: none; pointer-events: auto; }
html.mode-2d .scr--phone { width: min(420px, 100%); margin-inline: auto; inset-inline: 0; }
html.mode-2d .scr--phone .phone__body { flex: none; }
html.mode-2d .stations { display: none; }
html.mode-2d .pager { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 99px;
  background: rgba(8,10,14,.7); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
html.mode-2d .pager button { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); font-size: 16px; }
html[dir="rtl"].mode-2d .pager button { transform: scaleX(-1); }
html.mode-2d .pager span { min-width: 120px; text-align: center; color: var(--fg-2); }
html.mode-2d .intro { bottom: 86px; inset-inline-end: var(--pad); }
html.mode-2d .nav__clock { display: none; }

/* ---------------------------------------------------------------- no WebGL: everything flat and stacked */
html.no-gl #scene, html.no-gl .intro__cta, html.no-gl .stations, html.no-gl .pager, html.no-gl #track { display: none; }
html.no-gl .intro { position: relative; inset: auto; padding: 100px var(--pad) 30px; opacity: 1 !important; animation: none; max-width: 760px; }
html.no-gl #screens { position: static; display: grid; gap: 16px; padding: 0 var(--pad) 16px; }
html.no-gl .scr { position: relative; opacity: 1; visibility: visible; transform: none !important; pointer-events: auto; border-radius: 20px; border: 1px solid var(--line-2); height: auto; width: auto; }
html.no-gl #screens { position: static; }
html.no-gl .scr .scr__body { flex: none; }
html.no-gl .contact { position: relative; opacity: 1 !important; pointer-events: auto; padding: 0 var(--pad) 40px; }
html.no-gl .raid__bar i, html.no-gl .gbar__track i { transform: none; }

@media (max-width: 560px) {
  .form__row2 { grid-template-columns: 1fr; gap: 0; }
  .nav { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fx-grain { display: none; }
}
