/* ===== ガチャ（#/gacha・2026-10-04 夜 本人「ガチャを本番として作る」） =====
   試し web/try/gacha/index.html の <style> から移した（部品の名前は全部 gc-・設定は st-。値は試しと同じ）。
   外したもの: ページ全体の指定（html・body・.phone＝本番は殻の中に描く・下の「この画面の箱」）・試しだけの欄（.st-try）・使っていない選ぶ欄（.gc-select）。
   決まった値は 01_企画/ガチャ_見本メモ_2026-10-02.md の「いま有効な値」 */
/* この画面の箱: 殻（.phone）の中でスクロールさせず、ヘッダーの下を全部使う（試しの「ページ全体を画面に留める」と同じ狙い） */
body[data-screen="gacha"] .phone { overflow: hidden; }
body[data-screen="gacha"] #screen { flex: 1 1 0; min-height: 0; }
body[data-screen="gacha"] #screen > .screen-box { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gc-root { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; } /* 演出の幕（.gc-ov）・設定の小窓の基準 */
.gc-foot { padding-bottom: max(16px, env(safe-area-inset-bottom)) !important; } /* 「回す」の下の端を TOP の「アルバムを見る」（base.css の .nav の bottom）と同じ高さに（2026-10-03 夜 本人「ガチャのボタンとアルバムのボタンの位置を合わせて」。前は ＋8px） */
/* ===== ガチャの画面 ===== */
.gc-screen { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--page); }
/* ~~.gc-pick（上の段・歯車だけ右に）~~ ⚠️ 2026-10-03 夜 歯車を「回す」の右へ移したので外した */
.gc-foot { position: relative; } .gc-foot .gc-gear { position: absolute; right: 20px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + (var(--nav-h) - 44px) / 2); } /* 歯車は「回す」の右・縦の中心をそろえる（右の空きは前の段と同じ 20px） */
.gc-gear { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer;
  background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--tint-1) 45%, var(--tint-3) 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(160,171,192,.25); }
.gc-gear::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9.78 4.73L10.50 2.52L13.50 2.52L14.22 4.73L15.57 5.29L17.64 4.23L19.77 6.36L18.71 8.43L19.27 9.78L21.48 10.50L21.48 13.50L19.27 14.22L18.71 15.57L19.77 17.64L17.64 19.77L15.57 18.71L14.22 19.27L13.50 21.48L10.50 21.48L9.78 19.27L8.43 18.71L6.36 19.77L4.23 17.64L5.29 15.57L4.73 14.22L2.52 13.50L2.52 10.50L4.73 9.78L5.29 8.43L4.23 6.36L6.36 4.23L8.43 5.29Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9.78 4.73L10.50 2.52L13.50 2.52L14.22 4.73L15.57 5.29L17.64 4.23L19.77 6.36L18.71 8.43L19.27 9.78L21.48 10.50L21.48 13.50L19.27 14.22L18.71 15.57L19.77 17.64L17.64 19.77L15.57 18.71L14.22 19.27L13.50 21.48L10.50 21.48L9.78 19.27L8.43 18.71L6.36 19.77L4.23 17.64L5.29 15.57L4.73 14.22L2.52 13.50L2.52 10.50L4.73 9.78L5.29 8.43L4.23 6.36L6.36 4.23L8.43 5.29Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
/* 左下の「アルバムを見る」（2026-10-04 本人「ガチャページの左下にアルバムを見るのアイコン追加して」）: 右下の歯車と左右対称（同じ 44px のドーム・左から 20px・縦の中心を「回す」とそろえる）。絵は前の TOP の下の丸の本（img/ui/nav-book.svg）。押すと TOP へ */
.gc-foot .gc-album { position: absolute; left: 20px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + (var(--nav-h) - 44px) / 2); width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer;
  background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--tint-1) 45%, var(--tint-3) 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(160,171,192,.25); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.gc-album::after { content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 23px; translate: -.5px -1px; background: var(--ink); -webkit-mask: url(../img/ui/nav-book.svg) center / contain no-repeat; mask: url(../img/ui/nav-book.svg) center / contain no-repeat; }
.gc-album:active { background: radial-gradient(120% 80% at 50% 100%, var(--tint-1) 0%, var(--tint-3) 100%); box-shadow: inset 0 2px 3px rgba(42,49,64,.15); }
.gc-album:active::after { translate: -.5px -.5px; }
.gc-album:focus { outline: none; } .gc-album:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.gc-gear:active { background: radial-gradient(120% 80% at 50% 100%, var(--tint-1) 0%, var(--tint-3) 100%); box-shadow: inset 0 2px 3px rgba(42,49,64,.15); }
/* 台: 点々の板をやめ、TOP と同じ「淡い円」の上に筐体（担当の案 3） */
.gc-stage { position: relative; flex: 1; min-height: 0; margin: 8px 0 0; }
/* ~~.gc-stage::before（台の後ろの淡い円）~~ ⚠️ 2026-10-03 夜 本人「ガチャの背景の円削除して」で外した */
.gc-foot { padding: 10px 20px 24px; } /* 上の 10px は台との間（台はヘッダーと「回す」の上の端の真ん中に置く＝fit()） */
/* 「回す」: 「アルバムを見る」（下の丸い板＋ドーム・base.css の .nav と .nav .icon）と同じ作りで、記号だけ「つまみ＋短い矢印」（2026-10-03 夜 本人「回すボタンをアルバムを見ると同じデザインにして、記号だけ回す記号に変更」→ 見比べ .playwright-mcp/pull_icon/ で案 1）。
   ~~前はロゴの青の横長の立体ボタン（高さ 48・幅最大 280px・ぼかさない厚み 6px・左にカプセルの絵＋「回す」の文字）~~ ⚠️ 置き換え済み */
.gc-pull { display: flex; align-items: center; justify-content: center; width: var(--nav-h); height: var(--nav-h); margin: 0 auto; padding: 0; border-radius: 50%;
  background: rgba(247, 249, 253, .75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 10px var(--panel-shadow);
  font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body[data-glass="3"] .gc-pull { /* 「回す」の板も TOP の下の丸（glass.css の body[data-glass="3"] .nav）と同じガラス（2026-10-03 夜）。値を変えるときは glass.css と両方 */
  background: linear-gradient(147deg, rgb(255 255 255 / 0) 15%, rgb(255 255 255 / .7) 25%, rgb(255 255 255 / 0) 35%), linear-gradient(to bottom, rgb(255 255 255 / .45), rgb(247 249 253 / .18) 55%, rgb(229 235 248 / .35));
  border: 2px solid rgb(255 255 255 / .8);
  box-shadow: 0 0 10px var(--panel-shadow), 0 2px 4px rgb(160 171 192 / .25), inset 0 0 0 1px rgb(160 171 192 / .25), inset 0 1.5px 0 #fff, inset 0 -6px 10px -6px rgb(160 171 192 / .45);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.gc-pull { position: relative; z-index: 0; } /* 光の線（try-glow.js・z-index: -1）を中に置く基準。z-index で重なりの箱を作り、線が板の地の上・ドームの下に来るように（TOP の .nav と同じ） */
.gc-pull-dome { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line);
  background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--tint-1) 45%, var(--tint-3) 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(160, 171, 192, .25); }
.gc-pull-dome::before { content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 30px; background: var(--ink);
  -webkit-mask: url(../img/ui/gacha-turn.svg) center / contain no-repeat; mask: url(../img/ui/gacha-turn.svg) center / contain no-repeat; }
.gc-pull:active .gc-pull-dome, .gc-pull.is-down .gc-pull-dome { background: radial-gradient(120% 80% at 50% 100%, var(--tint-1) 0%, var(--tint-3) 100%); box-shadow: inset 0 2px 3px rgba(42, 49, 64, .15); } /* 押している間・回している間はへこむ（.nav と同じ） */
.gc-pull:active .gc-pull-dome::before, .gc-pull.is-down .gc-pull-dome::before { transform: translateY(.5px); }
.gc-pull:disabled { cursor: default; }
.gc-pull:focus { outline: none; } .gc-pull:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }

/* ===== 筐体（gacha-box の四角い筐体・320×608 を --gc-k で縮める。2026-10-03 窓を正方形にするため 560 → 608・上の段を 48px 高く） ===== */
.gc-machine { position: absolute; left: 50%; top: var(--gc-cy, 48%); width: 320px; height: 608px; margin: -304px 0 0 -160px; scale: var(--gc-k, 1); translate: 0 calc(15px * var(--gc-k, 1)); } /* 2026-10-03 夜 本人「ガチャの位置をヘッダーとボタンの真ん中にしてほしい」→ 本体（上の端〜台の下の端 578px）の中心を、ヘッダーの下の端と「回す」の上の端の真ん中に（--gc-cy は fit()。translate は箱の中心 304 と本体の中心 289 の差）。前は top: 48% */
.gc-machine.is-jolt { animation: gc-jolt .12s; }
.gc-machine.is-sink { animation: gc-sink .25s ease-out; }
@keyframes gc-jolt { 30% { transform: translateX(1.5px) rotate(.4deg); } 70% { transform: translateX(-1.5px) rotate(-.4deg); } }
@keyframes gc-sink { 50% { transform: translateY(3px); } }
.gc-resin { background: linear-gradient(90deg, #edf1f8 0%, #fff 16%, #f7f9fd 62%, #dde4f1 100%);
  box-shadow: inset 0 2px 0 #fff, inset 1px 0 0 rgba(255,255,255,.9), inset -1px 0 0 #d1d8e6, inset 0 -8px 12px rgba(160,171,192,.18), 0 0 0 1px #d1d8e6; }
.gc-side { position: absolute; width: 12px; background: linear-gradient(90deg, #dfe5f0 0 1px, #c8d0de 1px, #a9b5ca); clip-path: polygon(0 0, 100% 6px, 100% calc(100% - 6px), 0 100%); }
.gc-upper { position: absolute; left: 10px; top: 0; width: 288px; height: 318px; border-radius: 6px; overflow: hidden; }
.gc-band { position: absolute; left: 0; top: 0; right: 0; height: 34px; background: linear-gradient(#5fb1f2 0, #2b97ea 46%, #0180e1 54%, #0173c9); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 #015a9e; }
.gc-band.is-glow { animation: gc-band .3s ease-out forwards; }
@keyframes gc-band { to { background: #bfe3ff; box-shadow: 0 0 22px #bfe3ff, inset 0 -2px 0 #8fc4ee; } }
.gc-key { position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b4bdca); box-shadow: 0 0 0 1px #d1d8e6; }
.gc-key::after { content: ""; position: absolute; left: 4px; top: 2.5px; width: 2px; height: 5px; border-radius: 1px; background: #2a3140; }
.gc-band .gc-key { top: 12px; }
.gc-win { position: absolute; left: 14px; top: 46px; width: 260px; height: 260px; border-radius: 6px; padding: 6px; background: #2a3140; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.gc-win-in { position: relative; width: 100%; height: 100%; border-radius: 3px; overflow: hidden; background: #0b2a52; }
.gc-win-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 10px 18px rgba(11,42,82,.25), inset 0 0 0 1px rgba(255,255,255,.2);
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.38) 36%, transparent 44%, transparent 52%, rgba(255,255,255,.18) 55%, transparent 58%) 0 0 / 200% 100%; animation: gc-sheen 6s ease-in-out infinite; }
@keyframes gc-sheen { 0%, 70% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.gc-seam { position: absolute; left: 10px; top: 318px; width: 288px; height: 4px; background: linear-gradient(#a0abc0, #d1d8e6); box-shadow: 0 1px 0 #fff; }
.gc-lower { position: absolute; left: 10px; top: 322px; width: 288px; height: 196px; border-radius: 4px 4px 6px 6px; }
.gc-coin { position: absolute; left: 18px; top: 16px; width: 116px; height: 100px; border-radius: 8px; background: var(--tint-3); box-shadow: inset 0 2px 3px rgba(160,171,192,.35), inset 0 -1px 0 #fff; }
.gc-coin::before { content: ""; position: absolute; right: 10px; top: 10px; width: 4px; height: 18px; border-radius: 2px; background: #3b4760; }
.gc-knob { position: absolute; left: 20px; top: 12px; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #f7f9fd 65%, #d1d8e6);
  box-shadow: 0 0 0 4px #e5ebf8, 0 0 0 5px #d1d8e6, 0 3px 0 5px #c8d0de; }
.gc-grip { position: absolute; left: 7px; top: 30px; width: 62px; height: 16px; border-radius: 8px; background: linear-gradient(#fff, #f7f9fd); box-shadow: 0 3px 0 #d1d8e6, inset 0 1px 0 #fff, 0 0 0 1px #e1e7f2; }
.gc-sticker { position: absolute; left: 18px; top: 124px; width: 116px; height: 30px; border-radius: 4px; background: #fff; color: #2a3140; display: grid; place-content: center; text-align: center; line-height: 1.1; box-shadow: inset 0 0 0 1px #0173c9; }
.gc-sticker b { font-size: 11px; } .gc-sticker small { font-size: 7px; font-weight: 700; }
.gc-logo-st { position: absolute; left: 18px; top: 162px; width: 92px; height: 22px; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px #d1d8e6; }
.gc-logo-st img { height: 14px; width: auto; display: block; }
.gc-label-en { position: absolute; left: 150px; top: 16px; width: 124px; height: 34px; border-radius: 4px; background: linear-gradient(#2b97ea, #0173c9); color: #fff; font-size: 13px; font-weight: 700; font-style: italic; letter-spacing: .04em; display: grid; place-items: center; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 #015a9e; }
/* 取り出し口: 黒い穴 → 青いガラスのポケット（担当の案 6） */
.gc-outlet { position: absolute; left: 150px; top: 60px; width: 124px; height: 96px; perspective: 500px; }
.gc-outlet-in { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1d4f86, #0b2a52);
  box-shadow: 0 0 0 3px #eff3fa, 0 0 0 4px #d1d8e6, inset 0 4px 8px rgba(11,42,82,.6), inset 0 -1px 0 rgba(191,227,255,.35); }
.gc-outlet-in.is-blink { animation: gc-blink .15s var(--gc-blinks, 4) alternate; }
@keyframes gc-blink { to { box-shadow: 0 0 0 3px #eff3fa, 0 0 0 4px #d1d8e6, inset 0 0 24px var(--gc-glow), inset 0 4px 8px rgba(11,42,82,.6); } }
.gc-flap { position: absolute; inset: 0; border-radius: 8px; border: 2px solid rgba(255,255,255,.55); transform-origin: 50% 0; transition: transform .35s cubic-bezier(.3,1.4,.6,1);
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.3) 40%, transparent 50%), rgba(255,255,255,.14); }
.gc-flap::before { content: ""; position: absolute; left: 6px; right: 6px; top: -2px; height: 4px; border-radius: 2px; background: #d1d8e6; }
.gc-outlet.is-open .gc-flap { transform: rotateX(-70deg); }
.gc-ocap { position: absolute; left: 39px; top: 40px; width: 46px; height: 46px; border-radius: 50%; opacity: 0; overflow: hidden; }
.gc-ocap.is-drop { animation: gc-drop .5s cubic-bezier(.3,1.5,.6,1) forwards; }
@keyframes gc-drop { from { opacity: 1; transform: translateY(-90px); } 70% { transform: translateY(3px); } 85% { transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.gc-key2 { position: absolute; left: 144px; top: 172px; }
.gc-base { position: absolute; left: 6px; top: 522px; width: 296px; height: 56px; border-radius: 6px; }
.gc-base-label { position: absolute; left: 50%; top: 22px; width: 72px; height: 14px; margin-left: -36px; border-radius: 3px; background: #0173c9; color: #fff; font-size: 7px; font-weight: 700; letter-spacing: .15em; display: grid; place-items: center; }
.gc-floor { position: absolute; left: 10px; top: 576px; width: 300px; height: 28px; background: radial-gradient(closest-side, rgba(42,49,64,.22), transparent), radial-gradient(50% 30% at 50% 40%, rgba(42,49,64,.18), transparent); }
/* 窓の中の POP（選んだアルバムの先頭 3 枚。本番は本物のカード） */
.gc-pop { position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.35) 2px, transparent 2.5px) 0 0 / 12px 12px, linear-gradient(#9cc4f2, #dbe8fa); padding: 10px 10px 8px; display: flex; align-items: flex-end; } /* 表紙が読めないとき（0 冊など）は前の青い地 */
.gc-pop.has-cover { background: var(--cover) var(--cx, 50%) var(--cy, 50%) / calc(var(--cz, 1) * 100%) auto no-repeat, #0b2a52; } /* 表紙を窓いっぱいに（はみ出た所は隠れる）。縦長の表紙を幅に合わせて敷き、位置（--cx・--cy）と大きさ（--cz）は設定の「表紙の見え方」で変える（2026-10-03 本人「ガチャのビジュアルが切れてるから、設定に表紙を調整できるようにして」） */
/* 設定の「表紙の見え方」 */
.st-cover { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; margin: 0 0 18px; }
.st-cover-pv { width: 96px; aspect-ratio: 1; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(42,49,64,.12); background: var(--cover) var(--cx, 50%) var(--cy, 50%) / calc(var(--cz, 1) * 100%) auto no-repeat, #0b2a52; } /* 窓（.gc-pop.has-cover）と同じ敷き方。変数は #phone に置く */
.st-cover-sl { display: grid; gap: 6px; font-size: 12px; color: var(--sub); }
.st-cover-sl label { display: grid; grid-template-columns: 4.5em 1fr; align-items: center; gap: 6px; }
.st-cover-sl input { width: 100%; accent-color: var(--brand-blue-text); }
.st-cover-reset { justify-self: start; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-size: 12px; color: var(--ink); }
.gc-pop-title { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; font-weight: 700; line-height: 1.3; color: #fff; -webkit-text-stroke: 4px #0173c9; paint-order: stroke fill; padding: 0 4px; }
.gc-pop-art { position: relative; width: 100%; display: grid; place-items: end center; }
.gc-dais { position: absolute; bottom: 6px; left: 50%; width: 150px; height: 22px; margin-left: -75px; border-radius: 50%; background: rgba(255,255,255,.6); }
.gc-sparkle { position: absolute; width: 12px; height: 12px; background: #fff; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.gc-fan { position: relative; width: 150px; height: 96px; margin-bottom: 12px; }
.gc-mini { position: absolute; bottom: 0; left: 50%; width: 58px; aspect-ratio: 63 / 88; margin-left: -29px; border-radius: 4.5% / 3.2%; border: 2px solid #fff; background: var(--tint-3) center / cover; box-shadow: 0 2px 4px rgba(42,49,64,.25); transform-origin: 50% 100%; overflow: hidden; }
.gc-mini::after { content: ""; position: absolute; inset: 0; background: conic-gradient(from 200deg, #bfe3ff, #d9f5ec, #fff6cf, #cfe0ff, #bfe3ff); mix-blend-mode: soft-light; opacity: .35; }
.gc-mini:nth-child(1) { rotate: -14deg; translate: -32px 2px; }
.gc-mini:nth-child(2) { z-index: 1; translate: 0 -4px; }
.gc-mini:nth-child(3) { rotate: 14deg; translate: 32px 2px; }
.gc-pop-foot { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.gc-pop-count:empty { display: none; } /* 0 冊・全部 0 枚のとき（空の白い四角を出さない） */
.gc-pop-count { background: rgba(255,255,255,.85); color: var(--ink); border-radius: 4px; font-size: 10px; font-weight: 700; padding: 2px 6px; }
.gc-pop-free { background: #0173c9; color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 2px 8px; }
/* カプセル（上半分が枠の色・下半分は透明） */
.gc-cap-top, .gc-cap-bot { position: absolute; left: 0; width: 100%; height: 50%; }
.gc-cap-top { top: 0; border-radius: 999px 999px 0 0; background: radial-gradient(circle at 34% 56%, rgba(255,255,255,.9) 0 10%, transparent 26%), var(--gc-cap); }
.gc-cap-bot { top: 50%; border-radius: 0 0 999px 999px; background: rgba(255,255,255,.55); border-top: 1px solid rgba(42,49,64,.12); }

/* ===== 出たところ（画面全体に重ねる） ===== */
.gc-ov { position: fixed; /* ~~absolute~~ 2026-10-04 夜 本番では画面の箱がヘッダーの下なので、幕がヘッダーまで覆うよう画面に固定（試しは .phone いっぱいだった） */ inset: 0 0 var(--bottom-fix, 0px); /* iPhone で高さがずれるときの補正（.install-guide と同じ・レビュー） */ z-index: 50; pointer-events: none; background: rgba(8,36,70,0); transition: background .5s; }
.gc-ov.is-busy, .gc-ov.is-closing { pointer-events: auto; } /* 回し始めから幕が出るまで・閉じてから色が消えるまで（0.5 秒）は、透明のまま後ろを押させない（右上のメニューが幕の下に開く・素早い 2 回押しが下の板に当たる＝レビュー） */
.gc-ov.is-on { pointer-events: auto; background: radial-gradient(circle at 50% 42%, rgba(1,115,201,.35), transparent 60%), rgba(8,36,70,.82); }
.gc-fx { position: absolute; left: 50%; top: 42%; width: 0; height: 0; }
.gc-rays { position: absolute; left: -260px; top: -260px; width: 520px; height: 520px; border-radius: 50%; background: repeating-conic-gradient(var(--gc-ray) 0 8deg, transparent 8deg 45deg); -webkit-mask: radial-gradient(circle, #000 8%, transparent 65%); mask: radial-gradient(circle, #000 8%, transparent 65%); animation: gc-spin 6s linear infinite; }
.gc-rays.r2 { animation-duration: 9s; animation-direction: reverse; rotate: 22deg; opacity: .7; }
.gc-ring { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 5px solid var(--gc-glow); animation: gc-ring .6s ease-out forwards; }
.gc-ring.r2 { animation-delay: .15s; opacity: 0; }
.gc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: gc-flash .5s forwards; pointer-events: none; }
.gc-spark { position: absolute; width: 18px; height: 18px; margin: -9px; background: #fff; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; animation: gc-spark 1s ease-out forwards; }
@keyframes gc-spin { to { transform: rotate(1turn); } }
@keyframes gc-ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
@keyframes gc-flash { 30% { opacity: .85; } to { opacity: 0; } }
@keyframes gc-spark { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
.gc-big { position: absolute; left: 0; top: 0; width: 46px; height: 46px; z-index: 2; transform-origin: 0 0; }
.gc-big .gc-cap-top { transition: transform .45s ease-in, opacity .45s; }
.gc-big .gc-cap-bot { transition: transform .45s ease-in, opacity .45s; }
.gc-big.is-trem { animation: gc-trem .08s infinite; }
@keyframes gc-trem { 25% { translate: 2px 0; } 75% { translate: -2px 0; } }
.gc-big.is-split .gc-cap-top { transform: translate(18px, -36px) rotate(35deg); opacity: 0; }
.gc-big.is-split .gc-cap-bot { transform: translate(-6px, 30px) rotate(-15deg); opacity: 0; }
.gc-reveal { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 24px; pointer-events: none; }
.gc-word { min-height: 40px; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; color: #fff; -webkit-text-stroke: 7px var(--gc-word-edge, #0173c9); paint-order: stroke fill; opacity: 0; }
.gc-word.is-stamp { animation: gc-stamp .35s cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes gc-stamp { 0% { transform: scale(2.4); opacity: 0; } 55% { transform: scale(.9); opacity: 1; } to { transform: none; opacity: 1; } }
/* 出たカード（2026-10-04 夜 段 2）: ~~色の板＋白い縁＋CSS の揺れ（gc-sway）・光の帯（gc-holo）・名前の帯（.gc-card-name）~~ → 中に本物のカード（createCardStage・指でなぞれる・自動でゆらゆら＝screens/gacha.js）。箱ははねて出る動きだけ持つ */
.gc-card { position: relative; width: 236px; aspect-ratio: 63 / 88; transform: scale(0); pointer-events: auto; } /* 幕の上の .gc-reveal は押せない（pointer-events: none）ので、カードだけ指を受ける */
.gc-card.is-in { animation: gc-card .5s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes gc-card { 0% { transform: scale(.16) rotate(-6deg); } 60% { transform: scale(1.05) rotate(1.5deg); } to { transform: none; } }
/* ~~@keyframes gc-sway~~ 2026-10-04 夜 本物のカードにしたので外した */
/* ~~.gc-card::after~~ 2026-10-04 夜 本物のカードにしたので外した */
/* ~~.gc-screen[data-tier="jackpot"] ~ .gc-ov .gc-card::after~~ 2026-10-04 夜 本物のカードにしたので外した */
/* ~~@keyframes gc-holo~~ 2026-10-04 夜 本物のカードにしたので外した */
/* ~~.gc-card-name~~ 2026-10-04 夜 本物のカードにしたので外した */
.gc-actions { display: flex; flex-direction: row-reverse; gap: 12px; width: 100%; max-width: 320px; opacity: 0; pointer-events: none; }
.gc-actions.is-shown { animation: gc-up .3s ease-out forwards; pointer-events: auto; }
@keyframes gc-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gc-actions button { flex: 1; height: 48px; border: 0; border-radius: 24px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.gc-again { --edge: #015a9e; color: #fff; margin-bottom: 4px; background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.3), rgba(255,255,255,0) 58%), linear-gradient(#2b97ea, #0173c9 60%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), 0 0 0 1px var(--edge), 0 4px 0 var(--edge); }
.gc-again:active { transform: translateY(3px); box-shadow: inset 0 2px 3px rgba(1,90,158,.6), 0 0 0 1px var(--edge), 0 1px 0 var(--edge); }
.gc-close { color: var(--ink); border: 1.5px solid var(--line) !important; background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--tint-1) 45%, var(--tint-3) 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(160,171,192,.25); }
/* 枠ごと（はずれ・当たり・大当たり）の色 */
[data-tier="miss"] { --gc-cap: #a0abc0; --gc-glow: #c8d0de; --gc-ray: transparent; --gc-blinks: 2; --gc-word-edge: #7d8aa3; }
[data-tier="hit"] { --gc-cap: #2b97ea; --gc-glow: #5fb1f2; --gc-ray: rgba(143,208,255,.55); --gc-blinks: 4; --gc-word-edge: #0173c9; }
[data-tier="jackpot"] { --gc-cap: conic-gradient(from 200deg, #bfe3ff, #d9f5ec, #fff6cf, #cfe0ff, #bfe3ff); --gc-glow: #bfe3ff; --gc-ray: rgba(255,255,255,.7); --gc-blinks: 4; --gc-word-edge: #0173c9; }
:root { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-10C.8-3 3-.8 10 0C3 .8 .8 3 0 10C-.8 3-3 .8-10 0C-3-.8-.8-3 0-10Z'/%3E%3C/svg%3E"); }
/* 動きを減らす設定（OS）: 揺れ・白い光・回る光線・きらめきを出さず、カードははねずに浮かび上がる・窓の光の流れも止める。
   ~~.gc-reduced（試しのチェック欄で付けていた印）~~ 2026-10-04 夜 本番では付ける所が無かった（レビュー）→ OS の設定を直に見る */
@media (prefers-reduced-motion: reduce) {
  .gc-rays, .gc-flash, .gc-spark { display: none; }
  .gc-card.is-in { animation: gc-fade .3s ease-out forwards; }
  .gc-win-in::after { animation: none; }
}
@keyframes gc-fade { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
body[data-motion-off] .gc-win-in::after { animation: none; } /* 節電オンでは窓の光の流れだけ止める（見本メモ「いま有効な値」・2026-10-04 夜。演出は一度きりなので止めない） */

/* ===== 設定の小窓（出る割合とカードの枠の 2 つ・担当の案 5） ===== */
.st-dim { position: absolute; inset: 0; background: rgba(42,49,64,.35); z-index: 40; }
.st-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 32px rgba(42,49,64,.18); z-index: 41; }
.st-head { padding: 18px 20px 10px; text-align: center; border-bottom: 1px solid var(--tint-2); }
.st-head h2 { margin: 0; font-size: 16px; }
.st-head p { margin: 4px 0 0; font-size: 12px; color: var(--sub); }
.st-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px 8px; }
.st-sec h3 { margin: 0 0 10px; font-size: 14px; }
.st-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 0 0 12px; box-shadow: inset 0 0 0 1px var(--line); }
.st-bar i { display: block; height: 100%; transition: flex-grow .2s; }
.st-bar .j { background: conic-gradient(from 200deg, #bfe3ff, #d9f5ec, #fff6cf, #cfe0ff, #bfe3ff); }
.st-bar .h { background: #2b97ea; } .st-bar .m { background: #a0abc0; }
/* ~~大当たり・当たり・はずれの行と −／＋（.st-rate・.st-step・.st-auto）~~ ⚠️ 2026-10-03 夜 本人「％の調整削除して」で外した */
.st-presets { display: flex; gap: 6px; margin: 8px 0 16px; }
.st-presets button { flex: 1; height: 44px; display: grid; place-content: center; gap: 1px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink); cursor: pointer; }
.st-presets button[aria-pressed="true"] { border: 1.5px solid var(--brand-blue-text); background: var(--tint-1); color: var(--brand-blue-text); } /* 選んでいる強さ（2026-10-03 夜 ％の段を外したので） */
.st-presets small { font-size: 10px; font-weight: 500; color: var(--sub); white-space: nowrap; } /* 名前と割合を 2 段に分ける（375px の幅で 1 行に入らず折れていた） */
.st-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; } /* 端まで来たら 2 段に折り返す（2026-10-03 夜 本人「切り替えボタンを端まで行ったら２段にして」。前は横にスクロール） */
.st-filter::-webkit-scrollbar { display: none; } /* 横のスクロールの線を出さない */
.st-filter button { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; font: inherit; font-size: 12px; color: var(--sub); cursor: pointer; }
.st-filter button[aria-pressed="true"] { background: var(--brand-blue-text); color: #fff; border-color: var(--brand-blue-text); } /* ~~--ink~~ 青（2026-10-04 夜 本人「選択は青色、削除はピンクで統一して」） */
.st-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-cards li { display: flex; align-items: center; gap: 10px; }
.st-thumb { flex: none; width: 32px; aspect-ratio: 63 / 88; border-radius: 3px; background: var(--card); box-shadow: 0 1px 2px rgba(42,49,64,.2); }
.st-name { flex: 1 1 0; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-seg { flex: none; display: flex; padding: 2px; border-radius: 16px; background: var(--tint-2); }
.st-seg button { height: 30px; padding: 0 5px; letter-spacing: -.02em; border: 0; border-radius: 14px; background: none; font: inherit; font-size: 10.5px; font-weight: 600; color: var(--sub); cursor: pointer; }
.st-seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(160,172,192,.45); }
.st-foot { padding: 10px 20px 22px; border-top: 1px solid var(--tint-2); }
.st-foot button { width: 100%; height: 48px; border: 0; border-radius: 24px; background: var(--brand-blue-text); color: #fff; font: inherit; font-weight: 700; font-size: 15px; }
/* ===== 下の板（2026-10-04 本人「ガチャのフッターのボタン3つとも一覧ページのボタンの大きさ・位置・加工合わせて」）=====
   アルバムの中の下の板（album.css の .album-bar）と同じ: 画面の左右 20px あけ・最大 440px・高さ --nav-h（64px）・中の左右 8px・3 等分・同じ地／ぼかし／白い縁／影・ガラス（案 3）は glass.css と同じ値・光の線は try-glow.js の applyTryGlowAlbum。
   左 アルバムを見る（48px のドーム・本）・真ん中 回す（56px のドーム）・右 設定（48px のドーム・歯車）。下の端は一覧と同じ高さ（下から max(16px, 下の安全域)）。上の段の前の指定（.gc-album・.gc-gear の絶対配置・.gc-pull の丸い板）はここで打ち消す */
.gc-foot { padding: 10px 0 0; }
.gc-bar { position: relative; z-index: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); box-sizing: border-box; width: min(calc(100% - 40px), 440px); height: var(--nav-h); margin: 0 auto; padding: 0 8px; border-radius: calc(var(--nav-h) / 2);
  background: rgba(247, 249, 253, .75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 10px var(--panel-shadow); }
body[data-glass="3"] .gc-bar { /* glass.css の body[data-glass="3"] .album-bar と同じ値（値を変えるときは両方） */
  background: linear-gradient(147deg, rgb(255 255 255 / 0) 15%, rgb(255 255 255 / .7) 25%, rgb(255 255 255 / 0) 35%), linear-gradient(to bottom, rgb(255 255 255 / .45), rgb(247 249 253 / .18) 55%, rgb(229 235 248 / .35));
  border: 2px solid rgb(255 255 255 / .8);
  box-shadow: 0 0 10px var(--panel-shadow), 0 2px 4px rgb(160 171 192 / .25), inset 0 0 0 1px rgb(160 171 192 / .25), inset 0 1.5px 0 #fff, inset 0 -6px 10px -6px rgb(160 171 192 / .45);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.gc-bar .gc-slot, body[data-glass="3"] .gc-bar .gc-slot { position: static; display: flex; align-items: center; justify-content: center; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font: inherit; color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.gc-bar .gc-slot:focus { outline: none; } .gc-bar .gc-slot:focus-visible > span { outline: 2px dashed var(--ink); outline-offset: 2px; }
.gc-bar .gc-album, .gc-bar .gc-gear { position: relative; left: auto; right: auto; bottom: auto; display: block; width: 48px; height: 48px; box-sizing: border-box; } /* 前の 44px の絶対配置を打ち消し、一覧の 戻る・編集 と同じ 48px に */
.gc-bar .gc-gear::after { width: 24px; height: 24px; }
.gc-bar .gc-slot:active .gc-album, .gc-bar .gc-slot:active .gc-gear { background: radial-gradient(120% 80% at 50% 100%, var(--tint-1) 0%, var(--tint-3) 100%); box-shadow: inset 0 2px 3px rgba(42,49,64,.15); } /* 押している間はへこむ（一覧と同じ） */
.gc-bar .gc-slot:active .gc-album::after { translate: -.5px -.5px; }
/* 2026-10-04 夜 本人「各ページのフッターボタンの加工や大きさを統一して」→ 線を画面の上で 2.3px にそろえる（ほかの画面の下の板と同じ基準）。
   ~~本 1.56px（nav-book.svg を 26×23 で）・歯車 2.0px・回す 2.04px（gacha-turn.svg を 34×30 で・インク 22px）~~。形は前と同じ */
.gc-bar .gc-album::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 1.1 30 26'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6.5C12.4 4.5 8.3 3.9 3.5 4.5V19.5C8.3 18.9 12.4 19.5 15 21.5C17.6 19.5 21.7 18.9 26.5 19.5V4.5C21.7 3.9 17.6 4.5 15 6.5ZM15 6.5V21.5'/%3E%3Cpath d='M5.5 22.6C9 22.2 12.5 22.6 15 24.4C17.5 22.6 21 22.2 24.5 22.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 1.1 30 26'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6.5C12.4 4.5 8.3 3.9 3.5 4.5V19.5C8.3 18.9 12.4 19.5 15 21.5C17.6 19.5 21.7 18.9 26.5 19.5V4.5C21.7 3.9 17.6 4.5 15 6.5ZM15 6.5V21.5'/%3E%3Cpath d='M5.5 22.6C9 22.2 12.5 22.6 15 24.4C17.5 22.6 21 22.2 24.5 22.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; } /* 線 2.65 × 0.867 ≒ 2.3px */
.gc-bar .gc-gear::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.78 4.73L10.50 2.52L13.50 2.52L14.22 4.73L15.57 5.29L17.64 4.23L19.77 6.36L18.71 8.43L19.27 9.78L21.48 10.50L21.48 13.50L19.27 14.22L18.71 15.57L19.77 17.64L17.64 19.77L15.57 18.71L14.22 19.27L13.50 21.48L10.50 21.48L9.78 19.27L8.43 18.71L6.36 19.77L4.23 17.64L5.29 15.57L4.73 14.22L2.52 13.50L2.52 10.50L4.73 9.78L5.29 8.43L4.23 6.36L6.36 4.23L8.43 5.29Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.78 4.73L10.50 2.52L13.50 2.52L14.22 4.73L15.57 5.29L17.64 4.23L19.77 6.36L18.71 8.43L19.27 9.78L21.48 10.50L21.48 13.50L19.27 14.22L18.71 15.57L19.77 17.64L17.64 19.77L15.57 18.71L14.22 19.27L13.50 21.48L10.50 21.48L9.78 19.27L8.43 18.71L6.36 19.77L4.23 17.64L5.29 15.57L4.73 14.22L2.52 13.50L2.52 10.50L4.73 9.78L5.29 8.43L4.23 6.36L6.36 4.23L8.43 5.29Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; } /* 24 四方を 24px で＝線 2.3px */
.gc-bar .gc-pull-dome::before { width: 37px; height: 32px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.87' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='15' cy='15' r='6.6'/%3E%3Cpath d='M12.4 16.5L17.6 13.5' stroke-width='3.53'/%3E%3Cpath d='M5.99 8.69A11 11 0 0 1 24.01 8.69'/%3E%3Cpath d='M24.25 5.9L24.01 8.69L21.31 7.97'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.87' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='15' cy='15' r='6.6'/%3E%3Cpath d='M12.4 16.5L17.6 13.5' stroke-width='3.53'/%3E%3Cpath d='M5.99 8.69A11 11 0 0 1 24.01 8.69'/%3E%3Cpath d='M24.25 5.9L24.01 8.69L21.31 7.97'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; } /* 56px の丸の記号 24px（枠 37×32＝1.231 倍）・線 1.87 × 1.231 ≒ 2.3px・つまみ 3.53 */
