:root {
  --bg-start: #101010;
  --bg-end: #202020;
  --panel-bg: #161616;
  --panel-border: #2f2f2f;
  --text-main: #f3f3f3;
  --text-muted: #c7c7c7;
  --accent: #ffd447;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 20% 20%, var(--bg-end), var(--bg-start));
}

.screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
}

.panel {
  width: min(280px, 100%);
  min-height: 360px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, #1b1b1b 0%, var(--panel-bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.countdown {
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  animation: pulse 0.85s ease-in-out infinite;
}

.spin-wrap {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  border: 1px solid #3a3a3a;
  background: #0c0c0c;
  display: grid;
  place-items: center;
  animation: spin 0.62s linear infinite;
}

.spin-wrap.revealed {
  animation: none;
}

.amulet-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0);
  transition: filter 0.28s linear;
}

.spin-wrap.revealed .amulet-image {
  filter: brightness(1);
}

.details {
  text-align: center;
  opacity: 0;
}

.details.show {
  animation: fade-in 0.32s ease-out forwards;
}

.amulet-name {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.amulet-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-muted);
}

.close-btn {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #121212;
  background: var(--accent);
  cursor: pointer;
}

.close-btn:active {
  transform: translateY(1px);
}

.hidden {
  display: none;
}

@keyframes pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
