/*
 * 画面の土台(`dom-ui` スキル)。描画方式は DOM+SVG(ユーザー決定・2026-10-18)。
 * 見た目はプロトタイプ(proto/map.css.part・proto/map3.css.part)を写した(ユーザー指示・2026-10-18「プロトタイプのUIや使用感を忠実に再現して」)。
 * 遠征・町・名品・出荷など、まだ入れていない仕組みの見た目は写していない。
 *
 * ブラウザ既定の UI を出さない。CrazyGames の審査で「ゲームの画風に合わせてほしい」と差し戻される典型
 * (crazygames-kit `crazygames-review/references/rejection-patterns.md` の B)。
 * test/domui.test.ts が、ここにある打ち消しを固定している。消すときはテストとスキルも直すこと
 */

/* 一画面のアプリ。生産ラインの図が画面を埋め(ヘッダは無い。右上に所持金と歯車)、選んだものの詳細の欄(デスクトップは右、スマホは下から出る) */
:root {
  /* 画面は暗い表示に固定する(ユーザー決定・2026-10-27。夜の谷の世界観・`worldview` スキル)。前はライトとダークを端末の設定で切り替えていた */
  --bg: #08100f; --grid: #1b2420; --panel: #13201c; --panel-2: #1c2c27; --ink: #e3eae4; --ink-2: #9aaaa0; --line: #2f4038;
  /* 色の意味はデザインルール(`design-rules` スキル)が正。意味の違う所に同じ色を使わない。test/designrules.test.ts が固定している */
  --accent: #e0a23a; --accent-ink: #1d1505; --run: #5cc47e; --wait: #e6cf3c; --full: #ef7460; --full-ink: #ffffff; --idle: #85928b; --boost: #c98ae6; --ghost: #5d6b64;
  /* 選択中の色。差し色(タップできる・開拓できる)・生産・待ち・満杯・おまけのどれとも重ならない青(ユーザー指示・2026-10-19) */
  --select: #6ea3ff;
  --shadow: rgba(0, 0, 0, .45);
  /* 浮かぶ札の上の縁に乗る月明かり(意味を持たない地の光) */
  --rim: rgba(220, 240, 230, .08);
  /* 特別注文の札を斜めに走る光(意味を持たない地の光。design-rules「特別注文の札」) */
  --shine: rgba(255, 255, 255, .1);
  /* チュートリアルの暗幕(指す所のほかを暗くする。意味を持たない地の影。design-rules「序盤のチュートリアル」) */
  --scrim: rgba(0, 0, 0, .6);
  /* 図の後ろの夜の谷の舞台(ui/night-sky.ts)は絵(空と地の2枚)。蛍の色は「動いている」の緑より淡く黄に寄せる(取り違えない) */
  --firefly: rgba(214, 255, 170, .85);
  /* ブロックの見出しの帯の上から差す淡い光(見出しのグラデーション。index.html の #map の defs) */
  --head-hi: rgba(200, 230, 215, .13); --head-lo: rgba(200, 230, 215, .02);
  /* 灯りが伝う光の芯(ui/glow.ts。まわりの光は「動いている」の緑) */
  --run-core: #dcffe4;
  color-scheme: dark;
  /* 書体は同梱した面だけで並べる(ユーザー決定・2026-10-20: 本文のラテン用は Inter・日本語用は Zen Kaku Gothic New・数字は JetBrains Mono・
     見出しも本文の書体の太字。2026-10-28 に Dela Gothic One をやめた(ユーザー指示「つぶれたようなフォントが嫌」)。
     図の作業場・採取地の名前のしっぽり明朝 B1 も 2026-10-30 にやめた(ユーザー指示「全ての言語でフォントを1種類にして」))。面は fonts/fonts.css(scripts/build-fonts.mjs が作る)。端末の書体を後ろに並べない(`i18n` スキル「フォント」)。
     日本語用の面は下の :lang(ja) のときだけ並びに入るので、ほかの言語の人は読まない。test/fonts.test.ts が固定している */
  --font-body: "CF Inter", "CF Zen Kaku Gothic New Extra";
  --font-num: "CF JetBrains Mono", var(--font-body);
}
:root:lang(ja) {
  --font-body: "CF Inter", "CF Zen Kaku Gothic New Extra", "CF Zen Kaku Gothic New JA";
  --font-num: "CF JetBrains Mono", var(--font-body);
}

/* ページは画面にぴったり固定し、スクロールさせない(図はパンとズームで動かす) */
html,
body {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
  overflow: hidden;
}

*,
*::before,
*::after {
  /* ダブルタップとピンチの拡大を止める(スクロールは残す)。touch-action は継承されないので全要素に掛ける(merge-craft で踏んだ) */
  touch-action: pan-x pan-y;
}
*,
*::before,
*::after {
  /* 文字の選択・iOS の長押しのメニューを出さない。それでも始まる選択は main.ts の suppressSelection が止める */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 14px; line-height: 1.45;
  /* タップの青い四角を出さない */
  -webkit-tap-highlight-color: transparent;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); }
img { -webkit-user-drag: none; user-select: none; }
/* 既定のフォーカス枠は出さない(キーボードで選んだときだけ、画風に合わせた枠を出す) */
:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* スクロールバーを出さない(webkit 系)。標準記法は webkit 系が無いブラウザだけへ隔離する(併記すると Chromium が webkit 側を無視する) */
::-webkit-scrollbar { width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: none; }
}

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 3px 10px; min-height: 30px; }
button:hover:not(:disabled) { border-color: var(--ink-2); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
button[hidden] { display: none; }
/* ヘッダは無くした(ユーザー指示・2026-10-27「ヘッダーをなくして」)。画面は図と詳細の欄だけ */
.app { position: fixed; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr); }

.stat { display: flex; align-items: baseline; gap: 5px; }
.stat .k { font-size: 11px; letter-spacing: .08em; color: var(--ink-2); }
.stat .v { font-size: 17px; font-weight: 700; display: inline-block; transform-origin: left center; }
/* 所持金は金貨の絵 + 数(「所持金」の文字と G は出さない。ユーザー決定・2026-10-20)。金貨は届いたときに弾む(ui/coin.ts) */
.stat.money { align-items: center; gap: 4px; }
/* 経過とプレイ(設定の画面の欄。2026-10-27 にヘッダから移した): ラベルと数を2段に並べ、数をそろえる */
.clocks { display: grid; grid-template-columns: max-content max-content; column-gap: 14px; row-gap: 4px; align-items: baseline; }
.clocks .k { font-size: 12px; color: var(--ink-2); }
.clocks .num { font-size: 14px; }
.hcoin { width: 20px; height: 20px; }
/* 図の右上の所持金と歯車(ヘッダを無くした。ユーザー指示・2026-10-27。前は横向きのスマホだけ、ヘッダを畳んだ間にここへ所持金を浮かべていた)。
   面は＋/−/全体と同じ地・線・影で、色を足さない。広い画面では詳細のカードをこの下に出し、所持金と歯車は動かさない
   (ユーザー指示・2026-10-30「毎回コイン・設定が動くのが煩わしい」。前はカードの左へよけていた)。横向きのスマホだけ、欄の左へよける(下の @media) */
.hudfloat { display: flex; position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); z-index: 8; align-items: center; gap: 6px; }
.hudfloat .stat.money, .hudfloat .hudbtn { height: 34px; box-sizing: border-box; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 8px var(--shadow); }
.hudfloat .stat.money { padding: 0 10px; }
.hudfloat .stat .v { font-size: 15px; }
.hudfloat .hcoin { width: 18px; height: 18px; }
.hudfloat .hudbtn { width: 34px; min-height: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hudfloat { transition: right .22s cubic-bezier(.3, .7, .3, 1); }
}
/* デバッグのビルドだけの性能の表示(ui/perf-meter.ts。図の右上の所持金の左)。開発の道具なので色の意味は持たせない(地の文字の色) */
.perfm { font-size: 11px; color: var(--ink-2); min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }
.perfm[hidden] { display: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg[hidden] { display: none; }
.seg button { border: 0; border-radius: 0; min-height: 28px; padding: 2px 8px; }
/* 押された形: --ink はほぼ白で図の上に浮くので、--ink を 18% 混ぜた面で塗り、文字を --ink の太字にする(ユーザー決定・2026-10-21・見本で案2。design-rules「押された形」) */
.seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 18%, var(--panel)); color: var(--ink); font-weight: 700; }
.confirm { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; }
/* 設定の画面を開く歯車(図の右上の所持金の右。絵は ui/settings-view.ts の gearPath を線で描く) */
.hudbtn { display: inline-grid; place-items: center; min-width: 32px; min-height: 30px; padding: 0; color: var(--ink-2); }
.hudbtn:hover:not(:disabled) { color: var(--ink); }
.gear { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* 図と詳細の欄 */
/* 図が全幅。選んだものの詳細(.insp)は、図の右に浮かぶカード(スマホは下から出る欄)にして図に重ねる(ユーザー決定・2026-10-21・見本の案A) */
.main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
/* 図の後ろは夜の谷の舞台(方眼はやめた。ユーザー決定・2026-10-27・ui/night-sky.ts)。2026-10-30 から、空・天の川・月・山・霧・森はカバー画像と同じ画風の絵2枚、蛍は DOM。
   空の絵は上の端に、地の絵(山より上は透過)は下の端に合わせて、それぞれ画面を覆う(横長の画面でも月が切れず、山は下に付いたまま) */
.mapwrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; background-color: var(--bg); }
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.skyimg { position: absolute; inset: 0; background-repeat: no-repeat; background-size: cover; }
.skyimg-top { background-position: center top; }
.skyimg-bottom { background-position: center bottom; }
.fireflies { position: absolute; inset: 0; }
/* 蛍: 淡い黄緑の小さな光。transform と opacity だけで漂い、明滅する(合成の段だけで動く。`perf` スキル) */
.ffly { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, var(--firefly), transparent); }
@keyframes ffly { 0% { transform: translate(0, 0); opacity: 0; } 30% { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * -.6)); opacity: .9; } 55% { transform: translate(calc(var(--dx) * .7), calc(var(--dy) * .2)); opacity: .15; } 80% { transform: translate(var(--dx), calc(var(--dy) * -.3)); opacity: .7; } 100% { transform: translate(calc(var(--dx) * 1.2), var(--dy)); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .ffly { animation: ffly var(--sec) ease-in-out var(--delay) infinite; } }
.mapwrap.drag { cursor: grabbing; }
.mapwrap.dragf { cursor: grabbing; }
/* 図は .mapwrap いっぱいに置く。流れの中で % の高さにしない(% の高さの子は、親のレイアウトのたびに「寸法が変わった」扱いになり、
   図の上に浮かぶ札(手伝い・注文・相場・線の切り替え・トースト)の文字が変わるたびに、図の SVG 全体(全部の文字)を組み直していた)。
   absolute なら、親の寸法が変わらない限り組み直さない。SVG は置き換え要素なので inset だけでは広がらず、width/height も要る。`perf` スキル・2026-10-23 */
#map { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
/* 図の右下(＋/−/全体の左隣。.mapbr)の線の切り替え(ui/line-filter.ts)。見出しは線の絵、ボタンには線の見本(図の線と同じ class)と本数。
   2026-10-21 に左下から移した(ユーザー決定・見本の F1)。狭い画面では縦に並べ、＋/−/全体の上に積む */
.lfilter { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; box-shadow: 0 2px 8px var(--shadow); touch-action: none; }
.lficon { width: 22px; height: 16px; flex: none; }
.lficon rect { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.lficon path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
.lfilter .seg button { display: inline-flex; align-items: center; gap: 5px; }
.lfsw { width: 16px; flex: none; overflow: visible; }
.lfn { font-size: 11px; opacity: .8; }
/* 図の右下の横の並び: 線の切り替えと、その右に＋/−/全体(別の面のまま並べる。横向きのスマホも横1列。ユーザー決定・2026-10-23)。
   横に並ぶときは2枚の面の縦幅をそろえる(ユーザー指示・2026-10-22。中身の高さが 2px 違っていた) */
.mapbr { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 6; display: flex; align-items: stretch; gap: 8px; }
/* 図の右下: ＋/−/全体を1枚の面にまとめる(線の切り替えと同じ面)。操作のヒントを出す「?」は 2026-10-28 に無くした(ユーザー指示。チュートリアルの文言の校閲) */
.mapctl { position: relative; display: flex; align-items: center; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px; box-shadow: 0 2px 8px var(--shadow); touch-action: none; }
.mapctl button { min-width: 30px; min-height: 28px; padding: 2px 8px; background: var(--panel); }
/* 図の左下(手伝いの札)。右下の線の切り替えと＋/−/全体 の分をあける */
.mapfoot { position: absolute; left: max(10px, env(safe-area-inset-left, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 520px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; z-index: 6; pointer-events: none; }
.mapfoot > * { pointer-events: auto; }
/* 右下を畳んでいる間は、畳んだボタンの分(100px)だけあける(ユーザー指摘・2026-10-25「右側のシステムパネル分の余白」。いつも 520px あけていて、
   狭い画面では手伝いの札が折り返して縦に伸びていた) */
.mapwrap:has(> .mapbr.folded) .mapfoot { max-width: calc(100% - 100px); }
/* 狭い画面(横向きのスマホ・ポータルの小さい枠)では、線の切り替えのボタンを線の見本と本数だけにし(名前は読み上げ用に残す)、右下の並びを詰める。
   左下の札があける幅もそれに合わせる。CrazyGames の審査(2026-11-11)「On iPhone 15 ... There are overlapping elements」:
   iPhone 15 の横向きの Safari で CrazyGames の枠は約 790×284 になり、右下の並び(英語で約 570px)が左下の手伝いの札に重なった */
@media (max-width: 1000px) {
  .lfilter .lfname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mapfoot { max-width: calc(100% - 440px); }
}
/* 図の上の札を畳んだ形(ui/panel-fold.ts。ユーザー決定・2026-10-25・見本で決めた)。面は右上の所持金のピル・＋/−/全体と同じ地・線・影・高さで、色は足さない。
   色の意味は大きい札と同じ(待機している手伝いがいれば差し色の縁 = 押せる・特別注文の品は 差し色の縁 = 納められる/緑 = 納めきった) */
.fmini { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-height: 0; box-sizing: border-box; padding: 0 4px 0 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 8px var(--shadow); color: var(--ink); cursor: pointer; position: relative; touch-action: none; }
.fmini[hidden], .lfilter[hidden], .mapctl[hidden] { display: none; }
.fchev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fchev.up { transform: rotate(180deg); }
.fmini:hover .fchev, .ftog:hover .fchev { stroke: var(--ink); }
/* 開いた札の見出しの右の、畳むボタン(▴/▾)。地の色のまま(押せる形は枠の無い小さなボタン) */
.ftog { display: inline-grid; place-items: center; width: 26px; height: 26px; min-width: 0; min-height: 0; padding: 0; margin-left: auto; border: 0; background: transparent; border-radius: 6px; flex: none; }
.ftog:hover:not(:disabled) { background: var(--panel-2); }
.fmini > .ftog { margin-left: 0; width: 22px; }
.mapctl > .ftog { margin-left: 0; width: 24px; }
/* 右下の畳んだ形: 線の絵と虫眼鏡 */
.bmini { padding: 0 6px 0 9px; }
.fzoom { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
/* 選んだものの詳細: 図の右上の所持金と歯車(高さ 34px)の下に浮かぶカード。選んでいないときは出さない(.empty)。
   右の端は所持金と歯車にそろえる(ユーザー指示・2026-10-30。前は図の右上の角に出し、所持金と歯車がカードの左へよけていた) */
.insp { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px) + 34px + 8px); right: max(10px, env(safe-area-inset-right, 0px)); width: 340px; max-height: calc(100% - 10px - env(safe-area-inset-top, 0px) - 34px - 8px - 12px); z-index: 8; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px var(--shadow); overflow-y: auto; padding: 14px 16px 16px; display: grid; align-content: start; gap: 12px; min-width: 0; --card-pt: 14px; }
.insp.empty { display: none; }
/* カードが出ても、上の真ん中の高騰中の知らせは動かさない(前はカードの左の残りの真ん中へよけていた。ユーザー指示・2026-10-22「画面中央上部に固定」) */
/* 横向きのスマホ(狭い・低い画面): 詳細の欄は右端に縦いっぱい(幅 320px)、開いている間は右下の操作を隠す
   (ユーザー決定・2026-10-23・見本の案A。前は幅 860px 以下で下から出る欄で、高さ 390px の画面の半分を覆っていた。縦向きは担保しない) */
@media (max-width: 860px), (max-height: 500px) {
  .main:has(> .insp:not(.empty)) .hudfloat { right: 330px; }
  .insp { top: 0; right: 0; bottom: 0; width: 320px; max-height: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: -6px 0 18px var(--shadow); padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); gap: 10px; --card-pt: 12px; }
  .main:has(> .insp:not(.empty)) .mapbr { visibility: hidden; }
}

/* 図(SVG) */
#map text { fill: var(--ink); font-family: var(--font-body); }
/* 上の #map text の方が .num より強いので、図の数字はここで数字の書体に戻す(プロトタイプも同じ理由で本文の書体になっていた)。test/fonts.test.ts */
#map text.num { font-family: var(--font-num); }
.stime { font-size: 11px; fill: var(--ink-2) !important; }
.edge { fill: none; stroke: var(--ink-2); stroke-width: 1.6; opacity: .9; }
.edge.flow { stroke: var(--run); stroke-width: 2.5; stroke-dasharray: 8 6; opacity: .95; }
/* 動いている自動の線は淡く光る(見本の形。2026-10-27)。満杯へ向かう投げ売りの赤い線は光らせない。
   光は線の下に敷いた太い淡い線(.eglow。map-view.ts の edgeGlowClass)で描く。線に drop-shadow を掛けると、流れる模様が動くたびにぼかしを計算し直し、
   終盤で 18fps まで落ちた(下に敷く線にして 33fps 前後。`perf` スキル・2026-10-27) */
.eglow { display: none; fill: none; stroke: color-mix(in srgb, var(--run) 20%, transparent); stroke-width: 8; stroke-linecap: round; pointer-events: none; }
.eglow.on { display: inline; }
.edge.starve { stroke: var(--wait); stroke-width: 3; stroke-dasharray: 2 5; opacity: 1; }
.edge.extra { stroke-dasharray: 2 4; }
/* 自動で回っている線は太い実線、手動・一時停止中の線は細い点線(ユーザー指示・2026-10-19)。模様が流れるのは自動の線だけ */
.edge.auto { stroke-width: 2.4; }
.edge.manual { stroke-width: 1.3; stroke-dasharray: 1.5 4.5; stroke-linecap: round; opacity: .7; }
.edge.flow.manual { stroke: var(--run); stroke-width: 1.8; stroke-dasharray: 1.5 4.5; opacity: .95; }
/* 材料待ち(自動の材料待ち・手動で材料が足りずタップできない)は、足りない材料からの線だけ待ちの色の太い点線(.starve)。
   足りている材料の線と作った品の線は地の色のまま(ユーザー決定・2026-10-28。それまではスロットの線を全部黄にしていた) */
.edge.manual.starve { stroke-width: 3; stroke-dasharray: 2 5; opacity: 1; }
/* 満杯の在庫(投げ売り)へ向かう線は赤(損をしている。ユーザー決定・2026-10-22・見本の案D)。太さと模様は自動・手動・動いているかのまま(太くしない) */
/* 手動で動いている線(緑)より強く書く(投げ売りの在庫へ向かう線は、スロットの状態によらず赤) */
.edge.dump, .edge.flow.manual.dump { stroke: var(--full); opacity: 1; }
.edge.preview { stroke: var(--ghost); stroke-dasharray: 4 5; opacity: .9; stroke-width: 1.6; }
.edge.hl { stroke: var(--select) !important; opacity: 1 !important; stroke-width: 3 !important; }
/* 線の絞り込み(ui/line-filter.ts。ユーザー決定・2026-10-21・見本で決定)。対象外の線は 12% まで薄くし、つながらないスロットと在庫も薄くする。
   色は足さず不透明度だけを下げる(design-rules)。押してほしいスロット・手伝いのいるスロット・満杯の在庫・相場の品の在庫には付けない(line-filter.ts の slotDimmed・tankDimmed) */
.edge.dim { opacity: .12 !important; }
.slotn.dim, .tank.dim { opacity: .3; }
@media (prefers-reduced-motion: no-preference) { .edge, .slotn, .tank { transition: opacity .2s; } }
/* 線の上を渡っていく丸(作った品は生産の色、使う材料は差し色)。待機中は見せない。動きを減らす設定では出さない(ui/flow.ts)。
   【2026-10-20】大きな達成の演出と同じ質に見直した(ユーザー指示「素材生成時・消費時のエフェクトが少しチープに見える」・見本で決定):
   3つの残像が尾を引く彗星の形(.ftrail)で、真ん中で少しふくらむ。出口と入口で小さな光の輪がはじける(.fburst)。
   着いた在庫・スロットは、札全体を塗る光をやめて、ふちだけ短く光らせる(.recv)。数は弾む(増えた=緑・使った=差し色)。
   在庫の塗りは跳ばずに伸び縮みする(.tfill の transform) */
.fdot { opacity: 0; pointer-events: none; }
.fdot.prod { fill: var(--run); stroke: var(--panel); stroke-width: 1.2; filter: drop-shadow(0 0 4px var(--run)); }
.fdot.cons { fill: var(--accent); stroke: var(--panel); stroke-width: 1.2; filter: drop-shadow(0 0 4px var(--accent)); }
.fdot.prod.extra { fill: var(--boost); filter: drop-shadow(0 0 4px var(--boost)); }
.ftrail { opacity: 0; pointer-events: none; }
.ftrail.prod { fill: var(--run); }
.ftrail.cons { fill: var(--accent); }
.ftrail.prod.extra { fill: var(--boost); }
.fburst { fill: none; stroke-width: 1.6; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; vector-effect: non-scaling-stroke; }
.fburst.prod { stroke: var(--run); }
.fburst.cons { stroke: var(--accent); }
.fburst.prod.extra { stroke: var(--boost); }
/* 丸が着いた在庫・スロットを光らせる。ふちを色で光らせ、すぐ引く(0.9 秒)。
   塗りを color-mix で光らせて終わりの値を書かないと、Chromium で一瞬ほぼ黒になる(2026-10-20 に見つけた。終わりの値を必ず書く) */
@keyframes recvflash-run {
  0%, 10% { stroke: var(--run); stroke-width: 2; filter: drop-shadow(0 0 5px var(--run)); }
  100% { filter: drop-shadow(0 0 0 transparent); }
}
@keyframes recvflash-accent {
  0%, 10% { stroke: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }
  100% { filter: drop-shadow(0 0 0 transparent); }
}
.tank.recv .tbox { animation: recvflash-run .9s cubic-bezier(.2, .6, .35, 1); }
/* 自動化して最初に作った1個(丸を大きく・着いた在庫の光を強く長く。map-view.ts の FLOW_PULSE_BIG_MS と長さをそろえる) */
.fdot.prod.big { filter: drop-shadow(0 0 7px var(--run)); stroke-width: 1.6; }
@keyframes recvflash-big {
  0%, 15% { stroke: var(--run); stroke-width: 2.5; filter: drop-shadow(0 0 11px var(--run)); }
  100% { filter: drop-shadow(0 0 0 transparent); }
}
.tank.recv.big .tbox { animation: recvflash-big 1.6s cubic-bezier(.2, .6, .35, 1); }
.slotn.recv .sbox { animation: recvflash-accent .9s cubic-bezier(.2, .6, .35, 1); }
/* サイクルを終えたスロットのバーが一瞬光る(丸を送り出す合図) */
@media (prefers-reduced-motion: no-preference) { .sb.done { filter: drop-shadow(0 0 4px var(--run)) brightness(1.25); } }
/* 採取先の円の外の輪も、サイクルを終えたらバーと同じ光(2026-10-23) */
@media (prefers-reduced-motion: no-preference) { .sprog.done { filter: drop-shadow(0 0 4px var(--run)) brightness(1.25); } }
/* 数が弾む(増えた=作った品の色・使った=使う材料の色)。満杯の赤は後ろに書いて勝たせる */
.tank .tq { transform-box: fill-box; transform-origin: left center; }
.tank .tq.gain { fill: var(--run) !important; font-weight: 700; }
.tank .tq.use { fill: var(--accent) !important; font-weight: 700; }
/* 在庫の塗りは幅いっぱいの四角を横に縮めて出し、変わるときは滑らかに伸び縮みさせる */
.tank .tfill { transform-box: fill-box; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) { .tank .tfill { transition: transform .26s cubic-bezier(.3, .7, .3, 1); } }
/* 図を作り直した直後は伸び縮みさせない(map-view.ts の rebuild が1フレームだけ付ける) */
#vp.fresh .tank .tfill, #vp.fresh .edge, #vp.fresh .slotn, #vp.fresh .tank { transition: none; }
@media (prefers-reduced-motion: reduce) { #fx, #celeb { display: none; } .tank.recv .tbox, .slotn.recv .sbox { animation: none; } }
@media (prefers-reduced-motion: no-preference) {
  .edge.flow.auto { animation: dash .8s linear infinite; }
}
@keyframes dash { to { stroke-dashoffset: -14; } }
/* 画面の外のブロック・線(map-view.ts の cullOffscreen が data-off を付ける)は描かず、無限の動きも止める。見えている所の見た目は変わらない。
   図の SVG の中の動きは1つでも動いていると毎コマ描き直しが走り、種類ごとに足し合わせで重くなるため(`perf` スキル・2026-10-28) */
.frame[data-off], .edge[data-off], .eglow[data-off] { visibility: hidden; }
.edge[data-off], .frame[data-off] :is(.sbox, .sglow, .wrot, .sring, .fring, .tring, .wpop, .haura, .hmote, .marrows path) { animation-play-state: paused; }
/* 投げ売りの丸が在庫の入口で砕けた粒と、その場に浮かぶ金貨と額(ui/map-view.ts の shatter。ユーザー決定・2026-10-22・見本の L1)。
   どちらも地の色(損をしたことは在庫と線の赤で出している。売ったときに浮かぶ額と同じ形)。動きを減らす設定では #fx ごと出さない */
.fshard { fill: var(--ink-2); pointer-events: none; }
.fgold { pointer-events: none; }
#map .fgold text { fill: var(--ink); font-size: 12px; font-weight: 700; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
/* タップを促す合図は、どこでも「枠から外へ広がって消える輪」(1.6s)にそろえる(ユーザー決定・2026-10-22。見本で案A に決めた。
   それまでは満杯の在庫・注文がそろう品の札・手伝いの置き先だけ、枠の周りの光(drop-shadow・1.3s)だった)。色は状態の色。
   押してほしいスロット(手動で作れる・自動化できる)は、輪と弾む「!」で促す
   (ユーザー決定・2026-10-20 案B。図が縮んでいても動きで気付けるように。map-view.ts の slotCallout)。
   建てられる建設の行・開拓できるブロックも同じ輪と弾みで促す。こちらは点線(まだ無いもの)のまま、輪も点線(ユーザー決定・2026-10-20 案A)。
   満杯の在庫は赤の輪(.tring)。手伝いの駒を置けるスロットは差し色の輪(.slotn.hcan)。
   輪の伸び率 --sx・--sy は、枠の大きさによらず外へ同じ幅だけ広がるよう map-view.ts の calloutRingScale が入れる */
.slotn .sring, .frame .fring { display: none; fill: none; stroke: var(--accent); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.tank .tring { display: none; fill: none; stroke: var(--full); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.buildn .sring { stroke-dasharray: 5 4; }
.frame .fring { stroke-dasharray: 6 4; }
@keyframes callout-ring {
  0% { transform: scale(1, 1); opacity: .9; }
  70%, 100% { transform: scale(var(--sx), var(--sy)); opacity: 0; }
}
@keyframes callout-bob {
  0%, 60%, 100% { transform: scale(1); }
  15% { transform: scale(1.45); }
  30% { transform: scale(.95); }
  45% { transform: scale(1.1); }
}
/* 「開拓する」ボタンは大きいので弾みを控えめに */
@keyframes callout-bob-soft {
  0%, 60%, 100% { transform: scale(1); }
  15% { transform: scale(1.12); }
  30% { transform: scale(.98); }
  45% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  .slotn.callout .sring { display: inline; animation: callout-ring 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
  .slotn.callout .walert .wpop { animation: callout-bob 1.6s ease-in-out infinite; }
  .buildn.can .sring, .frame.ghost.ready .fring { display: inline; animation: callout-ring 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
  .buildn.can .wplus .wpop { animation: callout-bob 1.6s ease-in-out infinite; }
  .frame.ghost.ready .gopen .wpop { animation: callout-bob-soft 1.6s ease-in-out infinite; }
  .tank.full .tring, .slotn.hcan .sring { display: inline; animation: callout-ring 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
  .expchip.go .cring { display: inline; animation: callout-ring 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
}

/* 大きな達成の演出(建設・開拓・自動化。ui/celebrate.ts・`design-rules` スキル「形と動きの意味」。ユーザー決定・2026-10-20)。
   色は、その後になる状態の色だけ(--fx に意味の色を入れる)。描き込み(.fxdraw・.fxtrace・マスク)= 無かったものが生まれた・格上げされた、
   波紋(.fxripple)= 完了の合図、先頭の光(.fxlead)= 描き込みを導く。動きを減らす設定では main.ts が演出を出さない */
.fx-accent { --fx: var(--accent); }
.fx-run { --fx: var(--run); }
.fx-wait { --fx: var(--wait); }
.fx-plain { --fx: var(--ink-2); }
.fx-boost { --fx: var(--boost); }
.fxdraw { fill: none; stroke: var(--fx); stroke-linecap: round; filter: drop-shadow(0 0 3px var(--fx)); pointer-events: none; }
.fxtrace { fill: none; stroke: var(--fx); stroke-width: 2; pointer-events: none; }
.fxlead { fill: var(--fx); stroke: var(--panel); stroke-width: 1.4; filter: drop-shadow(0 0 6px var(--fx)); pointer-events: none; }
.fxripple { opacity: 0; fill: none; stroke: var(--fx); transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 4px var(--fx)); pointer-events: none; }
.fxsheen stop { stop-color: var(--fx); }
.fxband { pointer-events: none; }
/* 線の描き込みのマスク(白い所だけ見せる。色の意味は持たない) */
.fxmask { fill: none; stroke: white; stroke-width: 24; }
/* 何度も押す強化の演出(Lv+1・節目まで・採取先の強化・上限アップ。ui/bump.ts・`design-rules` スキル「何度も押す強化の演出」。ユーザー決定・2026-10-23)。
   スロットの上の札(縮んだ秒数・+10%)は --fx の面に地の色の字。上限アップで在庫の札の上に浮かぶ増えた数は --fx の字(地の色の縁取り) */
.fx-idle { --fx: var(--idle); }
.slotn .slv { transform-box: fill-box; transform-origin: right center; }
.fxtag { pointer-events: none; }
.fxtag rect { fill: var(--fx); }
#map .fxtag text { fill: var(--panel); font-family: var(--font-num); font-size: 11px; font-weight: 700; }
#map .fxtag.big text { font-size: 13px; }
.fxtagin { transform-box: fill-box; transform-origin: center; }
#map text.fxfloat { fill: var(--fx); font-family: var(--font-num); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
/* 開拓の前の点線の枠の写し(消していく)。塗りは本物の枠にまかせる */
.frame .fbox.fxghost { fill: none; pointer-events: none; }
/* 現れる・弾む動きを付ける所は、自分の形の真ん中を中心にする */
.wpop { transform-box: fill-box; transform-origin: center; }

/* 工程の枠(スロットの行と在庫のタンクを持つ) */
/* ブロックの面は夜の谷に浮かぶ深い緑(背景が少し透ける)。見出しの帯は上から淡く光る(ユーザー決定・2026-10-27・見本で決めた) */
.frame .fbox { fill: color-mix(in srgb, var(--panel) 86%, transparent); stroke: var(--line); stroke-width: 1.5; }
/* ブロックは影で夜の谷から浮く(見本の形。2026-10-27)。点線の枠(まだ無いもの)には付けない */
.frame:not(.ghost) .fbox, .frame .fcard { filter: drop-shadow(0 12px 16px var(--shadow)); }
.frame .fheadbg { fill: url(#fhead-glow); }
.fhead-hi { stop-color: var(--head-hi); }
.fhead-lo { stop-color: var(--head-lo); }
.frame .fhead { cursor: move; }
.frame .fhead:hover .fheadbg { fill: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); }
.frame .fhit { fill: transparent; cursor: pointer; }
/* 採取地(丸い採取口・2026-10-23): ブロック全体に縁の無い当たりの四角を置き、どこを掴んでも動かせる。
   開いた採取地は、円の中心から右へ在庫の列を囲む枠(.fcard)を描き、円が枠の左の辺に乗る。円のまわりは地の色でくり抜く(.fnotch)。
   ブロックの何も無い所を押すのは採取先の円を押すのと同じで、ブロックは選ばれない(選ぶのは採取先の円。ユーザー指示・2026-10-23)。
   まだ開いていない採取地は枠を描かない(案C) */
.frame.src .fbox, .frame.src.sel .fbox { fill: transparent; stroke: transparent; cursor: move; }
.frame .fcard { fill: color-mix(in srgb, var(--panel) 86%, transparent); stroke: var(--line); stroke-width: 1.5; pointer-events: none; }
.frame .fnotch { fill: var(--bg); pointer-events: none; }
/* 名前と Lv は枠の左の線をまたぐので、地の色で縁取る */
.slotn.src .sname { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
/* 残り時間の札(円の外の輪の下端に重ねる)。縁はスロットの状態の色: 動いている=緑・押せる=差し色・材料待ち=黄 */
.spill rect { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.slotn.run .spill rect { stroke: var(--run); }
.slotn.in .spill rect { stroke: var(--wait); }
.slotn.startable .spill rect { stroke: var(--accent); }
/* まだ開いていない採取地の資金のメーターは、枠の面が無いので、下地を在庫の札と同じ面にし、文字を地の色で縁取る(背景に溶けないように・2026-10-23) */
.frame.ghost.src .sb-bg { fill: var(--panel-2); stroke: var(--line); stroke-width: 1; }
.frame.ghost.src .bfunds { paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.frame.src .fhit { cursor: move; }
.frame.src .title { font-size: 14px; }
.frame.ghost.src .gicon { opacity: .45; }
.frame.sel .fbox { stroke: var(--select); stroke-width: 2.5; }
/* 開いていない枠も、見出しと中身の塗りは開いた枠と同じ(見出しの背景が見えるように。ユーザー指示・2026-10-19)。点線で開いていないことを示す */
.frame.ghost .fbox { stroke: var(--ghost); stroke-dasharray: 6 4; }
/* 開拓できるブロックは、点線のまま面を差し色で塗る。面が広いので 16%(スロットは 30%。ユーザー決定・2026-10-20 案A) */
.frame.ghost.ready .fbox { stroke: var(--accent); stroke-width: 2.5; fill: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.frame.ghost:hover .fbox { stroke: var(--ink-2); }
.frame .title { font-size: 14.5px; font-weight: 700; letter-spacing: .04em; }
.frame .meta { font-size: 11px; fill: var(--ink-2) !important; }
/* 開いていない枠の見出しの「開拓する」ボタン。開拓できるときだけ見せる(ユーザー指示・2026-10-19) */
.gopen { cursor: pointer; }
.gopen rect { fill: var(--accent); stroke: var(--accent); }
.gopen text { font-size: 11px; font-weight: 700; fill: var(--accent-ink) !important; pointer-events: none; }
.gopen:hover rect { filter: brightness(1.08); }
.gopen.off { display: none; }
/* エリア拡張(ユーザー決定・2026-10-23・見本で決めた形。`design-rules` スキル「エリア拡張」)。見出しの帯と角の丸い四角の枠は描かない(いつものブロックと見分ける)。
   左に求める品の丸い札(輪 = 納めた割合。押せる = 差し色の縁・押せばそろう = 広がる輪・そろった = 緑の地とチェック。特別注文の品の札と同じ決まり)、
   右にエリア拡張の絵(台なし)・右下に鍵・下に名前。色は灰(まだ)と緑(終えた・そろった)と、押せる所の差し色だけ */
.expgroup { cursor: move; }
.expgroup .exphit { fill: transparent; }
.expchip { cursor: pointer; }
.expchip .cbox { fill: var(--panel-2); stroke: transparent; stroke-width: 1.6; }
.expchip.can .cbox, .expchip.go .cbox { stroke: var(--accent); }
.expchip.ok .cbox { stroke: var(--run); fill: color-mix(in srgb, var(--run) 12%, var(--panel)); }
.expchip .carc { fill: none; stroke: var(--line); stroke-width: 3.5; pointer-events: none; }
.expchip .carc.have { stroke: var(--accent); stroke-opacity: .45; }
.expchip .carc.done { stroke: var(--ink-2); }
.expchip.ok .carc.done { stroke: var(--run); }
#map .expchip .cq { font-size: 11.5px; fill: var(--ink-2); }
#map .expchip.can .cq, #map .expchip.go .cq { fill: var(--ink); font-weight: 700; }
#map .expchip.ok .cq { fill: var(--run); font-weight: 700; }
.expchip .cq { transform-box: fill-box; transform-origin: center; }
.expchip .cchk { display: none; }
.expchip.ok .cchk { display: inline; }
.expchip .cchk circle { fill: var(--run); }
.expchip .cchk path { fill: none; stroke: var(--panel); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.expchip .cring { display: none; fill: none; stroke: var(--accent); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; pointer-events: none; --sx: 1.4; --sy: 1.4; }
.expchip .cicon { pointer-events: none; }
.expchip.recv .cbox { animation: recvflash-accent .9s cubic-bezier(.2, .6, .35, 1); }
.explink { fill: none; stroke: var(--line); stroke-width: 2; }
/* 絵は、終えると開ける場所の絵を暗く沈める(開いていない。終えると本来の色に戻る。ユーザー決定・2026-10-28) */
.expgroup .expdim { filter: grayscale(.55) brightness(.5); }
.expgroup .explock .lkdisc { fill: var(--panel); stroke: var(--ink-2); stroke-width: 1.6; }
.expgroup .explock .lkbody { fill: var(--ink-2); }
.expgroup .explock .lkshackle { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
#map .expname { font-size: 12.5px; font-weight: 700; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.expgroup .expring { opacity: 0; fill: none; stroke: var(--run); stroke-width: 3; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 4px var(--run)); pointer-events: none; }
/* エリア拡張へ納める線: 押せる(在庫がある・まだ足りない)なら差し色の点線、そろったら緑の実線。エリア拡張から先の枠への線は予告の点線(.edge.preview) */
.edge.expedge { stroke: var(--ghost); stroke-dasharray: 4 5; stroke-width: 1.6; }
.edge.expedge.can { stroke: var(--accent); stroke-width: 2.2; opacity: 1; }
.edge.expedge.ok { stroke: var(--run); stroke-dasharray: none; stroke-width: 2; opacity: 1; }
/* 終えたときの演出: 緑の線が伸びて、後ろ端が追いかけてエリア拡張へ流れ込む。弾けた粒 */
.fxcp { fill: none; stroke: var(--fx); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 3px var(--fx)); pointer-events: none; }
/* 開拓・建設に足りない資金は赤字で出す(ユーザー指示・2026-10-19) */
.stime.short { fill: var(--full) !important; font-weight: 700; }
/* 建設の行の資金(メーターに重ねる)。足りなければ赤字 */
.bfunds { font-size: 10.5px; font-weight: 700; fill: var(--ink) !important; pointer-events: none; }
.bfunds.short { fill: var(--full) !important; }
.buildn .sb, .frame.ghost .sb { opacity: .45; }
.mapwrap.dragf .frame { transition: none; }

.slotn { cursor: pointer; }
.slotn .sbox { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
/* 動いているスロットは灯る(面に緑を淡く混ぜる。夜の谷の世界観で「動いている所が灯る」。ユーザー決定・2026-10-27) */
.slotn.run .sbox { stroke: var(--run); fill: color-mix(in srgb, var(--run) 10%, var(--panel-2)); }
/* 動いているスロット(採取先の円も)は、息をするようにゆっくり灯る(見本の形。ユーザー指示・2026-10-27「見本で表現しているのに組み込まれていない演出を実装して」)。
   光は枠の下に敷いた淡い枠(.sglow。map-view.ts)で描き、濃さだけを変える。前は枠の drop-shadow の大きさを変えていて、ぼかしを毎コマ計算し直して
   終盤で約 4fps 食っていた(ユーザー決定・2026-10-28「案Aで」。見本で決めた。`perf` スキル)。
   届いたときの光(.recv)のあいだは、そちらを出す。演出の段 1 で光を、段 2 で動きを止める(ui/fx-level.ts) */
.sglow { display: none; fill: none; pointer-events: none; }
.slotn.run:not(.recv) .sglow { display: inline; stroke: color-mix(in srgb, var(--run) 22%, transparent); stroke-width: 8; }
@keyframes run-breath { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .slotn.run:not(.recv) .sglow { animation: run-breath 3.2s ease-in-out infinite; } }
.slotn.in .sbox { stroke: var(--wait); stroke-width: 2.5; }
.slotn.idle .sbox { stroke-dasharray: 4 3; }
.slotn.manual .sbox { stroke-dasharray: 4 3; }
.slotn.pause .sbox { stroke: var(--idle); stroke-dasharray: 2 3; }
/* 手動で材料が足りずタップできない: 自動の材料待ちと同じ黄の太い枠(2026-10-22)。自動化できる「!」も出ていれば、下の .callout(差し色)が勝つ */
.slotn.noin .sbox { stroke: var(--wait); stroke-width: 2.5; stroke-dasharray: none; }
.slotn.pause .slabel { fill: var(--ink-2) !important; }
.slotn.sel .sbox { stroke: var(--select) !important; stroke-width: 3; stroke-dasharray: none; }
.slotn:hover .sbox { fill: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.slotn .slabel { font-size: 12.5px; font-weight: 700; }
.slotn .slabel.long { font-size: 10.5px; }
/* 右上は実際の1回の秒数(Lv の代わり。ユーザー決定・2026-10-28)。手伝いがいれば紫(効果)、いなくて速さを絞っていれば灰の細字(詳細の欄の倍率と同じ。speedLook) */
.slotn .slv { font-size: 11px; fill: var(--ink-2) !important; font-weight: 700; }
.slotn .slv.boost { fill: var(--boost) !important; }
.slotn .slv.cut { fill: var(--idle) !important; font-weight: 400; }
.pmark { display: none; fill: var(--ink-2); pointer-events: none; }
.pmark.on { display: inline; }
/* 押してほしいスロットは、満杯の在庫と同じ強さで面を差し色に塗る(選んでも面は残る。ユーザー決定・2026-10-20 案B) */
.slotn.callout .sbox { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: none; fill: color-mix(in srgb, var(--accent) 30%, var(--panel)); }
.slotn.startable .stime { fill: var(--accent) !important; font-weight: 700; }
/* 作業場のスロットは、手動で作り始められる間だけ、空のバーと右下の札の代わりに「▶ タップ」の帯(差し色の縁と淡い面・差し色の字)を出す
   (見本の案C・ユーザー決定・2026-10-25。カードは持ち上げない)。採取地は円の下の札のまま(.spill) */
.stap { display: none; pointer-events: none; }
.slotn.startable .stap { display: inline; }
.slotn.startable:not(.src) .stime, .slotn.startable .sb-bg, .slotn.startable .sb { visibility: hidden; }
.slotn.startable .stap rect { fill: color-mix(in srgb, var(--accent) 16%, var(--panel)); stroke: var(--accent); stroke-width: 1; }
.slotn.startable .stap text { fill: var(--accent) !important; font-size: 11px; font-weight: 700; }
/* マウスを載せている間は、帯を差し色で塗りつぶして字を明るくする(押せる所の hover。どこを押すかが分かる。ユーザー指示・2026-10-25) */
.slotn.startable:hover .stap rect { fill: var(--accent); }
.slotn.startable:hover .stap text { fill: var(--accent-ink) !important; }
@media (prefers-reduced-motion: no-preference) {
  .stap rect, .stap text { transition: fill .12s; }
}
.slotn.tapfx .sbox { fill: color-mix(in srgb, var(--accent) 50%, var(--panel)); }
@media (prefers-reduced-motion: no-preference) {
  .slotn .sbox { transition: fill .15s; }
}
.wdot { fill: none; stroke: var(--idle); stroke-width: 1.5; }
.wdot.off { display: none; }
/* 自動で回っているスロットの回る輪(2本の弧と矢じり)。動いているあいだだけ回す(ユーザー指示・2026-10-19) */
.wspin { display: none; pointer-events: none; }
.wspin.on { display: inline; }
.wspin circle { fill: none; stroke: var(--run); stroke-width: 1.8; stroke-dasharray: 11.5 5.8; }
.wspin path { fill: var(--run); }
/* 材料待ちの輪は止まって待ちの色(枠・線の材料待ちと同じ色。右上の「待」の札の代わり。ユーザー指示・2026-10-20) */
.wspin.still circle { stroke: var(--wait); }
.wspin.still path { fill: var(--wait); }
/* 名前の前のアイコン: 自動化できる(差し色の丸に「!」。押せることを示すので差し色。赤は止まっている・足りない・損をしている専用。2026-10-20)。
   満杯で止まった自動のスロットの赤い警告の三角は、投げ売り(満杯でも止まらない)を入れて無くした(2026-10-22) */
.walert { display: none; pointer-events: none; }
.walert.on { display: inline; }
.walert circle { fill: var(--accent); }
.walert text { font-size: 10px; font-weight: 700; }
.walert text { fill: var(--accent-ink) !important; }
.wrot { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .wspin.go .wrot { animation: wspin 1.6s linear infinite; } }
@keyframes wspin { to { transform: rotate(360deg); } }
.whit { fill: transparent; cursor: pointer; }
/* 丸で囲むのは自動の作業場のスロット(一時停止/再開の丸)だけ。手動の丸・「!」と採取地(止められない・2026-10-25)は本体のタップと同じなので囲まない(ユーザー指示・2026-10-23) */
.slotn.auto:not(.src) .whit:hover { fill: var(--accent); fill-opacity: .18; stroke: var(--accent); stroke-width: 1.5; }
.buildn .sbox { fill: transparent; stroke: var(--line); stroke-dasharray: 5 4; }
.buildn .slabel { fill: var(--ink-2) !important; }
/* 建てられる建設の行は、点線のまま押してほしいスロットと同じ強さで面を塗る(ユーザー決定・2026-10-20 案A) */
.buildn.can .sbox { stroke: var(--accent); stroke-width: 2.5; fill: color-mix(in srgb, var(--accent) 30%, var(--panel)); }
.buildn.can .slabel { fill: var(--accent) !important; }
/* 名前の前の「＋」の丸: まだ建てられないなら灰の白抜き(手動の白抜きの丸と同じ)、建てられるなら差し色の丸(自動化できる「!」と同じ) */
.wplus { pointer-events: none; }
.wplus circle { fill: none; stroke: var(--idle); stroke-width: 1.5; }
.wplus text { font-size: 10px; font-weight: 700; fill: var(--ink-2) !important; }
.buildn.can .wplus circle { fill: var(--accent); stroke: var(--accent); }
.buildn.can .wplus text { fill: var(--accent-ink) !important; }
.sb-bg { fill: var(--bg); }
.sb { fill: var(--run); }
.sb.in { fill: var(--wait); }
/* 資金のメーター(建設の行・点線の枠)。買えるなら差し色、まだなら止まっている色(待ちの色は材料待ち専用。2026-10-20) */
.sb.ready { fill: var(--accent); }
.sb.idle { fill: var(--idle); }
/* 採取先の円の外の輪(バーの代わり。下地は地の線の色、進みはバーと同じ状態の色) */
.strack { fill: none; stroke: var(--line); stroke-width: 4; pointer-events: none; }
.sprog { fill: none; stroke: var(--run); stroke-width: 4; pointer-events: none; }
.sprog.in { stroke: var(--wait); }
.sprog.idle { stroke: var(--idle); }
/* 採取先の円の左上の状態の丸の下地(円の絵の上で回る輪・!・Ⅱが見えるように) */
.sbadge { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.slotn .slabel.sname { font-size: 13.5px; }

.tank { cursor: pointer; }
.tank .tbox { fill: var(--panel-2); stroke: var(--line); stroke-width: 1; }
.tank .tfill { fill: var(--ink-2); opacity: .16; }
/* 相場の品(.mkt): 紫の縁と面。縁と面は満杯の赤、縁は特別注文の差し色が後ろの規則で勝つ。「×2.4」と矢印は満杯でも出す(design-rules「相場」・2026-10-22) */
.tank.mkt .tbox { stroke: var(--boost); stroke-width: 2.5; fill: color-mix(in srgb, var(--boost) 12%, var(--panel-2)); }
.tank.mkt .tfill { fill: var(--boost); opacity: .22; }
.tank.full .tfill { fill: var(--full); opacity: .32; }
.tank.full .tbox { stroke: var(--full); stroke-width: 2; fill: var(--panel-2); }
.tank.sel .tbox { stroke: var(--select) !important; stroke-width: 2.5; }
.tank:hover .tbox { stroke: var(--ink-2); }
/* 特別注文でまだ足りない品の在庫(ui/map-view.ts の tankOrderClass。2026-10-21)。納められる = 差し色の縁(押せる)・在庫がまだ = 灰の太い縁 */
.tank.ord .tbox { stroke: var(--accent); stroke-width: 2; }
.tank.ord0 .tbox { stroke: var(--ink-2); stroke-width: 2; }
/* 特別注文の品の在庫の札の左上の町のバッジ(ui/map-view.ts の buildOrderBadge。ユーザー決定・2026-10-23・見本の K3)。進みは円周の輪で、
   特別注文の札の品の下のバー(.ocb)と同じ色: 下地 = 線の色・在庫で納められる所まで = 淡い差し色・納めた所まで = 濃い灰。輪は上の真ん中から時計回り */
.obadge { pointer-events: none; }
.obadge .obg { fill: var(--panel); }
.obadge rect { fill: none; stroke-width: 2.5; }
.obadge .otrack { stroke: var(--line); }
.obadge .ohave { stroke: var(--accent); stroke-opacity: .45; }
.obadge .odone { stroke: var(--ink-2); }
/* 図のアイコン(アトラスの1コマ。map-view.ts の iconSvg)はタップを受けない(下の行・見出しが受ける) */
svg .icon { pointer-events: none; }
.tank .tname { font-size: 12px; font-weight: 700; }
.tank .tq { font-size: 11px; fill: var(--ink-2) !important; }
.tank .tq.full { fill: var(--full) !important; font-weight: 700; }
.tank .trend { font-size: 11px; font-weight: 700; }
/* 在庫の右の「売る」ボタン(全部売る。ユーザー指示・2026-10-19)。持っていなければ薄くする */
.tank .tsell rect { fill: color-mix(in srgb, var(--accent) 14%, var(--panel)); stroke: var(--accent); stroke-width: 1.2; }
.tank .tsell text { font-size: 10px; font-weight: 700; fill: var(--accent) !important; pointer-events: none; }
.tank .tsell:hover rect { fill: color-mix(in srgb, var(--accent) 28%, var(--panel)); }
.tank .tsell.off { opacity: .35; }
.tank.full .trend { fill: var(--full) !important; }


/* 図の上の札 */

/* 町からの注文の札(ui/order-view.ts。図の右上に浮かび、パン・ズームしても同じ大きさ。ユーザー決定・2026-10-20・見本の案A)。
   【2026-10-20】品ごとに一部だけでも納められる(品の札を押す。「納める」のボタンは無くした。見本で決定)。
   色は design-rules の意味のまま: 納められる品 = 差し色の縁(押すと注文がそろう品は広がる輪)・納めきった品 = 緑・上乗せ = 紫・
   在庫の無い品 = 地の色。札と「次の注文」の札は同じ場所に重ねる(畳む演出で入れ替わる)。
   【2026-10-21】画面の名前は「特別注文」。品の札は横に3つ並べ、アイコンの下に品名と「納めた数/求める数」(見本の案2)。
   納めきった品は薄い緑の地と右上の角の緑のチェック(案A)。いちばん下に中央ぞろえで「達成ボーナス 金貨 +額」(額は紫。ユーザー決定・見本で決定) */
/* 図の左上: 特別注文の札(2026-10-21 に右上から移した。ユーザー決定・見本の O3) */
.mapcards { position: absolute; top: 10px; left: max(10px, env(safe-area-inset-left, 0px)); width: 220px; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
@media (max-width: 480px) { .mapcards { width: 200px; } }
.mapcards > * { pointer-events: auto; }
/* 操作のヒント(ui/hint-view.ts。ユーザー指示・2026-10-23。見本で決めた): 図の左上の1行。地味な札で、
   押せる色は使わない。収まらなければ「…」で切る(全文は title)。見終えたら頭の「?」が緑のチェック(緑 = 満たしている)。
   押下は図の入れ物へ伝わるので、ヒントの上からも盤面をドラッグできる */
.hint { display: flex; align-items: center; gap: 6px; width: max-content; max-width: min(560px, calc(100vw - 20px)); box-sizing: border-box; font-size: 12px; line-height: 1.35; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px 4px 6px; box-shadow: 0 2px 8px var(--shadow); }
.hint[hidden] { display: none; }
.hint-i { flex: none; width: 15px; height: 15px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-family: var(--font-num); font-size: 9.5px; font-weight: 700; line-height: 1; }
.hint-i svg { display: none; width: 9px; height: 9px; }
.hint-i svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hint-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint.ok .hint-i { color: var(--panel); background: var(--run); border-color: var(--run); }
.hint.ok .hint-i b { display: none; }
.hint.ok .hint-i svg { display: block; }
.hint.ok .hint-t { color: var(--ink); }
/* 相場のピル(図の上の端。狭い画面は右上)とヒントが横で重なるときだけ、左上の列をピルの下へ下ろす(ui/hint-view.ts の hintLowered が .lowered を付ける。
   前はピルが出ていればいつも下ろし、広い画面で上に空きができていた。ユーザー指摘・2026-10-23) */
.mapcards.lowered { top: 48px; }
.orders { width: 100%; display: grid; justify-items: start; }
.orders > * { grid-area: 1 / 1; align-self: start; }
.orders[hidden], .ocard[hidden], .ochip[hidden] { display: none; }
/* 札はチケットの形で特別感を出す(ユーザー決定・2026-10-21・見本の O3。色は足さない): 太めの縁・見出しに斜めの縞・見出しの下にミシン目と
   左右の切り欠き。数秒おきに光が斜めに走る(.ocard::after)。切り欠きは見出しの ::before/::after を図の地の色の半円で描く */
.ocard { position: relative; width: 100%; transform-origin: top left; background: var(--panel); border: 1.5px solid var(--ink-2); border-radius: 10px; padding: 0 9px 8px; display: grid; gap: 6px; box-shadow: 0 4px 14px var(--shadow); }
.ohead { display: flex; align-items: center; gap: 6px; width: 100%; padding: 0; font-size: 12.5px; font-weight: 700; }
.ocard > .ohead { margin: 0 -9px; width: calc(100% + 18px); height: 34px; padding: 0 11px; border-bottom: 1.5px dashed var(--line); border-radius: 8.5px 8.5px 0 0;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink) 7%, transparent) 0 6px, transparent 6px 12px); font-size: 13.5px; letter-spacing: .08em; }
.ocard > .ohead::before, .ocard > .ohead::after { content: ""; position: absolute; top: 25.5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink-2); }
.ocard > .ohead::before { left: -9px; clip-path: inset(0 0 0 50%); }
.ocard > .ohead::after { right: -9px; clip-path: inset(0 50% 0 0); }
.ocard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, transparent, var(--shine), transparent) no-repeat; background-size: 45% 100%; background-position: -100% 0; }
@keyframes oshine { 0%, 62% { background-position: -100% 0; } 100% { background-position: 200% 0; } }
@media (prefers-reduced-motion: no-preference) { .ocard::after { animation: oshine 5s cubic-bezier(.4, 0, .2, 1) infinite; } }
.oicon { display: inline-block; flex: none; width: 20px; height: 20px; background-repeat: no-repeat; }
.ohead .oicon { width: 18px; height: 18px; }
.oitems { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.ochip { position: relative; display: grid; justify-items: center; min-width: 0; min-height: 0; padding: 3px 2px 6px; border-radius: 6px; background: var(--panel-2); font-size: 11.5px; line-height: 1.3; text-align: center; overflow: hidden; }
.ochip .oicon { width: 22px; height: 22px; }
.ochip .onm { max-width: 100%; font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ochip .q { color: var(--ink-2); }
/* 札の下のバー: 灰 = 納めた数・薄い差し色 = 押せば納まる数(幅いっぱいの塗りを横に縮めて出す) */
.ocb { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.ocb > i { position: absolute; inset: 0; transform-origin: left center; }
.ocb .have { background: var(--accent); opacity: .45; }
.ocb .done { background: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .ocb .done { transition: transform .22s cubic-bezier(.3, .7, .3, 1); } }
.ochip.can { border-color: var(--accent); }
.ochip.can .q { color: var(--ink); font-weight: 700; }
.ochip.ok { border-color: var(--run); background: color-mix(in srgb, var(--run) 12%, var(--panel)); }
/* 納めきった品の印: 右上の角の緑の丸いチェック(最後の1個が届いたときに弾んで入る。ui/order-view.ts) */
.ochk { display: none; position: absolute; top: 2px; right: 2px; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: var(--run); }
.ochk svg { width: 70%; height: 70%; fill: none; stroke: var(--panel); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ochip.ok .ochk { display: grid; }
.ochip.ok .q { color: var(--run); font-weight: 700; }
.ochip.ok .ocb .done { background: var(--run); }
/* 押すと注文がそろう品の札: 枠から外へ広がって消える差し色の輪(図の輪と同じ合図。ユーザー決定・2026-10-22)。札は図の外で倍率が変わらないので、
   図の上の輪(外へ 8px)が初期表示の倍率(×0.6)で見える幅にそろえて 5px。縁の外の線(outline)で描く(札の overflow: hidden で切れない) */
@keyframes callout-ring-box {
  0% { outline-offset: 0px; outline-color: color-mix(in srgb, var(--accent) 90%, transparent); }
  70%, 100% { outline-offset: 5px; outline-color: color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: no-preference) { .ochip.go { outline: 2.5px solid transparent; animation: callout-ring-box 1.6s cubic-bezier(.3, .7, .3, 1) infinite; } }
/* 達成ボーナスの行: 「達成ボーナス 金貨 +額」を中央ぞろえ(額は紫。ユーザー決定・2026-10-21) */
.ofoot { display: flex; align-items: center; justify-content: center; gap: 5px; padding-top: 6px; border-top: 1px solid var(--panel-2); min-width: 0; }
.ofoot .olbl { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.orew { transform-origin: center; display: flex; align-items: center; gap: 3px; font-size: 12px; line-height: 1.25; white-space: nowrap; }
.orew .obonus { font-weight: 700; }
.orew .coin { width: 14px; height: 14px; }
.oplus { color: var(--ink-2); }
.obonus { color: var(--boost); }
/* 小さい形(1行の帯。ui/panel-fold.ts・2026-10-25): 町の絵と、品ごとの絵・納めた数/求める数。色は札の品と同じ(差し色の縁 = 納められる・緑 = 納めきった) */
.omini { padding-left: 7px; font-size: 12px; }
.omini > .oicon { width: 18px; height: 18px; }
.ominis { display: inline-flex; gap: 4px; }
.ominic { position: relative; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 6px 0 3px; border-radius: 6px; border: 1.5px solid transparent; background: var(--panel-2); color: var(--ink-2); }
.ominic[hidden] { display: none; }
.ominic .oicon { width: 18px; height: 18px; }
.ominic.can { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.ominic.ok { border-color: var(--run); background: color-mix(in srgb, var(--run) 12%, var(--panel)); color: var(--run); font-weight: 700; }
.ominic .ochk { position: static; width: 12px; height: 12px; }
.ominic.ok .ochk { display: grid; }
.owait { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; color: var(--ink-2); }
/* 来た: 描き込み(地の色)。納めた: 波紋(差し色)と浮かぶ報酬の数。色は --fx(.fx-plain・.fx-accent)で入れる */
.odraw { position: absolute; left: -1px; top: -1px; overflow: visible; pointer-events: none; }
.odraw rect { fill: none; stroke: var(--fx); stroke-width: 2; filter: drop-shadow(0 0 3px var(--fx)); }
/* もぎる(2026-10-21・見本の B): ミシン目が左から緑に光り(満たした)、もいだ本体の写し(.otear。演出の層)が落ちる */
.operf { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--run); clip-path: inset(0 100% 0 0); pointer-events: none; }
.otear { position: absolute; margin: 0; pointer-events: none; transform-origin: 20% 0; }
.oripple { position: absolute; border: 2px solid var(--fx); border-radius: 12px; opacity: 0; pointer-events: none; }
/* 「達成」の判子(そろったとき。緑 = 満たした。ui/order-view.ts の SEAL と同じ大きさ) */
.oseal { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; pointer-events: none; }
.oseal[hidden] { display: none; }
.oseal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.oseal circle { fill: none; stroke: var(--run); }
.oseal circle.bg { fill: color-mix(in srgb, var(--panel) 82%, transparent); stroke: none; }
.oseal b { position: relative; font-weight: 700; font-size: 19px; line-height: 1; letter-spacing: .08em; white-space: nowrap; color: var(--run); }
/* 品を納めた: 品のアイコンが在庫の札から注文の札へ飛ぶ(層は #coinfx)。出口に小さな輪(差し色。使った材料が出ていくときと同じ) */
.oifly { position: absolute; left: 0; top: 0; width: 22px; height: 22px; opacity: 0; will-change: transform; filter: drop-shadow(0 1px 2px var(--shadow)); }
.olaunch { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 1.6px solid var(--accent); opacity: 0; pointer-events: none; }
/* 詳細の欄 */
.insp h2 { font-weight: 700; font-size: 17px; margin: 0; }
/* 品物の詳細の欄の見出しのアイコン(アトラスの1コマ。位置は art.ts の itemIconBackground) */
.iicon { display: inline-block; width: 32px; height: 32px; margin-right: 8px; vertical-align: middle; background-repeat: no-repeat; }
.insp h3 { font-size: 12px; letter-spacing: .1em; color: var(--ink-2); margin: 4px 0 0; font-weight: 700; }
/* 見出しと「閉じる」: 「閉じる」はいつも右上。長い見出しは「閉じる」を下の行へ落とさず、見出しの方を折り返す
   (6言語で測ると、葡・仏・独・越の長い名前で「閉じる」が落ちて見出しの下が1段空いていた。ユーザー決定・2026-10-28・見本の案A) */
.ihead { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ihead h2 { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; line-height: 1.25; text-wrap: balance; }
.ihead h2 .iicon { flex: none; }
.ihead .insp-close { flex: none; }
/* 詳細の欄・設定の画面の見出し(名前と「閉じる」)は、中身をスクロールしても上に残す。CrazyGames の審査(2026-11-11)
   「Please ensure the main buttons, such as Close, are always visible without needing to scroll down」(800×420 の枠で設定の画面を下までスクロールすると閉じるが隠れた)。
   カードの上の余白(--card-pt)ぶん上へ張り出し、地を塗って下の中身を隠す */
.insp > .ihead, .modal-card > .ihead { position: sticky; top: calc(-1 * var(--card-pt)); z-index: 2; margin-top: calc(-1 * var(--card-pt)); padding: var(--card-pt) 0 6px; background: var(--panel); }
.sub { font-size: 12px; color: var(--ink-2); }
.rowx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rowx.spread { justify-content: space-between; }
/*
 * 詳細の欄の作り直し(ユーザー決定・2026-10-22。見本で決めた形)。
 * 品物: 上限のカードは左に所持数 / 上限とメーター、右に購入ボタン。売値は下のカードに1行
 */
.caprow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
.capbox { display: grid; gap: 6px; min-width: 0; }
.capnums { position: relative; display: flex; align-items: baseline; gap: 6px; }
/* 上限アップで上限の数の右に浮かぶ増えた数(ui/bump.ts。地の色) */
.capnums .capup { position: absolute; top: -4px; font-family: var(--font-num); font-size: 14px; font-weight: 700; color: var(--ink-2); pointer-events: none; white-space: nowrap; }
.pricerow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* スロット: Lv の行は3つ(Lv と速さの倍率 | Lv+1 | 節目まで)。2つのボタンは等幅 */
.lvrow { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.lvbox { display: grid; align-content: center; gap: 1px; min-width: 0; }
.lvbox b { font-size: 16px; }
.lvbox .sub { white-space: nowrap; }
/* 速さに手伝いの上乗せが効いているとき: 紫(効果)の太字と、前に灯の精の印(ユーザー決定・2026-10-23。見本で P に決めた。矢印は文字と縦がずれて見えた) */
.lvbox .sub .subwisp { display: none; }
.lvbox .sub.boost { display: inline-flex; align-items: center; gap: 4px; justify-self: start; color: var(--boost); font-weight: 700; }
.lvbox .sub.boost .subwisp { display: block; flex: none; width: 13px; height: 13px; }
.lvrow button.buy { width: 100%; }
/* 速さを絞っているとき(手伝いがいない): 灰(止めている・抑えている)の細字。手伝いもいれば上の紫を優先する(ユーザー決定・2026-10-28) */
.lvbox .sub.cut { color: var(--idle); }
/*
 * 「速さを選ぶ」の行(Lv のカードの下。ユーザー決定・2026-10-28。見本の C 案): 見出しと選んだ Lv・1回の秒数 / − スライダー ＋。
 * つまみと −＋ は差し色(押せる)。いまの Lv より下を選んでいる間は、右の値を灰(抑えている)。節目に目盛り
 */
.spick { display: grid; gap: 6px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); --spick-pad: 10px; }
.spick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-2); }
.spick-val { color: var(--ink); font-size: 13px; white-space: nowrap; }
.spick-val.cut { color: var(--idle); }
.spick-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 6px; align-items: center; }
/* 押せない端(Lv0・いまの Lv)では、ほかのボタンと同じく地のボタンを薄くする(button:disabled) */
.spick-btn { font: inherit; font-size: 18px; font-weight: 700; height: 34px; padding: 0; border-radius: 8px; border: 1.5px solid var(--line); background: transparent; color: var(--ink-2); }
.spick-btn:not(:disabled) { border-color: var(--accent); color: var(--accent); cursor: pointer; }
.spick-sl { position: relative; height: 34px; touch-action: none; cursor: pointer; }
.spick-sl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.spick-rail { position: absolute; left: var(--spick-pad); right: var(--spick-pad); top: 14px; height: 6px; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); box-sizing: border-box; }
.spick-on { position: absolute; left: 0; top: -1px; bottom: -1px; width: 0; border-radius: 3px; background: color-mix(in srgb, var(--accent) 55%, var(--panel-2)); }
.spick-tick { position: absolute; top: -4px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: var(--ink-2); }
.spick-thumb { position: absolute; top: 7px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), 0 2px 6px var(--shadow); }
.spick-sl.drag .spick-thumb { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent), 0 2px 6px var(--shadow); }
.spick-ends { display: flex; justify-content: space-between; margin-top: -4px; padding: 0 4px; font-size: 10px; color: var(--ink-2); }
/* 採取先: 追加の確率の行(Lv とは別のカード) */
.locrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.locrow button.buy { width: 100%; }
.locmax[hidden] { display: none; }
.buyrow { display: grid; }
/* ブロック: 建設の行(名前の下に小さなアイコンで 材料 → 作る品。右のボタンと同じ高さに詰める) */
.card:has(> .bldrow) { padding: 6px 8px 6px 10px; }
.bldrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.bldwho { display: grid; gap: 3px; min-width: 0; }
.mini { display: flex; align-items: center; gap: 2px 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.mitem { display: inline-flex; align-items: center; gap: 2px; }
.mi { width: 18px; height: 18px; display: inline-block; background-repeat: no-repeat; }
/*
 * 品の札(材料 → 作る品・採取先の出る品)。カードの真ん中にそろえ、個数はアイコンの右下に縁取りの数字(ピルにしない)。
 * 追加の抽選で出る品はおまけの紫(--boost)で、枠を点線にし、確率を紫で出す。確定の品は実線の枠に 100%(design-rules)
 */
/* 材料 → 作る品は札の数によらず必ず1行(ユーザー指示・2026-10-23)。入りきらないときは札を均等に細くし、アイコンも札の幅まで縮める
   (レシピの札は最大で材料6つ + 作る品1つ) */
.iflow { display: flex; align-items: flex-start; justify-content: center; gap: 8px; padding-block: 2px; min-width: 0; }
.ichips { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: center; flex: 0 1 auto; min-width: 0; }
/* 札の高さは横でそろえ(並びの stretch)、確率の札(.pc)はいつも下の端に置く。品名が2行・3行になった札だけ確率の札が下がり、
   横とそろわなかった(ユーザー決定・2026-10-28・見本の案B) */
.ichip { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 2px; flex: 0 1 64px; width: 64px; min-width: 0; padding: 0; min-height: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ichip .ic { position: relative; width: min(40px, 100%); aspect-ratio: 1; border-radius: 9px; background-color: var(--panel); background-repeat: no-repeat; border: 1px solid var(--line); }
.ichip:hover .ic { border-color: var(--accent); }
/* 個数はアイコンの右下に重ねる(アイコンの中に置き、アイコンが縮んでも角に付いてくる) */
.ichip .q { position: absolute; bottom: 2px; right: -5px; font-size: 15px; font-weight: 700; line-height: 1; color: var(--ink); pointer-events: none;
  text-shadow: -1.5px -1.5px 0 var(--panel-2), 1.5px -1.5px 0 var(--panel-2), -1.5px 1.5px 0 var(--panel-2), 1.5px 1.5px 0 var(--panel-2), 0 1.5px 0 var(--panel-2), 0 -1.5px 0 var(--panel-2), 1.5px 0 0 var(--panel-2), -1.5px 0 0 var(--panel-2); }
.ichip .q small { font-size: 11px; margin-right: 1px; }
.ichip .nm { font-size: 11px; color: var(--ink-2); text-align: center; line-height: 1.2; max-width: 100%; overflow-wrap: break-word; hyphens: auto; }
.ichip .pc { align-self: end; font-size: 11px; font-weight: 700; padding: 0 5px; border-radius: 999px; line-height: 16px; color: var(--ink-2); background: var(--panel); }
/* 在庫が足りない材料の札: 枠と使う数を赤に(足りない。ユーザー指示・2026-10-23) */
.ichip.short .ic { border-color: var(--full); box-shadow: inset 0 0 0 1px var(--full); }
.ichip.short .q { color: var(--full); }
.ichip.extra .ic { border-style: dashed; border-color: color-mix(in srgb, var(--boost) 55%, var(--line)); }
.ichip.extra .pc { color: var(--boost); background: color-mix(in srgb, var(--boost) 14%, var(--panel)); }
/* 材料 → 作る品の矢印(字でなく三角) */
.iarrow { flex: none; width: 0; height: 0; margin-top: 14px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--ink-2); }
.iarrow.small { margin-top: 0; border-width: 4px 0 4px 6px; }
.card { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; min-width: 0; }
.big { font-size: 22px; font-weight: 700; }
.bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink-2); }
.bar.full > i { background: var(--full); }
.req.short { color: var(--full); font-weight: 700; font-size: 12.5px; }
.req.short:empty { display: none; }
.small-head { font-size: 13px; }
.slotrow { display: grid; gap: 3px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.slotrow:hover { border-color: var(--accent); }
.toast { position: absolute; left: 50%; transform: translateX(-50%); top: 10px; background: var(--ink); color: var(--panel); padding: 8px 14px; border-radius: 8px; font-size: 13px; z-index: 20; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }

/* 戻ってきたときの札(ui/away-view.ts。ユーザー決定・2026-10-22・見本で決定)。画面全体に暗幕(チュートリアルと同じ --scrim)を敷き、真ん中に札。
   受け取るまでゲームは触れない(暗幕を押しても閉じない)。暗幕の層は #app の中で .toast(20)より下・図の上の札(5〜8)より上に置く。
   引いているあいだ(.closing)は押下を通す。出方・額の数え上げ・光は away-view.ts(Web Animations)。
   「受け取る」は普通のボタン(目立たせない)、「2倍で受け取る」は紫(おまけ・効果)で塗り、広告のアイコンを本文より一回り大きく(crazygames-kit `crazygames-ads`) */
.awaylayer { position: absolute; inset: 0; z-index: 19; display: grid; place-items: center; padding: 16px; background: var(--scrim); }
.awaylayer[hidden] { display: none; }
.awaylayer.closing { pointer-events: none; }
/* 広告を頼んでから結果が返るまでの幕(main.ts の setWatchingAd)。暗幕は戻ってきたときの札と同じ --scrim、真ん中に小さな札。
   待っている合図は3つの点が順に灯る(回転は「動いている」の意味なので使わない。design-rules)。ユーザー決定・2026-11-09(見本の案A) */
.adwait { position: absolute; inset: 0; z-index: 21; display: grid; place-items: center; background: var(--scrim); }
.adwait[hidden] { display: none; }
.adwait-box { display: inline-flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; box-shadow: 0 6px 20px var(--shadow); font-size: 13px; }
.adwait-dots { display: inline-flex; gap: 4px; }
.adwait-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .adwait-dots i { animation: adwait-dot 1.2s ease-in-out infinite; }
  .adwait-dots i:nth-child(2) { animation-delay: .2s; }
  .adwait-dots i:nth-child(3) { animation-delay: .4s; }
}
@keyframes adwait-dot { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.away { width: min(340px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 20px var(--shadow); padding: 18px 18px 16px; display: grid; gap: 12px; }
.away-title { font-weight: 700; font-size: 20px; text-align: center; text-wrap: balance; }
.away-sub { color: var(--ink-2); font-size: 13px; text-align: center; margin-top: -6px; text-wrap: balance; }
.away-time { color: var(--ink); white-space: nowrap; }
/* 額の帯: 金貨と大きな額。数え終わりに地の色の光が一度走る(.away-shine) */
.away-prize { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 10px; background: var(--panel-2); border-radius: 10px; }
.away-amt { font-weight: 700; font-size: 30px; white-space: nowrap; }
.away-prize .coin { width: 30px; height: 30px; }
.away-shine { position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none; transform: translateX(-120%); background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--panel) 75%, transparent), transparent); }
.away-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.away-btns.one { grid-template-columns: 1fr; }
.away-btns button { min-height: 40px; border-radius: 9px; padding: 4px 8px; white-space: nowrap; }
/* 「2倍で受け取る」は「受け取る」と同じ普通のボタン(大きさ・書体・面・縁をそろえる)。紫の丸の広告のアイコンだけで見分ける
   (CrazyGames の広告の要件「same size, font, color」。見本の案A・ユーザー決定・2026-11-09)。特別注文の札の .oad も同じ */
.away-ad { display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.away-ad .adicon, .oad .adicon { font-size: 1.55em; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--boost); color: var(--panel); }
/* 広告ブロッカーのせいで2倍を出せないときの知らせ(地の文字。ポップアップにしない。ユーザー決定・2026-11-09) */
.adblocked { margin: 0; color: var(--ink-2); font-size: 12px; text-align: center; text-wrap: balance; }
.adblocked[hidden] { display: none; }
.away-ad[hidden] { display: none; }
.adicon { font-size: 1.7em; line-height: 1; display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; border-radius: 6px; background: var(--panel); color: var(--boost); }
.adicon svg { width: .74em; height: .74em; fill: currentColor; }
.adicon .adi-ant { fill: none; stroke: currentColor; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── リワード広告のボタン(design-rules「リワード広告のボタン」) ─────────
   広告を見るボタンは、広告を見ない選び方と並べた普通のボタンにし、紫は広告のアイコンだけ(2026-11-09)。
   遊んでいる画面には広告のボタンを置かない(「あと少し」は札を開く。下の .nearcard)。広告を出せない掲載先・環境ではボタンそのものを描かない */
/* 特別注文の札: 納めきった後の「受け取る」(普通のボタン)と「2倍」(紫)。判子の後に出る(見本の A-1 横に2つ) */
.ocard.oask .oseal { top: calc(50% - 19px); }
.obtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.obtns.one { grid-template-columns: 1fr; }
.obtns[hidden] { display: none; }
.obtns.lock { pointer-events: none; }
.obtns button { min-height: 32px; border-radius: 8px; padding: 2px 6px; white-space: nowrap; font-size: 12.5px; }
.oad { display: inline-flex; justify-content: center; align-items: center; gap: 5px; }
.oad[hidden] { display: none; }
/* 速さのブーストの札(図の左下・手伝いの札の上。ui/boost-view.ts・見本の B-1)。
   ピル(札を開く口。2026-11-09): 紫の縁・稲妻のアイコン・特別注文の札と同じ斜めに走る光(地の光 --shine。押せる間だけ)。広告のボタンではないのでパルスは付けない。
   開いた札(ピルの上に開く。見本の案1): 見出し・説明・「ゴールドで買う」と「広告を見て無料」を同じ普通のボタンで並べる(紫は広告のアイコンだけ)。
   ブースト中: 紫の「ブースト中」・残り時間・減っていくバー・揺らめく紫の光と立ちのぼる粒(手伝いのオーラと同じ語彙。効果が効いている) */
.boost { display: grid; gap: 8px; justify-items: start; }
.boost[hidden] { display: none; }
.bst-go, .bst-on { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 32px; min-height: 0; box-sizing: border-box; padding: 0 11px 0 4px; border-radius: 16px;
  background: var(--panel); border: 1.5px solid var(--boost); box-shadow: 0 4px 14px var(--shadow); font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bst-go[hidden], .bst-on[hidden] { display: none; }
.bst-go { overflow: hidden; }
.bst-bolt { display: inline-grid; place-items: center; flex: none; font-size: 1.7em; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--boost); color: var(--panel); }
.bst-bolt svg { width: .6em; height: .6em; fill: currentColor; }
.bst-card { width: min(290px, calc(100vw - 32px)); box-sizing: border-box; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; display: grid; gap: 9px; }
.bst-card[hidden] { display: none; }
.bst-ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bst-ct { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.bst-ct .bst-bolt { font-size: 1.35em; }
.bst-close { min-height: 26px; min-width: 26px; padding: 0; border-radius: 50%; color: var(--ink-2); line-height: 1; }
.bst-cd { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; word-break: auto-phrase; }
.bst-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bst-btns.one { grid-template-columns: 1fr; }
.bst-btns button { min-height: 38px; border-radius: 9px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 4px 8px; white-space: nowrap; }
.bst-btns button[hidden] { display: none; }
.bst-btns .coin { width: 17px; height: 17px; }
.bst-ad .adicon { font-size: 1.55em; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--boost); color: var(--panel); }
/* お金だけが足りないゴールドのボタン: 押せるまま(押すと足りない額を知らせる。aria-disabled)。見た目は押せない形・値段は赤(足りない) */
.bst-gold[aria-disabled="true"] { color: var(--ink-2); }
.bst-gold[aria-disabled="true"] .num { color: var(--full); }
.bst-x { color: var(--boost); }
.bst-t { font-weight: 400; color: var(--ink-2); padding-left: 7px; border-left: 1px solid var(--line); }
.bst-on .bst-t { color: var(--ink); font-weight: 700; }
.bst-sh { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, transparent, var(--shine), transparent) no-repeat; background-size: 45% 100%; background-position: -100% 0; }
.bst-badge { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--boost); color: var(--panel); font-size: 11.5px; }
.bst-bar { position: absolute; left: 14px; right: 14px; bottom: -1.5px; height: 3px; border-radius: 2px; background: var(--boost); transform-origin: left center; }
.bst-aura { position: absolute; inset: -5px; border-radius: 21px; pointer-events: none; }
.bst-mote { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--boost); opacity: 0; pointer-events: none; }
@keyframes bst-aura {
  0%, 100% { box-shadow: 0 0 6px 1px color-mix(in srgb, var(--boost) 45%, transparent); }
  50% { box-shadow: 0 0 13px 3px color-mix(in srgb, var(--boost) 60%, transparent); }
}
@keyframes bst-mote { 0% { opacity: 0; transform: translateY(0) scale(1); } 20% { opacity: .85; } 100% { opacity: 0; transform: translateY(-26px) scale(.5); } }
@media (prefers-reduced-motion: no-preference) {
  .bst-go .bst-sh { animation: oshine 5s cubic-bezier(.4, 0, .2, 1) infinite; }
  .bst-on .bst-aura { animation: bst-aura 2.2s ease-in-out infinite; }
  .bst-on .bst-mote { animation: bst-mote 1.8s ease-out infinite; }
  .bst-on .bst-mote:nth-of-type(2) { animation-delay: .45s; }
  .bst-on .bst-mote:nth-of-type(3) { animation-delay: .9s; }
  .bst-on .bst-mote:nth-of-type(4) { animation-delay: 1.35s; }
}

/* 設定の画面(ui/settings-view.ts)。真ん中に浮かぶカードと、後ろの暗幕(押すと閉じる)。ゲームは止めない */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: var(--shadow); }
.modal[hidden] { display: none; }
.modal-card { width: min(360px, 100%); max-height: 100%; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px var(--shadow); padding: 14px 16px 18px; display: grid; gap: 12px; --card-pt: 14px; }
.modal-card h2 { font-weight: 700; font-size: 17px; margin: 0; }
.modal-card h3 { font-size: 12px; letter-spacing: .1em; color: var(--ink-2); margin: 0; font-weight: 700; }
.setting { display: grid; gap: 8px; }
/* hidden の欄(アカウントの名前が無い・デバッグでないビルドの道具)は出さない。.setting の display が hidden の既定の display: none に勝ち、
   ログインしていない自前 Web でも中身の無い「アカウント」の見出しが出ていた(2026-10-29) */
.setting[hidden] { display: none; }
/* 言語の一覧(名前は自称)。いまの言語は押された形(.seg のタブと同じ塗り。ダークは弱める) */
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.langs button { min-height: 40px; text-align: left; padding: 6px 12px; }
.langs button[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 18%, var(--panel)); color: var(--ink); font-weight: 700; border-color: var(--ink-2); }
/* 見た目は詳細の欄のカードにそろえる(ユーザー指示・2026-10-30。見本で案A に決めた)。見出しの左に歯車、音のスライダー・演出・言語の中身は
   一段明るい地の塊(詳細の欄の .card と同じ地)に入れ、塊の中のボタンは枠線を消して地を一段沈める(押された形だけ枠を出す) */
.modal-card .ihead h2 { gap: 8px; }
.modal-card .ihead h2 .gear { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.sblk { background: var(--panel-2); border-radius: 10px; padding: 8px; display: grid; gap: 8px; min-width: 0; }
.sblk .snd-row { padding: 2px 4px; }
.sblk .langs button { background: color-mix(in srgb, var(--panel) 60%, var(--panel-2)); border-color: transparent; }
.sblk .langs button:hover:not(:disabled) { border-color: var(--line); }
.sblk .langs button[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 18%, var(--panel-2)); border-color: var(--ink-2); }
/* 演出の欄(自動と段 0〜4 を 3列×2段)。自動のボタンには、自動がいま選んでいる段を小さく添える */
.langs.fxs { grid-template-columns: 1fr 1fr 1fr; }
.langs.fxs button { text-align: center; padding: 6px; line-height: 1.2; }
.fx-auto { display: grid; justify-items: center; align-content: center; gap: 2px; }
.fx-now { font-size: 11px; color: var(--ink-2); font-weight: 400; }
/* プライバシーポリシーへのリンク(どの版でも出す。ui/settings-view.ts)。いちばん下の真ん中に小さく */
.setting.sfoot > .link { justify-self: center; font-size: 12px; color: var(--ink-2); background: none; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.setting.sfoot > .link:hover:not(:disabled) { color: var(--ink); border-color: transparent; }
/* デバッグの欄の経過とプレイ(デバッグのビルドだけ) */
#set-debug .clocks { margin-bottom: 2px; }
/* ポータルのアカウントの名前(CrazyGames。ui/settings-view.ts)。他人が付けた名前なので、長ければ省略記号で畳む */
.setting > .account { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 音の欄(ui/settings-view.ts。2026-10-29)。見出しの右に ON/OFF(押された形 = 鳴らす。言語の一覧と同じ塗り)、
   その下に BGM・効果音の音量のスライダー(詳細の欄の「速さを選ぶ」と同じ .spick-* の見た目) */
.snd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.snd-on { min-height: 34px; min-width: 72px; padding: 4px 12px; }
.snd-on[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 18%, var(--panel)); color: var(--ink); font-weight: 700; border-color: var(--ink-2); }
.snd-row { display: grid; grid-template-columns: minmax(0, 7em) minmax(0, 1fr) 3.4em; gap: 8px; align-items: center; font-size: 13px; --spick-pad: 10px; }
.snd-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.snd-val { text-align: right; font-size: 12px; color: var(--ink-2); }
/* デバッグの道具(設定の画面の欄。2026-10-27 にヘッダから移した) */
.dtools { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
/* デバッグの欄の中身(見出しの右の ON/OFF で出し入れする)。間は .setting と同じ */
#debug-body { display: grid; gap: 8px; }
#debug-body[hidden] { display: none; }
/* デバッグの道具の「カーソル」で隠す(build.ts の cursor)。要素ごとの cursor より強くする。設定の画面の上では出す(戻せるように) */
html.nocursor, html.nocursor *:not(#settings, #settings *) { cursor: none !important; }

/* 起動中の表示(index.html の #booting。最初の画面を描き終えたら main が隠す)。止まる画面の下・ほかの何より上 */
.booting { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: center; background: var(--bg); color: var(--ink-2); font-size: 14px; letter-spacing: .06em; }
.booting[hidden] { display: none; }
/* 止まる画面(読めないセーブ・掲載先で遊べない・遊んでいる途中の例外)。遊んでいる途中でも出るので、ほかの何より上に重ねる */
.broken { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 24px; background: var(--bg); text-align: center; }
.broken[hidden] { display: none; }
.broken-title { font-size: 18px; font-weight: 700; margin: 0; }
.broken-detail { color: var(--ink-2); font-size: 12px; font-family: var(--font-num); margin: 0; word-break: break-all; }

/*
 * お金(ui/coin.ts。ユーザー決定・2026-10-20)。**お金は色でなく金貨の絵で出す**(金色は差し色と待ちの色の間に入るので色トークンは足さない。design-rules)。
 * 額の文字は置かれた所の色のまま(地の色・上乗せは紫・足りる/足りないは .req の色)
 */
.coin { display: inline-block; flex: none; width: 1.05em; height: 1.05em; background-repeat: no-repeat; }
.gold { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.gold.strong { font-weight: 700; }
.gold.big { gap: 4px; }
.gold.big .coin { width: 22px; height: 22px; }
/*
 * 購入ボタン(panel-view.ts の buyButton。ユーザー決定・2026-10-22。見本で決めた形)。1段目に何をするか、2段目に値札(金貨と額を地の小判に載せる)。
 * 1回限り(.once: 自動化・建設・解放)は差し色の面、何度も押す強化(.repeat: Lv・採取先・上限)は差し色の縁(並んでもうるさくしない)。
 * 押せないときは地のボタン(薄くしない)。お金が足りなければ(.short)値札の額を赤(design-rules「足りない = 赤」)
 */
button.buy { display: inline-grid; justify-items: center; align-content: center; gap: 3px; padding: 4px 5px 5px; min-height: 0; min-width: 0; line-height: 1.2; white-space: nowrap; border-radius: 8px; font-weight: 700; }
/* 何をするかの文字は、等幅のボタンに収まらない言語(仏「Jusqu’au niv.25」など)では2行に折り返す。値札は折り返さない */
.buy .buy-act { font-size: 12.5px; padding: 0 6px; white-space: normal; text-align: center; overflow-wrap: break-word; }
.buy .buy-tag { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; background: var(--panel); color: var(--ink); }
.buy .buy-tag .coin { width: 13px; height: 13px; }
/* チュートリアルが指している1回は無料(値札は「無料」。金貨を出さない。CrazyGames の審査・2026-11-11) */
.buy.free .buy-tag .coin { display: none; }
button.buy.once:not(:disabled, [aria-disabled="true"]) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.buy.repeat:not(:disabled, [aria-disabled="true"]) { background: var(--panel); border: 1.5px solid var(--accent); color: var(--ink); }
button.buy.repeat:not(:disabled, [aria-disabled="true"]) .buy-tag { background: var(--panel-2); }
/* 押せないボタン。お金だけが足りないボタンは押せるまま(押したら足りない額を知らせる。aria-disabled)で、見た目は同じ */
button.buy:disabled, button.buy[aria-disabled="true"] { opacity: 1; background: var(--panel); border-color: var(--line); color: var(--ink-2); }
button.buy:disabled .buy-tag, button.buy[aria-disabled="true"] .buy-tag { background: var(--panel-2); }
button.buy.short .buy-tag { color: var(--full); }
/* 「あと少し」(押すと「あと少し」の札を開く。ui/near-view.ts・ユーザー決定・2026-11-09): 買えるときと同じ見た目(上の差し色の面・縁)で、額だけ赤 */
button.buy.near .buy-tag { color: var(--full); }
.buyrow > button.buy { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 10px; }
/* 購入ボタンは display を持つので、button[hidden] では消えない(最大になった採取先の強化・上限のボタンが額を出したまま残っていた。ユーザー指摘・2026-10-28)。
   上の .buyrow > button.buy と同じ強さで、後ろに置く */
button.buy[hidden], .buyrow > button.buy[hidden] { display: none; }
/* 1回限りの購入(自動化・建設)が押せるときは、縁の外へ広がって消える差し色の輪で促す(ユーザー決定・2026-10-22。見本で案A に決めた)。
   図の押してほしいスロットと同じ合図で、形は注文の札と同じ縁の外の線(callout-ring-box・外へ 5px・1.6s)。押せない(地のボタン)ときは出さない */
@media (prefers-reduced-motion: no-preference) {
  button.buy.once:not(:disabled, [aria-disabled="true"]), button.buy.near:not(:disabled) { outline: 2.5px solid transparent; animation: callout-ring-box 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
}
/* 「あと少し」の札(ui/near-view.ts)。見た目は速さのブーストの開いた札(.bst-card)と同じ。押した所の上に開き、図は暗くしない。
   位置は transform で毎フレーム押した所に合わせる。戻ってきたときの札・暗幕より下 */
.nearcard { position: fixed; left: 0; top: 0; z-index: 18; }
/* 「売る」の中身(押したときに沈む)。位置は外の g が持つ */
.tsell .tpress { transform-box: fill-box; transform-origin: center; }
/* 売ったときに浮かぶ額と、右上の所持金へ飛ぶ金貨の層。画面全体の上に重ね、触れない */
.coinfx { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.cfly { position: absolute; left: 0; top: 0; width: 18px; height: 18px; opacity: 0; will-change: transform; }
.cfloat { position: absolute; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; color: var(--ink); text-shadow: 0 0 3px var(--panel), 0 0 3px var(--panel); }
.cfloat .coin { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .coinfx { display: none; } }

/* ───────── 手伝い(ui/helper-view.ts。ユーザー決定・2026-10-20。見本で決めた。design-rules「手伝い」) ─────────
   手伝いは紫(効果)。スロットの枠・バー・線の色は今までどおり状態だけを表す。
   札は図の左下(操作のヒントの上。.mapfoot)に浮かぶ DOM。待機している人がいれば差し色の縁(押せる)、駒を選んでいる間は青(選択中) */
.helpers { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px 8px; display: grid; gap: 5px; box-shadow: 0 4px 14px var(--shadow); touch-action: none; }
.helpers[hidden] { display: none; }
.helpers.go { border-color: var(--accent); }
.helpers.hpick { border-color: var(--select); box-shadow: 0 0 0 1px var(--select), 0 4px 14px var(--shadow); }
.hhead { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.hcount { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--ink-2); }
.hhead > .ftog { margin: -4px -5px -4px -4px; }
/* 畳んだ形(ui/panel-fold.ts・2026-10-25): 紫の駒・待機/雇った人数・雇うボタン。待機している人がいれば差し色の縁(押せる。札と同じ) */
.hfold.go { border-color: var(--accent); }
.hfold > svg:first-child { width: 22px; height: 22px; flex: none; }
.hfold > .num { font-size: 13px; font-weight: 700; }
.hfold .hhire { min-height: 24px; }
.htoks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 手伝いの駒(ui/helper-view.ts の createHelperPiece。札 .htok と詳細の欄 .hpiece で同じ形。ユーザー決定・2026-10-22。見本で C2 改に決めた)。
   待機 = 灯の精の絵(.hbody)。置いている = 地の色の輪(.hring)に置いた先のスロットの絵(.hpic)と、右下に小さな灯の精の印(.hmini)。
   紫の輪にすると、どれも動いている(押せる)ように見えたので、輪は地の色にして待機の駒だけを目立たせた。
   いま選んでいるスロットの手伝いは輪を青(選択中)。飛んでいる途中・掴んでいる間は場所だけ空ける(.gone) */
.htok, .hpiece { position: relative; display: block; border-radius: 50%; }
.htok { width: 26px; height: 26px; }
.htok[hidden] { display: none; }
.htok svg, .hpiece svg, .hfly svg { width: 100%; height: 100%; display: block; overflow: visible; }
.htok.wait, .htok.pick { cursor: grab; }
/* 札で選んで、スロットのタップを待っている待機の駒(ui/helper-view.ts の pick): 選択中の青の輪で囲み、少し浮かせて上下に揺らす。
   札の縁が青くなるだけでは、タップしても何も起きないように見えた(ユーザー決定・2026-10-26。見本で案1に決めた) */
.htok.pick { box-shadow: 0 0 0 2.5px var(--panel), 0 0 0 4.5px var(--select); transform: translateY(-3px); }
@keyframes helper-pick-bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: no-preference) { .htok.pick { animation: helper-pick-bob 1.1s ease-in-out infinite; } }
.htok.set { cursor: pointer; }
.hring, .hmini { display: none; }
:is(.htok, .hpiece).set > .hbody { display: none; }
:is(.htok, .hpiece).set > .hring { display: grid; place-items: center; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--line); background: var(--panel-2); }
:is(.htok, .hpiece).set > .hmini { display: block; position: absolute; right: -5px; bottom: -4px; width: 13px; height: 13px; }
:is(.htok, .hpiece).set.mine > .hring { border-color: var(--select); border-width: 2px; }
.hpic { display: block; width: 66%; height: 66%; background-repeat: no-repeat; }
.htok.gone { visibility: hidden; }
/* 駒: 灯の精(ui/helper-view.ts の helperWisp。ユーザー決定・2026-10-28。見本で「C 羽のある光・夜の紫・動きなし」に決めた)。
   丸は夜の紫(紫を面に 30% 混ぜた暗い地)に紫の縁、中に紫の羽と光のにじみ、芯は文字の色で白く光らせる。
   前の紫の面のままだと、白い芯と地の明るさが近く光って見えなかった。芯を息づかせる動きは入れない(動いているスロットの灯りの「息をする」と意味が重なる) */
.hdisc { fill: color-mix(in srgb, var(--boost) 30%, var(--panel)); stroke: var(--boost); stroke-width: 1.6; }
.hwing { fill: var(--boost); opacity: .9; }
.hhalo { fill: var(--boost); opacity: .9; }
.hcore { fill: var(--ink); }
.hhire { display: inline-flex; align-items: center; gap: 3px; min-height: 26px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
/* 雇えるときは差し色の面と、縁の外へ広がって消える差し色の輪(1回限りの購入ボタンと同じ合図。ユーザー指示・2026-10-22
   「手伝いを追加購入するボタンは、黄色のボタン＋パルス表現を入れて」。前は差し色の縁だけ) */
.hhire:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) {
  .hhire:not(:disabled) { outline: 2.5px solid transparent; animation: callout-ring-box 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
}
.hhire[hidden] { display: none; }
.hhire .coin { width: 13px; height: 13px; }
/* 雇えないとき: 薄くせず、額を赤(購入ボタンと同じ「足りない = 赤」。2026-10-22) */
.hhire.short:disabled { opacity: 1; color: var(--ink-2); }
.hhire.short .num { color: var(--full); }
/* 飛ぶ駒(層は #coinfx)・雇ったときの札の描き込み(差し色) */
.hfly { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; will-change: transform; filter: drop-shadow(0 1px 2px var(--shadow)); }
.hdraw { position: absolute; left: -1px; top: -1px; overflow: visible; pointer-events: none; }
.hdraw rect { fill: none; stroke: var(--fx); stroke-width: 2.5; filter: drop-shadow(0 0 3px var(--fx)); }
/* スロットに置いた駒(枠の右上の角)。回る輪は速さの倍率だけ速く回す */
.htoken { cursor: grab; }
.hpop, .hslide { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .slotn.helped .wspin.go .wrot { animation-duration: calc(1.6s / var(--helper-rate)); } }
/* 手伝いのオーラ(ユーザー決定・2026-10-21。見本で案D「オーラ」に決めた)。枠の下に置いた紫の縁を、map-view.ts のフィルタでぼかしてゆがめる。
   動いている間は炎のように揺らめいて明るさが揺れ、光の粒が立ちのぼる。止まっている間(材料待ち・満杯・一時停止)は揺れないうっすらした縁だけ
   (速くなっていないのに燃えていると嘘になり、状態の黄・赤より目立つため)。外へ広がって消える輪は「押して」の合図なので使わない */
.haura { display: none; pointer-events: none; }
.slotn.aura .haura { display: inline; filter: url(#haura-still); opacity: .35; }
.hflame { fill: none; stroke: var(--boost); stroke-width: 7; }
.hmote { fill: var(--boost); opacity: 0; --rise: -46px; }
/* 重ねがけ(ユーザー決定・2026-10-23。見本で決めた): 2人・3人で縁を太く、光の粒を足し、粒を高くのぼらせる(寄せたスロットが一番燃えて見える) */
.hmote.hm2, .hmote.hm3 { display: none; }
.slotn.hn2 .hmote.hm2, .slotn.hn3 .hmote.hm2, .slotn.hn3 .hmote.hm3 { display: inline; }
.slotn.hn2 .hflame { stroke-width: 9; }
.slotn.hn3 .hflame { stroke-width: 11; }
.slotn.hn2 .hmote { --rise: -54px; }
.slotn.hn3 .hmote { --rise: -62px; }
@keyframes hflicker { from { opacity: .7; } 50% { opacity: 1; } to { opacity: .8; } }
@keyframes hmote {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--rise)); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .slotn.aura.run .haura { filter: url(#haura); opacity: 1; animation: hflicker 1.1s ease-in-out infinite alternate; }
  .slotn.aura.run .hmote { animation: hmote var(--sec) linear var(--delay) infinite; }
}
/* 掴んだ駒・選んだ駒を置けるスロット: 押せる(差し色)の縁と、広がって消える輪(輪は上の「タップを促す合図」の所) */
.slotn.hcan .sbox { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: none; }
/* 掴んだ駒の下の、離せばそこへ置かれるスロット(ユーザー決定・2026-10-21。見本で案A に決めた。helper-view の helperHoverSlot)。
   縁を青(選択中)の太い線にして輪を止め、少し持ち上げ、角(駒が着く所)に駒の影を出す。ほかの置けるスロットは輪を細く薄くする */
.slift { transform-box: fill-box; transform-origin: center; }
.slotn.hcan.hon .sring { display: none; }
.slotn.hcan.hon .sbox { stroke: var(--select) !important; stroke-width: 4; stroke-dasharray: none; }
.slotn.hcan.hon .slift { transform: scale(1.03); filter: drop-shadow(0 3px 5px var(--shadow)); }
.htoken.hghost { opacity: .5; }
.htoken.hghost .hdisc { stroke-dasharray: 3 2; }
@keyframes callout-ring-soft {
  0% { transform: scale(1, 1); opacity: .45; }
  70%, 100% { transform: scale(var(--sx), var(--sy)); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .slift { transition: transform .14s ease-out, filter .14s ease-out; }
  .hhover .slotn.hcan:not(.hon) .sring { stroke-width: 1.5; animation-name: callout-ring-soft; }
}
/* 駒が着いた: 枠が紫で一瞬光る(光の @keyframes には終わりの値を必ず書く) */
@keyframes hglow {
  0% { filter: drop-shadow(0 0 0 transparent); }
  30% { filter: drop-shadow(0 0 9px var(--boost)); }
  100% { filter: drop-shadow(0 0 0 transparent); }
}
@media (prefers-reduced-motion: no-preference) { .slotn.hglow { animation: hglow .8s cubic-bezier(.2, .6, .35, 1); } }
/* 詳細の欄: 手伝いの駒を雇った順の席に1行3つずつ(panel-view.ts の helperSection)。駒の下に置いた先の状態のアイコンと名前(状態の色)。
   押せない駒(手伝いのいるスロットの、ほかの駒)は薄くする */
/* 見出しの右に、そのスロットの手伝いの人数と上限(「2/3」。数字だけ。ユーザー決定・2026-10-23) */
.insp h3.hhead3 { display: flex; align-items: baseline; }
.hstack { margin-left: auto; letter-spacing: 0; }
.hseats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.hseat { display: grid; justify-items: center; gap: 5px; min-width: 0; min-height: 0; padding: 6px 2px; border: 0; background: transparent; border-radius: 8px; }
.hseat:hover:not(:disabled) { border: 0; background: var(--panel); }
.hseat:disabled { opacity: .4; }
.hpiece { width: 44px; height: 44px; }
.hpiece.set > .hring { border-width: 2px; }
.hpiece.set.mine > .hring { border-width: 2.5px; }
.hpiece.set > .hmini { right: -6px; bottom: -4px; width: 20px; height: 20px; }
/* 席の名前は「…」で切らずに折り返して全部出す(英語でも13個の名前が切れていた。ユーザー決定・2026-10-28・見本の案A) */
.hseatnm { display: inline-flex; align-items: flex-start; gap: 3px; max-width: 100%; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.hseatnm > span { min-width: 0; text-align: center; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.hmark { flex: none; width: 13px; height: 13px; margin-top: 1px; overflow: visible; }
.hseatnm.run { color: var(--run); }
.hseatnm.in { color: var(--wait); }

/* ───────── 相場の知らせ(ui/market-view.ts。ユーザー決定・2026-10-20。design-rules「相場」) ─────────
   【2026-10-21】通知のような1行のピルにした(見本の M1)。図の上の真ん中(詳細の欄が開いたらその左の残りの真ん中・狭い画面は右上)。
   縁と倍率と残り時間のバーは紫(上乗せ)。
   【2026-10-22】来たら真ん中から横に開き、倍率がめくれて上がり、光って矢印が立ちのぼり、紫の光が在庫の札へ飛ぶ(見本の B+C ③。動きは market-view.ts) */
.market { position: absolute; top: 10px; left: 0; right: 0; z-index: 7; display: flex; justify-content: center; pointer-events: none; }
.market[hidden] { display: none; }
.mnote { pointer-events: auto; position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); height: 30px; min-height: 0; padding: 0 10px 0 6px;
  border-radius: 15px; background: var(--panel); border: 1.5px solid var(--boost); box-shadow: 0 4px 14px var(--shadow); font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink);
  overflow: hidden; white-space: nowrap; cursor: pointer; }
.mnote .oicon { width: 20px; height: 20px; }
/* 「高騰中」の札: 紫の地に白抜き(ユーザー決定・2026-10-21・見本の A)。狭い画面では出さない(下の @media) */
.mlbl { flex: none; padding: 1px 7px; border-radius: 9px; background: var(--boost); color: var(--panel); font-size: 11px; letter-spacing: .04em; }
.mname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 倍率: 外の箱がめくれを切り取り(決まったら弾む)、中の文字がめくれる */
.mmul { color: var(--boost); display: inline-block; overflow: hidden; }
.mmulv { display: inline-block; }
/* 倍率が決まったとき: ピルを斜めに走る光(地の光 --shine。特別なもの)・ピルから広がる紫の波紋・まわりに立ちのぼる紫の矢印 */
.mshine { position: absolute; inset: -2px; pointer-events: none; background: linear-gradient(105deg, transparent 35%, var(--shine) 50%, transparent 65%); transform: translateX(-120%); }
.mring { position: absolute; border: 2.5px solid var(--boost); border-radius: 15px; opacity: 0; pointer-events: none; }
.mrise { position: absolute; opacity: 0; overflow: visible; pointer-events: none; }
.mrise path { fill: none; stroke: var(--boost); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* 紫の光が知らせから在庫の札へ飛ぶ(層は #coinfx) */
.mdot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--boost); box-shadow: 0 0 10px 3px color-mix(in srgb, var(--boost) 60%, transparent); opacity: 0; will-change: transform; }
.mnote .otime { margin-left: 2px; padding-left: 7px; border-left: 1px solid var(--line); font-size: 11.5px; font-weight: 400; color: var(--ink-2); }
.mbar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--boost); opacity: .55; transform-origin: left center; }
@keyframes mnoteglow {
  0% { box-shadow: 0 4px 14px var(--shadow); }
  40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--boost) 35%, transparent), 0 4px 14px var(--shadow); }
  100% { box-shadow: 0 4px 14px var(--shadow); }
}
@media (prefers-reduced-motion: no-preference) { .mnote.mglow { animation: mnoteglow 1.2s cubic-bezier(.2, .6, .35, 1); } }
/* 狭い画面: 左上の特別注文の札とぶつけないよう、右上に寄せる */
@media (max-width: 600px) {
  .market { left: auto; right: max(10px, env(safe-area-inset-right, 0px)); justify-content: flex-end; }
  .mnote { max-width: calc(100vw - 228px); }
  .mlbl { display: none; }
}
/* 知らせが出ている間は、上の真ん中のトースト(ui/notices.ts)をその下へずらす */
.mapwrap:has(.market:not([hidden])) .toast { top: 48px; }
/* 在庫の札の上の縁に重ねる「×2.4」。来たら弾んで紫で一度光る(光の @keyframes には終わりの値を書く) */
.mtag rect { fill: var(--boost); stroke: var(--panel); stroke-width: 1; }
.mtag text { font-family: var(--font-num); font-size: 12.5px; font-weight: 700; fill: var(--panel) !important; }
/* 相場の品の札の左に立ちのぼる紫の上向きの矢印(高騰の絵。手伝いの光の粒と同じ「立ちのぼる」語彙。動きを減らす設定では止めた1つだけ) */
.marrows { display: none; pointer-events: none; }
.tank.mkt .marrows { display: inline; }
.marrows path { fill: none; stroke: var(--boost); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.marrows path:first-child { opacity: .85; }
@keyframes arise { 0% { transform: translateY(6px); opacity: 0; } 25% { opacity: .9; } 100% { transform: translateY(-22px); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .marrows path { animation: arise 1.8s ease-out infinite backwards; }
  .marrows path:nth-child(2) { animation-delay: .6s; }
  .marrows path:nth-child(3) { animation-delay: 1.2s; }
}
.mtagin { transform-box: fill-box; transform-origin: center; }
@keyframes mtagglow {
  0% { filter: drop-shadow(0 0 0 transparent); }
  35% { filter: drop-shadow(0 0 7px var(--boost)); }
  100% { filter: drop-shadow(0 0 0 transparent); }
}
@media (prefers-reduced-motion: no-preference) { .mtagin.mglow { animation: mtagglow .9s .15s cubic-bezier(.2, .6, .35, 1); } }
/* 光が着いたときに在庫の札の上へ噴き上がる紫の矢印(map-view の tagIn) */
.mburst { pointer-events: none; }
.mburst path { fill: none; stroke: var(--boost); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }

/* 序盤のチュートリアル(ui/tutorial-view.ts。ユーザー指示・2026-10-22。見本で決めた形: スポットライト＋指差し)。
   画面全体に重ね、指す所だけを角の丸い穴で抜く(穴の外の暗幕は穴の影で塗る)。層は触れない(穴の外の押下は main が止める)。
   吹き出しはトーストと同じ地(濃い地に明るい字 = その場で出て消える文字)。指差しの袖と押し込んだときの輪は差し色(押せる所を指す)。
   導いている間は .app に data-tut が付き、ほかの促し(広がる輪・弾み)を止める。指す所の促しだけ残す(design-rules「序盤のチュートリアル」) */
/* 大きな達成の演出の間の暗幕(ui/fx-veil.ts。ユーザー指示・2026-10-23)。チュートリアルと同じ --scrim で、照らすものだけを抜く */
/* 図(#vp)の外の層なので、作り直した直後に移り変わりを止める対象(test/linefilter.test.ts)にしない(visibility を先に書く) */
.fxveil { position: fixed; inset: 0; z-index: 19; pointer-events: none; overflow: hidden; opacity: 0; visibility: hidden; transition: visibility 0s linear .3s, opacity .3s ease; }
.fxveil.on { opacity: 1; visibility: visible; transition: visibility 0s, opacity .2s ease; }
.fxveil-spot { position: absolute; left: 0; top: 0; border-radius: 12px; box-shadow: 0 0 0 200vmax var(--scrim); }
/* 照らしているものの上の一言(ui/fx-veil.ts。開拓・自動化の知らせ。ユーザー決定・2026-10-23・見本の P3): 地の色の札に濃い字。色は足さない。
   暗幕が上がった後も少し残すので、暗幕の外で暗幕より上(知らせ .toast と同じ段)に置く。押下は受けない */
.fxsay { position: fixed; left: 0; top: 0; z-index: 20; pointer-events: none; width: max-content; max-width: min(360px, calc(100vw - 16px)); box-sizing: border-box; text-align: center; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; line-height: 1.35; box-shadow: 0 4px 14px var(--shadow); }
.fxsay[hidden] { display: none; }
/* 「Nice!」付きの一言(ui/fx-veil.ts の sayNice。CrazyGames の審査・2026-11-11)。文とボタンを1行に並べ、ボタンだけ押せる(差し色=押せる) */
.fxsay.nice { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; }
.fxsay-nice { pointer-events: auto; flex: none; background: var(--accent); border: 1px solid var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; line-height: 1.2; min-height: 34px; }
.fxsay-nice[hidden] { display: none; }
.tut { position: fixed; inset: 0; z-index: 28; pointer-events: none; overflow: hidden; }
.tut[hidden] { display: none; }
.tut-spot { position: absolute; left: 0; top: 0; border-radius: 10px; box-shadow: 0 0 0 200vmax var(--scrim); }
.tut-spot.round { border-radius: 50%; }
/* 穴を複数あける暗幕(初めての手伝いの2手目。置けるスロット全部に穴。ユーザー決定・2026-10-28)。塗りは SVG の形で、穴の要素の影は消す */
.tut-spot.multi { box-shadow: none; }
.tut-veil { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tut-veil[hidden] { display: none; }
.tut-veil path { fill: var(--scrim); }
.tut-tip { position: absolute; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 16px)); background: var(--ink); color: var(--panel); border-radius: 9px; padding: 9px 13px; font-size: 14px; line-height: 1.45; box-shadow: 0 6px 18px var(--shadow); }
.tut-tip .tut-n { font-size: 11px; opacity: .7; }
/* 初めての出来事のチュートリアルの「わかった」(押せる = 差し色の面。暗幕の上でここだけ押せる) */
.tut-tip .tut-ok { pointer-events: auto; flex: none; white-space: nowrap; }
.tut-tip::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.tut-tip[data-side="right"]::after { left: -5px; top: calc(50% - 6px); }
.tut-tip[data-side="left"]::after { right: -5px; top: calc(50% - 6px); }
.tut-tip[data-side="above"]::after { bottom: -5px; left: var(--tail); }
.tut-tip[data-side="below"]::after { top: -5px; left: var(--tail); }
/* 指差しの位置は指先(left/top)。手の絵は指先が原点に来るようにずらす(viewBox 44×52 の指先 (18.5, 2) を 52×62 に拡げた所) */
.tut-hand { position: absolute; width: 0; height: 0; }
/* 手ごと動かす・回す層(指先が原点)。画面の下の端では上から下向きに出す(手の絵が切れないように。2026-10-28) */
.tut-drag { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.tut-hand.flip .tut-drag > svg { rotate: 180deg; }
.tut-hand svg { position: absolute; left: -22px; top: -2.4px; width: 52px; height: 62px; overflow: visible; transform-origin: 22px 2.4px; }
/* 駒をつまんで運ぶ手つき(初めての手伝い)。つまんだ駒は手伝いの駒と同じ絵で、指先の下に少し大きく */
.tut-ghost { display: none; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; }
.tut-ghost svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tut-hand.carry .tut-ghost { display: block; }
.tut-hand.carry .tut-tap { display: none; }
.tut-glove { fill: var(--panel); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.tut-cuff { fill: var(--accent); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.tut-tap { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--accent); opacity: 0; box-sizing: border-box; }
/* 押す手つき(押し込む → 戻る)をくり返し、押し込んだ瞬間に指先から輪が広がる(1.2s) */
@keyframes tut-press {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(-3px, -5px) scale(1); }
  55% { transform: translate(0, 0) scale(.92); }
}
@keyframes tut-tap {
  0%, 55% { opacity: 0; transform: scale(.4); }
  60% { opacity: .9; transform: scale(.6); }
  100% { opacity: 0; transform: scale(1.6); }
}
@media (prefers-reduced-motion: no-preference) {
  .tut-hand:not(.carry) svg { animation: tut-press 1.2s ease-in-out infinite; }
  .tut-tap { animation: tut-tap 1.2s linear infinite; }
}
/* ほかの促しを止める(色はそのまま。輪と弾みだけ) */
.app[data-tut] .slotn.callout .sring, .app[data-tut] .buildn.can .sring, .app[data-tut] .frame.ghost.ready .fring { display: none; animation: none; }
.app[data-tut] .slotn.callout .walert .wpop, .app[data-tut] .buildn.can .wplus .wpop, .app[data-tut] .frame.ghost.ready .gopen .wpop { animation: none; }
.app[data-tut] button.buy.once, .app[data-tut] .ochip.go, .app[data-tut] .hhire { animation: none; }
/* 指す所の促しだけ残す(上の規則より詳しく書く) */
@media (prefers-reduced-motion: no-preference) {
  .app[data-tut="tapMeadow"] .slotn.callout[data-slot="meadow"] .sring, .app[data-tut="alertMeadow"] .slotn.callout[data-slot="meadow"] .sring,
  .app[data-tut="tapWheat"] .slotn.callout[data-slot="f_wheat"] .sring, .app[data-tut="buildForest"] .buildn.can[data-build="gather"] .sring { display: inline; animation: callout-ring 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
  .app[data-tut="alertMeadow"] .slotn.callout[data-slot="meadow"] .walert .wpop, .app[data-tut="buildForest"] .buildn.can[data-build="gather"] .wplus .wpop { animation: callout-bob 1.6s ease-in-out infinite; }
  .app[data-tut="openMeadow"] .frame.ghost.ready .fring, .app[data-tut="openFarm"] .frame.ghost.ready .fring { display: inline; animation: callout-ring 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
  .app[data-tut="openMeadow"] .frame.ghost.ready .gopen[data-ghost="meadow"] .wpop, .app[data-tut="openFarm"] .frame.ghost.ready .gopen[data-ghost="farm"] .wpop { animation: callout-bob-soft 1.6s ease-in-out infinite; }
  /* 初めての手伝いの1手目: 札の「雇う」の広がる輪は残す(2026-10-28) */
  .app[data-tut="helperHire"] .hhire:not(:disabled) { animation: callout-ring-box 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
  .app[data-tut="autoMeadow"] button.buy.once:not(:disabled, [aria-disabled="true"]) { animation: callout-ring-box 1.6s cubic-bezier(.3, .7, .3, 1) infinite; }
}

/* 演出の段(ui/fx-level.ts。`perf` スキル。ユーザー指示・2026-10-23「safariだと最初からfpsが30程度…」)。段は積み上げで、.app に class が足されていく。
   いまはデバッグのビルドの設定の画面で手で選び、実機で段ごとの fps を見てどの演出が重いかを決めるためのもの。止め方は !important で、
   演出の @keyframes の中の filter にも勝たせる(!important の宣言はアニメーションより強い)。
   右端は必ず class で絞る(`*` で書くと、段 0 でも全要素のスタイルの計算でこの規則を確かめることになる) */
/* 段 1: 図の光を外す(WebKit は SVG の要素の filter を CPU で毎コマ描き直す見当)。手伝いのオーラは揺らめかない方のぼかし */
.app.fx-noglow .fdot, .app.fx-noglow .tbox, .app.fx-noglow .sbox, .app.fx-noglow .sb, .app.fx-noglow .slotn, .app.fx-noglow .slift, .app.fx-noglow .mtagin,
.app.fx-noglow .fxdraw, .app.fx-noglow .fxlead, .app.fx-noglow .fxripple, .app.fx-noglow .fxcp, .app.fx-noglow .expring,
.app.fx-noglow .edge, .app.fx-noglow .fbox, .app.fx-noglow .fcard { filter: none !important; }
.app.fx-noglow .eglow, .app.fx-noglow .sglow { display: none; }
.app.fx-noglow .lfilter, .app.fx-noglow .mapctl, .app.fx-noglow .fmini, .app.fx-noglow .ocard, .app.fx-noglow .helpers, .app.fx-noglow .hudfloat .stat.money,
.app.fx-noglow .hudfloat .hudbtn, .app.fx-noglow .mnote, .app.fx-noglow .insp { backdrop-filter: none; }
.app.fx-noglow .slotn.aura .haura { filter: url(#haura-still) !important; }
/* 段 2: 飾りの無限の動きを止める(タップを促す合図の輪・弾む印は残す。design-rules) */
.app.fx-still .edge.flow.auto, .app.fx-still .wspin.go .wrot, .app.fx-still .slotn.aura.run .haura, .app.fx-still .slotn.aura.run .hmote,
.app.fx-still .slotn.run:not(.recv) .sglow, .app.fx-still .ocard::after, .app.fx-still .marrows path, .app.fx-still .bst-sh, .app.fx-still .bst-aura, .app.fx-still .bst-mote { animation: none !important; }
/* 段 3: 渡る丸の残像と、はじける輪を出さない */
.app.fx-lite .ftrail, .app.fx-lite .fburst { display: none; }
/* 段 4: 背景の蛍を出さない(画面の書き換えを間引くのは main.ts・在庫の数を弾ませないのは map-view.ts) */
.app.fx-thin .ffly { display: none; }
/* 描き直すたびに始まる変化(線の濃さ・在庫の量・枠の塗り)も止める。間引いても、変化の続く間は図の SVG を毎コマ描き直していた */
.app.fx-thin .edge, .app.fx-thin .slotn, .app.fx-thin .tank, .app.fx-thin .tfill, .app.fx-thin .sbox { transition: none; }
/* 段 5(計測用): 渡る丸と大きな達成の演出を出さず、タップを促す合図の輪・弾む印も止める(design-rules の意味を崩すので計測用) */
.app.fx-off #fx, .app.fx-off #celeb { display: none; }
.app.fx-off .sring, .app.fx-off .fring, .app.fx-off .tring, .app.fx-off .wpop, .app.fx-off .ochip, .app.fx-off .buy, .app.fx-off .hhire,
.app.fx-off .tut-hand, .app.fx-off .tut-hand svg, .app.fx-off .tut-tap, .app.fx-off .htok.pick { animation: none !important; }

/* 浮かぶ札は、上の縁に月明かりが乗り、影で図から浮く(ユーザー決定・2026-10-27・見本で決めた)。同じ強さの規則より後ろに置くこと */
.lfilter, .mapctl, .fmini, .ocard, .helpers, .hudfloat .stat.money, .hudfloat .hudbtn, .mnote, .insp, .modal-card, .bst-card { box-shadow: 0 10px 26px var(--shadow), inset 0 1px 0 var(--rim); backdrop-filter: blur(4px); }

/* 灯りが伝う(ui/glow.ts。ユーザー決定・2026-10-27)。動いている線を光の帯が上流から下流へ渡り、届いたスロット・在庫が緑で一度灯る(灯る光は map-view.ts の Web Animations。色は下のトークン)。
   色は「動いている」の緑だけ。始まるまでは見せない(Web Animations で動いている間だけ opacity を上げる) */
.glowline { fill: none; stroke: var(--run-core); stroke-width: 4.5; stroke-linecap: round; opacity: 0; pointer-events: none; }
.glowline.glowhalo { stroke: color-mix(in srgb, var(--run) 40%, transparent); stroke-width: 13; }
