/* ============================================
   RESET AND BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(180deg, #E8B4F0 0%, #C9A3E8 50%, #B89FE8 100%);
    min-height: 100dvh;
    color: #333;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    font-size: clamp(14px, 1.6vw, 16px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 40px);
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ============================================
   HEADER STYLES
   ============================================ */
header {
    font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(180deg, #E8B4F0 0%, #C9A3E8 50%, #B89FE8 100%);
    padding: clamp(10px, 2vw, 15px) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

/* === SOCIAL ICONS === */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    margin-top: 15px;
}

.social-icons .social {
    background-color: #7A33A0;
    color: white;
    font-size: clamp(14px, 1.5vw, 18px);
    width: clamp(40px, 5vw, 44px);
    height: clamp(40px, 5vw, 44px);
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.social-icons .social:hover {
    background-color: #9c4bcc;
    box-shadow: 0 4px 10px rgba(122, 51, 160, 0.4);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9B6B9B;
    text-decoration: none;
    font-size: 14px;
}

.social-icon:hover {
    background: white;
}

/* === LOGO SECTION === */
.logo-section {
    text-align: center;
    flex: 0 0 auto;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.logo-container {
    background: linear-gradient(135deg, #87CEEB 0%, #B8E0F6 100%);
    border-radius: 30px;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 40px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.lucky-text {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: 700;
    color: #87CEEB;
    text-shadow:
        2px 2px 0px #5BA3C9,
        4px 4px 0px rgba(0, 0, 0, 0.1);
    font-family: 'Fredoka', cursive;
    letter-spacing: 2px;
    line-height: 0.9;
}

.lucky-number {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 700;
    background: linear-gradient(180deg, #FF69B4 0%, #FF1493 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 0px rgba(255, 105, 180, 0.3);
    font-family: 'Fredoka', cursive;
    margin-top: -15px;
    line-height: 0.8;
}

/* === NAVIGATION === */
nav {
    margin-left: auto;
    flex: 1 1 auto;
    min-width: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav ul li a {
    padding: clamp(6px, 1vw, 8px) clamp(8px, 1.5vw, 18px);
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: clamp(10px, 1.3vw, 13px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    white-space: nowrap;
}

/* === HAMBURGER MENU (mobile only) === */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #7A33A0;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* All nav items default purple */
nav ul li:nth-child(1) a { background: #9B6B9B; }
nav ul li:nth-child(2) a { background: #9B6B9B; }
nav ul li:nth-child(3) a { background: #9B6B9B; }
nav ul li:nth-child(4) a { background: #9B6B9B; }

/* Active item (from scroll tracking) is blue */
nav ul li a.active {
    background: #B3E5FF;
    color: #333;
}

/* When cursor enters nav, reset ALL items to purple (including active) */
nav ul:hover li a {
    background: #9B6B9B;
    color: white;
}

/* Blue follows whichever item the cursor is on */
nav ul:hover li a:hover {
    background: #B3E5FF;
    color: #333;
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
main {
    padding: clamp(15px, 4vw, 40px) clamp(10px, 3vw, 20px);
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-x: hidden;
}

/* === ABOUT SECTION === */
.about-section {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: clamp(20px, 4vw, 40px);
    margin: clamp(15px, 3vw, 40px) 0;
    max-width: 100%;
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(107, 76, 155, 0.2);
}

/* === STREAM OUTLINE SECTION === */
.stream-outline-section {
    position: relative;
    z-index: 2;
    padding: clamp(20px, 4vw, 40px) 0;
    margin: clamp(15px, 3vw, 40px) 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.stream-outline-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(107, 76, 155, 0.2);
}

.content-center {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: clamp(15px, 3vw, 35px);
    box-shadow: none;
    position: relative;
    z-index: 6;
}

/* === SECTION TITLES === */
.section-title {
    font-size: clamp(18px, 3.5vw, 32px);
    font-weight: 700;
    background: linear-gradient(135deg, #6B4C9B 0%, #9B6B9B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: clamp(15px, 2.5vw, 25px);
    font-family: 'Fredoka', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === ABOUT TEXT === */
.about-text {
    font-size: clamp(13px, 1.5vw, 15px);
    line-height: 1.8;
    color: #5B4C7B;
    text-align: justify;
    margin-bottom: 30px;
    padding: clamp(15px, 3vw, 25px);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    font-weight: 400;
}

.about-text:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.01);
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 15px;
    max-width: 100%;
}

.stream-schedule {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    overflow: hidden;
    min-width: 500px;
}

.stream-schedule thead {
    background: linear-gradient(135deg, #D896D8 0%, #C089C7 100%);
    color: white;
}

.stream-schedule th,
.stream-schedule td {
    padding: clamp(6px, 1.5vw, 12px) clamp(6px, 1.5vw, 12px) clamp(6px, 1.5vw, 12px) clamp(8px, 2vw, 20px);
    text-align: left;
    border: 2px solid rgba(200, 180, 220, 0.3);
    font-size: clamp(10px, 1.3vw, 13px);
}

.stream-schedule th {
    font-weight: 700;
    text-transform: uppercase;
}

.stream-schedule td {
    color: #5B4C7B;
    font-weight: 500;
}

.stream-schedule tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.3);
}

.stream-schedule tbody tr:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(107, 76, 155, 0.15);
}

/* ============================================
   PROMOTIONAL CONTENT
   ============================================ */
.promotional-content {
    font-size: clamp(13px, 1.5vw, 15px);
    line-height: 1.9;
    color: #5B4C7B;
    text-align: justify;
    margin-bottom: 30px;
    padding: clamp(15px, 3vw, 30px) clamp(15px, 4vw, 40px);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    font-weight: 400;
}

.promotional-content:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.01);
}

.promotional-content p,
.promotional-content li {
    color: #4b3b6e;
    font-weight: 500;
}

.promotional-content p {
    margin-bottom: 15px;
}

.promotional-content strong {
    color: #6B4C9B;
    font-weight: 700;
}

.promotional-content ul,
.promotional-content ol {
    padding-left: 0;
    margin-left: clamp(15px, 4vw, 40px);
    margin-bottom: 18px;
}

.promotional-content li {
    margin-left: 1.5em;
    margin-bottom: 10px;
    padding-left: 5px;
    color: #5B4C7B;
    line-height: 1.8;
}

/* ============================================
   PROMO MATERIALS CARDS
   ============================================ */
.promo-materials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    margin-top: clamp(20px, 4vw, 40px);
    padding: clamp(20px, 4vw, 40px);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.promo-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(180deg, #d7b6f7, #f4ccf9);
    max-width: min(420px, 100%);
    width: 100%;
    flex: 1 1 min(420px, 100%);
}

.promo-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(136, 90, 255, 0.4);
}

/* ============================================
   FOOTER INFO
   ============================================ */
.footer-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 3px solid rgba(199, 137, 199, 0.5);
}

.footer-info p {
    font-weight: 700;
    color: #6B4C9B;
    font-size: clamp(12px, 1.4vw, 14px);
    margin: 5px 0;
}

/* ============================================
   BACKGROUND CHARACTERS
   ============================================ */
.background-characters {
    position: relative;
    z-index: 2;
    overflow: visible;
}

.background-characters::before,
.background-characters::after {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.1));
}

.background-characters > * {
    position: relative;
    z-index: 5;
}

/* === FLOATING CHARACTERS === */
.character-left,
.character1,
.character-right,
.character3 {
    position: absolute;
    z-index: 2;
    animation: floatUpDown 6s ease-in-out infinite;
}

.character-left {
    left: -400px;
    top: 160px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.character-right {
    right: -400px;
    top: 160px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.character3 {
    right: -400px;
    top: 930px;
}

.character-left img,
.character-right img,
.character3 img,
.character1 img {
    width: clamp(120px, 15vw, 220px);
    height: auto;
    max-width: 100%;
}

.character-left img {
    width: clamp(100px, 12vw, 150px);
}

.character-left img:nth-child(2) {
    width: clamp(140px, 16vw, 240px);
    height: auto;
}

.character1 {
    position: absolute;
    left: -450px;
    top: 630px;
    z-index: 2;
    animation: floatUpDown 6s ease-in-out infinite;
}

.character1 img {
    width: clamp(140px, 16vw, 240px);
    height: auto;
}

@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* ============================================
   APPENDIX SECTION
   ============================================ */
.appendix-section {
    position: relative;
    z-index: 2;
    padding: clamp(20px, 4vw, 40px) 0;
    margin: clamp(15px, 3vw, 40px) 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: block !important;
    visibility: visible !important;
    max-width: 100%;
}

.appendix-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(107, 76, 155, 0.2);
}

.appendix-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    color: #6B4C9B;
    margin: 20px 0 15px;
    text-align: center;
}

.appendix-table-title {
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight: 700;
    color: #6B4C9B;
    margin: 25px 0 10px;
    text-align: center;
}

.appendix-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.appendix-table {
    width: 100%;
    border-collapse: collapse !important;
    background: transparent;
    margin: 0 0 30px 0;
    border-radius: 15px;
    overflow: hidden;
    border: none !important;
    display: table !important;
    min-width: 400px;
}

.appendix-table * {
    border-color: rgba(200, 180, 220, 0.3) !important;
}

.appendix-table thead {
    background: linear-gradient(135deg, #D896D8 0%, #C089C7 100%);
    color: white;
    display: table-header-group !important;
}

.appendix-table tbody {
    display: table-row-group !important;
}

.appendix-table tr {
    display: table-row !important;
}

.appendix-table th,
.appendix-table td {
    padding: clamp(8px, 1.5vw, 15px) !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: 2px solid rgba(200, 180, 220, 0.3) !important;
    border-style: solid !important;
    font-size: clamp(11px, 1.3vw, 13px) !important;
    display: table-cell !important;
}

.appendix-table th {
    font-weight: 700 !important;
    color: white !important;
    background: transparent !important;
    text-transform: uppercase;
}

.appendix-table td {
    color: #5B4C7B !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.appendix-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.3);
}

.appendix-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(107, 76, 155, 0.15);
}

/* ============================================
   VIEWER CHART (SVG)
   ============================================ */
.viewer-chart {
    max-width: min(500px, 100%);
    margin: 20px auto;
    padding: clamp(10px, 2vw, 20px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-svg {
    width: 100%;
    height: auto;
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    fill: #333;
    font-family: 'Fredoka', sans-serif;
}

.axis-label {
    font-size: 14px;
    font-weight: 600;
    fill: #333;
    font-family: 'Fredoka', sans-serif;
}

.axis-tick {
    font-size: 12px;
    fill: #666;
    font-family: 'Fredoka', sans-serif;
}

.chart-bar:hover {
    fill: #C62828;
}

.bar-top:hover {
    fill: #FF8A80;
}

.bar-side:hover {
    fill: #9A0007;
}

.data-label {
    font-size: 13px;
    fill: #333;
    font-family: 'Fredoka', sans-serif;
}

.viewer-stats {
    text-align: left;
    padding: 0;
    background: white;
    margin: 10px 0 20px;
}

.viewer-stats p {
    font-size: 15px;
    color: #000;
    font-weight: 700;
    margin: 5px 0;
}

/* ============================================
   ANALYSIS SECTION
   ============================================ */
.analysis-section {
    position: relative;
    z-index: 2;
    padding: clamp(20px, 4vw, 40px) 0;
    margin: clamp(15px, 3vw, 40px) 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.analysis-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(107, 76, 155, 0.2);
}

.analysis-section .content-center {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: clamp(15px, 3vw, 35px);
    box-shadow: none;
    position: relative;
    z-index: 6;
}

.analysis-section .analysis-content {
    font-size: clamp(13px, 1.5vw, 15px);
    line-height: 1.9;
    color: #5B4C7B;
    text-align: center;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-weight: 400;
}

.analysis-section .analysis-content > p,
.analysis-section .analysis-content > ul {
    margin-bottom: 20px;
}

.analysis-section .analysis-content strong {
    color: #6B4C9B;
    font-weight: 700;
}

.analysis-section .section-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 700;
    color: #6B4C9B;
    margin: 35px 0 15px;
}

.analysis-section ul {
    margin-left: 0;
    margin-bottom: 12px;
    list-style-type: none;
}

.analysis-section ul li {
    margin-bottom: 6px;
    color: #5B4C7B;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    position: relative;
    z-index: 2;
    padding: clamp(20px, 4vw, 40px) 0;
    margin: clamp(15px, 3vw, 40px) 0;
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-section .video-container {
    max-width: min(900px, 100%);
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
}

.video-section .video-container:hover {
    box-shadow: 0 8px 25px rgba(107, 76, 155, 0.3);
}

.video-section .video-container video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 0;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: clamp(15px, 3vw, 30px);
    right: clamp(15px, 3vw, 30px);
    width: 50px;
    height: 50px;
    min-width: 44px;
    min-height: 44px;
    background: linear-gradient(135deg, #87CEEB 0%, #4FC3F7 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(41, 182, 246, 0.6);
}

/* ============================================
   RESPONSIVE: 320px (Extra Small Phones)
   ============================================ */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    header .container {
        gap: 6px;
    }

    .social-icons {
        margin-top: 5px;
    }

    .logo-section {
        margin: 6px 0;
    }

    nav ul li a {
        padding: 10px 12px;
        font-size: 11px;
    }

    .about-section,
    .stream-outline-section,
    .analysis-section,
    .appendix-section {
        padding: 15px 8px;
        margin: 12px 0;
        border-radius: 12px;
    }

    .content-center {
        padding: 10px;
    }

    .promo-materials {
        padding: 15px;
        gap: 15px;
    }

    main {
        padding: 15px 8px;
    }
}

/* ============================================
   RESPONSIVE: up to 480px (Small Phones)
   ============================================ */
@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        position: relative;
    }

    .social-icons {
        order: 1;
        margin-top: 10px;
    }

    .logo-section {
        order: 2;
        position: relative;
        left: 0;
        transform: none;
        margin: 8px 0;
    }

    /* Hamburger visible on small phones */
    .hamburger {
        display: flex;
        flex-direction: column;
        order: 3;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    nav {
        order: 4;
        width: 100%;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.open {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav ul li a {
        padding: 12px 16px;
        font-size: 12px;
        min-height: 44px;
        justify-content: flex-start;
    }

    .about-section,
    .stream-outline-section,
    .analysis-section,
    .appendix-section {
        padding: 20px 10px;
        margin: 15px 0;
    }

    .content-center {
        padding: 12px;
    }

    .about-text,
    .promotional-content {
        padding: 15px;
        line-height: 1.7;
    }

    .promotional-content p {
        margin-bottom: 10px;
    }

    .promotional-content ul,
    .promotional-content ol {
        margin-left: 15px;
        margin-bottom: 12px;
        padding-left: 8px;
    }

    .promotional-content li {
        margin-bottom: 8px;
        padding-left: 3px;
    }

    .promotional-content strong {
        display: block;
        margin-top: 10px;
    }

    .promo-materials {
        padding: 15px;
        gap: 15px;
    }

    .promo-card {
        flex: 1 1 100%;
    }

    main {
        padding: 20px 10px;
    }

    /* Hide characters on small screens */
    .character-left,
    .character1,
    .character-right,
    .character3 {
        display: none;
    }

    .background-characters::before,
    .background-characters::after {
        display: none;
    }

    /* Dropdown goes full width on mobile */
    li.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border: none;
        background: rgba(255, 255, 255, 0.15);
        padding: 0;
        visibility: visible;
        opacity: 1;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    li.dropdown:hover .dropdown-menu,
    li.dropdown.open .dropdown-menu {
        max-height: 200px;
    }

    li.dropdown .dropdown-menu::before {
        display: none;
    }

    li.dropdown .dropdown-menu li a {
        padding: 10px 24px;
        font-size: 11px;
        color: white;
        margin: 0;
        border-radius: 0;
    }
}

/* ============================================
   RESPONSIVE: 481px - 768px (Large Phones / Small Tablets)
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .social-icons {
        order: 1;
        margin-top: 10px;
    }

    .logo-section {
        order: 2;
        position: relative;
        left: 0;
        transform: none;
        margin: 10px 0;
    }

    nav {
        order: 3;
        width: 100%;
        margin: 10px auto 0;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li a {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 44px;
        white-space: nowrap;
    }

    .about-section,
    .stream-outline-section,
    .analysis-section,
    .appendix-section {
        padding: 30px 15px;
        margin: 20px 0;
    }

    .content-center {
        padding: 20px;
    }

    .about-text,
    .promotional-content {
        padding: 20px;
    }

    .promo-materials {
        padding: 25px;
        gap: 25px;
    }

    main {
        padding: 25px 15px;
    }

    /* Hide characters */
    .character-left,
    .character1,
    .character-right,
    .character3 {
        display: none;
    }

    .background-characters::before,
    .background-characters::after {
        display: none;
    }
}

/* ============================================
   RESPONSIVE: 769px - 1024px (Tablets)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    header .container {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        justify-content: space-between;
    }

    .social-icons {
        order: 1;
        margin-top: 0;
        flex: 0 0 auto;
    }

    .logo-section {
        order: 2;
        position: relative;
        left: 0;
        transform: none;
        margin: 0;
        flex: 0 0 auto;
    }

    nav {
        order: 3;
        flex: 1 1 auto;
        min-width: 0;
    }

    nav ul {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 2px;
    }

    nav ul li a {
        padding: 8px 8px;
        font-size: 10px;
        min-height: 44px;
        white-space: nowrap;
    }

    .container {
        padding: 0 clamp(20px, 4vw, 40px);
    }

    main {
        padding: 30px 15px;
    }

    .about-text,
    .promotional-content {
        padding: 22px 28px;
    }

    .about-section,
    .stream-outline-section,
    .analysis-section,
    .appendix-section {
        padding: 30px 25px;
        margin: 25px 0;
    }

    .content-center {
        padding: 25px;
    }

    /* Hide characters on tablets */
    .character-left,
    .character1,
    .character-right,
    .character3 {
        display: none !important;
    }

    .background-characters::before,
    .background-characters::after {
        display: none;
    }
}

/* ============================================
   RESPONSIVE: 1025px - 1280px (Small Desktops / Laptops)
   ============================================ */
@media (min-width: 1025px) and (max-width: 1280px) {
    header .container {
        flex-wrap: nowrap;
        gap: 12px;
        justify-content: space-between;
        align-items: center;
    }

    .social-icons {
        gap: 5px;
        margin-top: 0;
        flex: 0 0 auto;
    }

    .logo-section {
        position: relative;
        left: 0;
        transform: none;
        flex: 0 0 auto;
    }

    nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    nav ul {
        gap: 2px;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    nav ul li a {
        padding: 8px 10px;
        font-size: 11px;
        min-height: 44px;
        white-space: nowrap;
    }

    .container {
        max-width: 1100px;
        padding: 0 40px;
    }

    /* Hide characters on small desktops to prevent overflow */
    .character-left,
    .character1,
    .character-right,
    .character3 {
        display: none !important;
    }
}

/* ============================================
   RESPONSIVE: 1281px+ (Large Desktops)
   ============================================ */
@media (min-width: 1281px) {
    .container {
        max-width: 1200px;
        padding: 0 60px;
    }

    header .container {
        flex-wrap: nowrap;
        gap: 15px;
        justify-content: space-between;
        align-items: center;
    }

    .social-icons {
        margin-top: 0;
        flex: 0 0 auto;
    }

    .logo-section {
        position: relative;
        left: 0;
        transform: none;
        flex: 0 0 auto;
    }

    nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    nav ul {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    /* Characters visible only on large screens where there's room */
    .character-left {
        left: -180px !important;
        top: 160px !important;
    }

    .character1 {
        left: -180px !important;
        top: 630px !important;
    }

    .character-right {
        right: -180px !important;
        top: 160px !important;
    }

    .character2 {
        right: -180px !important;
        top: 580px !important;
    }

    .character3 {
        right: -180px !important;
        top: 930px !important;
    }

    .promo-card {
        max-width: 480px;
    }
}

/* ============================================
   RESPONSIVE: 1441px+ (Extra Large Desktops)
   ============================================ */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
        padding: 0 150px;
    }

    .character-left {
        left: -100px !important;
    }

    .character1 {
        left: -100px !important;
        top: 630px !important;
    }

    .character-right {
        right: -100px !important;
    }

    .character3 {
        right: -100px !important;
    }

    .character-left img,
    .character1 img,
    .character-right img,
    .character3 img {
        width: 240px !important;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION - MOBILE
   ============================================ */
@media (orientation: landscape) and (max-height: 500px) {
    body {
        overflow-x: hidden;
    }

    header {
        padding: 4px 0;
    }

    header .container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        align-items: center;
        justify-content: space-between;
    }

    .social-icons {
        order: 1;
        margin-top: 0;
        gap: 3px;
        flex: 0 0 auto;
    }

    .social-icons .social {
        min-width: 32px;
        min-height: 32px;
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .logo-section {
        order: 2;
        position: relative;
        left: 0;
        transform: none;
        margin: 0;
        flex: 0 0 auto;
    }

    .logo img {
        max-height: 40px;
        width: auto;
    }

    .lucky-text {
        font-size: 14px;
    }

    .lucky-number {
        font-size: 26px;
    }

    nav {
        order: 3;
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav ul {
        gap: 1px;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    nav ul li a {
        padding: 4px 6px;
        font-size: 9px;
        min-height: 32px;
        white-space: nowrap;
    }

    .hamburger {
        display: none !important;
    }

    main {
        padding: 10px 10px;
    }

    .about-section,
    .stream-outline-section,
    .analysis-section,
    .appendix-section {
        padding: 15px 10px;
        margin: 10px 0;
    }

    .content-center {
        padding: 10px;
    }

    .about-text,
    .promotional-content {
        font-size: 12px;
        padding: 12px;
        line-height: 1.5;
    }

    .video-section {
        padding: 10px 0;
        margin: 10px 0;
    }

    .video-section .video-container {
        max-height: 50vh;
    }

    .video-section .video-container video {
        max-height: 50vh;
    }

    .promo-materials {
        gap: 15px;
        padding: 15px;
    }

    /* Hide characters in landscape mobile */
    .character-left,
    .character1,
    .character-right,
    .character3 {
        display: none !important;
    }

    .background-characters::before,
    .background-characters::after {
        display: none;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
        font-size: 14px;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION - TABLET
   ============================================ */
@media (orientation: landscape) and (min-height: 501px) and (max-height: 800px) and (min-width: 768px) {
    header .container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
    }

    .social-icons {
        order: 1;
        margin-top: 0;
        flex: 0 0 auto;
    }

    .logo-section {
        order: 2;
        position: relative;
        left: 0;
        transform: none;
        margin: 0;
        flex: 0 0 auto;
    }

    nav {
        order: 3;
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    nav ul {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    nav ul li a {
        padding: 8px 10px;
        font-size: 10px;
        min-height: 44px;
        white-space: nowrap;
    }

    .video-section .video-container {
        max-height: 60vh;
    }

    .video-section .video-container video {
        max-height: 60vh;
    }

    /* Hide characters on tablet landscape */
    .character-left,
    .character1,
    .character-right,
    .character3 {
        display: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .back-to-top,
    .character-left,
    .character1,
    .character-right,
    .character3,
    .social-icons {
        display: none !important;
    }

    .about-section,
    .stream-outline-section,
    .analysis-section,
    .appendix-section {
        page-break-inside: avoid;
        box-shadow: none;
    }

    body {
        background: white;
    }
}



/*hover nav*/
li.dropdown {
  position: relative;
}

/* Dropdown Menu Container */
li.dropdown .dropdown-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  background: #fff;
  list-style: none;
  min-width: 160px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  z-index: 999;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Show on hover */
li.dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown Items */
li.dropdown .dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  border-radius: 6px;
  margin: 2px 6px;
}

/* Hover on each item */
li.dropdown .dropdown-menu li a:hover {
  background: #f0e6ff;
  color: #7b4fa6;
  padding-left: 26px;
}

/* Divider between items (optional) */
li.dropdown .dropdown-menu li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Small triangle pointer on top of dropdown */
li.dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  left: auto;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Arrow rotation */
.arrow {
  display: inline-block;
  font-size: 11px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

li.dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* ============================================
   MOBILE NAV FIX — below 768px
   ============================================ */
@media (max-width: 767px) {
    nav {
        width: 100%;
        position: relative;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    nav ul li a {
        padding: 8px 9px;
        font-size: 10px;
        min-height: 44px;
        white-space: nowrap;
    }

    /* Blue on tap for touch devices */
    nav ul li a:active {
        background: #B3E5FF;
        color: #333;
    }

    /* Dropdown inline on mobile — push content down, not float */
    li.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border: none;
        background: rgba(255, 255, 255, 0.15);
        padding: 0;
        visibility: visible;
        opacity: 1;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        min-width: 0;
        width: 100%;
    }

    li.dropdown:hover .dropdown-menu,
    li.dropdown.open .dropdown-menu {
        max-height: 200px;
    }

    li.dropdown .dropdown-menu::before {
        display: none;
    }

    li.dropdown .dropdown-menu li a {
        padding: 10px 24px;
        font-size: 11px;
        color: white;
        margin: 0;
        border-radius: 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Arrow rotates when dropdown is open */
    li.dropdown.open .arrow {
        transform: rotate(180deg);
    }
}

/* Override for <= 480px: hamburger menu overrides the 767px rules */
@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    nav ul li a {
        padding: 12px 16px;
        font-size: 12px;
        justify-content: flex-start;
    }

    li.dropdown .dropdown-menu li a {
        padding: 12px 32px;
        font-size: 12px;
        min-height: 44px;
    }
}

/* Mobile landscape — keep nav compact, override hamburger menu */
@media (max-width: 767px) and (orientation: landscape) {
    .hamburger {
        display: none !important;
    }

    nav {
        max-height: none !important;
        overflow: visible;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
    }

    nav ul li a {
        padding: 6px 8px;
        min-height: 36px;
        font-size: 9px;
        justify-content: center;
    }

    /* In landscape, dropdown floats instead of inline push */
    li.dropdown .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
        width: auto;
        min-width: 140px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    li.dropdown .dropdown-menu li a {
        color: #444;
        padding: 10px 16px;
        font-size: 10px;
    }
}

/* ============================================
   BLUE HOVER — all screen sizes
   ============================================ */

/* Tablet hover — same reset-then-highlight pattern */
@media (min-width: 768px) and (max-width: 1023px) {
    nav ul:hover li a {
        background: #9B6B9B;
        color: white;
    }

    nav ul:hover li a:hover {
        background: #B3E5FF;
        color: #333;
    }
}

/* Touch devices: :active mimics hover */
@media (hover: none) {
    nav ul li a:active {
        background: #B3E5FF;
        color: #333;
    }
}