.puzzle-wrapper {
    width: 100%;
}

.puzzle-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 30px;
}

.puzzle-word {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
}

.puzzle-letter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 60px;
  background: #d0cac3;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #afa9a7
}

.puzzle-letter img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.puzzle-letter input {
    width: 40px !important;
    height: 40px !important;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    background-color: #c7c0b7;
    text-shadow: 1px 1px 0px #d0cac3;
    border: 1px solid #766354;
    border-radius: 6px;
    transition: all 0.3s ease;
  outline: none;
    box-sizing: border-box;
    padding: 0 !important;
    font-family: 'Yeseva One';
}

.puzzle-letter input:focus {
  border: 1px solid #424f64;
  background: #bdb6ae;
}

.puzzle-letter input.correct {
    border-color: #4CAF50;
    background-color: #E8F5E9;
    color: #2E7D32;
}

.puzzle-letter input.error {
    border-color: #F44336;
    background-color: #FFEBEE;
    color: #C62828;
}

.puzzle-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.puzzle-controls .btn {
    transition: all 0.3s ease;
    min-width: 150px;
    background-color: #c7c0b7;
    color: var(--link-color);
    text-shadow: 1px 1px 0px #d0cac3;
    border: 1px solid #766354;
    outline: none;
    text-align: center;
    padding: 7px 10px 6px 10px;
    display: inline-block;
    font-family: 'Yeseva One';
    letter-spacing: 1px;
    font-size: 9px;
    line-height: 9px;
    text-transform: uppercase;
    font-weight: bold;
    font-style: normal;
    border-radius: 10px;
    cursor: pointer
}

.puzzle-controls .btn:hover {
    transform: translateY(-2px);
}

.puzzle-controls .clear-btn {
   background: #d0cac3;
}

.puzzle-controls .reset-btn {
    background: #766354;
    text-shadow: none;
    color: #d0cac3
}

.puzzle-controls .reset-btn:hover {
    transform: translateY(-2px);
}

.puzzle-info {
    text-align: center;
    font-size: 11px;
    border-top: 1px solid #afa9a7;
    margin-top: 20px;
  padding-top: 15px;
}

.admin-only {
    text-align: center;
}

.admin-btn {
    background: #c0392b;
    color: white;
    font-weight: bold;
    min-width: 200px;
}

.admin-btn:hover {
    background: #e74c3c;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.admin-hint {
    font-size: 11px;
    color: #c0392b;
    margin-top: 15px !important;
    font-weight: bold !important;
}