/* design1 (2026-10-16 Claude) — 司さん「直せるとこ一回直して完全版作って」。Fable / Astra のデザインレビュー
   (work/design-review-20261016/SUMMARY.md) の #1・#3 のうち、コードで直せる所だけ。商品写真のファイルは変えない。 */

/* #1 PC: 服を大きく。箱 176 → 224px・舞台 900 → 1180px (並びと曲面は p3_code の coverflow がそのまま決める)。
   写真の中の余白が多く、服は箱の約 58% しかないので、表示だけ 1.28 倍にして余白を外へ逃がす (写真は切らない・変えない) */
@media (min-width: 1024px) {
  body:not(.p3-mobile-ui) #store-grid.projection-curve { width: min(1180px, calc(100vw - 32px)) !important; }
  body:not(.p3-mobile-ui) #store-grid.projection-curve .carousel-item { width: 224px !important; left: calc(50% - 112px) !important; }
  body:not(.p3-mobile-ui) #store-grid.projection-curve .carousel-item .product-card-img { overflow: visible !important; }
  body:not(.p3-mobile-ui) #store-grid.projection-curve .carousel-item .product-card-img img {
    width: 128% !important; max-width: none !important; margin-left: -14% !important; margin-right: -14% !important;
  }
}

/* #1 PC: 服と名前を近づける (写真の下の余白 + 空の価格欄で、服の下端から名前まで約 130px 空いていた) */
@media (min-width: 1024px) {
  body:not(.p3-mobile-ui) #store-grid.projection-curve .carousel-item .product-card-info { margin-top: -44px !important; }
}

/* #3 名前と状態: 価格が空の間は欄の高さを残さない。「Coming soon / 近日発売」を読める文字に
   (前: 9px・不透明度 0.58 × 色 0.6 ≈ 実質 35%、スマホは display:none で消していた) */
.carousel-item .product-card-price:empty { display: none !important; }
#store-grid .carousel-item .product-card-status {
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  opacity: 1 !important;
  color: rgba(222, 228, 238, 0.74) !important;
  margin-top: 8px !important;
}
body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-status { display: inline-block !important; }

/* all6 (2026-10-22): スマホの NEW を名前の直上へ。2 行の長い名前にも同じ席を残し、
   下の数字と INFO を押し下げない。服のサイズ・横送り・ロゴの中心補正はそのまま。 */
body.p3-mobile-ui #root.phase-3 .carousel-scene {
  height: calc(var(--mobile-garment-height) + 116px) !important;
}
body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-info {
  position: relative !important;
  width: 100%;
  min-width: 0;
  min-height: 112px;
  padding: 26px 8px 0 !important;
  box-sizing: border-box;
}
body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-new {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  display: block;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: rgba(235, 240, 246, 0.8);
  text-align: center;
}
body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-name {
  width: 100%;
  max-width: 100%;
  margin: 0 auto !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  letter-spacing: 0.1em !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}
body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-status {
  max-width: 100%;
  padding: 0 !important;
  margin-top: 10px !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.14em !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* 同じ 20px の行で現在 / 全体を読む。数字が 1 桁から 2 桁になっても中央を保つ。 */
body.p3-mobile-ui #root.phase-3 .carousel-mobile-dots.carousel-position {
  width: 8ch;
  min-width: 8ch;
  flex: 0 0 20px;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 20px;
  letter-spacing: 0.1em;
  color: rgba(222, 228, 238, 0.7);
  white-space: nowrap;
  text-align: center;
}

/* #3 右上の袋: 販売の門が閉じている間 (body[data-commerce="closed"]) は押しても空なので出さない。開けば元どおり出る */
body[data-commerce="closed"] #cart-icon { display: none !important; }

/* design1-2 (2026-10-17, 司さん「p３なんか横に全部動かせたりするんだけどそれも直せる？」):
   PC でトラックパッドを横に払うと、ロゴ・卵・服・文字がまとめて 300px 以上ずれていた。
   原因 = 画面の外の見えない後ろの服 (不透明度 0) の分だけ .singularity-content が横に広く、横にもスクロールできた。
   横だけ止める (縦はそのまま)。服の列を横に送る操作 (スマホのスワイプ・PC の矢印) は別の仕組みなので変わらない */
.singularity-content { overflow-x: hidden !important; overscroll-behavior-x: none; }

/* corefirst1 (2026-10-17, 司さん「先に見えて消えて…絶対ないようにして」): 服の写真は全部届いて描ける (data-garment-image="ready") まで出さない。
   遅い回線では、届いた分だけ上から灰色の服の形が描かれ、柄のない服 → 柄のある服 と見え方が変わっていた。
   ready の判定と load での塗り直しは p3_code の paint() がすでに持っている (遅い・失敗の時の代役の文字はそのまま) */
#store-grid .product-card-img:not([data-garment-image="ready"]) > img { opacity: 0 !important; }
#store-grid .product-card-img[data-garment-image="ready"] > img { transition: opacity .32s ease-out; }

/* ═══ p3open1 (2026-10-19 Claude): P3 の名前の新しいドット書体 (p3_wordmark_px.js) + 星座の線 ═══
   字形は SVG のドット・幅は前と同じ 7.33em。コアは丸 (i = 白・ü = 白い丸 + 黒い輪)。線は白い一本 + 星 (にじみなし) */
.brand-name.pixel-connected.px-wordmark { gap: 0 !important; }
.brand-name.px-wordmark .brand-char { display: block !important; position: relative; height: 1em; overflow: visible !important; scale: none !important; }
/* all7: JS owns the orbital entrance. The older nth-child(1) important
   animation must not move only i while the pixel name is being assembled. */
body[data-brandanim="6"] .brand-name.px-wordmark .brand-char { animation: none !important; }
.brand-name.px-wordmark .px-src { position: absolute !important; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; opacity: 0 !important; pointer-events: none; }
.brand-name.px-wordmark .px-glyph { position: absolute; left: 0; display: block; overflow: visible; pointer-events: none; }
.brand-name.px-wordmark .i-dot,
.brand-name.px-wordmark .u-dot { position: absolute !important; display: block; border-radius: 50% !important; box-sizing: border-box; background: #f3f5f7 !important; box-shadow: none !important; }
.brand-name.px-wordmark .u-dot-black { background: #05070a !important; box-shadow: inset 0 0 0 calc(var(--pxc, .0627em) * .8) #f3f5f7 !important; }
.brand-name.px-wordmark .p3-rainbow-thread:not(.p3-rainbow-thread-veil) { stroke: #eef2f5 !important; stroke-width: 1px !important; filter: none !important; stroke-linecap: round; stroke-linejoin: round; }
.brand-name.px-wordmark .p3-rainbow-thread-veil { display: none !important; }
.brand-name.px-wordmark ~ * .p3-terminal-thread,
.px-wordmark .p3-terminal-thread { stroke: #eef2f5 !important; stroke-width: 1px !important; filter: none !important; }
.px-wordmark .p3-thread-star { fill: #f3f5f7; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .px-wordmark .p3-thread-star { opacity: 1; } }
/* p3open1: 完成の「白い和音」= 面の中だけ一回 (明るさ 1.15 まで・外側の影 / にじみなし・0.55 秒)。Astra の開幕レビュー #5 */
@keyframes p3ChordSurface { 0% { filter: brightness(1); } 33% { filter: brightness(1.15); } 100% { filter: brightness(1); } }
.brand-name.pixel-connected.px-wordmark.brand-connection-glow,
body:has(.px-wordmark) #bb-logo.holo-thread-glow,
body:has(.px-wordmark) .logo-holo-wrap.holo-thread-glow { animation: p3ChordSurface 550ms cubic-bezier(.3,.5,.3,1) both !important; }
.px-wordmark.brand-connection-glow .u-dot,
.px-wordmark.brand-connection-glow .i-dot { animation: none !important; }
.px-wordmark .p3-orbital-wordmark.thread-finished .p3-thread-star { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .brand-name.pixel-connected.px-wordmark.brand-connection-glow,
  body:has(.px-wordmark) #bb-logo.holo-thread-glow,
  body:has(.px-wordmark) .logo-holo-wrap.holo-thread-glow { animation: none !important; }
}

/* 2026-10-21 brandi 司さん「ブランド名の i がおかしいよ」: 各文字の後ろに元のフォントの同じ文字を重ねる飾り (p3_styles.css の
   .brand-char::after = attr(data-char)・不透明度 .055・光 5/10px・0.65px ずらし) が、ドットの書体に替えた後も残っていた。
   灰色の i では「四角い幹の右に段のある影」になり、i が別の形に見えた (他の文字も中に薄い元の字形)。ドットの書体の時だけ消す。 */
.brand-name.px-wordmark .brand-char::after { content: none !important; }

/* 2026-10-21 halo 司さん「ブランド名とロゴ離して」「ハロとブランド名が被らない感じで」: 完成の光 (P0 のハロの輪・半径 = ロゴの高さ × .58) は
   ロゴの上端より ロゴの高さ × .08 上に出て、外へ溶ける帯 (幅の 4 倍 = 高さ × .23) まで含めると ロゴの幅 × .44 上まで届く。
   名前との間 = ロゴの幅 × .45 にして、いちばん明るい瞬間も輪が名前にかからないようにする
   (前: PC 21〜26px / スマホ縦 18px / 横 12px / 小さい縦 8px)。ロゴの幅の式は p3_ec_polish.css と同じ */
body[data-p3-logo-design="hologram"] .hologram-logo { gap: clamp(50px, 3.9vw, 59px) !important; }
body.p3-mobile-ui #root.phase-3 .hologram-logo { gap: clamp(31px, 8.1vw, 41px) !important; }
@media (orientation: landscape) { body.p3-mobile-ui #root.phase-3 .hologram-logo { gap: 31px !important; } }
@media (orientation: portrait) and (max-height: 600px) { body.p3-mobile-ui #root.phase-3 .hologram-logo { gap: 25px !important; } }

/* px2 (2026-11-04) 司さん「i のコアを、虹色のコアにできるならそれがいい・INFO と同じ」: i の点 = 小さな虹色の球。
   INFO のコアと同じく、色の帯がゆっくり巡る (左上に光・右下に影)。?pxcore=white で前の白い点 (p3_wordmark_px.js) */
.brand-name.px-wordmark.px-core-rainbow .i-dot {
  background-image:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.72) 0, rgba(255,255,255,.16) 24%, rgba(255,255,255,0) 44%),
    radial-gradient(circle at 64% 76%, rgba(0,0,0,.40) 0, rgba(0,0,0,0) 60%),
    linear-gradient(160deg, #ff3fd2, #ff4a3d, #ffd23d, #48ff6e, #33e6ff, #3d63ff, #a53dff, #ff3fd2, #ff4a3d, #ffd23d) !important;
  background-size: 100% 100%, 100% 100%, 100% 300% !important;
  /* 白い点の決まり (background: #f3f5f7 !important) が位置も固定するので、位置は変数 --pxcore で動かす (前は動きが効かず赤〜黄のままだった) */
  background-position: 0 0, 0 0, 0 var(--pxcore) !important;
  animation: pxCoreHue 12s linear infinite alternate;
}
@property --pxcore { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes pxCoreHue { to { --pxcore: 100%; } }
@media (prefers-reduced-motion: reduce) { .brand-name.px-wordmark.px-core-rainbow .i-dot { animation: none; } }

/* px3 (2026-11-04) 司さん「グレーのコアにして」: 名前の i の点 = 小さなグレーの球 (字の i と同じグレー・左上に光・右下に影)。
   ?pxcore=rainbow で虹色の球、?pxcore=white で前の白い点 (p3_wordmark_px.js) */
.brand-name.px-wordmark.px-core-gray .i-dot {
  background-image: radial-gradient(circle at 34% 28%, #eef0f2 0, #c3c7cc 20%, #959a9f 48%, #6c7075 76%, #4b4e52 100%) !important;
}

/* garment1 (2026-11-04) 司さん「服のサイズ小さくない？」→「服を大きくして」: スマホは服の絵だけを倍率で拡大する
   (枠・並び・間隔はそのまま。絵のまわりは透明なので 1.3 倍でも枠に収まる)。倍率 --p3-garment-k は p3_code_for_claude.js が
   ?garment=a|b|c (1 / 1.15 / 1.3)・保存 inryoku-garment-size から入れる。PC は回転木馬の拡大と間隔に同じ倍率を掛ける */
body.p3-mobile-ui #root.phase-3 .carousel-item .product-card-img > img,
body.p3-mobile-ui #root.phase-3 .carousel-item .garment-curve {
  scale: var(--p3-garment-k, 1);
}

/* calm2 (2026-11-04) 司さん「蜘蛛の糸みたいな線あるの分かる？」: 細い縦の線を出さない。
   - .hologram-logo::after = PC だけの「ロゴ下→商品への光学的接続線」(幅 1px・48px・p3_ec_polish.css)。INFO から服へ垂れる糸に見えていた
   - #chat-axis = トーク中の「コアと入力線を結ぶ極薄の光」(p3_styles.css)。指定は温存し、ここで消す */
.hologram-logo::after { content: none !important; display: none !important; }
#chat-axis { display: none !important; }

/* pearl1 (2026-11-04) 司さん「水色じゃなくて真珠みたいな虹色系にして」: 操作の位置の印 (キーボードで動かした時だけ出る :focus-visible) を
   水色 (#00ffff) から真珠の虹色へ。真珠の白い細い線 + まわりに淡い虹 (青・桃・緑・黄) のにじみ。INFO は卵の形に合わせて丸く。
   enhance.css (後から読まれる) が水色を !important で付けているので、html body を前に付けて強くする。トークのガラスのシートの印 (ID 付き) はそのまま */
html body button:focus-visible,
html body a:focus-visible,
html body input:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible,
html body [role="button"]:focus-visible,
html body [tabindex]:focus-visible,
html body .carousel-item:focus-visible,
html body #cart-icon:focus-visible,
html body #mute-btn:focus-visible,
html body .contact-toggle:focus-visible,
html body .size-guide-toggle:focus-visible,
html body .footer-toggle:focus-visible,
html body #p3-menu-toggle:focus-visible,
html body #p3-menu-panel button:focus-visible {
  outline: 2px solid var(--p3-pearl, rgba(248, 246, 255, .92)) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(255, 222, 240, .16), -3px -2px 9px rgba(168, 214, 255, .42), 3px 2px 9px rgba(255, 196, 228, .40),
    0 4px 9px rgba(196, 255, 226, .32), 0 -4px 9px rgba(255, 244, 196, .30) !important;
}
html body #bb-logo:focus-visible { border-radius: 50%; outline-offset: 16px !important; box-shadow: none !important; }
/* 真珠の照り: 線の色が淡い虹 (桃 → 水 → 緑 → 黄) をゆっくり巡る。動きを控える設定では止める */
@property --p3-pearl { syntax: '<color>'; inherits: false; initial-value: rgba(248, 246, 255, .92); }
@keyframes p3PearlRing {
  0%, 100% { --p3-pearl: rgba(255, 226, 246, .95); }
  25% { --p3-pearl: rgba(222, 238, 255, .95); }
  50% { --p3-pearl: rgba(222, 255, 238, .95); }
  75% { --p3-pearl: rgba(255, 246, 220, .95); }
}
html body :focus-visible { animation: p3PearlRing 4.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { html body :focus-visible { animation: none; } }

/* corehand1 (2026-11-04) 司さん「P2 のコア押して P3 に行く時、コアの色が変わるから違和感ありすぎる。P2 と同じ色にして」:
   虹の糸が届くまで INFO を暗くしておく開幕の演出 (p3_styles.css p3-orbital4 = 入れ物ごと brightness .72 / saturate .68) が、
   先に P2 から届いたコアまで暗く・くすませていた → 入れ物ではなく、コア以外の部品にだけかける (0 と 1 は今まで通り暗い所から浮かぶ) */
body[data-logo-thread="pending"] .logo-holo-wrap,
body[data-logo-thread="letters_complete"] .logo-holo-wrap,
body[data-logo-thread="drawing"] .logo-holo-wrap { filter: none !important; }
body[data-logo-thread="pending"] .logo-holo-wrap > :not(.logo-sphere-3d),
body[data-logo-thread="letters_complete"] .logo-holo-wrap > :not(.logo-sphere-3d) {
  filter: brightness(.72) saturate(.68) drop-shadow(0 0 .4px rgba(220,235,255,.32));
  transition: filter .8s ease;
}
body[data-logo-thread="drawing"] .logo-holo-wrap > :not(.logo-sphere-3d) {
  filter: brightness(.86) saturate(.84) drop-shadow(0 0 .45px rgba(230,240,255,.42)) drop-shadow(-.5px 0 .4px rgba(255,80,140,.14))
    drop-shadow(.5px 0 .4px rgba(80,210,255,.14)) drop-shadow(0 0 5px rgba(110,200,255,.12));
  transition: filter 3.2s cubic-bezier(.3,.02,.18,1);
}

/* infolook1 (2026-11-04) 司さんが調整の板で決めた INFO の形: コアの大きさ 0.84 倍・コアと i の間 −0.23 (前の半径に対して)。
   コアの置き場所そのものを変える (幅 32% → 32% × 0.84・中心を (1 − 0.84 + 0.23) × 前の半径だけ下へ)。
   開幕の最初から・P2 からの到着・INFO が畳まれてコアだけの時も同じ置き場所なので、どこでも跳ばない。
   margin-top の % は入れ物の幅に対して (半径 16% × 0.39 = 6.24%)。調整の板 (html.p3-core-lab) と ?infolook=old では前の置き場所 */
/* infoset2 (2026-11-07) 司さんが板で決めた形: コア 0.88・間 −0.25・i 1.11。中心は (1 − 0.88 + 0.25) × 半径 16% = 5.92% 下へ、i の頭が上がった分 0.11 × 354 / 606 = 6.426% 上へ */
html:not(.p3-core-lab):not(.info-look-old) body[data-p3-logo-design="hologram"] #bb-logo .logo-sphere-3d {
  width: 28.16% !important;
  margin-top: -0.506% !important;
}

/* infobig1 (2026-11-04) 司さん「スマホだとインフォ小さすぎる (iPhone)・トーク中はもっとやばい」:
   スマホ縦の INFO を 68〜92px (画面の幅 18%) → 名前と正面の服の間に収まるいちばん大きな幅 (最大 画面の幅 34%・150px)。
   INFO の高さ = 画面の高さ − 上の余白と下の 2 段 (274px) − 服の場所 (G + 116px のうち服の上の透けた所 0.12G は使う) − 名前と間 (38px) − 余白 8px
              = 100dvh − 320px − 上の安全域 − 0.88G。服の襟にかからないよう さらに 22px 控える (342px)。幅 = 高さ ÷ 1.42 (INFO の縦横)。
   トーク中は舞台ごと縮む (p3_glass_ui.js の fitGlassStage) ので、INFO が大きくなればトーク中も大きくなる。
   横向き・背の低い画面 (600px 以下) は前のまま */
@media (orientation: portrait) and (min-height: 601px) {
  body.p3-mobile-ui #root.phase-3 .logo-holo-wrap { width: clamp(68px, min(34vw, calc((100dvh - 342px - env(safe-area-inset-top, 0px) - 0.88 * var(--mobile-garment-height, 250px)) / 1.42)), 150px) !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 .logo-holo-wrap { width: clamp(68px, min(27vw, calc((100dvh - 342px - env(safe-area-inset-top, 0px) - 0.88 * var(--mobile-garment-height, 250px)) / 1.42)), 116px) !important; }
}
/* infospace1 (2026-11-05) 司さん iPhone で「ロゴが全体的にでかい・ハロもブランド名にかぶる・服から下げて INFO との余白がほしい・服もう少し小さくてもいい (タッチしたらデカくなる)」:
   INFO は 幅 34% → 27% (最大 150px → 116px)。ハロは INFO の高さに比例するので一緒に小さくなる。
   服の場所を 1 割小さく (38dvh・210〜330px → 34dvh・190〜300px)。服の段が縮んだ分、上の段 (名前と INFO) が広がり、服は下がって INFO との間が空く
   今は ?space=1 の時だけ (html.info-space・p3_code_for_claude.js が付ける・この端末に残る・?space=0 で外す)。司さんが iPhone で見て決める */
@media (orientation: portrait) and (min-height: 601px) {
  html.info-space body.p3-mobile-ui #root.phase-3 .singularity-content { --mobile-garment-height: clamp(190px, 34dvh, 300px); }
}
/* 高さ 601〜800px (Safari で見る多くの iPhone) は p3_polish.css (all32) が 名前を上にそろえ・名前と INFO の間 10px・服 36dvh にしている。
   ここも服を 1 割小さく (36dvh → 32dvh)・名前と INFO の間 10 → 22px (ハロが名前にかからないように)。
   INFO の幅の式も、この範囲の上の余白 (66px) と間 (22px) に合わせて 362px を引く */
@media (orientation: portrait) and (min-height: 601px) and (max-height: 800px) {
  html.info-space body.p3-mobile-ui #root.phase-3 .singularity-content { --mobile-garment-height: clamp(190px, 32dvh, 300px); }
  html.info-space body.p3-mobile-ui #root.phase-3 .hologram-logo { gap: 22px !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 .logo-holo-wrap { width: clamp(68px, min(27vw, calc((100dvh - 362px - env(safe-area-inset-top, 0px) - 0.88 * var(--mobile-garment-height, 250px)) / 1.42)), 116px) !important; }
}

/* infobig1: トーク中は正面の服を 0.72 倍 (上はそのまま) → 舞台の縮みがゆるくなり、話し相手の INFO が大きく残る (スマホ縦)。
   上を軸にするため、真ん中で縮めた分だけ上へ戻す (translate)。舞台の大きさは縮んだ後の服で計算する (p3_glass_ui.js の syncViewport) */
body.p3-mobile-ui #root.phase-3 .carousel-item .product-card-img {
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .6s, scale .62s cubic-bezier(.32, .72, 0, 1), translate .62s cubic-bezier(.32, .72, 0, 1);
}
@media (orientation: portrait) {
  body[data-chat-ui="glass"].p3-mobile-ui #root.phase-3 .singularity-content.rpg-stage-fit { --gl-shirt-k: .72; }
  body[data-chat-ui="glass"].p3-mobile-ui #root.phase-3 .singularity-content.rpg-stage-fit .carousel-front .product-card-img {
    scale: var(--gl-shirt-k);
    translate: 0 calc((var(--gl-shirt-k) - 1) * 50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.p3-mobile-ui #root.phase-3 .carousel-item .product-card-img { transition: none; }
}

/* fable1 (2026-11-05) 司さん「もっと iPhone のデザイン完璧になるようにファブルと壁打ちして」 — Fable の監査 (72 点) の直し 1 回目 */
/* A 商品の板: 下の帯 (お知らせと入荷待ちのボタン) の後ろで説明文が透けて二重に見えていた → 帯の上 10px だけで溶かし、字の後ろは不透明。
   板の地も 0.94 → 0.975 (後ろの INFO の輪が透けていた)。板が開いている間は、後ろの服の名前・点・INFO ボタンを消し、INFO も薄く */
body.p3-mobile-ui .product-modal .product-purchase-dock { background: rgb(5, 7, 10) !important; }
/* 帯の上 16px で後ろの字を溶かす (スクロールの縁)・字の後ろは不透明 (fable1 2 回目: 0.97 では説明文や見出しの影が残っていた) */
body.p3-mobile-ui .product-modal .product-purchase-dock::before {
  content: '' !important; position: absolute !important; left: 0; right: 0; top: -16px; height: 16px; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0), rgb(5, 7, 10)) !important;
}
/* 高さ 800 以下 (Safari の多くの iPhone): 板を開いた直後に商品の名前が下の帯 (と溶かし) の後ろに隠れていた (664 で 29px・760 で 4px)。
   写真の箱を「画面の高さ − 395px」までに = 板の上 140 + 箱 + 名前まで 127 + 溶かし 16 + 余白 8 ≤ 画面の高さ − 帯 104 */
@media (orientation: portrait) and (max-height: 800px) {
  body.p3-mobile-ui .product-modal .product-image-wrap { height: min(calc(100vw - 18px), calc(100dvh - 395px)) !important; }
  body.p3-mobile-ui .product-modal .product-image-wrap .product-detail-img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
}
body.p3-mobile-ui .product-modal .product-detail.glass-card { background-color: rgba(5, 7, 10, .975) !important; }
body.p3-mobile-ui.product-modal-open #root.phase-3 .carousel-front .product-card-info,
body.p3-mobile-ui.product-modal-open #root.phase-3 .carousel-mobile-dots,
body.p3-mobile-ui.product-modal-open #root.phase-3 #contact-toggle { opacity: 0 !important; transition: opacity .25s ease; }
html body.p3-mobile-ui.product-modal-open #root.phase-3 #holo-logo-wrap #bb-logo { opacity: 0 !important; transition: opacity .25s ease !important; }   /* 板の上に輪が透けて残らないよう、名前だけ残す */
/* B トーク: ?space=1 の時は名前を静かに消す (p3_glass_ui.js が --gl-name-o を 0 → 閉じる時 1。舞台の縮みと同じ間に) */
html.info-space body[data-chat-ui="glass"] #root.phase-3 .singularity-content.rpg-stage-fit .brand-name { opacity: var(--gl-name-o, 1) !important; transition: opacity .3s ease !important; }
/* F・G (?space=1 の時だけ): 服の名前の段を締める (箱 112 → 88px・名前 15 → 20px)・ⓘ INFO のボタン 52 → 44px。
   服の段の高さも 116 → 92px 分だけ縮め、空いた分は上の段 (名前と INFO) と服の間へ */
@media (orientation: portrait) and (min-height: 601px) {
  html.info-space body.p3-mobile-ui #root.phase-3 .carousel-scene { height: calc(var(--mobile-garment-height) + 92px) !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-info { min-height: 88px; padding-top: 18px !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-new { top: 0; }
  html.info-space body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-name { font-size: 20px !important; line-height: 1.3 !important; letter-spacing: .08em !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-status { margin-top: 6px !important; line-height: 1.5 !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #contact-toggle.info-entry { min-height: 44px; padding-top: 6px !important; padding-bottom: 6px !important; }
}

/* D 縦の配分 (?space=1・高さ 601〜800 = Safari の多くの iPhone)。Fable の配分「下へ行くほど間が開く・名前と INFO が一番近い一塊」:
   393×760 で 名前の上 78 / 名前↔INFO 20 / INFO↔服 (見える上端) 約 44 / 服↔服の名前 約 36 / 服の名前↔点 約 54 / 点↔ⓘ INFO 約 28 / 下 約 40 */
@media (orientation: portrait) and (min-height: 601px) and (max-height: 800px) {
  html.info-space body.p3-mobile-ui #root.phase-3 .singularity-content { padding-top: calc(58px + env(safe-area-inset-top, 0px)) !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 .hologram-logo { gap: 20px !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 .item-grid { gap: 26px !important; margin-top: -13px !important; margin-bottom: 13px !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-info { margin-top: -9px !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #contact-form { margin-top: 8px !important; }
}
/* 正面以外の服の名前は出さない (?space=1 で名前を 20px にしたら、隣の服の名前の端「EE」が画面の端にのぞいていた) */
html.info-space body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item:not(.carousel-front) .product-card-info { opacity: 0 !important; transition: opacity .25s ease; }
/* D' 縦の配分 (?space=1・高さ 801 以上 = 背の高い iPhone・名前と INFO は段の真ん中のまま)。服の段を 17dvh − 103px (844 で 40・932 で 55) 上げ、
   服と点の間 8 → 26・服の名前を 9px 上げる・ⓘ INFO を 8px 下げる (点とボタンがくっついていた) */
@media (orientation: portrait) and (min-height: 801px) {
  html.info-space body.p3-mobile-ui #root.phase-3 .item-grid { gap: 26px !important; margin-top: calc(103px - 17dvh) !important; margin-bottom: calc(17dvh - 103px) !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-info { margin-top: -9px !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #contact-form { margin-top: calc(127px - 17dvh) !important; }   /* 服の段と同じだけ上げて、点との間を約 24px に */
}

/* fable1 2 回目 (82 点) の直し */
/* C INFO と服の間の横の霞: 服の段の上の 1px の光の線 (product-showcase::before・ぼかし 14px) が段の上端で切られて帯に見えていた → 消す */
html.info-space body.p3-mobile-ui #root.phase-3 .product-showcase::before { display: none !important; }
/* 高さ 601〜720 (Safari のバーが出た iPhone): 上が詰まり下が空いていた → Fable の配分 (390×664: 名前 72 / INFO 106〜221 / 服 251〜 / 点 541 / ⓘ 581) */
@media (orientation: portrait) and (min-height: 601px) and (max-height: 720px) {
  html.info-space body.p3-mobile-ui #root.phase-3 .singularity-content { padding-top: calc(52px + env(safe-area-inset-top, 0px)) !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 .hologram-logo { gap: 20px !important; }   /* fable1 3 回目: 14 では INFO が傾くと名前と目で 8px まで近づいた */
  html.info-space body.p3-mobile-ui #root.phase-3 .item-grid { gap: 15px !important; margin-top: -29px !important; margin-bottom: 29px !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #contact-form { margin-top: 0 !important; }
}
/* 高さ 721〜800: INFO と服の間 63 → 約 55 (服の名前との間 36 より広いまま = 服と名前が一塊) */
@media (orientation: portrait) and (min-height: 721px) and (max-height: 800px) {
  html.info-space body.p3-mobile-ui #root.phase-3 .item-grid { margin-top: -21px !important; margin-bottom: 21px !important; }
  html.info-space body.p3-mobile-ui #root.phase-3 #contact-form { margin-top: 0 !important; }
}

/* gold1 (2026-11-05) 司さん「途中で 0 がデカくなるのもやめて」: 0 は開幕から最後の形。前は 3D になってから INFO 全体 (1・コア・0 の底) が
   0 の育つ分の半分だけ下がっていた → 最初から #bb-logo ごと同じだけ下げておく (値は p3_code_for_claude.js の P3InfoGold.dy / 859)。
   箱 (getBoundingClientRect) ごと動くので、3D・コア・平らな絵・ハロ・触れる所がそろったまま */
html.info-gold body[data-p3-logo-design="hologram"] #bb-logo { translate: 0 var(--info-gold-dy, 0%); }
/* gold1: 開幕の「虹の糸が届くまで 0 と 1 を暗く・くすませる」(corehand1 の上の規則) は、平らな絵の点・線・グレーの段階だけに。
   波の内側から出る 3D (真珠) は最初から真珠の明るさと色 (暗くすると灰色に見える = 司さんの「グレーな感じ」) */
html.info-gold body[data-logo-thread] .logo-holo-wrap > canvas.info-motion-one { filter: none !important; }

/* gap1 (2026-11-05) 司さん iPhone で「服と文字との間もスペースありすぎる」(ふだんの配置・390×760 相当で 服の裾 → 名前 約 70px):
   服の絵の箱の下 約 13% は透明 (絵は箱いっぱいに contain)。名前の札をその分だけ服の箱に重ね、服の段もその分だけ低くする
   → 名前とドットの位置は今のまま、服と INFO が下がる (服の裾 → 名前 約 35px・INFO と服の間も少し広がる)。?space=1 の配置は別の決まりのまま */
html:not(.info-space) body.p3-mobile-ui #root.phase-3 .carousel-scene { height: calc(var(--mobile-garment-height) * .87 + 116px) !important; }
html:not(.info-space) body.p3-mobile-ui #root.phase-3 #store-grid .carousel-item .product-card-info { margin-top: calc(var(--mobile-garment-height) * -.13) !important; }
/* gap1: 名前と INFO は上揃え (.hologram-logo align-self:start) なので、服が下がった分の半分だけ一緒に下げる (上の空き・INFO と服の間をそろえる) */
html:not(.info-space) body.p3-mobile-ui #root.phase-3 .hologram-logo { margin-top: calc(var(--mobile-garment-height) * .065) !important; }

/* open1: only the explicit name comparison uses flat pixels and measured proportions. */
html.name-look-a body #root.phase-3 .brand-name {
  font-size: var(--name-look-size, calc(clamp(20px, 3.4vw, 32px) * 1.27)) !important;
  filter: none !important;
  text-shadow: none !important;
  animation: none !important;
}
html.name-look-a body #root.phase-3 .brand-name .brand-char,
html.name-look-a body #root.phase-3 .brand-name .px-glyph,
html.name-look-a body #root.phase-3 .brand-name .i-dot,
html.name-look-a body #root.phase-3 .brand-name .u-dot {
  filter: none !important;
  text-shadow: none !important;
  animation: none !important;
  -webkit-text-stroke: 0 !important;
}
html.name-look-a body #root.phase-3 .brand-name::before,
html.name-look-a body #root.phase-3 .brand-name::after { content: none !important; }
html.name-look-a body #root.phase-3 .brand-name .p3-orbital-wordmark { filter: none !important; }
html.name-look-a body #root.phase-3 .brand-name .brand-char[data-char="i"] { color: #9aa0a6 !important; }
html.name-look-a body #root.phase-3 .brand-name .brand-char[data-char="n"] { color: #ff3b3b !important; }
html.name-look-a body #root.phase-3 .brand-name .brand-char[data-char="r"] { color: #19e65a !important; }
html.name-look-a body #root.phase-3 .brand-name .brand-char[data-char="y"] { color: #3d7bff !important; }
html.name-look-a body #root.phase-3 .brand-name .brand-char[data-char="o"] { color: #19d9f0 !important; }
html.name-look-a body #root.phase-3 .brand-name .brand-char[data-char="k"] { color: #ff45e0 !important; }
html.name-look-a body #root.phase-3 .brand-name .brand-char[data-char="ü"] { color: #ffe11a !important; }
html.name-look-a body #root.phase-3 .brand-name .i-dot { background: #9aa0a6 !important; }
html.name-look-a body #root.phase-3 .hologram-logo { gap: var(--name-look-gap, 32px) !important; }
@media (max-width: 700px) {
  html.name-look-a body #root.phase-3 .brand-name {
    font-size: var(--name-look-size, calc(clamp(19px, 5.9vw, 29px) * 1.27)) !important;
  }
}

/* open4: the completed name clears its connecting threads during the halo rise. */
html.name-look-a .p3-orbital-wordmark.thread-settling .p3-rainbow-thread,
html.name-look-a .p3-orbital-wordmark.thread-settling .p3-rainbow-thread-veil,
html.name-look-a .p3-orbital-wordmark.thread-settling .p3-terminal-thread,
html.name-look-a .p3-orbital-wordmark.thread-settling .p3-thread-star {
  transition: opacity .3s ease !important;
  opacity: 0 !important;
}
