/* Rumplebitskin Rewards: a full-screen panel over the feed. Same dark palette and structure as games.css. */
html.fbrw-open, html.fbrw-open body { overflow: hidden; }
#fbrw { 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%; }
#fbrw.on { display: block; }
#fbrw *, #fbrw *::before, #fbrw *::after { box-sizing: border-box; }
#fbrw h1, #fbrw p { margin: 0; }
.fbrw-wrap { max-width: 480px; margin: 0 auto; padding: 14px 14px 90px; min-height: 100%; text-align: center; }

.fbrw-top { display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; border-bottom: 1px solid #1e1e1e; margin-bottom: 22px; text-align: left; }
.fbrw-top h1 { font-size: 20px; font-weight: 800; flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.fbrw-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; }
.fbrw-back:hover { border-color: #9945ff; }
.fbrw-back:focus-visible, .fbrw-btn:focus-visible { outline: 2px solid #00ff88; outline-offset: 2px; }
.fbrw-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; }

.fbrw-mascot { display: block; width: 96px; height: auto; margin: 4px auto 0; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.fbrw-wheelwrap { position: relative; width: 260px; height: 260px; margin: 10px auto 20px; }
.fbrw-wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 4px solid #2a2a2a;
  background: conic-gradient(#1a1a1a 0deg 60deg, #141414 60deg 120deg, #1a1a1a 120deg 180deg, #141414 180deg 240deg, #1a1a1a 240deg 300deg, #141414 300deg 360deg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 60px rgba(0,0,0,.6), inset 0 0 40px rgba(153,69,255,.25);
  position: relative;
  transition: transform 4s cubic-bezier(.12,.72,.14,1);
}
.fbrw-seg { position: absolute; inset: 0; display: flex; justify-content: center; transform-origin: 50% 50%; pointer-events: none; }
.fbrw-seg span {
  display: block; margin-top: 14px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 20px; font-weight: 800; color: #ffd064;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.fbrw-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 2;
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 20px solid #00ff88;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
}

.fbrw-status { font-size: 14px; color: #cccccc; margin-bottom: 16px; min-height: 20px; }
.fbrw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 34px; border-radius: 999px; border: none;
  background: linear-gradient(180deg, #ffd064, #ffb020); color: #0a0a0a;
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .5px; cursor: pointer;
}
.fbrw-btn:disabled { opacity: .6; cursor: default; }
.fbrw-btn:hover:not(:disabled) { opacity: .92; }
.fbrw-hint { margin-top: 18px; font-size: 12px; color: #888888; line-height: 1.5; }

.fbrw-lb-toggle {
  display: block; width: 100%; margin: 14px 0 0; padding: 10px 14px; border-radius: 999px;
  border: 1px solid #2a2a2a; background: #141414; color: #eeeeee; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.fbrw-lb-toggle:hover { border-color: #9945ff; }
.fbrw-lb-panel { display: none; margin-top: 10px; text-align: left; background: #141414; border: 1px solid #1e1e1e; border-radius: 14px; padding: 12px 14px; max-height: 260px; overflow-y: auto; }
.fbrw-lb-panel.on { display: block; }
.fbrw-lb-title { font-size: 10px; letter-spacing: 1px; color: #888888; margin-bottom: 8px; text-transform: uppercase; }
.fbrw-lb-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13px; color: #cccccc; }
.fbrw-lb-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbrw-lb-row b { color: #ffd064; flex: none; font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.fbrw-lb-empty { font-size: 12px; color: #888888; padding: 4px 0; }

@media (max-width: 420px) { .fbrw-wheelwrap { width: 220px; height: 220px; } }
