/* Intro walkthrough: a 1920×1080 stage scaled into a 16:9 frame by intro.js. Everything is scoped to .iv. */
.intro-video { margin: 45px 0 0; }
.intro-video figcaption { margin-top: 20px; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.iv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.iv { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; background: var(--navy, #11182f); box-shadow: 9px 9px 0 #f5df9c; isolation: isolate; }
.iv:fullscreen { border-radius: 0; box-shadow: none; aspect-ratio: auto; background: #0b0f1f; }
.iv-poster { position: absolute; inset: 8% 0 0; width: 100%; height: 92%; object-fit: contain; }

.iv-stage { --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --tg: #3390ec;
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: #f6ecd8; cursor: pointer; font-family: var(--sys); }
.iv-layer { position: absolute; inset: 0; }

/* studio */
.iv-studio { background: #f7ecd6; }
.iv-world { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.iv-wall { position: absolute; left: -2400px; top: -1600px; width: 6720px; height: 2460px; background: linear-gradient(#fcf6ea 0%, #f8edd8 55%, #f2e2c3 100%); }
.iv-pool { position: absolute; left: 260px; top: 120px; width: 1500px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,252,242,.95), rgba(255,250,236,0)); }
.iv-floor { position: absolute; left: -2400px; top: 860px; width: 6720px; height: 1600px; background: linear-gradient(rgba(240,223,188,0) 0, #efdcb7 90px, #e9d2a6 420px, #e2c796 1200px); }
.iv-shadow { position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(closest-side, rgba(120,78,20,.34), rgba(120,78,20,.16) 55%, rgba(120,78,20,0)); }
.iv-props { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: visible; }
.iv-lid { position: absolute; left: 1230px; top: 446px; width: 412px; height: 244px; border-radius: 16px 16px 5px 5px; background: linear-gradient(160deg, #2b3246, #191d2b 60%); box-shadow: 0 10px 30px rgba(90,60,15,.18), inset 0 0 0 2px #3a4258; }
.iv-cam { position: absolute; left: 203px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: #4a536b; }
.iv-screen { position: absolute; left: 14px; top: 14px; width: 384px; height: 216px; overflow: hidden; background: #fff; }
.iv-scaler { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform: scale(.2); transform-origin: 0 0; }
.iv-glare { position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.22) 0 26%, rgba(255,255,255,0) 26.5%), linear-gradient(0deg, rgba(20,30,60,.08), rgba(20,30,60,0)); }
.iv-mascot { position: absolute; left: 0; top: 0; width: 1254px; height: 1254px; transform-origin: 0 0; }
.iv-rig { display: block; overflow: visible; }
.iv-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 48%, rgba(0,0,0,0) 55%, rgba(110,70,15,.16) 100%); }

/* Telegram UI */
.iv-appw { display: none; }
.iv-app { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.iv-ui { position: absolute; inset: 0; }
.iv .tg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: grid; grid-template-columns: 500px 1420px; background: #fff; color: #0f1419; font-family: var(--sys); overflow: hidden; -webkit-font-smoothing: antialiased; isolation: isolate; text-align: left; letter-spacing: 0; }
.iv .tg svg { display: block; }
.iv .tg .side { border-right: 1px solid #e5e6e8; display: flex; flex-direction: column; background: #fff; position: relative; z-index: 2; }
.iv .tg .side-top { height: 90px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 22px; }
.iv .tg .burger { width: 44px; height: 44px; display: grid; place-items: center; color: #8a8f96; }
.iv .tg .search { flex: 1; height: 54px; border-radius: 27px; background: #f1f2f4; display: flex; align-items: center; gap: 12px; padding: 0 20px; color: #8b9096; font-size: 24px; }
.iv .tg .row { height: 108px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 22px; position: relative; }
.iv .tg .row.on { background: var(--tg); color: #fff; }
.iv .tg .row.press { background: #e9eef4; }
.iv .tg .ava { width: 68px; height: 68px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 25px; overflow: hidden; letter-spacing: .5px; }
.iv .tg .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iv .a-fn { background: linear-gradient(160deg, #6cc08a, #3f8f60); }
.iv .a-sm { background: linear-gradient(160deg, #6bb8f0, #3a8ed6); }
.iv .a-ws { background: linear-gradient(160deg, #f7a86a, #e57b3c); }
.iv .a-ss { background: linear-gradient(160deg, #b39cf0, #7d63d6); }
.iv .tg .row .bd { flex: 1; min-width: 0; }
.iv .tg .row .l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.iv .tg .row .nm { font-size: 26px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.iv .tg .row .tm { font-size: 20px; color: #8b9096; flex: none; }
.iv .tg .row.on .tm { color: #d8e9fb; }
.iv .tg .row .pv { font-size: 23px; color: #707579; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px; }
.iv .tg .row.on .pv { color: #e3f0fd; }
.iv .tg .row .pv b { font-weight: 500; color: #3a3f45; }
.iv .tg .row.on .pv b { color: #fff; }
.iv .tg .grey { color: #8b9096; }
.iv .tg .mic { color: #9aa0a6; }
.iv .tg .panes { position: relative; overflow: hidden; background: #fff; }
.iv .tg .pane { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.iv .tg .hdr { height: 90px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 30px; border-bottom: 1px solid #ececec; background: #fff; position: relative; z-index: 1; }
.iv .tg .hdr .ava { width: 58px; height: 58px; font-size: 22px; }
.iv .tg .hdr .t { font-size: 28px; font-weight: 650; }
.iv .tg .hdr .s { font-size: 21px; color: #8b9096; margin-top: 3px; }
.iv .tg .demo { position: absolute; right: 28px; top: 24px; z-index: 6; font-size: 20px; font-weight: 600; color: #5b6168; background: #f3f4f6; border: 1px solid #e1e3e7; padding: 8px 16px; border-radius: 22px; letter-spacing: .2px; }
.iv .tg .wall2 { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 64px 22px; overflow: hidden;
  background: radial-gradient(rgba(110,82,30,.07) 2px, transparent 2.6px) 0 0 / 36px 36px,
              radial-gradient(900px 500px at 18% 10%, rgba(255,255,255,.4), rgba(255,255,255,0)),
              linear-gradient(140deg, #ebdfbf, #dcc896 60%, #d4bd88); }
.iv .tg .item { flex: none; padding-top: 12px; display: flex; flex-direction: column; overflow: hidden; }
.iv .tg .item.done { overflow: visible; }
.iv .tg .item > * { transform-origin: 50% 100%; }
.iv .tg .msg { max-width: 820px; font-size: 28px; line-height: 1.38; padding: 14px 22px 12px; border-radius: 22px; box-shadow: 0 1px 2px rgba(70,45,0,.14); position: relative; }
.iv .tg .msg.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 8px; }
.iv .tg .msg.out { align-self: flex-end; background: #effdde; border-bottom-right-radius: 8px; }
.iv .tg .msg.w { width: 660px; }
.iv .tg .msg p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.iv .tg .msg p + p { margin-top: 12px; }
.iv .tg .msg a { color: #2a78c2; text-decoration: none; }
.iv .tg .msg .from { font-size: 25px; font-weight: 650; color: #2f8f5b; margin-bottom: 4px; }
.iv .tg .meta { float: right; font-size: 19px; color: #9aa0a6; margin: 14px 0 -6px 18px; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.iv .tg .out .meta { color: #5aa650; }
.iv .tg .svc { align-self: center; background: rgba(70,50,15,.42); color: #fff; font-size: 22px; font-weight: 600; padding: 7px 18px; border-radius: 18px; }
.iv .tg .ikb { align-self: flex-start; width: 660px; display: grid; gap: 8px; margin-top: 8px; }
.iv .tg .ikb .r { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.iv .tg .kb { height: 66px; border-radius: 16px; background: rgba(70,50,15,.46); color: #fff; font-size: 25px; font-weight: 600; display: flex; align-items: center; justify-content: center; position: relative; }
.iv .tg .kb.hover { background: rgba(64,44,10,.64); }
.iv .tg .kb.press { background: rgba(45,30,5,.8); transform: scale(.985); }
.iv .tg .kb .ext { position: absolute; right: 12px; top: 11px; }
.iv .tg .inp { height: 92px; flex: none; display: flex; align-items: center; gap: 20px; padding: 0 26px; border-top: 1px solid #ececec; background: #fff; }
.iv .tg .inp .ic { color: #9aa0a6; flex: none; }
.iv .tg .field { flex: 1; font-size: 28px; color: #0f1419; white-space: nowrap; overflow: hidden; }
.iv .tg .field .ph { color: #9aa0a6; }
.iv .tg .caret { display: inline-block; width: 2.5px; height: 34px; background: var(--tg); vertical-align: -7px; margin-left: 2px; }
.iv .tg .send { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.iv .tg .send .plane { color: var(--tg); display: none; }
.iv .tg .send.has .plane { display: block; }
.iv .tg .send.has .mic { display: none; }
.iv .tg .rkb { height: 0; flex: none; overflow: hidden; background: #f3f4f6; }
.iv .tg .rkb .b { margin: 16px 26px; height: 84px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: 600; color: #1f2328; }
.iv .tg .rkb .b.press { background: #e9edf2; }
.iv .tg .pick { position: absolute; inset: 0; background: rgba(10,14,25,.42); display: none; place-items: center; z-index: 5; }
.iv .tg .pick .box { width: 640px; background: #fff; border-radius: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.32); overflow: hidden; }
.iv .tg .pick h3 { margin: 0; padding: 32px 32px 6px; font-size: 31px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.iv .tg .pick .sub { padding: 0 32px 18px; font-size: 22px; color: #8b9096; }
.iv .tg .pick .row { height: 100px; padding: 0 32px; }
.iv .tg .pick .foot { padding: 18px 32px 28px; text-align: right; color: var(--tg); font-size: 25px; font-weight: 600; }
.iv .tg .pin { height: 82px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 30px; background: #fff; border-bottom: 1px solid #ececec; position: relative; }
.iv .tg .pin .bar { width: 4px; height: 52px; border-radius: 2px; background: var(--tg); }
.iv .tg .pin .k { font-size: 22px; font-weight: 650; color: var(--tg); }
.iv .tg .pin .v { font-size: 22px; color: #4a4f55; margin-top: 3px; }
.iv .tg .pin .pic { margin-left: auto; color: #9aa0a6; position: relative; }
.iv .tg .pin .pic.gold { color: #d99a00; }
.iv .tg .pin .glow { position: absolute; inset: 7px 14px; border-radius: 16px; pointer-events: none; opacity: var(--g, 0); box-shadow: 0 0 0 3px #e7a60a, 0 0 34px 6px rgba(240,178,20,.45); background: rgba(255,214,90,.14); }
.iv .tg .views { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; }

/* overlays */
.iv-cap { position: absolute; left: 40px; bottom: 52px; width: 430px; padding: 26px 30px 28px; border-radius: 24px; background: #11182f; color: #fff; font-size: 42px; line-height: 1.12; font-weight: 750; letter-spacing: -.4px; box-shadow: 0 18px 44px rgba(17,24,47,.3); opacity: 0; display: none; }
.iv-cap::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 3px; background: #ffd35a; margin-bottom: 16px; }
.iv-cursor { position: absolute; left: 0; top: 0; width: 44px; height: 44px; opacity: 0; pointer-events: none; transform-origin: 4px 4px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.28)); }
.iv-ripple { position: absolute; left: 0; top: 0; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 4px solid rgba(51,144,236,.85); opacity: 0; pointer-events: none; }

/* end card */
.iv-end { display: none; background: radial-gradient(1300px 900px at 64% 56%, #213066 0%, #141d45 48%, #0b1130 100%); }
.iv-halo { position: absolute; left: 800px; top: 380px; width: 520px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,200,70,.22), rgba(255,200,70,0)); }
.iv-brand { position: absolute; left: 140px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.iv-brand > * { opacity: 0; }
.iv-name { font-size: 94px; font-weight: 800; letter-spacing: -2.5px; line-height: 1; }
.iv-tag { font-size: 48px; font-weight: 600; color: #ffd35a; margin-top: 22px; letter-spacing: -.5px; }
.iv-handle { margin-top: 44px; align-self: flex-start; font-size: 34px; font-weight: 650; padding: 14px 30px; border-radius: 40px; border: 2px solid rgba(255,211,90,.6); color: #fff; background: rgba(255,211,90,.08); }
.iv-ground { position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.iv-fade { background: #10183a; opacity: 0; pointer-events: none; }

/* player chrome */
.iv-controls { position: absolute; right: 14px; bottom: 16px; display: flex; gap: 8px; z-index: 2; transition: opacity .25s; }
.iv-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; padding: 0; background: rgba(17,24,47,.8); color: #fff; box-shadow: 0 4px 14px rgba(17,24,47,.25); }
.iv-btn:hover { background: #26304e; }
.iv-btn svg { display: block; }
.iv-btn .i-pause, .iv.is-playing .iv-btn .i-play { display: none; }
.iv.is-playing .iv-btn .i-pause { display: block; }
.iv.is-playing:not(:hover):not(:focus-within) .iv-controls { opacity: 0; }
.iv-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(17,24,47,.18); z-index: 2; pointer-events: none; }
.iv-progress span { position: absolute; inset: 0; background: #ffd333; transform-origin: 0 50%; transform: scaleX(0); }
@media (hover: none) { .iv.is-playing .iv-controls { opacity: 1; } }
@media (max-width: 700px) {
  .intro-video { margin-top: 30px; }
  .iv { border-radius: 16px; box-shadow: 6px 6px 0 #f5df9c; }
  .iv-controls { right: 8px; bottom: 10px; gap: 6px; }
  .iv-btn { width: 38px; height: 38px; }
}
.iv-btn[hidden] { display: none; }
