
:root {
  --accent: #b794ff;
  --accent-cool: #38bdf8;
  --bg-dark: #050508;
  --bar-bg: rgba(12, 10, 24, 0.94);
  --text: #fff;
  --hover: #8b6eff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 92, 255, 0.16), transparent 55%),
    var(--bg-dark);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

.bloxy-btn {
  position: relative;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(183, 148, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
}

.bloxy-btn:hover {
  background: rgba(183, 148, 255, 0.14);
  border-color: rgba(183, 148, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.22);
}

.bloxy-blue-btn {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.45), rgba(56, 189, 248, 0.22));
}

#viewerBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  background: var(--bar-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(183, 148, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

#viewerBar p {
  font-size: 1.02rem;
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
  background: linear-gradient(90deg, #fff, #b794ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#Btn-Group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#viewerFrame {
  position: absolute;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100vh - 76px);
  border: none;
  background: #050508;
}

@media (max-width: 640px) {
  #viewerBar {
    height: auto;
    min-height: 76px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  #viewerBar p { max-width: 100%; }
  #Btn-Group { justify-content: stretch; }
  #Btn-Group .bloxy-btn { flex: 1; text-align: center; }
  #viewerFrame {
    top: 112px;
    height: calc(100vh - 112px);
  }
}
