/* HaiGames SDK — Rock-Paper-Scissors specific styles
 *
 * 共用的 overlay/sheet/header/status/comment/action-btn 在 games/games.css。
 * 本文件只放 RPS 特有元素。紫色主题与 TTT 对齐（rgba(167, 139, 250, ...)）。
 */

.hg-rps-score {
  text-align: center; font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px; letter-spacing: 0.5px;
}
.hg-rps-score span {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700; font-size: 20px; margin: 0 10px;
}

/* 双方出拳展示区 */
.hg-rps-reveal {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 12px;
  margin-bottom: 14px;
  transition: border-color 0.25s, background 0.25s;
}
.hg-rps-reveal-side {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
}
.hg-rps-reveal-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
}
.hg-rps-reveal-emoji {
  font-size: 44px; line-height: 1;
  min-height: 52px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s;
}
.hg-rps-reveal-emoji.has-pick {
  color: rgba(255, 255, 255, 1);
  animation: hg-rps-pop 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.hg-rps-reveal-vs {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35); font-weight: 600;
  align-self: center; padding-top: 14px;
}

@keyframes hg-rps-pop {
  0%   { transform: scale(0.5); opacity: 0.2; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 胜负配色：紫 = 你赢；粉 = buddy 赢；中性 = 平局 */
.hg-rps-reveal.outcome-you {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(167, 139, 250, 0.1);
}
.hg-rps-reveal.outcome-buddy {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(244, 114, 182, 0.08);
}
.hg-rps-reveal.outcome-tie {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

/* 3 选项按钮网格 */
.hg-rps-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.hg-rps-choice-btn {
  min-height: 88px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
}
.hg-rps-choice-btn:hover:not(:disabled) {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.4);
}
.hg-rps-choice-btn:active:not(:disabled) { transform: scale(0.95); }
.hg-rps-choice-btn:disabled,
.hg-rps-choice-btn.is-disabled {
  opacity: 0.45; cursor: not-allowed;
}
.hg-rps-choice-btn.is-picked {
  background: rgba(167, 139, 250, 0.22);
  border-color: rgba(167, 139, 250, 0.65);
  opacity: 1;
}

.hg-rps-choice-emoji {
  font-size: 32px; line-height: 1;
}
.hg-rps-choice-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.7);
}

/* 窄屏（小于 420px）堆叠为单列，保持 64×64 触达目标 */
@media (max-width: 419px) {
  .hg-rps-choices { grid-template-columns: 1fr; gap: 8px; }
  .hg-rps-choice-btn {
    min-height: 64px; flex-direction: row; gap: 14px;
    padding: 12px 18px; justify-content: flex-start;
  }
  .hg-rps-choice-emoji { font-size: 28px; }
  .hg-rps-choice-label { font-size: 14px; }
  .hg-rps-reveal-emoji { font-size: 38px; min-height: 46px; }
}
