:root {
    --accent: #39FF14;
    --header-bg-start: #0a5c2e;
    --header-bg-end: #0d7035;

    --bg: var(--tg-theme-bg-color, #0f0f0f);
    --text: var(--tg-theme-text-color, #ffffff);
    --muted: var(--tg-theme-hint-color, #8a8a8a);
}

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

html, body {
    height: 100%;
    width: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.redirect-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(57, 255, 20, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.redirect-text {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.redirect-btn {
    margin-top: 12px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--header-bg-start), var(--header-bg-end));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(57, 255, 20, 0.22);
}

.redirect-btn:hover  { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(57, 255, 20, 0.32); }
.redirect-btn:active { transform: translateY(0);    box-shadow: 0 2px 8px  rgba(57, 255, 20, 0.22); }

[hidden] { display: none !important; }
