/* GameOnFamily — Friends & Family (pre-release) mode bar.
   Injected by ff-mode.js only when the URL carries ?ff=1. Class names are
   namespaced (gof-ffbar*) and every property is explicit so the bar renders
   consistently on top of whatever stylesheet the host game ships. */

.gof-ffbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  padding: 7px 14px;
  background: #ffb920;
  color: #2f2c28;
  font-family: 'Arimo', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.3;
}

.gof-ffbar * { box-sizing: border-box; }

.gof-ffbar-label {
  font-weight: 700;
  white-space: nowrap;
}

.gof-ffbar-dd {
  position: relative;
}

.gof-ffbar button.gof-ffbar-trigger,
.gof-ffbar button.gof-ffbar-feedback {
  margin: 0;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 5px 12px;
  background: #ffffff;
  color: #2f2c28;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}

.gof-ffbar button.gof-ffbar-trigger:hover,
.gof-ffbar button.gof-ffbar-feedback:hover {
  background: #f1f1f1;
}

.gof-ffbar-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100000;
  min-width: 210px;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.gof-ffbar-menu[hidden] { display: none; }

.gof-ffbar a.gof-ffbar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #2f2c28;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.gof-ffbar a.gof-ffbar-item:hover {
  background: #f0f4ec;
}

.gof-ffbar-item-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.gof-ffbar a.gof-ffbar-home {
  margin-left: auto;
  color: #2f2c28;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.gof-ffbar a.gof-ffbar-home:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .gof-ffbar { font-size: 12px; padding: 6px 10px; gap: 6px; }
  .gof-ffbar a.gof-ffbar-home { margin-left: 0; }
}
