/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: #06050b;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 12px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* Page container width scaled for PC (approx 780px to accommodate 125% font size) */
.page-container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Top Header Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 12px 4px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.badge-official {
    background-color: #00C8F8;
    color: #050814;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.top-info {
    color: #64748B;
    font-size: 0.92rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-info .divider {
    color: #334155;
}

.code-highlight {
    color: #00C8F8;
    font-weight: 700;
}

/* Hero Section - Height Aligned */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 20px;
    align-items: stretch;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.hero-top-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.main-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.main-subtitle {
    font-size: 1.05rem;
    color: #94A3B8;
    line-height: 1.5;
}

/* Benefit Card */
.benefit-card {
    background: linear-gradient(135deg, rgba(22, 16, 50, 0.9) 0%, rgba(10, 14, 30, 0.95) 100%);
    border: 1.5px solid #8B5CF6;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.28), inset 0 0 12px rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 10px 0 6px 0;
}

.welcome-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #C084FC;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
    margin-bottom: 8px;
}

.benefit-sub {
    font-size: 1.15rem;
    font-weight: 700;
    color: #F1F5F9;
}

.benefit-amount {
    font-size: 2.35rem;
    font-weight: 900;
    color: #FFC700;
    text-shadow: 0 0 16px rgba(255, 199, 0, 0.45);
    line-height: 1.1;
    margin-top: 4px;
}

.auth-notice {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.35;
    margin-bottom: 8px;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-kakao {
    background-color: #FFC700;
    color: #0A0D1D;
}
.btn-kakao:hover {
    background-color: #E6B400;
}

.btn-telegram {
    background-color: #00B5E2;
    color: #050814;
}
.btn-telegram:hover {
    background-color: #009DC5;
}

.btn-primary {
    background: linear-gradient(90deg, #8B2CF5 0%, #7E22CE 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(139, 44, 245, 0.45);
}
.btn-primary:hover {
    background: linear-gradient(90deg, #7E22CE 0%, #6B21A8 100%);
}

.btn-cyan {
    background: #00C8F8;
    color: #050814;
    font-weight: 800;
}
.btn-cyan:hover {
    background: #00B5E2;
}

.btn-large {
    padding: 14px;
    font-size: 1.15rem;
}

.btn-full {
    width: 100%;
}

/* Hero Right Side */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.hero-image-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.info-card {
    background: rgba(11, 15, 33, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
}

.code-url-box {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    background: rgba(6, 9, 20, 0.85);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 0.85rem;
    color: #64748B;
    white-space: nowrap;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #00C8F8;
    cursor: pointer;
}

.info-url {
    font-size: 0.92rem;
    font-weight: 700;
    color: #00C8F8;
    text-decoration: none;
    line-height: 1.25;
}

.sub-url {
    color: #00C8F8;
    font-size: 0.85rem;
}

.feature-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pill-item {
    background: rgba(18, 25, 52, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.92rem;
    color: #CBD5E1;
    text-align: center;
    font-weight: 500;
}

/* Section Common */
.section-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.title-with-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accent-bar {
    width: 4px;
    height: 20px;
    background-color: #00C8F8;
    border-radius: 2px;
    display: inline-block;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
}

.section-desc {
    font-size: 0.95rem;
    color: #64748B;
    margin-left: 14px;
}

/* Section 2: Core Grid */
.core-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.core-card {
    background: rgba(11, 15, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.core-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: rgba(0, 200, 248, 0.1);
    border: 1px solid rgba(0, 200, 248, 0.3);
    color: #00C8F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
}

.core-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #F1F5F9;
}

.core-text p {
    font-size: 0.85rem;
    color: #64748B;
}

.limit-banner {
    background: rgba(11, 15, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: center;
}

.limit-col {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.limit-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #E2E8F0;
}

.limit-val {
    font-size: 1.75rem;
    font-weight: 900;
}

.val-yellow {
    color: #FFC700;
}

.val-cyan {
    color: #00C8F8;
}

/* Section 3: Dual Events Grid - Aligned Heights */
.events-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.dual-card {
    background: rgba(11, 15, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    height: 100%;
}

.dual-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #F8FAFC;
}

.deposit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.deposit-box {
    background: rgba(18, 25, 52, 0.6);
    border: 1px solid rgba(0, 200, 248, 0.3);
    border-radius: 6px;
    padding: 10px 4px;
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #00C8F8;
}

.circle-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.stat-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid #00C8F8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(0, 200, 248, 0.05);
}

.circle-label {
    font-size: 0.68rem;
    color: #94A3B8;
}

.circle-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #00C8F8;
}

.event-footer-note {
    font-size: 0.78rem;
    color: #64748B;
}

.event-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.event-pill {
    background: rgba(18, 25, 52, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #CBD5E1;
    font-weight: 600;
}

.event-list-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    text-align: center;
    letter-spacing: 1px;
}

/* Section 4: Game Lineup */
.game-lineup-card {
    background: rgba(11, 15, 33, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-card-header {
    background: rgba(6, 9, 20, 0.9);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-head-left {
    font-weight: 800;
    color: #00C8F8;
    letter-spacing: 0.5px;
}

.game-head-right {
    color: #64748B;
    letter-spacing: 0.5px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 14px;
}

.game-item {
    background: rgba(18, 25, 52, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: transform 0.2s;
}
.game-item:hover {
    transform: translateY(-2px);
}

.game-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* Unique Icon Styling matching PDF */
.icon-star {
    border: 1.5px solid #00C8F8;
    background: rgba(0, 200, 248, 0.1);
    color: #00C8F8;
}
.icon-trophy {
    border: 1.5px solid #38BDF8;
    background: rgba(56, 189, 248, 0.1);
    color: #38BDF8;
}
.icon-bolt {
    border: 1.5px solid #A855F7;
    background: rgba(168, 85, 247, 0.1);
    color: #A855F7;
}
.icon-heart {
    border: 1.5px solid #EC4899;
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}
.icon-card {
    border: 1.5px solid #F59E0B;
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}
.icon-slot {
    border: 1.5px solid #F97316;
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}
.icon-esports {
    border: 1.5px solid #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}
.icon-dice {
    border: 1.5px solid #14B8A6;
    background: rgba(20, 184, 166, 0.1);
    color: #14B8A6;
}

.custom-card-icon {
    font-weight: 900;
    font-size: 1.1rem;
}

.custom-777-icon {
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: -1px;
}

.game-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #F1F5F9;
}

.game-sub {
    font-size: 0.72rem;
    color: #64748B;
    font-weight: 600;
}

.game-card-footer {
    background: rgba(6, 9, 20, 0.8);
    text-align: center;
    padding: 10px;
    font-size: 0.92rem;
    color: #94A3B8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Section 5: Guarantee Header & Layout - Aligned Heights */
.guarantee-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guarantee-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guarantee-icon {
    color: #A855F7;
    font-size: 1.35rem;
}

.guarantee-title h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

.guarantee-amount {
    font-size: 1.05rem;
    color: #94A3B8;
    font-weight: 700;
}

.guarantee-dual-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    height: 100%;
}

.partner-card {
    background: rgba(11, 15, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.partner-card:hover {
    border-color: rgba(0, 200, 248, 0.4);
    transform: translateY(-2px);
}

.partner-logo {
    max-width: 100%;
    max-height: 38px;
    object-fit: contain;
}

.partner-name {
    font-size: 0.88rem;
    color: #94A3B8;
    font-weight: 600;
}

/* Signup Info Card */
.signup-info-card {
    background: rgba(11, 15, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
}

.signup-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFFFFF;
}

.code-box-large {
    background: rgba(6, 9, 20, 0.85);
    border: 1px solid rgba(0, 200, 248, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-label, .url-label {
    font-size: 0.88rem;
    color: #94A3B8;
}

.code-value {
    font-size: 1.38rem;
    font-weight: 900;
    color: #00C8F8;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.url-box-large {
    background: rgba(6, 9, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.url-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.url-values a {
    color: #00C8F8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.signup-social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.signup-subnote {
    font-size: 0.78rem;
    color: #64748B;
    text-align: center;
}

/* Footer */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: #64748B;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #00C8F8;
    color: #050814;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 200, 248, 0.45);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 540px) {
    .page-container {
        max-width: 100%;
        gap: 20px;
    }
    
    .top-bar {
        font-size: 0.68rem;
        padding: 4px 2px;
    }
    .logo-text {
        font-size: 0.98rem;
    }
    .badge-official {
        font-size: 0.52rem;
        padding: 1px 4px;
    }
    .top-info {
        font-size: 0.65rem;
        gap: 4px;
    }

    .main-title {
        font-size: 1.7rem;
    }
    .main-subtitle {
        font-size: 0.84rem;
    }
    .benefit-sub {
        font-size: 0.95rem;
    }
    .benefit-amount {
        font-size: 1.85rem;
    }
    .btn {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    .btn-large {
        font-size: 0.95rem;
    }
    .section-header h2 {
        font-size: 1.2rem;
    }
    .section-desc {
        font-size: 0.78rem;
    }
    .core-text h3 {
        font-size: 0.88rem;
    }
    .core-text p {
        font-size: 0.7rem;
    }
    .limit-label {
        font-size: 0.85rem;
    }
    .limit-val {
        font-size: 1.4rem;
    }
    .dual-title {
        font-size: 0.95rem;
    }
    .deposit-box {
        font-size: 0.85rem;
    }
    .circle-value {
        font-size: 0.78rem;
    }
    .event-pill {
        font-size: 0.72rem;
    }
    .game-name {
        font-size: 0.78rem;
    }
    .partner-name {
        font-size: 0.7rem;
    }
    .code-value {
        font-size: 1.1rem;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
    }
    .guarantee-dual-layout {
        grid-template-columns: 1fr;
    }
    .events-dual-grid {
        grid-template-columns: 1fr;
    }

    .main-footer {
        font-size: 0.66rem;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
}
