@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap');

/* Self-hosted fallback for Tangerine (preferred if files exist in assets/fonts) */
@font-face {
    font-family: 'Tangerine';
    src: local('Tangerine Regular'), local('Tangerine-Regular'),
         url('assets/fonts/Tangerine-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tangerine';
    src: local('Tangerine Bold'), local('Tangerine-Bold'),
         url('assets/fonts/Tangerine-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    zoom: 0.9; /* Default zoom level - approximately 2 scroll clicks out */
    /* Violin-to-copper gradient with subtle wood grain + soft vignette */
        background-image:
        /* wood grain lines (CSS vars allow randomization via JS) */
                        repeating-linear-gradient(var(--grain-angle, 12deg),
                            rgba(255, 255, 255, var(--grain-light-alpha, 0.030)) 0px,
                            rgba(255, 255, 255, var(--grain-light-alpha, 0.030)) var(--grain-light-width, 3px),
                            rgba(0, 0, 0, var(--grain-dark-alpha, 0.040)) var(--grain-light-width, 3px),
                            rgba(0, 0, 0, var(--grain-dark-alpha, 0.040)) calc(var(--grain-light-width, 3px) + var(--grain-dark-width, 3px))
                        ),
        /* gentle vignette from top-left */
        radial-gradient(1200px 800px at 0% 0%, rgba(255,255,255,0.12), rgba(255,255,255,0) 60%),
        /* base color gradient (violin varnish -> copper instrument) */
        linear-gradient(135deg, #7a2d17 0%, #9a3b1a 22%, #b45722 48%, #c9782a 72%, #d39e5a 100%);
    background-blend-mode: overlay, soft-light, normal;
    background-attachment: fixed, fixed, fixed;
    background-position: var(--grain-pos, 0 0), 0 0, 0 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    opacity: 1 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Full Width Banner */
.full-width-banner {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    height: 300px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Centered text overlay on the banner */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    z-index: 10;
}

/* subtle darkening behind text for readability on all images */
.banner-overlay .banner-overlay-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.35);
    padding: clamp(16px, 3vw, 32px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.banner-title {
    font-family: 'Tangerine', 'Times New Roman', Times, serif;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: clamp(10px, 2vw, 18px);
    text-shadow: 0 4px 12px rgba(0,0,0,0.7), 0 2px 4px rgba(0,0,0,0.5);
    font-size: clamp(36px, 8vw, 84px);
}

.banner-text {
    color: #ffffff;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.6);
    font-size: clamp(14px, 2.2vw, 20px);
}

/* Header Styles */
.header {
    padding: 20px 0 20px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* smaller gap so the symbol sits a bit closer to the title */
    margin-bottom: 20px;
}

.music-note {
    font-size: 3rem;
    color: #fff;
    animation: bounce 2s infinite;
    font-family: 'Noto Music', 'Segoe UI Symbol', 'Apple Symbols', 'Noto Emoji', sans-serif;
    /* Prevent title shifting when symbol width varies */
    display: inline-block;
    width: 1.6em;   /* reserves consistent space for all symbols (clefs included) */
    text-align: center;
    line-height: 1;
    transform: translateX(-2px); /* nudge a bit left as requested */
}

.brand-name {
    font-family: 'Tangerine', 'Times New Roman', Times, serif;
    font-size: 6rem;                 /* script faces read better a bit larger */
    font-weight: 700;                /* use bold cut of Tangerine for title presence */
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0;               /* neutral tracking for calligraphic forms */
    line-height: 0.9;                /* tighten vertical rhythm for swashes */
}

/* Main Navigation */
.main-nav {
    position: relative;
    margin-top: 10px;
    padding: 12px 0 4px;
}

.main-nav::before,
.main-nav::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 22%;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.main-nav::before { left: 4%; }
.main-nav::after { right: 4%; }

.nav-list {
    list-style: none;
    display: inline-flex;
    gap: 18px;
    align-items: center;
}

/* Dropdown menu styling */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    padding-top: 4px;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

/* Create invisible bridge between button and menu */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    display: block;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #5d4037;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover {
    background: rgba(141, 110, 99, 0.15);
    color: #3e2723;
}

.nav-link {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav-link.active {
    background: #8d6e63;
    border-color: #8d6e63;
    color: #fff;
    box-shadow: 0 4px 14px rgba(141, 110, 99, 0.45);
}

@media (max-width: 768px) {
    .main-nav::before, .main-nav::after { display: none; }
    .nav-list { gap: 14px; }
    .nav-link { font-size: 0.85rem; padding: 7px 12px; }
}

/* Highlights Grid (below menu) */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px auto 10px;
    max-width: 1000px;
    align-items: stretch;
}

.grid-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.image-card {
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Make Brein logo slightly transparent so background subtly shows through */
/* Brein logo card: let the page background show through */
.image-card--brein { 
    background: transparent; 
}

.image-card--brein img {
    opacity: 0.75;                 /* subtle transparency */
    mix-blend-mode: multiply;      /* blends with wood background */
    background: transparent;       /* override mobile rule adding bg on img */
}

/* Transparent Separator Banner */
.separator-banner {
    max-width: 1000px;
    margin: 28px auto 16px;
    padding: 28px 20px;
    text-align: center;
    border-radius: 16px;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.16));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    backdrop-filter: blur(4px);
}

.separator-title {
    font-size: 4rem;
    font-weight: 700;               /* heavier title */
    font-family: 'Tangerine', 'Times New Roman', Times, serif;
    line-height: 1.0;
    letter-spacing: 0;              /* scripts read best without extra tracking */
    color: #9a3b1a;                 /* richer copper */
    margin-bottom: 10px;
}

.separator-subtitle {
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(62, 39, 35, 0.9); /* deep brown for readability on light translucent bg */
}

.separator-subtitle em { font-style: italic; }

@media (max-width: 768px) {
    .separator-banner { padding: 22px 16px; }
    .separator-title { font-size: 1.6rem; }
    .separator-subtitle { font-size: 1rem; }
}

.text-card {
    padding: 28px;
    line-height: 1.55;
    /* subtle inner depth */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -10px 18px rgba(0,0,0,0.12);
}

.text-card h2 {
    font-size: 3rem;
    margin-bottom: 14px;
    font-weight: 700;
    font-family: 'Tangerine', 'Times New Roman', Times, serif;
    line-height: 1.0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.text-card p {
    color: #f2eae7;
    font-size: 1.02rem;
    margin-bottom: 10px;
}

.text-card--primary {
        /* Copper-warm panel with subtle grain overlay + diagonal highlight */
        background-image:
                /* soft diagonal gloss */
                linear-gradient(20deg,
                    rgba(255,255,255,0.18) 0%,
                    rgba(255,255,255,0.08) 18%,
                    rgba(255,255,255,0) 48%
                ),
                /* grain */
                repeating-linear-gradient(var(--grain-angle, 12deg),
                    rgba(255,255,255,0.03) 0 2px,
                    rgba(0,0,0,0.04) 2px 4px
                ),
                /* base color */
                linear-gradient(135deg,
                    rgba(186, 90, 45, 0.92) 0%,
                    rgba(211, 158, 90, 0.92) 100%
                );
        border: 1px solid rgba(255,255,255,0.22);
}

.text-card--secondary {
        /* Deeper mahogany panel with grain + lighter diagonal gloss */
        background-image:
                /* soft diagonal gloss */
                linear-gradient(20deg,
                    rgba(255,255,255,0.14) 0%,
                    rgba(255,255,255,0.06) 18%,
                    rgba(255,255,255,0) 48%
                ),
                /* grain */
                repeating-linear-gradient(var(--grain-angle, 12deg),
                    rgba(255,255,255,0.02) 0 2px,
                    rgba(0,0,0,0.05) 2px 4px
                ),
                /* base color */
                linear-gradient(135deg,
                    rgba(90, 34, 20, 0.94) 0%,
                    rgba(138, 69, 38, 0.94) 100%
                );
        border: 1px solid rgba(255,255,255,0.18);
}

@media (max-width: 980px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 10px;
    }

    .image-card img {
        object-fit: contain;
        max-height: 360px;
        background: rgba(255,255,255,0.1);
    }

    .text-card h2 { font-size: 1.6rem; }
    .text-card p { font-size: 1rem; }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.construction-section {
    background: linear-gradient(145deg, #fff8e1 0%, #fffef7 100%);
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(45, 27, 78, 0.2);
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 100%;
    border: 2px solid #d7ccc8;
}

.construction-icon {
    margin-bottom: 30px;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear {
    font-size: 4rem;
    color: #5d4037;
    position: absolute;
}

.gear-1 {
    animation: rotate-clockwise 4s linear infinite;
    left: -20px;
}

.gear-2 {
    animation: rotate-counter-clockwise 4s linear infinite;
    right: -20px;
    font-size: 3rem;
}

.construction-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #3e2723;
    margin-bottom: 20px;
}

.construction-description {
    font-size: 1.2rem;
    color: #5d4037;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 40px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #8d6e63, #5d4037);
    border-radius: 4px;
    animation: progress 3s ease-out forwards;
}

/* Tagline Section */
.tagline {
    margin-bottom: 30px;
}

.tagline p {
    font-size: 1.1rem;
    color: #5d4037;
    font-style: italic;
    font-weight: 500;
}

/* Modus Practica Info Section */
.modus-practica-info {
    background: linear-gradient(145deg, #f3e5f5 0%, #e8f5e8 100%);
    padding: 35px;
    border-radius: 20px;
    margin: 30px 0;
    border: 3px solid #8d6e63;
    text-align: left;
    box-shadow: 0 10px 25px rgba(93, 64, 55, 0.15);
}

.modus-practica-info h3 {
    color: #3e2723;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.modus-practica-info p {
    color: #4e342e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    font-style: italic;
}

.key-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-left: 4px solid #8d6e63;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

.benefit-item strong {
    color: #5d4037;
    font-size: 1rem;
    font-weight: 600;
}

.benefit-item span {
    color: #6d4c41;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Video Container - Responsive YouTube embed */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Image Gallery - Placeholder for future images */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Coming Soon Section */
.coming-soon {
    text-align: left;
    background: linear-gradient(145deg, #fff3e0 0%, #fce4ec 100%);
    padding: 30px;
    border-radius: 18px;
    margin-top: 30px;
    border-left: 5px solid #8d6e63;
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.1);
}

.coming-soon h3 {
    color: #3e2723;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4e342e;
    font-weight: 500;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.features li:hover {
    transform: translateX(5px);
}

.features li strong {
    color: #5d4037;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
    margin-top: 10px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #fff;
}

/* OIG4 Split Section */
.oig4-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 30px auto 40px;
    align-items: stretch;
}

.oig4-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.oig4-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oig4-text {
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.oig4-text h2 {
    font-size: 4rem;
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Tangerine', 'Times New Roman', Times, serif;
    line-height: 1.0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.oig4-text p {
    color: #f2eae7;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 0 12px;
}

.oig4-text p:last-child { margin-bottom: 0; }

@media (max-width: 980px) {
    .oig4-section { grid-template-columns: 1fr; }
    .oig4-image img { max-height: 420px; }
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-note {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.note-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.note-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.note-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.note-4 {
    top: 40%;
    right: 30%;
    animation-delay: 6s;
}

.note-5 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes rotate-clockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-counter-clockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes progress {
    from {
        width: 0%;
    }
    to {
        width: 75%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* ------------------------------------------------------------------ */
/* Icon Control Bar                                                    */
/* ------------------------------------------------------------------ */
.icon-control-bar {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    padding: 8px 14px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    z-index: 1001;
    border: 1px solid rgba(255,255,255,0.6);
    user-select: none;
}
.icon-control-bar .icon-group {
    display: flex;
    flex-direction: row !important;
    gap: 8px;
    align-items: center;
    padding-right: 10px;
    margin-right: 8px;
    border-right: 1px solid rgba(0,0,0,0.15);
}
.icon-control-bar .icon-group:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}
.control-icon {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.18);
    font-size: 24px;
    padding: 8px;
    line-height: 1;
    cursor: pointer;
    border-radius: 10px;
    position: relative;
    color: #5d4037;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.control-icon[disabled] { opacity: 0.45; cursor: not-allowed; }
.control-icon:hover:not([disabled]) { background: rgba(0,0,0,0.08); }
.control-icon:active:not([disabled]) { transform: translateY(1px); }
.control-icon.active { background: #9a3b1a; color: #fff; }
.control-icon::after {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.control-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -6px);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 1;
    z-index: 1000;
}
.tempo-popup {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.2);
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    width: 200px;
    z-index: 1001;
}
.tempo-popup.visible { display: block; }
.tempo-popup[aria-hidden="true"] { display: none !important; }
.tempo-popup input[type=range] { width: 100%; }
.tempo-value { text-align: center; font-weight: 600; font-size: 13px; color: #9a3b1a; margin-top: 6px; }
@media (max-width: 700px) {
    .icon-control-bar { gap: 10px; padding: 6px 10px; }
    .control-icon { font-size: 22px; padding: 7px; }
    .icon-control-bar .icon-group { gap: 6px; padding-right: 6px; margin-right: 4px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
    }
    
    .full-width-banner {
        height: 200px;
        margin-bottom: 30px;
    }
    
    .construction-section {
        padding: 40px 30px;
        margin: 0 10px;
    }
    
    .construction-title {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .modus-practica-info {
        padding: 25px 20px;
    }
    
    .modus-practica-info h3 {
        font-size: 1.2rem;
    }
    
    .modus-practica-info p {
        font-size: 1rem;
    }
    
    .benefit-item {
        padding: 12px;
    }
    
    .gear-1, .gear-2 {
        position: relative;
        left: auto;
        right: auto;
    }
    
    .gear-2 {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2rem;
    }
    
    .full-width-banner {
        height: 180px;
        margin-bottom: 20px;
    }
    
    .construction-section {
        padding: 30px 20px;
    }
    
    .construction-title {
        font-size: 1.8rem;
    }
    
    .construction-description {
        font-size: 1rem;
    }
}

/* ============================================================================
   SELECTION MODE STYLES
   ============================================================================ */

/* Selection box overlay during drag */
.selection-box {
    position: fixed;
    border: 2px solid rgba(0, 123, 255, 0.8);
    background-color: rgba(0, 123, 255, 0.2);
    pointer-events: none;
    z-index: 9999;
}

/* Selected notes styling */
.selected-note {
    fill: rgba(0, 123, 255, 0.4) !important;
    stroke: rgba(0, 123, 255, 0.8) !important;
    stroke-width: 2px !important;
}

/* Cursor style when in selection mode */
.selection-mode {
    cursor: crosshair !important;
}

.selection-mode * {
    cursor: crosshair !important;
}

/* ============================================================================
   COOKIE/PRIVACY BANNER
   ============================================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(25, 35, 45, 0.98), rgba(35, 45, 60, 0.98));
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    animation: slideUp 0.4s ease-out;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #d4af37;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-text a {
    color: #d4af37;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #f0c674;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #d4af37, #c9a02c);
    color: #1a1a1a;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #f0c674, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* What's New Overlay Styles */
.whats-new-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.whats-new-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.whats-new-card {
    background: linear-gradient(135deg, #fffef9 0%, #fef9f0 100%);
    width: 90%;
    max-width: 600px;
    height: auto; /* allow min/max-height to govern size */
    min-height: 60vh;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
    border: 2px solid #d39e5a;
    display: flex;
    flex-direction: column;
}

.whats-new-header {
    background: linear-gradient(135deg, #b45722 0%, #c9782a 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.whats-new-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: white;
}

.whats-new-content {
    padding: 25px 30px;
    overflow-y: scroll;
    flex: 1;
    height: 0;
}

.version-badge {
    display: inline-block;
    background: #2ecc71;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-icon {
    font-size: 1.8rem;
    background: rgba(211, 158, 90, 0.15);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-text h3 {
    margin: 0 0 6px;
    color: #7a2d17;
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-text p {
    margin: 0;
    color: #5d4037;
    font-size: 0.95rem;
    line-height: 1.5;
}

.release-notes-link {
    display: block;
    text-align: center;
    color: #b45722;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.release-notes-link:hover {
    color: #8a4319;
    text-decoration: underline;
}

.whats-new-btn {
    display: block;
    width: calc(100% - 60px);
    margin: 0 30px 25px;
    padding: 14px;
    background: linear-gradient(135deg, #b45722 0%, #c9782a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.whats-new-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180, 87, 34, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile responsive styles for What's New */
@media (max-width: 768px) {
    .whats-new-card {
        width: 95%;
        max-width: 380px;
        max-height: 75vh;
    }
    
    .whats-new-header {
        padding: 18px 25px;
    }
    
    .whats-new-header h2 {
        font-size: 1.3rem;
    }
    
    .whats-new-content {
        padding: 20px 25px;
    }
    
    .feature-item {
        margin-bottom: 18px;
    }
    
    .feature-text h3 {
        font-size: 1rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
    }
    
    .whats-new-btn {
        margin: 0 25px 20px;
        font-size: 0.95rem;
        padding: 12px;
    }
}

@media (max-height: 600px) {
    .whats-new-card {
        max-height: 85vh;
    }
}

/* About Modal Styles */
.about-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.about-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(106, 90, 205, 0.3);
    position: relative;
}

.about-modal-close {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.about-modal-close:hover {
    color: #6a5acd;
}

.about-modal-header {
    background: linear-gradient(90deg, #6a5acd, #483d8b);
    padding: 30px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.about-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-version {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 0 0;
    font-size: 1.1em;
    font-weight: 500;
}

.about-modal-body {
    padding: 30px;
    color: #e0e0e0;
    line-height: 1.8;
}

.about-modal-body section {
    margin-bottom: 25px;
}

.about-modal-body h3 {
    color: #6a5acd;
    font-size: 1.5em;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(106, 90, 205, 0.3);
    padding-bottom: 8px;
}

.about-modal-body h4 {
    color: #8a7ac7;
    font-size: 1.2em;
    margin-bottom: 10px;
    margin-top: 15px;
}

.about-legal {
    background: rgba(106, 90, 205, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6a5acd;
}

.about-prohibited ul,
.about-permitted ul {
    list-style: none;
    padding-left: 0;
}

.about-prohibited li {
    padding: 5px 0;
    color: #ff6b6b;
}

.about-permitted li {
    padding: 5px 0;
    color: #51cf66;
}

.about-modal-footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(106, 90, 205, 0.3);
    color: #8a7ac7;
    font-style: italic;
}

.about-modal-body a {
    color: #6a5acd;
    text-decoration: none;
    transition: color 0.3s;
}

.about-modal-body a:hover {
    color: #8a7ac7;
    text-decoration: underline;
}

/* Scrollbar styling for modal */
.about-modal-content::-webkit-scrollbar {
    width: 10px;
}

.about-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.about-modal-content::-webkit-scrollbar-thumb {
    background: #6a5acd;
    border-radius: 10px;
}

.about-modal-content::-webkit-scrollbar-thumb:hover {
    background: #8a7ac7;
}

@media (max-width: 768px) {
    .about-modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .about-modal-header h2 {
        font-size: 1.5em;
    }
    
    .about-modal-body {
        padding: 20px;
    }
}