.history-card {
  --history-lime: #c9ff8e;
  --history-mint: #e0eddc;
  min-width: 0;
  padding: clamp(16px,3.1vw,40px);
  border: 1px solid #4a6555;
  border-radius: 15px;
  color: #eff5ec;
  background: radial-gradient(ellipse at 63% 12%, #355144 0%, #1c2d24 67%);
  box-shadow: 0 14px 30px #263d2c26;
}
.history-card figcaption {
  padding-top: clamp(10px,1.5vw,16px);
  margin-top: clamp(13px,2.2vw,27px);
  border-top: 1px solid #627a6b;
  color: #d2e4d3;
  font-size: clamp(.78rem,1.18vw,1rem);
  line-height: 1.35;
}
.history-device-pair {
  display: grid;
  grid-template-columns: minmax(0,1fr) clamp(32px,6.3vw,93px) minmax(0,1fr);
  align-items: start;
  text-align: center;
}
.history-device { display: grid; justify-items: center; min-width: 0; }
.history-device strong, .history-device small { display: block; max-width: 100%; }
.history-device strong { margin-top: 13px; font-size: clamp(.78rem,1.35vw,1.22rem); line-height: 1.2; }
.history-device small { color: #bdd6c0; margin-top: 5px; font: 600 clamp(.62rem,1.05vw,.82rem)/1.28 ui-monospace,monospace; }
.history-device > div {
  position: relative;
  height: clamp(66px,10vw,145px);
  align-self: stretch;
  margin-inline: auto;
}
.history-direction {
  position: relative;
  height: 2px;
  margin: clamp(33px,5vw,72px) 7px 0;
  color: var(--history-lime);
  background: repeating-linear-gradient(to right,currentColor 0 3px,transparent 3px 9px);
  transform-origin: left;
}
.history-direction span {
  position: absolute;
  right: -2px;
  top: -4px;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.history-mainframe {
  width: min(90%,154px);
  padding: 13% 12%;
  border: 1px solid #9aaf96;
  border-radius: 7px;
  background: linear-gradient(125deg,#e0eadd,#a9c2ad);
  box-shadow: inset -5px 0 #95ad99, 0 7px 15px #14281c60;
}
.history-mainframe i { display: block; width: 82%; height: 9%; margin-bottom: 12%; border-radius: 2px; background: #486e58; }
.history-mainframe i:nth-child(2) { width: 69%; }
.history-mainframe b {
  position: absolute;
  right: 13%;
  bottom: 15%;
  width: 23%;
  height: 6px;
  background: radial-gradient(circle at center,#407b49 2px,transparent 2.5px) 0 center / 8px 7px repeat-x;
}
.history-pc { width: min(95%,176px); }
.history-pc i {
  position: absolute;
  inset: 0 9% 22%;
  border: clamp(5px,1.1vw,13px) solid #c4d4bc;
  border-radius: 10px;
  background: repeating-linear-gradient(to bottom,#315645 0 3px,#355f4b 3px 7px);
  box-shadow: inset 0 0 0 2px #52775e, 2px 6px 8px #17291e60;
}
.history-pc b {
  position: absolute;
  inset: 73% 0 0;
  border-radius: 5px;
  border: 1px solid #bccfbd;
  background: #a4bd9e;
}
.history-pc b::after { content:""; position: absolute; right: 13%; top: 39%; width: 21%; height: 17%; border-radius: 2px; background: #547e60; }

.history-pager { width: min(91%,165px); }
.history-pager::before {
  content:"";
  position: absolute;
  inset: 16% 0 14%;
  border: 2px solid #779483;
  border-radius: 16% 16% 21% 21%;
  background: #1c2724;
  box-shadow: 0 5px 9px #15291e95;
}
.history-pager i { position: absolute; inset: 26% 15% 51%; border: 2px solid #78947f; border-radius: 4px; background: #a6c7a3; }
.history-pager b {
  position: absolute;
  inset: 57% 17% 25%;
  background: radial-gradient(ellipse at center,#cce3cc 1.4px,transparent 2px) 0 0 / 7px 6px;
}
.history-smartphone {
  width: clamp(42px,6.7vw,87px);
  display: grid;
  grid-template-columns: repeat(2,1fr);
  place-items: center;
  align-content: center;
  gap: clamp(3px,.55vw,7px);
  padding: 14%;
  border: 2px solid #7d9b85;
  border-radius: clamp(9px,1.4vw,18px);
  background: linear-gradient(#caddc9,#aac4a7);
  box-shadow: inset 0 0 0 clamp(3px,.55vw,7px) #22392d, 0 5px 11px #15291e85;
}
.history-smartphone i { width: clamp(7px,1.04vw,14px); aspect-ratio: 1; border-radius: 3px; background: #457656; }
.history-smartphone i:nth-child(2) { background: #5c9268; }
.history-smartphone i:nth-child(3) { background: #225443; }

.history-browser {
  overflow: hidden;
  border: 1px solid #9ab09c;
  border-radius: 9px;
  color: #213a2b;
  background: #e0ecdc;
}
.history-browser-top { display: flex; align-items: center; gap: 5px; height: 25px; padding-inline: 10px; background: #adc9b1; }
.history-browser-top i { width: 5px; aspect-ratio: 1; border-radius: 50%; background: #567b62; }
.history-browser-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(5px,1.5vw,13px);
  padding: clamp(10px,2.4vw,27px);
}
.history-app {
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: clamp(78px,10vw,131px);
  padding: 6px 3px;
  border: 1px solid #9db69f;
  border-radius: 7px;
  background: #f2f7ee;
  text-align: center;
  font-size: clamp(.65rem,1.17vw,1rem);
  font-weight: 700;
  line-height: 1.2;
}
.history-app i {
  width: clamp(17px,3vw,32px);
  aspect-ratio: 1;
  border: 2px solid #467557;
  border-radius: 4px;
  background: linear-gradient(180deg,#a8d2ad 39%,#e0eddc 39%);
}
.history-app-extra { border-style: dashed; border-color: #668a6e; }
.history-app-extra i { transform: rotate(12deg); background: #c4e5c4; }
.history-app-home i { border: 0; border-radius: 1px; background: #487759; clip-path: polygon(50% 0,100% 41%,87% 41%,87% 100%,59% 100%,59% 68%,39% 68%,39% 100%,12% 100%,12% 41%,0 41%); }

.history-ai-panel { display: grid; grid-template-columns: .52fr 1fr; align-items: center; gap: clamp(12px,3vw,32px); }
.history-chat { display: grid; justify-items: start; gap: clamp(4px,.85vw,10px); }
.history-chat i {
  display: block;
  width: 84%;
  height: clamp(16px,3.3vw,38px);
  border: 1px solid #7ea38d;
  border-radius: 9px 9px 9px 2px;
  background: #4f755e;
}
.history-chat i:nth-child(2) { justify-self: end; width: 70%; border-radius: 9px 9px 2px 9px; border-color: #a6db97; background: #a3c49d; }
.history-chat i:last-child { width: 58%; }
.history-stat-text strong {
  display: block;
  margin-bottom: 5px;
  color: var(--history-lime);
  font-size: clamp(2.8rem,7.1vw,7.25rem);
  line-height: .9;
  letter-spacing: -.08em;
}
.history-stat-text span { display: block; font-size: clamp(.73rem,1.4vw,1.12rem); line-height: 1.26; }
.history-ai-meter { height: 5px; margin-top: clamp(17px,2.25vw,31px); border-radius: 5px; overflow: hidden; background: #527461; }
.history-ai-meter i { display: block; width: 78%; height: 100%; border-radius: inherit; background: var(--history-lime); transform-origin: left; }

@media (max-width: 520px) {
  .history-card { padding: 14px; }
  .history-device strong { margin-top: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
  .history-scene[data-active] .history-device:first-child,
  .history-scene[data-active] .history-browser,
  .history-scene[data-active] .history-chat i { animation: history-rise .5s .12s var(--ease) both; }
  .history-scene[data-active] .history-direction { animation: history-draw .53s .34s var(--ease) both; }
  .history-scene[data-active] .history-device:last-child { animation: history-rise .59s .6s var(--ease) both; }
  .history-scene[data-active] .history-app-extra { animation: history-rise .5s .38s var(--ease) both; }
  .history-scene[data-active] .history-app-home { animation: history-rise .5s .53s var(--ease) both; }
  .history-scene[data-active] .history-chat i:nth-child(2) { animation-delay: .22s; }
  .history-scene[data-active] .history-chat i:nth-child(3) { animation-delay: .32s; }
  .history-scene[data-active] .history-stat-text { animation: history-rise .55s .33s var(--ease) both; }
  .history-scene[data-active] .history-ai-meter i { animation: history-draw .72s .45s var(--ease) both; }
  .story-scene[data-active] .story-checklist li:nth-child(4) { animation-delay: 620ms; }
  @keyframes history-rise { from { opacity: .1; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes history-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
