@font-face {
  font-family: "Fusion Pixel";
  src: url("../fonts/fusion-pixel-12px-proportional-zh-hans.b55c888f61cf.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #100d0a;
  --maple: #e41b18;
  --crystal: #2e8b48;
  --forest: #143526;
  --cream: #ffe7b0;
  --gold: #f1b448;
  --paper: #fff7df;
  --paper-deep: #f2d99d;
  --muted: #756b5d;
  --pixel: "Fusion Pixel", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --body: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --shell: min(1180px, calc(100% - 40px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand, .pixel-button, .pixel-kicker, .footer-brand {
  font-family: var(--pixel);
  font-weight: 400;
}
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); letter-spacing: .02em; }
h3 { font-size: 1.35rem; }
.shell { width: var(--shell); margin-inline: auto; }
.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;
  z-index: 999;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--cream);
  background: rgba(16, 13, 10, .96);
  border-bottom: 4px solid var(--maple);
  box-shadow: 0 4px 0 var(--forest), 0 8px 24px rgba(0, 0, 0, .28);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--cream); text-decoration: none; font-size: 1.18rem; letter-spacing: .035em; }
.brand-logo { flex: 0 0 auto; width: 38px; height: 38px; object-fit: contain; image-rendering: pixelated; }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a { padding: 9px 13px 7px; color: #fff1cf; text-decoration: none; font-family: var(--pixel); font-size: .92rem; border-bottom: 3px solid transparent; }
.primary-nav a:hover { color: #fff; border-color: var(--maple); }
.primary-nav .nav-cta { color: var(--ink); background: var(--gold); border: 3px solid var(--cream); box-shadow: 4px 4px 0 var(--maple); margin-left: 8px; }
.nav-toggle { display: none; width: 46px; height: 42px; padding: 7px; background: transparent; border: 3px solid var(--cream); }
.nav-toggle span[aria-hidden] { display: block; height: 3px; margin: 4px 0; background: var(--cream); }

.hero { position: relative; min-height: 690px; color: #fff6de; background: var(--forest); isolation: isolate; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .14;
  background-image: linear-gradient(rgba(255, 255, 255, .22) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .22) 2px, transparent 2px);
  background-size: 32px 32px;
  mix-blend-mode: overlay;
}
.hero-backdrop { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: auto; }
.hero-backdrop-fallback { background: linear-gradient(115deg, #07140f 0%, #143526 43%, #4a1913 100%); }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(7, 12, 9, .96) 0%, rgba(12, 25, 18, .84) 43%, rgba(18, 15, 11, .28) 75%, rgba(10, 10, 8, .38) 100%), linear-gradient(0deg, rgba(8, 13, 10, .75), transparent 55%); }
.hero-grid { min-height: 690px; padding-block: 78px 100px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr); align-items: center; gap: clamp(48px, 8vw, 110px); }
.hero-copy { max-width: 690px; }
.pixel-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--gold); font-size: .88rem; letter-spacing: .13em; text-transform: uppercase; }
.pixel-kicker.dark { color: #96600e; }
.pixel-kicker.light { color: var(--gold); }
.hero h1 { max-width: 780px; margin-bottom: 26px; color: var(--cream); font-size: clamp(3rem, 7.2vw, 6.5rem); letter-spacing: .01em; text-shadow: 5px 5px 0 #100d0a, 9px 9px 0 rgba(228, 27, 24, .75); }
.hero-lead { max-width: 590px; margin-bottom: 34px; color: #fff3d5; font-size: clamp(1.05rem, 2vw, 1.26rem); line-height: 1.9; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.pixel-button { position: relative; display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 11px 22px 9px; text-decoration: none; border: 3px solid var(--ink); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.pixel-button::before, .pixel-button::after { content: ""; position: absolute; width: 6px; height: 6px; background: currentColor; }
.pixel-button::before { top: 3px; left: 3px; }
.pixel-button::after { right: 3px; bottom: 3px; }
.pixel-button:hover { transform: translate(-2px, -2px); }
.pixel-button-primary { color: var(--ink); background: var(--gold); box-shadow: 6px 6px 0 var(--maple); }
.pixel-button-primary:hover { box-shadow: 8px 8px 0 var(--maple); }
.pixel-button-ghost { color: var(--cream); background: rgba(16, 13, 10, .52); border-color: var(--cream); box-shadow: 6px 6px 0 var(--forest); }
.pixel-button-dark { color: var(--cream); background: var(--forest); box-shadow: 6px 6px 0 var(--maple); }
.hero-status { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: #dfd6c2; font-size: .88rem; }
.status-light { width: 11px; height: 11px; background: #59d87a; box-shadow: 0 0 0 4px rgba(89, 216, 122, .16), 0 0 16px rgba(89, 216, 122, .7); animation: pulse 2.2s steps(2, end) infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.logo-plaque { position: relative; justify-self: end; width: min(100%, 420px); padding: 18px; background: var(--cream); border: 7px solid var(--ink); box-shadow: 12px 12px 0 var(--maple), 20px 20px 0 rgba(16, 13, 10, .8); transform: rotate(1.2deg); }
.logo-plaque::before { content: ""; position: absolute; inset: 8px; border: 3px solid var(--gold); pointer-events: none; }
.logo-plaque img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.plaque-corner { position: absolute; z-index: 2; width: 14px; height: 14px; background: var(--maple); }
.plaque-corner-a { top: -7px; left: -7px; }
.plaque-corner-b { right: -7px; bottom: -7px; }
.hero-block-edge { position: absolute; bottom: 0; left: 0; right: 0; height: 26px; background: linear-gradient(90deg, var(--ink) 0 7%, var(--maple) 7% 14%, var(--ink) 14% 26%, var(--forest) 26% 38%, var(--ink) 38% 55%, var(--maple) 55% 64%, var(--ink) 64% 78%, var(--forest) 78% 92%, var(--ink) 92%); image-rendering: pixelated; }

.section { position: relative; padding-block: 100px; }
.announcements-section { background-color: var(--paper); background-image: linear-gradient(rgba(20, 53, 38, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 53, 38, .045) 1px, transparent 1px); background-size: 32px 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; border-bottom: 5px solid var(--ink); }
.section-heading h2 { margin-bottom: 18px; }
.section-icon { width: 120px; height: 120px; object-fit: contain; image-rendering: pixelated; margin-bottom: -5px; }
.featured-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); min-height: 320px; margin-bottom: 28px; overflow: hidden; color: var(--cream); background: var(--forest); border: 5px solid var(--ink); box-shadow: 9px 9px 0 var(--maple); }
.featured-card::before { content: ""; position: absolute; inset: 10px; border: 2px solid rgba(255, 231, 176, .24); pointer-events: none; }
.featured-marker { position: absolute; z-index: 2; top: 0; left: 0; padding: 8px 17px 6px; color: var(--ink); background: var(--gold); border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); font-family: var(--pixel); font-size: .82rem; }
.featured-content { align-self: center; padding: 78px 44px 48px; }
.featured-content h3 { max-width: 650px; margin-bottom: 18px; font-size: clamp(1.8rem, 3.7vw, 3.1rem); }
.featured-content p { max-width: 670px; color: #ede0c5; }
.featured-image { width: 100%; height: 100%; object-fit: cover; border-left: 5px solid var(--ink); }
.announcement-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 15px; color: #b6a98f; font-family: var(--pixel); font-size: .76rem; letter-spacing: .06em; }
.announcement-meta span { padding: 3px 8px 2px; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); }
.text-link { display: inline-block; color: var(--maple); font-weight: 800; text-underline-offset: 5px; }
.featured-card .text-link { color: var(--gold); }
.announcement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.announcement-card { position: relative; min-height: 250px; padding: 29px 27px 27px; background: #fff9e9; border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--paper-deep); }
.announcement-card::after { content: ""; position: absolute; width: 17px; height: 17px; right: -4px; bottom: -4px; background: var(--maple); border-top: 4px solid var(--ink); border-left: 4px solid var(--ink); }
.announcement-card h3 { margin-bottom: 13px; }
.announcement-card p { color: #61584d; }
.empty-state { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 34px; background: #fff9e9; border: 4px dashed #ac9e81; color: var(--muted); }
.empty-state span { font-size: 2rem; }
.empty-state p { margin: 0; }

.about-section { color: var(--cream); background: var(--ink); border-top: 9px solid var(--forest); border-bottom: 9px solid var(--maple); overflow: hidden; }
.about-section::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(135deg, transparent 75%, var(--cream) 75%), linear-gradient(225deg, transparent 75%, var(--cream) 75%); background-position: 0 0, 16px 0; background-size: 32px 32px; }
.about-grid { position: relative; display: grid; grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr); gap: clamp(50px, 8vw, 110px); align-items: center; }
.about-art { position: relative; min-height: 470px; background: #1b432f; border: 6px solid var(--cream); box-shadow: 13px 13px 0 var(--maple); overflow: hidden; }
.about-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .08) 2px, transparent 2px); background-size: 32px 32px; }
.block-sun { position: absolute; top: 45px; right: 45px; width: 85px; height: 85px; background: var(--gold); box-shadow: -14px 14px 0 #dc7d27; }
.crystal-icon { position: absolute; z-index: 2; width: 72%; max-width: 330px; left: 7%; bottom: 42px; object-fit: contain; image-rendering: pixelated; }
.lantern-icon { position: absolute; z-index: 3; width: 34%; max-width: 150px; right: 5%; bottom: 100px; object-fit: contain; image-rendering: pixelated; }
.block-ground { position: absolute; bottom: 0; left: 0; right: 0; height: 74px; background: #6c3b20; border-top: 15px solid #2e8b48; box-shadow: inset 0 14px rgba(16, 13, 10, .24); }
.about-copy h2 { margin-bottom: 28px; }
.about-rich { color: #eadfc7; font-size: 1.1rem; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 38px 0 0; }
.about-facts div { padding: 18px 14px; border: 3px solid #725e3c; background: #191510; }
.about-facts dt { color: var(--gold); font-family: var(--pixel); font-size: 1.22rem; }
.about-facts dd { margin: 2px 0 0; color: #bdb09a; font-size: .9rem; }

.custom-sections { background: var(--paper); }
.join-section { padding-block: 82px; background: var(--gold); background-image: linear-gradient(45deg, rgba(255, 255, 255, .16) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .16) 75%), linear-gradient(45deg, rgba(255, 255, 255, .16) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .16) 75%); background-size: 32px 32px; background-position: 0 0, 16px 16px; }
.join-panel { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 45px 48px; background: var(--cream); border: 5px solid var(--ink); box-shadow: 11px 11px 0 var(--maple); }
.join-panel h2 { margin-bottom: 15px; }
.join-panel p { max-width: 620px; margin-bottom: 0; }
.join-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 15px; }
.server-address { min-width: 220px; padding: 11px 15px; text-align: left; color: var(--cream); background: var(--ink); border: 3px solid var(--forest); box-shadow: 5px 5px 0 var(--maple); cursor: pointer; }
.server-address span, .server-address em { display: block; color: #bcb09a; font-size: .72rem; font-style: normal; }
.server-address strong { display: block; color: var(--gold); overflow-wrap: anywhere; }

.page-hero { color: var(--cream); background: var(--forest); border-bottom: 9px solid var(--maple); }
.page-hero-inner { padding-block: 88px 72px; }
.page-hero h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 6vw, 5.3rem); text-shadow: 5px 5px 0 var(--ink); }
.page-hero p:last-child { max-width: 720px; margin-bottom: 0; color: #e6d9be; font-size: 1.1rem; }
.content-page { background: var(--paper); }
.content-stream { max-width: 940px; }
.stream-block + .stream-block { margin-top: 65px; }
.stream-heading { padding-bottom: 25px; border-bottom: 5px solid var(--ink); }
.stream-heading h2 { margin-bottom: 12px; }
.rich-text { overflow-wrap: anywhere; }
.rich-text h2, .rich-text h3 { margin-top: 1.6em; }
.rich-text a { color: #a91412; font-weight: 700; }
.rich-text img { height: auto; }
.stream-image img, .announcement-preview img { width: 100%; height: auto; border: 5px solid var(--ink); box-shadow: 9px 9px 0 var(--maple); }
.image-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px; align-items: center; }
.image-text.image-right .stream-image { order: 2; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid var(--ink); }
.content-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.content-cards article { padding: 25px; background: #fff9e9; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--paper-deep); }
.notice { padding: 24px 28px; border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--paper-deep); }
.notice h3 { margin-bottom: 8px; }
.notice-info { background: #e6f3e8; border-left: 12px solid var(--crystal); }
.notice-important { background: #ffe0d3; border-left: 12px solid var(--maple); }
.notice-success { background: #fff0b6; border-left: 12px solid var(--gold); }
.faq-list details { margin-bottom: 12px; background: #fff9e9; border: 4px solid var(--ink); }
.faq-list summary { padding: 18px 22px; font-family: var(--pixel); cursor: pointer; }
.faq-list details .rich-text { padding: 0 22px 20px; }
.content-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 36px; color: var(--cream); background: var(--forest); border: 5px solid var(--ink); box-shadow: 9px 9px 0 var(--maple); }
.content-cta h2 { margin-bottom: 12px; }
.preview-card { max-width: 860px; padding: 45px; background: #fff9e9; border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--paper-deep); }
.preview-summary { font-size: 1.22rem; font-weight: 700; }

.site-footer { padding-top: 62px; color: #d8ccb4; background: var(--ink); border-top: 10px solid var(--forest); }
.footer-grid { padding-bottom: 45px; }
.footer-brand { margin-bottom: 15px; color: var(--cream); font-size: 1.65rem; }
.footer-brand span { color: var(--maple); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-block: 18px 24px; border-top: 2px solid #3b3329; color: #948a7b; font-size: .82rem; }
.footer-bottom a { color: #b9ac96; }

@media (max-width: 960px) {
  :root { --shell: min(100% - 32px, 760px); }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: calc(100% + 4px); left: 0; right: 0; display: none; padding: 15px 16px 20px; background: var(--ink); border-bottom: 5px solid var(--maple); box-shadow: 0 12px 20px rgba(0, 0, 0, .35); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 12px 14px; }
  .primary-nav .nav-cta { margin: 7px 0 0; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 70px 100px; gap: 54px; }
  .logo-plaque { justify-self: start; width: min(350px, 80vw); }
  .announcement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { width: min(100%, 600px); }
  .join-panel { align-items: flex-start; flex-direction: column; }
  .join-actions { justify-content: flex-start; }
  .content-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 24px); }
  html { scroll-padding-top: 74px; }
  .header-inner { min-height: 68px; }
  .brand { font-size: 1rem; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { padding-block: 58px 86px; }
  .hero h1 { font-size: clamp(2.75rem, 15vw, 4.2rem); text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 rgba(228, 27, 24, .72); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .pixel-button { width: 100%; }
  .logo-plaque { width: min(310px, calc(100vw - 50px)); padding: 12px; border-width: 5px; box-shadow: 8px 8px 0 var(--maple), 13px 13px 0 rgba(16, 13, 10, .75); }
  .section { padding-block: 74px; }
  .section-heading { align-items: flex-start; }
  .section-icon { width: 82px; height: 82px; }
  .featured-card { display: block; box-shadow: 7px 7px 0 var(--maple); }
  .featured-content { padding: 70px 24px 30px; }
  .featured-image { height: 220px; border-top: 5px solid var(--ink); border-left: 0; }
  .announcement-grid { grid-template-columns: 1fr; }
  .about-art { min-height: 370px; }
  .about-facts { grid-template-columns: 1fr; }
  .join-panel { padding: 30px 22px; box-shadow: 7px 7px 0 var(--maple); }
  .join-actions, .server-address { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .image-text { grid-template-columns: 1fr; }
  .image-text.image-right .stream-image { order: 0; }
  .gallery-grid, .content-cards { grid-template-columns: 1fr; }
  .content-cta { align-items: stretch; flex-direction: column; padding: 28px 22px; }
  .preview-card { padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
