*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
    background: #09090d;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    overflow-x: hidden;
}

.grid {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.orb-1 {
    width: clamp(280px, 60vw, 700px);
    height: clamp(280px, 60vw, 700px);
    background: rgba(38,169,224,0.12);
    top: -20%;
    left: -15%;
}

.orb-2 {
    width: clamp(200px, 45vw, 500px);
    height: clamp(200px, 45vw, 500px);
    background: rgba(33,150,243,0.09);
    bottom: -15%;
    right: -10%;
}

.card {
    position: relative;
    z-index: 1;
    width: min(480px, calc(100vw - 48px));
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    padding: clamp(24px, 6vw, 40px);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02),
        0 24px 80px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

.live {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(52,199,89,0.75);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34c759;
    animation: blink 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

h1 {
    font-size: clamp(28px, 7vw, 42px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 28px;
}

h1 span {
    display: block;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
}

.proxy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #2ca5e0;
    color: #fff;
    text-decoration: none;
    font-size: clamp(14px, 3.5vw, 15px);
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 15px 24px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 24px rgba(44,165,224,0.35);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.proxy-btn:active {
    transform: scale(0.98);
}

.proxy-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.card-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: clamp(11px, 2.8vw, 13px);
    font-weight: 500;
    padding: 10px 8px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.link-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

@media (hover: hover) {
    .proxy-btn:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 32px rgba(44,165,224,0.5);
    }

    .link-btn:hover {
        background: rgba(255,255,255,0.09);
        color: rgba(255,255,255,0.85);
    }

    .link-btn:hover svg { opacity: 1; }
}

@media (max-width: 360px) {
    .card { border-radius: 20px; }
    .card-bottom { gap: 6px; }
    .link-btn { padding: 10px 6px; gap: 5px; }
    .link-btn svg { width: 13px; height: 13px; }
}

@media (max-height: 480px) and (orientation: landscape) {
    body { align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
    .card-top { margin-bottom: 16px; }
    h1 { margin-bottom: 16px; }
    .card-bottom { margin-top: 16px; padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot { animation: none; }
    .proxy-btn, .link-btn { transition: none; }
}
