
:root {
    --bg-main: #020617;
    --bg-card: #02091b;
    --bg-card-soft: #020b1f;
    --bg-chip: #0b1220;
    --accent: #f97316;
    --accent-soft: rgba(249,115,22,0.16);
    --accent-green: #22c55e;
    --accent-green-soft: rgba(34,197,94,0.18);
    --accent-cyan: #22d3ee;
    --accent-cyan-soft: rgba(34,211,238,0.16);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-soft: rgba(148,163,184,0.15);
    --radius-card: 24px;
    --shadow-card: 0 24px 60px rgba(15,23,42,0.9);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
    color: var(--text-main);
    min-height: 100vh;
    padding-top: 64px;
    -webkit-font-smoothing: antialiased;
}

section[id] {
    scroll-margin-top: 76px;
}

.app-shell {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

/* HEADER */

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 50;
    background: linear-gradient(90deg, #020617 0%, #020b33 40%, #020617 100%);
    border-bottom: 1px solid rgba(15,23,42,0.9);
    box-shadow: 0 10px 32px rgba(15,23,42,0.9);
}

.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    max-width: 520px;
    margin: 0 auto;
    gap: 10px;
    height: 56px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #020617, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
    0 0 0 1px rgba(148,163,184,0.4),
    0 10px 28px rgba(15,23,42,0.95);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    width: 120%;
    height: 120%;
    object-fit: contain;
    display: block;
}

.brand-title-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.brand-title {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-nav {
    display: inline-flex;
    gap: 6px;
    flex-shrink: 0;
}

.nav-btn {
    border: 1px solid rgba(56,189,248,0.6);
    background: radial-gradient(circle at 0 0, #0f172a, #02091b 70%);
    color: #e5f0ff;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 9px 20px rgba(15,23,42,0.9);
    gap: 4px;
    text-decoration: none;
}

.nav-btn-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg,#22d3ee,#0ea5e9);
    box-shadow: 0 0 0 2px rgba(8,47,73,0.8);
}

.nav-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 14px rgba(15,23,42,0.9);
}

/* CONTENT LAYOUT */

.content {
    flex: 1;
    padding: 14px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.screen-title-block {
    padding: 4px 4px 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pill-row {
    display: flex;
    justify-content: flex-start;
}

.pill-tag {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(148,163,184,0.3);
    color: var(--text-main);
    background: radial-gradient(circle at 0 0,#020617,#02091b);
}

.screen-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.screen-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.info-cards-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-card {
    position: relative;
    border-radius: var(--radius-card);
    padding: 10px 12px 11px;
    background:
    radial-gradient(circle at top left,#020b2a 0,#020617 50%,#000 100%);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 55%);
    opacity: 0.55;
    pointer-events: none;
}

.info-card-header {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.info-card-number {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.info-card-title {
    font-size: 13px;
    font-weight: 500;
}

.info-card-text {
    position: relative;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

.info-card-text + .info-card-text {
    margin-top: 4px;
}

/* INVESTMENT BARS */

.invest-bars {
    position: relative;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invest-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.invest-label {
    font-size: 12px;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.invest-bar-track {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.25);
    overflow: hidden;
}

.invest-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(to right, rgba(249,115,22,0.9), rgba(249,115,22,0.6));
    box-shadow: 0 0 8px rgba(249,115,22,0.5);
    transition: width 0.6s ease;
}

/* MEDIA IMAGE BLOCK */

.media-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.media-image-wrap {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(15,23,42,0.98);
    border: 1px solid rgba(148,163,184,0.35);
    background: radial-gradient(circle at top,#020617,#000);
}

.media-image {
    display: block;
    width: 100%;
    height: auto;
}

/* GAME LIST CARDS */

.games-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-card {
    position: relative;
    border-radius: 18px;
    padding: 9px 11px 10px;
    background:
    radial-gradient(circle at top left,#020b2a 0,#020617 50%,#000 100%);
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 40px rgba(15,23,42,0.9);
}

.game-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.game-body-line {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* TEAM */

.team-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 10px;
    row-gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ROADMAP */

.road-card {
    position: relative;
    border-radius: var(--radius-card);
    padding: 12px 14px 14px;
    background:
    radial-gradient(circle at top left,#020b2a 0,#020617 50%,#000 100%);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.road-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 55%);
    opacity: 0.5;
    pointer-events: none;
}

.road-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.road-heading-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.road-title {
    font-size: 16px;
    font-weight: 600;
}

.road-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.road-current-pill {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(249,115,22,0.8);
    color: #fed7aa;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
}

.road-current-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.32);
}

.road-vertical {
    position: relative;
    margin-top: 8px;
    padding-left: 20px;
}

.road-vertical-line {
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(249,115,22,0.85), rgba(249,115,22,0.2));
    opacity: 0.95;
}

.road-vert-step {
    position: relative;
    padding-left: 18px;
    padding-bottom: 14px;
}

.road-vert-step:last-child {
    padding-bottom: 4px;
}

.road-vert-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.9);
}

.road-vert-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
}

.road-vert-step.is-past .road-vert-dot-inner {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.4);
}

.road-vert-step.is-current .road-vert-dot-inner {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.75);
}

.road-vert-step.is-future .road-vert-dot-inner {
    background: transparent;
    border-radius: 999px;
    border: 2px solid rgba(249,115,22,0.7);
}

.road-step-header-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.road-period-pill {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.35);
    color: rgba(229,231,235,0.96);
}

.road-step-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(229,231,235,0.96);
}

.road-step-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(249,115,22,0.9);
    color: #fed7aa;
}

.road-step-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.road-step-text p {
    margin: 0 0 4px;
}

.road-step-text p:last-child {
    margin-bottom: 0;
}

/* SIMPLE BAR CHARTS */

.chart-card {
    position: relative;
    border-radius: var(--radius-card);
    padding: 12px 12px 14px;
    background:
    radial-gradient(circle at top left,#020b2a 0,#020617 50%,#000 100%);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.chart-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 55%);
    opacity: 0.5;
    pointer-events: none;
}

.chart-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    padding-right: 4px;
}

.chart-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chart-title {
    font-size: 15px;
    font-weight: 600;
}

.chart-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.chart-pill {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.35);
    color: #fed7aa;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.chart-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.24);
}

.chart-meta-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.chart-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.chart-meta span {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.35);
}

.chart-bars-wrap {
    position: relative;
    border-radius: calc(var(--radius-card) - 8px);
    border: 1px solid rgba(148,163,184,0.35);
    background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(to bottom, rgba(15,23,42,0.98), rgba(15,23,42,0.98));
    padding: 6px 6px 8px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 170px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.chart-bar-fill {
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(to top, rgba(249,115,22,0.85), rgba(253,224,171,0.15));
    height: calc(var(--h) * 1%);
    box-shadow: 0 10px 18px rgba(15,23,42,0.9);
    position: relative;
    overflow: visible;
}

.chart-bar-fill::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 3px;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.3), 0 0 12px rgba(249,115,22,0.9);
}

.chart-bar-value {
    font-size: 9px;
    color: rgba(248,250,252,0.95);
    white-space: nowrap;
}

.chart-bar-label {
    font-size: 9px;
    color: var(--text-muted);
}

.chart-footer-note {
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-muted);
}

/* CANVAS CHARTS */

.chart-canvas-wrap {
    position: relative;
    border-radius: calc(var(--radius-card) - 8px);
    border: 1px solid rgba(148,163,184,0.06);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 55%),
        linear-gradient(to bottom, rgba(7, 9, 13, 0.95), rgba(4, 5, 8, 0.96));
    overflow: hidden;
}

.chart-canvas-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.9;
    pointer-events: none;
}

canvas {
    display: block;
    width: 100%;
    height: 260px;
}

/* CONTACTS */

.contacts-card {
    position: relative;
    border-radius: var(--radius-card);
    padding: 12px 13px 14px;
    background:
    radial-gradient(circle at 0 0,#020617,#020617 65%,#000);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
}

.contacts-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 4px;
}

.contacts-text:last-child {
    margin-bottom: 0;
}

.cta-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cta-btn {
    border-radius: 999px;
    border: 1px solid rgba(56,189,248,0.8);
    background: radial-gradient(circle at 0 0, #1e293b, #020617 70%);
    color: #e5f0ff;
    font-size: 12px;
    padding: 7px 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 10px 24px rgba(15,23,42,0.95);
}

.cta-btn:active {
    transform: translateY(1px);
    box-shadow: 0 6px 18px rgba(15,23,42,0.95);
}

/* SCROLL TO TOP */

.scroll-top-btn {
    position: fixed;
    right: 14px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(56,189,248,0.8);
    background: radial-gradient(circle at 0 0, #1e293b, #020617 70%);
    color: #e5f0ff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(15,23,42,0.95);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 40;
    text-shadow: 0 0 10px rgba(56,189,248,0.9);
}

.scroll-top-btn.is-visible {
    opacity: 0.96;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:active {
    transform: translateY(2px);
    box-shadow: 0 10px 26px rgba(15,23,42,0.9);
}

.footer {
    padding: 10px 18px 18px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.9;
}

@media (max-width: 430px) {
    .app-header-inner {
    padding-inline: 10px;
    }

    .content {
    padding-inline: 10px;
    }

    .road-card,
    .chart-card,
    .info-card,
    .contacts-card {
    padding-inline: 10px;
    }
}

@media (max-width: 380px) {
    body {
    padding-top: 58px;
    }

    .app-header-inner {
    gap: 6px;
    }

    .brand-title {
    font-size: 12px;
    }

    .header-nav {
    gap: 4px;
    }

    .nav-btn {
    padding-inline: 8px;
    font-size: 10px;
    }

    .content {
    padding-inline: 10px;
    }
}