/* Fashion Maker — カラフルなパリジェンヌ（20代女子のための、めくって楽しいファッション誌） */
:root {
  /* テーマカラー：濃いめのイエロー・レッド・ブルー */
  --creme: #fffaf0;
  --card: #ffffff;
  --ink: #1f1c2e;
  --ink2: #6f6880;
  --line: #eadfce;
  --rouge: #e5574f;
  --rouge-l: #fde5e2;
  --bleu: #2b4a9e;
  --bleu-l: #e3e9f8;
  --jaune: #f2c13a;
  --jaune-l: #fff4d2;
  /* わたこ（🌱の子）のミント。ページの外側の背景に使う */
  --menthe: #3fb99c;
  --menthe-l: #ddf3ea;
  --menthe-d: #23927a;   /* 白い文字をのせるとき用の、少し深いミント */
  /* 旧パステル名はこの3色に寄せる */
  --rose: var(--rouge);
  --rose-l: var(--rouge-l);
  --ciel: var(--bleu);
  --ciel-l: var(--bleu-l);
  --lilas: var(--bleu);
  --lilas-l: var(--bleu-l);
  --citron: var(--jaune);
  --citron-l: var(--jaune-l);
  --pistache: var(--jaune);
  --pistache-l: var(--jaune-l);
  --didone: 'Bodoni Moda', 'Didot', serif;
  --head: 'Klee One', 'Hiragino Maru Gothic ProN', cursive;
  --pen: 'Klee One', 'Hiragino Maru Gothic ProN', cursive;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --hand: 'Caveat', cursive;
  --r: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--menthe); background-image: radial-gradient(rgba(255,255,255,.55) 1.5px, transparent 2px); background-size: 22px 22px; }
body {
  margin: 0 auto; max-width: 480px; min-height: 100dvh;
  font-family: var(--sans); color: var(--ink); line-height: 1.75;
  background: var(--creme);
  font-feature-settings: 'palt';
  box-shadow: 0 0 40px rgba(31, 28, 46, .15);
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
#app { padding-bottom: 48px; }
#app[data-view="preset"], #app[data-view="edit"], #app[data-view="diagnosis"], #app[data-view="gacha"], #app[data-view="dna-edit"] { padding-bottom: 186px; }

/* ── 共通 ── */
.kick { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--didone); font-style: italic; font-size: 13px; letter-spacing: .08em; color: var(--rouge); }
.hand { font-family: var(--hand); font-style: normal; font-size: 20px; letter-spacing: 0; color: var(--bleu); transform: rotate(-4deg); display: inline-block; }
.hand.big { margin: 0 0 2px; font-size: 34px; color: #fff; }
.phead { padding: 26px 0 18px; margin-bottom: 18px; border-bottom: 2px dotted var(--rose); }
.phead h1 { margin: 6px 0 0; font-family: var(--head); font-weight: 600; font-size: 27px; line-height: 1.4; }
.lead { margin: 10px 0 0; font-size: 13.5px; line-height: 1.9; color: #4a4460; }
.sec { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 12px; font-weight: 400; }
.sec span { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 19px; color: var(--ink); }
.sec em { font-style: normal; font-family: var(--head); font-weight: 600; font-size: 11.5px; color: #fff; padding: 1px 10px; background: var(--rouge); border-radius: 99px; }
.sec + .hand { margin: -10px 0 8px; }
.hint { margin: 8px 0 14px; font-size: 12.5px; color: var(--ink2); }
.link { background: none; border: 0; padding: 4px 0; font-size: 12.5px; font-weight: 500; color: var(--bleu); text-decoration: underline wavy; text-decoration-color: var(--rose); text-underline-offset: 4px; }
.link.center { display: block; margin: 16px auto 0; }
.link.danger { color: var(--rouge); margin-top: 32px; }
.empty { padding: 48px 16px; text-align: center; font-size: 13px; color: var(--ink2); }
.empty a { color: var(--bleu); text-decoration: underline; }

/* ── topbar：カフェのテント ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px;
  padding: 18px 16px 10px; background: var(--creme);
  box-shadow: 0 6px 14px -12px rgba(38, 33, 61, .4);
}
.topbar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(90deg, var(--rouge) 0 18px, #fff 18px 36px);
  -webkit-mask: radial-gradient(circle at 9px 3px, #000 9px, transparent 9.5px) 0 0 / 18px 12px repeat-x, linear-gradient(#000 0 3px, transparent 3px);
          mask: radial-gradient(circle at 9px 3px, #000 9px, transparent 9.5px) 0 0 / 18px 12px repeat-x, linear-gradient(#000 0 3px, transparent 3px);
}
.topbar .back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--jaune); }
.topbar .mast { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 20px; text-align: center; white-space: nowrap; color: var(--rouge); }
.topbar .sect { padding: 2px 10px; font-family: var(--didone); font-style: italic; font-size: 11px; white-space: nowrap; color: #fff; background: var(--bleu); border-radius: 99px; }

/* ── カラーストーリー（写真の代わり） ── */
.art { position: relative; aspect-ratio: 3 / 4; background: var(--c1); overflow: hidden; border-radius: var(--r); }
.art i { position: absolute; display: block; }
.art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 25% 15%, rgba(255, 255, 255, .22), transparent 55%); pointer-events: none; }
.art.v0 i:nth-child(1) { right: 0; bottom: 0; width: 48%; height: 52%; background: var(--c2); border-top-left-radius: 999px; }
.art.v0 i:nth-child(2) { left: 12%; top: 16%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--c3); }
.art.v1 i:nth-child(1) { left: 56%; top: 0; bottom: 0; right: 0; background: var(--c2); }
.art.v1 i:nth-child(2) { left: 82%; top: 0; bottom: 0; right: 0; background: var(--c3); }
.art.v2 i:nth-child(1) { left: 16%; top: 20%; width: 68%; aspect-ratio: 1; border-radius: 50%; background: var(--c2); }
.art.v2 i:nth-child(2) { left: 0; right: 0; bottom: 0; height: 12%; background: var(--c3); }
.art.v3 i:nth-child(1) { left: 0; right: 0; top: 46%; height: 34%; background: var(--c2); }
.art.v3 i:nth-child(2) { left: 0; right: 0; top: 80%; bottom: 0; background: var(--c3); }
/* ドット */
.art.v4 i:nth-child(1) { inset: 0; background: radial-gradient(var(--c2) 22%, transparent 24%) 0 0 / 28px 28px; }
.art.v4 i:nth-child(2) { left: 0; right: 0; bottom: 0; height: 22%; background: var(--c3); }
/* マリンボーダー */
.art.v5 i:nth-child(1) { left: 0; right: 0; top: 0; height: 58%; background: repeating-linear-gradient(var(--c1) 0 12px, var(--c2) 12px 22px); }
.art.v5 i:nth-child(2) { right: 10%; bottom: 10%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--c3); }
.art.full { aspect-ratio: auto; position: absolute; inset: 0; border-radius: 0; }
.art.tall { aspect-ratio: 4 / 5; border-radius: 0 0 28px 28px; }
.art.wide { aspect-ratio: 16 / 10; }
.t-ink { --tc: var(--ink); }
.t-white { --tc: #fff; }
.look-no { position: absolute; left: 10px; top: 9px; z-index: 1; font-family: var(--didone); font-style: italic; font-size: 11px; color: var(--tc, #fff); }
.look-no.big { left: 18px; top: 14px; font-size: 26px; line-height: 1; }

/* ── COVER ── */
.cover { padding: 0 16px; }
.cover-art { position: relative; margin: 0 -16px; height: min(80dvh, 650px); min-height: 540px; overflow: hidden; border-radius: 0 0 32px 32px; }
.masthead { position: absolute; left: 18px; right: 16px; top: 18px; margin: 0; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: clamp(56px, 17vw, 80px); line-height: .9; color: var(--tc, #fff); }
.issue { position: absolute; left: 20px; top: calc(28px + clamp(56px, 17vw, 80px) * 1.8); margin: 0; font-family: var(--didone); font-size: 10px; letter-spacing: .16em; line-height: 1.6; color: var(--tc, #fff); }
.sticker { position: absolute; right: 18px; top: calc(20px + clamp(56px, 17vw, 80px) * 1.75); z-index: 1; display: grid; place-items: center; align-content: center; width: 82px; height: 82px; border-radius: 50%; background: var(--citron); color: var(--ink); font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 30px; line-height: .9; transform: rotate(12deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.sticker small { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 9px; letter-spacing: .08em; }
.coverlines { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 18px 22px; background: linear-gradient(transparent, rgba(38, 33, 61, .32)); color: #fff; text-shadow: 0 1px 8px rgba(38, 33, 61, .35); }
.cl-big { text-shadow: none; margin: 0; font-family: var(--head); font-weight: 600; font-size: 32px; line-height: 1.45; color: var(--ink); }
.cl-big mark { padding: 0 8px; background: var(--creme); color: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 6px; }
.cl-big mark:last-child { background: var(--rose); color: #fff; }
.cl { margin: 12px 0 0; font-size: 13px; font-weight: 500; line-height: 1.8; }
.cl-feature { text-shadow: none; display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 12.5px; }
.cl-feature span { padding: 2px 10px; border-radius: 99px; background: var(--rouge); color: #fff; font-family: var(--didone); font-style: italic; font-size: 11px; }
.contents { margin-top: 6px; }
.contents .ct { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 8px; margin-top: 12px; padding: 16px 34px 16px 14px; border-radius: var(--r); }
.contents .c1 { background: var(--rouge); color: #fff; }
.contents .c2 { background: var(--bleu); color: #fff; }
.contents .c3 { background: var(--jaune); }
.contents .ct b { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 38px; line-height: 1; }
.contents .ct b { color: inherit; }
.contents .c1 i, .contents .c1 small, .contents .c2 i, .contents .c2 small, .contents .c1::after, .contents .c2::after { color: rgba(255, 255, 255, .85); }
.contents .ct span { display: flex; flex-direction: column; font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.4; }
.contents .ct i { font-style: italic; font-family: var(--didone); font-weight: 400; font-size: 12px; color: var(--ink2); }
.contents .ct small { margin-top: 3px; font-family: var(--sans); font-weight: 400; font-size: 12px; color: #5a5470; line-height: 1.6; }
.contents .ct.sub span { font-size: 15px; }
.contents .ct::after { content: '›'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ink2); }
.dnabar { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r); border: 2px dashed var(--lilas); background: #fff; }
.dnabar span { grid-row: span 2; align-self: center; padding: 4px 10px; border-radius: 99px; background: var(--lilas-l); font-family: var(--didone); font-style: italic; font-size: 12px; color: var(--bleu); }
.dnabar b { font-family: var(--head); font-size: 14px; }
.dnabar em { font-style: normal; font-size: 11.5px; color: var(--ink2); }
.dnabar.on { border: 0; background: var(--bleu); color: #fff; }
.dnabar.on span { background: #fff; color: var(--bleu); }
.dnabar.on em { color: rgba(255, 255, 255, .8); }
.mini-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-row > * { min-width: 0; }
.resume { display: block; margin-top: 24px; padding: 12px 16px; border-radius: 99px; background: var(--jaune); font-family: var(--head); font-weight: 600; font-size: 13px; text-align: center; }
.colophon { margin: 30px 0 0; font-size: 11.5px; color: var(--ink2); text-align: center; line-height: 1.9; }
.colophon .hand { margin-top: 6px; font-size: 22px; color: var(--rouge); }

/* ── LOOK カード ── */
.look { display: block; }
.look-art { position: relative; }
.look-art .art { box-shadow: 0 6px 16px -8px rgba(38, 33, 61, .35); }
.look-cap { margin: 8px 0 0; font-size: 10.5px; font-weight: 500; color: var(--rouge); }
.look h3 { margin: 1px 0 0; font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 1.5; }
.look.mini h3 { margin-top: 6px; font-size: 12px; }
.look.mini .look-cap { display: none; }
.look .pct { font-family: var(--didone); font-style: italic; font-size: 13px; color: var(--rouge); }
.dna-pct { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 1px 8px; border-radius: 99px; font-family: var(--didone); font-style: italic; font-size: 11px; background: #fff; color: var(--bleu); }

/* ── LOOKBOOK ── */
.lookbook, .feature, .edit, .prompt, .diag, .result, .gacha, .dna, .closet, .find { padding: 0 16px; }
.guide { padding: 0 16px 32px; }
.realm { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 99px; background: var(--rose-l); }
.realm button { display: flex; flex-direction: column; align-items: center; padding: 7px 4px; border: 0; border-radius: 99px; background: none; font-family: var(--head); font-weight: 600; font-size: 13px; line-height: 1.35; color: var(--ink2); }
.realm i { font-style: italic; font-family: var(--didone); font-weight: 400; font-size: 10.5px; }
.realm .on { background: #fff; color: var(--rouge); box-shadow: 0 2px 8px rgba(229, 87, 79, .18); }
.gender-row { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.gender-row::-webkit-scrollbar { display: none; }
.gchip { flex: none; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink2); }
.gchip.on { border-color: var(--bleu); background: var(--bleu); color: #fff; }
.searchrow { display: flex; gap: 8px; margin-top: 12px; }
.search { flex: 1; min-width: 0; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 16px; -webkit-appearance: none; }
.search:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-l); }
.btn-line { flex: none; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 700; }
.btn-line.on { background: var(--ink); color: #fff; }
.count { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 12px 0 14px; font-size: 12px; }
.count span { margin-right: auto; font-family: var(--didone); font-style: italic; font-size: 15px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
.shuffle-banner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin-top: 34px; padding: 18px; border: 0; border-radius: var(--r); background: var(--jaune); text-align: left; overflow: hidden; }
.shuffle-banner::after { content: ''; position: absolute; right: -18px; top: -18px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(#fff 30%, transparent 32%) 0 0 / 18px 18px; opacity: .6; }
.shuffle-banner .kick { color: var(--rouge); }
.shuffle-banner b { font-family: var(--head); font-weight: 600; font-size: 16px; }
.shuffle-banner small { font-size: 11.5px; color: #4d4330; }

/* ── FEATURE ── */
.feature-art { position: relative; margin: 0 -16px 20px; }
.ftitle { margin: 6px 0 0; font-family: var(--head); font-weight: 600; font-size: 25px; line-height: 1.45; }
.feature .lead { margin-bottom: 4px; }
.dna-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--lilas-l); font-size: 12.5px; line-height: 1.7; }
.dna-note b { margin-right: 8px; font-family: var(--didone); font-style: italic; font-weight: 600; color: var(--bleu); }
.dna-note a { margin-left: 6px; color: var(--bleu); text-decoration: underline; }
.credit { list-style: none; margin: 0; padding: 4px 14px; border-radius: var(--r); background: #fff; }
.credit li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1.5px dotted var(--line); }
.credit li:last-child { border-bottom: 0; }
.cat { flex: none; width: 70px; font-family: var(--didone); font-style: italic; font-size: 11.5px; color: var(--rouge); }
.credit .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 1.45; text-align: left; }
.credit .nm small { font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink2); }
.credit .col { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.credit.compact li { padding: 7px 0; }
.motifs { margin: 10px 0 0; font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.points { margin: 0; padding: 0; list-style: none; counter-reset: pt; }
.points li { position: relative; margin-bottom: 10px; padding: 14px 16px 14px 56px; border-radius: var(--r); background: var(--rose-l); font-size: 14px; font-weight: 500; line-height: 1.8; counter-increment: pt; }
.points li:nth-child(2) { background: var(--ciel-l); }
.points li:nth-child(3) { background: var(--pistache-l); }
.points li::before { content: counter(pt, decimal-leading-zero); position: absolute; left: 14px; top: 10px; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--rouge); }
.points li:nth-child(2)::before { color: var(--bleu); }
.points li:nth-child(3)::before { color: #b58400; }
.keyword { margin-top: 10px; padding: 2px 18px 16px; border-radius: var(--r); background: var(--citron-l); }
.keyword .sec { margin-top: 16px; }
.keyword .sec em { background: var(--bleu); }
.keyword p { margin: 0 0 6px; font-size: 13px; line-height: 1.85; }
.keyword b { display: block; margin-bottom: 2px; font-family: var(--head); font-weight: 600; font-size: 20px; }
.keyword .link { margin-right: 14px; }
.spec { margin: 0; padding: 4px 14px; border-radius: var(--r); background: #fff; }
.spec div { display: grid; grid-template-columns: 80px 1fr; padding: 8px 0; border-bottom: 1.5px dotted var(--line); font-size: 12.5px; }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--ink2); font-size: 11.5px; }
.spec dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cname { display: inline-flex; align-items: center; gap: 5px; }
.sw { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(38, 33, 61, .15); vertical-align: middle; }
.sw.lg { width: 32px; height: 32px; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--rose); }

/* ── action bar / buttons ── */
.actionbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 20;
  width: 100%; max-width: 480px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 247, 239, .95); backdrop-filter: blur(8px);
  border-radius: 24px 24px 0 0; box-shadow: 0 -8px 24px -12px rgba(38, 33, 61, .3);
}
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.3; transition: transform .08s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { width: 100%; min-height: 54px; border: 0; background: var(--rouge); color: #fff; font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .04em; box-shadow: 0 6px 0 #a81c24; }
.btn.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 #a81c24; }
.btn.primary.done { background: var(--pistache); box-shadow: 0 6px 0 #c99300; }
.btn.dark { border-color: var(--bleu); background: var(--bleu); color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.dashed { width: 100%; margin-top: 14px; border-style: dashed; border-color: var(--rose); background: transparent; color: var(--rouge); }
.sub-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.sub-actions .btn { min-height: 40px; font-size: 12px; padding: 4px; border: 0; }
.sub-actions .btn:nth-child(1) { background: var(--rose-l); }
.sub-actions .btn:nth-child(2) { background: var(--ciel-l); }
.sub-actions .btn:nth-child(3) { background: var(--lilas-l); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.row2.tight { margin-top: 10px; }

/* ── chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 13px; font-size: 12.5px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; white-space: nowrap; }
.chip.on { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.chip.add { border-style: dashed; border-color: var(--rose); color: var(--rouge); }

/* ── ATELIER ── */
.edit > .kick { margin-top: 22px; }
.namebox { border-bottom: 2px dotted var(--rose); }
.name { width: 100%; padding: 6px 0; border: 0; background: none; font-family: var(--head); font-weight: 600; font-size: 22px; }
.name:focus { outline: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 99px; background: var(--ciel-l); }
.seg > * { padding: 8px 4px; text-align: center; font-size: 13px; font-weight: 700; border: 0; border-radius: 99px; background: none; color: var(--ink2); }
.seg .on { background: #fff; color: var(--bleu); box-shadow: 0 2px 8px rgba(43, 74, 158, .16); }
.seg.small > * { font-size: 12px; padding: 7px 4px; }
.erow { display: block !important; }
.erow-main { display: flex; align-items: center; gap: 10px; }
.erow .cat { width: 62px; }
.ithumb { flex: none; width: 34px; height: 38px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; margin-left: -4px; }
.ithumb svg { width: 100%; height: 100%; display: block; }
.erow.is-other .ithumb { background: #fff; outline: 1px dashed var(--ink2); }
@media (max-width: 380px) { .erow .cat { width: 48px; font-size: 9px; } .ithumb { width: 30px; height: 34px; } }
.nm.tap { border: 0; background: none; padding: 0; }
.nm.tap i { font-style: normal; font-family: var(--sans); font-weight: 500; font-size: 10.5px; color: var(--bleu); }
.swbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 60px; border: 0; background: none; padding: 0; }
.swbtn small { font-size: 9.5px; color: var(--ink2); line-height: 1.2; text-align: center; }
.x { width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: var(--rose-l); line-height: 1; color: var(--rouge); }
.more { margin-top: 6px; padding: 2px 0; border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--rouge); }
.attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 4px; }
.attr { display: flex; flex-direction: column; align-items: flex-start; padding: 7px 12px; border: 0; border-radius: 12px; background: var(--creme); font-size: 12.5px; font-weight: 700; text-align: left; line-height: 1.35; }
.attr small { font-size: 10px; font-weight: 400; color: var(--ink2); }
.panel { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: #fff; }
.lbl { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.lbl b { font-family: var(--sans); font-weight: 700; font-size: 12px; color: var(--rouge); }
.range { width: 100%; accent-color: var(--rouge); }
.range-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink2); }

/* ── FOR AI ── */
.prompt .seg { margin: 18px 0 10px; }
.out { width: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.65; resize: vertical; }
.prompt .btn.primary { margin-top: 10px; }

/* ── STYLE CHECK ── */
.progress { height: 6px; margin: 0 -16px; background: var(--rose-l); }
.progress span { display: block; height: 100%; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, var(--rose), var(--rouge)); transition: width .3s; }
.qno { margin: 26px 0 0; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 50px; line-height: 1; color: var(--rouge); }
.qno small { font-size: 16px; color: var(--ink2); }
.q { margin: 12px 0 4px; font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.45; }
.vs { display: grid; gap: 12px; margin-top: 18px; }
.pick { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 20px 18px; text-align: left; border: 0; border-radius: 22px; background: var(--rose-l); transition: transform .08s; }
.pick + .pick { background: var(--ciel-l); }
.pick:active { transform: scale(.98); }
.pick.on { box-shadow: 0 0 0 3px var(--rouge); }
.pick .ab { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 26px; color: var(--rouge); }
.pick + .pick .ab { color: var(--bleu); }
.pick b { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.3; }
.pick small { font-size: 12px; color: #5a5470; }
.sgroup { margin-top: 18px; }
.sgroup > small { display: block; margin-bottom: 6px; font-family: var(--head); font-weight: 600; font-size: 12px; color: var(--ink2); }

/* ── RESULT ── */
.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ranking a { display: grid; grid-template-columns: 34px 70px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: #fff; }
.rk { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 28px; line-height: 1; color: var(--rose); }
.ranking li:first-child .rk { color: var(--rouge); }
.rk-art .art { aspect-ratio: 3 / 4; border-radius: 12px; }
.rk-body { display: flex; flex-direction: column; line-height: 1.5; }
.rk-body small { font-size: 10.5px; color: var(--ink2); }
.rk-body b { font-family: var(--head); font-weight: 600; font-size: 15px; }
.rk-body em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--rouge); }

/* ── SHUFFLE ── */
.cond { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: var(--citron-l); font-size: 12px; color: #6d6450; }
.cond .link { flex: none; }
.gcard { margin-top: 16px; }
.gcard.pop { animation: pop .5s cubic-bezier(.2, 1.3, .4, 1); }
.gart { position: relative; margin-bottom: 14px; }
.lockbtn { flex: none; min-width: 62px; padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-family: var(--didone); font-style: italic; font-size: 11px; }
.lockbtn[aria-pressed="true"] { border-color: var(--citron); background: var(--citron); font-weight: 600; }
.lockbtn.pal { position: absolute; right: 12px; bottom: 12px; }
.gname { margin: 4px 0 12px; font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.4; }
.glist li.locked { margin: 0 -14px; padding-left: 14px; padding-right: 14px; background: var(--citron-l); }
.glist .col { font-size: 0; gap: 0; }
.glist .cat { width: 62px; }
.lucky { flex: none; padding: 1px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; color: #fff; background: var(--lilas); }
.hints a { display: block; margin-bottom: 6px; padding: 10px 14px; border-radius: 14px; background: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; }
.btn.roll.rolling { opacity: 1; animation: wiggle .25s ease-in-out infinite; }

/* ── STYLE DNA ── */
.dna-now { padding: 10px 14px; border-radius: 14px; background: var(--lilas-l); font-size: 13px; }
.dna-now span { color: var(--ink2); }
.dnacard { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--rose-l); }
.dnacard:nth-of-type(3n+2) { background: var(--pistache-l); }
.dnacard:nth-of-type(3n) { background: var(--ciel-l); }
.dnacard.on { box-shadow: 0 0 0 3px var(--lilas); }
.dnacard .kick { color: var(--ink2); }
.dnacard h3 { margin: 2px 0 0; font-family: var(--head); font-weight: 600; font-size: 19px; }
.dnacard .desc { margin: 4px 0 0; font-size: 12.5px; color: #4a4460; }
.dnacard .likes { margin: 8px 0 0; font-size: 11.5px; color: var(--ink2); }
.mbars { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); }
.mbars div { display: grid; grid-template-columns: 68px 1fr 68px; align-items: center; gap: 8px; }
.mbars small { font-size: 10px; color: var(--ink2); }
.mbars small:last-child { text-align: right; }
.mbar { position: relative; height: 4px; border-radius: 99px; background: var(--line); }
.mbar i { position: absolute; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 2px #fff; }
.edit-dna > .kick { margin-top: 22px; }
.fields { display: grid; gap: 8px; margin-top: 12px; }
.fields label { display: grid; grid-template-columns: 64px 1fr; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.fields input { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 16px; }
.panel.slider { margin-top: 10px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; border: 0; border-radius: 99px; background: var(--rose-l); }
.pchip.neg { background: #eeeaf2; color: var(--ink2); }
.pchip .dots i { width: 5px; height: 5px; background: rgba(38, 33, 61, .15); }
.pchip .dots i.on { background: var(--rouge); }
.pchip.neg .dots i.on { background: var(--ink2); }
.rule { display: block; margin-top: 12px; }
.rule span { display: flex; gap: 8px; align-items: baseline; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 14px; color: var(--rouge); }
.rule em { font-style: normal; font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--ink2); }
.rule textarea { width: 100%; margin-top: 4px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; line-height: 1.7; resize: vertical; }
.strength { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.strength button { padding: 12px 0; border: 0; border-radius: 14px; background: var(--rose-l); font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 20px; }
.strength .on { background: var(--rouge); color: #fff; }
.sheet-body > .btn { width: 100%; margin-top: 18px; }

/* ── 平置きイラスト / サンプル画像 ── */
.visual { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: #fbf6ee; box-shadow: 0 6px 16px -8px rgba(31, 28, 46, .3); }
.visual svg, .visual .sample { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.visual .sample { object-fit: cover; background: #fbf6ee; }
.visual.tall { border-radius: var(--r); }
.feature-art .visual { border-radius: 0 0 28px 28px; box-shadow: none; }
.rk-art .visual { border-radius: 12px; box-shadow: none; }
.look.mini .visual { border-radius: 14px; }
.live { position: relative; width: 80%; margin: 0 auto 14px; }
.live .hand { position: absolute; right: -18%; bottom: 10px; font-size: 18px; color: var(--rouge); }
.prompt .pvis { position: relative; width: 70%; margin: 0 auto 16px; }
.gart .visual { box-shadow: none; }
/* 表紙：上にロゴ、下に今日の置き画 */
.cover-art { background: var(--cbg, var(--jaune-l)); }
.cover-visual { position: absolute; left: 50%; bottom: 64px; width: 78%; transform: translateX(-50%) rotate(-2deg); }
.cover-visual .visual { box-shadow: 0 18px 30px -16px rgba(31, 28, 46, .45); border: 6px solid #fff; border-radius: 6px; }
.cover .coverlines { background: none; text-shadow: none; padding-top: 0; }
.cover .hand.big { position: absolute; right: 18px; bottom: 70px; margin: 0; color: var(--rouge); transform: rotate(-8deg); }

/* 平置き ⇄ 縦並び */
.vswitch { display: inline-flex; padding: 3px; border-radius: 99px; background: #fff; box-shadow: 0 2px 10px -4px rgba(31, 28, 46, .35); }
.vswitch button { padding: 4px 12px; border: 0; border-radius: 99px; background: none; font-family: var(--head); font-weight: 600; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.vswitch .on { background: var(--bleu); color: #fff; }
.vswitch.float { position: absolute; right: 10px; top: 10px; z-index: 2; }
.feature-art .vswitch.float { right: 16px; top: 14px; }
.vswitch.small { box-shadow: none; border: 1.5px solid var(--line); }
.vswitch.small button { padding: 3px 10px; font-size: 11px; }
.count .vswitch { margin-left: auto; }
.count span { margin-right: 0 !important; }

/* ── COLOR STORY（配色） ── */
.contents .c1 .ct-x, .contents .c1 i, .contents .c1 small, .contents .c2 i, .contents .c2 small { color: rgba(255, 255, 255, .88); }
.contents .c1::after, .contents .c2::after { color: #fff; }
.pstrip { display: inline-flex; flex: none; height: 14px; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1.5px rgba(31, 28, 46, .12); vertical-align: middle; }
.pstrip i { width: 14px; background: var(--c); }
.pstrip.big { height: 34px; border-radius: 12px; }
.pstrip.big i { width: 22px; }
.pstrip.empty { opacity: .35; }
.colorstory-home .palrow { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.palrow::-webkit-scrollbar { display: none; }
.palcard { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 132px; padding: 12px; border: 0; border-radius: var(--r); background: #fff; text-align: left; box-shadow: 0 4px 12px -8px rgba(31, 28, 46, .4); }
.palcard .pstrip.big { width: 100%; height: 54px; }
.palcard .pstrip.big i { flex: 1; width: auto; }
.palcard b { font-family: var(--head); font-weight: 600; font-size: 12.5px; line-height: 1.4; }
.palcard small { padding: 0 8px; border-radius: 99px; background: var(--jaune-l); font-size: 10.5px; font-weight: 700; color: #8a6400; }
.palpick { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 9px 14px; border: 2px dashed var(--jaune); border-radius: 99px; background: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; }
.palbar { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--jaune-l); }
.palbar > span:not(.pstrip) { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.palbar small { font-size: 10.5px; color: #8a6400; font-weight: 700; }
.palbar b { font-family: var(--head); font-size: 14px; }
.colorstory { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: var(--r); background: #fff; border: 2px solid var(--jaune); }
.colorstory .pstrip.big { flex-direction: column; width: 30px; height: auto; }
.colorstory .pstrip.big i { width: 30px; height: 26px; }
.colorstory b { display: block; margin-top: 2px; font-family: var(--head); font-weight: 600; font-size: 16px; }
.colorstory p:not(.kick) { margin: 2px 0 0; font-size: 12.5px; color: #4a4460; line-height: 1.75; }
.palpanel { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--jaune-l); text-align: left; }
.palpanel > span:not(.pstrip) { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.palpanel small { font-size: 10.5px; font-weight: 700; color: #8a6400; }
.palpanel b { font-family: var(--head); font-size: 14px; }
.palpanel em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--rouge); white-space: nowrap; }
.pkind + .pkind { margin-top: 22px; }
.pkind h3 { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--rouge); }
.pkind h3 small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11.5px; color: var(--ink2); line-height: 1.6; }
.palopt { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 6px; padding: 10px 12px; border: 0; border-radius: 14px; background: #fff; text-align: left; }
.palopt > span:not(.pstrip) { display: flex; flex-direction: column; line-height: 1.45; }
.palopt b { font-family: var(--head); font-size: 14px; }
.palopt small { font-size: 11px; color: var(--ink2); }
.palopt.on { box-shadow: 0 0 0 2.5px var(--rouge); }
.pkind.custom .btn.primary { margin-top: 14px; }
.palgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.palmini { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.palmini small { font-size: 11px; font-weight: 500; line-height: 1.3; }
.palmini.on { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }

/* ── STYLE PACK ── */
.pcover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r); background: var(--cbg, var(--jaune-l)); }
.pcover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcover .visual.bare { position: absolute; left: 8%; right: 8%; top: 6%; bottom: 14%; aspect-ratio: auto; background: none; box-shadow: none; }
.pcover .visual.bare svg rect:first-of-type { fill: transparent; }
.pc-name { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(31, 28, 46, .55)); color: #fff; font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.35; }
.pc-name i { font-family: var(--didone); font-style: italic; font-size: 11px; color: var(--jaune); }
.pcover.hero { margin: 0 -16px 18px; border-radius: 0 0 28px 28px; aspect-ratio: 2 / 3; }
.pcover.hero .pc-name { font-size: 24px; padding: 40px 18px 18px; }
.packlist { display: grid; gap: 16px; }
.packcard { display: grid; grid-template-columns: 42% 1fr; gap: 14px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 6px 16px -10px rgba(31, 28, 46, .35); }
.packcard.on { box-shadow: 0 0 0 3px var(--bleu); }
.packcard .pc-name { font-size: 13px; padding: 20px 10px 8px; }
.pk-body { display: flex; flex-direction: column; min-width: 0; }
.pk-body h3 { margin: 2px 0 0; font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.35; }
.pk-body .desc { margin: 4px 0 0; font-family: var(--pen); font-size: 12.5px; color: #4a4460; }
.pk-meta { margin: 6px 0 0; font-size: 10.5px; color: var(--ink2); }
.pk-body .row2 { grid-template-columns: 1fr; gap: 6px; margin-top: auto; padding-top: 10px; }
.pk-body .btn { min-height: 38px; font-size: 12px; }
.pill { margin-left: 6px; padding: 0 8px; border-radius: 99px; background: var(--bleu); color: #fff; font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: 0; }
.notes { display: grid; gap: 10px; }
.note { padding: 14px 16px; border-radius: var(--r); background: #fff; border-left: 4px solid var(--jaune); }
.note b { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--rouge); }
.note p { margin: 4px 0 0; font-family: var(--pen); font-size: 14px; line-height: 1.9; }
.rules { margin: 10px 0 0; }
.rules div { padding: 6px 0; border-top: 1.5px dotted rgba(31, 28, 46, .15); }
.rules dt { font-family: var(--didone); font-style: italic; font-size: 12px; color: var(--rouge); }
.rules dd { margin: 0; font-family: var(--pen); font-size: 13px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: #fff; }
.gallery figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; }
.gallery figcaption .btn { min-height: 34px; margin-top: 4px; font-size: 11.5px; }
.empty.small { padding: 18px; border-radius: var(--r); background: #fff; font-family: var(--pen); }

/* ── お気に入り / MY CLOSET ── */
.heart { position: absolute; right: 8px; top: 8px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rouge); font-size: 17px; line-height: 1; box-shadow: 0 2px 8px -3px rgba(31, 28, 46, .35); }
.heart.on { background: var(--rouge); color: #fff; }
.heart.sm { position: static; width: 26px; height: 26px; font-size: 14px; box-shadow: none; border: 1.5px solid var(--line); }
.heart.sm.on { border-color: var(--rouge); }
.ibtns { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.mini-btn { padding: 4px 9px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mini-btn.dark { border-color: var(--bleu); background: var(--bleu); color: #fff; }
.credit .col { min-width: 0; }
.favrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.favbtn { padding: 7px 14px; border: 1.5px solid var(--rouge); border-radius: 99px; background: #fff; color: var(--rouge); font-family: var(--head); font-weight: 600; font-size: 13px; }
.favbtn.on { background: var(--rouge); color: #fff; }
.gcard .favbtn { margin: -4px 0 12px; }
.btn.favsave { width: 100%; margin-top: 10px; border-color: var(--rouge); color: var(--rouge); }
.closetbar { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; margin: 12px 0 0; padding: 12px 16px; border-radius: var(--r); background: var(--rouge-l); }
.closetbar span { grid-row: span 2; align-self: center; padding: 4px 10px; border-radius: 99px; background: var(--rouge); color: #fff; font-family: var(--didone); font-style: italic; font-size: 12px; }
.closetbar b { font-family: var(--head); font-weight: 600; font-size: 14px; }
.closetbar em { font-style: normal; font-size: 11.5px; color: var(--ink2); }
.closet .realm { margin-bottom: 4px; }
.cbtns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.visual .sample.mine { object-fit: cover; }
.ip-visual { width: 46%; margin: 0 auto; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; }
.ip-visual svg { width: 100%; height: 100%; display: block; }
.ip-name { margin: 8px 0 4px; text-align: center; font-family: var(--head); font-weight: 600; font-size: 14px; }
.sheet-body .seg { margin-top: 8px; }
.sheet-body .out { margin-top: 10px; }
.sheet-body .btn.primary { margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 120px; z-index: 80; transform: translateX(-50%); padding: 10px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); animation: toastin .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ── マイパック ── */
.pill.y { background: var(--jaune); color: var(--ink); }
.theme-edit .pcover { width: 60%; margin: 0 auto; }
.theme-edit .cbtns { justify-content: center; margin-top: 8px; }
.theme-edit .hint { text-align: center; }
.note.edit { display: grid; gap: 6px; margin-bottom: 10px; }
.note.edit input, .note.edit textarea, .gallery figcaption input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--creme); font-family: var(--pen); font-size: 16px; }
.note.edit .link { justify-self: end; font-size: 11.5px; }
.packedit .mini-row .mini-btn { margin-top: 4px; }
.mini-vis { flex: none; width: 54px; }
.mini-vis .visual { border-radius: 10px; box-shadow: none; }
.card-preview { display: block; width: 100%; border-radius: 14px; box-shadow: 0 10px 24px -12px rgba(31, 28, 46, .4); }
.sheet-body .note { margin-top: 14px; }

/* ── お気に入りからDNA ── */
.pickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pickcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; }
.pickcard .visual { border-radius: 12px; box-shadow: none; outline: 2px solid transparent; transition: outline-color .15s; }
.pickcard.on .visual { outline: 3px solid var(--rouge); }
.pickcard .check { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 1.5px solid var(--line); color: #fff; font-size: 13px; font-weight: 700; }
.pickcard.on .check { background: var(--rouge); border-color: var(--rouge); }
.pickcard small { font-size: 10.5px; line-height: 1.4; }
.exrow { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 9px 10px; border-radius: 14px; background: #fff; }
.exrow.on { box-shadow: inset 3px 0 0 var(--rouge); }
.exname { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.exname b { font-family: var(--head); font-weight: 600; font-size: 13.5px; }
.exname small { font-size: 10.5px; color: var(--ink2); }
.exrow .dots i { width: 6px; height: 6px; }
.exrow .mini-btn { padding: 3px 8px; }
.singles { margin-top: 18px; }
.singles summary { font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.extract .lbl b { color: var(--ink2); font-weight: 400; }

/* ── アクセスコード・設定・規約 ── */
.gate { min-height: 100dvh; padding: 0 20px 30px; display: flex; flex-direction: column; }
.gate-top { position: relative; margin: 0 -20px; padding: 40px 20px 30px; background: var(--jaune-l); border-radius: 0 0 32px 32px; }
.gate-top::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--rouge) 0 18px, #fff 18px 36px); }
.gate .masthead { position: static; color: var(--rouge); }
.gate .hand.big { position: absolute; right: 24px; bottom: 26px; color: var(--bleu); }
.gate-form { display: grid; gap: 12px; margin-top: 26px; }
.gate-form .search { text-align: center; font-size: 18px; letter-spacing: .12em; }
.gate-err { margin: 0; text-align: center; font-size: 12.5px; color: var(--rouge); }
.gate-form.shake { animation: wiggle .3s ease-in-out 2; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: auto 0 0; padding-top: 24px; font-size: 11.5px; }
.legal-links a { color: var(--ink2); text-decoration: underline; }
.legal-links.home { margin-top: 28px; }
.settings .legal-links { justify-content: flex-start; margin-top: 0; padding-top: 0; }
.legal .lh { margin: 22px 0 6px; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--rouge); }
.legal .lp { margin: 0; font-size: 13px; line-height: 1.9; }
.backup-hint { display: block; margin: -6px 0 14px; padding: 8px 14px; border-radius: 99px; background: var(--jaune-l); font-size: 12px; text-align: center; }

/* ── ディテール編集 ── */
.dets { margin: 10px 0 6px; padding: 10px 12px; border-radius: 14px; background: var(--creme); }
.dets-h { margin: 0 0 6px; font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--rouge); }
.dets-h small { margin-left: 8px; font-family: var(--sans); font-weight: 400; font-size: 10.5px; color: var(--ink2); }
.dets .chip { padding: 4px 10px; font-size: 11.5px; }
.attr.c2 { width: 100%; margin-top: 8px; background: #fff; }
.attr.c2 span { display: inline-flex; align-items: center; gap: 6px; }

/* ── トレンド・世界観ファッション ── */
.realm.three { grid-template-columns: repeat(3, 1fr); border-radius: 22px; }
.realm.three button { border-radius: 18px; font-size: 12px; padding: 7px 2px; }
.realm.three i { font-size: 9.5px; }
.gchip.trend { border-color: var(--rouge); color: var(--rouge); font-weight: 700; }
.gchip.trend.on { background: var(--rouge); color: #fff; }
.trend-badge { position: absolute; left: 8px; bottom: 8px; z-index: 1; padding: 1px 8px; border-radius: 99px; background: var(--rouge); color: #fff; font-family: var(--didone); font-style: italic; font-size: 10px; letter-spacing: .06em; }
.trend-home .palrow { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.trend-card { flex: none; width: 118px; }
.world-home { display: grid; gap: 10px; margin-top: 22px; }
.wbanner { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border: 0; border-radius: var(--r); text-align: left; color: #fff; }
.wbanner b { font-family: var(--head); font-weight: 600; font-size: 18px; }
.wbanner small { font-size: 11.5px; opacity: .9; }
.wbanner .kick { color: var(--jaune); }
.wbanner.sub { background: linear-gradient(120deg, #1f1c2e, #6b2244); }
.wbanner.fan { background: linear-gradient(120deg, var(--bleu), #6a4fd0); }

/* ── 系統・スタイリングチェック ── */
.style-home .scat { margin-top: 10px; padding: 12px 14px; border-radius: var(--r); background: #fff; }
.scat-h { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.scat-h i { margin-right: 8px; font-family: var(--didone); font-style: italic; font-size: 12px; color: var(--rouge); }
.scat.casual .scat-h i { color: #b58400; } .scat.street .scat-h i { color: var(--ink); } .scat.kireime .scat-h i { color: var(--bleu); }
.style-row { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.style-row::-webkit-scrollbar { display: none; }
.schip { flex: none; padding: 5px 12px; border: 0; border-radius: 99px; background: var(--jaune-l); font-size: 12px; font-weight: 700; color: #6d5200; }
.schip.on { background: var(--jaune); color: var(--ink); }
.stylebox { margin-top: 6px; }
.sb-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin-bottom: 6px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--jaune-l); text-align: left; }
.sb-item b { font-family: var(--head); font-weight: 600; font-size: 16px; }
.sb-item small { font-family: var(--pen); font-size: 12.5px; color: #4a4460; }
.scheck { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r); background: #fff; border: 2px solid var(--pistache-l); }
.scheck summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
.scheck summary::-webkit-details-marker { display: none; }
.scheck summary b { font-family: var(--head); font-weight: 600; font-size: 14px; }
.scheck summary::after { content: '▾'; margin-left: auto; color: var(--ink2); }
.scheck[open] summary::after { content: '▴'; }
.scheck ul { margin: 8px 0 0; padding: 0; list-style: none; }
.scheck li { display: flex; gap: 8px; padding: 6px 0; border-top: 1.5px dotted var(--line); font-family: var(--pen); font-size: 13px; line-height: 1.7; }
.scheck li span { flex: none; width: 18px; font-family: var(--sans); }
.scheck li.ok span { color: #3f9c4f; font-weight: 700; }
.sheet-body .btn.primary { margin-top: 14px; }

/* ── 自由に作る：空欄のカテゴリ ── */
.empty-slot .nm.tap { display: flex; flex-direction: column; align-items: flex-start; color: var(--bleu); font-size: 14px; }
.empty-slot .nm.tap small { font-family: var(--sans); font-weight: 400; font-size: 10.5px; color: var(--ink2); }
.empty-slot { opacity: .85; }
.empty-vis { display: grid; place-items: center; box-shadow: none; border: 2px dashed var(--line); background: #fff; }
.empty-vis p { margin: 0; text-align: center; font-family: var(--pen); font-size: 13px; color: var(--ink2); line-height: 1.8; }

/* ── シーンや雰囲気から探す ── */
.find .chips .chip { font-size: 13px; padding: 7px 14px; }
.find-res { margin-top: 10px; }
.look .why { margin: 2px 0 0; font-size: 10.5px; font-weight: 700; color: var(--bleu); }

/* ── うちの子・もっと遊ぶ ── */
.chara-card { display: block; width: 100%; margin-top: 18px; text-decoration: none; padding: 14px 16px; border: 0; border-radius: 22px; background: var(--menthe-d); color: #fff; text-align: left; }
.chara-card.empty { display: flex; flex-direction: column; gap: 3px; }
.chara-card .kick { color: var(--jaune); }
.chara-card b { font-family: var(--head); font-weight: 600; font-size: 18px; }
.chara-card small { font-size: 12px; opacity: .9; }
.chara-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chara-head .link { margin-left: auto; color: #fff; text-decoration-color: var(--jaune); }
.chara-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; font-size: 12px; }
.chara-card .palrow { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.chara-card .trend-card { flex: none; width: 108px; }
.chara-card .look h3 { color: #fff; }
.chara-card .look .why { color: var(--jaune); }
.chara-card .heart { display: none; }
.more .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; min-height: 84px; padding: 14px; border: 0; border-radius: var(--r); text-align: left; font: inherit; }
.tile b { font-family: var(--head); font-weight: 600; font-size: 15px; }
.tile small { font-size: 11px; opacity: .85; }
.tile.t1 { background: var(--rouge); color: #fff; }
.tile.t2 { background: var(--bleu); color: #fff; }
.tile.t3 { background: var(--jaune); color: var(--ink); }
.tile.t4 { background: linear-gradient(120deg, #1f1c2e, #6b2244); color: #fff; }
.trend-card { flex: none; width: 118px; }

/* ── MY CHARACTER ── */
.cavatar { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--s, #f3dccb); border: 2px solid #fff; position: relative; }
.cavatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cavatar.noimg i:first-child { position: absolute; left: 0; right: 0; top: 0; height: 46%; background: var(--h); border-radius: 0 0 40% 40%; }
.cavatar.noimg i:last-child { position: absolute; left: 30%; top: 58%; width: 40%; height: 10%; background: radial-gradient(circle at 25% 50%, var(--e) 30%, transparent 32%), radial-gradient(circle at 75% 50%, var(--e) 30%, transparent 32%); }
.cavatar.big { width: 84px; height: 84px; }
.chara-head { display: flex; align-items: center; gap: 10px; }
.chara-head > span { display: flex; flex-direction: column; }
.chara-note { margin: 8px 0 0; font-size: 11px; opacity: .85; }
.characard { display: flex; gap: 14px; margin-top: 12px; padding: 14px; border-radius: 22px; background: #fff; }
.characard.on { box-shadow: 0 0 0 3px var(--bleu); }
.cc-body { flex: 1; min-width: 0; }
.cc-body h3 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 18px; }
.cc-body .row2 { grid-template-columns: 1fr auto; }
.cimg { display: grid; place-items: center; padding: 10px; border-radius: var(--r); background: #fff; }
.cimg img { max-width: 100%; max-height: 340px; border-radius: 12px; cursor: crosshair; touch-action: manipulation; }
.cslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cslot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 2px solid transparent; border-radius: 16px; background: #fff; }
.cslot.on { border-color: var(--rouge); }
.cslot b { font-family: var(--head); font-weight: 600; font-size: 14px; }
.cslot small { font-size: 10.5px; color: var(--ink2); }
.cpal { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.cdot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px var(--line); }
.dna-note.chara { background: var(--bleu-l); }
.dna-note.chara b { color: var(--bleu); }
.dna-note .link { display: block; margin-top: 4px; }

/* マイキャラのOFF */
.ch-btns { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.chara-head .link { margin-left: 0; }
.offbtn { padding: 4px 12px; border: 1.5px solid currentColor; border-radius: 99px; background: transparent; font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 12px; }
.chara-card .offbtn { color: #fff; }
.charabar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 12px; border-radius: 99px; background: var(--bleu-l); font-size: 12.5px; }
.charabar .cavatar { width: 32px; height: 32px; }
.charabar span { flex: 1; }
.charabar .offbtn { color: var(--bleu); }

/* ── bottom sheet ── */
#sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#sheet.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(38, 33, 61, .4); animation: fade .2s; }
.sheet-panel {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px; max-height: 82dvh; display: flex; flex-direction: column;
  background: var(--creme); border-radius: 28px 28px 0 0; overflow: hidden;
  animation: up .3s cubic-bezier(.2, 1.1, .3, 1);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.sheet-head h2 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 17px; }
.sheet-head .x { width: 32px; height: 32px; }
.sheet-body { overflow-y: auto; padding: 6px 16px calc(20px + env(safe-area-inset-bottom)); }
.fgroup + .fgroup { margin-top: 18px; }
.fgroup h3 { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.fgroup h3 small { margin-left: 8px; font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink2); }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin: 20px -16px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--creme); box-shadow: 0 -6px 16px -10px rgba(38, 33, 61, .25); }
.sheet-foot .btn.primary { min-height: 46px; font-size: 14px; box-shadow: 0 4px 0 #a81c24; }
.sh { margin: 4px 0 10px; font-family: var(--head); font-weight: 600; font-size: 13px; }
.sh + .cgrid { margin-bottom: 18px; }
.chips.tabs { margin-bottom: 14px; }
.cgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; border-radius: 12px; background: none; padding: 5px 0; }
.cbtn small { font-size: 9.5px; line-height: 1.2; text-align: center; }
.cbtn.on { background: #fff; box-shadow: 0 0 0 2px var(--rouge); }
.list { display: grid; gap: 6px; margin-top: 6px; }
.li { padding: 12px 16px; border: 0; border-radius: 14px; background: #fff; text-align: left; font-family: var(--head); font-weight: 600; font-size: 14px; }
.li.on { background: var(--rouge); color: #fff; }
.slotgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slotbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 4px; border: 0; border-radius: 16px; background: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; }
.slotbtn i { font-style: italic; font-family: var(--didone); font-size: 11px; color: var(--rouge); }
.gloss { margin: 0; display: grid; gap: 8px; }
.gloss div { padding: 12px 14px; border-radius: 14px; background: #fff; }
.gloss dt { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--rouge); }
.gloss dd { margin: 2px 0 0; font-size: 12.5px; color: #4a4460; }
.gdesc { margin: 0; font-size: 14.5px; line-height: 1.9; }

@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) rotate(-1deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 読みもの部分は手書き風フォント */
.lead, .points li, .keyword p, .gdesc, .dnacard .desc, .colorstory p:not(.kick), .gloss dd, .palopt small, .shuffle-banner small, .contents .ct small { font-family: var(--pen); }
.points li { font-weight: 600; }
.erow .wear { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px 72px; }
.erow .wear small { font-family: var(--pen); font-size: 11px; color: var(--bleu); margin-right: 2px; }
.erow .wear .chip { padding: 4px 10px; font-size: 12px; }
.inner-slot .cat { color: var(--bleu); }
button.look-art.plain { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.mp-empty { text-align: center; padding: 24px 8px; }
.mp-empty .btn { display: inline-block; margin-top: 10px; }
.shuffle-banner.packit { margin: 14px 0 6px; background: var(--bleu); }
.btn[disabled], .li[disabled] { opacity: .45; pointer-events: none; }
/* カテゴリのタイル（あとで画像を差し込む） */
.cat-row { display: flex; gap: 10px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-tile { flex: none; width: 104px; padding: 0 0 8px; border: 0; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 2px 8px rgba(31, 28, 46, .08); overflow: hidden; }
.cat-art { display: block; aspect-ratio: 1; overflow: hidden; background: var(--jaune-l); }
.cat-art svg, .cat-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-art svg { transform: scale(1.25) translateY(4%); }
.cat-tile i { display: block; margin-top: 6px; font-family: var(--didone); font-style: italic; font-size: 10px; color: var(--rouge); }
.cat-tile b { display: block; padding: 0 4px; font-family: var(--head); font-size: 11.5px; line-height: 1.3; }
.cat-tile.on { box-shadow: 0 0 0 3px var(--rouge); }
.cat-row.small .cat-tile { width: 84px; }
.cat-row.small .cat-tile b { font-size: 10.5px; }
/* カテゴリ画像は 3:4 の縦長で作る */
.cat-art { aspect-ratio: 3 / 4; }
.cat-art img { object-position: 50% 20%; }
button.cover-visual { padding: 0; border: 0; background: none; cursor: pointer; }
button.cl-feature { border: 0; }
.visual.cover .sample { object-position: 50% 20%; }
/* 表紙の文字は絵に重なっても読めるように、白いふちどり＋やわらかい影 */
.masthead { z-index: 2; text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1.5px 1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff, 0 4px 14px rgba(31, 28, 46, .28); }
.issue { z-index: 2; font-weight: 600; text-shadow: 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 0 2px 8px rgba(255, 255, 255, .9); }
/* おまけ：ファッション辞典 */
.tile.t5 { grid-column: 1 / -1; background: var(--creme, #fff6dc); color: var(--ink); }
.guide .realm { margin-bottom: 14px; }
.gsearch { width: 100%; margin-bottom: 4px; }
.gk { scroll-margin-top: 70px; }
.gk .gloss { margin-bottom: 8px; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.howto li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 14px; border-radius: var(--r); background: #fff; box-shadow: 0 2px 8px rgba(31, 28, 46, .06); }
.howto .hno { font-family: var(--didone); font-style: italic; font-size: 28px; line-height: 1; color: var(--rouge); }
.howto h3 { margin: 2px 0 4px; font-family: var(--head); font-size: 16px; }
.howto p { margin: 0; font-family: var(--pen); font-size: 13px; line-height: 1.75; color: #4a4460; }
.howto .htip { margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: var(--jaune-l); font-size: 12px; }
.howto .cbtns { margin-top: 8px; }
.howto .cbtns:empty { display: none; }
.contents .c4 { background: var(--menthe-l); }
.contents .c4 i, .contents .c4 small, .contents .c4::after { color: #2f7a66; }
.contents .c4 span { color: #0f5c4a; }
.scan .scan-in { width: 100%; margin-top: 8px; font-size: 12px; }
.scan-result { display: grid; grid-template-columns: 44% 1fr; gap: 12px; align-items: start; }
.scan-result h3 { margin: 4px 0 6px; font-family: var(--head); }
.scan-items { margin: 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 2; }
.note.warn { color: var(--rouge); }
.note-panel .lbl { display: block; }
.note-panel .lbl small { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; color: var(--ink2); }
.note-panel .note-in { display: block; box-sizing: border-box; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1.5px solid #eadfcb; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; line-height: 1.6; resize: vertical; }
/* ビフォーアフター（わたこ） */
.ba { margin-top: 22px; }
.ba-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 4px 16px 8px; scrollbar-width: none; }
.ba-row::-webkit-scrollbar { display: none; }
.ba-before, .ba-after { flex: none; width: 96px; margin: 0; padding: 0; border: 0; border-radius: 14px; background: #fff; overflow: hidden; text-align: center; box-shadow: 0 2px 8px rgba(31, 28, 46, .08); }
.ba-before { width: 112px; outline: 3px solid var(--menthe); }
.ba-before img, .ba-after img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; background: #fffdf6; }
.ba-after { text-decoration: none; color: inherit; }
.ba-before figcaption { padding: 4px 0; font-family: var(--didone); font-style: italic; font-size: 12px; color: var(--menthe-d); }
.ba-after span { display: block; padding: 4px 2px; font-family: var(--head); font-size: 10.5px; line-height: 1.3; }
.ba-arrow { flex: none; font-family: var(--didone); font-size: 26px; color: var(--rouge); }
.ba .hint { margin-top: 4px; }
/* はじめてガイド */
.onboard { text-align: center; }
.ob-wako { width: 110px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border-radius: 18px; outline: 3px solid var(--menthe); }
.ob-hi { margin: 10px 0 4px; font-family: var(--pen); font-size: 14px; line-height: 1.7; }
.ob-steps { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; text-align: left; }
.ob-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: #fff; }
.ob-steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--menthe-d); color: #fff; font-family: var(--didone); font-style: italic; }
.ob-steps span { font-family: var(--pen); font-size: 12.5px; line-height: 1.6; color: #4a4460; }
.ob-steps em { display: block; font-style: normal; font-family: var(--head); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.onboard .btn { width: 100%; margin-top: 8px; }
.legal-links.home .link { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; }

/* ═════ PC用レイアウト（幅1000px以上）：左にメニュー、右に誌面。スマホの見た目はそのまま ═════ */
#pcnav { display: none; }
@media (min-width: 1000px) {
  body { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1180px; box-shadow: none; background: transparent; }
  #pcnav { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 26px 18px; background: var(--creme); border-right: 1px solid var(--line); }
  #app { min-width: 0; min-height: 100dvh; background: var(--creme); box-shadow: 0 0 40px rgba(31, 28, 46, .15); }
  .pc-logo { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 34px; line-height: .95; color: var(--ink); }
  #pcnav nav { display: grid; gap: 2px; }
  #pcnav nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--ink); }
  #pcnav nav a span { width: 22px; text-align: center; }
  #pcnav nav a:hover { background: var(--menthe-l); }
  #pcnav nav a.on { background: var(--menthe-d); color: #fff; }
  .pc-wako { margin-top: auto; text-align: center; }
  .pc-wako img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border-radius: 16px; outline: 3px solid var(--menthe); }
  .pc-wako p { margin: 6px 0 0; font-family: var(--pen); font-size: 12px; color: var(--ink2); }

  /* 誌面は広く。カードは列を増やす */
  #app > * { padding-left: 32px; padding-right: 32px; }
  #app > .topbar { padding-left: 28px; padding-right: 28px; }
  .topbar .back { visibility: visible; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 18px; }
  .cat-row, .ba-row, .style-row, .mini-row, .chara-card .palrow { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .cat-row, .ba-row { flex-wrap: nowrap; }
  .cat-tile, .ba-after, .ba-before { flex: 1 1 0; width: auto; min-width: 0; }
  .ba-before { flex-grow: 1.15; }

  /* 表紙：左にロゴ、右に絵 */
  .cover-art { margin: 0 -32px; height: 600px; min-height: 0; }
  .masthead { font-size: 96px; left: 40px; }
  .issue { left: 44px; top: calc(28px + 96px * 1.8); }
  .sticker { left: 300px; right: auto; top: 300px; }
  .cover-visual { left: auto; right: 60px; width: 360px; bottom: 70px; transform: rotate(-2deg); }
  .cover .coverlines { left: 40px; right: auto; bottom: 30px; padding: 0; }
  .cover .hand.big { right: 40px; bottom: 34px; }
  .contents { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .contents > :first-child { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(3, 1fr); }

  /* 大きくなりすぎる絵は幅をおさえる */
  .feature-art { margin: 0 auto 20px; max-width: 460px; }
  .feature-art .visual { border-radius: 28px; }
  .live { width: 100%; max-width: 360px; }
  .edit, .prompt, .gacha, .dna, .find, .closet, .guide, .diag, .result { max-width: 860px; margin: 0 auto; }
  .lookbook, .feature { max-width: none; }

  /* 下のボタンは誌面の中央に */
  .actionbar { left: calc(50% + 120px); max-width: 640px; }
  /* シートは画面の真ん中に出す */
  .sheet-panel { top: 50%; bottom: auto; transform: translate(-50%, -50%); max-width: 560px; max-height: 84dvh; border-radius: 28px; animation: fade .2s; }
  .toast { left: calc(50% + 120px); }
}
/* マイクローゼットの画像 */
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.pic { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(31, 28, 46, .1); }
.pic img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; background: linear-gradient(transparent, rgba(31, 28, 46, .55)); color: #fff; font-family: var(--head); font-size: 11.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pic-view img { display: block; width: 100%; max-height: 52dvh; object-fit: contain; border-radius: 14px; background: #fff; }
.pic-title { display: block; box-sizing: border-box; width: 100%; margin: 12px 0 10px; padding: 10px 12px; border: 1.5px solid #eadfcb; border-radius: 12px; background: #fff; font-size: 14px; }
.sheet-body .pic-view + .pic-title + .row2 .btn, .sheet-body .btn + .link.danger { margin-top: 0; }
.sheet-body > .link.danger { display: block; margin: 14px auto 0; }
/* アイテムの一言ヒント・配色の比率・性格→系統・ポーズ */
.li .itip { display: block; margin-top: 2px; font-family: var(--pen); font-size: 11.5px; font-weight: 400; color: var(--ink2); }
.ratio { margin: 8px 0 4px; }
.ratio-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(31, 28, 46, .12); }
.ratio-bar i { background: var(--c); }
.ratio small { display: block; margin-top: 3px; font-size: 11px; color: var(--ink2); }
.vstyles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.vstyles small { flex-basis: 100%; font-size: 11.5px; color: var(--ink2); }
.vstyles.small { margin-top: 6px; }
.vstyles.small small { flex-basis: auto; }
.posebox { margin-top: 12px; }
.posebox .lbl { margin: 0 0 6px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.posebox .lbl small { font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink2); }
.contents .c5 { grid-column: 1 / -1; background: var(--menthe-d); color: #fff; }
.contents .c5 i, .contents .c5 small, .contents .c5::after { color: rgba(255, 255, 255, .88); }
/* 衣装デザイン */
.dsteps { list-style: none; display: flex; justify-content: space-between; gap: 2px; margin: 4px 0 10px; padding: 0; }
.dsteps li { flex: 1; text-align: center; }
.dsteps button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--line); color: var(--ink2); font-family: var(--didone); font-style: italic; font-weight: 600; }
.dsteps li.done button { background: var(--menthe-l); color: var(--menthe-d); }
.dsteps li.on button { background: var(--menthe-d); color: #fff; }
.dsteps small { display: block; font-size: 9.5px; line-height: 1.3; color: var(--ink2); }
.dname { margin: 6px 0; font-family: var(--head); font-weight: 600; font-size: 16px; text-align: center; }
.dprev { width: 44%; max-width: 200px; margin: 0 auto 6px; }
.dhead { margin: 14px 0 6px; font-family: var(--head); font-size: 17px; color: var(--menthe-d); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.dcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 0; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 2px 8px rgba(31, 28, 46, .07); }
.dcard.on { box-shadow: 0 0 0 3px var(--menthe-d); }
.dcard b { font-family: var(--head); font-size: 14.5px; }
.dcard small { font-family: var(--pen); font-size: 11.5px; line-height: 1.5; color: var(--ink2); }
.dicon { font-size: 30px; line-height: 1.2; }
.dtitle { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin: 6px 0 12px; font-family: var(--head); font-weight: 600; }
.dtitle > span { color: var(--rouge); }
.dtitle .muted { color: var(--ink2); font-weight: 400; font-size: 13px; }
.dword { padding: 6px 12px; border: 0; border-radius: 99px; background: var(--menthe-d); color: #fff; font-family: var(--head); font-weight: 600; }
.dshelf { grid-template-columns: repeat(5, 1fr); border-radius: 18px; margin-bottom: 10px; }
.dshelf button { border-radius: 14px; font-size: 11.5px; line-height: 1.3; }
.mini-strip { display: inline-flex; margin-left: 6px; vertical-align: middle; border-radius: 4px; overflow: hidden; }
.mini-strip i { width: 8px; height: 12px; background: var(--c); }
.silfig { display: flex; flex-direction: column; align-items: center; height: 54px; justify-content: center; }
.silfig i { display: block; background: var(--menthe-d); }
.silfig i:first-child { width: 22px; height: 22px; border-radius: 6px 6px 3px 3px; }
.silfig i:last-child { width: 22px; height: 28px; border-radius: 2px 2px 4px 4px; }
.sil-A i:last-child { width: 40px; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.sil-Y i:first-child { width: 40px; } .sil-Y i:last-child { width: 16px; }
.sil-O i:first-child { width: 36px; border-radius: 14px 14px 4px 4px; } .sil-O i:last-child { width: 36px; border-radius: 4px 4px 14px 14px; }
.sil-X i:first-child { width: 36px; clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%); } .sil-X i:last-child { width: 40px; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.dhero { margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: var(--menthe-l); font-size: 13px; }
.li .cat { display: inline; margin-right: 6px; font-size: 10.5px; }
.dfill { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dfill li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: start; padding: 10px 12px; border-radius: 14px; background: #fff; }
.dfill .chips { margin-top: 4px; }
.dchosen { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 4px 0; padding: 4px 6px 4px 12px; border-radius: 99px; background: var(--menthe-l); font-family: var(--head); font-weight: 600; font-size: 13px; }
.dchosen.hero { background: var(--jaune-l); padding-right: 12px; }
.dchosen button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; }
.dcheck { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; }
.design .palopt { align-items: flex-start; }
.design .palopt > span:last-child { flex: 1; }
.design { padding-bottom: 130px; }
.dprev { width: 30%; max-width: 150px; }
.subh { margin: 14px 0 4px; font-family: var(--head); font-size: 12.5px; color: var(--menthe-d); }
.subh:first-of-type { margin-top: 4px; }
.dgender { margin-bottom: 6px; }
.dpalslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dpalslots button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 0; border-radius: 14px; background: #fff; }
.dpalslots button.on { box-shadow: 0 0 0 3px var(--menthe-d); }
.dpalslots b { font-family: var(--head); font-size: 13px; }
.dpalslots small { font-size: 11px; color: var(--ink2); }
.dmix { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.dmix .cdot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px rgba(31, 28, 46, .15); }
.subh { margin: 14px 0 4px; font-family: var(--head); font-size: 12.5px; color: var(--menthe-d); }
.subh:first-of-type { margin-top: 4px; }
.dgender { margin-bottom: 6px; }
.dpalslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dpalslots button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 0; border-radius: 14px; background: #fff; }
.dpalslots button.on { box-shadow: 0 0 0 3px var(--menthe-d); }
.dpalslots b { font-family: var(--head); font-size: 13px; }
.dpalslots small { font-size: 11px; color: var(--ink2); }
.dmix { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.dmix .cdot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px rgba(31, 28, 46, .15); }

/* ジャンル図鑑 */
.gcards { display: grid; gap: 12px; }
@media (min-width: 700px) { .gcards { grid-template-columns: 1fr 1fr; } }
.gcard { background: #fff; border-radius: 14px; padding: 12px 14px; scroll-margin-top: 70px; }
.gcard header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gcard h3 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--rouge); }
.gcard header small { color: var(--menthe-d); font-weight: 700; white-space: nowrap; }
.gcard .gtraits { margin: 4px 0 6px; font-size: 13px; font-family: var(--pen); color: #4a4460; }
.gcard .chips { margin: 0 0 8px; }
.gpals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gpal { display: flex; height: 26px; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; overflow: hidden; padding: 0; background: none; cursor: pointer; }
.gpal i { display: block; background: var(--c); }
.gpal:active { transform: scale(.97); }
.gcard .gpat { font-size: .78rem; color: #666; margin: 8px 0; }
.gcard .glooks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.gcard .glooks a { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--menthe-l); color: var(--menthe-d); text-decoration: none; font-weight: 600; }

/* パックづくりアシスト */
.pm-entry { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 10px; text-decoration: none; }
.pm-entry small { font-size: 11px; font-weight: 400; opacity: .9; }
.pm-unity { background: var(--menthe-l); border-radius: 14px; padding: 10px 14px; margin: 6px 0 4px; }
.pm-unity b { color: var(--menthe-d); font-family: var(--head); }
.pm-unity p { margin: 4px 0 0; font-size: 12.5px; font-family: var(--pen); color: #4a4460; }
.pm-rules dt small { margin-left: 6px; font-size: 11px; color: var(--ink2); font-family: var(--pen); }
.pm-rules textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; background: #fff; }
.pm-sum { background: var(--cbg, #fff); border-radius: 18px; padding: 16px; text-align: center; }
.pm-sum h3 { font-family: var(--head); font-size: 20px; margin: 4px 0; color: var(--rouge); }
.pm-sum p { margin: 2px 0 8px; font-family: var(--pen); font-size: 13px; }
.pm-sum .mini-row { justify-content: center; margin-top: 10px; }
.pm-check { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 4px; }
.pm-check li { font-size: 13px; color: var(--ink2); }
.pm-check li.ok { color: var(--menthe-d); font-weight: 600; }
.pmaker .dname .pstrip { display: inline-flex; vertical-align: middle; margin-left: 6px; }

/* マイキャラアルバム */
.album-btn { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin-top: 6px; text-decoration: none; }
.album-btn small { font-size: 11px; color: var(--ink2); }
.alb-cover { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; width: 100%; max-width: 460px; margin: 0 auto 14px; background: var(--menthe-l); }
.alb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alb-mast { position: absolute; left: 0; right: 0; top: 0; padding: 16px 18px 40px; background: linear-gradient(rgba(255,255,255,.85), transparent); }
.alb-mast i { display: block; font-family: var(--didone); font-size: 13px; letter-spacing: .2em; color: var(--rouge); }
.alb-mast b { display: block; font-family: var(--didone); font-style: italic; font-size: 34px; line-height: 1.15; word-break: keep-all; color: var(--ink); text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.alb-mast small { font-family: var(--pen); font-size: 12px; color: var(--ink); }
.alb-stats { display: grid; gap: 6px; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.alb-stats p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.alb-stats .kick { margin: 0; font-size: 10px; }
.alb-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
.alb-page { padding: 8px 8px 10px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 3px 10px rgba(31, 28, 46, .12); text-align: left; transform: rotate(-.6deg); }
.alb-page:nth-child(even) { transform: rotate(.7deg); }
.alb-page img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.alb-cap { display: grid; gap: 2px; margin-top: 6px; }
.alb-cap i { font-family: var(--didone); font-size: 11px; color: var(--rouge); }
.alb-cap b { font-family: var(--pen); font-size: 13px; line-height: 1.3; }
.alb-cap small { font-family: var(--didone); font-style: italic; font-size: 11px; color: var(--ink2); }

/* はじめての3分 */
.quick-hero { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.quick-hero img { width: 84px; height: 112px; object-fit: cover; border-radius: 12px; flex: none; }
.quick-hero p { margin: 0; font-family: var(--pen); font-size: 13.5px; line-height: 1.6; }
.btn.big { padding: 16px; font-size: 16px; }
.quick-chara { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.quick-chara b { font-family: var(--head); font-size: 16px; }
.quick-chara small { display: block; font-family: var(--pen); color: var(--menthe-d); }
.quick-looks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 700px) { .quick-looks { grid-template-columns: repeat(3, 1fr); } }
.quick-look { display: grid; gap: 4px; padding: 8px; border: 0; border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 2px 8px rgba(31, 28, 46, .08); }
.quick-look b { font-family: var(--head); font-size: 13px; line-height: 1.35; }
.quick-look small { font-family: var(--pen); font-size: 11px; color: var(--ink2); }
.quick-tip { background: var(--menthe-l); border-radius: 16px; padding: 12px 14px; margin: 4px 0 12px; }
.quick-tip b { color: var(--menthe-d); font-family: var(--head); }
.quick-tip p { margin: 4px 0; font-family: var(--pen); font-size: 13px; }
.quick-banner { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--rouge); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(229, 87, 79, .3); }
.quick-banner img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; flex: none; }
.quick-banner span { display: grid; flex: 1; }
.quick-banner i { font-family: var(--didone); font-size: 11px; letter-spacing: .15em; opacity: .85; }
.quick-banner b { font-family: var(--head); font-size: 17px; }
.quick-banner small { font-family: var(--pen); font-size: 11.5px; opacity: .95; }
.quick-banner em { font-style: normal; font-size: 24px; }

/* パックカードのデザイン */
.card-edit { display: grid; gap: 14px; }
@media (min-width: 760px) { .card-edit { grid-template-columns: 300px 1fr; align-items: start; } .card-edit .card-preview { position: sticky; top: 80px; } }
.card-edit .card-preview { width: 100%; max-width: 360px; margin: 0 auto; display: block; aspect-ratio: 4 / 5; border-radius: 12px; background: #f3efe8; box-shadow: 0 4px 16px rgba(31, 28, 46, .15); }
.card-opts .sh { margin-top: 12px; }
.card-opts .chip small { display: block; font-size: 10px; opacity: .7; }
.card-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.cp { position: relative; padding: 0; aspect-ratio: 3 / 4; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; }
.cp img, .cp svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp.on { border-color: var(--rouge); }
.cp b { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.card-pair { display: grid; gap: 12px; margin-bottom: 10px; }
.card-pair.two { grid-template-columns: 1fr 1fr; }
.card-pair figure { margin: 0; display: grid; gap: 6px; }
.card-pair figcaption { font-size: 11.5px; font-family: var(--pen); color: var(--ink2); text-align: center; }
.card-opts .veil { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-top: 8px; }
.card-opts .veil input { flex: 1; accent-color: var(--rouge); }
.quick-fix { background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.quick-fix summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.quick-fix summary::-webkit-details-marker { display: none; }
.quick-fix .qf-head { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.quick-fix .qf-head > span { display: grid; gap: 2px; }
.quick-fix .qf-head b { font-family: var(--head); font-size: 16px; }
.quick-fix .qf-head .chips { margin: 2px 0 0; }
.quick-fix summary em { flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: var(--menthe-d); background: var(--menthe-l); padding: 6px 10px; border-radius: 99px; }
.quick-fix[open] summary { margin-bottom: 10px; }
.quick-fix .cimg img { max-height: 46dvh; }
.qr-entry { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 12px; width: 100%; }
.qr-entry small { font-size: 11px; font-weight: 400; opacity: .85; }
.qr-pool .cp { aspect-ratio: auto; display: grid; grid-template-rows: auto auto; }
.qr-pool .cp img, .qr-pool .cp svg { aspect-ratio: 3 / 4; height: auto; }
.qr-pool .cp small { font-size: 10px; line-height: 1.25; padding: 3px 4px; text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.imp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.imp-grid .imp-look { background: #fff; border-radius: 16px; padding: 10px; display: grid; gap: 6px; }
.imp-grid .dhead { font-size: 14px; margin: 0; }
.imp-grid .dhead i { font-family: var(--didone); color: var(--rouge); }
.imp-grid .row2 { grid-template-columns: 1fr; gap: 6px; }
.imp-grid .btn { padding: 8px; font-size: 12px; }
.contents .c6 { background: #f6d7dc; }
.contents .c6 span { color: #8a2f3a; }
.contents .c6 i, .contents .c6 small, .contents .c6::after { color: #a8505b; }

/* セットバー：マイキャラ・DNA（どのページでも見出しの下に） */
.setbar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.setchip { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 8px 4px 4px; border: 1.5px dashed rgba(31, 28, 46, .22); border-radius: 99px; background: #fff; text-align: left; color: var(--ink); }
.setchip.on { border: 1.5px solid var(--menthe-d); background: var(--menthe-l); }
.setchip:last-child.on { border-color: var(--bleu); background: #e7ebfa; }
.setchip > span:not(.si):not(.cavatar) { display: grid; min-width: 0; line-height: 1.2; }
.setchip i { font-family: var(--didone); font-style: italic; font-size: 9.5px; color: var(--ink2); }
.setchip b { font-family: var(--head); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setchip:not(.on) b { color: var(--ink2); font-weight: 400; }
.setchip em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--ink2); }
.setchip .si, .setrow .si { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--creme); font-size: 13px; }
.cavatar.xs { width: 26px; height: 26px; border-width: 1px; }
.home-set { position: sticky; top: 0; z-index: 10; padding: 10px 16px 8px; margin: 0; background: var(--creme); box-shadow: 0 6px 14px -12px rgba(38, 33, 61, .4); }
.home-set .setbar { margin: 0; }
.setsec + .setsec { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.setlist { display: grid; gap: 8px; margin: 8px 0; }
.setrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1.5px solid transparent; border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 1px 6px rgba(31, 28, 46, .06); }
.setrow.on { border-color: var(--menthe-d); background: var(--menthe-l); }
.setrow > span:not(.si):not(.cavatar) { display: grid; flex: 1; min-width: 0; }
.setrow b { font-family: var(--head); font-size: 14px; }
.setrow small { font-size: 11px; color: var(--ink2); }
.setrow em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--menthe-d); white-space: nowrap; }
.season-row { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.season-row::-webkit-scrollbar { display: none; }
.snchip { flex: none; padding: 7px 13px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-family: var(--head); font-size: 13px; color: var(--ink2); }
.snchip.on { border-color: transparent; color: #fff; background: var(--menthe-d); }
.snchip.spring.on { background: #e88aa0; } .snchip.summer.on { background: #3a9fd8; } .snchip.autumn.on { background: #c8743a; } .snchip.winter.on { background: #5b6fb3; } .snchip.rainy.on { background: #6aa5a0; }
@media (min-width: 1000px) { .season-row { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }
.rename { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; background: var(--menthe-l); color: var(--menthe-d); font-size: 12px; font-style: normal; vertical-align: middle; cursor: pointer; }
.alb-mast .rename { width: 30px; height: 30px; font-size: 15px; }
.recipe-copy .btn { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.recipe-copy .btn small { font-size: 10.5px; font-weight: 400; opacity: .75; }

/* ポーズ・カメラアングル（たたんでおいて＋で開く） */
.pickbox { margin: 8px 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 6px rgba(31, 28, 46, .06); overflow: hidden; }
.pb-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; }
.pb-head .lbl { font-family: var(--head); font-size: 13px; color: var(--ink2); min-width: 7.5em; }
.pb-head b { flex: 1; font-family: var(--head); font-size: 14px; color: var(--menthe-d); }
.pb-head b.keep { color: var(--ink); font-weight: 400; }
.pb-head em { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rouge); color: #fff; font-style: normal; font-size: 18px; line-height: 1; }
.pickbox.open .pb-head em { background: var(--ink2); }
.pb-body { padding: 0 14px 14px; }
.pb-body h4 { margin: 10px 0 4px; font-size: 11.5px; color: var(--ink2); font-weight: 600; }
.bgbox { margin: 8px 0; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 6px rgba(31, 28, 46, .06); }
.bgbox .lbl { margin: 0 0 4px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.bgbox .lbl small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink2); }
.bgbox h4 { margin: 10px 0 4px; font-size: 11.5px; color: var(--ink2); font-weight: 600; }
.bgbox .chip .sw { margin-right: 4px; vertical-align: -2px; }
.bgbox .chip small { margin-left: 4px; font-size: 10px; opacity: .7; }
.bgbox .bg-scenes { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.bgbox > .chip { margin-top: 10px; }
.haebox { margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #fff4fb, #f1f6ff); box-shadow: 0 1px 6px rgba(31, 28, 46, .06); }
.haebox .lbl { margin: 0 0 8px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.haebox .lbl small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink2); }
.hae-seg button { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.hae-seg button small { font-size: 9.5px; opacity: .75; font-weight: 400; }
.hae-changes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12px; font-family: var(--pen); color: #5a3f6e; }
.haebox .lbl, .bgbox .lbl { display: block; }
.snchip.haechip { border-color: #e8a6d6; color: #a0447f; background: linear-gradient(135deg, #fff4fb, #f1f6ff); }
.snchip.haechip.on { color: #fff; background: linear-gradient(135deg, #e86fb8, #7a8cf0); border-color: transparent; }
.ccbox { margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: var(--menthe-l); }
.ccbox .lbl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; font-family: var(--head); font-size: 14px; }
.ccbox .lbl small { flex-basis: 100%; font-family: var(--sans); font-size: 11px; color: var(--menthe-d); }
.cc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.cc-chip { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; padding: 8px 10px; border: 1.5px solid transparent; border-radius: 14px; background: #fff; text-align: left; }
.cc-chip .sw { grid-row: span 2; }
.cc-chip b { font-family: var(--head); font-size: 13px; }
.cc-chip small { font-size: 10px; line-height: 1.35; color: var(--ink2); }
.cc-chip em { grid-column: 2; font-style: normal; font-size: 10px; color: var(--menthe-d); font-weight: 600; }
.cc-chip.in { border-color: var(--menthe-d); }
.ccbox .lbl > * { flex: none; } .ccbox .lbl b { color: var(--ink); }
.cpal.preset { display: flex; flex-wrap: wrap; gap: 10px 6px; margin-bottom: 6px; }
.cpal.preset .cdot { position: relative; margin-bottom: 14px; }
.cpal.preset .cdot small { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; font-size: 9.5px; white-space: nowrap; color: var(--ink2); }
.cpal.preset .cdot.on { box-shadow: 0 0 0 3px var(--menthe-d); }
.ccbox .lbl { justify-content: flex-start; }
.ccbox .cc-h { margin: 12px 0 6px; font-size: 12px; color: var(--menthe-d); }
.cc-pals { display: grid; gap: 6px; }
.cc-pals .palopt small { display: block; font-size: 10.5px; color: var(--ink2); }
/* 編集画面の小さいプレビュー（大きいプレビューが見えないときだけ） */
.minilive { position: fixed; z-index: 20; top: 128px; right: max(12px, calc(50% - 240px)); width: 104px; padding: 4px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(31, 28, 46, .22); opacity: 0; transform: translateY(-8px) scale(.9); pointer-events: none; transition: opacity .2s, transform .2s; }
.minilive.show { opacity: 1; transform: none; pointer-events: auto; }
.minilive .visual { width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; }
.minilive .visual svg { width: 100%; height: 100%; }
@media (min-width: 1000px) { .minilive { right: calc(50% - 440px); width: 150px; } }
.tachie { display: flex; gap: 12px; align-items: center; margin: 8px 0 12px; padding: 10px; border-radius: 16px; background: var(--menthe-l); }
.tachie img { flex: none; width: 72px; height: 96px; object-fit: cover; object-position: top; border-radius: 12px; background: #fff; }
.tachie b { display: block; font-family: var(--head); font-size: 14px; }
.tachie small { display: block; font-size: 11px; color: var(--menthe-d); margin: 2px 0 6px; }

/* STYLE DNA の見える化（DNAの色＝青） */
.dnatag { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 99px; font-style: normal; font-size: 10.5px; font-weight: 600; line-height: 1.7; vertical-align: 1px; }
.dnatag.like { background: #e7ebfa; color: var(--bleu); }
.dnatag.avoid { background: #fde6e4; color: var(--rouge); }
.dnapanel, .dnabox { margin: 12px 0; padding: 12px 14px; border-radius: 16px; background: #eef1fc; border: 1.5px solid #cdd5f3; }
.dp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-family: var(--head); font-size: 14px; color: var(--bleu); }
.dp-pct { font-family: var(--didone); font-style: italic; font-weight: 600; font-size: 24px; }
.dp-bars { display: grid; gap: 8px; }
.dp-row { display: grid; grid-template-columns: 6.5em 1fr; grid-template-rows: auto auto; gap: 0 8px; align-items: center; }
.dp-row > small { grid-row: span 2; font-size: 11.5px; color: var(--ink2); }
.dp-track { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #dfe4f7, #b9c3ee); }
.dp-track i { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.dp-ends { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--ink2); }
.dp-ends small { font-size: 9.5px; }
i.dp-dna { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--bleu); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
i.dp-look { display: inline-block; width: 12px; height: 12px; background: var(--rouge); border: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.dp-legend i.dp-look { transform: rotate(45deg); }
i.dp-look.near { background: var(--menthe-d); }
.dp-legend { display: flex; gap: 14px; margin: 8px 0 4px; font-size: 11px; color: var(--ink2); }
.dp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dp-legend i { position: static; }
.dp-chips { margin: 6px 0 0; font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dp-chips span { padding: 1px 8px; border-radius: 99px; background: #fff; }
.dp-chips.like { color: var(--bleu); }
.dp-chips.avoid { color: var(--rouge); }
.dnabox ul { margin: 0; padding-left: 1.2em; font-size: 12.5px; font-family: var(--pen); color: #2f3f7a; display: grid; gap: 2px; }
.dnabox .dp-head a { font-size: 11.5px; }
.dna-order { margin: 6px 0 10px; padding: 8px 12px; border-radius: 12px; background: #eef1fc; color: var(--bleu); font-size: 12.5px; }
.rule-ex { display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 12px; }
.rule-ex small { flex-basis: 100%; font-size: 10.5px; color: var(--ink2); }
.rule-ex .chip { font-size: 11.5px; padding: 4px 10px; text-align: left; }
.rule-note { width: 100%; box-sizing: border-box; border: 1.5px solid #cdd5f3; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 13px; background: #fff; }
.rule-ex { display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 12px; }
.rule-ex small { flex-basis: 100%; font-size: 10.5px; color: var(--ink2); }
.rule-ex .chip { font-size: 11.5px; padding: 4px 10px; text-align: left; }
.rule-note { width: 100%; box-sizing: border-box; border: 1.5px solid #cdd5f3; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 13px; background: #fff; }
.characard { position: relative; }
.cc-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.cc-tools button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 4px rgba(31, 28, 46, .15); font-size: 14px; color: var(--ink2); }
.cc-tools button:disabled { opacity: .3; }
.cc-tools .del { color: var(--rouge); }
.dp-sub { margin: 8px 0 4px; font-size: 12px; font-weight: 600; color: var(--bleu); }
.dna-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; font-family: var(--pen); color: #2f3f7a; }
.dna-lines { margin-top: 8px; font-size: 12px; }
.dna-lines summary { cursor: pointer; color: var(--bleu); }
.dnabox .seg { margin: 4px 0 6px; }
.dnatag { width: fit-content; align-self: flex-start; }

/* アトリエ・仕上げ */
.atelier-hint { margin: 6px 0 4px; }
.toolbox { margin: 10px 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 6px rgba(31, 28, 46, .06); }
.toolbox > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-family: var(--head); font-weight: 600; font-size: 14px; cursor: pointer; }
.toolbox > summary::-webkit-details-marker { display: none; }
.toolbox > summary small { flex: 1; min-width: 0; font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbox > summary em { margin-left: auto; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rouge); color: #fff; font-style: normal; font-size: 17px; }
.toolbox[open] > summary em { background: var(--ink2); }
.toolbox > *:not(summary) { margin-left: 12px; margin-right: 12px; }
.toolbox[open] { padding-bottom: 8px; }
.toolbox .ccbox { margin-top: 0; }
.toolbox .out { width: calc(100% - 24px); }
.extras > summary { flex-wrap: wrap; }
.copybar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 10px 0; }
.copybar .btn.big { padding: 16px; font-size: 16px; }
.actionbar .btn small, .edit + .actionbar .btn small { display: block; font-size: 10.5px; font-weight: 400; opacity: .85; }
.actionbar .btn.primary { display: flex; flex-direction: column; align-items: center; }
.snchip.netachip { border-color: #f2c13a; color: #8a6400; background: #fff8de; }
.snchip.netachip.on { color: #fff; background: #f2a63a; border-color: transparent; }
.prevwrap { display: grid; gap: 8px; align-content: start; }
.card-preview[data-drag] { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.adjbox { background: #fff; border-radius: 14px; padding: 10px 12px; }
.adjbox .hint { margin: 0 0 6px; }
.pool-tabs { margin-bottom: 6px; }
@media (min-width: 760px) { .card-edit .prevwrap { position: sticky; top: 80px; } .card-edit .card-preview { position: static; } }
img[data-spoit] { touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.loupe { position: fixed; z-index: 1000; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 2px; padding: 8px 10px; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(31, 28, 46, .25); pointer-events: none; }
.loupe i { width: 52px; height: 52px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.loupe b { font-family: var(--head); font-size: 12px; }
.loupe small { font-size: 10px; color: var(--ink2); }
.loupe::after { content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.tachie-gen .points { margin: 0 0 8px; font-size: 12.5px; } .tachie-gen details.sub { margin-top: 8px; font-size: 12px; } .tachie-gen details.sub summary { cursor: pointer; color: var(--ink2); } .tachie-gen .out { width: 100%; box-sizing: border-box; }
.snchip.kidolchip { border-color: #c9a6f2; color: #6a3fb0; background: #f6efff; }
.snchip.kidolchip.on { color: #fff; background: #9b6fe0; border-color: transparent; }
.snchip.artchip { border-color: #8fd6c8; color: #1f6f60; background: #eefaf6; }
.snchip.artchip.on { color: #fff; background: linear-gradient(135deg, #3fb99c, #2b4a9e); border-color: transparent; }
.snapbox { margin: 12px 0; padding: 12px 14px; border-radius: 16px; background: #fff7ef; border: 1.5px dashed #e8b98f; }
.snapbox .lbl { margin: 0 0 6px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.snapbox .lbl small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink2); }
.snap-items { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; font-family: Caveat, var(--pen); font-size: 14px; color: #b0562f; }
.ph-list { margin: 0; display: grid; gap: 8px; padding-bottom: 4px; }
.ph-list dt { font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--bleu); }
.ph-list dd { margin: 2px 0 0; font-size: 12.5px; font-family: var(--pen); color: #4a4460; line-height: 1.6; }
.snchip.eventchip { border-color: #f2a65a; color: #a3530f; background: #fff3e6; }
.snchip.eventchip.on { color: #fff; background: #e9822e; border-color: transparent; }
.snchip.citychip { border-color: #f2a6c8; color: #8a3f8f; background: linear-gradient(135deg, #fff0f7, #eef4ff); }
.snchip.citychip.on { color: #fff; background: linear-gradient(135deg, #f28bb8, #7a9cf0, #7fd6c8); border-color: transparent; }
.snchip.hadechip { border-color: #ff5fa2; color: #c2185b; background: #fff0f6; }
.snchip.hadechip.on { color: #fff; background: linear-gradient(135deg, #ff4f9a, #ffb300); border-color: transparent; }
.snchip.dabochip { border-color: #9aa5b1; color: #4a5560; background: #f3f5f7; }
.snchip.dabochip.on { color: #fff; background: #5b6875; border-color: transparent; }
.snchip.morichip { border-color: #a3b58a; color: #5a6b3c; background: #f4f7ee; }
.snchip.morichip.on { color: #fff; background: #7d9460; border-color: transparent; }
.snchip.merhenchip { border-color: #c9a7e8; color: #7a4fa8; background: #f7f0ff; }
.snchip.merhenchip.on { color: #fff; background: linear-gradient(135deg, #b48ce0, #f2a6c8); border-color: transparent; }
.snchip.reijochip { border-color: #d8b56a; color: #8a6a1e; background: #fff8e8; }
.snchip.reijochip.on { color: #fff; background: linear-gradient(135deg, #8b5a8c, #c9a24a); border-color: transparent; }
.snchip.popchip { border-color: #ff4fa3; color: #c2186f; background: linear-gradient(135deg, #fff0f8, #f4ffe0); }
.snchip.popchip.on { color: #fff; background: linear-gradient(135deg, #ff4fa3, #2f6fc0, #9ed11e); border-color: transparent; }
.snchip.skatechip { border-color: #8a8f98; color: #33373d; background: #f1f2f4; }
.snchip.skatechip.on { color: #fff; background: #2b2e33; border-color: transparent; }
.combobox { margin: 4px 0 14px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #fff4fb, #f2f6ff); border: 2px dashed #e9a3c8; }
.combobox .lbl { margin: 0 0 8px; font-weight: 700; }
.combobox .lbl small { display: block; font-weight: 400; opacity: .75; font-size: 12px; }
.combobox .reels { display: flex; align-items: center; gap: 4px; }
.combobox .x { font-weight: 800; color: #d0558f; }
.combobox .reel { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: #fff; border: 2px solid #f0c4dc; cursor: pointer; font: inherit; color: inherit; }
.combobox .reel small { font-size: 10px; opacity: .65; }
.combobox .reel b { font-size: 14px; line-height: 1.25; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.combobox .reel i { font-style: normal; font-size: 10px; opacity: .6; }
.combobox .reel.locked { border-color: #d0558f; background: #ffe8f3; }
.combobox .reel.spin b { animation: reelspin .15s linear infinite; }
@keyframes reelspin { 0% { transform: translateY(-4px); opacity: .3; } 100% { transform: translateY(4px); opacity: .3; } }
.combobox .link { margin-top: 8px; }
.combo-banner { margin-bottom: 12px; }
.combobox p.lbl { display: block; } .combobox p.lbl small { display: block !important; margin: 2px 0 0; }
.snchip.unichip { border-color: #8aa0c0; color: #2c4266; background: #eef3fa; }
.snchip.unichip.on { color: #fff; background: #24315e; border-color: transparent; }
.snchip.jobchip { border-color: #b89a5c; color: #6b4f1d; background: #fbf4e4; }
.snchip.jobchip.on { color: #fff; background: linear-gradient(135deg, #6b4f1d, #b8862e); border-color: transparent; }

.snapbox .lbl { display: block; margin: 0 0 8px; line-height: 1.5; }
.snapbox .lbl small { display: block; margin-top: 4px; line-height: 1.6; font-weight: 400; }
.snapbox .snap-items { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 12px; }
.snapbox .snap-items span { white-space: nowrap; }
.charaedit { padding-bottom: 120px; }
#app[data-view="chara-edit"] { padding-bottom: 150px; }
.brand .brand-alt { list-style: none; display: block; margin: 0 0 4px; }
.brand-card { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #eadfcf; margin-bottom: 12px; }
.brand-card .lead { margin: 0 0 8px; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.kw span { padding: 3px 10px; border-radius: 999px; background: #fff3d6; color: #7a5a17; font-size: 12.5px; font-weight: 700; }
.pm-entry + .pm-entry { margin-top: 8px; }
.secret-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 180px; border-radius: 14px; color: #fff; background: radial-gradient(circle at 30% 20%, #8b6cc7, #2b2350 70%); text-align: center; padding: 16px; }
.secret-art span { font-size: 34px; }
.secret-art b { letter-spacing: .2em; font-size: 13px; }
.secret-art small { opacity: .8; font-size: 11px; }
.secret-art.big { min-height: 320px; }
.secret-art.big span { font-size: 56px; }
.look.secret .look-art { padding: 0; }
.secret-page + .actionbar .link { display: block; margin: 6px auto 0; color: #6b5f7c; }
.secret-img .si-wrap { position: relative; overflow: hidden; border-radius: 10px; }
.secret-img img { filter: blur(22px) saturate(.6); transform: scale(1.15); }
.si-lock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: .15em; background: rgba(43,35,80,.45); }
.mini-btn.on { background: #2b2350; color: #fff; border-color: transparent; }
.secret-badge { display: inline-block; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: #2b2350; color: #fff; font-size: 10.5px; }
.home-gacha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.hg-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 18px; border: 2px solid #e5574f; background: #fff4ef; color: #b23a32; font: inherit; cursor: pointer; }
.hg-btn span { font-size: 26px; line-height: 1; }
.hg-btn b { font-size: 15px; }
.hg-btn small { font-size: 11px; opacity: .8; }
.hg-btn.combo { border-color: #8b6cc7; background: #f6f1ff; color: #5b3f94; }
.lock-banner { margin-top: 12px; background: linear-gradient(135deg, #f1f6ff, #fff4fb); }
.combobox .reel { display: flex; flex-direction: column; align-items: stretch; gap: 4px; cursor: default; }
.combobox .reel-sel { width: 100%; padding: 6px 4px; border-radius: 10px; border: 1.5px solid #f0c4dc; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: inherit; text-align: center; }
.combobox .reel-btns { display: flex; justify-content: center; gap: 4px; }
.combobox .reel-btns button { width: 34px; height: 30px; border-radius: 10px; border: 1.5px solid #f0c4dc; background: #fff; font-size: 15px; cursor: pointer; }
.combobox .reel-btns button.on { background: #ffe8f3; border-color: #d0558f; }
.combobox .reels { align-items: stretch; }
.combobox .x { align-self: center; }
.glist li { flex-wrap: wrap; }
.gsel { flex-basis: 100%; margin: 6px 0 2px; padding: 6px 8px; border-radius: 10px; border: 1.5px dashed #cfc3b0; background: #fffdf8; font: inherit; font-size: 12.5px; color: #6b5f50; }
.heart.star { color: #d9a400; }
.heart.star.on { color: #e0a800; }
.closet .heart.star { font-size: 18px; }

/* ホーム整理：探す（メイン）→ ガチャ → たためるセクション */
.resume.top { display: block; margin: 12px 0 0; }
.find-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; grid-column: 1 / -1; }
.contents .hfold { grid-column: 1 / -1; margin-top: 12px; }
.home-gacha-wrap { margin-top: 18px; }
.home-folds { margin-top: 18px; display: grid; gap: 10px; }
.hfold { border-radius: var(--r); background: #fff; border: 1.5px solid #ece4d6; overflow: hidden; }
.hfold summary { list-style: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 14px 16px; cursor: pointer; }
.hfold summary::-webkit-details-marker { display: none; }
.hfold summary b { font-family: var(--head); font-weight: 600; font-size: 16px; }
.hfold summary small { grid-column: 1; font-family: var(--pen); font-size: 12px; color: var(--ink2); }
.hfold summary em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 20px; color: var(--rouge); }
.hfold.make { background: #eaf6f1; border-color: #c9e8dc; }
.hfold.pack { background: #fdeef0; border-color: #f3cfd5; }
.hfold.my { background: #fff6dc; border-color: #f0e2b4; }
.hf-body { padding: 0 12px 12px; display: grid; gap: 8px; }
.hf-link { position: relative; display: flex; flex-direction: column; padding: 12px 30px 12px 14px; border-radius: 14px; background: rgba(255,255,255,.85); color: var(--ink); text-decoration: none; }
.hf-link b { font-family: var(--head); font-weight: 600; font-size: 15px; }
.hf-link small { font-family: var(--pen); font-size: 12px; color: #5a5470; }
.hf-link::after { content: '›'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ink2); }
@media (min-width: 900px) { .home-folds { grid-template-columns: repeat(3, 1fr); align-items: start; } .find-tiles { grid-template-columns: 1fr 1fr; } }

.realm.four { grid-template-columns: repeat(4, 1fr); border-radius: 22px; }
.realm.four button { border-radius: 18px; font-size: 11.5px; padding: 7px 1px; }
.realm.four i { font-size: 9px; }

/* 下に固定ボタンがあるページは、最後の中身がボタンに隠れないように */
#app:has(.actionbar) { padding-bottom: 186px; }
/* 黄色いバナーの水玉に文字がかぶらないように */
.shuffle-banner { padding-right: 56px; }

/* ═══ 空想アトリエ：夜の魔導書。明朝体と細い金の線だけで、シンプルに ═══ */
#app[data-view="fantasy"] { background: #14112a; padding-bottom: 0; }
.fantasy {
  --fx-gold: #d9bf86; --fx-line: rgba(217, 191, 134, .38); --fx-ink: #ece6f6; --fx-sub: #a49cbd; --fx-bg2: rgba(255, 255, 255, .035);
  --fx-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif; --fx-latin: 'Cormorant Garamond', 'Bodoni Moda', serif;
  padding: 0 20px 170px; color: var(--fx-ink); font-family: var(--fx-serif);
  background: radial-gradient(ellipse 90% 40% at 50% 0%, #2c2357 0%, transparent 70%), #14112a;
}
.fantasy button, .fantasy input, .fantasy select, .fantasy textarea { font-family: var(--fx-serif); }
/* ヒーロー */
.fx-hero { position: relative; padding: 46px 0 30px; text-align: center; }
.fx-c1 { position: absolute; left: 50%; top: 8px; width: 240px; height: 240px; margin-left: -120px; color: var(--fx-gold); opacity: .28; animation: fx-spin 90s linear infinite; pointer-events: none; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.fx-kick { margin: 0; font-family: var(--fx-latin); font-style: italic; font-size: 15px; letter-spacing: .14em; color: var(--fx-gold); }
.fx-title { position: relative; margin: 6px 0 18px; font-family: var(--fx-serif); font-weight: 600; font-size: 34px; letter-spacing: .2em; color: #f1e4c4; }
.fx-lead { position: relative; margin: 0; font-size: 14px; letter-spacing: .02em; color: var(--fx-ink); }
.fx-lead2 { position: relative; margin: 10px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--fx-sub); }
/* モード */
.fx-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.fx-modes button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px 16px; border: 1px solid var(--fx-line); border-radius: 2px; background: transparent; color: var(--fx-sub); transition: border-color .2s, background .2s, color .2s; }
.fx-modes i { font-family: var(--fx-latin); font-style: normal; font-size: 18px; color: var(--fx-gold); opacity: .6; }
.fx-modes b { font-weight: 600; font-size: 15px; color: inherit; }
.fx-modes small { font-size: 11px; }
.fx-modes button.on { border-color: var(--fx-gold); background: var(--fx-bg2); color: #f1e4c4; box-shadow: inset 0 0 0 3px #14112a, inset 0 0 0 4px var(--fx-line); }
.fx-modes button.on i { opacity: 1; }
/* ステップ */
.fx-step { margin-top: 40px; }
.fx-h { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--fx-line); }
.fx-num { min-width: 30px; font-family: var(--fx-latin); font-size: 28px; line-height: 1; color: var(--fx-gold); }
.fx-h i { display: block; font-family: var(--fx-latin); font-size: 13px; letter-spacing: .14em; color: var(--fx-sub); }
.fx-h h2 { margin: 2px 0 0; font-weight: 600; font-size: 17px; letter-spacing: .06em; color: #f1e4c4; }
.fx-cap { margin: 18px 0 10px; font-size: 12px; letter-spacing: .08em; color: var(--fx-sub); text-align: center; }
.fx-cap.left { margin: 8px 0 0; text-align: left; }
/* 入力 */
.fx-in, .fx-row select, .fx-reelrow select { width: 100%; box-sizing: border-box; min-width: 0; padding: 11px 12px; border: 1px solid var(--fx-line); border-radius: 2px; font-size: 16px; color: var(--fx-ink); background: var(--fx-bg2); }
.fx-in:focus, .fantasy select:focus { outline: none; border-color: var(--fx-gold); }
.fx-in::placeholder { color: #6f6890; }
.fantasy option, .fantasy optgroup { color: #1d1440; background: #fff; }
.fx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.fx-row label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-row label span, .fx-reelrow span { font-size: 11.5px; letter-spacing: .08em; color: var(--fx-sub); }
.fx-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-bottom: 14px; border-bottom: 1px solid var(--fx-line); }
.fx-tabs button { padding: 10px 4px; border: 0; background: none; font-size: 13.5px; color: var(--fx-sub); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fx-tabs button.on { color: #f1e4c4; border-bottom-color: var(--fx-gold); }
/* かけ算 */
.fx-reels { display: grid; gap: 10px; }
.fx-reelrow { display: grid; grid-template-columns: 62px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.fx-re { display: grid; place-items: center; height: 44px; border: 1px solid var(--fx-line); border-radius: 2px; background: none; color: var(--fx-gold); font-size: 18px; }
.fx-textbtn { display: block; margin: 14px auto 0; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--fx-line); background: none; font-size: 13px; letter-spacing: .08em; color: var(--fx-gold); }
/* チップ（一括セット・そのほか） */
.fx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fx-chips button { padding: 7px 14px; border: 1px solid var(--fx-line); border-radius: 99px; background: none; font-size: 13px; color: var(--fx-ink); transition: all .15s; }
.fx-chips button.on { border-color: var(--fx-gold); background: var(--fx-gold); color: #1d1638; }
/* スライダー */
.fx-slider { margin-top: 22px; }
.fx-sl-h { margin: 0 0 10px; display: flex; flex-direction: column; gap: 2px; }
.fx-sl-h b { font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.fx-sl-h small { font-size: 12px; line-height: 1.6; color: var(--fx-gold); min-height: 1.6em; }
.fx-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 2px; margin: 10px 0; outline: none; background: linear-gradient(90deg, var(--fx-gold) var(--p), rgba(217, 191, 134, .2) var(--p)); }
.fx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; transform: rotate(45deg); border: 1px solid var(--fx-gold); background: #14112a; box-shadow: 0 0 0 3px #14112a; cursor: pointer; }
.fx-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 0; transform: rotate(45deg); border: 1px solid var(--fx-gold); background: #14112a; }
.fx-range:active::-webkit-slider-thumb { background: var(--fx-gold); }
.fx-ends { margin: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--fx-sub); }
/* 色 */
.fx-cols { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.fx-cols span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11.5px; color: var(--fx-sub); }
.fx-cols i, .fx-card-c i { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--fx-line), 0 0 0 4px #14112a, 0 0 0 5px var(--fx-line); }
/* まとめのカード */
.fx-card { margin-top: 48px; padding: 26px 18px; text-align: center; border: 1px solid var(--fx-line); box-shadow: inset 0 0 0 4px #14112a, inset 0 0 0 5px var(--fx-line); }
.fx-card h2 { margin: 8px 0 6px; font-weight: 600; font-size: 21px; letter-spacing: .06em; color: #f1e4c4; }
.fx-card-t { margin: 0; font-size: 12px; color: var(--fx-sub); }
.fx-card-c { display: flex; justify-content: center; gap: 14px; margin: 16px 0 0; }
.fx-card-c i { width: 16px; height: 16px; box-shadow: 0 0 0 1px var(--fx-line); }
/* 使い方・中身 */
.fx-how { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: fxh; }
.fx-how li { position: relative; padding: 10px 0 10px 34px; font-size: 13px; line-height: 1.8; color: var(--fx-sub); counter-increment: fxh; border-top: 1px solid rgba(217, 191, 134, .16); }
.fx-how li::before { content: counter(fxh, upper-roman); position: absolute; left: 0; top: 9px; font-family: var(--fx-latin); font-size: 17px; color: var(--fx-gold); }
.fx-raw { margin-top: 20px; }
.fx-raw summary { font-size: 13px; color: var(--fx-gold); cursor: pointer; }
.fantasy .out { margin-top: 10px; font-family: var(--sans); background: #f7f3fb; color: #2a1a55; }
.fx-reset { text-align: center; }
/* 固定ボタン */
.fx-bar { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 8px; background: rgba(20, 17, 42, .96); border-top: 1px solid var(--fx-line); box-shadow: none; }
.fx-bar .btn { margin: 0; min-width: 0; min-height: 50px; border-radius: 2px; font-family: var(--fx-serif); font-weight: 600; font-size: 15px; letter-spacing: .12em; }
.fx-cast { border: 0; background: var(--fx-gold); color: #1d1638; box-shadow: none; }
.fx-keep { border: 1px solid var(--fx-line); background: transparent; color: var(--fx-gold); }
/* 呪文を唱えたときの演出 */
.fx-spell { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; background: rgba(14, 11, 30, .9); animation: fx-fade 1.7s ease forwards; }
.fx-spell-c { position: absolute; width: 280px; height: 280px; color: #d9bf86; animation: fx-open 1.7s cubic-bezier(.2, .8, .3, 1) forwards; }
.fx-spell-c svg { width: 100%; height: 100%; }
.fx-spell p { position: relative; margin: 0; text-align: center; font-family: 'Shippori Mincho', serif; font-weight: 600; font-size: 20px; line-height: 1.8; letter-spacing: .1em; color: #f1e4c4; animation: fx-rise .6s .2s ease both; }
.fx-spell p small { font-size: 12.5px; font-weight: 400; letter-spacing: .06em; color: #a49cbd; }
@keyframes fx-fade { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-open { from { transform: scale(.6) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(20deg); opacity: .7; } }
@keyframes fx-rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fx-c1, .fx-spell, .fx-spell * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }
/* クローゼットのカード・ホームの入口 */
.fx-art { display: grid; place-items: center; background: #14112a; }
.fx-ph { display: flex; flex-direction: column; align-items: center; font-size: 30px; color: #d9bf86; }
.fx-ph small { font-size: 12px; color: #d9cdf5; }
.fx-lab { display: flex; flex-direction: column; font-size: 12px; color: var(--ink2); }
.hf-link.fx-link { background: #14112a; color: #ece6f6; }
.hf-link.fx-link b { color: #f1e4c4; font-family: 'Shippori Mincho', serif; letter-spacing: .06em; }
.hf-link.fx-link small { color: #a49cbd; }
.hf-link.fx-link::after { color: #d9bf86; }

/* アイテム行：ボタンが多いときは折り返して、名前が縦書きにつぶれないように */
.credit li { flex-wrap: wrap; row-gap: 6px; }
.credit .nm { flex: 1 1 150px; }
.credit .gsel { flex: 1 1 100%; }
/* iPhoneで入力欄が画面からはみ出さないように（1fr の最小幅が入力欄の幅になるのを防ぐ） */
.fields label { grid-template-columns: 64px minmax(0, 1fr); }
input, select, textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
.fields input { width: 100%; }
/* 空想アトリエだけのヘッダー（セットバーなし・夜空のロゴ） */
.topbar.fx-top { background: rgba(20, 17, 42, .94); box-shadow: 0 1px 0 rgba(217, 191, 134, .3); padding: 12px 16px 10px; backdrop-filter: blur(6px); }
.topbar.fx-top::before { display: none; }
.fx-top .back { background: none; border: 1px solid rgba(217, 191, 134, .45); color: #d9bf86; }
.fx-mast { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.fx-mast span { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: .06em; color: #f1e4c4; }
.fx-mast small { font-family: 'Cormorant Garamond', serif; font-size: 10.5px; letter-spacing: .24em; color: #a49cbd; }
.inote { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.inote small { font-size: 12px; font-weight: 700; color: var(--ink2); }
.inote small i { display: block; font-style: normal; font-weight: 400; font-size: 11px; }
.inote textarea { width: 100%; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; }
.seg.edit-mode { margin: 10px 0 4px; }
.seg.edit-mode button { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.seg.edit-mode small { font-size: 10.5px; font-weight: 400; opacity: .8; }

/* ── パックのページ（リンク・色・フレーム・ボタン） ── */
.pk-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pk-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 700; }
.pk-links a span { font-size: 11px; color: var(--ink2); }
.link-row { margin-top: 8px; padding-top: 8px; border-top: 1px dotted var(--line); }
.fx-outsel { margin-top: 18px; }
.seg.mp-tabs { margin: 14px 0 6px; } .seg.mp-tabs button { display: flex; flex-direction: column; align-items: center; line-height: 1.3; } .seg.mp-tabs small { font-size: 10.5px; font-weight: 400; opacity: .8; }

/* パックのページの見た目（作った人が選ぶ：色・画像のフレーム・ボタン） */
.packpage.pg { --pg-accent: var(--rouge); background: var(--pg-bg, transparent); border-radius: 0 0 24px 24px; padding-bottom: 32px; }
.pg .kick, .pg h2.sec span, .pg .pk-links a span { color: var(--pg-accent); }
.pg h2.sec em { background: var(--pg-accent); }
.pg .btn, .pg .pk-links a { border-color: var(--pg-accent); color: var(--pg-accent); background: #fff; }
.pg .btn.dark { background: var(--pg-accent); color: #fff; }
.pg-b-square .btn, .pg-b-square .pk-links a { border-radius: 4px; }
.pg-b-outline .btn, .pg-b-outline .pk-links a { background: transparent; }
.pg-b-outline .btn.dark { background: transparent; color: var(--pg-accent); }
.pg-b-soft .btn, .pg-b-soft .pk-links a { border: 0; border-radius: 16px; background: var(--pg-accent); color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.pg-b-soft .pk-links a span { color: #fff; }
.pg .pcover, .pg .look-art .visual, .pg .gallery img { border-radius: 16px; overflow: hidden; }
.pg-f-square .pcover, .pg-f-square .look-art .visual, .pg-f-square .gallery img { border-radius: 0; }
.pg-f-polaroid .pcover, .pg-f-polaroid .look-art .visual, .pg-f-polaroid .gallery img { border-radius: 2px; border: 8px solid #fff; border-bottom-width: 24px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); }
.pg-f-double .pcover, .pg-f-double .look-art .visual, .pg-f-double .gallery img { border-radius: 4px; border: 4px double var(--pg-accent); }
.pg-f-arch .pcover, .pg-f-arch .look-art .visual, .pg-f-arch .gallery img { border-radius: 999px 999px 14px 14px / 140px 140px 14px 14px; }
.pg-dark { color: #f1ece0; }
.pg-dark .lead, .pg-dark .hint, .pg-dark .ftitle, .pg-dark h3 { color: #f1ece0; }
.pg-dark .dnacard, .pg-dark .note, .pg-dark .look { color: var(--ink); }
/* 編集画面の選択肢 */
.pg-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.pg-pick button { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 64px; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 11px; color: var(--ink2); }
.pg-pick button.on { border-color: var(--rouge); box-shadow: 0 0 0 2px var(--rouge) inset; color: var(--ink); }
.pg-pick i { display: block; font-style: normal; }
.pg-pick i[style] { width: 40px; height: 24px; border-radius: 6px; background: linear-gradient(90deg, var(--a) 62%, var(--b) 62%); box-shadow: 0 0 0 1px var(--line); }
.pg-pick .fr { width: 30px; height: 36px; background: #cfc6b8; }
.fr-round { border-radius: 8px; } .fr-square { border-radius: 0; } .fr-polaroid { border: 4px solid #fff; border-bottom-width: 10px; box-shadow: 0 2px 5px rgba(0,0,0,.25); }
.fr-double { border: 3px double #8a7f70; border-radius: 3px; } .fr-arch { border-radius: 99px 99px 6px 6px / 40px 40px 6px 6px; }
.pg-pick .bt { padding: 3px 8px; font-size: 10px; font-weight: 700; color: var(--rouge); border: 1.5px solid var(--rouge); border-radius: 99px; background: #fff; }
.bt-square { border-radius: 3px !important; } .bt-outline { background: transparent !important; } .bt-soft { border: 0 !important; background: var(--rouge) !important; color: #fff !important; border-radius: 10px !important; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
/* マイキャラ編集：選んだ場所のすぐ下でスポイトできる絵（スクロールしなくていいように小さめ） */
.cimg.spoit-here { margin: 10px auto 4px; max-width: 260px; }
.cimg.spoit-here img { max-height: 46vh; width: auto; max-width: 100%; display: block; margin: 0 auto; touch-action: none; }
.set-adapt { margin: 8px 0; } .chara-fit { margin-top: 10px; }

/* パックのアイテム（LOOKから自動でまとめる） */
.pk-items { margin-top: 8px; border-radius: var(--r); background: #fff; }
.pk-items > summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-family: var(--head); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.pk-items > summary::-webkit-details-marker { display: none; }
.pk-items > summary em { font-style: normal; font-family: var(--sans); font-size: 12px; color: var(--ink2); }
.pk-items > summary em::after { content: ' ＋'; }
.pk-items[open] > summary em::after { content: ' －'; }
.pk-items .credit { padding-top: 0; }
.pk-items .credit .cat { display: none; }
.pg-dark .pk-items, .pg-dark .pk-items .credit { background: rgba(255, 255, 255, .06); color: inherit; }
/* パック編集：いまのDNA・テーマ画像の比率 */
.mp-dna-cur { margin-bottom: 10px; }
.mp-dna-cur .dp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mp-dna-cur .dp-head small { font-size: 10.5px; color: var(--ink2); }
.ratio-hint { padding: 10px 12px; border-radius: 12px; background: var(--creme); }
.favbtn small { display: block; font-size: 9.5px; font-weight: 400; opacity: .75; }
/* アイテムを選ぶ画面：左に小さい絵 */
.li.li-thumb { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; }
.li.li-thumb .ithumb { width: 52px; height: 60px; margin: 0; }
.li-txt { flex: 1; min-width: 0; }
.li.on .itip { color: rgba(255, 255, 255, .85); }
.my-subh { color: var(--rouge); }
.myitems .itip .sw { vertical-align: -2px; }
/* マイアイテムのカード（選ぶ画面） */
.mycards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.mycard { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 6px 8px; border: 0; border-radius: 14px; background: #fff; text-align: left; box-shadow: 0 2px 8px -4px rgba(59, 47, 34, .25); }
.mc-art { display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; }
.mc-art svg, .mc-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mycard b { font-family: var(--head); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.mycard small { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ink2); }
.mycard:active { transform: scale(.97); }
/* ★アイテムの名前 */
.fi-name { width: 100%; min-width: 0; margin-top: 2px; padding: 4px 8px; border: 1.5px dashed var(--line); border-radius: 8px; background: #fff; font-family: var(--head); font-weight: 600; font-size: 14px; }
.fi-name:focus { border-style: solid; border-color: var(--rouge); outline: none; }
.fi-sub { display: block; margin-top: 3px; font-size: 10.5px; color: var(--ink2); }
.fi-namebox { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ithumb.big { width: 80px; height: 96px; border-radius: 12px; }
.fi-name.big { font-size: 16px; padding: 10px 12px; }
/* パック編集のLOOK：ボタンが多いので2列に。ボタンは幅いっぱいで、文字は折り返す */
.packedit .mini-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.packedit .mini-row .mini-btn { display: block; width: 100%; white-space: normal; line-height: 1.3; padding: 6px 8px; font-size: 11.5px; text-align: center; }
.packedit .mini-row h3 { overflow-wrap: anywhere; }
@media (min-width: 700px) { .packedit .mini-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* パック編集：保存＋カード、単品アイテムの編集 */
.actionbar.mp-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 10px; }
.mp-items li { gap: 8px; }
.mp-items .nm { flex: 1 1 auto; }
.mp-items .fi-name { font-size: 13.5px; }
.mp-items .ithumb { width: 44px; height: 50px; }
.pk-items .credit li .nm small { font-family: var(--sans); }
/* パックをリンクで送る・受けとる */
.share-box { padding: 16px; border-radius: var(--r); background: #fff; margin-bottom: 12px; }
.share-box h3 { font-family: var(--head); font-size: 18px; margin: 4px 0 6px; }
.share-url { width: 100%; min-width: 0; margin: 8px 0 10px; padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: 10px; font-size: 12.5px; background: var(--creme); }
.share-box .btn + .btn { margin-top: 8px; }
.getpack .pcover.hero { margin-bottom: 14px; }
.share-box .btn { display: block; width: 100%; }
.send-seg { margin: 10px 0 12px; }
.send-seg small { display: block; font-size: 10px; font-weight: 400; opacity: .8; }
.send-pass { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 12.5px; font-weight: 700; }
.send-pass input { min-width: 0; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff; }
.share-pass { margin: -2px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--creme); font-size: 13px; }
.share-pass b { font-size: 16px; letter-spacing: .04em; user-select: all; }
.share-pass small { display: block; font-size: 10.5px; color: var(--ink2); }
/* 色おまかせモード */
.cfree-toggle { display: block; width: 100%; margin: 10px 0 6px; padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; text-align: left; }
.cfree-toggle b { font-size: 14px; }
.cfree-toggle small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink2); line-height: 1.45; }
.cfree-toggle.on { border-style: solid; border-color: var(--rouge); background: var(--rose-l, #fdeeee); }
.pvis.cfree { position: relative; }
.pvis.cfree .visual svg { filter: grayscale(1) opacity(.75); }
.cfree-badge { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); white-space: nowrap; }
/* AIの返事を貼る：ボタン1つで */
.paste-how { margin: 6px 0 4px; padding-left: 1.4em; font-size: 13px; line-height: 1.7; }
.paste-btn { display: block; width: 100%; margin: 8px 0; }
.paste-manual { margin-top: 6px; }
.paste-manual > summary { font-size: 11.5px; color: var(--ink2); cursor: pointer; }
.paste-manual textarea { margin-top: 6px; }
/* 画像は3枚まで */
.mphotos { display: inline-flex; gap: 6px; margin: 4px 6px 4px 0; vertical-align: middle; flex-wrap: wrap; }
.mph { position: relative; width: 44px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--creme); }
.mph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mph button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; line-height: 18px; }
.mph-full { font-size: 10.5px; color: var(--ink2); margin-right: 6px; }
.look-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.look-photos figure { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--creme); }
.look-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look-photos button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; }
/* パック編集のLOOK：並べかえ・名前 */
.mp-order { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; }
.packedit .mini-row .mp-order .mini-btn { width: auto; flex: 0 0 auto; padding: 4px 12px; margin-top: 0; }
.mp-order .mini-btn[disabled] { opacity: .3; }
.mp-order span { font-size: 12px; font-weight: 700; color: var(--ink2); }
.mp-lname { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.mp-lname input, .secret-name input { width: 100%; min-width: 0; padding: 6px 8px; border: 1.5px dashed var(--line); border-radius: 8px; background: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; }
.mp-lname input:focus, .secret-name input:focus { border-style: solid; border-color: var(--rouge); outline: none; }
.secret-name { display: block; margin-top: 4px; }
.secret-name small { display: block; font-size: 10px; color: var(--ink2); margin-bottom: 2px; }
.mp-look .mphotos { display: flex; width: 100%; margin: 6px 0 2px; }
.mph-full { display: block; margin: 2px 0 4px; }
/* パックのページのフォント（作った人が選ぶ） */
.pg.pg-font { font-family: var(--pg-body, var(--sans)); }
.pg.pg-font .ftitle, .pg.pg-font .lead, .pg.pg-font h3, .pg.pg-font .note b, .pg.pg-font .pc-name, .pg.pg-font .look h3, .pg.pg-font .pk-items summary, .pg.pg-font .credit .nm, .pg.pg-font h2.sec em, .pg.pg-font .kw span, .pg.pg-font .btn { font-family: var(--pg-head, var(--head)); }
.pg-fonts .fs { display: block; font-style: normal; font-size: 15px; line-height: 1.3; margin-bottom: 2px; white-space: nowrap; }
.share-qr { text-align: center; }
.share-qr img { width: 220px; max-width: 100%; image-rendering: pixelated; border-radius: 10px; background: #fff; }
.pg-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-fonts button { min-width: 0; }
.pg-fonts .fs { font-size: 14px; max-width: 100%; overflow: hidden; }
.pg-fonts i.fs { width: auto; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
/* LOOKのポーズ・背景を固定（パック編集）と、使う側の表示 */
.mp-stage { margin: 6px 0; padding: 6px 8px; border-radius: 10px; background: var(--creme); }
.mp-stage > summary { font-size: 11.5px; font-weight: 700; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.mp-stage > summary::-webkit-details-marker { display: none; }
.mp-stage label { display: block; margin-top: 6px; }
.mp-stage label small { display: block; font-size: 10px; color: var(--ink2); }
.mp-stage select, .mp-stage input { width: 100%; min-width: 0; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.stage-lock { margin: 10px 0; padding: 12px 14px; border-radius: var(--r); background: #fff; border: 1.5px dashed var(--rouge); }
.stage-lock p { margin: 4px 0; }
/* 長い言葉で画面が横にのびないように */
.snapbox .snap-items span { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.credit .nm, .credit .nm small, .erow .nm { overflow-wrap: anywhere; }
.credit .nm small.other-note { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prompt, .feature, .packpage, .edit { overflow-wrap: anywhere; }
/* ホームのメニュー（作る・空想アトリエ・マイクローゼット・マイキャラ） */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 6px; }
.hub-btn { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-radius: var(--r); background: #fff; box-shadow: 0 3px 12px -6px rgba(59, 47, 34, .3); color: var(--ink); text-decoration: none; }
.hub-btn span { font-size: 24px; line-height: 1.1; }
.hub-btn b { font-family: var(--head); font-weight: 600; font-size: 16px; }
.hub-btn small { font-size: 11px; color: var(--ink2); line-height: 1.45; }
.hub-btn.make { background: var(--rose-l, #fdeeee); }
.hub-btn.fx { background: #1d1a2e; color: #f3e6c4; }
.hub-btn.fx small { color: rgba(243, 230, 196, .75); }
.hub-btn.fx b { font-family: 'Shippori Mincho', serif; letter-spacing: .06em; }
.hub-btn.closet { background: var(--ciel-l, #eef5fb); }
.hub-btn.chara { background: #eef8f3; }
/* 作るページ */
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mk-card { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 0; border-radius: var(--r); background: #fff; text-align: left; color: var(--ink); text-decoration: none; font: inherit; box-shadow: 0 2px 10px -6px rgba(59, 47, 34, .3); }
.mk-card span { font-size: 22px; }
.mk-card b { font-family: var(--head); font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.mk-card small { font-size: 11px; color: var(--ink2); line-height: 1.5; }
/* マイクローゼットのタブ5つ */
.realm.five { grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 22px; }
.realm.five button { border-radius: 18px; font-size: 10.5px; padding: 7px 0; }
.realm.five i { font-size: 8.5px; }
.make { padding: 0 16px 40px; }
/* シークレットLOOKの「ひとこと」 */
.secret-line { margin: 2px 0 0; font-family: var(--pen); font-size: 12px; color: var(--ink2); line-height: 1.5; overflow-wrap: anywhere; }
.secret-line.big { font-size: 16px; color: var(--ink); }
h1 small.secret-line, h2 small.secret-line { display: block; font-size: 14px; margin-top: 4px; }
/* DNAのテーマカラー：配色パレットみたいに、3色を横にならべた帯（カードの上） */
.dnacard.dna-tinted { position: relative; overflow: hidden; padding-top: 30px; }
.dnacard.dna-tinted::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--dcband, linear-gradient(90deg, var(--dc1) 0 33.34%, var(--dc2) 33.34% 66.67%, var(--dc3) 66.67%)); }
.dna-preview { min-height: 74px; }
.dna-preview.dna-tinted { padding-top: 48px; }
.dna-preview.dna-tinted::before { height: 34px; }
.dna-cols { display: flex; gap: 10px; margin: 10px 0; }
.dcol { position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--line); }
.dcol small { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; line-height: 18px; }
.dcol.add { display: grid; place-items: center; background: #fff; border: 2px dashed var(--line); box-shadow: none; overflow: hidden; cursor: pointer; }
.dcol.add input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.dcol.add span { font-size: 22px; color: var(--ink2); }
.lock-note { align-self: center; font-size: 11px; color: var(--ink2); }
/* シークレットは「？」 */
.secret-art .q { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); font-family: var(--didone); font-size: 38px; font-weight: 600; line-height: 1; }
.secret-art.big .q { width: 96px; height: 96px; font-size: 58px; }
/* パックのLOOKから、パックのホームへ */
.pack-home { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; margin: 10px 0 12px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.pack-home span { grid-row: span 2; font-size: 22px; }
.pack-home b { font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.pack-home small { font-size: 11px; color: var(--ink2); }
.pack-home em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-size: 20px; color: var(--rouge); }

/* LOOKの画像の並べかえ（1枚めがサムネ） */
.mph.thumb { box-shadow: 0 0 0 2px var(--rouge); }
.mph i { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 0; background: rgba(229, 87, 79, .9); color: #fff; font-style: normal; font-size: 9px; text-align: center; }
.mph .mv { top: auto; right: auto; left: 2px; bottom: 2px; width: 20px; height: 18px; border-radius: 6px; font-size: 9px; }
.mph-hint { display: block; width: 100%; font-size: 10px; color: var(--ink2); }
.look-photos .lp-thumb { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 99px; background: var(--rouge); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; }
.look-photos .mv { top: auto; right: auto; left: 6px; bottom: 6px; width: auto; height: auto; padding: 4px 10px; border-radius: 99px; font-size: 11px; }
/* パック名をかくす */
.check-row { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 13px; }
.check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--rouge); }
.check-row small { display: block; font-size: 11px; color: var(--ink2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* LOOKのサムネ：横スワイプで切りかえ */
.vswipe .vtrack { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.vswipe .vtrack::-webkit-scrollbar { display: none; }
.vswipe .vslide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.vswipe .vslide svg, .vswipe .vslide .sample { position: absolute; inset: 0; width: 100%; height: 100%; }
.vdots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 5px; padding: 3px 7px; border-radius: 99px; background: rgba(255, 255, 255, .7); pointer-events: none; z-index: 2; }
.vdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(31, 28, 46, .25); }
.vdots i.on { background: var(--rouge); }
.secret-tune { margin: 12px 0; padding: 12px; border-radius: var(--r); background: #f6f2ff; border: 1.5px dashed #b9a4e0; }
.secret-tune > .lbl { margin: 0 0 8px; font-size: 13px; }
.secret-tune .dnabox { margin-top: 10px; }
/* シークレットのパネル（絵） */
.secret-art.img { position: relative; padding: 0; min-height: 0; aspect-ratio: 3 / 4; background: #1d2a2a; overflow: hidden; }
.secret-art.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.secret-art.img.big { min-height: 0; }
.look-art .secret-art.img, .pcover .secret-art.img { height: 100%; border-radius: inherit; }
.pcover .secret-art.img { position: absolute; inset: 0; aspect-ratio: auto; }
/* セットメニューのDNAの特徴・配色のきめかた */
.dna-sum { margin: 6px 0 10px; }
.dna-sum .dp-head { display: flex; justify-content: space-between; align-items: baseline; }
.dna-sum .dp-head small { font-size: 10.5px; padding: 1px 8px; border-radius: 99px; background: var(--rouge); color: #fff; }
.dna-line { margin: 2px 0 6px; font-family: var(--head); font-weight: 600; font-size: 15px; }
.dna-pal, .plan-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 8px; }
.pdot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.dna-pal small, .plan-row small { font-size: 10.5px; color: var(--ink2); margin-right: 4px; }
.plan-row .arrow { font-size: 16px; color: var(--ink2); margin: 0 4px; }
.setsec.plan { padding: 10px 12px; border-radius: 16px; background: #fff; }
.dna-mini { display: block; font-size: 9.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
/* DNAをえらぶ一覧：タイトルだけでなく、特徴もいっしょに */
.setrow .dna-row-line { color: var(--ink); font-size: 12px; }
.dna-row-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 3px 0 2px; }
.dna-row-info .pdot { width: 12px; height: 12px; }
.dna-row-info small { margin-left: 4px; overflow-wrap: anywhere; }
/* 空想アトリエ：ほかの呪文（スナップ風・RPG） */
.fx-extra { display: grid; gap: 10px; margin: 30px 0 0; }
.fx-extra .fx-kick { text-align: center; }
.fx-xbtn { display: grid; gap: 4px; padding: 14px 16px; text-align: left; color: var(--fx-ink); background: transparent; border: 1px solid var(--fx-line); border-radius: 2px; }
.fx-xbtn b { font-family: var(--fx-serif); font-weight: 600; font-size: 15px; letter-spacing: .06em; color: #f1e4c4; }
.fx-xbtn small { font-size: 12px; line-height: 1.7; color: var(--fx-sub); }
.fx-xbtn:active { background: rgba(217, 191, 134, .08); }
/* サイコロ：ガラガラ */
.fx-reelrow.rolling select { animation: fx-rattle .09s linear infinite; color: var(--fx-gold); }
.fx-reelrow.landed select { animation: fx-land .35s ease-out; }
@keyframes fx-rattle { 0% { transform: translateY(-2px); } 50% { transform: translateY(2px); } 100% { transform: translateY(-2px); } }
@keyframes fx-land { 0% { transform: scale(1.06); box-shadow: 0 0 0 2px var(--fx-gold); } 100% { transform: scale(1); box-shadow: none; } }
.fx-reelrow.rolling .fx-re svg { animation: fx-spin .5s linear infinite; }

/* カラートーン */
.tone-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink2); background: var(--creme); vertical-align: 1px; }
.colorstory .tone-tag { margin: 4px 0 0 8px; }
.tone-list { display: grid; gap: 8px; }
.tone-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; background: #fff; border: 1.5px solid transparent; border-radius: 14px; box-shadow: 0 1px 6px rgba(31, 28, 46, .06); }
.tone-opt.on { border-color: var(--menthe-d); background: var(--menthe-l); }
.tone-opt > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.tone-opt b { font-size: 14px; }
.tone-opt small { font-size: 11.5px; color: var(--ink2); }
.tone-sw { flex: none; display: grid; grid-template-columns: repeat(4, 13px); gap: 3px; }
.tone-sw i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.tone-sw i.none { grid-column: span 4; width: auto; border-radius: 6px; background: repeating-linear-gradient(45deg, var(--creme) 0 4px, #fff 4px 8px); }
.tone-rec { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10px; color: #fff; background: var(--rose, #e57a95); vertical-align: 1px; }
.tone-on { font-style: normal; color: var(--menthe-d); font-weight: 700; }
.tone-ex { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--creme); }
.tone-ex > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.tone-ex small { font-size: 11.5px; color: var(--ink2); }
.dna-pal.tone-row .pdot { width: 14px; height: 14px; }
.palopt.static { cursor: default; }
.undo-color { display: block; margin: 6px 0 0 auto; }
.dna-note.tone-note b { margin-right: 6px; }
/* アトリエ：マイキャラカラー（DNAのすぐ下） */
.chara-colors .dp-head small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink2); }
.cc-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.cc-pal { flex: none; display: grid; justify-items: center; gap: 4px; width: 92px; padding: 8px 6px; background: #fff; border: 1.5px solid transparent; border-radius: 12px; box-shadow: 0 1px 6px rgba(31, 28, 46, .06); }
.cc-pal.on { border-color: var(--menthe-d); background: var(--menthe-l); }
.cc-pal b { font-size: 11px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.chara-colors .toolbox { margin-top: 4px; }
.chara-colors .dp-head { flex-wrap: wrap; }
.chara-colors .dp-head small { width: 100%; margin-top: 2px; }
.dna-inpacks { margin: 4px 0 12px; font-size: 12.5px; color: var(--ink2); }
.dna-inpacks a { font-weight: 600; color: var(--bleu); }
.dna-inpacks small { display: block; font-size: 11px; }
.dna-editbtn { display: block; margin: 8px 0 4px; text-align: center; }
.tone-sub { margin-top: 14px; }
.tone-sub small { display: block; font-weight: 400; color: var(--ink2); }
.seg.tone-level button small { display: block; font-size: 10px; font-weight: 400; line-height: 1.4; }
.tone-group { margin: 12px 0 0; }
.season-tag { display: block; margin-top: 2px; font-family: var(--body, inherit); font-size: 11.5px; font-weight: 400; color: var(--ink2); }
/* ことばの「？」 */
.qhelp { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink2); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 2px; cursor: pointer; }
.qhelp:active { background: var(--creme); }
.help-text { margin: 0; font-size: 14px; line-height: 1.9; }
/* コーデ一覧：タブ（リアル／世界観）と、その中のカテゴリを1つの箱に（どれがどれの中か分かるように） */
.realm.three:has(+ .realm-panel) { border-radius: 22px 22px 0 0; padding-bottom: 0; }
.realm-panel { margin: 0 0 6px; padding: 10px 10px 8px; border-radius: 0 0 22px 22px; background: var(--rose-l); }
.realm-cap { margin: 2px 4px 0; font-size: 12.5px; font-weight: 600; color: var(--rouge); }
.realm-cap small { display: block; font-weight: 400; font-size: 10.5px; color: var(--ink2); }
.realm-panel .cat-row { margin: 8px -10px 0; padding: 2px 10px 4px; }
.dna-colorrow .dp-head { flex-wrap: wrap; }
.dna-colorrow .dp-head small { width: 100%; margin-top: 2px; font-weight: 400; font-size: 11.5px; color: var(--ink2); }
.meiga-src { margin: 6px 0 0; font-size: 12px; color: #7a6f8f; letter-spacing: .02em; }

/* ───── お試し版（宣伝用・js/promo.js が入っているときだけ） ───── */
.promo-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--ink, #2b2540); color: #fff; font-size: 12px; }
.promo-bar span { flex: none; font-weight: 700; }
.promo-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; opacity: .85; }
.promo-bar a { flex: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.promo-lock, .promo-foot { padding: 40px 22px 120px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.promo-foot { padding: 28px 22px 120px; border-top: 1px solid var(--line); margin-top: 24px; }
.promo-foot p { margin: 0; font-size: 13px; line-height: 1.8; }
.promo-lock .btn, .promo-foot .btn { width: min(100%, 320px); }
body.promo #pcnav { display: none !important; }
@media (min-width: 900px) { body.promo { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }
body.promo .edit-mode, body.promo .lock-banner, body.promo .pack-home,
body.promo [data-action="save-outfit"], body.promo [data-action="look-card"], body.promo [data-action="pic-add-draft"],
body.promo [data-href="#/dna"], body.promo [data-href^="#/album"], body.promo a[href="#/dna"], body.promo a[href="#/presets"], body.promo a[href^="#/album"] { display: none !important; }
body.promo [data-action="quick-more"] { display: none !important; }
body.promo [data-action="gacha-from-preset"], body.promo [data-action="save-look-preset"], body.promo [data-action="photo-pick"], body.promo [data-action="fav-look"], body.promo a[href^="#/preset/"]:not(.back) { display: none !important; }
body.promo a[href^="#/pack/"], body.promo [data-action="fav-item"] { display: none !important; }
.promo-lock.small { padding: 16px 8px 24px; }
body.promo .topbar a.back { display: grid !important; }
body.promo .topbar a.back.promo-noback { visibility: hidden; }
