.site-shooter-root {
  position: fixed;
  z-index: 10985;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.site-shooter-root[hidden] {
  display: none !important;
}

.site-shooter-root .site-shooter-stack {
  pointer-events: auto;
}

.site-shooter-stack {
  position: fixed;
  z-index: 10986;
  /* База — как у Т/тизера; JS placeStack опустит ниже всех левых FAB. */
  top: calc(var(--site-header-sticky-offset, 96px) + 52px);
  left: max(10px, env(safe-area-inset-left, 0px) + 10px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  box-sizing: border-box;
  width: 44px;
  max-width: min(280px, calc(100vw - 20px));
  overflow: visible;
  transition: width 0.38s cubic-bezier(0.33, 1, 0.36, 1), top 0.2s ease;
  visibility: visible;
  opacity: 1;
}

@media (min-width: 1080px) {
  .site-shooter-stack {
    top: calc(var(--site-header-sticky-offset, 96px) + 10px);
    left: max(16px, env(safe-area-inset-left, 0px) + 16px);
  }
}

.site-shooter-root.is-open .site-shooter-stack {
  width: min(220px, calc(100vw - 20px));
}

.site-shooter-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 11px;
  overflow: hidden;
  border: var(--nb-border-w, 2px) solid var(--border, #111);
  border-radius: var(--nb-radius, 4px);
  background: #0ea5e9;
  color: #111;
  font-family: var(--nb-font, inherit);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 var(--border, #111);
}

.site-shooter-fab-text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0;
}

.site-shooter-fab-glyph {
  display: inline-block;
  min-width: 1.1em;
  text-align: center;
}

.site-shooter-fab-title {
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

.site-shooter-root.is-open .site-shooter-fab-title {
  max-width: 160px;
  margin-left: 8px;
  opacity: 1;
}

.site-shooter-panel {
  position: fixed;
  z-index: 10990;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(8, 12, 20, 0.72);
  pointer-events: auto;
}

.site-shooter-panel[hidden] {
  display: none !important;
}

.site-shooter-card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: var(--nb-border-w, 2px) solid var(--border, #111);
  border-radius: var(--nb-radius, 6px);
  background: #0b1220;
  color: #e8eef7;
  box-shadow: 6px 6px 0 0 var(--border, #111);
  overflow: hidden;
}

.site-shooter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-shooter-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.site-shooter-close {
  border: var(--nb-border-w, 2px) solid var(--border, #111);
  border-radius: 4px;
  background: #f87171;
  color: #111;
  font-weight: 800;
  padding: 6px 10px;
  cursor: pointer;
}

.site-shooter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.85rem;
  color: #b6c2d4;
}

.site-shooter-meta b {
  color: #fff;
}

.site-shooter-stage {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 280px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1628 0%, #12304a 55%, #0d2136 100%);
}

.site-shooter-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.site-shooter-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(5, 10, 18, 0.72);
  text-align: center;
}

.site-shooter-overlay[hidden] {
  display: none !important;
}

.site-shooter-overlay h4 {
  margin: 0;
  font-size: 1.35rem;
}

.site-shooter-overlay p {
  margin: 0;
  max-width: 360px;
  color: #c5d0e0;
  font-size: 0.92rem;
}

.site-shooter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.site-shooter-btn {
  border: var(--nb-border-w, 2px) solid var(--border, #111);
  border-radius: 4px;
  background: #38bdf8;
  color: #111;
  font-weight: 800;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 2px 2px 0 0 var(--border, #111);
}

.site-shooter-btn.is-muted {
  background: #334155;
  color: #e2e8f0;
}

.site-shooter-history {
  max-height: 110px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: #9fb0c7;
}

.site-shooter-history li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-shooter-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #7f90a8;
}

.site-shooter-teaser {
  position: fixed;
  z-index: 10960;
  width: 72px;
  height: 72px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.35));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.site-shooter-teaser[hidden] {
  display: none !important;
}

.site-shooter-teaser-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-shooter-teaser.is-edge-left {
  left: -8px;
}
.site-shooter-teaser.is-edge-right {
  right: -8px;
}
.site-shooter-teaser.is-edge-top {
  top: calc(var(--site-header-sticky-offset, 96px) + 4px);
}
.site-shooter-teaser.is-edge-bottom {
  bottom: max(12px, env(safe-area-inset-bottom, 0px) + 12px);
}

body.site-shooter-open .site-shooter-teaser,
body.site-tamadrak-open .site-shooter-teaser,
body.site-games-open .site-shooter-teaser,
body.site-market-open .site-shooter-teaser {
  display: none !important;
}

@media (max-width: 640px) {
  .site-shooter-card {
    padding: 10px;
    max-height: 96vh;
  }
  .site-shooter-stage {
    min-height: 240px;
  }
}
