/* Opposite or Same?: layout only. Colours come from classes, never from inline styles. Every choice is at least 56 px tall. */
.op-stage{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.op-levels{margin-top:4px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.op-level-name{display:block;font-size:.8em;opacity:.8}

/* The guide corner: Tosbi on the left, the status sentence beside it. */
.op-guide-row{display:flex;align-items:center;gap:12px}
.op-guide{flex:0 0 64px;width:64px;min-width:0}
.op-guide-row .kg-status{margin:0;flex:1 1 auto;min-width:0}

/* The board holds the question card, the question line and the three choices. */
.op-board{display:grid;gap:12px;box-sizing:border-box;width:100%;max-width:460px;margin:0 auto;padding:14px;border-radius:18px;background:rgba(255,255,255,.06);justify-items:center}
.op-card{display:grid;justify-items:center;gap:8px;box-sizing:border-box;width:100%;padding:14px 12px;border-radius:14px;background:rgba(255,255,255,.08);text-align:center}
.op-tag{margin:0;padding:.2em .8em;border-radius:999px;font-size:.95rem;font-weight:800;color:#1d2246}
.op-tag-opp{background:#ffb74d}
.op-tag-same{background:#9ccc65}
.op-prompt{margin:0;font-size:1.4rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.op-gap{display:inline-block;min-width:2.2em;border-bottom:3px dashed #7ee8b0;color:#7ee8b0}
.op-filled{padding:0 .2em;border-radius:8px;background:#7ee8b0;color:#1d2246}
.op-pair{margin:0;font-size:1.1rem;font-weight:800}
.op-pair:empty{display:none}
.op-question{margin:0;min-height:1.4em;font-size:1rem;font-weight:700}

/* The choices: three words in a row, each at least 56 px tall. */
.op-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.op-option{display:flex;align-items:center;justify-content:center;min-height:56px;box-sizing:border-box;margin:0;padding:.5em .3em;border:0;border-radius:16px;background:rgba(255,255,255,.12);color:inherit;font:inherit;font-size:1.1rem;font-weight:700;text-align:center;overflow-wrap:anywhere;cursor:pointer;touch-action:manipulation;transition:background-color .15s ease,box-shadow .15s ease}
.op-option:focus-visible{outline:4px solid #ffd54f;outline-offset:2px}
.op-option:disabled{cursor:default}
.op-option.op-right{background:#7ee8b0;color:#1d2246}
.op-option.op-bad{background:#ff8a65;color:#1d2246}
.op-option.op-glow{background:rgba(255,213,79,.35);box-shadow:0 0 0 4px #ffd54f}
.op-option.op-shake{animation:op-shake .4s ease}

.op-actions{justify-content:center}
.op-actions svg{width:24px;height:24px;flex:0 0 auto}
#op-next[hidden]{display:none}
.op-win{margin-top:4px}
.op-win[hidden]{display:none!important}
.op-win:focus{outline:none}
.op-win-words{overflow-wrap:anywhere}
.op-win-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.op-howto{margin-top:28px}
.op-steps{display:grid;gap:8px;padding-left:1.2em}

@keyframes op-shake{
 0%,100%{transform:translateX(0)}
 25%{transform:translateX(-5px)}
 50%{transform:translateX(5px)}
 75%{transform:translateX(-3px)}
}

@media (max-width:520px){
 .op-board{gap:10px;padding:10px}
 .op-prompt{font-size:1.25rem}
 .op-options{gap:8px}
 .op-option{font-size:1rem}
}
@media (max-width:359px){
 .op-levels{gap:6px}
}

@media (prefers-reduced-motion:reduce){
 .op-option,.op-option.op-shake{transition:none;animation:none}
}
