/* シノブレイク 公式サイト（11-13）。白・透過・ホロ・パステル・メタリック。色は game/lib/app/holo_ui.dart に合わせた。 */
:root {
  --ink: #1b2440;
  --ink-soft: rgba(27, 36, 64, .68);
  --accent: #1f7a9e;
  --red: #da4a2e;
  --panel: rgba(255, 255, 255, .82);
  --edge: #fff;
  --navy1: #243e7a;
  --navy2: #1a2152;
  --holo: linear-gradient(100deg, #5fd3f5, #7ef0c8, #ffb98f, #ff9fd0, #b59cff, #5fd3f5);
  --c: #da4a2e; /* 選んだキャラの色（JS が替える） */
  --gutter: 16px;
  --bar-h: 56px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  font-weight: 500;
  line-height: 1.6;
  background-color: #f6f8fd;
  background-image:
    linear-gradient(rgba(127, 156, 192, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 156, 192, .09) 1px, transparent 1px),
    linear-gradient(160deg, #fceff3 0%, #f8fafe 30%, #eaf4fc 55%, #e4f6f2 78%, #f1f0fb 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  background-attachment: scroll, scroll, fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- 上の帯 ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 2px 14px rgba(27, 36, 64, .08);
}
.bar::after { /* ホロの細い線 */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--holo); opacity: .7;
}
.bar-logo {
  display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 12px;
  background: linear-gradient(180deg, var(--navy1), var(--navy2)); box-shadow: 0 2px 8px rgba(26, 33, 82, .25);
}
.bar-logo img { height: 24px; width: auto; }
.bar-nav { display: none; margin-left: auto; gap: 28px; }
.bar-nav a {
  text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ink);
}
.bar-nav a:hover { color: var(--accent); }
.lang {
  margin-left: auto; display: flex; padding: 3px; border-radius: 999px;
  background: rgba(27, 36, 64, .07); border: 1px solid rgba(255, 255, 255, .9);
}
.lang button {
  border: 0; background: none; cursor: pointer; padding: 4px 11px; border-radius: 999px;
  font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--ink-soft);
}
.lang button[aria-pressed="true"] { background: linear-gradient(180deg, var(--navy1), var(--navy2)); color: #fff; }
.menu-btn {
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0;
  display: grid; place-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
body.menu-open .bar-nav {
  display: flex; flex-direction: column; gap: 0;
  position: fixed; top: var(--bar-h); left: 0; right: 0; margin: 0;
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 24px rgba(27, 36, 64, .12);
}
body.menu-open .bar-nav a { padding: 16px var(--gutter); border-top: 1px solid rgba(27, 36, 64, .07); font-size: 16px; }

/* ---------- キービジュアル ---------- */
.kv { position: relative; min-height: 560px; overflow: hidden; background: #101833; }
.kv-art { width: 100%; height: auto; }
.kv::after { /* 下を白へ溶かす */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, rgba(246, 248, 253, 0), rgba(246, 248, 253, .55) 45%, #f6f8fd 92%);
  pointer-events: none;
}
.kv-body {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter);
}
.kv-logo { width: min(86vw, 480px); height: auto; filter: drop-shadow(0 4px 14px rgba(16, 24, 51, .45)); }
.kv-date {
  margin: 8px 0 14px; display: flex; align-items: baseline; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--ink);
}
.kv-date b { font-family: "Chakra Petch", sans-serif; font-size: 26px; letter-spacing: .04em; }

/* ストアのバッジ（Apple・Google の公式の絵をそのまま。高さをそろえ、間と周りは高さの 1/4 以上空ける。
   Apple は画面で 40px 以上・先頭に置く、Google は 28px 以上・Apple と同じ高さ以上。docs/official_site_20261113.md） */
.cta { --bh: 48px; display: flex; justify-content: center; align-items: center; gap: calc(var(--bh) / 4 + 4px); padding: calc(var(--bh) / 4) 0; }
.badge { display: block; line-height: 0; transition: transform .15s ease; }
.badge img { height: var(--bh); width: auto; }
.badge:hover { transform: translateY(-2px); }

/* ---------- 事前登録お礼・数の札 ---------- */
.glass {
  background: var(--panel);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--edge); border-radius: 20px;
  box-shadow: 0 3px 12px rgba(27, 36, 64, .12);
}
.bonus { padding: 18px var(--gutter) 8px; max-width: 880px; margin: 0 auto; }
.bonus-card { position: relative; text-align: center; padding: 20px 16px 18px; overflow: hidden; }
.bonus-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--holo);
}
.bonus-label {
  display: inline-block; margin: 0; padding: 3px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: #fff; background: linear-gradient(180deg, var(--navy1), var(--navy2));
}
.bonus-big { margin: 6px 0 0; font-weight: 900; font-size: 22px; line-height: 1.1; }
.bonus-big b {
  font-family: "Chakra Petch", sans-serif; font-size: 68px; margin: 0 4px; letter-spacing: .01em;
  background: linear-gradient(100deg, #2a7fd1, #8d63e8 40%, #e0569b 70%, #f08a3c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bonus-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }
.bonus-sub {
  margin: 12px auto 0; padding-top: 10px; font-size: 12px; color: var(--ink-soft);
  border-top: 1px dashed rgba(27, 36, 64, .15); max-width: 340px;
}
.stats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats li {
  text-align: center; padding: 10px 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .6); border: 1px solid #fff;
}
.stats b { display: block; font-family: "Chakra Petch", sans-serif; font-size: 22px; line-height: 1.1; }
.stats span { font-size: 11px; color: var(--ink-soft); font-weight: 700; }

/* ---------- 区画の見出し ---------- */
.sec-title { margin: 0 0 22px; text-align: center; line-height: 1; }
.sec-title .en {
  display: block; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 40px; letter-spacing: .12em;
  background: linear-gradient(100deg, var(--navy1), #4d6bb8 40%, #8d63e8 70%, #2aa7c9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-title .jp { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--ink-soft); }
section { position: relative; }

/* ---------- ストーリー ---------- */
.story { padding: 64px var(--gutter) 60px; margin-top: 36px; overflow: hidden; text-align: center; }
.story-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url(img/world_bg.webp) center 30% / cover no-repeat;
  opacity: .85;
}
.story-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #f6f8fd 0%, rgba(246, 248, 253, .35) 30%, rgba(246, 248, 253, .35) 70%, #f6f8fd 100%);
}
.dragon {
  position: absolute; z-index: -1; left: 50%; top: 22%; width: 150%; max-width: 1100px; aspect-ratio: 3 / 1;
  transform: translateX(-50%);
  background: var(--holo); opacity: .55;
  -webkit-mask: url(img/dragon.webp) center / contain no-repeat; mask: url(img/dragon.webp) center / contain no-repeat;
}
.story-lines p { margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: .06em; text-shadow: 0 0 10px #fff, 0 0 18px #fff; }
.story-lines .story-strong { margin-top: 22px; font-size: 26px; font-weight: 900; color: var(--navy2); }
.story-you span {
  display: inline-block; margin-top: 18px; padding: 8px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  letter-spacing: .1em; background: rgba(255, 255, 255, .8); border: 1px solid #fff; box-shadow: 0 3px 12px rgba(27, 36, 64, .1);
}

/* ---------- キャラクター ---------- */
.chara { padding: 56px 0 40px; }
.chara-wrap { max-width: 1200px; margin: 0 auto; }
.chara-stage {
  container-type: inline-size;
  position: relative; margin: 0 var(--gutter); aspect-ratio: 2 / 2.75; overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(60% 45% at 50% 42%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .45));
  border: 1px solid #fff; box-shadow: 0 3px 16px rgba(27, 36, 64, .12);
  transition: background .5s;
}
.chara-ghost { /* 大きな名前の透かし */
  position: absolute; left: 0; right: 0; top: 4%; margin: 0; text-align: center;
  font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 19vw; font-size: min(22cqw, 150px); line-height: 1; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 40%, transparent);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.chara-ring {
  position: absolute; left: 50%; top: 46%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, .25);
}
.chara-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  transition: opacity .35s ease, transform .35s ease;
}
.chara-img.is-ill { object-fit: cover; object-position: center top; }
.chara-img.out { opacity: 0; transform: translateX(14px); }
.view-tabs {
  position: absolute; right: 10px; top: 10px; display: flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); border: 1px solid #fff; box-shadow: 0 2px 8px rgba(27, 36, 64, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.view-tabs button {
  border: 0; background: none; cursor: pointer; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.view-tabs button[aria-pressed="true"] { background: var(--c); color: #fff; }
.view-tabs[hidden] { display: none; }
.chara-info { padding: 18px var(--gutter) 0; transition: opacity .35s ease, transform .35s ease; }
.chara-info.out { opacity: 0; transform: translateX(-10px); }
.chara-rar { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.chara-rar b {
  font-family: "Chakra Petch", sans-serif; font-size: 13px; padding: 1px 8px; border-radius: 6px; color: #fff;
  background: linear-gradient(100deg, #e0569b, #8d63e8, #2a7fd1);
}
.chara-name {
  margin: 4px 0 8px; font-size: 52px; font-weight: 900; line-height: 1.1; letter-spacing: .08em; color: var(--c);
  text-shadow: 0 2px 0 #fff, 0 6px 20px color-mix(in srgb, var(--c) 30%, transparent);
  transition: color .4s;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff);
}
.chips li.hot { background: var(--c); color: #fff; border-color: var(--c); }
.chara-line {
  position: relative; margin: 14px 0 0; padding: 12px 14px 12px 18px; font-size: 15px; font-weight: 700;
  background: rgba(255, 255, 255, .7); border-radius: 12px; border: 1px solid #fff;
}
.chara-line::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--c); }
.picker { display: flex; align-items: center; gap: 6px; margin-top: 18px; }
.pick-arrow {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #fff; cursor: pointer;
  background: linear-gradient(180deg, var(--navy1), var(--navy2)); color: #fff; font-size: 22px; line-height: 1;
  display: grid; place-items: center; padding-bottom: 3px;
}
.faces {
  list-style: none; margin: 0; padding: 6px 2px; flex: 1; display: flex; gap: 8px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.faces::-webkit-scrollbar { display: none; }
.faces li { flex: none; scroll-snap-align: center; }
.faces button {
  width: 54px; height: 54px; border-radius: 50%; padding: 0; cursor: pointer; overflow: hidden;
  border: 2px solid #fff; background: #fff; box-shadow: 0 2px 6px rgba(27, 36, 64, .18);
  opacity: .62; transition: opacity .2s, transform .2s, box-shadow .2s;
}
.faces button img { width: 100%; height: 100%; object-fit: cover; }
.faces button[aria-current="true"] {
  opacity: 1; transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--c), 0 4px 12px color-mix(in srgb, var(--c) 45%, transparent);
}
.chara-count { margin: 10px 0 0; font-family: "Chakra Petch", sans-serif; font-size: 13px; color: var(--ink-soft); }
.chara-count b { color: var(--c); font-size: 18px; }

/* ---------- ゲームの特徴 ---------- */
.feature { padding: 56px 0 40px; }
.feat-list {
  list-style: none; margin: 0; padding: 4px var(--gutter) 14px; display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.feat-list::-webkit-scrollbar { display: none; }
.feat {
  flex: none; width: 72%; max-width: 300px; scroll-snap-align: start;
}
.feat-shot {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 600 / 1304;
  border: 3px solid #fff; box-shadow: 0 6px 20px rgba(27, 36, 64, .16); background: #e9eef7;
}
.feat-shot img { width: 100%; height: 100%; object-fit: cover; }
.feat-no {
  position: absolute; left: 10px; top: 10px; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 13px;
  padding: 1px 9px; border-radius: 8px; color: #fff; background: rgba(26, 33, 82, .82);
}
.feat h3 { margin: 12px 0 2px; font-size: 19px; font-weight: 900; letter-spacing: .04em; }
.feat p { margin: 0; font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.feat-hint { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- お知らせ ---------- */
.news { padding: 48px var(--gutter) 24px; }
.news-list { list-style: none; margin: 0 auto; padding: 6px 18px; max-width: 880px; }
.news-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid rgba(27, 36, 64, .08); }
.news-list li:last-child { border-bottom: 0; }
.news-list time { font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 14px; color: var(--accent); min-width: 92px; }
.news-tag {
  font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; align-self: center;
  background: rgba(31, 122, 158, .1); color: var(--accent);
}
.news-list p { margin: 0; flex-basis: 100%; font-weight: 700; font-size: 15px; }

/* ---------- 最後の呼びかけ ---------- */
.last {
  padding: 56px var(--gutter) 60px; display: flex; flex-direction: column; align-items: center; text-align: center;
  color: #fff; overflow: hidden; isolation: isolate; background: var(--navy2);
}
.last::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26, 33, 82, .55), rgba(26, 33, 82, .88)), url(img/kv_h.webp) center 30% / cover no-repeat;
}
.last-logo { width: min(80vw, 420px); height: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35)); }
.last-copy { margin: 10px 0 18px; font-size: 18px; font-weight: 900; letter-spacing: .12em; }

/* ---------- フッター ---------- */
.foot {
  text-align: center; padding: 30px var(--gutter) calc(30px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--navy1), var(--navy2)); color: rgba(255, 255, 255, .86);
  position: relative;
}
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--holo); }
.foot-logo { width: 110px; height: auto; margin: 0 auto 14px; filter: brightness(1.15); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.foot-links a { font-size: 13px; font-weight: 700; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { margin: 14px 0 4px; font-size: 11px; opacity: .7; }
.foot-tm { margin: 0 auto 10px; max-width: 640px; font-size: 10px; line-height: 1.6; opacity: .6; }
.foot-copy { margin: 0; font-family: "Chakra Petch", sans-serif; font-size: 12px; letter-spacing: .08em; }

/* ---------- PC ---------- */
@media (min-width: 900px) {
  :root { --gutter: 40px; --bar-h: 64px; }
  .bar-logo { height: 42px; }
  .bar-logo img { height: 27px; }
  .bar-nav { display: flex; }
  .lang { margin-left: 24px; }
  .menu-btn { display: none; }
  .kv { min-height: 0; }
  .kv-art { height: min(88vh, 760px); min-height: 560px; object-fit: cover; object-position: center 22%; }
  .kv::after { height: 38%; }
  .kv-body { bottom: 26px; }
  .kv-logo { width: 460px; }
  .cta { --bh: 56px; }
  .bonus { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: stretch; padding-top: 26px; }
  .bonus-card { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .stats { margin: 0; grid-template-columns: 1fr; }
  .stats li { display: flex; align-items: center; justify-content: center; gap: 12px; }
  .stats b { display: inline; font-size: 26px; }
  .stats span { font-size: 13px; }
  .sec-title .en { font-size: 56px; }
  .story { padding: 110px var(--gutter) 100px; }
  .story-lines p { font-size: 22px; }
  .story-lines .story-strong { font-size: 34px; }
  .dragon { width: 90%; top: 18%; }
  .chara-wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center;
    padding: 0 var(--gutter);
  }
  .chara-stage { order: 2; margin: 0; aspect-ratio: 2 / 2.4; max-height: 760px; }
  .chara-info { order: 1; padding: 0; }
  .chara-name { font-size: 76px; }
  .chara-line { font-size: 17px; }
  .faces button { width: 60px; height: 60px; }
  .feat-list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; overflow: visible;
    max-width: 960px; margin: 0 auto;
  }
  .feat { width: auto; max-width: none; text-align: center; }
  .feat h3 { font-size: 19px; }
  .feat p { font-size: 13px; }
  .feat-hint { display: none; }
}
@media (min-width: 1280px) {
  .feat-list { grid-template-columns: repeat(6, 1fr); max-width: 1260px; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 事前登録 達成報酬（prereg.js・prereg.json の show が true の時だけ） ---------- */
.milestones { padding: 10px var(--gutter) 8px; max-width: 880px; margin: 0 auto; }
.milestones[hidden] { display: none; }
.ms-card { position: relative; text-align: center; padding: 20px 16px 14px; overflow: hidden; }
.ms-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--holo); }
.ms-label { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ms-label .en {
  font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .3em;
  background: linear-gradient(100deg, var(--navy1), #8d63e8 60%, #2aa7c9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ms-label [data-ms=h] {
  display: inline-block; padding: 3px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: #fff; background: linear-gradient(180deg, var(--navy1), var(--navy2));
}
.ms-lead { margin: 8px auto 0; max-width: 520px; text-wrap: balance; white-space: pre-line; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.ms-now { margin: 10px 0 0; font-weight: 700; line-height: 1.1; }
.ms-now-label { font-size: 13px; letter-spacing: .1em; margin-right: 6px; }
.ms-now b {
  font-family: "Chakra Petch", sans-serif; font-size: 40px; letter-spacing: .01em;
  background: linear-gradient(100deg, #2a7fd1, #8d63e8 40%, #e0569b 70%, #f08a3c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ms-now-unit { font-size: 15px; margin-left: 2px; }
.ms-now small { display: block; margin-top: 6px; font-size: 10px; font-weight: 500; line-height: 1.5; color: var(--ink-soft); letter-spacing: .02em; }
.ms-now small span { display: block; }
.ms-tiers { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; }
.ms-tier {
  position: relative; display: grid; grid-template-columns: 30px auto 1fr; align-items: center;
  grid-template-areas: "node people chip" "node items items"; column-gap: 8px; padding: 9px 0;
}
.ms-rail { position: absolute; left: 13px; width: 4px; top: -50%; bottom: 50%; border-radius: 2px; background: rgba(27, 36, 64, .1); overflow: hidden; }
.ms-tier:first-child .ms-rail { top: 0; }
.ms-rail i {
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--fill, 0) * 100%);
  background: linear-gradient(180deg, #5fd3f5, #b59cff 55%, #ff9fd0);
}
.ms-node {
  grid-area: node; justify-self: center; position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid rgba(27, 36, 64, .16); box-sizing: border-box;
}
.ms-tier.is-done .ms-node { border-color: #fff; background: linear-gradient(135deg, #5fd3f5, #b59cff, #ff9fd0); box-shadow: 0 0 0 2px rgba(141, 99, 232, .25); }
.ms-tier.is-next .ms-node { border-color: #8d63e8; }
.ms-people { grid-area: people; margin: 0; font-family: "Chakra Petch", "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 20px; line-height: 1.1; }
.ms-tier.is-todo .ms-people { color: var(--ink-soft); }
.ms-items { grid-area: items; margin: 3px 0 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.ms-tier.is-done .ms-items { color: var(--ink); }
.ms-chip {
  grid-area: chip; justify-self: end; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  white-space: nowrap;
}
.ms-chip.is-done { color: #fff; background: linear-gradient(180deg, var(--navy1), var(--navy2)); }
.ms-chip.is-next { color: #6a45cf; background: rgba(255, 255, 255, .8); border: 1px solid rgba(141, 99, 232, .5); }
.ms-note { margin: 10px auto 0; max-width: 560px; text-wrap: balance; white-space: pre-line; font-size: 11px; line-height: 1.6; color: var(--ink-soft); }
.ms-note:empty { display: none; }
@media (min-width: 900px) {
  .milestones { padding-top: 16px; }
  .ms-card { padding: 26px 28px 18px; }
  .ms-now b { font-size: 52px; }
  .ms-tiers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 18px; }
  .ms-tier {
    grid-template-columns: 1fr; grid-template-areas: "node" "people" "items" "chip"; justify-items: center;
    text-align: center; row-gap: 6px; padding: 0 6px; align-content: start;
  }
  .ms-rail { left: -50%; right: 50%; width: auto; top: 7px; bottom: auto; height: 4px; }
  .ms-tier:first-child .ms-rail { left: 0; top: 7px; }
  .ms-rail i { right: auto; bottom: 0; height: auto; width: calc(var(--fill, 0) * 100%); background: linear-gradient(90deg, #5fd3f5, #b59cff 55%, #ff9fd0); }
  .ms-people { font-size: 24px; }
  .ms-items { justify-content: center; margin: 0; }
  .ms-chip { justify-self: center; }
}
