/* LOOT Sheep — reusable component styles */

/* #aaaaaa matches the background baked into the Rive artboard */
.shp-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #aaaaaa;
}

.shp-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* inset clip shaves the artboard's baked-in 1px darker edge line */
.shp-canvas {
  touch-action: none;
  cursor: pointer;
  clip-path: inset(2px);
}

/* white mode: rive canvas keeps rendering (hidden), the keyed WebGL view shows */
.shp-root.shp-white { background: #ffffff; }

.shp-white .shp-canvas {
  position: absolute;
  visibility: hidden;
}

.shp-view {
  touch-action: none;
  cursor: pointer;
  clip-path: inset(2px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.14));
}

.shp-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px 16px;
}

.shp-bar:empty { display: none; }

.shp-btn {
  font: 700 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111111;
  background: #ffffff;
  border: 2px solid #111111;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 3px 0 #111111;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.12s, box-shadow 0.12s;
}

.shp-btn:hover { transform: translateY(-1px); }

.shp-btn:active,
.shp-btn.shp-on {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #111111;
  background: #111111;
  color: #ffffff;
}
