/* ========================================================================
   スキルシミュレーター系の共通スタイル（skill-timing.css）
   詠唱・クールタイム・スキルディレイの計算機に共通の、ダーク＋ゴールドの見た目。
   パネル・数値ステッパー・スキルボタン・待機バー・装備・バフ選択モーダル・解説などを持つ。

   読み込むページ: v2/skill-timing.html（スキルシミュレーター）・v2/cooltime.html（クールタイム計算機）・v2/hit-flee.html（回避命中計算機。パネル・入力欄・結果カード・ステッパーだけ使う）
   読み込み順: common.css → このファイル →（ページ固有 <style>）
   ======================================================================== */
/* --gold-1..3 / --ink-sub は common.css の :root で定義済み */
:root{
  --panel-bg:rgba(11,24,56,.62); --panel-edge:rgba(150,185,255,.24);
  --cast:#3fd06a; --cd:#4a90e2; --sd:#ffb02e; --motion:#b98cff; --eff:#25c9a0; --reserve:#ff5f8a;
}
/* html の touch-action・tap-highlight・text-size-adjust は common.css。
   touch-action は継承されず、入れ子のスクロール枠（装備モーダルの一覧）の中では html の指定が届かないため、
   スキルを連打するこの系統のページは全要素に付けてダブルタップ拡大を止めておく */
*{touch-action:manipulation}
html,body{margin:0;padding:0}
/* スマホの長押しコピー（テキスト選択・コンテキストメニュー）を全体で無効化（入力欄は除く） */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* 入力欄だけは選択・編集できるように戻す */
input,textarea{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
body{
  font-family:"Noto Sans JP",sans-serif;color:#eaf1ff;min-height:100vh;
  background:var(--bg-night);
  background-attachment:fixed;overflow-x:hidden;
}
/* 星空（.st-stars / .st-stars i / @keyframes twinkle）は common.css */

.st-wrap{position:relative;z-index:1;max-width:860px;margin:0 auto;padding:14px 16px 60px}
/* スマホ幅は画面端→パネルを他ページと同じ --gutter-panel（12px）に揃える */
@media (max-width:600px){.st-wrap{padding-left:var(--gutter-panel);padding-right:var(--gutter-panel)}}

/* ---- ヘッダ / フッタ ---- */
/* 見た目は common.css に統一。下パディングだけプレイエリアを詰めるため小さくしている */
header.site{padding:18px 4px 6px}

/* ---- 共通パネル ---- */
.st-panel{background:var(--panel-bg);border:1px solid var(--panel-edge);border-radius:16px;padding:14px 15px;margin-top:14px}
.st-panel>h2{margin:0 0 12px;font-size:18.5px;letter-spacing:.1em;color:#bcd2ff;font-weight:700;display:flex;align-items:center;gap:8px}
.st-panel>h2 .ln{flex:1;height:1px;background:linear-gradient(90deg,rgba(150,190,255,.5),transparent)}
.st-panel>h2 .tip{font-size:var(--fs-md);color:#8aa0cc;letter-spacing:0;font-weight:500}

/* ======================= プレイエリア ======================= */
.st-stage{position:relative;border-radius:18px;padding:20px 14px 16px;overflow:hidden;
  background:
    radial-gradient(520px 240px at 50% 8%, rgba(120,170,255,.22), transparent 70%),
    linear-gradient(180deg,rgba(10,22,52,.65),rgba(8,16,40,.55));
  border:1px solid rgba(150,185,255,.22);box-shadow:inset 0 0 40px rgba(60,110,220,.12)}

/* 状態テキスト */
.st-state{text-align:center;font-weight:800;letter-spacing:.14em;font-size:17.5px;min-height:20px;margin-bottom:16px;transition:color .15s}
.st-state[data-s="ready"]{color:#9fe6bc}
.st-state[data-s="cast"]{color:#8fe0ff}
.st-state[data-s="lock"]{color:#ffc98a}

/* スキルアイコン行 */
.st-row{display:flex;justify-content:center;align-items:flex-start;gap:min(6vw,34px);margin:4px 0 0}
.st-slot{display:flex;flex-direction:column;align-items:center;gap:7px;width:96px}
.st-skill{width:88px;height:88px;border-radius:50%;position:relative;cursor:pointer;border:0;padding:0;-webkit-tap-highlight-color:transparent;
  background:radial-gradient(circle at 50% 36%,#12244c,#0a1836);
  box-shadow:0 0 0 3px #caa04e,0 0 0 5px #6b4a20,0 5px 14px rgba(0,0,0,.55);transition:transform .08s}
.st-skill:active{transform:scale(.94)}
.st-skill__icon{position:absolute;inset:0;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#0f2145,#081227)}
/* 四角いアイコンを丸にフィット＋やや拡大（角は欠けてOK）。少し上寄せ表示 */
.st-skill__icon img{width:108%;height:108%;object-fit:cover;transform:translateY(-3px);filter:drop-shadow(0 1px 2px rgba(0,0,0,.4))}
/* クールタイム：時計回りに減っていく円錐オーバーレイ */
.st-skill__cd{position:absolute;inset:0;border-radius:50%;pointer-events:none;display:none}
.st-skill__cd.on{display:block}
.st-skill__cd b{position:absolute;inset:0;display:grid;place-items:center;font-family:"Barlow",sans-serif;font-weight:800;font-size:22px;color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.8);font-variant-numeric:tabular-nums}
/* 発火フラッシュ */
.st-skill__flash{position:absolute;inset:-6px;border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(circle,rgba(255,255,255,.95),rgba(180,225,255,.5) 45%,transparent 70%)}
.st-skill.fire .st-skill__flash{animation:fireFx .5s ease-out}
@keyframes fireFx{0%{opacity:0;transform:scale(.6)}18%{opacity:1;transform:scale(1.05)}100%{opacity:0;transform:scale(1.35)}}
/* 使用可能：やわらかく発光。詠唱中・待機中：くすむ */
.st-skill.ready{box-shadow:0 0 0 3px #ffe08a,0 0 0 5px #b9852e,0 0 18px 2px rgba(255,214,120,.5),0 5px 14px rgba(0,0,0,.55);animation:readyPulse 1.6s ease-in-out infinite}
@keyframes readyPulse{0%,100%{box-shadow:0 0 0 3px #ffe08a,0 0 0 5px #b9852e,0 0 14px 1px rgba(255,214,120,.35),0 5px 14px rgba(0,0,0,.55)}50%{box-shadow:0 0 0 3px #fff0c0,0 0 0 5px #caa04e,0 0 26px 4px rgba(255,220,130,.75),0 5px 14px rgba(0,0,0,.55)}}
.st-skill.casting{box-shadow:0 0 0 3px #7fd0ff,0 0 0 5px #2f6fb0,0 0 22px 3px rgba(90,190,255,.6),0 5px 14px rgba(0,0,0,.55)}
.st-skill.locked .st-skill__icon img{filter:grayscale(.55) brightness(.62)}
/* 未選択スロット：パルスさせず静的に。リングを控えめにして「＋」を表示（ちらつき防止） */
.st-skill.empty{box-shadow:0 0 0 2px rgba(150,185,255,.28),0 0 0 4px rgba(30,50,90,.5),0 5px 14px rgba(0,0,0,.45);animation:none}
.st-skill.empty .st-skill__icon{background:radial-gradient(circle at 50% 40%,#101f3e,#0a1428)}
.st-skill.empty .st-skill__icon::after{content:"＋";position:absolute;inset:0;display:grid;place-items:center;
  font-size:30px;font-weight:300;color:rgba(160,190,255,.45);line-height:1}
/* 自動連打の対象マーク */
.st-slot.selected .st-skill::after{content:"";position:absolute;left:50%;top:-14px;transform:translateX(-50%);
  border:6px solid transparent;border-top-color:#ffd76a;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
/* 効果時間が持続中のスキル：外周がティール色に光る */
.st-skill.effOn{outline:2px solid var(--eff);outline-offset:2px}
/* 予約マーク（予約は1つ・タップで差替/解除） */
.st-slot.reserved .st-skill{box-shadow:0 0 0 3px var(--reserve),0 0 0 5px #7a2440,0 0 16px 2px rgba(255,95,138,.55),0 5px 14px rgba(0,0,0,.55)}
.st-resv-tag{display:none;position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);z-index:6;
  background:var(--reserve);color:#fff;font-size:var(--fs-sm);font-weight:800;letter-spacing:.06em;padding:1px 7px;border-radius:999px;
  box-shadow:0 1px 3px rgba(0,0,0,.5);white-space:nowrap}
.st-slot.reserved .st-resv-tag{display:block;animation:resvBlink 1.1s ease-in-out infinite}
@keyframes resvBlink{0%,100%{opacity:1}50%{opacity:.5}}
/* スキル名：見切れないよう折り返し可・2行ぶんの高さを確保して各アイコンの設定ボタンを揃える */
.st-slot__name{font-size:15.5px;font-weight:700;color:#dbe6ff;text-align:center;line-height:1.2;width:100%;
  min-height:2.3em;display:flex;align-items:center;justify-content:center}
.st-slot__lv{font-family:"Barlow",sans-serif;font-size:15.5px;font-weight:800;color:#ffd76a;letter-spacing:.03em;text-align:center;line-height:1;margin-top:1px}
.st-slot__gear{background:none;border:0;color:#7e97c6;font-size:var(--fs-md);cursor:pointer;padding:2px 6px;border-radius:6px;font-weight:700}
.st-slot__gear:hover{color:#cfe0ff;background:rgba(255,255,255,.06)}

/* 詠唱バー（黒バー＋緑シーク） */
.st-castwrap{max-width:420px;margin:2px auto 2px;min-height:32px}
.st-castbar{position:relative;opacity:0;transition:opacity .12s}
.st-castbar.on{opacity:1}
.st-castbar__name{display:inline-block;margin:0 0 -8px 8px;position:relative;z-index:2;
  background:rgba(14,18,30,.9);color:#fff;font-weight:700;font-size:var(--fs-base);padding:3px 12px;border-radius:6px;
  box-shadow:0 2px 5px rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.12)}
.st-castbar__track{height:20px;border-radius:5px;background:linear-gradient(180deg,#0b0e14,#05070c);
  border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 2px 4px rgba(0,0,0,.7);overflow:hidden;position:relative}
.st-castbar__fill{position:absolute;inset:0;width:0%;border-radius:4px 3px 3px 4px;
  background:linear-gradient(180deg,#7cf29a,#3fd06a 55%,#22a34d);
  box-shadow:0 0 8px rgba(80,230,130,.55);transition:width .04s linear}
.st-castbar__fill::after{content:"";position:absolute;inset:0 0 55% 0;background:linear-gradient(180deg,rgba(255,255,255,.5),transparent);border-radius:4px}
.st-castbar__t{position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:2;font-family:"Barlow",sans-serif;
  font-weight:800;font-size:var(--fs-md);color:#eafff0;text-shadow:0 1px 2px rgba(0,0,0,.9);font-variant-numeric:tabular-nums}

/* 全体待機バー（スキルディレイ／モーションディレイ） */
.st-globals{max-width:420px;margin:2px auto 0;display:flex;flex-direction:column;gap:6px}
.st-gbar{display:flex;align-items:center;gap:8px;font-size:15.5px;font-weight:700;color:#aebfe0}
/* 左のラベル表示エリアを拡大し、その分バー（track）を短くする */
.st-gbar .k{width:205px;flex:0 0 auto;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-gbar .k i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px;vertical-align:middle}
.st-gbar .track{flex:1;height:8px;border-radius:5px;background:rgba(255,255,255,.08);overflow:hidden;position:relative}
.st-gbar .fill{position:absolute;left:0;top:0;bottom:0;width:0%;border-radius:5px;transition:width .04s linear}
.st-gbar.sd .k i{background:var(--sd)} .st-gbar.sd .fill{background:linear-gradient(90deg,#ffcf6a,var(--sd))}
.st-gbar.motion .k i{background:var(--motion)} .st-gbar.motion .fill{background:linear-gradient(90deg,#d0b0ff,var(--motion))}
.st-gbar .v{width:48px;flex:0 0 auto;text-align:right;font-family:"Barlow",sans-serif;font-size:var(--fs-md);color:#dbe6ff;font-variant-numeric:tabular-nums}
/* 効果時間バー（スキル使用後からカウント） */
.st-effs{max-width:420px;margin:8px auto 0;display:flex;flex-direction:column;gap:5px}
.st-gbar.eff .k i{background:var(--eff)} .st-gbar.eff .fill{background:linear-gradient(90deg,#7ff0d0,var(--eff))}
.st-gbar.eff{opacity:.5;transition:opacity .2s}
.st-gbar.eff.active{opacity:1}
.st-gbar.eff .k{color:#9fe0cf}
/* クールタイムバー（スキル毎・青） */
.st-gbar.cd .k i{background:var(--cd)} .st-gbar.cd .fill{background:linear-gradient(90deg,#6fb0f0,var(--cd))}
.st-gbar.cd{opacity:.5;transition:opacity .2s}
.st-gbar.cd.active{opacity:1}
.st-gbar.cd .k{color:#a9c4ee}

/* コントロール */
.st-controls{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.st-btn{border:0;border-radius:11px;padding:11px 20px;font-weight:800;font-size:17px;letter-spacing:.06em;color:#fff;cursor:pointer;
  box-shadow:0 4px 0 rgba(0,0,0,.22),0 5px 12px rgba(0,0,0,.28);transition:transform .08s,box-shadow .08s}
.st-btn:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(0,0,0,.22),0 3px 8px rgba(0,0,0,.24)}
.st-btn:disabled{opacity:.4;cursor:default;filter:grayscale(.5)}
.st-btn:disabled:active{transform:none;box-shadow:0 4px 0 rgba(0,0,0,.22),0 5px 12px rgba(0,0,0,.28)}
.st-btn--auto{background:linear-gradient(180deg,#ffb347,#ff8a1f 55%,#ef6f12)}
.st-btn--auto.on{background:linear-gradient(180deg,#ff6a6a,#e23b3b 55%,#b52626)}
.st-btn--reset{background:linear-gradient(180deg,#5fa0ec,#3a78d4 55%,#285fb0)}
.st-btn--allreset{background:linear-gradient(180deg,#8c93a4,#5b6376 55%,#3c4353);font-size:var(--fs-base)}
.st-btn--ghost{background:rgba(255,255,255,.08);box-shadow:none;border:1px solid rgba(160,190,255,.35);color:#cfe0ff;font-size:var(--fs-base);padding:9px 16px}
.st-btn--ghost:active{transform:translateY(1px)}

/* ======================= 実効値パネル ======================= */
.st-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.st-mcard{background:rgba(7,16,40,.55);border:1px solid rgba(120,160,230,.22);border-radius:12px;padding:9px 6px;text-align:center;min-width:0;overflow:hidden}
.st-mcard h3{margin:0 0 8px;font-size:var(--fs-base);font-weight:700;color:#dbe6ff;
  display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
/* スキルアイコンは画像自体が角丸四角か丸（角は透明）。border-radius で切ると四隅が二重に欠けるので、画像の形のまま出す（.st-tabs・.st-cfg-head も同じ） */
.st-mcard h3 img{width:24px;height:24px;object-fit:contain;flex:0 0 auto}
/* 名前は縮小して省略記号（アイコンとLvは常に全表示・列間で行が揃う） */
.st-mcard h3 .mn{min-width:0;flex:0 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-mcard h3 .ml{font-family:"Barlow",sans-serif;font-size:var(--fs-md);font-weight:800;color:#ffd76a;flex:0 0 auto;margin-left:1px}
.st-mrow{display:flex;justify-content:space-between;align-items:baseline;gap:3px;font-size:var(--fs-md);padding:3px 1px;border-top:1px solid rgba(255,255,255,.05);min-width:0}
.st-mrow:first-of-type{border-top:0}
.st-mrow .mk{color:#8aa0cc;font-weight:600;white-space:nowrap;flex:0 0 auto}
.st-mrow .mv{font-family:"Barlow",sans-serif;font-weight:800;font-size:16.5px;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:0}
.st-mrow .mv small{font-size:var(--fs-sm);color:#9fb4dc;font-weight:600}
.st-mrow.hl{margin-top:2px;background:rgba(90,160,236,.14);border-radius:7px;padding:5px 5px;border-top:0}
.st-mrow.hl .mk{color:#bcd2ff}
.st-mrow.hl .mv{color:#9fe6bc;font-size:18px}
.st-mrow .mv.ok{color:#7dffae}
.st-mrow .mv.ng{color:#ff8a8a}
/* ループ判定の◯/✖：丸と同じ見た目・サイズに揃える */
.st-mrow .mv.mc-loop{font-size:18px;line-height:1;font-weight:800}
.st-cyc-note{font-size:15.5px;color:#8aa0cc;margin-top:10px;line-height:1.6;text-align:center}

/* ======================= 設定：フォーム ======================= */
.st-field{display:flex;align-items:center;gap:8px;margin:8px 0}
.st-field>label:not(.st-toggle){flex:1;font-size:16.5px;color:#c7d5f2;font-weight:600;line-height:1.35}
/* 短縮ステータスのグループ見出し */
.st-grp{font-size:15.5px;font-weight:800;color:#9fb4dc;letter-spacing:.04em;margin:14px 0 4px;padding-bottom:3px;border-bottom:1px solid rgba(150,190,255,.18)}
.st-field>label small{display:block;color:#7e97c6;font-size:var(--fs-md);font-weight:500;margin-top:1px}
.st-num{display:flex;align-items:center;gap:0;flex:0 0 auto}
.st-num button{width:32px;height:34px;border:1px solid rgba(160,190,255,.3);background:rgba(255,255,255,.06);color:#cfe0ff;font-size:21px;font-weight:800;cursor:pointer;line-height:1}
.st-num button:first-child{border-radius:8px 0 0 8px} .st-num button:last-child{border-radius:0 8px 8px 0}
.st-num button:active{background:rgba(255,255,255,.16)}
.st-num input{width:66px;height:34px;text-align:center;border:1px solid rgba(160,190,255,.3);border-left:0;border-right:0;
  background:rgba(6,12,30,.6);color:#fff;font-family:"Barlow",sans-serif;font-weight:800;font-size:18px;-moz-appearance:textfield}
.st-num input::-webkit-outer-spin-button,.st-num input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.st-unit{width:20px;flex:0 0 auto;font-size:var(--fs-md);color:#8aa0cc;font-weight:700}
/* スキル選択・レベル選択 */
.st-field select{flex:0 0 auto;height:36px;max-width:210px;padding:0 8px;border-radius:8px;border:1px solid rgba(160,190,255,.3);
  background:rgba(6,12,30,.85);color:#fff;font-family:"Noto Sans JP",sans-serif;font-weight:700;font-size:16.5px}
.st-field select.cf-skill{width:210px;text-overflow:ellipsis}
.st-field select.cf-series{width:210px;text-overflow:ellipsis}
.st-field select.cf-level{width:90px}
.st-field select.cf-sound{width:120px}
.st-preview{flex:0 0 auto;width:34px;height:34px;margin-left:6px;border-radius:8px;border:1px solid rgba(160,190,255,.3);
  background:rgba(255,255,255,.08);color:#cfe0ff;font-size:var(--fs-base);cursor:pointer}
.st-preview:active{transform:scale(.94);background:rgba(255,255,255,.16)}
/* トグル */
.st-toggle{display:flex;align-items:center;gap:8px;cursor:pointer;user-select:none;flex:0 0 auto;margin-left:auto}
/* チェックボックス本体は .sr-only（common.css）で見た目だけ隠す。display:none だとキーボードで操作できない */
.st-toggle input:focus-visible+.sw{outline:2px solid var(--focus-ring,#ffe088);outline-offset:2px}
.st-toggle .sw{width:44px;height:24px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(160,190,255,.3);position:relative;transition:.16s}
.st-toggle .sw::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#cfe0ff;transition:.16s}
.st-toggle input:checked+.sw{background:linear-gradient(90deg,#3fd06a,#22a34d)}
.st-toggle input:checked+.sw::after{left:22px;background:#fff}

.st-tabs{display:flex;gap:6px;margin-bottom:12px}
.st-tabs button{flex:1;padding:9px 4px;border-radius:9px;border:1px solid rgba(150,190,255,.25);background:rgba(255,255,255,.05);color:#aebfe0;font-weight:700;font-size:16.5px;cursor:pointer;transition:.15s;display:flex;align-items:center;justify-content:center;gap:6px}
.st-tabs button img{width:24px;height:24px;object-fit:contain}
.st-tabs button.active{background:linear-gradient(180deg,#5fa0ec,#3a78d4);border-color:#3a78d4;color:#fff;box-shadow:0 2px 8px rgba(40,90,180,.4)}
.st-skillcfg{display:none} .st-skillcfg.active{display:block}
/* スキル設定：アイコンは四角のままフル表示 */
.st-cfg-head{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.st-cfg-head img{width:48px;height:48px;object-fit:contain;flex:0 0 auto}
/* スキル未選択（src が透明の data: URI）のときだけ、空き枠として暗い角丸の地を出す */
.st-mcard h3 img[src^="data:"],.st-tabs button img[src^="data:"]{border-radius:5px;background:#0b1730}
.st-cfg-head img[src^="data:"]{border-radius:8px;background:radial-gradient(circle at 50% 40%,#12244c,#0a1836)}
.st-cfg-head .cf-title{font-size:19px;font-weight:700;color:#fff;line-height:1.3}
.st-hint{font-size:15.5px;color:#7e97c6;line-height:1.55;margin:2px 0 0}
/* スキルクリアボタン（設定ヘッダ右端・押すと未セットに戻る） */
.cf-clear{margin-left:auto;flex:0 0 auto;background:rgba(255,255,255,.08);border:1px solid rgba(160,190,255,.35);
  color:#cfe0ff;font-size:var(--fs-md);font-weight:700;padding:7px 15px;border-radius:8px;cursor:pointer}
.cf-clear:active{background:rgba(255,255,255,.16)}
/* スキル未選択時：スキル変更以外の操作は不可（見た目もくすませる） */
.st-num input:disabled,.st-num button:disabled,.cf-level:disabled,.cf-sound:disabled,.st-preview:disabled,.cf-clear:disabled{opacity:.4;cursor:default}
.st-toggle input:disabled+.sw{opacity:.4}
.st-skillcfg.no-skill .st-field>label{opacity:.45}
.st-skillcfg.no-skill .st-field:first-of-type>label,
.st-skillcfg.no-skill .st-field:nth-of-type(2)>label{opacity:1}

/* 装備・バフ選択ボタン */
.st-gearbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.st-gearbtn{flex:1;min-width:150px;background:rgba(90,160,236,.16);border:1px solid rgba(150,190,255,.4);color:#dbe6ff;font-size:var(--fs-md);font-weight:700;padding:11px 3px;border-radius:10px;cursor:pointer;transition:.12s;letter-spacing:-.02em}
.st-gearbtn:active{background:rgba(90,160,236,.3)}
/* ループに必要な値を自動設定ボタン（装備・バフ選択と同トーン・淡いティール）＋右側にクリア */
.st-autoloop-row{display:flex;gap:8px;margin-top:8px;align-items:stretch}
.st-autoloop{flex:1;background:rgba(37,201,160,.14);border:1px solid rgba(110,215,180,.42);
  color:#c9f2e3;font-size:var(--fs-base);font-weight:700;padding:11px 10px;border-radius:10px;cursor:pointer;transition:.12s}
.st-autoloop:active{background:rgba(37,201,160,.28)}
/* 短縮ステータスのクリアボタン（ループボタン右側・小さめ） */
.st-statclear{flex:0 0 auto;background:rgba(255,255,255,.08);border:1px solid rgba(160,190,255,.35);
  color:#cfe0ff;font-size:15.5px;font-weight:700;padding:0 15px;border-radius:10px;cursor:pointer;transition:.12s}
.st-statclear:active{background:rgba(255,255,255,.16)}
.st-autoloop-note{display:none;font-size:var(--fs-md);color:#7fe0c4;font-weight:700;text-align:center;line-height:1.6;margin:8px 0 0}
.st-autoloop-note.on{display:block}
/* 装備・バフ選択モーダル */
.st-gmodal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:16px;
  background:rgba(4,8,22,.82);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.st-gmodal.on{display:flex}
.st-gmodal__box{width:100%;max-width:460px;max-height:82vh;background:linear-gradient(180deg,#0f1e44,#0a1738);
  border:1px solid rgba(150,185,255,.3);border-radius:16px;padding:14px;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.st-gmodal__box h3{margin:0 0 14px;font-size:18px;color:#bcd2ff;display:flex;align-items:center}
.st-gmodal__box h3 button{margin-left:auto;background:rgba(255,255,255,.1);border:0;color:#fff;width:34px;height:34px;border-radius:50%;font-size:20px;cursor:pointer}
/* クリアは左端に配置し、右上の×から離して誤タップを防ぐ */
.st-gmodal__bar{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.st-gmodal__sum{flex:1;font-size:var(--fs-md);color:#9fe6bc;font-weight:700;margin:0;text-align:right}
.st-gclear{flex:0 0 auto;background:rgba(255,255,255,.08);border:1px solid rgba(160,190,255,.35);color:#cfe0ff;font-size:var(--fs-md);font-weight:700;padding:8px 16px;border-radius:8px;cursor:pointer}
.st-gclear:active{background:rgba(255,255,255,.16)}
.st-glist{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:flex;flex-direction:column;gap:7px;padding:2px}
/* モーダル表示中は背景をスクロールさせない（iOS も含め確実にロックする body 固定方式） */
body.modal-open{position:fixed;left:0;right:0;width:100%;overflow:hidden}
.st-gitem.locked{opacity:.45}
.st-gitem .gi-pct,.st-gitem .gi-qty{flex:0 0 auto;height:32px;border-radius:7px;border:1px solid rgba(160,190,255,.35);background:rgba(6,12,30,.9);color:#7fd0ff;font-family:"Barlow",sans-serif;font-weight:800;font-size:var(--fs-base);padding:0 4px}
/* その他効果（手入力の軽減%）行 */
.st-gitem.other,.st-gitem.qty{cursor:default}
.st-gitem .gi-qty{min-width:52px;text-align:center}
.st-gitem.other .gi-icon{width:42px;height:42px;flex:0 0 auto;background:rgba(0,0,0,.25);border-radius:8px;display:grid;place-items:center;font-size:20px;color:#8aa0cc}
.st-gitem .gi-other{flex:0 0 auto;width:78px;height:32px;border-radius:7px;border:1px solid rgba(160,190,255,.35);background:rgba(6,12,30,.9);
  color:#7fd0ff;font-family:"Barlow",sans-serif;font-weight:800;font-size:var(--fs-base);padding:0 7px;text-align:right}
.st-gitem .gi-other::-webkit-outer-spin-button,.st-gitem .gi-other::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.st-gitem .gi-otheru{flex:0 0 auto;font-family:"Barlow",sans-serif;font-weight:800;font-size:var(--fs-base);color:#7fd0ff}
.st-gitem{display:flex;align-items:center;gap:11px;background:rgba(7,16,40,.55);border:1px solid rgba(120,160,230,.22);border-radius:11px;padding:9px 11px;cursor:pointer;transition:.12s}
.st-gitem.sel{border-color:#5fc06f;background:rgba(63,208,106,.14);box-shadow:0 0 0 1px rgba(63,208,106,.4)}
/* 一覧はスクロール枠（padding 2px）なので、フォーカス枠は内側に描いて欠けないようにする */
.st-glist .st-gitem:focus-visible{outline-offset:-2px}
/* 装備は透明地の切り抜き、料理・バフは四角い絵。角丸の地で切ると四角い絵の四隅が欠けるので、画像の形のまま出す */
.st-gitem img{width:42px;height:42px;object-fit:contain;flex:0 0 auto}
.st-gitem .gi-body{flex:1;min-width:0}
.st-gitem .gi-name{font-size:var(--fs-base);font-weight:700;color:#eaf1ff;line-height:1.25}
.st-gitem .gi-meta{font-size:var(--fs-md);color:#8aa0cc;margin-top:2px}
.st-gitem .gi-val{flex:0 0 auto;font-family:"Barlow",sans-serif;font-weight:800;font-size:18px;color:#7fd0ff;text-align:right;min-width:52px}
.st-gitem .gi-chk{flex:0 0 auto;width:22px;height:22px;border-radius:6px;border:2px solid #9fb6d6;display:grid;place-items:center;font-size:17px;color:#fff}
.st-gitem.sel .gi-chk{background:linear-gradient(180deg,#5fc06f,#2f9e4a);border-color:#2f9e4a}

/* 解説 */
.st-help details{background:rgba(7,16,40,.4);border:1px solid rgba(120,160,230,.18);border-radius:10px;padding:2px 12px;margin-top:8px}
.st-help summary{cursor:pointer;font-weight:700;font-size:16.5px;color:#bcd2ff;padding:9px 0;list-style:none}
.st-help summary::-webkit-details-marker{display:none}
.st-help summary::before{content:"▸ ";color:#7e97c6}
.st-help details[open] summary::before{content:"▾ "}
.st-help p{font-size:15.5px;color:#c7d5f2;line-height:1.75;margin:0 0 10px;}
.st-help code{background:rgba(255,255,255,.08);padding:1px 5px;border-radius:4px;font-family:"Barlow",monospace;color:#ffe7a0;font-size:15.5px}

/* ミュートトグル（右上） */
.st-mute{position:absolute;top:10px;right:12px;z-index:3;background:rgba(10,20,45,.55);border:1px solid rgba(160,190,255,.3);
  width:34px;height:34px;border-radius:50%;color:#cfe0ff;font-size:19px;cursor:pointer;display:grid;place-items:center}
.st-mute:active{transform:scale(.92)}

/* キノコ（トップへ）は common.css */

@media (max-width:480px){
  .st-row{gap:min(7vw,26px)}
  .st-skill{width:78px;height:78px}
  .st-metrics{gap:6px}
  .st-mcard{padding:8px 5px}
}
/* 狭い画面では左のラベル（205px）がバーの幅を食い、320px 幅でバーが 0px になるので、文字とラベル幅を詰める */
@media (max-width:400px){
  .st-gbar{font-size:var(--fs-md);gap:6px}
  .st-gbar .k{width:clamp(140px,52%,205px)}   /* 320px 幅でバー 66px・390px 幅で 106px */
  .st-gbar .v{width:40px;font-size:var(--fs-md)}
}
@media (prefers-reduced-motion:reduce){
  /* .footer-mushroom・星の瞬きの停止は common.css 側 */
  .st-skill.ready{animation:none}
  .st-slot.reserved .st-resv-tag{animation:none}
}
