/* The tips (src/ui/tips.js; TabTibia 2026-10-11, "mensajes de tutorial"): a card in the style of the windows, a golden
   ring that beats round the button it talks about, and an arrow from the card to it */

.tips-card {
  position: fixed;
  z-index: 40002;
  background-image: url("/png/bg.png");
  border: 1px solid #000;
  box-shadow: 0 0 12px #000;
  color: #ddd;
  font-size: 12px;
}

.tips-card .tips-header {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  background: linear-gradient(#5a4520, #3a2c12);
  color: #f2c94c;
  font-weight: bold;
}

.tips-card .tips-body {
  padding: 8px;
  line-height: 1.35;
  box-shadow: inset 0 0 6px black;
}

.tips-card .tips-body b {
  color: #f2c94c;
}

.tips-card .tips-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 0 8px 8px;
  color: #999;
}

.tips-ring {
  position: fixed;
  z-index: 40001;
  border: 3px solid #f2c94c;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(242, 201, 76, 0.8), inset 0 0 8px rgba(242, 201, 76, 0.6);
  pointer-events: none;
  animation: tips-beat 1.4s ease-in-out infinite;
}

.tips-arrow {
  position: fixed;
  z-index: 40001;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid #f2c94c;
  filter: drop-shadow(0 0 4px rgba(242, 201, 76, 0.9));
  pointer-events: none;
}

.tips-arrow.up {
  border-top: 0;
  border-bottom: 18px solid #f2c94c;
}

@keyframes tips-beat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .tips-ring { animation: none; }
}
