/* Variables */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa8c2c;
    --text-main: #ffffff;
    --text-muted: #888888;
    --red-alert: #ff3b30;
    --green-success: #34c759;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold) !important;
}

.text-white {
    color: white !important;
}

.text-muted {
    color: var(--text-muted);
}

.text-green {
    color: var(--green-success);
}

.text-small {
    font-size: 0.85rem;
}

.font-bold {
    font-weight: 700;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.d-block {
    display: block;
}

.relative {
    position: relative;
}

.flex-row {
    display: flex;
    gap: 10px;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.subtitle-gold {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Extravagant Effects */
.glow-text {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.pulse-btn {
    animation: pulsing 2s infinite;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
}

@keyframes pulsing {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    gap: 8px;
}

.btn-gold {
    background: linear-gradient(to bottom, var(--gold-light), var(--gold));
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(to bottom, #fff, var(--gold-light));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline-gold {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
}

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

.btn-massive {
    padding: 16px 40px;
    font-size: 1.3rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

/* Top Marquee */
.top-bar {
    background: #000;
    color: var(--gold);
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    animation: scroll-marquee 25s linear infinite;
}

.marquee span {
    margin-right: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Header */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
}

.logo i {
    text-shadow: 0 0 10px var(--gold);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.7) 40%, rgba(5, 5, 5, 0.2) 100%);
    z-index: 2;
}

.coins-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.coin {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: inset 0 0 10px var(--gold-dark), 0 0 10px rgba(212, 175, 55, 0.5);
    border: 2px solid var(--gold-light);
    opacity: 0.6;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-container {
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.badge-gold {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.1);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.banner-title {
    font-size: 5rem;
    background: linear-gradient(to bottom, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.hero-desc {
    font-size: 1.15rem;
    color: #ccc;
    margin-bottom: 30px;
}

.promo-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px 30px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    display: inline-block;
    margin-bottom: 10px;
}

.promo-title {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: white;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.promo-amount span {
    font-size: 1.2rem;
    color: var(--gold);
}

.trust-indicators {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 50px;
}

/* Jackpot Area */
.jackpot-panel {
    background: linear-gradient(to bottom, #1a1a1a, #000);
    border: 2px solid var(--gold);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(212, 175, 55, 0.1);
    min-width: 350px;
}

.jackpot-title {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.jackpot-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    text-shadow: 0 0 20px var(--gold);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 10px;
}

.jackpot-games {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.game-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.btn-play {
    transform: scale(0.8);
    transition: var(--transition);
}

.game-card:hover .btn-play {
    transform: scale(1);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--gold);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 20px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 20px;
}

.timeline-content h3 {
    color: var(--gold);
    font-size: 1.3rem;
}

.timeline-content p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Register Section */
.register-section {
    background: url('https://images.unsplash.com/photo-1596838132731-15589a195b0b?auto=format&fit=crop&q=80&w=2000') center/cover;
    position: relative;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.register-box {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.register-info h2 {
    font-size: 2.5rem;
}

.reg-features {
    font-size: 1.05rem;
}

.reg-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.elegant-form {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
}

.input-icon input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 15px 14px 45px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.input-icon input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.code-input input {
    width: 60%;
}

.get-code-btn {
    width: 38%;
    padding: 0;
}

/* App CTA */
.app-cta {
    background: linear-gradient(to right, #111, #000);
    padding: 60px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.app-cta-content h2 {
    font-size: 2rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-app {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1.1rem;
}

.btn-app:hover {
    background: white;
    color: black;
}

/* Footer */
footer {
    padding: 50px 0 30px;
}

.brand-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.brand-logos span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.justify-center {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--gold);
}

/* Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 50px;
    }

    .promo-box {
        display: block;
        margin: 0 auto;
        max-width: 400px;
    }

    .trust-indicators {
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .register-box {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }

    .register-info {
        text-align: center;
    }

    .reg-features li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .banner-title {
        font-size: 3.5rem;
    }

    .promo-amount {
        font-size: 2.8rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding: 0 0 0 60px;
    }

    .timeline-icon {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        width: 100%;
    }

    .elegant-form {
        padding: 25px;
    }

    .app-buttons {
        flex-direction: column;
    }

    .top-bar {
        display: none;
    }
}