.rm-book{border:1px solid #b9aeb1;border-radius:8px 19px 18px 8px;padding:12px 13px 14px 20px;color:#503f45;background:linear-gradient(90deg,#d5b4bb 0 7px,#b795a0 7px 9px,transparent 9px),repeating-linear-gradient(0deg,transparent 0 23px,#dfcaca59 23px 24px),#fff5e6;box-shadow:inset 0 -3px #eedacb}
.rm-top,.rm-ops,.rm-hand{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rm-top{justify-content:space-between;font-size:.87rem;margin-bottom:13px}
.rm-top>span{display:inline-flex;align-items:center;gap:10px;background:#f6d3d5;border:1px solid #ba8a92;border-radius:5px 13px 13px 5px;padding:3px 10px}.rm-top b{font-size:1.4rem;line-height:1.2;font-variant-numeric:tabular-nums}.rm-top small{font-size:.8rem}
.rm-hand,.rm-ops{justify-content:center}.rm-hand{gap:7px;max-width:411px;margin:auto}
:is(#hf-scene,#rm-board) .rm-card{position:relative;display:grid;place-items:center;align-content:center;gap:0;min-width:62px;width:calc((100% - 20px)/3);max-width:85px;height:83px;padding:5px 4px;border:1px solid #af9587;background:#fae3db;border-radius:9px;box-shadow:0 3px 0 #ad927c70,inset 0 0 0 3px #fff7e6;color:#503d38;line-height:1.05;touch-action:manipulation}
:is(#hf-scene,#rm-board) .rm-card svg{width:25px;height:25px}.rm-card b{font-size:clamp(20px,4vw,27px);font-variant-numeric:tabular-nums}
:is(#hf-scene,#rm-board) .rm-c1{background:#ede5c6}:is(#hf-scene,#rm-board) .rm-c2{background:#e7dbef}:is(#hf-scene,#rm-board) .rm-c3{background:#d6e6cf}:is(#hf-scene,#rm-board) .rm-c4{background:#ecdae4}
.rm-ops{margin-top:13px;gap:6px}:is(#hf-scene,#rm-board) .rm-op{background:#fffaf2;border:1px solid #b39890;min-height:44px;min-width:44px;padding:0 6px;border-radius:50%;color:#593e45;font-size:23px;font-weight:650;line-height:1}
:is(#hf-scene,#rm-board) .rm-op:disabled{background:#efe6db;color:#7e6f68;opacity:.85}:is(#hf-scene,#rm-board) .rm-op[aria-pressed=true],:is(#hf-scene,#rm-board) .rm-card[aria-pressed=true]{outline:3px solid #795570;outline-offset:-3px}
.rm-tick{position:absolute;right:4px;top:3px;font-weight:750;color:#663a60}.rm-history{margin:11px 0 0;padding:7px 0 0 18px;border-top:1px dashed #b69d90;font-size:.84rem}.rm-history li{padding:1px 0}
@media(max-width:360px){.rm-book{padding:9px 7px 11px 16px}.rm-hand{gap:6px}}


.rm-modes{display:flex;gap:4px;padding:4px;max-width:440px;margin:0 auto 14px;background:#f0e4dd;border-radius:16px}
.rm-modes button{flex:1;font-weight:650;background:transparent;border-color:transparent}.rm-modes [aria-pressed=true]{background:#fffaf3;border-color:#b39488;color:#674254}
.rm-in-endless>.hf-board,.rm-in-endless>.hf-welcome{display:none}.rm-counts{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#674254}
.rm-counts span{font-size:.86rem}.rm-rule,#rm-msg{font-size:.90rem;line-height:1.5;margin:.65rem 0}
#rm-next,#rm-undo{display:block}#rm-undo{min-width:44%;}#rm-undo:disabled{opacity:.55}
.rm-counts,.rm-rule,#rm-msg,#rm-undo,#rm-next,#rm-extras,#rm-board{max-width:440px;margin-left:auto;margin-right:auto}
