.platform-header-actions{justify-self:end;display:flex;align-items:center;gap:10px}.platform-profile-badge{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--border-color);border-radius:50%;background:var(--accent-navy);color:#fff;font:800 .82rem 'Plus Jakarta Sans',sans-serif;cursor:pointer;box-shadow:0 5px 15px rgba(3,36,91,.12)}.platform-profile-guest{background:var(--bg-primary);color:var(--text-main)}.platform-profile-guest svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.platform-account{position:relative}.platform-profile-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:100;width:225px;padding:8px;border:1px solid var(--border-color);border-radius:14px;background:var(--bg-card);box-shadow:0 18px 46px rgba(3,26,65,.18);opacity:0;visibility:hidden;transform:translateY(-7px);transition:.18s}.platform-account.open .platform-profile-menu{opacity:1;visibility:visible;transform:none}.platform-profile-summary{display:flex;align-items:center;gap:10px;padding:9px 8px 13px}.platform-profile-summary>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--accent-navy);color:#fff;font-size:.72rem;font-weight:800}.platform-profile-summary div{min-width:0;display:flex;flex-direction:column}.platform-profile-summary strong,.platform-profile-summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-profile-summary strong{font-size:.78rem}.platform-profile-summary small{color:var(--text-muted);font-size:.64rem}.platform-profile-menu>button{width:100%;padding:10px 11px;border:0;border-radius:8px;background:transparent;color:var(--text-main);font:650 .76rem 'Plus Jakarta Sans',sans-serif;text-align:left;cursor:pointer}.platform-profile-menu>button:hover{background:var(--bg-secondary)}.platform-menu-divider{height:1px;margin:5px;background:var(--border-color)}.product-home-return{display:inline-flex;align-items:center;gap:9px;color:var(--text-muted);font-size:.9rem;font-weight:750;text-decoration:none}.product-home-return span{font-size:1.2rem}.product-context-bar{min-height:58px;display:flex;align-items:center;padding:10px clamp(18px,4vw,64px);border-bottom:1px solid var(--border-color);background:var(--bg-primary)}
.tb-home-story{--ink:#001b4e;--paper:#f7f9fc;--line:#dce4ef;background:var(--bg-primary);color:var(--text-main)}.tb-home-story .platform-product-switcher{margin:0}.story-opening{min-height:calc(100vh - 76px);padding:12vh 28px 42px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--bg-primary)}.opening-mark{display:flex;align-items:center;gap:14px;color:#72849c;font-size:.65rem;letter-spacing:.2em}.opening-mark span{width:38px;height:1px;background:var(--border-color)}.story-opening h1{max-width:1040px;margin:27px auto 25px;color:var(--accent-navy);font-size:clamp(3.6rem,7.3vw,7.6rem);line-height:.96;letter-spacing:-.045em;word-spacing:.09em}.story-opening>p{max-width:760px;margin:0;color:var(--text-muted);font-size:clamp(1rem,1.5vw,1.22rem);line-height:1.8}.opening-actions{display:flex;align-items:center;gap:28px;margin-top:35px}.opening-actions button,.story-copy button,.story-finale button{padding:15px 23px;border:0;border-radius:9px;background:var(--accent-navy);color:#fff;font-weight:800;cursor:pointer}.opening-actions a{color:var(--accent-navy);font-size:.82rem;font-weight:750;text-decoration:none}.opening-index{width:min(900px,90vw);display:grid;grid-template-columns:repeat(4,1fr);margin-top:auto;padding-top:48px;color:#8292a7;font-size:.62rem;font-weight:750;letter-spacing:.1em}.opening-index span{padding:13px;border-top:1px solid var(--border-color)}
.story-panel{position:relative;min-height:900px;padding:100px max(28px,calc((100vw - 1240px)/2));display:grid;grid-template-columns:.83fr 1.17fr;align-items:center;gap:70px;overflow:hidden}.story-copy{position:relative;z-index:4;opacity:0;transform:translateY(38px);transition:opacity .8s ease,transform .8s ease}.is-visible .story-copy{opacity:1;transform:none}.story-copy>span{color:#7286a2;font-size:.68rem;font-weight:800;letter-spacing:.17em}.story-copy h2{margin:19px 0 24px;font-size:clamp(3rem,5vw,5.7rem);line-height:.98;letter-spacing:-.06em}.story-copy p{max-width:540px;color:inherit;opacity:.72;font-size:1.02rem;line-height:1.75}.story-details{display:flex;flex-wrap:wrap;gap:7px;margin:28px 0}.story-details b{padding:8px 10px;border:1px solid currentColor;border-radius:6px;opacity:.64;font-size:.6rem;letter-spacing:.08em}.story-copy button{margin-top:7px}.story-copy button i{margin-left:15px;font-style:normal}
.story-arena{background:#020e21;color:#f5f8ff}.story-arena .story-copy h2,.story-competitions .story-copy h2,.story-finale h2{color:#fff}.arena-cinema{position:relative;height:650px;opacity:0;transition:opacity .6s ease}.is-visible .arena-cinema{opacity:1}.arena-cinema img{position:absolute;top:50%;width:66%;mix-blend-mode:screen;filter:contrast(1.06);transition:transform 1.25s cubic-bezier(.2,.75,.2,1),opacity .8s}.cinema-bull{left:-18%;transform:translate(-28%,-50%)}.cinema-bear{right:-18%;transform:translate(28%,-50%)}.is-visible .cinema-bull{transform:translate(0,-50%)}.is-visible .cinema-bear{transform:translate(0,-50%)}.cinema-vs{position:absolute;z-index:3;left:50%;top:50%;width:68px;height:68px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:#041b49;color:#fff;font-weight:900;transform:translate(-50%,-50%) scale(.4);opacity:0;transition:.5s .75s}.is-visible .cinema-vs{transform:translate(-50%,-50%) scale(1);opacity:1}.arena-floor{position:absolute;left:8%;right:8%;bottom:11%;height:1px;background:linear-gradient(90deg,transparent,#38669f,transparent)}
.story-competitions{grid-template-columns:1.12fr .88fr;background:#061b43;color:#f5f8ff}.trophy-cinema{position:relative;height:700px;overflow:hidden}.trophy-cinema img{position:absolute;z-index:2;left:50%;bottom:-36%;height:95%;mix-blend-mode:screen;transform:translateX(-50%);opacity:0;transition:bottom 1.25s cubic-bezier(.18,.77,.22,1),opacity .7s}.is-visible .trophy-cinema img{bottom:0;opacity:1}.trophy-beam{position:absolute;left:50%;bottom:-10%;width:50%;height:75%;background:rgba(46,106,198,.25);filter:blur(70px);transform:translateX(-50%)}.trophy-ring{position:absolute;left:50%;bottom:3%;border:1px solid rgba(129,171,232,.4);border-radius:50%;transform:translateX(-50%) scale(.3);opacity:0;transition:1s 1s}.ring-one{width:65%;height:9%}.ring-two{width:90%;height:14%;transition-delay:1.15s}.is-visible .trophy-ring{transform:translateX(-50%) scale(1);opacity:1}
.story-backtest{background:#f7f9fc;color:var(--ink)}.history-cinema{position:relative;height:560px;border-left:1px solid #d7e0ec;border-bottom:1px solid #d7e0ec}.history-grid{position:absolute;inset:0;background:linear-gradient(#dfe6ef 1px,transparent 1px),linear-gradient(90deg,#dfe6ef 1px,transparent 1px);background-size:100% 70px,90px 100%;opacity:.65}.history-cinema svg{position:absolute;inset:0;width:100%;height:100%}.history-path{fill:none;stroke:#002b68;stroke-width:4;stroke-linecap:round;stroke-dasharray:1200;stroke-dashoffset:1200;transition:stroke-dashoffset 2s .25s}.is-visible .history-path{stroke-dashoffset:0}.history-ghost{fill:rgba(0,43,104,.06);opacity:0;transition:opacity .8s 1.5s}.is-visible .history-ghost{opacity:1}.replay-line{position:absolute;top:0;bottom:0;left:0;width:2px;background:#00a66a;transform:translateX(0);transition:transform 2s .25s}.is-visible .replay-line{transform:translateX(min(49vw,620px))}.replay-line span{position:absolute;top:43%;left:50%;width:11px;height:11px;border-radius:50%;background:#00a66a;box-shadow:0 0 0 7px rgba(0,166,106,.14);transform:translate(-50%,-50%)}.history-label{position:absolute;left:18px;top:18px;color:#60758f;font-size:.6rem;font-weight:800;letter-spacing:.15em}
.story-calendar{grid-template-columns:1.08fr .92fr;background:#eef3fa;color:var(--ink)}.calendar-cinema{position:relative;height:650px}.market-orbit{position:absolute;left:50%;top:50%;width:420px;height:420px;border:1px solid #b9c9dd;border-radius:50%;transform:translate(-50%,-50%) rotate(-18deg);transition:transform 1.4s}.is-visible .market-orbit{transform:translate(-50%,-50%) rotate(0)}.market-orbit:before,.market-orbit:after{content:'';position:absolute;inset:12%;border:1px solid #cbd7e6;border-radius:50%}.market-orbit:after{inset:27%}.market-orbit i{position:absolute;width:12px;height:12px;border-radius:50%;background:#f04444;box-shadow:0 0 0 9px rgba(240,68,68,.1)}.market-orbit i:nth-child(1){left:12%;top:15%}.market-orbit i:nth-child(2){right:6%;top:42%;background:#f5a623}.market-orbit i:nth-child(3){left:19%;bottom:5%;background:#4b82d0}.market-orbit i:nth-child(4){right:24%;bottom:12%}.market-orbit strong,.market-orbit span{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);color:#001b4e}.market-orbit strong{font-size:4.3rem;letter-spacing:-.06em}.market-orbit span{top:59%;font-size:.61rem;font-weight:800;letter-spacing:.16em;text-align:center}.event-pulse{position:absolute;border:1px solid rgba(0,43,104,.15);border-radius:50%;animation:eventPulse 2.8s infinite}.pulse-a{inset:7%}.pulse-b{inset:0;animation-delay:1.1s}@keyframes eventPulse{0%{transform:scale(.78);opacity:0}45%{opacity:1}100%{transform:scale(1.05);opacity:0}}
.story-finale{min-height:720px;padding:100px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#020e21;color:#fff;opacity:0;transition:opacity 1s}.story-finale.is-visible{opacity:1}.story-finale img{width:80px;height:48px;object-fit:contain;margin-bottom:28px}.story-finale>span{color:#8ca5c5;font-size:.67rem;font-weight:800;letter-spacing:.2em}.story-finale h2{margin:25px 0;font-size:clamp(3.4rem,6vw,6.8rem);letter-spacing:-.065em}.story-finale>div{display:flex;gap:10px}.story-finale button:last-child{border:1px solid #4c6080;background:transparent}.story-footer{display:flex;align-items:center;gap:25px;padding:28px clamp(24px,6vw,90px);background:#020e21;color:#8194ae;font-size:.7rem}.story-footer nav{display:flex;gap:20px;margin-left:auto}.story-footer a{color:inherit;text-decoration:none}
[data-theme="dark"] .story-opening,[data-theme="dark"] .story-backtest,[data-theme="dark"] .story-calendar{background:#071326;color:#f4f7ff}[data-theme="dark"] .story-opening h1,[data-theme="dark"] .story-backtest h2,[data-theme="dark"] .story-calendar h2,[data-theme="dark"] .market-orbit strong,[data-theme="dark"] .market-orbit span{color:#f4f7ff}
@media(max-width:920px){.story-panel,.story-competitions,.story-calendar{grid-template-columns:1fr;gap:25px;min-height:0;padding:90px 28px}.story-copy{text-align:center}.story-copy p{margin-inline:auto}.story-details{justify-content:center}.story-panel>div:not(.story-copy){height:520px}.story-competitions .trophy-cinema{order:2}.story-competitions .story-copy{order:1}}
@media(max-width:700px){.platform-header-actions{gap:7px}.platform-profile-badge{width:37px;height:37px}.story-opening{min-height:680px;padding:70px 18px 28px}.story-opening h1{font-size:3.65rem}.story-opening>p{font-size:.92rem}.opening-actions{flex-direction:column;gap:18px}.opening-actions button{width:100%}.opening-index{grid-template-columns:1fr 1fr}.story-panel,.story-competitions,.story-calendar{padding:72px 18px}.story-copy h2{font-size:3rem}.story-copy p{font-size:.91rem}.story-panel>div:not(.story-copy){height:380px}.arena-cinema img{width:82%;top:50%}.cinema-bull{left:-32%}.cinema-bear{right:-32%}.cinema-vs{width:48px;height:48px}.trophy-cinema img{height:105%}.market-orbit{width:300px;height:300px}.market-orbit strong{font-size:3.3rem}.replay-line{display:none}.story-finale{min-height:620px;padding:80px 18px}.story-finale h2{font-size:3.4rem}.story-finale>div{width:100%;flex-direction:column}.story-footer{flex-wrap:wrap}.story-footer nav{width:100%;margin:0}}
@media(max-width:700px){
  .auth-home-bar{box-sizing:border-box;padding-inline:20px!important}
  .auth-home-bar .product-home-return{flex:0 0 auto}
  .app-workspace main>.auth-home-bar{
    position:relative;
    left:50%;
    width:100vw!important;
    min-width:100vw;
    margin-left:-50vw!important;
    margin-right:-50vw!important;
  }
}
@media(prefers-reduced-motion:reduce){.story-copy,.arena-cinema,.arena-cinema img,.cinema-vs,.trophy-cinema img,.trophy-ring,.history-path,.history-ghost,.replay-line,.market-orbit,.story-finale{transition:none!important;animation:none!important}.story-copy,.arena-cinema,.story-finale{opacity:1}.trophy-cinema img{bottom:0;opacity:1}.history-path{stroke-dashoffset:0}}

/* Keep the complete homepage in the selected theme. */
[data-theme="light"] .story-arena,[data-theme="light"] .story-competitions,[data-theme="light"] .story-finale{background:#f7f9fc;color:var(--ink)}
[data-theme="light"] .story-competitions{background:#eef3fa}
[data-theme="light"] .story-arena .story-copy h2,[data-theme="light"] .story-competitions .story-copy h2,[data-theme="light"] .story-finale h2{color:var(--accent-navy)}
[data-theme="light"] .arena-cinema img,[data-theme="light"] .trophy-cinema img{mix-blend-mode:multiply}
[data-theme="light"] .story-finale>span{color:#71849d}
[data-theme="light"] .story-finale button:last-child{border-color:var(--border-color);color:var(--accent-navy)}
[data-theme="light"] .story-footer{border-top:1px solid var(--border-color);background:var(--bg-secondary);color:var(--text-muted)}
[data-theme="dark"] .story-opening,[data-theme="dark"] .story-arena,[data-theme="dark"] .story-competitions,[data-theme="dark"] .story-backtest,[data-theme="dark"] .story-calendar,[data-theme="dark"] .story-finale{background:#071326;color:#f4f7ff}
[data-theme="dark"] .story-arena .story-copy h2,[data-theme="dark"] .story-competitions .story-copy h2,[data-theme="dark"] .story-finale h2{color:#f4f7ff}
[data-theme="dark"] .arena-cinema img,[data-theme="dark"] .trophy-cinema img{mix-blend-mode:screen}
[data-theme="dark"] .history-path{stroke:#4da3ff}
[data-theme="dark"] .history-ghost{fill:rgba(77,163,255,.16)}
[data-theme="dark"] .story-footer{border-top:1px solid #1a2b45;background:#071326;color:#8194ae}

.platform-profile-badge{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-pill);background:var(--bg-secondary);color:var(--text-main);box-shadow:none}
.platform-profile-badge:hover,.platform-profile-guest:hover{background:var(--accent-blue-light)}
.platform-profile-guest{background:var(--bg-secondary)}
.platform-profile-badge.has-avatar,.platform-profile-summary>span.has-avatar{overflow:hidden;padding:0;background:var(--bg-secondary)}
.platform-profile-badge.has-avatar img,.platform-profile-summary>span.has-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.auth-home-bar{box-sizing:border-box;min-height:0;height:44px;padding:0 clamp(18px,4vw,64px);display:flex;align-items:center}
.auth-home-bar .product-home-return{height:44px;display:flex;align-items:center;line-height:1;margin:0}
.auth-home-bar .product-home-return span{display:flex;align-items:center;line-height:1}
.platform-product-switcher.auth-product-switcher{margin-bottom:0}
.platform-product-switcher:has(+ .product-context-bar){margin-bottom:0}
.product-context-bar{box-sizing:border-box;min-height:0;height:44px;padding:0 clamp(18px,4vw,64px);display:flex;align-items:center;justify-content:space-between}
.product-context-bar .product-home-return{height:44px;display:flex;align-items:center;line-height:1;margin:0}
.product-context-bar .product-home-return span{display:flex;align-items:center;line-height:1}
.product-telegram-link{width:auto;height:36px;display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;padding:0 13px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-secondary);color:#229ed9;font-size:.72rem;font-weight:800;text-decoration:none;transition:background .16s,border-color .16s,transform .16s}
.product-telegram-link:hover{border-color:#229ed9;background:rgba(34,158,217,.09);transform:translateY(-1px)}
.product-telegram-link svg{display:block;width:22px;height:22px;flex:0 0 22px;fill:currentColor}
@media(max-width:700px){.product-telegram-link{width:36px;flex-basis:36px;padding:0}.product-telegram-link span{display:none}}
.landing-wrapper .landing-telegram-link{width:36px;flex-basis:36px;order:10;padding:0}
.landing-wrapper .landing-telegram-link span{display:none}
@media(max-width:768px){.landing-wrapper .landing-telegram-link{order:0}.landing-wrapper .nav-actions .hamburger-btn{order:1}}
.app-workspace>main>.product-context-bar{flex:0 0 44px;width:100%;margin:0 0 22px}
.app-workspace>main.main-content>.product-context-bar{width:calc(100% + 80px);margin:0 -40px 22px}
.app-workspace>main.chat-main>.product-context-bar{width:calc(100% + 48px);margin:0 -24px 22px}
.app-workspace>main.webtrader-main>.product-context-bar{width:100%;margin:0}
.detour-return-bar .product-home-return{padding:0;border:0;background:transparent;font-family:inherit;cursor:pointer}
