/* =========================================================
   DEEPFISH - moban-159 Responsive Stylesheet
   Breakpoints: 1200 / 1024 / 900 / 768 / 600 / 480 / 360
   ========================================================= */

/* ===== LARGE DESKTOP (< 1200px) ===== */
@media (max-width: 1199px) {
    :root { --container-max: 100%; }
    .hero-brand { font-size: 60px; letter-spacing: 4px; }
    .hero-tagline { font-size: 20px; }
    .section-title { font-size: 30px; }
    .ocean-star-games-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .ocean-features-grid { grid-template-columns: repeat(2, 1fr); }
    .ocean-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-columns-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 26px; }
    .content-area { grid-template-columns: 1fr 260px; gap: 24px; }
    .stat-number { font-size: 38px; }
}

/* ===== DESKTOP (< 1024px) ===== */
@media (max-width: 1024px) {
    .header-top { flex-wrap: wrap; padding: 14px 0; }
    .header-time { order: 3; flex-basis: 100%; margin-top: 8px; }
    .hero-brand { font-size: 54px; }
    .hero-tagline { font-size: 18px; letter-spacing: 2px; }
    .hero-description { font-size: 16px; }
    .hero-stat-number { font-size: 30px; }
    .deepfish-hero { min-height: 560px; padding: 70px 20px 50px; }
    .ocean-star-games-grid { grid-template-columns: repeat(2, 1fr); }
    .ocean-promos-grid { grid-template-columns: repeat(2, 1fr); }
    .home-news-grid { grid-template-columns: repeat(2, 1fr); }
    .ocean-grid-row { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .footer-columns-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
    .footer-columns-grid .footer-col:nth-child(4) { grid-column: 1/-1; }
    .content-area { grid-template-columns: 1fr 240px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .article-title { font-size: 28px; }
    .floating-sidebar { right: 8px; gap: 8px; }
    .sidebar-btn { width: 44px; height: 44px; font-size: 18px; }
}

/* ===== SMALL DESKTOP (< 900px) ===== */
@media (max-width: 899px) {
    .mobile-menu-toggle { display: inline-flex; margin: 10px 0; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-bottom: 10px;
    }
    .nav-menu.active { display: flex; }
    .nav-link { padding: 12px 14px; border-bottom: 1px solid rgba(0,200,83,0.1); width: 100%; }
    .nav-link::after { display: none; }
    .hero-brand { font-size: 48px; }
    .hero-tagline { font-size: 16px; }
    .section-title { font-size: 26px; }
    .ocean-features-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .ocean-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-columns-grid { grid-template-columns: 1fr 1fr; }
    .footer-columns-grid .footer-col:nth-child(4) { grid-column: auto; }
    .content-area { grid-template-columns: 1fr; gap: 30px; }
    .floating-sidebar { position: fixed; right: 10px; top: auto; bottom: 20px; transform: none; flex-direction: row; gap: 8px; }
    .sidebar-btn { width: 42px; height: 42px; }
    .sidebar-btn::before { display: none; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .error-404-code { font-size: 110px; }
}

/* ===== TABLET (< 768px) ===== */
@media (max-width: 767px) {
    body { font-size: 15px; }
    .container { padding: 0 16px; }
    .header-top { padding: 12px 0; }
    .logo img { height: 44px; }
    .header-btn-group { gap: 6px; }
    .btn-login, .btn-register, .btn-demo { padding: 7px 12px; font-size: 12px; }
    .btn-demo { display: none; }
    .notification-content { font-size: 13px; gap: 40px; }

    .deepfish-hero { min-height: 520px; padding: 60px 16px 40px; }
    .hero-brand { font-size: 42px; letter-spacing: 2px; }
    .hero-tagline { font-size: 14px; letter-spacing: 1px; }
    .hero-description { font-size: 15px; margin-bottom: 24px; }
    .hero-stats-row { gap: 20px; }
    .hero-stat-number { font-size: 26px; }
    .hero-stat-label { font-size: 11px; }
    .hero-cta-group { flex-direction: column; gap: 10px; align-items: stretch; }
    .btn-ocean-primary, .btn-outline-ocean { padding: 12px 24px; font-size: 13px; text-align: center; }

    .ocean-star-games-grid { grid-template-columns: 1fr; gap: 16px; }
    .ocean-star-game-card { padding: 24px 20px; }
    .ocean-star-game-icon { width: 70px; height: 70px; font-size: 30px; }

    .ocean-grid-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ocean-node-icon { width: 50px; height: 50px; font-size: 22px; }
    .ocean-node-label { font-size: 13px; }

    .ocean-features-grid { grid-template-columns: 1fr; gap: 16px; }
    .ocean-feature-card { padding: 26px 20px; }

    .ocean-stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 34px; }
    .stat-label { font-size: 12px; }
    .ocean-stats { padding: 60px 18px; }

    .ocean-promos-grid { grid-template-columns: 1fr; gap: 18px; }
    .ocean-promo-inner { padding: 26px 20px; }

    .footer-cta-section { padding: 60px 20px; }
    .footer-cta-inner h2 { font-size: 30px; }
    .footer-cta-inner > p { font-size: 15px; }
    .cta-features { gap: 12px; }
    .cta-feature { font-size: 13px; padding: 7px 14px; }

    .home-news-grid { grid-template-columns: 1fr; gap: 18px; }
    .article-card-title { font-size: 16px; min-height: 48px; }
    .view-more-btn { max-width: 100%; padding: 11px 24px; font-size: 13px; }

    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 14px; margin-bottom: 30px; }

    .breadcrumb { padding: 12px 14px; font-size: 12px; margin: 14px 0 24px; }
    .category-header { padding: 22px 18px; }
    .category-title { font-size: 24px; }
    .provider-tabs { padding: 10px; gap: 6px; }
    .provider-tab { padding: 7px 12px; font-size: 12px; }

    .article-grid { grid-template-columns: 1fr; gap: 16px; }
    .single-article { padding: 24px 18px; }
    .article-title { font-size: 24px; }
    .article-meta { gap: 10px; font-size: 12px; }
    .article-content { font-size: 15px; }
    .article-nav { flex-direction: column; gap: 10px; }
    .article-nav-prev, .article-nav-next { text-align: left; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .related-posts { padding: 22px 16px; }
    .related-posts-title { font-size: 18px; }

    .page-article { padding: 24px 18px; }
    .page-title { font-size: 26px; }

    .error-404-page { padding: 60px 18px; }
    .error-404-icon { font-size: 56px; }
    .error-404-code { font-size: 90px; }
    .error-404-title { font-size: 22px; }
    .error-404-desc { font-size: 15px; }
    .error-404-actions { flex-direction: column; gap: 10px; }

    .footer-columns-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-col h4 { font-size: 15px; margin-bottom: 14px; }
    .site-footer { padding: 50px 0 24px; }
    .license-icons { gap: 14px; }
    .license-item { padding: 10px 14px; min-width: 80px; }
    .license-item i { font-size: 22px; }
    .license-item span { font-size: 11px; }

    .announcement-content { padding: 24px 18px; }
    .announcement-header-icon { font-size: 40px; }
    .announcement-title { font-size: 18px; }
    .announcement-item { padding: 10px 12px; gap: 10px; }
    .announcement-text { font-size: 13px; }
    .announcement-cta { padding: 10px 28px; font-size: 13px; }

    .pagination .page-numbers { min-width: 38px; height: 38px; font-size: 13px; }
}

/* ===== MOBILE (< 600px) ===== */
@media (max-width: 599px) {
    body { font-size: 14px; }
    .container { padding: 0 12px; }
    .logo img { height: 40px; }
    .header-time { display: none; }
    .header-btn-group { gap: 5px; }
    .btn-login, .btn-register { padding: 7px 10px; font-size: 11px; }

    .deepfish-hero { min-height: 460px; padding: 50px 14px 36px; border-radius: var(--radius-md); }
    .hero-brand { font-size: 36px; letter-spacing: 1px; }
    .hero-divider-line { width: 120px; height: 2px; }
    .hero-tagline { font-size: 13px; }
    .hero-description { font-size: 14px; }
    .hero-stats-row { gap: 14px; margin-bottom: 24px; }
    .hero-stat { min-width: 70px; }
    .hero-stat-number { font-size: 22px; }
    .hero-stat-label { font-size: 10px; }

    .ocean-bubbles .bubble { display: none; }
    .ocean-bubbles .bubble.b1,
    .ocean-bubbles .bubble.b3,
    .ocean-bubbles .bubble.b5,
    .ocean-bubbles .bubble.b7 { display: block; }
    .swimming-fish .fish { display: none; }
    .swimming-fish .fish-1,
    .swimming-fish .fish-3 { display: block; }
    .ocean-pulse-ring { width: 200px; height: 200px; margin: -100px 0 0 -100px; }

    .section-title { font-size: 20px; padding-bottom: 14px; }
    .section-title i { font-size: 18px; }
    .section-subtitle { font-size: 13px; margin-bottom: 24px; }

    .ocean-star-games, .ocean-grid-section, .ocean-features, .ocean-promos, .home-news-section { padding: 40px 0; }

    .ocean-star-game-card h3 { font-size: 18px; }
    .ocean-star-game-card p { font-size: 13px; min-height: auto; }
    .ocean-star-game-icon { width: 62px; height: 62px; font-size: 26px; }

    .ocean-grid-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ocean-grid-node { padding: 16px 10px; }
    .ocean-node-icon { width: 44px; height: 44px; font-size: 18px; }
    .ocean-node-label { font-size: 12px; }

    .ocean-feature-card { padding: 22px 16px; }
    .ocean-feature-icon { width: 60px; height: 60px; font-size: 24px; }
    .ocean-feature-card h3 { font-size: 16px; }
    .ocean-feature-card p { font-size: 13px; }

    .ocean-stats { padding: 50px 14px; margin: 40px 0; }
    .ocean-stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .ocean-stat-card { padding: 24px 14px; }
    .stat-number { font-size: 28px; }
    .stat-label { font-size: 11px; }
    .stat-ocean-decoration { width: 34px; height: 34px; font-size: 14px; }

    .ocean-promo-card h3 { font-size: 17px; }
    .ocean-promo-card p { font-size: 13px; min-height: auto; }
    .promo-icon { width: 58px; height: 58px; font-size: 24px; }

    .footer-cta-section { padding: 48px 16px; border-radius: var(--radius-md); }
    .footer-cta-inner h2 { font-size: 24px; letter-spacing: 1px; }
    .footer-cta-inner > p { font-size: 14px; margin-bottom: 20px; }
    .cta-features { flex-direction: column; gap: 8px; align-items: flex-start; }
    .cta-ocean-wave { width: 80px; height: 40px; }

    .breadcrumb { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
    .category-title { font-size: 20px; }
    .category-desc { font-size: 13px; }
    .provider-tabs { gap: 5px; padding: 8px; }
    .provider-tab { padding: 6px 10px; font-size: 11px; }

    .single-article, .page-article { padding: 20px 14px; }
    .article-title { font-size: 22px; }
    .page-title { font-size: 22px; }
    .article-content, .page-content { font-size: 14px; line-height: 1.75; }
    .article-meta { flex-direction: column; gap: 6px; }

    .error-404-page { padding: 50px 14px; }
    .error-404-icon { font-size: 48px; }
    .error-404-code { font-size: 80px; }
    .error-404-title { font-size: 20px; }
    .error-404-desc { font-size: 14px; }

    .floating-sidebar { right: 6px; bottom: 10px; gap: 5px; }
    .sidebar-btn { width: 38px; height: 38px; font-size: 16px; }

    .footer-social-links a { width: 36px; height: 36px; font-size: 14px; }
    .footer-18plus { width: 40px; height: 40px; line-height: 40px; font-size: 14px; }
    .footer-license-bar { padding: 20px 0; }
    .footer-license-bar h4 { font-size: 14px; }
    .license-icons { gap: 8px; }
    .license-item { padding: 8px 10px; min-width: 60px; }
    .license-item i { font-size: 20px; }
    .license-item span { font-size: 10px; }

    .announcement-modal { padding: 12px; }
    .announcement-content { padding: 20px 14px; }
    .announcement-header-icon { font-size: 34px; margin-bottom: 8px; }
    .announcement-title { font-size: 16px; margin-bottom: 14px; }
    .announcement-item { padding: 9px 10px; }
    .announcement-text { font-size: 12px; }
    .announcement-badge { padding: 3px 8px; font-size: 10px; }
    .announcement-cta { padding: 9px 22px; font-size: 12px; }

    .pagination .page-numbers { min-width: 34px; height: 34px; font-size: 12px; padding: 0 6px; }

    .nav-link { padding: 10px 12px; font-size: 12px; }
    .main-navigation::before, .main-navigation::after { display: none; }

    .site-footer { padding: 40px 0 20px; }
    .footer-brand-text { font-size: 13px; }
    .footer-col a { font-size: 13px; }
    .footer-copyright { font-size: 12px; }

    .related-grid { grid-template-columns: 1fr; gap: 12px; }
    .related-item-title { font-size: 13px; }

    .article-tags span { padding: 4px 10px; font-size: 11px; }
    .article-nav a { padding: 8px 12px; font-size: 13px; }
    .related-posts { padding: 18px 14px; }

    ::-webkit-scrollbar { width: 8px; }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 479px) {
    .logo img { height: 36px; }
    .btn-login, .btn-register { padding: 6px 9px; font-size: 10px; }
    .deepfish-hero { min-height: 420px; }
    .hero-brand { font-size: 30px; }
    .hero-tagline { font-size: 12px; }
    .hero-stats-row { gap: 10px; }
    .hero-stat-number { font-size: 20px; }
    .section-title { font-size: 18px; }
    .footer-cta-inner h2 { font-size: 22px; }
    .error-404-code { font-size: 70px; }
    .article-title { font-size: 20px; }
    .sidebar-btn { width: 36px; height: 36px; font-size: 15px; }
    .floating-sidebar { gap: 4px; right: 4px; }
}

/* ===== EXTRA SMALL MOBILE (< 360px) ===== */
@media (max-width: 359px) {
    .container { padding: 0 8px; }
    .logo img { height: 32px; }
    .hero-brand { font-size: 26px; }
    .hero-tagline { font-size: 11px; letter-spacing: 0.5px; }
    .section-title { font-size: 16px; }
    .hero-stat-number { font-size: 18px; }
    .sidebar-btn { width: 32px; height: 32px; font-size: 14px; }
    .error-404-code { font-size: 60px; }
}

/* ===== PRINT ===== */
@media print {
    body { background: white; color: #000; }
    .site-header, .site-footer, .floating-sidebar, .announcement-modal, .notification-bar { display: none !important; }
    .article-card, .single-article, .page-article { border: 1px solid #ccc; }
    a { color: #000; text-decoration: underline; }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .deepfish-hero { min-height: 380px; padding: 40px 20px; }
    .hero-brand { font-size: 38px; }
    .announcement-content { max-height: 85vh; overflow-y: auto; }
}

/* ===== DARK MODE OVERRIDE ===== */
@media (prefers-color-scheme: light) {
    body { background: var(--bg-deep); color: var(--text-main); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bubble, .current, .fish, .ocean-pulse-ring { display: none !important; }
}

/* ===== HIGH DPI ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img, .footer-brand-logo img { image-rendering: -webkit-optimize-contrast; }
}

/* ===== END OF RESPONSIVE STYLESHEET ===== */

/* =========================================================
   DEEPFISH - moban-159 Extended Responsive Overrides
   Additional granular tweaks across breakpoints
   ========================================================= */

/* ===== LARGE DESKTOP (<=1400px) ===== */
@media (max-width: 1400px) {
    .container { max-width: 1200px; }
    .hero-brand { font-size: 66px; }
    .hero-tagline { font-size: 22px; }
    .ocean-star-games-grid { gap: 20px; }
    .ocean-features-grid { gap: 20px; }
    .footer-columns-grid { gap: 30px; }
}

/* ===== MID DESKTOP (<=1280px) ===== */
@media (max-width: 1280px) {
    .hero-inner-content { max-width: 760px; }
    .hero-description { font-size: 16px; }
    .ocean-star-game-card { padding: 26px 22px; }
    .ocean-star-game-card h3 { font-size: 19px; }
    .ocean-star-game-icon { width: 76px; height: 76px; }
    .ocean-feature-card { padding: 28px 22px; }
    .footer-cta-inner h2 { font-size: 36px; }
}

/* ===== TABLET (<=1024px) - additional ===== */
@media (max-width: 1024px) {
    .hero-inner-content { max-width: 680px; }
    .hero-stats-row { gap: 30px; }
    .section-title { font-size: 28px; }
    .footer-cta-inner { max-width: 640px; }
    .ocean-grid-node { padding: 18px 12px; }
    .stat-number { font-size: 40px; }
    .category-title { font-size: 28px; }
    .related-grid { gap: 14px; }
    .related-item-title { min-height: 44px; }
}

/* ===== SMALL DESKTOP (<=900px) - additional ===== */
@media (max-width: 899px) {
    .hero-inner-content { max-width: 100%; }
    .ocean-promos-grid { grid-template-columns: 1fr 1fr; }
    .ocean-promos-grid .ocean-promo-card:last-child {
        grid-column: 1/-1;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }
    .footer-columns-grid { gap: 24px; }
    .single-article, .page-article { padding: 26px 22px; }
    .article-title { font-size: 26px; }
    .page-title { font-size: 28px; }
    .related-posts { padding: 24px 20px; }
    .error-404-page { padding: 64px 24px; }
    .error-404-code { font-size: 120px; }
}

/* ===== TABLET (<=768px) - additional ===== */
@media (max-width: 767px) {
    body { line-height: 1.6; }
    .site-header { position: relative; }
    .header-top { gap: 10px; }
    .logo img { max-height: 46px; }
    .header-btn-group { flex-wrap: wrap; }

    .main-navigation .container { padding: 8px 16px; }
    .nav-menu.active { padding-bottom: 8px; }
    .nav-item { width: 100%; }

    .deepfish-hero { margin: 20px 0; border-radius: var(--radius-md); }
    .hero-main-title { gap: 10px; margin-bottom: 18px; }
    .hero-stats-row { margin-top: 6px; }
    .ocean-bubbles .bubble { opacity: 0.6; }

    .ocean-star-game-card p { min-height: auto; }
    .ocean-grid-map { gap: 12px; }
    .ocean-grid-row { gap: 10px; }
    .ocean-feature-icon { width: 64px; height: 64px; font-size: 26px; }

    .ocean-stat-card { padding: 28px 16px; }
    .stat-ocean-decoration { width: 36px; height: 36px; font-size: 14px; }

    .ocean-promos-grid { gap: 16px; }
    .ocean-promo-inner { padding: 24px 18px; }
    .ocean-promo-card h3 { font-size: 18px; }

    .footer-cta-section { margin: 40px 0; padding: 50px 18px; }
    .footer-cta-inner h2 { font-size: 28px; }
    .cta-feature { padding: 7px 14px; }

    .home-news-grid { margin-bottom: 24px; }
    .article-card-thumb { aspect-ratio: 16/10; }

    .category-header { padding: 20px 16px; margin-bottom: 22px; }
    .provider-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .provider-tab { white-space: nowrap; flex: 0 0 auto; }

    .article-grid { gap: 16px; }
    .article-card { display: flex; flex-direction: column; }
    .article-card-title { padding: 14px 14px 6px; min-height: auto; }
    .article-card-meta { padding: 0 14px 8px; }
    .article-card-excerpt { padding: 0 14px 14px; font-size: 13px; }
    .article-card-more { margin: 0 14px 14px; }

    .single-article { border-radius: var(--radius-md); }
    .article-content h2 { font-size: 22px; }
    .article-content h3 { font-size: 19px; }
    .article-content blockquote { padding: 12px 16px; font-size: 14px; }

    .related-posts-title { font-size: 20px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .page-article { border-radius: var(--radius-md); }

    .error-404-page { margin: 30px auto; border-radius: var(--radius-md); }

    .floating-sidebar { gap: 6px; }
    .sidebar-btn { border-width: 1px; }

    .site-footer { padding: 44px 0 22px; }
    .footer-columns-grid { gap: 24px; }
    .footer-col h4 { font-size: 14px; }
    .footer-brand-logo img { height: 46px; }
    .footer-social-links { gap: 8px; }
    .footer-license-bar { margin-bottom: 20px; }
    .footer-copyright { font-size: 12px; }

    .announcement-content { max-width: 95%; }
    .announcement-title { letter-spacing: 0.5px; }

    .pagination { margin: 22px 0; }
    .pagination .nav-links { gap: 5px; }
}

/* ===== MOBILE (<=600px) - additional ===== */
@media (max-width: 599px) {
    .logo { flex: 0 0 auto; }
    .logo img { max-height: 40px; }
    .btn-register { font-size: 11px; }

    .deepfish-hero { margin: 14px 0; }
    .hero-brand { line-height: 1.1; }
    .hero-tagline { line-height: 1.4; }

    .section-title::after { width: 60px; }
    .section-subtitle { line-height: 1.5; }

    .ocean-star-game-card h3 { margin-bottom: 8px; }
    .ocean-star-game-players { font-size: 11px; padding: 5px 10px; }

    .ocean-grid-row { gap: 8px; }
    .ocean-grid-node { padding: 14px 8px; border-radius: var(--radius-sm); }
    .ocean-node-icon { margin-bottom: 8px; }

    .ocean-feature-card h3 { margin-bottom: 8px; }
    .ocean-feature-card p { line-height: 1.6; }

    .ocean-stats { margin: 30px 0; border-radius: var(--radius-md); }
    .ocean-stats-grid { gap: 10px; }

    .promo-timer { font-size: 12px; gap: 8px; flex-wrap: wrap; }
    .btn-promo { padding: 10px 22px; font-size: 13px; }

    .cta-features { margin-bottom: 20px; }
    .cta-main-btn { padding: 13px 28px; font-size: 13px; width: 100%; }

    .view-more-btn { font-size: 12px; }

    .breadcrumb { border-radius: var(--radius-sm); }
    .category-desc { line-height: 1.6; }

    .article-card-thumb img { object-fit: cover; }
    .article-card-title span { font-size: 15px; }

    .article-content h2, .article-content h3, .article-content h4 { margin: 20px 0 10px; }
    .article-content p { margin-bottom: 14px; }
    .article-content ul, .article-content ol { margin: 10px 0 14px; }
    .article-content blockquote { margin: 14px 0; padding: 10px 14px; }
    .article-tags { padding-top: 14px; gap: 6px; }

    .related-item-title { font-size: 12px; min-height: 42px; }

    .page-content h2, .page-content h3 { font-size: 20px; margin: 20px 0 10px; }

    .error-404-actions .btn-ocean-primary,
    .error-404-actions .btn-outline-ocean { width: 100%; padding: 12px 20px; }

    .footer-social-links a { width: 34px; height: 34px; }
    .footer-18plus { margin-bottom: 10px; }
    .footer-col li { margin-bottom: 8px; }
    .license-item { min-width: 70px; }

    .announcement-modal { padding: 10px; }
    .announcement-header-icon { font-size: 32px; }
    .announcement-list { gap: 8px; margin-bottom: 14px; }
}

/* ===== MOBILE NAVIGATION FIXES ===== */
@media (max-width: 900px) {
    .main-navigation .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .mobile-menu-toggle {
        order: 1;
    }
    .nav-menu {
        order: 2;
        flex-basis: 100%;
    }
}

/* ===== FLEX GRID HELPERS ===== */
@media (max-width: 767px) {
    .flex-center { flex-direction: column; align-items: center; }
    .flex-between { flex-direction: column; gap: 10px; }
}

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
    .ocean-star-game-card:hover { transform: none; }
    .ocean-feature-card:hover { transform: none; }
    .ocean-stat-card:hover { transform: none; }
    .ocean-promo-card:hover { transform: none; }
    .article-card:hover { transform: none; }
    .related-item:hover { transform: none; }
    .sidebar-btn:hover { transform: none; }
    .sidebar-btn::before { display: none; }
    .ocean-grid-node:hover { transform: none; }
    .footer-col a:hover { transform: none; }
    .footer-social-links a:hover { transform: none; }
}

/* ===== NOTCH / SAFE AREA ===== */
@supports (padding: max(0px)) {
    .site-header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .site-footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .floating-sidebar {
        right: max(8px, env(safe-area-inset-right));
    }
}

/* ===== WIDE SCREEN (>=1600px) ===== */
@media (min-width: 1600px) {
    .container { max-width: 1400px; }
    .hero-brand { font-size: 80px; }
    .hero-tagline { font-size: 26px; }
    .deepfish-hero { min-height: 700px; padding: 100px 40px 80px; }
    .section-title { font-size: 38px; }
    .ocean-star-game-card { padding: 32px 28px; }
    .ocean-star-game-icon { width: 90px; height: 90px; font-size: 38px; }
    .footer-columns-grid { gap: 40px; }
    .content-area { gap: 40px; }
    .article-title { font-size: 36px; }
    .page-title { font-size: 38px; }
}

/* ===== ULTRA WIDE (>=1920px) ===== */
@media (min-width: 1920px) {
    .container { max-width: 1500px; }
    .hero-brand { font-size: 88px; }
    .deepfish-hero { min-height: 780px; }
    .section-title { font-size: 42px; }
    .ocean-star-games-grid { gap: 30px; }
    .ocean-features-grid { gap: 28px; }
}

/* ===== MOBILE FIRST OVERRIDES ===== */
@media (max-width: 420px) {
    .hero-stat { min-width: 60px; }
    .hero-stat-number { font-size: 19px; }
    .hero-stat-label { font-size: 10px; }
    .ocean-grid-row { grid-template-columns: repeat(2, 1fr); }
    .license-item { min-width: 50px; padding: 6px 8px; }
    .license-item i { font-size: 18px; }
    .sidebar-btn { width: 34px; height: 34px; font-size: 15px; }
    .floating-sidebar { gap: 3px; }
}

/* ===== ACCESSIBILITY FOCUS ===== */
a:focus-visible, button:focus-visible, .nav-link:focus-visible {
    outline: 2px solid var(--ocean-green);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .notification-content { animation: none; }
}

/* ===== END OF EXTENDED RESPONSIVE ===== */

/* ===== ADDITIONAL FINE-TUNING ===== */
@media (max-width: 1024px) {
    .announcement-content { max-width: 500px; }
    .hero-description { padding: 0 4px; }
    .cta-main-btn { padding: 14px 34px; }
}

@media (max-width: 767px) {
    .ocean-star-game-rating { font-size: 13px; margin-bottom: 10px; }
    .ocean-feature-card::after { display: none; }
    .ocean-stat-card { border-radius: var(--radius-md); }
    .ocean-promo-card { border-radius: var(--radius-md); }
    .footer-cta-oceanfield { border-radius: var(--radius-md); }
    .related-item { border-radius: var(--radius-sm); }
    .article-card { border-radius: var(--radius-sm); }
}

@media (max-width: 599px) {
    .hero-stats-row { justify-content: space-around; }
    .hero-stat { flex: 0 0 auto; }
    .btn-ocean-primary { padding: 12px 20px; }
    .btn-outline-ocean { padding: 11px 20px; }
    .ocean-star-game-card { border-radius: var(--radius-md); }
    .ocean-feature-card { border-radius: var(--radius-md); }
    .ocean-grid-map { gap: 10px; }
    .ocean-promos-grid { gap: 14px; }
    .home-news-grid { gap: 14px; }
    .article-grid { gap: 14px; }
    .category-header { border-radius: var(--radius-md); }
    .single-article { margin-bottom: 22px; }
    .page-article { margin-bottom: 22px; }
    .related-posts { margin-bottom: 22px; border-radius: var(--radius-md); }
}

@media (max-width: 420px) {
    .header-btn-group .btn-demo { display: none; }
    .hero-cta-group .btn-outline-ocean { display: none; }
    .cta-features { flex-direction: column; }
    .cta-feature { width: 100%; justify-content: flex-start; }
    .footer-cta-section { margin: 30px 0; }
    .ocean-stats-grid { grid-template-columns: 1fr 1fr; }
    .ocean-stat-card:nth-child(n) { margin-bottom: 0; }
}

@media (min-width: 1200px) {
    .content-area { grid-template-columns: 1fr 320px; }
    .floating-sidebar { right: 20px; }
    .sidebar-btn { width: 52px; height: 52px; font-size: 20px; }
}

@media (min-width: 1400px) {
    .floating-sidebar { right: 30px; }
    .sidebar-btn { width: 56px; height: 56px; font-size: 22px; }
    .sidebar-btn::before { font-size: 13px; padding: 8px 14px; }
}

/* ===== DARK / LIGHT MODE CONSISTENCY ===== */
@media (prefers-color-scheme: dark) {
    body { color-scheme: dark; }
}

@media (prefers-color-scheme: light) {
    body { color-scheme: dark; }
}

/* ===== FORCED COLORS / HIGH CONTRAST ===== */
@media (forced-colors: active) {
    .btn-ocean-primary, .btn-outline-ocean, .btn-promo,
    .btn-login, .btn-register, .btn-demo, .view-more-btn {
        border: 2px solid ButtonText;
    }
    .ocean-star-game-card, .ocean-feature-card, .ocean-promo-card,
    .article-card, .single-article, .page-article {
        border: 1px solid CanvasText;
    }
}

/* ===== FINAL END ===== */
