/* 来一拳 (fight lane): the #try section. Replaces the .try / .fight* / .keys / .key / .score / .snd rules of style.css. */
.try { background: repeating-linear-gradient(-28deg, #141019 0 40px, #191321 40px 80px); border-top: 4px solid var(--red); border-bottom: 4px solid var(--red); }
.fight { max-width: 860px; margin: 0 auto; }

/* tabs: mode (三式猜拳 / 红蓝光试炼) and player (一毛 / 刃) */
.fight-tabs { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin: -4px 0 16px; }
.ftabs { display: flex; gap: 8px; }
.ftab, .ctab { position: relative; border: 3px solid var(--ink); background: var(--ink3); color: var(--muted); font-weight: 900; line-height: 1.2;
  transform: skewX(-10deg); box-shadow: 4px 4px 0 var(--ink); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ftab { padding: 7px 16px; font-size: 16px; }
.ftab small { margin-left: 6px; font-size: 12px; font-weight: 700; opacity: .8; }
.ctab { padding: 6px 14px; font-size: 15px; }
.ctab small { margin-left: 4px; font-size: 11px; font-weight: 800; opacity: .8; }
.ctab em { margin-left: 5px; padding: 0 5px; font-style: normal; font-family: var(--latin); font-size: 10px; letter-spacing: .05em; vertical-align: 2px; background: var(--yellow); color: var(--ink); }
.ftab:hover, .ctab:hover { color: var(--paper); }
.ftab.on { background: var(--red); color: var(--paper); }
.ftab.on[data-mode="boss"] { background: linear-gradient(90deg, var(--red) 0 50%, #2f7fd8 50% 100%); }
.ctab.on { background: var(--paper); color: var(--ink); }
.ftab:focus-visible, .ctab:focus-visible, .key:focus-visible, .snd:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.fight-top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin: 0 0 12px; }
.try-lead { margin: 0; color: var(--text); }
.snd { flex: none; border: 2px solid var(--paper); background: none; color: var(--paper); font: inherit; font-size: 13px; font-weight: 700; padding: 2px 10px; cursor: pointer; touch-action: manipulation; }
.snd:hover { background: var(--paper); color: var(--ink); }
.snd[aria-pressed="false"] { opacity: .55; }
.fight-stage { position: relative; margin: 0 0 18px; border: 3px solid var(--paper); box-shadow: 8px 8px 0 var(--red); background: #000; }
.fight[data-mode="boss"] .fight-stage { box-shadow: 8px 8px 0 #2f7fd8, 14px 14px 0 var(--red); }
.fight-cv { display: block; width: 100%; aspect-ratio: 820 / 410; touch-action: manipulation; }
.fight-load { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.fight-load[hidden] { display: none; }

/* the three keys: big, thumb-friendly, no double-tap zoom, no text selection on rapid taps */
.keys { display: flex; justify-content: center; gap: 14px; }
.key { width: clamp(92px, 27vw, 140px); min-height: 60px; padding: 8px 0 10px; border: 3px solid var(--ink); font-size: 22px; font-weight: 900; line-height: 1.15;
  box-shadow: 0 6px 0 var(--ink); transform: skewX(-8deg); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent; }
.key b { display: block; font-family: var(--latin); font-size: 30px; line-height: 1.1; color: inherit; }
.key.hi { background: var(--red); color: var(--paper); }
.key.mid { background: var(--cyan); color: var(--ink); }
.key.lo { background: var(--yellow); color: var(--ink); }
.key:active, .key.press { transform: skewX(-8deg) translateY(4px); box-shadow: 0 2px 0 var(--ink); }

.score { display: flex; justify-content: center; gap: 18px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.score i { font-style: normal; }
.score b { font-family: var(--latin); color: var(--paper); }
.try-rule { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.try-rule[hidden] { display: none; }

@media (max-width: 560px) {
  .fight-tabs { gap: 8px; }
  .ftabs-mode { width: 100%; }
  .ftab { flex: 1; padding: 7px 6px; font-size: 15px; }
  .ftab small { display: block; margin: 0; }
  .keys { gap: 10px; }
  .key { min-height: 64px; }
}
