body {
  font-family: sans-serif;
  font-size: 14px;
  color: #222;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
}
@media (max-width: 600px) {
  body {
    padding: 10px;
    font-size: 13px;
  }
  th,
  td {
    padding: 3px 5px;
  }
}
nav {
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
nav img {
  height: 34px;
  vertical-align: middle;
}
nav a.here {
  outline: 2px solid #c90;
  border-radius: 4px;
}
.back {
  height: 28px;
  vertical-align: middle;
}
a {
  color: #06c;
  cursor: pointer;
}
h1 {
  font-size: 20px;
  margin: 0 0 8px;
}
h1 small {
  font-size: 12px;
  color: #888;
  font-weight: normal;
}
h2 {
  font-size: 16px;
  margin: 20px 0 6px;
}
h3 {
  font-size: 14px;
  margin: 12px 0 4px;
}
.filters label {
  margin-right: 8px;
}
table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
th,
td {
  border: 1px solid #ccc;
  padding: 3px 8px;
}
th {
  background: #eee;
  font-weight: normal;
}
td.n {
  text-align: right;
}
td.small {
  font-size: 12px;
  max-width: 420px;
}
tbody#list tr,
tr[data-id] {
  cursor: pointer;
}
tbody#list tr:hover,
tr[data-id]:hover {
  background: #f5f5f5;
}
tr.sel {
  background: #fff4cc !important;
}
.leak {
  color: #c00;
}
.gray {
  color: #888;
}
.tabs a {
  margin-right: 4px;
}
.tabs a.on {
  color: #222;
  font-weight: bold;
  text-decoration: none;
}
.forms button {
  margin-right: 4px;
  padding: 4px 10px;
  font-size: 13px;
}
.forms button:disabled {
  color: #222;
  background: #fff4cc;
  border: 1px solid #c90;
}
.unitimg {
  max-width: 100%;
  max-height: 90px;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}
.banner {
  max-width: 360px;
}
ul.abilities {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.abilities li {
  margin: 2px 0;
}
p.forms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.forms button {
  flex: 1 1 100px;
  margin: 0;
}
.filters input#q {
  max-width: 100%;
}
.banner {
  max-width: 100%;
}
.skillname {
  height: 22px;
  vertical-align: middle;
}
p.small,
.small {
  font-size: 12px;
}
.skillname {
  height: 30px;
}
table.talents td {
  padding: 6px 10px;
  font-size: 14px;
}
table.talents td:first-child {
  white-space: nowrap;
}
.ticon {
  width: 34px;
  height: 34px;
  vertical-align: middle;
  margin-right: 6px;
}
/* ロゴ(public/logo.yml): マイクラ風のドットの文字 */
.logo {
  font-family: "Pixelify Sans", "DotGothic16", sans-serif;
  font-size: 34px;
  font-weight: bold;
  letter-spacing: 2px;
  /* 1文字ずつ黒いふち(8方向に黒い影を重ねる) */
  text-shadow:
    2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000,
    2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000;
}
@media (max-width: 600px) {
  .logo {
    font-size: 26px;
  }
}
.mapbanner {
  max-width: 100%;
  height: auto;
  max-height: 64px;
  vertical-align: middle;
}
a.maprow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.eicon {
  height: 52px;
  vertical-align: middle;
  margin-right: 4px;
}
.eicon.big {
  height: 56px;
}
.mapbanner.sm {
  max-height: 36px;
}

/* ---- ゲーム風ボタン ---- */
nav a,
.backbtn,
.press,
.forms button {
  transition: transform 0.06s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.pressing {
  transform: scale(0.86) !important;
}
.bounce {
  animation: poyon 0.28s ease-out;
}
@keyframes poyon {
  0% {
    transform: scale(0.86);
  }
  55% {
    transform: scale(1.08);
  }
  80% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}
.backbtn {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 50;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.backbtn {
  width: 64px;
  height: 64px;
}
.backbtn img {
  position: absolute;
  display: block;
}
.backbtn .back-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.backbtn .back-arrow {
  width: 72%;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
}
body {
  padding-bottom: 90px;
}
.flag {
  color: #d00;
  font-size: 1.1em;
  margin-left: 3px;
}
.uicon {
  height: 40px;
  vertical-align: middle;
}
.stagepics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin: 8px 0;
}
.stagepics figure {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}
.stagepics img.bg {
  max-width: 320px;
  width: 100%;
  border: 1px solid #ccc;
}
.stagepics img.castle {
  max-height: 120px;
}
audio {
  height: 32px;
  vertical-align: middle;
  max-width: 260px;
}
.cat-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  background: #888;
  white-space: nowrap;
}
ul.unlocks {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.unlocks li {
  margin: 6px 0 10px;
}
.ub-ガチャ {
  background: #d4a017;
}
.ub-ステージ {
  background: #2f7bd8;
}
.ub-XP {
  background: #2a9d4b;
}
.ub-本編 {
  background: #8b5cf6;
}

/* ---- キャラ見出し(大きい画像+形態切替) ---- */
.unithead {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}
.unitbig {
  width: 240px;
  max-width: 60vw;
  height: auto;
  image-rendering: auto;
}
.formname {
  font-size: 14px;
  margin-bottom: 6px;
}
.recycle {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.recycle img {
  width: 56px;
  height: auto;
  display: block;
}
.formdots {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.formdots span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ddd;
  font-size: 11px;
  text-align: center;
  line-height: 20px;
}
.formdots span.on {
  background: #f5b83d;
  font-weight: bold;
}
.traits img.icon {
  width: 30px;
  height: 30px;
  margin-right: 3px;
}
/* ---- アニメのポップアップ ---- */
#animpop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.animbox {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  width: min(520px, 94vw);
}
.animhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.animclose {
  border: 0;
  background: none;
  font-size: 20px;
  cursor: pointer;
}
.animtabs {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}
.animtabs button {
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.animtabs button.on {
  background: #f5b83d;
  border-color: #c90;
}
.animbox canvas {
  width: 100%;
  height: auto;
  background: linear-gradient(#4a8ea3, #52b6cc); /* BCUの背景と同じ水色 */
  border-radius: 8px;
}
.enemybig {
  width: 128px;
  height: 128px;
  object-fit: contain;
  image-rendering: auto;
}
.unithead h1 {
  margin: 0 0 6px;
}
.animgif {
  width: 100%;
  height: auto;
  background: linear-gradient(#4a8ea3, #52b6cc); /* BCUの背景と同じ水色 */
  border-radius: 8px;
  display: none;
}

.unitpics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.unitbanner {
  width: 160px;
  height: auto;
}
.stillbtn {
  border: 0;
  background: radial-gradient(
    ellipse at 50% 85%,
    #f1e6c8 0 45%,
    transparent 70%
  );
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.unitstill {
  width: 300px;
  max-width: 70vw;
  height: 220px;
  display: block;
}
.stillhint {
  font-size: 12px;
  color: #888;
}

/* ---- ページ送り(25件ずつ) ---- */
.pager {
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.pager button {
  min-width: 34px;
  padding: 4px 8px;
  border: 1px solid #bbb;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.pager button.on {
  background: #333;
  color: #fff;
  border-color: #333;
}
.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---- ステージ種類ごとの枠の色 ---- */
.bt-0 {
  --bt: #ff5700;
} /* メインストーリー: 赤 */
.bt-1 {
  --bt: #ff5700;
} /* イベント: 赤*/
.bt-2 {
  --bt: #e0b000;
} /* レジェンド(旧レジェ): 黄 */
.bt-3 {
  --bt: #8ed22c;
} /* 新レジェンド(真レジェ): 緑 */
.bt-4 {
  --bt: #688cbd;
} /* ゼロレジェンド: 紫 */
/* マップの行 = ゲームの黄色いボタン(img006_ja/0.png)を種類ごとに色変えして敷く */
a.maprow[class*="bt-"] {
  position: relative;
  isolation: isolate;
  border: 0;
  padding: 10px 16px;
  margin: 6px 0;
  color: #fff;
  font-weight: bold;
  text-shadow:
    0 0 2px #000,
    0 0 2px #000,
    0 1px 2px #000;
}
a.maprow[class*="bt-"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 16px solid transparent;
  border-image: url(img/ui/img006_ja/0.png) 22 fill stretch;
}
a.maprow[class*="bt-"] .gray {
  color: #fff;
  opacity: 0.9;
}
.mapbox[class*="bt-"] {
  display: inline-block;
  border: 3px solid var(--bt);
  border-radius: 8px;
  padding: 4px;
}
table.stagetable[class*="bt-"] {
  border: 3px solid var(--bt);
}
table.stagetable[class*="bt-"] th {
  background: color-mix(in srgb, var(--bt) 18%, #fff);
}
#types a[class*="bt-"] {
  border-bottom: 3px solid transparent;
}
#types a[class*="bt-"].on {
  border-bottom-color: var(--bt);
}
.bt-5 {
  --bt: #e0559a;
} /* コラボ: ピンク */
.bt-6 {
  --bt: #222;
} /* EX: 黒 */
.bt-7 {
  --bt: #888;
} /* その他: 灰 */
.oldtag {
  background: #666;
  color: #fff;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
}
details.oldstage {
  margin-top: 12px;
  border: 2px dashed #aaa;
  border-radius: 8px;
  padding: 6px 10px;
}

/* ボタンの色 = 各 .bt-N の --bt の色。黄色いボタンの明るさ(陰影)はそのままで色だけ塗り替える */
a.maprow[class*="bt-"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bt);
  mix-blend-mode: color;
  border: 16px solid transparent;
  -webkit-mask-box-image: url(img/ui/img006_ja/0.png) 22 fill stretch;
  mask-border: url(img/ui/img006_ja/0.png) 22 fill stretch;
}

/* ---- ニャンコンボ ---- */
.combos {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.combo {
  border: 2px solid #e2c36b;
  background: #fffaf0;
  border-radius: 10px;
  padding: 8px 10px;
}
.combohead {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-bottom: 6px;
}
.comboeff {
  font-size: 13px;
  color: #a05a00;
}
.combomembers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.combomembers a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  text-decoration: none;
  color: inherit;
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
}
.combomembers img {
  width: 64px;
  height: auto;
}
.combomembers a.me span {
  font-weight: bold;
  color: #c60;
}
.combo.removed {
  border-color: #e88;
  background: #fff3f3;
  opacity: 0.85;
}
img.gachabtn {
  height: 40px;
  width: auto;
  vertical-align: middle;
}
.ub-進化 {
  background: #6a4;
  color: #fff;
}

.talentmax {
  font-size: 11px;
  color: #c06000;
  font-weight: bold;
  white-space: nowrap;
}

/* ---- 本能玉 ---- */
.orbicon {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.orbicon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orbsel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 6px 0 10px;
}
.orbsel > div:last-child > div {
  margin: 3px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}
.orbbig {
  min-width: 84px;
  text-align: center;
}
.orbpick {
  padding: 1px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  line-height: 0;
  min-width: 34px;
  min-height: 34px;
  font-size: 12px;
}
.orbpick img {
  width: 30px;
  height: 30px;
}
.orbpick.on {
  border-color: #e0a000;
  background: #fff4cc;
}
.orbgrade {
  display: inline-block;
  width: 30px;
  line-height: 30px;
  font-size: 16px;
  color: #333;
}
a.bluelink {
  color: #1a6fd6;
  font-weight: bold;
}

/* スケジュール: いま開催中 */
tr.nowon {
  outline: 3px solid #f5c400;
  outline-offset: -2px;
  background: #fffbe0;
}
/* 開始時間のセル(縦にまとめたもの)は黄色い枠より手前に出す */
td.tm {
  position: relative;
  z-index: 1;
  background: #fff;
  white-space: nowrap;
}
.nowmark {
  border: 3px solid #f5c400;
  padding: 0 4px;
  border-radius: 3px;
}
/* ホームの大きい画像 */
.hero {
  position: relative;
  max-width: 560px;
  margin: 8px 0 14px;
  border-radius: 12px;
  overflow: hidden;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
}
.herotitle {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font-size: clamp(26px, 7vw, 44px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  -webkit-text-stroke: 2px #222;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #222;
  font-style: italic;
}

/* 解放条件: ネコ缶アイコン・進化素材 */
.itemicon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 3px;
}
.evitems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
  margin: 6px 0 2px;
}
.evitem {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 3px 8px;
  background: #fafafa;
}
.evitem img {
  width: 28px;
  height: 28px;
}
.ub-ネコ缶 {
  background: #e07a2a;
  color: #fff;
}

/* キャラ一覧: レア度ボタン・絞り込みパネル */
.rarities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.rbtn {
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  padding: 3px 6px;
  cursor: pointer;
  opacity: 0.55;
}
.rbtn img {
  height: 24px;
  display: block;
}
.rbtn.on {
  opacity: 1;
  border-color: #f5c400;
}
.rimg {
  height: 18px;
  vertical-align: middle;
}
.searchbtn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  vertical-align: middle;
}
.searchbtn img {
  width: 36px;
  height: 36px;
  display: block;
}
.searchbtn.active {
  outline: 3px solid #f5c400;
  border-radius: 50%;
}
.fpanel {
  display: none;
  border: 2px solid #c90;
  border-radius: 10px;
  padding: 8px;
  margin: 6px 0 10px;
  background: #fffaf0;
}
.fpanel.open {
  display: block;
}
.fhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.andor {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.andor img {
  height: 28px;
  display: block;
}
.fgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 8px;
}
.fbtn {
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  padding: 1px;
  cursor: pointer;
  opacity: 0.45;
}
.fbtn img {
  width: 36px;
  height: 36px;
  display: block;
}
.fbtn.on {
  opacity: 1;
  border-color: #f5c400;
  background: #fff4c0;
}
/* ダメージ計算の箱 */
.calcbox {
  border: 3px solid #c90;
  border-radius: 12px;
  padding: 6px 12px 10px;
  margin: 14px 0;
  background: #fffdf5;
}
.calcbox h2 {
  margin-top: 4px;
}
.calctable th {
  vertical-align: top;
}
.calctable td,
.calctable th {
  white-space: nowrap;
}
.tablewrap {
  overflow-x: auto;
}
.stup {
  color: #d4570b;
  font-size: 12px;
}
.stupline {
  background: #fff1e6;
  border-left: 4px solid #d4570b;
  padding: 4px 8px;
}
.combobox {
  margin: 4px 0 8px;
}
.combobox summary {
  cursor: pointer;
  font-weight: bold;
}
.comborow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}
.comborow .cname {
  min-width: 210px;
}
.cnum {
  width: 42px;
  margin-left: 2px;
}

.typetag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  background: #eee;
  border-left: 4px solid var(--bt, #999);
}

/* 冠(ステージ) */
.crownimg {
  height: 18px;
  width: auto;
  vertical-align: -3px;
}
.crowntabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}
.crowntab {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: #f4f4f4;
  border-radius: 6px 6px 0 0;
  padding: 4px 10px;
  cursor: pointer;
}
.crowntab.on {
  border-bottom-color: #1e6fe0;
  background: #e8f0ff;
}

/* ステージの種類(ゲームのアイコン・文字 img101) */
.typeicon {
  height: 20px;
  width: auto;
  vertical-align: -4px;
  margin-right: 2px;
}
.typebar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px 6px 10px;
  margin: 6px 0 10px;
  background: url(img/ui/img101/14.png) left center / 100% 100% no-repeat;
  border-radius: 6px;
  min-height: 36px;
}
.typebar .typeicon {
  height: 28px;
}
.typebar .typetext {
  height: 24px;
  width: auto;
}
.typebar b {
  color: #fff;
  -webkit-text-stroke: 1px #222;
  paint-order: stroke fill;
  font-size: 18px;
}
.animctl {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.animctl button {
  min-width: 34px;
  padding: 3px 6px;
}
.animctl .animseek {
  flex: 1;
}

/* 本能玉(26種) */
.orbbox {
  border: 2px solid #8ab;
  border-radius: 12px;
  padding: 4px 12px 10px;
  margin: 12px 0;
  background: #f6fbff;
}
.orbtypes {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 560px;
}
.orbstage {
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  padding: 2px 8px;
  margin: 0 2px;
  cursor: pointer;
}
.orbstage.on {
  border-color: #1e6fe0;
  background: #e8f0ff;
  font-weight: bold;
}
.orbtable td.orbhead {
  background: #eef4fa;
  font-weight: bold;
}
.orbmini {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 4px;
}

/* キャラページの Lv ボタン(1 / 30 / 50 / 上限)。四角く少し大きく */
.lvbtn {
  min-width: 46px;
  height: 32px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: bold;
  border: 2px solid #999;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
}
.lvbtn:hover {
  background: #f3f3f3;
}
.lvbtn.on {
  border-color: #e0a000;
  background: #fff4cc;
}
#lv {
  height: 32px;
  font-size: 15px;
  box-sizing: border-box;
  vertical-align: middle;
}

/* マップのバナー(押すと一覧に戻る) */
a.mapbox {
  cursor: pointer;
}
a.mapbox:hover {
  filter: brightness(1.06);
}
/* アイコンが無い特性は文字で */
.fbtn .ftext {
  display: block;
  min-height: 36px;
  line-height: 36px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: bold;
  background: #eee;
  border-radius: 6px;
}
/* 敵ページ: エイリアンのお宝 */
.trerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.treicon {
  width: 32px;
  height: 32px;
}
.trerow button.on {
  background: #f5c400;
  font-weight: bold;
}
/* 妨害の対象属性と超賢者への効果時間 */
.ccextra {
  margin: 2px 0 4px 1.5em;
  color: #555;
}
.cctr {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}
.cctr img,
.ccsage img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
/* 連続攻撃の各段の行 */
.hitrow {
  color: #777;
  font-size: 0.9em;
}
.bt-8 {
  --bt: #e0201c;
} /* 周年イベント: 赤 */

/* 更新情報 */
.newsicon {
  height: 1.4em;
  vertical-align: -0.3em;
  margin-right: 6px;
}
.newsday {
  margin-bottom: 14px;
}
.newsday h2 {
  font-size: 1.05em;
  margin: 10px 0 4px;
  border-left: 4px solid #e0a800;
  padding-left: 6px;
}
.newsday ul {
  margin: 0;
  padding-left: 1.3em;
}
.newsday li {
  margin: 2px 0;
}

/* 絞り込みのリセット(前の条件が残っているとき) */
.resetf {
  margin-left: 8px;
  font-size: 0.85em;
  padding: 2px 8px;
  border: 1px solid #c90;
  border-radius: 10px;
  background: #fff7d6;
  cursor: pointer;
}

/* ステージ一覧の表: 枠を中身の幅に合わせる(右側が空かないように) */
table.stagetable {
  width: fit-content;
}

/* ネコビタンステージ: オレンジ */
.bt-9 {
  --bt: #ff7a00;
}
/* マップを開いたときの上の大きい画像(公式の告知画像など) */
.mapbanner.big {
  max-height: none;
  width: 100%;
  max-width: 480px;
  border-radius: 6px;
}

/* BGM: 1曲1枚のカード(B案)。再生ボタンは丸い黒ボタン、鳴っているカードは黄色(A案の色) */
.tracks {
  max-width: 480px;
  margin: 8px 0;
}
.trk {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0;
  background: #fff;
  cursor: pointer;
}
.trk .pb {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: #222;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.trk.on {
  background: #fff7d6;
  border-color: #c90;
}
.trk.on .pb {
  background: #c90;
}
.trk .t {
  flex: 1;
  min-width: 0;
}
.trk .t b {
  display: block;
}
.trk .bar {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin: 8px 0 4px;
  position: relative;
  touch-action: none;
  cursor: pointer;
}
.trk .bar::before {
  content: "";
  position: absolute;
  inset: -8px 0;
} /* 指で押しやすいように上下に広げる */
.trk .bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #222;
  border-radius: 4px;
}
.trk .bar u {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #222;
  box-sizing: border-box;
  display: none;
}
.trk.on .bar u {
  display: block;
  border-color: #c90;
}
.trk.on .bar i {
  background: #c90;
}
.trk .tm {
  font-size: 12px;
  color: #777;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.thicon {
  height: 22px;
  vertical-align: -6px;
  margin-right: 4px;
}

/* 種類ごとの色: ゲームの img101 の色に合わせる */
.bt-1 {
  --bt: #ff5700;
} /* イベント(スペシャルステージ) */
.bt-2 {
  --bt: #ff9a00;
} /* レジェンドストーリー */
.bt-3 {
  --bt: #8ed22c;
} /* 真レジェンドストーリー */
.bt-4 {
  --bt: #6285b6;
} /* レジェンドストーリー0 */
.bt-5 {
  --bt: #d100ff;
} /* 期間限定コラボステージ */
.bt-9 {
  --bt: #ff5700;
} /* ネコビタンステージ */
.bt-10 {
  --bt: #d100ff;
} /* コラボ強襲 */

/* ステージ名の横の印(コンテニュー不可・EXステージ) */
h2.sttitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.nocont {
  background: #d33;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.nocont.sm {
  font-size: 10px;
  padding: 1px 5px;
  vertical-align: 1px;
}
a.exlink {
  background: #222;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}
a.exlink:hover {
  background: #444;
}

/* ===== マップのボタン: ゲームのステージ選択と同じ(img101 のボタンを 9スライスで伸ばす) ===== */
a.maprow.gbtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  margin: 14px 0 20px;
  padding: 0 34px 0 6px;
  max-width: 560px;
  border-style: solid;
  border-width: 13px 26px 13px 26px;
  border-image: var(--btn) 8 16 fill / 13px 26px stretch;
  background: none;
  text-shadow: none;
  font-weight: bold;
}
a.maprow.gbtn::before,
a.maprow.gbtn::after {
  content: none;
}
a.maprow.gbtn {
  max-width: 560px;
  box-sizing: border-box;
}
a.maprow.gbtn.bt-0 {
  --btn: url(img/ui/btn/orange.png);
} /* メインストーリー */
a.maprow.gbtn.bt-1,
a.maprow.gbtn.bt-8,
a.maprow.gbtn.bt-9 {
  --btn: url(img/ui/btn/special.png);
} /* イベント・周年・ネコビタン */
a.maprow.gbtn.bt-2 {
  --btn: url(img/ui/btn/legend.png);
} /* レジェンド */
a.maprow.gbtn.bt-3 {
  --btn: url(img/ui/btn/green.png);
} /* 真レジェンド */
a.maprow.gbtn.bt-4 {
  --btn: url(img/ui/btn/blue.png);
} /* レジェンド0 */
a.maprow.gbtn.bt-5,
a.maprow.gbtn.bt-10 {
  --btn: url(img/ui/btn/collab.png);
} /* コラボ・コラボ強襲 */
a.maprow.gbtn.bt-6 {
  --btn: url(img/ui/btn/olive.png);
} /* EX */
a.maprow.gbtn.bt-7 {
  --btn: url(img/ui/btn/legend.png);
  filter: grayscale(1);
} /* その他 */
.gbtn .gtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}
.gbtn .gname {
  height: 64px;
  max-width: 100%;
  object-fit: contain;
  margin: -8px 0;
}
.gbtn .gtext {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  -webkit-text-stroke: 6px #000;
  paint-order: stroke fill;
  line-height: 1.2;
  text-align: center;
}
.gbtn .gtile {
  height: 54px;
  margin: -8px 8px -8px -14px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #000;
}
.gbtn .gleft {
  position: absolute;
  right: 0;
  top: -36px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 4px #000;
  paint-order: stroke fill;
  letter-spacing: 1px;
}
.gbtn .gleft b {
  font-size: 16px;
  margin-left: 6px;
}
.gbtn .gsub {
  position: absolute;
  left: -10px;
  bottom: -24px;
  font-size: 11px;
  color: #fff;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 9px;
  padding: 1px 8px;
  line-height: 16px;
  white-space: nowrap;
}
.gbtn .gsub .crownimg {
  height: 12px;
  vertical-align: -2px;
  margin: 0 -1px;
}
.gbtn .gdet {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
}
#maplist,
#maps {
  padding-right: 34px;
}
@media (max-width: 600px) {
  .gbtn .gtext {
    font-size: 18px;
  }
  .gbtn .gname {
    height: 50px;
  }
}

a.maprow.gbtn.hasleft {
  margin-top: 30px;
}
.gbtn.bt-0 {
  padding-right: 6px;
}
.gbtn .gname.mtxt {
  height: 44px;
  margin: 0;
}
/* マップを開いたときの上: 枠だけの箱ではなく、一覧と同じゲームのボタン */
a.maprow.gbtn.head {
  margin: 6px 0 4px;
  padding-right: 6px;
  max-width: 480px;
}
/* 海外版だけのマップ(韓国版・台湾版) */
.gbtn .gregion,
.regiontag {
  background: #fff;
  color: #c00;
  border: 2px solid #c00;
  border-radius: 9px;
  font-size: 11px;
  font-weight: bold;
  padding: 0 6px;
  line-height: 16px;
  white-space: nowrap;
}
.gbtn .gregion {
  position: absolute;
  left: -10px;
  top: -14px;
}
/* アニメ: 移動・待機の途中に1回だけ攻撃・KBするボタン */
.animonce {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
}
.animonce:empty {
  display: none;
}
.animonce button {
  padding: 4px 14px;
  font-weight: bold;
  border-radius: 14px;
  border: 2px solid #222;
  background: #ffd23f;
  cursor: pointer;
}
.animonce button:active {
  transform: translateY(1px);
}
.animbox canvas {
  cursor: grab;
}
#sales th:last-child,
#sales td:last-child {
  white-space: nowrap;
}
/* 本能玉のランク(D〜S): ゲームの記号(img/orb/grade_N.png。文字は左上の 38px の中にある) */
.orbpick img.orbgrade {
  width: 32px;
  height: 32px;
  object-fit: none;
  object-position: -7px -6px;
}
/* 💬(吹き出し)は使わないので、その分の右の余白をなくす */
a.maprow.gbtn {
  padding-right: 6px;
}
#maplist,
#maps {
  padding-right: 0;
}
/* ステージの報酬 */
table.droptable {
  width: fit-content;
  margin: 4px 0 10px;
}
table.droptable td,
table.droptable th {
  padding: 3px 10px;
}
.dicon {
  height: 28px;
  vertical-align: middle;
  margin-right: 6px;
}
/* 手で足した入手先(tools/fix_manual.py): 裏技・配布 */
.ub-裏技 {
  background: #7b4fd8;
}
.ub-配布 {
  background: #777;
}
/* マップの戻るボタン: 大きいバナーもゲームのボタンに載せる */
a.maprow.gbtn.head {
  max-width: 560px;
}
.gbtn .gname.bigname {
  height: auto;
  max-height: 120px;
  max-width: 100%;
  margin: 4px 0;
}
@media (max-width: 600px) {
  .gbtn .gname.bigname {
    max-height: 84px;
  }
}
/* マップの出現条件(ステージ解放条件) */
.mapunlock {
  margin: 6px 0 10px;
  padding: 6px 10px;
  border-left: 4px solid var(--bt, #888);
  background: rgba(0, 0, 0, 0.04);
  width: fit-content;
}
.mapunlock b {
  font-size: 13px;
}
/* ダメージ計算: 合計に入らない参考の行(各段・爆波の2段目以降など)は少し薄く */
.calctable tr.subrow td {
  color: #555;
  font-size: 13px;
}
.calctable tr.subrow td:first-child {
  padding-left: 14px;
}
/* いま入れているコンボ */
.combotag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 1px 8px;
  border-radius: 10px;
  background: #fff4c0;
  border: 1px solid #e0b000;
}
/* コンボ欄: 1編成で発動できる最大の数 */
.cmax {
  color: #888;
  font-size: 11px;
  margin-left: 1px;
}
.cnone {
  display: inline-block;
  width: 42px;
  margin-left: 2px;
  text-align: center;
  color: #aaa;
}
.combomax {
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid #e0b000;
  border-radius: 10px;
  background: #fff4c0;
  cursor: pointer;
}
.combomax:hover {
  background: #ffe98a;
}
.combowarn {
  color: #c33;
  font-weight: bold;
  margin-left: 4px;
}
/* コンボ欄: 10体に入らなくなった欄はロック */
.clock {
  opacity: 0.45;
}
.clock input {
  background: #eee;
}
.combostat {
  margin: 6px 0 2px;
}
.combofull {
  color: #c33;
}
/* いちばん大きいダメージは赤(キャラ・敵のダメージ計算) */
.maxdmg {
  color: #e00000;
  font-weight: bold;
}
.stup .maxdmg {
  color: #e00000;
}
.stuprow th,
.stuprow td {
  background: #fff1e6;
}
/* スマホ: 表がせまくなっても、名前や見出しを1文字ずつ折り返さない(はみ出した分は横スクロール) */
@media (max-width: 600px) {
  th {
    white-space: nowrap;
  }
  td.n {
    white-space: nowrap;
  }
  td.n .small,
  td.n .gray {
    white-space: normal;
  }
  td a {
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  table.enemytable td:nth-child(2) {
    white-space: nowrap;
  }
  table.enemytable .eicon {
    height: 40px;
    margin-right: 0;
  }
  table.enemytable td:first-child {
    padding: 2px;
    text-align: center;
  }
  table {
    -webkit-overflow-scrolling: touch;
  }
}
/* ガチャの排出キャラ(gacha.html) */
.gachabig {
  max-width: min(560px, 100%);
  height: auto;
}
.gacharar {
  margin: 10px 0 16px;
  padding: 6px 10px 10px;
  border: 1px solid #e3d5a5;
  border-radius: 8px;
  background: #fffbea;
}
h2.rarhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
}
h2.rarhead img {
  height: 34px;
  width: auto;
}
.grate {
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 10px;
}
.gachacats a {
  position: relative;
}
.gachacats a.me {
  outline: 3px solid #e0b000;
  border-radius: 6px;
  background: #fff4c0;
}
.rateup {
  position: absolute;
  top: -4px;
  right: -2px;
  font-style: normal;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  background: #e0201c;
  padding: 0 4px;
  border-radius: 6px;
}
@media (max-width: 600px) {
  h2.rarhead img {
    height: 28px;
  }
}
/* セールで売っているキャラ */
.salecats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.salecats img {
  width: 56px;
  height: auto;
}
.ub-販売 {
  background: #e0201c;
}
/* 進化権・本能解放の印(ステージの報酬)、イベント・コラボで進化する見出し(キャラの解放条件) */
.cat-badge.dtag {
  margin-right: 4px;
  font-size: 11px;
}
.ub-本能 {
  background: #c2185b;
}
.ub-イベント {
  background: #e85d00;
}
.ub-コラボ {
  background: #b030d0;
}
/* 「横にスライドできます」の案内(表が画面より広いとき) */
.slidehint {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}
p.slidehint {
  margin: 2px 0;
}
.firstnote {
  margin: 2px 0 10px;
  font-size: 11px;
}
.gachatable td.gterm {
  white-space: nowrap;
  font-size: 12px;
}
.gachatable .banner {
  max-width: min(360px, 70vw);
  height: auto;
}
/* 超獣討伐: 黄緑 / 塔: 黄 / ネコ女王の研究イベント: 水色 */
.bt-11 {
  --bt: #9acd32;
}
.bt-12 {
  --bt: #f0c000;
}
.bt-13 {
  --bt: #3cb8e8;
}
a.maprow.gbtn.bt-11 {
  --btn: url(img/ui/btn/green.png);
}
a.maprow.gbtn.bt-12 {
  --btn: url(img/ui/btn/legend.png);
  filter: hue-rotate(12deg) saturate(1.2);
}
a.maprow.gbtn.bt-13 {
  --btn: url(img/ui/btn/blue.png);
  filter: hue-rotate(-15deg) saturate(1.8) brightness(1.15);
}
/* セール: スマホでも読みやすいカード */
.salecards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
}
.salecard {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
.salecard.nowon {
  border-color: #c90;
  background: #fff7d6;
}
.salehead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.saleterm {
  margin-top: 4px;
  font-size: 13px;
  color: #444;
}
.saleleft {
  margin-left: 8px;
  font-weight: bold;
  color: #c33;
  white-space: nowrap;
}
/* ガチャ: 出身元のガチャ(小さいボタン)と限定の印 */
.gachacats .origin {
  display: block;
  height: 16px;
  width: auto;
  max-width: 74px;
  margin: 2px auto 0;
  object-fit: contain;
}
.gachacats .gentei {
  position: absolute;
  top: -4px;
  left: -2px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  background: #7b4fd8;
  padding: 0 4px;
  border-radius: 6px;
  font-style: normal;
}
.genteihead {
  font-size: 12px;
  font-weight: bold;
  color: #7b4fd8;
  margin: 4px 0 2px;
}
/* アニメーション: 拡大・縮小のボタン(右上) */
.animstage {
  position: relative;
}
.animzoom {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}
.animzoom button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #999;
  background: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.comboreset {
  margin-left: 4px;
  padding: 1px 8px;
  border: 1px solid #aaa;
  border-radius: 10px;
  background: #f4f4f4;
  cursor: pointer;
}
.comboreset:hover {
  background: #e8e8e8;
}
/* ステージの「経験値」の XP アイコンは横に長くて目立ちすぎるので小さめに */
/* 統率力・経験値のアイコン: 画像は端が切れていない版(img/items から切り出し)。文字の真ん中にそろえる */
img.thicon[src$="xp.png"] {
  height: 14px;
  vertical-align: middle;
  margin-right: 3px;
}
img.thicon[src$="leader.png"] {
  height: 19px;
  vertical-align: middle;
}
/* ガチャ: 出身元のガチャごとの見出し(小さいバナー) */
.originhead {
  margin: 10px 0 2px;
}
.originhead img {
  height: 30px;
  width: auto;
  vertical-align: middle;
}
/* ステージ一覧の表: ステージ名は青いリンクの文字 */
a.stlink {
  color: #06c;
  cursor: pointer;
}
/* ホーム: にゃんこを開く・ストアのバッジ */
.appbox {
  max-width: 560px;
  margin: 12px 0;
  text-align: center;
}
a.openapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 10px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid #f0b400;
  box-shadow: 0 3px 0 #c98f00;
  color: #333;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}
a.openapp img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}
a.openapp.disabled {
  filter: grayscale(1);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.storebadges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.storebadges img.badge-gp {
  height: 40px;
}
.storebadges img.badge-as {
  height: 40px;
}
/* ステージ一覧: 開く・閉じるの案内とステージ名(青い下線) */
.stagelist summary .opentxt,
.scoreguide summary .opentxt {
  color: #06c;
  text-decoration: underline;
  font-size: 0.9em;
}
a.stlink {
  text-decoration: underline;
}
/* ステージ: 背景エフェクトの画像(敵の城の上) */
figure.castlefig {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
img.bgfx {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  margin-bottom: 4px;
}

/* ---- 画像を保存されにくくする(長押しメニュー・ドラッグを止める) ---- */
img, canvas, svg {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ---- 折りたたみ(スケジュール・リーク): 見出しを押すと開け閉め ---- */
details.fold > summary {
  cursor: pointer;
  list-style: none;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { display: inline-block; }
details.fold > summary .opentxt {
  color: #06c;
  text-decoration: underline;
  font-size: 0.6em;
  font-weight: normal;
}

/* ---- 本能玉の表: 普段の攻撃でいちばん期待できるダメージ(緑の蛍光マーカー) ---- */
.gmark {
  background: linear-gradient(transparent 50%, #9dff6b 50%);
  padding: 0 2px;
}
.orbtable tr.greenrow td.n,
.calctable tr.greenrow td.n {
  background: linear-gradient(transparent 50%, #c8ffad 50%);
}

/* ---- リーク ---- */
.leakwarn {
  color: #d00;
  font-weight: bold;
  margin: 4px 0;
}
.leakfold { margin-top: 12px; }
.leaktable td { vertical-align: middle; }
.leakbnr { max-height: 40px; }
.leakicon { width: 48px; height: auto; }

/* ---- ホーム: 中身(メニュー・ロゴ・画像・ボタン)を画面の真ん中にそろえる ---- */
body.home {
  max-width: 592px;   /* 画像(560px) + 左右の余白 */
}
body.home nav {
  justify-content: center;
}
body.home h1 {
  text-align: center;
}
body.home .hero,
body.home .appbox {
  margin-left: auto;
  margin-right: auto;
}

/* ---- ステージ一覧: 茶色の板の下の解放条件(真レジェンド・ゼロレジェンド) ---- */
.typeunlock {
  margin: 4px 0 10px;
  font-size: 0.95em;
}

/* ---- 大きいバナー・ガチャのバナーは、ゲームのボタンの枠に載せない(絵だけ) ---- */
a.maprow.gbtn.noframe {
  border: none;
  border-image: none;
  padding: 0;
  min-height: 0;
  filter: none;
}
a.maprow.gbtn.noframe .gtitle {
  min-height: 0;
}
a.maprow.gbtn.noframe .gname {
  height: auto;
  max-height: 160px;
  margin: 0;
  border-radius: 6px;
}
@media (max-width: 600px) {
  a.maprow.gbtn.noframe .gname {
    max-height: 110px;
  }
}

/* ---- ダメージ計算の表: 本能玉ありの列は少し色を付ける ---- */
.calctable th.orbon,
.calctable td.orbon {
  background: #fff6e0;
}

/* ---- ホームの一番下の著作権の表記(小さく薄く) ---- */
.copyright {
  margin: 28px 0 8px;
  text-align: center;
  font-size: 11px;
  color: #aaa;
  line-height: 1.6;
}
