:root {
  --ink: #080c10;
  --ink-2: #10161b;
  --panel: #171d22;
  --panel-2: #1c2329;
  --line: rgba(218, 181, 108, 0.25);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #d6aa55;
  --gold-deep: #9b6b25;
  --gold-light: #f1d18c;
  --paper: #f1ede4;
  --muted: #aeb4ba;
  --white: #f7f4ed;
  --jade: #58d0b8;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--white); font-family: "Noto Serif TC", "Songti TC", "PMingLiU", "Microsoft JhengHei", serif; }
/* The trailer dialog starts hidden. Do not lock page scrolling before it opens. */
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--gold); color: #0a0d10; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

.site-header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 3.4vw, 58px);
  background: rgba(8, 12, 16, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.brand { justify-self: start; }
.wordmark { display: inline-flex; flex-direction: column; width: max-content; }
.wordmark b { color: var(--gold-light); font-size: clamp(25px, 2.4vw, 39px); font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-shadow: 0 1px 0 #77501b, 0 0 18px rgba(214, 170, 85, 0.16); }
.wordmark small { align-self: center; margin-top: 8px; color: #cda861; font-size: 12px; line-height: 1; letter-spacing: 0.25em; }
.wordmark small i { color: #b42419; font-style: normal; font-size: 8px; }
.wordmark.compact b { font-size: 24px; }
.wordmark.compact small { margin-top: 5px; font-size: 9px; }

nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2vw, 36px); white-space: nowrap; }
nav a { position: relative; padding: 29px 0 25px; color: #d2d4d5; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; transition: color 0.25s ease; }
nav a::after { content: ""; position: absolute; right: 50%; bottom: 15px; left: 50%; height: 1px; background: var(--gold); transition: inset 0.25s ease; }
nav a:hover, nav a.active { color: var(--gold-light); }
nav a:hover::after, nav a.active::after { right: 0; left: 0; }

.header-cta { justify-self: end; min-width: 118px; padding: 12px 20px; text-align: center; color: var(--gold-light); border: 1px solid rgba(214, 170, 85, 0.68); background: linear-gradient(145deg, rgba(214, 170, 85, 0.13), rgba(214, 170, 85, 0.03)); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); transition: 0.25s ease; }
.header-cta:hover { color: #17130b; background: var(--gold-light); filter: drop-shadow(0 0 12px rgba(214, 170, 85, 0.35)); }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.menu-button span { display: block; height: 1px; margin: 5px 0; background: var(--gold-light); }

.hero {
  position: relative;
  min-height: min(780px, 90svh);
  margin-top: var(--header-h);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #0b1118;
}
.hero-image { position: absolute; z-index: -6; inset: 0; background: url("../assets/images/hero-poster.webp") center / cover no-repeat; transform: scale(1.025); animation: hero-drift 18s ease-in-out infinite alternate; }
.hero-video { position: absolute; z-index: -5; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; z-index: -3; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 12, 0.36), rgba(7, 10, 14, 0.2) 35%, rgba(7, 10, 14, 0.28) 68%, rgba(5, 8, 12, 0.36)), linear-gradient(180deg, rgba(6, 9, 13, 0.08), transparent 44%, rgba(6, 9, 13, 0.78)); }
.star-layer { position: absolute; z-index: -2; inset: -10%; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.5px); background-size: 81px 81px; opacity: 0.25; animation: stars-move 28s linear infinite; }
.star-two { background-size: 137px 137px; background-position: 37px 58px; opacity: 0.18; animation-duration: 46s; }
.mist-layer { position: absolute; z-index: -1; width: 84%; height: 21%; border-radius: 50%; background: rgba(184, 207, 222, 0.14); filter: blur(55px); opacity: 0.4; animation: mist-move 19s ease-in-out infinite alternate; }
.mist-one { right: -24%; bottom: 4%; }
.mist-two { left: -30%; bottom: 18%; animation-duration: 26s; }
.meteor { position: absolute; z-index: 0; width: 170px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 235, 190, 0.95)); opacity: 0; transform: rotate(-27deg); animation: meteor 10s infinite; }
.meteor-one { top: 18%; right: 16%; }
.meteor-two { top: 34%; left: 24%; animation-delay: 5.5s; animation-duration: 13s; }
.spirit-particles { position: absolute; inset: 0; pointer-events: none; }
.spirit-particles i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #f0c66c; box-shadow: 0 0 12px #e0aa45; opacity: 0; animation: particle-rise 8s ease-in infinite; }
.spirit-particles i:nth-child(1){left:7%;bottom:12%;animation-delay:.2s}.spirit-particles i:nth-child(2){left:16%;bottom:8%;animation-delay:2.2s}.spirit-particles i:nth-child(3){left:24%;bottom:18%;animation-delay:5s}.spirit-particles i:nth-child(4){left:34%;bottom:10%;animation-delay:1.3s}.spirit-particles i:nth-child(5){left:42%;bottom:7%;animation-delay:4.3s}.spirit-particles i:nth-child(6){left:53%;bottom:15%;animation-delay:.9s}.spirit-particles i:nth-child(7){left:61%;bottom:9%;animation-delay:6.2s}.spirit-particles i:nth-child(8){left:68%;bottom:20%;animation-delay:2.8s}.spirit-particles i:nth-child(9){left:75%;bottom:11%;animation-delay:5.4s}.spirit-particles i:nth-child(10){left:81%;bottom:17%;animation-delay:1.8s}.spirit-particles i:nth-child(11){left:88%;bottom:8%;animation-delay:3.8s}.spirit-particles i:nth-child(12){left:92%;bottom:24%;animation-delay:6.8s}.spirit-particles i:nth-child(13){left:30%;bottom:23%;animation-delay:3.2s}.spirit-particles i:nth-child(14){left:57%;bottom:5%;animation-delay:7.2s}

.hero-content { position: relative; z-index: 3; width: min(940px, calc(100% - 40px)); padding: 72px 20px 90px; text-align: center; }
.hero-kicker, .section-kicker { margin: 0 0 18px; color: var(--gold-light); font: 600 12px/1.5 "Microsoft JhengHei", sans-serif; letter-spacing: 0.34em; }
.hero-title { filter: drop-shadow(0 8px 18px rgba(0,0,0,.58)); }
.hero-title h1 { margin: 0; color: #e9c374; font-size: clamp(64px, 9.2vw, 132px); font-weight: 800; line-height: 1; letter-spacing: 0.08em; text-shadow: 0 1px 0 #6b4518, 0 2px 0 #b98739, 0 4px 16px rgba(0,0,0,.6), 0 0 30px rgba(214,170,85,.16); }
.hero-title > p { margin: 8px 0 0; color: #e5bd6c; font-size: clamp(23px, 3.5vw, 46px); font-weight: 700; letter-spacing: 0.31em; }
.hero-title > p span { display: inline-flex; margin-left: 12px; padding: 5px 7px; vertical-align: middle; color: #16130f; background: #b72a1f; font-size: 11px; line-height: 1.1; letter-spacing: 0.1em; writing-mode: vertical-rl; }
.hero-title > p .hero-subtitle-text { display: inline; margin: 0; padding: 0; color: inherit; background: transparent; font: inherit; line-height: inherit; letter-spacing: inherit; writing-mode: horizontal-tb; }
.hero-copy { display: flex; flex-direction: column; gap: 8px; margin: 27px auto 0; color: #edeef0; font-size: clamp(17px, 1.6vw, 23px); letter-spacing: 0.08em; text-shadow: 0 2px 10px #000; }
.hero-copy strong { font-weight: 700; }
.hero-copy span { color: #d3d6d9; }
.gold-button, .outline-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 178px; padding: 15px 28px; border: 1px solid #e0b861; background: linear-gradient(180deg, #6c4a20, #4d3317); color: #f7e3ba; font-size: 16px; letter-spacing: 0.08em; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 226, 160, 0.08), 0 0 22px rgba(214, 170, 85, 0.18); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); transition: transform 0.25s ease, filter 0.25s ease; }
.gold-button::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(241, 209, 140, 0.25); pointer-events: none; }
.gold-button:hover, .outline-button:hover { transform: translateY(-2px); filter: brightness(1.18); }
.gold-button.disabled { cursor: default; opacity: 0.72; }
.gold-button.disabled:hover { transform: none; filter: none; }
.hero-button { margin-top: 31px; }
.hero-controls { position: absolute; right: 20px; bottom: 18px; z-index: 5; }
.hero-controls button { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.14); background: rgba(7,10,14,.7); color: #d9dde0; font: 11px "Microsoft JhengHei", sans-serif; cursor: pointer; backdrop-filter: blur(8px); }

.section { position: relative; padding: clamp(72px, 8vw, 118px) clamp(22px, 4vw, 64px); overflow: hidden; }
.features-section { padding-top: 22px; background: linear-gradient(180deg, #151a1e 0, #11171b 100%); }
.ornament-title { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 0 auto 24px; }
.ornament-title h2, .panel-title h2 { margin: 0; color: #e9cb8f; font-size: 25px; font-weight: 700; letter-spacing: 0.11em; }
.ornament-title i { position: relative; width: min(180px, 18vw); height: 1px; background: linear-gradient(90deg, transparent, #846832); }
.ornament-title i:last-child { transform: scaleX(-1); }
.ornament-title i::after { content: "◇"; position: absolute; top: -10px; right: -5px; color: var(--gold); font-size: 16px; }
.features-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature-card { min-height: 192px; padding: 26px 19px 22px; text-align: center; border: 1px solid rgba(213, 175, 101, 0.25); border-radius: 5px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); box-shadow: inset 0 1px rgba(255,255,255,.02); transition: 0.3s ease; }
.feature-card:hover { border-color: rgba(241, 209, 140, 0.62); transform: translateY(-5px); background: linear-gradient(145deg, rgba(214,170,85,.1), rgba(255,255,255,.01)); }
.feature-card svg { width: 49px; height: 49px; margin: 0 auto 16px; fill: none; stroke: #e4e5e6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255,255,255,.12)); }
.feature-card h3 { margin: 0 0 11px; color: #e7c87f; font-size: 15px; letter-spacing: 0.05em; }
.feature-card p { margin: 0; color: #c1c5c8; font: 13px/1.75 "Microsoft JhengHei", sans-serif; }

.news-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; max-width: 1440px; margin: 0 auto; padding-top: 16px; padding-bottom: 34px; background: #11171b; }
.news-section::before { content: ""; position: fixed; z-index: -10; inset: 0; background: #11171b; }
.news-panel, .trailer-panel { min-width: 0; padding: 20px; border: 1px solid rgba(218, 181, 108, 0.18); border-radius: 5px; background: linear-gradient(145deg, rgba(255,255,255,.032), rgba(255,255,255,.012)); }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.panel-title a, .panel-title > span { color: #b8b7b2; font: 12px "Microsoft JhengHei", sans-serif; letter-spacing: 0.1em; }
.panel-title a:hover { color: var(--gold-light); }
.news-list article { display: grid; grid-template-columns: 90px 1fr auto; gap: 13px; align-items: center; min-height: 73px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.055); }
.news-list article:first-child { border-top: 0; }
.news-list img { width: 90px; height: 58px; object-fit: cover; border: 1px solid #82662e; border-radius: 3px; }
.news-list h3 { margin: 0 0 6px; color: #eeeff0; font-size: 15px; }
.news-list h3 em { display: inline-grid; width: 25px; height: 25px; margin-left: 8px; place-items: center; border-radius: 50%; background: #d53025; color: #fff; font-size: 11px; font-style: normal; }
.news-list p { margin: 0; overflow: hidden; color: #aeb3b7; font: 12px/1.4 "Microsoft JhengHei", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.news-list time { color: #a3a6a8; font: 11px "Microsoft JhengHei", sans-serif; white-space: nowrap; }
.trailer-frame { position: relative; width: 100%; aspect-ratio: 16/8.2; padding: 0; overflow: hidden; border: 0; background: #080b0e; cursor: pointer; }
.trailer-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.78) saturate(.88); transition: transform .5s ease, filter .4s ease; }
.trailer-frame:hover img { transform: scale(1.035); filter: brightness(.92); }
.play-button { position: absolute; top: 50%; left: 50%; width: 82px; height: 82px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(17, 19, 19, 0.64); color: #f4efe4; font-size: 30px; transform: translate(-50%,-50%); backdrop-filter: blur(4px); box-shadow: 0 0 0 8px rgba(255,255,255,.025); }
.trailer-time { position: absolute; right: 12px; bottom: 9px; left: 12px; padding-top: 7px; border-top: 3px solid rgba(255,255,255,.75); color: #fff; font: 11px "Microsoft JhengHei", sans-serif; text-align: left; text-shadow: 0 1px 3px #000; }

.section-heading { max-width: 790px; margin: 0 auto 50px; text-align: center; }
.section-heading > p { margin: 0; color: var(--gold); font: 600 11px/1.5 Arial, sans-serif; letter-spacing: .34em; }
.section-heading h2 { margin: 13px 0 16px; color: #f1e5cf; font-size: clamp(37px, 4.4vw, 62px); font-weight: 600; letter-spacing: .08em; }
.section-heading > span { color: var(--muted); font-size: 15px; line-height: 1.9; letter-spacing: .06em; }
.world-section { background: radial-gradient(circle at 50% 12%, rgba(55,85,115,.22), transparent 33%), #0b1015; }
.world-flow { max-width: 1300px; margin: 0 auto 34px; display: grid; grid-template-columns: repeat(var(--flow-columns, 10), 1fr); border-top: 1px solid rgba(214,170,85,.25); }
.world-flow div { position: relative; padding: 24px 4px 14px; text-align: center; color: #7f878d; }
.world-flow div::before { content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; border: 1px solid #8d7445; background: #0b1015; transform: rotate(45deg); }
.world-flow small { display: block; margin-bottom: 7px; color: #6f6657; font: 9px Arial, sans-serif; }
.world-flow b { font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.world-flow .current { color: var(--gold-light); }
.world-flow .current::before { background: var(--gold); box-shadow: 0 0 15px var(--gold); }
.world-cards { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr .95fr; gap: 18px; }
.world-card { min-height: 310px; padding: 31px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.world-card > span { color: var(--gold); font: 11px Arial, sans-serif; letter-spacing: .22em; }
.world-card h3 { margin: 16px 0 12px; color: #eee2ce; font-size: 26px; letter-spacing: .06em; }
.world-card p { color: #9fa8ae; font: 14px/1.85 "Microsoft JhengHei", sans-serif; }
.realm-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.realm-strip b, .sect-card li { padding: 7px 10px; border: 1px solid rgba(214,170,85,.2); color: #c7b68f; background: rgba(214,170,85,.035); font-size: 11px; font-weight: 500; }
.sect-card ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 25px 0 0; list-style: none; }
.map-card ol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; padding: 0; margin: 24px 0 0; list-style-position: inside; color: #c6b489; font-size: 12px; }

.gallery-section { background: linear-gradient(180deg, #0e1419, #12191e); }
.gallery-grid { max-width: 1260px; margin: auto; display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: repeat(2, 230px); gap: 14px; }
.gallery-grid figure { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(214,170,85,.2); }
.gallery-grid .gallery-wide { grid-row: 1 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.gallery-grid figure:hover img { transform: scale(1.035); filter: brightness(1.08); }
.gallery-grid figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 34px 18px 16px; color: #f4e3c1; background: linear-gradient(transparent, rgba(3,6,8,.88)); font-size: 13px; letter-spacing: .12em; }

.roadmap-section { background: radial-gradient(circle at 50% 100%, rgba(214,170,85,.07), transparent 38%), #080d11; }
.roadmap-grid { max-width: 1120px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.roadmap-grid article { position: relative; min-height: 226px; padding: 34px 28px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.018); }
.roadmap-grid article.active { border-color: rgba(214,170,85,.58); background: linear-gradient(150deg, rgba(214,170,85,.11), rgba(255,255,255,.012)); }
.roadmap-grid small { color: var(--gold); font: 11px Arial, sans-serif; letter-spacing: .24em; }
.roadmap-grid h3 { margin: 28px 0 12px; color: #eee3d0; font-size: 25px; letter-spacing: .08em; }
.roadmap-grid p { color: #9ca5ab; font: 13px/1.8 "Microsoft JhengHei", sans-serif; }
.roadmap-grid i { position: absolute; right: 20px; bottom: 20px; width: 18px; height: 18px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }

.app-section { background: linear-gradient(135deg, #11171c, #0a0f13); }
.app-showcase { max-width: 1050px; margin: auto; display: grid; grid-template-columns: 330px 1fr; gap: 70px; align-items: center; }
.app-icon-wrap { position: relative; }
.app-icon-wrap::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: rgba(214,170,85,.23); filter: blur(40px); }
.app-icon-wrap img { position: relative; border-radius: 24%; box-shadow: 0 22px 55px rgba(0,0,0,.5), 0 0 0 1px rgba(214,170,85,.28); }
.app-icon-wrap i { position: absolute; inset: -10px; border: 1px solid rgba(214,170,85,.18); border-radius: 25%; transform: rotate(4deg); }
.app-showcase h2 { margin: 8px 0 17px; color: #f1dfbc; font-size: clamp(38px, 5vw, 62px); letter-spacing: .08em; }
.app-showcase > div:last-child > p:not(.section-kicker) { max-width: 660px; color: #aab2b7; font: 15px/1.9 "Microsoft JhengHei", sans-serif; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 28px; }
.app-tags span { padding: 8px 12px; border: 1px solid rgba(214,170,85,.23); color: #d3c29d; font-size: 12px; }

.studio-section { background: #ece8df; color: #10141a; }
.studio-card { max-width: 1080px; margin: auto; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 58px; }
.studio-art { padding: 16px; border: 1px solid #c7bfae; background: #f5f1e9; box-shadow: 0 15px 40px rgba(24, 31, 42, 0.13); transform: rotate(-1deg); }
.studio-copy .section-kicker { color: #8c6428; }
.studio-copy h2 { margin: 8px 0 17px; color: #18295a; font-size: clamp(40px, 5vw, 66px); letter-spacing: .06em; }
.studio-copy p { color: #3b4652; font: 15px/1.95 "Microsoft JhengHei", sans-serif; }
.outline-button { margin-top: 15px; border-color: #1c2d60; background: transparent; color: #1c2d60; box-shadow: none; clip-path: none; }

.faq-section { background: #0c1116; }
.faq-list { max-width: 900px; margin: auto; border-top: 1px solid rgba(214,170,85,.2); }
.faq-list details { border-bottom: 1px solid rgba(214,170,85,.2); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; color: #e7dfd2; cursor: pointer; font-size: 16px; letter-spacing: .05em; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--gold); font-size: 24px; font-weight: 300; transition: transform .25s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 48px 22px 4px; color: #9ca4a9; font: 14px/1.85 "Microsoft JhengHei", sans-serif; }

.community-section { max-width: 1440px; margin: 0 auto; padding: 24px clamp(22px, 4vw, 64px); display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 30px; border: 1px solid rgba(218,181,108,.27); background: linear-gradient(145deg, #171d21, #11171b); }
.community-section h2 { margin: 0 0 10px; color: #efd296; font-size: 25px; letter-spacing: .08em; }
.community-section p { margin: 0; color: #b7bdc1; font: 14px "Microsoft JhengHei", sans-serif; }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.social { position: relative; min-height: 87px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-left: 1px solid rgba(255,255,255,.08); }
.social b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #5865f2; font: 700 20px Arial, sans-serif; }
.social b img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: inherit; }
.social-2 b { background: #2375d8; }
.social-3 b { border-radius: 10px; background: #e62b28; font-size: 16px; }
.social-4 b { border-radius: 10px; background: #050505; }
.social small { color: #d8dadd; font: 12px Arial, sans-serif; }
.social em { position: absolute; opacity: 0; bottom: -2px; color: var(--gold); font: 9px "Microsoft JhengHei", sans-serif; font-style: normal; transition: .25s ease; }
.social:hover em { bottom: 4px; opacity: 1; }

.join-section { position: relative; min-height: 470px; display: grid; place-items: center; overflow: hidden; text-align: center; background: linear-gradient(rgba(6,10,14,.75), rgba(6,10,14,.92)), url("../assets/images/gallery-valley.webp") center 42% / cover; }
.join-section > div:last-child { position: relative; z-index: 2; padding: 70px 20px; }
.join-section .wordmark { margin: 0 auto; }
.join-section h2 { margin: 26px 0 12px; color: #ede4d4; font-size: clamp(28px, 4vw, 46px); letter-spacing: .08em; }
.join-section p { margin: 0 0 27px; color: #b5bdc2; }
.join-glow { position: absolute; width: 390px; height: 390px; border: 1px solid rgba(214,170,85,.14); border-radius: 50%; box-shadow: 0 0 80px rgba(214,170,85,.12) inset; animation: spin 32s linear infinite; }
.join-glow::before, .join-glow::after { content: ""; position: absolute; border: 1px dashed rgba(214,170,85,.18); border-radius: 50%; }
.join-glow::before { inset: 24px; }
.join-glow::after { inset: 62px; }

.site-stats { position: relative; overflow: hidden; padding: clamp(58px, 7vw, 92px) clamp(22px, 5vw, 74px); border-top: 1px solid rgba(214,170,85,.16); background: radial-gradient(circle at 50% 0, rgba(214,170,85,.09), transparent 42%), linear-gradient(180deg, #0b1015, #070a0d); }
.site-stats::before { content: ""; position: absolute; top: -190px; left: 50%; width: 420px; height: 420px; border: 1px solid rgba(214,170,85,.09); border-radius: 50%; box-shadow: 0 0 0 55px rgba(214,170,85,.025), 0 0 0 110px rgba(214,170,85,.015); transform: translateX(-50%); pointer-events: none; }
.stats-intro { position: relative; z-index: 1; margin: 0 auto 31px; text-align: center; }
.stats-intro > p { margin: 0; color: var(--gold); font: 600 10px/1.5 Arial, sans-serif; letter-spacing: .32em; }
.stats-intro h2 { margin: 10px 0 9px; color: #f1dfbc; font-size: clamp(30px, 4vw, 45px); letter-spacing: .1em; }
.stats-intro > span { color: #858f96; font: 12px/1.7 "Microsoft JhengHei", sans-serif; letter-spacing: .06em; }
.stats-grid { position: relative; z-index: 1; max-width: 760px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card { min-height: 156px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 18px; padding: 25px 27px; border: 1px solid rgba(214,170,85,.29); background: linear-gradient(145deg, rgba(214,170,85,.08), rgba(255,255,255,.016)); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 17px 45px rgba(0,0,0,.2); }
.stat-card small { display: block; color: #c9b788; font: 12px/1.5 "Microsoft JhengHei", sans-serif; letter-spacing: .12em; }
.stat-card output { display: block; min-height: 55px; margin: 2px 0 0; color: var(--gold-light); font: 700 clamp(38px, 5vw, 58px)/1 Arial, sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(214,170,85,.2); }
.stat-card p { margin: 7px 0 0; color: #778087; font: 11px/1.6 "Microsoft JhengHei", sans-serif; }
.stat-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(214,170,85,.45); border-radius: 50%; color: var(--gold-light); font-size: 27px; box-shadow: 0 0 24px rgba(214,170,85,.1) inset; }
.online-card { border-color: rgba(88,208,184,.27); }
.online-pulse { position: relative; width: 17px; height: 17px; margin: 0 auto; border-radius: 50%; background: var(--jade); box-shadow: 0 0 16px rgba(88,208,184,.66); }
.online-pulse::before, .online-pulse::after { content: ""; position: absolute; inset: -8px; border: 1px solid rgba(88,208,184,.42); border-radius: 50%; animation: online-ring 2.2s ease-out infinite; }
.online-pulse::after { animation-delay: 1.1s; }
.stats-ready .stats-intro > span { color: #8fa99e; }
.stats-error .online-pulse { background: #7d858a; box-shadow: none; }
.stats-error .online-pulse::before, .stats-error .online-pulse::after { animation: none; border-color: rgba(125,133,138,.28); }

footer { padding: 46px clamp(22px, 5vw, 74px) 24px; background: #06090c; border-top: 1px solid rgba(214,170,85,.16); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px 28px; color: #aeb3b6; font-size: 13px; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.06); color: #626b72; font: 11px Arial, sans-serif; }
.footer-bottom p { margin: 0; }

.audio-control { position: fixed; z-index: 70; right: 18px; bottom: 18px; }
.audio-control button { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(214,170,85,.42); background: rgba(8,12,16,.86); color: #d9c7a2; cursor: pointer; font: 11px "Microsoft JhengHei", sans-serif; letter-spacing: .05em; backdrop-filter: blur(12px); }
.sound-bars { height: 14px; display: flex; align-items: flex-end; gap: 2px; }
.sound-bars i { width: 2px; height: 4px; background: var(--gold); }
.sound-bars.playing i { animation: sound .75s ease-in-out infinite alternate; }
.sound-bars.playing i:nth-child(2) { animation-delay: .2s; }.sound-bars.playing i:nth-child(3) { animation-delay: .4s; }

.modal-backdrop { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,4,6,.86); backdrop-filter: blur(12px); }
.modal-backdrop[hidden] { display: none; }
.trailer-modal { position: relative; width: min(860px, 100%); overflow: hidden; border: 1px solid rgba(214,170,85,.48); background: #10161b; box-shadow: 0 30px 100px #000; }
.trailer-modal img { width: 100%; aspect-ratio: 16/8; object-fit: cover; filter: brightness(.76); }
.trailer-modal video { display: block; width: 100%; aspect-ratio: 16/8; object-fit: cover; background: #080b0e; }
.trailer-modal > div { padding: 25px 28px 30px; }
.trailer-modal p { margin: 0; color: var(--gold); font: 10px Arial, sans-serif; letter-spacing: .28em; }
.trailer-modal h2 { margin: 9px 0 11px; color: #f1e7d5; font-size: 29px; }
.trailer-modal span { color: #9fa7ac; font: 13px/1.7 "Microsoft JhengHei", sans-serif; }
.trailer-modal code { color: var(--gold-light); }
.modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); background: rgba(3,5,7,.7); color: #fff; font-size: 24px; cursor: pointer; }
.modal-close:hover { color: var(--gold-light); border-color: var(--gold); background: rgba(3,5,7,.92); }

.noscript-notice { position: fixed; z-index: 200; inset: 0 0 auto; padding: 14px 18px; color: #17130b; background: var(--gold-light); font: 14px/1.5 "Microsoft JhengHei", sans-serif; text-align: center; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Legal pages */
.legal-page { min-height: 100vh; padding: 52px 20px 74px; color: #1a1d21; background: #d7d7d5; font-family: "Microsoft JhengHei", sans-serif; }
.legal-paper { width: min(980px, 100%); margin: 0 auto; padding: clamp(32px, 6vw, 74px); border: 1px solid #a9aaab; border-radius: 7px; background: #f4f4f2; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.legal-head { display: grid; grid-template-columns: .55fr 1fr; gap: 46px; align-items: start; margin-bottom: 34px; }
.legal-head .wordmark b { color: #111; text-shadow: none; font-size: 38px; }
.legal-head .wordmark small { color: #111; }
.legal-title h1 { margin: 2px 0 12px; color: #16191c; font-size: clamp(32px, 5vw, 49px); font-weight: 800; letter-spacing: .03em; }
.legal-title p { margin: 0; color: #4d5155; font-size: 13px; }
.legal-intro { margin: 0 0 24px; color: #33383d; font-size: 14px; line-height: 1.85; }
.legal-back { display: inline-flex; margin-bottom: 22px; color: #78551e; font-size: 13px; font-weight: 700; }
.legal-notice { margin: 0 0 27px; padding: 14px 17px; border-left: 3px solid #ab7b2f; background: #ece8de; color: #4e4a43; font-size: 13px; line-height: 1.75; }
.legal-content section { margin-top: 27px; }
.legal-content h2 { margin: 0 0 11px; color: #171a1d; font-size: 20px; font-weight: 800; }
.legal-content p, .legal-content li { color: #34393e; font-size: 14px; line-height: 1.8; }
.legal-content ul { margin: 8px 0; padding-left: 22px; }
.legal-content a { color: #1568b0; text-decoration: underline; }
.legal-footer { margin-top: 34px; padding-top: 18px; border-top: 1px solid #c5c6c6; color: #666a6d; font-size: 12px; text-align: center; }

/* Brand page */
.brand-page { min-height: 100vh; background: #0b1015; }
.subpage-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 70px); border-bottom: 1px solid var(--line); background: #080c10; }
.subpage-header > a:last-child { color: var(--gold-light); font-size: 13px; }
.brand-hero { padding: 76px 22px 58px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(214,170,85,.13), transparent 42%); }
.brand-hero h1 { margin: 12px 0; color: #f1dfbd; font-size: clamp(43px, 7vw, 78px); letter-spacing: .08em; }
.brand-hero p { max-width: 650px; margin: auto; color: #9ea7ad; line-height: 1.8; }
.brand-grid { max-width: 1120px; margin: 0 auto; padding: 0 22px 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.brand-panel { padding: 28px; border: 1px solid var(--line); background: #141b20; }
.brand-panel.wide { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; align-items: center; }
.brand-panel h2 { margin: 0 0 10px; color: #e7c981; font-size: 23px; }
.brand-panel p { color: #9ca5ab; font: 14px/1.8 "Microsoft JhengHei", sans-serif; }
.brand-panel img { width: 100%; border: 1px solid rgba(255,255,255,.08); }
.icon-display { max-width: 330px; margin: 0 auto 24px; border-radius: 24%; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.color-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 20px; }
.color-row span { min-height: 90px; display: flex; align-items: flex-end; padding: 10px; color: #fff; font: 10px Arial, sans-serif; }

@keyframes hero-drift { to { transform: scale(1.055) translate3d(-.6%, -.4%, 0); } }
@keyframes stars-move { to { transform: translate3d(70px, 40px, 0); } }
@keyframes mist-move { to { transform: translateX(28%); opacity: .22; } }
@keyframes meteor { 0%, 76% { opacity: 0; transform: translate(0,0) rotate(-27deg); } 79% { opacity: 1; } 91%,100% { opacity: 0; transform: translate(-520px,260px) rotate(-27deg); } }
@keyframes particle-rise { 0% { opacity: 0; transform: translateY(0) scale(.5); } 20% { opacity: .85; } 85% { opacity: .25; } 100% { opacity: 0; transform: translateY(-290px) translateX(55px) scale(1.2); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sound { to { height: 14px; } }
@keyframes online-ring { 0% { opacity: .7; transform: scale(.65); } 100% { opacity: 0; transform: scale(1.55); } }

@media (max-width: 1220px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  nav { gap: 17px; }
  nav a { font-size: 12px; }
  .wordmark.compact b { font-size: 21px; }
  .features-grid { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; padding-bottom: 10px; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .menu-button { display: block; justify-self: end; }
  .header-cta { display: none; }
  nav { position: absolute; top: var(--header-h); right: 0; left: 0; display: none; max-height: calc(100svh - var(--header-h)); overflow-y: auto; padding: 11px 20px 23px; background: rgba(8,12,16,.98); border-bottom: 1px solid var(--line); }
  nav.open { display: grid; grid-template-columns: 1fr 1fr; }
  nav a { padding: 15px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
  nav a::after { display: none; }
  .hero { min-height: 720px; }
  .hero-title h1 { font-size: clamp(55px, 11vw, 100px); }
  .news-section { grid-template-columns: 1fr; }
  .world-flow { grid-template-columns: repeat(5,1fr); border-top: 0; }
  .world-flow div { border-top: 1px solid rgba(214,170,85,.2); }
  .world-cards { grid-template-columns: 1fr; }
  .world-card { min-height: 0; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .app-showcase { grid-template-columns: 250px 1fr; gap: 42px; }
  .studio-card { gap: 35px; }
  .community-section { grid-template-columns: 1fr; }
  .legal-head { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
  .wordmark.compact b { font-size: 20px; }
  .wordmark.compact small { font-size: 8px; }
  .hero { min-height: 670px; }
  .hero-image { background-position: 61% center; }
  .hero-scrim { background: linear-gradient(180deg, rgba(6,9,13,.2), rgba(6,9,13,.34) 38%, rgba(6,9,13,.88)); }
  .hero-content { padding-top: 52px; }
  .hero-kicker { font-size: 9px; letter-spacing: .2em; }
  .hero-title h1 { font-size: clamp(48px, 15vw, 76px); letter-spacing: .02em; }
  .hero-title > p { font-size: 21px; letter-spacing: .18em; }
  .hero-title > p span { margin-left: 5px; font-size: 8px; }
  .hero-copy { font-size: 15px; line-height: 1.6; }
  .hero-controls button span { display: none; }
  .features-section { padding-right: 0; padding-left: 0; }
  .ornament-title { padding: 0 20px; }
  .features-grid { padding: 0 20px 12px; scroll-snap-type: x mandatory; }
  .feature-card { scroll-snap-align: start; }
  .news-section { padding-right: 14px; padding-left: 14px; }
  .news-panel, .trailer-panel { padding: 14px; }
  .news-list article { grid-template-columns: 76px 1fr; }
  .news-list img { width: 76px; height: 54px; }
  .news-list time { display: none; }
  .news-list p { white-space: normal; }
  .play-button { width: 62px; height: 62px; font-size: 23px; }
  .world-flow { grid-template-columns: repeat(2,1fr); }
  .section-heading h2 { font-size: 36px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 280px 200px 200px; }
  .gallery-grid .gallery-wide { grid-row: auto; }
  .app-showcase { grid-template-columns: 1fr; text-align: center; }
  .app-icon-wrap { max-width: 240px; margin: auto; }
  .app-tags { justify-content: center; }
  .studio-card { grid-template-columns: 1fr; }
  .studio-copy { text-align: center; }
  .social-grid { grid-template-columns: repeat(2,1fr); }
  .social:nth-child(odd) { border-left: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 138px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
  .audio-control button > span:last-child { display: none; }
  .legal-page { padding: 18px 10px 35px; }
  .legal-paper { padding: 28px 20px; }
  .legal-head .wordmark b { font-size: 30px; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-panel.wide { grid-column: auto; grid-template-columns: 1fr; }
  .color-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
  .hero-title h1 { font-size: 43px; }
  .hero-title > p { font-size: 18px; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .trailer-modal > div { padding: 21px 20px 24px; }
  .trailer-modal h2 { font-size: 24px; }
}
