.connections-game-container {
    max-width: 600px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #000;
}

.connections-game-container h1,
.connections-game-container h2,
.connections-game-container h3,
.connections-game-container h4,
.connections-game-container h5,
.connections-game-container h6,
.connections-header-title,
.connections-answers h3,
.connections-past-answers h3,
.connections-difficulty h3,
body .entry-content .connections-hints h3,
body .entry-content .connections-header-title {
    color: #000 !important;
}

.connections-section-title {
    color: #000 !important;
    margin-bottom: 20px;
}

.connections-unlimited-intro {
    text-align: left;
    line-height: 1.5;
    color: #000;
    margin-bottom: 16px;
}

.connections-words {
    position: relative;
}

.connections-words h2 {
    text-align: left;
    font-size: 24px;
    margin-bottom: 10px;
    color: #000 !important;
}

.connections-words p {
    text-align: left;
    font-size: 14px;
    color: #000;
    margin-bottom: 20px;
}

.connections-words-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.connections-word {
    background-color: #efefe6;
    color: #000 !important;
    padding: 15px 5px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    transition: background-color 0.2s;
}

.connections-word.selected {
    background-color: #5a5a5a;
    color: #fff !important;
}

.connections-word.solved {
    cursor: default;
}

.connections-word.solved.yellow { background-color: #f9df6d; color: #000; }
.connections-word.solved.green { background-color: #a0c35a; color: #000; }
.connections-word.solved.blue { background-color: #b0c4ef; color: #000; }
.connections-word.solved.purple { background-color: #ba81c5; color: #000; }

.connections-controls {
    margin-top: 20px;
    margin-bottom: 10px;
}

.connections-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.connections-guess-count {
    font-size: 14px;
    font-weight: 600;
}

.connections-message {
    min-height: 18px;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.connections-message.connections-success {
    color: #2e7d32;
}

.connections-message.connections-error {
    color: #e53935;
}



.connections-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}

#connections-deselect-all {
    background-color: #fff;
}

#connections-deselect-all:hover,
#connections-deselect-all:active {
    background-color: #ba81c5;
    border-color: #ba81c5;
    color: #000;
}

#connections-deselect-all:focus {
    background-color: #fff;
    color: #000;
    border-color: #000;
    box-shadow: none;
    outline: none;
}

#connections-deselect-all:disabled {
    background-color: #fff;
}

.connections-btn.primary {
    background-color: #000;
    color: #fff;
}

.connections-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.connections-hints {
    max-width: 600px;
    margin: 30px 0;
    color: #000;
}

.connections-hints h1,
.connections-hints h2,
.connections-hints h3,
.connections-hints h4,
.connections-hints h5,
.connections-hints h6 {
    color: #000 !important;
}

.connections-hints h3 {
    text-align: left;
    margin-bottom: 20px;
    color: #000 !important;
}

.connections-hint-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.connections-hint-btn {
    padding: 12px 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    color: #000;
    line-height: 1.2;
    border: 1px solid #cfcfc0;
    background-color: #f3f0e1;
    transition: background-color 0.2s, border-color 0.2s;
}

.connections-hint-btn.active {
    border-color: transparent;
    color: #000;
}

.connections-hint-btn.yellow.active { background-color: #f9df6d; }
.connections-hint-btn.green.active { background-color: #a0c35a; }
.connections-hint-btn.blue.active { background-color: #b0c4ef; }
.connections-hint-btn.purple.active { background-color: #ba81c5; }

.connections-hint-detail {
    margin-bottom: 24px;
}

.detail-title {
    font-weight: 700;
    margin-bottom: 16px;
    color: #000 !important;
}

.hint-row {
    margin-bottom: 12px;
}

.reveal-btn {
    display: inline-block;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: #f3f0e1;
    color: #000 !important;
    text-align: center;
}

.connections-hint-detail.color-yellow .reveal-btn { 
    border-color: #f9df6d; 
    background-color: #f9df6d; 
}
.connections-hint-detail.color-green .reveal-btn { 
    border-color: #a0c35a; 
    background-color: #a0c35a; 
}
.connections-hint-detail.color-blue .reveal-btn { 
    border-color: #b0c4ef; 
    background-color: #b0c4ef; 
}
.connections-hint-detail.color-purple .reveal-btn { 
    border-color: #ba81c5; 
    background-color: #ba81c5; 
}

.revealed-content {
    display: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    background-color: #fff;
    border: 2px solid;
    color: #000 !important;
}

.connections-hint-detail.color-yellow .revealed-content { 
    border-color: #f9df6d !important; 
}
.connections-hint-detail.color-green .revealed-content { 
    border-color: #a0c35a !important; 
}
.connections-hint-detail.color-blue .revealed-content { 
    border-color: #b0c4ef !important; 
}
.connections-hint-detail.color-purple .revealed-content { 
    border-color: #ba81c5 !important; 
}

.hint-row.revealed .reveal-btn {
    display: none;
}

.hint-row.revealed .revealed-content {
    display: inline-block;
}

.hint-row.words-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.word-reveal-container {
    width: 100%;
    height: 56px;
}

.word-reveal-container .reveal-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.word-reveal-container.revealed .reveal-btn {
    display: none;
}

.word-reveal-container.revealed .word-content {
    display: flex;
}

.word-content {
    width: 100%;
    height: 100%;
    text-align: center;
    color: #000 !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .connections-words-list {
        gap: 5px;
    }

    .connections-word {
        font-size: 11px;
        padding: 5px;
        height: 50px;
    }

    .connections-hint-buttons {
        gap: 5px;
    }

    .connections-hint-btn {
        font-size: 11px;
        padding: 10px 2px;
    }

    .hint-row.words-row {
        gap: 5px;
        grid-template-columns: repeat(2, 1fr);
    }
}

.connections-past-answers {
    max-width: 800px;
}

.connections-month-section {
    margin-bottom: 40px;
}

.connections-month-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #000 !important;
}

.connections-past-answer {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.connections-past-answer h4 {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    color: #333 !important;
}

.connections-groups-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connections-archive-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.connections-archive-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.connections-archive-content {
    line-height: 1.5;
}

.connections-archive-label {
    font-weight: 700;
    color: #666;
}

.connections-archive-category {
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.connections-archive-words {
    color: #333;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .connections-past-answer {
        padding: 10px;
    }
}
