@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Chakra+Petch:wght@500;600;700&display=swap");
:root {
  /* Strategy Lab デザインシステム(トップと統一)。既存トークン名は維持しつつ値を揃える。竜=赤。 */
  color-scheme: dark;
  --bg: #090C12;
  --bg-2: #0E121C;
  --ink: #EAEEF7;
  --muted: #707B92;
  --line: rgba(255, 255, 255, 0.075);
  --panel: #121826;
  --panel-solid: #161D2E;
  --soft: rgba(255, 255, 255, 0.04);
  --glass: rgba(22, 29, 46, 0.72);
  --glass-border: rgba(255, 255, 255, 0.14);
  --blue: #4FB6FF;
  --cyan: #4FB6FF;
  --green: #6FE0A6;
  --red: #FF8A95;
  --gold: #f5c542;
  --god: #f5c542;
  --god-dark: #fcd34d;
  --god-soft: rgba(245, 197, 66, 0.14);
  --demon: #a855f7;
  --demon-dark: #c084fc;
  --demon-soft: rgba(168, 85, 247, 0.16);
  --dragon: #fb7185;
  --dragon-dark: #f87171;
  --dragon-soft: rgba(251, 113, 133, 0.15);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --obsidian: #0E121C;
  --obsidian-2: #121826;
  --obsidian-3: #161D2E;
  --neon-cyan: #4FB6FF;
  --neon-gold: #f5c542;
  --gold-glow: 0 0 0 1px rgba(245, 197, 66, 0.5), 0 0 24px rgba(245, 197, 66, 0.32);
  --cyan-glow: 0 0 0 1px rgba(79, 182, 255, 0.45), 0 0 22px rgba(79, 182, 255, 0.3);
  --font-jp: "Zen Kaku Gothic New", "Yu Gothic UI", system-ui, sans-serif;
  --font-en: "Chakra Petch", "Yu Gothic UI", monospace;
  --board-grid: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: #04060c;
  overflow-x: hidden;
}

/* 銀河系・近未来サイバーSF 背景: 星雲(ネビュラ) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 10% -10%, rgba(95, 227, 192, 0.10), transparent 60%),
    radial-gradient(1000px 800px at 96% 4%, rgba(168, 85, 247, 0.13), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(700px 500px at 78% 70%, rgba(251, 113, 133, 0.08), transparent 60%),
    #04060c;
}

/* 星屑(スターフィールド・多層) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(180,220,255,.8), transparent),
    radial-gradient(1.4px 1.4px at 40% 80%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 85% 25%, rgba(200,180,255,.7), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.2px 1.2px at 12% 65%, rgba(150,255,230,.6), transparent);
  background-size: 520px 520px, 380px 380px, 640px 640px, 300px 300px, 450px 450px, 560px 560px;
  opacity: 0.65;
  animation: starDriftS 120s linear infinite;
}
@keyframes starDriftS { from { background-position:0 0,0 0,0 0,0 0,0 0,0 0; } to { background-position:520px 260px,-380px 190px,640px -320px,-300px 150px,450px 225px,-560px 280px; } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
.neon-cyan, .skill-analysis-score, .eyebrow { text-shadow: 0 0 12px rgba(79,182,255,.3); }

/* 数値・ラベルは Chakra Petch */
.mono, .meta, .score-line, .damage-badge, .skill-analysis-score,
.recipe-rarity, .stat .v, .bs .v, .num { font-family: var(--font-en); }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(14px, 4vw, 56px);
  color: #f8fafc;
  background:
    linear-gradient(90deg, rgba(10, 18, 48, 0.96), rgba(19, 28, 68, 0.94) 50%, rgba(10, 18, 48, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: 0 6px 24px rgba(10, 18, 48, 0.4), inset 0 -1px 0 rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #f8fafc;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #0a1230;
  font-weight: 900;
  font-size: 20px;
  background:
    radial-gradient(circle at 32% 28%, #ffffff 0%, #f5c542 38%, #b7791f 78%, #4a2d09 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.55),
    inset 0 -8px 16px rgba(74, 45, 9, 0.5),
    0 0 0 1px rgba(251, 191, 36, 0.5),
    0 0 22px rgba(251, 191, 36, 0.42);
}

.brand-mark::after {
  position: absolute;
  inset: 4px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 55%);
  pointer-events: none;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.brand-subtitle {
  color: rgba(248, 250, 252, 0.62);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.78);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.7fr);
  align-items: end;
  min-height: calc(100svh - 72px);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 58px);
  background: var(--bg-2);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 1;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 10, 28, 0.94) 0%, rgba(6, 10, 28, 0.82) 30%, rgba(6, 10, 28, 0.34) 56%, rgba(6, 10, 28, 0.04) 78%),
    linear-gradient(180deg, rgba(6, 10, 28, 0.12) 0%, rgba(6, 10, 28, 0) 48%, var(--bg) 100%);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-width: 0;
  padding-bottom: clamp(10px, 4vw, 42px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.08;
}

.hero-copy h1 {
  line-break: anywhere;
  background: linear-gradient(180deg, #fffefb 0%, #fde68a 46%, #f5c542 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold); /* clip非対応ブラウザ向けフォールバック */
  filter: drop-shadow(0 0 26px rgba(251, 191, 36, 0.45)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.hero-copy .lead {
  max-width: min(650px, 88vw);
  color: rgba(231, 236, 255, 0.92);
  word-break: break-all;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.lead,
.body-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.button.secondary {
  background: var(--panel);
}

.hero-visual {
  display: grid;
  place-items: end;
  align-self: end;
  justify-self: end;
}

.battle-panel {
  width: min(100%, 390px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 58px rgba(29, 78, 216, 0.28);
  backdrop-filter: blur(10px);
}

.hp-row {
  display: grid;
  grid-template-columns: 56px 1fr 72px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}

meter {
  width: 100%;
  height: 12px;
}

.mini-board,
.othello-board {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #0f6b4f;
  border: 6px solid #0b3f31;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.mini-board {
  grid-template-columns: repeat(6, minmax(30px, 1fr));
  margin: 22px 0;
}

.mini-board span,
.othello-board button {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.mini-board .black,
.mini-board .white {
  position: relative;
}

.mini-board .black::after,
.mini-board .white::after {
  position: absolute;
  inset: 15%;
  content: "";
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.mini-board .black::after {
  background: #111827;
}

.mini-board .white::after {
  background: #f8fafc;
}

.mini-board .glow::after {
  outline: 4px solid rgba(250, 204, 21, 0.78);
}

.section {
  padding: 52px clamp(18px, 5vw, 72px);
}

.section-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-left: 16px;
}

.section-head::before {
  position: absolute;
  inset: 4px auto 6px 0;
  width: 4px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, var(--neon-gold), var(--demon), var(--dragon));
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.55);
}

.section-head .eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 18, 48, 0.92);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.4);
}

.deck-tool {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}

.control-panel,
.calculator,
.pattern-copy {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select,
input[type="search"],
input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
}

.toggle {
  grid-template-columns: 18px 1fr;
  align-items: start;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.deck-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.deck-card.recommended {
  border-color: rgba(29, 78, 216, 0.6);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: white;
  background: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge.god {
  color: #3b2500;
  background: linear-gradient(135deg, var(--god), #f59e0b);
}

.badge.demon {
  background: linear-gradient(135deg, var(--demon), var(--demon-dark));
}

.badge.dragon {
  background: linear-gradient(135deg, var(--dragon), var(--dragon-dark));
}
.badge.mixed { background: var(--green); }

.deck-card p,
.pattern-copy p,
.sources p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.intel-band {
  background: var(--soft);
}

.creator-section {
  background: var(--panel);
}

.tier-section {
  background: #f7fbff;
}

.template-section {
  background: var(--panel);
}

.signal-section {
  background: var(--soft);
}

.howto-section {
  background: var(--panel);
}

.meta-deck-section {
  background: #f7fbff;
}

.meta-deck-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.meta-deck-toolbar button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-weight: 900;
  cursor: pointer;
}

.meta-deck-toolbar button.active,
.meta-deck-toolbar button:hover {
  border-color: rgba(29, 78, 216, 0.5);
  color: white;
  background: var(--blue);
}

.meta-deck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.meta-deck-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 14px;
  min-height: 330px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.meta-deck-card.featured {
  border-color: rgba(245, 197, 66, 0.48);
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.18), rgba(124, 58, 237, 0.12) 52%, rgba(239, 68, 68, 0.14)),
    var(--panel-solid);
}

.meta-deck-rank {
  width: max-content;
  padding: 5px 10px;
  border-radius: 8px;
  color: white;
  background: #111827;
  font-weight: 900;
}

.meta-deck-card h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.meta-deck-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.meta-deck-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.meta-deck-fastline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-deck-fastline span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #334155;
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 900;
}

.meta-deck-stats span {
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  font-weight: 900;
}

.meta-deck-stats strong {
  color: var(--ink);
  font-size: 16px;
}

.meta-deck-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.howto-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.howto-grid article > strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-size: 20px;
}

.howto-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.freshness {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.intel-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(130px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.intel-controls label {
  margin: 0;
}

.result-count {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.intel-grid,
.video-grid {
  display: grid;
  gap: 16px;
}

.intel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.intel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.character-card,
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.character-card.selected {
  border-color: rgba(29, 78, 216, 0.72);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.character-card button,
.video-card a {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.character-card button:focus-visible,
.video-card a:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.35);
  outline-offset: -3px;
}

.character-art {
  display: grid;
  place-items: center;
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35)),
    #dfe9e7;
}

.character-card.god {
  border-color: rgba(245, 197, 66, 0.58);
}

.character-card.god .character-art {
  background:
    radial-gradient(circle at 50% 28%, rgba(245, 197, 66, 0.36), transparent 44%),
    linear-gradient(180deg, #fffaf0, var(--god-soft));
}

.character-card.demon {
  border-color: rgba(124, 58, 237, 0.46);
}

.character-card.demon .character-art {
  background:
    radial-gradient(circle at 50% 28%, rgba(124, 58, 237, 0.32), transparent 44%),
    linear-gradient(180deg, #faf7ff, var(--demon-soft));
}

.character-card.dragon {
  border-color: rgba(239, 68, 68, 0.46);
}

.character-card.dragon .character-art {
  background:
    radial-gradient(circle at 50% 28%, rgba(239, 68, 68, 0.32), transparent 44%),
    linear-gradient(180deg, #fff7f7, var(--dragon-soft));
}

.character-art img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(17, 24, 39, 0.2));
}

.character-info,
.video-body {
  padding: 16px;
}

.character-info h3,
.video-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.score-line {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.character-detail {
  position: sticky;
  top: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.detail-visual {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.detail-visual img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.detail-stats span,
.detail-skill {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.score-panel {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.score-panel-primary {
  max-width: 520px;
  padding: 18px 20px;
  border: 1px solid rgba(29, 78, 216, 0.32);
  background: linear-gradient(135deg, var(--glass), var(--panel));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.score-panel-primary span:first-child {
  color: var(--obsidian);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.2;
}

.score-panel strong {
  margin-right: 8px;
  color: var(--blue);
  font-size: 24px;
}

.score-panel-primary strong {
  font-size: 46px;
  letter-spacing: 0;
  vertical-align: middle;
}

.official-video-card {
  grid-column: span 2;
}

.official-video-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.official-video-list li {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(24, 34, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.official-video-thumb {
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.official-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.official-video-event {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.official-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.official-video-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 720px) {
  .official-video-card {
    grid-column: span 1;
  }

  .official-video-list li {
    grid-template-columns: 1fr;
  }
}

.official-video-page-hero {
  padding-top: 88px;
}

.official-video-page-grid {
  display: grid;
  gap: 18px;
}

.official-video-page-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(24, 34, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.official-video-page-card.is-latest {
  border-color: rgba(217, 119, 6, 0.38);
}

.official-video-page-thumb {
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.official-video-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.official-video-page-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.35;
}

.official-video-page-body h2 a {
  color: var(--obsidian);
  text-decoration: none;
}

.official-video-character-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.official-video-character {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(24, 34, 54, 0.09);
  border-radius: 8px;
  background: var(--panel);
}

.official-video-character.is-unmatched {
  border-color: rgba(217, 119, 6, 0.3);
  background: rgba(251, 191, 36, 0.1);
}

.official-video-character-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.official-video-character-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.official-video-character-shot span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.official-video-character-body {
  min-width: 0;
}

.official-video-character-body > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.official-video-character strong {
  color: var(--obsidian);
}

.official-video-character span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.official-video-character p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .official-video-page-card {
    grid-template-columns: 1fr;
  }

  .official-video-character {
    grid-template-columns: 1fr;
  }
}

.detail-stats strong,
.detail-skill strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-skill {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.tier-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.tier-card.tier-s {
  border-color: rgba(180, 35, 24, 0.42);
}

.tier-card.tier-a {
  border-color: rgba(183, 121, 31, 0.42);
}

.tier-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}

.tier-head > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.tier-head p,
.template-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tier-pieces {
  display: grid;
  gap: 8px;
}

.tier-pieces button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.tier-pieces img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.template-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  align-items: start;
}

.template-summary {
  position: sticky;
  top: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.summary-stats span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-stats strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.quality-panel {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.06), rgba(248, 250, 252, 0.02)),
    rgba(10, 18, 48, 0.5);
  box-shadow: 0 12px 32px rgba(10, 18, 48, 0.4);
}

.quality-panel > div {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #0a1230 0%, #1d2a5a 100%);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.4), 0 0 18px rgba(251, 191, 36, 0.18);
}

.quality-panel span,
.quality-panel em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.quality-panel strong {
  font-size: 30px;
  line-height: 1;
}

.quality-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quality-panel li {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: rgba(248, 250, 252, 0.92);
  background: rgba(248, 250, 252, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.quality-a > div,
.deck-index-stats .quality-a {
  color: #052e16;
  background: linear-gradient(160deg, #d1fae5 0%, #6ee7b7 100%);
  box-shadow: inset 0 0 0 1px rgba(5, 46, 22, 0.32), 0 0 16px rgba(110, 231, 183, 0.32);
}

.quality-b > div,
.deck-index-stats .quality-b {
  color: #3b2500;
  background: linear-gradient(160deg, #fef3c7 0%, #fde68a 100%);
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.32), 0 0 14px rgba(251, 191, 36, 0.28);
}

.quality-c > div,
.deck-index-stats .quality-c {
  color: white;
  background: linear-gradient(160deg, #fb923c, #ea580c);
  box-shadow: inset 0 0 0 1px rgba(124, 45, 18, 0.42), 0 0 14px rgba(251, 146, 60, 0.34);
}

.quality-check > div,
.deck-index-stats .quality-check {
  color: white;
  background: linear-gradient(160deg, #ef4444, #b91c1c);
  box-shadow: inset 0 0 0 1px rgba(127, 29, 29, 0.4), 0 0 14px rgba(239, 68, 68, 0.34);
}

.quality-research > div,
.deck-index-stats .quality-research {
  color: white;
  background: linear-gradient(160deg, #818cf8, #4338ca);
  box-shadow: inset 0 0 0 1px rgba(67, 56, 202, 0.5), 0 0 14px rgba(99, 102, 241, 0.3);
}

.quality-body {
  display: grid;
  gap: 6px;
  align-content: start;
}

.quality-related {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.quality-related a {
  color: #4338ca;
  text-decoration: underline;
  margin-right: 8px;
}

.hero-verdict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-verdict-grid > div {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.06), rgba(248, 250, 252, 0.02)),
    rgba(10, 18, 48, 0.55);
  backdrop-filter: blur(4px);
}

.deck-page-hero .hero-verdict-grid span {
  color: #fbbf24;
  letter-spacing: 0.06em;
}

.deck-page-hero .hero-verdict-grid strong {
  color: #f8fafc;
}

.deck-page-hero .hero-verdict-grid p {
  color: rgba(248, 250, 252, 0.72);
}

.hero-verdict-grid span,
.rival-diff-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-verdict-grid strong,
.rival-diff-grid strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero-verdict-grid p,
.rival-diff-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.deck-icon-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.game-deck-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: min(680px, 100%);
  margin-inline: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.22), rgba(124, 58, 237, 0.2) 48%, rgba(239, 68, 68, 0.24)),
    linear-gradient(180deg, #263245 0%, #111827 100%);
  box-shadow:
    0 18px 48px rgba(17, 24, 39, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -18px 36px rgba(0, 0, 0, 0.2);
}

.game-deck-board .template-piece {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.game-deck-board .deck-piece-link {
  position: relative;
  place-items: center;
  min-height: 0;
  aspect-ratio: 1;
  padding: 8px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 16px rgba(0, 0, 0, 0.18);
}

.game-deck-board .template-piece[data-element="神"] .deck-piece-link,
.template-piece[data-element="神"] > button,
.template-piece[data-element="神"] > a:not(.deck-piece-link) {
  border-color: rgba(245, 197, 66, 0.76);
  background:
    linear-gradient(180deg, rgba(245, 197, 66, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 247, 214, 0.1);
}

.game-deck-board .template-piece[data-element="魔"] .deck-piece-link,
.template-piece[data-element="魔"] > button,
.template-piece[data-element="魔"] > a:not(.deck-piece-link) {
  border-color: rgba(124, 58, 237, 0.72);
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(241, 231, 255, 0.08);
}

.game-deck-board .template-piece[data-element="竜"] .deck-piece-link,
.template-piece[data-element="竜"] > button,
.template-piece[data-element="竜"] > a:not(.deck-piece-link) {
  border-color: rgba(239, 68, 68, 0.72);
  background:
    linear-gradient(180deg, rgba(239, 68, 68, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(255, 228, 230, 0.08);
}

.game-deck-board .template-piece.missing .deck-piece-link,
[data-character-no].missing > a,
[data-character-no].missing > button:not(.owned-toggle) {
  opacity: 0.48;
  filter: grayscale(0.55);
}

.game-deck-board .template-piece.owned .deck-piece-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 2px rgba(22, 101, 52, 0.62),
    0 8px 16px rgba(0, 0, 0, 0.18);
}

.game-deck-board .template-piece img {
  width: min(88%, 108px);
  height: min(88%, 108px);
  object-fit: contain;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02) 62%),
    rgba(17, 24, 39, 0.28);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.game-deck-board .template-piece[data-element="神"] img {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(245, 197, 66, 0.28) 64%),
    var(--god-soft);
}

.game-deck-board .template-piece[data-element="魔"] img {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.64), rgba(124, 58, 237, 0.3) 64%),
    var(--demon-soft);
}

.game-deck-board .template-piece[data-element="竜"] img {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.64), rgba(239, 68, 68, 0.3) 64%),
    var(--dragon-soft);
}

.game-deck-board .template-piece strong {
  display: none;
}

.game-deck-board .template-piece span:not(.slot-no) {
  display: none;
}

.game-deck-board .template-piece span.rarity-chip {
  display: grid;
}

.game-deck-board .template-piece .slot-no {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  background: rgba(17, 24, 39, 0.82);
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.3);
}

.game-deck-board .template-piece span:not(.slot-no):not(.rarity-chip) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  text-align: center;
}

.template-piece {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.template-piece button,
.deck-piece-link {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 172px;
  padding: 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rarity-chip {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  color: white;
  background: #5b6475;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.28);
}

.rarity-s {
  color: #3b2500;
  background: linear-gradient(180deg, #fff4b8, #e4a928);
  border-color: rgba(255, 255, 255, 0.9);
}

.rarity-a {
  color: white;
  background: linear-gradient(180deg, #5ab0ff, #1d4ed8);
}

.rarity-b {
  color: white;
  background: linear-gradient(180deg, #45c47a, #166534);
}

.template-piece img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  justify-self: center;
}

.template-piece strong,
.template-piece span {
  display: block;
}

.template-piece strong {
  font-size: 13px;
}

.template-piece span:not(.slot-no) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.slot-no {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.template-piece[data-element="神"] .slot-no {
  color: #3b2500;
  background: var(--god);
}

.template-piece[data-element="魔"] .slot-no {
  background: var(--demon);
}

.template-piece[data-element="竜"] .slot-no {
  background: var(--dragon);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.signal-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.signal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.signal-head strong {
  font-size: 20px;
}

.signal-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.signal-card a,
.detail-skill a,
.creator-card a {
  color: var(--blue);
  font-weight: 800;
}

.creator-grid {
  display: grid;
  gap: 16px;
}

.creator-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.creator-card p {
  color: var(--muted);
  line-height: 1.7;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.recipe-grid span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.recipe-grid strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
}

.candidate-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.candidate-row button {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.candidate-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  justify-self: center;
}

.mini-tag {
  display: inline-flex;
  margin: 4px 6px 2px 0;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  font-size: 12px;
  font-weight: 900;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
}

.video-section {
  background: var(--panel);
}

.video-section select {
  max-width: 260px;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.video-card ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.video-body > p:not(.meta) {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.video-card li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  min-width: 0;
}

.video-card li:not(:last-child) {
  margin-bottom: 4px;
}

.video-card li span {
  color: var(--cyan);
  font-weight: 900;
}

.sources a {
  color: var(--blue);
  font-weight: 800;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.image-modal.open {
  display: block;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(6px);
}

.image-modal-panel {
  position: absolute;
  inset: clamp(14px, 4vw, 42px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #101622;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.image-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.image-modal-toolbar > div {
  display: flex;
  gap: 8px;
}

.image-modal-toolbar p {
  flex: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.image-modal-toolbar button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.image-modal-stage {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 22px;
}

.image-modal-stage img {
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  object-fit: contain;
  transform-origin: center;
  transition: transform 120ms ease;
}

.character-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background: var(--panel);
}

.character-page-art {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: end;
}

.character-page-art img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft);
}

.character-page-art img:nth-child(2) {
  max-height: 120px;
  padding: 10px;
}

.character-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.character-fit-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.character-fit-summary article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(10, 18, 48, 0.06);
}

.character-fit-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.character-fit-summary strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.character-fit-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.related-grid,
.character-index-grid {
  display: grid;
  gap: 10px;
}

.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-grid a,
.character-index-grid a {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.related-grid img,
.character-index-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  justify-self: center;
}

.character-index-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 24px;
}

.character-index-grid strong {
  color: var(--blue);
}

.collection-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(140px, 0.8fr));
  gap: 10px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.deck-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: clamp(34px, 5vw, 60px) clamp(18px, 5vw, 72px);
  color: #f8fafc;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(251, 191, 36, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(124, 58, 237, 0.22), transparent 55%),
    linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 55%, var(--obsidian-3) 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.36);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.16) inset, 0 18px 48px rgba(10, 18, 48, 0.32);
  overflow: hidden;
}

.deck-page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(248, 250, 252, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(248, 250, 252, 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
  pointer-events: none;
  opacity: 0.7;
}

.deck-page-hero > * {
  position: relative;
  min-width: 0;
}

.deck-page-hero .eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.deck-page-hero h1 {
  max-width: 100%;
  word-break: auto-phrase;
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(10, 18, 48, 0.5);
}

.deck-page-hero .lead {
  color: rgba(248, 250, 252, 0.82);
  font-size: 15px;
  line-height: 1.85;
}

.deck-page-hero .summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.deck-page-hero .summary-stats span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(10, 18, 48, 0.5);
  color: rgba(248, 250, 252, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.deck-page-hero .summary-stats strong {
  color: #fbbf24;
  font-size: 18px;
}

.deck-source-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.06), rgba(248, 250, 252, 0.02)),
    rgba(10, 18, 48, 0.55);
  color: #f8fafc;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 32px rgba(10, 18, 48, 0.5);
}

.deck-source-card strong {
  color: #fbbf24;
  letter-spacing: 0.04em;
}

.deck-source-card p {
  color: rgba(248, 250, 252, 0.72);
}

.source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-tags span,
.source-tags em {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.confidence-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 10px;
  background: rgba(10, 18, 48, 0.55);
  color: rgba(248, 250, 252, 0.82);
}

.confidence-box strong {
  color: #fbbf24;
  font-size: 13px;
}

.confidence-box p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.confidence-box span {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(248, 250, 252, 0.08);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.confidence-high {
  border-color: rgba(22, 101, 52, 0.34);
}

.confidence-medium {
  border-color: rgba(183, 121, 31, 0.34);
}

.confidence-low {
  border-color: rgba(180, 35, 24, 0.3);
}

.confidence-research {
  border-color: rgba(67, 56, 202, 0.32);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.92));
}

.deck-source-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.deck-source-filter button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.deck-source-filter button.active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.deck-search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(160px, 0.8fr) minmax(150px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.deck-search-panel input,
.deck-search-panel select {
  width: 100%;
  min-height: 42px;
}

.deck-compare-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.18), rgba(124, 58, 237, 0.22) 52%, rgba(239, 68, 68, 0.2)),
    #111827;
  color: white;
}

.deck-compare-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.correction-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(5, minmax(120px, 0.8fr));
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.14), rgba(124, 58, 237, 0.12) 52%, rgba(239, 68, 68, 0.14)),
    var(--panel-solid);
}

.correction-panel h2 {
  margin: 0;
  font-size: 20px;
}

.correction-panel label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.correction-panel input {
  width: 100%;
}

.correction-panel label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.correction-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.correction-summary a {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}

.correction-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.correction-good,
.correction-ok,
.correction-bad {
  border-color: transparent;
}

.correction-good {
  color: white;
  background: var(--green);
}

.correction-ok {
  color: #111827;
  background: #fde68a;
}

.correction-bad {
  color: white;
  background: var(--red);
}

.compare-head,
.compare-names,
.compare-row {
  display: grid;
  grid-template-columns: 160px repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.compare-head {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.compare-head strong {
  color: white;
  font-size: 17px;
}

.compare-names a,
.compare-row strong {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.compare-row span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.deck-page-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 14px;
}

.deck-article-section {
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.1), rgba(124, 58, 237, 0.08) 52%, rgba(239, 68, 68, 0.1)),
    var(--panel-solid);
}

.deck-evaluation-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.deck-evaluation-card,
.deck-recipe-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 251, 0.88)),
    var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.compact-head {
  margin: 0;
}

.evaluation-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.evaluation-table > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.evaluation-table > div:last-child {
  border-bottom: 0;
}

.evaluation-table span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.evaluation-table strong {
  color: #b45309;
  font-size: 20px;
  letter-spacing: 1px;
}

.evaluation-table p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.evaluation-table em {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.recipe-table {
  display: grid;
  gap: 8px;
}

.recipe-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: stretch;
}

.recipe-rarity {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.18), rgba(124, 58, 237, 0.18) 52%, rgba(239, 68, 68, 0.18)),
    #111827;
  font-weight: 900;
}

.recipe-pieces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.recipe-piece {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recipe-piece:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(10, 18, 48, 0.18);
}

.recipe-piece[data-element="神"] {
  border-color: rgba(245, 197, 66, 0.6);
  background: linear-gradient(135deg, var(--panel-solid) 0%, var(--god-soft) 100%);
  box-shadow: inset 3px 0 0 var(--god);
}

.recipe-piece[data-element="魔"] {
  border-color: rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, var(--panel-solid) 0%, var(--demon-soft) 100%);
  box-shadow: inset 3px 0 0 var(--demon);
}

.recipe-piece[data-element="竜"] {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, var(--panel-solid) 0%, var(--dragon-soft) 100%);
  box-shadow: inset 3px 0 0 var(--dragon);
}

.recipe-piece img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--panel);
}

.recipe-piece[data-element="神"] img {
  border: 2px solid var(--god);
  box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.18), 0 4px 10px rgba(245, 197, 66, 0.32);
}

.recipe-piece[data-element="魔"] img {
  border: 2px solid var(--demon);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18), 0 4px 10px rgba(124, 58, 237, 0.32);
}

.recipe-piece[data-element="竜"] img {
  border: 2px solid var(--dragon);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18), 0 4px 10px rgba(239, 68, 68, 0.32);
}

.recipe-piece span {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.strategy-section {
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.08), rgba(124, 58, 237, 0.08) 52%, rgba(239, 68, 68, 0.08)),
    #f7fbff;
}

.source-audit-section,
.rival-diff-section,
.piece-analysis-section,
.win-plan-section,
.video-insight-section {
  background: var(--panel);
}

.source-audit-grid,
.rival-diff-grid,
.piece-analysis-grid,
.win-check-grid,
.video-insight-grid {
  display: grid;
  gap: 14px;
}

.source-audit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rival-diff-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.source-audit-grid > div,
.rival-diff-grid > div,
.piece-analysis-card,
.win-check,
.video-insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel-solid);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.source-audit-grid > div {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 14px;
}

.rival-diff-grid > div {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 14px;
  border-top: 4px solid rgba(29, 78, 216, 0.7);
}

.source-audit-grid span,
.piece-analysis-card dt,
.win-check span,
.video-insight-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.source-audit-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.source-audit-grid p,
.win-check p,
.video-insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.piece-analysis-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.piece-analysis-card {
  overflow: hidden;
  display: grid;
  align-content: start;
}

.piece-analysis-card[data-element="神"] {
  border-color: rgba(245, 197, 66, 0.46);
}

.piece-analysis-card[data-element="魔"] {
  border-color: rgba(124, 58, 237, 0.38);
}

.piece-analysis-card[data-element="竜"] {
  border-color: rgba(239, 68, 68, 0.38);
}

.piece-analysis-head {
  display: grid;
  grid-template-columns: 28px 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.12), rgba(124, 58, 237, 0.1) 52%, rgba(239, 68, 68, 0.12));
}

.piece-analysis-head img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--panel);
}

.piece-analysis-head strong,
.piece-analysis-head em {
  display: block;
  overflow-wrap: anywhere;
}

.piece-analysis-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.piece-analysis-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.piece-analysis-card div {
  display: grid;
  gap: 5px;
}

.piece-analysis-card dd {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.piece-analysis-card dd span {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--soft);
}

.piece-analysis-card dd a {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid rgba(79, 70, 229, 0.22);
  color: #3730a3;
  font-weight: 900;
}

.evaluation-evidence-card .comment-samples {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.evaluation-evidence-card blockquote {
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid #4f46e5;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}

.evaluation-evidence-card blockquote span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 2px;
}

.win-check-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.win-check {
  padding: 14px;
}

.win-check span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.video-insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-insight-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.video-insight-card strong {
  color: var(--ink);
  line-height: 1.45;
}

.empty-note {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.strategy-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.strategy-card > strong {
  color: var(--blue);
  font-size: 15px;
}

.strategy-card ol,
.strategy-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.turn-plan,
.matchup-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.turn-plan span,
.matchup-row span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.turn-plan p,
.matchup-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.deck-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.deck-index-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
}

.deck-index-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--god), var(--demon), var(--dragon));
}

.deck-index-card.element-god::before {
  background: linear-gradient(90deg, var(--god), #f59e0b);
}

.deck-index-card.element-demon::before {
  background: linear-gradient(90deg, var(--demon), var(--demon-dark));
}

.deck-index-card.element-dragon::before {
  background: linear-gradient(90deg, var(--dragon), var(--dragon-dark));
}

.deck-index-grid > a,
.deck-index-card > a {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.deck-index-card.element-god > a {
  border-color: rgba(245, 197, 66, 0.4);
  background: linear-gradient(180deg, var(--panel-solid), var(--god-soft));
}

.deck-index-card.element-demon > a {
  border-color: rgba(124, 58, 237, 0.32);
  background: linear-gradient(180deg, var(--panel-solid), var(--demon-soft));
}

.deck-index-card.element-dragon > a {
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(180deg, var(--panel-solid), var(--dragon-soft));
}

.deck-index-grid strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.deck-index-grid span,
.deck-index-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.deck-index-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deck-index-stats em,
.compare-check {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.compare-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.deck-index-icons {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(10, 18, 48, 0.94), rgba(29, 42, 90, 0.92));
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22), inset 0 0 16px rgba(56, 189, 248, 0.12);
}

.deck-index-icons img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: 0 0 0 1px rgba(10, 18, 48, 0.5), 0 2px 6px rgba(10, 18, 48, 0.42);
}

.collection-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(92vw, 760px);
  padding: 10px;
  border: 1px solid var(--line-2, var(--line));
  border-radius: 8px;
  background: color-mix(in oklab, var(--panel-solid, #161D2E) 92%, transparent);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.collection-panel > div {
  display: grid;
  gap: 2px;
  min-width: 88px;
}

.collection-panel .collection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.collection-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.collection-panel button,
.collection-panel a,
.owned-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.collection-panel button,
.collection-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
}

.owned-toggle {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 3;
  padding: 3px 6px;
  color: white;
  background: rgba(180, 35, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.4);
}

.owned .owned-toggle {
  background: rgba(22, 101, 52, 0.92);
}

.owned-deck-result {
  background: var(--panel);
}

.owned-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.owned-summary span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.owned-summary strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.sub-chip {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 6px;
  color: white;
  background: rgba(29, 78, 216, 0.92);
  font-size: 11px;
  font-weight: 900;
}

.evidence-chip {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 6px;
  color: white;
  background: rgba(91, 100, 117, 0.94);
  font-size: 11px;
  font-weight: 900;
}

.evidence-confirmed {
  color: #3b2500;
  background: linear-gradient(180deg, #fff4b8, #e4a928);
}

.evidence-inferred {
  background: rgba(29, 78, 216, 0.94);
}

.evidence-filled {
  background: rgba(91, 100, 117, 0.94);
}

.missing-chip {
  background: rgba(180, 35, 24, 0.92);
}

.template-piece.substitute .deck-piece-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 2px rgba(29, 78, 216, 0.68),
    0 8px 16px rgba(0, 0, 0, 0.18);
}

.template-piece.missing .deck-piece-link {
  opacity: 0.42;
  filter: grayscale(0.8);
}

.substitution-report {
  display: grid;
  gap: 8px;
  max-width: 960px;
  margin: 18px auto 0;
}

.missing-list {
  display: grid;
  gap: 10px;
  max-width: 960px;
  margin: 18px auto 0;
  padding: 16px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 8px;
  background: rgba(251, 113, 133, 0.1);
}

.missing-list h3 {
  margin: 0;
}

.missing-list > div {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 8px;
  background: var(--panel);
}

.missing-list img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.missing-list span {
  font-weight: 900;
}

.missing-list strong {
  color: var(--red);
  font-size: 12px;
}

.save-deck-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  max-width: 960px;
  margin: 0 auto 18px;
}

.save-deck-bar input {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.save-deck-bar button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.my-deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.my-deck-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.my-deck-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.my-deck-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.my-deck-head button {
  align-self: start;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.mini-deck-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #111827;
}

.mini-deck-grid a {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-deck-grid a.missing {
  opacity: 0.42;
  filter: grayscale(0.8);
}

.mini-deck-grid a.substitute {
  outline: 2px solid rgba(29, 78, 216, 0.75);
}

.mini-deck-grid span {
  position: absolute;
  left: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
  background: rgba(17, 24, 39, 0.82);
  font-size: 11px;
  font-weight: 900;
}

.mini-deck-grid img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.my-deck-card textarea {
  min-height: 160px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}

.substitution-report p {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.5;
}

.substitution-report span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.deck-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 520px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: var(--panel);
}

.calculator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.calculator label {
  margin: 0;
}

.result {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 8px;
  color: white;
  background: #111827;
  font-size: 24px;
  font-weight: 900;
}

.result.win {
  background: var(--green);
}

.result.hold {
  background: var(--red);
}

.pattern-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.othello-board {
  grid-template-columns: repeat(6, minmax(42px, 1fr));
}

.othello-board button {
  display: grid;
  place-items: center;
  min-width: 0;
  color: white;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
}

.othello-board button[data-point] {
  background: rgba(29, 78, 216, 0.36);
}

.othello-board button:hover,
.othello-board button.active {
  background: rgba(250, 204, 21, 0.72);
  color: #111827;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.check-grid label {
  grid-template-columns: 18px 1fr;
  align-items: start;
  min-height: 76px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

.sources {
  padding: 18px clamp(18px, 5vw, 72px) 42px;
}

.sources p {
  font-size: 13px;
}

@media (max-width: 900px) {
  .section {
    padding-inline: clamp(14px, 4vw, 28px);
  }

  .topbar,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .topbar {
    padding: 10px 14px;
    gap: 8px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .deck-page-hero {
    padding: clamp(28px, 6vw, 44px) clamp(16px, 4vw, 28px);
  }

  .deck-page-hero .summary-stats {
    gap: 6px;
  }

  .deck-page-hero .summary-stats span {
    flex: 1 1 calc(50% - 6px);
    padding: 6px 10px;
  }

  .quality-panel {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .quality-panel > div {
    padding: 10px 12px;
  }

  .quality-panel ul {
    gap: 5px;
  }

  .hero,
  .deck-tool,
  .split,
  .intel-layout,
  .intel-controls,
  .deck-search-panel,
  .correction-panel,
  .template-layout,
  .character-page-hero,
  .character-page-grid,
  .collection-filters,
  .deck-page-hero,
  .hero-verdict-grid,
  .deck-page-grid,
  .deck-evaluation-layout,
  .deck-index-grid,
  .source-audit-grid,
  .rival-diff-grid,
  .piece-analysis-grid,
  .win-check-grid,
  .video-insight-grid,
  .howto-grid,
  .site-entry-grid,
  .news-focus-panel,
  .character-fit-summary,
  .creator-card,
  .strategy-grid,
  .pattern-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
    min-height: 820px;
    padding-top: 72px;
  }

  .hero-bg {
    object-position: 63% center;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.54) 31%, rgba(255, 255, 255, 0.08) 58%, rgba(247, 250, 255, 0.92) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.16));
  }

  .hero-copy {
    max-width: 620px;
    padding-bottom: 0;
  }

  .hero-visual {
    display: none;
  }

  .result-count {
    margin: 0;
  }

  .character-detail,
  .template-summary {
    position: static;
  }

  .deck-grid,
  .intel-grid,
  .video-grid,
  .tier-grid,
  .template-grid,
  .meta-deck-grid,
  .deck-icon-grid,
  .signal-grid,
  .related-grid,
  .character-index-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .game-deck-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-width: 6px;
  }

  .game-deck-board .deck-piece-link {
    padding: 4px;
  }

  .game-deck-board .template-piece span:not(.slot-no):not(.rarity-chip) {
    display: none;
  }

  .game-deck-board .rarity-chip {
    top: 4px;
    right: 4px;
    min-width: 22px;
    height: 20px;
    padding: 0 4px;
    font-size: 11px;
  }

  .meta-deck-card {
    min-height: 0;
  }

  .meta-deck-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-deck-toolbar button,
  .deck-source-filter button {
    min-width: 0;
    white-space: normal;
  }

  .deck-index-card > a {
    padding: 14px;
  }

  .deck-index-icons {
    grid-template-columns: repeat(8, minmax(28px, 1fr));
  }

  .source-audit-grid,
  .rival-diff-grid,
  .win-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .piece-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-card {
    padding: 16px;
  }

  .recipe-pieces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-panel {
    align-items: stretch;
  }

  .collection-actions {
    display: grid;
    flex: 1 0 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .collection-actions button,
  .collection-actions a {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
  }

  .image-modal-toolbar {
    align-items: start;
    flex-wrap: wrap;
  }

  .image-modal-toolbar p {
    order: 3;
    flex-basis: 100%;
  }
}

@media (max-width: 520px) {
  .section {
    padding-inline: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: 800px;
  }

  .hero-copy h1 {
    max-width: calc(100vw - 48px);
    font-size: 30px;
    line-height: 1.16;
    word-break: break-all;
  }

  .hero-copy .lead {
    max-width: calc(100vw - 48px);
    font-size: 15px;
    line-height: 1.75;
  }

  .deck-page-hero h1 {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.18;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .deck-page-hero .lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .deck-page-hero .summary-stats span {
    flex: 1 1 calc(33.3% - 6px);
    font-size: 10px;
  }

  .deck-page-hero .summary-stats strong {
    font-size: 16px;
  }

  .recipe-pieces {
    grid-template-columns: 1fr;
  }

  .recipe-piece {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 56px;
    padding: 6px 8px 6px 6px;
  }

  .recipe-piece img {
    width: 44px;
    height: 44px;
  }

  .deck-index-icons {
    grid-template-columns: repeat(8, minmax(24px, 1fr));
    gap: 4px;
    padding: 6px;
  }

  .source-tags span,
  .source-tags em {
    padding: 4px 7px;
    font-size: 11px;
  }

  .section-head {
    padding-left: 12px;
  }

  .collection-panel {
    right: 8px;
    bottom: 8px;
    left: 8px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }

  .calculator {
    grid-template-columns: 1fr;
  }

  .hp-row {
    grid-template-columns: 48px 1fr;
  }

  .hp-row strong {
    grid-column: 2;
  }

  .deck-search-panel {
    padding: 10px;
  }

  .deck-compare-panel {
    padding: 12px;
  }

  .deck-source-card,
  .hero-verdict-grid > div,
  .source-audit-grid > div,
  .rival-diff-grid > div,
  .piece-analysis-card,
  .win-check,
  .video-insight-card {
    box-shadow: none;
  }

  .hero-verdict-grid,
  .quality-panel,
  .source-audit-grid,
  .rival-diff-grid,
  .piece-analysis-grid,
  .win-check-grid,
  .video-insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-verdict-grid > div,
  .source-audit-grid > div,
  .rival-diff-grid > div {
    min-height: 0;
  }

  .quality-panel {
    grid-template-columns: 1fr;
  }

  .compare-head,
  .compare-names,
  .compare-row {
    gap: 6px;
  }

  .compare-head span,
  .compare-row span {
    padding-top: 8px;
  }

  .compare-names a,
  .compare-row strong {
    min-height: 34px;
    padding: 8px;
    font-size: 13px;
  }

  .meta-deck-stats {
    grid-template-columns: 1fr;
  }

  .meta-deck-card {
    padding: 14px;
  }

  .meta-deck-card h3 {
    font-size: 18px;
  }

  .meta-deck-actions .button,
  .deck-search-panel input,
  .deck-search-panel select {
    min-height: 44px;
  }

  .game-deck-board {
    gap: 4px;
    padding: 6px;
    border-width: 4px;
    border-radius: 12px;
  }

  .game-deck-board .template-piece img {
    width: 86%;
    height: 86%;
  }

  .game-deck-board .template-piece .slot-no,
  .game-deck-board .rarity-chip {
    transform: scale(0.9);
    transform-origin: top left;
  }

  .evaluation-table > div,
  .recipe-row,
  .recipe-piece {
    grid-template-columns: 1fr;
  }

  .evaluation-table strong {
    font-size: 18px;
  }

  .recipe-pieces {
    grid-template-columns: 1fr;
  }

  .recipe-rarity {
    min-height: 38px;
  }

  .recipe-piece {
    grid-template-columns: 44px 1fr;
  }

  .piece-analysis-card:not([data-rarity="S"]) dl div:nth-child(n+3) {
    display: none;
  }

  .piece-analysis-head {
    grid-template-columns: 26px 46px minmax(0, 1fr);
    padding: 10px;
  }

  .piece-analysis-head img {
    width: 46px;
    height: 46px;
  }

  .piece-analysis-card dl {
    padding: 10px;
  }

  .image-modal-panel {
    inset: 8px;
  }

  .image-modal-toolbar {
    gap: 8px;
  }

  .image-modal-stage {
    padding: 12px;
  }

  .strategy-card ol,
  .strategy-card ul,
  .turn-plan p,
  .matchup-row p {
    font-size: 13px;
  }

  .owned-summary,
  .substitution-report p,
  .missing-list > div,
  .save-deck-bar,
  .meta-deck-actions,
  .compare-head,
  .compare-names,
  .compare-row,
  .correction-summary,
  .my-deck-grid {
    grid-template-columns: 1fr;
  }
}

.news-spotlight-section {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.6), rgba(248, 250, 252, 0.2));
}

/* ===== Ranking ===== */
.rank-spotlight-section {
  background:
    linear-gradient(180deg, rgba(10, 18, 48, 0.04), rgba(10, 18, 48, 0)),
    var(--soft);
}

.rank-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.rank-spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(10, 18, 48, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.rank-spotlight-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--neon-gold), var(--demon), var(--dragon));
}

.rank-spotlight-card.element-god::before {
  background: linear-gradient(90deg, var(--god), #f59e0b);
}

.rank-spotlight-card.element-demon::before {
  background: linear-gradient(90deg, var(--demon), var(--demon-dark));
}

.rank-spotlight-card.element-dragon::before {
  background: linear-gradient(90deg, var(--dragon), var(--dragon-dark));
}

.rank-spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(10, 18, 48, 0.18);
}

.rank-spotlight-position {
  display: grid;
  place-items: center;
  align-self: start;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--obsidian), var(--obsidian-3));
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  border: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: 0 6px 18px rgba(10, 18, 48, 0.32);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #fde68a, #fbbf24 60%, #b45309);
  color: #1f1300;
  border-color: rgba(180, 83, 9, 0.42);
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.42), inset 0 0 0 2px rgba(255, 255, 255, 0.34);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1 60%, #64748b);
  color: #0f172a;
  border-color: rgba(100, 116, 139, 0.42);
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.4);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #fed7aa, #f97316 60%, #9a3412);
  color: #1f0f00;
  border-color: rgba(154, 52, 18, 0.42);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

.rank-spotlight-body {
  display: grid;
  gap: 8px;
}

.rank-spotlight-body strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.rank-spotlight-archetype {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.rank-spotlight-icons {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 18, 48, 0.94), rgba(29, 42, 90, 0.92));
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22);
}

.rank-spotlight-icons img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.rank-spotlight-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rank-spotlight-stats em {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

/* Ranking page */
.rank-hero {
  padding: clamp(40px, 6vw, 80px) clamp(18px, 5vw, 72px) clamp(20px, 4vw, 36px);
  color: #f8fafc;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(251, 191, 36, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(124, 58, 237, 0.22), transparent 55%),
    linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 55%, var(--obsidian-3) 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.36);
}

.rank-hero-inner {
  max-width: 880px;
}

.rank-hero .eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rank-hero h1 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
}

.rank-hero .lead {
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
  font-size: 15px;
  line-height: 1.85;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(10, 18, 48, 0.06);
}

.rank-row::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--neon-gold), var(--demon), var(--dragon));
  border-radius: 14px 14px 0 0;
}

.rank-row[data-rank="1"]::before {
  height: 6px;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #b45309);
}

.rank-row[data-rank="2"]::before {
  height: 5px;
  background: linear-gradient(90deg, #f1f5f9, #cbd5e1, #64748b);
}

.rank-row[data-rank="3"]::before {
  height: 5px;
  background: linear-gradient(90deg, #fed7aa, #f97316, #9a3412);
}

.rank-row.element-god { border-color: rgba(245, 197, 66, 0.3); }
.rank-row.element-demon { border-color: rgba(124, 58, 237, 0.3); }
.rank-row.element-dragon { border-color: rgba(239, 68, 68, 0.3); }

.rank-position {
  display: grid;
  place-items: center;
  align-self: center;
}

.rank-position .rank-badge {
  width: 64px;
  height: 64px;
  font-size: 18px;
}

.rank-main {
  display: grid;
  gap: 8px;
  padding: 4px 0;
  color: var(--ink);
}

.rank-main:hover {
  color: var(--blue);
}

.rank-headline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.rank-headline strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.rank-archetype {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
}

.rank-icons {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 18, 48, 0.94), rgba(29, 42, 90, 0.92));
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22);
  max-width: 480px;
}

.rank-icons img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.rank-concept {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.rank-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rank-stats em {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rank-tags em {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
  color: #92400e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 520px) {
  .rank-row {
    grid-template-columns: 64px 1fr;
    padding: 12px;
  }
  .rank-position .rank-badge {
    width: 52px;
    height: 52px;
    font-size: 15px;
  }
  .rank-icons {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 3px;
    padding: 6px;
  }
  .rank-headline strong {
    font-size: 15px;
  }
}

/* ===== Strategy Pillars (組む / 代用する / 勝つ判断) ===== */
.strategy-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.strategy-pillar {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(10, 18, 48, 0.06);
  overflow: hidden;
}

.strategy-pillar::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  content: "";
}

.strategy-pillar.pillar-build::before { background: linear-gradient(90deg, var(--neon-gold), var(--god-dark)); }
.strategy-pillar.pillar-substitute::before { background: linear-gradient(90deg, var(--demon), var(--demon-dark)); }
.strategy-pillar.pillar-win::before { background: linear-gradient(90deg, var(--dragon), var(--dragon-dark)); }

.strategy-pillar header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.strategy-pillar-tag {
  display: inline-grid;
  place-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--obsidian);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.pillar-substitute .strategy-pillar-tag {
  color: #ede9fe;
  background: linear-gradient(135deg, var(--demon), var(--demon-dark));
  border-color: rgba(238, 233, 254, 0.32);
}

.pillar-win .strategy-pillar-tag {
  color: white;
  background: linear-gradient(135deg, var(--dragon), var(--dragon-dark));
  border-color: rgba(255, 255, 255, 0.32);
}

.strategy-pillar h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}

.strategy-pillar-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.strategy-pillar-lead em {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  color: #92400e;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
}

.strategy-pillar-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.strategy-pillar-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.strategy-pillar-list > div:last-child {
  border-bottom: none;
}

.strategy-pillar-list dt {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.strategy-pillar-list dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.strategy-substitute-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-substitute-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.strategy-substitute-target {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.strategy-substitute-target img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
}

.strategy-substitute-target strong {
  display: block;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.role-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  vertical-align: 1px;
}

.role-leader {
  background: linear-gradient(135deg, #fbbf24, #b45309);
  color: #1f1300;
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.42);
}

.role-leader-mini {
  display: inline-block;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 3px;
  font-style: normal;
  font-size: 8px;
  font-weight: 900;
  background: #fbbf24;
  color: #1f1300;
  vertical-align: 1px;
}

.strategy-substitute-arrows {
  font-size: 10px;
}

.strategy-substitute-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px !important;
}

.strategy-substitute-meta em {
  font-style: normal;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
}

.tier-badge {
  font-style: normal;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.tier-splus { background: linear-gradient(135deg, #fbbf24, #b45309); color: #1f1300; }
.tier-s { background: #fde68a; color: #92400e; }
.tier-a { background: #dbeafe; color: #1e40af; }
.tier-b { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.tier-c { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

.adoption-badge {
  font-style: normal;
  background: rgba(56, 189, 248, 0.12);
  color: #075985;
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
}

.damage-badge {
  font-style: normal;
  background: linear-gradient(135deg, #fee2e2, #fca5a5);
  color: #7f1d1d;
  border: 1px solid rgba(239, 68, 68, 0.32);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 10px;
}

.skill-analysis-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.skill-analysis-row {
  display: grid;
  grid-template-columns: 110px auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12.5px;
}

.skill-analysis-label {
  font-weight: 800;
  color: var(--obsidian);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.skill-analysis-score {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
}

.skill-analysis-detail {
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.skill-analysis-detail .cond-tag,
.skill-analysis-detail .role-pill {
  display: inline-block;
  margin: 1px 4px 1px 0;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--obsidian);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.skill-analysis-detail .role-pill {
  background: rgba(124, 58, 237, 0.1);
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.28);
}

.skill-analysis-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.strategy-substitute-partners {
  display: block !important;
  margin-top: 4px;
  font-size: 11px !important;
  color: var(--muted) !important;
  font-weight: 700 !important;
}

.strategy-substitute-partners em {
  font-style: normal;
  background: rgba(124, 58, 237, 0.1);
  color: #5b21b6;
  border: 1px solid rgba(124, 58, 237, 0.28);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  margin-right: 3px;
  font-weight: 800;
}

.strategy-substitute-options a {
  position: relative;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto auto;
  row-gap: 2px;
}

.strategy-substitute-options a img { grid-row: 1 / span 3; }
.strategy-substitute-options a > span { grid-column: 2; grid-row: 1; }
.strategy-substitute-options a > small:first-of-type { grid-column: 2; grid-row: 2; }
.strategy-substitute-options a .conf-line { grid-column: 1 / -1; grid-row: 4; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.strategy-substitute-options a .conf-reason { grid-column: 1 / -1; grid-row: 5; font-size: 10px; color: var(--muted); margin-top: 2px; }

.conf-badge {
  font-style: normal;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.conf-高 { background: linear-gradient(135deg, #d1fae5, #6ee7b7); color: #064e3b; }
.conf-中 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #78350f; }
.conf-低 { background: linear-gradient(135deg, #fed7aa, #fb923c); color: #7c2d12; }
.conf-参考 { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

.strategy-substitute-options a.conf-高 {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(180deg, white, rgba(209, 250, 229, 0.45));
}

.strategy-substitute-options a.conf-低 {
  border-color: rgba(249, 115, 22, 0.32);
  background: linear-gradient(180deg, white, rgba(254, 215, 170, 0.32));
}

.strategy-pillar-disclaimer {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 3px solid var(--neon-gold);
  background: rgba(251, 191, 36, 0.08);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--muted);
}

.strategy-substitute-target span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.strategy-substitute-arrows {
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--demon);
}

.strategy-substitute-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.strategy-substitute-options a {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}

.strategy-substitute-options img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--soft);
}

.strategy-substitute-options span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.strategy-substitute-options small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

.strategy-phase-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: phase;
}

.strategy-phase-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-left: 4px solid var(--dragon);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.06), transparent 80%);
  border-radius: 0 8px 8px 0;
}

.strategy-phase-list strong {
  font-size: 12px;
  font-weight: 900;
  color: var(--dragon-dark);
  letter-spacing: 0.04em;
}

.strategy-phase-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}

.strategy-decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.strategy-decision-head {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  color: var(--obsidian);
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--neon-gold);
  padding-bottom: 4px;
  display: inline-block;
}

.strategy-decision-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-decision-grid li {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
}

.strategy-decision-grid li span {
  font-weight: 900;
  font-size: 11px;
  color: var(--obsidian);
  letter-spacing: 0.04em;
}

.strategy-decision-grid li em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.strategy-pillar-foot {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 720px) {
  .strategy-substitute-list > li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .strategy-substitute-arrows {
    text-align: left;
  }
  .strategy-decision-grid {
    grid-template-columns: 1fr;
  }
  .strategy-phase-list li {
    grid-template-columns: 1fr;
  }
  .strategy-pillar-list > div {
    grid-template-columns: 1fr;
  }
  .strategy-pillar-list dt {
    color: var(--obsidian);
  }
}

/* ===== Official videos page ===== */
.official-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.official-video-card {
  display: grid;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(10, 18, 48, 0.08);
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.official-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(10, 18, 48, 0.18);
}

.official-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--obsidian);
}

.official-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.official-video-date {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 18, 48, 0.85);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
}

.official-video-body {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.official-video-category span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--obsidian);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.official-video-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.official-video-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.official-video-featured {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--obsidian);
}

.official-video-featured em {
  font-style: normal;
  color: var(--demon-dark);
}

.official-video-featured small {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.official-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.official-video-tags em {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}

/* ===== Tier list page ===== */
.tier-body {
  background:
    var(--board-grid),
    radial-gradient(at 14% 8%, rgba(56, 189, 248, 0.1), transparent 38%),
    radial-gradient(at 86% 12%, rgba(251, 191, 36, 0.08), transparent 42%),
    var(--soft);
}

.tier-hero {
  padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 72px) clamp(20px, 4vw, 32px);
  color: #f8fafc;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(251, 191, 36, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(124, 58, 237, 0.22), transparent 55%),
    linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 55%, var(--obsidian-3) 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.36);
}

.tier-hero .eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tier-hero h1 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
}

.tier-hero .lead {
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
  font-size: 15px;
  line-height: 1.85;
  max-width: 880px;
}

.tier-controls {
  position: sticky;
  top: 70px;
  z-index: 5;
  display: grid;
  gap: 10px;
  padding: 14px clamp(14px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.tier-filter-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.tier-filter-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--obsidian);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tier-filter-chips button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tier-filter-chips button:hover {
  background: var(--soft);
}

.tier-filter-chips button.active {
  background: var(--obsidian);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.42);
}

.tier-filter-tools {
  grid-template-columns: 64px minmax(0, 200px) minmax(0, 1fr) auto;
  gap: 10px;
}

.tier-filter-tools select,
.tier-filter-tools input[type="search"] {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.tier-result-count {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

.tier-result {
  padding: clamp(20px, 4vw, 36px) clamp(14px, 4vw, 56px);
  display: grid;
  gap: 24px;
}

.tier-section {
  display: grid;
  gap: 12px;
}

.tier-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--obsidian), var(--obsidian-3));
  color: #f8fafc;
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.tier-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.tier-section-count {
  margin: 0;
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.72);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.tier-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(10, 18, 48, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(10, 18, 48, 0.16);
}

.tier-card.element-god { border-color: rgba(245, 197, 66, 0.32); }
.tier-card.element-demon { border-color: rgba(124, 58, 237, 0.32); }
.tier-card.element-dragon { border-color: rgba(239, 68, 68, 0.32); }

.tier-card-tier {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
}

.tier-card-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.tier-card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tier-card-subtitle {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-card-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tier-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.tier-card-meta span {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.element-pill.element-神 { background: var(--god-soft); color: var(--god-dark); border-color: rgba(180, 83, 9, 0.42); }
.element-pill.element-魔 { background: var(--demon-soft); color: var(--demon-dark); border-color: rgba(124, 58, 237, 0.42); }
.element-pill.element-竜 { background: var(--dragon-soft); color: var(--dragon-dark); border-color: rgba(239, 68, 68, 0.42); }

.tier-card-gacha {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.tier-card-gacha-banner {
  width: 56px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--soft);
  flex-shrink: 0;
}

.tier-card-gacha-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gacha-period {
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.character-gacha-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.character-gacha-banner {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(10, 18, 48, 0.16);
}

.character-gacha-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.character-gacha-meta {
  display: grid;
  gap: 4px;
}

.character-gacha-meta a {
  color: #4338ca;
  font-weight: 800;
  font-size: 12px;
}

@media (max-width: 520px) {
  .character-gacha-card {
    grid-template-columns: 1fr;
  }
}

.gacha-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.gacha-pill.gacha-anniv {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #78350f;
  border: 1px solid rgba(180, 83, 9, 0.42);
}

.gacha-pill.gacha-season {
  background: linear-gradient(135deg, #bbf7d0, #6ee7b7);
  color: #064e3b;
  border: 1px solid rgba(16, 185, 129, 0.42);
}

.gacha-pill.gacha-current {
  background: linear-gradient(135deg, #fecaca, #f87171);
  color: #7f1d1d;
  border: 1px solid rgba(239, 68, 68, 0.42);
}

.gacha-pill.gacha-special {
  background: linear-gradient(135deg, #ede9fe, #c4b5fd);
  color: #4c1d95;
  border: 1px solid rgba(124, 58, 237, 0.42);
}

.gacha-pill.gacha-pool {
  background: linear-gradient(135deg, #cffafe, #67e8f9);
  color: #155e75;
  border: 1px solid rgba(8, 145, 178, 0.42);
}

.gacha-pools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gacha-pill.gacha-rebirth {
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  color: #1e3a8a;
  border: 1px solid rgba(56, 189, 248, 0.42);
}

.gacha-pill.gacha-exchange {
  background: linear-gradient(135deg, #fef3c7, #fcd34d);
  color: #713f12;
  border: 1px solid rgba(180, 83, 9, 0.38);
}

.gacha-pill.gacha-unknown {
  background: #f8fafc;
  color: #475569;
  border: 1px dashed #94a3b8;
}

.gacha-pill.gacha-normal {
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.character-gacha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.gacha-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--obsidian);
  letter-spacing: 0.06em;
}

.character-gacha .gacha-pill {
  font-size: 12px;
  padding: 3px 10px;
}

.character-gacha small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.tier-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tier-card-stats em {
  font-style: normal;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.strength-badge {
  background: linear-gradient(135deg, #ddd6fe, #a78bfa);
  color: #4c1d95;
  border: 1px solid rgba(124, 58, 237, 0.32);
}

.tier-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.tier-card-tags em {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: #075985;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}

.tier-card-tags small {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.1);
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
}

.tier-d {
  background: var(--soft);
  color: var(--muted);
}

@media (max-width: 720px) {
  .tier-controls {
    top: 60px;
  }
  .tier-filter-row {
    grid-template-columns: 1fr;
  }
  .tier-filter-tools {
    grid-template-columns: 1fr 1fr;
  }
  .tier-result-count {
    grid-column: 1 / -1;
  }
  .tier-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .tier-card {
    grid-template-columns: 56px 1fr;
    padding: 8px;
  }
  .tier-card-image {
    width: 56px;
    height: 56px;
  }
  .tier-card-name {
    font-size: 12.5px;
  }
}

/* ===== Pre-battle check flow ===== */
.check-flow {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-flow-step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(10, 18, 48, 0.06);
}

.check-flow-step::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  content: "";
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--neon-gold), var(--demon), var(--dragon));
}

.check-flow-step[data-step="1"]::before { background: linear-gradient(90deg, #ef4444, #fb923c); }
.check-flow-step[data-step="2"]::before { background: linear-gradient(90deg, var(--neon-gold), #b45309); }
.check-flow-step[data-step="3"]::before { background: linear-gradient(90deg, var(--demon), var(--demon-dark)); }
.check-flow-step[data-step="4"]::before { background: linear-gradient(90deg, #38bdf8, #1e40af); }

.check-flow-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.check-flow-no {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--obsidian);
  color: #fbbf24;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(251, 191, 36, 0.42);
}

.check-flow-head strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.check-flow-link {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--obsidian);
  font-size: 12px;
  font-weight: 800;
}

.check-flow-link:hover {
  background: var(--panel);
  color: #4338ca;
  border-color: rgba(67, 56, 202, 0.32);
}

.check-flow-step ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.check-flow-step ul li {
  margin: 0;
}

.check-flow-step label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.check-flow-step label:has(input:checked) {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.42);
  color: #064e3b;
  text-decoration: line-through;
  text-decoration-color: rgba(6, 78, 59, 0.5);
}

.check-flow-step label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.check-flow-tip {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7d6, #fde68a);
  color: #78350f;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(180, 83, 9, 0.32);
}

/* ===== Comments widget ===== */
.comments-widget {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(10, 18, 48, 0.06);
}

.comments-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.comments-summary {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.comments-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 18, 48, 0.94), rgba(29, 42, 90, 0.92));
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22);
}

.comments-form label {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(248, 250, 252, 0.78);
  text-transform: uppercase;
}

.comments-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
}

.comments-form input,
.comments-form select,
.comments-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(248, 250, 252, 0.08);
  color: #f8fafc;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.comments-form textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.6;
}

.comments-form input::placeholder,
.comments-form textarea::placeholder {
  color: rgba(248, 250, 252, 0.42);
}

.comments-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.comments-form-actions small {
  color: rgba(248, 250, 252, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.comments-form button[type="submit"] {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, #fde68a, #fbbf24 60%, #b45309);
  color: #1f1300;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}

.comments-form button[type="submit"]:hover {
  filter: brightness(1.05);
}

.comments-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comments-item {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-left: 4px solid var(--neon-gold);
}

.comments-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.comments-item-meta strong {
  color: var(--obsidian);
  font-weight: 900;
}

.comments-rating {
  color: #b45309;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.comments-item-meta time {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.comments-body {
  margin: 6px 0 8px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comments-actions {
  display: flex;
  justify-content: flex-end;
}

.comments-like {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.comments-like:hover {
  color: var(--ink);
  background: var(--panel);
}

@media (max-width: 520px) {
  .comments-form-row {
    grid-template-columns: 1fr;
  }
}

.news-spotlight-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 18, 48, 0.92);
  color: #fbbf24;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(251, 191, 36, 0.42);
}

.news-spotlight-more:hover {
  background: rgba(10, 18, 48, 1);
}

/* ===== News (articles) ===== */
.site-entry-section {
  padding-top: clamp(22px, 4vw, 38px);
  padding-bottom: clamp(18px, 3vw, 28px);
  background: var(--panel);
}

.site-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.site-entry-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(10, 18, 48, 0.06);
}

.site-entry-card.primary {
  background: linear-gradient(135deg, var(--obsidian), var(--obsidian-3));
  color: #f8fafc;
  border-color: rgba(251, 191, 36, 0.38);
}

.site-entry-card span {
  width: max-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.site-entry-card.primary span {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

.site-entry-card strong {
  font-size: 22px;
  line-height: 1.25;
}

.site-entry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-entry-card.primary p {
  color: rgba(248, 250, 252, 0.76);
}

.site-entry-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(10, 18, 48, 0.12);
}

.news-body {
  background:
    var(--board-grid),
    radial-gradient(at 14% 8%, rgba(56, 189, 248, 0.1), transparent 38%),
    radial-gradient(at 86% 12%, rgba(251, 191, 36, 0.08), transparent 42%),
    var(--soft);
}

.news-index-hero {
  padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 72px) clamp(20px, 4vw, 32px);
  color: #f8fafc;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(251, 191, 36, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(124, 58, 237, 0.22), transparent 55%),
    linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 55%, var(--obsidian-3) 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.36);
}

.news-index-hero .eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-index-hero h1 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
}

.news-index-hero .lead {
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
  font-size: 15px;
  line-height: 1.85;
  max-width: 780px;
}

.news-index-section {
  padding-top: clamp(24px, 4vw, 40px);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.news-card {
  display: grid;
  grid-template-rows: 180px auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(10, 18, 48, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: var(--ink);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(10, 18, 48, 0.18);
}

.news-eyecatch {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 56px);
}

.news-eyecatch::before {
  position: absolute;
  inset: -30% -30% auto auto;
  width: 220px;
  height: 220px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.32), transparent 70%);
  pointer-events: none;
}

.news-eyecatch-card {
  height: 100%;
  min-height: 180px;
}

.news-eyecatch-emoji {
  position: absolute;
  right: 10px;
  bottom: -28px;
  font-size: 180px;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(10, 18, 48, 0.32));
  pointer-events: none;
}

.news-eyecatch-default-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
  filter: saturate(1.08) contrast(1.04);
  pointer-events: none;
  z-index: 0;
}

.news-eyecatch[data-variant="media"]::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(10, 18, 48, 0.08), rgba(10, 18, 48, 0.66)),
    linear-gradient(90deg, rgba(10, 18, 48, 0.7), rgba(10, 18, 48, 0.08));
  z-index: 1;
  pointer-events: none;
}

.news-eyecatch-character {
  position: absolute;
  right: -2%;
  top: -8%;
  width: 72%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.18);
  filter: drop-shadow(0 14px 28px rgba(10, 18, 48, 0.52));
  pointer-events: none;
  z-index: 1;
}

.news-eyecatch[data-tone="god"] .news-eyecatch-character {
  border-color: rgba(31, 19, 0, 0.32);
  background: rgba(255, 255, 255, 0.5);
}

.news-eyecatch-character-caption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: grid;
  gap: 0;
  text-align: right;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(10, 18, 48, 0.5);
}

.news-eyecatch-character-caption em {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

.news-eyecatch-character-caption strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: white;
}

.news-eyecatch[data-tone="god"] .news-eyecatch-character-caption strong {
  color: #1f1300;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.news-eyecatch[data-tone="god"] .news-eyecatch-character-caption em {
  color: rgba(31, 19, 0, 0.78);
}

.news-eyecatch[data-has-character="true"] .news-eyecatch-tag {
  display: none;
}

.news-eyecatch-deck {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding: 16px;
  z-index: 1;
}

.news-eyecatch-deck-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(80%, 240px);
  margin-left: auto;
  padding: 6px;
  border-radius: 8px;
  background: rgba(10, 18, 48, 0.7);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.32);
}

.news-eyecatch-deck-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.news-eyecatch-deck-name {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 18, 48, 0.85);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  z-index: 2;
}

.news-eyecatch[data-variant="deck"] .news-eyecatch-tag,
.news-eyecatch[data-variant="deck"] .news-eyecatch-emoji {
  display: none;
}

.news-eyecatch[data-variant="media"] .news-eyecatch-brand,
.news-eyecatch[data-variant="media"] .news-eyecatch-category,
.news-eyecatch[data-variant="media"] .news-eyecatch-tag {
  z-index: 2;
  text-shadow: 0 2px 8px rgba(10, 18, 48, 0.58);
}

.news-eyecatch[data-variant="deck"][data-tone="god"] .news-eyecatch-category,
.news-eyecatch[data-variant="deck"][data-tone="god"] .news-eyecatch-brand {
  color: white;
  text-shadow: 0 2px 8px rgba(10, 18, 48, 0.55);
}

/* ===== Character Stat Card (article hero下) ===== */
.news-character-stat {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.5), rgba(248, 250, 252, 0.95)),
    var(--soft);
  box-shadow: 0 10px 24px rgba(10, 18, 48, 0.08);
}

.news-character-stat.element-god {
  border-color: rgba(245, 197, 66, 0.42);
  background: linear-gradient(135deg, rgba(255, 247, 214, 0.6), white);
}

.news-character-stat.element-demon {
  border-color: rgba(124, 58, 237, 0.32);
  background: linear-gradient(135deg, rgba(241, 231, 255, 0.6), white);
}

.news-character-stat.element-dragon {
  border-color: rgba(239, 68, 68, 0.32);
  background: linear-gradient(135deg, rgba(255, 228, 230, 0.6), white);
}

.news-character-stat-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--obsidian), var(--obsidian-3));
}

.news-character-stat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.news-character-stat-body {
  display: grid;
  gap: 8px;
  align-content: start;
}

.news-character-stat-body h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  border-left: none;
  padding-left: 0;
}

.news-character-stat-body h2 strong {
  font-weight: inherit;
  color: inherit;
  background: none;
  box-shadow: none;
}

.news-character-stat-body .eyebrow {
  margin: 0;
  padding: 3px 10px;
  display: inline-block;
  border-radius: 999px;
  background: var(--obsidian);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-character-stat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.news-character-stat-meta span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--obsidian);
}

.news-character-stat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.news-character-stat-tags em {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #92400e;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.news-character-stat-skills {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
}

.news-character-stat-skills > div {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.news-character-stat-skills dt {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 900;
  color: var(--obsidian);
}

.news-character-stat-skills dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}

.news-character-stat-link a {
  color: #4338ca;
  font-weight: 800;
  font-size: 13px;
}

@media (max-width: 520px) {
  .news-character-stat {
    grid-template-columns: 1fr;
  }
  .news-character-stat-image {
    max-width: 220px;
    margin: 0 auto;
  }
  .news-eyecatch-deck-grid {
    width: 70%;
  }
}

.news-eyecatch-brand {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.news-eyecatch-category {
  position: absolute;
  top: 38px;
  left: 18px;
  font-size: 24px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 16px rgba(10, 18, 48, 0.55);
}

.news-eyecatch-tag {
  position: absolute;
  bottom: 16px;
  left: 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(10, 18, 48, 0.4);
}

.news-eyecatch[data-tone="god"] .news-eyecatch-category {
  color: #1f1300;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 16px rgba(0, 0, 0, 0.18);
}

.news-eyecatch[data-tone="god"] .news-eyecatch-brand {
  color: rgba(31, 19, 0, 0.9);
}

.news-card-body {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.news-card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(10, 18, 48, 0.92);
  color: #fbbf24;
}

.news-card-meta time {
  color: var(--muted);
}

.news-card strong {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.news-card-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.news-card-tags em {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.news-focus-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, calc(100% - 36px));
  margin: -24px auto 0;
}

.news-focus-panel article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(10, 18, 48, 0.12);
}

.news-focus-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.news-focus-panel strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.news-focus-panel a {
  display: grid;
  gap: 4px;
  color: inherit;
}

.news-focus-panel article > span + span,
.news-focus-panel a span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.55;
}

.news-article {
  display: grid;
  gap: 0;
}

.news-article-hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 48px);
  color: #f8fafc;
  background-color: var(--obsidian);
  border-bottom: 1px solid rgba(251, 191, 36, 0.36);
  isolation: isolate;
}

.news-article-hero .news-eyecatch-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* キャラ画像の上に暗いスクリムを重ね、本文テキストの可読性を確保 */
.news-article-hero .news-eyecatch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--obsidian) 42%, rgba(9, 12, 18, 0.55) 68%, rgba(9, 12, 18, 0.15) 100%);
  pointer-events: none;
}

.news-article-hero .news-eyecatch-hero .news-eyecatch-emoji {
  right: -20px;
  bottom: -60px;
  font-size: 360px;
  opacity: 0.5;
}

.news-article-hero .news-eyecatch-hero .news-eyecatch-character {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 36%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.96;
  filter: drop-shadow(0 18px 36px rgba(10, 18, 48, 0.42));
  z-index: -1; /* スクリム(::after)より背面へ。テキストとの重なりを防ぐ */
}

/* モバイル: ヒーローの装飾画像レイヤー(キャラ円形/デッキ駒グリッド)が本文と重なって
   読めないため、装飾レイヤーごと非表示にしてテキストを最優先（駒/デッキは下の欄に表示）。 */
@media (max-width: 720px) {
  .news-article-hero .news-eyecatch-hero { display: none; }
}

.news-article-hero .news-eyecatch-hero .news-eyecatch-character-caption {
  display: none;
}

.news-article-hero .news-eyecatch-hero .news-eyecatch-brand,
.news-article-hero .news-eyecatch-hero .news-eyecatch-category,
.news-article-hero .news-eyecatch-hero .news-eyecatch-tag {
  display: none;
}

.news-article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.news-article-meta span {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.news-article-meta time {
  color: rgba(248, 250, 252, 0.78);
}

.news-article-hero h1 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 24px rgba(10, 18, 48, 0.7);
  overflow-wrap: anywhere;
}

.news-article-summary {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(248, 250, 252, 0.92);
  max-width: 720px;
}

.news-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-article-tags em {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.1);
  border: 1px solid rgba(248, 250, 252, 0.32);
  color: #f8fafc;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.news-article-body {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 5vw, 56px) clamp(18px, 5vw, 72px);
  max-width: 880px;
}

.news-article-body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink);
}

.news-section h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  border-left: 6px solid var(--neon-gold);
}

.news-section h2 .news-flag {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(127, 29, 29, 0.5), 0 0 16px rgba(239, 68, 68, 0.3);
}

.news-section h2 .news-flag.commentary {
  background: linear-gradient(135deg, var(--obsidian-3), var(--obsidian));
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.42), 0 0 14px rgba(251, 191, 36, 0.22);
  color: #fbbf24;
}

.news-section h2 .news-flag.link {
  background: linear-gradient(135deg, #38bdf8, #1e40af);
}

.news-section-quotes {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.6), rgba(248, 250, 252, 0.2));
  border-radius: 12px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
}

.news-quote-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-quote {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-left: 4px solid var(--neon-gold, #f5c542);
}
.news-quote-aa {
  flex: none;
  font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", monospace;
  font-size: 15px;
  line-height: 1.3;
  color: var(--neon-cyan, #5fe3c0);
  background: rgba(95, 227, 192, 0.08);
  border: 1px solid rgba(95, 227, 192, 0.25);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 64px;
  text-align: center;
  white-space: nowrap;
}
.news-quote-main { flex: 1; min-width: 0; }
.news-quote-aa + .news-quote-main blockquote { margin: 2px 0 0; }

/* 焦点パネル: 語られる駒/デッキを画像付きで明示 */
.news-focus-panel article.has-icon { display: flex; gap: 12px; align-items: center; }
.news-focus-panel .focus-icon {
  width: 52px; height: 52px; border-radius: 10px; flex: none;
  object-fit: cover; background: #0a0e16; border: 1px solid var(--line-2, rgba(255,255,255,.14));
}
.news-focus-panel .focus-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.news-quote-tweet {
  padding: 0;
  border: none;
  border-left: none;
  background: transparent;
}

.news-quote-tweet .twitter-tweet {
  margin: 0 !important;
}

.news-quote-tweet blockquote.twitter-tweet:not([class*="twitter-tweet-rendered"]) {
  display: block;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #cfd9e0;
  background: var(--panel);
  box-shadow: 0 6px 16px rgba(15, 20, 25, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.news-quote-tweet blockquote.twitter-tweet:not([class*="twitter-tweet-rendered"])::before {
  content: "𝕏 X (Twitter)";
  display: block;
  margin-bottom: 8px;
  color: #536471;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.news-quote-tweet blockquote.twitter-tweet:not([class*="twitter-tweet-rendered"]) p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #0f1419;
}

.news-quote-tweet blockquote.twitter-tweet:not([class*="twitter-tweet-rendered"]) a {
  color: #1d9bf0;
  font-weight: 600;
  text-decoration: none;
}

.news-quote-meta {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.news-quote-meta strong {
  color: var(--obsidian);
  font-weight: 900;
}

.news-quote-meta span {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 11px;
  font-weight: 700;
}

.news-quote blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 600;
}

.news-official-frames {
  display: grid;
  gap: 16px;
}

.news-official-frame-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-official-frame-card {
  overflow: hidden;
  border: 1px solid rgba(24, 34, 54, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.news-official-frame-card > a {
  display: block;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.news-official-frame-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-official-frame-card > div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.news-official-frame-card strong {
  color: var(--obsidian);
  font-size: 16px;
}

.news-official-frame-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.news-official-frame-meta {
  font-weight: 900;
  color: var(--blue) !important;
}

.news-official-frame-skill {
  color: var(--obsidian) !important;
}

.news-official-frame-skill strong {
  display: inline;
  margin-right: 4px;
  color: var(--obsidian);
  font-size: 13px;
}

@media (max-width: 760px) {
  .news-official-frame-grid {
    grid-template-columns: 1fr;
  }
}

.news-section-commentary {
  padding: 18px 20px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.06), rgba(248, 250, 252, 0.02)),
    linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 100%);
  color: #f8fafc;
  border: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18) inset;
}

.news-section-commentary h2 {
  color: #fbbf24;
  border-left-color: #fbbf24;
}

.news-section-commentary p {
  color: rgba(248, 250, 252, 0.92);
}

.news-related h2 {
  color: var(--ink);
  border-left-color: #38bdf8;
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.news-related-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(10, 18, 48, 0.06);
  transition: transform 0.15s ease;
}

.news-related-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(10, 18, 48, 0.16);
}

.news-related-card strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

.news-related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.news-related-card span {
  color: #4338ca;
  font-size: 12px;
  font-weight: 800;
}

.news-sources {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.news-sources h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  border-left: none;
  padding-left: 0;
}

.news-sources ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.news-sources a {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: underline;
  font-size: 13px;
}

.news-article-footer {
  padding: 12px clamp(18px, 5vw, 72px) 60px;
}

.news-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 18, 48, 0.92);
  color: #fbbf24;
  font-weight: 800;
  border: 1px solid rgba(251, 191, 36, 0.42);
}

@media (max-width: 520px) {
  .news-card {
    grid-template-rows: 140px auto;
  }
  .news-card-body {
    padding: 14px 14px 16px;
  }
  .news-article-hero h1 {
    font-size: 20px;
    line-height: 1.32;
  }
  .news-article-summary {
    font-size: 14px;
  }
  .news-section h2 {
    font-size: 18px;
  }
  .news-section h2 .news-flag {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 8px;
    font-size: 11px;
  }
  .news-quote {
    padding: 9px 12px 11px;
  }
}

/* === 動画で紹介されたデッキ (video-decks.html) === */
.video-deck-arche {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #0a1230;
  background: linear-gradient(180deg, #fde68a, #f5c542);
  box-shadow: var(--gold-glow);
}
.official-video-page-thumb { position: relative; display: block; }
.video-deck-code {
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--soft);
}
.video-deck-code-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  margin-bottom: 6px;
}
.video-deck-code code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  padding: 8px;
}
.video-deck-copy {
  margin-top: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  color: #0a1230;
  background: linear-gradient(180deg, #fde68a, #f5c542);
  cursor: pointer;
  box-shadow: var(--gold-glow);
}
.video-deck-copy:hover { filter: brightness(1.08); }
.video-deck-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.video-deck-watch { margin-top: 6px; display: inline-flex; }

/* === 今強いデッキ: リーダー駒を大きく表示。クリックで基本構成ページへ === */
.meta-deck-leader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0.05));
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.meta-deck-leader:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(251, 191, 36, 0.08));
  box-shadow: var(--gold-glow);
}
.meta-deck-leader-img {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(251, 191, 36, 0.7);
  background: radial-gradient(circle at 50% 30%, rgba(251,191,36,0.25), rgba(0,0,0,0.4));
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}
.meta-deck-leader-text { display: grid; gap: 1px; line-height: 1.25; min-width: 0; }
.meta-deck-leader-text em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--neon-gold);
}
.meta-deck-leader-text strong {
  font-size: 16px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meta-deck-leader-go { font-size: 11px; color: var(--neon-cyan); font-weight: 700; }

/* === デッキ構成: リーダーを先頭に強調表示 === */
.recipe-leader-row {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
}
.recipe-leader-row .recipe-rarity {
  color: var(--neon-gold);
  font-weight: 900;
  letter-spacing: 0.06em;
}
.recipe-leader-row .recipe-piece {
  box-shadow: var(--gold-glow);
  border-radius: 10px;
}
.recipe-leader-row .recipe-piece img {
  border: 2px solid rgba(251, 191, 36, 0.7);
}

/* === 進化形態バッジ(闘化/進化/超化) === */
.recipe-piece { position: relative; }
.evo-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.evo-combat { background: linear-gradient(135deg, #fb7185, #b42318); }   /* 闘化=赤 */
.evo-normal { background: linear-gradient(135deg, #38bdf8, #1d4ed8); }   /* 進化=青 */
.evo-hyper  { background: linear-gradient(135deg, #fde68a, #b7791f); color: #2a1a00; } /* 超化=金 */

/* 記事commentary 端的化 */
.commentary-lead { font-weight: 600; }
.news-section-commentary .commentary-more { margin-top: 8px; }
.news-section-commentary .commentary-more summary { cursor: pointer; color: var(--neon-cyan, #5fe3c0); font-size: 13px; font-weight: 700; }
.news-section-commentary .commentary-more[open] summary { margin-bottom: 8px; }
