@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #080b13;
  --bg-deep: #05070d;
  --surface: rgba(17, 23, 38, .9);
  --surface-strong: #141b2d;
  --surface-soft: rgba(27, 35, 55, .68);
  --line: rgba(163, 180, 211, .18);
  --line-strong: rgba(97, 229, 255, .38);
  --text: #f2f6ff;
  --muted: #9aa9c3;
  --quiet: #6d7d9c;
  --cyan: #61e5ff;
  --blue: #5b84ff;
  --violet: #9f8dff;
  --pink: #ff6eb4;
  --amber: #ffc86b;
  --green: #83f0bd;
  --red: #ff818e;
  --shadow: 0 22px 70px rgba(0, 0, 0, .32);
  --rail: 246px;
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 86% -8%, rgba(91, 132, 255, .19), transparent 34rem),
    radial-gradient(circle at 12% 14%, rgba(255, 110, 180, .08), transparent 28rem),
    linear-gradient(135deg, rgba(97, 229, 255, .025) 25%, transparent 25%) 0 0 / 5px 5px,
    var(--bg);
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .16;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.018) 4px 5px);
  mix-blend-mode: screen;
}

img { max-width: 100%; display: block; }

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

button, input, select { font: inherit; }

button { color: inherit; }

.app-shell { min-height: 100vh; }

.app-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--rail);
  padding: 25px 17px 20px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(7, 10, 18, .91);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 25px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  clip-path: polygon(0 0, 74% 0, 100% 27%, 100% 100%, 25% 100%, 0 73%);
  color: #071019;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.06em;
  background: linear-gradient(135deg, var(--cyan), #b7f6ff 42%, var(--blue));
  box-shadow: 0 0 28px rgba(97, 229, 255, .24);
}

.brand-mark::after {
  position: absolute;
  inset: 4px;
  z-index: -1;
  content: "";
  background: #09111e;
  clip-path: inherit;
}

.brand-copy { display: grid; gap: 0; }
.brand-copy strong { font-size: 15px; letter-spacing: .08em; }
.brand-copy small { color: var(--quiet); font-size: 10px; letter-spacing: .14em; }

.rail-caption {
  padding: 13px 12px 7px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.rail-nav { display: grid; gap: 4px; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 12px;
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: .2s ease;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: linear-gradient(100deg, rgba(97, 229, 255, .14), rgba(91, 132, 255, .06));
}

.nav-link.is-active::before {
  position: absolute;
  inset: 8px auto 8px -1px;
  width: 3px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}

.nav-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  border: 1px solid rgba(97, 229, 255, .35);
  background: rgba(97, 229, 255, .07);
}

.nav-link span:last-child { font-size: 13px; font-weight: 800; }

.rail-bottom { margin-top: auto; }

.rail-status {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(28, 40, 64, .78), rgba(12, 16, 27, .7));
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-label { color: var(--quiet); font-size: 10px; letter-spacing: .12em; }
.status-value { color: var(--green); font-size: 11px; font-weight: 900; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.app-main { min-height: 100vh; margin-left: var(--rail); padding: 32px clamp(22px, 4vw, 60px) 70px; }
.main-inner { width: min(1440px, 100%); margin: 0 auto; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 27px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 2px; content: ""; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.page-title { margin: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.13; letter-spacing: -.045em; }
.page-lead { max-width: 710px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.head-meta { display: grid; justify-items: end; gap: 8px; color: var(--quiet); font-size: 11px; white-space: nowrap; }

.signal-pill, .confidence, .tiny-label, .rank-chip, .element-chip, .role-chip, .guide-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.signal-pill { gap: 8px; padding: 7px 11px; color: var(--green); border-color: rgba(131, 240, 189, .3); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.signal-pill::before { width: 6px; height: 6px; border-radius: 50%; content: ""; background: currentColor; box-shadow: 0 0 11px currentColor; }
.tiny-label { padding: 4px 7px; color: var(--quiet); border-radius: 3px; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.guide-status { padding: 4px 7px; border-radius: 3px; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.guide-status-verified { color: #0b0f1a; background: var(--green); border-color: var(--green); }
.guide-status-provisional { color: var(--amber); border-color: rgba(255, 190, 80, .45); }
.guide-status-generic { color: var(--quiet); }
.guide-status-line { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.guide-status-line small { color: var(--quiet); font-size: 11px; }

.panel, .hero, .metric, .preset-card, .build-card, .source-card, .banner-group, .candidate-card, .notice-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(22, 30, 49, .92), rgba(11, 15, 26, .92));
  box-shadow: var(--shadow);
}

.panel, .hero, .banner-group, .candidate-card, .notice-card { clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px)); }
.panel { padding: 21px; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-title { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.panel-kicker { margin: 3px 0 0; color: var(--quiet); font-size: 11px; }
.text-link { color: var(--cyan); font-size: 11px; font-weight: 800; }
.text-link:hover { text-decoration: underline; }

.home-hero { position: relative; display: grid; min-height: 350px; grid-template-columns: 1.2fr .8fr; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; display: flex; justify-content: center; padding: clamp(24px, 5vw, 63px); flex-direction: column; }
.hero-kicker { color: var(--amber); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.hero-title { max-width: 730px; margin: 11px 0 0; font-size: clamp(28px, 5vw, 66px); line-height: .98; letter-spacing: -.07em; }
.hero-title em { color: var(--cyan); font-style: normal; text-shadow: 0 0 30px rgba(97,229,255,.32); white-space: nowrap; }
.hero-copy p { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 8px 15px; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 12px; font-weight: 900; background: rgba(97,229,255,.1); transition: .2s ease; }
.button:hover { transform: translateY(-2px); color: #06101b; background: var(--cyan); box-shadow: 0 0 24px rgba(97,229,255,.28); }
.button.secondary { color: var(--muted); border-color: var(--line); background: rgba(255,255,255,.04); }
.button.secondary:hover { color: var(--text); background: rgba(255,255,255,.1); box-shadow: none; }
.hero-art { position: relative; min-height: 350px; overflow: hidden; background: radial-gradient(circle at 55% 42%, rgba(91,132,255,.43), transparent 17rem); }
.hero-art::before, .hero-art::after { position: absolute; content: ""; pointer-events: none; }
.hero-art::before { inset: 10% 4% 7%; border: 1px solid rgba(97,229,255,.22); clip-path: polygon(14% 0, 100% 0, 100% 84%, 86% 100%, 0 100%, 0 16%); }
.hero-art::after { inset: 0; background: linear-gradient(90deg, rgba(16,22,37,1), transparent 30%), linear-gradient(0deg, rgba(8,11,19,.8), transparent 45%); }
.hero-art img { position: absolute; right: -5%; bottom: -18%; width: min(560px, 115%); max-height: 124%; object-fit: contain; object-position: bottom right; filter: saturate(1.12) drop-shadow(0 0 32px rgba(97,229,255,.28)); }
.hero-art-tag { position: absolute; right: 16%; top: 17%; z-index: 2; padding: 8px 10px; color: var(--cyan); border: 1px solid rgba(97,229,255,.4); background: rgba(7,11,20,.7); font-size: 10px; font-weight: 900; letter-spacing: .1em; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.metric { position: relative; min-height: 108px; padding: 16px; overflow: hidden; }
.metric::after { position: absolute; right: -24px; bottom: -38px; width: 110px; height: 110px; border: 1px solid rgba(97,229,255,.18); border-radius: 50%; content: ""; }
.metric-label { color: var(--quiet); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.metric-value { margin-top: 5px; font-size: 29px; font-weight: 950; letter-spacing: -.06em; }
.metric-note { color: var(--muted); font-size: 10px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); gap: 14px; margin-top: 14px; }
.stack { display: grid; gap: 14px; }
.current-banner { position: relative; min-height: 210px; overflow: hidden; padding: 21px; border: 1px solid var(--line-strong); background: linear-gradient(110deg, rgba(25, 37, 66, .95), rgba(17, 18, 37, .91)); }
.current-banner::after { position: absolute; inset: 0; pointer-events: none; content: ""; background: linear-gradient(90deg, transparent 35%, rgba(97,229,255,.05)), repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,.025) 29px 30px); }
.current-banner > * { position: relative; z-index: 1; }
.banner-status { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.banner-period { margin-top: 8px; color: var(--muted); font-size: 11px; }
.banner-title { margin: 14px 0 0; font-size: 23px; }
.banner-items { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.mini-item { padding: 5px 9px; border-left: 2px solid var(--cyan); color: var(--text); font-size: 11px; font-weight: 800; background: rgba(97,229,255,.08); }

.quick-links { display: grid; gap: 8px; }
.quick-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: .18s ease; }
.quick-link:hover { border-color: var(--line-strong); background: rgba(97,229,255,.08); }
.quick-link-main { display: grid; gap: 2px; }
.quick-link-title { font-size: 12px; font-weight: 900; }
.quick-link-note { color: var(--quiet); font-size: 10px; }
.quick-arrow { color: var(--cyan); font-size: 18px; }

.section-gap { margin-top: 14px; }
.callout { display: flex; align-items: start; gap: 12px; padding: 13px 15px; color: var(--muted); border: 1px solid rgba(255,200,107,.28); background: rgba(255,200,107,.06); font-size: 11px; }
.callout strong { color: var(--amber); }

.gacha-top { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; }
.gacha-summary { display: grid; gap: 11px; }
.gacha-summary .panel-title { font-size: 22px; }
.summary-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.summary-cell { padding: 10px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.summary-cell span { display: block; color: var(--quiet); font-size: 10px; }
.summary-cell strong { display: block; margin-top: 3px; font-size: 16px; }
.gacha-side-note { display: grid; align-content: center; min-height: 150px; padding: 19px; border: 1px solid rgba(159,141,255,.33); background: linear-gradient(145deg, rgba(80,67,155,.22), rgba(20,20,41,.72)); }
.gacha-side-note strong { font-size: 15px; }
.gacha-side-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }

.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filter-button { padding: 7px 11px; cursor: pointer; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,.035); font-size: 11px; font-weight: 800; }
.filter-button:hover, .filter-button.is-active { color: var(--text); border-color: var(--cyan); background: rgba(97,229,255,.12); }

.timeline-panel { overflow: hidden; }
.timeline-scroll { overflow-x: auto; padding-bottom: 5px; }
.timeline { min-width: 880px; }
.timeline-scale { display: grid; grid-template-columns: repeat(6, 1fr); margin-left: 90px; border-bottom: 1px solid var(--line); }
.scale-cell { padding: 0 7px 8px; color: var(--quiet); border-left: 1px solid rgba(163,180,211,.1); font-size: 10px; font-weight: 900; }
.timeline-row { display: grid; grid-template-columns: 90px 1fr; min-height: 75px; }
.timeline-row-label { display: flex; align-items: center; padding: 9px 13px 9px 0; color: var(--muted); font-size: 11px; font-weight: 900; }
.timeline-track { position: relative; display: flex; align-items: center; min-width: 0; border-left: 1px solid rgba(163,180,211,.1); background: repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 1px), rgba(163,180,211,.09) calc(16.666% - 1px) 16.666%); }
.timeline-track::before { position: absolute; inset: 50% 0 auto; height: 1px; content: ""; background: rgba(163,180,211,.12); }
.timeline-bar { position: absolute; z-index: 1; top: 22px; height: 31px; min-width: 80px; padding: 0 11px; overflow: hidden; color: #06101b; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); font-size: 10px; font-weight: 950; line-height: 31px; white-space: nowrap; text-overflow: ellipsis; box-shadow: 0 0 20px rgba(97,229,255,.18); }
.timeline-bar.official { background: linear-gradient(90deg, var(--cyan), #9df2ff); }
.timeline-bar.forecast { color: #120c25; background: linear-gradient(90deg, var(--violet), #d4c8ff); }
.timeline-bar.leak { color: #25120a; background: linear-gradient(90deg, var(--amber), #ffe9a7); }
.timeline-now { position: absolute; z-index: 3; top: 0; bottom: 0; width: 1px; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.timeline-now span { position: absolute; top: -2px; left: 4px; color: var(--pink); font-size: 9px; font-weight: 900; white-space: nowrap; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 13px; margin: 15px 0 0 90px; color: var(--muted); font-size: 10px; }
.legend-dot { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot::before { width: 9px; height: 9px; content: ""; background: var(--cyan); }
.legend-dot.forecast::before { background: var(--violet); }
.legend-dot.leak::before { background: var(--amber); }

.banner-groups { display: grid; gap: 12px; }
.banner-group { padding: 19px; }
.group-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.group-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.group-version { color: var(--cyan); font-size: 18px; font-weight: 950; }
.group-phase { color: var(--muted); font-size: 12px; font-weight: 800; }
.group-period { color: var(--muted); font-size: 11px; text-align: right; }
.group-period strong { display: block; color: var(--text); font-size: 12px; }
.confidence { padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.confidence.official { color: var(--green); border-color: rgba(131,240,189,.35); background: rgba(131,240,189,.08); }
.confidence.forecast { color: var(--violet); border-color: rgba(159,141,255,.35); background: rgba(159,141,255,.1); }
.confidence.leak { color: var(--amber); border-color: rgba(255,200,107,.38); background: rgba(255,200,107,.08); }
.group-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr); gap: 17px; margin-top: 17px; }
.subheading { margin: 0 0 9px; color: var(--quiet); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.banner-item-list { display: grid; gap: 7px; }
.banner-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 9px; border: 1px solid var(--line); background: rgba(255,255,255,.028); }
.item-thumb { width: 38px; height: 38px; overflow: hidden; border: 1px solid rgba(97,229,255,.28); background: #0b1020; object-fit: cover; }
.item-thumb.placeholder { display: grid; place-items: center; color: var(--quiet); font-size: 12px; }
.item-name { font-size: 12px; font-weight: 900; }
.item-meta { margin-top: 1px; color: var(--quiet); font-size: 10px; }
.item-type { padding: 3px 6px; color: var(--cyan); border: 1px solid rgba(97,229,255,.25); font-size: 9px; font-weight: 900; white-space: nowrap; }
.item-type.rerun { color: var(--pink); border-color: rgba(255,110,180,.27); }
.group-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.group-note strong { color: var(--amber); }
.candidate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.candidate-card { min-height: 114px; padding: 13px; }
.candidate-name { font-size: 13px; font-weight: 900; }
.candidate-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.candidate-card .confidence { margin-top: 9px; }

.build-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, .6fr)); gap: 8px; }
.field { min-width: 0; padding: 10px 12px; color: var(--text); outline: none; border: 1px solid var(--line); border-radius: 2px; background: #0d1322; font-size: 12px; }
.field::placeholder { color: var(--quiet); }
.field:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(97,229,255,.08); }
.preset-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.preset-card { min-height: 104px; padding: 12px; cursor: pointer; transition: .2s ease; }
.preset-card:hover, .preset-card.is-selected { border-color: var(--cyan); background: linear-gradient(145deg, rgba(28, 60, 83, .86), rgba(13, 20, 36, .95)); }
.preset-card strong { display: block; font-size: 12px; }
.preset-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.preset-bar { width: 34px; height: 3px; margin-bottom: 11px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.preset-card:nth-child(2) .preset-bar { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.preset-card:nth-child(3) .preset-bar { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.preset-card:nth-child(4) .preset-bar { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.preset-card:nth-child(5) .preset-bar { background: var(--green); box-shadow: 0 0 10px var(--green); }
.preset-card:nth-child(6) .preset-bar { background: #f2f6ff; box-shadow: 0 0 10px #f2f6ff; }

.build-count { color: var(--muted); font-size: 11px; }
.build-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.build-card { position: relative; display: grid; min-height: 360px; grid-template-rows: 146px 1fr; overflow: hidden; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.build-card { width: 100%; padding: 0; color: inherit; text-align: left; font: inherit; }
.build-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 22px 50px rgba(0,0,0,.42), 0 0 24px rgba(97,229,255,.09); }
.character-art { position: relative; overflow: hidden; background: radial-gradient(circle at 48% 25%, rgba(97,229,255,.22), transparent 55%), #0c1220; }
.character-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(7,10,18,.75), transparent 70%); pointer-events: none; }
.character-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.card-rank { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 3px 7px; color: #19100a; background: var(--amber); font-size: 10px; font-weight: 950; }
.card-index { position: absolute; z-index: 1; right: 10px; bottom: 9px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 900; }
.build-body { display: grid; align-content: start; gap: 8px; padding: 13px; }
.build-name-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.build-name { font-size: 15px; font-weight: 950; letter-spacing: -.03em; }
.build-faction { margin-top: 1px; color: var(--quiet); font-size: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.rank-chip, .element-chip, .role-chip { padding: 3px 6px; border-radius: 2px; color: var(--muted); font-size: 9px; font-weight: 900; }
.rank-chip { color: var(--amber); border-color: rgba(255,200,107,.3); }
.element-chip { color: var(--cyan); border-color: rgba(97,229,255,.3); }
.role-chip { color: var(--violet); border-color: rgba(159,141,255,.3); }
.card-detail { display: grid; gap: 4px; margin-top: 2px; }
.detail-line { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.detail-line strong { color: var(--text); font-size: 10px; text-align: right; }
.build-open { margin-top: auto; padding-top: 7px; color: var(--cyan); border-top: 1px solid var(--line); font-size: 10px; font-weight: 900; }

.build-dialog { width: min(980px, calc(100% - 22px)); max-height: min(850px, calc(100vh - 30px)); padding: 0; color: var(--text); overflow: hidden; border: 1px solid var(--line-strong); background: #0b101d; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.build-dialog::backdrop { background: rgba(1,3,8,.76); backdrop-filter: blur(7px); }
.dialog-head { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: stretch; border-bottom: 1px solid var(--line); }
.dialog-portrait { width: 116px; height: 126px; object-fit: cover; object-position: center 20%; background: #111a2c; }
.dialog-heading { padding: 20px; }
.dialog-heading .build-name { font-size: 24px; }
.dialog-close { align-self: start; margin: 12px; padding: 7px 11px; cursor: pointer; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.dialog-close:hover { color: var(--text); border-color: var(--cyan); }
.dialog-content { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; max-height: calc(100vh - 185px); padding: 17px; overflow: auto; }
.detail-panel { padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.detail-panel.full { grid-column: 1 / -1; }
.detail-panel h3 { margin: 0 0 10px; color: var(--cyan); font-size: 12px; letter-spacing: .09em; }
.detail-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-panel ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.detail-panel li { padding: 8px 10px; color: var(--muted); border-left: 2px solid var(--line-strong); background: rgba(255,255,255,.03); font-size: 11px; }
.detail-panel li strong { color: var(--text); }
.team-list { display: grid; gap: 8px; }
.team-card { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 9px; border: 1px solid var(--line); background: rgba(97,229,255,.045); }
.team-number { display: grid; width: 22px; height: 22px; place-items: center; color: #06101b; background: var(--cyan); font-size: 10px; font-weight: 950; }
.team-card strong { font-size: 11px; }
.team-card p { margin-top: 2px; font-size: 10px; }
.note-list { display: grid; gap: 7px; }
.note-list div { color: var(--muted); font-size: 11px; }
.note-list strong { color: var(--amber); }

.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.source-card { min-height: 190px; padding: 17px; }
.source-kind { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.source-card h3 { margin: 8px 0 0; font-size: 15px; }
.source-card p { min-height: 53px; margin: 7px 0 13px; color: var(--muted); font-size: 11px; }
.source-card a { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); font-size: 10px; font-weight: 900; }
.source-card a::after { content: "↗"; font-size: 13px; }
.source-note { margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.source-group { margin-top: 22px; }
.source-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 17px; }
.source-group h2::before { width: 4px; height: 18px; content: ""; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.source-group .source-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

.empty-state { padding: 38px 20px; color: var(--muted); border: 1px dashed var(--line-strong); text-align: center; font-size: 12px; }
.muted { color: var(--muted); }
.accent { color: var(--cyan); }
.pink { color: var(--pink); }
.amber { color: var(--amber); }
.green { color: var(--green); }

@media (max-width: 1200px) {
  .build-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .preset-grid { grid-template-columns: repeat(3, 1fr); }
  .source-grid, .source-group .source-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 920px) {
  :root { --rail: 0px; }
  .app-rail { position: sticky; width: 100%; height: auto; padding: 12px 16px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy small, .rail-caption, .rail-bottom { display: none; }
  .rail-nav { display: flex; margin-left: auto; gap: 3px; }
  .nav-link { min-height: 38px; padding: 5px 8px; }
  .nav-link span:last-child { font-size: 11px; }
  .nav-icon { width: 22px; height: 22px; flex-basis: 22px; font-size: 11px; }
  .app-main { padding: 27px 18px 55px; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-art { position: absolute; inset: auto 0 0 45%; height: 65%; min-height: 0; opacity: .58; }
  .hero-copy { min-height: 350px; }
  .home-grid, .gacha-top { grid-template-columns: 1fr; }
  .build-toolbar { grid-template-columns: repeat(2, 1fr); }
  .build-toolbar .field:first-child { grid-column: 1 / -1; }
  .group-grid { grid-template-columns: 1fr; }
  .candidate-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .app-rail { align-items: flex-start; flex-wrap: wrap; }
  .rail-nav { width: 100%; margin-top: 9px; margin-left: 0; overflow-x: auto; }
  .nav-link { flex: 1 0 auto; justify-content: center; }
  .nav-icon { display: none; }
  .app-main { padding: 22px 12px 45px; }
  .page-head { display: block; margin-bottom: 19px; }
  .head-meta { display: flex; align-items: start; justify-content: space-between; margin-top: 14px; }
  .page-title { font-size: 30px; }
  .page-lead { font-size: 12px; }
  .panel { padding: 15px; }
  .hero-copy { min-height: 390px; padding: 25px 19px; }
  .hero-title { font-size: 43px; }
  .hero-art { inset: auto 0 0 25%; height: 58%; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .metric { min-height: 93px; padding: 12px; }
  .metric-value { font-size: 23px; }
  .summary-list { grid-template-columns: 1fr; }
  .timeline-scale { margin-left: 76px; }
  .timeline-row { grid-template-columns: 76px 1fr; }
  .timeline-legend { margin-left: 76px; }
  .group-head { display: block; }
  .group-period { margin-top: 9px; text-align: left; }
  .banner-item { grid-template-columns: 34px minmax(0,1fr); }
  .item-thumb { width: 34px; height: 34px; }
  .item-type { grid-column: 2; width: fit-content; }
  .candidate-grid { grid-template-columns: 1fr; }
  .build-toolbar { grid-template-columns: 1fr; }
  .build-toolbar .field:first-child { grid-column: auto; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .build-card { min-height: 318px; grid-template-rows: 113px 1fr; }
  .build-body { padding: 10px; }
  .build-name { font-size: 13px; }
  .detail-line { display: block; }
  .detail-line strong { display: block; margin-top: 1px; text-align: left; }
  .dialog-head { grid-template-columns: 78px minmax(0,1fr) auto; }
  .dialog-portrait { width: 78px; height: 96px; }
  .dialog-heading { padding: 13px; }
  .dialog-heading .build-name { font-size: 18px; }
  .dialog-content { grid-template-columns: 1fr; padding: 11px; }
  .detail-panel.full { grid-column: auto; }
  .source-grid, .source-group .source-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* 公式サイトのアートディレクションに寄せた、単一テーマのUIリファイン */
:root {
  color-scheme: light;
  --bg: #f1f1ef;
  --bg-deep: #dedfdd;
  --surface: #ffffff;
  --surface-strong: #111111;
  --surface-soft: #e8e9e7;
  --line: #c7c9c7;
  --line-strong: #111111;
  --text: #111111;
  --muted: #4f5152;
  --quiet: #777a7b;
  --cyan: #dfff00;
  --blue: #c9e600;
  --violet: #d9d6cf;
  --pink: #eb3032;
  --amber: #f08c22;
  --green: #3a8b4a;
  --red: #c62126;
  --shadow: 0 18px 40px rgba(18, 18, 18, .12);
  --rail: 0px;
}

html { min-width: 320px; overflow-x: clip; background: var(--bg); }

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,255,255,.64), transparent 42%),
    repeating-linear-gradient(135deg, rgba(16,16,16,.035) 0 1px, transparent 1px 9px),
    var(--bg);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: auto auto -7rem -4rem;
  z-index: 0;
  pointer-events: none;
  content: "ZZZ";
  color: rgba(30, 30, 30, .055);
  font-size: clamp(190px, 32vw, 520px);
  font-weight: 950;
  letter-spacing: -.16em;
  line-height: .7;
  transform: rotate(-8deg);
}

body::after {
  position: fixed;
  top: 8rem;
  right: -17rem;
  z-index: 0;
  width: 42rem;
  height: 125vh;
  pointer-events: none;
  content: "";
  opacity: .92;
  background: repeating-linear-gradient(135deg, #151515 0 13px, #222 13px 15px);
  clip-path: polygon(54% 0, 100% 0, 100% 100%, 0 100%);
}

.app-shell {
  position: relative;
  min-height: 100vh;
  z-index: 1;
  isolation: isolate;
}

.app-rail {
  position: sticky;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  width: 100%;
  height: 72px;
  padding: 0 clamp(14px, 4vw, 62px);
  align-items: center;
  flex-direction: row;
  gap: clamp(14px, 3vw, 42px);
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  background: #0e0e0e;
  box-shadow: 0 4px 0 rgba(223,255,0,.96);
  color: #ffffff;
  backdrop-filter: none;
}

.brand {
  display: flex;
  flex: 0 1 238px;
  min-width: 206px;
  height: 100%;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.brand-mark {
  display: grid;
  flex: 0 0 62px;
  width: 62px;
  height: 72px;
  margin-left: -10px;
  overflow: hidden;
  place-items: center;
  color: #111111;
  background: var(--cyan);
  clip-path: polygon(0 0, 88% 0, 100% 14%, 100% 82%, 84% 100%, 0 100%);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: -.12em;
}

.brand-mark::after { display: none; }
.brand-copy { display: grid; min-width: 0; align-content: center; gap: 3px; line-height: 1.15; }
.brand-copy strong { font-size: 16px; letter-spacing: .04em; line-height: 1.15; white-space: nowrap; }
.brand-copy small { color: #9b9d9b; font-size: 11px; letter-spacing: .08em; line-height: 1.25; white-space: nowrap; }
.rail-caption { display: none; }

.rail-nav {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 3px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 100%;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(11px, 1.35vw, 21px);
  color: #d6d6d3;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #111111;
  background: var(--cyan);
}

.nav-link.is-active::before {
  position: absolute;
  top: 0;
  right: 10px;
  left: 10px;
  width: auto;
  height: 4px;
  border-radius: 0;
  content: "";
  background: #ffffff;
  box-shadow: none;
}

.nav-icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: var(--cyan);
  font-size: 11px;
}

.nav-link:hover .nav-icon,
.nav-link.is-active .nav-icon { color: #111111; }
.nav-link span:last-child { font-size: 14px; font-weight: 850; }

.rail-bottom {
  display: block;
  margin: 0 0 0 12px;
}

.rail-status {
  display: grid;
  min-width: 150px;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid #454545;
  background: #171717;
}

.status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-label { color: #929493; font-size: 10px; letter-spacing: .08em; }
.status-value { color: var(--cyan); font-size: 11px; font-weight: 900; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }

.app-main {
  position: relative;
  min-height: calc(100vh - 72px);
  margin-left: 0;
  padding: clamp(34px, 5vw, 72px) clamp(16px, 5vw, 74px) 92px;
}

.app-main::before {
  position: absolute;
  top: 210px;
  right: 7%;
  z-index: 0;
  width: 58%;
  height: 240px;
  pointer-events: none;
  content: "";
  background: var(--cyan);
  clip-path: polygon(13% 0, 100% 0, 88% 100%, 0 100%);
  opacity: .92;
}

.app-main::after {
  position: absolute;
  top: 285px;
  right: -8%;
  z-index: 0;
  width: 72%;
  height: 310px;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(135deg, #181818 0 12px, #252525 12px 14px);
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  opacity: .88;
}

.main-inner {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.page-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 8px solid var(--cyan);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .16em;
}

.eyebrow::before {
  width: 24px;
  height: 4px;
  content: "";
  background: var(--red);
  box-shadow: none;
}

.page-title {
  margin: 0;
  color: #111111;
  font-size: clamp(35px, 5vw, 66px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.075em;
}

.page-lead {
  max-width: 800px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.head-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--quiet);
  font-size: 13px;
  white-space: nowrap;
}

.signal-pill,
.confidence,
.tiny-label,
.rank-chip,
.element-chip,
.role-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 0;
}

.signal-pill {
  gap: 8px;
  padding: 7px 11px;
  color: #111111;
  border-color: #111111;
  background: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
}

.signal-pill::before { width: 7px; height: 7px; border-radius: 50%; content: ""; background: #111111; box-shadow: none; }
.tiny-label { padding: 4px 8px; color: var(--muted); border-color: #aeb0ae; background: #f5f5f2; font-size: 11px; font-weight: 900; letter-spacing: .05em; }

.page-banner {
  position: relative;
  display: grid;
  min-height: 248px;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  margin: 0 0 28px;
  overflow: hidden;
  color: #ffffff;
  border: 2px solid #111111;
  background: #141414;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 13px 13px 0 rgba(223,255,0,.95);
}

.page-banner::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 48%;
  content: "";
  background: linear-gradient(135deg, rgba(20,20,20,.98) 0 72%, transparent 72%);
}

.page-banner::after {
  position: absolute;
  right: 30%;
  bottom: -55px;
  z-index: 2;
  width: 170px;
  height: 170px;
  content: "";
  border: 11px solid var(--cyan);
  border-radius: 50%;
  opacity: .82;
}

.page-banner-copy {
  position: relative;
  z-index: 4;
  display: flex;
  max-width: 520px;
  padding: clamp(28px, 4vw, 56px);
  justify-content: center;
  flex-direction: column;
}

.page-banner-code { color: var(--cyan); font-size: 13px; font-weight: 950; letter-spacing: .16em; }
.page-banner-title { margin: 8px 0 0; font-size: clamp(32px, 4vw, 58px); font-weight: 950; line-height: 1.04; letter-spacing: -.08em; }
.page-banner-note { max-width: 420px; margin: 14px 0 0; color: #d1d1cf; font-size: 16px; }

.page-banner-art {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  background: #555;
}

.page-banner-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(20,20,20,.84), transparent 24%), linear-gradient(0deg, rgba(0,0,0,.22), transparent 48%);
}

.page-banner-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(1.12) contrast(1.04); }
.page-banner-index { position: absolute; right: 24px; bottom: 6px; z-index: 4; color: rgba(255,255,255,.7); font-family: Impact, sans-serif; font-size: 60px; font-style: italic; letter-spacing: -.1em; }

.panel,
.hero,
.metric,
.preset-card,
.build-card,
.source-card,
.banner-group,
.candidate-card,
.notice-card {
  color: var(--text);
  border: 1px solid #1c1c1c;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.panel,
.hero,
.banner-group,
.candidate-card,
.notice-card {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.panel { padding: clamp(20px, 2.5vw, 32px); }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-title { margin: 0; color: #111111; font-size: clamp(21px, 2vw, 30px); font-weight: 950; letter-spacing: -.06em; }
.panel-kicker { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.text-link { color: #111111; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--cyan); text-underline-offset: 4px; font-size: 14px; font-weight: 950; }
.text-link:hover { color: var(--red); }

.home-hero {
  position: relative;
  display: grid;
  min-height: 470px;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  overflow: hidden;
  border: 2px solid #111111;
  background: #f7f7f4;
  box-shadow: 15px 15px 0 #191919;
}

.home-hero::before {
  position: absolute;
  right: 19%;
  bottom: -100px;
  z-index: 1;
  width: 76%;
  height: 190px;
  content: "";
  background: repeating-linear-gradient(135deg, #171717 0 11px, #262626 11px 13px);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  transform: rotate(-12deg);
}

.home-hero::after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 56%;
  height: 100%;
  content: "";
  background: linear-gradient(135deg, transparent 0 53%, var(--cyan) 53% 71%, transparent 71%);
  opacity: .92;
}

.hero-copy { position: relative; z-index: 3; display: flex; max-width: 690px; justify-content: center; padding: clamp(28px, 5vw, 70px); flex-direction: column; }
.hero-kicker { color: var(--red); font-size: 14px; font-weight: 950; letter-spacing: .14em; }
.hero-title { max-width: 730px; margin: 13px 0 0; color: #111111; font-size: clamp(42px, 6.3vw, 86px); font-weight: 950; line-height: .98; letter-spacing: -.1em; }
.hero-title em { display: inline; padding: 0 .06em; color: #111111; font-style: normal; background: var(--cyan); text-shadow: none; }
.hero-copy p { max-width: 610px; margin: 25px 0 0; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 19px;
  cursor: pointer;
  color: #ffffff;
  border: 1px solid #111111;
  border-radius: 0;
  background: #111111;
  font-size: 14px;
  font-weight: 950;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}

.button:hover { color: #111111; background: var(--cyan); box-shadow: none; transform: translateY(-2px); }
.button.secondary { color: #111111; border-color: #111111; background: #ffffff; }
.button.secondary:hover { color: #111111; background: var(--surface-soft); }

.hero-art { position: relative; min-height: 470px; overflow: hidden; background: #d2d4d2; }
.hero-art::before { position: absolute; inset: 8% 5% 10% 10%; z-index: 1; content: ""; border: 2px solid rgba(17,17,17,.3); clip-path: polygon(12% 0, 100% 0, 100% 85%, 87% 100%, 0 100%, 0 15%); }
.hero-art::after { position: absolute; inset: 0; z-index: 2; content: ""; background: linear-gradient(90deg, rgba(241,241,239,.8), transparent 27%), linear-gradient(0deg, rgba(17,17,17,.18), transparent 42%); }
.hero-art img { position: absolute; right: -8%; bottom: -14%; z-index: 1; width: 112%; max-height: 126%; object-fit: contain; object-position: bottom right; filter: saturate(1.12) drop-shadow(0 18px 20px rgba(0,0,0,.2)); }
.hero-art-tag { position: absolute; right: 9%; top: 12%; z-index: 4; padding: 9px 13px; color: #111111; border: 1px solid #111111; background: var(--cyan); font-size: 12px; font-weight: 950; letter-spacing: .08em; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.metric { position: relative; min-height: 136px; padding: 22px; overflow: hidden; }
.metric::after { position: absolute; right: -32px; bottom: -48px; width: 145px; height: 145px; border: 2px solid rgba(17,17,17,.2); border-radius: 50%; content: ""; }
.metric:nth-child(2) { color: #ffffff; background: #111111; }
.metric:nth-child(3) { background: var(--cyan); }
.metric:nth-child(2) .metric-label, .metric:nth-child(2) .metric-note { color: #c4c4c1; }
.metric-label { color: var(--muted); font-size: 13px; font-weight: 950; letter-spacing: .1em; }
.metric-value { margin-top: 4px; color: inherit; font-size: 42px; font-weight: 950; letter-spacing: -.08em; line-height: 1; }
.metric-note { color: var(--muted); font-size: 13px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(330px, .76fr); gap: 18px; margin-top: 26px; }
.stack { display: grid; gap: 18px; }

.current-banner {
  position: relative;
  display: grid;
  min-height: 320px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
  overflow: hidden;
  padding: 0;
  color: #ffffff;
  border: 0;
  background: #111111;
}

.current-banner::after { position: absolute; inset: 0; z-index: 0; pointer-events: none; content: ""; background: linear-gradient(130deg, transparent 0 62%, rgba(223,255,0,.82) 62% 79%, transparent 79%); }
.current-banner-copy { position: relative; z-index: 2; display: flex; justify-content: center; padding: 29px; flex-direction: column; }
.current-banner .banner-status { color: var(--cyan); font-size: 13px; font-weight: 950; letter-spacing: .12em; }
.current-banner .banner-period { margin-top: 8px; color: #c8c9c7; font-size: 14px; }
.current-banner .banner-title { margin: 13px 0 0; color: #ffffff; font-size: 28px; font-weight: 950; }
.current-banner .banner-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.current-banner .mini-item { padding: 6px 10px; color: #111111; border-left: 0; background: var(--cyan); font-size: 13px; font-weight: 950; }
.current-banner .group-note { color: #d5d5d2; font-size: 14px; }
.current-banner .text-link { margin-top: 9px; color: var(--cyan); }
.current-banner-visual { position: relative; z-index: 1; min-height: 320px; overflow: hidden; background: #444; }
.current-banner-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(17,17,17,.86), transparent 38%), linear-gradient(0deg, rgba(17,17,17,.24), transparent 55%); }
.current-banner-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }

.quick-links { display: grid; gap: 10px; }
.quick-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: #111111; border: 1px solid #1a1a1a; background: #f7f7f4; transition: transform .18s ease, background .18s ease; }
.quick-link:hover { color: #111111; background: var(--cyan); transform: translateX(4px); }
.quick-link-main { display: grid; gap: 3px; }
.quick-link-title { font-size: 15px; font-weight: 950; }
.quick-link-note { color: var(--muted); font-size: 13px; }
.quick-arrow { font-size: 24px; font-weight: 950; }

.section-gap { margin-top: 26px; }
.callout { display: flex; align-items: start; gap: 14px; padding: 16px 19px; color: var(--muted); border: 1px solid #aeb0ad; background: #fafaf7; font-size: 14px; }
.callout strong { flex: 0 0 auto; padding: 2px 7px; color: #111111; background: var(--cyan); font-weight: 950; }

.gacha-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.gacha-summary { display: grid; gap: 14px; }
.gacha-summary .panel-title { font-size: clamp(24px, 3vw, 36px); }
.summary-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.summary-cell { padding: 14px 15px; border: 1px solid #aaa; background: #f4f4f1; }
.summary-cell span { display: block; color: var(--muted); font-size: 13px; }
.summary-cell strong { display: block; margin-top: 4px; color: #111111; font-size: 20px; font-weight: 950; }
.summary-cell strong.green { color: var(--green); }
.summary-cell strong.amber { color: var(--red); }
.gacha-side-note { display: grid; align-content: center; min-height: 190px; padding: 24px; color: #ffffff; border: 0; background: #161616; clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px)); box-shadow: var(--shadow); }
.gacha-side-note strong { color: var(--cyan); font-size: 20px; }
.gacha-side-note p { margin: 9px 0 0; color: #d0d0cd; font-size: 14px; }
.gacha-side-note .text-link { margin-top: 13px; color: var(--cyan); }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-button { padding: 9px 14px; cursor: pointer; color: #111111; border: 1px solid #8f918e; border-radius: 0; background: #ffffff; font-size: 14px; font-weight: 900; }
.filter-button:hover, .filter-button.is-active { color: #111111; border-color: #111111; background: var(--cyan); }

.timeline-panel { overflow: hidden; color: #ffffff; border-color: #111111; background: #161616; box-shadow: 14px 14px 0 var(--cyan); }
.timeline-panel .panel-title { color: #ffffff; }
.timeline-panel .panel-kicker, .timeline-panel .tiny-label { color: #c4c4c1; border-color: #555; background: transparent; }
.timeline-scroll { overflow-x: auto; padding-bottom: 8px; }
.timeline { min-width: 920px; }
.timeline-scale { display: grid; grid-template-columns: repeat(6, 1fr); margin-left: 112px; border-bottom: 1px solid #414141; }
.scale-cell { padding: 0 9px 9px; color: #b8b9b6; border-left: 1px solid #333; font-size: 12px; font-weight: 900; }
.timeline-row { display: grid; grid-template-columns: 112px 1fr; min-height: 86px; }
.timeline-row-label { display: flex; align-items: center; padding: 10px 14px 10px 0; color: #ffffff; font-size: 13px; font-weight: 950; }
.timeline-track { position: relative; display: flex; align-items: center; min-width: 0; border-left: 1px solid #353535; background: repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 1px), #2e2e2e calc(16.666% - 1px) 16.666%); }
.timeline-track::before { position: absolute; inset: 50% 0 auto; height: 1px; content: ""; background: #414141; }
.timeline-bar { position: absolute; z-index: 1; top: 24px; height: 37px; min-width: 100px; padding: 0 13px; overflow: hidden; color: #111111; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); font-size: 12px; font-weight: 950; line-height: 37px; white-space: nowrap; text-overflow: ellipsis; box-shadow: none; }
.timeline-bar.official { background: var(--cyan); }
.timeline-bar.forecast { color: #111111; background: #e9e7e1; }
.timeline-bar.leak { color: #ffffff; background: var(--red); }
.timeline-now { position: absolute; z-index: 3; top: 0; bottom: 0; width: 2px; background: var(--red); box-shadow: none; }
.timeline-now span { position: absolute; top: -4px; left: 5px; color: var(--red); font-size: 11px; font-weight: 950; white-space: nowrap; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 15px; margin: 17px 0 0 112px; color: #c4c4c1; font-size: 12px; }
.legend-dot { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot::before { width: 11px; height: 11px; content: ""; background: var(--cyan); }
.legend-dot.forecast::before { background: #e9e7e1; }
.legend-dot.leak::before { background: var(--red); }
.timeline-panel .muted { color: #aaa; }

.banner-groups { display: grid; gap: 18px; }
.banner-group { padding: clamp(20px, 3vw, 32px); }
.group-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 2px solid #111111; }
.group-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.group-version { color: var(--red); font-size: 25px; font-weight: 950; }
.group-phase { color: var(--muted); font-size: 15px; font-weight: 900; }
.group-period { color: var(--muted); font-size: 13px; text-align: right; }
.group-period strong { display: block; color: #111111; font-size: 15px; }
.confidence { padding: 5px 10px; font-size: 12px; font-weight: 950; }
.confidence.official { color: var(--green); border-color: var(--green); background: #eef7ed; }
.confidence.forecast { color: #69655e; border-color: #96928a; background: #f0efec; }
.confidence.leak { color: var(--red); border-color: var(--red); background: #fff0ed; }
.group-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); gap: 25px; margin-top: 22px; }
.subheading { margin: 0 0 11px; color: var(--red); font-size: 13px; font-weight: 950; letter-spacing: .1em; }
.banner-item-list { display: grid; gap: 10px; }
.banner-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 82px; padding: 7px 10px; border: 1px solid #aaa; background: #f5f5f2; }
.item-thumb { width: 68px; height: 68px; overflow: hidden; border: 1px solid #222; background: #1b1b1b; object-fit: cover; }
.item-thumb.placeholder { display: grid; place-items: center; color: var(--cyan); font-size: 20px; }
.item-name { color: #111111; font-size: 16px; font-weight: 950; }
.item-meta { margin-top: 2px; color: var(--muted); font-size: 13px; }
.item-type { padding: 5px 8px; color: #111111; border: 1px solid #111111; background: var(--cyan); font-size: 12px; font-weight: 950; white-space: nowrap; }
.item-type.rerun { color: #ffffff; border-color: var(--red); background: var(--red); }
.group-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.group-note strong { color: var(--red); }
.candidate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.candidate-card { min-height: 160px; padding: 17px; }
.candidate-name { color: #111111; font-size: 16px; font-weight: 950; }
.candidate-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.candidate-card .confidence { margin-top: 13px; }

.build-toolbar { display: grid; grid-template-columns: minmax(250px, 1.55fr) repeat(5, minmax(128px, .65fr)); gap: 10px; }
.field { min-width: 0; min-height: 48px; padding: 10px 13px; color: #111111; outline: none; border: 1px solid #8f918e; border-radius: 0; background: #ffffff; font-size: 15px; }
.field::placeholder { color: #777a7b; }
.field:focus { border-color: #111111; box-shadow: 4px 4px 0 var(--cyan); }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.preset-card { min-height: 132px; padding: 17px; cursor: pointer; color: #111111; border: 1px solid #8f918e; border-radius: 0; background: #ffffff; text-align: left; transition: transform .18s ease, background .18s ease; }
.preset-card:hover, .preset-card.is-selected { color: #111111; border-color: #111111; background: var(--cyan); transform: translateY(-3px); }
.preset-card strong { display: block; font-size: 16px; font-weight: 950; }
.preset-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.preset-bar { display: block; width: 42px; height: 5px; margin-bottom: 13px; background: var(--red); box-shadow: none; }
.preset-card:nth-child(2) .preset-bar { background: #111111; }
.preset-card:nth-child(3) .preset-bar { background: var(--amber); }
.preset-card:nth-child(4) .preset-bar { background: #79756d; }
.preset-card:nth-child(5) .preset-bar { background: var(--green); }
.preset-card:nth-child(6) .preset-bar { background: #111111; }
.build-count { color: var(--muted); font-size: 14px; font-weight: 900; }
.build-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.build-card { position: relative; display: grid; min-height: 490px; grid-template-rows: 235px 1fr; overflow: hidden; cursor: pointer; border: 1px solid #111111; border-radius: 0; background: #ffffff; text-align: left; transition: transform .18s ease, box-shadow .18s ease; }
.build-card:hover { border-color: #111111; box-shadow: 10px 10px 0 var(--cyan); transform: translateY(-4px); }
.character-art { position: relative; overflow: hidden; background: #202020; }
.character-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(17,17,17,.6), transparent 64%); pointer-events: none; }
.character-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.card-rank { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 8px; color: #111111; background: var(--cyan); font-size: 12px; font-weight: 950; }
.card-index { position: absolute; z-index: 1; right: 12px; bottom: 10px; color: rgba(255,255,255,.86); font-size: 12px; font-weight: 900; }
.build-body { display: grid; align-content: start; gap: 10px; padding: 17px; }
.build-name-row { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.build-name { color: #111111; font-size: 21px; font-weight: 950; letter-spacing: -.06em; }
.build-faction { margin-top: 2px; color: var(--muted); font-size: 13px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rank-chip, .element-chip, .role-chip { padding: 4px 8px; border-radius: 0; color: #111111; background: #f5f5f2; font-size: 12px; font-weight: 950; }
.rank-chip { border-color: var(--amber); background: #fff6e8; }
.element-chip { border-color: #809600; background: #f2facd; }
.role-chip { border-color: #7c7971; background: #f2f1ee; }
.card-detail { display: grid; gap: 6px; margin-top: 3px; }
.detail-line { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 4px; color: var(--muted); border-bottom: 1px solid #e0e1de; font-size: 13px; }
.detail-line strong { max-width: 70%; color: #111111; font-size: 13px; text-align: right; }
.build-open { margin-top: auto; padding-top: 10px; color: #111111; border-top: 2px solid #111111; font-size: 13px; font-weight: 950; }

.build-dialog { width: min(1040px, calc(100% - 24px)); max-height: min(880px, calc(100vh - 30px)); padding: 0; color: #111111; overflow: hidden; border: 2px solid #111111; border-radius: 0; background: #f3f3f0; box-shadow: 18px 18px 0 var(--cyan); }
.build-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.dialog-head { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: stretch; border-bottom: 2px solid #111111; background: #ffffff; }
.dialog-portrait { width: 170px; height: 180px; object-fit: cover; object-position: center 20%; background: #202020; }
.dialog-heading { padding: 27px; }
.dialog-heading .build-name { font-size: 34px; }
.dialog-close { align-self: start; margin: 15px; padding: 8px 13px; cursor: pointer; color: #111111; border: 1px solid #111111; border-radius: 0; background: var(--cyan); font-size: 14px; font-weight: 950; }
.dialog-close:hover { color: #ffffff; background: #111111; }
.dialog-content { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; max-height: calc(100vh - 215px); padding: 20px; overflow: auto; }
.detail-panel { padding: 17px; border: 1px solid #acafac; background: #ffffff; }
.detail-panel.full { grid-column: 1 / -1; }
.detail-panel h3 { margin: 0 0 11px; color: var(--red); font-size: 16px; font-weight: 950; letter-spacing: .05em; }
.detail-panel p { margin: 0; color: var(--muted); font-size: 15px; }
.detail-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.detail-panel li { padding: 9px 11px; color: var(--muted); border-left: 4px solid var(--cyan); background: #f4f4f1; font-size: 14px; }
.detail-panel li strong { color: #111111; }
.team-list { display: grid; gap: 10px; }
.team-card { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px; border: 1px solid #aaa; background: #f4f4f1; }
.team-number { display: grid; width: 28px; height: 28px; place-items: center; color: #111111; background: var(--cyan); font-size: 13px; font-weight: 950; }
.team-card strong { color: #111111; font-size: 14px; }
.team-card p { margin-top: 3px; font-size: 13px; }
.note-list { display: grid; gap: 8px; }
.note-list div { color: var(--muted); font-size: 14px; }
.note-list strong { color: var(--red); }

.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.source-card { min-height: 235px; padding: 21px; }
.source-kind { color: var(--red); font-size: 12px; font-weight: 950; letter-spacing: .1em; }
.source-card h3 { margin: 9px 0 0; color: #111111; font-size: 19px; font-weight: 950; letter-spacing: -.04em; }
.source-card p { min-height: 74px; margin: 9px 0 15px; color: var(--muted); font-size: 14px; }
.source-card a { display: inline-flex; align-items: center; gap: 7px; color: #111111; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; font-size: 13px; font-weight: 950; }
.source-card a::after { content: "↗"; font-size: 16px; }
.source-note { margin-bottom: 17px; color: var(--muted); font-size: 15px; }
.source-group { margin-top: 32px; }
.source-group h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #111111; font-size: 27px; font-weight: 950; letter-spacing: -.06em; }
.source-group h2::before { width: 9px; height: 28px; content: ""; background: var(--cyan); box-shadow: none; }
.source-group .source-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

.empty-state { padding: 48px 20px; color: var(--muted); border: 2px dashed #8f918e; text-align: center; font-size: 15px; }
.muted { color: var(--muted); }
.accent { color: var(--red); }
.pink { color: var(--pink); }
.amber { color: var(--red); }
.green { color: var(--green); }

@media (max-width: 1260px) {
  .build-toolbar { grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(120px, .7fr)); }
  .build-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .preset-grid { grid-template-columns: repeat(3, 1fr); }
  .source-grid, .source-group .source-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 1020px) {
  .app-rail { height: auto; min-height: 72px; padding: 0 16px; flex-wrap: wrap; }
  .brand { flex: 0 1 190px; min-width: 190px; }
  .rail-nav { height: 54px; margin-left: auto; overflow-x: auto; }
  .nav-link { min-height: 54px; padding: 0 12px; }
  .rail-bottom { display: none; }
  .app-main { padding-top: 38px; }
  .page-banner { grid-template-columns: minmax(250px, .9fr) minmax(0, 1.1fr); }
  .home-hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .home-grid, .gacha-top { grid-template-columns: 1fr; }
  .gacha-side-note { min-height: 150px; }
  .build-toolbar { grid-template-columns: repeat(2, 1fr); }
  .build-toolbar .field:first-child { grid-column: 1 / -1; }
  .group-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body::after { right: -25rem; opacity: .58; }
  .app-rail { align-items: flex-start; padding: 0 12px; }
  .brand { flex: 0 0 auto; height: 66px; min-width: 0; }
  .brand-mark { flex-basis: 54px; width: 54px; height: 66px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { display: none; }
  .rail-nav { width: 100%; height: 50px; margin: 0; }
  .nav-link { flex: 1 0 auto; min-height: 50px; justify-content: center; padding: 0 10px; }
  .nav-icon { display: none; }
  .nav-link span:last-child { font-size: 13px; }
  .app-main { padding: 30px 12px 62px; }
  .app-main::before { top: 230px; right: -24%; width: 130%; height: 210px; opacity: .65; }
  .app-main::after { top: 290px; right: -47%; width: 150%; height: 260px; opacity: .66; }
  .page-head { display: block; margin-bottom: 24px; padding-left: 13px; border-left-width: 6px; }
  .page-title { font-size: 38px; }
  .page-lead { font-size: 15px; }
  .head-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; font-size: 12px; }
  .page-banner { min-height: 305px; grid-template-columns: 1fr; box-shadow: 8px 8px 0 var(--cyan); }
  .page-banner::before { width: 100%; height: 68%; background: linear-gradient(135deg, rgba(20,20,20,.98) 0 69%, transparent 69%); }
  .page-banner-copy { min-height: 175px; padding: 25px; justify-content: start; }
  .page-banner-title { font-size: 38px; }
  .page-banner-note { max-width: 340px; font-size: 14px; }
  .page-banner-art { min-height: 150px; }
  .page-banner-index { right: 15px; bottom: 4px; font-size: 45px; }
  .panel { padding: 18px; }
  .panel-head { display: block; }
  .panel-head > :last-child { margin-top: 12px; }
  .panel-title { font-size: 23px; }
  .panel-kicker { font-size: 14px; }
  .home-hero { min-height: 620px; grid-template-columns: 1fr; box-shadow: 8px 8px 0 #191919; }
  .hero-copy { min-height: 355px; padding: 29px 22px; }
  .hero-title { font-size: 54px; }
  .hero-copy p { font-size: 15px; }
  .hero-art { min-height: 265px; }
  .hero-art img { right: -6%; bottom: -18%; width: 112%; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 18px; }
  .metric { min-height: 116px; padding: 15px; }
  .metric-value { font-size: 34px; }
  .metric-label, .metric-note { font-size: 12px; }
  .current-banner { grid-template-columns: 1fr; }
  .current-banner-copy { min-height: 320px; padding: 22px; }
  .current-banner-visual { min-height: 210px; }
  .summary-list { grid-template-columns: 1fr; }
  .timeline-scale { margin-left: 88px; }
  .timeline-row { grid-template-columns: 88px 1fr; }
  .timeline-legend { margin-left: 88px; }
  .group-head { display: block; }
  .group-period { margin-top: 12px; text-align: left; }
  .banner-item { grid-template-columns: 64px minmax(0, 1fr); min-height: 78px; }
  .item-thumb { width: 64px; height: 64px; }
  .item-type { grid-column: 2; width: fit-content; }
  .candidate-grid { grid-template-columns: 1fr; }
  .build-toolbar { grid-template-columns: 1fr; }
  .build-toolbar .field:first-child { grid-column: auto; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .preset-card { min-height: 125px; padding: 13px; }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .build-card { min-height: 430px; grid-template-rows: 205px 1fr; }
  .build-body { padding: 13px; }
  .build-name { font-size: 18px; }
  .detail-line { display: block; }
  .detail-line strong { display: block; max-width: 100%; margin-top: 2px; text-align: left; }
  .dialog-head { grid-template-columns: 100px minmax(0,1fr) auto; }
  .dialog-portrait { width: 100px; height: 122px; }
  .dialog-heading { padding: 16px; }
  .dialog-heading .build-name { font-size: 23px; }
  .dialog-content { grid-template-columns: 1fr; padding: 13px; }
  .detail-panel.full { grid-column: auto; }
  .source-grid, .source-group .source-grid { grid-template-columns: 1fr; }
  .callout { display: block; }
  .callout strong { display: inline-block; margin-bottom: 8px; }
}

@media (max-width: 430px) {
  .brand-copy { display: none; }
  .brand { min-width: 54px; }
  .nav-link { padding: 0 8px; }
  .nav-link span:last-child { font-size: 12px; }
  .page-title { font-size: 34px; }
  .hero-title { font-size: 46px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .build-grid { grid-template-columns: 1fr; }
  .build-card { min-height: 470px; grid-template-rows: 235px 1fr; }
  .preset-grid { grid-template-columns: 1fr; }
  .banner-item { grid-template-columns: 58px minmax(0,1fr); }
  .item-thumb { width: 58px; height: 58px; }
  .item-name { font-size: 15px; }
  .group-version { font-size: 22px; }
}

/* ビルド画面：ランキングと候補を、一覧から一目で比較できる作戦盤 */
.build-ranking { border-top: 8px solid var(--cyan); }
.ranking-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.ranking-switch-button { min-height: 42px; padding: 9px 18px; cursor: pointer; color: #111111; border: 1px solid #8f918e; border-radius: 0; background: #ffffff; font-size: 14px; font-weight: 950; }
.ranking-switch-button:hover, .ranking-switch-button.is-active { color: #111111; border-color: #111111; background: var(--cyan); box-shadow: 4px 4px 0 #111111; }
.ranking-board { display: grid; gap: 9px; }
.rank-tier-row { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 12px; align-items: stretch; padding: 10px; border: 1px solid #b2b4b1; background: #f5f5f2; }
.rank-tier-badge { display: flex; min-height: 66px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #111111; background: #e6e7e3; }
.rank-tier-badge strong { font-size: 22px; line-height: 1; font-weight: 1000; }
.rank-tier-badge span { font-size: 11px; font-weight: 900; }
.rank-tier-badge.rank-sss { color: var(--cyan); background: #111111; }
.rank-tier-badge.rank-ss { background: #ffe477; }
.rank-tier-badge.rank-s { background: #d7ef00; }
.rank-tier-badge.rank-a { background: #e8e8e3; }
.rank-tier-badge.rank-b { color: #ffffff; background: #666862; }
.rank-tier-badge.rank-c { color: #ffffff; background: var(--red); }
.rank-character-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ranking-character { display: inline-flex; min-width: 148px; min-height: 66px; align-items: center; gap: 9px; padding: 7px 10px 7px 7px; cursor: pointer; color: #111111; border: 1px solid #babcb8; border-radius: 0; background: #ffffff; text-align: left; }
.ranking-character:hover, .ranking-character:focus-visible { border-color: #111111; outline: none; box-shadow: 4px 4px 0 var(--cyan); transform: translate(-1px, -1px); }
.ranking-character img { width: 50px; height: 50px; flex: 0 0 auto; object-fit: cover; border: 1px solid #111111; background: #222222; }
.ranking-character strong { display: block; font-size: 14px; font-weight: 950; white-space: nowrap; }
.ranking-character small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 800; }
.ranking-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.ranking-foot .text-link { color: #111111; font-weight: 950; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }

.build-rank-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 900; }
.build-rank-line small { margin-left: auto; color: #111111; font-size: 12px; font-weight: 950; }
.rank-tier-chip { display: inline-flex; min-width: 34px; min-height: 25px; align-items: center; justify-content: center; padding: 3px 8px; color: #111111; background: #e8e8e3; font-size: 12px; font-weight: 1000; }
.rank-tier-chip.rank-sss { color: var(--cyan); background: #111111; }
.rank-tier-chip.rank-ss { background: #ffe477; }
.rank-tier-chip.rank-s { background: #d7ef00; }
.rank-tier-chip.rank-b { color: #ffffff; background: #666862; }
.candidate-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.candidate-summary span { padding: 4px 7px; color: #333531; border: 1px solid #c6c8c4; background: #f5f5f2; font-size: 11px; font-weight: 900; }

.dialog-rank-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #d3d4cf; }
.dialog-rank-summary strong { display: inline-flex; min-width: 38px; min-height: 30px; align-items: center; justify-content: center; padding: 3px 8px; color: #111111; background: var(--cyan); font-size: 18px; font-weight: 1000; }
.dialog-rank-summary span { color: var(--muted); font-size: 12px; font-weight: 900; }
.dialog-rank-summary p { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.dialog-content { max-height: calc(100vh - 255px); }

@media (max-width: 1020px) {
  .rank-tier-row { grid-template-columns: 78px minmax(0, 1fr); }
  .ranking-character { min-width: 135px; }
}

@media (max-width: 720px) {
  .rank-tier-row { grid-template-columns: 1fr; gap: 8px; }
  .rank-tier-badge { min-height: 48px; flex-direction: row; justify-content: flex-start; gap: 9px; padding: 0 12px; }
  .rank-tier-badge strong { font-size: 20px; }
  .rank-character-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranking-character { min-width: 0; width: 100%; }
  .ranking-character img { width: 44px; height: 44px; }
  .ranking-character strong { font-size: 13px; }
  .ranking-foot { display: block; }
  .ranking-foot > * { display: inline-block; margin: 5px 12px 0 0; }
  .build-rank-line small { margin-left: 0; }
  .dialog-content { max-height: calc(100vh - 230px); }
}

@media (max-width: 430px) {
  .rank-character-list { grid-template-columns: 1fr; }
  .ranking-character { min-height: 58px; }
  .ranking-character img { width: 42px; height: 42px; }
}

/* 一覧性・視認性・モーダル操作を優先した最終調整 */
html.is-dialog-open,
body.is-dialog-open { overflow: hidden; overscroll-behavior: none; }
body.is-dialog-open { width: 100%; }

.build-filter-panel { margin-top: 14px; padding: 14px 16px; border: 1px solid #aeb0ad; background: #f4f4f1; }
.build-filter-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 11px; color: #111111; }
.build-filter-heading strong { color: var(--red); font-size: 15px; font-weight: 950; }
.build-filter-heading span { color: var(--muted); font-size: 13px; }
.build-filter-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 10px; border-top: 1px solid #d7d8d3; }
.build-filter-row + .build-filter-row { margin-top: 9px; }
.build-filter-label { padding-top: 8px; color: #555851; font-size: 13px; font-weight: 950; }
.build-filter-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.build-quick-filter { min-height: 34px; padding: 6px 11px; cursor: pointer; color: #333531; border: 1px solid #aeb0ad; border-radius: 0; background: #ffffff; font-size: 13px; font-weight: 900; }
.build-quick-filter:hover,
.build-quick-filter.is-active { color: #111111; border-color: #111111; background: var(--cyan); box-shadow: 3px 3px 0 #111111; transform: translate(-1px, -1px); }
.build-quick-filter small { margin-left: 3px; font-size: 11px; }

.build-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.build-card { min-height: 355px; grid-template-rows: 155px 1fr; }
.build-card:hover { box-shadow: 7px 7px 0 var(--cyan); transform: translateY(-3px); }
.build-body { gap: 8px; padding: 13px; }
.build-name { font-size: 19px; }
.build-faction { font-size: 12px; }
.build-rank-line { gap: 5px; font-size: 11px; }
.build-rank-line small { font-size: 11px; }
.candidate-summary { gap: 5px; }
.candidate-summary span { padding: 3px 6px; font-size: 10px; }
.card-detail { gap: 5px; }
.detail-line { padding-bottom: 3px; font-size: 12px; }
.detail-line strong { font-size: 12px; }
.build-open { padding-top: 8px; font-size: 12px; }
.card-gear-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 1px; }
.card-gear { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; align-items: center; min-width: 0; padding: 5px; border: 1px solid #d2d4cf; background: #f5f5f2; }
.card-gear-art { display: block; width: 30px; height: 30px; overflow: hidden; border: 1px solid #111111; background: #202020; }
.card-item-image { width: 100%; height: 100%; object-fit: cover; }
.card-gear small { display: block; color: var(--muted); font-size: 9px; line-height: 1.1; }
.card-gear strong { display: block; overflow: hidden; color: #111111; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }

.item-option-list { display: grid; gap: 8px; }
.item-option { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border: 1px solid #d2d4cf; background: #f4f4f1; }
.item-option-art { display: block; width: 52px; height: 52px; overflow: hidden; border: 1px solid #111111; background: #202020; }
.build-item-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.item-option-copy strong { display: block; color: #111111; font-size: 14px; line-height: 1.35; }
.item-option-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.detail-hint { margin: -3px 0 10px !important; color: var(--muted) !important; font-size: 11px !important; }

.team-card { grid-template-columns: 30px minmax(0, 1fr); }
.team-card-main { min-width: 0; }
.team-members { display: flex; flex-wrap: wrap; gap: 7px; }
.team-character-link { display: inline-flex; min-width: 82px; align-items: center; gap: 5px; padding: 4px 6px 4px 4px; cursor: pointer; color: #111111; border: 1px solid #b9bbb6; border-radius: 0; background: #ffffff; text-align: left; }
.team-character-link:hover,
.team-character-link:focus-visible { border-color: #111111; outline: none; background: var(--cyan); box-shadow: 3px 3px 0 #111111; transform: translate(-1px, -1px); }
.team-character-link img,
.team-avatar-placeholder { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; overflow: hidden; color: var(--cyan); border: 1px solid #111111; background: #222222; font-size: 15px; font-weight: 950; object-fit: cover; }
.team-character-link span:last-child { overflow: hidden; font-size: 12px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.team-character-link.is-unknown { cursor: default; }
.team-character-link.is-unknown:hover { background: #ffffff; box-shadow: none; transform: none; }
.team-card p { margin-top: 8px; }

.build-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.build-link-card { display: grid; grid-template-columns: 78px minmax(0, 1fr); min-height: 112px; overflow: hidden; color: #111111; border: 1px solid #8f918e; background: #ffffff; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.build-link-card:hover { color: #111111; border-color: #111111; box-shadow: 6px 6px 0 var(--cyan); transform: translate(-2px, -2px); }
.build-link-art { display: block; overflow: hidden; background: #222222; }
.build-link-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.build-link-copy { display: grid; align-content: center; gap: 3px; min-width: 0; padding: 10px 12px; }
.build-link-copy small { color: var(--muted); font-size: 10px; font-weight: 900; }
.build-link-copy strong { overflow: hidden; font-size: 16px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.build-link-copy > span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.build-link-copy em { margin-top: 4px; color: #111111; font-size: 11px; font-style: normal; font-weight: 950; }

.build-dialog { display: flex; width: min(1080px, calc(100% - 24px)); height: min(900px, calc(100vh - 24px)); max-height: calc(100vh - 24px); flex-direction: column; }
.dialog-head { flex: 0 0 auto; }
.dialog-content { min-height: 0; max-height: none; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }

@media (max-width: 1260px) {
  .build-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .build-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .build-filter-panel { padding: 12px; }
  .build-filter-row { grid-template-columns: 54px minmax(0, 1fr); }
  .build-quick-filter { min-height: 32px; padding: 5px 8px; font-size: 12px; }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .build-card { min-height: 330px; grid-template-rows: 138px 1fr; }
  .build-body { padding: 10px; }
  .build-name { font-size: 17px; }
  .build-rank-line small { margin-left: 0; }
  .card-gear-row { grid-template-columns: 1fr; }
  .build-link-grid { grid-template-columns: 1fr; }
  .build-dialog { width: calc(100% - 14px); height: calc(100vh - 14px); max-height: calc(100vh - 14px); box-shadow: 7px 7px 0 var(--cyan); }
  .dialog-content { padding: 11px; }
  .item-option { grid-template-columns: 46px minmax(0, 1fr); }
  .item-option-art { width: 46px; height: 46px; }
}

@media (max-width: 430px) {
  .build-grid { grid-template-columns: 1fr; }
  .build-card { min-height: 340px; grid-template-rows: 150px 1fr; }
  .card-gear-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 編成Tierと将来予想：カード内の比較軸を増やしても一覧性を崩さない */
.party-tier-board { display: grid; gap: 12px; }
.party-tier-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border: 1px solid #b2b4b1; background: #f5f5f2; }
.party-tier-badge { display: grid; min-height: 80px; align-content: center; justify-items: center; gap: 4px; color: #111111; background: #e7e8e4; }
.party-tier-badge strong { font-size: 25px; line-height: 1; font-weight: 1000; }
.party-tier-badge span { font-size: 11px; font-weight: 950; }
.party-tier-badge.rank-sss { color: var(--cyan); background: #111111; }
.party-tier-badge.rank-ss { background: #ffe477; }
.party-tier-badge.rank-s { background: #d7ef00; }
.party-tier-badge.rank-a { background: #e8e8e3; }
.party-tier-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.party-tier-card { min-width: 0; padding: 12px; border: 1px solid #babcb8; background: #ffffff; }
.party-card-head { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.party-card-head h3 { margin: 0; color: #111111; font-size: 16px; font-weight: 950; }
.party-card-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 800; }
.party-card-rank { flex: 0 0 auto; padding: 4px 6px; color: #111111 !important; border: 1px solid #b3b5b2; background: #f3f3f0; font-size: 10px !important; white-space: nowrap; }
.party-members { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.party-members .team-character-link { min-width: 0; flex: 1 1 105px; }
.party-tier-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.party-card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #d6d7d3; color: var(--muted); font-size: 11px; font-weight: 800; }
.party-card-meta a { color: #111111; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.item-thumb-catalog { object-fit: cover; }
.is-catalog-image { object-fit: cover; }

.forecast-panel { border-top: 8px solid var(--red); }
.forecast-roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.forecast-roadmap-card { padding: 14px; border: 1px solid #b5b7b3; background: #ffffff; }
.forecast-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #d5d6d2; }
.forecast-card-head strong { color: #111111; font-size: 19px; font-weight: 1000; }
.forecast-card-head span { color: var(--muted); font-size: 11px; font-weight: 800; text-align: right; }
.forecast-slot { display: grid; gap: 3px; margin-top: 10px; padding-left: 9px; border-left: 4px solid var(--cyan); }
.forecast-slot + .forecast-slot { border-left-color: var(--red); }
.forecast-slot span { color: var(--muted); font-size: 11px; font-weight: 900; }
.forecast-slot strong { color: #111111; font-size: 14px; line-height: 1.45; }
.forecast-candidates { display: grid; gap: 6px; margin-top: 7px; }
.forecast-candidate-label { color: var(--muted); font-size: 10px; font-weight: 900; }
.forecast-candidate-list { display: flex; flex-wrap: wrap; align-items: start; gap: 7px 9px; }
.forecast-character.compact { width: 56px; justify-items: center; gap: 3px; }
.forecast-character.compact img,
.forecast-character.compact .forecast-avatar { width: 48px; height: 48px; }
.forecast-character.compact strong { width: 100%; color: #111111; font-size: 10px; line-height: 1.25; text-align: center; text-overflow: clip; white-space: normal; word-break: keep-all; }
.forecast-character.compact:hover strong { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 2px; }
.forecast-card-foot { display: grid; gap: 7px; margin-top: 12px; }
.forecast-card-foot p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.forecast-method { display: flex; align-items: start; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; padding: 11px 13px; border-left: 4px solid var(--red); background: #f1f1ed; color: var(--muted); font-size: 12px; line-height: 1.55; }
.forecast-method strong { color: #111111; }
.forecast-method a { color: #111111; font-weight: 950; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.rerun-forecast-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.rerun-forecast-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 9px; min-width: 0; padding: 8px; border: 1px solid #b9bbb7; background: #ffffff; }
.forecast-character { display: grid; align-content: start; gap: 5px; min-width: 0; color: #111111; text-decoration: none; }
.forecast-character img, .forecast-avatar { display: grid; width: 74px; height: 74px; place-items: center; overflow: hidden; border: 1px solid #111111; background: #222222; object-fit: cover; }
.forecast-character strong { overflow: hidden; font-size: 12px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.forecast-character:hover strong { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.forecast-character.unknown { color: #555851; }
.forecast-avatar { color: var(--cyan); font-size: 23px; font-weight: 1000; }
.rerun-forecast-copy { min-width: 0; }
.rerun-forecast-copy > div { display: flex; flex-wrap: wrap; gap: 4px; }
.rerun-forecast-copy .tiny-label, .rerun-pick { font-size: 10px; }
.rerun-pick { padding: 3px 5px; color: #111111; background: var(--cyan); font-weight: 950; }
.rerun-forecast-copy p { min-height: 42px; margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.source-internal { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); font-size: 10px; font-weight: 900; }

@media (max-width: 920px) {
  .party-tier-list, .forecast-roadmap { grid-template-columns: 1fr; }
  .rerun-forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .party-tier-row { grid-template-columns: 1fr; }
  .party-tier-badge { min-height: 48px; grid-auto-flow: column; grid-template-columns: auto auto; justify-content: start; justify-items: start; padding: 0 12px; }
  .party-tier-badge strong { font-size: 22px; }
  .party-members .team-character-link { flex-basis: 92px; }
  .rerun-forecast-grid { grid-template-columns: 1fr; }
  .forecast-card-head { display: block; }
  .forecast-card-head span { display: block; margin-top: 4px; text-align: left; }
}

/* スマホでは背景の装飾を本文の幅からはみ出させず、候補アイコンを横並びで読めるようにする */
@media (max-width: 720px) {
  html { overflow-x: clip; }
  .app-main { overflow-x: clip; }
  .app-main::before { right: 0; width: 100%; }
  .app-main::after { right: 0; width: 100%; }
  .brand-mark { margin-left: 0; }
  .hero-art { position: relative; inset: auto; height: auto; min-height: 265px; }
  .hero-art img { right: 0; bottom: -8%; width: 100%; max-height: 120%; }
  .forecast-roadmap-card { padding: 12px; }
  .forecast-candidate-list { gap: 6px 8px; }
  .forecast-character.compact { width: 51px; }
  .forecast-character.compact img,
  .forecast-character.compact .forecast-avatar { width: 44px; height: 44px; }
  .forecast-candidate-label { font-size: 11px; }
  .forecast-character.compact strong { font-size: 10px; }
  .candidate-card .forecast-candidates { margin-top: 10px; }
  .rerun-forecast-copy .tiny-label,
  .rerun-pick { font-size: 11px; }
  .rerun-forecast-copy p { font-size: 12px; line-height: 1.55; }
}

@media (max-width: 430px) {
  .app-main { padding-right: 10px; padding-left: 10px; }
  .page-title { font-size: 32px; }
  .page-lead { font-size: 14px; line-height: 1.6; }
  .panel { padding: 14px; }
  .build-card { min-height: 385px; grid-template-rows: 165px 1fr; }
  .build-body { padding: 11px; }
  .build-name { font-size: 17px; }
  .card-gear strong { font-size: 9px; }
  .forecast-card-head strong { font-size: 18px; }
  .forecast-slot strong { font-size: 13px; }
}

/* 未評価とキャラ別の参照先は、推測値と確定評価を視覚的に分離する */
.rank-unrated { color: #555851; background: #e8e8e3; }
.rank-unrated-row { border-style: dashed; }
.rank-unrated-row .rank-character-list { opacity: .82; }
.rank-tier-chip.rank-未評価 { color: #555851; border-color: #b3b5b2; background: #e8e8e3; }
.detail-source-list { display: flex; flex-wrap: wrap; gap: 7px 10px; }

/* 今回の見やすさ優先の最終調整：予想・編成・ボンプを「読める大きさ」で揃える */
.forecast-version-list { display: grid; gap: 24px; }
.forecast-version { min-width: 0; padding: 18px; border: 2px solid #111; background: #f8f8f4; }
.forecast-version-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 2px solid #111; }
.forecast-version-head h3 { margin: 0; color: #111; font-size: 25px; font-weight: 1000; }
.forecast-version-head span:not(.confidence) { color: #5f625c; font-size: 13px; font-weight: 800; }
.forecast-phase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 15px; }
.forecast-phase-card { min-width: 0; padding: 16px; border: 1px solid #a9aba6; background: #fff; }
.forecast-phase-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #d2d3cf; }
.forecast-phase-version { display: block; color: #6a6c66; font-size: 11px; font-weight: 900; }
.forecast-phase-head h3 { margin: 2px 0 0; color: #111; font-size: 21px; font-weight: 1000; }
.forecast-block { margin-top: 14px; padding: 12px; border-left: 5px solid var(--cyan); background: #f4f4f0; }
.forecast-block-rerun { border-left-color: var(--red); }
.forecast-block h4 { margin: 0 0 10px; color: #111; font-size: 15px; font-weight: 1000; }
.forecast-large-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 9px; }
.forecast-large-item { display: grid; gap: 6px; min-width: 0; padding: 8px; border: 1px solid #c3c5c0; background: #fff; }
.forecast-large-item .forecast-character { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 9px; }
.forecast-large-item .forecast-character img,
.forecast-large-item .forecast-character .forecast-avatar { width: 68px; height: 68px; }
.forecast-large-item .forecast-character-copy { gap: 3px; }
.forecast-large-item .forecast-character strong { overflow-wrap: anywhere; color: #111; font-size: 14px; line-height: 1.3; white-space: normal; }
.forecast-large-label { width: fit-content; padding: 3px 6px; color: #111; background: var(--cyan); font-size: 10px; font-weight: 1000; }
.forecast-large-item.is-rerun .forecast-large-label { background: #ffd8d8; }
.forecast-empty { margin: 0; color: #6a6c66; font-size: 13px; line-height: 1.5; }
.forecast-phase-reason { margin: 14px 0 0; color: #343633; font-size: 13px; line-height: 1.65; }
.forecast-phase-reason strong { display: block; margin-bottom: 3px; color: #111; font-size: 12px; }
.forecast-phase-note { margin: 10px 0 0; color: #6a6c66; font-size: 12px; line-height: 1.55; }
.forecast-candidate-reason { color: #6a6c66; font-size: 10px; line-height: 1.35; }

.party-tier-card .party-members { gap: 8px; }
.party-tier-card .team-character-link { display: grid; grid-template-columns: 54px minmax(0, 1fr); min-height: 66px; align-items: center; gap: 8px; padding: 6px; border: 1px solid #b9bbb7; background: #f7f7f3; }
.party-tier-card .team-character-image { width: 54px; height: 54px; }
.party-tier-card .team-character-link span:last-child { color: #111; font-size: 13px; font-weight: 1000; line-height: 1.25; overflow-wrap: anywhere; }
.team-card { padding: 13px; }
.team-card .team-members { gap: 9px; }
.team-card .team-character-link { display: grid; grid-template-columns: 48px minmax(0, 1fr); min-height: 58px; align-items: center; gap: 7px; padding: 5px; border: 1px solid #c4c6c1; background: #fff; }
.team-card .team-character-image { width: 48px; height: 48px; }
.team-card .team-character-link span:last-child { color: #111; font-size: 12px; font-weight: 950; line-height: 1.25; overflow-wrap: anywhere; }

.team-bangboo { gap: 8px; }
.bangboo-options { gap: 8px; }
.bangboo-option { grid-template-columns: 48px minmax(0, 1fr); min-height: 54px; padding: 5px; }
.bangboo-image,
.bangboo-image-placeholder { width: 48px; height: 48px; }
.bangboo-option-copy { gap: 3px; }
.bangboo-option-copy strong { font-size: 12px; }
.bangboo-option-copy small { font-size: 10px; font-weight: 900; }
.bangboo-option-copy em { color: #6a6c66; font-size: 9px; font-style: normal; line-height: 1.35; }
.team-bangboo.is-general { border-style: dashed; }
.team-bangboo.is-general .team-bangboo-heading span { color: #9a4b4b; }
.party-tier-card .bangboo-option { grid-template-columns: 42px minmax(0, 1fr); }
.party-tier-card .bangboo-image,
.party-tier-card .bangboo-image-placeholder { width: 42px; height: 42px; }

.timeline-row { min-height: 100px; }
.timeline-bar { display: grid; align-content: center; gap: 3px; height: 38px; line-height: 1.25; overflow: visible; }
.timeline-bar strong,
.timeline-bar small { overflow: hidden; text-overflow: ellipsis; }
.timeline-character-strip { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; align-items: start; margin-top: 58px; padding-left: 8px; }
.timeline-character-strip .forecast-character.compact { width: 36px; gap: 2px; }
.timeline-character-strip .forecast-character.compact img,
.timeline-character-strip .forecast-character.compact .forecast-avatar { width: 32px; height: 32px; }
.timeline-character-strip .forecast-character.compact strong { color: #111; font-size: 9px; line-height: 1.15; white-space: normal; }
.timeline-character-strip .forecast-candidate-confidence,
.timeline-character-strip .forecast-candidate-probability { display: none; }

@media (max-width: 920px) {
  .forecast-phase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .forecast-version { padding: 13px; }
  .forecast-version-head { align-items: start; flex-direction: column; gap: 8px; }
  .forecast-version-head h3 { font-size: 22px; }
  .forecast-phase-card { padding: 13px; }
  .forecast-phase-head h3 { font-size: 19px; }
  .forecast-large-list { grid-template-columns: 1fr; }
  .forecast-large-item .forecast-character { grid-template-columns: 64px minmax(0, 1fr); }
  .forecast-large-item .forecast-character img,
  .forecast-large-item .forecast-character .forecast-avatar { width: 64px; height: 64px; }
  .forecast-large-item .forecast-character strong { font-size: 15px; }
  .timeline-row { min-height: 0; }
  .timeline-bar { height: auto; min-height: 0; overflow: visible; }
  .timeline-character-strip { position: static; margin-top: 7px; padding-left: 0; }
  .timeline-character-strip .forecast-character.compact { width: 52px; }
  .timeline-character-strip .forecast-character.compact img,
  .timeline-character-strip .forecast-character.compact .forecast-avatar { width: 42px; height: 42px; }
  .timeline-character-strip .forecast-character.compact strong { font-size: 10px; }
  .party-tier-card .team-character-link { grid-template-columns: 58px minmax(0, 1fr); min-height: 70px; }
  .party-tier-card .team-character-image { width: 58px; height: 58px; }
  .party-tier-card .team-character-link span:last-child { font-size: 14px; }
  .team-card .team-character-link { grid-template-columns: 52px minmax(0, 1fr); min-height: 62px; }
  .team-card .team-character-image { width: 52px; height: 52px; }
  .team-card .team-character-link span:last-child { font-size: 13px; }
}

@media (max-width: 430px) {
  .forecast-phase-card { padding: 11px; }
  .forecast-block { padding: 10px; }
  .forecast-large-item .forecast-character { grid-template-columns: 58px minmax(0, 1fr); }
  .forecast-large-item .forecast-character img,
  .forecast-large-item .forecast-character .forecast-avatar { width: 58px; height: 58px; }
  .party-tier-card .team-character-link { grid-template-columns: 52px minmax(0, 1fr); }
  .party-tier-card .team-character-image { width: 52px; height: 52px; }
  .bangboo-options { grid-template-columns: 1fr; }
}
.detail-source-link { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 8px; color: #111111; border: 1px solid #b5b7b3; background: #f3f3f0; font-size: 11px; font-weight: 900; text-decoration: none; }
.detail-source-link:hover { border-color: var(--cyan); box-shadow: 3px 3px 0 var(--cyan); }

@media (max-width: 620px) {
  .detail-source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-source-link { min-width: 0; line-height: 1.35; }
}

/* 2026-09-16: モバイルを情報アプリとして再調整。PCの見た目を縮めるのではなく、
   画面幅・タップ領域・ダイアログ内スクロールをスマートフォン用に切り替える。 */
.mobile-nav { display: none; }
.app-shell,
.main-inner,
.panel,
.hero,
.build-card,
.source-card,
.banner-group,
.candidate-card,
.party-tier-card,
.gacha-now-card,
.gacha-next-card { min-width: 0; }

button,
a,
input,
select { max-width: 100%; }

img { max-width: 100%; }

.gacha-priority { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr); gap: 14px; }
.gacha-now-card,
.gacha-next-card { min-height: 0; padding: 20px; }
.gacha-now-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.gacha-now-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: 14px; }
.gacha-now-heading h2,
.gacha-next-card h2 { margin: 0; color: #111111; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; font-weight: 1000; overflow-wrap: anywhere; }
.gacha-now-heading p,
.gacha-next-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gacha-countdown { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; padding: 6px 9px; color: #111111; border: 1px solid #111111; background: var(--cyan); font-size: 12px; font-weight: 1000; white-space: nowrap; }
.gacha-countdown.is-ended { color: #ffffff; background: #555851; }
.now-banner-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.now-banner-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; padding: 7px; border: 1px solid #c3c5c0; background: #f3f3f0; }
.now-banner-item .item-thumb { width: 48px; height: 48px; }
.now-banner-item strong,
.now-banner-item span { display: block; overflow-wrap: anywhere; }
.now-banner-item strong { color: #111111; font-size: 14px; line-height: 1.25; }
.now-banner-item span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.next-item-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.next-item-list span { padding: 6px 8px; color: #111111; border: 1px solid #b8bab5; background: #f4f4f1; font-size: 12px; font-weight: 900; }
.banner-state { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 7px; border: 1px solid #9b9d99; color: #555851; background: #f1f1ed; font-size: 10px; font-weight: 1000; }
.banner-state-active { color: #111111; border-color: #111111; background: var(--cyan); }
.banner-state-upcoming { color: #111111; background: #ffe477; }
.banner-state-ended { color: #777873; background: #e8e8e3; }
.confidence-guide { display: flex; flex-wrap: wrap; gap: 6px; }
.confidence.confirmed-external,
.timeline-bar.confirmed-external,
.legend-dot.confirmed-external { color: #111111; border-color: #111111; background: #b9f0ff; }
.timeline-bar.confirmed-external { color: #111111; }
.gacha-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gacha-history-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; min-width: 0; padding: 9px; border: 1px solid #b9bbb7; background: #ffffff; }
.history-character { display: grid; gap: 5px; min-width: 0; align-content: start; color: #111111; text-decoration: none; }
.history-character img { width: 56px; height: 56px; object-fit: cover; border: 1px solid #111111; background: #222222; }
.history-character strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.25; }
.history-card-copy { min-width: 0; }
.history-card-meta,
.history-summary { display: flex; flex-wrap: wrap; gap: 5px; }
.history-card-meta span,
.history-summary span { padding: 3px 5px; color: #333531; border: 1px solid #d0d1cd; background: #f3f3f0; font-size: 10px; font-weight: 900; }
.history-card-copy p { margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.history-mini-list { display: flex; flex-wrap: wrap; gap: 4px; }
.history-mini-list span { color: var(--muted); font-size: 10px; }
.history-empty { padding: 10px; color: var(--muted); border-left: 3px solid #b8bab5; background: #f1f1ed; font-size: 12px; line-height: 1.55; }
.character-history { display: grid; gap: 10px; }
.history-list { display: grid; gap: 5px; }
.history-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 6px; border-bottom: 1px solid #d6d7d3; color: var(--muted); font-size: 11px; }
.history-version { color: #111111; font-weight: 950; }
.history-type { padding: 3px 5px; font-size: 10px; font-weight: 950; }
.history-type.new { background: var(--cyan); color: #111111; }
.history-type.rerun { background: #ffe477; color: #111111; }

.gacha-archive-list { display: grid; gap: 12px; }
.gacha-archive-version { overflow: hidden; border: 1px solid #aeb0ac; background: #ffffff; }
.gacha-archive-version-head { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; color: #ffffff; background: #111111; }
.gacha-archive-version-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.gacha-archive-version-title .tiny-label { color: #111111; background: var(--cyan); border-color: var(--cyan); }
.gacha-archive-version-title strong { font-size: 20px; line-height: 1; letter-spacing: -.02em; }
.gacha-archive-version-head > span { color: #d7d7d2; font-size: 11px; font-weight: 900; white-space: nowrap; }
.gacha-archive-phase-list { display: grid; }
.gacha-archive-phase { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px; border-top: 1px solid #d3d4d0; }
.gacha-archive-phase:first-child { border-top: 0; }
.gacha-archive-phase-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.gacha-archive-phase-meta > div { display: grid; gap: 4px; min-width: 0; }
.gacha-archive-phase-meta strong { color: #111111; font-size: 13px; }
.gacha-archive-phase-meta > div > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.gacha-archive-agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.gacha-archive-agent { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; padding: 6px; color: #111111; border: 1px solid #c7c8c4; background: #f7f7f4; text-decoration: none; }
.gacha-archive-agent:hover,
.gacha-archive-agent:focus-visible { border-color: #111111; outline: none; background: #ffffff; box-shadow: 3px 3px 0 #111111; }
.gacha-archive-agent-image { width: 48px; height: 48px; object-fit: cover; border: 1px solid #111111; background: #222222; }
.gacha-archive-agent-copy { display: grid; gap: 2px; min-width: 0; }
.gacha-archive-agent-copy strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.25; }
.gacha-archive-agent-copy small { color: var(--muted); font-size: 9px; font-weight: 800; }
.gacha-archive-agent .history-type { justify-self: end; white-space: nowrap; }
.forecast-method { overflow-wrap: anywhere; }

.team-category { display: inline-flex; min-height: 22px; align-items: center; padding: 3px 6px; color: #111111; border: 1px solid #b5b7b3; background: #e7efef; font-size: 10px; font-weight: 950; }
.team-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.team-meta span { padding: 3px 6px; color: #555851; border: 1px solid #d0d1cc; background: #f1f1ed; font-size: 10px; font-weight: 900; }
.team-bangboo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; color: #555851; font-size: 11px; line-height: 1.45; }
.team-bangboo strong { color: #111111; }
.team-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.team-detail-box { min-width: 0; padding: 7px; background: #f1f1ed; }
.team-detail-box strong { display: block; color: #111111; font-size: 11px; }
.team-detail-box ul { margin: 4px 0 0; padding-left: 16px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.team-more { margin-top: 10px; border-top: 1px solid #cfd0cc; }
.team-more summary { min-height: 44px; padding: 12px 2px 7px; cursor: pointer; color: #111111; font-size: 13px; font-weight: 1000; list-style-position: inside; }
.team-list-extra { margin-top: 3px; }
.compatibility-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.compatibility-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; gap: 5px 7px; min-width: 0; min-height: 70px; padding: 6px; cursor: pointer; color: #111111; border: 1px solid #babcb8; background: #ffffff; text-align: left; }
.compatibility-card:hover,
.compatibility-card:focus-visible { border-color: #111111; outline: none; background: var(--cyan); box-shadow: 3px 3px 0 #111111; }
.compatibility-card img { width: 42px; height: 42px; grid-row: 1 / span 2; object-fit: cover; border: 1px solid #111111; background: #222222; }
.compatibility-card span { display: grid; min-width: 0; gap: 1px; }
.compatibility-card strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.2; }
.compatibility-card small { color: var(--muted); font-size: 9px; line-height: 1.2; }
.compatibility-card em { color: #b35e00; font-size: 10px; font-style: normal; letter-spacing: -.1em; }
.compatibility-card b { grid-column: 2; color: var(--muted); font-size: 9px; }
.bangboo-list { display: flex; flex-wrap: wrap; gap: 7px; }
.bangboo-chip { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 6px 8px; color: #111111; border: 1px solid #b8bab5; background: #ffffff; font-size: 12px; font-weight: 950; }
.bangboo-chip strong { padding: 2px 4px; color: #111111; background: var(--cyan); font-size: 9px; }
.detail-accordion { padding: 0 !important; overflow: hidden; }
.detail-accordion summary { min-height: 48px; padding: 15px; cursor: pointer; color: #111111; font-size: 16px; font-weight: 1000; list-style-position: inside; }
.detail-accordion summary::marker { color: var(--red); }
.detail-accordion-body { padding: 0 15px 15px; }
.item-option-copy { min-width: 0; }
.item-option-copy strong,
.item-option-copy small { overflow-wrap: anywhere; }
.item-option-rating { color: #a44d00 !important; font-weight: 1000; }

@media (max-width: 840px) {
  :root { --mobile-nav-height: 72px; }
  html,
  body { min-width: 320px; overflow-x: hidden; }
  body { padding-bottom: 0; font-size: 14px; }
  .app-rail { display: none; }
  .app-main { min-width: 0; margin-left: 0; padding: 18px 14px calc(92px + env(safe-area-inset-bottom)); overflow-x: clip; }
  .app-main::before { top: 130px; right: 0; width: 100%; height: 170px; opacity: .36; }
  .app-main::after { top: 195px; right: 0; width: 100%; height: 220px; opacity: .38; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 100; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; min-height: var(--mobile-nav-height); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 2px solid #111111; background: rgba(14,14,14,.97); box-shadow: 0 -5px 0 rgba(223,255,0,.92); }
  .mobile-nav-link { display: grid; min-width: 0; min-height: 52px; place-items: center; align-content: center; gap: 2px; color: #d6d6d3; text-decoration: none; }
  .mobile-nav-link.is-active { color: #111111; background: var(--cyan); }
  .mobile-nav-icon { display: grid; width: 25px; height: 23px; place-items: center; color: var(--cyan); font-size: 15px; line-height: 1; }
  .mobile-nav-link.is-active .mobile-nav-icon { color: #111111; }
  .mobile-nav-label { overflow: hidden; max-width: 100%; font-size: 11px; font-weight: 950; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  .page-head { display: block; margin-bottom: 18px; }
  .page-title { max-width: 100%; font-size: clamp(28px, 8vw, 40px); overflow-wrap: anywhere; }
  .page-lead { max-width: 45rem; font-size: 14px; line-height: 1.65; }
  .head-meta { justify-content: flex-start; margin-top: 10px; font-size: 11px; }
  .page-banner { grid-template-columns: minmax(0, 1fr) 36%; min-height: 128px; }
  .page-banner-copy { padding: 16px; }
  .page-banner-title { font-size: clamp(20px, 6vw, 30px); overflow-wrap: anywhere; }
  .page-banner-note { font-size: 11px; line-height: 1.5; }
  .panel,
  .hero { padding: 15px; }
  .panel-head { align-items: flex-start; gap: 9px; }
  .panel-title { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
  .panel-kicker { font-size: 12px; line-height: 1.55; }
  .gacha-priority { grid-template-columns: 1fr; gap: 10px; }
  .gacha-now-card,
  .gacha-next-card { padding: 14px; }
  .gacha-now-heading { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 9px; }
  .gacha-countdown { justify-self: start; min-height: 36px; font-size: 12px; white-space: normal; }
  .now-banner-items { grid-template-columns: 1fr; }
  .gacha-history-grid { grid-template-columns: 1fr; }
  .gacha-archive-version-head { align-items: flex-start; }
  .gacha-archive-version-title { align-items: flex-start; }
  .gacha-archive-version-head > span { white-space: normal; text-align: right; }
  .gacha-archive-phase { grid-template-columns: 1fr; gap: 9px; padding: 10px; }
  .gacha-archive-phase-meta { align-items: center; }
  .gacha-archive-agents { grid-template-columns: 1fr; }
  .gacha-archive-agent { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .history-row { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .build-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .build-toolbar input { grid-column: 1 / -1; }
  .build-toolbar .button { min-height: 44px; grid-column: 1 / -1; }
  .build-filter-panel { padding: 12px; }
  .build-filter-row { display: block; padding-top: 10px; }
  .build-filter-label { display: block; min-height: 28px; padding-top: 0; }
  .build-filter-buttons { gap: 6px; overflow: visible; }
  .build-quick-filter { min-height: 44px; padding: 8px 10px; font-size: 13px; }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .build-card { min-height: 0; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: none; }
  .character-art { min-height: 150px; height: 100%; }
  .build-body { min-width: 0; padding: 11px; }
  .build-name { font-size: 17px; overflow-wrap: anywhere; }
  .build-faction { overflow-wrap: anywhere; }
  .chip-row { gap: 5px; }
  .chip-row > * { max-width: 100%; overflow-wrap: anywhere; }
  .build-rank-line { align-items: flex-start; flex-wrap: wrap; }
  .card-gear-row { grid-template-columns: 1fr; }
  .card-gear strong { white-space: normal; overflow-wrap: anywhere; }
  .party-tier-row { grid-template-columns: 1fr; gap: 8px; }
  .party-tier-badge { min-height: 52px; grid-auto-flow: column; grid-template-columns: auto auto; justify-content: start; justify-items: start; gap: 9px; padding: 0 12px; }
  .party-tier-list { grid-template-columns: 1fr; }
  .party-tier-card { padding: 12px; }
  .party-card-head { display: grid; grid-template-columns: minmax(0, 1fr); }
  .party-card-rank { justify-self: start; white-space: normal; }
  .party-members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .party-members .team-character-link { min-width: 0; width: 100%; flex: none; }
  .party-tier-card p { font-size: 14px; }
  .ranking-board { min-width: 0; }
  .rank-tier-row { grid-template-columns: 1fr; gap: 8px; }
  .rank-character-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranking-character { min-width: 0; min-height: 58px; width: 100%; }
  .ranking-character strong { overflow-wrap: anywhere; }
  .timeline-scroll { overflow: visible; padding-bottom: 0; }
  .timeline { min-width: 0; }
  .timeline-scale { display: none; }
  .timeline-row { display: grid; grid-template-columns: 1fr; min-height: 0; margin-left: 8px; padding: 0 0 14px 14px; border-left: 3px solid #c3c5c0; }
  .timeline-row:last-child { padding-bottom: 0; }
  .timeline-row-label { display: flex; flex-wrap: wrap; gap: 5px 8px; padding: 0 0 7px; color: #111111; font-size: 12px; }
  .timeline-row-label span { font-size: 15px; font-weight: 1000; }
  .timeline-row-label small { color: var(--muted); font-size: 11px; }
  .timeline-track { display: block; min-height: 0; border: 0; background: none; }
  .timeline-track::before,
  .timeline-now { display: none; }
  .timeline-bar { position: relative !important; top: auto !important; left: auto !important; display: grid; width: 100% !important; min-width: 0; height: auto; gap: 5px; padding: 11px 12px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); color: #111111; font-size: 13px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
  .timeline-bar small { font-size: 11px; font-weight: 800; }
  .timeline-legend { margin: 14px 0 0; gap: 8px 12px; font-size: 11px; }
  .banner-group { padding: 14px; }
  .group-head { display: grid; gap: 10px; }
  .group-heading { gap: 5px; }
  .group-period { display: grid; gap: 7px; justify-items: start; }
  .group-period strong { font-size: 14px; overflow-wrap: anywhere; }
  .group-grid { grid-template-columns: 1fr; gap: 15px; }
  .banner-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 7px; }
  .banner-item .item-thumb { width: 44px; height: 44px; }
  .item-name { overflow-wrap: anywhere; }
  .forecast-roadmap { grid-template-columns: 1fr; }
  .rerun-forecast-grid { grid-template-columns: 1fr; }
  .build-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .dialog-head { position: sticky; top: 0; z-index: 4; grid-template-columns: 68px minmax(0, 1fr) auto; min-width: 0; }
  .dialog-portrait { width: 68px; height: 82px; }
  .dialog-heading { min-width: 0; padding: 10px; }
  .dialog-heading .build-name { font-size: 21px; overflow-wrap: anywhere; }
  .dialog-rank-summary { gap: 4px 6px; margin-top: 8px; padding-top: 7px; }
  .dialog-rank-summary p { font-size: 11px; line-height: 1.4; }
  .dialog-close { min-width: 52px; min-height: 52px; margin: 8px; padding: 8px; }
  .dialog-content { grid-template-columns: 1fr; gap: 10px; max-height: none; padding: 10px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
  .detail-panel { padding: 13px; }
  .detail-panel h3 { font-size: 16px; overflow-wrap: anywhere; }
  .detail-panel p,
  .detail-panel li { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
  .item-option { grid-template-columns: 52px minmax(0, 1fr); min-width: 0; }
  .item-option-art { width: 52px; height: 52px; }
  .item-option-copy small { font-size: 11px; line-height: 1.45; }
  .team-card { grid-template-columns: 26px minmax(0, 1fr); gap: 7px; }
  .team-members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-character-link { min-width: 0; min-height: 44px; width: 100%; padding: 4px; }
  .team-character-link img,
  .team-avatar-placeholder { width: 30px; height: 30px; }
  .team-character-link span:last-child { font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
  .team-detail-grid { grid-template-columns: 1fr; }
  .compatibility-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compatibility-card { min-height: 76px; }
  .detail-accordion summary { min-height: 52px; padding: 15px 13px; }
  .detail-accordion-body { padding: 0 13px 13px; }
  .source-grid,
  .source-group .source-grid { grid-template-columns: 1fr; }
  .source-card { padding: 14px; }
  .source-card p { font-size: 14px; line-height: 1.65; }
  .source-card a { min-height: 44px; align-items: center; }
}

@media (max-width: 600px) {
  .build-grid { grid-template-columns: 1fr; gap: 10px; }
  .build-card { grid-template-columns: 104px minmax(0, 1fr); }
  .character-art { min-height: 164px; }
  .build-name { font-size: 18px; }
  .candidate-summary span { font-size: 11px; }
  .party-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compatibility-list { grid-template-columns: 1fr 1fr; }
  .page-banner { grid-template-columns: minmax(0, 1fr) 30%; }
  .page-banner-art { min-height: 130px; }
}

@media (max-width: 430px) {
  .app-main { padding-right: 10px; padding-left: 10px; }
  .panel,
  .hero { padding: 13px; }
  .page-title { font-size: 30px; }
  .page-lead { font-size: 14px; }
  .page-banner-copy { padding: 13px; }
  .page-banner-title { font-size: 22px; }
  .page-banner-note { font-size: 10px; }
  .build-card { grid-template-columns: 92px minmax(0, 1fr); }
  .character-art { min-height: 152px; }
  .build-body { padding: 10px; }
  .build-name { font-size: 17px; }
  .build-faction { font-size: 11px; }
  .rank-character-list { grid-template-columns: 1fr; }
  .party-members { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .party-members .team-character-link { display: grid; grid-template-columns: 30px minmax(0, 1fr); }
  .party-members .team-character-link span:last-child { font-size: 10px; }
  .history-row { grid-template-columns: 1fr auto; }
  .history-row > :nth-child(2) { grid-column: 1; }
  .history-row > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
  .team-members { grid-template-columns: 1fr; }
  .compatibility-list { grid-template-columns: 1fr; }
  .mobile-nav-label { font-size: 10px; }
  .mobile-nav { gap: 2px; padding-right: 5px; padding-left: 5px; }
}

@media (min-width: 841px) {
  .mobile-nav { display: none !important; }
}

/* 追加修正：スマホ実用性、画像比率、ボンプ表示、出典ページの最終カスケード */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body,
.app-shell,
.app-main,
.main-inner { min-width: 0; max-width: 100%; }

button,
a,
input,
select,
textarea { max-width: 100%; }

.character-art { position: relative; min-height: 0; height: 172px; aspect-ratio: 0.74; overflow: hidden; }
.character-card-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; image-rendering: auto; }
.dialog-head { grid-template-columns: minmax(0, 1fr) auto; }
.dialog-head-character { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-width: 0; align-items: stretch; }
.ranking-character-image,
.compatibility-image,
.history-character-image,
.team-character-image { display: block; object-fit: cover; object-position: 50% 18%; }
.ranking-character-image { width: 44px; height: 44px; }
.compatibility-image { width: 42px; height: 42px; grid-row: 1 / span 2; border: 1px solid #111; background: #222; }
.history-character-image { width: 56px; height: 56px; border: 1px solid #111; background: #222; }
.team-character-image { width: 30px; height: 30px; border: 1px solid #111; background: #222; }

.team-bangboo { display: grid; gap: 7px; margin-top: 10px; padding: 8px; border: 1px solid #c3c5c0; background: #f6f6f3; }
.team-bangboo-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.team-bangboo-heading strong { color: #111; font-size: 11px; }
.team-bangboo-heading span { color: #6a6c66; font-size: 10px; font-weight: 800; }
.bangboo-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; min-width: 0; }
.bangboo-option { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px; align-items: center; min-width: 0; padding: 4px; border: 1px solid #d0d1cd; background: #fff; }
.bangboo-option.is-primary { border-color: #111; box-shadow: inset 3px 0 0 var(--cyan); }
.bangboo-image,
.bangboo-image-placeholder { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #111; background: #20211f; color: var(--cyan); }
.bangboo-image { object-fit: cover; }
.bangboo-image-placeholder { align-content: center; gap: 1px; text-align: center; }
.bangboo-image-placeholder span { font-size: 10px; font-weight: 1000; line-height: 1; }
.bangboo-image-placeholder small { color: #f0f0ec; font-size: 8px; line-height: 1.1; }
.bangboo-option-copy { display: grid; min-width: 0; gap: 2px; }
.bangboo-option-copy strong { overflow-wrap: anywhere; color: #111; font-size: 11px; line-height: 1.2; }
.bangboo-option-copy small { color: #6a6c66; font-size: 9px; line-height: 1.2; }
.bangboo-unconfirmed { color: #777873; font-size: 10px; }
.party-tier-card .team-bangboo { margin-top: 9px; }
.party-tier-card .bangboo-options { grid-template-columns: minmax(0, 1fr); }
.party-tier-card .bangboo-option { grid-template-columns: 34px minmax(0, 1fr); }
.party-tier-card .bangboo-image,
.party-tier-card .bangboo-image-placeholder { width: 34px; height: 34px; }

.forecast-candidate-list { align-items: stretch; }
.forecast-character-copy { display: grid; min-width: 0; gap: 1px; }
.forecast-candidate-probability { width: fit-content; padding: 3px 7px; color: #fff; background: #111; border: 1px solid #111; font-size: 11px; font-weight: 1000; line-height: 1.2; }
.forecast-candidate-certainty { width: fit-content; padding: 3px 7px; color: #111; background: #ffe477; border: 1px solid #111; font-size: 10px; font-weight: 1000; line-height: 1.2; }
.forecast-large-item.is-new .forecast-candidate-probability { color: #111; background: var(--cyan); }
.forecast-large-item.is-rerun .forecast-candidate-probability { color: #111; background: #ffd8d8; }
.forecast-candidate-confidence,
.forecast-candidate-priority { color: #555851; font-size: 9px; line-height: 1.2; overflow-wrap: anywhere; }
.forecast-character-image { width: 44px; height: 44px; object-fit: cover; object-position: 50% 18%; border: 1px solid #111; background: #222; }

.source-toolbar { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, .7fr) auto; gap: 8px; margin-top: 14px; }
.source-toolbar .field { min-width: 0; }
.source-card[hidden],
.source-group[hidden] { display: none; }
.detail-source-note { display: block; margin-top: 8px; color: #6a6c66; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }

.timeline-panel .timeline-row-label { color: #111; }
.timeline-panel .timeline-row-label small { color: #5f625c; }

@media (max-width: 840px) {
  html,
  body { overflow-x: hidden; }
  .app-main { overflow-x: clip; }
  .character-art { height: 150px; min-height: 0; aspect-ratio: auto; }
  .character-card-image { height: 150px; }
  .timeline-panel .timeline-row-label { color: #f5f5f1 !important; }
  .timeline-panel .timeline-row-label small { color: #c8cac5 !important; }
  .timeline-panel .timeline-row-label .confidence { color: #111 !important; }
  .timeline-panel .timeline-legend { color: #e5e5e1; }
  .timeline-panel .timeline-legend .muted { color: #c8cac5; }
  .source-toolbar { grid-template-columns: 1fr; }
  .source-toolbar .button { min-height: 44px; }
  .build-filter-heading { align-items: flex-start; gap: 4px; }
  .build-filter-heading span { font-size: 11px; }
  .build-filter-buttons { display: flex; flex-wrap: wrap; }
  .build-quick-filter small { margin-left: 3px; color: inherit; font-size: 10px; opacity: .8; }
  .team-bangboo { padding: 7px; }
  .bangboo-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 60px; height: 60px; padding: 4px 8px; align-items: center; }
  .dialog-head-character { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-width: 0; align-items: center; gap: 7px; }
  .dialog-portrait { width: 52px; height: 52px; object-fit: cover; object-position: 50% 18%; }
  .dialog-heading { min-width: 0; padding: 0 4px; }
  .dialog-heading .eyebrow { max-width: 100%; overflow: hidden; font-size: 9px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  .dialog-heading .build-name { font-size: 17px; line-height: 1.15; }
  .dialog-heading .chip-row { gap: 3px; margin-top: 2px !important; }
  .dialog-heading .chip-row > * { min-height: 20px; padding: 2px 5px; font-size: 9px; }
  .dialog-rank-summary { display: none; }
  .dialog-close { min-width: 44px; width: 44px; min-height: 44px; height: 44px; margin: 0; padding: 5px; font-size: 11px; }
  .dialog-content { padding-top: 10px; }
  .detail-overview-grid { grid-template-columns: 1fr; gap: 8px; }
  .team-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-character-link { min-width: 0; }
  .team-character-image { width: 30px; height: 30px; }
}

@media (max-width: 600px) {
  .build-card { grid-template-columns: 104px minmax(0, 1fr); }
  .character-art,
  .character-card-image { height: 164px; }
  .party-tier-card .bangboo-options { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .character-art,
  .character-card-image { height: 152px; }
  .build-card { grid-template-columns: 92px minmax(0, 1fr); }
  .bangboo-options { grid-template-columns: 1fr; }
  .dialog-head { padding-right: 6px; padding-left: 6px; }
  .dialog-head-character { grid-template-columns: 48px minmax(0, 1fr); gap: 5px; }
  .dialog-portrait { width: 48px; height: 48px; }
  .dialog-heading .build-name { font-size: 16px; }
  .dialog-heading .chip-row > * { font-size: 8px; }
}

@media (max-width: 340px) {
  .app-main { padding-right: 8px; padding-left: 8px; }
  .panel,
  .hero { padding: 11px; }
  .build-card { grid-template-columns: 84px minmax(0, 1fr); }
  .character-art,
  .character-card-image { height: 142px; }
  .build-body { padding: 8px; }
  .build-name { font-size: 16px; }
  .dialog-head-character { grid-template-columns: 44px minmax(0, 1fr); }
  .dialog-portrait { width: 44px; height: 44px; }
}


/* 2026-09-18: item assets / fallback visibility / timeline composition fixes */
[hidden],
.character-image-placeholder[hidden] { display: none !important; }

/* compact party cards should not squeeze Bangboo copy into a vertical column */
.party-tier-card .team-bangboo { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; overflow: hidden; }
.party-tier-card .bangboo-options { display: block; width: 100%; min-width: 0; }
.party-tier-card .bangboo-option { display: grid; grid-template-columns: 48px minmax(0, 1fr); width: 100%; min-width: 0; min-height: 58px; gap: 8px; align-items: center; }
.party-tier-card .bangboo-image,
.party-tier-card .bangboo-image-placeholder { width: 48px; height: 48px; }
.party-tier-card .bangboo-option-copy { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 2px; }
.party-tier-card .bangboo-option-copy strong,
.party-tier-card .bangboo-option-copy small { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.party-tier-card .bangboo-option-copy em { display: none; }

/* character portraits now live inside the coloured name/date band */
.timeline-row { min-height: 92px; }
.timeline-bar { top: 13px; display: grid; height: auto; min-height: 68px; padding: 6px 10px; align-content: center; gap: 2px; line-height: 1.15; white-space: normal; overflow: hidden; }
.timeline-bar > strong { display: block; min-width: 0; font-size: 11px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-bar > small { display: block; min-width: 0; font-size: 9px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-bar .timeline-character-strip { position: static; z-index: auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; min-width: 0; margin: 2px 0 0; padding: 0; overflow: hidden; }
.timeline-bar .forecast-character.compact { display: flex; width: auto; min-width: 0; max-width: 76px; align-items: center; gap: 3px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.timeline-bar .forecast-character.compact img,
.timeline-bar .forecast-character.compact .forecast-avatar { width: 20px; height: 20px; flex: 0 0 20px; border-width: 1px; }
.timeline-bar .forecast-character.compact .forecast-character-copy { display: block; min-width: 0; }
.timeline-bar .forecast-character.compact strong { display: block; min-width: 0; color: inherit; font-size: 7px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-bar .forecast-candidate-confidence,
.timeline-bar .forecast-candidate-priority { display: none; }

@media (max-width: 720px) {
  .timeline-bar { padding: 10px 12px; min-height: 0; }
  .timeline-bar .timeline-character-strip { flex-wrap: wrap; gap: 6px; overflow: visible; }
  .timeline-bar .forecast-character.compact { max-width: none; min-width: 72px; }
  .timeline-bar .forecast-character.compact img,
  .timeline-bar .forecast-character.compact .forecast-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .timeline-bar .forecast-character.compact strong { font-size: 10px; white-space: normal; }
  .party-tier-card .bangboo-option { grid-template-columns: 52px minmax(0, 1fr); }
  .party-tier-card .bangboo-image,
  .party-tier-card .bangboo-image-placeholder { width: 52px; height: 52px; }
}


/* Resource guides: Denny / Polychrome */
.resource-hero { position: relative; display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 22px; align-items: center; padding: 26px; overflow: hidden; border: 1px solid #111; background: #f4f4f0; box-shadow: 7px 7px 0 #111; }
.resource-hero::after { content: ""; position: absolute; inset: auto -55px -80px auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(0,0,0,.05); pointer-events: none; }
.resource-hero-denny { border-top: 8px solid #f0bf2d; }
.resource-hero-polychrome { border-top: 8px solid var(--cyan); }
.resource-hero-art { position: relative; display: grid; width: 132px; height: 132px; place-items: center; }
.resource-hero-image { width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(6px 6px 0 #b9bbb5); }
.resource-hero-code { position: absolute; right: -5px; bottom: -5px; display: grid; width: 34px; height: 34px; place-items: center; color: #111; border: 2px solid #111; background: var(--cyan); font-size: 16px; font-weight: 1000; line-height: 1; }
.resource-hero-denny .resource-hero-code { background: #f0bf2d; }
.resource-hero h2 { margin: 3px 0 8px; font-size: clamp(28px,4vw,46px); line-height: 1.05; }
.resource-hero p { max-width: 850px; margin: 0; color: #444640; line-height: 1.75; }
.resource-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.resource-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.resource-metrics article { display: grid; gap: 4px; min-height: 126px; padding: 16px; border: 1px solid #111; background: #fff; box-shadow: 3px 3px 0 #c6c8c2; }
.resource-metrics small { color: #666862; font-size: 11px; font-weight: 900; }
.resource-metrics strong { color: #111; font-size: 25px; line-height: 1.1; }
.resource-metrics span { color: #555850; font-size: 11px; line-height: 1.45; }
.resource-priority-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.resource-priority-card { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; min-width: 0; padding: 14px; border: 1px solid #bbbdb7; background: #fff; }
.resource-rank { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid #111; background: #111; color: #fff; font-size: 14px; font-weight: 1000; }
.resource-card-head { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: space-between; }
.resource-card-head strong { color: #111; font-size: 15px; }
.resource-card-head span { padding: 3px 7px; background: #e7e8e3; font-size: 9px; font-weight: 1000; }
.resource-priority-card b { display: block; margin-top: 5px; color: #111; font-size: 20px; }
.resource-priority-card p { margin: 5px 0 0; color: #5c5e58; font-size: 12px; line-height: 1.55; }
.resource-routine-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.resource-checklist { display: grid; gap: 9px; }
.resource-checklist-summary { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 2px; color: #666862; font-size: 11px; }
.resource-checklist-summary strong { color: #111; font-size: 14px; }
.resource-checklist-summary small { margin-left: auto; color: #777a73; font-size: 10px; font-weight: 900; }
.resource-check-list { display: grid; gap: 8px; }
.resource-check { position: relative; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 60px; padding: 10px 11px; border: 1px solid #bfc1bb; background: #fff; cursor: pointer; transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.resource-check:hover { border-color: #111; transform: translateX(2px); }
.resource-check input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; clip-path: inset(50%); }
.resource-check input:focus-visible + .resource-check-box { outline: 3px solid rgba(73,180,194,.45); outline-offset: 2px; }
.resource-check-box { display: grid; width: 23px; height: 23px; place-items: center; color: transparent; border: 2px solid #111; background: #fff; font-size: 16px; font-weight: 1000; line-height: 1; }
.resource-check input:checked + .resource-check-box { color: #111; background: var(--cyan); }
.resource-check-copy { min-width: 0; }
.resource-check strong,.resource-check small { display: block; }
.resource-check strong { color: #111; font-size: 13px; line-height: 1.35; }
.resource-check small { margin-top: 3px; color: #676963; font-size: 10px; line-height: 1.4; }
.resource-check-state { min-width: 45px; padding: 4px 6px; color: #6d7069; border: 1px solid #d1d2cc; background: #f3f4ef; font-size: 9px; font-weight: 1000; text-align: center; }
.resource-check.is-complete { border-color: #7b9c34; background: #f5f9dd; }
.resource-check.is-complete .resource-check-copy strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.resource-check.is-complete .resource-check-state { color: #29430d; border-color: #b4ce5a; background: #dfff00; }
.resource-routine-badge { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 8px; color: #111; border: 2px solid #111; background: var(--cyan); font-size: 10px; font-weight: 1000; letter-spacing: .08em; }
.resource-calculator { margin-top: 14px; }
.resource-token { display: inline-flex; min-width: 52px; min-height: 34px; align-items: center; justify-content: center; padding: 4px 9px; border: 2px solid #111; background: var(--cyan); color: #111; font-weight: 1000; }
.resource-calc-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.resource-calc-fields label { display: grid; gap: 5px; color: #555850; font-size: 10px; font-weight: 900; }
.resource-calc-output { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-top: 12px; padding: 14px; border-left: 6px solid #111; background: #f0f1ec; }
.resource-calc-output strong { color: #111; font-size: 27px; }
.resource-calc-output span { color: #52544f; font-size: 12px; }
.resource-permanent-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.resource-permanent-grid article { padding: 12px; border: 1px solid #c7c9c3; background: #f7f7f3; }
.resource-permanent-grid strong,.resource-permanent-grid b { display: block; }
.resource-permanent-grid strong { color: #111; font-size: 13px; }
.resource-permanent-grid b { margin-top: 4px; font-size: 18px; }
.resource-permanent-grid p { margin: 5px 0 0; color: #62645f; font-size: 11px; line-height: 1.5; }
.resource-warning { display: grid; grid-template-columns: minmax(210px,.65fr) minmax(0,1.35fr); gap: 20px; padding: 20px; border: 2px solid #111; background: #111; color: #fff; }
.resource-warning h2 { margin: 4px 0 0; color: #fff; font-size: 24px; }
.resource-warning .eyebrow { color: var(--cyan); }
.resource-warning ul { display: grid; gap: 9px; margin: 0; padding-left: 19px; }
.resource-warning li { color: #e8e9e4; line-height: 1.6; font-size: 12px; }
.resource-home-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.resource-home-card { display: grid; grid-template-columns: 66px minmax(0,1fr); align-items: center; gap: 12px; min-height: 96px; padding: 12px; border: 1px solid #111; background: #fff; color: #111; text-decoration: none; transition: transform .12s ease,box-shadow .12s ease; }
.resource-home-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 #111; }
.resource-home-symbol { display: grid; width: 60px; height: 60px; overflow: hidden; place-items: center; border: 2px solid #111; border-radius: 50%; background: #111; }
.resource-home-image { width: 100%; height: 100%; object-fit: cover; }
.resource-home-card small,.resource-home-card strong,.resource-home-card em { display: block; }
.resource-home-card small { color: #72746e; font-size: 9px; font-weight: 900; }
.resource-home-card strong { margin-top: 2px; font-size: 16px; }
.resource-home-card em { margin-top: 5px; color: #555850; font-size: 10px; font-style: normal; font-weight: 800; }

@media (max-width: 900px) {
  .resource-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-permanent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .resource-hero { grid-template-columns: 82px minmax(0,1fr); gap: 13px; padding: 16px; box-shadow: 4px 4px 0 #111; }
  .resource-hero-art,.resource-hero-image { width: 76px; height: 76px; }
  .resource-hero-code { right: -3px; bottom: -3px; width: 26px; height: 26px; font-size: 12px; }
  .resource-hero h2 { font-size: 27px; }
  .resource-hero p { font-size: 12px; }
  .resource-priority-grid,.resource-routine-grid,.resource-home-grid { grid-template-columns: 1fr; }
  .resource-calc-fields { grid-template-columns: 1fr; }
  .resource-warning { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .resource-metrics,.resource-permanent-grid { grid-template-columns: 1fr; }
  .resource-metrics article { min-height: 0; }
  .resource-hero { grid-template-columns: 1fr; }
  .resource-hero-art,.resource-hero-image { width: 72px; height: 72px; }
  .resource-priority-card { grid-template-columns: 42px minmax(0,1fr); padding: 11px; }
  .resource-rank { width: 40px; height: 40px; }
}

@media (max-width: 840px) {
  .mobile-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding-right: 5px; padding-left: 5px; }
  .mobile-nav-link { min-height: 50px; }
  .mobile-nav-label { font-size: 9px; }
}
@media (max-width: 390px) {
  .mobile-nav-label { font-size: 8px; }
  .mobile-nav-icon { width: 22px; height: 21px; font-size: 14px; }
}

.resource-inline-bridge { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 12px; border: 1px solid #111; background: #f4f4f0; }
.resource-inline-bridge > span { display: grid; min-width: 0; gap: 3px; }
.resource-inline-bridge strong { color: #111; font-size: 13px; }
.resource-inline-bridge small { color: #62645e; font-size: 10px; line-height: 1.45; }
.resource-inline-bridge .button { flex: 0 0 auto; }
.resource-inline-bridge-panel { padding-top: 8px; padding-bottom: 8px; }
.resource-inline-bridge-panel .resource-inline-bridge { margin: 0; }
@media (max-width: 620px) {
  .resource-inline-bridge { align-items: stretch; flex-direction: column; }
  .resource-inline-bridge .button { width: 100%; }
}


.resource-recurring-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.resource-recurring-grid article { position:relative; display:grid; gap:4px; min-height:132px; padding:13px; border:1px solid #c8cac4; background:#f8f8f4; }
.resource-recurring-grid article > span { width:max-content; padding:3px 7px; border:1px solid #111; background:#fff; color:#555851; font-size:9px; font-weight:1000; }
.resource-recurring-grid strong { color:#111; font-size:13px; }
.resource-recurring-grid b { color:#111; font-size:20px; }
.resource-recurring-grid p { margin:0; color:#61635d; font-size:10px; line-height:1.5; }
.resource-spending-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.resource-spending-grid article { padding:13px; border:1px solid #bfc1bb; background:#fff; }
.resource-spending-grid strong,.resource-spending-grid b { display:block; }
.resource-spending-grid strong { font-size:12px; }
.resource-spending-grid b { margin-top:5px; color:#111; font-size:21px; }
.resource-spending-grid p { margin:6px 0 0; color:#656761; font-size:10px; line-height:1.55; }
.resource-battery-table { margin-top:12px; padding:12px; border:1px solid #111; background:#111; color:#fff; }
.resource-battery-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; align-items:baseline; margin-bottom:9px; }
.resource-battery-head strong { font-size:14px; }
.resource-battery-head span { color:#bfc1bb; font-size:10px; }
.resource-battery-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:5px; }
.resource-battery-grid > span { display:grid; gap:2px; min-width:0; padding:8px 5px; border:1px solid #494b46; background:#20211f; text-align:center; }
.resource-battery-grid small { color:#bfc1bb; font-size:8px; }
.resource-battery-grid strong { color:var(--cyan); font-size:17px; }
.resource-battery-grid em { color:#fff; font-size:9px; font-style:normal; }
.resource-guide-freshness { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.resource-guide-freshness span { padding:3px 7px; border:1px solid #c9cbc5; background:#f7f7f4; color:#656761; font-size:9px; font-weight:800; }

@media (max-width: 900px) {
  .resource-recurring-grid,.resource-spending-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .resource-battery-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .resource-recurring-grid,.resource-spending-grid { grid-template-columns:1fr; }
  .resource-battery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.resource-calc-presets { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.resource-calc-presets button { min-height:34px; padding:6px 10px; border:1px solid #111; background:#fff; color:#111; font:inherit; font-size:10px; font-weight:900; cursor:pointer; }
.resource-calc-presets button:hover,.resource-calc-presets button:focus-visible { background:var(--cyan); outline:none; }
@media (max-width:540px) {
  .resource-calc-presets { display:grid; grid-template-columns:1fr; }
  .resource-calc-presets button { width:100%; }
}

.resource-gacha-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.resource-gacha-grid article { min-width:0; padding:13px; border:1px solid #111; background:#fff; }
.resource-gacha-grid article > strong,.resource-gacha-grid article > b { display:block; }
.resource-gacha-grid article > strong { color:#111; font-size:13px; }
.resource-gacha-grid article > b { margin-top:5px; color:#111; font-size:24px; }
.resource-gacha-grid dl { display:grid; gap:5px; margin:10px 0 0; }
.resource-gacha-grid dl div { display:grid; grid-template-columns:38px minmax(0,1fr); gap:6px; align-items:start; padding-top:5px; border-top:1px solid #e0e1dc; }
.resource-gacha-grid dt { color:#777973; font-size:8px; font-weight:1000; }
.resource-gacha-grid dd { margin:0; color:#4e504b; font-size:10px; line-height:1.45; }
@media (max-width:900px) { .resource-gacha-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:540px) { .resource-gacha-grid { grid-template-columns:1fr; } }

.resource-data-note { margin:0 0 10px; padding:9px 11px; border-left:4px solid #e2a800; background:#fff8d8; color:#57554d; font-size:10px; line-height:1.55; }


.resource-current-events { border-top: 5px solid var(--red); }
.resource-event-status-group + .resource-event-status-group { margin-top: 18px; }
.resource-event-status-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.resource-event-status-heading h3 { margin: 0; color: #111; font-size: 14px; }
.resource-event-status-heading span { color: #6a6c66; font-size: 10px; }
.resource-event-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.resource-event-card { min-width: 0; padding: 14px; border: 1px solid #111; background: #fff; }
.resource-event-card.is-active { box-shadow: inset 5px 0 0 var(--cyan); }
.resource-event-card.is-upcoming { box-shadow: inset 5px 0 0 #9fdff1; }
.resource-event-card.is-ended { opacity: .55; filter: grayscale(.6); }
.resource-event-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.resource-event-head span,.resource-event-head strong { padding: 3px 7px; font-size: 9px; font-weight: 1000; }
.resource-event-head span { color: #111; background: #ffe2e2; border: 1px solid var(--red); }
.resource-event-head strong { color: #111; background: var(--cyan); border: 1px solid #111; }
.resource-event-card h3 { margin: 11px 0 5px; color: #111; font-size: 16px; line-height: 1.25; }
.resource-event-kind { display: inline-flex; width: fit-content; margin: 0 0 6px; padding: 3px 7px; border: 1px solid #111; background: #f0f1ec; color: #111; font-size: 9px; font-weight: 1000; line-height: 1.2; }
.resource-event-card > b { display: block; color: #111; font-size: 21px; }
.resource-event-card time { display: block; margin-top: 5px; color: #6a6c66; font-size: 10px; font-weight: 800; }
.resource-event-card p { margin: 8px 0 0; color: #565852; font-size: 11px; line-height: 1.55; }
.upcoming-character-panel { border-top: 5px solid var(--cyan); }
.upcoming-character-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 10px; }
.upcoming-character-card { display: grid; gap: 8px; min-width: 0; padding: 13px; border: 1px solid #111; background: #fff; }
.upcoming-character-card > div { display: grid; gap: 3px; }
.upcoming-character-card strong { color: #111; font-size: 18px; }
.upcoming-character-card span,.upcoming-character-card small { color: #646660; font-size: 10px; line-height: 1.45; }
.upcoming-character-card p { margin: 0; color: #50524e; font-size: 11px; line-height: 1.55; }
@media (max-width: 700px) { .resource-event-grid { grid-template-columns: 1fr; } }

.agent-spotlight {
  display: grid;
  grid-template-columns: minmax(190px, .62fr) minmax(0, 1.38fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  color: #fff;
  border: 2px solid #111;
  background: #161616;
  box-shadow: 10px 10px 0 var(--cyan);
}
.agent-spotlight-intro { display: flex; min-width: 0; align-items: start; flex-direction: column; justify-content: center; }
.agent-spotlight-intro .eyebrow { color: var(--cyan); font-size: 10px; font-weight: 1000; letter-spacing: .14em; }
.agent-spotlight-intro h2 { margin: 12px 0 0; color: #fff; font-size: clamp(26px, 3.2vw, 42px); font-weight: 1000; line-height: 1.02; letter-spacing: -.07em; }
.agent-spotlight-intro h2 em { color: var(--cyan); font-style: normal; }
.agent-spotlight-intro p { max-width: 260px; margin: 12px 0 0; color: #caccc8; font-size: 12px; line-height: 1.6; }
.agent-spotlight-intro > a { margin-top: 16px; color: var(--cyan); font-size: 11px; font-weight: 950; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.agent-spotlight-grid { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.agent-spotlight-card { position: relative; display: block; min-width: 0; min-height: 248px; overflow: hidden; isolation: isolate; color: #fff; border: 1px solid #424242; background: #272727; text-decoration: none; animation: zzz-rise-in .55s cubic-bezier(.2,.7,.25,1) both; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.agent-spotlight-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; filter: saturate(.92); transition: transform .45s cubic-bezier(.2,.7,.25,1), filter .3s ease; }
.agent-spotlight-card::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(180deg, rgba(0,0,0,.32), transparent 27%, rgba(0,0,0,.08) 48%, #111 100%); }
.agent-spotlight-card:hover { color: #fff; border-color: var(--cyan); box-shadow: 5px 5px 0 var(--cyan); transform: translateY(-3px); }
.agent-spotlight-card:hover img { filter: saturate(1.14); transform: scale(1.06); }
.agent-spotlight-state { position: absolute; top: 9px; left: 9px; max-width: calc(100% - 18px); padding: 5px 7px; overflow: hidden; color: #111; background: var(--cyan); font-size: 9px; font-weight: 1000; text-overflow: ellipsis; white-space: nowrap; }
.agent-spotlight-state.is-upcoming { color: #fff; background: #d33d35; }
.agent-spotlight-copy { position: absolute; right: 9px; bottom: 11px; left: 10px; display: grid; gap: 4px; }
.agent-spotlight-copy small { color: #e1e2df; font-size: 9px; line-height: 1.35; }
.agent-spotlight-copy strong { color: #fff; font-size: clamp(15px, 1.5vw, 20px); font-weight: 1000; line-height: 1.1; }
.agent-spotlight-index { position: absolute; top: 8px; right: 8px; color: rgba(255,255,255,.85); font-family: Impact, sans-serif; font-size: 22px; font-style: italic; text-shadow: 0 1px 5px #111; }
.home-event-panel { border-top: 5px solid var(--red); }
.home-event-panel .panel-head { align-items: end; }
.home-event-panel .eyebrow { display: block; margin-bottom: 5px; color: var(--red); font-size: 10px; font-weight: 1000; letter-spacing: .13em; }
.home-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-event-card { display: grid; min-width: 0; align-content: start; gap: 8px; padding: 15px; color: #111; border: 1px solid #111; background: #f7f7f4; text-decoration: none; animation: zzz-rise-in .55s cubic-bezier(.2,.7,.25,1) both; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.home-event-card:hover { color: #111; background: #fff; box-shadow: 5px 5px 0 #111; transform: translate(-2px, -2px); }
.home-event-card.is-upcoming { border-style: dashed; }
.home-event-state { width: fit-content; padding: 4px 7px; color: #111; border: 1px solid #111; background: var(--cyan); font-size: 9px; font-weight: 1000; }
.home-event-card strong { font-size: 16px; font-weight: 1000; line-height: 1.25; }
.home-event-card time { color: #646660; font-size: 10px; font-weight: 800; }
.home-event-card b { color: #111; font-size: 12px; }
.home-event-card em { color: #555850; font-size: 10px; font-style: normal; font-weight: 900; }
@keyframes zzz-rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zzz-hero-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-7px, -6px, 0); } }
.hero-copy { animation: zzz-rise-in .62s cubic-bezier(.2,.7,.25,1) both; }
.hero-art img { animation: zzz-hero-float 8s ease-in-out infinite; }

@media (max-width: 900px) {
  .agent-spotlight { grid-template-columns: 1fr; }
  .agent-spotlight-intro p { max-width: 520px; }
}
@media (max-width: 700px) {
  .home-event-panel .panel-head { align-items: start; flex-direction: column; }
  .home-event-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .agent-spotlight { padding: 18px; box-shadow: 5px 5px 0 var(--cyan); }
  .agent-spotlight-grid { grid-auto-columns: minmax(155px, 1fr); grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .agent-spotlight-card { min-height: 232px; scroll-snap-align: start; }
  .agent-spotlight-copy strong { font-size: 17px; }
}

/* Search-first directory: controls stay next to the results at every width. */
.build-section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.build-section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 1px solid #111; background: #fff; font-size: 12px; font-weight: 900; }
.build-section-nav a:first-child { background: var(--cyan); }
.build-directory { scroll-margin-top: 16px; border-top: 5px solid #111; }
.build-directory .build-toolbar { grid-template-columns: minmax(0, 2fr) minmax(130px, 1fr) minmax(140px, 1fr) auto; align-items: end; }
.build-toolbar label { display: grid; min-width: 0; gap: 6px; font-size: 11px; font-weight: 900; }
.build-directory .build-toolbar .field { width: 100%; min-width: 0; min-height: 44px; font-size: 14px; }
.build-directory .build-toolbar .button { min-height: 44px; }
.build-directory .build-filter-panel { margin-top: 16px; }
.build-quick-filter { min-height: 44px; }
.build-result-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 18px 0 12px; padding-top: 12px; border-top: 1px solid #d0d2ca; }
.build-result-summary span { font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.build-result-summary small { color: #60635b; font-size: 10px; }
.build-empty { grid-column: 1 / -1; padding: 30px 18px; }
.build-empty strong { display: block; font-size: 16px; }
.build-empty p { margin: 10px 0 18px; font-size: 13px; }
.home-build-search { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); align-items: center; gap: 20px; margin: 24px 0; border-left: 5px solid #111; }
.home-build-search label { display: grid; gap: 5px; }
.home-build-search label strong { font-size: 16px; }
.home-build-search label span { color: #60635b; font-size: 11px; }
.home-build-search > div { display: flex; gap: 8px; min-width: 0; }
.home-build-search input { flex: 1; min-width: 0; font-size: 16px; }
.home-build-search .button { flex-shrink: 0; min-height: 44px; }
.agent-spotlight-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
:where(a, button, input, select, summary):focus-visible { outline: 3px solid #297885; outline-offset: 3px; }
@media (max-width: 1000px) {
  .build-directory .build-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-directory .build-search-label { grid-column: 1 / -1; }
  .build-directory .build-toolbar .button { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .home-build-search { grid-template-columns: 1fr; gap: 12px; }
  .home-build-search > div { flex-direction: column; }
  .build-directory .build-toolbar .field { font-size: 16px; }
  .build-section-nav a { flex: 1; justify-content: center; padding: 8px; font-size: 10px; }
}

/* Segmented navigation and readable period comparison (Apple HIG). */
[hidden] { display: none !important; }
.build-section-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.build-section-nav button { min-width: 0; min-height: 44px; padding: 10px 8px; border: 0; border-radius: 8px; color: var(--text); background: transparent; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.build-section-nav button[aria-selected="true"] { background: var(--cyan); color: #111; box-shadow: 0 1px 4px #0002; }
.build-section-nav button:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.build-section-nav button:focus-visible, [role="tabpanel"]:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
[role="tabpanel"] { scroll-margin-top: 16px; }
.build-dialog { overflow: hidden; }
.build-dialog .dialog-content { overflow-y: auto; overscroll-behavior: contain; }
.resource-hero-image { filter: drop-shadow(0 6px 8px #0002); }
.resource-hero-code { display: none; }
.timeline { min-width: 1040px; }
.timeline-scale { display: flex; margin-left: 300px; }
.timeline-scale .scale-cell { flex: none; min-width: 0; padding: 12px 4px; text-align: center; font-size: 12px; }
.timeline-row { grid-template-columns: 300px minmax(0, 1fr); min-height: 132px; }
.timeline-row-label { display: grid; gap: 7px; padding: 14px; border-bottom: 1px solid var(--line); }
.timeline-row-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.timeline-names { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.timeline-period { color: var(--muted); font-size: 12px; line-height: 1.5; }
.timeline-character-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-row-label .forecast-character.compact { min-width: 0; width: auto; max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.timeline-row-label .forecast-character.compact img, .timeline-row-label .forecast-avatar { width: 32px; height: 32px; }
.timeline-row-label .forecast-character-copy { font-size: 11px; }
.timeline-row-label .forecast-candidate-confidence, .timeline-row-label .forecast-candidate-priority { display: none; }
.timeline-track { background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.timeline-track::before { display: none; }
.timeline-track .timeline-bar { top: calc(50% - 12px); height: 24px; min-height: 24px; min-width: 0; padding: 0; border-radius: 4px; clip-path: none; overflow: hidden; }
.timeline-now { top: 0; bottom: 0; height: auto; background: var(--text); opacity: .65; }
.timeline-legend { margin-left: 0; font-size: 13px; line-height: 1.5; }
.filter-button, .ranking-tab, .build-quick-filter { min-height: 44px; }
@media (max-width: 900px) {
  .timeline { min-width: 0; }
  .timeline-scale, .timeline-track { display: none; }
  .timeline-row { display: block; padding: 0 0 16px 14px; }
  .timeline-row-label { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .timeline-row-label .timeline-row-heading { display: flex; }
  .timeline-names { font-size: 15px; }
  .timeline-period { font-size: 13px; }
  .timeline-scroll { overflow: visible; }
  .timeline-legend { margin-left: 0; }
  .build-section-nav button { font-size: 12px; }
}
@media (max-width: 380px) {
  .build-section-nav button { font-size: 11px; }
}
.item-option-art { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.item-option { grid-template-columns: minmax(64px, 112px) minmax(0, 1fr); }
.item-option-art .build-item-thumb { width: 48px; height: 48px; }
.item-option-copy strong { line-height: 1.6; }
@media (max-width: 600px) {
  .item-option { grid-template-columns: 100px minmax(0, 1fr); }
}

/* Calendar labels use the same contrast at every breakpoint. */
.timeline-panel .timeline-row-label { color: #f5f5f1; }
.timeline-panel .timeline-row-label .timeline-period { color: #d4d5d0; }
.timeline-panel .timeline-row-label .timeline-row-heading small { color: #d4d5d0; }
.timeline-panel .timeline-row-label .forecast-character.compact { display: grid; width: 62px; min-height: 52px; justify-items: center; align-content: start; gap: 4px; }
.timeline-panel .timeline-row-label .forecast-character.compact strong { color: #f5f5f1; font-size: 11px; line-height: 1.4; }
.timeline-panel .timeline-row-label .forecast-character-copy { display: block; text-align: center; }
.timeline-panel .timeline-row-label .forecast-candidate-reason { display: none; }
.timeline-panel .timeline-track { background: #272824; }
.timeline-panel .timeline-now { background: #fff; }
@media (max-width: 900px) {
 .timeline-panel .timeline-row-label { color: #111 !important; }
 .timeline-panel .timeline-row-label .timeline-period,
 .timeline-panel .timeline-row-label .timeline-row-heading small { color: #4f5152 !important; }
 .timeline-panel .timeline-row-label .forecast-character.compact strong { color: #111; }
}
.timeline-row-label { align-content: start; }
.timeline-row-label .timeline-character-strip { margin-top: 0; padding-left: 0; }

@media (min-width: 1021px) and (max-width: 1700px) {
 .rail-bottom { display: none; }
 .app-rail { gap: 16px; }
}
