.sb-panel {
  position: fixed;
  right: 30px;
  top: 20px;
  z-index: var(--z-panel);
  display: inline-flex;
  gap: 8px;
  padding: 12px;
  border-radius: var(--panel-radius);
  background: rgba(5, 5, 15, 0.75);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.65);
  overflow: hidden;       /* clip the internal blur */
  isolation: isolate;     /* keep its own stacking context */
  cursor: grab;
}

.sb-panel::before {
  content: '';
  position: absolute;
  inset: -25%;            /* extend beyond edges for softer blur */
  z-index: -1;
  border-radius: inherit;

  /* "fake glass" texture – you can tweak */
  background:
    radial-gradient(circle at 0% 0%,   rgba(255,255,255,0.25), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0,0,0,0.55),       transparent 35%);
  
  filter: blur(54px);     /* ⬅ blur only THIS layer, not the video */
  opacity: 0.7;
}

.sb-panel:active {
  cursor: grabbing;
}

/* buttons & icons stay as you had */
.sb-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 2px;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.sb-panel button .sb-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.sb-panel[data-visible="0"] { display: none; }

.sb-panel .is-auto { background: rgba(255,255,255,.15); }

.sb-panel [data-act][data-on="1"]:not([data-act="fullscreen"]),
.sb-panel [data-act].is-on:not([data-act="fullscreen"]),
.sb-panel [data-act][aria-pressed="true"]:not([data-act="fullscreen"]) {
  transform: translateY(1px);
  filter: brightness(0.6);
  /*outline: 2px solid var(--accent, #00b3ff);*/
}

.sb-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
}

.sb-panel button .sb-icon {
  width: 20px;
  height: 20px;
  display: block;
}

#backgroundVideo,
.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  pointer-events: none;   /* no clicks, no UI */
}

/* Use small-viewport height if available (iOS safe area) */
@supports (height: 100svh) {
  #backgroundVideo,
  .bg-video { height: 100svh; }
}

.row-wrap.frog-up   { transform: scale(1.06); opacity: 1; z-index: 500;    /* transition: transform 1s ease, opacity 1s ease; */ }
.row-wrap.frog-down { transform: scale(0.94); opacity: 0.70; /* transition: transform 1s ease, opacity 1s ease; */ }

/* ---------- RESPONSIVE POLISH ----------
   Keeps layout logic intact; adjusts typography & rail width on smaller canvases. */
@media (max-width: 1440px){
  :root{
    --sb-width:           1200px;
    --sb-width-collapsed: 920px;
    --onecol-content-w:   920px;
    --onecol-stack-w:     435px;
  }
}

@media (max-width: 1280px){
  :root{
    --base-font-size:   13.5px;
    --status-font-size: 26px;
    --onecol-stack-w:   420px;
  }
}

@media (max-width: 1180px){
  /* If you ever want the code/name swap automatically purely via CSS: 
     you can rely on JS (already implemented), but here’s a safe fallback */
  .country-name { display:none; }
  .country-code { display:block; }
}

/* Slightly tighter */
@media (max-width: 1440px){
  :root{
    --col-left-w:   435px;
    --col-right-w:  435px;
    --col-info-w:   280px;

    /* unified stack rail can slim a bit too */
    --onecol-stack-w: 435px;
  }
}

/* Ultra tight (still two columns, just denser) */
@media (max-width: 1000px){
  :root{
    --sb-width: 95%;
    --sb-width-collapsed: 95%;
    --col-left-w:   49%;
    --col-right-w:  49%;
    --col-info-w:   220px;
    --onecol-content-w: 95%;
    --onecol-stack-w: 49%;
    --current-points-right:40px;
  }
}