/* ==========================================================================
   原神哥的小博客 · styles
   ========================================================================== */

:root {
  --bg: #05080d;
  --bg-soft: #080d15;
  --panel: #0b111b;
  --panel-2: #0e1622;
  --ink: #ecf2fa;
  --muted: #91a0b8;
  --faint: #5d6b82;
  --line: rgba(160, 190, 230, 0.11);
  --line-strong: rgba(160, 190, 230, 0.22);
  --mint: #6ee7c8;
  --mint-deep: #2dd4bf;
  --gold: #f3c969;
  --violet: #a78bfa;
  --coral: #ff7a6e;
  --blue: #6aa9ff;
  --bf-gold: #d8b45f;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Liberation Mono", monospace;
  --max: 1180px;
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 800px at 82% -8%, rgba(45, 212, 191, 0.1), transparent 62%),
    radial-gradient(900px 700px at -5% 28%, rgba(167, 139, 250, 0.06), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(160, 190, 230, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 190, 230, 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 72%);
}

::selection {
  background: var(--mint);
  color: #04110d;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #05080d;
}

::-webkit-scrollbar-thumb {
  background: #1b2a3c;
  border: 2px solid #05080d;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2b4158;
}

h1,
h2,
h3,
p,
dl,
dd,
dt,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
  border-radius: 6px;
}

.sr-only {
  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: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--mint);
  color: #04110d;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

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

/* ==========================================================================
   Ambient layers
   ========================================================================== */

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.025;
  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.7'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.065), transparent 62%);
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  box-shadow: 0 0 14px rgba(110, 231, 200, 0.5);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.78), transparent);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 8, 13, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header.nav-open {
  background: rgba(5, 8, 13, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  height: 82px;
  margin: 0 auto;
  padding: 0 24px;
  transition: height 0.35s ease;
}

.site-header.scrolled .header-inner {
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(110, 231, 200, 0.35);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(110, 231, 200, 0.18), rgba(243, 201, 105, 0.07));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(45, 212, 191, 0.1);
  color: var(--mint);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.brand-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-dot {
  color: var(--mint);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  padding: 8px 1px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--mint);
  transition: right 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(110, 231, 200, 0.2);
  border-radius: 999px;
  background: rgba(110, 231, 200, 0.035);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.header-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2.2s ease-in-out infinite;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.site-header.nav-open .menu-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header.nav-open .menu-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 150px 24px 92px;
  overflow: hidden;
  isolation: isolate;
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-aurora {
  position: absolute;
  top: -24%;
  right: -14%;
  z-index: -1;
  width: 72vw;
  height: 72vw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(45, 212, 191, 0.2), transparent 58%),
    radial-gradient(circle at 68% 62%, rgba(167, 139, 250, 0.16), transparent 58%);
  filter: blur(76px);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(110, 231, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 200, 0.05) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse at 50% 42%, #000, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24vh;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent);
}

.hero-title {
  color: #f7faff;
  font-family: var(--serif);
  font-size: clamp(68px, 9.5vw, 132px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.title-line {
  display: block;
}

.title-accent {
  position: relative;
  display: inline-block;
  margin-left: 0.06em;
  padding-right: 0.16em;
  background: linear-gradient(110deg, #fff0b8 0%, #f3c969 34%, #6ee7c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(243, 201, 105, 0.18));
}

.title-star {
  display: inline-block;
  margin-left: 0.04em;
  font-size: 0.2em;
  font-style: normal;
  vertical-align: top;
  transform: translateY(0.42em);
  color: var(--mint);
  filter: drop-shadow(0 0 10px rgba(110, 231, 200, 0.7));
  animation: starSpin 9s linear infinite;
}

.hero-sub {
  max-width: 640px;
  margin-top: 30px;
  color: #c6d2e2;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.hero-sub b {
  color: var(--gold);
  font-weight: 700;
}

.hero-desc {
  max-width: 580px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.hl {
  color: var(--mint);
  border-bottom: 1px dashed rgba(110, 231, 200, 0.4);
  padding-bottom: 1px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--mint);
  color: #03130f;
  box-shadow: 0 12px 34px rgba(45, 212, 191, 0.2);
}

.btn-primary:hover {
  background: #8ff3da;
  box-shadow: 0 18px 44px rgba(45, 212, 191, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 28px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.hero-meta li:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.hero-meta span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-meta b {
  color: #d8e3f0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-side-note {
  position: absolute;
  right: 30px;
  bottom: 40px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

/* Player card */

.player-card {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  padding: 26px;
  border: 1px solid rgba(160, 200, 230, 0.16);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(17, 27, 40, 0.94), rgba(6, 11, 18, 0.97));
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}

.player-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--gold), transparent);
  opacity: 0.75;
}

.player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 82% 0%, rgba(110, 231, 200, 0.12), transparent 62%);
  pointer-events: none;
}

.pc-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.pc-id {
  color: var(--mint);
}

.pc-avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 27px auto 18px;
}

.pc-ring {
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(110, 231, 200, 0.36);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}

.pc-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.pc-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #c8fff1, #6ee7c8 45%, #2dd4bf 100%);
  box-shadow:
    0 0 0 6px rgba(110, 231, 200, 0.08),
    0 18px 44px rgba(45, 212, 191, 0.24);
  color: #06110e;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
}

.pc-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.42), transparent 46%);
  mix-blend-mode: overlay;
}

.pc-avatar-photo {
  padding: 0;
  background: #f4efe6;
  box-shadow:
    0 0 0 6px rgba(110, 231, 200, 0.08),
    0 18px 44px rgba(45, 212, 191, 0.24),
    inset 0 0 22px rgba(3, 9, 14, 0.3);
}

.pc-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.22);
  transform-origin: 50% 12%;
  filter: saturate(0.98) contrast(1.02);
}

.pc-level {
  position: absolute;
  right: -26px;
  bottom: 3px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #0b111b;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.player-card h2 {
  position: relative;
  z-index: 1;
  color: #f4f8fe;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
}

.pc-title {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
}

.pc-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 23px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pc-stats div {
  padding: 14px 8px;
  text-align: center;
}

.pc-stats div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.pc-stats div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.pc-stats b {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.pc-stats div:nth-child(2) b,
.pc-stats div:nth-child(3) b {
  color: var(--gold);
}

.pc-stats span {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.pc-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.pc-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.pc-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(110, 231, 200, 0.14);
  border-radius: 11px;
  background: rgba(110, 231, 200, 0.04);
  color: #b9d8ce;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  position: relative;
  z-index: 6;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 21, 0.66);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

.ticker span {
  color: #c6d2e2;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.ticker i {
  color: var(--mint);
  font-size: 8px;
  font-style: normal;
}

/* ==========================================================================
   Shared section
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(84px, 10vw, 138px) 24px;
  scroll-margin-top: 78px;
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.section-kicker::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.kicker-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(110, 231, 200, 0.3);
  border-radius: 7px;
  color: var(--mint);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.section-heading {
  margin-bottom: 48px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2 {
  color: #f3f8ff;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading h2 em {
  color: var(--mint);
  font-style: normal;
}

.section-heading p {
  max-width: 365px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  text-align: right;
}

/* ==========================================================================
   Posts
   ========================================================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.92), rgba(8, 13, 21, 0.97));
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.45s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 200, 0.38);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.post-card:focus-visible {
  outline-offset: 3px;
}

.post-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  min-height: 340px;
}

.post-featured .post-cover {
  height: 100%;
  min-height: 300px;
}

.post-cover {
  position: relative;
  height: 210px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 -70px 80px -45px rgba(3, 7, 11, 0.7);
}

.post-featured .post-body {
  padding: clamp(28px, 3.4vw, 42px);
}

.cover-index {
  position: absolute;
  top: 16px;
  left: 17px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.54);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.cover-caption {
  position: absolute;
  bottom: 14px;
  left: 17px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.cover-glyph {
  position: absolute;
  right: 14px;
  bottom: -18px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--serif);
  font-size: clamp(104px, 13vw, 178px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
  user-select: none;
}

/* Genshin cover */
.cover-genshin {
  background:
    radial-gradient(circle at 76% 18%, rgba(243, 201, 105, 0.2), transparent 24%),
    radial-gradient(120% 100% at 50% 100%, #123b3b 0%, #0a2129 42%, #071018 100%);
}

.cover-genshin::before {
  content: "";
  position: absolute;
  top: 13%;
  right: 12%;
  z-index: 1;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff6d7, #f3c969 55%, #c79a3e);
  box-shadow: 0 0 62px rgba(243, 201, 105, 0.34);
  opacity: 0.9;
}

.cover-genshin::after {
  content: "";
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 58%;
  background: linear-gradient(180deg, rgba(17, 58, 56, 0.5), #071018);
  clip-path: polygon(0 100%, 0 72%, 11% 48%, 21% 62%, 34% 28%, 47% 56%, 60% 20%, 73% 49%, 86% 31%, 100% 55%, 100% 100%);
  opacity: 0.8;
}

/* Smaller covers need a smaller moon, otherwise it looks like a cookie. */
.post-card:not(.post-featured) .cover-genshin::before,
.dialog-cover.cover-genshin::before {
  top: 8%;
  right: 13%;
  width: 76px;
  height: 76px;
}

.post-card:not(.post-featured) .cover-genshin::after,
.dialog-cover.cover-genshin::after {
  height: 50%;
}

/* Battlefield cover */
.cover-bf {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 20%, transparent 20% 40%, rgba(255, 255, 255, 0.025) 40% 60%, transparent 60%),
    radial-gradient(circle at 76% 42%, rgba(216, 180, 95, 0.22), transparent 36%),
    linear-gradient(145deg, #3a2c1a 0%, #1e1a12 48%, #0c0b08 100%);
}

.cover-bf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(115deg, transparent 0 24px, rgba(216, 180, 95, 0.055) 24px 25px),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(0, 0, 0, 0.08) 4px 5px);
}

.cover-bf::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 9%;
  z-index: 2;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(216, 180, 95, 0.38);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    inset 0 0 0 19px rgba(216, 180, 95, 0.025),
    inset 0 0 0 20px rgba(216, 180, 95, 0.1),
    0 0 50px rgba(216, 180, 95, 0.08);
}

.cover-bf .cover-glyph {
  color: rgba(243, 201, 105, 0.12);
}

/* Arena cover */
.cover-arena {
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 90, 70, 0.22), transparent 42%),
    linear-gradient(145deg, #251010 0%, #130c0d 55%, #090708 100%);
}

.cover-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.028) 3px 4px),
    repeating-linear-gradient(115deg, transparent 0 28px, rgba(255, 122, 110, 0.04) 28px 29px);
}

.cover-arena::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 11px;

  background: repeating-linear-gradient(45deg, #f3c969 0 9px, #17130c 9px 18px);
  opacity: 0.5;
}

.cover-arena .cover-glyph {
  color: rgba(255, 122, 110, 0.12);
}

/* Fleet cover */
.cover-fleet {
  background:
    radial-gradient(ellipse at 50% 62%, rgba(106, 169, 255, 0.2), transparent 58%),
    linear-gradient(180deg, #081724 0%, #0b2a3e 55%, #091724 100%);
}

.cover-fleet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(180deg, transparent 0 19px, rgba(106, 169, 255, 0.06) 19px 20px),
    radial-gradient(ellipse at 50% 100%, rgba(106, 169, 255, 0.16), transparent 55%);
}

.cover-fleet::after {
  content: "";
  position: absolute;
  bottom: 20%;
  left: 8%;
  z-index: 2;
  width: 58%;

  height: 34px;
  background: linear-gradient(180deg, #23384a, #0a141c);
  clip-path: polygon(0 72%, 54% 72%, 60% 38%, 75% 30%, 82% 38%, 87% 72%, 100% 82%, 64% 100%, 19% 100%);
  opacity: 0.8;
}

.cover-fleet .cover-glyph {
  color: rgba(106, 169, 255, 0.14);
}

.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 25px 27px 27px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.post-meta .tag {
  color: var(--mint);
}

.post-body h3 {
  color: #eef5fe;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.post-featured h3 {
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.32;
}

.post-body p {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.post-link span {
  color: var(--mint);
  font-size: 13px;
  transition: transform 0.25s ease;
}

.post-card:hover .post-link span {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Why Genshin
   ========================================================================== */

.why {
  background: linear-gradient(180deg, transparent, rgba(10, 16, 25, 0.62) 18%, rgba(10, 16, 25, 0.62) 82%, transparent);
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: start;
}

.why-intro {
  position: sticky;
  top: 120px;
  overflow: hidden;
}

.why-intro::before {
  content: "神";
  position: absolute;
  top: -70px;
  left: -26px;
  z-index: -1;
  color: rgba(110, 231, 200, 0.035);
  font-family: var(--serif);
  font-size: 300px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.why-intro h2 {
  color: #f5f9ff;
  font-family: var(--serif);
  font-size: clamp(44px, 5.7vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.why-intro h2 em {
  display: block;
  background: linear-gradient(100deg, var(--gold), #fff0bd 48%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.why-intro > p {
  max-width: 390px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.why-quote {
  margin-top: 36px;
  padding: 19px 22px;
  border-left: 2px solid var(--mint);
  background: linear-gradient(90deg, rgba(110, 231, 200, 0.06), transparent);
  color: #dce7f3;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.85;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.rating-stars {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 3px;
}

.rating-line b {
  color: var(--ink);
  font-weight: 400;
}

.reason-list {
  border-top: 1px solid var(--line);
}

.reason {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.35s ease;
}

.reason:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(110, 231, 200, 0.04), transparent 70%);
}

.reason-num {
  padding-top: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.reason h3 {
  margin-bottom: 9px;
  color: #e8f0fa;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.reason h3 span {
  margin-left: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.reason p {
  max-width: 545px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}

.genshin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.genshin-stats div {
  padding: 19px 8px;
  background: var(--panel);
  text-align: center;
}

.genshin-stats b {
  display: block;
  color: var(--mint);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.genshin-stats span {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Games
   ========================================================================== */

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-height: 330px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(16, 25, 38, 0.9), rgba(7, 12, 19, 0.97));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.game-card:nth-child(1),
.game-card:nth-child(2) {
  grid-column: span 3;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 280px at 82% 112%, var(--accent-soft), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

.game-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.game-genshin {
  --accent: #6ee7c8;
  --accent-soft: rgba(45, 212, 191, 0.18);
}

.game-bf {
  --accent: #f3c969;
  --accent-soft: rgba(243, 201, 105, 0.16);
}

.game-arena {
  --accent: #ff7a6e;
  --accent-soft: rgba(255, 122, 110, 0.16);
}

.game-fleet {
  --accent: #6aa9ff;
  --accent-soft: rgba(106, 169, 255, 0.16);
}

.game-fgo {
  --accent: #c9a7ff;
  --accent-soft: rgba(167, 139, 250, 0.18);
}

.game-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  white-space: nowrap;
}

.game-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
}

.game-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 27px 0 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
}

.game-card h3 {
  position: relative;
  z-index: 1;
  color: #eef5fe;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.game-en {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.game-card > p:not(.game-en) {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.game-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.game-arrow {
  color: var(--accent);
  font-size: 14px;
  transition: transform 0.25s ease;
}

.game-card:hover .game-arrow {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Server
   ========================================================================== */

.server {
  position: relative;
  padding: clamp(90px, 10vw, 150px) 24px;
  overflow: hidden;
  border-top: 1px solid rgba(216, 180, 95, 0.12);
  border-bottom: 1px solid rgba(216, 180, 95, 0.12);
  background: #070c09;
  scroll-margin-top: 78px;
}

.server::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 180, 95, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 180, 95, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 76%);
  pointer-events: none;
}

.server::after {
  content: "";
  position: absolute;
  top: -34%;
  right: -10%;
  width: 54vw;
  height: 54vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 95, 0.09), transparent 64%);
  filter: blur(36px);
  pointer-events: none;
}

.server-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.server .section-kicker {
  color: var(--bf-gold);
}

.server .kicker-num {
  border-color: rgba(216, 180, 95, 0.32);
  color: var(--bf-gold);
}

.server-logo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  color: #f3e9cf;
  font-family: var(--sans);
  font-size: clamp(72px, 12vw, 150px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.085em;
}

.server-logo span {
  margin-top: 0.14em;
  color: var(--bf-gold);
  font-size: 0.34em;
  line-height: 1;
}

.server-copy h2 {
  color: #f5efe0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.server-copy h2 em {
  color: var(--bf-gold);
  font-style: normal;
}

.server-copy > p {
  max-width: 510px;
  margin-top: 18px;
  color: #9ca89b;
  font-size: 12px;
  line-height: 2;
}

.server-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-top: 33px;
}

.server-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(216, 180, 95, 0.14);
  font-size: 10px;
}

.server-facts dt {
  color: #7e8b7c;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.server-facts dd {
  color: #e8e2d2;
  text-align: right;
}

.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.server .btn-primary {
  background: var(--bf-gold);
  color: #17130a;
  box-shadow: 0 12px 34px rgba(216, 180, 95, 0.15);
}

.server .btn-primary:hover {
  background: #f3d58e;
  box-shadow: 0 18px 44px rgba(216, 180, 95, 0.24);
}

.server .btn-ghost {
  border-color: rgba(216, 180, 95, 0.24);
  color: #e8e2d2;
}

.server .btn-ghost:hover {
  border-color: var(--bf-gold);
  color: var(--bf-gold);
}

.server-copy > .server-footnote {
  max-width: none;
  margin-top: 15px;
  color: #687566;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* Terminal */

.server-terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 95, 0.22);
  border-radius: 16px;
  background: rgba(5, 10, 7, 0.92);
  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.52),
    inset 0 0 90px rgba(216, 180, 95, 0.03);
  font-family: var(--mono);
}

.server-terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.14) 3px 4px);
  opacity: 0.5;
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(216, 180, 95, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a453a;
}

.terminal-bar > span:nth-child(1) {
  background: #ff6b5e;
}

.terminal-bar > span:nth-child(2) {
  background: #f3c969;
}

.terminal-bar > span:nth-child(3) {
  background: #6ee7c8;
}

.terminal-bar b {
  margin-left: 8px;
  color: #7e8b7c;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.server-terminal pre {
  margin: 0;
  padding: 23px 22px 11px;
  overflow-x: auto;
  color: #c7d4c3;
  font-size: 11px;
  line-height: 2.05;
}

.server-terminal code {
  font-family: inherit;
  white-space: pre-wrap;
}

.t-muted {
  color: #5f6d5d;
}

.t-cmd {
  color: #f3c969;
}

.t-ok {
  color: #6ee7c8;
}

.t-warn {
  color: #ff8a7a;
}

.t-label {
  color: #f3c969;
  letter-spacing: 0.12em;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 17px;
  color: #5f6d5d;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.blink {
  color: var(--bf-gold);
  animation: blink 1.1s step-end infinite;
}

/* Four-server matrix */

.server-list-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: clamp(54px, 7vw, 82px) auto 0;
}

.server-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding-top: 21px;
  border-top: 1px solid rgba(216, 180, 95, 0.16);
}

.server-list-title {
  color: #f3e9cf;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.server-list-sub {
  color: #7e8b7c;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.server-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.server-card {
  position: relative;
  padding: 22px 24px 19px;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 95, 0.16);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(14, 23, 17, 0.9), rgba(6, 11, 8, 0.97));
  transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 260px at 100% 0%, var(--server-accent-soft), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.server-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--server-accent), transparent);
  opacity: 0.45;
}

.server-card > * {
  position: relative;
  z-index: 1;
}

.server-card:nth-child(1) {
  --server-accent: #f3c969;
  --server-accent-soft: rgba(243, 201, 105, 0.12);
}

.server-card:nth-child(2) {
  --server-accent: #6ee7c8;
  --server-accent-soft: rgba(110, 231, 200, 0.1);
}

.server-card:nth-child(3) {
  --server-accent: #ff8a7a;
  --server-accent-soft: rgba(255, 122, 110, 0.1);
}

.server-card:nth-child(4) {
  --server-accent: #6aa9ff;
  --server-accent-soft: rgba(106, 169, 255, 0.1);
}

.server-card:hover {
  transform: translateY(-3px);
  border-color: var(--server-accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  color: #7e8b7c;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.server-card-no {
  color: var(--server-accent);
  font-size: 10px;
}

.server-card-type {
  color: #9ca89b;
  text-align: right;
}

.server-card h3 {
  margin-bottom: 5px;
  color: #f0e9d8;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.server-card h3 span {
  color: var(--server-accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.server-card-desc {
  margin-bottom: 17px;
  color: #9ca89b;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.server-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-bottom: 17px;
}

.server-card-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 9px;
  border-top: 1px solid rgba(216, 180, 95, 0.12);
}

.server-card-meta dt {
  color: #6f7c6e;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.server-card-meta dd {
  color: #e7e2d5;
  font-size: 10px;
  line-height: 1.5;
}

.inline-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: var(--server-accent, var(--blue));
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.inline-copy span {
  font-size: 9px;
  opacity: 0.7;
}

.inline-copy:hover {
  color: #fff;
}

.server-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 180, 95, 0.12);
  color: #7e8b7c;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.server-card-foot a {
  color: var(--server-accent);
  font-size: 9px;
  white-space: nowrap;
}

.server-card-foot a span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.server-card-foot a:hover span {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 131px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 42px minmax(0, 1fr);
  align-items: start;
  padding-bottom: 36px;
}

.tl-year {
  padding-top: 2px;
  color: #d7e2ef;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  letter-spacing: -0.03em;
}

.tl-dot {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100%;
  padding-top: 8px;
}

.tl-dot::before {
  content: "";
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(110, 231, 200, 0.06);
}

.timeline-item:last-child .tl-dot::before {
  background: var(--mint);
  box-shadow: 0 0 18px rgba(110, 231, 200, 0.55), 0 0 0 4px rgba(110, 231, 200, 0.08);
}

.tl-content {
  padding-left: 8px;
}

.tl-tag {
  display: inline-block;
  margin-bottom: 9px;
  padding: 4px 8px;
  border: 1px solid rgba(110, 231, 200, 0.24);
  border-radius: 999px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.tl-content h3 {
  margin-bottom: 6px;
  color: #eaf2fc;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tl-content p {
  max-width: 520px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.95;
}

/* ==========================================================================
   QQ group
   ========================================================================== */

.group-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(38px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(106, 169, 255, 0.12), transparent 62%),
    radial-gradient(600px 500px at 0% 100%, rgba(167, 139, 250, 0.12), transparent 62%),
    linear-gradient(145deg, #0d1424, #080d16);
}

.group-card::before {
  content: "QQ";
  position: absolute;
  right: -32px;
  bottom: -104px;
  color: rgba(167, 139, 250, 0.045);
  font-family: var(--sans);
  font-size: 340px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.group-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 82% 18%, #000, transparent 72%);
  pointer-events: none;
}

.group-left {
  position: relative;
  z-index: 1;
}

.group-left h2 {
  margin-bottom: 16px;
  color: #f4f7ff;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.group-left h2 em {
  background: linear-gradient(100deg, #c9a7ff, #6aa9ff 60%, #6ee7c8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.group-sub {
  margin-bottom: 9px;
  color: #8d9bb5;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.group-left > .group-number {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: none;
  margin: 0 0 19px;
  color: #8d9bb5;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.group-number b {
  padding: 4px 9px;
  border: 1px solid rgba(110, 231, 200, 0.22);
  border-radius: 8px;
  background: rgba(110, 231, 200, 0.05);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.group-left > p {
  max-width: 430px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}

.group-perks {
  display: grid;
  gap: 11px;
  margin-top: 25px;
}

.group-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c0cbdc;
  font-size: 11px;
  line-height: 1.65;
}

.group-perks li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.65);
}

.group-right {
  position: relative;
  z-index: 1;
}

.qq-window {
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 18px;
  background: rgba(6, 10, 18, 0.86);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.qq-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.qq-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #6aa9ff, #a78bfa);
  box-shadow: 0 8px 20px rgba(106, 169, 255, 0.2);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.qq-head b {
  display: block;
  color: #eaf1fb;
  font-size: 11px;
  font-weight: 600;
}

.qq-head div > span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.07em;
}

.qq-chat {
  display: grid;
  gap: 13px;
  max-height: 244px;
  padding: 17px;
  overflow: auto;
}

.qq-system {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  text-align: center;
}

.qq-msg {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.qq-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #c8fff1, #6ee7c8);
  color: #06110e;
  font-family: var(--serif);
  font-size: 12px;
}

.qq-avatar-photo {
  padding: 0;
  overflow: hidden;
  background: #f4efe6;
}

.qq-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.24);
  transform-origin: 50% 12%;
}

.qq-msg:nth-child(3) .qq-avatar {
  background: linear-gradient(145deg, #f7e0a5, #f3c969);
}

.qq-msg:nth-child(4) .qq-avatar {
  background: linear-gradient(145deg, #d8ccff, #a78bfa);
}

.qq-msg b {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.qq-msg p {
  max-width: 235px;
  padding: 8px 10px;
  border-radius: 2px 10px 10px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #d5dfec;
  font-size: 11px;
  line-height: 1.6;
}

.qq-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 34px);
  height: 44px;
  margin: 4px 17px 9px;
  border-radius: 11px;
  background: linear-gradient(100deg, #6aa9ff, #a78bfa);
  color: #080d16;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.qq-join span {
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--mono);
  font-size: 9px;
}

.qq-join:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.qq-note {
  margin-bottom: 15px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ==========================================================================
   Guestbook
   ========================================================================== */

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: start;
}

.guestbook-intro h2 {
  margin-top: 2px;
  color: #f3f8ff;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.guestbook-intro h2 em {
  color: var(--mint);
  font-style: normal;
}

.guestbook-intro > p {
  max-width: 360px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}

.gb-count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 28px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.gb-count b {
  color: var(--mint);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.gb-panel {
  padding: 7px 24px 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(14, 22, 34, 0.86), rgba(7, 12, 19, 0.96));
}

.gb-list {
  max-height: 366px;
  padding-right: 5px;
  overflow: auto;
}

.gb-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.gb-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #c8fff1, #6ee7c8);
  color: #06110e;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.gb-item:nth-child(2n) .gb-avatar {
  background: linear-gradient(145deg, #f7e0a5, #f3c969);
}

.gb-item:nth-child(3n) .gb-avatar {
  background: linear-gradient(145deg, #d8ccff, #a78bfa);
}

.gb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.gb-head b {
  color: #e4edf8;
  font-size: 11px;
  font-weight: 600;
}

.gb-head time {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.07em;
}

.gb-item p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  word-break: break-word;
}

.gb-form {
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.gb-row {
  display: flex;
  gap: 10px;
}

.gb-form input,
.gb-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gb-form input:focus,
.gb-form textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 200, 0.5);
  background: rgba(110, 231, 200, 0.03);
}

.gb-form input::placeholder,
.gb-form textarea::placeholder {
  color: #5c6a80;
}

.gb-form input {
  flex: 1;
  min-width: 0;
}

.gb-form textarea {
  min-height: 86px;
  margin-top: 10px;
  resize: vertical;
}

.gb-form button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 10px;
  background: var(--mint);
  color: #03130f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gb-form button:hover {
  background: #8ff3da;
  transform: translateY(-1px);
}

.gb-form button span {
  font-size: 13px;
}

.gb-hint {
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 70px 24px 27px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(10, 16, 26, 0.82));
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 39px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  color: #f3f8ff;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
}

.footer-brand span {
  color: var(--mint);
}

.footer-tagline {
  max-width: 370px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.footer-nav {
  display: flex;
  gap: 54px;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.17em;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 23px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.footer-word {
  position: absolute;
  bottom: -4vw;
  left: 50%;
  z-index: 0;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--serif);
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 900;
  line-height: 0.8;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ==========================================================================
   Floating UI
   ========================================================================== */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 16, 26, 0.86);
  color: var(--muted);
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, color 0.2s ease, border-color 0.2s ease;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 40px);
  padding: 12px 20px;
  border: 1px solid rgba(110, 231, 200, 0.35);
  border-radius: 999px;
  background: #0e1722;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast::before {
  content: "✓";
  color: var(--mint);
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Article dialog
   ========================================================================== */

.post-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(160, 200, 230, 0.2);
  border-radius: 22px;
  background: #090f18;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7);
  color: var(--ink);
}

.post-dialog::backdrop {
  background: rgba(2, 5, 9, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.post-dialog[open] {
  animation: dialogIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dialog-shell {
  position: relative;
}

.dialog-cover {
  position: relative;
  height: 190px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 -70px 80px -45px rgba(3, 7, 11, 0.7);
}

.dialog-cover .cover-glyph {
  bottom: -34px;
  font-size: 150px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(5, 9, 14, 0.72);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.dialog-close:hover {
  border-color: transparent;
  background: var(--coral);
  color: #160707;
  transform: rotate(90deg);
}

.dialog-content {
  padding: 31px clamp(24px, 5vw, 52px) 42px;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 15px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dialog-meta .tag {
  color: var(--mint);
}

.dialog-content h2 {
  margin-bottom: 23px;
  color: #f2f7ff;
  font-family: var(--serif);
  font-size: clamp(25px, 4vw, 37px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.dialog-body {
  display: grid;
  gap: 17px;
}

.dialog-body p {
  color: #b6c3d5;
  font-size: 13px;
  line-height: 2.05;
}

.dialog-body h3 {
  margin-top: 9px;
  padding-left: 13px;
  border-left: 2px solid var(--mint);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.dialog-body blockquote {
  margin: 5px 0;
  padding: 15px 19px;
  border-left: 2px solid var(--gold);
  background: rgba(243, 201, 105, 0.05);
  color: #e7dcc4;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
}

.dialog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 29px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.dialog-footer b {
  color: var(--mint);
  font-weight: 400;
}

/* ==========================================================================
   Reveal + animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(110, 231, 200, 0.38);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 6px rgba(110, 231, 200, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes starSpin {
  to {
    transform: translateY(0.42em) rotate(360deg);
  }
}

@keyframes aurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-3%, 4%, 0) scale(1.08);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 44px;
  }

  .hero-side-note {
    display: none;
  }

  .why-layout {
    gap: 52px;
  }
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    padding-top: 142px;
    padding-bottom: 76px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .player-card {
    justify-self: start;
    width: min(100%, 520px);
  }

  .post-featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .post-featured .post-cover {
    height: 250px;
    min-height: 0;
  }

  .post-featured .cover-genshin::before {
    top: 9%;
    right: 12%;
    width: 84px;
    height: 84px;
  }

  .post-featured .cover-genshin::after {
    height: 52%;
  }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .why-intro {
    position: static;
  }

  .server-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .server-terminal {
    max-width: 680px;
  }

  .group-card {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .guestbook-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .game-card,
  .game-card:nth-child(1),
  .game-card:nth-child(2) {
    grid-column: span 3;
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .section-heading p {
    max-width: 460px;
    padding-bottom: 0;
    text-align: left;
  }

  .footer-top {
    flex-direction: column;
    gap: 34px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .header-status {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 9px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(7, 12, 20, 0.98);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  }

  .site-header.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 9px;
    font-size: 12px;
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-link::after {
    content: "↗";
    position: static;
    display: block;
    width: auto;
    height: auto;
    background: none;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    color: var(--mint);
    transform: translate(2px, -2px);
  }

  .nav-link.active {
    background: rgba(110, 231, 200, 0.06);
    color: var(--mint);
  }
}

@media (max-width: 680px) {
  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .header-inner {
    height: 70px;
    padding: 0 18px;
  }

  .site-header.scrolled .header-inner {
    height: 64px;
  }

  .main-nav {
    top: 70px;
    right: 12px;
    left: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  .brand-text {
    font-size: 14px;
  }

  .hero {
    padding: 122px 18px 66px;
  }

  .hero-title {
    font-size: clamp(58px, 17vw, 96px);
  }

  .hero-sub {
    margin-top: 23px;
    font-size: 12px;
    line-height: 1.95;
  }

  .hero-desc {
    font-size: 12px;
    line-height: 1.95;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 29px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 150px;
    padding: 0 17px;
  }

  .hero-meta {
    gap: 16px;
    margin-top: 36px;
  }

  .hero-meta li {
    margin-right: 0;
    padding-right: 0;
    border-right: 0;
  }

  .player-card {
    padding: 23px 21px;
    border-radius: 22px;
  }

  .ticker {
    padding: 11px 0;
  }

  .ticker span {
    font-size: 11px;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: clamp(31px, 9vw, 44px);
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-featured {
    grid-column: auto;
  }

  .post-featured .post-cover,
  .post-cover {
    height: 205px;
  }

  .post-featured .cover-genshin::before {
    top: 8%;
    right: 13%;
    width: 76px;
    height: 76px;
  }

  .post-featured .cover-genshin::after {
    height: 50%;
  }

  .post-body,
  .post-featured .post-body {
    padding: 23px 22px 24px;
  }

  .post-featured h3 {
    font-size: 24px;
  }

  .why-intro h2 {
    font-size: clamp(41px, 13vw, 62px);
  }

  .why-quote {
    font-size: 14px;
  }

  .reason {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
    padding: 24px 0;
  }

  .reason h3 {
    font-size: 21px;
  }

  .genshin-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 32px;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-card,
  .game-card:nth-child(1),
  .game-card:nth-child(2) {
    grid-column: auto;
    min-height: 300px;
  }

  .server {
    padding: 82px 18px;
  }

  .server-logo {
    font-size: clamp(66px, 21vw, 112px);
  }

  .server-facts {
    grid-template-columns: 1fr;
  }

  .server-actions .btn {
    flex: 1;
    min-width: 155px;
    padding: 0 17px;
  }

  .server-terminal pre {
    font-size: 10px;
    line-height: 2;
    padding: 19px 17px 9px;
  }

  .terminal-footer {
    padding: 10px 17px 15px;
  }

  .server-list-wrap {
    margin-top: 46px;
  }

  .server-list-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-top: 18px;
  }

  .server-list-sub {
    line-height: 1.6;
  }

  .server-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .server-card {
    padding: 20px 20px 17px;
  }

  .server-card h3 {
    font-size: 21px;
  }

  .server-card h3 span {
    font-size: 8px;
  }

  .server-card-meta {
    gap: 0 16px;
  }

  .timeline::before {
    left: 69px;
  }

  .timeline-item {
    grid-template-columns: 55px 29px minmax(0, 1fr);
    padding-bottom: 30px;
  }

  .tl-year {
    font-size: 19px;
  }

  .tl-content {
    padding-left: 3px;
  }

  .tl-content h3 {
    font-size: 19px;
  }

  .group-card {
    padding: 28px 21px;
    border-radius: 22px;
  }

  .group-left h2 {
    font-size: clamp(37px, 12vw, 52px);
  }

  .group-card::before {
    font-size: 230px;
    bottom: -70px;
    right: -20px;
  }

  .qq-window {
    border-radius: 15px;
  }

  .qq-chat {
    max-height: 225px;
  }

  .guestbook-intro h2 {
    font-size: clamp(39px, 12vw, 55px);
  }

  .gb-panel {
    padding: 6px 17px 19px;
  }

  .gb-list {
    max-height: 330px;
  }

  .footer-top {
    padding-bottom: 30px;
  }

  .footer-brand {
    font-size: 33px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 28px 42px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 9px;
    line-height: 1.6;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .toast {
    bottom: 20px;
    width: calc(100vw - 32px);
    max-width: none;
    justify-content: center;
    border-radius: 14px;
    text-align: center;
  }

  .post-dialog {
    width: calc(100vw - 20px);
    max-height: 90vh;
    border-radius: 18px;
  }

  .dialog-cover {
    height: 150px;
  }

  .dialog-content {
    padding: 25px 22px 33px;
  }

  .dialog-body p {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    justify-content: space-between;
  }

  .pc-stats b {
    font-size: 22px;
  }

  .gb-row {
    flex-direction: column;
  }

  .gb-form button {
    justify-content: center;
    height: 42px;
  }

  .server-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .server-actions .btn {
    width: 100%;
  }

  .server-card-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .qq-msg p {
    max-width: 205px;
  }

  .dialog-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Motion / no-JS fallbacks
   ========================================================================== */

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
