/* MatchPro — entry to the Graffiti Drop fribet roulette.
   The button stays hidden until fribet-entry.js marks the Telegram user;
   fribet-entry.js now allows EVERYONE (owner decision 11.11).
   No global style.css changes. */

.fribet-fab {
  display: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fribet-fab.is-owner {
  display: flex;
  pointer-events: auto;
}

.fribet-fab.is-owner:active {
  transform: translateY(1px) scale(.97);
}

.fribet-fab.is-owner:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 5px;
  border-radius: 16px;
}

/* ---------- fullscreen preview ---------- */

.fribet-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  background: #0b1018;
  color: #f5f7fb;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overscroll-behavior: contain;
  transition: opacity .18s ease, visibility 0s linear .18s;
}

.fribet-overlay.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .18s ease;
}

.fribet-bar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: #0b1018;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.fribet-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(0, 229, 255, .42);
  border-radius: 999px;
  background: rgba(10, 15, 25, .92);
  color: #8ff0ff;
  font-family: 'Exo 2', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fribet-back:active {
  transform: scale(.97);
}

.fribet-back:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 2px;
}

.fribet-bar-title {
  margin-left: auto;
  overflow: hidden;
  color: #8ff0ff;
  font-family: 'Russo One', 'Exo 2', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: .82;
}

.fribet-frame {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #0b1018;
}

html.fribet-open,
html.fribet-open body {
  overflow: hidden;
}

@media (max-width: 380px) {
  .fribet-bar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fribet-back {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  .fribet-bar-title {
    font-size: 10px;
    letter-spacing: .14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fribet-overlay {
    transition: none;
  }
}
