:root {
  --deep: #0a5563;
  --deep-ink: #06343e;
  --lagoon: #1498a8;
  --aqua: #6ed0db;
  --foam: #f7fcfd;
  --sand: #f8f1e4;
  --sand-warm: #efe2c8;
  --coral: #e45732;
  --coral-hot: #ff6a42;
  --sun: #ffe7a8;
  --palm: #2d9a72;
  --text: #143a43;
  --text-soft: #4a6f78;
  --line: rgba(6, 52, 62, 0.12);
  --line-strong: rgba(6, 52, 62, 0.2);
  --font-display: "ZCOOL XiaoWei", "STKaiti", "KaiTi", serif;
  --font-body: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-ui: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: rgba(228, 87, 50, 0.2);
  color: var(--deep-ink);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #1a7f8c;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 52, 62, 0.22) 0%, rgba(10, 70, 80, 0.32) 42%, rgba(6, 40, 48, 0.58) 100%),
    linear-gradient(90deg, rgba(8, 40, 48, 0.25) 0%, transparent 35%),
    url("../../images/shipwrecked-bg-rift.png") center top / cover no-repeat fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

a {
  color: var(--deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--coral);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site {
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(247, 252, 253, 0.8);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 0 rgba(6, 52, 62, 0.04), 0 12px 40px rgba(6, 52, 62, 0.07);
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--deep-ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--deep-ink);
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--sun), transparent 45%),
    linear-gradient(145deg, var(--aqua), var(--deep));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 6px 16px rgba(20, 152, 168, 0.28);
  position: relative;
  overflow: hidden;
}

.brand-mark svg {
  position: absolute;
  inset: 22% 18% 28%;
  width: 64%;
  height: auto;
  margin: auto;
  color: rgba(255, 255, 255, 0.92);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.brand-en {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--aqua));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--deep-ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  min-height: calc(100vh - 4.6rem);
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1.08fr;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.4rem, 7vw, 5.5rem) clamp(1.6rem, 5vw, 4.2rem);
  max-width: 40rem;
  position: relative;
  z-index: 2;
  background:
    linear-gradient(115deg, rgba(248, 241, 228, 0.94) 0%, rgba(247, 252, 253, 0.86) 62%, rgba(247, 252, 253, 0.55) 100%);
  box-shadow: 12px 0 40px rgba(6, 52, 62, 0.12);
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: clamp(1.2rem, 3vw, 2rem);
  top: clamp(1.8rem, 5vw, 3rem);
  bottom: clamp(1.8rem, 5vw, 3rem);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--coral), var(--aqua), transparent);
  opacity: 0.7;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.hero-kicker {
  margin: 0 0 1.1rem;
  padding-left: 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lagoon);
}

.hero-brand {
  margin: 0 0 1.35rem;
  padding-left: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.2vw, 4.55rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--deep-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-title {
  margin: 0 0 1.05rem;
  padding-left: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.35;
  color: var(--deep);
  max-width: 18em;
}

.hero-title em {
  font-style: normal;
  color: var(--coral);
  background: linear-gradient(180deg, transparent 62%, rgba(228, 87, 50, 0.16) 62%);
}

.hero-lead {
  margin: 0 0 2.1rem;
  padding-left: 0.9rem;
  color: var(--text-soft);
  font-size: 1.04rem;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-left: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.95rem;
  padding: 0.72rem 1.45rem;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #e45732 0%, #f17845 55%, #ff8f5c 100%);
  color: #fffaf7;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 12px 28px rgba(228, 87, 50, 0.3);
}

.btn-primary:hover {
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 16px 34px rgba(228, 87, 50, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--deep-ink);
  border-color: rgba(6, 52, 62, 0.14);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(20, 152, 168, 0.45);
  color: var(--deep);
  background: rgba(255, 255, 255, 0.88);
}

.hero-visual {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  background: #1f8fa0;
}

.hero-visual .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: slow-pan 22s ease-in-out infinite alternate;
}

.hero-visual .scene-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 241, 228, 0.42) 0%, transparent 32%),
    linear-gradient(180deg, rgba(40, 120, 110, 0.08) 0%, transparent 40%, rgba(6, 52, 62, 0.28) 100%),
    radial-gradient(ellipse 40% 35% at 78% 18%, rgba(120, 255, 210, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-visual .portrait {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: min(42%, 320px);
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 36px rgba(6, 52, 62, 0.4));
  animation: floaty 5.8s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes slow-pan {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.wave-break {
  display: block;
  width: 100%;
  height: clamp(48px, 8vw, 88px);
  margin-top: -1px;
  color: rgba(247, 252, 253, 0.92);
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.5));
}

.wave-break svg {
  display: block;
  width: 100%;
  height: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.95s var(--ease) forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.32s; }
.reveal-delay-4 { animation-delay: 0.44s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

@keyframes drift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wave {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-9px) scaleX(1.035); }
}

.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.section-ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--lagoon);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-ornament::before,
.section-ornament::after {
  content: "";
  height: 1px;
  width: 2rem;
  background: linear-gradient(90deg, var(--coral), var(--aqua));
  opacity: 0.7;
}

.section-ornament::before {
  background: linear-gradient(90deg, transparent, var(--coral));
}

.section-ornament::after {
  background: linear-gradient(90deg, var(--aqua), transparent);
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--deep-ink);
}

.section-head p {
  margin: 0;
  color: var(--text-soft);
}

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(247, 252, 253, 0.88), rgba(248, 241, 228, 0.55));
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 50px rgba(6, 52, 62, 0.1);
}

.entry-list li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.entry-list li.is-in {
  opacity: 1;
  transform: none;
}

.entry-list li:nth-child(2) { transition-delay: 0.06s; }
.entry-list li:nth-child(3) { transition-delay: 0.12s; }
.entry-list li:nth-child(4) { transition-delay: 0.18s; }

.entry-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1.35rem;
  align-items: baseline;
  padding: 1.25rem 1.05rem;
  margin: 0.15rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.entry-list a:hover {
  color: inherit;
  background: linear-gradient(100deg, rgba(110, 208, 219, 0.28), rgba(248, 241, 228, 0.55));
}

.entry-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lagoon);
  min-width: 3.4rem;
  padding-top: 0.28rem;
}

.entry-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.03em;
  color: var(--deep-ink);
}

.entry-desc {
  grid-column: 2 / 3;
  margin: 0.18rem 0 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.entry-arrow {
  font-family: var(--font-ui);
  color: var(--coral);
  font-size: 1.1rem;
  transition: transform 0.28s var(--ease);
  align-self: center;
}

.entry-list a:hover .entry-arrow {
  transform: translateX(5px);
}

/* Homepage archive panel — matches equipment infobox teal */
.section-archive {
  margin: 0 auto 2.5rem;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2rem) clamp(2.2rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(165deg, rgba(6, 52, 62, 0.96), rgba(10, 85, 99, 0.92));
  border: 1px solid rgba(110, 208, 219, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 50px rgba(6, 52, 62, 0.28);
}

.section-archive .section-ornament {
  color: var(--aqua);
}

.section-archive .section-ornament::before {
  background: linear-gradient(90deg, transparent, var(--sun));
}

.section-archive .section-ornament::after {
  background: linear-gradient(90deg, var(--aqua), transparent);
}

.section-archive .section-head h2 {
  color: #fff;
}

.section-archive .section-head p {
  color: rgba(247, 252, 253, 0.72);
}

.section-archive .entry-list {
  border: 1px solid rgba(110, 208, 219, 0.22);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.section-archive .entry-list a {
  color: var(--foam);
}

.section-archive .entry-list a:hover {
  color: var(--foam);
  background: linear-gradient(100deg, rgba(110, 208, 219, 0.22), rgba(247, 252, 253, 0.06));
}

.section-archive .entry-tag {
  color: var(--sun);
}

.section-archive .entry-title {
  color: #fff;
}

.section-archive .entry-desc {
  color: rgba(174, 223, 228, 0.88);
}

.section-archive .entry-arrow {
  color: var(--aqua);
}

.page {
  padding: clamp(2.3rem, 5.5vw, 3.6rem) clamp(1.35rem, 4vw, 2.6rem) 3.4rem;
  max-width: 820px;
  margin: 1.75rem auto 2.5rem;
  background:
    linear-gradient(165deg, rgba(247, 252, 253, 0.94), rgba(248, 241, 228, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: calc(var(--radius) + 2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 60px rgba(6, 52, 62, 0.12);
  position: relative;
}

.page::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(20, 152, 168, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.page-hero {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.page-hero.has-art {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  align-items: end;
}

.page-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lagoon);
}

.page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.15rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.03em;
  color: var(--deep-ink);
}

.page-lead {
  margin: 0;
  color: var(--text-soft);
}

.page-art {
  justify-self: end;
  width: min(100%, 250px);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 231, 168, 0.45), transparent 55%),
    radial-gradient(circle at 50% 60%, rgba(110, 208, 219, 0.4), transparent 65%);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.page-art img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(6, 52, 62, 0.25));
}

.page h2 {
  margin: 2.3rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--deep);
  position: relative;
  z-index: 1;
}

.page p,
.page li,
.page table {
  position: relative;
  z-index: 1;
}

.page ul {
  padding-left: 1.15rem;
}

.page li + li {
  margin-top: 0.4rem;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.meta-table th,
.meta-table td {
  padding: 0.85rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.meta-table tr:hover td,
.meta-table tr:hover th {
  background: rgba(110, 208, 219, 0.1);
}

.meta-table th {
  width: 34%;
  color: var(--text-soft);
  font-weight: 500;
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.quote {
  margin: 1.4rem 0 1.8rem;
  padding: 1rem 1rem 1rem 1.15rem;
  border-left: 3px solid var(--coral);
  color: var(--deep);
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.45;
  background: linear-gradient(90deg, rgba(228, 87, 50, 0.08), transparent 70%);
  border-radius: 0 8px 8px 0;
  position: relative;
  z-index: 1;
}

.page code {
  font-family: var(--font-ui);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  color: var(--deep-ink);
  background: rgba(10, 85, 99, 0.08);
  border: 1px solid rgba(6, 52, 62, 0.1);
}

.page pre {
  margin: 0.9rem 0 1.1rem;
  padding: 0.95rem 1.05rem;
  overflow-x: auto;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(6, 52, 62, 0.92), rgba(10, 85, 99, 0.88));
  border: 1px solid rgba(110, 208, 219, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.page pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foam);
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre;
}

.equip-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1.6rem;
  padding: 0.95rem 1.05rem;
  list-style: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(110, 208, 219, 0.16), rgba(247, 252, 253, 0.55));
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.equip-toc a {
  color: var(--deep);
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(247, 252, 253, 0.75);
  border: 1px solid rgba(6, 52, 62, 0.1);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.equip-toc a:hover {
  color: var(--coral);
  border-color: rgba(228, 87, 50, 0.35);
  background: #fff;
}

.equip-entry {
  margin-bottom: 0.4rem;
  scroll-margin-top: 5.5rem;
}

.equip-entry h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.equip-entry h2 code {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.page h3 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--deep-ink);
  position: relative;
  z-index: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.15rem 0 1rem;
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--deep);
  background: rgba(20, 152, 168, 0.12);
  border: 1px solid rgba(10, 85, 99, 0.14);
}

.tag-mod {
  color: #8a2e16;
  background: rgba(228, 87, 50, 0.14);
  border-color: rgba(228, 87, 50, 0.28);
  vertical-align: middle;
}

.page-note {
  margin-top: 2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.page ol.steps {
  margin: 0.4rem 0 1rem;
  padding-left: 1.25rem;
  position: relative;
  z-index: 1;
}

.page ol.steps > li + li {
  margin-top: 0.75rem;
}

.page ul ul {
  margin: 0.45rem 0 0.2rem;
}

/* —— Wiki item layout (DST wiki structure, site palette) —— */
.page.page-wiki {
  max-width: 1080px;
}

.item-head {
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.item-head h1 {
  margin: 0 0 0.85rem;
}

.item-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.2rem;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  max-height: 7.5rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.item-subnav a {
  color: var(--deep);
  text-decoration: none;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.item-subnav a:hover {
  color: var(--coral);
  background: rgba(228, 87, 50, 0.08);
}

.item-subnav a.is-current {
  color: var(--foam);
  background: var(--deep);
}

.item-subnav .sep {
  color: var(--line-strong);
  padding: 0 0.1rem;
  user-select: none;
}

.wiki-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.75rem 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.wiki-body > p:first-child {
  margin-top: 0;
}

.wiki-body .quote {
  margin-top: 0;
}

.wiki-cats {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px dotted var(--line-strong);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: var(--text-soft);
}

.wiki-cats a {
  color: var(--lagoon);
}

.infobox {
  position: sticky;
  top: 5.2rem;
  padding: 1.05rem 1.05rem 1.15rem;
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(165deg, rgba(6, 52, 62, 0.94), rgba(10, 85, 99, 0.9));
  border: 1px solid rgba(110, 208, 219, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 16px 36px rgba(6, 52, 62, 0.22);
  color: var(--foam);
  font-size: 0.9rem;
  line-height: 1.55;
}

.infobox-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
}

.infobox-en {
  margin: 0.2rem 0 0.85rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--aqua);
  letter-spacing: 0.04em;
}

.infobox-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin: 0 auto 0.95rem;
  padding: 0.75rem;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 40%, rgba(110, 208, 219, 0.22), transparent 60%),
    rgba(0, 0, 0, 0.18);
  border: 1px dashed rgba(110, 208, 219, 0.28);
  color: rgba(247, 252, 253, 0.55);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-align: center;
}

.infobox-art img {
  max-height: 160px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.infobox-section {
  margin: 0.85rem 0 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px dotted rgba(110, 208, 219, 0.35);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  text-align: center;
}

.infobox-recipe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
  margin: 0.35rem 0 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: rgba(247, 252, 253, 0.92);
}

.infobox-recipe .plus,
.infobox-recipe .arrow {
  opacity: 0.55;
  font-size: 0.75rem;
}

.infobox-recipe .mat {
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(247, 252, 253, 0.1);
  border: 1px solid rgba(110, 208, 219, 0.22);
}

.infobox-flavor {
  margin: 0.55rem 0 0.35rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--sand);
  line-height: 1.4;
}

.infobox-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.35rem;
  font-size: 0.84rem;
}

.infobox-table th,
.infobox-table td {
  padding: 0.45rem 0.2rem;
  border-bottom: 1px dotted rgba(110, 208, 219, 0.22);
  text-align: left;
  vertical-align: top;
}

.infobox-table th {
  width: 38%;
  color: rgba(110, 208, 219, 0.9);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78rem;
}

.infobox-table td {
  color: rgba(247, 252, 253, 0.95);
}

.infobox-table code {
  font-family: var(--font-ui);
  font-size: 0.8em;
  color: var(--sun);
  background: transparent;
  border: 0;
  padding: 0;
}

.nav-hub .section-label {
  margin: 1.8rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--deep);
  position: relative;
  z-index: 1;
  scroll-margin-top: 5.5rem;
}

.nav-hub .section-label:first-of-type {
  margin-top: 0.4rem;
}

.site-footer {
  padding: 2.2rem clamp(1.25rem, 4vw, 2.5rem) 3.2rem;
  color: rgba(247, 252, 253, 0.92);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  background:
    linear-gradient(180deg, transparent, rgba(6, 52, 62, 0.42));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer a {
  color: var(--sun);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 22rem;
    order: -1;
  }

  .hero-visual .portrait {
    width: min(48%, 200px);
  }

  .hero-copy::before,
  .hero-copy::after {
    display: none;
  }

  .hero-kicker,
  .hero-brand,
  .hero-title,
  .hero-lead,
  .cta-row {
    padding-left: 0;
  }

  .page-hero.has-art {
    grid-template-columns: 1fr;
  }

  .page-art {
    justify-self: center;
    max-width: 210px;
  }

  .entry-list a {
    grid-template-columns: auto 1fr;
  }

  .entry-arrow {
    display: none;
  }

  .entry-desc {
    grid-column: 2;
  }

  .wiki-grid {
    grid-template-columns: 1fr;
  }

  .infobox {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .topbar {
    justify-content: center;
  }

  .page {
    margin: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .entry-list li {
    opacity: 1;
    transform: none;
  }
}
