*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg:            #0b0b14;
    --surface:       #13131f;
    --accent-1:      #7c3aed;
    --accent-2:      #2563eb;
    --text:          #f0f0f8;
    --text-muted:    #8b8fa8;
    --border:        rgba(255,255,255,0.07);
    --border-active: rgba(124,58,237,0.5);
    --card-active:   rgba(124,58,237,0.12);
}

html, body { height: 100%; background: var(--bg); color: var(--text); overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }

#app { height: 100%; position: relative; overflow: hidden; }

/* ── SCREENS ── */
.screen {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateX(60px);
    transition: opacity 0.32s ease, transform 0.32s ease;
    pointer-events: none; overflow: hidden;
}
.screen.active { opacity: 1; transform: translateX(0); pointer-events: all; }
.screen.exit   { opacity: 0; transform: translateX(-40px); pointer-events: none; }

/* ── LOGO ── */
.logo {
    font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
    background: linear-gradient(130deg, #a78bfa 0%, #60a5fa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ════════════════════════════
   SCREEN 1
   ════════════════════════════ */

.ticker-top, .ticker-bottom {
    width: 100%; flex: 1;
    display: flex; flex-direction: column;
    overflow: hidden; opacity: 0.09;
    pointer-events: none; user-select: none;
}
.ticker-row {
    flex: 1; display: flex; align-items: center;
    white-space: nowrap; font-size: 13px;
    letter-spacing: 0.03em; color: var(--text);
}
.ticker-inner {
    display: inline-block;
    animation: tickLeft var(--dur, 28s) linear infinite;
    will-change: transform;
}
.ticker-row.rtl .ticker-inner { animation: tickRight var(--dur, 32s) linear infinite; }
@keyframes tickLeft  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes tickRight { from { transform: translateX(-50%); } to { transform: translateX(0); }    }

.pick-content {
    height: 100%; display: flex; flex-direction: column;
    align-items: center; padding: 44px 16px 40px;
    overflow: hidden;
}
.pick-content .logo { font-size: 30px; margin-bottom: 8px; }

/* Два барабана */
.carousels-row {
    display: flex; align-items: center;
    gap: 15px; flex: 1; width: 100%; max-width: 510px;
}
.carousel-col {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.c-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-muted);
    text-align: center; min-height: 16px;
}
.c-arrow-mid {
    font-size: 20px; color: var(--text-muted); opacity: 0.5;
    flex-shrink: 0; margin-top: 24px;
}

/* Карусель */
.carousel {
    width: 100%;
    height: 333px;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to bottom,
        transparent 0%, black 26%, black 74%, transparent 100%);
    mask-image: linear-gradient(to bottom,
        transparent 0%, black 26%, black 74%, transparent 100%);
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-pad { height: 111px; flex-shrink: 0; }

.carousel-item {
    height: 111px;
    scroll-snap-align: center;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px; cursor: pointer; user-select: none;
    transition: opacity 0.15s, transform 0.15s;
}
.carousel-item .c-flag { font-size: 45px; line-height: 1; }
.carousel-item .c-name { font-size: 20px; font-weight: 600; text-align: center; }

/* Кнопка */
.continue-btn {
    width: 100%; max-width: 320px;
    padding: 17px; border: none; border-radius: 14px;
    background: linear-gradient(130deg, #7c3aed, #2563eb);
    color: #fff; font-size: 16px; font-weight: 600;
    cursor: pointer; letter-spacing: 0.01em; margin-top: 20px;
    transition: opacity 0.15s, transform 0.1s;
}
.continue-btn:active { opacity: 0.82; transform: scale(0.98); }

/* ════════════════════════════
   SCREEN 2
   ════════════════════════════ */
#screen-target { padding: 28px 20px 40px; overflow-y: auto; }

.top-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}
.back-btn {
    background: none; border: none; color: var(--text-muted);
    font-size: 22px; cursor: pointer; padding: 4px; line-height: 1;
    transition: color 0.2s;
}
.back-btn:hover { color: var(--text); }
.spacer { width: 30px; }

.pitch { flex: 1; margin-bottom: 32px; }
.pitch h1 { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.pitch p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.bot-cta { margin-top: auto; }

.bot-btn {
    width: 100%; padding: 17px; border: none; border-radius: 14px;
    background: linear-gradient(130deg, #7c3aed, #2563eb);
    color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}
.bot-btn:active { opacity: 0.82; transform: scale(0.98); }

.bot-instruction {
    margin-top: 10px; font-size: 12px; color: var(--text-muted);
    text-align: center; line-height: 1.55;
}
