/* Rumplebitskin Games: a full-screen panel over the feed. Same dark palette and structure as groups.css. */
html.fbgm-open, html.fbgm-open body { overflow: hidden; }
#fbgm { position: fixed; inset: 0; z-index: 500; display: none; background: #0a0a0a; color: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-text-size-adjust: 100%; }
#fbgm.on { display: block; }
#fbgm *, #fbgm *::before, #fbgm *::after { box-sizing: border-box; }
#fbgm h1, #fbgm h3, #fbgm p { margin: 0; }
.fbgm-wrap { max-width: 720px; margin: 0 auto; padding: 14px 14px 90px; min-height: 100%; }

.fbgm-top { display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; border-bottom: 1px solid #1e1e1e; margin-bottom: 14px; }
.fbgm-top h1 { font-size: 20px; font-weight: 800; flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.fbgm-back { flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid #1e1e1e; background: #141414; color: #eeeeee; font: inherit; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fbgm-back:hover { border-color: #9945ff; }
.fbgm-back:focus-visible, .fbgm-btn:focus-visible { outline: 2px solid #00ff88; outline-offset: 2px; }

.fbgm-bits { flex: none; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; color: #ffd064; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 999px; padding: 5px 12px; }

.fbgm-hint { font-size: 12px; color: #888888; line-height: 1.45; }
.fbgm-hint a { color: #ffd064; text-decoration: underline; }

.fbgm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.fbgm-card { background: #141414; border: 1px solid #1e1e1e; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.fbgm-card h3 { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.fbgm-card p { font-size: 13px; color: #aaaaaa; line-height: 1.45; flex: 1; overflow-wrap: anywhere; }

.fbgm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid #2a2a2a; background: #1a1a1a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; align-self: flex-start; }
.fbgm-btn:hover { border-color: #9945ff; }
.fbgm-btn.primary { background: linear-gradient(180deg, #ffd064, #ffb020); border-color: transparent; color: #0a0a0a; font-weight: 800; align-self: stretch; justify-content: center; }
.fbgm-btn.primary:hover { opacity: 0.92; }

.fbgm-frame-wrap { position: relative; width: 100%; max-width: 480px; margin: 0 auto; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 1px solid #1e1e1e; background: #0a0a0a; }
.fbgm-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.fbgm-lb { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.fbgm-lb-head { font-size: 16px; font-weight: 800; padding-top: 14px; border-top: 1px solid #1e1e1e; }
.fbgm-lb-card { background: #141414; border: 1px solid #1e1e1e; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.fbgm-lb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fbgm-lb-card-top h3 { font-size: 15px; font-weight: 800; }
.fbgm-lb-pots { font-size: 12px; font-weight: 700; color: #ffd064; background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.25); border-radius: 10px; padding: 6px 10px; }
.fbgm-lb-tabs { display: flex; gap: 6px; }
.fbgm-lb-tab { padding: 5px 11px; border-radius: 999px; border: 1px solid #2a2a2a; background: #1a1a1a; color: #cccccc; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.fbgm-lb-tab.on { background: linear-gradient(180deg, #ffd064, #ffb020); border-color: transparent; color: #0a0a0a; }
.fbgm-lb-tab:hover:not(.on) { border-color: #9945ff; }
.fbgm-lb-body { display: flex; flex-direction: column; max-height: 240px; overflow-y: auto; }
.fbgm-lb-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; color: #cccccc; border-bottom: 1px solid #1a1a1a; }
.fbgm-lb-row:last-child { border-bottom: none; }
.fbgm-lb-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbgm-lb-vals { flex: none; display: flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.fbgm-lb-vals b { color: #ffd064; }
.fbgm-lb-vals em { font-style: normal; color: #00ff88; font-size: 11px; }
.fbgm-lb-empty { font-size: 12px; color: #888888; padding: 6px 0; }

@media (max-width: 420px) { .fbgm-wrap { padding: 12px 12px 90px; } .fbgm-grid { grid-template-columns: 1fr; } }
