* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', 'Helvetica Neue', Arial, sans-serif;
    background: #10060f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header-wrap {
    background: #0c040b;
    border-bottom: 1px solid rgba(242, 89, 220, 0.15);
    width: 100%;
}

.header {
    width: 100%;
    padding: 14px 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lang-select {
    padding: 5px 28px 5px 10px;
    border: 1px solid #602358;
    border-radius: 4px;
    background: #0c040b;
    color: #bbb;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.2s;
}

.lang-select:focus {
    border-color: #f259dc;
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.coupon-card {
    width: 100%;
    max-width: 400px;
}

/* Brand Title */
.brand-title {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(242, 89, 220, 0.15);
}

.brand-name {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: #f259dc;
    margin-bottom: 10px;
}

.brand-sub {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #913584;
}

/* Page Title */
.game-title {
    text-align: center;
    margin-bottom: 32px;
}

.game-title h1 {
    font-size: 18px;
    font-weight: 600;
    color: #eee;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.game-title .subtitle {
    font-size: 15px;
    color: #aaa;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #180815;
    border: 1px solid #602358;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus {
    border-color: #f259dc;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f259dc, #f58ae6);
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 12px;
}

.submit-btn:hover {
    opacity: 0.85;
}

.submit-btn:active {
    opacity: 0.7;
}

.submit-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(242, 89, 220, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notice */
.notice-list {
    margin-top: 24px;
    padding: 0;
    list-style: none;
}

.notice-list li {
    font-size: 13px;
    color: #bbb;
    line-height: 1.7;
    padding-left: 12px;
    position: relative;
    margin-bottom: 4px;
    white-space: pre-line;
}

.notice-list li::before {
    content: '\00B7';
    position: absolute;
    left: 0;
    color: #bbb;
    font-weight: 700;
}

.notice-list li#noticeWarning {
    padding-left: 0;
    margin-top: 8px;
}

.notice-list li#noticeWarning::before {
    content: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 20px 32px;
    border-top: 1px solid rgba(242, 89, 220, 0.1);
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 11px;
    color: #555;
    text-decoration: none;
    padding: 0 8px;
    border-right: 1px solid #222;
    letter-spacing: 0.3px;
}

.footer-links a:last-child {
    border-right: none;
}

.footer-links a:hover {
    color: #f259dc;
}

.footer-links a.bold {
    font-weight: 700;
    color: #777;
}

.copyright {
    font-size: 10px;
    color: #666;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: #180815;
    border: 1px solid #481a42;
    border-radius: 12px;
    padding: 32px 24px 24px;
    max-width: 320px;
    width: 85%;
    text-align: center;
    overflow: hidden;
}

.modal-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.modal-message {
    font-size: 14px;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 24px;
    word-break: break-word;
    white-space: pre-line;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f259dc, #f58ae6);
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-btn:hover {
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }

    .main {
        padding: 28px 16px 16px;
    }

    .brand-name {
        font-size: 30px;
        letter-spacing: 6px;
    }

    .brand-sub {
        font-size: 13px;
    }

    .brand-title {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .game-title h1 {
        font-size: 16px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .submit-btn {
        padding: 13px;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 10px 12px;
    }

    .brand-name {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .brand-sub {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .main {
        padding: 20px 12px 12px;
    }

    .form-group input {
        padding: 11px 12px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 13px;
    }

    .modal-box {
        width: 90%;
        padding: 28px 20px 20px;
    }
}
