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

:root {
    --bg-dark: #070b14;
    --card-bg: rgba(15, 23, 42, 0.78);
    --border-color: rgba(148, 163, 184, 0.18);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --pc-accent: #3b82f6;
    --pc-glow: rgba(59, 130, 246, 0.35);
    --mob-accent: #10b981;
    --mob-glow: rgba(16, 185, 129, 0.35);
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: radial-gradient(circle at top right, #111c36, var(--bg-dark) 65%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 20px;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.portal-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
}

.portal-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.brand-header {
    margin-bottom: 24px;
}

.logo-ring {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.brand-header h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

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

.device-hint {
    font-size: 13px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 20px;
    display: none;
}

.choices-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: right;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 20px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.choice-card:hover {
    transform: translateY(-3px);
}

.pc-card:hover,
.pc-card.recommended {
    border-color: var(--pc-accent);
    box-shadow: 0 10px 28px var(--pc-glow);
    background: rgba(37, 99, 235, 0.14);
}

.mobile-card:hover,
.mobile-card.recommended {
    border-color: var(--mob-accent);
    box-shadow: 0 10px 28px var(--mob-glow);
    background: rgba(16, 185, 129, 0.14);
}

.card-icon {
    font-size: 32px;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
}

.card-info h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.card-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.arrow {
    font-size: 20px;
    color: var(--text-muted);
    transition: transform 0.25s ease, color 0.25s ease;
}

.choice-card:hover .arrow {
    transform: translateX(-4px);
    color: #fff;
}

.portal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.security-note {
    color: #60a5fa;
    font-weight: 600;
}

@media (max-width: 480px) {
    .portal-card {
        padding: 26px 18px;
    }
    .brand-header h1 {
        font-size: 24px;
    }
    .choice-card {
        padding: 15px 14px;
    }
    .card-icon {
        width: 46px;
        height: 46px;
        font-size: 26px;
    }
}
