/* trophies.css — the Trophy Room, the new-trophy toast, and the Old Frog Map */
/* ---------- Trophy Room ---------- */
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.trophy {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 10px 12px;
  text-align: center;
}

.trophy.earned {
  border-color: var(--brick-yellow);
  box-shadow: 0 0 18px rgba(245, 205, 48, 0.25);
}

.trophy .t-view {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  perspective: 400px;
}

.trophy .t-emoji { font-size: 44px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.trophy .t-q { font-size: 36px; font-weight: 900; color: rgba(255, 255, 255, 0.22); }

.trophy .t-voxel {
  transform: rotateX(-18deg) rotateY(28deg);
  transform-style: preserve-3d;
}

.trophy .t-pedestal {
  margin: 0 auto 10px;
  width: 68px;
  height: 12px;
  border-radius: 4px 4px 10px 10px;
  background: linear-gradient(180deg, #d9b23a, #8a6a12);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.trophy:not(.earned) .t-pedestal { background: linear-gradient(180deg, #63636e, #38383f); }

.trophy .t-name { font-size: 13px; font-weight: 900; }
.trophy .t-hint { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.55); margin-top: 4px; }

.trophy.tappable { cursor: pointer; }
.trophy.tappable:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- New-trophy toast ---------- */
.trophy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 40;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(180deg, #f5cd30, #c78d1b);
  color: #3a2a05;
  border: 4px solid #fff;
  border-radius: 24px;
  padding: 26px 40px;
  text-align: center;
  box-shadow: 0 0 60px rgba(245, 205, 48, 0.9);
  pointer-events: none;
}

.trophy-toast.show { animation: trophyIn 2.4s ease forwards; }

@keyframes trophyIn {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(-15deg); }
  15%  { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); }
  22%  { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  80%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

.trophy-toast h3 { font-size: 26px; font-weight: 900; text-transform: uppercase; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4); }
.trophy-toast p { font-size: 15px; font-weight: 800; margin-top: 6px; }

/* ---------- The Old Frog Map ---------- */
.map-panel { max-width: 540px; }

.map-sheet {
  position: relative;
  margin: 14px auto 6px;
  max-width: 460px;
  height: 300px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.25), transparent 70%),
    #e8d5a3;
  border: 6px solid #8a6647;
  border-radius: 12px;
  color: #4a3418;
  overflow: hidden;
}

.map-road {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 34px;
  background: #565662;
  border-top: 3px solid #3c3c46;
  border-bottom: 3px solid #3c3c46;
}

.map-road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -2px;
  background: repeating-linear-gradient(90deg, #f5cd30 0 14px, transparent 14px 28px);
}

.map-river {
  position: absolute;
  top: -30px;
  bottom: -30px;
  right: 16%;
  width: 42px;
  background: #3f7fc4;
  border-left: 4px solid #2c5c94;
  border-right: 4px solid #2c5c94;
  transform: rotate(8deg);
}

.map-river::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 16px, rgba(255, 255, 255, 0.3) 16px 19px);
}

.map-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.map-spot span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #4a3418;
  text-shadow: 0 0 4px #e8d5a3, 0 0 4px #e8d5a3;
}

.map-note {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

/* passive perk granted by an earned trophy */
.t-reward {
  font-size: 11px;
  font-weight: 800;
  color: var(--brick-yellow);
  margin-top: 3px;
  line-height: 1.3;
}
