/* 町の入口の 手ざわり（/town/feel.js と 対）。アプリの web/src/ui/feel.css と 同じ 数値（企業版 town.css にそろえる）：
   主のボタン 2px 沈み 影 3px→1px／ゴースト 1px／丸い道具・タブ 0.94倍／そのほか 0.97倍／0.08秒。
   town.css は ほかの担当も 触るので、ここに 分けて 置く（town.js と /town/index.html が 読み込む）。 */
:where(button, a.btn, a.btn2, a.t-btn, a.t-alt, .t-top nav a, [role="button"], [role="tab"], summary) { -webkit-tap-highlight-color: transparent; }
:where(.t-top nav a, .t-top nav button, .t-tour button, .music-btn, .m-x, .m-btn-sound, [role="tab"], .jh-link, .linkbtn, .skip, .next, .t-intro-skip) { transition: scale .08s; }

/* 主の ボタン：2px 沈み、下の 影が 1px に */
.t-btn[data-press="btn"] { transform: translateY(2px); }
.t-btn.t-orange:active, .t-btn.t-orange[data-press] { transform: translateY(2px); box-shadow: 0 1px 0 var(--t-orange-d, #b85c05); }
.t-btn.t-teal:active, .t-btn.t-teal[data-press] { transform: translateY(2px); box-shadow: 0 1px 0 #073f43; }
.btn[data-press="btn"], .btn-primary:active { transform: translateY(2px); }
.btn-primary[data-press], .btn-primary:active { box-shadow: 0 2px 0 #b85e08; }
.m-go[data-press] { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .22); }

/* ゴースト・枠だけの ボタン：1px */
.t-btn.t-plain:active, [data-press="ghost"] { transform: translateY(1px); }

/* 丸い 道具・タブ：0.94倍 */
[data-press="tab"], .music-btn:active, .m-x:active, [role="tab"]:active { scale: .94; }

/* そのほか（上の 札・案内の ボタン・リンクの ボタン など）：0.97倍。自前の 押し方が ある物は そのまま */
[data-press="soft"]:not(.t-alt, .t-stockdoor, .slot, .t-alt-soon) { scale: .97; }

/* 押せない 物は 沈まない */
[disabled][data-press], [aria-disabled="true"][data-press], .t-alt-soon[data-press] { scale: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-press], [data-press]:active, .t-btn:active, .btn:active, .music-btn:active, .m-x:active, [role="tab"]:active { scale: none !important; transform: none !important; }
}
