.scene-history-shell {
  padding: 34px 0 0;
}

.scene-history-nfo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 208, 135, 0.38);
  background:
    repeating-linear-gradient(180deg, rgba(100, 208, 135, 0.028) 0, rgba(100, 208, 135, 0.028) 1px, transparent 1px, transparent 5px),
    linear-gradient(135deg, rgba(100, 208, 135, 0.08), transparent 48%),
    #0b0e0d;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26), inset 0 0 40px rgba(100, 208, 135, 0.035);
  color: #d8f7e2;
  font-family: "Lucida Console", "Cascadia Mono", "Courier New", ui-monospace, monospace;
}

.scene-history-nfo::after {
  position: absolute;
  right: -28px;
  bottom: -62px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(239, 189, 79, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(239, 189, 79, 0.025), 0 0 0 52px rgba(100, 208, 135, 0.018);
  content: "";
  pointer-events: none;
}

.scene-history-head,
.scene-history-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.scene-history-head {
  border-bottom: 1px solid rgba(100, 208, 135, 0.24);
}

.scene-history-head p {
  margin: 0;
}

.scene-history-path {
  color: #64d087;
  text-shadow: 0 0 9px rgba(100, 208, 135, 0.42);
}

.scene-history-caret {
  animation: terminal-caret 1s steps(1, end) infinite;
}

.scene-history-mode {
  color: #efbd4f;
  text-align: right;
}

.scene-history-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 190px;
}

.scene-history-year {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(100, 208, 135, 0.24);
  color: #efbd4f;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(239, 189, 79, 0.14);
}

.scene-history-copy {
  align-self: center;
  max-width: 850px;
  padding: 26px 32px;
}

.scene-history-copy h2 {
  margin: 0 0 12px;
  color: #f3f2e9;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.scene-history-text {
  margin: 0;
  color: #c5d8cb;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.98rem, 1.55vw, 1.12rem);
  line-height: 1.65;
}

.scene-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.scene-history-tags span {
  border: 1px solid rgba(239, 189, 79, 0.28);
  padding: 5px 8px 4px;
  color: #efcf87;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scene-history-foot {
  border-top: 1px solid rgba(100, 208, 135, 0.24);
  color: #789384;
}

.scene-history-foot a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8de0a7;
  text-decoration: none;
}

.scene-history-foot a:hover,
.scene-history-foot a:focus-visible {
  color: #f4d37a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

html[lang="de"] .scene-lang-en,
html[lang="en"] .scene-lang-de {
  display: none;
}

:root[data-theme="light"] .scene-history-nfo {
  border-color: rgba(21, 120, 71, 0.32);
  background:
    repeating-linear-gradient(180deg, rgba(21, 120, 71, 0.038) 0, rgba(21, 120, 71, 0.038) 1px, transparent 1px, transparent 5px),
    linear-gradient(135deg, rgba(21, 120, 71, 0.075), transparent 50%),
    #f7faf5;
  box-shadow: 0 18px 50px rgba(26, 31, 32, 0.12), inset 0 0 36px rgba(21, 120, 71, 0.025);
  color: #183a28;
}

:root[data-theme="light"] .scene-history-head,
:root[data-theme="light"] .scene-history-foot,
:root[data-theme="light"] .scene-history-year {
  border-color: rgba(21, 120, 71, 0.22);
}

:root[data-theme="light"] .scene-history-path,
:root[data-theme="light"] .scene-history-foot a {
  color: #157847;
  text-shadow: none;
}

:root[data-theme="light"] .scene-history-mode,
:root[data-theme="light"] .scene-history-year {
  color: #946006;
}

:root[data-theme="light"] .scene-history-copy h2 {
  color: #111413;
}

:root[data-theme="light"] .scene-history-text {
  color: #304037;
}

:root[data-theme="light"] .scene-history-tags span {
  border-color: rgba(148, 96, 6, 0.28);
  color: #76500c;
}

:root[data-theme="light"] .scene-history-foot {
  color: #607267;
}

@media (max-width: 700px) {
  .scene-history-shell {
    padding-top: 24px;
  }

  .scene-history-head,
  .scene-history-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 11px 13px;
  }

  .scene-history-mode {
    text-align: left;
  }

  .scene-history-body {
    grid-template-columns: 1fr;
  }

  .scene-history-year {
    display: block;
    border-right: 0;
    border-bottom: 1px solid rgba(100, 208, 135, 0.24);
    padding: 17px 17px 13px;
    font-size: 2.4rem;
    letter-spacing: -0.07em;
  }

  .scene-history-copy {
    padding: 21px 17px 24px;
  }

  .scene-history-text {
    line-height: 1.55;
  }

  .scene-history-index {
    font-size: 0.62rem;
  }
}
