* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'DM Mono', monospace;
    color: white;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-align: center;
}

.subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: rgb(212 160 255);
    text-align: center;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-align: center;
    max-width: 800px;
}

.disclaimer {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.7;
    text-align: center;
}

.disclaimer a {
    color: rgb(212 160 255);
    text-decoration: none;
}

.word-length-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.word-button {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
}

.word-button.active {
    background-color: rgb(212 160 255);
    border-color: rgb(212 160 255);
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.word-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.word-input span {
    min-width: 30px;
    opacity: 0.7;
}

.word-input input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
}

.word-input input:focus {
    outline: none;
    border-color: rgb(212 160 255);
}

.button-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.back-button, .next-button {
    background-color: white;
    color: black;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    max-width: 200px;
    width: 100%;
}

.next-button {
    background-color: rgb(212 160 255);
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .description {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .disclaimer {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
        padding: 0 0.5rem;
    }

    .word-length-selector {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .word-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .words-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
        padding: 0 0.2rem;
    }

    .word-input {
        gap: 0.2rem;
    }

    .word-input span {
        font-size: 0.7rem;
        min-width: 15px;
    }

    .word-input input {
        padding: 0.3rem;
        font-size: 0.7rem;
        width: 100%;
        min-width: 0;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
        gap: 1rem;
    }
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #111;
    padding: 2rem;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.warning {
    color: #ff4444;
    margin: 1rem 0;
}

#newWords {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    font-family: 'DM Mono', monospace;
}

.word-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    font-size: 1rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.copy-button {
    background-color: white;
    color: black;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.blurred {
    filter: blur(5px);
    user-select: none;
}

.reveal-button {
    background-color: #ff4444;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.next-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}