/* AMIX GAMES — UPDATES（全ゲームの改訂履歴）
   地の色・本文の書体はトップ（../css/style.css）に合わせ、見出し・日付・札はドット（Press Start 2P・DotGothic16）。
   トップの CSS は読まない（ヘッダーの作りかえ中でも崩れないように、このページ専用）。
   ドットの絵は scene.js が canvas に描く。 */

:root {
  --bg: #0b0b0e;
  --bg2: #15151c;
  --ink: #f4f1ea;
  --dim: rgba(244, 241, 234, 0.64);
  --mute: rgba(244, 241, 234, 0.38);
  --line: rgba(244, 241, 234, 0.14);
  --accent: #ff5a1f;
  --new: #ff5a1f;
  --upd: #2fd6e6;
  --helm: #ffd23a;
  --dark: #0b0b0e;
  --f-px: "Press Start 2P", "DotGothic16", monospace;
  --f-dot: "DotGothic16", "Noto Sans JP", sans-serif;
  --f-mono: "Space Mono", "Noto Sans JP", ui-monospace, monospace;
  --f-body: "Noto Sans JP", system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --hazard: repeating-linear-gradient(-45deg, var(--helm) 0 8px, var(--dark) 8px 16px);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--helm); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.amxg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- ヘッダー ---------- */
.up-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.up-brand { display: inline-flex; text-decoration: none; color: var(--ink); }
.up-brand svg { display: block; height: 14px; width: auto; fill: currentColor; }

/* ---------- 見出し ---------- */
.up-hero { padding: clamp(24px, 6vh, 64px) var(--pad) clamp(18px, 3vh, 28px); }
.up-eyebrow { font-family: var(--f-px); font-size: 10px; letter-spacing: 0.12em; color: var(--helm); margin-bottom: 18px; }
.up-eyebrow i { font-style: normal; display: inline-block; width: 24px; height: 10px; margin-right: 10px; vertical-align: -1px; background: var(--hazard); }
.up-title { display: flex; flex-direction: column; gap: 16px; }
.up-title-en {
  font-family: var(--f-px);
  font-weight: 400;
  font-size: clamp(34px, 7.4vw, 104px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0.06em 0.06em 0 var(--accent);
}
.up-title-ja { font-family: var(--f-dot); font-weight: 400; font-size: clamp(18px, 2vw, 24px); letter-spacing: 0.08em; line-height: 1.5; }
.up-lede { margin-top: 16px; font-size: 13.5px; color: var(--dim); max-width: 46em; }

/* ---------- 工事現場（canvas） ---------- */
.up-site {
  position: relative;
  height: clamp(230px, 30vw, 440px);
  overflow: hidden;
  background: #1b1a33;
  border-top: 4px solid var(--dark);
}
.up-site::after {                 /* 下のしま模様のテープ */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: var(--hazard);
}
.px-scene { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- 絞り込み（スクロールしても上に残る） ---------- */
.up-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px var(--pad);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.up-kinds { display: flex; flex-wrap: wrap; gap: 10px; }
.up-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-px);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 9px 11px 8px;
  border: 2px solid var(--c, var(--ink));
  background: none;
  color: var(--c, var(--ink));
  cursor: pointer;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--c, var(--ink)) 40%, transparent);
  transition: transform 0.12s steps(2), box-shadow 0.12s steps(2), background 0.12s, color 0.12s;
}
.up-kind small { font-family: var(--f-dot); font-size: 12px; line-height: 1; letter-spacing: 0.02em; margin-top: -1px; }  /* 英字（Press Start 2P）と中心をそろえる */
.up-kind:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 color-mix(in srgb, var(--c, var(--ink)) 40%, transparent); }
/* 選ばれているときも影を少し残して立体的に（押しこまれて平らにはしない） */
.up-kind.is-on { background: var(--c, var(--ink)); color: var(--dark); transform: translate(1px, 1px); box-shadow: 2px 2px 0 color-mix(in srgb, var(--c, var(--ink)) 45%, transparent); }
.up-kind.is-on:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 color-mix(in srgb, var(--c, var(--ink)) 45%, transparent); }
.up-kind[data-kind="all"] { --c: var(--helm); }
.up-kind[data-kind="release"] { --c: var(--new); }
.up-kind[data-kind="update"] { --c: var(--upd); }
.up-game { position: relative; display: inline-flex; align-items: center; }
.up-game select {
  appearance: none;
  -webkit-appearance: none;
  max-width: min(78vw, 360px);
  font-family: var(--f-dot);
  font-size: 14px;
  padding: 6px 38px 6px 14px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--bg2);
  cursor: pointer;
  text-overflow: ellipsis;
}
.up-game select:hover { border-color: rgba(244, 241, 234, 0.45); }
.up-game.is-on select { border-color: var(--helm); color: var(--helm); }
.up-game::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0; height: 0;
  margin-top: -3px;
  border: 5px solid transparent;
  border-top: 6px solid var(--dim);
  border-bottom: 0;
  pointer-events: none;
}
.up-count { margin-left: auto; font-family: var(--f-px); font-size: 9px; letter-spacing: 0.06em; color: var(--mute); white-space: nowrap; }
.up-count b { color: var(--helm); font-weight: 400; }
.up-clear { font-family: var(--f-px); font-size: 8px; letter-spacing: 0.06em; color: var(--dim); background: none; border: 0; border-bottom: 2px solid var(--line); padding: 3px 0; cursor: pointer; }
.up-clear:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- タイムライン ---------- */
.up-main { padding: 0 var(--pad) 24px; }
.mon {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 56px);
  border-bottom: 2px solid var(--line);
}
.mon-h { padding: 34px 0 24px; font-weight: 400; }
.mon-h-in { position: sticky; top: 88px; display: flex; flex-direction: column; }
.mon-m { font-family: var(--f-px); font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--ink); text-shadow: 4px 4px 0 var(--accent); }
.mon-m small { font-size: 0.32em; margin-left: 4px; text-shadow: none; color: var(--dim); }
.mon-y { font-family: var(--f-px); font-size: 10px; letter-spacing: 0.1em; color: var(--dim); margin-top: 16px; }
.mon-n { font-family: var(--f-dot); font-size: 13px; color: var(--mute); margin-top: 6px; }
.mon-h-in::after { content: ""; display: block; width: 96px; height: 8px; margin-top: 14px; background: var(--hazard); }

.evs { list-style: none; position: relative; padding: 26px 0 26px 30px; }
.evs::before {                    /* 点線の縦の線 */
  content: "";
  position: absolute;
  left: 5px; top: 0; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 12px);
}
.ev { position: relative; padding: 14px 0; }
.ev::before {                     /* 四角いブロックの点 */
  content: "";
  position: absolute;
  left: -30px;
  top: 24px;
  width: 12px;
  height: 12px;
  background: var(--upd);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.35), inset 3px 3px 0 rgba(255, 255, 255, 0.35);
}
.ev[data-kind="release"]::before { background: var(--new); width: 14px; height: 14px; left: -31px; top: 23px; }
.ev[data-game="all"]::before { background: var(--helm); }
.ev-in {
  display: grid;
  grid-template-columns: 74px 148px minmax(0, 1fr);
  gap: 0 22px;
  align-items: start;
}
.ev-date { font-family: var(--f-px); font-size: 11px; letter-spacing: 0.04em; color: var(--ink); padding-top: 18px; white-space: nowrap; }
.ev-img {
  display: block;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--bg2);
  aspect-ratio: 20 / 13;
  box-shadow: 4px 4px 0 var(--c, var(--upd));
  transition: transform 0.12s steps(2), box-shadow 0.12s steps(2);
}
.ev[data-kind="release"] .ev-img { --c: var(--new); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-img:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--c, var(--upd)); }
.ev-img--all { display: flex; align-items: center; justify-content: center; background: var(--hazard); --c: var(--helm); }
.ev-img--all span { display: flex; align-items: center; justify-content: center; width: 78%; height: 56%; background: var(--dark); border: 2px solid var(--helm); }
.ev-img--all svg { width: 82%; height: auto; fill: var(--ink); }
.ev-body { min-width: 0; padding-top: 10px; }
.ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ev-tag {
  font-family: var(--f-px);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 5px 6px 4px;
  border: 2px solid var(--upd);
  color: var(--upd);
  white-space: nowrap;
}
.ev[data-kind="release"] .ev-tag { border-color: var(--new); background: var(--new); color: var(--dark); }
.ev[data-game="all"] .ev-tag { border-color: var(--helm); color: var(--helm); }
.ev-name {
  font-family: var(--f-dot);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a.ev-name:hover { color: var(--helm); }
.ev-name i { font-style: normal; font-family: var(--f-px); font-size: 0.5em; margin-left: 8px; color: var(--mute); vertical-align: 2px; }
a.ev-name:hover i { color: var(--helm); }
.ev-text { margin-top: 4px; font-size: 13.5px; line-height: 1.8; color: var(--dim); max-width: 46em; }
.ev-games { margin-top: 6px; font-size: 12px; color: var(--mute); }
.ev-games summary { cursor: pointer; font-family: var(--f-dot); font-size: 13px; color: var(--dim); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.ev-games summary::-webkit-details-marker { display: none; }
.ev-games summary::before { content: "+"; font-family: var(--f-px); font-size: 9px; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); }
.ev-games[open] summary::before { content: "-"; }
.ev-games summary:hover { color: var(--ink); }
.ev-games ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; max-width: 46em; }
.ev-games a { color: var(--dim); text-decoration: none; border-bottom: 1px dotted var(--mute); }
.ev-games a:hover { color: var(--ink); }

/* 続き（LOAD MORE）：タイムラインの点線の続きに、改訂の文と同じ列で置く */
.up-more { position: relative; margin-left: calc(170px + clamp(24px, 4vw, 56px)); padding: 30px 0 8px 30px; }
.up-more::before { content: ""; position: absolute; left: 5px; top: 0; height: 58px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 12px); }
.up-more::after { content: ""; position: absolute; left: 0; top: 52px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--helm); }
.up-more-btn {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 18px 13px;
  font: inherit;
  color: var(--ink);
  background: var(--bg2);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--helm);
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s steps(2), box-shadow 0.12s steps(2);
}
.up-more-btn b { font-family: var(--f-px); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; line-height: 1; }
.up-more-btn small { font-family: var(--f-dot); font-size: 14px; line-height: 1; color: var(--dim); }
.up-more-btn i { font-style: normal; font-size: 10px; color: var(--helm); animation: more 0.9s steps(2) infinite; }
@keyframes more { 50% { transform: translateY(3px); } }
.up-more-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--helm); }
.up-more-btn:active { transform: translate(4px, 4px); box-shadow: none; }

.up-empty { padding: 72px 0; text-align: center; color: var(--dim); font-family: var(--f-dot); font-size: 15px; }
.up-note {            /* 改訂の文と同じ列（月の欄の幅＋すき間＋点の分）にそろえる */
  position: relative;
  margin: 28px 0 0 calc(170px + clamp(24px, 4vw, 56px) + 30px);
  padding-left: 26px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--mute);
  max-width: 52em;
}
.up-note::before {      /* ドットの i 印 */
  content: "i";
  position: absolute;
  left: 0; top: 2px;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-px); font-size: 8px; line-height: 1;
  color: var(--dark);
  background: var(--mute);
}

/* ---------- 終わりの休憩所 ---------- */
.up-rest { position: relative; height: clamp(150px, 15vw, 210px); overflow: hidden; margin: 40px calc(-1 * var(--pad)) 0; background: #1b1a33; }  /* 左右の余白を打ち消して端まで */
.up-rest::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--hazard); }

/* ---------- つくっている人から ---------- */
.msg { padding: clamp(56px, 9vh, 104px) var(--pad); border-bottom: 2px solid var(--line); }
.msg-h { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 4vh, 44px); font-weight: 400; }
.msg-h-en { font-family: var(--f-px); font-size: clamp(22px, 3vw, 36px); line-height: 1; text-shadow: 3px 3px 0 var(--accent); }
.msg-h-ja { font-family: var(--f-dot); font-size: 16px; letter-spacing: 0.06em; color: var(--dim); }
.msg-in { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px clamp(28px, 4vw, 56px); align-items: start; max-width: 1080px; }
.msg-who { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.msg-photo {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
  background: #222;
}
.msg-photo img { position: absolute; width: 150%; max-width: none; height: auto; left: -14%; top: -12%; }
.msg-who.is-talk .msg-photo { animation: bob 0.5s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.msg-name { text-align: center; line-height: 1.5; }
.msg-name b { display: block; font-family: var(--f-dot); font-weight: 400; font-size: 17px; letter-spacing: 0.06em; }
.msg-name small { display: block; font-family: var(--f-px); font-size: 8px; letter-spacing: 0.08em; color: var(--helm); margin-top: 6px; }

.bubs-wrap { position: relative; }
.px-bubs { position: absolute; left: -24px; top: -64px; z-index: 2; pointer-events: none; }
.bubs { list-style: none; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.bub {
  position: relative;
  max-width: 40em;
  padding: 16px 20px;
  font-family: var(--f-dot);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--dark);
  background: var(--ink);
  /* ドットの角：塗りを上下左右に4pxのばし、その外に4pxの黒、さらに外にゲームの色の影 */
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
    0 -8px 0 0 var(--dark), 0 8px 0 0 var(--dark), -8px 0 0 0 var(--dark), 8px 0 0 0 var(--dark),
    -4px -4px 0 0 var(--dark), 4px -4px 0 0 var(--dark), -4px 4px 0 0 var(--dark), 4px 4px 0 0 var(--dark),
    8px 12px 0 0 var(--c, var(--accent)), 12px 8px 0 0 var(--c, var(--accent)), 4px 12px 0 0 var(--c, var(--accent)), 12px 4px 0 0 var(--c, var(--accent));
  margin: 8px 16px 12px 12px;
}
.bub:nth-child(2) { --c: var(--upd); }
.bub:nth-child(3) { --c: #3ddc8a; }
.bub:nth-child(4) { --c: #a77bff; }
.bub:nth-child(5) { --c: var(--helm); }
.bub .nw { white-space: nowrap; }
.bub mark { background: none; color: inherit; box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); }
.bub--tail::before {              /* しっぽ（左の写真へ）。4pxのドットを6×5で */
  content: "";
  position: absolute;
  left: -24px;
  top: 14px;
  width: 24px;
  height: 20px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 5' shape-rendering='crispEdges'><rect x='5' y='0' width='1' height='1' fill='%23f4f1ea'/><rect x='2' y='1' width='1' height='1' fill='%23f4f1ea'/><rect x='3' y='1' width='1' height='1' fill='%23f4f1ea'/><rect x='4' y='1' width='1' height='1' fill='%23f4f1ea'/><rect x='5' y='1' width='1' height='1' fill='%23f4f1ea'/><rect x='1' y='2' width='1' height='1' fill='%23f4f1ea'/><rect x='2' y='2' width='1' height='1' fill='%23f4f1ea'/><rect x='3' y='2' width='1' height='1' fill='%23f4f1ea'/><rect x='4' y='2' width='1' height='1' fill='%23f4f1ea'/><rect x='5' y='2' width='1' height='1' fill='%23f4f1ea'/><rect x='3' y='3' width='1' height='1' fill='%23f4f1ea'/><rect x='4' y='3' width='1' height='1' fill='%23f4f1ea'/><rect x='5' y='3' width='1' height='1' fill='%23f4f1ea'/><rect x='5' y='4' width='1' height='1' fill='%23f4f1ea'/></svg>") 0 0 / 100% 100% no-repeat;
}
.bub--sigh { font-size: clamp(14px, 1.1vw, 15px); }
.bub--sigh .sweat { position: relative; display: inline-block; width: 14px; height: 18px; margin-left: 6px; vertical-align: -3px; }
.bub--sigh .sweat::before, .bub--sigh .sweat::after {   /* ドットの汗が2粒、たらっと垂れてはまた出る */
  content: "";
  position: absolute;
  left: 2px; top: 0;
  width: 8px; height: 12px;
  background: var(--upd);
  clip-path: polygon(37.5% 0, 62.5% 0, 62.5% 25%, 87.5% 25%, 87.5% 50%, 100% 50%, 100% 83%, 87.5% 83%, 87.5% 100%, 12.5% 100%, 12.5% 83%, 0 83%, 0 50%, 12.5% 50%, 12.5% 25%, 37.5% 25%);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7);
  animation: sweat 1.6s steps(8) infinite;
}
.bub--sigh .sweat::after { left: 8px; top: 2px; width: 6px; height: 9px; animation-delay: -0.8s; }
@keyframes sweat {
  0% { transform: translateY(-4px); opacity: 0; }
  15% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(7px); opacity: 1; }
  100% { transform: translateY(11px); opacity: 0; }
}
.js-on .bub { opacity: 0; transform: translateY(10px); }
.js-on .bub.is-in { opacity: 1; transform: none; transition: opacity 0.2s steps(3), transform 0.24s steps(3); }

.cheer { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.cheer-h { font-family: var(--f-px); font-size: 10px; letter-spacing: 0.08em; color: var(--helm); }
.share { display: flex; flex-wrap: wrap; gap: 12px; }
.share a, .share button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-dot);
  font-size: 15px;
  line-height: 1;
  padding: 12px 16px;
  color: var(--dark);
  background: var(--c, var(--ink));
  border: 2px solid var(--dark);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s steps(2), box-shadow 0.12s steps(2);
}
.share a:hover, .share button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.share a:active, .share button:active { transform: translate(4px, 4px); box-shadow: none; }
.share svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.share-x { --c: var(--ink); }
.share-line { --c: #3ddc8a; }
.share-copy { --c: var(--helm); }
.share-more { --c: var(--upd); }
.share-done { font-family: var(--f-dot); font-size: 14px; color: var(--helm); min-height: 1.5em; }
.cheer-more { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; }
.cheer-more a { color: var(--dim); text-underline-offset: 4px; }
.cheer-more a:hover { color: var(--ink); }

/* ---------- 共通部品（../css/menu.css）の色と字をドット調に ---------- */
.up-brand { align-items: center; gap: 12px; }
.up-brand-sub { font-family: var(--f-px); font-size: 8px; letter-spacing: 0.08em; color: var(--helm); padding-top: 2px; }
.up-head .amx-menu-btn {
  font-family: var(--f-px);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 9px 12px 8px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--accent);
  transition: transform 0.12s steps(2), box-shadow 0.12s steps(2);
}
.up-head .amx-menu-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }
.up-head .amx-menu-btn .amx-burger::before, .up-head .amx-menu-btn .amx-burger::after { height: 2px; }
#amxMenu {
  --mn-bg: #0f0f16;
  --mn-ink: var(--ink);
  --mn-dim: rgba(244, 241, 234, 0.6);
  --mn-line: rgba(244, 241, 234, 0.14);
  --mn-accent: var(--helm);
  --mn-f-big: "Press Start 2P", "DotGothic16", monospace;
  --mn-f-k: "Press Start 2P", "DotGothic16", monospace;
}
#amxMenu .amx-menu-panel { border-left: 4px solid var(--dark); box-shadow: -8px 0 0 var(--helm), -30px 0 80px rgba(0, 0, 0, 0.45); }
#amxMenu .amx-menu-top { border-bottom: 0; padding-bottom: 18px; background: linear-gradient(var(--mn-bg), var(--mn-bg)) top / 100% calc(100% - 8px) no-repeat, var(--hazard) bottom / 100% 8px no-repeat; }
#amxMenu .amx-menu-k, #amxMenu .amx-menu-h { font-size: 9px; letter-spacing: 0.1em; }
#amxMenu .amx-menu-h { color: var(--helm); }
#amxMenu .amx-menu-x { border-radius: 0; border-width: 2px; font-size: 9px; letter-spacing: 0.06em; }
#amxMenu .amx-menu-x i { border-radius: 0; font-family: var(--f-px); font-size: 10px; }
#amxMenu .amx-menu-list a { border-bottom: 2px dotted var(--mn-line); padding: 13px 0; }
#amxMenu .amx-menu-list b { font-size: clamp(13px, 1.5vw, 16px); line-height: 1.4; letter-spacing: 0.04em; }
#amxMenu .amx-menu-list.is-page b { font-size: 12px; }
#amxMenu .amx-menu-list small { font-family: var(--f-dot); font-size: 13px; }
#amxMenu .amx-menu-list a[aria-current="page"] b::after { border-radius: 0; width: 8px; height: 8px; vertical-align: 0.15em; }
#amxMenu .amx-menu-note { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; }
.amx-foot {
  --ft-bg: var(--bg);
  --ft-ink: var(--ink);
  --ft-dim: rgba(244, 241, 234, 0.6);
  --ft-mute: rgba(244, 241, 234, 0.4);
  --ft-line: rgba(244, 241, 234, 0.14);
  --ft-accent: var(--helm);
}
.amx-foot .amx-foot-sub { font-family: var(--f-px); font-size: 10px; letter-spacing: 0.1em; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 900px) {
  .mon { grid-template-columns: 1fr; }
  .mon-h { padding: 30px 0 0; }
  .mon-h-in { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .mon-h-in::after { flex-basis: 100%; margin-top: 4px; }
  .mon-m { font-size: 40px; }
  .mon-y, .mon-n { margin-top: 0; }
  .evs { padding-top: 14px; }
  .up-note { margin-left: 0; }
  .up-more { margin-left: 0; padding-left: 24px; }
  .up-more::before { left: 4px; }
  .up-more::after { left: -1px; }
  .msg-in { grid-template-columns: 1fr; }
  .msg-who { position: static; flex-direction: row; align-items: center; justify-content: flex-start; }
  .msg-photo { width: 112px; height: 112px; box-shadow: 4px 4px 0 var(--accent); }
  .msg-name { text-align: left; }
  .bub--tail::before { left: 18px; top: -22px; transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .up-bar { gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
  .up-count { margin-left: 0; width: 100%; order: 3; }
  .up-game select { max-width: calc(100vw - 2 * var(--pad)); }
  .evs { padding-left: 24px; }
  .evs::before { left: 4px; }
  .ev::before { left: -24px; top: 6px; width: 10px; height: 10px; }
  .ev[data-kind="release"]::before { left: -25px; top: 5px; width: 12px; height: 12px; }
  .ev-in { grid-template-columns: 104px minmax(0, 1fr); gap: 8px 14px; }
  .ev-date { grid-column: 1 / -1; padding-top: 0; font-size: 10px; }
  .ev-img { box-shadow: 3px 3px 0 var(--c, var(--upd)); }
  .ev-body { padding-top: 0; }
  .ev-name { font-size: 17px; }
  .ev-name i { display: none; }
  .ev-text { font-size: 13px; line-height: 1.75; }
  .bub { padding: 12px 14px; }
  .share a, .share button { font-size: 14px; padding: 11px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .msg-who.is-talk .msg-photo, .bub--sigh .sweat::before, .bub--sigh .sweat::after, .up-more-btn i { animation: none; }
  .js-on .bub { opacity: 1; transform: none; }
  .up-head .amx-menu-btn, .up-kind, .ev-img, .share a, .share button { transition: none; }
}

/* ---------- 読み込み演出（ul.js・2026-11-13）：暗い地に、工事の小物をドットで組み上げる。タップは無く、読み込みが終わったら自動で開く ---------- */
.ul { display: none; }
html.ul-on .ul { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: var(--bg); transition: opacity 0.45s ease, visibility 0.45s; }
html.ul-on .ul.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.ul-in { display: flex; flex-direction: column; align-items: center; }
.ul-logo { display: flex; align-items: center; gap: 10px; line-height: 0; opacity: 0.8; }
.ul-logo svg { width: clamp(92px, 8.5vw, 116px); height: auto; fill: var(--ink); }
.ul-logo b { font-family: var(--f-px); font-weight: 400; font-size: 8px; line-height: 1; letter-spacing: 0.08em; color: var(--helm); padding-top: 1px; }
.ul-stage { position: relative; width: clamp(128px, 12vw, 168px); aspect-ratio: 1; margin: clamp(20px, 2.8vw, 30px) auto 0; }
.ul-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.ul-line { width: clamp(120px, 14vw, 180px); height: 4px; margin: clamp(18px, 2.4vw, 26px) auto 12px; background: var(--line); overflow: hidden; }
.ul-line i { display: block; height: 100%; background: var(--hazard); background-size: 22px 22px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.3s ease; }
.ul-hint { margin: 0; display: flex; gap: 12px; justify-content: center; font-family: var(--f-px); font-size: 8px; letter-spacing: 0.1em; color: var(--mute); }
.ul-hint b { font-weight: 400; color: var(--dim); font-variant-numeric: tabular-nums; }
.ul.is-alive .ul-line i { background: var(--helm); }
