html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 24px 20px 60px;
  background:
    radial-gradient(circle at 74% 16%, rgba(244, 122, 0, 0.13), transparent 26%),
    radial-gradient(circle at 18% 72%, rgba(244, 122, 0, 0.09), transparent 24%),
    radial-gradient(circle at 52% 42%, rgba(255, 209, 172, 0.2), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fffaf5 52%, #ffffff 100%);
  color: #f47a00;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
}

a {
  color: #f47a00;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  text-decoration: none;
}

h1 {
  font-size: 1.8em;
  margin-bottom: 0.4em;
  text-wrap: wrap;
}

h2 {
  margin-top: 1.8em;
  font-size: 1.4em;
  border-left: 4px solid #f47a00;
  padding-left: 12px;
}

hr {
  border: none;
  border-top: 1px solid rgba(244, 122, 0, 0.22);
  margin: 3em 0;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

.home-action-menu {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;
}

.home-action-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 132px;
  height: 14px;
}

.home-mark {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f47a00;
  text-decoration: none;
  font-family: "Bona Nova", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.9;
  cursor: pointer;
  filter: drop-shadow(0 10px 22px rgba(244, 122, 0, 0.08));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-action-menu:hover .home-mark,
.home-action-menu.is-open .home-mark,
.home-mark:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: none;
}

.home-mark:active {
  opacity: 1;
  transform: translateY(-2px);
}

.home-action-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 116px;
  padding: 8px;
  border: 1px solid rgba(244, 122, 0, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(244, 122, 0, 0.12);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.home-action-menu:hover .home-action-panel,
.home-action-menu:focus-within .home-action-panel,
.home-action-menu.is-open .home-action-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-action-item {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f47a00;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.home-action-item:hover,
.home-action-item:focus-visible {
  color: #f47a00;
  transform: translateY(-1px);
  text-shadow: 0 6px 14px rgba(244, 122, 0, 0.16);
  outline: none;
}

.mobile-home-icon {
  display: none;
}

.mobile-action-menu {
  display: none;
}

.mobile-scene-toggle,
.mobile-scene-menu,
.mobile-scene-note-toggle,
.mobile-scene-note {
  display: none;
}

.topbar {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999;
  filter: drop-shadow(0 10px 22px rgba(244, 122, 0, 0.08));
}

.topbar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  width: 20px;
  height: 20px;
  background: rgba(244, 122, 0, 0.58);
  -webkit-mask: url("../icons/magnifier.png") center / 230% no-repeat;
  mask: url("../icons/magnifier.png") center / 230% no-repeat;
  pointer-events: none;
  transform: translateY(-50%);
}

#search {
  width: 250px;
  padding: 11px 16px 11px 46px;
  border-radius: 999px;
  border: 1.5px solid rgba(244, 122, 0, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #f47a00;
  outline: none;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(244, 122, 0, 0.08);
  backdrop-filter: blur(14px);
  transition: all 0.2s ease;
}

#search::placeholder {
  color: rgba(244, 122, 0, 0.55);
}

#search:focus {
  border-color: #f47a00;
  box-shadow: 0 0 0 4px rgba(244, 122, 0, 0.12);
}

.notes span {
  display: block;
  margin-top: 6px;
}

.page-links {
  margin-top: 28px;
  margin-bottom: 40px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 122, 0, 0.55);
}

.page-links a {
  color: rgba(244, 122, 0, 0.75);
  text-decoration: none;
}

.page-links a:hover {
  color: #f47a00;
  text-decoration: underline;
  transform: translateY(-2px);
  text-shadow: 0 6px 14px rgba(244, 122, 0, 0.18);
}

.page-links span {
  color: rgba(244, 122, 0, 0.35);
  margin: 0 6px;
}

.filter-control {
  position: relative;
  display: inline-block;
  float: right;
  margin: 0;
  vertical-align: middle;
  z-index: 31;
}

.filter-trigger {
  position: relative;
  z-index: 31;
  display: block;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  background-color: #f47a00;
  -webkit-mask: url("../icons/resonance.png") center / contain no-repeat;
  mask: url("../icons/resonance.png") center / contain no-repeat;
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.filter-trigger:focus-visible {
  outline: 2px solid rgba(244, 122, 0, 0.28);
  outline-offset: 3px;
}

.filter-trigger.has-filters {
  opacity: 0.78;
}

.filter-trigger:hover {
  opacity: 0.78;
}

.filter-control.is-open .filter-trigger {
  transform: scale(0.84);
}

.filter-panel {
  position: absolute;
  top: -10px;
  right: -9px;
  z-index: 30;
  width: min(310px, calc(100vw - 40px));
  isolation: isolate;
}

.filter-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 18px 42px rgba(244, 122, 0, 0.16));
}

.filter-shell path {
  fill: rgba(255, 250, 245, 0.96);
  stroke: rgba(244, 122, 0, 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.filter-panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-height: min(500px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  padding: 60px 14px 14px;
}

.filter-panel[hidden] {
  display: none;
}

.filter-selected {
  display: flex;
  min-height: 28px;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(244, 122, 0, 0.18);
}

.filter-chip,
.filter-option,
.filter-actions button {
  border: 1px solid rgba(244, 122, 0, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(244, 122, 0, 0.82);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.filter-chip {
  padding: 7px 9px;
}

.filter-options {
  height: 240px;
  min-height: 0;
  flex: 0 1 auto;
  padding: 12px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.filter-group + .filter-group {
  margin-top: 12px;
}

.filter-group h3 {
  margin: 0 0 7px;
  color: rgba(244, 122, 0, 0.66);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}

.filter-option-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.filter-option {
  min-width: 0;
  padding: 7px 10px;
}

.filter-option:hover,
.filter-chip:hover {
  border-color: rgba(244, 122, 0, 0.55);
  color: #f47a00;
}

.filter-option.is-selected {
  border-color: #f47a00;
  background: #f47a00;
  color: #ffffff;
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 122, 0, 0.18);
}

.filter-actions button {
  padding: 8px 13px;
}

.filter-confirm {
  border-color: #f47a00 !important;
  background: #f47a00 !important;
  color: #ffffff !important;
}

.content-layout {
  position: relative;
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.search-status {
  position: absolute;
  top: -2.45em;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  color: rgba(244, 122, 0, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.search-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.side-nav {
  position: sticky;
  top: 50px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  padding-right: 6px;
  filter: drop-shadow(0 10px 22px rgba(244, 122, 0, 0.08));
}

.side-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 122, 0, 0.16);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 8px 24px rgba(244, 122, 0, 0.08);
  backdrop-filter: blur(12px);
  color: #f47a00;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.side-nav-item:hover {
  transform: translateX(8px);
  background: rgba(244, 122, 0, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.side-nav-item:active {
  transform: translateX(8px) translateY(-2px);
}

.scene-list {
  min-width: 0;
}

.scene-list .scene:first-child h2 {
  margin-top: 0;
}

.scene-list .scene.first-visible h2 {
  margin-top: 0;
}

.scene[hidden] {
  display: none;
}

.scene.is-random-picked::after {
  animation: scene-picked 3.6s ease-out;
}

@keyframes scene-picked {
  0% {
    opacity: 0;
    box-shadow: none;
  }

  18% {
    opacity: 1;
    box-shadow:
      0 0 0 12px rgba(255, 250, 244, 0.9),
      0 0 40px rgba(244, 122, 0, 0.26);
  }

  58% {
    opacity: 0.56;
    box-shadow:
      0 0 0 16px rgba(255, 250, 244, 0.44),
      0 0 30px rgba(244, 122, 0, 0.16);
  }

  100% {
    opacity: 0;
    box-shadow: none;
  }
}

.scene-head {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.scene-head h2 {
  margin: 1.6em 0 0.3em;
}

.scene-head::after {
  content: attr(data-note);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(244, 122, 0, 0.16);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(244, 122, 0, 0.12);
  backdrop-filter: blur(14px);
  color: #f47a00;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.18s ease;
}

body.volume-one .scene-head::after {
  top: 64%;
  font-size: 11px;
}

.scene-head:hover::after {
  opacity: 1;
  visibility: visible;
}

.scene-links {
  margin: -2px 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(244, 122, 0, 0.48);
}

.scene-links a {
  display: inline-block;
  color: rgba(244, 122, 0, 0.75);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    text-shadow 0.18s ease;
}

.scene-links a:hover {
  color: #f47a00;
  text-decoration: underline;
  transform: translateY(-2px);
  text-shadow: 0 6px 14px rgba(244, 122, 0, 0.18);
}

.scene-links span {
  color: rgba(244, 122, 0, 0.35);
  margin: 0 4px;
}

.keywords {
  margin: 1em 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(244, 122, 0, 0.84), rgba(244, 122, 0, 0.66)),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.22), transparent 34%);
  box-shadow:
    0 18px 45px rgba(244, 122, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  border-radius: 6px;
  font-size: 0.95em;
  color: #ffffff;
  white-space: pre-line;
}

.keywords a {
  display: inline-block;
  color: #fff4c6;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    text-shadow 0.18s ease;
}

.keywords .inline-credit {
  color: #ffffff;
  white-space: normal;
}

.keywords a.inline-credit-link,
.keywords a.inline-credit-link:visited {
  display: inline;
  color: #fff4c6;
}

.keywords a:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  text-shadow: 0 6px 14px rgba(255, 255, 255, 0.24);
}

.search-match {
  padding: 0 0.08em;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
}

.page-tail-watermark {
  margin-top: 48px;
  margin-left: 0;
  padding-bottom: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: rgba(244, 122, 0, 0.45);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1;
}

.page-tail-mark {
  font-size: 18px;
  line-height: 1;
}

.page-tail-text {
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .container {
    padding-top: 36px;
  }

  .side-nav {
    display: none;
  }

  .content-layout {
    display: block;
  }

  .scene + .scene {
    margin-top: 4rem;
  }

  .scene {
    scroll-margin-top: 4rem;
  }

  .search-status {
    top: -2.25em;
    font-size: 15px;
    text-align: left;
  }

  .topbar {
    right: 18px;
  }

  #search {
    box-sizing: border-box;
    padding-right: 44px;
    font-size: 16px;
  }

  .mobile-scene-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    display: block;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background:
      radial-gradient(circle, rgba(244, 122, 0, 0.58) 0 12%, rgba(244, 122, 0, 0.24) 34%, rgba(244, 122, 0, 0.06) 66%, transparent 82%);
    cursor: pointer;
    opacity: 0.82;
    transform: translateY(-50%);
    animation: mobile-scene-breathe 2.4s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-scene-toggle:active {
    transform: translateY(-50%) scale(0.92);
  }

  .mobile-scene-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 4px;
    display: flex;
    max-height: 190px;
    padding: 10px 12px 10px 18px;
    border-right: 2px solid rgba(244, 122, 0, 0.55);
    border-radius: 10px 0 0 10px;
    background:
      radial-gradient(ellipse at 100% 50%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 0.86) 76%, rgba(255, 255, 255, 0.8) 100%);
    box-shadow: none;
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .topbar.is-scene-menu-open .mobile-scene-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-scene-link {
    position: relative;
    display: block;
    padding-left: 12px;
    color: #f47a00;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.18s ease, text-shadow 0.18s ease;
  }

  .mobile-scene-link:active {
    transform: translateY(-2px);
    text-shadow: 0 6px 14px rgba(244, 122, 0, 0.18);
  }

  .mobile-scene-link.is-current {
    font-weight: 700;
    transform: translateX(-2px);
    text-shadow: 0 0 12px rgba(244, 122, 0, 0.42);
  }

  .mobile-scene-link.is-current::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #f47a00;
    box-shadow: 0 0 10px rgba(244, 122, 0, 0.65);
    transform: translateY(-50%);
  }

  @keyframes mobile-scene-breathe {
    0%,
    100% {
      opacity: 0.78;
      filter: blur(0);
    }

    50% {
      opacity: 1;
      filter: blur(0.4px);
    }
  }

  .home-action-menu,
  .home-mark {
    display: none;
  }

  .scene-head::after {
    display: none;
  }

  .scene-head {
    display: block;
    margin: 1.6em 0 0.3em;
  }

  .scene-list .scene:first-child .scene-head,
  .scene-list .scene.first-visible .scene-head {
    margin-top: 0;
  }

  .mobile-scene-note-toggle {
    position: absolute;
    top: calc((1.8em - 24px) / 2);
    left: -6px;
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .scene-head h2 {
    margin: 0;
    position: relative;
  }

  .mobile-scene-note {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    box-sizing: border-box;
    width: calc(100vw - 40px);
    padding: 10px 14px;
    border: 1px solid rgba(244, 122, 0, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 26px rgba(244, 122, 0, 0.12);
    backdrop-filter: blur(14px);
    color: #f47a00;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 30;
  }

  .scene-head.is-note-open .mobile-scene-note {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-action-menu {
    display: block;
    position: fixed;
    top: 24px;
    left: 18px;
    z-index: 1000;
  }

  .mobile-home-icon {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background-color: #f47a00;
    -webkit-mask: url("../icons/lotus_home.png") center / contain no-repeat;
    mask: url("../icons/lotus_home.png") center / contain no-repeat;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-action-menu.is-open .mobile-home-icon {
    opacity: 0.92;
    transform: scale(0.94);
  }

  .mobile-action-panel {
    position: absolute;
    top: -9px;
    left: -8px;
    width: 140px;
    height: 118px;
    padding: 0;
    z-index: -1;
    border: 1px solid rgba(244, 122, 0, 0.18);
    border-radius: 22px 24px 118px 24px;
    background:
      radial-gradient(circle at 22px 22px, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62) 42%, rgba(255, 247, 239, 0.72) 100%);
    box-shadow: 0 16px 34px rgba(244, 122, 0, 0.14);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.78);
    transform-origin: 24px 24px;
    transition: opacity 0.18s ease, transform 0.22s ease;
  }

  .mobile-action-menu.is-open .mobile-action-panel {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .mobile-action-cell {
    position: absolute;
    width: 76px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f47a00;
    font: 700 13px/1 "Inter", sans-serif;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.18s ease, opacity 0.18s ease, text-shadow 0.18s ease;
  }

  .mobile-action-cell:active {
    opacity: 0.86;
    transform: translateY(-2px);
    text-shadow: 0 6px 14px rgba(244, 122, 0, 0.18);
  }

  .mobile-action-home {
    top: 12px;
    left: 70px;
  }

  .mobile-action-top {
    top: 56px;
    left: 36px;
    transform: rotate(45deg);
  }

  .mobile-action-random {
    top: 50px;
    left: 12px;
    width: 22px;
    height: 68px;
    line-height: 1.12;
    white-space: normal;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .mobile-action-top:active {
    transform: rotate(45deg) translateY(-2px);
  }

  .mobile-action-random:active {
    transform: translateY(-2px);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 24% 22%, rgba(244, 122, 0, 0.1), transparent 34%),
    radial-gradient(ellipse at 78% 62%, rgba(255, 184, 118, 0.16), transparent 38%);
  filter: blur(26px);
}

.scene {
  position: relative;
  isolation: isolate;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 1.4em -2px -2px -2px;
  z-index: -1;
  border-radius: 10px;
  background: rgba(255, 250, 244, 0.78);
  opacity: 0;
  pointer-events: none;
}

.scene-list .scene:first-child::after,
.scene.first-visible::after {
  top: 0;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 34px -18px auto auto;
  width: 150px;
  height: 150px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 122, 0, 0.12), transparent 66%);
  filter: blur(10px);
}

.scene h2 {
  border-left: none;
  padding-left: 0;
}

.scene h2::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 122, 0, 0.55);
  background: rgba(244, 122, 0, 0.08);
  box-shadow:
    0 0 12px rgba(244, 122, 0, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  vertical-align: middle;
}

.page-links a {
  display: inline-block;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    text-shadow 0.18s ease;
}

.page-links a:active,
.scene-links a:active,
.keywords a:active {
  transform: translateY(-2px);
}

.page-links a:focus-visible,
.scene-links a:focus-visible,
.keywords a:focus-visible {
  outline: 2px solid rgba(244, 122, 0, 0.28);
  outline-offset: 3px;
}

.keyword-quote {
  box-sizing: border-box;
  display: inline;
  padding: 0 0 0 0.5em;
  border-left: 3px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  overflow-wrap: anywhere;
  animation: quote-breathe 3.6s ease-in-out infinite;
}

.quote-flip {
  display: inline;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  vertical-align: baseline;
  white-space: inherit;
  perspective: 900px;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.quote-flip-inner {
  position: relative;
  display: inline-grid;
  padding: 0.1em 0;
  transform-style: preserve-3d;
  transition: transform 0.48s ease;
}

.quote-flip.is-flipped .quote-flip-inner {
  transform: rotateX(180deg);
}

.quote-flip.is-flipped {
  display: inline-block;
  width: 100%;
}

.quote-flip.is-flipped .quote-flip-inner {
  display: grid;
  width: 100%;
}

.quote-face,
.quote-back {
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.quote-back {
  position: absolute;
  inset: 0;
}

.quote-flip .keyword-quote {
  display: block;
}

.quote-back {
  box-sizing: border-box;
  display: block;
  min-height: 0;
  padding: 0 0 0 0.5em;
  border-left: 3px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  overflow-wrap: anywhere;
  transform: rotateX(180deg);
}

.quote-flip.is-flipped .quote-face {
  position: absolute;
  inset: 0;
}

.quote-flip.is-flipped .quote-back {
  position: static;
}

.quote-back::before {
  content: attr(data-detail);
}

.quote-flip:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

@keyframes quote-breathe {
  0%,
  100% {
    border-left-color: rgba(255, 255, 255, 0.6);
    text-shadow: none;
  }

  50% {
    border-left-color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
  }
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at 78% 12%, rgba(244, 122, 0, 0.12), transparent 28%),
      radial-gradient(circle at 10% 66%, rgba(255, 198, 148, 0.2), transparent 34%),
      #ffffff;
  }

  .scene::before {
    display: none;
  }

  .keywords {
    box-shadow:
      0 12px 30px rgba(244, 122, 0, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

}

@media (hover: none) and (pointer: coarse) and (min-width: 769px) {
  .container {
    padding-top: 28px;
  }

  .home-mark {
    font-family: "Baskerville", Georgia, serif;
  }

  .side-nav {
    top: 72px;
  }
}
