/* Rami — aligné sur FamiTable : fond nuit, feutre, or, panneaux vitrés sombres */
html:has(.rmiview){background:#0c1e2d}
body:has(.rmiview){background:linear-gradient(#1a4258,#0c1e2d 420px,#070f18) no-repeat #0c1e2d;color:#f4fbff;min-height:100vh}
body:has(.rmiview) #app .btn.alt.sm,body:has(.rmiview) #app>.row *,body:has(.rmiview) #app>div>.row:first-child *{color:#eaf7ff}
body:has(.rmiview) .btn.alt{background:#ffffff14;border-color:#ffffff3b;color:#eaf7ff}
body:has(.rmiview) .muted{color:#9fd1e4}
body:has(.rmiview) #app>.row,body:has(.rmiview) #app>div>.row:first-child{color:#cfe9f5}
.rmiview{color:#f4fbff}
.rmiview .panel{background:linear-gradient(#ffffff14,#ffffff08);border:1px solid #ffffff2b;color:#f4fbff;box-shadow:0 6px 18px #0006}
.rmiview .panel h2,.rmiview .panel h3{color:#ffe08a;font-family:'Lilita One','Baloo 2',sans-serif;letter-spacing:.03em;text-shadow:0 2px 0 #0006}
.rmiview .panel.rmiTable{background:radial-gradient(ellipse at 50% 35%,#2f7a58,#17503a 70%,#0f3a2a);border:6px solid #6b4423;box-shadow:inset 0 0 28px #0009,0 6px 18px #0007}
.rmiview .btn.alt{background:#ffffff14;color:#eaf7ff;border:1px solid #ffffff3b}
.rmiview .btn:not(.alt){background:linear-gradient(#ffe48a,#e8b923);color:#3a2308;border:0;font-weight:800}
.rmiview .btn:disabled{opacity:.4}
.rmiview .rmiLaidTable,.rmiview .rmiEmptyTable{background:#0b2a1e66;border:1px dashed #ffffff33;color:#cfe9dc;border-radius:14px}
.rmiview .rmipile{background:#0b2a1e88;border:1px solid #ffffff33;color:#f4fbff;border-radius:14px}
.rmiview .rmipile b{color:#ffe08a}
.rmiview .rmipile small{color:#bfe3d2}
.rmiview .rmiHand{padding-top:8px}
.rmiview .rmiScoreboard,.rmiview .rmiScoreboard *{color:#f4fbff}
.rmiview .rmiScoreboard .muted,.rmiview .rmiScoreboard small,.rmiview summary{color:#b6dcee}
.rmiview .rmiLaidName{color:#ffe08a}
.rmiview .rmihelp,.rmiview .rmisuggest{background:#0b2a1ecc;border:1px solid #ffffff33;color:#f4fbff}
.rmiview .rmiScorePlayer{border-color:#ffffff22}
.rmiview .msg{color:#ffe9a8;font-weight:700}
body:has(.rmiview) #app>.row .muted,body:has(.rmiview) #app>div>.row:first-child .muted{color:#cfe9f5}
.rmiview .btn:disabled{opacity:.55}
.rmiview .btn:not(.alt):disabled{background:#6b5a2a;color:#e9dcae}
.rmiview .btn.alt:disabled{color:#9fb8c6}
/* feuilles et fenêtres (options, règles, fin de partie) : texte sombre sur fond crème */
body:has(.rmiview) .modal .box,body:has(.rmiview) .modal .box *{color:#2a2118;text-shadow:none}
body:has(.rmiview) .modal .box .btn.alt{background:#fffaf0;border:2px solid #d9cdb4;color:#2a2118}
body:has(.rmiview) .modal .box .btn:not(.alt){color:#fff}
body:has(.rmiview) .modal .box .muted{color:#6f6556}
