:root {
  color-scheme: dark;
  --ink: #02050d;
  --panel: rgba(5, 13, 28, .84);
  --panel-strong: rgba(4, 11, 25, .96);
  --line: rgba(76, 151, 255, .17);
  --line-hot: rgba(60, 144, 255, .48);
  --blue: #1685ff;
  --cyan: #42dcff;
  --gold: #f6c85b;
  --green: #31e3a1;
  --red: #ff5d78;
  --text: #f7faff;
  --muted: #7f91ad;
  --shadow: 0 28px 100px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 3%, rgba(0, 104, 255, .18), transparent 29rem),
    radial-gradient(circle at 15% 30%, rgba(0, 79, 194, .11), transparent 32rem),
    linear-gradient(180deg, #030713, #02050d 75%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(48, 121, 230, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 121, 230, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent);
}

/* Cinematic entry */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; }
.intro-door { position: absolute; top: 0; bottom: 0; width: 51%; overflow: hidden; background: #020611; transition: transform 1.1s cubic-bezier(.74, 0, .16, 1) .28s; }
.intro-door::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 38%, rgba(30, 125, 255, .14) 48%, transparent 54%),
    repeating-linear-gradient(135deg, transparent 0 38px, rgba(75, 146, 255, .06) 39px 40px),
    radial-gradient(circle at 50% 50%, #0b2550, #020611 56%);
}
.intro-door::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: #3da2ff; box-shadow: 0 0 18px 4px #0078ff, 0 0 60px 12px rgba(0, 120, 255, .55); }
.intro-door-left { left: 0; border-right: 1px solid #184a8e; }
.intro-door-right { right: 0; border-left: 1px solid #184a8e; }
.intro-door-left::after { right: 0; }.intro-door-right::after { left: 0; }
.intro-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; transition: opacity .3s ease, transform .6s ease; }
.intro-core img { width: min(250px, 58vw); }
.intro-core span { color: #b9d9ff; font-size: 11px; font-weight: 800; letter-spacing: .42em; }
.intro-loader { width: 180px; height: 2px; overflow: hidden; background: rgba(255,255,255,.09); }
.intro-loader i { display: block; width: 42%; height: 100%; background: linear-gradient(90deg, transparent, var(--cyan), #fff); box-shadow: 0 0 18px var(--blue); animation: introScan 1.2s linear infinite; }
.intro.ready .intro-door-left { transform: translateX(-101%); }
.intro.ready .intro-door-right { transform: translateX(101%); }
.intro.ready .intro-core { opacity: 0; transform: scale(.92); }
.intro.dismissed { display: none; }
@keyframes introScan { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.scene { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.stars { position: absolute; inset: 0; opacity: .46; background-image: radial-gradient(circle, rgba(170, 215, 255, .8) 0 1px, transparent 1.6px); background-size: 83px 83px; animation: stars 16s linear infinite; }
.beam { position: absolute; width: 42vw; height: 120vh; top: -20vh; filter: blur(14px); opacity: .13; background: linear-gradient(90deg, transparent, #167dff, transparent); transform: rotate(18deg); animation: beam 10s ease-in-out infinite alternate; }
.beam-one { left: 2%; }.beam-two { right: -8%; transform: rotate(-18deg); animation-delay: -4s; }
.floor-grid { position: absolute; left: -25%; right: -25%; bottom: -37vh; height: 70vh; opacity: .2; transform: perspective(520px) rotateX(63deg); background-image: linear-gradient(#1785ff 1px, transparent 1px), linear-gradient(90deg, #1785ff 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, transparent, #000); }
@keyframes stars { to { transform: translateY(83px); } }
@keyframes beam { to { opacity: .24; transform: rotate(12deg) translateX(10vw); } }

.shell { width: min(1240px, calc(100% - 36px)); margin: auto; padding: 28px 0 34px; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding-bottom: 20px; border-bottom: 1px solid var(--line); animation: reveal .7s ease 1.05s both; }
.brand { width: 166px; line-height: 0; }
.brand img, footer img { width: 100%; }
.arena-tag { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(246, 200, 91, .28); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); color: var(--gold); background: rgba(246, 200, 91, .04); font-size: 10px; letter-spacing: .15em; }
.arena-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.arena-tag b { color: #91a1b9; font-weight: 600; }
.live-pill { justify-self: end; display: flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid rgba(49,227,161,.25); border-radius: 999px; color: var(--green); background: rgba(49,227,161,.06); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.live-pill i, .market-pulse i, footer p i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.live-pill.offline { color: var(--red); border-color: rgba(255,93,120,.24); background: rgba(255,93,120,.05); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; min-height: 430px; padding: 45px 5%; overflow: hidden; border-bottom: 1px solid var(--line); animation: reveal .85s ease 1.12s both; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), var(--blue), transparent); opacity: .55; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .26em; }
.eyebrow span { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow span:last-child { transform: scaleX(-1); }
h1 { margin: 0; font-size: clamp(48px, 7vw, 92px); line-height: .91; letter-spacing: -.055em; text-transform: uppercase; }
h1 strong { color: transparent; font-weight: 900; -webkit-text-stroke: 1px rgba(121, 190, 255, .9); background: linear-gradient(180deg, #fff 10%, #9ac8ff 46%, #177fff 75%, #c9e5ff 94%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 16px rgba(27,130,255,.45)); }
.subtitle { max-width: 600px; margin: 24px 0 0; color: #8596b0; font-size: 15px; line-height: 1.7; }
.hero-emblem { position: relative; justify-self: center; width: min(360px, 36vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero-emblem::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(21,119,255,.2), transparent 63%); filter: blur(8px); animation: breathe 3s ease-in-out infinite; }
.emblem-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(59,150,255,.31); }
.ring-one { inset: 7%; border-style: dashed; animation: rotate 22s linear infinite; }
.ring-two { inset: 19%; border-color: rgba(246,200,91,.24); animation: rotate 13s linear infinite reverse; }
.emblem-center { position: relative; width: 55%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(63,152,255,.45); border-radius: 36%; transform: rotate(45deg); background: linear-gradient(145deg, rgba(13,57,118,.8), rgba(3,12,29,.94)); box-shadow: inset 0 0 36px rgba(24,121,255,.2), 0 0 55px rgba(0,112,255,.2); }
.emblem-center img { width: 72%; transform: rotate(-45deg); }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: white; box-shadow: 0 0 8px 3px #1e8cff; animation: orbit 5s linear infinite; }
.spark-two { animation-delay: -2.5s; animation-direction: reverse; }
@keyframes rotate { to { transform: rotate(1turn); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .65; } }
@keyframes orbit { from { transform: rotate(0) translateX(150px) rotate(0); } to { transform: rotate(360deg) translateX(150px) rotate(-360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }

.podium-section, .board-section { padding-top: 48px; animation: reveal .8s ease 1.22s both; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-heading > div:first-child { display: flex; align-items: center; gap: 12px; }
.section-heading span:first-child { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.section-heading p { margin: 0; color: #dbe8fa; font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.tick { display: flex; align-items: baseline; gap: 12px; }
.tick small { color: #536782; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.tick strong { color: #d8eaff; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }

.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 14px; align-items: end; min-height: 234px; }
.podium-card { position: relative; min-width: 0; min-height: 192px; overflow: hidden; padding: 26px 24px 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(11,29,58,.86), rgba(4,11,24,.96)); box-shadow: 0 18px 60px rgba(0,0,0,.28); transition: transform .45s ease, border-color .3s; }
.podium-card::before { content: ""; position: absolute; inset: 0; opacity: .55; background: linear-gradient(115deg, transparent 30%, rgba(30,125,255,.12), transparent 58%); transform: translateX(-100%); animation: cardSweep 5s ease-in-out infinite; }
.podium-card.first { min-height: 222px; border-color: rgba(246,200,91,.4); background: linear-gradient(145deg, rgba(48,37,12,.55), rgba(5,17,39,.96) 62%); box-shadow: 0 22px 80px rgba(14,86,194,.22); }
.podium-card:hover { transform: translateY(-5px); border-color: var(--line-hot); }
.podium-glow { position: absolute; right: -40px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%; filter: blur(30px); background: rgba(15,116,255,.16); }
.first .podium-glow { background: rgba(246,200,91,.14); }
.place { position: absolute; top: 18px; right: 20px; color: rgba(127,175,237,.22); font-size: 68px !important; font-weight: 950; line-height: 1; }
.first .place { color: rgba(246,200,91,.26); }
.podium-card .avatar { width: 46px; height: 46px; margin-bottom: 18px; }
.podium-card h2 { position: relative; z-index: 1; overflow: hidden; margin: 0 52px 6px 0; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.podium-card .mt5-id { color: #7691b6; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.podium-card .podium-value { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; margin-top: 23px; color: var(--green); font-size: 25px; font-weight: 950; font-variant-numeric: tabular-nums; }
.podium-card .podium-value.negative { color: var(--red); }
.podium-card .podium-value small { font-size: 10px; font-weight: 800; letter-spacing: .12em; opacity: .58; }
.podium-card .position-note { position: absolute; right: 22px; bottom: 24px; color: #6e829f; font-size: 10px; }
.placeholder::after { content: ""; position: absolute; left: 24px; top: 72px; width: 55%; height: 12px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); animation: shimmer 1.8s linear infinite; }
@keyframes cardSweep { 40%, 100% { transform: translateX(140%); } }
@keyframes shimmer { to { filter: brightness(1.8); } }

.board-section { padding-top: 58px; }
.market-pulse { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.board { min-height: 580px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.board-head, .leader-row { display: grid; grid-template-columns: 82px minmax(230px, 1.55fr) minmax(110px, .55fr) minmax(150px, .72fr) minmax(150px, .72fr); align-items: center; gap: 12px; }
.board-head { min-height: 54px; padding: 0 24px; border-bottom: 1px solid var(--line); color: #637691; background: rgba(3,10,23,.78); font-size: 9px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.positions-col, .equity-col, .pnl-col { text-align: right; }
.leader-row { position: relative; min-height: 82px; padding: 12px 24px; border-bottom: 1px solid rgba(68,127,207,.11); transition: transform .5s cubic-bezier(.2,.8,.2,1), background .3s, opacity .3s; animation: rowIn .48s cubic-bezier(.2,.8,.2,1) both; }
.leader-row::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--blue); opacity: 0; box-shadow: 0 0 14px var(--blue); transition: opacity .25s; }
.leader-row:hover { background: linear-gradient(90deg, rgba(18,92,190,.11), rgba(10,31,66,.05)); }
.leader-row:hover::before { opacity: 1; }
.leader-row.is-rising { animation: rowIn .42s ease both, glowGreen .85s ease; }
.leader-row.is-falling { animation: rowIn .42s ease both, glowRed .85s ease; }
@keyframes rowIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes glowGreen { 50% { background: rgba(49,227,161,.11); } }
@keyframes glowRed { 50% { background: rgba(255,93,120,.09); } }

.rank { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 17px; }
.rank-badge { position: relative; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(82,140,220,.2); color: #8ba0bf; background: rgba(255,255,255,.02); clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%); }
.rank-badge.podium-1 { color: #261c04; background: linear-gradient(145deg, #fff0a8, #d49b28); filter: drop-shadow(0 0 12px rgba(246,200,91,.36)); }
.rank-badge.podium-2 { color: #263143; background: linear-gradient(145deg, #f1f6ff, #8c9bb1); }
.rank-badge.podium-3 { color: #371d10; background: linear-gradient(145deg, #edb387, #925634); }
.trader { display: flex; align-items: center; min-width: 0; gap: 14px; }
.avatar { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid rgba(48,143,255,.34); color: #d9efff; background: radial-gradient(circle at 30% 20%, #1e74d7, #071a37 70%); box-shadow: inset 0 0 18px rgba(31,127,255,.17); font-size: 12px; font-weight: 950; letter-spacing: .04em; }
.identity { min-width: 0; }
.identity strong { display: block; overflow: hidden; color: #f6f9ff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.identity span { display: block; margin-top: 5px; color: #6f87a8; font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.number { text-align: right; color: #d4e2f5; font-size: 14px; font-variant-numeric: tabular-nums; }
.positions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.positions i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.equity { text-align: right; color: #f2f7ff; font-family: "Barlow Condensed", sans-serif; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.equity small { margin-right: 2px; color: var(--gold); font-size: 11px; }
.pnl { text-align: right; font-size: 19px; font-weight: 950; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pnl.positive { color: var(--green); text-shadow: 0 0 20px rgba(49,227,161,.16); }
.pnl.negative { color: var(--red); text-shadow: 0 0 20px rgba(255,93,120,.14); }
.pnl small { margin-right: 3px; font-size: 11px; opacity: .58; }

.sentinel { display: grid; place-items: center; min-height: 66px; }
.loader { width: 24px; height: 24px; border: 2px solid rgba(31,132,255,.17); border-top-color: var(--cyan); border-radius: 50%; animation: rotate .7s linear infinite; }
.sentinel.done { min-height: 20px; }.sentinel.done .loader { display: none; }
.empty-state { padding: 110px 20px; text-align: center; }
.empty-state h2 { margin: 20px 0 8px; font-size: 23px; text-transform: uppercase; }
.empty-state p { max-width: 460px; margin: auto; color: var(--muted); line-height: 1.6; }
.signal-icon { display: flex; justify-content: center; align-items: end; gap: 5px; height: 32px; }
.signal-icon i { width: 6px; border-radius: 4px; background: var(--cyan); animation: bars 1s ease-in-out infinite alternate; }
.signal-icon i:nth-child(1) { height: 12px; }.signal-icon i:nth-child(2) { height: 24px; animation-delay: -.4s; }.signal-icon i:nth-child(3) { height: 18px; animation-delay: -.7s; }
@keyframes bars { to { height: 30px; opacity: .42; } }

footer { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 24px; padding: 28px 4px 0; color: #5d718e; font-size: 10px; letter-spacing: .08em; }
footer p { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 0; }
footer p i { display: block; color: var(--green); }
footer span { color: #526a8a; font-weight: 900; letter-spacing: .17em; }

@media (max-width: 820px) {
  .shell { width: min(100% - 20px, 1240px); }
  .topbar { grid-template-columns: 1fr auto; }.arena-tag { display: none; }
  .brand { width: 150px; }
  .hero { grid-template-columns: 1fr; min-height: 480px; padding-inline: 3%; }
  .hero-emblem { position: absolute; right: -80px; width: 330px; opacity: .26; }
  .hero-copy { position: relative; z-index: 1; }
  .podium { grid-template-columns: 1fr; }.podium-card { min-height: 166px !important; }
  .podium-card.first { order: -1; }
  .board-head, .leader-row { grid-template-columns: 60px minmax(150px, 1fr) 125px 112px; padding-inline: 12px; gap: 8px; }
  .positions-col, .positions { display: none; }
  .avatar { display: none; }
  footer { grid-template-columns: 120px 1fr; } footer span { display: none; }
}

@media (max-width: 520px) {
  .brand { width: 126px; }.live-pill { padding: 8px 10px; }
  .hero { min-height: 400px; padding-block: 38px; }
  h1 { font-size: 45px; }.eyebrow { font-size: 9px; letter-spacing: .16em; }
  .section-heading .tick small { display: none; }
  .board-head, .leader-row { grid-template-columns: 44px minmax(112px, 1fr) 98px 92px; }
  .rank-badge { width: 34px; height: 34px; }
  .identity strong { font-size: 12px; }.equity, .pnl { font-size: 15px; }
  footer { grid-template-columns: 1fr; } footer img { width: 130px; margin: auto; } footer p { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .intro-door { transition-duration: .01ms; }
}

.rank-icon { position: relative; display: block; overflow: hidden; width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.rank-icon img { position: absolute; top: 0; left: 50%; width: 80px; max-width: none; height: auto; transform: translateX(-50%); }
@media (max-width: 520px) { .rank-icon { width: 18px; height: 18px; } .rank-icon img { width: 72px; } }
