/* ============================================
   Canada 28 - Main Stylesheet
   Unique Design: Deep Ocean Theme
   ============================================ */

/* CSS Reset & Base */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;color:#e0e8f0;background:#0a0e1a;line-height:1.75;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:#4ecdc4;text-decoration:none;transition:color .3s}
a:hover{color:#ff6b6b}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{line-height:1.3;font-weight:700}

/* Utility */
.container{width:100%;max-width:1100px;margin:0 auto;padding:0 16px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.text-gold{color:#ffd700}
.text-cyan{color:#4ecdc4}
.bg-dark{background:#0d1225}
.bg-darker{background:#080c18}

/* ============================================
   Header / Navigation (Non-sticky)
   ============================================ */
.site-header{background:linear-gradient(135deg,#0d1225 0%,#1a1f3a 100%);border-bottom:2px solid #1e2a4a;padding:10px 0;position:relative;z-index:100}
.header-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.site-logo{display:flex;align-items:center;gap:8px}
.site-logo img{height:40px;width:auto}
.site-logo span{font-size:1.1rem;font-weight:700;color:#ffd700;white-space:nowrap}

/* Desktop Nav */
.main-nav{display:none}
.main-nav ul{display:flex;gap:4px;flex-wrap:wrap}
.main-nav a{display:block;padding:8px 14px;border-radius:6px;font-size:.9rem;color:#c0c8d8;transition:all .3s}
.main-nav a:hover,.main-nav a.active{background:rgba(78,205,196,.15);color:#4ecdc4}

/* Mobile Menu Toggle */
.menu-toggle{display:flex;flex-direction:column;gap:5px;cursor:pointer;padding:8px;background:none;border:none}
.menu-toggle span{display:block;width:26px;height:3px;background:#4ecdc4;border-radius:2px;transition:transform .3s}
.menu-toggle.open span:nth-child(1){transform:rotate(45deg) translate(5px,6px)}
.menu-toggle.open span:nth-child(2){opacity:0}
.menu-toggle.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-6px)}

/* Mobile Nav */
.mobile-nav{display:none;width:100%;background:#0d1225;padding:10px 0}
.mobile-nav.show{display:block}
.mobile-nav a{display:block;padding:12px 20px;color:#c0c8d8;border-bottom:1px solid #1e2a4a;font-size:.95rem}
.mobile-nav a:hover{background:rgba(78,205,196,.1);color:#4ecdc4}

@media(min-width:768px){
  .menu-toggle{display:none}
  .main-nav{display:block}
  .mobile-nav{display:none!important}
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb{padding:12px 0;font-size:.85rem;color:#7a8a9e}
.breadcrumb a{color:#4ecdc4}
.breadcrumb span{margin:0 6px;color:#3a4a5e}

/* ============================================
   Hero Section
   ============================================ */
.hero-section{position:relative;overflow:hidden;padding:0}
.hero-section img{width:100%;height:auto;min-height:200px;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,14,26,.3) 0%,rgba(10,14,26,.8) 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}
.hero-overlay h1{font-size:clamp(1.5rem,5vw,2.8rem);color:#ffd700;text-shadow:0 2px 20px rgba(255,215,0,.4);margin-bottom:12px}
.hero-overlay p{font-size:clamp(.9rem,2.5vw,1.2rem);color:#c0d0e0;max-width:600px;margin-bottom:20px}
.cta-btn{display:inline-block;padding:14px 36px;background:linear-gradient(135deg,#ff6b6b,#ee5a24);color:#fff;font-size:1.05rem;font-weight:700;border-radius:50px;box-shadow:0 4px 20px rgba(255,107,107,.4);transition:transform .3s,box-shadow .3s;border:none;cursor:pointer}
.cta-btn:hover{transform:translateY(-2px);box-shadow:0 6px 30px rgba(255,107,107,.6);color:#fff}

/* ============================================
   Section Titles
   ============================================ */
.section-title{text-align:center;padding:40px 0 24px;position:relative}
.section-title h2{font-size:clamp(1.3rem,4vw,2rem);color:#ffd700;display:inline-block;position:relative}
.section-title h2::after{content:'';display:block;width:60%;height:3px;background:linear-gradient(90deg,#4ecdc4,#ffd700);margin:10px auto 0;border-radius:2px}
.section-title p{color:#8a9ab0;margin-top:8px;font-size:.95rem}

/* ============================================
   Game Cards Grid
   ============================================ */
.games-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;padding:0 0 30px}
@media(min-width:600px){.games-grid{grid-template-columns:repeat(3,1fr)}}
.game-card{border-radius:14px;overflow:hidden;background:#141a30;border:1px solid #1e2a4a;transition:transform .3s,box-shadow .3s;position:relative}
.game-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(78,205,196,.15)}
.game-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.game-card-body{padding:12px}
.game-card-body h3{font-size:.95rem;color:#e0e8f0;margin-bottom:6px}
.game-card-body p{font-size:.8rem;color:#7a8a9e;line-height:1.5}
.game-card-link{display:block;text-align:center;padding:10px;background:linear-gradient(135deg,#4ecdc4,#44b3a8);color:#0a0e1a;font-weight:700;font-size:.9rem;margin:8px 12px 12px;border-radius:8px;transition:opacity .3s}
.game-card-link:hover{opacity:.85;color:#0a0e1a}

/* ============================================
   Try Play Module
   ============================================ */
.try-play{position:relative;border-radius:16px;overflow:hidden;margin:20px 0}
.try-play img{width:100%;height:auto}
.try-play-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(0,0,0,.35)}
.try-play-overlay h2{color:#ffd700;font-size:clamp(1.2rem,4vw,1.8rem);margin-bottom:10px}

/* ============================================
   Trend Chart Module
   ============================================ */
.trend-module{background:#0d1225;border-radius:16px;padding:20px;margin:20px 0;border:1px solid #1e2a4a}
.trend-module img{border-radius:10px;width:100%}

/* ============================================
   Open Result Module
   ============================================ */
.open-result{background:linear-gradient(135deg,#0d1225,#151b35);border-radius:16px;padding:20px;margin:20px 0;border:1px solid #1e2a4a}
.open-result img{border-radius:10px;width:100%}
.result-table{width:100%;border-collapse:collapse;margin-top:16px}
.result-table th{background:#1a2040;color:#ffd700;padding:10px;text-align:center;font-size:.85rem}
.result-table td{padding:10px;text-align:center;border-bottom:1px solid #1e2a4a;font-size:.85rem}
.result-table tr:hover{background:rgba(78,205,196,.05)}
.ball{display:inline-block;width:28px;height:28px;line-height:28px;text-align:center;border-radius:50%;color:#fff;font-weight:700;font-size:.8rem;margin:0 2px}
.ball-r{background:#ff5555}.ball-g{background:#55cc55}.ball-b{background:#5588ff}
.tag-big{color:#ff9500;font-weight:700}.tag-small{color:#4ecdc4;font-weight:700}
.tag-odd{color:#ff6b6b}.tag-even{color:#55aaff}

/* ============================================
   Prediction Module
   ============================================ */
.prediction-module{background:#0d1225;border-radius:16px;padding:20px;margin:20px 0;border:1px solid #1e2a4a}
.prediction-module img{border-radius:10px;width:100%}
.article-list{margin-top:20px}
.article-item{padding:16px;background:#141a30;border-radius:10px;margin-bottom:12px;border-left:3px solid #4ecdc4}
.article-item h4{color:#e0e8f0;font-size:.95rem;margin-bottom:6px}
.article-item p{color:#7a8a9e;font-size:.85rem;line-height:1.6}
.article-item time{font-size:.75rem;color:#4a5a6e;display:block;margin-top:6px}

/* ============================================
   Promotion Banner
   ============================================ */
.promo-banner{border-radius:16px;overflow:hidden;margin:20px 0}
.promo-banner img{width:100%}

/* ============================================
   About Section
   ============================================ */
.about-section{padding:30px 0}
.about-content{background:#0d1225;border-radius:16px;padding:24px;border:1px solid #1e2a4a}
.about-content h3{color:#ffd700;font-size:1.1rem;margin:20px 0 10px}
.about-content p{color:#b0bcc8;font-size:.9rem;line-height:1.8;margin-bottom:12px;text-indent:2em}

/* ============================================
   Payment Section
   ============================================ */
.payment-section{padding:20px 0}
.payment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(min-width:600px){.payment-grid{grid-template-columns:repeat(6,1fr)}}
.payment-item{background:#141a30;border-radius:10px;padding:16px;text-align:center;border:1px solid #1e2a4a}
.payment-item img{margin:0 auto 8px;height:40px;width:auto}
.payment-item span{display:block;font-size:.75rem;color:#7a8a9e}

/* ============================================
   License Section
   ============================================ */
.license-section{padding:20px 0;text-align:center}
.license-badge{max-width:180px;margin:0 auto 16px}
.license-info{background:#0d1225;border-radius:16px;padding:24px;border:1px solid #1e2a4a;text-align:left}
.license-info p{color:#b0bcc8;font-size:.9rem;line-height:1.8;margin-bottom:10px}

/* ============================================
   Support Section
   ============================================ */
.support-section{padding:20px 0}
.support-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:600px){.support-grid{grid-template-columns:repeat(2,1fr)}}
.support-card{background:#141a30;border-radius:12px;padding:20px;text-align:center;border:1px solid #1e2a4a}
.support-card img{height:50px;width:auto;margin:0 auto 12px}
.support-card h4{color:#e0e8f0;font-size:.95rem;margin-bottom:6px}
.support-card p{color:#7a8a9e;font-size:.85rem}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section{padding:20px 0}
.faq-item{background:#0d1225;border-radius:12px;margin-bottom:12px;border:1px solid #1e2a4a;overflow:hidden}
.faq-question{padding:16px 20px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;color:#e0e8f0;font-weight:600;font-size:.95rem}
.faq-question::after{content:'+';font-size:1.3rem;color:#4ecdc4;transition:transform .3s}
.faq-item.open .faq-question::after{content:'-';transform:rotate(180deg)}
.faq-answer{padding:0 20px 16px;color:#8a9ab0;font-size:.9rem;line-height:1.7;display:none}
.faq-item.open .faq-answer{display:block}

/* ============================================
   Reviews Section
   ============================================ */
.reviews-section{padding:20px 0}
.review-card{background:#0d1225;border-radius:12px;padding:20px;margin-bottom:14px;border:1px solid #1e2a4a}
.review-header{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.review-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid #4ecdc4}
.review-meta h4{color:#e0e8f0;font-size:.9rem}
.review-meta span{color:#7a8a9e;font-size:.8rem}
.review-stars{color:#ffd700;font-size:.9rem;letter-spacing:2px;margin-bottom:8px}
.review-text{color:#b0bcc8;font-size:.88rem;line-height:1.7}
.review-date{color:#4a5a6e;font-size:.75rem;margin-top:8px}

/* ============================================
   Author Info
   ============================================ */
.author-box{display:flex;align-items:flex-start;gap:16px;background:#0d1225;border-radius:12px;padding:20px;margin:20px 0;border:1px solid #1e2a4a}
.author-box img{width:80px;height:80px;border-radius:50%;border:2px solid #ffd700;flex-shrink:0}
.author-info h4{color:#ffd700;font-size:1rem;margin-bottom:4px}
.author-info p{color:#8a9ab0;font-size:.85rem;line-height:1.6}

/* ============================================
   Responsible Gaming
   ============================================ */
.responsible-section{background:#0d1225;border-radius:16px;padding:24px;margin:20px 0;border:2px solid #ff6b6b}
.responsible-section h3{color:#ff6b6b;font-size:1.1rem;margin-bottom:12px}
.responsible-section p{color:#b0bcc8;font-size:.9rem;line-height:1.7;margin-bottom:10px}
.age-badge{display:inline-block;vertical-align:middle;width:48px;height:48px;margin-right:10px}

/* ============================================
   Inner Page Content
   ============================================ */
.page-content{padding:20px 0}
.page-content h1{font-size:clamp(1.3rem,4vw,2rem);color:#ffd700;margin-bottom:16px}
.page-content h2{font-size:clamp(1.1rem,3vw,1.5rem);color:#4ecdc4;margin:24px 0 12px}
.page-content h3{font-size:1.05rem;color:#e0e8f0;margin:16px 0 8px}
.page-content p{color:#b0bcc8;font-size:.9rem;line-height:1.8;margin-bottom:12px;text-indent:2em}
.page-content ul{padding-left:20px;margin-bottom:16px}
.page-content li{color:#b0bcc8;font-size:.9rem;line-height:1.8;margin-bottom:6px;position:relative;padding-left:16px}
.page-content li::before{content:'▸';position:absolute;left:0;color:#4ecdc4}
.page-content img{border-radius:12px;margin:16px 0}
.content-img-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.content-img-grid img{border-radius:10px;aspect-ratio:16/10;object-fit:cover}

/* Info Table */
.info-table{width:100%;border-collapse:collapse;margin:16px 0;border-radius:10px;overflow:hidden}
.info-table th{background:#1a2040;color:#ffd700;padding:12px;text-align:left;font-size:.85rem}
.info-table td{padding:12px;border-bottom:1px solid #1e2a4a;font-size:.85rem;color:#b0bcc8}
.info-table tr:hover{background:rgba(78,205,196,.05)}

/* ============================================
   Footer
   ============================================ */
.site-footer{background:linear-gradient(180deg,#0a0e1a,#060812);border-top:2px solid #1e2a4a;padding:30px 0 0;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:600px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){.footer-grid{grid-template-columns:repeat(4,1fr)}}
.footer-col h4{color:#ffd700;font-size:.95rem;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #1e2a4a}
.footer-col a{display:block;color:#7a8a9e;font-size:.85rem;padding:4px 0;transition:color .3s}
.footer-col a:hover{color:#4ecdc4}
.footer-col p{color:#7a8a9e;font-size:.82rem;line-height:1.6}
.footer-social{display:flex;gap:10px;margin-top:10px}
.footer-social img{width:36px;height:36px;border-radius:8px}
.footer-payment{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.footer-payment img{height:30px;width:auto}
.footer-bottom{text-align:center;padding:20px 0;margin-top:24px;border-top:1px solid #1e2a4a}
.footer-bottom p{color:#4a5a6e;font-size:.78rem;line-height:1.6}
.footer-bottom .age-badge{width:36px;height:36px;vertical-align:middle}
.footer-disclaimer{background:#080c14;padding:16px;border-radius:10px;margin:16px 0;border:1px solid #2a1a1a}
.footer-disclaimer p{color:#6a5a5a;font-size:.78rem;line-height:1.5}

/* ============================================
   App Download Page
   ============================================ */
.app-hero{text-align:center;padding:40px 20px;background:linear-gradient(135deg,#0d1225,#1a1040)}
.app-hero h1{color:#ffd700;font-size:clamp(1.4rem,4vw,2.2rem);margin-bottom:12px}
.app-hero p{color:#8a9ab0;font-size:.95rem;max-width:500px;margin:0 auto 20px}
.app-mockup{max-width:500px;margin:0 auto;border-radius:16px;overflow:hidden}
.download-btns{display:flex;flex-direction:column;gap:12px;align-items:center;margin:24px 0}
.download-btn{display:inline-flex;align-items:center;gap:10px;padding:14px 30px;background:#1a1f3a;border:2px solid #4ecdc4;border-radius:12px;color:#e0e8f0;font-size:.95rem;font-weight:600;transition:all .3s;min-width:220px;justify-content:center}
.download-btn:hover{background:#4ecdc4;color:#0a0e1a}
.download-btn.primary{background:linear-gradient(135deg,#ff6b6b,#ee5a24);border-color:#ff6b6b;color:#fff}
.qr-section{text-align:center;padding:30px 0}
.qr-section img{max-width:200px;margin:0 auto;border-radius:12px}
.app-features{display:grid;grid-template-columns:1fr;gap:16px;padding:20px 0}
@media(min-width:600px){.app-features{grid-template-columns:repeat(2,1fr)}}
.app-feature{background:#0d1225;border-radius:12px;padding:20px;border:1px solid #1e2a4a;text-align:center}
.app-feature h4{color:#4ecdc4;margin-bottom:8px}
.app-feature p{color:#7a8a9e;font-size:.85rem}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.animate-in{animation:fadeInUp .6s ease-out both}
.pulse-btn{animation:pulse 2s infinite}

/* ============================================
   Performance: Prefers reduced motion
   ============================================ */
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}
