/* CHANGELOG BUTTON */
.hud-changelog-btn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 0, .28);
  background: rgba(255, 196, 0, .06);
  color: rgba(255, 220, 120, .95);
  display: inline-grid;
  place-items: center;
  margin-left: 10px;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(255,196,0,.10), 0 0 20px rgba(255,196,0,.08);
  transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.hud-changelog-btn:hover{
  border-color: rgba(255, 196, 0, .48);
  background: rgba(255, 196, 0, .10);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,196,0,.16), 0 0 28px rgba(255,196,0,.16);
}

.hud-changelog-btn:active{ transform: translateY(0); }

.hud-changelog-btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 196, 0, .18),
    0 0 0 1px rgba(255, 196, 0, .28) inset,
    0 0 26px rgba(255,196,0,.14);
}

/* pulsing highlight until user reads it */
.hud-changelog-btn.is-glowing{ position: relative; }
.hud-changelog-btn.is-glowing::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: 999px;
  border: 1px solid rgba(255,196,0,.28);
  box-shadow: 0 0 34px rgba(255,196,0,.18);
  animation: changelogPulse 1.6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes changelogPulse{
  0%   { transform: scale(.92); opacity: .25; }
  55%  { transform: scale(1.06); opacity: .55; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* MODAL */
#changelog-modal[hidden]{ display:none !important; }
#changelog-modal{
  position: fixed;
  inset: 0;
  z-index: 99998;
}

.changelog-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.changelog-card{
  position: absolute;
  top: 96px;
  right: 16px;
  width: min(520px, calc(100vw - 32px));
  background: var(--ui-surface-solid, rgba(10,16,30,.92));
  border: 1px solid var(--ui-border-strong, rgba(0,242,255,0.22));
  border-radius: 14px;
  box-shadow: var(--ui-shadow, 0 18px 60px rgba(0,0,0,.45));
  color: var(--ui-text, rgba(255,255,255,.9));
  padding: 14px 14px 12px;
}

.changelog-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.changelog-title{
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .92;
}

.changelog-close{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,242,255,0.18);
  background: rgba(0,242,255,0.04);
  color: rgba(255,255,255,.9);
  display:grid;
  place-items:center;
}

.changelog-body{
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ui-text, rgba(255,255,255,.9));
}

.changelog-body ul{ margin: 8px 0 0 18px; }
.changelog-body li{
  margin: 8px 0;
  color: var(--ui-text-2, rgba(255,255,255,.78));
}
.changelog-body b{ color: var(--ui-text, rgba(255,255,255,.92)); }

.changelog-meta{
  margin-top: 10px;
  font-size: 12px;
  color: var(--ui-text-dim, rgba(255,255,255,.56));
  border-top: 1px solid rgba(0,242,255,0.12);
  padding-top: 10px;
}