/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Container */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hide {
    opacity: 0;
    pointer-events: none;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}

.logo-icon {
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}

.logo-icon img {
    animation: logoPulseUltraSmooth 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.progress-step.completed .step-circle {
    background: #2ed573;
    border-color: #2ed573;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.progress-step span {
    font-size: 12px;
    white-space: nowrap;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 0 10px;
    margin-bottom: 28px;
}

/* Step Screens */
.step-screen {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.step-screen.active {
    display: block;
}

.step-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid #FFD700;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
}

.step-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.step-description {
    margin-bottom: 30px;
}

.step-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.note {
    font-size: 14px;
    opacity: 0.8;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 10px;
}

.requirement-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.requirement-box p {
    font-weight: 500;
    margin-bottom: 10px;
}

.requirement-box ul {
    list-style: none;
    padding-left: 20px;
}

.requirement-box li {
    margin-bottom: 5px;
    position: relative;
}

.requirement-box li:before {
    content: "•";
    position: absolute;
    left: -15px;
}

/* Image Display */
.image-display {
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
}

.random-image {
    max-width: 100%;
    border-radius: 15px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.random-image:hover {
    transform: scale(1.02);
}

/* Buttons */
.primary-button, .secondary-button {
    width: 100%;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Kanit', sans-serif;
}

.primary-button {
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    font-weight: 700;
    animation: btnJump 1.1s cubic-bezier(0.34,1.56,0.64,1) infinite;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.secondary-button {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    animation: btnJump 1.1s cubic-bezier(0.34,1.56,0.64,1) infinite;
}

.secondary-button:hover:not(:disabled) {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.secondary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.line-button {
    background: linear-gradient(45deg, #00B900 0%, #00E600 100%);
    color: #fff;
}

.line-button:hover {
    background: #00A000;
}

/* Twitter Tasks */
.twitter-tasks {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.task-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.task-item.active {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}

.task-item.completed {
    border-color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
}

.task-item.locked {
    opacity: 0.5;
    pointer-events: none;
}

.task-item.completed .secondary-button {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: rgba(100,100,100,0.3) !important;
}

.task-item.completed .secondary-button:hover {
    transform: none !important;
    background: rgba(100,100,100,0.3) !important;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.task-number {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.task-title {
    flex: 1;
    font-weight: 500;
}

.task-status {
    font-size: 20px;
}

.progress-info {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 10px;
    font-weight: 500;
}

/* Status Indicators */
.checking-status {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.small-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 2px solid #fff;
    animation: spin 1s linear infinite;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    border: 2px solid #FFD700;
    animation: zoomIn 0.5s ease;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.success-animation {
    position: relative;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 80px;
    animation: rotateIn 1s ease;
}

.confetti {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg>...</svg>');
    opacity: 0.8;
}

.reward-section {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.reward-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.coupon-code {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 10px 0;
    border: 2px dashed #FFD700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
}

.copy-btn {
    background: rgba(255,255,255,0.3);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.4);
}

.reward-value {
    font-size: 18px;
    color: #FFD700;
    font-weight: 600;
}

.modal-actions {
    margin-top: 20px;
}

/* Image Instructions Modal */
.image-instructions-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.image-instructions-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    border: 2px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: slideIn 0.4s ease;
}

.instructions-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.instructions-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD700;
}

.instructions-description {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.instructions-steps {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.instructions-steps p {
    font-weight: 500;
    margin-bottom: 10px;
    color: #FFD700;
}

.instructions-steps ul {
    list-style: none;
    padding-left: 0;
}

.instructions-steps li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.instructions-steps li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FFD700;
}

.understand-btn {
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kanit', sans-serif;
}

.understand-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Alert Modal */
.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.alert-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: slideIn 0.4s ease;
}

.alert-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.alert-message {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-button {
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.alert-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
}

.alert-cancel {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(0deg) scale(0);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes logoPulseUltraSmooth {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes btnJump {
    0%   { transform: translateY(0);}
    10%  { transform: translateY(-4px);}
    20%  { transform: translateY(-8px);}
    30%  { transform: translateY(-4px);}
    40%  { transform: translateY(0);}
    100% { transform: translateY(0);}
}

/* Responsive */
@media (max-width: 360px) {
    .header h1 {
        font-size: 24px;
    }
    
    .progress-step span {
        font-size: 10px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .logo-icon img {
        width: 150px;
    }
}
:root { color-scheme: dark; --gold: #d6b66c; --gold-light: #f4dea5; --line: rgba(214,182,108,.28); }
body { background: radial-gradient(ellipse at 50% 0%, #292315 0, #10100e 40%, #080909 80%); color: #eee9dc; }
.container { max-width: 440px; padding: 32px 24px; }
.header { margin-bottom: 32px; }
.header h1 { color: var(--gold-light); font-size: 27px; text-shadow: none; letter-spacing: .2px; }
.header p { color: #b7b1a3; font-size: 14px; }
.logo-icon img { animation: none; filter: drop-shadow(0 4px 18px rgba(214,182,108,.15)); }
.step-card { background: linear-gradient(145deg, #1c1b17, #111211); border: 1px solid var(--line); box-shadow: 0 24px 60px #0008, inset 0 1px 0 #f4dea512; border-radius: 22px; padding: 28px 24px; }
.step-card h2 { color: var(--gold-light); font-size: 22px; }
.step-description { color: #cec8bb; }
.step-description p { line-height: 1.8; }
.note, .requirement-box, .progress-info { background: #d6b66c08; border: 1px solid #d6b66c24; color: #c8beaa; }
.note { opacity: 1; font-size: 13px; padding: 14px; }
.requirement-box { padding: 18px; }
.requirement-box p { color: var(--gold); }
.progress-indicator { padding: 0 4px; margin-bottom: 30px; }
.progress-step { opacity: 1; color: #807d73; }
.step-circle { width: 36px; height: 36px; font-size: 15px; background: #171816; border: 1px solid #494334; color: #a29a86; }
.progress-step.active { color: var(--gold-light); }
.progress-step.active .step-circle, .progress-step.completed .step-circle { background: linear-gradient(135deg, #f2dda2, #b78a3e); border-color: #e0c484; color: #19150d; box-shadow: 0 0 20px #d6b66c20; }
.progress-step.completed { color: var(--gold); }
.progress-line { background: #d6b66c28; }
.progress-step span { font-size: 10px; }
.primary-button, .line-button { background: linear-gradient(110deg, #f0db9d, #d0a754 60%, #b78b40); color: #17140d; box-shadow: 0 6px 20px #b78a3e22, inset 0 1px 0 #fff5; border: 1px solid #e7c983; border-radius: 13px; animation: none; padding: 15px 20px; }
.primary-button:hover, .line-button:hover { background: linear-gradient(110deg, #fae8b6, #dfbb6b); box-shadow: 0 8px 24px #b78a3e33; }
.secondary-button { background: #d6b66c12; color: var(--gold-light); border: 1px solid #d6b66c55; border-radius: 11px; animation: none; padding: 12px 16px; }
.secondary-button:hover:not(:disabled) { background: #d6b66c24; }
.task-item { background: #121311; border-color: #d6b66c22; padding: 18px; }
.task-item.active { background: linear-gradient(135deg, #282318, #1c1b16); border-color: #d6b66c70; }
.task-item.completed { background: #d6b66c10; border-color: var(--gold); }
.task-item.locked { opacity: .65; }
.task-number { background: #d6b66c18; color: var(--gold); border: 1px solid #d6b66c30; }
.task-title { color: #e0d7c3; }
.modal-content { background: linear-gradient(150deg, #232018, #111210 70%); border: 1px solid #d6b66c70; box-shadow: 0 24px 90px #000b, 0 0 40px #d6b66c12; padding: 30px 26px; max-width: 380px; }
.modal-content h2 { color: var(--gold-light); }
.modal-content p { color: #c8beaa; }
.reward-section { background: #d6b66c08; border: 1px solid #d6b66c25; }
.coupon-code { background: #0e100d; border: 1px dashed #d6b66c88; color: var(--gold-light); }
.copy-btn { background: #d6b66c15; color: var(--gold-light); }
.reward-value { color: var(--gold)!important; }
.success-icon { animation: none; }
button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
@media(max-width: 360px) { .container { padding: 24px 16px; } .step-card { padding: 24px 18px; } }

/* A distinct, restrained reward-club identity. */
body { background: radial-gradient(ellipse at 50% -20%, #4a3a192e 0, transparent 60%), #0b0d0c; }
.container { max-width: 500px; padding: 28px 28px 56px; }
.header, .step-screen, .modal, .modal-content { animation: none; }
.header { text-align: left; margin-bottom: 30px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 42px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.ufabet-logo { display: block; width: 210px; max-width: 100%; height: auto; border-radius: 7px; }
.brand-symbol { display: grid; place-items: center; width: 42px; height: 46px; color: #edd49b; font-size: 25px; font-weight: 600; border: 1px solid #c5a15d; border-radius: 12px 3px 12px 3px; background: linear-gradient(135deg, #d6b66c1a, transparent); }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: 3px; color: #f1e5c7; line-height: 1.1; }
.brand-name span { display: block; margin-top: 6px; font-size: 8px; font-weight: 400; letter-spacing: 2px; color: #a49b86; }
.club-tag { border: 1px solid #d6b66c27; border-radius: 6px; padding: 7px 9px; color: #b8a781; font-size: 8px; letter-spacing: 1px; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; color: #c9af77; font-size: 12px; margin-bottom: 13px; }
.hero-eyebrow > span { width: 5px; height: 5px; background: #d6b66c; transform: rotate(45deg); }
.header h1 { font-size: 31px; line-height: 1.45; font-weight: 500; color: #f0eee6; letter-spacing: -.5px; margin-bottom: 12px; }
.header h1 > span { color: #e5c47d; }
.header p { font-size: 13px; line-height: 1.8; color: #969b91; opacity: 1; }
.hero-rule { display: flex; align-items: center; gap: 12px; margin-top: 23px; font-size: 11px; color: #b4b3a5; }
.hero-rule i { width: 3px; height: 3px; border-radius: 50%; background: #8a7650; }
.progress-indicator { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin-bottom: 20px; }
.progress-line { display: none; }
.progress-step { position: relative; align-items: flex-start; padding: 14px 10px 15px; border: 1px solid #ffffff0c; background: #ffffff02; border-radius: 10px; gap: 10px; }
.progress-step.active { background: #d6b66c09; border-color: #d6b66c50; }
.progress-step.active:after { content: ''; position: absolute; bottom: -1px; left: 10px; right: 10px; height: 2px; background: #d6b66c; }
.step-circle { width: 25px; height: 25px; font-size: 11px; border-radius: 7px; }
.progress-step span { white-space: normal; line-height: 1.5; font-size: 10px; min-height: 30px; }
.progress-step.completed .step-circle { background: #d6b66c15; color: #e1c58b; border-color: #d6b66c40; box-shadow: none; }
.step-card { position: relative; padding: 25px; border-radius: 16px; border: 1px solid #d6b66c30; background: linear-gradient(150deg, #1a1d18, #121512); box-shadow: 0 18px 42px #0004; }
.stage-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 21px; padding-bottom: 16px; border-bottom: 1px solid #ffffff0b; color: #bfa66f; font-size: 10px; }
.stage-meta span:last-child { font-size: 8px; letter-spacing: 1.3px; color: #8c9285; }
.step-card h2 { text-align: left; color: #f0eadb; font-size: 21px; font-weight: 500; line-height: 1.55; margin-bottom: 14px; }
.step-description { margin-bottom: 24px; font-size: 13px; color: #a9afa1; }
.step-description p { margin-bottom: 14px; }
.note { border-radius: 8px; background: #d6b66c06; border: 0; border-left: 2px solid #b49353; padding: 12px; font-size: 11px; color: #bbb09b; }
.requirement-box { border: 1px solid #ffffff0a; border-radius: 10px; background: #080b0855; padding: 16px; }
.requirement-box p { font-size: 12px; color: #c9b582; }
.requirement-box li { font-size: 12px; line-height: 1.9; margin-bottom: 5px; }
.requirement-box i { display: block; font-size: 10px; font-style: normal; color: #818878; margin: 3px 0 8px; }
.primary-button, .line-button { position: relative; background: linear-gradient(115deg, #ebd5a1, #c6a15c); border: 1px solid #efdba65c; border-radius: 9px; min-height: 52px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 14px #b78a3e14; }
.button-arrow { position: absolute; right: 17px; font-size: 20px; font-weight: 400; }
.modal-overlay { background: #070a07db; backdrop-filter: blur(8px); }
.modal-content { max-width: 400px; padding: 32px 26px; border-radius: 18px; background: linear-gradient(145deg, #20241c, #10140f); border-color: #d6b66c44; }
.success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: auto; font-size: 30px; border: 1px solid #d6b66c70; border-radius: 18px 5px 18px 5px; color: #e5c47d; background: #d6b66c0b; }
.confetti { display: none; }
.finish-eyebrow { font-size: 9px; letter-spacing: 2px; color: #a79774; margin-bottom: 10px; }
.modal-content h2 { font-size: 24px; font-weight: 500; color: #f0e6cd; margin-bottom: 10px; }
.modal-content p { font-size: 12px; line-height: 1.8; color: #a6ad9c; }
.reward-section { border-radius: 12px; margin: 24px 0; padding: 19px 16px; }
.coupon-code { font-size: 20px; padding: 17px 12px; border-radius: 8px; letter-spacing: 2px; }
.reward-section > span { color: #8c9583; font-size: 10px; }
.copy-btn { border: 1px solid #d6b66c30; border-radius: 6px; padding: 7px; }
@media(max-width: 400px) { .container { padding: 24px 18px 40px; } .header h1 { font-size: 28px; } .club-tag { font-size: 7px; padding: 6px; } .step-card { padding: 22px 18px; } }
.line-gate { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 22px; background: #070a07d9; backdrop-filter: blur(8px); overflow-y: auto; }
.line-gate-card { width: 100%; max-width: 400px; padding: 32px 28px; border: 1px solid #d6b66c44; border-radius: 18px; background: linear-gradient(145deg, #20241c, #10140f); box-shadow: 0 24px 90px #000b; text-align: center; }
.line-gate-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 24px; color: #e5c47d; border: 1px solid #d6b66c70; border-radius: 18px 5px 18px 5px; background: #d6b66c0b; }
.line-gate-icon svg { width: 29px; height: 29px; }
.line-gate-eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: 2px; color: #a79774; }
.line-gate-card h2 { font-size: 24px; line-height: 1.5; color: #f0e6cd; font-weight: 500; margin-bottom: 14px; }
.line-gate-card p { font-size: 13px; line-height: 1.9; color: #a6ad9c; margin-bottom: 26px; }
.line-gate-card a { text-decoration: none; }
.line-gate-hint { display: block; font-size: 10px; line-height: 1.7; color: #818b78; margin-top: 18px; }
.line-gate-icon.line-app-logo { background: transparent; border: none; border-radius: 15px; }
.line-gate-icon.line-app-logo svg { display: block; width: 62px; height: 62px; }
.app-button-icon { display: block; width: 25px; height: 25px; flex: 0 0 25px; }

#activityStatus{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);width:90%;max-width:420px;text-align:center;font-size:13px;color:#e5c47d;pointer-events:none}button:disabled{opacity:.55;cursor:wait}#customConfirmPopup .dialog{background:linear-gradient(145deg,#20241c,#10140f);border:1px solid #d6b66c66;border-radius:18px;padding:28px;max-width:400px;width:90%;text-align:center}#customConfirmPopup .dialog h2{color:#f0e6cd;margin:12px 0}#customConfirmPopup .dialog p{color:#a6ad9c;white-space:pre-wrap;line-height:1.8;margin-bottom:18px}#customConfirmPopup .dialog button{margin:5px;padding:12px 18px;border:0;border-radius:8px;background:#d6b66c;color:#17140d;font-family:inherit}
.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.quick-link{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:5px 8px;border-radius:9px;text-decoration:none;font-family:inherit;transition:transform .15s ease,filter .15s ease}
.quick-link:active{transform:scale(.97)}
.quick-link:hover{filter:brightness(1.08)}
.quick-link img{width:24px;height:24px;flex:0 0 24px}
.quick-link span{display:flex;flex-direction:column;line-height:1.2;text-align:left}
.quick-link b{font-size:14px;font-weight:600}
.quick-link small{font-size:10.5px;font-weight:400}
.quick-link-web{background:linear-gradient(180deg,#191b17,#111310);border:1px solid #6f6532;box-shadow:inset 0 1px 0 #ffffff08}
.quick-link-web b{color:#e8c66b}
.quick-link-web small{color:#c9b47c}
.quick-link-live{background:repeating-linear-gradient(90deg,#1b5426 0 13px,#22642e 13px 26px);border:1px solid #c9b04e;box-shadow:inset 0 1px 0 #ffffff14}
.quick-link-live b{color:#fff}
.quick-link-live small{color:#e5c47d}
.live-badge{position:absolute;top:-8px;right:-5px;display:flex;align-items:center;gap:3px;padding:1px 6px 1px 5px;border-radius:999px;background:#e5303a;border:1.5px solid #0b0d0c;color:#fff;font-size:9.5px;font-weight:700;font-style:normal;letter-spacing:.3px;line-height:1.4}
.live-badge::before{content:"";width:5px;height:5px;border-radius:50%;background:#fff;animation:live-blink 1.2s ease-in-out infinite}
@keyframes live-blink{50%{opacity:.25}}
@media(max-width:360px){.quick-link{gap:6px;padding:8px 6px}.quick-link b{font-size:13px}.quick-link small{font-size:10px}.quick-link img{width:22px;height:22px;flex-basis:22px}}

/* Compact phone layout: whole activity fits one smartphone screen without scrolling */
@media (max-width: 500px) {
  .container { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 12px 16px 14px; }
  .brand-row { margin-bottom: 12px; }
  .ufabet-logo { width: 132px; }
  .club-tag { font-size: 7px; padding: 5px 7px; }
  .hero-eyebrow { margin-bottom: 4px; font-size: 11px; }
  .header { margin-bottom: 12px; }
  .header h1 { font-size: 23px; line-height: 1.3; margin-bottom: 4px; }
  .header p { font-size: 12px; }
  .hero-rule { margin-top: 8px; font-size: 10px; }
  .progress-indicator { margin-bottom: 12px; gap: 6px; }
  .progress-step { flex-direction: row; align-items: center; gap: 6px; padding: 7px 7px 8px; }
  .progress-step .step-circle { width: 20px; height: 20px; min-width: 20px; font-size: 10px; }
  .progress-step span { min-height: 0; font-size: 9.5px; line-height: 1.35; }
  .step-card { padding: 16px; border-radius: 14px; }
  .step-card h2 { font-size: 17px; line-height: 1.45; margin-bottom: 8px; }
  .step-description p { font-size: 12px; line-height: 1.6; margin-bottom: 8px; }
  .step-description .note { padding: 8px 10px; margin-bottom: 10px; font-size: 10.5px; }
  .requirement-box { padding: 10px 12px; margin: 8px 0 12px; }
  .requirement-box p { margin-bottom: 4px; font-size: 12px; }
  .requirement-box li { font-size: 11.5px; margin-bottom: 2px; line-height: 1.5; }
  .requirement-box i { font-size: 10.5px; }
  .primary-button, .line-button { min-height: 44px; padding: 10px 16px; }
  .checking-status { margin-top: 8px; }
  .quick-links { margin-top: 12px; }
}
