/* Below-the-fold SSR SEO sections for /mafia, /room, and /room/games/:slug + over-phase viral share cards.
   Strictly adheres to Round 4 DS tokens (#fff, #f4f5f9, #222, #5f5f6b, #2e44ff, #ffb71b, Geist, >=13px, >=44px). */

#app.mf[data-boot="1"],#app.mf[data-boot="1"] .mf-boot{min-height:100dvh}

.rm-seo{width:100%;margin:24px 0 0;padding:24px 0 8px;border-top:1px solid var(--line,#ebebeb);display:flex;flex-direction:column;gap:22px;color:var(--ink,#222);font-family:var(--sans,Geist,system-ui,-apple-system,sans-serif)}
.rm-seo-head{display:flex;flex-direction:column;gap:8px}
.rm-seo-head h2,.rm-seo-block h2{margin:0;font-family:var(--sans,Geist,system-ui,-apple-system,sans-serif);font-size:22px;font-weight:600;line-height:1.25;letter-spacing:-.015em;color:var(--ink,#222)}
.rm-seo-head h2 em,.rm-seo-block h2 em{font-style:normal;color:var(--cobalt,#2e44ff)}
.rm-seo-lede{font-size:16px;line-height:1.5;color:var(--muted,#5f5f6b);max-width:66ch;margin:0}

.rm-seo-specs{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.rm-seo-specs li{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:999px;background:var(--raised,#f4f5f9);border:1px solid var(--rim,rgba(46,68,255,.14));font-size:13px;font-weight:600;color:var(--ink-2,#3d3f4c)}

.rm-seo-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.rm-seo-block{display:flex;flex-direction:column;gap:12px;background:var(--raised,#f4f5f9);border-radius:20px;padding:18px}

.rm-seo-steps,.rm-seo-roles{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.rm-seo-steps li{display:flex;align-items:flex-start;gap:12px;font-size:15px;line-height:1.45;color:var(--ink,#222)}
.rm-seo-steps li b{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--cobalt,#2e44ff);color:#fff;font-size:13px;font-weight:700;margin-top:1px}
.rm-seo-roles li{display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:1.45;color:var(--muted,#5f5f6b)}
.rm-seo-roles li b{font-size:15px;font-weight:600;color:var(--ink,#222)}

.rm-seo-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.rm-seo-card{display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:20px;background:#fff;border:1px solid var(--rim,rgba(46,68,255,.14));color:var(--ink,#222);text-decoration:none;min-height:112px;box-shadow:var(--shadow-rest,0 1px 2px rgba(9,12,46,.05),0 6px 18px rgba(9,12,46,.06));transition:transform .15s,border-color .2s}
.rm-seo-card:hover{border-color:rgba(46,68,255,.45);transform:translateY(-2px)}
.rm-seo-card b{font-size:17px;font-weight:600;line-height:1.25;color:var(--ink,#222)}
.rm-seo-card span{font-size:14px;line-height:1.4;color:var(--muted,#5f5f6b)}
.rm-seo-card small{margin-top:auto;font-size:13px;font-weight:600;color:var(--cobalt,#2e44ff)}
.rm-seo-card.is-accent{border-style:dashed;border-color:var(--chip-edge,#7d86c6)}
.rm-seo-pills{display:flex;flex-wrap:wrap;gap:8px}
.rm-seo-pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px;border-radius:999px;background:#fff;border:1px solid var(--rim,rgba(46,68,255,.16));color:var(--ink,#222);text-decoration:none;font-size:14px;transition:border-color .15s,background-color .15s,transform .15s}
.rm-seo-pill:hover{border-color:rgba(46,68,255,.45);background:var(--soft,#eef0ff);transform:translateY(-1px)}
.rm-seo-pill b{font-weight:600;color:var(--ink,#222)}
.rm-seo-pill small{font-size:13px;font-weight:500;color:var(--muted,#5f5f6b)}
.rm-seo-pill.is-accent{border-style:dashed;border-color:var(--cobalt,#2e44ff);background:var(--soft,#eef0ff)}

.rm-faq-list{display:flex;flex-direction:column;gap:10px}
.rm-faq-item{background:#fff;border:1px solid var(--rim,rgba(46,68,255,.14));border-radius:16px;padding:4px 16px}
.rm-faq-item summary{list-style:none;cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;font-size:15px;font-weight:600;line-height:1.35;color:var(--ink,#222)}
.rm-faq-item summary::-webkit-details-marker{display:none}
.rm-faq-item summary::after{content:"+";flex:none;font-size:20px;font-weight:600;color:var(--cobalt,#2e44ff)}
.rm-faq-item[open] summary::after{content:"−"}
.rm-faq-item p{margin:0 0 14px;font-size:14px;line-height:1.55;color:var(--muted,#5f5f6b)}

.rm-seo-links{display:flex;flex-wrap:wrap;gap:10px}
.rm-seo-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:999px;background:#fff;border:1px solid rgba(46,68,255,.22);color:var(--cobalt,#2e44ff);font-size:15px;font-weight:600;text-decoration:none;box-shadow:0 1px 2px rgba(9,12,46,.04)}
.rm-seo-link:hover{background:var(--soft,#eef0ff);border-color:rgba(46,68,255,.45)}

.rm-over-share{flex-direction:column!important;align-items:stretch!important;gap:10px!important}
.rm-over-share .mf-share-text{gap:8px}

@media (min-width:720px){
  .rm-seo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:719.98px){
  .rm-seo{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){
  .rm-seo-card{transition:none}
}
