@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400&display=swap');

:root {
    --font-main: 'Kanit', sans-serif;
    --color-yellow: #facc15;
    --color-yellow-hover: #eab308;
    --color-yellow-dark: #ca8a04;
    --color-yellow-bg: rgba(250, 204, 21, 0.1);
    --color-black: #080808;
    --color-surface: #141414;
    --color-surface-elevated: #1c1c1c;
    --color-border: #262626;
    --color-border-yellow: rgba(250, 204, 21, 0.38);
    --color-text-main: #ffffff;
    --color-text-muted: #8c8c8c;
    --color-text-dark: #000000;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-yellow: 0 4px 20px rgba(250, 204, 21, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

b, strong, h1, h2, h3, h4, h5, h6, th, td, p, a, button, input, label {
    font-weight: 400;
}

body {
    font-family: var(--font-main);
    background-color: #000000;
    color: var(--color-text-main);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    font-weight: 400;
}

button, input, select, textarea {
    font-family: var(--font-main);
    font-weight: 400;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
select:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0b0b0d inset !important;
    box-shadow: 0 0 0 1000px #0b0b0d inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 50000s ease-in-out 0s;
}

#app {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #080809;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: max-width 0.3s ease;
}

#app.desktop-mode-active {
    max-width: 100% !important;
    width: 100% !important;
    background-color: #0a0a0c;
    overflow: auto;
}

.snake-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.snake-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.snake-path {
    fill: none;
    stroke: var(--color-yellow);
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px #facc15) drop-shadow(0 0 12px rgba(250, 204, 21, 0.7));
}

.snake-path-1 {
    stroke-dasharray: 140 1200;
    animation: snake-crawl-1 4s linear infinite;
}

.snake-path-2 {
    stroke-dasharray: 120 1000;
    animation: snake-crawl-2 3.2s linear infinite;
}

.snake-path-3 {
    stroke-dasharray: 160 1400;
    animation: snake-crawl-3 4.8s linear infinite;
}

@keyframes snake-crawl-1 {
    0% {
        stroke-dashoffset: 1340;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes snake-crawl-2 {
    0% {
        stroke-dashoffset: 1120;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes snake-crawl-3 {
    0% {
        stroke-dashoffset: 1560;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.global-mobile-main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 1;
}

.global-mobile-main.desktop-layout-active {
    padding: 0;
    justify-content: flex-start;
    align-items: stretch;
}
