/* AION 2 グローバル攻略ガイド — 見た目
   方針：落ち着いた暗い面に、文字と表で情報を見せる。飾り（光彩・グラデーションの文字・飾りのアイコン）と箱（背景・枠・角丸のカード）は使わず、細い罫線と余白で区切る。
   画像は公式のもの（トップのメイン画像・ロゴ・クラスの紋章と立ち絵）だけ。
   Webフォントは使わない（PixMofu 本体と同じく端末の書体）。動きは transform / opacity だけ。
   種族（天族／魔族）で差し色だけが変わる。 */

:root {
  --bg0: #0c0e13;
  --bg1: #11141a;
  --sf: #151922;
  --sf-solid: #151922;
  --sf2: #1b2029;
  --sf3: #232936;
  --ln: rgba(255, 255, 255, .075);
  --ln2: rgba(255, 255, 255, .14);
  --ink: #eceef3;
  --ink2: #c7cbd5;
  --mut: #8e94a3;
  --mut2: #666d7c;
  --acc: #d6b26a;
  --acc2: #8db6f5;
  --acc-ink: #19130a;
  --ok: #5cc8a8;
  --kr: #e0a84a;
  --un: #f08a9a;
  --tS: #e95d5d;
  --tA: #e8973a;
  --tB: #5b97e0;
  --tC: #8c94a8;
  --r: 6px;
  --r2: 4px;
  --w: 1200px;
  --hd: 56px;
  --f-body: "Yu Gothic UI", "Meiryo UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-disp: var(--f-body);
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-faction="asmo"] {
  --acc: #b893f2;
  --acc2: #a8b6ff;
  --acc-ink: #150d24;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdh, 100px) + 56px); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[data-lang="en"] body { line-height: 1.65; }
img, svg { max-width: 100%; }
a { color: var(--acc2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }
strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.mut { color: var(--mut); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }

/* ───────── ヘッダー ───────── */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(12, 14, 19, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ln); }
.hd-in { max-width: var(--w); margin: 0 auto; height: var(--hd); padding: 0 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-txt { font-size: .8rem; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.gnav { flex: 1; display: flex; gap: 2px; min-width: 0; height: 100%; }
.gnav a { position: relative; display: flex; align-items: center; padding: 0 12px; color: var(--ink2); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.gnav a:hover { color: var(--ink); }
.gnav a[aria-current="true"] { color: var(--ink); }
.gnav a[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--acc); }
.hd-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--ln2); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--ink2); }
.lang-btn:hover { border-color: var(--mut2); color: var(--ink); }
.lang-btn .on { color: var(--ink); }
.lang-btn .off { color: var(--mut2); }
.menu-btn { display: none; width: 36px; height: 32px; border-radius: 6px; border: 1px solid var(--ln2); background: transparent; cursor: pointer; place-items: center; }
.menu-ic { display: grid; gap: 4px; width: 16px; }
.menu-ic i { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-ic i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ic i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-ic i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.subnav { border-top: 1px solid var(--ln); }
.subnav-in { max-width: var(--w); margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { position: relative; display: inline-flex; align-items: center; padding: 9px 10px; color: var(--mut); text-decoration: none; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); }
.subnav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--acc); }

/* 種族の切り替え・汎用の切り替え */
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 5px; border: 1px solid var(--ln2); }
.seg button { border: 0; background: transparent; color: var(--mut); padding: 5px 13px; border-radius: 3px; font-weight: 700; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s, color .2s; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .08); color: var(--ink); }
.seg-sm button { padding: 3px 9px; font-size: .76rem; }

/* ドロワー（スマホのメニュー） */
.drawer { position: fixed; inset: var(--hd) 0 0; z-index: 45; background: var(--bg0); overflow-y: auto; padding: 16px 16px 40px; animation: drawerIn .22s var(--ease); }
@keyframes drawerIn { from { opacity: 0; } to { opacity: 1; } }
.drawer-g { margin-bottom: 16px; }
.drawer-g h3 { font-size: .74rem; color: var(--mut); margin: 0 0 4px 4px; font-weight: 700; }
.drawer-g a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 700; }
.drawer-g a:hover, .drawer-g a[aria-current="page"] { background: var(--sf2); }
.drawer-tools { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 4px 16px; border-bottom: 1px solid var(--ln); margin-bottom: 16px; }

/* ───────── 本文 ───────── */
main { display: block; outline: none; min-height: 70vh; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px 64px; }
.view { animation: viewIn .3s ease both; }
.view.quiet { animation: quietIn .2s ease both; }
@keyframes quietIn { from { opacity: .7; } to { opacity: 1; } }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

.ph { padding: 28px 0 18px; display: grid; gap: 8px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; color: var(--mut); }
.crumb a { color: var(--mut); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb span[aria-hidden] { opacity: .5; }
.ph h1 { font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 800; letter-spacing: .01em; }
.ph .lead { color: var(--mut); max-width: 70ch; font-size: .94rem; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .78rem; color: var(--mut); }

/* 見出し */
.sh { margin: 44px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--ln2); }
.sh h2 { font-size: 1.22rem; font-weight: 800; letter-spacing: .01em; }
.sh p { color: var(--mut); font-size: .88rem; margin-top: 3px; }
.sh:first-child { margin-top: 14px; }
h3.h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
h3.h3 svg { width: 18px; height: 18px; color: var(--mut); flex: none; }
.lbl { font-size: .74rem; color: var(--mut); font-weight: 700; letter-spacing: .02em; }

/* 区切り（旧カード）：背景も枠も付けず、上の罫線と余白だけで区切る */
.card { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; padding: 14px 0 0; border-top: 1px solid var(--ln); }
.card.pad-s { padding-top: 12px; }
a.card { color: inherit; text-decoration: none; }
.hov { transition: border-color .2s; }
.hov:hover { border-top-color: var(--acc); }
.grid { display: grid; gap: 22px 30px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gauto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }

/* チップ */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 3px; background: rgba(255, 255, 255, .055); font-size: .84rem; line-height: 1.6; color: var(--ink2); }
.chip.core { background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--ink); font-weight: 700; }
.chip small { color: var(--mut); font-size: .72rem; font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 1px 7px; border-radius: 3px; background: rgba(255, 255, 255, .055); color: var(--ink2); white-space: nowrap; }
.tag svg { width: 13px; height: 13px; }

/* 注記 */
.co { padding: 2px 0 2px 14px; border-left: 2px solid var(--mut2); font-size: .9rem; color: var(--ink2); }
.co > svg { display: none; }
.co-tip, .co-info { border-left-color: var(--acc2); }
.co-key { border-left-color: var(--acc); }
.co-warn { border-left-color: var(--un); }

/* 箇条書き */
ul.ls { padding-left: 1.15em; display: grid; gap: 5px; }
ul.ls li::marker { color: var(--mut2); }
ul.ck { list-style: none; padding: 0; display: grid; gap: 6px; }
ul.ck li { position: relative; padding-left: 1.05em; }
ul.ck li::before { content: ""; position: absolute; left: 1px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
ul.ck.no li::before { background: var(--un); }
ul.ck li > svg { display: none; }
dl.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--mut); font-weight: 700; white-space: nowrap; }
dl.kv dd { margin: 0; }

/* 表 */
.tw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 9px 14px 9px 0; text-align: left; vertical-align: top; }
th { font-size: .78rem; color: var(--mut); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--ln2); }
td { border-top: 1px solid var(--ln); }
td.lv, td.num { font-family: var(--f-mono); white-space: nowrap; color: var(--acc); }
tr.wall td { background: color-mix(in srgb, var(--un) 7%, transparent); }
tr.wall td.lv { color: var(--un); }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }

/* ボタン */
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; color: var(--ink); font-weight: 700; font-size: .86rem; cursor: pointer; text-decoration: none; transition: background-color .2s, border-color .2s; }
.btn:hover { background: rgba(255, 255, 255, .05); border-color: var(--mut2); color: var(--ink); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.pri:hover { background: color-mix(in srgb, var(--acc) 88%, #fff); color: var(--acc-ink); }
.btn.sm { min-height: 30px; padding: 0 11px; font-size: .8rem; }
.btn svg { width: 16px; height: 16px; }
.btn.danger:hover { border-color: color-mix(in srgb, var(--un) 60%, transparent); }

/* 進み具合 */
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--acc); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }

/* 出現の演出（控えめ） */
.rv { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* 公式の紋章（クラス） */
img.emb-i { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ───────── ホーム ───────── */
.home-hero { position: relative; min-height: clamp(400px, 60vh, 620px); display: grid; align-items: end; overflow: hidden; background: #0b0d14; }
.home-hero picture, .home-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero picture img { object-fit: cover; object-position: center 24%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 19, 0) 35%, rgba(12, 14, 19, .6) 68%, var(--bg0) 100%), linear-gradient(90deg, rgba(12, 14, 19, .72), rgba(12, 14, 19, 0) 58%); pointer-events: none; }
.home-hero-in { position: relative; z-index: 1; width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px 34px; display: grid; gap: 12px; justify-items: start; }
.home-logo { width: clamp(150px, 18vw, 200px); height: auto; display: block; margin-left: -6px; }
.home-hero h1 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 800; letter-spacing: .02em; }
.home-hero p { color: var(--ink2); font-size: .92rem; max-width: 48ch; }
.home-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.home-sec { margin-top: 36px; }
.home-sec > h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-sec > h2 a { font-size: .8rem; font-weight: 700; color: var(--mut); text-decoration: none; }
.home-sec > h2 a:hover { color: var(--ink); }
.home-cls { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 10px; }
.home-cls a { display: grid; gap: 7px; justify-items: center; text-align: center; color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 700; line-height: 1.35; transition: color .2s; }
.home-cls a:hover { color: var(--acc); }
.home-cls .emb { width: 64px; height: 64px; border-radius: 4px; overflow: hidden; }
.home-cls small { display: block; font-size: .7rem; color: var(--mut); font-weight: 500; }
.home-idx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 34px; }
.home-idx h3 { font-size: .78rem; color: var(--mut); font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid var(--ln); margin-bottom: 4px; }
.home-idx ul { list-style: none; padding: 0; margin: 0; }
.home-idx a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; }
.home-idx a b { display: block; font-size: .94rem; }
.home-idx a span { display: block; font-size: .8rem; color: var(--mut); line-height: 1.5; }
.home-idx a:hover b { color: var(--acc); }
.home-note { margin-top: 30px; font-size: .8rem; color: var(--mut); }

/* ───────── クラス ───────── */
.cls-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cls-card { --c: var(--acc); padding: 0; gap: 0; }
.cls-card .top { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0 10px; }
.cls-card .emb { width: 56px; height: 56px; border-radius: 4px; overflow: hidden; }
.cls-card h3 { font-size: 1.05rem; }
.cls-card .en { font-size: .76rem; color: var(--mut); }
.cls-card .bot { padding: 0 0 4px; display: grid; gap: 8px; font-size: .84rem; color: var(--ink2); }
.cls-card .tiers { display: flex; gap: 8px; }
.tier { display: inline-grid; place-items: center; min-width: 2.1em; height: 1.7em; padding: 0 6px; border-radius: 4px; font-family: var(--f-mono); font-weight: 700; font-size: .78rem; color: #0b0d14; }
.tier.S { background: var(--tS); } .tier.A { background: var(--tA); } .tier.B { background: var(--tB); } .tier.C { background: var(--tC); }
.tier.AB { background: linear-gradient(90deg, var(--tA) 50%, var(--tB) 50%); }
.tier.SA { background: linear-gradient(90deg, var(--tS) 50%, var(--tA) 50%); }
.tier-l { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--mut); }

.cls-head { --c: var(--acc); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 200px; padding: 26px 0; border-bottom: 1px solid var(--ln); overflow: hidden; }
.cls-head > * { position: relative; z-index: 1; }
.cls-head .emb { width: 76px; height: 76px; border-radius: 4px; overflow: hidden; }
.cls-head h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; }
.cls-head .en { color: var(--mut); font-size: .84rem; }
.cls-head .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cls-head .tiers { display: grid; gap: 8px; justify-items: end; }
.cls-head .tiers div { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--mut); }
.cls-head img.cls-art { position: absolute; z-index: 0; right: 4%; bottom: -42%; height: 148%; width: auto; max-width: none; opacity: .9; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.cls-head::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, var(--bg0) 34%, rgba(12, 14, 19, .4) 62%, rgba(12, 14, 19, .1)); pointer-events: none; }

.cls-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; }
.cls-tab { --c: var(--acc); flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 7px 2px; border-bottom: 2px solid transparent; color: var(--ink2); text-decoration: none; font-weight: 700; font-size: .84rem; transition: border-color .2s, color .2s; }
.cls-tab img.emb-i { width: 24px; height: 24px; border-radius: 4px; }
.cls-tab:hover { color: var(--ink); }
.cls-tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--acc); }

.skill-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 6px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ln); }
.skill-row:first-child { border-top: 0; }
.skill-row .nm { font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.skill-row .nm small { color: var(--mut); font-weight: 500; font-size: .76rem; }
.skill-row .why { grid-column: 1 / -1; font-size: .86rem; color: var(--ink2); }
.lvbar { position: relative; height: 20px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.lvbar i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: color-mix(in srgb, var(--acc) 70%, transparent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }
.lvbar b { position: absolute; right: 8px; top: 0; line-height: 20px; font-family: var(--f-mono); font-size: .76rem; color: var(--ink); }
.lvbar .tick { position: absolute; top: 4px; bottom: 4px; width: 1px; background: rgba(255, 255, 255, .22); }

.bands { display: grid; gap: 0; position: relative; }
.band { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--ln); }
.band:first-child { border-top: 0; }
.band .lv { font-family: var(--f-mono); color: var(--acc); font-weight: 700; }

.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.spec-i { --c: var(--acc); border-top: 1px solid var(--ln); padding: 10px 0 0; display: grid; gap: 3px; }
.spec-i .k { font-weight: 700; font-size: .92rem; }
.spec-i .v { font-size: .86rem; color: var(--ink2); }

.stig { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.slot { --c: var(--acc); position: relative; border-top: 2px solid color-mix(in srgb, var(--acc) 45%, transparent); padding: 10px 0 0; display: grid; gap: 5px; align-content: start; }
.slot .sn { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: .7rem; color: var(--mut); }
.slot .sn b { color: var(--acc); font-weight: 700; }
.slot .gem { display: none; }
.slot .nm { font-weight: 700; line-height: 1.4; }
.slot .nm small { display: block; font-weight: 500; color: var(--mut); font-size: .74rem; }
.slot .lvl { font-family: var(--f-mono); color: var(--acc2); font-size: .78rem; }
.slot .why { font-size: .84rem; color: var(--ink2); line-height: 1.55; }
.slot.in-anim { animation: slotIn .4s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes slotIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ───────── ティア ───────── */
.tierb { display: grid; gap: 0; }
.tierb-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--ln); }
.tierb-row .t { display: grid; place-items: center; align-self: start; width: 56px; height: 56px; border-radius: 4px; font-weight: 800; font-size: 1.5rem; color: #0b0d14; }
.tierb-row .t.S { background: var(--tS); }
.tierb-row .t.A { background: var(--tA); }
.tierb-row .t.B { background: var(--tB); }
.tierb-row .t.C { background: var(--tC); }
.tierb-row .cs { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.tile { --c: var(--acc); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 4px 0; color: var(--ink); text-decoration: none; min-width: 190px; flex: 0 1 260px; transition: color .2s; }
.tile:hover { color: var(--acc); }
.tile .emb { width: 40px; height: 40px; border-radius: 4px; overflow: hidden; grid-row: span 2; }
.tile b { font-size: .94rem; }
.tile small { font-size: .78rem; color: var(--ink2); line-height: 1.45; }
.tile.pop { animation: pop .35s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ───────── 育成（タイムライン・梯子） ───────── */
.lvctl { display: grid; gap: 10px; }
.lvctl input[type=range] { width: 100%; accent-color: var(--acc); }
.lvctl .now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lvctl .now b { font-family: var(--f-mono); font-size: 1.6rem; color: var(--acc); }
.tl { position: relative; display: grid; gap: 0; padding-left: 30px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--ln2); }
.tl-i { position: relative; padding: 4px 0 22px; display: grid; gap: 6px; transition: opacity .35s; }
.tl-i::before { content: ""; position: absolute; left: -26px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg0); border: 2px solid var(--acc); transition: background-color .3s; }
.tl-i.wall::before { border-color: var(--un); }
.tl-i.cur::before { background: var(--acc); }
.tl-i.past { opacity: .5; }
.tl-i .hd2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.tl-i .lvt { font-family: var(--f-mono); font-weight: 700; color: var(--acc); font-size: .95rem; }
.tl-i.wall .lvt { color: var(--un); }
.tl-i h3 { font-size: 1rem; }
.tl-i p, .tl-i li { font-size: .9rem; color: var(--ink2); }
.unl { display: flex; flex-wrap: wrap; gap: 6px; }
.unl .tag { background: rgba(255, 255, 255, .07); color: var(--ink); }

.ladder { position: relative; display: grid; gap: 0; }
.rung { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--ln); }
.rung:first-child { border-top: 0; }
.rung .il { font-family: var(--f-mono); font-size: 1.1rem; color: var(--acc); font-weight: 700; line-height: 1.3; }
.rung .il small { display: block; font-family: var(--f-body); font-size: .74rem; color: var(--mut); font-weight: 500; }
.rung .ilbar { margin-top: 8px; }
.rung h3 { font-size: 1rem; margin-bottom: 4px; }
.rung p { font-size: .9rem; color: var(--ink2); }

.prio { counter-reset: p; display: grid; gap: 10px; }
.prio-i { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.prio-i::before { counter-increment: p; content: counter(p); font-family: var(--f-mono); font-weight: 700; font-size: 1.05rem; color: var(--acc); line-height: 1.6; }
.prio-i b { display: block; }
.prio-i span { font-size: .87rem; color: var(--ink2); }

/* チェックリスト */
.chk { display: grid; gap: 4px; }
.chk label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 8px; border-radius: 6px; cursor: pointer; transition: background-color .2s; }
.chk label:hover { background: rgba(255, 255, 255, .03); }
.chk input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 3px 0 0; border-radius: 4px; border: 1.5px solid var(--ln2); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.chk input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--acc-ink); border-bottom: 2px solid var(--acc-ink); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease); }
.chk input:checked { background: var(--acc); border-color: var(--acc); }
.chk input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.chk input:checked + span { color: var(--mut); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--mut) 60%, transparent); }
.chk span small { display: block; color: var(--mut); font-size: .8rem; }

/* クラス診断 */
.quiz { display: grid; gap: 16px; }
.quiz-q { display: grid; gap: 8px; }
.quiz-q .qt { font-weight: 700; }
.quiz-o { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-o button { border: 1px solid var(--ln2); background: transparent; color: var(--ink2); border-radius: 4px; padding: 6px 13px; font-weight: 700; font-size: .86rem; cursor: pointer; transition: all .2s; }
.quiz-o button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.quiz-o button[aria-pressed="true"] { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--ink); border-color: var(--acc); }
.quiz-res { display: grid; gap: 10px; }

/* 用語 */
.glo { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 30px; }
.glo-i { padding: 10px 0 0; border-top: 1px solid var(--ln); }
.glo-i b { display: block; }
.glo-i small { color: var(--mut); font-family: var(--f-mono); font-size: .74rem; }
.glo-i p { font-size: .86rem; color: var(--ink2); margin-top: 4px; }
.search { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; }
.search svg { width: 17px; height: 17px; color: var(--mut); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; }

/* ───────── フッター ───────── */
.ft { border-top: 1px solid var(--ln); background: var(--bg1); }
.ft-in { max-width: var(--w); margin: 0 auto; padding: 28px 20px 40px; display: grid; gap: 10px; font-size: .8rem; color: var(--mut); }
.ft-in a { color: var(--ink2); }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 9px 16px; border-radius: 7px; background: var(--sf3); border: 1px solid var(--ln2); color: var(--ink); font-size: .86rem; font-weight: 700; box-shadow: 0 10px 24px -12px #000; transition: transform .35s var(--ease), opacity .35s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.empty { padding: 28px; text-align: center; color: var(--mut); border: 1px dashed var(--ln2); border-radius: var(--r2); }
.loading { display: grid; place-items: center; min-height: 40vh; color: var(--mut); }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ln2); border-top-color: var(--acc); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── 追加の部品 ───────── */
html { scroll-padding-top: calc(var(--hdh, 106px) + 60px); }
.mode-l { display: inline-block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); vertical-align: 4px; }
.flash { animation: flashIn .5s var(--ease); }
@keyframes flashIn { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chain { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; counter-reset: none; }
.chain li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.chain li .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: .76rem; background: var(--c, var(--acc)); color: #0b0d14; }
.chain li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--mut2); font-weight: 400; }

.boards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.board { display: grid; gap: 0; padding: 4px 12px 4px 0; min-width: 96px; }
.board .lvn { font-family: var(--f-mono); font-size: .7rem; color: var(--mut); }
.board b { font-size: .95rem; }
.board .tag { margin-top: 2px; justify-self: start; }
.board.dim { opacity: .38; border-style: dashed; }
.boards .arr svg { width: 14px; height: 14px; color: var(--mut2); }

.rv .lvbar i { transform: scaleX(0); }
.rv.in .lvbar i { transform: scaleX(var(--p, 0)); transition-delay: .15s; }

a.pn { display: grid; gap: 4px; padding: 14px 0 0; }
a.pn.r { text-align: right; justify-items: end; }
.pn-n { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.pn-n img.emb-i { width: 30px; height: 30px; border-radius: 5px; }

.tier-h { font-size: 1.2rem; font-weight: 800; }
.tier-why { margin-top: 6px; font-size: .86rem; color: var(--mut); }
.tierb-row > div:last-child { min-width: 0; }
.cls-page .chain li .n { background: var(--c); }

/* ───────── ガイドの部品 ───────── */
nav.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
nav.toc button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 2px; margin-right: 14px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink2); font-size: .84rem; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s; }
nav.toc button:hover { color: var(--ink); border-bottom-color: var(--acc); }
nav.toc .mono { color: var(--acc); font-size: .74rem; }
.kv-tbl th { width: 1%; min-width: 120px; white-space: nowrap; vertical-align: top; text-transform: none; letter-spacing: .02em; font-size: .82rem; color: var(--ink2); border-top: 1px solid var(--ln); }
.kv-tbl tr:first-child th, .kv-tbl tr:first-child td { border-top: 0; }
.kv-tbl.flat { border: 0; background: transparent; margin-top: 6px; }
@media (max-width: 560px) { .kv-tbl th { min-width: 0; white-space: normal; } .kv-tbl tr { display: grid; } .kv-tbl th { border-top: 1px solid var(--ln); padding-bottom: 2px; } .kv-tbl td { border-top: 0; padding-top: 0; } }
.ytg { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vid-one { max-width: 720px; }
.fac-cards { margin-top: 4px; }
/* サーバー一覧（1行＝天族と魔族の組）。地域の切り替えは狭い画面で折り返す */
.srv { margin-top: 26px; }
.srv-hd { margin-bottom: 10px; }
.srv-hd .h3 { margin: 0; }
.srv .seg { flex-wrap: wrap; }
.srv-tbl { min-width: 0; }
.srv-tbl td.nw { white-space: nowrap; font-size: .82rem; }
.fac-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; text-align: left; padding: 14px 0 0; border: 0; border-top: 2px solid var(--ln2); background: none; cursor: pointer; transition: border-color .2s; }
.fac-card:hover { border-top-color: var(--mut2); }
.fac-card.on { border-top-color: var(--acc); }
.fac-ic { display: none; }
.fac-ic svg { width: 30px; height: 30px; }
.fac-elyos .fac-ic svg { color: #ffd36e; }
.fac-asmo .fac-ic svg { color: #b197ff; }
.fac-b { position: relative; display: grid; gap: 6px; }
.fac-b b { font-size: 1.15rem; font-weight: 800; }
.fac-sel { position: absolute; right: 0; top: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--mut); }
.fac-sel svg { width: 14px; height: 14px; color: var(--ok); }
.fac-card.on .fac-sel { color: var(--ink); }
.mini-cls { --c: var(--acc); display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 0; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.mini-cls img.emb-i { width: 22px; height: 22px; border-radius: 4px; }
.mini-cls:hover { color: var(--acc); }
.quiz-pick { --c: var(--acc); display: grid; grid-template-columns: 48px minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ln); color: var(--ink); text-decoration: none; }
.quiz-pick .emb { width: 48px; height: 48px; border-radius: 4px; overflow: hidden; }
.qp-b { display: grid; gap: 1px; min-width: 0; }
.qp-b small { color: var(--mut); font-size: .78rem; }
.qp-why { font-size: .78rem; color: var(--ink2); }
.qp-m { display: grid; gap: 4px; justify-items: end; }
.qp-m .bar { width: 100%; }
.qp-m .bar > i { background: var(--acc); }
@media (max-width: 520px) { .quiz-pick { grid-template-columns: 40px minmax(0, 1fr); } .qp-m { grid-column: 1 / -1; justify-items: stretch; } }
ol.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
ol.roadmap::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: var(--ln2); }
ol.roadmap li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 9px 0; }
.rm-n { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: .86rem; color: var(--ink); background: var(--sf3); border: 1px solid var(--ln2); box-shadow: 0 0 0 4px var(--bg0); }
ol.roadmap h3 { font-size: 1rem; margin-top: 4px; }
ol.roadmap p { font-size: .9rem; color: var(--ink2); margin-top: 2px; }
.ilcalc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; }
.ilc-in { display: grid; gap: 6px; }
.ilc-in input { font: inherit; font-family: var(--f-mono); font-size: 1.4rem; padding: 7px 11px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; color: var(--ink); width: 100%; }
.ilc-out { display: grid; gap: 8px; }
.ilc-now b { display: block; font-size: 1.05rem; }
.ilc-next { display: grid; gap: 6px; }
.rung.cur { box-shadow: inset 2px 0 0 var(--acc); padding-left: 14px; }
@media (max-width: 640px) { .ilcalc { grid-template-columns: 1fr; } }

/* ───────── 装備 ───────── */
.gtabs { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-bottom: 14px; border-bottom: 1px solid var(--ln); }
.gtabs button { padding: 7px 2px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--mut); font-weight: 700; font-size: .86rem; cursor: pointer; transition: color .2s, border-color .2s; }
.gtabs button:hover { color: var(--ink); }
.gtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--acc); }
tr.hot td { background: color-mix(in srgb, var(--acc) 6%, transparent); }
.hot-t { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--ink); font-size: .66rem; padding: 1px 7px; }
.hot-t svg { width: 11px; height: 11px; color: var(--acc); }
.chance { display: inline-flex; align-items: center; gap: 8px; min-width: 110px; }
.chance i { display: block; width: 70px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.chance i::after { content: ""; position: absolute; inset: 0; background: var(--acc); transform-origin: left; transform: scaleX(var(--p, 0)); }
.chance b { font-size: .78rem; font-weight: 500; color: var(--ink2); }
.arc-grid { display: grid; grid-template-columns: minmax(80px, .6fr) 1fr 1fr; gap: 6px; }
.arc-h { padding: 7px 11px; font-weight: 700; font-size: .84rem; display: flex; align-items: center; gap: 6px; }
.arc-h svg { width: 16px; height: 16px; }
.arc-h.vig { background: rgba(255, 120, 120, .12); color: #ffb3b3; }
.arc-h.mag { background: rgba(120, 160, 255, .12); color: #b3c8ff; }
.arc-s { padding: 9px 0; font-weight: 700; border-top: 1px solid var(--ln); }
.arc-c { padding: 9px 11px; border-top: 1px solid var(--ln); font-size: .9rem; }
.arc-c.vig { box-shadow: inset 2px 0 0 rgba(255, 120, 120, .45); }
.arc-c.mag { box-shadow: inset 2px 0 0 rgba(120, 160, 255, .45); }
.theo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.theo-i { --c: var(--acc); display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--ln); }
.theo-i img.emb-i { width: 32px; height: 32px; border-radius: 5px; grid-row: span 2; }
.theo-i span { font-size: .84rem; color: var(--ink2); }

/* ───────── ダンジョン ───────── */
.mch { --mc: #9aa4b8; display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 3px; font-size: .72rem; font-weight: 700; white-space: nowrap; color: var(--mc); background: color-mix(in srgb, var(--mc) 13%, transparent); }
.mch svg { width: 13px; height: 13px; }
.mch-behind { --mc: #46d3b7; } .mch-stack { --mc: #68a7ee; } .mch-spread { --mc: #b197ff; } .mch-jump { --mc: #7fd0ff; } .mch-stagger { --mc: #ffd36e; }
.mch-wipe { --mc: #ff6b7d; } .mch-adds { --mc: #ff9f4a; } .mch-out { --mc: #ff8fc8; } .mch-center { --mc: #5fe0d0; } .mch-stop { --mc: #c4cbe0; }
.mch-break { --mc: #f5b04b; } .mch-free { --mc: #a8e06a; } .mch-color { --mc: #f07ad8; } .mch-look { --mc: #8f9cff; } .mch-dodge { --mc: #9fb0cc; }
.mch-soak { --mc: #5fd38d; } .mch-enrage { --mc: #ff8a5c; } .mch-cleanse { --mc: #7ee8c0; } .mch-line { --mc: #ffe27a; }
ul.mlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.mlist li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--ln); }
ul.mlist li:first-child { border-top: 0; padding-top: 0; }
ul.mlist .mch { justify-self: start; margin-top: 2px; }
ul.mlist .mtx { font-size: .92rem; }
@media (max-width: 600px) { ul.mlist li { grid-template-columns: 1fr; gap: 4px; } }

.dgm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.dgm-card { display: grid; gap: 8px; align-content: start; }
.dgm-t { display: grid; gap: 4px; justify-items: start; }
.dgm-t .small { color: var(--ink2); line-height: 1.5; }
@media (max-width: 900px) { .dgm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dgm { position: relative; width: 100%; aspect-ratio: 1.5; border-radius: 4px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(120, 150, 220, .12), transparent 70%), #070b16; }
.dgm i { position: absolute; display: block; }
.dgm:not(.play) i, .dgm:not(.play) b { animation-play-state: paused !important; }
.dg-boss { left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff9aa8, #c0475a); box-shadow: 0 0 14px rgba(255, 90, 110, .6); z-index: 2; }
.dg-boss::after { content: ""; position: absolute; left: 50%; top: -7px; margin-left: -5px; border: 5px solid transparent; border-bottom: 7px solid #ff9aa8; border-top: 0; }
.dg-boss.big { width: 30px; height: 30px; margin: -22px 0 0 -15px; }
.dg-p { left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #9fe3ff; box-shadow: 0 0 8px #7fd0ff; z-index: 3; }
.dg-cone { left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: conic-gradient(from -70deg, rgba(255, 80, 100, .55) 0 140deg, transparent 140deg); -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); mask: radial-gradient(circle, #000 60%, transparent 61%); animation: dgPulse 3s ease-in-out infinite; }
.dg-safe { left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: conic-gradient(from 145deg, rgba(70, 211, 183, .35) 0 70deg, transparent 70deg); -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); mask: radial-gradient(circle, #000 60%, transparent 61%); }
.dg-p.p1 { animation: dgBehind 3s ease-in-out infinite; }
@keyframes dgPulse { 0%, 100% { opacity: .35; } 45%, 60% { opacity: 1; } }
@keyframes dgBehind { 0%, 10% { transform: translate(0, -30px); } 40% { transform: translate(28px, 0); } 70%, 100% { transform: translate(0, 28px); } }
.dg-ring { left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px dashed #68a7ee; animation: dgRing 3s ease-in-out infinite; }
@keyframes dgRing { 0%, 55% { transform: scale(1); opacity: .6; } 70% { transform: scale(1.5); opacity: 1; border-style: solid; } 100% { transform: scale(1); opacity: .6; } }
.dg-p.s1 { animation: dgS1 3s ease-in-out infinite; } .dg-p.s2 { animation: dgS2 3s ease-in-out infinite; } .dg-p.s3 { animation: dgS3 3s ease-in-out infinite; } .dg-p.s4 { animation: dgS4 3s ease-in-out infinite; }
@keyframes dgS1 { 0%, 10% { transform: translate(-45px, -30px); } 55%, 100% { transform: translate(-5px, -3px); } }
@keyframes dgS2 { 0%, 10% { transform: translate(45px, -30px); } 55%, 100% { transform: translate(5px, -3px); } }
@keyframes dgS3 { 0%, 10% { transform: translate(-45px, 30px); } 55%, 100% { transform: translate(-5px, 4px); } }
@keyframes dgS4 { 0%, 10% { transform: translate(45px, 30px); } 55%, 100% { transform: translate(5px, 4px); } }
.dg-p.o1 { animation: dgO1 3s ease-in-out infinite; } .dg-p.o2 { animation: dgO2 3s ease-in-out infinite; } .dg-p.o3 { animation: dgO3 3s ease-in-out infinite; } .dg-p.o4 { animation: dgO4 3s ease-in-out infinite; }
@keyframes dgO1 { 0%, 10% { transform: translate(-4px, -3px); } 50%, 100% { transform: translate(-48px, -30px); } }
@keyframes dgO2 { 0%, 10% { transform: translate(4px, -3px); } 50%, 100% { transform: translate(48px, -30px); } }
@keyframes dgO3 { 0%, 10% { transform: translate(-4px, 3px); } 50%, 100% { transform: translate(-48px, 30px); } }
@keyframes dgO4 { 0%, 10% { transform: translate(4px, 3px); } 50%, 100% { transform: translate(48px, 30px); } }
.dg-c { left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid rgba(177, 151, 255, .7); background: rgba(177, 151, 255, .15); opacity: 0; }
.dg-c.o1 { animation: dgC 3s ease-in-out infinite; --tx: -48px; --ty: -30px; } .dg-c.o2 { animation: dgC 3s ease-in-out infinite; --tx: 48px; --ty: -30px; } .dg-c.o3 { animation: dgC 3s ease-in-out infinite; --tx: -48px; --ty: 30px; } .dg-c.o4 { animation: dgC 3s ease-in-out infinite; --tx: 48px; --ty: 30px; }
@keyframes dgC { 0%, 50% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.3); } 65%, 90% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1); } }
.dg-wave { left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 3px solid rgba(127, 208, 255, .85); animation: dgWave 2.4s ease-out infinite; }
@keyframes dgWave { 0% { transform: scale(.15); opacity: 1; } 100% { transform: scale(1.05); opacity: 0; } }
.dg-p.jp { margin-left: 34px; animation: dgJump 2.4s ease-out infinite; }
@keyframes dgJump { 0%, 30% { transform: translateY(0); } 42% { transform: translateY(-16px); } 56%, 100% { transform: translateY(0); } }
.dg-gauge { left: 50%; top: 62%; width: 90px; height: 8px; margin-left: -45px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dg-gauge b { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #ffd36e, #ff9f4a); transform-origin: left; animation: dgGauge 3s ease-in infinite; }
@keyframes dgGauge { 0%, 10% { transform: scaleX(1); } 70%, 100% { transform: scaleX(0); } }
.dg-bang { left: 50%; top: 22%; margin-left: -8px; font-style: normal; font-weight: 900; font-size: 22px; color: #ffd36e; text-shadow: 0 0 12px #ffd36e; opacity: 0; animation: dgBang 3s ease-out infinite; }
@keyframes dgBang { 0%, 70% { opacity: 0; transform: scale(.4); } 78% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1); } }
.dg-p.ot { animation: dgOut 3.2s ease-in-out infinite; }
@keyframes dgOut { 0%, 10% { transform: translate(18px, 14px); } 55%, 100% { transform: translate(70px, 36px); } }
.dg-pool { left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 110, 150, .7), rgba(255, 110, 150, .15) 70%); transform: translate(70px, 36px); opacity: 0; animation: dgPool 3.2s ease-in-out infinite; }
@keyframes dgPool { 0%, 58% { opacity: 0; } 70%, 92% { opacity: 1; } 100% { opacity: 0; } }
.dg-zone { top: 22%; bottom: 22%; width: 30%; border-radius: 12px; }
.dg-zone.red { left: 10%; background: rgba(255, 90, 110, .22); border: 2px solid rgba(255, 90, 110, .6); }
.dg-zone.blue { right: 10%; background: rgba(90, 150, 255, .22); border: 2px solid rgba(90, 150, 255, .6); }
.dg-p.cr { background: #ff8a9a; box-shadow: 0 0 8px #ff5a6e; animation: dgCr 3s ease-in-out infinite; }
.dg-p.cb { background: #8fb6ff; box-shadow: 0 0 8px #5a96ff; animation: dgCb 3s ease-in-out infinite; }
@keyframes dgCr { 0%, 10% { transform: translate(8px, -8px); } 60%, 100% { transform: translate(-55px, 0); } }
@keyframes dgCb { 0%, 10% { transform: translate(-8px, 8px); } 60%, 100% { transform: translate(55px, 0); } }
.dg-beam { left: 50%; top: 50%; width: 76px; height: 6px; margin-top: -3px; transform-origin: 0 50%; transform: rotate(25deg); background: linear-gradient(90deg, rgba(255, 90, 110, .9), rgba(255, 90, 110, .2)); animation: dgPulse 3s ease-in-out infinite; }
.dg-p.tg { transform: translate(68px, 32px); background: #ffd36e; box-shadow: 0 0 8px #ffd36e; }
.dg-p.sk { animation: dgSoak 3s ease-in-out infinite; background: #5fd38d; box-shadow: 0 0 8px #5fd38d; }
@keyframes dgSoak { 0%, 10% { transform: translate(-20px, 40px); } 55%, 100% { transform: translate(36px, 17px); } }
/* 避ける：足元に予兆の円が広がって弾ける → その前に円の外へ */
.dgm-dodge .dg-boss { top: 30%; }
.dg-warn { left: 62%; top: 62%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 110, .5), rgba(255, 90, 110, .12) 70%); border: 2px solid rgba(255, 90, 110, .8); opacity: 0; animation: dgWarn 3s ease-in infinite; }
@keyframes dgWarn { 0%, 6% { opacity: 0; transform: scale(.2); } 18% { opacity: 1; } 52% { opacity: 1; transform: scale(1); } 60% { opacity: 1; transform: scale(1.18); } 74%, 100% { opacity: 0; transform: scale(1.25); } }
.dg-p.dd { left: 62%; top: 62%; animation: dgDodge 3s ease-in-out infinite; }
@keyframes dgDodge { 0%, 16% { transform: translate(0, 0); } 44%, 100% { transform: translate(-62px, -4px); } }
/* 中央へ：外側から危険な輪が縮んでくる → 中央に寄る */
.dg-close { left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; border: 96px solid rgba(255, 90, 110, .32); opacity: 0; animation: dgClose 3.2s ease-in infinite; }
@keyframes dgClose { 0%, 8% { opacity: 0; transform: scale(1.35); } 22% { opacity: 1; } 62%, 86% { opacity: 1; transform: scale(.82); } 100% { opacity: 0; transform: scale(.82); } }
.dg-safec { left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px dashed rgba(95, 224, 208, .85); }
.dg-p.ce { animation: dgCenter 3.2s ease-in-out infinite; }
@keyframes dgCenter { 0%, 14% { transform: translate(70px, -34px); } 56%, 100% { transform: translate(2px, 0); } }
/* 攻撃を止める：反射の構え（盾）の間は撃たない */
.dg-shield { left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; border: 3px solid rgba(170, 195, 255, .95); background: rgba(120, 160, 255, .2); opacity: 0; animation: dgShield 3.2s ease-in-out infinite; }
@keyframes dgShield { 0%, 30% { opacity: 0; transform: scale(.6); } 38%, 76% { opacity: 1; transform: scale(1); } 84%, 100% { opacity: 0; transform: scale(1.25); } }
.dg-p.sp { transform: translate(-64px, 20px); }
.dg-shot { left: 50%; top: 50%; width: 9px; height: 3px; margin: -1.5px 0 0 -4.5px; border-radius: 2px; background: #bfeaff; box-shadow: 0 0 6px #7fd0ff; opacity: 0; animation: dgShot 3.2s linear infinite; }
@keyframes dgShot { 0% { opacity: 1; transform: translate(-58px, 18px) rotate(-17deg); } 11% { opacity: 1; transform: translate(-16px, 5px) rotate(-17deg); } 12%, 15% { opacity: 0; transform: translate(-58px, 18px) rotate(-17deg); } 16% { opacity: 1; transform: translate(-58px, 18px) rotate(-17deg); } 27% { opacity: 1; transform: translate(-16px, 5px) rotate(-17deg); } 28%, 85% { opacity: 0; transform: translate(-58px, 18px) rotate(-17deg); } 86% { opacity: 1; transform: translate(-58px, 18px) rotate(-17deg); } 97% { opacity: 1; transform: translate(-16px, 5px) rotate(-17deg); } 98%, 100% { opacity: 0; transform: translate(-16px, 5px) rotate(-17deg); } }
/* 雑魚・召喚：周りに出た雑魚を先に倒す */
.dg-add { left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #ff9f4a; box-shadow: 0 0 8px #ff9f4a; opacity: 0; animation: dgAdd 3.4s ease-out infinite; }
.dg-add.a1 { --tx: -54px; --ty: -24px; } .dg-add.a2 { --tx: -46px; --ty: 28px; } .dg-add.a3 { --tx: 52px; --ty: -26px; animation-name: dgAdd3; }
@keyframes dgAdd { 0%, 8% { opacity: 0; transform: translate(0, 0) scale(.3); } 24%, 64% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); } 76%, 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.7); } }
@keyframes dgAdd3 { 0%, 8% { opacity: 0; transform: translate(0, 0) scale(.3); } 24%, 86% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); } 96%, 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.7); } }
.dg-p.ad { animation: dgAddP 3.4s ease-in-out infinite; }
@keyframes dgAddP { 0%, 24% { transform: translate(10px, 44px); } 46%, 66% { transform: translate(-50px, 2px); } 80%, 90% { transform: translate(38px, -20px); } 100% { transform: translate(10px, 44px); } }
/* 壊す：決められた物（槍・玉・水晶・岩）を叩いて壊す */
.dg-crys { left: 72%; top: 46%; width: 18px; height: 26px; margin: -13px 0 0 -9px; background: linear-gradient(160deg, #fff6d8, #f5b04b 60%, #a56a12); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: 0; animation: dgCrys 3s ease-in infinite; }
@keyframes dgCrys { 0%, 8% { opacity: 0; transform: scale(.4); } 20%, 58% { opacity: 1; transform: scale(1); } 62% { opacity: 1; transform: scale(1.12) rotate(6deg); } 66% { opacity: 1; transform: scale(1.06) rotate(-6deg); } 72%, 100% { opacity: 0; transform: scale(1.8); } }
.dg-hit { left: 72%; top: 46%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid rgba(255, 220, 140, .9); opacity: 0; animation: dgHit 3s ease-out infinite; }
@keyframes dgHit { 0%, 48% { opacity: 0; transform: scale(.4); } 52% { opacity: 1; transform: scale(.8); } 58% { opacity: 0; transform: scale(1.3); } 60% { opacity: 1; transform: scale(.8); } 66% { opacity: 0; transform: scale(1.3); } 70% { opacity: 1; transform: scale(.9); } 80%, 100% { opacity: 0; transform: scale(2); } }
.dg-p.bk { animation: dgBreakP 3s ease-in-out infinite; }
@keyframes dgBreakP { 0%, 18% { transform: translate(-40px, 30px); } 46%, 72% { transform: translate(28px, -6px); } 100% { transform: translate(-40px, 30px); } }
/* 全滅技：時間内に対処しないと全員が倒れる（縮んでいく輪が残り時間） */
.dg-timer { left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 3px solid rgba(255, 107, 125, .9); animation: dgTimer 3.2s linear infinite; }
@keyframes dgTimer { 0% { opacity: .9; transform: scale(1.9); } 74% { opacity: 1; transform: scale(.5); } 78%, 100% { opacity: 0; transform: scale(.5); } }
.dg-flash { left: 0; top: 0; right: 0; bottom: 0; background: rgba(255, 70, 95, .45); opacity: 0; animation: dgFlash 3.2s ease-out infinite; }
@keyframes dgFlash { 0%, 74% { opacity: 0; } 79% { opacity: 1; } 100% { opacity: 0; } }
.dgm-wipe .dg-bang { color: #ff6b7d; text-shadow: 0 0 12px #ff6b7d; animation-name: dgBangW; animation-duration: 3.2s; }
@keyframes dgBangW { 0%, 74% { opacity: 0; transform: scale(.4); } 80% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1); } }
/* 時間切れ（狂暴化）：ゲージが尽きるとボスが強くなる */
.dgm-enrage .dg-boss { animation: dgEnrage 3.2s ease-in infinite; }
@keyframes dgEnrage { 0%, 70% { transform: scale(1); } 78%, 94% { transform: scale(1.5); } 100% { transform: scale(1); } }
.dg-gauge.en b { background: linear-gradient(90deg, #ff8a5c, #ff5a6e); animation: dgGaugeE 3.2s linear infinite; }
@keyframes dgGaugeE { 0% { transform: scaleX(1); } 70%, 100% { transform: scaleX(0); } }
.dg-rage { left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 110, 70, .55), transparent 70%); opacity: 0; animation: dgRage 3.2s ease-out infinite; }
@keyframes dgRage { 0%, 70% { opacity: 0; transform: scale(.6); } 80%, 92% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1.3); } }
/* 一直線：ボス・玉・印の人を一直線に並べ、攻撃を玉に当てる */
.dgm-line .dg-boss { left: 22%; }
.dg-orb { left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #cfe6ff, #3d7ee6); box-shadow: 0 0 10px #5aa0ff; animation: dgOrb 3.2s ease-out infinite; }
@keyframes dgOrb { 0%, 64% { transform: scale(1); } 68% { transform: scale(1.6); } 76%, 100% { transform: scale(1); } }
.dg-ray { left: 22%; top: 50%; width: 28%; height: 4px; margin-top: -2px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255, 226, 122, .95), rgba(255, 226, 122, .5)); opacity: 0; animation: dgRay 3.2s ease-out infinite; }
@keyframes dgRay { 0%, 56% { opacity: 0; transform: scaleX(0); } 66% { opacity: 1; transform: scaleX(1); } 74%, 100% { opacity: 0; transform: scaleX(1); } }
.dg-p.ln { background: #ffd36e; box-shadow: 0 0 8px #ffd36e; animation: dgLine 3.2s ease-in-out infinite; }
@keyframes dgLine { 0%, 14% { transform: translate(52px, -40px); } 48%, 100% { transform: translate(64px, 0); } }
/* 衝撃解除：束縛されたらすぐ解いて動く */
.dg-bind { left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px dashed #a8e06a; opacity: 0; animation: dgBind 3s ease-out infinite; }
@keyframes dgBind { 0%, 12% { opacity: 0; transform: translate(-42px, 16px) scale(1.7); } 24%, 46% { opacity: 1; transform: translate(-42px, 16px) scale(1); } 56%, 100% { opacity: 0; transform: translate(-42px, 16px) scale(2); } }
.dg-p.fr { animation: dgFree 3s ease-in-out infinite; }
@keyframes dgFree { 0%, 50% { transform: translate(-42px, 16px); } 84%, 100% { transform: translate(-74px, -18px); } }

/* ダンジョン：一覧の表（狭い画面では行ごとに縦に積む） */
.dg-tbl th[scope="row"] { white-space: normal; }
.dg-name { display: grid; gap: 0; color: var(--ink); text-decoration: none; }
.dg-name b { font-size: .95rem; }
.dg-name small { font-size: .74rem; color: var(--mut); font-weight: 500; }
.dg-name:hover b { color: var(--acc); }
td.nw { white-space: nowrap; font-family: var(--f-mono); font-size: .84rem; }
@media (max-width: 760px) {
  .dg-tbl thead { display: none; }
  .dg-tbl tr { display: grid; padding: 12px 0; border-top: 1px solid var(--ln); }
  .dg-tbl th[scope="row"], .dg-tbl td { border: 0; padding: 2px 0; }
  .dg-tbl td::before { content: attr(data-l); display: inline-block; min-width: 6.5em; color: var(--mut); font-size: .76rem; font-weight: 700; font-family: var(--f-body); }
}
/* ダンジョン：各ページ */
.dg-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 30px; align-items: start; padding: 28px 0 24px; border-bottom: 1px solid var(--ln); }
.dg-head.novid { grid-template-columns: minmax(0, 1fr); }
.dg-ttl { display: grid; gap: 6px; align-content: start; min-width: 0; }
.dg-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; }
.dg-head .en { color: var(--mut); font-size: .86rem; }
.dg-lead { color: var(--ink2); margin-top: 4px; max-width: 64ch; }
dl.dg-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 20px; margin: 14px 0 0; font-size: .9rem; max-width: 640px; }
dl.dg-facts dt, dl.dg-facts dd { padding: 7px 0; border-top: 1px solid var(--ln); margin: 0; }
dl.dg-facts dt { color: var(--mut); font-weight: 700; }
dl.dg-facts dd { font-family: var(--f-body); }
.dg-rw { display: block; color: var(--ink2); font-size: .86rem; }
.dg-vid { align-self: start; }
.dg-vid p { margin-top: 6px; }
.dg-modebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 22px 0 4px; }
.dg-modebar p { color: var(--ink2); max-width: 74ch; flex: 1 1 320px; }
.md-tag { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 3px; font-size: .7rem; font-weight: 700; color: #ffb0ba; background: rgba(255, 107, 125, .14); vertical-align: 1px; white-space: nowrap; }
.md-tag.e { color: #9fd8ff; background: rgba(127, 208, 255, .13); }
.boss-grp { font-size: 1.05rem; font-weight: 800; margin: 38px 0 -8px; padding-left: 10px; border-left: 3px solid var(--acc); }
.boss-d { color: var(--ink2); margin: 8px 0 2px; font-size: .9rem; max-width: 80ch; }
ul.dg-how { gap: 6px; max-width: 86ch; }
.dg-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; padding-top: 14px; border-top: 1px solid var(--ln); }
.dg-pn a { display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.dg-pn a.r { text-align: right; justify-items: end; }
.dg-pn a b { font-size: 1.02rem; }
.dg-pn a:hover b { color: var(--acc); }
figure.dgm-card { margin: 0; }
/* ダンジョンの公式の画面：冒頭（動画の無いページ）・ボスの右・追加の画面 */
figure.dg-img, figure.boss-fig, figure.dg-fig { margin: 0; }
figure.dg-img img, figure.boss-fig img, figure.dg-fig img { display: block; width: 100%; height: auto; border-radius: 4px; background: #0b0d14; }
figure.boss-fig { float: right; width: min(42%, 400px); margin: 12px 0 10px 26px; }
.boss::after { content: ""; display: block; clear: both; }
.dg-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 20px; }
.dg-fig figcaption { margin-top: 6px; font-size: .8rem; color: var(--mut); }
@media (max-width: 720px) { figure.boss-fig { float: none; width: 100%; margin: 10px 0 6px; } }
@media (max-width: 860px) { .dg-head { grid-template-columns: 1fr; } }
ol.route-l { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
ol.route-l li::marker { color: var(--acc); font-family: var(--f-mono); font-weight: 700; }
.boss { position: relative; margin-top: 30px; }
.boss-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--ln2); }
.boss-h h3 { font-size: 1.12rem; font-weight: 800; }
.boss-k { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: var(--mut); }
.boss.fin .boss-k { color: #ff8a9a; }
.boss-k svg { width: 14px; height: 14px; }
.boss-ko { font-size: .78rem; color: var(--mut2); }
p.hard { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; margin-top: 12px; padding: 2px 0 2px 12px; border-left: 2px solid var(--kr); font-size: .86rem; }
p.hard svg { width: 16px; height: 16px; color: var(--kr); margin-top: 3px; }
.dg-vid { align-self: center; }
.party-viz { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pv-slot { --c: var(--acc); display: grid; justify-items: center; gap: 4px; width: 66px; padding: 4px 2px; }
.pv-slot .emb-i { width: 36px; height: 36px; border-radius: 5px; }
.pv-slot small { font-size: .66rem; color: var(--ink2); font-weight: 700; }
.pv-slot.opt { opacity: .7; }
.build-tbl td { vertical-align: middle; }
.build-tbl .chips { gap: 4px; }
.build-tbl .chip { font-size: .76rem; padding: 2px 8px; }
tr.sel td { background: color-mix(in srgb, var(--acc) 10%, transparent); }

/* ───────── 公式動画（押すまで読み込まない） ───────── */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; }
.yt-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; display: block; }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .3s; }
.yt-btn:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .62); border: 2px solid rgba(255, 255, 255, .85); color: #fff; transition: background-color .2s; }
.yt-play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.yt-btn:hover .yt-play { background: rgba(0, 0, 0, .8); }
.yt-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; text-align: left; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82)); color: #fff; display: grid; gap: 1px; }
.yt-t b { font-size: .92rem; }
.yt-t small { font-size: .72rem; color: rgba(255, 255, 255, .72); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tagline { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.alt-b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--ln2); }
.alt-b .chip small { font-family: var(--f-mono); color: var(--acc); margin-right: 2px; }
.stg { --c: var(--acc); display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ln); }
.stg .h3 { margin-bottom: 4px; }
.stg p { margin-top: 3px; }
.stg-n { font-size: 1.02rem; }
.stg-gauge { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) 0 72%, rgba(255, 255, 255, .08) 72% 100%); }
.stg-gauge::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg0); }
.stg-gauge i { display: none; }
.stg-gauge b { position: relative; font-family: var(--f-mono); font-size: 1.3rem; color: var(--c); }
@keyframes stgPulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }

/* ───────── 羽集めチェッカー ───────── */
.fm-regions { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 18px 0 16px; border-bottom: 1px solid var(--ln); }
.fm-regions button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; align-items: center; text-align: left; padding: 8px 2px 9px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; transition: border-color .25s; }
.fm-regions button svg { width: 20px; height: 20px; grid-row: span 2; color: var(--mut); }
.fm-regions button.fac-elyos svg { color: #ffd36e; }
.fm-regions button.fac-asmo svg { color: #b197ff; }
.fm-regions button b { font-size: .95rem; }
.fm-regions button small { font-size: .72rem; color: var(--mut); }
.fm-regions button[aria-selected="true"] { border-bottom-color: var(--acc); }
.fm-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.fm-mapcard { position: relative; padding: 0; border-top: 0; }
.fm-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.fm-ctrl { gap: 12px; }
.fm-chk { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink2); cursor: pointer; }
.fm-chk input { accent-color: var(--acc); width: 16px; height: 16px; }
.fm-zoom { display: inline-flex; gap: 4px; }
.fm-zoom button { width: 32px; height: 32px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.fm-zoom button:hover { border-color: var(--acc); }
.fm-zoom svg { width: 17px; height: 17px; }
.fm-box { position: relative; height: min(72vh, 680px); min-height: 360px; border-radius: 4px; overflow: hidden; touch-action: none; cursor: grab; background: #d6ccb6; }
.fm-box:active { cursor: grabbing; }
.fmap-svg { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
.fmap-svg .zn { vector-effect: non-scaling-stroke; stroke-width: 1; transition: fill .3s; }
.fmap-svg .zn.fld { fill: transparent; stroke: rgba(255, 255, 255, .5); }
.fmap-svg .zn.vil { fill: transparent; stroke: color-mix(in srgb, var(--acc) 85%, #fff); }
.fmap-svg .zn.hl { animation: znHl 1.6s ease-out; }
@keyframes znHl { 0%, 30% { fill: color-mix(in srgb, var(--acc) 45%, transparent); } 100% { } }
.fmap-svg .zl { font-size: var(--fs, 60px); fill: #fff; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(4, 8, 18, .85); stroke-width: calc(var(--fs, 60px) * .25); font-weight: 700; opacity: 0; transition: opacity .3s; pointer-events: none; }
.fmap-svg.lbl-on .zl { opacity: 1; }
.fmap-svg .kb path { fill: #2f6fd0; stroke: #fff; stroke-width: .25; }
.fmap-svg .mn path { fill: #fff; }
.fmap-svg .mn-h { fill: color-mix(in srgb, var(--acc) 50%, transparent); }
.fmap-svg .route { fill: none; stroke: color-mix(in srgb, var(--acc) 85%, #000); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 6 5; opacity: .8; pointer-events: none; }
.fmap-svg .trs { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .95)); }
.fmap-svg .tr { r: var(--mr, 30px); stroke: transparent; stroke-width: var(--hit, 60px); cursor: pointer; paint-order: stroke; transition: opacity .25s; }
.fmap-svg .tr.s0 { fill: #ffd36e; }
.fmap-svg .tr.s1 { fill: #7fd0ff; }
.fmap-svg .tr.s2 { fill: #5fe0b5; }
.fmap-svg .tr.on { fill: rgba(70, 72, 84, .55); }
.fmap-svg .tr:hover { fill: #fff; }
.fmap-svg .tr.hlz { animation: trHl 1.8s ease-out; }
@keyframes trHl { 0%, 40% { stroke: rgba(255, 255, 255, .9); stroke-width: calc(var(--u, 4) * 5px); } 100% { stroke: transparent; } }
.fmap-svg .tr.pop { animation: trPop .4s ease-out; }
@keyframes trPop { 0% { opacity: .3; } 100% { opacity: 1; } }
.fmap-svg.only-left .tr.on { display: none; }
.fmap-svg.hide-s0 .tr.s0, .fmap-svg.hide-s1 .tr.s1, .fmap-svg.hide-s2 .tr.s2 { display: none; }
.fm-tip { position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 1px; padding: 8px 11px; border-radius: 10px; background: rgba(8, 12, 24, .94); border: 1px solid var(--ln2); font-size: .8rem; max-width: 240px; box-shadow: 0 10px 24px -10px #000; }
.fm-tip span { color: var(--ink2); font-size: .76rem; }
.sw { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.sw.s0 { background: #ffd36e; } .sw.s1 { background: #7fd0ff; } .sw.s2 { background: #5fe0b5; } .sw.done { background: rgba(150, 160, 185, .45); }
.fm-side { position: sticky; top: calc(var(--hdh, 106px) + 12px); max-height: calc(100vh - var(--hdh, 106px) - 28px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 10px; padding: 0 0 0 18px; border-top: 0; border-left: 1px solid var(--ln); }
.fm-prog { display: grid; gap: 8px; }
.fm-num { display: flex; align-items: baseline; gap: 4px; }
.fm-num b { font-size: 1.7rem; color: var(--acc); }
.fm-pct { margin-left: auto; font-size: .95rem; color: var(--ink); }
.fm-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-sub { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; font-size: .78rem; font-weight: 700; color: var(--mut); cursor: pointer; }
.fm-sub i { width: 9px; height: 9px; border-radius: 50%; background: var(--sc); opacity: .4; }
.fm-sub.on { color: var(--ink); border-color: color-mix(in srgb, var(--sc) 60%, transparent); }
.fm-sub.on i { opacity: 1; }
.fm-sub .mono { font-weight: 500; font-size: .74rem; color: var(--mut); }
.fm-zwrap { overflow-x: hidden; overflow-y: auto; min-height: 120px; margin: 0 -6px; padding: 0 6px; }
ul.fm-zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
ul.fm-zones li { border-radius: 3px; padding: 4px 4px 6px; }
ul.fm-zones li:hover, ul.fm-zones li.open { background: rgba(255, 255, 255, .03); }
.fm-zr { display: flex; align-items: center; gap: 4px; }
.fm-zb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; padding: 4px; text-align: left; color: var(--ink); }
.fm-zb svg { width: 14px; height: 14px; color: var(--mut); transition: transform .25s; flex: none; }
.fm-zb[aria-expanded="true"] svg { transform: rotate(90deg); }
.fm-zb .nm { flex: 1; min-width: 0; font-size: .86rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-zb .ct { font-size: .76rem; color: var(--mut); }
li.done .fm-zb .nm { color: var(--mut); text-decoration: line-through; text-decoration-color: rgba(150, 160, 185, .5); }
.fm-go { width: 28px; height: 28px; border-radius: 4px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--mut); }
.fm-go:hover { color: var(--acc); border-color: var(--ln2); }
.fm-go svg { width: 15px; height: 15px; }
.zbar { display: block; height: 3px; margin: 2px 6px 0 26px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.zbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }
.fm-zitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 2px 8px; padding: 6px 6px 2px 26px; }
.fm-zi { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink2); cursor: pointer; }
.fm-zi input { accent-color: var(--acc); }
.fm-zi .sw { width: 8px; height: 8px; margin-right: 4px; }
/* 羽：モノリスのレベルとカウンター */
.fm-mono { display: grid; gap: 8px; }
.fm-mono-h { display: flex; align-items: baseline; gap: 8px; font-size: .86rem; color: var(--ink2); font-weight: 700; }
.fm-mono-h span:first-child { flex: 1; min-width: 0; }
.fm-mono-h b { font-size: 1.35rem; color: var(--ink); }
.fm-mono-s { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; }
.fm-mono-s b { color: var(--ink); }
.fm-cnt { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 6px; }
.fm-cnt .btn { justify-content: center; padding: 0; min-height: 34px; }
.fm-cnt input { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; color: var(--ink); font: inherit; font-family: var(--f-mono); font-size: 1rem; text-align: center; }
.fm-cnt input::-webkit-inner-spin-button { opacity: .4; }
.fm-mapcnt { margin-top: 2px; }
.fm-mapcnt b { color: var(--ink2); }
/* フィールドコンテンツマップ：層の切り替え・目印・採取物 */
.fm-layers { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.fm-ly { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; font-size: .8rem; font-weight: 700; color: var(--mut); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.fm-ly:hover { color: var(--ink); }
.fm-ly i { width: 10px; height: 10px; flex: none; opacity: .35; transition: opacity .2s; }
.fm-ly.on { color: var(--ink); border-color: color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 9%, transparent); }
.fm-ly.on i { opacity: 1; }
.fm-ly .mono { font-weight: 500; font-size: .74rem; color: var(--mut); }
.ly-trace i { border-radius: 50%; background: #ffd36e; }
.ly-sealed i { border-radius: 3px; background: #b98cff; }
.ly-gather i { border-radius: 50%; background: conic-gradient(#74e07a 0 25%, #5fd3ff 0 50%, #ff8ac2 0 75%, #f2dc5c 0); }
.ly-named i { background: #ff5a5f; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ly-rift i { border-radius: 50%; border: 2.5px solid #c48bff; }
.ly-kib i { background: #2f6fd0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ly-mono i { background: #fff; clip-path: polygon(50% 0, 78% 50%, 50% 100%, 22% 50%); box-shadow: 0 0 8px var(--acc); }
.ly-zl i { background: none; border-bottom: 2px solid var(--ink2); border-radius: 0; height: 6px; }
.ly-route i { background: none; border-top: 2px dashed var(--acc); border-radius: 0; height: 2px; }
.fm-gks { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 0 0 10px; margin: 0 0 10px; border-bottom: 1px solid var(--ln); }
.fm-gt { font-size: .7rem; font-weight: 700; color: var(--mut); margin-left: 6px; }
.fm-gt:first-child { margin-left: 0; }
.fm-gkb { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; font-size: .76rem; font-weight: 700; color: var(--mut); cursor: pointer; }
.fm-gkb i { width: 9px; height: 9px; border-radius: 50%; background: var(--gc); opacity: .3; }
.fm-gkb.on { color: var(--ink); border-color: color-mix(in srgb, var(--gc) 55%, transparent); }
.fm-gkb.on i { opacity: 1; }
.fm-gkb .mono { font-weight: 500; font-size: .7rem; color: var(--mut); }
.fm-gall { display: inline-flex; gap: 4px; margin-left: auto; }
.fm-gnames { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; }
.fm-gname { display: inline-flex; align-items: center; gap: 6px; }
.fm-gname i { width: 9px; height: 9px; border-radius: 50%; background: var(--gc); }
.fm-stabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: 5px; border: 1px solid var(--ln2); }
.fm-stabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border: 0; border-radius: 3px; background: transparent; color: var(--mut); font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.fm-stabs button svg { width: 15px; height: 15px; flex: none; }
.fm-stabs button .mono { font-weight: 500; font-size: .72rem; }
.fm-stabs button[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: var(--ink); }
ul.fm-sl { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
ul.fm-sl li { display: flex; align-items: center; gap: 4px; border-radius: 3px; padding: 1px 2px; }
ul.fm-sl li:hover { background: rgba(255, 255, 255, .03); }
.fm-si { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 5px 4px; cursor: pointer; font-size: .84rem; }
.fm-si input { accent-color: var(--acc); flex: none; }
.fm-si .lv { flex: none; width: 3.4em; font-size: .72rem; color: var(--mut); }
.fm-si .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
ul.fm-sl li.done .nm { color: var(--mut); text-decoration: line-through; text-decoration-color: rgba(150, 160, 185, .5); }
/* 目印：位置と大きさは CSS の transform（--x/--y と拡大率の変数）。アニメーションは transform 以外で */
.fmap-svg .mk { transform: translate(var(--x), var(--y)) scale(var(--s7, 40)); }
.fmap-svg .kb { transform: translate(var(--x), var(--y)) scale(var(--s5, 30)); }
.fmap-svg .mn { transform: translate(var(--x), var(--y)) scale(var(--s9, 50)); }
.fmap-svg .sd { cursor: pointer; }
.fmap-svg .sd rect { fill: #9b6cf0; stroke: #fff; stroke-width: .22; }
.fmap-svg .sd text { font-size: 1.45px; font-weight: 800; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.fmap-svg .sd .ck { fill: none; stroke: #fff; stroke-width: .3; stroke-linecap: round; stroke-linejoin: round; display: none; }
.fmap-svg .sd.on rect { fill: rgba(80, 84, 100, .75); stroke: rgba(255, 255, 255, .55); }
.fmap-svg .sd.on text { display: none; }
.fmap-svg .sd.on .ck { display: inline; }
.fmap-svg .sd:hover rect { fill: #c3a2ff; }
.fmap-svg .sd.hlz rect { animation: sdHl 1.8s ease-out; }
@keyframes sdHl { 0%, 45% { stroke: #fff; stroke-width: .7; fill: #e2d1ff; } 100% { } }
.fmap-svg .sd.pop rect { animation: trPop .4s ease-out; }
.fmap-svg.only-left .sd.on { display: none; }
.fmap-svg .nd path { fill: #ff5a5f; stroke: #fff; stroke-width: .2; }
.fmap-svg .nd path.nd-i { fill: #fff; stroke: none; }
.fmap-svg .nd.k1 path:first-child { fill: #b06bff; }
.fmap-svg .nd.k2 path { fill: #46d6ff; stroke: #0b2340; stroke-width: .18; }
.fmap-svg .rf .rf-o { fill: rgba(20, 8, 40, .45); stroke: #c48bff; stroke-width: .36; }
.fmap-svg .rf .rf-i { fill: #e3c8ff; }
.fmap-svg .L-sealed, .fmap-svg .L-named, .fmap-svg .L-rift, .fmap-svg .L-kib, .fmap-svg .L-mono { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .9)); }
/* 採取物：同じ種類の円を不透明で描き、群（gu）ごと半透明にする＝重なっても濃くならず、範囲として見える */
.fmap-svg .gk .gu { fill: var(--gc); opacity: .26; }
.fmap-svg .gk .gp { r: var(--gr, 8px); fill: var(--gc); stroke: rgba(10, 14, 24, .85); stroke-width: calc(var(--u, 4) * .9px); }
.fmap-svg .glb { font-size: var(--gfs, 50px); font-weight: 800; fill: var(--gc); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(4, 8, 18, .9); stroke-width: calc(var(--gfs, 50px) * .28); opacity: 0; pointer-events: none; transition: opacity .25s; }
.fmap-svg.glbl-on .glb { opacity: 1; pointer-events: auto; }
.fmap-svg.off-trace .L-trace, .fmap-svg.off-sealed .L-sealed, .fmap-svg.off-gather .L-gather, .fmap-svg.off-gather .L-glbl,
.fmap-svg.off-named .L-named, .fmap-svg.off-rift .L-rift, .fmap-svg.off-kib .L-kib, .fmap-svg.off-mono .L-mono,
.fmap-svg.off-zl .L-zl, .fmap-svg.off-route .L-route { display: none; }

/* 地図の出典（利用条件が出典の表示を求める2つだけ） */
.fm-credit { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--ln); font-size: .78rem; color: var(--mut); }
.fm-credit h2 { font-size: .78rem; font-weight: 700; color: var(--mut); margin-bottom: 6px; }
.fm-credit dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; margin: 0; }
.fm-credit dd { margin: 0; color: var(--ink2); }
.fm-credit a { color: var(--ink2); }
.fm-credit a:hover { color: var(--ink); }
@media (max-width: 720px) { .fm-credit dl { grid-template-columns: 1fr; gap: 0; } .fm-credit dd { margin-bottom: 8px; } }

/* ───────── ディーヴァニオン ───────── */
.dv-wrap { --g0: #9aa4b8; --g1: #5fd38d; --g2: #5aa9ff; --g3: #ffa64d; --gold: #ffd36e; }
.dv-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 14px; align-items: start; margin: 14px 0; }
.dv-boards { display: flex; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid var(--ln); }
.dv-boards button { position: relative; display: grid; gap: 0; text-align: left; padding: 6px 2px 8px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; transition: border-color .25s; min-width: 0; }
.dv-boards button b { font-size: .95rem; }
.dv-boards button small { font-family: var(--f-mono); font-size: .72rem; color: var(--mut); }
.dv-boards button .tag { position: static; justify-self: start; margin-top: 2px; padding: 0 6px; font-size: .62rem; }
.dv-boards button:hover { border-bottom-color: var(--mut2); }
.dv-boards button[aria-selected="true"] { border-bottom-color: var(--acc); }
.dv-pts { display: grid; gap: 10px; }
.dv-pt { display: grid; gap: 6px; padding: 10px 0 0; border-top: 1px solid var(--ln); }
.dv-pt .lbl { letter-spacing: .06em; text-transform: none; }
.dv-pt b { font-size: .95rem; }
.dv-have { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--mut); }
.dv-have input { width: 96px; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; color: var(--ink); font: inherit; font-family: var(--f-mono); }
.bar.over > i { background: linear-gradient(90deg, var(--un), #ff4060); }
.dv-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.dv-side { position: sticky; top: calc(var(--hdh, 106px) + 12px); max-height: calc(100vh - var(--hdh, 106px) - 28px); overflow: auto; padding: 0 0 0 18px; border-top: 0; border-left: 1px solid var(--ln); }
.dv-info h3 { margin-bottom: 4px; }
.dv-stage { display: grid; place-items: center; padding: 10px 0 4px; overflow-x: auto; }
.dv-grid { --gap: 9px; --avail: calc(min(100vw, 1180px) - 470px); --cs: clamp(17px, calc(var(--avail) / var(--cols) - var(--gap)), 40px); --pad: 8px; position: relative; display: grid; grid-template-columns: repeat(var(--cols), var(--cs)); grid-auto-rows: var(--cs); gap: var(--gap); padding: var(--pad); border-radius: 16px; background: radial-gradient(circle at 50% 45%, rgba(46, 70, 104, .38), transparent 72%), #0b1017; border: 1px solid var(--ln); isolation: isolate; }
.dv-lines { position: absolute; z-index: 0; pointer-events: none; overflow: visible; }
.dv-lines .base { stroke: rgba(150, 170, 205, .16); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.dv-lines .on { stroke: var(--acc); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px var(--acc)); }
.dv-x { width: var(--cs); height: var(--cs); }
/* タイル：ゲームの画面を見て描き起こした絵（dv-art.js が CSS 変数に入れる）を背景に敷く。等級と「取った」で絵を替える */
.dv-n { --dvt: var(--dvt-c0); position: relative; z-index: 1; width: var(--cs); height: var(--cs); padding: 0; border: 0; border-radius: 0; background: var(--dvt) center / 100% 100% no-repeat; cursor: pointer; transition: transform .2s var(--ease), filter .25s; }
.dv-n.g1 { --dvt: var(--dvt-c1); } .dv-n.g2 { --dvt: var(--dvt-c2); } .dv-n.g3 { --dvt: var(--dvt-c3); }
.dv-n.on { --dvt: var(--dvt-o0); filter: drop-shadow(0 0 5px rgba(80, 190, 255, .5)); }
.dv-n.on.g1 { --dvt: var(--dvt-o1); } .dv-n.on.g2 { --dvt: var(--dvt-o2); } .dv-n.on.g3 { --dvt: var(--dvt-o3); }
.dv-n.st { --dvt: var(--dvt-st); filter: drop-shadow(0 0 7px rgba(240, 200, 110, .4)); }
/* 起点の円の中に、選んでいるクラスの公式の紋章（円は 64 の枠の中心 32,33・半径 24） */
.dv-n.st img.dv-st-i { position: absolute; left: 15.5%; top: 17%; width: 69%; height: 69%; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.dv-n:hover { transform: scale(1.12); z-index: 2; }
/* 取れるノードの印（ゲームには無い・このシミュレーターの案内） */
.dv-n.can::after { content: ""; position: absolute; inset: -3px; border-radius: 14%; border: 1px solid rgba(150, 205, 255, .7); opacity: 0; animation: canPulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes canPulse { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.25); } }
/* 詳細を出しているノード＝ゲームの「選んでいるノード」と同じ金の縁 */
.dv-n.sel { box-shadow: 0 0 0 2px #f1c35a, 0 0 10px 1px rgba(241, 195, 90, .55); z-index: 2; }
/* このクラスの主力スキル：右上の小さな金の菱形（選んでいるノードの金の縁と見分けるため、枠にはしない） */
.dv-n.core::before { content: ""; position: absolute; z-index: 2; top: -4px; right: -4px; width: 34%; height: 34%; background: linear-gradient(135deg, #fff3c4, var(--gold) 60%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); pointer-events: none; }
.dv-n:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dv-n.pop1 { animation: nodePop .4s var(--ease); }
@keyframes nodePop { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.dv-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--ink2); margin-top: 6px; }
.dv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dv-legend small { color: var(--mut); }
.dv-legend .lg { width: 18px; height: 18px; border: 0; background: var(--dvt-c0) center / 100% 100% no-repeat; display: inline-block; }
.dv-legend .lg.g1 { background-image: var(--dvt-c1); } .dv-legend .lg.g2 { background-image: var(--dvt-c2); } .dv-legend .lg.g3 { background-image: var(--dvt-c3); }
.dv-legend .lg.core { position: relative; background-image: var(--dvt-c2); }
.dv-legend .lg.core::before { content: ""; position: absolute; top: -3px; right: -3px; width: 40%; height: 40%; background: linear-gradient(135deg, #fff3c4, var(--gold) 60%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.dv-acts { margin-top: 6px; }
.dv-focus { padding-bottom: 10px; border-bottom: 1px solid var(--ln); }
.dv-focus p { font-size: .9rem; }
.dv-tabs2 { display: flex; gap: 4px; }
.dv-tabs2 button { flex: 1; border: 1px solid var(--ln2); background: transparent; color: var(--mut); border-radius: 4px; padding: 6px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.dv-tabs2 button[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: var(--ink); border-color: var(--mut2); }
ul.dv-sum { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 2px; }
ul.dv-sum li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--ln); font-size: .86rem; }
ul.dv-sum li span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
ul.dv-sum li svg { width: 14px; height: 14px; color: var(--acc); flex: none; }
ul.dv-sum li b { font-family: var(--f-mono); color: var(--acc); white-space: nowrap; }
.dv-list { display: grid; gap: 4px; }

@media (max-width: 1060px) { .dv-grid { --avail: calc(100vw - 96px); } }
@media (max-width: 600px) { .dv-grid { --gap: 4px; --avail: calc(100vw - 72px); --cs: clamp(22px, calc(var(--avail) / var(--cols) - var(--gap)), 34px); --pad: 6px; } .dv-stage { justify-items: start; } }
/* ───────── アビス・フィールド・PvP・成長システム ───────── */
.wd-grid { align-items: start; }
.wd-one { display: grid; gap: 14px; }
.wd-card .h3 { margin-bottom: 10px; }
.wd-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* ───────── タイマー ───────── */
.tm-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 18px; }
.tm-sel { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; border-radius: 4px; border: 1px solid var(--ln2); }
.tm-sel svg { width: 16px; height: 16px; color: var(--mut); }
.tm-sel select { border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; padding: 4px 4px; cursor: pointer; }
.tm-sel select option { background: var(--bg1, #10141f); color: var(--ink); }
.tm-now { margin-left: auto; font-variant-numeric: tabular-nums; }
.tm-ov[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); }
/* 最前面の小窓（Document Picture-in-Picture）はスマホのブラウザに無いので、タッチの端末ではボタンを出さない */
@media (pointer: coarse) { .tm-ov { display: none; } }
/* 上の帯：リセット・覚醒戦・次の期限 */
.tm-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 26px; padding: 12px 0 14px; border-top: 1px solid var(--ln2); border-bottom: 1px solid var(--ln); }
.tm-s { display: grid; gap: 1px; min-width: 0; align-content: start; }
.tm-s b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-s b.mono { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; line-height: 1.25; }
.tm-s small { font-size: .78rem; }
/* いま・このあと：全部の予定を1つの一覧に（開催中が先頭）。左の色は種類 */
.tm-main { margin-top: 26px; }
.tm-main-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 8px; border-bottom: 1px solid var(--ln2); }
.tm-main-h h2 { font-size: 1.15rem; font-weight: 800; }
.tm-filter { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tm-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 4px; border: 1px solid var(--ln2); background: transparent; color: var(--mut); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.tm-filter button i { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); opacity: .35; }
.tm-filter button[aria-pressed="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--tc) 55%, transparent); }
.tm-filter button[aria-pressed="true"] i { opacity: 1; }
.c-abyss { --tc: #b98cff; } .c-field { --tc: #5fd3ff; } .c-pvp { --tc: #ff8a6b; } .c-reset { --tc: var(--acc); } .c-deadline { --tc: #9aa4b8; }
ol.tm-board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); column-gap: 30px; }
.tm-b { display: grid; grid-template-columns: 8.6em minmax(0, 1fr) auto; align-items: baseline; gap: 0 14px; padding: 9px 0 9px 12px; border-bottom: 1px solid var(--ln); box-shadow: inset 3px 0 0 var(--tc); }
.tm-b .cd { font-size: 1.22rem; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-b .nm { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-b .at { color: var(--mut); font-size: .84rem; white-space: nowrap; }
.tm-b.live .cd { color: var(--acc); }
.tm-b.live { background: color-mix(in srgb, var(--tc) 7%, transparent); }
.tm-cd { font-size: .86rem; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-cd.live { color: var(--acc); }
.tm-cd.past { color: var(--mut); font-weight: 500; }
.tm-sv { font-size: .7rem; font-weight: 500; color: var(--mut); }
/* 予定の一覧と説明（種類ごとの表） */
.tm-tbl th[scope="row"] { white-space: normal; min-width: 12em; }
.tm-tbl th[scope="row"] b { display: block; color: var(--ink); font-size: .9rem; }
.tm-note { display: block; margin-top: 2px; font-weight: 500; font-size: .8rem; color: var(--mut); line-height: 1.55; max-width: 60ch; }
.tm-tbl td.nw { white-space: nowrap; }
/* 今日のタイムライン */
.tmline { margin-top: 26px; padding-top: 12px; }
.tmline-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.tmline-grid { display: grid; gap: 6px; }
.tmline-row { display: grid; grid-template-columns: minmax(7em, 11em) minmax(0, 1fr); align-items: center; gap: 10px; }
.tmline-nm { font-size: .74rem; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmline-bar { position: relative; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.tmline-bar i { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; background: var(--tc, var(--acc)); opacity: .75; }
.tmline-bar i.past { opacity: .22; }
.tmline-bar i.on { opacity: 1; box-shadow: 0 0 8px var(--tc, var(--acc)); }
.tmline-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .8); }
.tmline-ticks { position: relative; height: 14px; font-size: .66rem; color: var(--mut); font-family: var(--f-mono); }
.tmline-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.tmline-ticks span:first-child { transform: none; }
.tmline-ticks span:last-child { transform: translateX(-100%); }
table.wk th { width: 3.2em; text-align: center; }
table.wk tr.today { background: color-mix(in srgb, var(--acc) 8%, transparent); }
table.wk tr.today th { color: var(--acc); }
.wk-ev { display: inline-flex; align-items: center; gap: 6px; margin: 2px 14px 2px 0; font-size: .86rem; }
.wk-ev b { color: var(--acc); }
@media (max-width: 860px) {
  .tm-now { margin-left: 0; width: 100%; }
  .tmline-row { grid-template-columns: minmax(6em, 8em) minmax(0, 1fr); }
  ol.tm-board { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tm-b { grid-template-columns: 7.4em minmax(0, 1fr); }
  .tm-b .at { grid-column: 2; }
  .tm-b .cd { font-size: 1.1rem; }
}
/* ───────── 狭い画面 ───────── */
@media (max-width: 1100px) {
  .gnav a { padding: 0 9px; font-size: .86rem; }
  .cls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
  .fm-main, .dv-main { grid-template-columns: 1fr; }
  .fm-side, .dv-side { position: static; max-height: none; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--ln); }
  .fm-zwrap { max-height: 420px; }
  .dv-top { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .gnav, .hd-tools .seg { display: none; }
  .menu-btn { display: grid; }
  .hd-in { justify-content: space-between; }
  .home-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .ov-grid { grid-template-columns: 1fr; }
  .sh { flex-wrap: wrap; }
  .sh p { margin-left: 0; text-align: left; flex-basis: 100%; }
  .cls-head { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .cls-head .tiers { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .cls-head .emb { width: 60px; height: 60px; }
  .cls-head img.cls-art { right: -18%; opacity: .35; }
  .rung { grid-template-columns: 1fr; gap: 6px; }
  .band { grid-template-columns: 1fr; gap: 2px; }
  .skill-row { grid-template-columns: minmax(0, 1fr) 110px; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .hd-in, .subnav-in, .wrap, .ft-in { padding-left: 16px; padding-right: 16px; }
  .brand-txt { display: none; }
  .home-cls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .home-cls a { font-size: .72rem; letter-spacing: -.02em; }
  .home-cls .emb { width: 50px; height: 50px; }
  .home-cls small { font-size: .64rem; }
  .home-idx { grid-template-columns: 1fr; }
  .cls-grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr; }
  .stig { grid-template-columns: 1fr; }
  .tierb-row { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; } .tierb-row .t { width: 44px; height: 44px; font-size: 1.2rem; }
  .tile { min-width: 0; max-width: none; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
}

/* ページ内のタブ（縦に長いページを分ける）。列はスクロールしてもヘッダーの下に残る */
.ptabs { margin-top: 8px; }
.ptabs-bar { position: sticky; top: var(--hdh, 56px); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 18px; background: var(--bg0); border-bottom: 1px solid var(--ln); }
.ptabs-list { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.ptabs-list::-webkit-scrollbar { display: none; }
.ptabs-x { flex: 0 0 auto; }
.ptabs-x .seg button { padding: 6px 10px; font-size: .8rem; }
.ptabs-bar [data-pt] { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 11px 13px; border: 0; background: transparent; color: var(--mut); font: inherit; font-size: .88rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .2s; }
.ptabs-bar [data-pt]:hover { color: var(--ink); }
.ptabs-bar [data-pt][aria-selected="true"] { color: var(--ink); }
.ptabs-bar [data-pt][aria-selected="true"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; background: var(--acc); }
.ptabs-bar [data-pt] .n { font-family: var(--f-mono); font-size: .7rem; color: var(--mut2); font-weight: 500; }
.ptabs-bar [data-pt]:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.ptab-p { animation: ptIn .2s ease; }
.ptab-p > .sh:first-child { margin-top: 6px; }
.tab-lead { margin: 0 0 14px; color: var(--mut); font-size: .9rem; line-height: 1.7; }
.tab-lead a { color: var(--acc); }
@keyframes ptIn { from { opacity: 0; } to { opacity: 1; } }

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
html.rm .rv { opacity: 1; transform: none; }
