@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

.vocablaster3-app,
.vocablaster3-app * {
    box-sizing: border-box;
}

.vocablaster3-app {
    position: relative;
    width: 100%;
    min-height: 720px;
    overflow: hidden;
    background: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    border-radius: 18px;
    user-select: none;
}

.vb3-start-screen,
.vb3-game {
    position: relative;
    width: 100%;
    min-height: 720px;
    overflow: hidden;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
}

.vb3-start-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 20px;
    text-align: center;
}

.vb3-start-screen h1 {
    margin: 0 0 16px;
    font-size: clamp(44px, 8vw, 76px);
    font-weight: 700;
    background: linear-gradient(45deg, #64ffda, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vb3-subtitle {
    margin-bottom: 34px;
    color: rgba(255,255,255,0.72);
    font-size: 20px;
}

.vb3-level-buttons,
.vb3-list-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1050px;
}

.vb3-button,
.vb3-small-button,
.vb3-menu-button,
.vb3-list-button {
    padding: 14px 26px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.vb3-button {
    background: linear-gradient(45deg, #64ffda, #4fd1c7);
    color: #071016;
    border: 0;
}

.vb3-small-button {
    padding: 10px 18px;
    font-size: 14px;
}

.vb3-menu-button:hover,
.vb3-list-button:hover,
.vb3-small-button:hover {
    transform: translateY(-2px);
    background: rgba(100,255,218,0.1);
    border-color: rgba(100,255,218,0.35);
}

.vb3-list-button {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vb3-list-button small {
    color: #a78bfa;
}

.vb3-toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.vb3-toggle-small {
    justify-content: flex-start;
    margin-top: 14px;
}

.vb3-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.vb3-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vb3-switch span {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #64748b;
    border-radius: 34px;
    transition: 0.4s;
}

.vb3-switch span:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    left: 4px;
    bottom: 4px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.4s;
}

.vb3-switch input:checked + span {
    background: #4fd1c7;
}

.vb3-switch input:checked + span:before {
    transform: translateX(26px);
}

.vb3-game {
    height: 720px;
}

.vb3-star {
    position: absolute;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    width: 2px;
    height: 2px;
}

.vb3-word {
    position: absolute;
    z-index: 3;
    padding: 16px 20px;
    text-align: center;
    background: rgba(255,255,255,0.055);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.vb3-word.vb3-active {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(100,255,218,0.5);
    border-color: rgba(100,255,218,0.5);
}

.vb3-prompt {
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 700;
}

.vb3-answer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.vb3-hidden-letter {
    color: rgba(255,255,255,0.32);
}

.vb3-typed-letter {
    color: #64ffda;
    text-shadow: 0 0 10px rgba(100,255,218,0.5);
}

.vb3-player {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 60px;
    width: 0;
    height: 0;
    transform: translateX(-50%);
}

.vb3-ship {
    position: absolute;
    top: -40px;
    left: -30px;
    width: 60px;
    height: 80px;
    background: linear-gradient(to bottom, #64ffda 0%, #4fd1c7 50%, #38b2ac 100%);
    clip-path: polygon(50% 0%, 20% 70%, 35% 70%, 35% 100%, 65% 100%, 65% 70%, 80% 70%);
    filter: drop-shadow(0 0 20px rgba(100,255,218,0.6));
    transition: transform 0.25s ease;
}

.vb3-hud {
    position: absolute;
    z-index: 10;
    top: 20px;
    right: 20px;
    min-width: 220px;
    padding: 18px;
    background: rgba(0,0,0,0.42);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
}

.vb3-score {
    color: #64ffda;
    font-size: 24px;
    font-weight: 800;
}

.vb3-level {
    margin-top: 6px;
    color: #a78bfa;
    font-size: 18px;
    font-weight: 600;
}

.vb3-list-title {
    margin-top: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.vb3-progress {
    width: 100%;
    height: 6px;
    margin-top: 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    overflow: hidden;
}

.vb3-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #64ffda, #a78bfa);
    transition: width 0.3s ease;
}

.vb3-back-menu,
.vb3-help {
    position: absolute;
    z-index: 11;
    top: 20px;
}

.vb3-back-menu {
    left: 20px;
}

.vb3-help {
    left: 110px;
}

.vb3-bullet {
    position: absolute;
    z-index: 5;
    width: 4px;
    height: 20px;
    background: linear-gradient(to top, #64ffda, #4fd1c7);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(100,255,218,0.8);
}

.vb3-impact {
    position: absolute;
    z-index: 6;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #64ffda 0%, rgba(100,255,218,0.5) 40%, transparent 70%);
    animation: vb3Impact 0.35s ease-out forwards;
}

.vb3-level-up {
    position: absolute;
    z-index: 12;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: #a78bfa;
    font-size: 48px;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(167,139,250,0.8);
    transition: opacity 0.5s ease;
}

.vb3-game-over {
    position: absolute;
    z-index: 12;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b6b;
    font-size: 48px;
    font-weight: 800;
}

.vb3-restart {
    position: absolute;
    z-index: 12;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vb3-help-box {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.82);
}

.vb3-help-box[hidden] {
    display: none;
}

.vb3-help-box > div {
    max-width: 520px;
    padding: 28px;
    background: rgba(0,0,0,0.92);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    text-align: center;
}

.vb3-admin-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
    gap: 20px;
}

.vb3-admin-box {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
}

@keyframes vb3Impact {
    from {
        opacity: 1;
        transform: scale(0.3);
    }

    to {
        opacity: 0;
        transform: scale(2);
    }
}

@media (max-width: 782px) {
    .vocablaster3-app,
    .vb3-start-screen,
    .vb3-game {
        min-height: 650px;
    }

    .vb3-game {
        height: 650px;
    }

    .vb3-hud {
        top: 72px;
        right: 10px;
        min-width: 170px;
    }

    .vb3-back-menu {
        left: 10px;
    }

    .vb3-help {
        left: 95px;
    }

    .vb3-admin-grid {
        grid-template-columns: 1fr;
    }
}