.arena-hero-history-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(200,170,110,.3);
  background: linear-gradient(135deg, rgba(200,170,110,.1), rgba(8,18,24,.82));
}
.arena-hero-history-access-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.arena-hero-history-access-copy strong { color: #f0d69a; font-size: 14px; }
.arena-hero-history-access-copy span { color: #9aa9a4; font-size: 12px; overflow-wrap: anywhere; }
.arena-hero-history-access-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.arena-hero-history-access-actions button { border: 1px solid rgba(120,217,223,.5); background: rgba(120,217,223,.08); color: #9ce7e8; padding: 7px 10px; cursor: pointer; font-size: 12px; }
.arena-hero-history-access-actions button:hover, .arena-hero-history-access-actions button:focus-visible { border-color: #78d9df; color: #fff; outline: none; }
.arena-hero-history-access-actions em { border: 1px solid rgba(240,214,154,.55); padding: 5px 7px; color: #f0d69a; font-size: 11px; font-style: normal; white-space: nowrap; }
.arena-history-open { overflow: hidden; }
.arena-hero-history-dialog, .arena-hero-history-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.arena-hero-history-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); }
.arena-hero-history-panel {
  position: relative;
  width: min(760px, calc(100vw - 24px));
  max-height: min(84vh, 780px);
  overflow: hidden;
  border: 1px solid rgba(200,170,110,.62);
  background: linear-gradient(145deg, #121d25, #070d13);
  box-shadow: 0 22px 70px rgba(0,0,0,.72), 0 0 0 1px rgba(240,214,154,.08) inset;
}
.arena-hero-history-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid rgba(200,170,110,.2); }
.arena-history-kicker { margin: 0 0 4px; color: #c8aa6e; font-size: 11px; letter-spacing: .08em; }
.arena-hero-history-header h2 { margin: 0; color: #f3e9c5; font-size: 24px; }
.arena-history-close { border: 0; background: transparent; color: #d9e0dd; cursor: pointer; font-size: 28px; line-height: 1; }
.arena-hero-history-body { max-height: calc(min(84vh, 780px) - 77px); overflow: auto; padding: 14px 20px 20px; }
.arena-hero-history-version { padding: 14px 0; border-bottom: 1px solid rgba(200,170,110,.16); }
.arena-hero-history-version:last-child { border-bottom: 0; }
.arena-hero-history-version-title { display: flex; align-items: baseline; gap: 9px; color: #c7d2ce; }
.arena-hero-history-version-title strong { color: #f0d69a; font-size: 17px; }
.arena-hero-history-version-title span { color: #84928e; font-size: 12px; }
.arena-hero-history-skill { margin-top: 12px; }
.arena-hero-history-skill h3 { margin: 0 0 6px; color: #d6e3de; font-size: 14px; }
.arena-hero-history-change { padding: 7px 9px; background: rgba(0,0,0,.18); }
.arena-hero-history-change + .arena-hero-history-change { margin-top: 4px; }
.arena-history-change-label { color: #a9bbb5; font-size: 12px; }
.arena-history-change-label span { margin-left: 7px; color: #78d9df; }
.arena-history-change-values { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: baseline; margin-top: 4px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.arena-history-change-values del { color: #a78181; }
.arena-history-change-values b { color: #c8aa6e; }
.arena-history-change-values ins { color: #9bddb8; text-decoration: none; }
.arena-history-official { display: inline-block; margin-top: 12px; color: #f0d69a; font-size: 12px; }
.arena-hero-history-loading { color: #dce8e3; background: rgba(0,0,0,.68); font-size: 14px; }
.arena-history-load-error { color: #ff9c75; }

@media (max-width: 600px) {
  .arena-hero-history-access { align-items: stretch; flex-direction: column; gap: 10px; }
  .arena-hero-history-access-actions { justify-content: flex-start; flex-wrap: wrap; }
  .arena-hero-history-dialog, .arena-hero-history-loading { padding: 8px; }
  .arena-hero-history-panel { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .arena-hero-history-body { max-height: calc(100vh - 92px); padding: 12px 13px 16px; }
  .arena-hero-history-header { padding: 15px 13px 12px; }
  .arena-hero-history-header h2 { font-size: 21px; }
  .arena-history-change-values { grid-template-columns: 1fr; gap: 1px; }
  .arena-history-change-values b { display: none; }
}
