@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Noto Sans TC', 'Segoe UI', sans-serif;
    background: #0a0a1a;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(30, 60, 120, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(80, 30, 120, 0.3) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.container {
    width: 100%;
    max-width: 460px;
}
.register-card {
    background: linear-gradient(160deg, rgba(15,20,40,0.98) 0%, rgba(10,12,30,0.98) 100%);
    border-radius: 4px;
    padding: 40px 36px;
    box-shadow:
        0 0 0 1px rgba(180, 140, 60, 0.4),
        0 0 30px rgba(180, 140, 60, 0.1),
        0 20px 60px rgba(0,0,0,0.8);
    border: 1px solid rgba(180, 140, 60, 0.5);
    position: relative;
    animation: fadeIn 0.5s ease-out;
}
.register-card::before,
.register-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #c8a84b;
    border-style: solid;
}
.register-card::before {
    top: -1px; left: -1px;
    border-width: 2px 0 0 2px;
}
.register-card::after {
    bottom: -1px; right: -1px;
    border-width: 0 2px 2px 0;
}
.header {
    text-align: center;
    margin-bottom: 32px;
}
.header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 6px;
    background: linear-gradient(180deg,
        #fff8b0 0%,
        #ffe840 20%,
        #ffc800 45%,
        #ffaa00 55%,
        #e88800 75%,
        #ffdd60 90%,
        #fff0a0 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255,200,0,0.6)) drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    position: relative;
}
.header-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8a84b, transparent);
    margin: 10px auto 0;
}
.register-form {
    margin-bottom: 20px;
}
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: flex;
    align-items: center;
    color: #ffe880;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,220,80,0.6), 0 1px 3px rgba(0,0,0,0.8);
}
.input-group .icon {
    margin-right: 8px;
    font-size: 14px;
}
.input-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(180, 140, 60, 0.35);
    border-radius: 3px;
    color: #e8e0cc;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}
.input-group input::placeholder {
    color: rgba(200,180,120,0.3);
}
.input-group input:focus {
    outline: none;
    border-color: #c8a84b;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 2px rgba(200,168,75,0.15);
}
.password-hint {
    font-size: 11px;
    color: rgba(200,168,75,0.5);
    margin-top: 5px;
}
.phone-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: rgba(200,168,75,0.1);
    border: 1px solid rgba(180,140,60,0.35);
    border-radius: 3px;
    font-size: 13px;
    white-space: nowrap;
    color: #c8a84b;
}
.phone-row input {
    flex: 1;
}
.register-btn,
.send-otp-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.register-btn {
    background: linear-gradient(180deg, #ffe066 0%, #ffb800 40%, #e07800 100%);
    color: #3a1a00;
    margin-top: 8px;
    box-shadow:
        0 2px 0 #a05000,
        0 6px 20px rgba(255,180,0,0.5),
        inset 0 1px 0 rgba(255,255,200,0.6);
    text-shadow: 0 1px 0 rgba(255,255,200,0.4);
    border: 1px solid #c07000;
}
.register-btn:hover {
    background: linear-gradient(180deg, #ffee88 0%, #ffc820 40%, #f08800 100%);
    box-shadow:
        0 2px 0 #a05000,
        0 8px 28px rgba(255,180,0,0.7),
        inset 0 1px 0 rgba(255,255,200,0.7);
    transform: translateY(-2px);
}
.register-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #a05000, 0 3px 10px rgba(255,180,0,0.4);
}
.send-otp-btn {
    background: linear-gradient(180deg, #66ff88 0%, #22cc44 40%, #008822 100%);
    color: #003310;
    margin-top: 4px;
    box-shadow:
        0 2px 0 #005510,
        0 6px 20px rgba(0,200,60,0.5),
        inset 0 1px 0 rgba(200,255,200,0.6);
    text-shadow: 0 1px 0 rgba(200,255,200,0.4);
    border: 1px solid #008830;
}
.send-otp-btn:hover {
    background: linear-gradient(180deg, #88ffaa 0%, #33dd55 40%, #009933 100%);
    box-shadow:
        0 2px 0 #005510,
        0 8px 28px rgba(0,200,60,0.7),
        inset 0 1px 0 rgba(200,255,200,0.7);
    transform: translateY(-2px);
}
.send-otp-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #005510, 0 3px 10px rgba(0,200,60,0.4);
}
.send-otp-btn:disabled {
    background: linear-gradient(180deg, #555 0%, #333 100%);
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: #444;
    text-shadow: none;
}
.line-auth-section {
    text-align: center;
    padding: 10px 0;
}
.line-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}
.line-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,168,75,0.4), transparent);
}
.line-divider span {
    background: rgba(15,20,40,0.98);
    padding: 0 16px;
    color: #c8a84b;
    font-size: 13px;
    letter-spacing: 1px;
}
.line-info {
    color: #a0a0b0;
    margin-bottom: 16px;
    font-size: 13px;
}
.line-login-btn {
    display: inline-block;
    transition: transform 0.2s;
}
.line-login-btn:hover {
    transform: scale(1.05);
}
.line-login-btn img {
    width: 180px;
    border-radius: 4px;
}
.success-message {
    text-align: center;
    padding: 20px 0;
}
.success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}
.success-message h3 {
    color: #f0d060;
    margin-bottom: 12px;
    font-size: 20px;
    letter-spacing: 1px;
}
.success-message p {
    color: #a0c0a0;
    font-size: 14px;
    line-height: 1.6;
}
.info-message {
    background: rgba(40,120,60,0.15);
    border: 1px solid rgba(60,160,80,0.4);
    border-radius: 3px;
    padding: 10px 14px;
    margin-top: 10px;
    color: #80d090;
    font-size: 13px;
    text-align: center;
}
.error-message {
    background: rgba(160,30,30,0.15);
    border: 1px solid rgba(200,60,60,0.4);
    border-radius: 3px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}
.error-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.error-message p {
    color: #ff8080;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}
.close-btn {
    padding: 7px 18px;
    background: rgba(200,60,60,0.3);
    border: 1px solid rgba(200,60,60,0.5);
    color: #ff8080;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.close-btn:hover {
    background: rgba(200,60,60,0.5);
}
#recaptcha-container {
    margin: 10px 0;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
    .register-card {
        padding: 28px 20px;
    }
    .header h1 {
        font-size: 20px;
    }
}
.game-logo {
    width: 180px;
    height: auto;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.account-info-box {
    background: rgba(255, 220, 50, 0.15);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 15px 0;
    text-align: left;
}
.account-info-box p {
    margin: 5px 0;
    color: #fff;
    font-size: 15px;
}
.account-info-box strong {
    color: #ffd700;
    font-size: 17px;
    letter-spacing: 1px;
}
.screenshot-hint {
    color: #ff9900;
    font-weight: bold;
    font-size: 14px;
    margin: 10px 0;
}
