.reversi-game{max-width:620px;margin:auto;--rv-board:#27624e;--rv-line:#7da994;--rv-text:#16382d;--rv-panel:#edf3ea}.rv-scores{display:flex;gap:12px;margin:18px 0 12px}.rv-scores>div{display:flex;align-items:center;gap:9px;flex:1;background:var(--rv-panel);padding:14px;border-radius:12px;color:var(--rv-text)}.rv-scores b{font-size:24px;margin-left:8px}.rv-disc{width:25px;height:25px;border-radius:50%;flex:none}.rv-disc.rv-black{background:#182025;border:2px solid #52665b}.rv-disc.rv-white{background:#fffaf0;border:2px solid #c8c6b5}.rv-turn{font-weight:700;padding:14px 16px;background:var(--rv-panel);border-left:4px solid var(--rv-board);border-radius:8px;color:var(--rv-text);min-height:52px;line-height:1.5}.rv-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.rv-actions button{min-height:44px;padding:10px 14px;font-size:14px}.rv-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding:3px;border-radius:10px}.rv-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:1px;background:var(--rv-line);border:3px solid var(--rv-board);width:100%;max-width:500px;margin:auto;border-radius:7px;overflow:hidden}.rv-board.rv-expanded{min-width:366px}.rv-cell{position:relative;aspect-ratio:1;border:0!important;border-radius:0!important;background:var(--rv-board)!important;padding:0!important;min-width:0;min-height:0!important;touch-action:manipulation;display:grid;place-items:center;color:#fff;opacity:1!important}.rv-cell:focus-visible{outline:3px solid #ffdd70;outline-offset:-3px;z-index:1}.rv-piece{width:75%;height:75%;border-radius:50%;position:relative}.rv-black .rv-piece{background:#151d20;box-shadow:inset 0 0 0 2px #53665b,0 2px 3px #102f26}.rv-white .rv-piece{background:#fffaf0;box-shadow:inset 0 0 0 2px #d6d1bd,0 2px 3px #102f26}.rv-legal .rv-piece:after{content:'';position:absolute;inset:34%;border:2px solid #e4ead6;border-radius:50%}.rv-coordinate{position:absolute;bottom:1px;left:2px;font-size:8px;font-weight:600;color:#e3eee7}.rv-last .rv-piece:after{content:'';position:absolute;inset:35%;background:#db7938;border:1px solid #ffd9ae;border-radius:50%}.rv-note{font-size:14px;line-height:1.5;min-height:42px;margin:10px 0}.rv-request{padding:12px 16px;border:2px solid #987846;background:var(--rv-panel);color:var(--rv-text);border-radius:12px;margin:12px 0}.rv-request[hidden]{display:none}.rv-rules{margin-top:20px;line-height:1.6}.rv-rules summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}.rv-rules p{font-size:14px}.rv-flip .rv-piece{animation:rv-flip .3s ease-out}@keyframes rv-flip{from{transform:scaleX(.35)}to{transform:scaleX(1)}}html[data-theme=dark] .reversi-game{--rv-panel:#253b31;--rv-text:#f0f1df;--rv-board:#235440;--rv-line:#658672}html[data-theme=dark] .rv-rules a{color:#b8d8ef}@media(prefers-reduced-motion:reduce){.rv-flip .rv-piece{animation:none}}
