/* Trivia Rush — UI kit shared styles */
@import url('../../colors_and_type.css');

* { box-sizing: border-box; }

.tr-screen {
  width: 100%; height: 100%;
  background: var(--bg-app);
  color: white;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.tr-screen.light { background: #F2F2F7; color: #1C1C1E; }
.tr-screen.ink   { background: #0E0828; }

.tr-screen .pad { padding: 0 20px; }

.tr-app-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 60px 20px 8px;
}
.tr-app-bar .icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  border: none; color: white; font-size: 18px; font-weight: 700;
  cursor: pointer;
}
.tr-app-bar .icon-btn.light { background: rgba(60,60,67,0.08); color: #1C1C1E; }

/* Hard-shadow buttons */
.tr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px;
  padding: 16px 28px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(.6,.1,.3,1), box-shadow 140ms cubic-bezier(.6,.1,.3,1);
  user-select: none;
}
.tr-btn:active { transform: translateY(4px); }
.tr-btn.violet { background: #6C3BFF; color: white; box-shadow: 0 6px 0 #4A21D9; }
.tr-btn.violet:active { box-shadow: 0 2px 0 #4A21D9; }
.tr-btn.yellow { background: #FFD60A; color: #0E0828; box-shadow: 0 6px 0 #E6B800; }
.tr-btn.yellow:active { box-shadow: 0 2px 0 #E6B800; }
.tr-btn.pink   { background: #FF4D8D; color: white; box-shadow: 0 6px 0 #E12C6F; }
.tr-btn.mint   { background: #00E5A8; color: #0E0828; box-shadow: 0 6px 0 #00B886; }
.tr-btn.ink    { background: #0E0828; color: white; box-shadow: 0 6px 0 rgba(0,0,0,0.6); }
.tr-btn.ghost  { background: transparent; color: white; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); }
.tr-btn.ghost.dark { color: #6C3BFF; box-shadow: inset 0 0 0 2px #6C3BFF; }
.tr-btn.full   { width: 100%; }
.tr-btn.lg     { padding: 18px 32px; font-size: 17px; }

@keyframes tr-bounce-in {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes tr-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
@keyframes tr-pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.08); }
}
@keyframes tr-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@keyframes tr-confetti-fall {
  0%   { transform: translateY(-20px) rotate(0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(900px) rotate(720deg); opacity: 0; }
}
@keyframes tr-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes tr-fill {
  from { width: 0%; }
}

.tr-bounce-in { animation: tr-bounce-in 420ms cubic-bezier(.34,1.56,.64,1) both; }
.tr-pulse     { animation: tr-pulse 1.6s ease-in-out infinite; }
.tr-float     { animation: tr-float 3s ease-in-out infinite; }
