:root {
  --canvas: #555a60;
  --paper: #fbfaf6;
  --paper-warm: #f1eddf;
  --paper-blue: #e5ecfa;
  --ink: #202327;
  --muted: #6d7074;
  --line: #c9c7bf;
  --nav: #1f252d;
  --acid: #d8f05a;
  --blue: #447fca;
  --orange: #ee6841;
  --green: #2d783f;
  --serif: ui-serif, "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --frame: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--canvas);
  background-size: 100% 32px;
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-frame {
  width: min(calc(100% - 2rem), var(--frame));
  margin: 1rem auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 0.45rem;
  background: var(--canvas);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.5fr) auto;
  gap: 2rem;
  align-items: center;
  min-height: 78px;
  padding: 0.8rem 1.5rem;
  border-radius: 7px 7px 0 0;
  background: var(--paper);
}

.brand {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 45px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.masthead-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.96rem;
  text-align: center;
}

.masthead-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.masthead-links a:hover {
  color: var(--orange);
}

.section-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  overflow-x: auto;
  border-top: 1px solid #3b424c;
  border-radius: 0 0 7px 7px;
  background: var(--nav);
  scrollbar-width: thin;
}

.section-nav a {
  display: block;
  min-width: 150px;
  padding: 0.9rem 1.25rem 0.8rem;
  border-right: 1px solid #424952;
  color: var(--paper);
  text-align: center;
  text-decoration: none;
}

.section-nav a:last-child {
  border-right: 0;
}

.section-nav strong,
.section-nav small {
  display: block;
}

.section-nav strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.section-nav small {
  margin-top: 0.18rem;
  color: #aab6c8;
  font-family: var(--serif);
  font-size: 0.72rem;
}

.section-nav a:hover,
.section-nav a[aria-current="true"] {
  color: var(--acid);
  background: #171b20;
}

.section-nav a:hover small,
.section-nav a[aria-current="true"] small {
  color: #d7e49b;
}

.welcome-strip {
  display: grid;
  grid-template-columns: 155px minmax(0, 1.4fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 7px;
  background: var(--paper);
  animation: settle 420ms ease-out both;
}

.welcome-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--ink);
  transform: rotate(-1deg);
}

.welcome-mark span {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.welcome-mark span:first-child {
  background: var(--acid);
}

.welcome-mark span:last-child {
  border-left: 1px solid var(--ink);
  color: var(--paper);
  background: var(--blue);
}

.overline,
.card-label,
.story-meta,
.entry-meta,
.section-heading > div > p {
  margin: 0;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.welcome-copy {
  padding-inline: 1.5rem;
  border-inline: 1px solid var(--line);
}

.welcome-copy > p:last-child,
.welcome-guide p {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.75;
}

.welcome-guide strong {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.welcome-guide a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(290px, 0.85fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
  animation: settle 480ms 70ms ease-out both;
}

.content-column {
  overflow: hidden;
  border-radius: 7px;
  background: var(--paper);
}

.lead-story {
  padding: clamp(1.4rem, 3.4vw, 3.2rem);
  border-bottom: 1px solid var(--line);
}

.story-header {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--paper-warm);
}

.date-tile {
  display: grid;
  min-height: 64px;
  place-items: center;
  align-content: center;
  color: var(--paper);
  background: var(--green);
}

.date-tile strong,
.date-tile span {
  display: block;
  line-height: 1;
}

.date-tile strong {
  font-family: var(--serif);
  font-size: 1.55rem;
}

.date-tile span {
  margin-top: 0.25rem;
  color: #ddf6a2;
  font-size: 0.65rem;
  font-weight: 800;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--green);
}

.lead-story h1 {
  max-width: 760px;
  margin: 0.5rem 0 0;
  color: var(--orange);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.lead-body {
  max-width: 850px;
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.95;
}

.lead-body p {
  margin: 0 0 1.15rem;
}

.lead-body strong {
  text-decoration: underline;
  text-decoration-color: var(--acid);
  text-decoration-thickness: 0.35em;
  text-underline-offset: -0.18em;
  text-decoration-skip-ink: none;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.lead-actions a,
.section-outlink {
  padding: 0.72rem 1rem;
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.lead-actions a:hover,
.section-outlink:hover {
  color: var(--paper);
  background: var(--ink);
}

.lead-actions .primary-link {
  background: var(--acid);
}

.feed-section {
  scroll-margin-top: 9rem;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(260px, 1.2fr);
  gap: 2rem;
  align-items: end;
  padding: 1.4rem clamp(1.4rem, 3.4vw, 3.2rem);
  color: var(--paper);
  background: var(--green);
}

.section-heading-blue {
  background: var(--blue);
}

.section-heading-orange {
  color: var(--ink);
  background: var(--orange);
}

.section-heading h2 {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
}

.section-heading > p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.65;
}

.content-entry {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(1.5rem, 3.4vw, 3rem);
  border-bottom: 1px dotted #a7a49c;
}

.content-entry:last-child {
  border-bottom: 0;
}

.content-entry-featured {
  background: linear-gradient(90deg, rgba(216, 240, 90, 0.2), transparent 48%);
}

.entry-label {
  align-self: start;
  padding: 0.5rem 0.6rem;
  border-left: 5px solid var(--orange);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.entry-copy h3,
.practice-entry h3,
.public-note h3 {
  margin: 0.4rem 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.35;
}

.entry-copy h3 a,
.practice-entry h3 a {
  text-decoration: none;
}

.entry-copy h3 a:hover,
.practice-entry h3 a:hover {
  color: var(--green);
  text-decoration: underline;
}

.entry-meta {
  color: var(--muted);
}

.entry-copy > p:not(.entry-meta),
.practice-entry > div > p:not(.entry-meta),
.public-note > p:not(.entry-meta) {
  margin: 0.55rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.85;
}

.entry-copy .entry-detail {
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.practice-list {
  padding-inline: clamp(1.4rem, 3.4vw, 3.2rem);
}

.practice-entry {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 40px;
  gap: 1.25rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.practice-entry:last-child {
  border-bottom: 0;
}

.entry-number {
  padding-top: 0.15rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.row-arrow {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--ink);
  text-decoration: none;
}

.row-arrow:hover {
  color: var(--paper);
  background: var(--blue);
}

.public-note {
  margin: 0 clamp(1.4rem, 3.4vw, 3.2rem);
  padding: 2rem 0;
  border-bottom: 1px dotted #a7a49c;
}

.public-note h3 {
  color: var(--orange);
}

.public-note h3 a {
  text-decoration: none;
}

.public-note h3 a:hover {
  text-decoration: underline;
}

.public-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.74rem;
  font-weight: 900;
}

.public-note-actions a {
  color: var(--green);
}

.public-note-actions .read-on-site {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--acid);
  text-decoration: none;
}

.public-note-actions .read-on-site:hover {
  color: var(--paper);
  background: var(--ink);
}

.catalog-fallback {
  margin: 1.5rem clamp(1.4rem, 3.4vw, 3.2rem);
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.7;
}

.creative-catalog > .catalog-fallback {
  margin-inline: 0;
  color: #c6cbd2;
}

.section-outlink {
  display: block;
  width: fit-content;
  margin: 1.8rem clamp(1.4rem, 3.4vw, 3.2rem) 2.4rem;
  background: var(--paper-warm);
}

.backroom {
  color: var(--paper);
  background: var(--nav);
}

.backroom summary {
  padding: 1.6rem clamp(1.4rem, 3.4vw, 3.2rem);
  color: var(--acid);
  font-family: var(--serif);
  font-size: 1.02rem;
  cursor: pointer;
}

.backroom summary:hover {
  background: #171b20;
}

.backroom > div {
  padding: 0 clamp(1.4rem, 3.4vw, 3.2rem) 2.5rem;
}

.backroom h2 {
  max-width: 700px;
  margin: 0.65rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
}

.backroom > div > p {
  max-width: 720px;
  color: #c6cbd2;
  font-family: var(--serif);
  line-height: 1.8;
}

.game-projects {
  max-width: 760px;
  margin-top: 2rem;
}

.game-projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.game-projects-label,
.game-projects-heading h3,
.game-project-card h4,
.game-project-card p {
  margin: 0;
}

.game-projects-label,
.game-projects-heading > span,
.game-project-status {
  color: var(--acid);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.game-projects-heading h3 {
  margin-top: 0.2rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.game-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.game-project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.15rem;
  background: #171b20;
}

.game-project-card-featured {
  background: #20262d;
}

.game-project-card h4 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.game-project-card > p:not(.game-project-status) {
  color: #c6cbd2;
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.72;
}

.game-project-card a {
  margin-top: auto;
  color: var(--acid);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.game-project-card a:hover,
.game-project-card a:focus-visible {
  color: var(--paper);
}

.creative-catalog {
  display: grid;
  max-width: 760px;
  gap: 1.25rem;
  margin-top: 1.8rem;
}

.creative-stage {
  min-width: 0;
}

.creative-stage-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.creative-stage-heading h3,
.creative-stage-label,
.creative-stage-note {
  margin: 0;
}

.creative-stage-heading h3 {
  margin-top: 0.2rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.creative-stage-heading > span,
.creative-stage-label {
  color: var(--acid);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.creative-stage-note {
  padding-top: 0.7rem;
  color: #c6cbd2;
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.7;
}

.creative-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.creative-index li {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.creative-index li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.creative-index strong {
  color: var(--paper);
  font-family: var(--serif);
}

.creative-index span {
  color: #c6cbd2;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-align: right;
  white-space: nowrap;
}

.creative-incomplete {
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: #171b20;
}

.creative-incomplete > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.creative-incomplete > summary:hover,
.creative-incomplete > summary:focus-visible {
  color: var(--acid);
}

.creative-incomplete > summary span {
  color: #aeb5bf;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.creative-incomplete[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.creative-incomplete[open] > summary span {
  font-size: 0;
}

.creative-incomplete[open] > summary span::after {
  content: "收起 ↑";
  font-size: 0.65rem;
}

.creative-incomplete-body {
  display: grid;
  gap: 1.8rem;
  padding: 1.15rem;
}

.creative-warning {
  margin: 0;
  padding: 1rem;
  border-left: 5px solid var(--acid);
  color: var(--ink);
  background: var(--acid);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.75;
}

.sidebar {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.profile-card,
.focus-card,
.guide-card,
.link-card {
  padding: 1.35rem;
  border-radius: 7px;
  background: var(--paper);
}

.profile-card {
  scroll-margin-top: 9rem;
  background: var(--paper-blue);
}

.portrait-mark {
  width: 112px;
  margin: 1.3rem auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 7px solid var(--paper);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px #bfcbe0;
}

.portrait-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h2,
.focus-card h2,
.guide-card h2 {
  margin: 0.45rem 0 0.9rem;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.profile-card h2 {
  text-align: center;
}

.profile-card h2 small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.profile-card > p:not(.card-label) {
  margin: 0.85rem 0;
  color: #555c67;
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.7;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.15rem;
}

.profile-tags span {
  padding: 0.35rem 0.55rem;
  border: 1px solid #9aa8c1;
  font-size: 0.68rem;
  font-weight: 800;
}

.focus-card {
  background: var(--acid);
}

.card-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.focus-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(32, 35, 39, 0.35);
  list-style: none;
}

.focus-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(32, 35, 39, 0.25);
}

.focus-list li:last-child {
  border-bottom: 0;
}

.focus-list span {
  font-size: 0.63rem;
  font-weight: 900;
}

.focus-list strong {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.focus-edit-button,
.focus-editor button,
.focus-row button {
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.focus-edit-button {
  padding: 0.45rem 0.6rem;
}

.focus-edit-button:hover,
.focus-editor button:hover,
.focus-row button:hover {
  color: var(--paper);
  background: var(--ink);
}

.focus-editor {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(32, 35, 39, 0.35);
}

.focus-editor[hidden],
.focus-edit-button[hidden],
.focus-list[hidden] {
  display: none;
}

.focus-editor-list {
  display: grid;
  gap: 0.45rem;
}

.focus-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 2rem);
  gap: 0.3rem;
}

.focus-row input {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
}

.focus-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.focus-editor-actions button {
  padding: 0.48rem 0.6rem;
}

.focus-editor-actions .focus-save {
  color: var(--paper);
  background: var(--ink);
}

.focus-editor-note,
.focus-editor-status {
  min-height: 1em;
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.45;
}

.focus-editor-status {
  font-weight: 900;
}

.guide-card dl {
  margin: 0;
}

.guide-card dl div {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.guide-card dt {
  color: var(--orange);
  font-family: var(--serif);
  font-weight: 900;
}

.guide-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.link-card {
  padding-block: 0.85rem;
}

.link-card .card-label {
  padding: 0.45rem 0 0.8rem;
}

.link-card a {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.link-card a span {
  color: var(--muted);
  font-size: 0.72rem;
}

.link-card a strong {
  font-family: var(--serif);
  font-size: 0.9rem;
}

.link-card a:hover strong {
  color: var(--green);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: 7px;
  color: #d4d7dc;
  background: var(--nav);
  font-size: 0.74rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--acid);
}

.site-footer .footer-secret-link {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-secret-link:hover,
.site-footer .footer-secret-link:focus-visible {
  color: var(--acid);
}

.secret-body {
  min-height: 100vh;
  color: var(--paper);
  background:
    linear-gradient(rgba(216, 240, 90, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 240, 90, 0.025) 1px, transparent 1px),
    #11151a;
  background-size: 100% 32px, 32px 100%, auto;
}

.secret-shell {
  width: min(calc(100% - 2rem), 960px);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) 0;
}

.secret-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.secret-page-header p,
.secret-page-header h1 {
  margin: 0;
}

.secret-page-header h1 {
  max-width: 680px;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 1.04;
}

.secret-kicker,
.secret-section-label,
.secret-step-number {
  color: var(--acid);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.secret-home-link {
  flex: 0 0 auto;
  color: #b9c0c8;
  font-size: 0.72rem;
  font-weight: 800;
}

.secret-home-link:hover,
.secret-home-link:focus-visible {
  color: var(--acid);
}

.secret-intro {
  max-width: 700px;
  margin: 1.4rem 0 0;
  color: #c8cdd3;
  font-family: var(--serif);
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 1.85;
}

.puzzle-panel,
.secret-content-section {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(31, 37, 45, 0.82);
}

.puzzle-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.puzzle-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #c8cdd3;
  font-family: var(--serif);
  line-height: 1.7;
}

.puzzle-list li:last-child {
  border-bottom: 0;
}

.puzzle-key {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--acid);
  background: transparent;
  font-family: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.puzzle-key:hover,
.puzzle-key:focus-visible {
  color: var(--paper);
}

.puzzle-key.is-correct {
  color: #84905b;
  text-decoration: line-through;
  cursor: default;
}

.puzzle-status {
  min-height: 1.6em;
  margin: 1.2rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--acid);
  color: var(--ink);
  background: var(--acid);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.65;
}

.secret-unlocked .puzzle-panel {
  border-color: var(--acid);
  box-shadow: 0 0 0 1px var(--acid), 0 0 42px rgba(216, 240, 90, 0.14);
}

.secret-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.secret-anchor-nav a {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.secret-anchor-nav a:hover,
.secret-anchor-nav a:focus-visible {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.secret-content-section h2 {
  max-width: 700px;
  margin: 0.3rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4vw, 2.5rem);
}

.secret-content-section > p:not(.secret-section-label) {
  max-width: 720px;
  color: #c8cdd3;
  font-family: var(--serif);
  line-height: 1.9;
}

.secret-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.4rem 0 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.18);
  list-style: none;
}

.secret-plan-list li {
  min-width: 0;
  padding: 1.1rem;
  background: #171b20;
}

.secret-plan-list strong {
  display: block;
  margin: 0.35rem 0 0.6rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.secret-plan-list p {
  margin: 0;
  color: #bfc5cc;
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.75;
}

.secret-page-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #9299a1;
  font-size: 0.7rem;
}

.secret-page-footer a {
  color: var(--acid);
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .masthead {
    grid-template-columns: 1fr auto;
  }

  .masthead-note {
    display: none;
  }

  .welcome-strip {
    grid-template-columns: 130px 1fr;
  }

  .welcome-guide {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 1rem;
  }

  .site-frame {
    width: min(calc(100% - 1rem), var(--frame));
    margin-block: 0.5rem;
  }

  .site-header {
    position: static;
    padding-top: 0;
  }

  .masthead {
    min-height: 68px;
    padding-inline: 1rem;
  }

  .masthead-links {
    gap: 0.7rem;
    font-size: 0.67rem;
  }

  .section-nav {
    display: flex;
    border-radius: 0 0 6px 6px;
    scrollbar-width: none;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav a {
    min-width: 130px;
  }

  .welcome-strip {
    grid-template-columns: 1fr;
  }

  .welcome-mark {
    width: 145px;
  }

  .welcome-copy {
    padding: 1rem 0;
    border-block: 1px solid var(--line);
    border-inline: 0;
  }

  .welcome-guide {
    grid-column: auto;
    padding-top: 0;
    border-top: 0;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
    order: 2;
  }

  .profile-card,
  .focus-card {
    grid-row: span 2;
  }

  .feed-section,
  .profile-card {
    scroll-margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  .masthead {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .masthead-links {
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
  }

  .section-nav a {
    min-width: 112px;
    padding-inline: 0.8rem;
  }

  .section-nav strong {
    font-size: 0.92rem;
  }

  .welcome-strip {
    padding: 1rem;
  }

  .lead-story {
    padding: 1rem;
  }

  .story-header {
    grid-template-columns: 48px 1fr;
    padding: 0.8rem;
  }

  .date-tile {
    min-height: 48px;
  }

  .date-tile strong {
    font-size: 1.1rem;
  }

  .lead-body {
    font-size: 1rem;
    line-height: 1.8;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.2rem 1rem;
  }

  .content-entry {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
  }

  .entry-label {
    width: fit-content;
  }

  .practice-list {
    padding-inline: 1rem;
  }

  .practice-entry {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .row-arrow {
    grid-column: 2;
  }

  .public-note {
    margin-inline: 1rem;
  }

  .creative-index {
    grid-template-columns: 1fr;
  }

  .game-project-grid {
    grid-template-columns: 1fr;
  }

  .secret-page-header,
  .secret-page-footer {
    flex-direction: column;
  }

  .secret-plan-list {
    grid-template-columns: 1fr;
  }

  .creative-index span {
    text-align: left;
  }

  .section-outlink {
    margin-inline: 1rem;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .focus-card {
    grid-row: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
