.page-template-page-wordle-solution.one-container .site-content {
    padding-top: 120px;
}

@media (max-width: 768px) {
    .page-template-page-wordle-solution.one-container .site-content {
        padding-top: 100px;
    }
}

.wordle-page-container {
    width: 100%;
    display: flex;
    gap: 30px;
}

.wordle-main-content {
    width: 100%;
}

.page-title {
    margin-bottom: 50px;
    color: #1a1a1a;
}

.subtitle {
    font-size: 16px;
    margin-bottom: 25px;
    color: #666;
}

.wordle-main-content h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #192b80;
    margin-top: 80px;
    margin-bottom: 30px;
}

.wordle-main-content > h2:first-of-type {
    margin-top: 0;
}

.letter-boxes {
    display: flex;
    gap: 20px;
    margin: 0 0 25px 0;
}

.divider {
    display: flex;
    align-items: center;
    margin: 55px 0 35px 0;
    width: 100%;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #e0e0e0;
}

.divider span {
    margin: 0 20px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-weight: 600;
}

.letter-box {
    width: 70px;
    height: 70px;
    border: 2px solid #c0c4ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(to bottom, #ffffff, #f0f1f3);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease, border-color 0.3s ease;
    user-select: none;
    color: #333;
}

.letter-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #a0a4aa;
}

.letter-box:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.letter-box.revealed {
    background: linear-gradient(to bottom, #6aaa64, #5a9a57);
    border-color: #5a9a57;
    color: white;
    box-shadow: 0 3px 6px rgba(106, 170, 100, 0.3), 0 1px 2px rgba(106, 170, 100, 0.2);
}

.letter-box.revealed:hover {
    transform: none;
    box-shadow: 0 3px 6px rgba(106, 170, 100, 0.3), 0 1px 2px rgba(106, 170, 100, 0.2);
    cursor: default;
}

.letter-label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    white-space: nowrap;
    color: #666;
}

.answer-tiles {
    display: flex;
    gap: 15px;
}

.answer-tile {
    width: 70px;
    height: 70px;
    perspective: 400px;
}

.tile-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.answer-tile.flipped .tile-inner {
    transform: rotateX(180deg);
}

.tile-front,
.tile-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
    border-radius: 8px;
}

.tile-front {
    background: linear-gradient(to bottom, #ffffff, #f0f1f3);
    color: #333;
    border: 2px solid #c0c4ca;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tile-back {
    background: linear-gradient(to bottom, #6aaa64, #5a9a57);
    color: #ffffff;
    border: 2px solid #5a9a57;
    transform: rotateX(180deg);
    box-shadow: 0 3px 6px rgba(106, 170, 100, 0.3), 0 1px 2px rgba(106, 170, 100, 0.2);
}

.answer-reveal {
    margin: 35px 0 0 0;
    max-width: calc(5 * 70px + 4 * 15px);
}

.show-answer-button {
    display: block;
    margin-top: 16px;
    padding: 10px 28px;
    background: #6aaa64;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.show-answer-button:hover {
    background: #5a9a57;
    color: #ffffff;
}

.show-answer-button.inactive {
    background: #b0b0b0;
    cursor: default;
    opacity: 0.6;
    pointer-events: none;
}

.wordle-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.wordle-box {
    color: #192b80;
    border: 1px solid #b9b9b9;
    padding: 9px;
    background-color: #f5f6f8;
    margin-bottom: 10px;
    width: calc(50% - 10px);
    font-size: 1.1em;
    border-radius: 7px;
    font-weight: 600;
    position: relative;
}

@media (max-width: 600px) {
    .wordle-box {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .wordle-boxes .wordle-box:nth-child(1) button,
    .wordle-boxes .wordle-box:nth-child(2) button {
        margin-top: 40px;
    }
}

.wordle-box.full {
    width: 100%;
}

.wordle-boxes > .wordle-box:only-child {
    width: 100%;
}

.wordle-boxes > .wordle-box:last-child:nth-child(odd) {
    width: 100%;
}

/* Promote orphaned tile to full width when the final box spans the row */
.wordle-boxes:has(> .wordle-box.full:last-child) > .wordle-box:nth-last-child(2):nth-child(odd):not(.full) {
    width: 100%;
}

.wordle-box h3 {
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: #f5f6f8;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 18px;
    margin: 0;
    border: 1px solid #dbdee2;
    color: #454545;
}

.reveal-button {
    border-radius: 0.5rem;
    color: #f3f5f9;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #999;
    margin-top: 30px;
    display: block;
    min-height: 47px;
    box-sizing: border-box;
}

.reveal-content {
    margin-top: 30px;
    display: none;
    min-height: 47px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
    padding: 10px 0;
}

.reveal-content.revealed {
    display: block;
    width: 100%;
}

#clueBox .reveal-content {
    min-height: auto;
    height: auto;
}

@media (max-width: 768px) {
    .wordle-page-container {
        flex-direction: column;
        padding: 20px 0;
    }

    .letter-box {
        width: 55px;
        height: 55px;
        font-size: 32px;
        border-radius: 7px;
    }

    .letter-label {
        font-size: 11px;
        bottom: -35px;
        white-space: normal;
        width: 55px;
        text-align: center;
        line-height: 1.2;
    }

    .letter-boxes {
        margin-bottom: 45px;
    }
}

@media (max-width: 400px) {
    .letter-box {
        width: 50px;
        height: 50px;
        font-size: 28px;
        border-radius: 6px;
    }

    .letter-label {
        width: 50px;
    }

    .letter-boxes {
        gap: 10px;
    }
}
