/* Isolated game-first module; casino previews and directory layout stay independent. */
.rm-games { padding-top: 1.5rem; padding-bottom: var(--space-6); }
.rm-games + #casinos { padding-top: var(--space-6); }
.rm-games [hidden] { display: none !important; }
/* Reserve the toolbar's natural layout before enhancement to avoid moving cards.
   Keep controls inaccessible until ready; no-JS retains the native disclosure. */
@media (scripting: enabled) {
 .rm-games .rm-games__toolbar[hidden] { display: flex !important; visibility: hidden; }
 @media (max-width: 767px) {
  .rm-games .rm-games__toolbar[hidden] { display: contents !important; }
 }
}
.rm-games h2 { margin: 0 0 .4rem; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.25; }
.rm-games__intro { margin: 0 0 .75rem; color: var(--color-muted); font-size: .9375rem; }
.rm-games__meta { margin: .35rem 0 .65rem; gap: .25rem .4rem; }
.rm-games__meta a { color: inherit; min-height: 28px; text-underline-offset: 3px; }
.rm-games__note { margin: .75rem 0; font-size: .8rem; color: var(--color-muted); }
.rm-games__grid { align-content: start; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.rm-game { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid #65518c; border-radius: .75rem; overflow: hidden; background: linear-gradient(135deg, #15182f, #101221); }
.rm-game__image { position: relative; aspect-ratio: 16 / 10; display: grid; place-content: center; overflow: hidden; background: radial-gradient(ellipse at top, #362350, #0b0e1b); color: #ae90eb; text-align: center; }
.rm-game__image:has(img) { display: block; }
.rm-game__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rm-game__image--contain img:not(.rm-game__backdrop) { position: relative; object-fit: contain; }
/* Preserve portrait artwork; fill the spare space with a quiet echo of its colors. */
.rm-game__image img.rm-game__backdrop { position: absolute; inset: 0; object-fit: cover; filter: blur(18px); transform: scale(1.18); opacity: .5; pointer-events: none; }
.rm-game__image > span:not(.rm-game__fairness) { font-size: 1.7rem; line-height: 1.1; letter-spacing: .4rem; }
.rm-game__image small { margin-top: .5rem; font-size: .75rem; }
.rm-game__body { display: flex; flex-direction: column; flex: 1; padding: .9rem; }
.rm-game h3 { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.3; }
.rm-game__provider { margin: 0 0 .5rem; color: #c7c0da; font-size: .75rem; }
.rm-game__heading:has(.rm-game__checked) .rm-game__provider { margin-bottom: .2rem; }
.rm-game__checked { margin: 0 0 .75rem; color: var(--color-muted); font-size: .6875rem; font-weight: 400; line-height: 1.4; }
.rm-game dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 .75rem; border-top: 1px solid #353047; }
.rm-game dl > div { min-width: 0; padding: .45rem .4rem; border-bottom: 1px solid #353047; }
.rm-game dl > div:nth-child(even) { border-left: 1px solid #353047; }
.rm-game dt { font-size: .7rem; color: var(--color-muted); }
.rm-game dd { margin: .2rem 0 0; font-size: .8rem; font-weight: 600; }
.rm-game__rtp-basis { display:block; margin-top:.2rem; font-size:.75rem; font-weight:400; line-height:1.4; color:var(--color-muted); }
.rm-game .button { margin-top: auto; width: 100%; }
.rm-games__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1rem; }
.rm-games__extra { margin-top: 1rem; }
.rm-games__extra summary { cursor: pointer; min-height: 44px; color: #ccb1f4; }
.rm-games__empty { padding: 1rem; color: var(--color-muted); }
.rm-games :is(a, button, select, summary):focus-visible { outline: 2px solid #c09aff; outline-offset: 3px; }
@media (min-width: 640px) { .rm-games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .rm-games__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.rm-game__fairness { position: absolute; z-index: 1; top: .5rem; right: .5rem; max-width: calc(100% - 1rem); padding: .25rem .45rem; border: 1px solid #9ca0b366; border-radius: .35rem; background: #090d18e8; box-shadow: 0 2px 8px #0006; color: #e3e6ed; font-size: .6875rem; font-weight: 600; line-height: 1.4; }
.rm-game__fairness--provable { color: #b8f4d2; border-color: #75c99b80; }
.rm-games__extra .rm-games__open-label, .rm-games__extra[open] .rm-games__closed-label { display: none; }
.rm-games__extra[open] .rm-games__open-label { display: inline; }
.rm-games.is-toggling { overflow-anchor: none; }

@media (max-width: 639px) {
 .rm-game { display: grid; grid-template-columns: clamp(4.41rem, 20.16vw, 5.355rem) minmax(0, 1fr); column-gap: .75rem; padding: .9rem; }
 .rm-game__image { grid-column: 1; grid-row: 1; align-self: center; aspect-ratio: 4 / 3; margin-bottom: .75rem; border-radius: .45rem; }
 .rm-game__body { display: contents; }
 .rm-game__heading { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; margin-bottom: .75rem; overflow-wrap: anywhere; }
 .rm-game__provider { margin-bottom: 0; }
 .rm-game__checked { margin-bottom: 0; }
 .rm-game dl, .rm-game .button { grid-column: 1 / -1; }
 .rm-game__image .rm-game__fairness { top: auto; bottom: .1rem; right: .1rem; max-width: calc(100% - .2rem); margin: 0; padding: .1rem .15rem; font-size: .5625rem; line-height: 1.15; letter-spacing: normal; text-align: center; }
 .rm-game__image > span:not(.rm-game__fairness) { font-size: 1rem; letter-spacing: .2rem; }
 .rm-game__image small { margin-top: .25rem; font-size: .625rem; }
}

/* One stable utility row; native disclosure content spans the whole container. */
.rm-games .rm-games__filters { display:block; margin-bottom:.35rem; }
.rm-games__utility { display:grid; grid-template-columns:9.5em max-content minmax(0,1fr); align-items:start; column-gap:12px; margin:.15rem 0 0; font-size:.75rem; line-height:1.4; }
.rm-games__utility > .casino-directory__filter-note { grid-area:1/1/2/-1; min-width:0; max-width:none; margin:0; font-size:inherit; }
.rm-games__utility .casino-directory__filter-note summary { display:flex; align-items:center; width:max-content; min-height:28px; padding:0; gap:4px; list-style:none; cursor:pointer; font-size:inherit; }
.rm-games__utility .casino-directory__filter-note p { width:100%; max-width:none; margin:.35rem 0 0; }
.rm-games__utility:has(.casino-directory__filter-note[open]) { margin-bottom:12px; }
.rm-games__utility > a { grid-area:1/2; display:inline-flex; align-items:center; gap:4px; min-height:28px; white-space:nowrap; color:inherit; text-underline-offset:3px; }
@media(max-width:767px) {
 .rm-games__utility { column-gap:10px; font-size:.6875rem; margin-top:.25rem; }
}


@media(max-width:767px) {
 .rm-games .rm-games__filters { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0; }
 .rm-games__filters .plinko-toolbar__status { display:contents; }
 .rm-games__filters .plinko-toolbar__status [data-count] { grid-area:2/2; align-self:start; min-height:28px; margin-top:.25rem; }
 .rm-games__filters .rm-games__utility { grid-area:2/1/3/-1; }
 .rm-games__filters .plinko-toolbar__clear { grid-area:3/1/4/-1; justify-self:end; margin-bottom:.35rem; }
}

/* Game identity stays fixed; the selected Offering owns this single details panel. */
.rm-game__availability { display: flex; align-items: center; gap: .55rem; margin: 0 0 .4rem; min-width: 0; }
.rm-game__availability label { flex: 0 0 auto; color: #c7c0da; font-size: .75rem; }
.rm-game__availability select { display: block; flex: 1; width: 0; max-width: 100%; min-width: 0; height: 36px; min-height: 36px; padding: .25rem 1.7rem .25rem .5rem; border: 1px solid #65518c; border-radius: .4rem; background-color: #17182d; color: #f5efff; font: inherit; font-size: .8125rem; text-overflow: ellipsis; color-scheme: dark; }
.rm-game__details { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rm-game__details .rm-game__checked { min-height: 1em; margin: 0 0 .2rem; }
.rm-game__varies { display: block; margin-top: .15rem; color: #b8aecb; font-size: .625rem; font-weight: 400; }
.rm-game__value { overflow-wrap: anywhere; }
.rm-game__measure { position: absolute; visibility: hidden; pointer-events: none; height: auto; min-height: 0; }
@media (max-width: 639px) {
 .rm-game__availability, .rm-game__details { grid-column: 1 / -1; }
}

/* Keep expanded guidance clear of the desktop hero illustration. */
@media(min-width:1024px){.rm-games__utility .casino-directory__filter-note p{max-width:60%}}
