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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
}

.user-info {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.login-btn.logged-in {
    background: #4CAF50;
    border-color: #4CAF50;
}

#login-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.sign-in-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.sign-in-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.sign-in-card:hover {
    transform: translateY(-5px);
}

.sign-in-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

.sign-in-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.sign-in-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.sign-in-btn.pressed {
    background: #f0f0f0;
    color: #666;
    transform: scale(1);
    border-radius: 25px;
    padding: 15px 40px;
    box-shadow: 0 2px 8px rgba(102, 102, 102, 0.4);
}

.sign-in-status {
    color: #666;
    font-size: 14px;
}

.constellation-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.constellation-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

.constellation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.constellation-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.constellation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.constellation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.constellation-card h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.constellation-card .points {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    margin-top: 8px;
    display: block;
    margin-bottom: 12px;
}

.claim-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;
}

.claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.claimed {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.5s ease-in;
}

.exchange-section {
    margin-top: 40px;
    margin-bottom: 20px;
}

.exchange-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: bold;
}

.exchange-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.exchange-card:hover {
    transform: translateY(-5px);
}

.exchange-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.exchange-info {
    flex: 1;
}

.exchange-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.exchange-info p {
    margin-bottom: 15px;
    color: #666;
}

.exchange-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exchange-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.exchange-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
        margin-bottom: 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .user-info {
        font-size: 16px;
        gap: 10px;
    }

    .sign-in-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .sign-in-card {
        padding: 20px;
    }

    .sign-in-section h2 {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .sign-in-btn {
        padding: 12px 24px;
        font-size: 14px;
        gap: 8px;
    }

    .sign-in-btn.pressed {
        padding: 12px 30px;
    }

    .constellation-section {
        margin-top: 25px;
        margin-bottom: 20px;
    }

    .constellation-section h2 {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .constellation-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .constellation-card {
        padding: 15px;
    }

    .constellation-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .constellation-card .points {
        font-size: 18px;
        margin-top: 6px;
        margin-bottom: 8px;
    }

    .claim-btn {
        padding: 5px 10px;
        font-size: 11px;
        margin-top: 6px;
    }

    .exchange-section {
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .exchange-section h2 {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .exchange-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }

    .exchange-card img {
        width: 120px;
        height: 120px;
    }

    .exchange-info h3 {
        margin-bottom: 8px;
    }

    .exchange-info p {
        margin-bottom: 12px;
    }

    .exchange-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }

    .header {
        padding: 12px;
        margin-bottom: 15px;
    }

    .header h1 {
        font-size: 18px;
    }

    .user-info {
        font-size: 14px;
        gap: 8px;
    }

    .sign-in-card {
        padding: 15px;
    }

    .sign-in-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .constellation-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .constellation-card {
        padding: 12px;
    }

    .constellation-card h3 {
        font-size: 12px;
    }

    .constellation-card .points {
        font-size: 16px;
    }

    .exchange-card {
        padding: 12px;
        gap: 12px;
    }

    .exchange-card img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 360px) {
    .constellation-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .constellation-card {
        padding: 10px;
    }

    .constellation-card h3 {
        font-size: 11px;
    }

    .constellation-card .points {
        font-size: 14px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.error-message {
    background: transparent;
    color: #f44336;
    padding: 5px;
    border-radius: 0;
    margin-top: 5px;
    text-align: left;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}