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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #000;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f5f5f5;
    z-index: 100;
    width: 100%;
    padding: 16px 20px; /* Keep padding here for space around the buttons */
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.status-bar {
    display: none;
}

.close-btn, .support-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    width: 24px;
    height: 24px;
}

.close-btn {
    color: #000;
}

.close-btn svg {
    width: 24px;
    height: 24px;
}

.support-btn {
    color: #666;
}

.support-btn svg {
    width: 24px;
    height: 24px;
}

.main-content {
    flex: 1;
    padding: 100px 24px 140px;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: #f5f5f5;
}

.title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    text-align: center;
}

.description {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    letter-spacing: -0.3px;
    text-align: left;
    background-color: #fff;
    padding: 20px 15px;
    border-radius: 12px;
    margin: 0 auto;
    width: calc(100% - 20px);
    max-width: 400px;
}

.description p {
    margin-bottom: 0;
}

.description p:first-child {
    margin-bottom: 0;
}

.note {
    margin-top: 12px;
    font-size: 10px;
    color: #999;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f5f5f5;
    display: flex;
    gap: 12px;
    padding: 16px 20px; /* Add padding here for consistent spacing */
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.btn-secondary {
    background-color: #d0d0d0;
    color: #000;
}

.btn-secondary:active {
    background-color: #b8b8b8;
    transform: scale(0.98);
}

.btn-primary {
    background-color: #FFE500;
    color: #000;
}

.btn-primary:active {
    background-color: #f5db00;
    transform: scale(0.98);
}

@media screen and (max-width: 375px) {
    .title {
        font-size: 24px;
    }

    .main-content {
        padding: 80px 20px 140px;
    }

    .description {
        font-size: 10px;
        padding: 15px 10px;
        width: calc(100% - 15px);
    }

    .footer {
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

@media screen and (max-height: 700px) {
    .main-content {
        padding: 80px 24px 120px;
    }

    .title {
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 768px) {
    .container {
        max-width: 430px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
    
    .header {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .footer {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}