.relic.rejuvenated-pick {
  background: linear-gradient(180deg, rgba(228,187,103,.25), rgba(45,31,10,.14));
  box-shadow: inset 0 -2px #f4d991, inset 0 0 0 1px rgba(244,217,145,.35);
}

.relic.rejuvenated-pick::before {
  content: "REJUVENATED PICK";
  position: absolute;
  top: 13px;
  left: 13px;
  color: #f4d991;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .14em;
}

.relic.bonus-eligible {
  background: rgba(228,187,103,.08);
  animation: bonusPulse 1.7s ease-in-out infinite;
}

.relic.bonus-eligible:hover { background: rgba(228,187,103,.2); }
@keyframes bonusPulse { 50% { box-shadow: inset 0 0 0 1px rgba(228,187,103,.45); } }

.tier.two .tier-options {
  width: 100%;
  max-width: none;
}

.forge-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.forge-actions button { flex: 1 1 220px; min-width: 220px; }
.forge .share-link-button {
  border-color: rgba(228,187,103,.55);
  color: #d8c58f;
  background: transparent;
}
.forge .share-link-button:not(:disabled):hover,
.forge .share-link-button:not(:disabled):focus-visible {
  border-color: #f0ce83;
  color: #f0ce83;
  background: rgba(228,187,103,.08);
  box-shadow: 0 9px 24px rgba(228,187,103,.14), inset 0 0 0 1px rgba(255,239,194,.12);
  transform: translateY(-2px);
  outline: none;
}

.rejuvenated-panel {
  margin-top: 20px;
  border: 1px solid rgba(228,187,103,.55);
  background: linear-gradient(110deg,rgba(51,67,34,.9),rgba(18,45,34,.92));
  padding: 25px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.rejuvenated-panel[hidden] { display: none; }
.rejuvenated-gem {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: #173429;
  background: linear-gradient(145deg,#f3d589,#aa7a32);
  clip-path: polygon(25% 4%,75% 4%,98% 50%,75% 96%,25% 96%,2% 50%);
  font-size: 23px;
}

.rejuvenated-panel h3 { font: 600 22px Cinzel; margin: 6px 0; }
.rejuvenated-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.rejuvenated-panel button {
  border: 1px solid rgba(151,218,186,.25);
  background: transparent;
  color: #91a99f;
  padding: 13px 18px;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s, box-shadow .2s;
}
.rejuvenated-panel button:hover,
.rejuvenated-panel button:focus-visible {
  border-color: #e4bb67;
  color: #e4bb67;
  background: rgba(228,187,103,.08);
  box-shadow: inset 0 0 0 1px rgba(228,187,103,.1);
  outline: none;
}

.modal-select:disabled { filter: grayscale(1); opacity: .45; cursor: default; }
#download,
#modalSelect,
#blessingModalSelect,
#openBuildPage { transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
#download:not(:disabled):hover,
#download:not(:disabled):focus-visible,
#modalSelect:not(:disabled):hover,
#modalSelect:not(:disabled):focus-visible,
#blessingModalSelect:not(:disabled):hover,
#blessingModalSelect:not(:disabled):focus-visible,
#openBuildPage:hover,
#openBuildPage:focus-visible {
  border-color: #f0ce83;
  background: linear-gradient(135deg, #f1cf84, #bd8d3d);
  box-shadow: 0 9px 24px rgba(228,187,103,.22), inset 0 0 0 1px rgba(255,239,194,.22);
  transform: translateY(-2px);
  outline: none;
}
#download:not(:disabled):active,
#modalSelect:not(:disabled):active,
#blessingModalSelect:not(:disabled):active,
#openBuildPage:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(228,187,103,.16);
}
html { scrollbar-gutter: stable; }
body.modal-open {
  position: fixed;
  top: var(--locked-scroll-y);
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  padding-right: var(--scrollbar-compensation, 0px);
}
#download { transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
#download:not(:disabled):hover,
#download:not(:disabled):focus-visible {
  border-color: #f0ce83;
  background: linear-gradient(135deg, #f1cf84, #bd8d3d);
  box-shadow: 0 9px 24px rgba(228,187,103,.22), inset 0 0 0 1px rgba(255,239,194,.22);
  transform: translateY(-2px);
  outline: none;
}
#download:not(:disabled):active { transform: translateY(0); box-shadow: 0 3px 10px rgba(228,187,103,.16); }
.relic-icon,.modal-icon { background: none; clip-path: none; filter: drop-shadow(0 8px 14px #020c09); }
.relic-icon img,.modal-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.modal-icon { width: 112px; height: 98px; }
dialog { max-height: min(820px, calc(100vh - 32px)); overflow: auto; }
dialog {
  scrollbar-width: thin;
  scrollbar-color: #b99146 #071812;
  scrollbar-gutter: stable;
}
dialog::-webkit-scrollbar { width: 11px; }
dialog::-webkit-scrollbar-track {
  background: #071812;
  border-left: 1px solid rgba(84, 230, 180, .16);
}
dialog::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 2px solid #071812;
  border-radius: 999px;
  background: linear-gradient(180deg, #e4bb67, #8f692f);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 158, .22);
}
dialog::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #f1cd7d, #b1843d); }
dialog::-webkit-scrollbar-corner { background: #071812; }
.data-credit { margin: 24px 0 0; text-align: center; color: #5f7e71; font-size: 10px; letter-spacing: .04em; }
.data-credit a { color: #9fbcaf; }
.planner-actions { display: flex; gap: 8px; }
#randomizePicks,
#resetPicks { border: 1px solid rgba(151,218,186,.25); background: transparent; color: #91a99f; padding: 8px 11px; font: 700 8px Inter,sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: .2s; }
#randomizePicks:hover,
#randomizePicks:focus-visible,
#resetPicks:hover,
#resetPicks:focus-visible { border-color: #e4bb67; color: #e4bb67; background: rgba(228,187,103,.06); outline: none; }
@media (max-width: 560px) { #randomizePicks, #resetPicks { padding: 7px 8px; } #progressText { display: none; } }

.hero nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(1160px, calc(100% - 80px));
  padding: 16px 18px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(5,22,17,.92), rgba(8,34,26,.88));
  border: 1px solid rgba(151,218,186,.12);
  border-top: 0;
  box-shadow: 0 12px 35px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#planner { scroll-margin-top: 92px; }

@media (max-width: 760px) {
  .hero nav { width: calc(100% - 24px); padding: 12px; }
  .brand-mark { width: 36px; height: 40px; }
}

.info {
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.info:hover {
  color: #102018;
  border-color: #f0cb7a;
  background: #e4bb67;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 5px 16px rgba(228,187,103,.35);
}

.save-dialog { width: min(760px, calc(100% - 22px)); text-align: center; }
.save-dialog h2 { margin-bottom: 10px; }
.save-dialog > p { color: #b5c9c0; line-height: 1.6; font-size: 13px; max-width: 560px; margin: 0 auto 18px; }
#savePreview { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #061510; border: 1px solid rgba(228,187,103,.4); -webkit-touch-callout: default; user-select: auto; }
.save-dialog .modal-select { margin-top: 18px; }
.link-dialog { width: min(720px, calc(100% - 22px)); }
.link-dialog > p { margin: 0 0 24px; color: #b5c9c0; font-size: 13px; line-height: 1.65; }
.link-dialog label { display: block; margin-bottom: 8px; color: #91a99f; font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.link-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.link-field input { min-width: 0; border: 1px solid rgba(151,218,186,.3); padding: 13px 14px; color: #dceee6; background: #061510; font: 12px Inter, sans-serif; }
.link-field input:focus { border-color: #e4bb67; outline: none; }
.link-field button { border: 1px solid #bd9955; padding: 12px 18px; color: #102018; background: linear-gradient(135deg,#e4c175,#a67b34); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.link-field button:hover, .link-field button:focus-visible { border-color: #f0ce83; background: linear-gradient(135deg,#f1cf84,#bd8d3d); outline: none; }
.link-dialog .modal-select { display: block; margin-top: 14px; text-align: center; text-decoration: none; }

@media (max-width: 760px) {
  .rejuvenated-panel { grid-template-columns: auto 1fr; padding: 22px 18px; }
  .rejuvenated-panel button { grid-column: 1/-1; width: 100%; }
  .forge-actions { width: 100%; }
  .forge-actions button { width: 100%; }
  .link-field { grid-template-columns: 1fr; }
  .link-field button { width: 100%; }
}
