  :root {
  --accent: #007c85;
  --link: #00d7ff;
  --article-bg: #00182a;
  --page-bg: #000d16;

  --text: #e7eef3;
  --muted: #9db3c1;
  --rule: rgba(0, 124, 133, 0.85);
  --hairline: rgba(0, 124, 133, 0.42);
  --box: #002237;
  --code-bg: #2b3a44;

  --shell: 66.6667%;
  --gutter: 34px;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--page-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  
  /* new background1 --- */
  background-color: var(--page-bg);
  background-image: url("https://aot-anr.neocities.org/AnRGraphics/AnRSkyBackground.webp");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  color: #8fefff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0 0 1.15em;
}

/* Masthead */
.masthead {
  position: relative;
  background-color: transparent;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://aot-anr.neocities.org/AnRGraphics/AnRLoop1.gif") center 38% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}

@media (max-width: 768px) {
  .masthead::before {
    background-image: url("https://aot-anr.neocities.org/AnRGraphics/AnRLoop2.gif");
  }
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.masthead .shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 72px 0 62px;
}

.wikilogo {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #00121f;
}

.identity {
  min-width: 0;
}

.sitename {
  margin: 0 0 0.34em;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.tabs a:hover {
  color: #bff6ff;
  border-bottom-color: var(--accent);
}

.tabs svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

/* main */
.article {
  width: var(--shell);
  margin: 0 auto;
  background-color: var(--article-bg);
  background-image: 
    linear-gradient(to bottom, transparent 35%, var(--article-bg) 90%),
    url("https://aot-anr.neocities.org/AnRGraphics/AnRCivilization.webp");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  padding: 34px var(--gutter) 64px;
  border-left: 1px solid rgba(0, 124, 133, 0.22);
  border-right: 1px solid rgba(0, 124, 133, 0.22);
  min-height: 70vh;
}

.page-title {
  text-align: center;
  margin: 0.15em 0 0.8em;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #fff;
}

/* Table of Contents */
.toc {
  display: inline-block;
  min-width: min(340px, 100%); /* 2 phones work perfect */
  max-width: 100%;
  margin: 0 0 34px;
  background: rgba(0, 124, 133, 0.08);
  border: 1px solid var(--hairline);
  border-radius: 7px;
}

.toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--hairline);
}

.toc-head strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
}

.toc-head svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

.toc-toggle {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  color: var(--muted);
}

.toc-toggle b {
  color: var(--link);
  font-weight: 400;
}

.toc ol {
  margin: 0;
  padding: 12px 16px 15px 40px;
}

.toc li {
  margin: 0.28em 0;
  color: var(--muted);
}

.toc li a {
  color: var(--text);
  text-decoration: none;
}

.toc li a:hover {
  color: var(--link);
  text-decoration: underline;
}

.toc[data-collapsed="true"] ol {
  display: none;
}

.toc[data-collapsed="true"] .toc-head {
  border-bottom: 0;
}

h2 {
  margin: 1.9em 0 0.7em;
  padding-bottom: 0.24em;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  border-bottom: 1px solid var(--rule);
}

h2:first-of-type {
  margin-top: 1.1em;
}

.lede {
  max-width: none;
}

blockquote {
  margin: 0 0 1.15em;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent);
  color: #dfe9ef;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.note {
  margin: 0 0 1.15em;
  padding-left: 38px;
  color: var(--text);
}

.source {
  margin: 0 0 1em;
  padding: 8px 14px;
  background: var(--code-bg);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.source a {
  color: #7fe3ff;
}

.credits {
  margin: 0 0 1.15em;
}

.credits p {
  margin: 0 0 0.45em;
}

.credits .role {
  color: var(--muted);
}

.qa {
  margin: 0 0 1.15em;
}

.qa .who {
  font-weight: 600;
  color: #fff;
}

.speaker-block {
  margin: 0 0 1.6em;
}

.hint {
  color: var(--muted);
  font-size: 16px;
}

.hint::before {
  content: "Note: ";
  color: var(--muted);
}

.note.hint {
  color: var(--text);
  font-size: inherit;
}

.note.hint::before {
  color: inherit;
}

.ts {
  margin: 0 0 0.8em;
}

.cuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1.5em;
}

.cut {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  width: 232px;
  line-height: 0;
}

.cut img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 124, 133, 0.55);
  background: #001424;
}

.cut:hover img {
  border-color: var(--link);
}

.cut figcaption {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 8, 14, 0.92);
}

.lightbox[open],
.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 88vh;
  width: auto;
  margin: 0 auto;
  border: 1px solid rgba(0, 124, 133, 0.6);
}

.lightbox figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* Footer */
.pagefoot {
  width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter) 44px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--hairline);
  background: var(--article-bg);
}

.pagefoot a {
  color: var(--link);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  :root {
    --shell: 100%;
    --gutter: 20px;
  }
  body {
    font-size: 16px;
  }
  .masthead .shell {
    padding: 18px var(--gutter);
    gap: 16px;
    align-items: flex-start;
  }
  .wikilogo {
    width: 64px;
    height: 64px;
  }
  .sitename {
    font-size: 22px;
  }
  .tabs {
    gap: 16px;
  }
  .page-title {
    font-size: 29px;
  }
  h2 {
    font-size: 23px;
  }
  .article {
    border-left: 0;
    border-right: 0;
  }
  .cut {
    width: calc(50% - 6px);
  }
  .note {
    padding-left: 20px;
  }
}

h2 a {
  color: inherit;
  text-decoration: none;
}
 
h2 a:hover {
  color: var(--link);
  text-decoration: underline;
}
 
.cuts--plate .cut {
  width: min(420px, 100%);
}
 
.cuts--plate .cut figcaption {
  font-size: 13px;
}
 
.cuts--plain figcaption {
  display: none;
}
 
.subsource {
  margin: -0.4em 0 1.15em;
  font-size: 15px;
  color: var(--muted);
}