@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 192, 203, 0.6) 20%,
        rgba(255, 160, 200, 0.7) 40%,
        rgba(200, 150, 255, 0.8) 60%,
        rgba(150, 100, 200, 0.9) 80%,
        rgba(100, 50, 150, 1) 100%
    );
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    position: relative;
    max-width: 1200px;
    width: 100%;
}

.crossword-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
}

.crossword-grid {
    display: grid;
    gap: 2px;
    position: relative;
    z-index: 2;
}

.cell {
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    background-color: #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cell:hover {
    background-color: #d0d0d0;
}

.cell.active {
    background-color: #ffeb3b;
    border-color: #ff9800;
}

.cell.filled {
    background-color: #c8e6c9;
}

.cell.error {
    background-color: #ffcdd2;
}

.cell input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
    color: #333;
    outline: none;
    text-transform: uppercase;
}

.cell.blocked {
    background-color: transparent;
    border: none;
    cursor: default;
}

.clues {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.clue {
    position: absolute;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clue-number {
    font-weight: bold;
}

.arrow {
    width: 0;
    height: 0;
    margin-left: 10px;
}

.arrow-down {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #333;
}

.arrow-right {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #333;
}

.clue-1 {
    top: 220px;
    left: 50px;
}

.clue-2 {
    top: 180px;
    right: 350px;
}

.clue-3 {
    top: 350px;
    left: 150px;
}

.clue-4 {
    top: 50px;
    right: 200px;
}

.clue-5 {
    top: 120px;
    left: 20px;
}

.clue-6 {
    bottom: 200px;
    left: 50px;
}

.clue-7 {
    top: 20px;
    right: 50px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.finish-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gensyn-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 30%, rgba(255, 192, 203, 0.6) 70%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .cell {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .cell input {
        font-size: 14px;
    }

    .clue {
        font-size: 10px;
        padding: 2px 4px;
    }

    .finish-text {
        font-size: 18px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }
}