body, html {
	margin: 0;
	padding: 0;
	overscroll-behavior: none;
	overflow-x: hidden;
	overflow-y: auto;
	height: 100%;
	scroll-behavior: smooth;
	background: #000000; 
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.start-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.start-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.start-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    opacity: 0;
    animation: logoFadeIn 1s ease forwards;
}

.start-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 0;
    animation: titleSlideUp 1s ease 0.3s forwards;
}

.start-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #9ca3af;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0;
    animation: subtitleSlideUp 1s ease 0.6s forwards;
}

.start-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: buttonSlideUp 1s ease 0.9s forwards;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.start-button:hover,
.start-button.touch-active {
    background: transparent;
    border: 1px solid #2563eb;
    color: #2563eb;
    transform: scale(0.98);
}

.start-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #2563eb, #60a5fa);
    z-index: -1;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.start-button:hover::after,
.start-button.touch-active::after {
    width: 100%;
}

.start-button:hover,
.start-button.touch-active {
    color: #ffffff;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

.counter {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

.loading-text {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #9ca3af;
    margin-bottom: 1rem;
    opacity: 0.8;
}

body.loading-active {
    overflow: hidden;
}

body.loading-active #overlay-root {
    opacity: 0;
    pointer-events: none;
}

body.particle-assembly {
    overflow: hidden;
}

body.particle-assembly header,
body.particle-assembly .nav-dots,
body.particle-assembly .scroll-indicator,
body.particle-assembly #back-btn-container,
body.particle-assembly .content-section {
    opacity: 0;
    pointer-events: none;
}

body.particle-assembly #overlay-root {
    opacity: 0;
    pointer-events: none;
}

body.particle-assembly canvas {
    opacity: 1;
    pointer-events: auto;
}

body.particles-ready {
    overflow: auto;
}

body.particles-ready header,
body.particles-ready .nav-dots,
body.particles-ready #back-btn-container {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 1s ease;
}

body.particles-ready .scroll-indicator:not(.animate-in):not(.hidden) {
    opacity: 0;
    pointer-events: auto;
}

body.particles-ready #overlay-root {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 1s ease;
}

body.particles-ready .content-section.active {
    opacity: 1;
    pointer-events: auto;
}

body.particles-ready .content-section:not(.active) #play-btn,
body.particles-ready .content-section:not(.active) #stop-btn {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

body.particles-ready header {
    transition-delay: 0.2s;
}

body.particles-ready .nav-dots {
    transition-delay: 0.4s;
}

body.particles-ready .scroll-indicator.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

body.particles-ready .scroll-indicator.animate-in {
    opacity: 1 !important;
    transition-delay: 0s;
}

body.particles-ready #back-btn-container {
    transition-delay: 0.8s;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes titleSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonSlideUp {
    from {
        opacity: 0;
        transform: translateY(70px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .start-content {
        padding: 1rem;
        max-width: 90vw;
    }

    .start-logo {
        width: 60px;
        height: 60px;
    }

    .start-button {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .counter {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }

    .loading-text {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }
}

@media (max-width: 670px) {

    .flex.flex-1.justify-center.max-sm\:hidden {
        display: none !important;
    }

    #sound-toggle-btn {
        display: none !important;
    }

    #hamburger-menu {
        display: block !important;
        position: relative !important;
        z-index: 9999 !important;
        margin-left: auto; 
    }

    .flex.items-baseline.gap-7.max-sm\:justify-end.max-sm\:flex-1 {
        justify-content: flex-end !important;
        flex: 1 !important;
    }
}

@media (min-width: 671px) {

    .flex.flex-1.justify-center.max-sm\:hidden {
        display: flex !important;
    }

    #sound-toggle-btn {
        display: block !important;
    }

    #hamburger-menu {
        display: none !important;
    }
}

#hamburger-toggle:checked ~ label .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #60a5fa;
}

#hamburger-toggle:checked ~ label .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#hamburger-toggle:checked ~ label .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #60a5fa;
}

#hamburger-toggle:checked ~ label.hamburger-icon {
    z-index: 10002 !important;
    position: relative !important;
}

#hamburger-toggle:checked ~ .hamburger-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

#hamburger-toggle:checked ~ .hamburger-overlay .hamburger-menu-content {
    transform: translateY(0) !important;
}

#hamburger-toggle:checked ~ .hamburger-overlay .hamburger-nav-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#hamburger-toggle:checked ~ .hamburger-overlay .hamburger-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

#hamburger-toggle:checked ~ .hamburger-overlay .hamburger-nav-link:nth-child(2) {
    transition-delay: 0.15s;
}

#hamburger-toggle:checked ~ .hamburger-overlay .hamburger-nav-link:nth-child(3) {
    transition-delay: 0.2s;
}

#hamburger-toggle:checked ~ .hamburger-overlay .hamburger-nav-link:nth-child(4) {
    transition-delay: 0.25s;
}

#hamburger-toggle:checked ~ .hamburger-overlay .hamburger-nav-link:nth-child(5) {
    transition-delay: 0.3s;
}

#hamburger-toggle:checked ~ .hamburger-overlay .hamburger-divider {
    opacity: 1 !important;
    transform: scaleX(1) !important;
    transition-delay: 0.35s;
}

#hamburger-toggle:checked ~ .hamburger-overlay .mobile-sound-toggle {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.4s;
}

.hamburger-nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.hamburger-nav-link:active {
    transform: translateY(0) !important;
}

#mobile-sound-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
}

.hamburger-icon:hover,
.hamburger-icon.touch-active {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.hamburger-icon.touch-active .hamburger-line {
    background: #60a5fa !important;
}

@media (max-width: 670px) {
    .hamburger-menu-content {
        gap: 2rem;
    }
    
    .hamburger-nav-link {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

@media (max-width: 480px) {
    .hamburger-menu-content {
        gap: 1.5rem !important;
    }
    
    .hamburger-nav-link {
        font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    }
}

@media (max-height: 600px) {
    .hamburger-menu-content {
        gap: 1.2rem !important;
    }
    
    .hamburger-nav-link {
        font-size: clamp(1rem, 4vw, 1.5rem) !important;
    }
    
    .hamburger-divider {
        margin: 0.5rem 0 !important;
    }
}

@media (max-height: 500px) {
    .hamburger-overlay {
        padding: 1rem !important;
    }

    .hamburger-menu-content {
        gap: 1rem !important;
    }

    .hamburger-nav-link {
        font-size: clamp(0.9rem, 4vw, 1.3rem) !important;
    }
}

@media (max-height: 450px) {
    .hamburger-overlay {
        padding: 0.5rem !important;
    }

    .hamburger-menu-content {
        gap: 0.6rem !important;
    }

    .hamburger-nav-link {
        font-size: clamp(0.7rem, 4vw, 1rem) !important;
    }

    .hamburger-divider {
        margin: 0.25rem 0 !important;
        width: 50px !important;
    }

    .mobile-sound-toggle span {
        font-size: 0.85rem !important;
    }

    .mobile-sound-toggle img {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-height: 400px) {
    .hamburger-overlay {
        padding: 0.4rem !important;
    }

    .hamburger-menu-content {
        gap: 0.5rem !important;
    }

    .hamburger-nav-link {
        font-size: clamp(0.6rem, 4vw, 0.9rem) !important;
    }

    .hamburger-divider {
        margin: 0.2rem 0 !important;
        width: 45px !important;
    }

    .mobile-sound-toggle span {
        font-size: 0.8rem !important;
    }

    .mobile-sound-toggle img {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-height: 350px) {
    .hamburger-overlay {
        padding: 0.3rem !important;
    }

    .hamburger-menu-content {
        gap: 0.4rem !important;
    }

    .hamburger-nav-link {
        font-size: clamp(0.5rem, 4vw, 0.8rem) !important;
    }

    .hamburger-divider {
        margin: 0.15rem 0 !important;
        width: 40px !important;
    }

    .mobile-sound-toggle span {
        font-size: 0.75rem !important;
    }

    .mobile-sound-toggle img {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-height: 300px) {
    .hamburger-overlay {
        padding: 0.25rem !important;
    }

    .hamburger-menu-content {
        gap: 0.3rem !important;
    }

    .hamburger-nav-link {
        font-size: clamp(0.45rem, 4vw, 0.7rem) !important;
    }

    .hamburger-divider {
        margin: 0.1rem 0 !important;
        width: 35px !important;
    }

    .mobile-sound-toggle span {
        font-size: 0.7rem !important;
    }

    .mobile-sound-toggle img {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-height: 250px) {
    .hamburger-overlay {
        padding: 0.2rem !important;
    }

    .hamburger-menu-content {
        gap: 0.25rem !important;
    }

    .hamburger-nav-link {
        font-size: clamp(0.4rem, 4vw, 0.6rem) !important;
    }

    .hamburger-divider {
        margin: 0.08rem 0 !important;
        width: 30px !important;
    }

    .mobile-sound-toggle span {
        font-size: 0.65rem !important;
    }

    .mobile-sound-toggle img {
        width: 10px !important;
        height: 10px !important;
    }
}

@media (max-height: 200px) {
    .hamburger-overlay {
        padding: 0.15rem !important;
    }

    .hamburger-menu-content {
        gap: 0.2rem !important;
    }

    .hamburger-nav-link {
        font-size: clamp(0.35rem, 4vw, 0.5rem) !important;
    }

    .hamburger-divider {
        margin: 0.05rem 0 !important;
        width: 25px !important;
    }

    .mobile-sound-toggle span {
        font-size: 0.6rem !important;
    }

    .mobile-sound-toggle img {
        width: 8px !important;
        height: 8px !important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hamburger-menu-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90vw;
        gap: 1rem 2rem !important;
    }
    
    .hamburger-divider {
        width: 100%;
        height: 1px !important;
        margin: 0.5rem 0 !important;
    }
    
    .mobile-sound-toggle {
        width: 100%;
        justify-content: center !important;
    }
}

body:has(#hamburger-toggle:checked) {
    overflow: hidden;
}

.hamburger-menu-open {
    overflow: hidden !important;
}

@media (max-width: 390px) {
    .start-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .start-subtitle {
        font-size: clamp(0.8rem, 4vw, 1.1rem);
    }
}

@media (max-height: 430px) {
    .start-content {
        padding: 1rem;
        max-width: 95vw;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .start-logo {
        width: 60px;
        height: 60px;
    }

    .start-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 0.5rem;
    }

    .start-subtitle {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .start-button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-height: 330px) {
    .start-content {
        padding: 0.8rem;
    }

    .logo-container {
        margin-bottom: 0.8rem;
    }

    .start-logo {
        width: 50px;
        height: 50px;
    }

    .start-title {
        font-size: clamp(1.3rem, 5.5vw, 2rem);
        margin-bottom: 0.4rem;
        line-height: 1.1;
    }

    .start-subtitle {
        font-size: clamp(0.75rem, 3vw, 0.95rem);
        margin-bottom: 1.2rem;
        line-height: 1.3;
    }

    .start-button {
        padding: 6px 18px;
        font-size: 0.85rem;
    }
}

@media (max-height: 280px) {
    .start-content {
        padding: 0.6rem;
    }

    .logo-container {
        margin-bottom: 0.6rem;
    }

    .start-logo {
        width: 45px;
        height: 45px;
    }

    .start-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        margin-bottom: 0.3rem;
        line-height: 1.1;
    }

    .start-subtitle {
        font-size: clamp(0.7rem, 2.8vw, 0.9rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .start-button {
        padding: 5px 16px;
        font-size: 0.8rem;
    }
}

@media (max-height: 250px) {
    .start-content {
        padding: 0.5rem;
        max-width: 90vw;
    }

    .logo-container {
        margin-bottom: 0.5rem;
    }

    .start-logo {
        width: 40px;
        height: 40px;
    }

    .start-title {
        font-size: clamp(1.1rem, 4.5vw, 1.6rem);
        margin-bottom: 0.2rem;
        line-height: 1.0;
    }

    .start-subtitle {
        font-size: clamp(0.65rem, 2.5vw, 0.85rem);
        margin-bottom: 0.8rem;
        line-height: 1.1;
    }

    .start-button {
        padding: 4px 14px;
        font-size: 0.75rem;
    }
}

* {
	box-sizing: border-box;
}

body::before,
html::before,
body::after,
html::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #000000;
	z-index: -9999;
	pointer-events: none;
}

canvas,
script,
style,
link {
	background: #000000;
}

#overlay-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.loading-active header,
body.loading-active .nav-dots,
body.loading-active .scroll-indicator,
body.loading-active #back-btn-container,
body.loading-active .content-section {
    opacity: 0;
    pointer-events: none;
}

body.loading-active canvas {
    opacity: 0;
    pointer-events: none;
}

body:not(.loading-active) canvas {
    opacity: 1;
    transition: opacity 0.8s ease;
}

body.minecraft-world-active canvas {
    pointer-events: auto !important;
    z-index: 1001 !important;
}

body.minecraft-world-active #overlay-root,
body.minecraft-world-active #scroll-content {
    pointer-events: none !important;
}

.interactive-element {
    pointer-events: auto;
}

#overlay-root > * {
    pointer-events: none;
}

#overlay-root > * > * {
    pointer-events: none;
}

#overlay-root a,
#overlay-root button,
#overlay-root .nav-logo,
#overlay-root [onclick],
#overlay-root [role="button"],
#overlay-root .hiw-text,
#overlay-root .section-subtitle.interactive,
#overlay-root #hamburger-menu,
#overlay-root .hamburger-icon,
#overlay-root .hamburger-overlay,
#overlay-root .hamburger-nav-link,
#overlay-root .mobile-sound-toggle {
    pointer-events: auto !important;
}

.screen-max-width {
    margin-inline-start: auto;
    margin-inline-end: auto;
    position: relative;
    max-width: 1120px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-height {
    height: calc(100vh - 60px);
}

.btn {
    padding: 6px 16px;
    border-radius: 1.5rem;
    background: #2563eb;
    margin: 20px 0;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover,
.btn.touch-active {
    background: transparent;
    border: 1px solid #2563eb;
    color: #2563eb;
    transform: scale(0.98);
}

.hero-title {
    text-align: center;
    font-weight: 600;
    font-size: 1.875rem;
    color: #f3f4f6;
    opacity: 0;
    margin-bottom: 2.5rem;
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-title {
    opacity: 0; 
}

#cta {
    opacity: 0; 
}

#scroll-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: auto;
    z-index: 1000;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: -350px; 
    min-height: 0;
    flex-shrink: 0;

    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.hero-content.long-content {
    margin-top: 0;
    height: calc(100vh - 160px); 
    overflow-y: auto;
    padding-top: 20px; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    cursor: grab;
    user-select: none;
    -webkit-user-select: none; 
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-content.long-content::-webkit-scrollbar {
    display: none;
}

.hero-content.long-content.grabbing {
    cursor: grabbing;
}

@media (max-height: 700px) {
    .hero-content {
        margin-top: -250px;
    }
}

@media (max-height: 600px) {
    .hero-content {
        margin-top: -150px;
    }
}

@media (max-height: 500px) {
    .hero-content {
        margin-top: -50px;
    }

    .section-title {
        font-size: clamp(1.1rem, 6vw, 1.5rem) !important;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: clamp(0.75rem, 3vw, 0.9rem) !important;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .section-cta {
        position: fixed;
        right: 25%;
        bottom: 20px;
        transform: translateX(50%); 
        margin-top: 0;
        opacity: 1; 
        z-index: 1001;
    }

    .scroll-indicator {
        left: 75% !important;
        transform: translateX(-50%) !important;
        bottom: 20px !important;
        position: fixed !important;
    }
}

@media (max-height: 400px) {
    .section-title {
        font-size: clamp(0.9rem, 5vw, 1.2rem) !important; 
        margin-bottom: 0.5rem; 
    }

    .section-subtitle {
        font-size: clamp(0.65rem, 2.5vw, 0.8rem) !important; 
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .section-cta {
        position: fixed;
        right: 25%;
        bottom: 15px; 
        transform: translateX(50%); 
        margin-top: 0;
        opacity: 1;
        z-index: 1001;
    }

    .scroll-indicator {
        left: 75% !important; 
        transform: translateX(-50%) !important;
        bottom: 15px !important;
        position: fixed !important;
    }
}

.ripple-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: auto;
    cursor: crosshair;
}

.content-section[data-section="6"] .hero-content {
    position: relative;
    z-index: 2;
}

.content-section[data-section="6"] .btn {
    position: relative;
    z-index: 3;
}

#scroll-content.minecraft-active {
    pointer-events: none;
}

.nav-dots {
    pointer-events: auto !important;
}

.content-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section.active {
    opacity: 1;
    visibility: visible;
}

.section-title {
    font-size: clamp(1.94rem, 5.36vw, 2.68rem);
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    flex-shrink: 0;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.section-subtitle {
    font-size: clamp(0.98rem, 2.4vw, 1.2rem);
    color: #9ca3af;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(100px); 
    flex-shrink: 0;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.section-cta {
    opacity: 0;
    transform: translateY(20px);

    flex-shrink: 0;
    width: 100%;
}

.content-section.active .section-title {
    opacity: 1;
    transform: translateY(0);
}

.content-section.active .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.content-section.active .section-cta {
    opacity: 1;
    transform: translateY(0);
}

.content-section.exiting .section-title {
    opacity: 0;
    transform: translateY(-40px);
}

.content-section.exiting .section-heading {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px);
}

.content-section.exiting .section-subtitle {
    opacity: 0;
    transform: translateY(-25px);
}

.content-section.exiting .section-cta {
    opacity: 0;
    transform: translateY(-25px);
}


.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-indicator.animate-in {
    animation: fadeInUp 1s ease forwards;
}


.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 1.6px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    width: 4.8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2.4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.scroll-indicator .scroll-text {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes scroll-wheel {
    0% { top: 10px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
    100% { top: 10px; opacity: 1; }
}

#sound-toggle-btn {
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
}

#sound-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#sound-toggle-btn.touch-active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

#sound-toggle-icon {
    transition: opacity 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}


.credits-footer {
    position: fixed;
    bottom: clamp(30px, 6vh, 60px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
    pointer-events: auto;

    padding-bottom: env(safe-area-inset-bottom);
}

.credits-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: clamp(0.75rem, 2vw, 1.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
}

.cosmix-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1;
}

.copyright {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}


.nav-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1001;
    pointer-events: auto;
}

.nav-dot {
    width: 9.6px;
    height: 9.6px;
    border-radius: 50%;
    border: 1.6px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover,
.nav-dot.touch-active {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.nav-dot.active {
    background: #2563eb;
    border-color: #2563eb;
    transform: scale(1.2);
}

.nav-dot.active::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    animation: nav-ripple 2.5s ease-out;
}

@keyframes nav-ripple {
    from {
        opacity: 1;
        transform: scale(0);
    }
    to {
        opacity: 0;
        transform: scale(6);
    }
}

.nav-dot::after {
    content: attr(data-title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover::after,
.nav-dot.touch-active::after {
    opacity: 1;
}

#spacer-sections {
    position: relative;
    width: 100%;
    pointer-events: none;
}

.scroll-spacer {
    width: 100%;
    height: 100vh;
    position: relative;
}

.section-heading {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    font-size: clamp(1.44rem, 3.36vw, 1.9rem);
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
    opacity: 0;
    width: 100%;
    max-width: 1120px;
    padding: 0 2rem;
}

@media (max-height: 700px) {
    .section-heading {
        top: 12%;
    }
}

@media (max-height: 600px) {
    .section-heading {
        top: 10%;
    }
}

@media (max-height: 500px) {
    .section-heading {
        top: 13%;
        font-size: clamp(1.2rem, 3vw, 1.6rem) !important;
    }
}

@media (max-height: 400px) {
    .section-heading {
        top: 16%;
        font-size: clamp(1.0rem, 2.5vw, 1.4rem) !important;
    }
}

@media (max-height: 300px) {
    .section-heading {
        top: 19%;
        font-size: clamp(0.8rem, 2.0vw, 1.2rem) !important; 
    }
}

.hiw-text-container {
    position: fixed;
    bottom: 5rem;
    right: 5rem;
    width: 100%;
    max-width: 600px;
    z-index: 9999;
    pointer-events: auto !important;
}

.hiw-text-container-compact {
    position: fixed;
    bottom: 8rem;
    right: 5rem;
    width: 100%;
    max-width: 600px;
    z-index: 9999;
    pointer-events: auto !important;
    text-align: right;
}

.hiw-text-container-compact .hiw-text {
    text-align: right;
}

.left-button-section {
    z-index: 1002; 
}

.hiw-text {
    position: relative;
    color: #f3f4f6;
    font-size: clamp(1rem, 2.5vh, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(100px);
    cursor: pointer;
    text-decoration: none;
    z-index: 9999;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 4px 8px;
    pointer-events: auto !important;
}

.back-btn-text {
    position: relative;
    color: #f3f4f6;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    text-decoration: none;
    z-index: 9999;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 4px 8px;
    pointer-events: auto !important;
}

.back-btn-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #2563eb, #60a5fa);
    z-index: -1;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-btn-text:hover::after,
.back-btn-text.touch-active::after {
    width: 100%;
}

.back-btn-text:hover,
.back-btn-text.touch-active {
    color: #ffffff;
}

.section-subtitle.interactive {
    cursor: pointer;

    overflow-y: auto;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    transition: color 0.3s ease;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.section-subtitle.interactive::-webkit-scrollbar {
    display: none;
}

.section-subtitle.interactive:hover {
    color: #ffffff;
}

.section-subtitle.interactive {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.hiw-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #2563eb, #60a5fa);
    z-index: -1;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hiw-text:hover::after,
.hiw-text.touch-active::after {
    width: 100%;
}

.hiw-text:hover,
.hiw-text.touch-active {
    color: #ffffff;
}

#twitter-btn,
#gitbook-btn,
#telegram-btn {
    transition: none !important;
}

#twitter-btn::after,
#gitbook-btn::after,
#telegram-btn::after {
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.hiw-text2 {
    color: #9ca3af;
    font-size: clamp(0.8rem, 2.0vw, 1.0rem);
    font-weight: 500;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(100px);
}

.text-white-highlight {
    color: #f3f4f6;
    font-weight: 600;
}

@media (max-height: 400px) {
    .text-white-highlight {
        font-size: 0.9rem !important;
    }

    #back-btn .text-white-highlight {
        font-size: 0.8rem !important;
    }
}

@media (max-height: 300px) {
    .text-white-highlight {
        font-size: 0.9rem !important; 
    }

    #back-btn .text-white-highlight {
        font-size: 0.7rem !important; 
    }
}

@media (max-height: 400px) {
    .back-btn-text {
        font-size: 0.7rem !important; 
    }
}

@media (max-height: 300px) {
    .back-btn-text {
        font-size: 0.7rem !important; 
    }
}

.common-padding {
    padding: 5rem 2.5rem;
    position: relative;
}

.screen-max-width {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
}

header nav.screen-max-width {
    max-width: 100%;
    padding: 0 2rem;
}

@media (min-width: 1440px) {
    header nav.screen-max-width {
        padding: 0 4rem;
    }
}

@media (min-width: 1920px) {
    header nav.screen-max-width {
        padding: 0 6rem;
    }
}

@media (min-width: 2560px) {
    header nav.screen-max-width {
        padding: 0 8rem;
    }
}

@media (max-width: 768px) {
    .nav-dots {
        right: 12px;
        gap: 8px;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .nav-dot::after {
        right: 16px;
        font-size: 0.52rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .hero-content.long-content {
        padding-top: 30px !important; 
        max-height: calc(100vh - 160px);
    }

    .hero-content {
        padding: 1rem;
        max-width: 95vw;
    }

    .hiw-text-container {
        position: fixed;
        right: 1rem;
        bottom: 3rem;
        max-width: 90%;
    }

    .hiw-text-container-compact {
        position: fixed;
        right: 1rem;
        bottom: 8rem;
        max-width: 90%;
    }


    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }

    .section-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

@media (max-width: 390px) {
    .hiw-text-container {
        position: fixed;
        right: 1rem;
        bottom: 2rem;
        max-width: 85%;
    }

    .hiw-text-container-compact {
        position: fixed;
        right: 1rem;
        bottom: 8rem; 
        max-width: 85%;
    }

    .section-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }

    .section-subtitle {
        font-size: clamp(0.75rem, 4vw, 0.95rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hiw-text-container {
        position: fixed;
        bottom: 2rem;
    }
}

@media (max-height: 700px) {
    .hiw-text-container {
        position: fixed;
        bottom: 4rem; 
    }

    .hiw-text-container-compact {
        position: fixed;
        bottom: 7rem;
    }
}

@media (max-height: 600px) {
    .hiw-text-container {
        position: fixed;
        bottom: 3rem;
    }

    .hiw-text-container-compact {
        position: fixed;
        bottom: 7rem;
    }
}

@media (max-height: 500px) {
    .hiw-text-container {
        position: fixed;
        bottom: 2rem; 
    }

    .hiw-text-container-compact {
        position: fixed;
        bottom: 6.5rem; 
    }
}

@media (max-height: 500px) {
    .credits-footer {
        gap: 0.75rem;
    }

    .cosmix-logo img {
        width: 24px;
        height: 24px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .copyright {
        font-size: 0.75rem;
    }
}

@media (max-height: 450px) {
    .credits-footer {
        gap: 0.6rem;
    }

    .cosmix-logo img {
        width: 22px;
        height: 22px;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .copyright {
        font-size: 0.7rem;
    }
}

@media (max-height: 400px) {
    .credits-footer {
        gap: 0.5rem;
    }

    .cosmix-logo img {
        width: 20px;
        height: 20px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.65rem;
    }
}

@media (max-height: 350px) {
    .credits-footer {
        gap: 0.4rem;
    }

    .cosmix-logo img {
        width: 18px;
        height: 18px;
    }

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

    .copyright {
        font-size: 0.6rem;
    }
}

@media (max-height: 300px) {
    .credits-footer {
        gap: 0.3rem;
    }

    .cosmix-logo img {
        width: 16px;
        height: 16px;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .copyright {
        font-size: 0.55rem;
    }
}

@media (max-height: 250px) {
    .credits-footer {
        gap: 0.25rem;
    }

    .cosmix-logo img {
        width: 14px;
        height: 14px;
    }

    .logo-text {
        font-size: 0.75rem;
    }

    .copyright {
        font-size: 0.5rem;
    }
}

@media (max-height: 200px) {
    .credits-footer {
        gap: 0.2rem;
    }

    .cosmix-logo img {
        width: 12px;
        height: 12px;
    }

    .logo-text {
        font-size: 0.7rem;
    }

    .copyright {
        font-size: 0.45rem;
    }
}


@media (max-width: 768px) {
    body, html {
        background: #000000;
        -webkit-background-size: cover;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    ::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    html {
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }

    body::after {
        content: '';
        position: fixed;
        top: -100px;
        left: -100px;
        right: -100px;
        bottom: -100px;
        background: #000000;
        z-index: -9998;
        pointer-events: none;
    }
}

@media (max-width: 768px) and (min-resolution: 96dpi) {
    body, html {
        background: #000000 !important;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}
