{
  "_doc": "試玩頁設定。時間一律秒。判定窗口是「誤差絕對值 ≤ 窗口」，誤差＝按下的歌曲時間 − 音符時間（正＝晚）。判定窗口內沒有音符的空按中斷連擊，扣一個 Perfect 分值的 25%，不計 Miss；正確擊打 ±1/60 秒其他軌、長按持續與撈麵路徑接觸豁免。音符過了 good 窗口還沒按就是 Miss。",
  "judgeWindowsSec": {
    "perfect": 0.04,
    "great": 0.08,
    "good": 0.12
  },
  "points": {
    "perfect": 1,
    "great": 0.7,
    "good": 0.4,
    "miss": 0
  },
  "score": {
    "version": "completion-v2",
    "max": 1000000,
    "completionShare": 0.92,
    "accuracyShare": 0.08,
    "comboShare": 0
  },
  "ranks": [
    {
      "id": "S",
      "min": 950000
    },
    {
      "id": "A",
      "min": 900000
    },
    {
      "id": "B",
      "min": 800000
    },
    {
      "id": "C",
      "min": 650000
    },
    {
      "id": "D",
      "min": 0
    }
  ],
  "keys": [
    [
      "KeyD",
      "KeyS"
    ],
    [
      "KeyF"
    ],
    [
      "KeyJ"
    ],
    [
      "KeyK",
      "KeyL"
    ]
  ],
  "keyLabels": [
    "D",
    "F",
    "J",
    "K"
  ],
  "approachSec": 1.35,
  "speed": {
    "default": 1.0,
    "min": 0.6,
    "max": 1.8,
    "step": 0.1
  },
  "leadInSec": 2.0,
  "endTailSec": 1.2,
  "offset": {
    "defaultUserMs": 0,
    "minMs": -300,
    "maxMs": 300,
    "useOutputLatency": true
  },
  "calibration": {
    "bpm": 85,
    "countIn": 2,
    "taps": 8
  },
  "audio": {
    "musicGain": 0.9,
    "sfxGain": 0.22
  },
  "chartsIndex": "charts/index.json",
  "noteSprites": {
    "kick": {
      "img": "img/note-kick.png",
      "label": "魚丸"
    },
    "clap": {
      "img": "img/note-clap.png",
      "label": "豆腐"
    },
    "snare": {
      "img": "img/note-snare.png",
      "label": "香菇"
    },
    "lead": {
      "img": "img/note-lead.png",
      "label": "番茄"
    },
    "crash": {
      "img": "img/note-crash.png",
      "label": "章魚鍋蓋"
    }
  },
  "characters": {
    "idle": "img/meimei-soup.png",
    "slam": "img/meimei-steam.png",
    "title": "img/meimei-cape.png"
  },
  "comboMilestone": 50,
  "meimeiStates": {
    "_doc": "v2：美美隨 combo 換狀態（像太鼓達人的咚醬）。combo ≥ minCombo 就升到該階；gogoSections 段落（SLAM）再升一階；斷 combo 前已有 oops.minCombo 以上，就跳「翻鍋」圖 holdSec 秒。bounce＝跟拍跳的高度（px）。每 comboMilestone combo 跳一下、combo 數字放大。",
    "tiers": [
      {
        "id": "calm",
        "label": "小火",
        "minCombo": 0,
        "img": "img/meimei-soup.png",
        "bounce": 8
      },
      {
        "id": "warm",
        "label": "中火",
        "minCombo": 10,
        "img": "img/meimei-chopsticks.png",
        "bounce": 14
      },
      {
        "id": "hot",
        "label": "大火",
        "minCombo": 30,
        "img": "img/meimei-fist.png",
        "bounce": 20
      },
      {
        "id": "boil",
        "label": "沸點",
        "minCombo": 60,
        "img": "img/meimei-steam.png",
        "bounce": 26
      }
    ],
    "gogoSections": [
      "slam"
    ],
    "oops": {
      "img": "img/meimei-oops.png",
      "minCombo": 5,
      "holdSec": 0.7
    }
  },
  "background": {
    "_doc": "v2：MV 背景（site/js/rhythm-bg.js）。影片亮度＝brightness.base ×（1 ＋ liftGain × lift），lift 由 MV grade 的 bri／sat／con 相對 ref 算出（DROP、SLAM 變亮，STRIP 變暗）；飽和度＝combo 曲線（0 → comboFull 從 comboMin 升到 comboMax）× MV grade 的 sat 比例。panel＝畫布上軌道面板的不透明度（上、中、判定區、鍋身），判定區最暗。sync：量「送上螢幕的那一格」對歌曲時間（requestVideoFrameCallback，平滑係數 dispSmooth），偏差超過 toleranceFrames 格就開始跳格校正，修到 dispTargetFrames 格以內（最多連跳 dispMaxSeeks 次），每次跳完等 dispSettleFrames 格再判斷；不調 playbackRate（實測 Chrome 每次調速後送上螢幕的格都會跳 1 格）。2026-10-08 control: a seek lands on the vsync grid (request plus a random 0 or +-16.7 ms), so one seek has about a one-in-three chance of landing inside dispTargetFrames; at most dispMaxSeeks seeks per episode, then dispCooldownFrames frames of rest for sub-frame errors. Two consecutive frames beyond one frame seek at once; the first frame after a seek is a transient and is skipped; the first settled error after play() teaches leadStart for the next round. resumeLeadSec: on resume the held frame is aimed this far ahead to absorb the 1-2 vsync play-to-present delay.",
    "track": "bg/bgm02-boil/track.json",
    "bootWaitSec": 6,
    "brightness": {
      "base": 0.56,
      "liftGain": 0.5,
      "min": 0.3,
      "max": 0.8
    },
    "lift": {
      "bri": 4,
      "sat": 1.5,
      "con": 1.0,
      "ref": {
        "bri": 1,
        "sat": 1.06,
        "con": 1.05
      }
    },
    "saturation": {
      "comboMin": 0.72,
      "comboMax": 1.4,
      "comboFull": 100,
      "gradeGain": 1,
      "min": 0.4,
      "max": 1.9,
      "smoothSec": 0.35
    },
    "tint": {
      "gain": 0.5
    },
    "vignette": {
      "base": 0.15,
      "gain": 0.55
    },
    "panel": {
      "top": 0.42,
      "mid": 0.62,
      "judgeFrom": 0.76,
      "judge": 0.86,
      "pot": 0.92,
      "edge": 0.35
    },
    "poster": {
      "brightness": 0.5,
      "saturation": 0.9
    },
    "sync": {
      "toleranceFrames": 0.4,
      "settleFrames": 0.1,
      "seekSec": 0.25,
      "rateGain": 2.0,
      "rateMaxAdj": 0.25,
      "startLeadSec": 0.005,
      "seekLeadSec": 0.06,
      "aimAheadSec": 0,
      "dispSmooth": 0.2,
      "dispSettleFrames": 4,
      "dispTargetFrames": 0.3,
      "dispMaxSeeks": 3,
      "dispCooldownFrames": 150,
      "resumeLeadSec": 0.025
    }
  },
  "longNotes": {
    "_doc": "長音符判定（2026-10-09 從 proto/hold-slide 接入）。hold＝頭判定沿用 judgeWindowsSec；按住期間每 holdTickBeats 拍取樣（記錄用）；放開早於 end − releaseTolSec 秒就斷（整顆 Miss、combo 歸零），之後放開或撐到底＝頭判定等級（尾不另外判定）。slide＝頭判定時手指 x 與光帶 x 差 ≤ slideHeadTolLanes；之後每幀比對，差 ≤ slideTolLanes 軌算在帶上；完成時在帶上時間比例 ≥ slideRatio.perfect／great／good 給該等級、更低＝Miss，再和頭判定取較差的；中途放開＝斷。長音符一顆只在結束時加一次 combo。",
    "holdTickBeats": 0.125,
    "releaseTolSec": 0.12,
    "slideTolLanes": 0.6,
    "slideHeadTolLanes": 0.75,
    "slideRatio": {
      "perfect": 0.9,
      "great": 0.75,
      "good": 0.45
    }
  },
  "view3d": {
    "_doc": "假 3D 跑道（標題勾選，記在 localStorage meimei:rhythm:v2:view；預設 2D；?view=3d|2d 只覆寫一次）。只在繪圖層：farScale＝跑道最遠端（音符出現處）的寬度與音符大小相對判定線的比例；判定線位置、判定線上的軌寬、判定時間都和 2D 一樣。點在判定線以上時依該高度的透視軌寬換算是哪一軌。",
    "farScale": 0.3
  }
}
