/* SWEET RUSH V2 試作の追加分（本番の game.css の上に重ねる）。
   光る縁取り・虹色のグラデーション・発光の影は足さない（memory「見た目を既定の表現で済ませない」）。色は本番の盤面（薄いラベンダーと白の枠・濃い紫）から取る */

/* 試作の帯（サンダーハートの試作と同じ並び。色は平らにした） */
/* z-index は本番の読み込み画面（#loading-screen 99999）より上。TAP TO START の前でも「…」の中が隠れないように */
.demo-bar { position: relative; z-index: 100000; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; justify-content: center;
  padding: 4px 10px; background: #1a0520; border-bottom: 1px solid rgba(232, 223, 240, .25);
  color: #e8dff0; font: 600 11px/1.4 "Yu Gothic", "Hiragino Sans", Meiryo, system-ui, sans-serif; }
.demo-bar b { color: #fff; font-weight: 800; }
.demo-bar .demo-tag { flex: none; color: #2b0a3d; background: #e8dff0; border-radius: 999px; padding: 1px 7px; font-weight: 800; }
.demo-bar .demo-stats { flex: 0 1 auto; min-width: 0; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar button { flex: none; font: 700 11px/1 inherit; font-family: inherit; color: #e8dff0; background: transparent; border: 1px solid rgba(232, 223, 240, .55);
  border-radius: 999px; padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.demo-bar button.demo-primary { color: #2b0a3d; background: #ffd23f; border-color: #ffd23f; padding: 5px 12px; }
.demo-bar button.demo-primary.is-on { color: #ffd23f; background: #2b0a3d; border-color: #ffd23f; }
.demo-bar .demo-opt select { font: 700 11px/1.2 inherit; font-family: inherit; color: #e8dff0; background: #2b0a3d; border: 1px solid rgba(232, 223, 240, .55);
  border-radius: 6px; padding: 2px 3px; }
.demo-bar details { position: relative; flex: none; }
.demo-bar summary { cursor: pointer; list-style: none; color: #cbbfd8; padding: 2px 4px; }
.demo-bar summary::-webkit-details-marker { display: none; }
.demo-bar .demo-menu { position: absolute; right: 0; top: calc(100% + 6px); display: grid; gap: 7px; padding: 10px; min-width: 240px;
  background: #241030; border: 1px solid rgba(232, 223, 240, .3); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.demo-bar .demo-menu p { margin: 0; color: #cbbfd8; font-weight: 500; white-space: normal; }
.demo-bar .demo-opt { display: flex; align-items: center; gap: 6px; color: #e8dff0; cursor: pointer; white-space: nowrap; }
.demo-bar .demo-opt input { margin: 0; accent-color: #ffd23f; }

/* 盤面の上に重ねる層（play-zone.js が canvas の盤面の位置に合わせる） */
#sr-v2-layer { position: absolute; z-index: 110; pointer-events: none; overflow: visible; }

/* ロケットの印: マスの右上に、絵柄をふさがない大きさで付く（本番の未使用の 虹.png） */
.sr-rocket { position: absolute; width: calc(var(--cell) * .56); height: calc(var(--cell) * .56); margin-left: calc(var(--cell) * .47); margin-top: calc(var(--cell) * -.05);
  object-fit: contain; opacity: 0; transform: scale(0); transform-origin: 50% 60%;
  filter: drop-shadow(0 2px 2px rgba(43, 10, 61, .55)); }
.sr-rocket.is-in { opacity: 1; transform: scale(1); animation: srRocketIn .32s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes srRocketIn { 0% { opacity: 0; transform: scale(0) rotate(-20deg); } 60% { opacity: 1; transform: scale(1.25) rotate(6deg); } 100% { opacity: 1; transform: scale(1) rotate(0deg); } }

/* ゾーンのキャンディ（本番の残基のアイコン life.png） */
.sr-candy { position: absolute; width: calc(var(--cell) * .62); height: calc(var(--cell) * .62); margin-left: calc(var(--cell) * .19); margin-top: calc(var(--cell) * .19);
  object-fit: contain; filter: drop-shadow(0 2px 2px rgba(43, 10, 61, .5)); }

/* スポットの合計の札（盤面の下の縁に掛ける。上は WIN の枠があるので下。白は本番の盤面の白い枠と同じ） */
.sr-total { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 6px;
  padding: 3px 12px 4px; background: #2b0a3d; border: 2px solid #fff; border-radius: 999px; color: #fff; white-space: nowrap; opacity: 0;
  font-family: "Outfit", system-ui, sans-serif; }
.sr-total.is-in { opacity: 1; transition: opacity .3s ease; }
.sr-total-label { font-size: 10px; font-weight: 700; color: #e8dff0; letter-spacing: .04em; }
.sr-total-value { display: inline-block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 終わり ② 真ん中で数え上げる: 同じ札を盤面の真ん中に大きく（本番の倍率の式と同じ 1.8倍前後）。まわりは少し沈めるだけで、スポットは透けて見える */
.sr-total.sr-total-center { top: 50%; z-index: 2; }
.sr-dim { position: absolute; inset: 0; z-index: 1; background: rgba(26, 5, 32, .38); border-radius: 10px; opacity: 0; }

/* 説明の2ページ目（V2 の試作の決まり） */
.sr-rule-box { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.7; border: 1px solid rgba(255, 255, 255, .12); margin-bottom: 12px; }
.sr-rule-title { color: #ffd700; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.sr-rule-grid { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.sr-rule-grid > span:nth-child(odd) { color: #ffd700; white-space: nowrap; }
