/* Keep the table readable and steady, including small phones and reduced motion. */
.hearts-stage{max-width:440px;margin:0 auto}
.hearts-stage h3{font-size:clamp(23px,5vw,32px);margin:12px 0 14px}
.hearts-status{min-height:1.5em;font-size:13px;color:var(--ink);margin:10px 0}
.hearts-players{display:grid;grid-template-columns:1fr 1fr;gap:8px;text-align:left}
.hearts-player{display:flex;align-items:center;gap:8px;border:2px solid transparent;border-radius:14px;background:#eeeae1;padding:11px 9px;min-width:0}
.hearts-player.is-turn{border-color:#5a6a3c;background:#e8efda;box-shadow:0 0 0 2px #f8f5ef inset}
.hearts-mark{font:700 32px Georgia,serif;flex:none}.hearts-mark.heart{color:#a93a62}.hearts-mark.cross{color:#425b8a}
.hearts-player>div{min-width:0;flex:1}.hearts-player b{font-size:12px;display:block;overflow-wrap:anywhere}.hearts-player small{display:block;font:500 9px/1.5 'Manrope',sans-serif;color:#5f5b55}
.hearts-player b small{display:inline}.hearts-player strong{font:700 22px 'Manrope',sans-serif;text-align:center}
.hearts-draws{font-size:10px;color:#615c56;margin:9px 0}
.hearts-board{max-width:330px;width:100%;gap:9px;margin:16px auto;border-radius:19px;background:#e5dfd4;padding:9px}
.hearts-board .cell{position:relative;min-width:0;min-height:0;font:500 clamp(38px,9vw,60px)/1 Georgia,serif;border:1px solid #c9c1b4;border-radius:12px;background:#fffdf7;color:#425b8a;box-shadow:0 2px 0 #c7bdac;opacity:1!important;touch-action:manipulation}
.hearts-board .cell.heart{color:#a93a62}.hearts-board .cell:disabled{cursor:default;filter:none}
.hearts-board button.cell:not(:disabled):hover{background:#eaf0df;border-color:#5a6a3c}
.hearts-board button.cell:focus-visible{outline:3px solid #3a4a27;outline-offset:3px;z-index:1}
.hearts-board .cell.last-move:after{content:'';position:absolute;bottom:7px;right:7px;width:7px;height:7px;background:currentColor;border-radius:50%}
.hearts-board .cell.win{background:#d7e6b5;border:2px solid #5b703b;box-shadow:inset 0 0 0 2px #f8f5ef,0 2px 0 #7c8e5b}
.hearts-board .cell.move-pending{opacity:.55!important}.hearts-caption{font-size:11px;line-height:1.6;margin:9px 0}
.hearts-ready{margin:18px 0 10px;padding:15px;border:1px solid #d1cabd;background:#f2eee5;border-radius:14px}
.hearts-ready p{font-size:12px;margin:0 0 12px}.hearts-ready-status{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:0 0 13px}.hearts-ready-status span{font-size:10px;padding:6px 9px;border-radius:20px;background:#e4dfd4}.hearts-ready-status .is-ready{background:#dce9c6}
.hearts-stage .primary,.hearts-stage .secondary{min-height:46px}
@media(max-width:360px){.hearts-player{gap:5px;padding:9px 6px}.hearts-mark{font-size:25px}.hearts-player strong{font-size:18px}.hearts-board{gap:7px;padding:7px}.hearts-board .cell{font-size:43px}}
@media(prefers-reduced-motion:reduce){.hearts-board .cell{animation:none!important;transition:none!important}}

/* A waiting player can read every mark but cannot mistake the board for their turn. */
.hearts-board.is-waiting{background:#d9d8d4;filter:grayscale(1)}
.hearts-board.is-waiting .cell,.hearts-board.is-waiting .cell.heart{background:#eae9e5;border-color:#c5c3bf;color:#66645f;box-shadow:0 2px 0 #bdbbb5;cursor:not-allowed}
