:root {
  --bg: #eef5da;
  --paper: #fff7df;
  --paper-strong: #fffaf0;
  --ink: #253522;
  --muted: #66745e;
  --leaf: #597a3d;
  --leaf-dark: #314e2e;
  --gold: #d4a84f;
  --wood: #8a6239;
  --blue: #4d7f8a;
  --line: rgba(104, 76, 40, 0.22);
  --shadow: 0 24px 70px rgba(35, 53, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(246, 232, 177, 0.68), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(108, 154, 96, 0.22), transparent 26rem),
    linear-gradient(180deg, #edf5d8 0%, #f9efd0 42%, #e1edc8 100%);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  line-height: 1.78;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: #1c2d1a;
  opacity: 0;
  transition: opacity 260ms ease;
}

body.page-leaving::after {
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 246, 202, 0.38), transparent 18rem),
    radial-gradient(circle at 84% 12%, rgba(163, 196, 118, 0.24), transparent 22rem);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  color: #fff8df;
  background: linear-gradient(180deg, rgba(38, 57, 34, 0.78), rgba(38, 57, 34, 0.18));
  backdrop-filter: blur(14px);
  transition: padding 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(38, 57, 34, 0.9);
  box-shadow: 0 12px 34px rgba(23, 36, 21, 0.18);
}

.brand {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(24px, 3vw, 34px);
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 34px);
  font-size: 15px;
  font-weight: 900;
}

nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 248, 223, 0.84);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 94vh;
  display: grid;
  align-items: end;
  background: #55713c;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 39, 25, 0.82) 0%, rgba(35, 50, 28, 0.46) 44%, rgba(35, 50, 28, 0.16) 100%),
    linear-gradient(0deg, rgba(28, 43, 24, 0.86) 0%, transparent 48%);
}

.hero-alchemist .hero-shade {
  background:
    linear-gradient(90deg, rgba(35, 30, 22, 0.84) 0%, rgba(45, 40, 26, 0.48) 44%, rgba(45, 40, 26, 0.12) 100%),
    linear-gradient(0deg, rgba(30, 33, 22, 0.78) 0%, transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 36px));
  margin: 0 0 clamp(76px, 12vh, 132px) clamp(18px, 7vw, 96px);
  color: #fff8df;
}

.eyebrow,
.section-kicker,
.status {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(54px, 10vw, 128px);
  line-height: 0.96;
  font-weight: 400;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 4.3vw, 56px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  color: rgba(255, 248, 223, 0.9);
  font-size: clamp(18px, 2.2vw, 25px);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.centered {
  justify-content: center;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  transition: box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary {
  color: #fff8df;
  background: linear-gradient(180deg, #7d9b4b, #4f7339);
  box-shadow: 0 10px 26px rgba(18, 36, 18, 0.28);
}

.expect-btn {
  color: #243420;
  border: 1px solid rgba(120, 82, 31, 0.32);
  background: linear-gradient(180deg, #f3d686, #d5a84d);
  box-shadow: 0 10px 26px rgba(120, 82, 31, 0.22);
}

.expect-btn.is-done {
  color: #fff8df;
  background: linear-gradient(180deg, #6f9147, #3d6336);
}

.interest-vote-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(104, 76, 40, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.58);
}

.interest-vote-panel p {
  margin: 0;
  color: var(--leaf-dark);
  font-weight: 900;
}

.interest-options,
.reaction-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-option,
.reaction-option {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(49, 78, 46, 0.22);
  border-radius: 999px;
  color: var(--leaf-dark);
  background: rgba(238, 245, 218, 0.78);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.interest-option:hover,
.interest-option:focus-visible,
.reaction-option:hover,
.reaction-option:focus-visible {
  border-color: rgba(89, 122, 61, 0.52);
  background: rgba(231, 241, 203, 0.95);
  transform: translateY(-2px);
  outline: none;
}

.interest-option b,
.reaction-option b {
  min-width: 28px;
  padding: 1px 8px;
  border-radius: 999px;
  color: #fff8df;
  background: var(--leaf-dark);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.interest-option.is-done,
.reaction-option.is-done {
  cursor: default;
  border-color: rgba(212, 168, 79, 0.46);
  background: rgba(250, 235, 185, 0.72);
}

.secondary,
.ghost {
  color: #fff8df;
  border: 1px solid rgba(255, 248, 223, 0.62);
  background: rgba(255, 248, 223, 0.12);
}

.secondary.dark {
  color: var(--leaf-dark);
  border-color: rgba(49, 78, 46, 0.34);
  background: rgba(255, 247, 223, 0.7);
}

.primary:hover,
.primary:focus-visible {
  background: linear-gradient(180deg, #8eaa58, #557c3e);
  box-shadow: 0 16px 34px rgba(18, 36, 18, 0.34);
}

.secondary:hover,
.secondary:focus-visible,
.ghost:hover,
.ghost:focus-visible {
  border-color: rgba(255, 248, 223, 0.86);
  background: rgba(255, 248, 223, 0.2);
}

.secondary.dark:hover,
.secondary.dark:focus-visible {
  border-color: rgba(49, 78, 46, 0.52);
  background: rgba(255, 247, 223, 0.92);
}

.hero-card {
  position: absolute;
  right: clamp(18px, 6vw, 82px);
  bottom: 70px;
  z-index: 3;
  width: min(340px, calc(100vw - 36px));
  padding: 22px;
  color: #fff8df;
  border: 1px solid rgba(255, 248, 223, 0.24);
  border-radius: 8px;
  background: rgba(32, 50, 29, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-card b {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.hero-card p {
  color: rgba(255, 248, 223, 0.78);
}

.hero-card a {
  color: #f3d07b;
  font-weight: 900;
}

.release-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
  margin-top: clamp(44px, 7vw, 82px) !important;
  padding: clamp(24px, 4vw, 40px);
  color: #fff8df;
  border: 1px solid rgba(255, 248, 223, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(33, 52, 30, 0.96), rgba(77, 103, 50, 0.9)),
    radial-gradient(circle at 92% 8%, rgba(243, 214, 134, 0.34), transparent 20rem);
  box-shadow: var(--shadow);
}

.release-strip h2 {
  margin-bottom: 10px;
}

.release-strip p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 248, 223, 0.82);
  font-size: clamp(16px, 1.6vw, 19px);
}

main > section:not(.hero):not(.page-hero),
.article-page {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.intro,
.feature-section,
.game-detail,
.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 7vw, 84px);
  align-items: center;
  padding: clamp(70px, 8vw, 110px) 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(50px, 7vw, 90px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 250, 234, 0.8), rgba(224, 237, 199, 0.55)), var(--paper);
  box-shadow: var(--shadow);
}

.split-intro {
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.feature-copy p,
.game-copy p,
.profile-card p,
.contact-section p,
.article-page p {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
}

.portal-grid,
.loop-grid,
.camp-grid,
.resume-grid,
.article-list,
.profile-highlights,
.contact-list,
.visual-grid,
.screenshot-grid,
.showcase-strip,
.article-gallery {
  display: grid;
  gap: 18px;
}

.portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 0 clamp(70px, 8vw, 110px);
}

.daily-log-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
  margin-bottom: clamp(44px, 6vw, 74px) !important;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 234, 0.86), rgba(224, 237, 199, 0.58)),
    var(--paper);
  box-shadow: var(--shadow);
}

.daily-log-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.daily-log-copy h2 {
  color: var(--leaf-dark);
}

.daily-log-copy p {
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 18px);
}

.daily-log-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 26px;
}

.daily-log-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--leaf-dark);
  border: 1px solid rgba(49, 78, 46, 0.2);
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.daily-log-entry {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(104, 76, 40, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.7);
}

.daily-log-entry.is-text-only {
  grid-template-columns: 1fr;
}

.daily-log-media {
  min-height: 100%;
  background: #21351e;
}

.daily-log-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.daily-log-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px);
}

.daily-log-body time {
  margin-bottom: 12px;
  color: var(--wood);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.daily-log-body h3 {
  color: var(--leaf-dark);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.22;
}

.daily-log-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
}

.portal-card,
.article-card,
.loop-grid article,
.camp-grid article,
.resume-grid article,
.profile-card,
.profile-aside,
.experience-item,
.quote-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 247, 223, 0.9)), var(--paper);
  box-shadow: var(--shadow);
}

.portal-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.portal-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 6px;
  background: #1d261b;
}

.portal-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(23, 35, 21, 0.2));
  pointer-events: none;
}

.portal-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.portal-card:hover .portal-card-media img,
.portal-card:focus-visible .portal-card-media img {
  transform: scale(1.045);
}

.portal-card:hover,
.portal-card:focus-visible,
.article-card:hover,
.article-card:focus-visible,
.timeline-item:hover,
.timeline-item:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(49, 78, 46, 0.34);
  box-shadow: 0 30px 82px rgba(35, 53, 31, 0.24);
}

.portal-card span {
  display: block;
  margin: 0 14px 16px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
}

.portal-card h3,
.portal-card p {
  margin-right: 14px;
  margin-left: 14px;
}

.portal-card p {
  margin-bottom: 16px;
}

.portal-card p,
.loop-grid p,
.camp-grid p,
.resume-grid p,
.experience-item p,
.article-card p,
.quote-card span {
  margin-bottom: 0;
  color: var(--muted);
}

.image-frame,
.game-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-frame img,
.game-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stat-row,
.info-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.stat-row {
  grid-template-columns: repeat(3, 1fr);
}

.stat-row span,
.info-grid span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 223, 0.7);
}

.stat-row b,
.info-grid b {
  display: block;
  color: var(--leaf-dark);
  font-size: 20px;
}

.timeline-section,
.mechanics,
.camp-section,
.resume-section,
.experience-section,
.visual-section,
.screenshot-section {
  padding: clamp(70px, 8vw, 110px) 0;
  border-top: 1px solid var(--line);
}

.premium-carousel {
  position: relative;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid rgba(104, 76, 40, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 250, 234, 0.72), rgba(224, 237, 199, 0.42)),
    rgba(255, 247, 223, 0.74);
  box-shadow:
    0 30px 90px rgba(35, 53, 31, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.premium-carousel::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 248, 223, 0.42);
  border-radius: 14px;
  z-index: 2;
}

.carousel-viewport {
  position: relative;
  min-height: clamp(420px, 58vh, 640px);
  overflow: hidden;
  border-radius: 12px;
  background: #1d261b;
}

.bug-carousel .carousel-viewport {
  min-height: clamp(360px, 56vh, 580px);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  z-index: 0;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 248, 223, 0.12), transparent 28rem),
    #1d261b;
}

.bug-carousel .carousel-slide img {
  object-fit: cover;
}

.carousel-slide figcaption {
  position: absolute;
  left: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: #fff8df;
  border: 1px solid rgba(255, 248, 223, 0.22);
  border-radius: 10px;
  background: rgba(23, 35, 21, 0.66);
  backdrop-filter: blur(14px);
}

.carousel-slide figcaption b {
  display: block;
  font-size: 18px;
}

.carousel-slide figcaption span {
  color: rgba(255, 248, 223, 0.74);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff8df;
  border: 1px solid rgba(255, 248, 223, 0.42);
  border-radius: 50%;
  background: rgba(23, 35, 21, 0.68);
  box-shadow: 0 16px 34px rgba(14, 25, 12, 0.24);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%) scale(0.92);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  backdrop-filter: blur(14px);
}

.carousel-nav span {
  display: block;
  margin-top: -3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.carousel-nav-prev {
  left: clamp(14px, 2.4vw, 26px);
}

.carousel-nav-next {
  right: clamp(14px, 2.4vw, 26px);
}

.premium-carousel:hover .carousel-nav,
.premium-carousel:focus-within .carousel-nav {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  background: rgba(49, 78, 46, 0.92);
  border-color: rgba(255, 248, 223, 0.72);
}

.carousel-nav:focus-visible,
.carousel-dot:focus-visible {
  outline: 3px solid rgba(212, 168, 79, 0.86);
  outline-offset: 3px;
}

.carousel-dots {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(49, 78, 46, 0.28);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease, transform 220ms ease;
}

.carousel-dot.is-active {
  width: 30px;
  background: var(--leaf);
}

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.carousel-thumb {
  position: relative;
  min-width: 0;
  height: 128px;
  overflow: hidden;
  padding: 0;
  color: #fff8df;
  border: 1px solid rgba(49, 78, 46, 0.18);
  border-radius: 8px;
  background: #1d261b;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(35, 53, 31, 0.14);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: opacity 220ms ease, transform 360ms ease;
}

.carousel-thumb span {
  position: absolute;
  inset: auto 10px 10px;
  display: block;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 223, 0.18);
  border-radius: 6px;
  background: rgba(23, 35, 21, 0.68);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.carousel-thumb:hover,
.carousel-thumb:focus-visible,
.carousel-thumb.is-active {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 79, 0.72);
  box-shadow: 0 20px 40px rgba(35, 53, 31, 0.2);
}

.carousel-thumb:hover img,
.carousel-thumb:focus-visible img,
.carousel-thumb.is-active img {
  opacity: 1;
  transform: scale(1.045);
}

.visual-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: stretch;
}

.visual-card,
.shot,
.article-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.visual-card img,
.shot img,
.article-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.visual-card:hover img,
.shot:hover img,
.article-gallery figure:hover img {
  transform: scale(1.035);
}

.visual-card {
  min-height: 220px;
}

.visual-card.hero-shot {
  min-height: 680px;
  background: #1d261b;
}

.visual-card.hero-shot img {
  object-fit: contain;
  background: #1d261b;
}

.visual-stack {
  display: grid;
  gap: 18px;
}

.visual-card figcaption,
.shot figcaption,
.article-gallery figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  color: #fff8df;
  font-size: 14px;
  border: 1px solid rgba(255, 248, 223, 0.22);
  border-radius: 8px;
  background: rgba(23, 35, 21, 0.66);
  backdrop-filter: blur(12px);
}

.visual-card figcaption b,
.shot figcaption b,
.article-gallery figcaption b {
  display: block;
  font-size: 16px;
}

.visual-card figcaption span,
.shot figcaption span,
.article-gallery figcaption span {
  color: rgba(255, 248, 223, 0.74);
}

.section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.visual-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
  margin-bottom: 28px;
}

.visual-editorial .section-title {
  margin-bottom: 0;
}

.visual-editorial .section-title p:last-child,
.notes-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.visual-notes {
  display: grid;
  gap: 10px;
}

.visual-notes span {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(104, 76, 40, 0.2);
  border-radius: 8px;
  background: rgba(255, 247, 223, 0.72);
}

.visual-notes b {
  display: block;
  color: var(--leaf-dark);
  font-size: 18px;
}

.visual-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.visual-mini-card {
  position: relative;
  min-height: 210px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d261b;
  box-shadow: var(--shadow);
}

.visual-mini-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 360ms ease;
}

.visual-mini-card:hover img {
  transform: scale(1.04);
}

.visual-mini-card figcaption {
  position: absolute;
  inset: auto 12px 12px;
  padding: 11px 12px;
  color: #fff8df;
  border: 1px solid rgba(255, 248, 223, 0.2);
  border-radius: 8px;
  background: rgba(23, 35, 21, 0.68);
  backdrop-filter: blur(12px);
}

.visual-mini-card figcaption b,
.visual-mini-card figcaption span {
  display: block;
}

.visual-mini-card figcaption span {
  color: rgba(255, 248, 223, 0.74);
  font-size: 14px;
}

.notes-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.notes-intro {
  position: sticky;
  top: 104px;
}

.notes-intro .btn {
  margin-top: 24px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 234, 0.76), rgba(224, 237, 199, 0.5)),
    var(--paper);
  box-shadow: 0 18px 52px rgba(35, 53, 31, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.timeline-item::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(49, 78, 46, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 248, 223, 0.7), rgba(212, 168, 79, 0.24));
}

.timeline-item time {
  color: var(--wood);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3 {
  max-width: 650px;
  padding-right: 40px;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-panel {
  margin-bottom: clamp(70px, 8vw, 110px) !important;
  padding: clamp(58px, 8vw, 92px) 24px;
  text-align: center;
  color: #fff8df;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(47, 75, 43, 0.96), rgba(82, 111, 56, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(246, 206, 118, 0.35), transparent 24rem);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 150px clamp(18px, 6vw, 82px) 82px;
  color: #fff8df;
  background:
    linear-gradient(120deg, rgba(36, 57, 33, 0.96), rgba(91, 121, 63, 0.88)),
    url("assets/optimized/hero-forest-camp.webp") center / cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 42, 25, 0.5);
}

.page-hero > * {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-hero.compact h1 {
  font-size: clamp(54px, 8vw, 104px);
}

.section-nav {
  position: sticky;
  top: 82px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px !important;
  margin-bottom: -18px !important;
  padding: 12px;
  border: 1px solid rgba(104, 76, 40, 0.18);
  border-radius: 8px;
  background: rgba(255, 247, 223, 0.82);
  box-shadow: 0 16px 44px rgba(35, 53, 31, 0.12);
  backdrop-filter: blur(14px);
}

.section-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--leaf-dark);
  border: 1px solid rgba(49, 78, 46, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 234, 0.58);
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  border-color: rgba(49, 78, 46, 0.4);
  background: rgba(255, 250, 234, 0.95);
  transform: translateY(-2px);
}

.game-detail {
  align-items: center;
}

.game-detail.alt {
  border-top: 1px solid var(--line);
}

.test-release-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.5fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  margin-bottom: clamp(70px, 8vw, 110px) !important;
  padding: clamp(28px, 5vw, 54px);
  color: #fff8df;
  border: 1px solid rgba(255, 248, 223, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 49, 28, 0.96), rgba(80, 105, 52, 0.92)),
    radial-gradient(circle at 88% 8%, rgba(212, 168, 79, 0.32), transparent 22rem);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}

.test-release-copy h2 {
  max-width: 780px;
  margin-bottom: 16px;
}

.test-release-copy p {
  max-width: 760px;
  margin-bottom: 12px;
  color: rgba(255, 248, 223, 0.82);
  font-size: clamp(17px, 1.6vw, 20px);
}

.test-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.test-contact span,
.test-contact b {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 248, 223, 0.24);
  border-radius: 8px;
  background: rgba(255, 248, 223, 0.1);
  font-size: 15px;
}

.test-contact span {
  color: rgba(255, 248, 223, 0.76);
}

.test-contact b {
  color: #f3d686;
}

.test-release-actions {
  display: grid;
  gap: 16px;
  justify-items: stretch;
}

.test-release-badge {
  padding: 18px;
  border: 1px solid rgba(255, 248, 223, 0.24);
  border-radius: 8px;
  background: rgba(255, 248, 223, 0.1);
  backdrop-filter: blur(12px);
}

.test-release-badge span,
.test-release-badge small {
  display: block;
  color: rgba(255, 248, 223, 0.74);
  font-weight: 900;
}

.test-release-badge b {
  display: block;
  margin: 6px 0;
  color: #f3d686;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.alchemist-intro .game-media img {
  aspect-ratio: 16 / 9;
}

.invite-form {
  display: grid;
  gap: 12px;
}

.invite-form label {
  color: rgba(255, 248, 223, 0.86);
  font-weight: 900;
}

.invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.invite-row input {
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  color: #fff8df;
  border: 1px solid rgba(255, 248, 223, 0.3);
  border-radius: 8px;
  background: rgba(16, 28, 15, 0.3);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.invite-row input::placeholder {
  color: rgba(255, 248, 223, 0.54);
}

.invite-row input:focus {
  border-color: rgba(243, 214, 134, 0.82);
  box-shadow: 0 0 0 3px rgba(243, 214, 134, 0.18);
}

.invite-submit {
  min-height: 52px;
  color: #fff8df;
  border: 1px solid rgba(255, 248, 223, 0.28);
  background: rgba(255, 248, 223, 0.13);
}

.invite-submit:hover,
.invite-submit:focus-visible {
  background: rgba(255, 248, 223, 0.22);
}

.invite-message {
  margin: 0;
  color: rgba(255, 248, 223, 0.7);
  font-size: 14px;
  line-height: 1.55;
}

.invite-message.is-error {
  color: #ffd2a7;
}

.invite-message.is-success {
  color: #f3d686;
}

.is-hidden {
  display: none !important;
}

.download-btn {
  min-height: 58px;
  color: #22341f;
  background: linear-gradient(180deg, #f4d989, #d4a84f);
  box-shadow: 0 18px 38px rgba(19, 31, 16, 0.28);
}

.download-btn:hover {
  background: linear-gradient(180deg, #ffe49b, #d9ae58);
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loop-grid {
  grid-template-columns: repeat(4, 1fr);
}

.loop-grid article,
.camp-grid article,
.resume-grid article {
  padding: 26px;
}

.loop-grid span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 32px;
  color: #fff8df;
  border-radius: 50%;
  background: var(--leaf);
  font-weight: 900;
}

.camp-grid {
  grid-template-columns: repeat(4, 1fr);
}

.screenshot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.showcase-strip {
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34vw);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 20px;
  scroll-snap-type: x mandatory;
}

.showcase-strip::-webkit-scrollbar {
  height: 10px;
}

.showcase-strip::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(49, 78, 46, 0.36);
}

.shot {
  min-height: 420px;
  scroll-snap-align: start;
}

.shot.phone {
  background: #1d261b;
}

.shot.phone img {
  object-fit: contain;
  background: #1d261b;
}

.feature-shot,
.bug-feature {
  grid-column: auto;
}

.bug-strip {
  grid-auto-columns: minmax(420px, 48vw);
}

.bug-strip .shot {
  min-height: 350px;
}

.camp-grid article::before {
  content: "";
  display: block;
  width: 42px;
  height: 6px;
  margin-bottom: 22px;
  border-radius: 99px;
  background: linear-gradient(90deg, #d2a65a, #6f9147);
}

.quote-card {
  padding: clamp(30px, 5vw, 56px);
}

.quote-card p {
  color: var(--leaf-dark);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.45;
}

.article-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(70px, 8vw, 110px) 0;
}

.article-card {
  min-height: 280px;
  padding: clamp(28px, 4vw, 44px);
}

.article-card.large {
  grid-row: span 2;
  min-height: 580px;
  color: #fff8df;
  background:
    linear-gradient(180deg, rgba(39, 62, 34, 0.68), rgba(39, 62, 34, 0.92)),
    url("assets/optimized/hero-forest-camp.webp") center / cover;
}

.article-card.large p,
.article-card.large span {
  color: rgba(255, 248, 223, 0.82);
}

.article-card span {
  display: block;
  margin-bottom: 24px;
  color: var(--leaf-dark);
  font-weight: 900;
}

.profile-section {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.profile-card {
  padding: clamp(28px, 4vw, 52px);
}

.profile-card h2 {
  max-width: 680px;
}

.profile-card p {
  max-width: 760px;
}

.profile-card p + p {
  margin-top: 20px;
}

.profile-aside {
  display: grid;
  gap: 26px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(238, 245, 218, 0.76)),
    var(--paper);
}

.profile-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-highlights span {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(104, 76, 40, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.66);
}

.profile-path {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

.profile-path li {
  position: relative;
  padding: 0 0 24px 28px;
  border-left: 1px solid rgba(49, 78, 46, 0.24);
}

.profile-path li:last-child {
  padding-bottom: 0;
}

.profile-path li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 168, 79, 0.18);
}

.profile-path time {
  display: block;
  margin-bottom: 5px;
  color: var(--wood);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.profile-path strong {
  display: block;
  color: var(--leaf-dark);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.35;
}

.profile-path p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.contact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-list span {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 223, 0.76);
}

.profile-highlights b,
.contact-list b {
  display: block;
  color: var(--leaf-dark);
  font-size: 25px;
}

.resume-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-list {
  display: grid;
  gap: 16px;
}

.experience-item {
  display: grid;
  grid-template-columns: 170px 230px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
}

.experience-item time {
  color: var(--wood);
  font-weight: 900;
}

.article-page {
  max-width: 900px;
  padding: 150px 0 92px;
}

.article-header {
  margin-bottom: 34px;
}

.article-header h1 {
  color: var(--leaf-dark);
  font-size: clamp(42px, 7vw, 82px);
}

.article-header p {
  max-width: 780px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin-bottom: 44px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-page section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.article-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-gallery figure {
  min-height: 360px;
}

.article-gallery:not(.bug-gallery) img {
  object-fit: contain;
  background: #1d261b;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.journal-page {
  width: min(1620px, calc(100% - clamp(32px, 8vw, 120px)));
  margin: 0 auto;
  padding: clamp(112px, 10vw, 152px) 0 96px;
}

.journal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: center;
  min-height: 230px;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.journal-hero h1 {
  margin: 0;
  color: var(--leaf-dark);
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: 0;
}

.journal-hero .lead {
  max-width: 760px;
  margin: 0;
  color: rgba(49, 78, 46, 0.76);
  font-size: clamp(20px, 2vw, 30px);
}

.journal-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: start;
}

.journal-index,
.journal-reader {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(255, 247, 223, 0.78)),
    rgba(255, 247, 223, 0.88);
  box-shadow: 0 24px 70px rgba(35, 53, 31, 0.13);
}

.journal-index {
  position: sticky;
  top: 104px;
  overflow: hidden;
}

.journal-index-head {
  padding: clamp(24px, 4vw, 38px) clamp(22px, 3vw, 34px) 18px;
}

.journal-index-head h2,
.reader-empty h2,
.reader-content h2 {
  margin: 0;
  color: var(--leaf-dark);
}

.journal-index-head h2 {
  font-size: clamp(30px, 3vw, 48px);
}

.journal-index-head p,
.journal-status,
.journal-list-item span,
.reader-summary,
.reader-body {
  color: rgba(49, 78, 46, 0.76);
}

.journal-status {
  margin: 0 clamp(22px, 3vw, 34px) 20px;
  padding: 14px 16px;
  border: 1px solid rgba(104, 76, 40, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  font-weight: 800;
}

.journal-status:empty,
.journal-status[hidden] {
  display: none;
}

.journal-status.is-error {
  color: #7d3025;
  background: rgba(244, 212, 190, 0.42);
}

.journal-list {
  display: grid;
  max-height: min(620px, calc(100vh - 230px));
  overflow: auto;
  padding: 0 12px 14px;
  scrollbar-width: thin;
}

.journal-list-item {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 20px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.journal-list-item:hover,
.journal-list-item:focus-visible,
.journal-list-item.is-active {
  border-color: rgba(132, 98, 57, 0.28);
  background: rgba(238, 245, 218, 0.72);
  transform: translateY(-2px);
  outline: none;
}

.journal-list-item time,
.reader-meta time,
.reader-views {
  color: var(--wood);
  font-size: 14px;
  font-weight: 900;
}

.reader-views {
  padding: 5px 0;
}

.journal-list-item strong {
  color: var(--leaf-dark);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
}

.journal-list-item span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.journal-reader {
  min-height: 680px;
  padding: clamp(28px, 5vw, 58px);
}

.reader-empty {
  display: grid;
  place-content: center;
  min-height: 560px;
  text-align: center;
}

.reader-empty p {
  max-width: 620px;
  margin-inline: auto;
}

.reader-content {
  display: grid;
  gap: 24px;
}

.reader-back {
  justify-self: start;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(49, 78, 46, 0.26);
  border-radius: 8px;
  color: var(--leaf-dark);
  background: rgba(255, 250, 240, 0.8);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reader-tags span {
  padding: 5px 12px;
  border: 1px solid rgba(49, 78, 46, 0.22);
  border-radius: 999px;
  color: var(--leaf-dark);
  background: rgba(238, 245, 218, 0.8);
  font-size: 14px;
  font-weight: 900;
}

.reader-content h2 {
  max-width: 920px;
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: 1.14;
}

.reader-summary {
  max-width: 840px;
  margin: 0;
  font-size: clamp(19px, 1.8vw, 27px);
}

.reader-cover {
  overflow: hidden;
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d261b;
  box-shadow: var(--shadow);
}

.reader-cover img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.reader-body {
  max-width: 860px;
  font-size: clamp(18px, 1.45vw, 22px);
}

.reader-body p {
  margin: 0 0 1.2em;
}

.reader-reactions {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-top: 12px;
  padding: 22px;
  border: 1px solid rgba(104, 76, 40, 0.18);
  border-radius: 8px;
  background: rgba(238, 245, 218, 0.52);
}

.reader-reactions h3 {
  margin: 0;
  color: var(--leaf-dark);
  font-size: clamp(22px, 2.2vw, 34px);
}

.project-publish-note {
  display: grid;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 38px) !important;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.9), rgba(238, 245, 218, 0.72)),
    var(--paper);
  box-shadow: 0 18px 54px rgba(35, 53, 31, 0.12);
}

.project-publish-note h2 {
  margin: 0;
  color: var(--leaf-dark);
  font-size: clamp(26px, 3vw, 42px);
}

.project-publish-note p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
}

.project-publish-note code {
  color: var(--leaf-dark);
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 900;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(18px, 5vw, 72px) 68px;
  color: #fff8df;
  background: #31402d;
}

.site-status {
  color: rgba(255, 248, 223, 0.82);
}

.beian {
  position: fixed;
  left: 14px;
  bottom: 10px;
  z-index: 30;
  padding: 6px 10px;
  color: rgba(37, 53, 34, 0.78);
  font-size: 12px;
  border: 1px solid rgba(37, 53, 34, 0.14);
  border-radius: 4px;
  background: rgba(255, 247, 223, 0.86);
  backdrop-filter: blur(10px);
}

.reveal-card,
.timeline-item,
.article-card,
.section-title,
.game-detail,
.mechanics,
.camp-section,
.profile-section,
.contact-section,
.resume-section,
.experience-section {
  opacity: 0;
  transform: translateY(28px);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0 18px 36px;
  }

  .intro,
  .feature-section,
  .game-detail,
  .profile-section,
  .portal-grid,
  .article-list,
  .resume-grid,
  .experience-item,
  .visual-grid,
  .screenshot-grid,
  .profile-highlights,
  .contact-section,
  .contact-list,
  .test-release-panel,
  .release-strip,
  .daily-log-panel,
  .daily-log-entry,
  .visual-editorial,
  .visual-mini-grid,
  .notes-showcase,
  .journal-hero,
  .journal-shell {
    grid-template-columns: 1fr;
  }

  .notes-intro {
    position: static;
  }

  .journal-index {
    position: static;
  }

  .journal-list {
    max-height: none;
  }

  .release-strip .download-btn {
    width: 100%;
  }

  .visual-card.hero-shot {
    min-height: 560px;
  }

  .loop-grid,
  .camp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card.large {
    min-height: 420px;
  }

  .daily-log-media img {
    aspect-ratio: 16 / 9;
    min-height: 260px;
  }

  .carousel-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }

  nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    margin-left: 18px;
    margin-bottom: 42px;
  }

  .hero-alchemist .hero-content h1 {
    max-width: min(330px, calc(100vw - 36px));
    font-size: clamp(46px, 15vw, 68px);
    line-height: 1.04;
  }

  .hero-alchemist .hero-content,
  .hero-alchemist .lead,
  .hero-alchemist .hero-actions {
    width: min(330px, calc(100vw - 64px));
    max-width: min(330px, calc(100vw - 64px));
  }

  .hero-alchemist .lead {
    font-size: 17px;
    line-height: 1.78;
    overflow-wrap: anywhere;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(27, 43, 25, 0.9) 0%, rgba(27, 43, 25, 0.48) 68%, rgba(27, 43, 25, 0.3) 100%);
  }

  .stat-row,
  .info-grid,
  .loop-grid,
  .camp-grid,
  .timeline-item,
  .article-gallery {
    grid-template-columns: 1fr;
  }

  .timeline-item h3 {
    padding-right: 34px;
  }

  .carousel-viewport {
    min-height: clamp(360px, 62vh, 520px);
  }

  .carousel-thumbs {
    grid-template-columns: 1fr;
  }

  .carousel-thumb {
    height: 92px;
  }

  .page-hero,
  .article-page,
  .journal-page {
    padding-top: 142px;
  }

  .journal-page {
    width: min(100% - 24px, 1620px);
    padding-bottom: 58px;
  }

  .journal-hero {
    gap: 16px;
    min-height: 0;
    margin-bottom: 24px;
  }

  .journal-hero h1 {
    font-size: clamp(46px, 16vw, 68px);
    line-height: 1.04;
  }

  .journal-hero .lead {
    font-size: 17px;
    line-height: 1.76;
  }

  .journal-shell {
    gap: 16px;
  }

  .journal-page:not(.is-reading) .journal-reader {
    display: none;
  }

  .journal-page.is-reading .journal-hero,
  .journal-page.is-reading .journal-index,
  .journal-page.is-reading .project-publish-note {
    display: none;
  }

  .journal-index,
  .journal-reader {
    box-shadow: 0 16px 42px rgba(35, 53, 31, 0.12);
  }

  .journal-index-head {
    padding: 22px 18px 12px;
  }

  .journal-index-head h2 {
    font-size: 30px;
  }

  .journal-index-head p,
  .journal-status,
  .journal-list-item span {
    font-size: 15px;
    line-height: 1.68;
  }

  .journal-status {
    margin: 0 18px 12px;
    padding: 12px 14px;
  }

  .journal-list {
    padding: 0 8px 10px;
  }

  .journal-list-item {
    min-height: 0;
    padding: 16px 12px;
  }

  .journal-list-item strong {
    font-size: 20px;
  }

  .journal-reader {
    min-height: 0;
    padding: 22px 16px;
  }

  .reader-empty {
    min-height: 260px;
    text-align: left;
    place-content: start;
  }

  .reader-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-content {
    gap: 18px;
  }

  .reader-back {
    width: 100%;
  }

  .reader-tags span {
    font-size: 13px;
  }

  .reader-content h2 {
    max-width: 100%;
    font-size: clamp(31px, 10vw, 44px);
    line-height: 1.18;
  }

  .reader-summary {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.72;
  }

  .reader-body {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.86;
  }

  .reader-body p {
    margin-bottom: 1.05em;
  }

  .reader-reactions {
    padding: 16px;
  }

  .reader-reactions h3 {
    font-size: 24px;
  }

  .reaction-options,
  .interest-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reaction-option,
  .interest-option {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
  }

  .section-nav {
    position: static;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-bottom: 0 !important;
  }

  .showcase-strip {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .bug-strip {
    grid-auto-columns: minmax(290px, 88vw);
  }

  .visual-card.hero-shot {
    min-height: 500px;
  }

  .carousel-viewport,
  .bug-carousel .carousel-viewport {
    min-height: 520px;
  }

  .test-release-panel {
    padding: 26px 18px;
  }

  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .inline-actions .btn,
  .test-release-actions .btn,
  .invite-row {
    width: 100%;
  }

  .invite-row {
    grid-template-columns: 1fr;
  }

  .invite-row .btn {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
