
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.container {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.icon {
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

.icon img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

h1 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.description {
    font-size: 15px;
    color: #f7fafc;
    line-height: 1.8;
    margin-bottom: 10px;
}

.highlight {
    color: #ffd700;
    font-weight: 700;
    font-size: 17px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.success-rate {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #f06595 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    margin: 5px 0;
    box-shadow: 0 4px 15px rgba(240, 101, 149, 0.4);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    display: block;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-label {
    font-size: 12px;
    color: #e2e8f0;
    margin-top: 5px;
}

.input-group {
    margin: 25px 0;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
    color: #2d3748;
}

input[type="text"]:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

input[type="text"]::placeholder {
    color: #a0aec0;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-header p {
    font-size: 14px;
    color: #e2e8f0;
}

/* Progress Bars */
.progress-container {
    margin: 20px 0;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-label {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ff6b6b 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.checkmark {
    color: #48bb78;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.checkmark.show {
    opacity: 1;
}

/* Result Modal */
.result-content {
    text-align: center;
}

.result-icon {
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

.result-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.result-title {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.result-text {
    font-size: 16px;
    color: #f7fafc;
    line-height: 1.8;
    margin-bottom: 25px;
}

.line-highlight {
    color: #ffd700;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.line-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: #06c755;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.line-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(6, 199, 85, 0.4);
    background: #05b34a;
}

.line-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 24px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }
}
