/* ---------------- rps ---------------- */
/* Drawn in the Hub frame's own 1200×900 and scaled onto the frame box by Rps.layout(). */
#rps { position: fixed; z-index: 16; overflow: hidden; }
#rps[hidden] { display: none; }
#rps, #rps * { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.rps-world {
  position: absolute; left: 0; top: 0; width: 1200px; height: 900px;
  transform-origin: 0 0;
}

/* The four rounds, along the top. */
.rps-rounds { position: absolute; top: 96px; left: 0; right: 0; display: flex; justify-content: center; gap: 20px; }
.rps-round {
  width: 56px; height: 56px; box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .3);
}
.rps-round.rps-now { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.rps-round svg { display: block; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* The two hands face each other: the player's from the left, Bungle's the same drawing
   mirrored, from the right. The shake is on the wrapper, the mirror on the picture. */
.rps-hand { position: absolute; top: 250px; width: 260px; height: 260px; }
.rps-mine { left: 260px; }
.rps-hers { left: 680px; }
.rps-hand img { display: block; width: 100%; height: 100%; }
.rps-hers img { transform: scaleX(-1); }
/* The rock drawing has its thumb underneath. Turned a quarter, both fists show it on top,
   arms still coming in from below: hers turned, the player's (and the button's) the same
   turned and mirrored. */
.rps-hers img[data-hand="rock"] { transform: rotate(-90deg); }
.rps-mine img[data-hand="rock"], .rps-pick img[data-hand="rock"] { transform: scaleX(-1) rotate(-90deg); }
/* Waiting for the pick: a slow bob, over and over. */
.rps-idle { animation: rps-shake 1.6s ease-in-out infinite; --lift: -14px; }
/* The pick: three quick, decisive shakes (SHAKE_MS in rps.js). */
.rps-shake { animation: rps-shake .3s ease-in-out 3; --lift: -34px; }
@keyframes rps-shake { 50% { transform: translateY(var(--lift)) rotate(-4deg); } }

/* What to do, or how the round went. */
.rps-line {
  position: absolute; top: 548px; left: 0; right: 0; text-align: center;
  font: 500 32px/1.2 Inter, system-ui, sans-serif; color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .8);
}

/* The player's three choices. */
.rps-pad { position: absolute; top: 620px; left: 0; right: 0; display: flex; justify-content: center; gap: 28px; }
.rps-pick {
  width: 104px; height: 104px; padding: 14px; box-sizing: border-box; cursor: pointer;
  border: 3px solid rgba(255, 255, 255, .8); border-radius: 0; background: rgba(0, 0, 0, .35);
}
.rps-pick img { display: block; width: 100%; height: 100%; pointer-events: none; }
.rps-pick:enabled:hover, .rps-pick:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .14); outline: none; }
.rps-pick:enabled:active { background: rgba(255, 255, 255, .26); }
.rps-pick:disabled { cursor: default; opacity: .35; }
/* While a round's result stands, a click anywhere moves on: the buttons let it through. */
.rps-skippable { cursor: pointer; }
.rps-skippable .rps-pad { pointer-events: none; }
.rps-pick.rps-picked { opacity: 1; border-color: #fff; background: rgba(255, 255, 255, .2); }
