/*
 * RAFU official site
 * 方針: 配信・動画・ゲームソフトは「勢いのある演出」（集中線、斜めの帯、テープ、ステッカー）。
 * Minecraftの欄だけは夕焼けのドット絵と木のパネルのゲームUIに切り替える。
 * 中身は content.js、演出は main.js。ここは見た目だけ。
 */
:root {
  /* 配信・ゲームの欄 */
  --ink: #0c0c10;
  --ink-2: #15151b;
  --ink-3: #1f1f27;
  --line: #2c2c37;
  --line-2: #3d3d4b;
  --text: #f7f3ea;
  --muted: #b3aebb;
  --dim: #7a7682;
  --tomato: #e5121b;
  --tomato-hi: #ff4636;
  --tomato-deep: #7d0910;
  --yellow: #ffe03a;
  --leaf: #2bd45b;
  --paper: #f5f1e8;
  --paper-2: #e7e1d3;
  --paper-ink: #17161b;
  --paper-muted: #5f5b67;
  --discord: #5865f2;

  /* Minecraftの欄（木のパネル） */
  --wood: #5e463e;
  --wood-hi: #7d6156;
  --wood-lo: #46322c;
  --wood-line: #2a1719;
  --wood-cell: #a6978a;
  --cream: #f8edd3;
  --cream-hi: #fffaee;
  --cream-2: #e6d4ad;
  --cream-ink: #3a2522;
  --cream-muted: #7a6158;
  --mc-leaf: #5fc14a;
  --mc-leaf-hi: #8ee070;
  --mc-leaf-lo: #33801f;
  --gold: #ffc93c;
  --mc-muted: #cdb9c8;

  /* フォント（変えるときは index.html・downloads.html の Google Fonts の読み込みも合わせて変える）
     --f-logo … 見出し・ロゴの太い文字 / --fw-logo … その太さ（太さが1つしかないフォントは 400）
     --f-body … 本文・ボタン / --f-px … Minecraftの欄などのドット文字 */
  --f-logo: "Noto Sans JP", "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --fw-logo: 900;
  --f-px: "DotGothic16", "MS Gothic", monospace;
  --f-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.77, 0, .18, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --hdr: 76px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
/* 日本語は文節の途中で折り返さない（入りきらないときだけ途中で折る）。見出しは行の長さをそろえ、文は最後の行が短くなりすぎないように */
body { word-break: auto-phrase; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.pxbtn:focus-visible, .icon-link:focus-visible, .gbar-cell:focus-visible, .tv-screen:focus-visible, .ch-item:focus-visible { outline-offset: -7px; }
/* カードは、浮く中の面（-in）に枠を出す */
.pick:focus-visible { outline: none; }
.pick:focus-visible .pick-in { outline: 3px solid var(--yellow); outline-offset: -7px; }
::selection { background: var(--tomato); color: #fff; }
html { scrollbar-color: var(--tomato) #000; }
html[data-zone="mc"] { scrollbar-color: var(--wood-cell) var(--wood-line); }
html[data-zone="mc"] ::selection { background: var(--mc-leaf-lo); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(var(--gut), clamp(16px, 5vw, 80px));
  padding-right: max(var(--gut-r), clamp(16px, 5vw, 80px));
}
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 8px 14px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.brand { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.brand svg { width: 100%; height: 100%; fill: currentColor; }

/* ドット絵アイコン（main.js が中身のSVGを入れる） */
.px { display: inline-block; width: 24px; height: 24px; flex: none; line-height: 0; }
.px svg { width: 100%; height: 100%; display: block; overflow: visible; }
.px .t2 { opacity: .62; }
.px .t3 { opacity: .36; }

/* ---------- buttons（配信・ゲームの欄: 斜めのボタン） ---------- */
/* 見た目は中の .btn-face。押すと沈むのは .btn-face だけで、.btn（当たり判定）は動かさない
   （沈んだぶん判定がずれて、ふちを押したときにクリックにならないのを防ぐ。下は沈んだぶんだけ広げてある） */
.btn {
  --bg: var(--tomato); --fg: #fff; --hv: var(--ink); --hfg: #fff;
  position: relative; display: inline-flex; min-height: 56px; padding: 0;
  background: none; color: var(--fg); text-decoration: none; cursor: pointer; border: 0;
  font-family: var(--f-body); font-weight: 900; font-size: 16px; letter-spacing: .04em; line-height: 1.2;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14.75px) calc(100% + 3px), -.75px calc(100% + 3px));
  transition: color .3s ease;
}
.btn-face {
  position: relative; isolation: isolate; overflow: hidden; flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 28px; background: var(--bg);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform .3s var(--ease-out);
}
.btn-face::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(-45deg, var(--hv) 0 10px, color-mix(in srgb, var(--hv) 82%, var(--bg)) 10px 20px);
  transform: translateX(-102%) skewX(-12deg); transform-origin: left; transition: transform .45s var(--ease-snap);
}
.btn:hover .btn-face::before, .btn:focus-visible .btn-face::before { transform: translateX(0) skewX(0); }
.btn:hover, .btn:focus-visible { color: var(--hfg); }
.btn:active .btn-face { transform: translateY(2px) scale(.98); }
.btn .brand { width: 22px; height: 22px; }
.btn svg.arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; transition: transform .35s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-ink { --bg: var(--ink); --fg: #fff; --hv: var(--yellow); --hfg: var(--ink); }
.btn-yellow { --bg: var(--yellow); --fg: var(--ink); --hv: var(--ink); --hfg: var(--yellow); }
.btn-red { --bg: var(--tomato); --fg: #fff; --hv: var(--ink); }
.btn-white { --bg: #fff; --fg: var(--ink); --hv: var(--tomato); --hfg: #fff; }
.btn-mc { --bg: #3c8527; --fg: #fff; --hv: var(--ink); --hfg: #6cc349; }   /* Minecraftサーバー（サーバー欄の緑） */
.btn .px { width: 22px; height: 22px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 150; display: none; place-items: center; cursor: pointer; }
.js:not(.no-loader) .loader { display: grid; animation: ld-failsafe 0s 7s forwards; }
@keyframes ld-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.ld-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); transition: transform .75s var(--ease-snap); }
.ld-top { top: 0; }
.ld-bot { bottom: 0; }
.ld-half::after { content: ""; position: absolute; inset: 0; opacity: .5; background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px); }
.ld-flash { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1px; background: #fff; box-shadow: 0 0 24px 4px rgba(255,255,255,.7); transform: scaleX(0); opacity: 0; }
.ld-core { position: relative; display: grid; justify-items: center; gap: 12px; transition: opacity .25s ease, transform .4s var(--ease-snap); }
.ld-mark { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.ld-burst {
  position: absolute; inset: -40%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(229,18,27,.55) 0 6deg, transparent 6deg 14deg);
  -webkit-mask: radial-gradient(closest-side, transparent 30%, #000 34%, transparent 70%); mask: radial-gradient(closest-side, transparent 30%, #000 34%, transparent 70%);
  animation: spin 6s linear infinite;
}
.ld-logo {
  width: 104px; height: 104px; background: url(../img/logo-outline-flat-256.webp) center / contain no-repeat;
  animation: ld-drop .9s var(--ease-back) both, ld-bounce 1.2s .9s ease-in-out infinite;
}
@keyframes ld-drop { 0% { transform: translateY(-60px) scale(.6, 1.3); opacity: 0; } 60% { transform: translateY(6px) scale(1.15, .85); opacity: 1; } 100% { transform: none; } }
@keyframes ld-bounce { 0%, 100% { transform: translateY(0) scale(1); } 45%, 55% { transform: translateY(-10px) scale(.96, 1.05); } 90% { transform: translateY(0) scale(1.06, .94); } }
.ld-msg { margin: 0; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 22px; letter-spacing: .12em; transform: skewX(-10deg); }
.ld-bar { width: 240px; height: 10px; background: var(--ink-3); overflow: hidden; transform: skewX(-20deg); }
.ld-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--ink) 8px 16px); }
.ld-num { margin: 0; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 14px; color: var(--dim); }
.ld-num b { font-weight: 400; font-size: 30px; color: var(--text); font-variant-numeric: tabular-nums; }
.loader.is-done { pointer-events: none; }
.loader.is-done .ld-core { opacity: 0; transform: scale(1.08); }
.loader.is-done .ld-top { transform: translateY(-101%); transition-delay: .18s; }
.loader.is-done .ld-bot { transform: translateY(101%); transition-delay: .18s; }
.loader.is-done .ld-flash { animation: ld-flash .55s ease-out forwards; }
@keyframes ld-flash { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1) scaleY(30); opacity: 0; } }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) clamp(16px, 2.4vw, 36px) 0 clamp(124px, 12vw, 172px);
  display: flex; align-items: center; gap: 12px;
  background: #000; color: #fff;
  transition: transform .45s var(--ease-out);
}
.hdr.is-hidden { transform: translateY(-112%); }
.menu-open .hdr { transform: none; }
.hdr-logo {
  position: absolute; left: clamp(10px, 2.4vw, 40px); top: calc(env(safe-area-inset-top, 0px) + 4px); z-index: 2;
  width: clamp(96px, 9vw, 122px); aspect-ratio: 1; display: block;
  transform: rotate(-8deg); transition: transform .4s var(--ease-back), width .35s var(--ease-out);
  filter: drop-shadow(5px 6px 0 rgba(0,0,0,.85));
}
.hdr-logo img { width: 100%; height: 100%; object-fit: contain; }
.hdr-logo:hover { transform: rotate(4deg) scale(1.06); }
.hdr.is-scrolled .hdr-logo { width: 66px; }
.hdr-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hdr-nav > a, .hdr-more-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: .04em; color: #d9d5de; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.hdr-nav > a:hover, .hdr-more-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.hdr-nav > a.is-active, .hdr-more-btn.is-active { background: #fff; color: #000; }
.hdr-more { position: relative; }
.hdr-more-btn i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform .25s ease; }
.hdr-more-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 230px; padding: 12px; background: #000; border: 2px solid #fff; border-radius: 16px;
  box-shadow: 8px 8px 0 var(--tomato); animation: drop .3s var(--ease-out);
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.more-head { margin: 0 6px 6px; font-size: 12px; font-weight: 800; color: var(--dim); letter-spacing: .1em; }
.more-list { display: grid; gap: 2px; }
.more-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 14px; color: #fff; }
.more-list a svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.more-list a .px { width: 20px; height: 20px; }
.more-list a small { margin-left: auto; color: var(--dim); font-weight: 700; font-size: 12px; }
.more-list a:hover { background: var(--brand, var(--tomato)); }
.more-list a[data-key="x"]:hover { color: #000; }
.more-list a:hover small { color: inherit; }
.hdr-tools { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.pill-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--yellow); color: #000; text-decoration: none; font-weight: 900; font-size: 15px; letter-spacing: .03em; white-space: nowrap;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.14); transition: background-color .2s ease, transform .3s var(--ease-back);
}
.pill-cta:hover { background: #fff; transform: translateY(-2px) rotate(-2deg); }
.round-btn {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: #fff; border: 3px solid #fff; transition: background-color .2s ease, color .2s ease;
}
.round-btn:hover { background: #fff; color: #000; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 4px; background: currentColor; }
.eq i:nth-child(1) { height: 7px; }
.eq i:nth-child(2) { height: 13px; }
.eq i:nth-child(3) { height: 9px; }
.eq i:nth-child(4) { height: 15px; }
[aria-pressed="false"] .eq { opacity: .55; }
[aria-pressed="true"] .eq i { animation: eq .8s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s !important; }
.eq i:nth-child(3) { animation-delay: -.55s !important; }
.eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { from { height: 4px; } to { height: 16px; } }
.round-btn[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); }
.menu-btn { display: none; }
.mb-lines { display: grid; gap: 4px; width: 18px; }
.mb-lines i { display: block; height: 3px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s ease; }
.menu-btn[aria-expanded="true"] { background: var(--yellow); border-color: var(--yellow); color: #000; }
.menu-btn[aria-expanded="true"] .mb-lines i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-lines i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .mb-lines i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hdr-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.hdr-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--tomato), var(--yellow)); transform-origin: left; transform: scaleX(var(--progress, 0)); }
[data-zone="mc"] .hdr-progress i { background: repeating-linear-gradient(90deg, var(--mc-leaf) 0 8px, var(--mc-leaf-hi) 8px 16px); }

/* ---------- menu overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 85; visibility: hidden; transition: visibility 0s .7s; }
.menu.is-open { visibility: visible; transition: none; }
.menu-bg { position: absolute; inset: 0; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transition: clip-path .6s var(--ease-snap); }
.menu-bg1 { background: var(--tomato); }
.menu-bg2 { background: radial-gradient(circle, rgba(255,255,255,.06) 1.3px, transparent 1.6px) 0 0 / 16px 16px, var(--ink); transition-delay: .07s; }
.menu.is-open .menu-bg1 { clip-path: polygon(11% 0, 100% 0, 100% 100%, -3% 100%); }
.menu.is-open .menu-bg2 { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.menu:not(.is-open) .menu-bg1 { transition-delay: .1s; }
.menu:not(.is-open) .menu-bg2 { transition-delay: 0s; }
.menu-inner {
  position: relative; height: 100%; overflow-y: auto;
  padding: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 40px) max(var(--gut-r), 6vw) 32px max(var(--gut), 20vw);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-links li { opacity: 0; transform: translateX(60px); transition: opacity .4s ease, transform .6s var(--ease-out); }
.menu.is-open .menu-links li { opacity: 1; transform: none; transition-delay: calc(.22s + var(--i) * .05s); }
.menu-links a { display: grid; grid-template-columns: 40px auto 1fr; align-items: baseline; gap: 14px; text-decoration: none; padding: 2px 0; }
.ml-num { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 14px; color: var(--yellow); transform: skewX(-10deg); }
.ml-jp { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(30px, 4.6vw, 56px); line-height: 1.25; transition: transform .35s var(--ease-out), color .2s ease; }
.ml-en { font-size: 12px; font-weight: 900; letter-spacing: .2em; color: var(--dim); font-style: italic; }
.menu-links a[aria-current="page"] .ml-jp { color: var(--yellow); }
.menu-links a:hover .ml-jp, .menu-links a:focus-visible .ml-jp { transform: translateX(10px) skewX(-6deg); color: var(--yellow); }
.menu-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; opacity: 0; transition: opacity .4s ease; }
.menu.is-open .menu-foot { opacity: 1; transition-delay: .55s; }
.menu-sns { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-mascot { position: absolute; right: 4vw; bottom: 4vh; width: clamp(110px, 16vw, 210px); height: auto; transform: rotate(10deg); pointer-events: none; }
.menu.is-open .menu-mascot { animation: peek .8s .5s var(--ease-back) both; }
@keyframes peek { from { transform: translateY(60px) rotate(30deg); opacity: 0; } to { transform: rotate(10deg); opacity: 1; } }

/* ---------- 右端のツールバー（全ページ共通: 木のパネルとドット絵アイコン） ---------- */
.gbar {
  position: fixed; right: 0; top: 50%; z-index: 70; display: none; align-items: flex-start;
  transform: translateY(-50%); transition: transform .45s var(--ease-out);
}
.gbar-tab {
  width: 28px; height: 52px; margin-top: 22px; margin-right: -4px; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--wood); color: var(--cream); border: 4px solid var(--wood-line); border-right: 0;
}
.gbar-tab .px { width: 14px; height: 14px; transition: transform .3s ease; }
.gbar-panel {
  display: grid; justify-items: center; gap: 3px; padding: 8px; margin-right: 14px;
  background: var(--wood); border: 4px solid var(--wood-line); box-shadow: inset 4px 4px 0 var(--wood-hi), inset -4px -4px 0 var(--wood-lo);
}
.gbar-cell {
  position: relative; display: grid; place-items: center; width: 44px; height: 42px; padding: 0; border: 0; cursor: pointer;
  background: transparent; color: var(--cream); text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
.gbar-cell .px { width: 22px; height: 22px; transition: transform .25s var(--ease-back); }
.gbar-cell:hover { background: var(--wood-hi); }
.gbar-cell:hover .px { transform: scale(1.12); }
.gbar-cell.is-active { background: var(--wood-cell); color: var(--wood-line); box-shadow: inset 3px 3px 0 #c3b6a9, inset -3px -3px 0 #84756a; }
.gbar-cell[aria-pressed="true"] { color: var(--mc-leaf-hi); }
.gbar-nav { display: grid; gap: 3px; }
.gbar-sep { height: 4px; align-self: stretch; margin: 3px 2px; background: var(--wood-line); box-shadow: 0 2px 0 var(--wood-hi); }
.gbar-closed .gbar { transform: translate(calc(100% - 25px), -50%); }
.gbar-closed .gbar-tab .px { transform: scaleX(-1); }

/* ツールチップ（マイクラ風） */
.mc-tip {
  position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none;
  max-width: 280px; padding: 8px 12px 9px; display: grid; gap: 2px;
  background: rgba(22, 6, 30, .95); color: #fff; font-family: var(--f-px); font-size: 14px; line-height: 1.55;
  border: 2px solid #12021a; box-shadow: inset 0 0 0 2px #4a17a6, inset 0 0 0 4px rgba(22, 6, 30, .95);
  opacity: 0; transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(.94); transition: opacity .12s ease, transform .12s ease;
}
.mc-tip.is-show { opacity: 1; transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); }
.mc-tip b { font-weight: 400; color: var(--tip-c, #fff); text-shadow: 2px 2px 0 rgba(0,0,0,.45); }
.mc-tip .tip-cat { color: #9e9eff; font-size: 12px; }
.mc-tip .tip-sup { color: var(--mc-leaf-hi); font-size: 12.5px; }
.mc-tip .tip-lore { color: #b9a9c9; font-size: 12.5px; }
.mc-tip .tip-act { color: var(--gold); font-size: 12.5px; margin-top: 2px; }
.mc-tip .tip-up { color: #ff9d92; font-size: 12.5px; }

/* ---------- HOME（赤い集中線とステッカー） ---------- */
.kv {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(720px, 100svh);
  display: grid; align-items: center;
  padding-block: calc(var(--hdr) + 44px) calc(clamp(120px, 13vw, 170px) / 2 + 100px);
  background: radial-gradient(120% 95% at 72% 42%, #ff5236 0%, #e5121b 42%, #9c0a12 100%);
}
.kv-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.kv-burst { position: absolute; left: var(--sun-x, 70%); top: var(--sun-y, 48%); width: 0; height: 0; }
.kv-burst i {
  position: absolute; left: 0; top: 0; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 200, .2) 0deg 5deg, transparent 5deg 12deg);
  -webkit-mask: radial-gradient(closest-side, #000 6%, rgba(0,0,0,.6) 34%, transparent 70%); mask: radial-gradient(closest-side, #000 6%, rgba(0,0,0,.6) 34%, transparent 70%);
  animation: spin 100s linear infinite;
}
.kv-dots {
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(70, 0, 6, .5) 2px, transparent 2.4px) 0 0 / 14px 14px;
  -webkit-mask: radial-gradient(60% 55% at 0% 100%, #000 10%, transparent 70%), radial-gradient(40% 40% at 100% 0%, #000 10%, transparent 70%);
  mask: radial-gradient(60% 55% at 0% 100%, #000 10%, transparent 70%), radial-gradient(40% 40% at 100% 0%, #000 10%, transparent 70%);
}
.kv-streaks { position: absolute; inset: 0; pointer-events: none; }
.kv-streaks i {
  position: absolute; left: 0; top: var(--y); width: var(--w); height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85) 70%, #fff);
  transform: translateX(-110%); animation: streak 3.2s var(--d) cubic-bezier(.5, 0, .7, 1) infinite;
}
.kv-streaks i:nth-child(even) { height: 2px; }
@keyframes streak { 0% { transform: translateX(-110%); opacity: 0; } 8% { opacity: 1; } 45% { transform: translateX(420%); opacity: 0; } 100% { transform: translateX(420%); opacity: 0; } }
.kv-band {
  position: absolute; left: -6%; bottom: -2%; width: 64%; height: 78%; background: var(--ink);
  clip-path: polygon(0 20%, 100% 0, 84% 100%, 0 100%);
}
.kv-band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, rgba(255,255,255,.035) 0 2px, transparent 2px 18px); }
.kv-photo, .kv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kv.has-media .kv-burst, .kv.has-media .kv-dots { display: none; }
.kv.has-media .kv-band { opacity: .8; }

.kv-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 56px); }
.kv-copy { position: relative; z-index: 2; padding-top: 6vh; container-type: inline-size; }
.kv-logo { margin: 0; font-weight: 400; line-height: 1; }
.logo-word {
  position: relative; display: inline-block;
  font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(50px, 4.9vw, 74px); line-height: .92; letter-spacing: .01em;
  color: #fff; transform: skewX(-9deg);
  -webkit-text-stroke: .07em #000; paint-order: stroke fill;
  text-shadow: .05em .05em 0 #000, .08em .08em 0 #000, .11em .11em 0 var(--yellow);
}
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; text-shadow: none; -webkit-text-stroke: 0; }
.glitch::before { color: var(--leaf); animation: glitch-a 4.4s steps(1) infinite 2.4s; }
.glitch::after { color: var(--yellow); animation: glitch-b 4.4s steps(1) infinite 2.4s; }
@keyframes glitch-a {
  0%, 86%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  87% { opacity: .9; transform: translate(-6px, 2px); clip-path: inset(12% 0 64% 0); }
  89% { opacity: .9; transform: translate(5px, -2px); clip-path: inset(58% 0 18% 0); }
  91% { opacity: .9; transform: translate(-3px, 0); clip-path: inset(34% 0 44% 0); }
  93% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 86%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  87% { opacity: .9; transform: translate(6px, -1px); clip-path: inset(66% 0 8% 0); }
  89% { opacity: .9; transform: translate(-7px, 2px); clip-path: inset(6% 0 72% 0); }
  92% { opacity: .9; transform: translate(4px, 0); clip-path: inset(44% 0 30% 0); }
  94% { opacity: 0; }
}
.kv-logo:hover .glitch::before, .kv-logo:hover .glitch::after { animation-duration: .5s; animation-delay: 0s; }
/* キャッチコピー（いちばん大きいのは「全力でやる漢。」）
   --big-max … 「全力でやる漢。」が左の欄の幅に収まる上限（cqi = .kv-copy の幅の1%）。画面幅だけで決めると右が切れるため */
.kv-catch { --big-max: 13.3cqi; margin: 18px 0 18px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(22px, 2.5vw, 34px); line-height: 1.3; }
.kv-catch .line { display: block; overflow: hidden; padding: 0 .1em .12em 0; text-shadow: .08em .08em 0 #000; }
.kv-catch .line-big {
  margin: -.02em 0 0 -.1em; padding: .06em .3em .2em .12em; white-space: nowrap;
  font-size: min(clamp(52px, 5.9vw, 92px), var(--big-max)); line-height: 1.04; letter-spacing: .01em; text-shadow: none;
}
.kv-catch .line-big > span {
  display: inline-block; transform: skewX(-9deg); color: #fff;
  -webkit-text-stroke: .07em #000; paint-order: stroke fill;
  text-shadow: .05em .05em 0 #000, .08em .08em 0 #000, .11em .11em 0 var(--yellow);
}
.ch { display: inline-block; white-space: pre; }
/* やっていること（短い札を並べる） */
.kv-do { display: flex; flex-wrap: wrap; gap: 8px; max-width: 36em; margin: 0 0 26px; padding: 0; list-style: none; }
.kv-do li {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 6px 9px;
  background: rgba(0, 0, 0, .66); color: #fff; border: 2px solid rgba(255, 255, 255, .2);
  font-size: 13.5px; font-weight: 900; line-height: 1.3; letter-spacing: .02em;
}
.kv-do li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--yellow); transform: rotate(45deg); }
/* 上の段に YouTube・Discord、YouTube の下に Minecraftサーバー。左の列は長いほう（Minecraft）の幅にそろう */
.kv-cta { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px; }
@container (max-width: 470px) { .kv-cta { grid-template-columns: minmax(0, 1fr); max-width: 360px; } }
.kv-sns { position: absolute; z-index: 3; left: max(var(--gut), clamp(16px, 5vw, 80px)); bottom: calc(clamp(120px, 13vw, 170px) / 2 + 30px); display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 1240px) { .kv-sns { left: calc((100% - 1240px) / 2 + 80px); } }
.icon-link {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.35);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .3s var(--ease-back);
}
.icon-link svg { width: 19px; height: 19px; fill: currentColor; }
.icon-link:hover { color: #fff; background: var(--brand, var(--tomato)); border-color: var(--brand, var(--tomato)); transform: translateY(-3px) rotate(-6deg); }
.icon-link[data-key="x"]:hover { color: #000; }

.kv-stage { position: relative; aspect-ratio: 1; width: min(100%, 620px); justify-self: center; }
.kv-mascot { position: absolute; inset: 5%; z-index: 2; }
.mascot { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.mascot-img { position: relative; width: 100%; height: 100%; object-fit: contain; animation: bob 4.6s ease-in-out infinite; filter: drop-shadow(14px 16px 0 rgba(0,0,0,.55)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
.mascot-img.is-laugh { animation: laugh .9s var(--ease-out), bob 4.6s .9s ease-in-out infinite; }
@keyframes laugh {
  0% { transform: scale(1); }
  12% { transform: scale(1.12, .9) rotate(-6deg); }
  24% { transform: scale(.94, 1.08) rotate(5deg); }
  36% { transform: scale(1.06, .96) rotate(-4deg); }
  50% { transform: scale(.98, 1.03) rotate(3deg); }
  70% { transform: scale(1.02) rotate(-1deg); }
  100% { transform: scale(1) rotate(-4deg); }
}
.kv-pops { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
/* 笑いの文字: けいふぉんと（かな・英数字・記号だけに減らしたもの）で、白文字に黒ふちだけ */
@font-face {
  font-family: "Keifont";
  src: url("../fonts/keifont/keifont-kana.woff2") format("woff2");
  font-display: swap;
}
.pop {
  position: absolute; font-family: "Keifont", var(--f-logo); font-size: clamp(28px, 3.1vw, 46px); line-height: 1; color: #fff;
  -webkit-text-stroke: 8px #000; paint-order: stroke fill; white-space: nowrap;
  opacity: 0; transform: scale(.2) rotate(var(--rot, -12deg));
}
.pop.p1 { right: 2%; top: 8%; --rot: 12deg; animation: pop-loop 5.6s var(--ease-back) infinite 1.6s; }
.pop.p2 { left: 2%; bottom: 14%; --rot: -14deg; animation: pop-loop 5.6s var(--ease-back) infinite 4.4s; }
@keyframes pop-loop {
  0% { opacity: 0; transform: scale(.2) rotate(var(--rot)); }
  6% { opacity: 1; transform: scale(1.1) rotate(var(--rot)); }
  10% { transform: scale(1) rotate(var(--rot)); }
  30% { opacity: 1; transform: scale(1) rotate(var(--rot)) translateY(-6px); }
  36%, 100% { opacity: 0; transform: scale(.9) rotate(var(--rot)) translateY(-14px); }
}
.pop.burst { animation: pop-once 1.1s var(--ease-back) forwards; }
@keyframes pop-once {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(var(--rot)); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(var(--rot)); }
  30% { transform: translate(-50%, -50%) scale(1) rotate(var(--rot)); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 40px)) scale(.95) rotate(var(--rot)); }
}

/* 最新動画の再生ボタン */
.kv-play {
  position: absolute; z-index: 3; right: max(var(--gut-r), 4vw); bottom: calc(clamp(120px, 13vw, 170px) / 2 + 30px);
  display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; text-align: left;
}
.kv-play-ring { position: relative; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; border: 4px solid #fff; background: rgba(0,0,0,.35); transition: background-color .25s ease, transform .35s var(--ease-back); }
.kv-play-ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.6); animation: spin 14s linear infinite; }
.kv-play-ring svg { width: 26px; fill: currentColor; margin-left: 4px; }
.kv-play-label { display: grid; font-weight: 900; font-size: 15px; line-height: 1.4; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.kv-play-label small { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 12px; letter-spacing: .2em; color: var(--yellow); transform: skewX(-10deg); transform-origin: left; }
.kv-play:hover .kv-play-ring { background: var(--yellow); color: #000; border-color: #000; transform: scale(1.08); }

/* チャンネル登録のステッカー */
.kv-sticker {
  position: absolute; z-index: 3; right: max(var(--gut-r), 4vw); top: calc(var(--hdr) + 26px);
  display: grid; justify-items: center; padding: 12px 26px 13px; text-decoration: none;
  background: #fff; color: #000; border: 4px solid #000; border-radius: 18px; box-shadow: 6px 6px 0 #000;
  transform: rotate(6deg); transition: transform .35s var(--ease-back), background-color .2s ease;
}
.kv-sticker .ks-main { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.kv-sticker .ks-sub { font-size: 12px; font-weight: 900; letter-spacing: .06em; color: var(--tomato); }
.kv-sticker:hover { transform: rotate(0deg) scale(1.06); background: var(--yellow); }

/* HOME の登場（ローディング後に再生） */
.js .kv-logo, .js .kv-do, .js .kv-cta, .js .kv-sns, .js .kv-stage, .js .kv-play, .js .kv-sticker { opacity: 0; }
.js .kv-catch .ch { transform: translateY(115%); }
.is-ready .kv-logo { animation: slam .8s var(--ease-back) .1s both; }
.is-ready .kv-catch .ch { transform: none; transition: transform .7s var(--ease-out); transition-delay: calc(.4s + var(--i) * .03s); }
.is-ready .kv-do { animation: rise .8s var(--ease-out) .85s both; }
.is-ready .kv-cta { animation: rise .8s var(--ease-out) .95s both; }
.is-ready .kv-sns { animation: rise .8s var(--ease-out) 1.05s both; }
.is-ready .kv-stage { animation: stage-in 1s var(--ease-back) .2s both; }
.is-ready .kv-play { animation: rise .8s var(--ease-out) 1.15s both; }
.is-ready .kv-sticker { animation: sticker-in .7s var(--ease-back) 1.25s both; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: none; } }
@keyframes slam { 0% { opacity: 0; transform: scale(1.5); filter: blur(8px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes stage-in { from { opacity: 0; transform: translateX(120px) scale(.7) rotate(14deg); } to { opacity: 1; transform: none; } }
@keyframes sticker-in { from { opacity: 0; transform: rotate(30deg) scale(.3); } to { opacity: 1; transform: rotate(6deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- tapes ---------- */
.tapes { position: relative; z-index: 5; overflow-x: clip; height: clamp(120px, 13vw, 170px); margin-top: calc(clamp(120px, 13vw, 170px) / -2); margin-bottom: calc(clamp(120px, 13vw, 170px) / -2.4); pointer-events: none; }
.tape { position: absolute; left: -6%; right: -6%; top: 50%; overflow: hidden; border-block: 3px solid #000; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.tape-y { background: var(--yellow); color: #000; transform: translateY(-62%) rotate(-3deg); }
.tape-k { background: #000; color: #fff; transform: translateY(-16%) rotate(2deg); border-color: var(--tomato); }
.tape-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.tape-track.rev { animation-direction: reverse; }
.tape-seq { display: flex; flex: none; }
.tape-seq span { display: inline-flex; align-items: center; gap: 22px; padding: 10px 0 10px 22px; white-space: nowrap; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(14px, 1.5vw, 19px); line-height: 1.3; }
.tape-seq span::after { content: ""; width: 12px; height: 12px; background: var(--tomato); transform: rotate(45deg); flex: none; }
.tape-k .tape-seq span { letter-spacing: .08em; font-style: italic; }
.tape-k .tape-seq span::after { background: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 見出し（配信・ゲームの欄） ---------- */
.sec { position: relative; isolation: isolate; overflow-x: clip; padding-block: clamp(100px, 11vw, 160px) clamp(90px, 10vw, 140px); }
.sh { position: relative; display: grid; justify-items: start; gap: 6px; margin-bottom: clamp(30px, 4vw, 52px); }
.sh-en {
  margin: 0; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(56px, 8.4vw, 124px); line-height: .9; letter-spacing: .01em;
  color: #fff; transform: skewX(-10deg); transform-origin: left bottom;
  text-shadow: .05em .05em 0 var(--tomato);
  display: flex; align-items: center; gap: .18em;
}
.sh-en::after {
  content: ""; width: .7em; height: .5em; flex: none;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 .1em, transparent .1em .2em);
}
.sh-jp { margin: 0; font-weight: 400; }
.sh-jp span {
  display: inline-block; padding: 6px 18px 8px; background: var(--tomato); color: #fff;
  font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(18px, 2vw, 26px); line-height: 1.3; transform: skewX(-10deg);
}
.sh-lead { margin: 10px 0 0; color: var(--muted); max-width: 44em; font-weight: 700; text-wrap: pretty; }
.sh-dark .sh-en, .sec-news .sh-en { color: var(--ink); }
.sh-dark .sh-lead, .sec-news .sh-lead { color: var(--paper-muted); }
.sh-dark .sh-en::after { background: repeating-linear-gradient(90deg, var(--tomato) 0 .1em, transparent .1em .2em); }
.js .sh[data-reveal] .sh-en { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease-snap) .05s; }
.js .sh[data-reveal].is-in .sh-en { clip-path: inset(-10% -10% -20% -10%); }
.js .sh[data-reveal] .sh-jp span { translate: -30px 0; opacity: 0; transition: translate .6s var(--ease-out) .35s, opacity .4s ease .35s; }
.js .sh[data-reveal].is-in .sh-jp span { translate: none; opacity: 1; }

/* transform はカードの傾きで使うので、出現は translate で動かす */
.js [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease-out) var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: none; }
.js .sh[data-reveal], .js .px-head[data-reveal] { translate: none; }

/* ---------- NEWS（ピックアップとお知らせ） ---------- */
.sec-news {
  background: repeating-linear-gradient(-55deg, rgba(23,22,27,.035) 0 2px, transparent 2px 22px), var(--paper);
  color: var(--paper-ink);
  padding-top: clamp(130px, 13vw, 180px);
}
.pickup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-bottom: clamp(60px, 7vw, 100px); }
/* 見た目は中の .pick-in。カーソルを乗せると .pick-in だけが浮き、.pick（当たり判定）は浮いたぶん上に広がる
   （カードごと動かすと、元の場所の下の端で 乗る→浮いて外れる→戻る をくり返すため） */
.pick {
  position: relative; display: flex; text-decoration: none; color: #fff; cursor: pointer; padding: 0; border: 0; text-align: left; background: none;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: clip-path .35s var(--ease-out);
}
.pick:hover { clip-path: polygon(0 -6px, calc(100% - 22px) -6px, 100% 16px, 100% 100%, 0 100%); }
.pick-in {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: #000; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform .35s var(--ease-out);
}
.pick:hover .pick-in { transform: translateY(-6px); }
.pick-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c, var(--tomato)); }
.pick-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pick:hover .pick-art img { transform: scale(1.07); }
.pick-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 10px, transparent 10px 20px); transform: translateX(-102%); transition: transform .5s var(--ease-snap); }
.pick:hover .pick-art::after { transform: none; }
.pick-tag { position: absolute; z-index: 1; left: 10px; top: 10px; padding: 3px 10px; background: var(--yellow); color: #000; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 12px; letter-spacing: .08em; transform: skewX(-10deg); }
.pick-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; }
.pick-title { font-weight: 900; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-title .ph { display: inline-block; }
.pick-body svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 2.6; transition: transform .3s var(--ease-out); }
.pick:hover .pick-body svg { transform: translateX(4px); }
/* ピックアップの絵（画像がないときの仮の絵） */
.pa-burst { position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 60%, rgba(255,255,255,.16) 0 6deg, transparent 6deg 14deg), var(--c); }
.pa-icon { position: absolute; left: 50%; top: 54%; width: 44%; transform: translate(-50%, -50%) rotate(-6deg); }
.pick:hover .pick-art .pa-gameicon { transform: translate(-50%, -50%) rotate(-6deg) scale(1.07); }
.pa-icon svg { width: 100%; height: auto; fill: none; stroke: #fff; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(5px 5px 0 rgba(0,0,0,.35)); }
.pa-pixel { position: absolute; inset: 0; background: linear-gradient(180deg, #24113a 0 22%, #5c1a4d 22% 40%, #b8283f 40% 55%, #f47a35 55% 68%, #ffd27a 68%); }
.pa-pixel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: url(../img/kv/far.png) 0 100% / auto 100% repeat-x; image-rendering: pixelated; }
.pa-pixel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: url(../img/kv/near.png) 30% 100% / auto 100% repeat-x; image-rendering: pixelated; }
/* 絵は右に寄せて、左上のタグと重ならないようにする。キャラは手前の丘（::after）の後ろに立つ */
.pick-art .pa-chara { position: absolute; left: auto; right: 7%; bottom: -3%; width: auto; height: 90%; object-fit: contain; filter: drop-shadow(4px 5px 0 rgba(0,0,0,.35)); transform-origin: 50% 100%; transition: transform .5s var(--ease-back); }
.pick:hover .pick-art .pa-chara { transform: translateY(-4%) rotate(-4deg); }
.pa-discord { position: absolute; inset: 0; display: grid; place-items: center end; padding-right: 8%; background: radial-gradient(circle at 30% 30%, #7c86ff, var(--discord) 60%); }
.pick-art .pa-discord img { width: 46%; height: auto; transform: rotate(-6deg); filter: drop-shadow(5px 6px 0 rgba(0,0,0,.28)); transition: transform .5s var(--ease-back); }
.pick:hover .pick-art .pa-discord img { transform: rotate(-2deg) scale(1.08); }

.news-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 34px); align-items: start; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--paper-ink); }
.news-list li { border-bottom: 2px solid var(--paper-2); }
.news-item {
  position: relative; isolation: isolate; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 12px; text-decoration: none; color: inherit; overflow: hidden;
}
a.news-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-ink); transform: translateX(-101%); transition: transform .45s var(--ease-snap); }
a.news-item:hover::before, a.news-item:focus-visible::before { transform: none; }
a.news-item:hover, a.news-item:focus-visible { color: #fff; }
.news-item time { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 15px; letter-spacing: .02em; font-variant-numeric: tabular-nums; transform: skewX(-8deg); }
.news-tag { display: inline-block; min-width: 82px; padding: 2px 10px 3px; text-align: center; background: var(--tag, var(--tomato)); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .04em; line-height: 1.6; transform: skewX(-10deg); }
.news-title { font-weight: 800; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.news-new { display: inline-block; margin-right: 10px; padding: 1px 7px 2px; vertical-align: 2px; background: var(--yellow); color: #000; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 11px; line-height: 1.3; letter-spacing: .08em; transform: skewX(-10deg); box-shadow: 2px 2px 0 var(--tomato); }
.news-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; opacity: 0; transition: transform .3s var(--ease-out); }
a.news-item svg { opacity: .8; }
a.news-item:hover svg { transform: translateX(4px); stroke: var(--yellow); }
.news-empty { padding: 22px 12px; color: var(--paper-muted); }
.sched { position: relative; overflow: hidden; padding: 22px 24px 18px; background: var(--paper-ink); color: #fff; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
.sched::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, transparent 8px 16px); opacity: .9; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.sched-head { position: relative; margin: 0 0 10px; display: grid; gap: 2px; }
.sched-head span { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 13px; letter-spacing: .14em; color: var(--yellow); transform: skewX(-10deg); transform-origin: left; }
.sched-head b { font-size: 18px; font-weight: 900; }
.sched-list { position: relative; z-index: 1; margin: 0; display: grid; }
.sched-list div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line-2); font-size: 14px; }
.sched-list dt { font-weight: 800; color: var(--muted); }
.sched-list dd { margin: 0; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- MOVIE ---------- */
.sec-movie {
  background: linear-gradient(180deg, var(--ink) 0%, #111116 100%);
  clip-path: polygon(0 0, 100% 3.2vw, 100% 100%, 0 100%);
  margin-top: -3.2vw; padding-top: calc(clamp(100px, 11vw, 160px) + 3.2vw);
}
.sec-movie::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(3.2vw + 7px); background: var(--tomato); clip-path: polygon(0 0, 100% 3.2vw, 100% 100%, 0 7px); pointer-events: none; }
.sec-movie::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-55deg, rgba(255,255,255,.02) 0 2px, transparent 2px 22px); }
.tv-wrap { display: grid; grid-template-columns: auto minmax(0, 960px) auto; justify-content: center; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.tv-arrow {
  display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: #fff; border: 3px solid #fff; transition: background-color .2s ease, color .2s ease, transform .3s var(--ease-back);
}
.tv-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; }
.tv-arrow:hover { background: var(--yellow); border-color: var(--yellow); color: #000; transform: scale(1.08); }
.tv {
  position: relative; padding: 14px 14px 18px; background: #070709;
  border: 1px solid var(--line-2);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.tv::before { content: ""; position: absolute; right: 0; top: 0; width: 40px; height: 40px; background: linear-gradient(225deg, var(--yellow) 0 50%, transparent 50%); }
.tv::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 40px; background: linear-gradient(45deg, var(--tomato) 0 50%, transparent 50%); }
.tv-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 30px 12px 4px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.tv-live { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.tv-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); animation: blink 1.2s steps(2) infinite; }
.tv-screen {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden;
  background: #000 radial-gradient(circle, #1a1a20 1px, transparent 1.3px) 0 0 / 10px 10px; cursor: pointer; border-radius: 18px / 22px;
}
.tv-screen img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform .8s var(--ease-out), filter .3s ease, opacity .2s ease; }
.tv-screen:hover img { transform: scale(1.08); filter: saturate(1.15); }
.tv-screen::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.tv-screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.6) 100%); }
.tv-noise { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.tv.is-switching .tv-noise { opacity: .95; }
.tv-osd { position: absolute; z-index: 4; top: 16px; right: 20px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(18px, 2.2vw, 30px); color: var(--leaf); text-shadow: 0 0 10px rgba(43,212,91,.75); letter-spacing: .08em; opacity: 0; transition: opacity .2s ease; }
.tv.show-osd .tv-osd { opacity: 1; }
.tv-play {
  position: absolute; z-index: 4; left: 50%; top: 50%; width: clamp(64px, 8vw, 92px); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--tomato);
  transition: transform .35s var(--ease-back);
}
/* 広がる輪は、影ではなく拡大と透明度で動かす（影を毎回描き直すと、見ているあいだずっと重くなる） */
.tv-play::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--tomato); animation: pulse 2.2s ease-out infinite; }
.tv-play svg { width: 42%; fill: #fff; margin-left: 6%; }
.tv-screen:hover .tv-play { transform: translate(-50%, -50%) scale(1.12); }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.tv-info { padding: 16px 6px 0; display: grid; gap: 6px; }
.tv-meta { margin: 0; display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 800; color: var(--dim); }
.tv-title { margin: 0; font-weight: 900; font-size: clamp(17px, 1.9vw, 24px); line-height: 1.5; overflow-wrap: anywhere; }
.kind { display: inline-block; font-size: 11.5px; font-weight: 900; letter-spacing: .06em; padding: 1px 9px 2px; background: var(--tomato); color: #fff; transform: skewX(-10deg); }
.kind.video { background: #fff; color: #000; }
.kind.clip { background: var(--yellow); color: #000; }
.kind.shorts { background: var(--leaf); color: #000; }

.ch-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: clamp(30px, 4vw, 48px) 0 14px; }
.ch-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; cursor: pointer;
  background: var(--ink-3); color: var(--muted); font-size: 14px; font-weight: 900; letter-spacing: .04em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background-color .2s ease, color .2s ease;
}
.ch-tab small { font-size: 11px; opacity: .75; }
.ch-tab:hover { color: var(--text); background: var(--line-2); }
.ch-tab[aria-selected="true"] { background: var(--yellow); color: #000; }
.ch-more { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 14px; color: var(--muted); transition: color .2s ease; }
.ch-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; transition: transform .3s var(--ease-out); }
.ch-more:hover { color: var(--yellow); }
.ch-more:hover svg { transform: translateX(4px); }
.ch-list {
  list-style: none; margin: 0; padding: 4px 4px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, calc((100% - 3 * 14px) / 4)); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.ch-list li { scroll-snap-align: start; }
.ch-item {
  position: relative; display: grid; gap: 10px; width: 100%; height: 100%; padding: 10px 10px 14px; text-align: left; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line); transition: border-color .2s ease, background-color .2s ease, transform .3s var(--ease-out);
}
.ch-item:hover { border-color: var(--line-2); background: var(--ink-3); transform: translateY(-4px); }
.ch-item[aria-current="true"] { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.ch-item[aria-current="true"]::after { content: "NOW ON AIR"; position: absolute; right: 10px; top: 10px; z-index: 1; padding: 2px 8px; background: var(--tomato); color: #fff; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 10px; letter-spacing: .1em; transform: skewX(-10deg); }
.ch-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3) radial-gradient(circle, #2a2a33 1px, transparent 1.3px) 0 0 / 8px 8px; }
.ch-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.ch-item:hover .ch-thumb img { transform: scale(1.08); }
.ch-body { display: grid; gap: 4px; min-width: 0; }
.ch-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--dim); }
.ch-meta b { font-family: var(--f-logo); font-weight: var(--fw-logo); color: var(--muted); }
.ch-title { font-weight: 900; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ---------- GAME（黄色い勢いのある欄） ---------- */
.sec-game {
  background:
    repeating-conic-gradient(from 0deg at 85% 30%, rgba(255,255,255,.22) 0 4deg, transparent 4deg 11deg),
    linear-gradient(160deg, #ffe85a 0%, var(--yellow) 45%, #ffc21a 100%);
  color: var(--ink);
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  margin-block: -4vw; padding-block: calc(clamp(100px, 11vw, 160px) + 4vw) calc(clamp(90px, 10vw, 140px) + 4vw);
  z-index: 1;
}
/* 見出しの右に、ゲーム開発のブランド（Rafixel）の札を置く */
.game-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 26px 48px; margin-bottom: clamp(30px, 4vw, 52px); }
.game-head .sh { margin-bottom: 0; }
.studio {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px;
  width: min(100%, 410px); margin: 0 14px 10px 30px; padding: 16px 24px 18px 0;
  background: #000; color: #fff; border: 4px solid #000; box-shadow: 10px 10px 0 var(--tomato);
  transform: rotate(-3deg);
}
.studio::before { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(255,224,58,.28); pointer-events: none; }
.studio-logo { width: 104px; height: 104px; margin: -34px 0 -10px -36px; transform: rotate(-8deg); filter: drop-shadow(5px 6px 0 rgba(0,0,0,.45)); }
.studio-body { position: relative; display: grid; gap: 2px; min-width: 0; }
.studio-body p { margin: 0; }
.studio-en { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 11px; letter-spacing: .18em; color: var(--yellow); transform: skewX(-10deg); transform-origin: left; }
.studio-name { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(28px, 2.7vw, 36px); line-height: 1.1; letter-spacing: .01em; transform: skewX(-8deg); transform-origin: left; text-shadow: .06em .06em 0 var(--tomato); }
.studio-name:has(img) { transform: none; text-shadow: none; }
.studio-name img { display: block; width: auto; height: clamp(26px, 2.5vw, 34px); max-width: 100%; margin: 4px 0 6px; filter: drop-shadow(3px 3px 0 var(--tomato)); }
.studio-kana { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--muted); }
.studio-note { margin-top: 8px !important; padding-top: 8px; border-top: 2px solid #26252c; font-size: 12.5px; font-weight: 800; line-height: 1.6; color: #e6e1ea; }
/* 出てくるときは、ハンコを押すように */
.js .studio[data-reveal] { scale: 1.25; transition: opacity .5s ease var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s), scale .55s var(--ease-back) var(--d, 0s); }
.js .studio[data-reveal].is-in { scale: none; }

/* ソフトのカード（押すとダウンロードページのその作品へ） */
.softs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); perspective: 1100px; }
/* 浮く・傾くのは中の .soft-in だけ。.soft（当たり判定）は動かさない（ふちで 乗る→外れる をくり返さないように）。
   preserve-3d で、.softs の遠近が .soft-in にもかかる */
.soft {
  --rx: 0deg; --ry: 0deg; --ty: 0px;
  position: relative; display: flex; min-width: 0; text-decoration: none; color: var(--ink);
  transform-style: preserve-3d;
}
.soft-in {
  position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: #fff; border: 4px solid #000; box-shadow: 8px 8px 0 var(--tomato);
  transform: translateY(var(--ty)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), box-shadow .3s ease; will-change: transform;
}
.soft:hover, .soft:focus-visible { --ty: -8px; }
.soft:hover .soft-in, .soft:focus-visible .soft-in { box-shadow: 12px 16px 0 var(--tomato); }
.soft.is-tilting .soft-in { transition: transform .12s linear, box-shadow .3s ease; }
.soft:focus-visible { outline: none; }
.soft:focus-visible .soft-in { outline: 3px solid var(--yellow); outline-offset: 3px; }
.soft-art { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--tomato); border-bottom: 4px solid #000; }
.soft-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.35), transparent 55%); opacity: 0; transition: opacity .3s ease; }
.soft:hover .soft-art::after { opacity: 1; }
.soft-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.soft:hover .soft-shot { transform: scale(1.06); }
/* 画面写真がないソフトは、集中線の上にアイコンをステッカーのように貼る */
.soft-burst { position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 55%, rgba(255,236,200,.18) 0 5deg, transparent 5deg 12deg), radial-gradient(circle at 50% 55%, #ff5236, var(--tomato) 45%, #8f0910); }
.soft-icon { position: absolute; left: 50%; top: 50%; height: 72%; width: auto; aspect-ratio: 1; object-fit: cover; border: 4px solid #fff; border-radius: 22%; box-shadow: 6px 6px 0 rgba(0,0,0,.4); transform: translate(-50%, -50%) rotate(-5deg); transition: transform .5s var(--ease-back); }
.soft:hover .soft-icon { transform: translate(-50%, -50%) rotate(-1deg) scale(1.08); }
.soft-pad { position: absolute; left: 31%; top: 50%; width: 38%; translate: 0 -50%; }
.soft-pad svg { width: 100%; height: auto; fill: none; stroke: #fff; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(5px 5px 0 rgba(0,0,0,.35)); transform: rotate(-6deg); }
.soft-plat { position: absolute; z-index: 1; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.soft-plat span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 4px; background: #000; color: #fff; font-size: 12px; font-weight: 900; line-height: 1.3; transform: skewX(-10deg); }
.soft-plat .px { width: 13px; height: 13px; color: var(--yellow); }
.soft-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 0; flex: 1; }
.soft-cat { padding: 1px 9px 2px; background: var(--tomato); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .06em; transform: skewX(-10deg); }
.soft h3 { margin: 0; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.soft-catch { font-size: 13.5px; font-weight: 800; line-height: 1.6; color: #3b3424; }
.soft-dev { display: inline-flex; align-items: center; gap: 6px; margin-top: -2px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #6b6150; }
.soft-dev img { width: 20px; height: 20px; flex: none; transform: rotate(-6deg); }
.soft-dev b { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 13.5px; letter-spacing: .01em; color: var(--ink); }
.soft-dev { flex-wrap: wrap; row-gap: 2px; }
.soft-x { margin: 0 1px; font-weight: 900; color: #a39780; }
.soft-team { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #6b6150; }
.soft-team .px { width: 13px; height: 13px; flex: none; }
.soft-date { margin-bottom: 14px; font-size: 12px; font-weight: 800; color: #6b6150; letter-spacing: .04em; }
.soft-go { align-self: stretch; margin: auto -16px 0; padding: 10px 16px 11px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #000; color: #fff; font-size: 14px; font-weight: 900; transition: background-color .2s ease, color .2s ease; }
.soft-go svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 2.6; transition: transform .3s var(--ease-out), stroke .2s ease; }
.soft:hover .soft-go { background: var(--yellow); color: #000; }
.soft:hover .soft-go svg { stroke: #000; transform: translateX(4px); }
/* 一覧へ（ダウンロードページを、ゲームソフト・機種で絞り込んだ状態で開く） */
.soft-lists { margin-top: clamp(28px, 3.4vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px 14px; }
.soft-list { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px 16px 14px; background: #000; color: #fff; text-decoration: none; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); transition: background-color .2s ease; }
.soft-list .px { flex: none; width: 20px; height: 20px; color: var(--yellow); }
.soft-list-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 900; line-height: 1.4; }
.soft-list small { flex: none; font-size: 12px; font-weight: 800; color: var(--muted); }
.soft-list-go { flex: none; display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; border-left: 2px solid #333; font-size: 12.5px; font-weight: 900; color: var(--yellow); }
.soft-list-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; transition: transform .3s var(--ease-out); }
.soft-list:hover, .soft-list:focus-visible { background: var(--tomato); }
.soft-list:hover small, .soft-list:hover .soft-list-go, .soft-list:hover .px { color: #fff; }
.soft-list:hover .soft-list-go svg { transform: translateX(4px); }
.pa-gameicon { position: absolute; left: 50%; top: 54%; width: auto !important; height: 64% !important; aspect-ratio: 1; object-fit: cover; border: 4px solid #fff; border-radius: 22%; box-shadow: 5px 5px 0 rgba(0,0,0,.35); transform: translate(-50%, -50%) rotate(-6deg); }

/* ---------- MINECRAFT（ドット絵の世界） ---------- */
.mc { position: relative; isolation: isolate; overflow-x: clip; background: #120e2b; color: var(--text); }
.mc-hero { position: relative; min-height: max(560px, 86svh); display: grid; align-items: center; padding-block: calc(4vw + 90px) 130px; overflow: hidden; }
.mc-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; container-type: size; }
.mc-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    #170c2b 0 12%, #24113a 12% 21%, #3b1647 21% 30%, #5c1a4d 30% 38%, #8a1f4a 38% 45%,
    #b8283f 45% 51%, #e04a33 51% 57%, #f47a35 57% 63%, #ffad4a 63% 69%, #ffd27a 69% 100%);
}
.mc-stars { position: absolute; left: 0; right: 0; top: 0; height: 50%; background: url(../img/px/stars.png) 0 0 / 192px 192px; image-rendering: pixelated; -webkit-mask: linear-gradient(#000 30%, transparent); mask: linear-gradient(#000 30%, transparent); animation: twinkle 3.2s steps(2) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .45; } }
.mc-sun { position: absolute; left: 50%; top: 58%; width: min(46cqh, 420px); aspect-ratio: 1; transform: translate(-50%, -50%); background: url(../img/kv/sun.png) center / contain no-repeat; image-rendering: pixelated; filter: drop-shadow(0 0 40px rgba(255, 190, 90, .55)); }
.mc-layer { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); --tile: calc(var(--h) * 2.13334); }
.mc-layer i {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% + var(--tile));
  background-repeat: repeat-x; background-position: 0 100%; background-size: auto 100%; image-rendering: pixelated;
  animation: pan var(--pan, 120s) linear infinite;
}
@keyframes pan { to { transform: translate3d(calc(-1 * var(--tile)), 0, 0); } }
.mc-clouds { top: 0; bottom: auto; --h: 66cqh; }
.mc-clouds i { background-image: url(../img/kv/clouds.png); background-position: 0 0; --pan: 220s; }
.mc-far { --h: 52cqh; }
.mc-far i { background-image: url(../img/kv/far.png); --pan: 260s; }
.mc-mid { --h: 40cqh; }
.mc-mid i { background-image: url(../img/kv/mid.png); --pan: 150s; }
.mc-near { --h: 25cqh; }
.mc-near i { background-image: url(../img/kv/near.png); --pan: 80s; }
.mc-head { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; }
.mc-icon { display: grid; place-items: center; width: 76px; height: 76px; background: var(--wood); color: var(--cream); border: 4px solid var(--wood-line); box-shadow: inset 4px 4px 0 var(--wood-hi), inset -4px -4px 0 var(--wood-lo); }
.mc-icon .px { width: 40px; height: 40px; }
.mc-title {
  margin: 0; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(56px, 9vw, 130px); line-height: 1; color: var(--cream-hi);
  -webkit-text-stroke: .08em var(--wood-line); paint-order: stroke fill;
  text-shadow: 0 .05em 0 var(--mc-leaf), 0 .09em 0 var(--mc-leaf-lo), 0 .13em 0 var(--wood-line);
}
.mc-en { margin: 0; font-family: var(--f-px); font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .3em; padding-left: .3em; color: var(--gold); text-shadow: 2px 2px 0 var(--wood-line); }
/* Rafuのキャラ: タイトルの左の丘に立つ。--t はタイトルの文字の大きさ（タイトルの幅は文字の大きさの約5.8倍） */
.mc-chara {
  --t: clamp(56px, 9vw, 130px); --shift: 0px;
  position: absolute; bottom: 4cqh; right: calc(50cqw + var(--shift) + var(--t) * 2.9 + 16px);
  width: min(calc(50cqw - var(--shift) - var(--t) * 2.9 - 32px), 34cqh); height: auto;
  filter: drop-shadow(3px 0 0 var(--wood-line)) drop-shadow(-3px 0 0 var(--wood-line)) drop-shadow(0 3px 0 var(--wood-line)) drop-shadow(0 -3px 0 var(--wood-line)) drop-shadow(12px 12px 0 rgba(24, 9, 32, .45));
  transform-origin: 50% 100%; animation: startle 6s ease-in-out 2s infinite;
}
.js .mc-chara[data-reveal] { translate: 0 40%; transition: opacity .4s ease .15s, translate .9s var(--ease-back) .15s; }
.js .mc-chara[data-reveal].is-in { translate: none; }
@keyframes startle { 0%, 80%, 100% { transform: none; } 84% { transform: translateY(-6%) rotate(-3deg); } 88% { transform: none; } 91% { transform: translateY(-2%) rotate(1deg); } 94% { transform: none; } }
.mc-lead { margin: 6px 0 0; max-width: 36em; padding: 10px 18px 11px; font-weight: 800; color: #fff; background: rgba(24, 9, 32, .8); border: 3px solid var(--wood-line); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); text-wrap: pretty; }

/* パネル・ボタン（Minecraftの欄） */
.panel, .pxbtn, .feat, .srv-steps li, .work-in, .mc-icon, .feat-icon, .pev, .pev-play {
  --n: 4px;
  clip-path: polygon(var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)), 0 var(--n), var(--n) var(--n));
}
.panel { position: relative; border: 4px solid var(--wood-line); }
.panel-wood { background: var(--wood); color: var(--text); box-shadow: inset 4px 4px 0 var(--wood-hi), inset -4px -4px 0 var(--wood-lo); }
.pxbtn {
  --bg: var(--mc-leaf); --hi: var(--mc-leaf-hi); --lo: var(--mc-leaf-lo); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px 5px; cursor: pointer; text-decoration: none;
  background: var(--bg); color: var(--fg); border: 4px solid var(--wood-line);
  box-shadow: inset 0 4px 0 var(--hi), inset 0 -7px 0 var(--lo);
  font-family: var(--f-body); font-weight: 900; font-size: 15px; letter-spacing: .04em; text-shadow: 0 2px 0 rgba(0,0,0,.22);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.pxbtn:hover { filter: brightness(1.07); }
.pxbtn:active { transform: translateY(3px); box-shadow: inset 0 4px 0 var(--hi), inset 0 -3px 0 var(--lo); }

/* サーバー欄だけは、ウィンドウ・ボタン・文字をゲーム内の画面に近い 灰色・緑・白いドット文字 にする */
.mc-server {
  --ore-line: #1e1e1f; --ore: #313233; --ore-2: #48494a; --ore-hi: #5a5b5c; --ore-lo: #242425;
  --ore-text: #e6e8eb; --ore-muted: #b1b2b5; --ore-dim: #a6a7aa;
  --ore-light: #d0d1d4; --ore-light-hi: #f4f4f5; --ore-light-lo: #58585a;
  --ore-green: #3c8527; --ore-green-hi: #52a535; --ore-green-lo: #1d4d13; --ore-green-text: #6cc349;
  --f-ore: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
  position: relative; isolation: isolate; background: linear-gradient(180deg, #170c2b 0%, #141036 40%, #1b1645 70%, #2a1f5a 100%); padding: clamp(80px, 9vw, 120px) 0 calc(clamp(90px, 10vw, 130px) + 56px);
}
/* 見出しはゲームの太字と同じく、1ドットずらして重ね、右下に影を付ける */
.mc-server .px-title { --u: .0625em; font-family: var(--f-px); font-size: 32px; line-height: 1.3; color: #fff; text-shadow: var(--u) 0 0 #fff, var(--u) var(--u) 0 #3f3f3f, calc(var(--u) * 2) var(--u) 0 #3f3f3f; }
.mc-server .px-en { color: var(--ore-green-text); text-shadow: 2px 2px 0 var(--ore-green-lo); }
.mc-server .px-lead { font-family: var(--f-ore); font-weight: 500; color: var(--ore-text); }
.mc-server .pxbtn {
  --bg: var(--ore-green); --hi: var(--ore-green-hi); --lo: var(--ore-green-lo); --n: 2px;
  padding-bottom: 3px; border: 2px solid var(--ore-line); box-shadow: inset 0 3px 0 var(--hi), inset 0 -5px 0 var(--lo);
  font-family: var(--f-px); font-weight: 400; font-size: 18px; letter-spacing: .06em; text-shadow: 2px 2px 0 rgba(0,0,0,.35);
}
.mc-server .pxbtn:active { box-shadow: inset 0 3px 0 var(--hi), inset 0 -2px 0 var(--lo); }
@media (min-width: 1024px) { .mc-server .px-title { font-size: 48px; } }
/* サーバーの名前（REDHUB のロゴ）。下にゲームの画面のような札 */
.srv-head { gap: 0; }
.srv-logo { margin: 0; line-height: 0; }
.srv-logo img { display: block; width: min(660px, 88vw); height: auto; filter: drop-shadow(0 8px 0 rgba(8,4,24,.55)); }
.srv-tag { position: relative; z-index: 1; margin: 18px 0 16px; }
.srv-tag span {
  display: inline-block; padding: 3px 14px 6px; background: var(--ore); color: #fff; border: 2px solid var(--ore-line);
  box-shadow: inset 0 2px 0 var(--ore-hi), inset 0 -4px 0 var(--ore-lo);
  font-family: var(--f-px); font-size: 17px; letter-spacing: .16em; padding-left: calc(14px + .16em); text-shadow: 2px 2px 0 #3f3f3f;
}
.js .srv-head[data-reveal] .srv-logo img { opacity: 0; transform: translateY(-36px) scale(1.06); transition: opacity .35s ease .1s, transform .8s var(--ease-back) .1s; }
.js .srv-head[data-reveal].is-in .srv-logo img { opacity: 1; transform: none; }
.js .srv-head[data-reveal] .srv-tag span { opacity: 0; transform: scale(.6); transition: opacity .3s ease .55s, transform .45s var(--ease-back) .55s; }
.js .srv-head[data-reveal].is-in .srv-tag span { opacity: 1; transform: none; }

/* ワールドの写真（REDHUB の欄の上。写真の上にロゴを置き、上下は夜空へ溶かす。中身は content.js の server.world） */
.mc-server.has-world { padding-top: 0; }
.srv-world { position: relative; display: grid; align-content: center; min-height: clamp(600px, 92svh, 940px); padding-block: clamp(96px, 10vw, 140px) clamp(150px, 14vw, 190px); margin-bottom: clamp(8px, 2vw, 24px); }
.sw-slides {
  position: absolute; inset: 0; overflow: hidden; background: #141036;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 72%, transparent 100%);
}
.srv-world.is-empty .sw-slides, .srv-world.is-empty .sw-shade { display: none; }
.sw-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.5s ease; }
.sw-slide.is-on { opacity: 1; z-index: 1; }
.sw-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
/* ゆっくり寄る（奇数枚目は左から、偶数枚目は右から） */
.sw-slide.is-on img, .sw-slide.is-out img { animation: sw-kb 11s linear both; }
.sw-slide:nth-child(even).is-on img, .sw-slide:nth-child(even).is-out img { animation-name: sw-kb2; }
@keyframes sw-kb { from { transform: scale(1.04) translateX(-1.2%); } to { transform: scale(1.16) translateX(1.2%); } }
@keyframes sw-kb2 { from { transform: scale(1.16) translateX(1.4%); } to { transform: scale(1.05) translateX(-1%); } }
/* 文字が読めるように、まんなかと上下を少し暗く（夜空の紫に寄せる） */
.sw-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 46%, rgba(16, 9, 36, .42), rgba(16, 9, 36, 0) 72%),
    linear-gradient(180deg, rgba(23, 12, 43, .55) 0%, rgba(23, 12, 43, 0) 24%, rgba(20, 16, 54, 0) 60%, rgba(20, 16, 54, .7) 100%);
}
.sw-inner { position: relative; z-index: 1; }
.srv-world .srv-head { margin-bottom: 0; }
.srv-world .srv-logo img { filter: drop-shadow(0 8px 0 rgba(8, 4, 24, .6)) drop-shadow(0 0 28px rgba(8, 4, 24, .55)); }
.srv-world .px-lead { padding: 7px 16px 9px; background: rgba(16, 10, 34, .78); border: 2px solid var(--ore-line); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08); }
/* 写真の一言と切りかえのボタン（写真の左下と右下） */
.sw-ui { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(70px, 8vw, 104px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sw-ui[hidden] { display: none; }
.sw-cap { margin: 0; display: inline-flex; align-items: stretch; min-width: 0; border: 2px solid var(--ore-line); box-shadow: 3px 3px 0 rgba(8, 4, 24, .5); font-size: 14px; font-weight: 700; line-height: 1.4; }
.sw-cap > span { display: flex; align-items: center; padding: 5px 12px 7px; }
.sw-no { background: var(--tomato); color: #fff; font-family: var(--f-px); font-size: 15px; letter-spacing: .08em; box-shadow: inset 0 -3px 0 #9a0a12; }
.sw-cap > span + span { background: rgba(16, 10, 34, .82); color: var(--ore-text); font-family: var(--f-ore); }
.sw-ctrl { display: flex; align-items: center; gap: 12px; flex: none; }
.sw-dots { display: flex; gap: 6px; }
.sw-dots button { width: 34px; height: 12px; padding: 0; border: 2px solid var(--ore-line); background: rgba(230, 232, 235, .35); cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); transition: background-color .2s ease; }
.sw-dots button:hover { background: rgba(230, 232, 235, .7); }
.sw-dots button[aria-pressed="true"] { background: var(--ore-light); box-shadow: inset 0 -2px 0 var(--ore-light-lo); }
.sw-dots button:focus-visible, .sw-zoom:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sw-zoom {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 9px; border: 2px solid var(--ore-line); cursor: pointer;
  background: var(--ore-2); color: #fff; box-shadow: inset 0 2px 0 var(--ore-hi), inset 0 -4px 0 var(--ore-lo);
  font-family: var(--f-px); font-size: 15px; text-shadow: 2px 2px 0 rgba(0, 0, 0, .35); transition: background-color .15s ease;
}
.sw-zoom:hover { background: #58585a; }
.sw-zoom .px { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 640px) {
  .srv-world { min-height: clamp(560px, 86svh, 760px); padding-bottom: 190px; }
  .sw-ui { flex-direction: column; align-items: flex-start; bottom: 64px; }
  .sw-ctrl { width: 100%; justify-content: space-between; }
  .sw-dots { gap: 5px; }
  .sw-dots button { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-slide.is-on img, .sw-slide.is-out img { animation: none; transform: scale(1.04); }
}
.srv-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.srv-sky i { position: absolute; inset: 0; background: url(../img/px/stars.png) 0 0 / 192px 192px; image-rendering: pixelated; animation: twinkle 2.6s steps(2) infinite; }
.srv-sky i + i { background-position: 96px 60px; background-size: 288px 288px; animation-delay: -1.3s; opacity: .6; }
.voxels { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cube {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  transform-style: preserve-3d; animation: cube var(--t, 20s) linear infinite;
  translate: 0 calc((var(--p, .5) - .5) * -120px);
}
.cube[style*="--r:-1"] { animation-direction: reverse; }
.cube i {
  position: absolute; inset: 0; background-color: var(--c);
  background-image: repeating-conic-gradient(rgba(0,0,0,.14) 0 25%, transparent 0 50%);
  background-size: calc(var(--s) / 2) calc(var(--s) / 2);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.35);
}
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); filter: brightness(.55); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.75); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.65); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.15); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.45); }
@keyframes cube { from { transform: perspective(700px) rotateX(-28deg) rotateY(0deg); } to { transform: perspective(700px) rotateX(-28deg) rotateY(360deg); } }

.px-head { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; margin: 0 auto clamp(32px, 4vw, 50px); }
.px-title { margin: 0; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(30px, 4.2vw, 52px); line-height: 1.2; }
.px-en { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--f-px); font-size: 15px; letter-spacing: .4em; padding-left: .4em; color: var(--gold); }
.px-en::before, .px-en::after { content: ""; width: 44px; height: 4px; background: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 12px); }
.px-lead { margin: 4px 0 0; color: var(--mc-muted); max-width: 44em; font-weight: 700; text-wrap: pretty; }
.wipe { position: relative; display: inline-block; }
.js .wipe > span { opacity: 0; }
.js .wipe::after { content: ""; position: absolute; inset: -.04em -.12em; background: var(--mc-leaf); transform: scaleX(0); transform-origin: left; }
.js .is-in .wipe::after { animation: wipe 1s var(--ease-snap) .1s forwards; }
.js .is-in .wipe > span { animation: show 0s .6s forwards; }
@keyframes wipe { 0% { transform: scaleX(0); transform-origin: left; } 48% { transform: scaleX(1); transform-origin: left; } 52% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes show { to { opacity: 1; } }

.feats { list-style: none; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.feat { --n: 2px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px 18px; background: var(--ore); border: 2px solid var(--ore-line); box-shadow: inset 0 2px 0 var(--ore-hi), inset 0 -4px 0 var(--ore-lo); font-family: var(--f-ore); }
.feat-icon { --n: 2px; grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; background: var(--ore-green); color: #fff; border: 2px solid var(--ore-line); box-shadow: inset 0 3px 0 var(--ore-green-hi), inset 0 -4px 0 var(--ore-green-lo); }
.feat-icon .px { width: 28px; height: 28px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.3)); }
.feat b { font-size: 16px; font-weight: 700; line-height: 1.5; color: #fff; }
.feat > span:last-child { color: var(--ore-muted); font-size: 13px; line-height: 1.6; }

.srv-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.srv-card { --n: 3px; padding: clamp(20px, 2.6vw, 30px); background: var(--ore); color: #fff; border: 3px solid var(--ore-line); box-shadow: inset 3px 3px 0 var(--ore-2), inset -3px -3px 0 var(--ore-lo); font-family: var(--f-ore); }
.srv-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.srv-status { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--ore-line); box-shadow: inset 2px 2px 0 #0e0e0f, inset -2px -2px 0 var(--ore-2); font-family: var(--f-px); font-size: 16px; letter-spacing: .04em; color: var(--ore-muted); }
.srv-status .dot { width: 10px; height: 10px; background: var(--dim); position: relative; }
.srv-status b { font-weight: 400; color: #fff; }
.srv-status[data-state="checking"] .dot { animation: blink .8s steps(2) infinite; }
.srv-status[data-state="online"] .dot { background: var(--ore-green-text); animation: pulse-g 1.8s ease-out infinite; }
.srv-status[data-state="online"] b { color: var(--ore-green-text); }
.srv-status[data-state="offline"] b { color: var(--ore-muted); }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 rgba(95,193,74,.6); } 100% { box-shadow: 0 0 0 10px rgba(95,193,74,0); } }
.srv-ed { display: inline-flex; gap: 2px; padding: 2px; background: var(--ore-line); }
.srv-ed button { border: 0; cursor: pointer; padding: 6px 14px 9px; font-family: var(--f-px); font-size: 16px; color: #fff; background: var(--ore-2); box-shadow: inset 0 2px 0 var(--ore-hi), inset 0 -3px 0 var(--ore-lo); text-shadow: 2px 2px 0 rgba(0,0,0,.35); transition: background-color .15s ease, color .15s ease; }
.srv-ed button:hover { background: #58585a; }
.srv-ed button[aria-selected="true"] { background: var(--ore-light); color: var(--ore-line); box-shadow: inset 0 2px 0 var(--ore-light-hi), inset 0 -3px 0 var(--ore-light-lo); text-shadow: none; }
.srv-field { display: grid; gap: 8px; margin-bottom: 16px; }
.srv-lbl { font-size: 13px; font-weight: 700; color: var(--ore-text); display: flex; gap: 10px; align-items: baseline; }
.srv-lbl small { font-family: var(--f-px); font-weight: 400; letter-spacing: .14em; color: var(--ore-dim); font-size: 12px; }
/* アドレスは途中で折り返さず1行で見せる。文字の大きさは欄の幅とアドレスの文字数（--addr-len、main.js が入れる）から決める
   （ドット文字は半角1文字が約0.5文字ぶん＋字間）。欄がせまいときは、コピーのボタンをアドレスの下に置く */
.srv-field { container-type: inline-size; }
.srv-row { display: flex; align-items: stretch; gap: 8px; }
.srv-code {
  --addr-w: calc(100cqi - 246px);   /* 欄の幅 − コピーのボタン(196) − すき間(8) − 内側の余白と枠(36) − ゆとり */
  flex: 1 1 0; min-width: 0; padding: 12px 16px; display: flex; align-items: center;
  background: #000; border: 2px solid #a0a0a0; box-shadow: 0 0 0 2px var(--ore-line);
  font-family: var(--f-px); font-size: clamp(14px, calc(var(--addr-w) / (var(--addr-len, 22) * .54)), 24px); letter-spacing: .02em;
  white-space: nowrap; overflow-x: auto; scrollbar-width: none; color: #fff;
}
.srv-code::-webkit-scrollbar { display: none; }
.copy-btn { flex: none; width: 196px; padding-inline: 12px; }
@container (max-width: 470px) {
  .srv-row { flex-direction: column; }
  .srv-code { --addr-w: calc(100cqi - 42px); flex: none; }
  .copy-btn { width: auto; }
}
/* 「コピー」「コピーしました」「選択しました」は同じ場所に重ねて、出すものだけ見せる（ボタンの幅が変わらない） */
.copy-lbl { display: grid; justify-items: center; }
.copy-lbl > span { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; }
.copy-btn:not([data-state="done"]):not([data-state="sel"]) [data-l=""],
.copy-btn[data-state="done"] [data-l="done"],
.copy-btn[data-state="sel"] [data-l="sel"] { visibility: visible; }
.copy-btn.is-done { --bg: var(--gold); --hi: #ffe39a; --lo: #c7900c; --fg: var(--wood-line); text-shadow: none; }
.srv-spec { margin: 22px 0 0; display: grid; gap: 8px; padding-top: 16px; border-top: 2px solid var(--ore-2); }
.srv-spec div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; font-size: 14px; }
.srv-spec dt { color: var(--ore-muted); }
.srv-spec dd { margin: 0; font-weight: 700; }
.srv-spec small { display: inline-block; font-weight: 500; color: var(--ore-dim); margin-left: 4px; }
.srv-stamp {
  position: absolute; right: 20px; top: 14px; padding: 4px 14px; border: 3px solid var(--ore-green-text); color: var(--ore-green-text); background: var(--ore-line);
  font-family: var(--f-px); font-size: 22px; letter-spacing: .1em; transform: rotate(8deg) scale(2); opacity: 0; pointer-events: none;
}
.srv-card.is-copied .srv-stamp { animation: stamp 1.4s var(--ease-out) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(8deg) scale(2.2); } 14% { opacity: 1; transform: rotate(8deg) scale(.95); } 22% { transform: rotate(8deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: rotate(8deg) scale(1); } }
.howto-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 20px; }
.howto-title .px { width: 20px; height: 20px; color: var(--gold); }
.mc-server .howto-title { font-family: var(--f-px); font-size: 24px; font-weight: 400; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-server .howto-title .px { color: var(--ore-green-text); filter: drop-shadow(2px 2px 0 #3f3f3f); }
.srv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.srv-steps li { --n: 2px; position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px 16px 14px; background: var(--ore); color: #fff; border: 2px solid var(--ore-line); box-shadow: inset 0 2px 0 var(--ore-hi), inset 0 -4px 0 var(--ore-lo); font-family: var(--f-ore); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; padding-bottom: 3px; background: var(--ore-light); color: var(--ore-line); font-family: var(--f-px); font-size: 24px; border: 2px solid var(--ore-line); box-shadow: inset 0 2px 0 var(--ore-light-hi), inset 0 -4px 0 var(--ore-light-lo); }
.srv-steps b { display: block; font-size: 16px; font-weight: 700; }
.srv-steps span:not(.step-n) { display: block; color: var(--ore-muted); font-size: 13px; line-height: 1.6; }
.step-go { font-family: var(--f-px); font-size: 16px; text-decoration: none; padding: 6px 14px 10px; background: var(--discord); color: #fff; white-space: nowrap; border: 2px solid var(--ore-line); box-shadow: inset 0 2px 0 #8891f7, inset 0 -4px 0 #3540b8; text-shadow: 2px 2px 0 rgba(0,0,0,.3); transition: transform .25s var(--ease-back); }
.step-go:hover { transform: translateY(-2px); }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: url(../img/px/grass.png) 0 0 / 128px 40px repeat-x, url(../img/px/dirt.png) 0 40px / 64px 64px; image-rendering: pixelated; }

/* これまでの参加型企画（ゲームのワールド一覧のように、画像・名前・日付を1つずつ並べる）
 * 押せる所は動かさない（光らせる・中の絵を少し大きくするだけ）ので、当たり判定がずれない */
.pevs { margin-top: clamp(80px, 9vw, 120px); }
.pev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 28px); }
.pev {
  --n: 3px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 34px); align-items: start;
  padding: clamp(14px, 1.8vw, 20px); background: var(--ore); color: #fff; border: 3px solid var(--ore-line);
  box-shadow: inset 3px 3px 0 var(--ore-2), inset -3px -3px 0 var(--ore-lo); font-family: var(--f-ore);
}
.pev-pics { display: grid; gap: 8px; min-width: 0; }
.pev-media { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; background: #000; border: 2px solid #a0a0a0; box-shadow: 0 0 0 2px var(--ore-line); color: #fff; }
button.pev-media { cursor: pointer; }
.pev-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .3s ease; }
.pev-media::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: box-shadow .15s ease; }
button.pev-media:hover img { transform: scale(1.04); filter: brightness(1.08); }
button.pev-media:hover::after { box-shadow: inset 0 0 0 3px #fff; }
button.pev-media:focus-visible { outline-offset: 3px; }
/* 左下の「▶ 再生」はいつも出す。まんなかの大きい再生マークはカーソルを乗せたときだけ（ふだんは画像のロゴなどを隠さない） */
.pev-watch {
  position: absolute; z-index: 2; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 5px 8px;
  background: var(--ore-green); color: #fff; border: 2px solid var(--ore-line); box-shadow: inset 0 2px 0 var(--ore-green-hi), inset 0 -3px 0 var(--ore-green-lo);
  font-family: var(--f-px); font-size: 15px; line-height: 1.3; letter-spacing: .06em; text-shadow: 2px 2px 0 rgba(0,0,0,.3);
}
.pev-watch svg { width: 14px; height: 14px; fill: currentColor; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.3)); }
.pev-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(0,0,0,.42), rgba(0,0,0,.12)); opacity: 0; transition: opacity .2s ease; }
.pev-play {
  --n: 3px; position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 76px; height: 76px;
  background: var(--ore-green); color: #fff; border: 3px solid var(--ore-line); box-shadow: inset 0 4px 0 var(--ore-green-hi), inset 0 -6px 0 var(--ore-green-lo);
  opacity: 0; scale: .7; transition: opacity .2s ease, scale .35s var(--ease-back);
}
.pev-play svg { width: 34px; height: 34px; margin: 0 0 3px 5px; fill: currentColor; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.3)); }
button.pev-media:hover::before, button.pev-media:focus-visible::before { opacity: 1; }
button.pev-media:hover .pev-play, button.pev-media:focus-visible .pev-play { opacity: 1; scale: 1; }
/* 画面写真（ホットバーのマス目のように並べる） */
.pev-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 6px; }
.pev-shots li { position: relative; min-width: 0; }
.pev-shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; cursor: zoom-in; background: #000; border: 2px solid var(--ore-line); }
.pev-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease-out); }
.pev-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.16); transition: box-shadow .15s ease; }
.pev-shot:hover img { transform: scale(1.08); }
.pev-shot:hover::after { box-shadow: inset 0 0 0 2px #fff; }
.pev-shot:focus-visible { outline-offset: 2px; }
/* 並べきれない分は、最後のマスに「+2」のように出す（押すと大きい画面で続きが見られる） */
.pev-shots li:nth-child(n + 6) { display: none; }
.pev-shots li[data-more-pc]::after { content: attr(data-more-pc); position: absolute; inset: 2px; display: grid; place-items: center; background: rgba(0,0,0,.6); font-family: var(--f-px); font-size: 20px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none; }
.pev-body { display: grid; align-content: start; min-width: 0; padding-top: 2px; }
.pev-meta { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; line-height: 1.3; }
.pev-kind { display: inline-block; padding: 3px 10px 5px; background: var(--ore-green); color: #fff; border: 2px solid var(--ore-line); box-shadow: inset 0 2px 0 var(--ore-green-hi), inset 0 -3px 0 var(--ore-green-lo); font-family: var(--f-px); font-size: 15px; letter-spacing: .06em; text-shadow: 2px 2px 0 rgba(0,0,0,.3); }
.pev-date { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-family: var(--f-px); font-size: 16px; letter-spacing: .03em; color: var(--ore-muted); }
.pev-tilde { color: var(--ore-dim); }
.pev-date small { margin-left: 4px; padding: 2px 8px 3px; background: var(--ore-line); color: var(--ore-text); font-size: 13px; box-shadow: inset 2px 2px 0 #0e0e0f; }
.pev-title { --u: .0625em; margin: 0; font-family: var(--f-px); font-weight: 400; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.25; color: #fff; text-shadow: var(--u) 0 0 #fff, var(--u) var(--u) 0 #3f3f3f, calc(var(--u) * 2) var(--u) 0 #3f3f3f; overflow-wrap: anywhere; }
.pev-sub { margin: 6px 0 0; font-family: var(--f-px); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ore-green-text); text-shadow: 2px 2px 0 var(--ore-green-lo); }
.pev-text { margin: 14px 0 0; font-size: 14.5px; font-weight: 500; line-height: 1.9; color: var(--ore-text); text-wrap: pretty; }
.pev-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pev-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 5px; background: var(--ore-line); box-shadow: inset 2px 2px 0 #0e0e0f, inset -2px -2px 0 var(--ore-2); font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--ore-text); }
.pev-facts li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--ore-green-text); box-shadow: 2px 2px 0 var(--ore-green-lo); }
.pev-btns { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mc-server .pev-btn { min-height: 52px; padding-inline: 20px; font-size: 17px; }
.pev-btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
/* 2つ目からの動画は、灰色の小さいボタン */
.mc-server .pev-btn.is-sub { --bg: var(--ore-light); --hi: var(--ore-light-hi); --lo: var(--ore-light-lo); --fg: var(--ore-line); min-height: 44px; padding-inline: 16px; font-size: 15px; text-shadow: none; }

/* 地面の下（配布物） */
.mc-under {
  position: relative; padding: clamp(70px, 8vw, 110px) 0 clamp(100px, 11vw, 150px);
  background: linear-gradient(rgba(30, 15, 10, .55), rgba(14, 7, 5, .9)), url(../img/px/dirt.png) 0 0 / 64px 64px; image-rendering: pixelated;
}
/* 下の黒へ、ブロックの段々で切り替える（凸が上＝土に食い込む向き） */
.mc-under::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; background: var(--ink); -webkit-mask: url(../img/px/edge.png) 0 0 / 128px 16px repeat-x; mask: url(../img/px/edge.png) 0 0 / 128px 16px repeat-x; }
.mc-under .px-lead { color: var(--cream-2); }
.works-note {
  display: flex; align-items: flex-start; gap: 10px; margin: -14px auto 34px; padding: 10px 16px; max-width: 100%; width: fit-content;
  background: var(--cream-hi); color: var(--cream-ink); border: 3px solid var(--wood-line); box-shadow: inset -3px -3px 0 var(--cream-2); font-size: 14px; font-weight: 800; text-wrap: pretty;
}
.works-note .px { width: 18px; height: 18px; margin-top: 4px; color: var(--tomato); }
.works-note a { color: #3540b8; font-weight: 900; }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); perspective: 1100px; max-width: 980px; margin-inline: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,.6)); }
/* ゲームソフトのカードと同じく、浮く・傾くのは中の .work-in だけ（.work は当たり判定で動かさない） */
.work {
  --rx: 0deg; --ry: 0deg; --ty: 0px;
  position: relative; display: flex; text-decoration: none; color: var(--cream-ink);
  transform-style: preserve-3d;
}
.work-in {
  position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--cream-hi); border: 4px solid var(--wood-line);
  transform: translateY(var(--ty)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out); will-change: transform;
}
.work:hover, .work:focus-visible { --ty: -8px; }
.work.is-tilting .work-in { transition: transform .12s linear; }
.work:focus-visible { outline: none; }
.work:focus-visible .work-in { outline: 3px solid var(--yellow); outline-offset: -7px; }
.work-art {
  position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden;
  background: conic-gradient(from 90deg at 50% 50%, rgba(0,0,0,.1) 25%, transparent 0 50%, rgba(0,0,0,.1) 0 75%, transparent 0) 0 0 / 32px 32px, var(--c);
  border-bottom: 4px solid var(--wood-line); box-shadow: inset 4px 4px 0 rgba(255,255,255,.25), inset -4px -4px 0 rgba(0,0,0,.2);
}
.work-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.4), transparent 55%); opacity: 0; transition: opacity .3s ease; }
.work:hover .work-art::after { opacity: 1; }
.work-slot { position: relative; display: grid; place-items: center; width: 46%; aspect-ratio: 1; background: rgba(0,0,0,.22); box-shadow: inset 4px 4px 0 rgba(0,0,0,.3), inset -4px -4px 0 rgba(255,255,255,.2); }
.work-slot .px { width: 72%; height: 72%; color: #fff; filter: drop-shadow(4px 4px 0 rgba(0,0,0,.3)); transition: transform .5s var(--ease-back); }
.work:hover .work-slot .px { transform: scale(1.12) rotate(-6deg); }
.work-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-tag { position: absolute; z-index: 1; left: 10px; top: 10px; padding: 3px 9px; background: var(--wood-line); color: #fff; font-family: var(--f-px); font-size: 12px; letter-spacing: .14em; }
/* アイコン画像は、くぼんだ枠の中に入れる */
.work-slot.has-img { padding: 7px; }
.work-slot img { position: static; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-back); }
.work:hover .work-slot img { transform: scale(1.06) rotate(-3deg); }
/* アップデートした作品の矢印のリボン（右上） */
.work-up {
  --s: 5px;
  position: absolute; z-index: 1; right: 0; top: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 6px calc(var(--s) * 2 + 7px); background: var(--tomato); color: #fff;
  font-family: var(--f-px); font-size: 12px; letter-spacing: .1em; line-height: 1.3;
  box-shadow: inset 0 3px 0 var(--tomato-hi), inset 0 -4px 0 #9a0a12;
  clip-path: polygon(calc(var(--s) * 2) 0, 100% 0, 100% 100%, calc(var(--s) * 2) 100%, calc(var(--s) * 2) 75%, var(--s) 75%, var(--s) 62.5%, 0 62.5%, 0 37.5%, var(--s) 37.5%, var(--s) 25%, calc(var(--s) * 2) 25%);
  transition: transform .3s var(--ease-out);
}
.work-up .px { width: 12px; height: 12px; }
.work:hover .work-up { transform: translateX(-5px); }
.work-body { display: grid; gap: 6px; padding: 16px 18px 18px; flex: 1; align-content: start; min-height: 180px; }
.work-cat { font-size: 12.5px; font-weight: 900; color: var(--c); letter-spacing: .06em; }
.work-cat em { margin-left: 8px; padding: 1px 7px 2px; background: var(--gold); color: var(--wood-line); font-style: normal; font-size: 11.5px; letter-spacing: .04em; }
.work-ver { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 2px 8px 3px; background: var(--cream); color: var(--cream-ink); border: 2px solid var(--wood-line); box-shadow: inset 0 -2px 0 var(--cream-2); font-family: var(--f-px); font-size: 12.5px; line-height: 1.4; }
.work-ver .px { flex: none; width: 13px; height: 13px; color: var(--wood); }
.work h3 { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.45; }
.work p { margin: 0; font-size: 13px; color: var(--cream-muted); line-height: 1.7; }
.work-go { margin-top: auto; padding-top: 12px; border-top: 3px dashed var(--cream-2); display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 900; }
.work-go .px { width: 16px; height: 16px; color: var(--c); transition: transform .3s var(--ease-out); }
.work:hover .work-go .px { transform: translateX(5px); }

/* ---------- DOWNLOADS（作品ごとのダウンロードページ） ---------- */
.dl-hero { min-height: max(460px, 62svh); padding-block: calc(var(--hdr) + 56px) 120px; }
.dl-hero .mc-title { font-size: clamp(44px, 7.2vw, 100px); }
.crumbs { display: flex; align-items: center; gap: 8px; padding: 3px 12px 4px; background: rgba(24, 9, 32, .8); border: 3px solid var(--wood-line); font-family: var(--f-px); font-size: 13px; color: var(--cream-2); }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.dl-main { padding: clamp(56px, 6vw, 90px) 0 calc(clamp(80px, 9vw, 120px) + 88px); background: linear-gradient(180deg, #170c2b 0%, #141036 40%, #1b1645 70%, #2a1f5a 100%); }
.dl-main .ground { height: 88px; }
.dl-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; background: var(--ink); -webkit-mask: url(../img/px/edge.png) 0 0 / 128px 16px repeat-x; mask: url(../img/px/edge.png) 0 0 / 128px 16px repeat-x; }
.page-dl main { padding-bottom: 24px; }
.dl-grid { display: grid; grid-template-columns: minmax(290px, 360px) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.dl-noscript { margin: 0; font-weight: 800; }
.dl-noscript a { color: #3540b8; font-weight: 900; }

/* 左: 作品一覧（インベントリ） */
/* 画面より高いときは、下の端が見えた所で止まる（--inv-h は downloads.js が入れる） */
.inv { position: sticky; top: calc(var(--hdr) + 20px); top: min(calc(var(--hdr) + 20px), calc(100svh - var(--inv-h, 0px) - 20px)); padding: 16px; }
.inv-title { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font-family: var(--f-px); font-size: 18px; line-height: 1.3; color: var(--cream); text-shadow: 2px 2px 0 var(--wood-line); }
.inv-title .px { width: 22px; height: 22px; color: var(--gold); }
.inv-tabs { display: flex; gap: 3px; padding: 3px; margin-bottom: 12px; background: var(--wood-line); }
.inv-tab { flex: 1 1 auto; min-width: 0; display: inline-flex; justify-content: center; align-items: baseline; gap: 6px; padding: 6px 8px 8px; border: 0; cursor: pointer; font-size: 13px; font-weight: 900; white-space: nowrap; color: var(--cream-2); background: var(--wood-lo); box-shadow: inset 0 -3px 0 #3a2924; transition: background-color .15s ease, color .15s ease; }
.inv-tab small { font-family: var(--f-px); font-size: 12px; font-weight: 400; opacity: .75; }
.inv-tab:hover { color: #fff; }
.inv-tab[aria-pressed="true"] { background: var(--wood-cell); color: var(--wood-line); box-shadow: inset 3px 3px 0 #c3b6a9, inset -3px -3px 0 #84756a; }
/* 検索（木のパネルにくぼんだ暗い入力欄） */
.inv { --px-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v1H0zM5 0h2v1H5zM0 1h3v1H0zM4 1h3v1H4zM1 2h5v1H1zM2 3h3v1H2zM1 4h5v1H1zM0 5h3v1H0zM4 5h3v1H4zM0 6h2v1H0zM5 6h2v1H5z'/%3E%3C/svg%3E"); }
.inv-search { position: relative; display: flex; align-items: center; margin-bottom: 10px; background: #1c1214; border: 3px solid var(--wood-line); box-shadow: inset 4px 4px 0 #0f0909, inset -3px -3px 0 #3a2924; }
.inv-search:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.inv-search .px { position: absolute; left: 11px; width: 18px; height: 18px; color: var(--wood-cell); pointer-events: none; transition: color .15s ease; }
.inv-search:focus-within .px { color: var(--gold); }
.inv-search input { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 42px; margin: 0; padding: 0 10px 0 38px; border: 0; border-radius: 0; background: none; outline: none; color: #fff; font-family: var(--f-px); font-size: 16px; }
.inv-search input::placeholder { color: var(--wood-cell); opacity: 1; }
.inv-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-left: 6px; cursor: pointer; background: var(--cream-2); -webkit-mask: var(--px-x) center / contain no-repeat; mask: var(--px-x) center / contain no-repeat; }
.inv-search input::-webkit-search-cancel-button:hover { background: #fff; }

/* プルダウン（▼はドット絵。一覧の絞り込みと、右のダウンロードの選択で使う） */
.inv-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-bottom: 12px; }
.inv-filters:empty { display: none; }
.sel-field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.sel-lbl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; font-size: 12px; font-weight: 900; line-height: 1.35; color: var(--cream-2); }
.sel-lbl small { font-size: 11.5px; font-weight: 800; color: var(--wood-cell); white-space: nowrap; }
.sel { --p: 2px; position: relative; display: block; min-width: 0; }
.sel::after {
  content: ""; position: absolute; right: calc(var(--p) * 5); top: 50%; width: calc(var(--p) * 5); height: calc(var(--p) * 3); margin-top: calc(var(--p) * -1.5);
  background: var(--gold); pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 33.34%, 80% 33.34%, 80% 66.67%, 60% 66.67%, 60% 100%, 40% 100%, 40% 66.67%, 20% 66.67%, 20% 33.34%, 0 33.34%);
}
.sel select, .sel-val {
  display: block; width: 100%; min-width: 0; height: 40px; margin: 0; padding: 0 30px 0 10px;
  border: 3px solid var(--wood-line); border-radius: 0; background: var(--wood-lo); color: var(--cream); box-shadow: inset 0 -3px 0 #3a2924;
  font-family: var(--f-px); font-size: 15px; line-height: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sel select { -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.sel select:hover { background: #54403a; color: #fff; }
.sel select:focus-visible { outline-offset: 2px; }
.sel select option { background: #2a1719; color: var(--cream); }
.sel.is-set select { background: var(--wood-cell); color: var(--wood-line); box-shadow: inset 3px 3px 0 #c3b6a9, inset -3px -3px 0 #84756a; }
.sel.is-set::after { background: var(--wood-line); }
.sel.has-ic > .px { position: absolute; z-index: 1; left: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--gold); pointer-events: none; }
/* 1つしかないものは選べないので、くぼんだ表示にする */
.sel.is-one::after { display: none; }
.sel-val { padding-right: 10px; background: rgba(0,0,0,.2); box-shadow: inset 3px 3px 0 rgba(0,0,0,.28); cursor: default; }

/* 件数と、条件のリセット */
.inv-count { margin: 0 0 8px; min-height: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 12.5px; font-weight: 800; line-height: 1.4; color: var(--cream-2); }
.inv-count b { margin-right: 3px; font-family: var(--f-px); font-size: 18px; font-weight: 400; color: var(--gold); }
.inv-reset { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 4px; cursor: pointer; white-space: nowrap; border: 3px solid var(--wood-line); background: var(--wood-lo); color: var(--cream); box-shadow: inset 0 -3px 0 #3a2924; font-size: 12px; font-weight: 900; transition: background-color .15s ease, color .15s ease; }
.inv-reset::before { content: ""; width: 10px; height: 10px; background: currentColor; -webkit-mask: var(--px-x) center / contain no-repeat; mask: var(--px-x) center / contain no-repeat; }
.inv-reset:hover { background: #54403a; color: #fff; }
.inv-reset:active { transform: translateY(2px); box-shadow: none; }
.inv-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; padding: 10px; background: var(--wood-lo); box-shadow: inset 4px 4px 0 #3a2924, inset -4px -4px 0 #5a443c; }
.inv-empty { position: absolute; inset: 0; z-index: 1; margin: 0; display: grid; place-items: center; padding: 10px; pointer-events: none; }
.inv-empty span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 9px; background: rgba(22, 6, 30, .95); color: #fff; border: 2px solid #12021a; box-shadow: inset 0 0 0 2px #4a17a6, inset 0 0 0 4px rgba(22, 6, 30, .95); font-family: var(--f-px); font-size: 14px; line-height: 1.5; }
.inv-empty .px { flex: none; width: 18px; height: 18px; color: var(--gold); }
.slot { display: grid; gap: 6px; justify-items: stretch; align-content: start; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; color: var(--cream-2); }
.slot-box { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: #3a2924; box-shadow: inset 4px 4px 0 #22140f, inset -4px -4px 0 #7d6156; transition: background-color .15s ease, box-shadow .15s ease; }
.slot-box::after { content: ""; position: absolute; inset: 4px; background: rgba(255,255,255,.22); opacity: 0; transition: opacity .12s ease; pointer-events: none; }
.slot[data-id]:hover .slot-box::after { opacity: 1; }
.slot-ic {
  width: 74%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; color: #fff;
  background: conic-gradient(from 90deg at 50% 50%, rgba(0,0,0,.12) 25%, transparent 0 50%, rgba(0,0,0,.12) 0 75%, transparent 0) 0 0 / 50% 50%, var(--c);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.28), inset -3px -3px 0 rgba(0,0,0,.25);
  transition: transform .35s var(--ease-back);
}
.slot-ic .px { width: 64%; height: 64%; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.3)); }
.slot-ic img { width: 100%; height: 100%; object-fit: cover; }
.slot[data-id]:hover .slot-ic { transform: scale(1.08) rotate(-4deg); }
/* アップデートした作品の「UP」 */
.slot-up { position: absolute; z-index: 1; left: -4px; top: 5px; padding: 1px 5px 2px; background: var(--tomato); color: #fff; font-family: var(--f-px); font-size: 11px; line-height: 1.25; letter-spacing: .08em; box-shadow: inset 0 -2px 0 #9a0a12, 2px 2px 0 var(--wood-line); pointer-events: none; }
.slot[aria-pressed="true"] .slot-box { background: var(--wood-cell); box-shadow: inset 4px 4px 0 #c3b6a9, inset -4px -4px 0 #84756a, 0 0 0 3px var(--gold); }
.slot[aria-pressed="true"] .slot-ic { animation: slot-pop .5s var(--ease-back); }
@keyframes slot-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: none; } }
/* 短い名前は2行の長さをそろえて折り返す（「サーバープラグイ/ン」のように1文字だけ残らないように） */
.slot-name { min-height: 2.7em; font-size: 12px; font-weight: 800; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; word-break: normal; line-break: strict; text-wrap: balance; }
.slot[aria-pressed="true"] .slot-name { color: var(--gold); }
.slot.is-empty { cursor: default; }
.slot.is-empty .slot-box { opacity: .7; }
.slot:focus-visible { outline: none; }
.slot:focus-visible .slot-box { outline: 3px solid var(--yellow); outline-offset: 2px; }
.inv-note { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--cream-2); line-height: 1.5; }
.inv-note .px { width: 16px; height: 16px; color: var(--gold); }

/* 右: 選んだ作品 */
#discord { scroll-margin-top: 28px; }
#redhub { scroll-margin-top: calc(24px - clamp(80px, 9vw, 120px)); }   /* トップの「Minecraftサーバーに参加」で、REDHUBのロゴがヘッダーのすぐ下に来る */
.dl-detail { padding: clamp(18px, 2.4vw, 28px); background: var(--cream-hi); color: var(--cream-ink); box-shadow: inset -4px -4px 0 var(--cream-2); scroll-margin-top: 16px; min-height: 420px; }
.dl-detail.is-swap > * { animation: dt-in .5s var(--ease-out) both; }
.dl-detail.is-swap > :nth-child(2) { animation-delay: .04s; }
.dl-detail.is-swap > :nth-child(3) { animation-delay: .08s; }
.dl-detail.is-swap > :nth-child(n+4) { animation-delay: .12s; }
@keyframes dt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dt-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 18px; }
.dt-icon {
  width: 76px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; color: #fff; border: 4px solid var(--wood-line);
  background: conic-gradient(from 90deg at 50% 50%, rgba(0,0,0,.12) 25%, transparent 0 50%, rgba(0,0,0,.12) 0 75%, transparent 0) 0 0 / 50% 50%, var(--c);
  box-shadow: inset 4px 4px 0 rgba(255,255,255,.28), inset -4px -4px 0 rgba(0,0,0,.25);
}
.dt-icon .px { width: 62%; height: 62%; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.3)); }
.dt-icon img { width: 100%; height: 100%; object-fit: cover; }
.dt-kicker { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.4; }
.dt-type { padding: 2px 9px 3px; background: var(--wood-line); color: #fff; font-family: var(--f-px); font-size: 12px; letter-spacing: .14em; }
.dt-cat { padding: 2px 9px 3px; background: var(--c); color: #fff; font-size: 12px; font-weight: 900; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.dt-series { padding: 2px 9px 3px; background: var(--gold); color: var(--wood-line); font-size: 12px; font-weight: 900; }
.dt-share {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 5px; cursor: pointer; white-space: nowrap;
  background: var(--cream); color: var(--cream-ink); border: 3px solid var(--wood-line); box-shadow: inset 0 -3px 0 var(--cream-2);
  font-size: 12px; font-weight: 900; transition: background-color .15s ease, transform .12s ease;
}
.dt-share .px { width: 14px; height: 14px; color: var(--wood); }
.dt-share:hover { background: #fff; }
.dt-share:active { transform: translateY(2px); box-shadow: none; }
.dt-share.is-done { background: var(--gold); }
.dt-title { margin: 0; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; overflow-wrap: anywhere; }
.dt-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.4; }
.dt-meta-lbl { margin-right: 2px; font-size: 12px; font-weight: 900; color: var(--cream-muted); }
.dt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 3px; background: var(--cream); color: var(--cream-ink); border: 2px solid var(--wood-line); box-shadow: inset 0 -2px 0 var(--cream-2); font-family: var(--f-px); font-size: 13px; white-space: nowrap; }
.dt-chip .px { width: 14px; height: 14px; color: var(--wood); }

.dt-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 18px; padding: 0; overflow: hidden; background: #000; border: 4px solid var(--wood-line); color: #fff; }
button.dt-media { cursor: pointer; }
.dt-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .3s ease; }
button.dt-media:hover img { transform: scale(1.04); filter: brightness(.85); }
.dt-tag { position: absolute; z-index: 1; left: 10px; top: 10px; padding: 3px 10px; background: var(--wood-line); color: #fff; font-family: var(--f-px); font-size: 12.5px; letter-spacing: .14em; }
.dt-play {
  --n: 4px; position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 84px; height: 84px; translate: -50% -50%;
  background: var(--tomato); color: #fff; border: 4px solid var(--wood-line); box-shadow: inset 0 4px 0 var(--tomato-hi), inset 0 -7px 0 #9a0a12;
  clip-path: polygon(var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)), 0 var(--n), var(--n) var(--n));
  transition: transform .35s var(--ease-back);
}
.dt-play svg { width: 40px; height: 40px; margin-left: 4px; fill: currentColor; }
button.dt-media:hover .dt-play { transform: scale(1.12); }
.dt-art { display: grid; place-items: center; background: conic-gradient(from 90deg at 50% 50%, rgba(0,0,0,.1) 25%, transparent 0 50%, rgba(0,0,0,.1) 0 75%, transparent 0) 0 0 / 40px 40px, var(--c); box-shadow: inset 4px 4px 0 rgba(255,255,255,.25), inset -4px -4px 0 rgba(0,0,0,.2); }
.dt-art-ic { display: grid; place-items: center; width: 30%; aspect-ratio: 1; background: rgba(0,0,0,.22); box-shadow: inset 4px 4px 0 rgba(0,0,0,.3), inset -4px -4px 0 rgba(255,255,255,.2); }
.dt-art-ic .px { width: 70%; height: 70%; filter: drop-shadow(4px 4px 0 rgba(0,0,0,.3)); animation: px-bob 2.4s ease-in-out infinite; }
.dt-art-ic img { position: static; width: 100%; height: 100%; object-fit: cover; }
@keyframes px-bob { 50% { transform: translateY(-6%); } }
.dt-about { margin-bottom: 4px; }
.dt-about p { margin: 0 0 .7em; font-size: 15px; line-height: 1.9; text-wrap: pretty; }
.dt-about .dt-sub { margin: 1.2em 0 .5em; display: flex; align-items: center; gap: 8px; font-weight: 900; line-height: 1.5; }
.dt-about .dt-sub::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--c); box-shadow: 2px 2px 0 var(--wood-line); }
/* ` で囲んだコマンド */
.dl-detail code { margin: 0 1px; padding: 1px 6px 2px; background: var(--wood-line); color: #fff; font-family: var(--f-px); font-size: .92em; line-height: 1.5; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* 動画の下の一言（どの動画で使ったか など） */
.dt-cap { margin: -8px 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; font-weight: 800; line-height: 1.6; color: var(--cream-muted); }
.dt-cap .px { flex: none; width: 16px; height: 16px; color: var(--c); }
.dt-cap span { flex: 1 1 16em; min-width: 0; }
.dt-cap a { flex: none; margin-left: auto; color: #c4161d; font-weight: 900; text-decoration: none; white-space: nowrap; }
.dt-cap a:hover { text-decoration: underline; }

/* アップデートのお知らせ（矢印のリボン。押すと履歴が開く） */
.dt-up { margin: 0 0 18px; }
/* リボンの形に沿った黒いふち（clip-path で切った形には border が付かないので、影を4方向に重ねる） */
.dt-up-rib { margin: 3px; filter: drop-shadow(3px 0 0 var(--wood-line)) drop-shadow(-3px 0 0 var(--wood-line)) drop-shadow(0 3px 0 var(--wood-line)) drop-shadow(0 -3px 0 var(--wood-line)); }
.dt-up-rib:has(.dt-up-bar:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 5px; }
.dt-up-bar {
  --s: 9px;
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 12px;
  width: 100%; min-height: 54px; margin: 0; padding: 8px calc(var(--s) * 3 + 10px) 10px 9px; border: 0; cursor: pointer; text-align: left;
  background: var(--tomato); color: #fff;
  box-shadow: inset 0 4px 0 var(--tomato-hi), inset 0 -6px 0 #9a0a12;
  clip-path: polygon(0 0, calc(100% - var(--s) * 3) 0, calc(100% - var(--s) * 3) 12.5%, calc(100% - var(--s) * 2) 12.5%, calc(100% - var(--s) * 2) 25%, calc(100% - var(--s)) 25%, calc(100% - var(--s)) 37.5%, 100% 37.5%, 100% 62.5%, calc(100% - var(--s)) 62.5%, calc(100% - var(--s)) 75%, calc(100% - var(--s) * 2) 75%, calc(100% - var(--s) * 2) 87.5%, calc(100% - var(--s) * 3) 87.5%, calc(100% - var(--s) * 3) 100%, 0 100%);
  transition: transform .12s ease, filter .2s ease;
}
/* ときどき光が走る */
.dt-up-bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 56px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.3) 18% 46%, transparent 46% 62%, rgba(255,255,255,.3) 62% 74%, transparent 74%);
  transform: translateX(-80px) skewX(-18deg); animation: up-shine 4.2s ease-in-out 1s infinite;
}
@keyframes up-shine { 0% { transform: translateX(-80px) skewX(-18deg); } 35%, 100% { transform: translateX(1200px) skewX(-18deg); } }
.dt-up-bar:hover { filter: brightness(1.08); }
.dt-up-bar:active { transform: translateY(2px); }
.dt-up-bar:focus-visible { outline: none; }
.dt-up-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 5px 7px; background: var(--gold); color: var(--wood-line); font-family: var(--f-px); font-size: 14px; letter-spacing: .1em; line-height: 1.2; box-shadow: inset 0 3px 0 #ffe17e, inset 0 -3px 0 #c98f00; }
.dt-up-tag .px { width: 14px; height: 14px; animation: up-hop 1.2s linear infinite; }
@keyframes up-hop { 0%, 49% { transform: none; } 50%, 100% { transform: translateY(-2px); } }
.dt-up-text { min-width: 0; font-size: 15px; font-weight: 900; line-height: 1.5; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.dt-up-text b { margin-right: 10px; font-family: var(--f-px); font-weight: 400; font-size: 18px; color: var(--yellow); }
.dt-up-more { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 5px; background: rgba(0,0,0,.24); box-shadow: inset 2px 2px 0 rgba(0,0,0,.25); font-size: 12.5px; font-weight: 900; white-space: nowrap; transition: background-color .15s ease; }
.dt-up-more .px { width: 12px; height: 12px; transition: transform .25s var(--ease-out); }
.dt-up-bar:hover .dt-up-more, .dt-up-bar:focus-visible .dt-up-more { background: rgba(0,0,0,.4); }
.dt-up-bar[aria-expanded="true"] .dt-up-more .px { transform: rotate(180deg); }
.dt-up-log { margin-top: 12px; padding: 14px 16px 16px; background: var(--cream); border: 3px solid var(--wood-line); box-shadow: inset 0 -3px 0 var(--cream-2); }
.dt-up-log:not([hidden]) { animation: up-open .35s var(--ease-out) both; }
@keyframes up-open { from { opacity: 0; transform: translateY(-8px); } }
.dt-up-log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dt-up-log ol > li { position: relative; padding-left: 26px; }
.dt-up-log ol > li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 12px; height: 12px; background: var(--cream-2); box-shadow: 0 0 0 3px var(--wood-line); }
.dt-up-log ol > li.is-new::before { background: var(--tomato); }
.dt-up-log ol > li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: -12px; width: 4px; background: var(--wood-line); opacity: .35; }
.dt-up-h { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; line-height: 1.4; }
.dt-up-h b { font-family: var(--f-px); font-weight: 400; font-size: 18px; }
.dt-up-new { padding: 1px 7px 2px; background: var(--tomato); color: #fff; font-size: 11.5px; font-weight: 900; }
.dt-up-h time { font-family: var(--f-px); font-size: 13.5px; color: var(--cream-muted); }
.dt-up-t { margin: 4px 0 0; font-size: 14.5px; font-weight: 900; line-height: 1.6; }
.dt-up-log ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.dt-up-log ul li { position: relative; padding-left: 16px; font-size: 13.5px; font-weight: 700; line-height: 1.75; }
.dt-up-log ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 6px; background: var(--c); }

.dt-box { margin: 16px 0 22px; padding: clamp(16px, 2vw, 20px); background: var(--wood); color: var(--text); border: 4px solid var(--wood-line); box-shadow: inset 4px 4px 0 var(--wood-hi), inset -4px -4px 0 var(--wood-lo); }
.dt-lbl { margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 18px; color: var(--cream-hi); }
.dt-lbl small { font-family: var(--f-px); letter-spacing: .14em; color: var(--wood-cell); font-size: 11.5px; }
.dt-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 12px; margin: 0 0 14px; }
.dt-sel .sel-lbl { font-size: 13px; }
.dt-sel .sel { --p: 3px; }
.dt-sel .sel select, .dt-sel .sel-val { height: 50px; padding-left: 14px; font-size: 18px; line-height: 44px; color: #fff; }
.dt-sel .sel select { padding-right: 36px; }
.dt-sel .sel.has-ic select, .dt-sel .sel.has-ic .sel-val { padding-left: 44px; }
.dt-sel .sel.has-ic > .px { left: 14px; }
.dt-file { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; background: #1c1214; color: #fff; border: 3px solid var(--wood-line); box-shadow: inset 4px 4px 0 #0f0909, inset -3px -3px 0 #3a2924; font-family: var(--f-px); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.dt-file .px { width: 18px; height: 18px; color: var(--gold); }
.dt-file b { font-weight: 400; }
.dt-file small { color: var(--wood-cell); font-size: 13px; }
.dt-file.is-none { color: var(--cream-2); font-family: var(--f-body); font-size: 13.5px; font-weight: 800; }
.dt-file.is-none .px { color: var(--wood-cell); }
.dt-btn { width: 100%; min-height: 64px; font-size: 18px; }
.dt-btn .px { width: 24px; height: 24px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
a.dt-btn:hover .px { animation: dl-hop .6s var(--ease-out) infinite; }
@keyframes dl-hop { 50% { transform: translateY(3px); } }
.dt-btn.is-off { --bg: #8a7d74; --hi: #a99c92; --lo: #62574f; --fg: #e9e0d6; cursor: not-allowed; text-shadow: none; }
.dt-btn.is-off:hover { filter: none; }
.dt-btn.is-off:active { transform: none; box-shadow: inset 0 4px 0 var(--hi), inset 0 -7px 0 var(--lo); }
.dt-alt { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--cream-2); line-height: 1.5; }
.dt-alt > span:not(.brand) { flex: 0 1 auto; min-width: 0; }
.dt-alt .brand { width: 18px; height: 18px; color: #b9c0ff; }
.dt-alt a { flex: none; color: #c9cdff; font-weight: 900; text-decoration: none; white-space: nowrap; }
.dt-alt a:hover { text-decoration: underline; }
.dt-howto .howto-title { color: var(--cream-ink); }
.dt-howto ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 8px; }
.dt-howto li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; padding: 7px 12px 7px 7px; background: var(--cream); border: 3px solid var(--wood-line); font-size: 14px; font-weight: 800; line-height: 1.6; }
.dt-howto li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; background: var(--tomato); color: #fff; border: 3px solid var(--wood-line); box-shadow: inset 0 -4px 0 #9a0a12; font-family: var(--f-px); font-size: 17px; line-height: 1; }
.dt-howto li > span { min-width: 0; }
/* ゲームソフトの「関連タグ」（押すと一覧をその言葉で絞り込む）と「詳細情報」の表 */
.dt-info { margin-top: 24px; display: grid; gap: 20px; }
.dt-info .howto-title { color: var(--cream-ink); }
.dt-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dt-kw { display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 12px 6px 9px; cursor: pointer; background: var(--cream); color: var(--cream-ink); border: 2px solid var(--wood-line); box-shadow: inset 0 -3px 0 var(--cream-2); font-family: var(--f-body); font-size: 13.5px; font-weight: 800; line-height: 1.4; transition: background-color .15s ease, transform .15s var(--ease-out); }
.dt-kw::before { content: "#"; color: var(--c); font-weight: 900; }
.dt-kw:hover { background: #fff1c4; transform: translateY(-2px); }
.dt-kw:active { transform: translateY(1px); box-shadow: inset 0 2px 0 var(--cream-2); }
.dt-kw:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.dt-spec { margin: 0; background: var(--cream); border: 3px solid var(--wood-line); box-shadow: inset 0 -3px 0 var(--cream-2); }
.dt-spec > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); }
.dt-spec > div + div { border-top: 2px solid var(--cream-2); }
.dt-spec dt { padding: 8px 12px; background: rgba(94, 70, 62, .08); color: var(--cream-muted); font-size: 13px; font-weight: 900; line-height: 1.6; }
.dt-spec dd { margin: 0; padding: 8px 14px; font-size: 14px; font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
/* ほかのサイトで遊ぶ・落とすもの、制作チーム、作品ページへのリンク */
.dt-shots { margin: -6px 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dt-shot { display: block; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; cursor: zoom-in; background: #000; border: 3px solid var(--wood-line); }
.dt-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease-out); }
.dt-shot:hover img { transform: scale(1.06); }
/* 画面写真を大きく見る（common.js の openShot。木の枠。data-tone="ore" は REDHUB の欄の灰色の枠） */
.shot-view { --line: var(--wood-line); --btn: var(--cream); --btn-fg: var(--cream-ink); max-width: min(1280px, 94vw); padding: 0; border: 4px solid var(--line); background: #000; color: #fff; cursor: zoom-out; overflow: visible; }
.shot-view[data-tone="ore"] { --line: #1e1e1f; --btn: #d0d1d4; --btn-fg: #1e1e1f; }
.shot-view::backdrop { background: rgba(10, 5, 8, .82); }
.shot-view img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
.shot-x, .shot-nav { position: absolute; display: grid; place-items: center; padding: 0 0 3px; border: 3px solid var(--line); background: var(--btn); color: var(--btn-fg); font-weight: 900; line-height: 1; cursor: pointer; }
.shot-x { top: 6px; right: 6px; width: 38px; height: 38px; font-size: 22px; }
.shot-nav { top: 50%; width: 44px; height: 56px; margin-top: -28px; font-size: 34px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); transition: background-color .15s ease; }
.shot-nav:hover { background: #fff; }
.shot-prev { left: 6px; }
.shot-next { right: 6px; }
.shot-count { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; padding: 2px 10px 3px; background: rgba(0,0,0,.66); font-family: var(--f-px); font-size: 14px; letter-spacing: .08em; }
.shot-view:not(.is-multi) .shot-nav, .shot-view:not(.is-multi) .shot-count { display: none; }
.dt-file .dt-note { flex-basis: 100%; color: var(--cream-2); font-family: var(--f-body); font-size: 12.5px; font-weight: 800; }
.dt-btn.is-play { --bg: var(--tomato); --hi: #ff5a4a; --lo: #9a0a12; }
.dt-link .px { width: 18px; height: 18px; color: var(--cream-2); }
.dt-team-row, .dt-dev-row { margin-top: 6px; }
.dt-makers { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.dt-x { font-weight: 900; font-size: 15px; color: #8a7d68; }
.dt-team-btn.is-static { cursor: default; padding-right: 9px; }
.dt-team-btn.is-static:hover { background: var(--wood-line); }
.dt-dev { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 3px 5px; background: var(--cream); color: var(--cream-ink); border: 2px solid var(--wood-line); box-shadow: inset 0 -2px 0 var(--cream-2); font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 14px; line-height: 1.4; }
.dt-dev img { width: 20px; height: 20px; flex: none; transform: rotate(-6deg); }
.dt-team-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 5px 4px 9px; cursor: pointer; background: var(--wood-line); color: var(--yellow); border: 0; box-shadow: inset 0 -3px 0 #0f0909; font-family: var(--f-body); font-size: 14px; font-weight: 900; line-height: 1.4; text-align: left; transition: background-color .15s ease; }
.dt-team-btn > .px { flex: none; width: 15px; height: 15px; }
.dt-team-btn:hover, .dt-team-btn[aria-expanded="true"] { background: #4d2b2e; }
.dt-team-name { min-width: 0; white-space: nowrap; }
.dt-team-btn { flex-wrap: wrap; row-gap: 4px; }
.dt-team-more { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 2px; background: var(--cream); color: var(--cream-ink); font-size: 11.5px; }
.dt-team-more .px { width: 11px; height: 11px; transition: transform .2s ease; }
.dt-team-btn[aria-expanded="true"] .dt-team-more .px { transform: rotate(180deg); }
.dt-team { margin: 0 0 18px; padding: 12px 14px 14px; background: var(--cream); border: 3px solid var(--wood-line); box-shadow: inset 0 -3px 0 var(--cream-2); animation: team-open .25s var(--ease-out); }
@keyframes team-open { from { opacity: 0; transform: translateY(-6px); } }
.dt-team-h { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; }
.dt-team-h .px { width: 16px; height: 16px; color: var(--c); }
/* 特徴（3つくらい） */
.dt-points { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.dt-points li { display: grid; gap: 2px; padding: 9px 12px 11px; background: var(--cream); border: 3px solid var(--wood-line); box-shadow: inset 0 -3px 0 var(--cream-2); }
.dt-points b { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 16px; color: var(--c); line-height: 1.35; }
.dt-points span { font-size: 12.5px; font-weight: 700; color: var(--cream-muted); line-height: 1.6; }
.dt-team ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dt-team li { display: grid; grid-template-columns: minmax(7em, auto) minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 6px 10px; background: var(--cream-hi); border: 2px solid var(--wood-line); font-size: 13.5px; line-height: 1.6; }
.dt-team li b { font-weight: 900; }
.dt-team li span { color: var(--cream-muted); font-weight: 700; }
.dt-team li.is-me { background: #fff1c4; box-shadow: inset 5px 0 0 var(--tomato); }
.dt-credits { margin: 10px 0 0; display: grid; gap: 2px; font-size: 12px; font-weight: 700; color: var(--cream-muted); line-height: 1.6; }

@media (max-width: 900px) {
  .dl-hero { min-height: auto; padding-block: calc(var(--hdr) + 40px) 100px; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .inv { position: static; }
  .inv-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inv-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dl-detail { min-height: 0; }
}
@media (max-width: 640px) {
  .inv { padding: 12px; }
  .inv-filters { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
  .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dt-head { gap: 12px; }
  .dt-icon { width: 60px; }
  .dt-play { width: 66px; height: 66px; }
  .dt-play svg { width: 32px; height: 32px; }
  .dt-btn { min-height: 58px; font-size: 16px; }
  /* リボンは「UPDATE」と「詳しく」を上の段に、内容を下の段に */
  .dt-up-bar { --s: 7px; grid-template-columns: auto minmax(0, 1fr); padding-right: calc(var(--s) * 3 + 8px); }
  .dt-up-text { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .dt-up-more { justify-self: end; }
  .dt-spec > div { grid-template-columns: 6.6em minmax(0, 1fr); }
  .dt-spec dt { padding: 7px 10px; font-size: 12.5px; }
  .dt-spec dd { padding: 7px 11px; font-size: 13.5px; }
}

/* 画像が読めないとき（common.js が「Image not found」の絵に差し替える）。灰色の地を枠いっぱいに広げる */
img.is-missing[data-nf] { object-fit: contain; background: #c4c4c4; }

/* ---------- COMMUNITY ---------- */
.sec-community { background: var(--ink); padding-bottom: clamp(70px, 8vw, 110px); }
.cm-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 72px); background: var(--tomato); color: #fff;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px));
}
.cm-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle, rgba(0,0,0,.2) 2px, transparent 2.4px) 0 0 / 14px 14px;
  -webkit-mask: linear-gradient(110deg, transparent 35%, #000 85%); mask: linear-gradient(110deg, transparent 35%, #000 85%);
}
.cm-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 13px; letter-spacing: .14em; color: rgba(255,255,255,.85); }
.cm-kicker .brand { width: 20px; height: 20px; }
.cm-title { margin: 0 0 18px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(34px, 5vw, 64px); line-height: 1.2; text-shadow: 4px 4px 0 rgba(0,0,0,.3); }
.cm-title-big { white-space: nowrap; font-size: clamp(56px, 6.6vw, 104px); line-height: 1; letter-spacing: -.01em; text-shadow: 6px 6px 0 rgba(0,0,0,.3); }
.cm-copy p:not(.cm-kicker) { margin: 0 0 18px; max-width: 30em; color: rgba(255,255,255,.95); font-weight: 700; }
.langs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.langs span { padding: 4px 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.4); font-size: 13px; font-weight: 900; transform: skewX(-8deg); }
.cm-visual { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
.cm-visual img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; animation: bob 5.5s ease-in-out infinite; filter: drop-shadow(10px 14px 0 rgba(0,0,0,.25)); }
.bubble {
  position: absolute; z-index: 2; padding: 10px 16px; background: #fff; color: #000; border: 3px solid #000; border-radius: 18px;
  font-weight: 900; font-size: clamp(14px, 1.5vw, 18px); white-space: nowrap; box-shadow: 4px 4px 0 #000;
  animation: float 4s ease-in-out infinite;
}
.bubble::after { content: ""; position: absolute; bottom: -12px; left: 24px; width: 18px; height: 14px; background: #fff; border: 3px solid #000; border-top: 0; border-left: 0; transform: skewX(-30deg); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.b1 { left: 0; top: 6%; transform: rotate(-6deg); }
.b2 { right: 0; top: 30%; background: var(--yellow); animation-delay: -1.3s; }
.b2::after { background: var(--yellow); left: auto; right: 24px; transform: skewX(30deg); clip-path: polygon(0 0, 100% 0, 0 100%); border-right: 0; border-left: 3px solid #000; }
.b3 { left: 6%; bottom: 8%; background: #000; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,.35); animation-delay: -2.4s; }
.b3::after { background: #000; border-color: #fff; top: -12px; bottom: auto; transform: skewX(-30deg) scaleY(-1); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.cm-event { margin-top: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 32px); align-items: center; padding: 22px clamp(20px, 3vw, 32px); background: var(--ink-2); border: 1px solid var(--line-2); }
.ev-sign { padding: 10px 16px; background: #050506; border: 2px solid var(--line-2); font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 18px; letter-spacing: .14em; color: var(--yellow); text-shadow: 0 0 8px rgba(255,224,58,.8); }
.ev-sign span { animation: flicker 3s linear infinite; }
@keyframes flicker { 0%, 18%, 22%, 60%, 64%, 100% { opacity: 1; } 20%, 62% { opacity: .2; } }
.ev-body h3 { margin: 0 0 4px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 22px; }
.ev-body p { margin: 0; color: var(--muted); font-size: 14px; }
.pill { justify-self: start; padding: 6px 14px; border: 2px solid var(--yellow); color: var(--yellow); font-size: 12.5px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; transform: skewX(-8deg); }

/* ---------- footer ---------- */
.ft { position: relative; background: #000; padding-top: clamp(60px, 7vw, 100px); border-top: 4px solid var(--tomato); }
.ft-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.ft-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.ft-logo img { width: 72px; height: 72px; transform: rotate(-8deg); }
.ft-word { display: grid; line-height: 1; }
.ft-word b { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 34px; transform: skewX(-9deg); transform-origin: left; }
.ft-word small { font-size: 10.5px; font-weight: 900; letter-spacing: .3em; color: var(--dim); margin-top: 6px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.ft-nav a { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 14px; color: var(--muted); transition: color .15s ease, background-color .15s ease; }
.ft-nav a:hover, .ft-nav a[aria-current="page"] { color: #000; background: #fff; }
.ft-head { margin: 34px 0 16px; display: flex; align-items: baseline; gap: 14px; }
.ft-head span { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 13px; letter-spacing: .16em; color: #f2333b; transform: skewX(-10deg); }
.ft-head b { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(20px, 2.4vw, 28px); }
.sns-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sns-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 150px; padding: 20px; background: #000; text-decoration: none; transition: color .35s ease; }
.sns-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); clip-path: inset(100% 0 0 0); transition: clip-path .5s var(--ease-snap); }
.sns-tile:hover::before, .sns-tile:focus-visible::before { clip-path: inset(0); }
.sns-tile:hover, .sns-tile:focus-visible { color: var(--on, #fff); }
.sns-tile svg { width: 32px; height: 32px; fill: currentColor; transition: transform .45s var(--ease-back); }
.sns-tile:hover svg { transform: scale(1.15) rotate(-8deg); }
.sns-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sns-arrow { font-size: 20px; line-height: 1; transition: transform .35s var(--ease-out); }
.sns-tile:hover .sns-arrow { transform: translate(4px, -4px); }
.sns-name { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(20px, 2vw, 26px); line-height: 1.1; display: block; }
.sns-handle { font-size: 12.5px; font-weight: 800; opacity: .7; display: block; margin-top: 6px; overflow-wrap: anywhere; }
/* Rafu のブランド（ゲーム開発・Minecraftサーバー） */
.ft-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; margin-top: 36px; }
.ft-brand { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; text-decoration: none; color: #fff; }
.ft-brand-tomato { width: 46px; height: 46px; flex: none; transform: rotate(-6deg); transition: transform .4s var(--ease-back); }
.ft-brand-redhub { width: auto; height: 34px; flex: none; transition: transform .4s var(--ease-back); }
.ft-brand:hover .ft-brand-tomato { transform: rotate(6deg) scale(1.08); }
.ft-brand:hover .ft-brand-redhub { transform: translateY(-2px) scale(1.04); }
.ft-brand-text { display: grid; gap: 4px; line-height: 1.1; }
.ft-brand-text b { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 21px; transform: skewX(-8deg); transform-origin: left; }
.ft-brand-text b:has(img) { transform: none; }
.ft-brand-rafixel { display: block; width: auto; height: 19px; max-width: 100%; }
.ft-brand-text small { font-size: 10px; font-weight: 900; letter-spacing: .24em; color: var(--dim); transition: color .2s ease; }
.ft-brand:hover .ft-brand-text small { color: var(--yellow); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.ft-bottom p { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--dim); }
.ft-pagetop { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.ft-pagetop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; transition: transform .3s var(--ease-out); }
.ft-pagetop:hover { color: var(--yellow); }
.ft-pagetop:hover svg { transform: translateY(-3px); }

/* ---------- player dialog ---------- */
.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--text); overflow: hidden; }
.player::backdrop { background: rgba(5,5,7,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player[open] { display: grid; place-items: center; }
.player-box { width: min(1100px, calc(100vw - 32px)); animation: player-in .5s var(--ease-out); }
.player.is-vertical .player-box { width: min(420px, calc(100vw - 32px)); }
@keyframes player-in { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.player-bar { display: flex; align-items: center; gap: 16px; padding-bottom: 10px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 13px; letter-spacing: .1em; }
.player-ch { color: var(--leaf); }
.player-link { margin-left: auto; color: var(--muted); text-decoration: none; letter-spacing: .02em; font-family: var(--f-body); font-weight: 800; }
.player-link:hover { color: var(--text); }
.player-close { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; background: transparent; cursor: pointer; font-size: 26px; line-height: 1; display: grid; place-items: center; transition: background-color .2s ease, transform .3s var(--ease-back); }
.player-close:hover { background: var(--tomato); border-color: var(--tomato); transform: rotate(90deg); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); outline: 2px solid var(--line-2); }
.player.is-vertical .player-frame { aspect-ratio: 9 / 16; max-height: calc(100svh - 120px); margin-inline: auto; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  padding: 12px 22px; background: var(--yellow); color: #000; font-weight: 900; font-size: 14px;
  transform: translate(-50%, calc(100% + 48px)); visibility: hidden; transition: transform .45s var(--ease-back), visibility 0s .45s; pointer-events: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
[data-zone="mc"] .toast { background: var(--mc-leaf); color: #fff; clip-path: none; border: 4px solid var(--wood-line); box-shadow: inset 0 3px 0 var(--mc-leaf-hi), inset 0 -4px 0 var(--mc-leaf-lo); text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease-back); }

/* ---------- shared keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 動くボタンの当たり判定 ----------
 * カーソルを乗せると浮く・傾く、押すと沈むボタンは、動いたぶん当たり判定もずれる。
 * そのままだと、元の場所にカーソルがあるとき「乗る→動いて外れる→戻る」をくり返して、動きと音が止まらない
 * （押したときは、ふちを押すとクリックにならない）。
 * なので、乗せている・押しているあいだだけ、見えない当たり判定（::after など）で元の場所までおおう。
 * カードとトップの斜めのボタンは、中の面（-in・-face）だけを動かしている（上の .pick・.soft・.work・.btn）。 */
.pill-cta, .icon-link, .step-go, .dt-kw, .inv-reset, .dt-share { position: relative; }
.hdr-logo::after, .pill-cta::after, .icon-link::after, .ch-item::before, .step-go::after, .dt-kw::after, .inv-reset::after, .dt-share::after {
  content: ""; position: absolute; display: none;
}
.hdr-logo:hover::after, .pill-cta:hover::after, .icon-link:hover::after, .ch-item:hover::before, .step-go:hover::after,
.dt-kw:is(:hover, :active)::after, .inv-reset:is(:hover, :active)::after, .dt-share:is(:hover, :active)::after { display: block; }
.hdr-logo::after { inset: -9%; }                                 /* 傾きが変わって大きくなる */
.pill-cta::after { inset: -8px; border-radius: inherit; }        /* 浮いて少し傾く */
.icon-link::after { inset: -8px; border-radius: inherit; }       /* 浮いて傾く（2px は枠） */
.ch-item::before { inset: -1px -1px -6px; }                      /* 4px 浮く */
.step-go::after { inset: -2px -2px -6px; }                       /* 2px 浮く */
.dt-kw::after { inset: -4px -2px -6px; }                         /* 2px 浮く・押すと 1px 沈む */
.inv-reset::after, .dt-share::after { inset: -6px -3px -3px; }   /* 押すと 2px 沈む */
/* ドット絵のボタン・アップデートのリボンは形を clip-path で切っているので、押しているあいだだけ切る形も上に広げる */
.pxbtn::after { content: ""; position: absolute; left: -4px; right: -4px; top: -10px; height: 10px; display: none; }
.pxbtn:not(.is-off):active::after { display: block; }
.pxbtn:not(.is-off):active {
  clip-path: polygon(var(--n) -3px, calc(100% - var(--n)) -3px, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)), 0 var(--n), var(--n) var(--n));
}
.dt-up-bar { overflow: clip; overflow-clip-margin: 6px; }
.dt-up-bar::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; display: none; }
.dt-up-bar:active::before { display: block; }
.dt-up-bar:active {
  clip-path: polygon(0 -2px, calc(100% - var(--s) * 3) -2px, calc(100% - var(--s) * 3) 12.5%, calc(100% - var(--s) * 2) 12.5%, calc(100% - var(--s) * 2) 25%, calc(100% - var(--s)) 25%, calc(100% - var(--s)) 37.5%, 100% 37.5%, 100% 62.5%, calc(100% - var(--s)) 62.5%, calc(100% - var(--s)) 75%, calc(100% - var(--s) * 2) 75%, calc(100% - var(--s) * 2) 87.5%, calc(100% - var(--s) * 3) 87.5%, calc(100% - var(--s) * 3) 100%, 0 100%);
}

/* ---------- responsive ---------- */
@media (min-width: 900px) and (min-height: 640px) {
  .gbar { display: flex; }
  /* 右端に付くステッカーと再生ボタンは、ツールバーの幅だけ内側へ */
  html:not(.gbar-closed) .kv-play, html:not(.gbar-closed) .kv-sticker { right: max(118px, 4vw); }
}
/* ツールバーと中身が重なる幅では、右だけ余白を広げる */
@media (min-width: 900px) and (max-width: 1340px) and (min-height: 640px) {
  html:not(.gbar-closed) .wrap { padding-right: max(var(--gut-r), 118px); }
  html:not(.gbar-closed) .mc-chara { --shift: calc((118px - 5vw) / 2); }
}
@media (max-width: 1240px) {
  .hdr-nav { display: none; }
  .hdr-tools { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 1100px) {
  .pickup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sns-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sns-tile:last-child { grid-column: span 2; }
  .ch-list { grid-auto-columns: minmax(240px, calc((100% - 2 * 14px) / 3)); }
  .game-head { grid-template-columns: minmax(0, 1fr); }
  .studio { justify-self: start; margin: 18px 10px 6px 28px; transform: rotate(-2deg); }
}
@media (max-width: 900px) {
  :root { --hdr: 64px; }
  .hdr { padding-left: 92px; }
  .hdr-logo { width: 78px; }
  .hdr.is-scrolled .hdr-logo { width: 56px; }
  .kv { padding-block: calc(var(--hdr) + 40px) 150px; min-height: auto; }
  .kv-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv-copy { padding-top: 0; }
  .kv-catch .line-big { font-size: min(clamp(52px, 9vw, 80px), var(--big-max)); }
  .kv-stage { order: -1; width: min(72vw, 420px); margin-bottom: 8px; }
  .kv-band { left: -20%; width: 140%; height: 60%; clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); }
  .kv-sticker { position: absolute; top: calc(var(--hdr) + 18px); right: var(--gut-r); padding: 8px 16px 9px; border-radius: 14px; }
  .kv-play, .kv-sns { position: static; }
  .kv-play { margin-top: 26px; }
  .kv-sns { margin-top: 20px; }
  .kv-inner { padding-bottom: 0; }
  .kv > .kv-play, .kv > .kv-sns { padding-inline: max(var(--gut), 16px); }
  .news-grid, .srv-grid, .cm-panel { grid-template-columns: minmax(0, 1fr); }
  .softs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-wrap { grid-template-columns: minmax(0, 1fr); }
  .tv-arrow { display: none; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .pev { grid-template-columns: minmax(0, 1fr); }
  .pev-body { padding: 0 4px 4px; }
  .cm-visual { max-width: 300px; order: -1; }
  .cm-event { grid-template-columns: minmax(0, 1fr); }
  .ev-sign { justify-self: start; }
  .cube:nth-child(1), .cube:nth-child(4) { display: none; }
  .cube:nth-child(2) { left: auto; right: 10px; top: 2%; }
  .cube:nth-child(3) { left: auto; right: 14px; top: auto; bottom: 8%; }
  .mc-far { --h: 46cqh; }
  .mc-mid { --h: 36cqh; }
  .mc-near { --h: 22cqh; }
}
@media (max-width: 640px) {
  .softs, .soft-lists { grid-template-columns: minmax(0, 1fr); }
  body { font-size: 14.5px; }
  .hdr { gap: 8px; padding-right: 12px; }
  .pill-cta { height: 42px; padding: 0 14px; font-size: 13px; }
  .pill-cta span:last-child { display: none; }
  .hdr-tools .pill-cta span:last-child { display: none; }
  .menu-foot .pill-cta span:last-child { display: inline; }
  .round-btn { width: 42px; height: 42px; }
  .menu-links a { grid-template-columns: 30px minmax(0, 1fr); row-gap: 0; }
  .ml-en { grid-column: 2; margin-top: -4px; }
  .menu-inner { padding-left: max(var(--gut), 16vw); }
  .kv-cta { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .logo-word { font-size: clamp(32px, 9vw, 48px); }
  .kv-catch .line-big { font-size: min(clamp(38px, 11.4vw, 64px), var(--big-max)); }
  .kv-do { gap: 6px; }
  .kv-do li { padding: 4px 10px 5px 8px; font-size: 12.5px; }
  .pickup { gap: 10px; }
  .pick-title { font-size: clamp(11.5px, 3.3vw, 13.5px); }
  .pick-body { gap: 6px; padding: 10px 10px 12px 12px; }
  .pick-body svg { width: 16px; height: 16px; }
  .news-item { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 14px 6px; }
  .news-tag { justify-self: start; }
  .news-title { grid-column: 1 / -1; }
  .news-item svg { display: none; }
  .sec-community .sh-en { font-size: 9.4vw; }
  .kv { padding-bottom: 112px; }
  .pick-tag { font-size: 10.5px; padding: 2px 8px; }
  .pick-art .pa-discord img { width: 38%; translate: 0 10%; }
  .pick-art .pa-chara { height: 68%; }
  .mc-hero:not(.dl-hero) { min-height: max(500px, 72svh); }
  .mc-chara { right: auto; left: max(var(--gut), 14px); bottom: 1cqh; width: min(25cqw, 14.4cqh); }
  .cube:nth-child(2) { display: none; }
  .ft-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .ft-nav a { padding: 9px 4px; text-align: center; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
  .menu-mascot { top: calc(var(--hdr) + 18px); bottom: auto; width: 92px; }
  .ch-list { grid-auto-columns: 74%; }
  .works { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * max(var(--gut), 16px)); padding: 6px max(var(--gut), 16px) 22px; scrollbar-width: none; }
  .works::-webkit-scrollbar { display: none; }
  .work { flex: 0 0 78%; scroll-snap-align: center; }
  .sns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sns-tile { min-height: 124px; padding: 14px; }
  .sns-tile:last-child { grid-column: 1 / -1; }
  .srv-steps li { grid-template-columns: 44px minmax(0, 1fr); }
  .step-go { grid-column: 2; justify-self: start; }
  .tv { padding: 10px 10px 14px; }
  .tv-bar { padding-right: 24px; }
  .ft-row { flex-direction: column; align-items: flex-start; }
  .studio { width: calc(100% - 38px); padding-right: 16px; }
  .studio-logo { width: 88px; height: 88px; margin: -28px 0 -8px -30px; }
  .studio-en { font-size: 10px; letter-spacing: .1em; }
  .srv-tag span { font-size: 14px; }
  .pev { padding: 10px; gap: 16px; }
  .pev-watch { left: 8px; bottom: 8px; font-size: 14px; }
  .pev-shots { grid-template-columns: repeat(var(--cols-sp, 3), minmax(0, 1fr)); }
  .pev-shots li:nth-child(n + 4) { display: none; }
  .pev-shots li[data-more-pc]::after { content: none; }
  .pev-shots li[data-more-sp]::after { content: attr(data-more-sp); position: absolute; inset: 2px; display: grid; place-items: center; background: rgba(0,0,0,.6); font-family: var(--f-px); font-size: 20px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; pointer-events: none; }
  .pev-btns .pev-btn { flex: 1 1 auto; }
  .ft-brands { gap: 12px 28px; }
}
@media (max-width: 400px) {
  .studio { column-gap: 12px; }
  .studio-logo { width: 74px; height: 74px; margin: -24px 0 -6px -26px; }
  .studio-en { font-size: 9.5px; letter-spacing: .06em; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .tape-track, .mc-layer i, .kv-burst i, .kv-streaks, .dt-up-bar::after, .dt-up-tag .px { animation: none !important; }
  .kv-streaks { display: none; }
}

/* 自作データパックのカード：開発の名義 */
.work-dev { display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .02em; opacity: .85; }
.work-dev img { width: 18px; height: 18px; flex: none; transform: rotate(-6deg); }
.work-dev b { font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 13px; letter-spacing: .01em; }

/* ---------- 画面の外にある欄は、ずっと動き続ける動き（雲・星・テープ・点滅など）を止める ----------
   common.js が、見えていない欄に .is-away を付ける。見える少し手前で外れて、また動き出す */
.is-away, .is-away *, .is-away *::before, .is-away *::after { animation-play-state: paused !important; }

/* ---------- ニュース：古いお知らせをたたむボタン ---------- */
.news-list li.news-more-row { border-bottom: 0; }
.news-more {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 16px 13px;
  background: var(--paper-ink); color: #fff; border: 0; cursor: pointer; text-align: left;
  font-size: 14px; font-weight: 900; line-height: 1.4;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background-color .2s ease;
}
.news-more span { flex: 1; min-width: 0; }
.news-more small { flex: none; font-size: 12px; font-weight: 800; color: var(--muted); }
.news-more svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--yellow); stroke-width: 2.6; transition: transform .3s var(--ease-out), stroke .2s ease; }
.news-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.news-more:hover, .news-more:focus-visible { background: var(--tomato); }
.news-more:hover small, .news-more:focus-visible small { color: #fff; }
.news-more:hover svg, .news-more:focus-visible svg { stroke: #fff; }
.news-list li.is-more { animation: news-in .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * .05s); }
@keyframes news-in { from { opacity: 0; translate: -18px 0; } }

/* ---------- ゲームソフト：最後の段が1つだけ余る本数のときは、先頭のソフトを横長の大きいカードにする ----------
   main.js が本数を見て .softs に lead-3（PCの3列で余る）・lead-2（タブレットの2列で余る）を付ける */
@media (min-width: 901px) {
  .softs.lead-3 > .soft:first-child { grid-column: 1 / -1; }
  .softs.lead-3 > .soft:first-child .soft-in { flex-direction: row; transform: translateY(var(--ty)) rotateX(calc(var(--rx) * .35)) rotateY(calc(var(--ry) * .25)); }
  .softs.lead-3 > .soft:first-child .soft-art { flex: 0 0 58%; border-bottom: 0; border-right: 4px solid #000; }
  .softs.lead-3 > .soft:first-child .soft-art::before { content: "PICK UP"; position: absolute; z-index: 2; left: -6px; top: 14px; padding: 3px 16px 4px 18px; background: var(--yellow); color: #000; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 15px; letter-spacing: .1em; transform: skewX(-10deg) rotate(-3deg); box-shadow: 4px 4px 0 #000; }
  .softs.lead-3 > .soft:first-child .soft-body { gap: 10px; padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px) 0; }
  .softs.lead-3 > .soft:first-child h3 { font-size: clamp(30px, 3.2vw, 42px); }
  .softs.lead-3 > .soft:first-child .soft-catch { font-size: 16px; }
  .softs.lead-3 > .soft:first-child .soft-cat { font-size: 13.5px; }
  .softs.lead-3 > .soft:first-child .soft-plat span { font-size: 13.5px; padding: 4px 12px 5px; }
  .softs.lead-3 > .soft:first-child .soft-go { margin-inline: calc(clamp(18px, 2.2vw, 28px) * -1); padding: 14px clamp(18px, 2.2vw, 28px) 15px; font-size: 16px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .softs.lead-2 > .soft:first-child { grid-column: 1 / -1; }
  .softs.lead-2 > .soft:first-child .soft-in { flex-direction: row; }
  .softs.lead-2 > .soft:first-child .soft-art { flex: 0 0 56%; border-bottom: 0; border-right: 4px solid #000; }
  .softs.lead-2 > .soft:first-child .soft-art::before { content: "PICK UP"; position: absolute; z-index: 2; left: -6px; top: 12px; padding: 2px 14px 3px 16px; background: var(--yellow); color: #000; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: 13px; letter-spacing: .1em; transform: skewX(-10deg) rotate(-3deg); box-shadow: 3px 3px 0 #000; }
  .softs.lead-2 > .soft:first-child h3 { font-size: 28px; }
}


/* ---------- 参加のしかた（join.html。中身は content.js の join） ---------- */
/* 見出しの背景をワールドの写真に（join.heroImage があるとき。ドット絵の層は隠す） */
.jn-photo { position: absolute; inset: 0; overflow: hidden; }
.jn-photo img { display: block; width: 100%; height: 100%; object-fit: cover; animation: jn-kb 24s ease-in-out infinite alternate; }
@keyframes jn-kb { from { transform: scale(1.03) translate(-1%, 0); } to { transform: scale(1.12) translate(1%, -1%); } }
.jn-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 50% at 50% 55%, rgba(16, 9, 36, .38), rgba(16, 9, 36, 0) 75%), linear-gradient(180deg, rgba(10, 6, 24, .45) 0%, rgba(10, 6, 24, 0) 35%, rgba(23, 12, 43, .2) 70%, #170c2b 100%); }
.jn-hero.has-photo .mc-layer, .jn-hero.has-photo .mc-sun, .jn-hero.has-photo .mc-stars { display: none; }
@media (prefers-reduced-motion: reduce) { .jn-photo img { animation: none; transform: scale(1.03); } }

.jn-main { padding-top: clamp(48px, 5vw, 72px); --ore-line: #1e1e1f; --ore-2: #48494a; --ore-hi: #5a5b5c; --ore-lo: #242425; --ore-light: #d0d1d4; --ore-light-hi: #f4f4f5; --ore-light-lo: #58585a; }
.jn-wrap { max-width: 1040px; display: grid; gap: clamp(28px, 3.4vw, 44px); }
.jn-box { padding: clamp(18px, 2.4vw, 26px); }
/* 機種のタブ（灰色の石のボタン。選んだものは明るく） */
.jn-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 4px; background: var(--ore-line); }
.jn-tab {
  min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 14px; border: 0; cursor: pointer;
  background: var(--ore-2); color: #fff; box-shadow: inset 0 3px 0 var(--ore-hi), inset 0 -4px 0 var(--ore-lo);
  font: inherit; text-align: center; transition: background-color .15s ease, color .15s ease;
}
.jn-tab:hover { background: #58585a; }
.jn-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.jn-tab-icon { display: grid; place-items: center; width: 40px; height: 40px; background: rgba(0,0,0,.28); box-shadow: inset 2px 2px 0 rgba(0,0,0,.3); }
.jn-tab-icon .px { width: 24px; height: 24px; color: var(--gold); }
.jn-tab-text { display: grid; gap: 2px; min-width: 0; }
.jn-tab-text b { font-size: 15px; font-weight: 900; line-height: 1.35; text-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.jn-tab-text small { font-size: 11.5px; font-weight: 700; line-height: 1.4; opacity: .8; }
.jn-tab[aria-selected="true"] { background: var(--ore-light); color: var(--ore-line); box-shadow: inset 0 3px 0 var(--ore-light-hi), inset 0 -4px 0 var(--ore-light-lo); }
.jn-tab[aria-selected="true"] .jn-tab-text b { text-shadow: none; }
.jn-tab[aria-selected="true"] .jn-tab-icon { background: var(--ore-line); }

.jn-head .px-en { letter-spacing: .08em; }
.jn-panel { display: grid; gap: clamp(18px, 2.4vw, 26px); outline: 0; }
.jn-head { margin-bottom: 0; }
.jn-main .px-title { color: var(--cream-hi); text-shadow: 3px 3px 0 var(--wood-line); }
.jn-photo-note { justify-self: start; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 6px; background: rgba(24, 9, 32, .8); border: 3px solid var(--wood-line); font-size: 13px; font-weight: 800; color: var(--cream-2); text-align: left; }
.jn-photo-note .px { flex: none; width: 16px; height: 16px; color: var(--gold); }
.jn-note { margin: 10px 0 0; display: inline-flex; align-items: flex-start; gap: 10px; max-width: 760px; padding: 9px 14px 10px; background: rgba(24, 9, 32, .8); border: 3px solid var(--wood-line); color: var(--cream); font-size: 14.5px; font-weight: 700; line-height: 1.7; text-align: left; }
.jn-note[hidden] { display: none; }
.jn-note .px { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }

.jn-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 26px); }
.jn-noscript { padding: 18px; background: var(--cream-hi); color: var(--cream-ink); font-weight: 800; }
.jn-step {
  --n: 4px; position: relative; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: center;
  padding: clamp(14px, 2vw, 20px); background: var(--cream-hi); color: var(--cream-ink); border: 4px solid var(--wood-line); box-shadow: inset -4px -4px 0 var(--cream-2);
  clip-path: polygon(var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)), 0 var(--n), var(--n) var(--n));
}
.jn-step:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
.jn-step:nth-child(even) .jn-shot { order: 2; }

/* 手順の絵（写真が届くまでの「このボタンを押す」の絵） */
.jn-shot { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #15151a; border: 4px solid var(--wood-line); box-shadow: inset 0 0 0 3px rgba(255,255,255,.06); }
.jn-shot.is-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jn-screen {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    linear-gradient(180deg, transparent 64%, #5aa03c 64%, #5aa03c 70%, #3f7a2a 70%, #3f7a2a 73%, #7a5233 73%) ,
    linear-gradient(180deg, #4c6fc4 0%, #87b4ec 64%);
  image-rendering: pixelated;
}
.jn-screen::before { content: ""; position: absolute; left: 12%; top: 16%; width: 18%; aspect-ratio: 3; background: #fff; box-shadow: 8vw 3vw 0 -1px rgba(255,255,255,.85); opacity: .9; }
.jn-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 6px; padding: 8px 10px; background: rgba(0,0,0,.45); }
.jn-bar i { width: 22%; height: 12px; background: rgba(255,255,255,.28); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.jn-bar i:first-child { background: rgba(255,255,255,.7); }
.jn-press {
  position: relative; display: inline-flex; align-items: center; gap: 10px; max-width: 82%;
  padding: 10px clamp(16px, 2.4vw, 26px) 13px; background: #d0d1d4; color: #1e1e1f; border: 3px solid #1e1e1f;
  box-shadow: inset 0 3px 0 #f4f4f5, inset 0 -5px 0 #58585a, 0 0 0 0 rgba(255, 224, 58, .9);
  font-family: var(--f-px); font-size: clamp(16px, 2.1vw, 24px); line-height: 1.25; text-align: center;
  animation: jn-glow 1.6s steps(2) infinite;
}
.jn-press > span { overflow-wrap: anywhere; }
@keyframes jn-glow { 50% { box-shadow: inset 0 3px 0 #f4f4f5, inset 0 -5px 0 #58585a, 0 0 0 5px rgba(255, 224, 58, .95); } }
.jn-hand { position: absolute; right: -18px; bottom: -30px; width: 30px; height: 40px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.35)); animation: jn-tap 1.6s ease-in-out infinite; }
@keyframes jn-tap { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-6px, -8px); } 55% { transform: translate(-6px, -6px) scale(.92); } }
.jn-shot-tag { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px 3px; background: rgba(0,0,0,.6); color: #fff; font-family: var(--f-px); font-size: 11.5px; letter-spacing: .1em; }

.jn-body { min-width: 0; }
.jn-num { margin: 0 0 6px; display: inline-flex; align-items: center; gap: 0; border: 3px solid var(--wood-line); box-shadow: 3px 3px 0 var(--wood-line); }
.jn-num span { padding: 3px 8px 4px; background: var(--wood-line); color: var(--cream); font-family: var(--f-px); font-size: 13px; letter-spacing: .14em; }
.jn-num b { min-width: 40px; padding: 0 10px 2px; background: var(--tomato); color: #fff; font-family: var(--f-px); font-weight: 400; font-size: 26px; line-height: 1.25; text-align: center; box-shadow: inset 0 -4px 0 #9a0a12; }
.jn-title { margin: 4px 0 8px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(22px, 2.5vw, 30px); line-height: 1.35; text-wrap: balance; }
.jn-text { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.85; text-wrap: pretty; }
.jn-copy { margin-top: 14px; }
.jn-copy-lbl { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13px; font-weight: 900; color: var(--cream-muted); }
.jn-copy-lbl small { font-family: var(--f-px); font-weight: 400; letter-spacing: .14em; font-size: 11.5px; }
.jn-copy-row { display: flex; align-items: stretch; gap: 8px; }
.jn-copy-val { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 6px 14px 8px; background: #1c1214; color: #fff; border: 3px solid var(--wood-line); box-shadow: inset 3px 3px 0 #0f0909; font-family: var(--f-px); font-size: clamp(18px, 2.2vw, 26px); letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.jn-copy .copy-btn { width: 168px; min-height: 52px; }
.jn-link { margin-top: 14px; }
.jn-goal .jn-link { margin-top: 12px; }
.jn-link.is-discord { --bg: var(--discord); --hi: #8891f7; --lo: #3540b8; }
.jn-tip { margin: 14px 0 0; display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px 10px; background: #fff3c4; border: 3px solid var(--wood-line); box-shadow: inset 0 -3px 0 #f0d77c; font-size: 14px; font-weight: 800; line-height: 1.65; }
.jn-tip b { flex: none; padding: 1px 8px 2px; background: var(--gold); color: var(--wood-line); border: 2px solid var(--wood-line); font-family: var(--f-px); font-weight: 400; font-size: 13px; }

.jn-goal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(14px, 2.4vw, 26px); align-items: center; padding: clamp(16px, 2.4vw, 24px) clamp(18px, 3vw, 32px); background: var(--mc-leaf-lo, #33801f); color: #fff; box-shadow: inset 4px 4px 0 rgba(255,255,255,.18), inset -4px -4px 0 rgba(0,0,0,.25); }
.jn-goal img { width: clamp(64px, 9vw, 96px); height: auto; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.35)); }
.jn-goal p { margin: 0; font-weight: 700; line-height: 1.75; }
.jn-goal .jn-goal-title { margin-bottom: 4px; font-family: var(--f-logo); font-weight: var(--fw-logo); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; text-shadow: 2px 2px 0 rgba(0,0,0,.3); }

.jn-faq-list { display: grid; gap: 8px; }
.jn-faq-item { background: var(--cream-hi); color: var(--cream-ink); border: 3px solid var(--wood-line); box-shadow: inset 0 -3px 0 var(--cream-2); }
.jn-faq-item summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px 13px 11px; cursor: pointer; font-size: 15.5px; font-weight: 900; line-height: 1.5; }
.jn-faq-item summary::-webkit-details-marker { display: none; }
.jn-q { display: grid; place-items: center; width: 30px; height: 30px; background: var(--tomato); color: #fff; border: 2px solid var(--wood-line); box-shadow: inset 0 -3px 0 #9a0a12; font-family: var(--f-px); font-size: 16px; }
.jn-faq-item summary i { width: 12px; height: 12px; border-right: 3px solid var(--cream-ink); border-bottom: 3px solid var(--cream-ink); transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.jn-faq-item[open] summary i { transform: translateY(2px) rotate(225deg); }
.jn-faq-item p { margin: 0; padding: 0 16px 14px 53px; font-size: 14.5px; font-weight: 700; line-height: 1.8; color: var(--cream-muted); }
.jn-faq .inv-title { color: var(--cream); }

.jn-back { margin: 0; text-align: center; }

/* トップのサーバー欄から join.html へ */
.srv-join { margin-top: 12px; width: 100%; text-align: center; }
.srv-join span { text-wrap: balance; }

@media (max-width: 900px) {
  .jn-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .jn-step, .jn-step:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .jn-step:nth-child(even) .jn-shot { order: 0; }
  .jn-copy-row { flex-direction: column; }
  .jn-copy .copy-btn { width: auto; }
  .jn-faq-item p { padding-left: 16px; }
}
@media (max-width: 420px) {
  .jn-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .jn-press, .jn-hand { animation: none; } }
