:root {
  --bg: #070912;
  --bg2: #0d1020;
  --card: rgba(20, 24, 40, 0.78);
  --line: rgba(143, 240, 255, 0.18);
  --ink: #eef3ff;
  --soft: #a9b3d6;
  --cyan: #8ff0ff;
  --pink: #ff9ad5;
  --amber: #ffb238;
  --r: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 'Chakra Petch', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }

.top {
  position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(7, 9, 18, 0.9), rgba(7, 9, 18, 0));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; }
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.top nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--cyan); }

.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; filter: saturate(1.1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 18, 0.92) 0%, rgba(7, 9, 18, 0.55) 45%, rgba(7, 9, 18, 0) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 18, 0) 35%); }
.hero-text { position: relative; z-index: 1; max-width: 620px; padding: 120px clamp(16px, 6vw, 72px) clamp(40px, 8vh, 90px); }
.kicker { margin: 0 0 6px; color: var(--cyan); letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(56px, 11vw, 120px); line-height: 0.92; font-weight: 700; letter-spacing: 0.02em; }
h1 span:first-child { color: #dffaff; text-shadow: 0 0 18px rgba(143, 240, 255, 0.75), 0 0 48px rgba(143, 240, 255, 0.35); }
h1 span:last-child { color: #ffe4f4; text-shadow: 0 0 18px rgba(255, 154, 213, 0.8), 0 0 48px rgba(255, 154, 213, 0.35); }
.lead { margin: 22px 0 18px; font-size: clamp(17px, 2vw, 20px); color: #dbe3ff; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(255, 178, 56, 0.12); border: 1px solid rgba(255, 178, 56, 0.45); color: #ffd99a; font-weight: 600; font-size: 15px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.block { padding: clamp(56px, 9vw, 100px) 0 0; }
h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.intro { margin: 0 0 32px; max-width: 680px; color: var(--soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.card .ico { font-size: 30px; }
.card h3 { margin: 10px 0 6px; font-size: 20px; color: var(--cyan); }
.card p { margin: 0; color: var(--soft); font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(7, 9, 18, 0.75); font-size: 14px; color: #dbe3ff; }

.post { margin-bottom: 24px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.post time { color: var(--pink); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.post h3 { margin: 4px 0 16px; font-size: 24px; }
.post-body::after { content: ''; display: block; clear: both; }
.post-bolt { float: right; margin: 0 0 12px 20px; border-radius: 18px; background: radial-gradient(circle, rgba(143, 240, 255, 0.18), transparent 70%); }
.post p { margin: 0 0 14px; color: #d4dcf7; }
.post b { color: var(--cyan); font-weight: 600; }
.sign { font-family: 'Caveat', cursive; font-size: 26px; color: var(--pink) !important; }

/* Devlog (home excerpt + devlog/ page, generated by scripts/build-devlog.mjs) */
.post { scroll-margin-top: 80px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 !important; }
.post h2 { margin: 4px 0 16px; font-size: clamp(22px, 3vw, 26px); line-height: 1.25; }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a:hover { color: var(--cyan); }
.vtag { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(143, 240, 255, 0.45); background: rgba(143, 240, 255, 0.08); color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
a.vtag:hover { background: rgba(143, 240, 255, 0.18); }
.vtag.small { padding: 0 8px; font-size: 12px; margin-right: 4px; }
.post-shot { clear: both; margin: 6px 0 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.post-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.post-shot figcaption { padding: 8px 14px; font-size: 14px; color: var(--soft); }
.notes { clear: both; list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.notes li { margin: 0 0 8px; color: var(--soft); font-size: 15px; scroll-margin-top: 80px; }
.more { margin: 0 !important; }
.more a, .all-entries a { font-weight: 600; text-decoration: none; }
.more a:hover, .all-entries a:hover { text-decoration: underline; }
.all-entries { margin: 8px 0 0; font-size: 18px; }
.devlog-head { padding-top: clamp(96px, 12vw, 130px); }
.page-title { font-size: clamp(44px, 8vw, 72px); color: #dffaff; text-shadow: 0 0 18px rgba(143, 240, 255, 0.6), 0 0 48px rgba(143, 240, 255, 0.25); margin-bottom: 14px; }
.vindex { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 32px; }
.vindex a { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 13px; text-decoration: none; }
.vindex a:hover { color: var(--cyan); border-color: rgba(143, 240, 255, 0.45); }
.devlog-page main { max-width: 900px; }

.foot { margin-top: clamp(60px, 9vw, 100px); padding: 32px 16px 40px; text-align: center; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.foot p { margin: 4px 0; }
.foot .small { font-size: 13px; opacity: 0.7; }

.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(4, 5, 12, 0.92); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; }

@media (max-width: 760px) {
  .top nav a:first-child { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure.wide { grid-column: span 2; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 18, 0.75) 55%, rgba(7, 9, 18, 0.3) 100%); }
  .post-bolt { width: 64px; height: 64px; }}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .gallery img { transition: none; }
}

/* Icons: inline SVG pictograms from the game's icon set (src/icons), never emoji. */
.gi { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.24em; overflow: visible; filter: drop-shadow(0 0 2px color-mix(in srgb, var(--gc) 55%, transparent)); }
.gi .gs, .gi .gs2 { fill: none; stroke: var(--gc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gi .gs2 { stroke: var(--gc2, var(--gc)); }
.gi .gf { fill: var(--gc); fill-opacity: 0.3; }
.gi .gf2 { fill: var(--gc2, var(--gc)); fill-opacity: 0.3; }
.gi .gd { fill: var(--gc); }
.gi .gd2 { fill: var(--gc2, var(--gc)); }
.lightbox button .gi { width: 20px; height: 20px; vertical-align: middle; }
