/* Throne Watch: persistent-storage explanation dialog. */
body.storage-consent-open{overflow:hidden}
.storage-consent-backdrop{
  position:fixed;
  inset:0;
  z-index:2147483400;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(8,6,14,.78);
  backdrop-filter:blur(8px);
}
.storage-consent-backdrop[hidden]{display:none}
.storage-consent-dialog{
  width:min(720px,100%);
  max-height:min(86vh,760px);
  overflow:auto;
  padding:24px;
  border:1px solid rgba(216,189,132,.56);
  border-radius:22px;
  background:linear-gradient(165deg,rgba(40,30,57,.99),rgba(18,14,28,.99));
  box-shadow:0 30px 90px rgba(0,0,0,.64),0 0 30px rgba(216,189,132,.12);
  color:#f5edff;
}
.storage-consent-kicker{
  display:block;
  margin-bottom:7px;
  color:#d8bd84;
  font-size:11px;
  font-weight:900;
  letter-spacing:.15em;
}
.storage-consent-title{
  margin:0;
  color:#fff7d8;
  font-size:clamp(24px,4vw,34px);
  line-height:1.08;
}
.storage-consent-intro,.storage-consent-browser-note{
  margin:14px 0 0;
  color:rgba(238,231,255,.84);
  line-height:1.55;
}
.storage-consent-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.storage-consent-card{
  padding:15px;
  border:1px solid rgba(143,111,189,.38);
  border-radius:15px;
  background:rgba(15,12,24,.52);
}
.storage-consent-card h3{
  margin:0 0 9px;
  color:#ffe39a;
  font-size:14px;
}
.storage-consent-card ul{
  margin:0;
  padding-left:20px;
  color:rgba(238,231,255,.78);
  line-height:1.45;
}
.storage-consent-card li+li{margin-top:6px}
.storage-consent-browser-note{
  padding:12px 14px;
  border-left:3px solid rgba(216,189,132,.72);
  border-radius:10px;
  background:rgba(216,189,132,.08);
  font-size:13px;
}
.storage-consent-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
}
.storage-consent-button{
  min-height:42px;
  padding:10px 15px;
  border:1px solid rgba(143,111,189,.5);
  border-radius:12px;
  background:rgba(27,21,39,.92);
  color:#eee7ff;
  font-weight:800;
  cursor:pointer;
}
.storage-consent-button.is-primary{
  border-color:rgba(216,189,132,.76);
  background:linear-gradient(135deg,rgba(114,75,139,.92),rgba(62,43,83,.96));
  color:#fff7d8;
  box-shadow:0 0 16px rgba(216,189,132,.16);
}
.storage-consent-button:hover,.storage-consent-button:focus-visible{
  border-color:#d8bd84;
  outline:none;
  box-shadow:0 0 16px rgba(216,189,132,.2);
}
.storage-consent-inline-note{
  margin:10px 0 0;
  padding:10px 12px;
  border:1px solid rgba(216,189,132,.26);
  border-radius:11px;
  background:rgba(216,189,132,.06);
  color:rgba(238,231,255,.76);
  font-size:12px;
  line-height:1.45;
}

.save-progress-btn{
  min-height:46px;
  padding:9px 15px;
  border:1px solid rgba(216,189,132,.62);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(68,43,88,.98),rgba(28,20,40,.98));
  color:#fff0bf;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 0 16px rgba(216,189,132,.15);
  font-size:12px;
  font-weight:900;
  letter-spacing:.025em;
  white-space:nowrap;
  cursor:pointer;
}
.save-progress-btn:hover,.save-progress-btn:focus-visible{
  border-color:#ffcf4a;
  outline:0;
  transform:translateY(-2px);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 9px 22px rgba(0,0,0,.32),0 0 19px rgba(255,207,74,.27);
}
.discovery-modal-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  margin-left:auto;
}
.discovery-modal-actions .discovery-modal-close{
  position:static;
  top:auto;
}
body.progress-access-open{overflow:hidden}
.progress-access-backdrop{
  position:fixed;
  inset:0;
  z-index:2147483350;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(6,4,11,.80);
  backdrop-filter:blur(8px);
}
.progress-access-backdrop[hidden]{display:none}
.progress-access-dialog{
  width:min(760px,100%);
  max-height:min(88vh,820px);
  overflow:auto;
  padding:22px;
  border:1px solid rgba(216,189,132,.55);
  border-radius:20px;
  background:linear-gradient(165deg,rgba(39,29,55,.99),rgba(17,12,26,.99));
  box-shadow:0 30px 90px rgba(0,0,0,.66),0 0 30px rgba(216,189,132,.13);
  color:#f5edff;
}
.progress-access-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.progress-access-kicker{display:block;margin-bottom:6px;color:#d8bd84;font-size:10px;font-weight:900;letter-spacing:.15em}
.progress-access-head h2{margin:0;color:#fff7d8;font-size:clamp(24px,4vw,32px);line-height:1.08}
.progress-access-head button{
  width:36px;
  height:36px;
  flex:0 0 auto;
  padding:0;
  border:1px solid rgba(216,189,132,.28);
  border-radius:10px;
  background:rgba(18,13,27,.88);
  color:#e9dff0;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.progress-access-head button:hover,.progress-access-head button:focus-visible{border-color:#ffcf4a;color:#fff5d2;outline:0}
.progress-access-intro{margin:12px 0 16px;color:rgba(238,231,255,.78);line-height:1.5}
.progress-access-content{display:grid;gap:12px}
.progress-access-content .discovery-protection-warning,
.progress-access-content .discovery-protection-panel{width:100%;box-sizing:border-box}
.progress-access-content .discovery-protection-panel{padding:14px;background:rgba(9,6,15,.52)}
@media(max-width:640px){
  .storage-consent-backdrop{padding:10px}
  .storage-consent-dialog{padding:18px 15px;border-radius:18px}
  .storage-consent-facts{grid-template-columns:1fr}
  .storage-consent-actions{display:grid;grid-template-columns:1fr}
  .storage-consent-button{width:100%}
  .save-progress-btn{min-height:42px;padding:8px 10px;font-size:11px}
  #discoveryLogModal .discovery-modal-head{flex-wrap:wrap}
  #discoveryLogModal .discovery-modal-actions{width:100%;justify-content:flex-end}
  .progress-access-backdrop{padding:8px}
  .progress-access-dialog{width:100%;max-height:94vh;padding:16px 13px;border-radius:16px}
}
