/* Word Guess — board only */

.wg-board {
    display: grid;
    gap: 0.4rem;
    justify-content: center;
}

.wg-row {
    display: grid;
    grid-template-columns: repeat(5, 54px);
    gap: 0.4rem;
    justify-content: center;
}

.wg-cell {
    height: 54px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(111, 214, 196, 0.28);
    background: rgba(6, 14, 14, 0.85);
    color: var(--game-text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: border-color 0.12s, background 0.15s, color 0.15s, transform 0.12s;
}

.wg-cell.filled { border-color: rgba(111, 214, 196, 0.7); }
.wg-cell.active { border-color: #ffd166; }

.wg-cell.good {
    background: rgba(74, 222, 128, 0.22);
    border-color: #4ade80;
    color: #c9ffd9;
}

.wg-cell.present {
    background: rgba(255, 209, 102, 0.2);
    border-color: #ffd166;
    color: #ffe9b0;
}

.wg-cell.absent {
    background: rgba(120, 130, 140, 0.14);
    border-color: rgba(120, 130, 140, 0.5);
    color: rgba(236, 238, 242, 0.45);
}

.wg-cell.flip { animation: wg-flip 0.28s ease; }

@keyframes wg-flip {
    0%   { transform: rotateX(0deg); }
    50%  { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

.wg-keyboard {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
    max-width: 460px;
}

.wg-keyrow {
    display: flex;
    gap: 0.28rem;
    justify-content: center;
    width: 100%;
}

.wg-key {
    flex: 1;
    max-width: 42px;
    height: 44px;
    border: 1px solid rgba(111, 214, 196, 0.3);
    background: rgba(111, 214, 196, 0.05);
    color: var(--game-text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.05rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.wg-key.wide { max-width: 70px; font-size: 0.8rem; letter-spacing: 0.06em; }
.wg-key:hover { background: rgba(111, 214, 196, 0.16); }

.wg-key.good {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
    color: #c9ffd9;
}

.wg-key.present {
    background: rgba(255, 209, 102, 0.28);
    border-color: #ffd166;
    color: #ffe9b0;
}

.wg-key.absent {
    background: rgba(120, 130, 140, 0.12);
    border-color: rgba(120, 130, 140, 0.35);
    color: rgba(236, 238, 242, 0.4);
}

.wg-reveal {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.3em;
    color: #ffd166;
    text-transform: uppercase;
    margin: 0;
}

@media (max-width: 480px) {
    .wg-row { grid-template-columns: repeat(5, 46px); }
    .wg-cell { height: 46px; font-size: 1.4rem; }
    .wg-key { height: 40px; }
}
