/* ===== 連打勝負 ===== */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(246, 239, 224, .12); }
.seg button { border: 0; border-radius: 9px; padding: 10px 0; background: none; color: var(--cream); font: 700 15px var(--sans); cursor: pointer; line-height: 1.2; }
.seg button small { display: block; font-size: 10px; font-weight: 400; opacity: .8; }
.seg button.on { background: var(--cream); color: var(--ink); }

.rbar { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(246, 239, 224, .12); }
.rbar b { font-size: 15px; }
.rbar span { font-size: 11px; opacity: .85; }
.rbar.hot { background: linear-gradient(180deg, #d9533c, var(--red-dark)); }

.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0 10px; text-align: center; }
.score .side { display: grid; gap: 4px; }
.score .nm { font-family: var(--serif); font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score .vs { color: var(--lantern); font-family: var(--serif); font-weight: 900; }
.stars { display: flex; justify-content: center; gap: 4px; }
.stars i { width: 16px; height: 16px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: rgba(246, 239, 224, .25); }
.stars i.on { background: var(--lantern); }

.rounds { display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; background: var(--cream); color: var(--ink); }
.rrow { display: grid; grid-template-columns: 4.5em 1fr auto 1fr 3em; align-items: center; text-align: center; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed #e3d6b8; }
.rrow:last-child { border-bottom: 0; }
.rrow .no { font-size: 12px; color: var(--ink-soft); text-align: left; }
.rrow b { font: 900 18px var(--sans); }
.rrow .dash { color: #c9b48a; }
.rrow .hid { color: var(--red-dark); font-weight: 700; letter-spacing: .1em; }
.rrow .yet { color: #b3a68a; font-size: 12px; }
.rrow em { font-style: normal; font-weight: 900; font-size: 13px; }
.rrow em.w { color: var(--red-dark); } .rrow em.l { color: #2f5fc4; } .rrow em.d { color: var(--ink-soft); }
.rounds .mini-c { margin: 4px 0; text-align: center; color: var(--ink-soft); font-size: 13px; }

.main { display: grid; justify-items: center; gap: 10px; margin: 18px 0 8px; text-align: center; }
.main .mini-c { color: #e9dcc0; font-size: 13px; margin: 0; }
.taiko { width: min(62vw, 230px); aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 50% 50%, #f6efe0 0 58%, #c8402e 59% 70%, #6e1f13 71% 74%, #3e2716 75%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 176, 112, .25); animation: breathe 1.6s ease-in-out infinite; }
.taiko-face { font: 900 26px/1.2 var(--serif); color: var(--ink); }
.taiko:active { transform: scale(.96); }
@keyframes breathe { 50% { box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 0 14px rgba(255, 176, 112, .12); } }
.wait { font-family: var(--serif); font-size: 18px; line-height: 1.6; margin: 24px 0; }
.wait small { font: 400 12px var(--sans); opacity: .8; }
.result { font: 900 44px var(--serif); color: var(--cream); }
.result.win { color: var(--lantern); text-shadow: 0 0 20px rgba(255, 176, 112, .6); }
.again { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.best { text-align: center; font-size: 12px; opacity: .85; margin: 4px 0 0; }
.best b { font-size: 16px; color: var(--lantern); }

/* 連打中の全画面 */
.noscroll { overflow: hidden; }
.tapov { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 60%, #2d3f6a, #0d1428); color: var(--cream);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background .3s; }
.tapov.hot { background: radial-gradient(circle at 50% 60%, #7a3a2a, #1d1220); }
.tapov.fire { background: radial-gradient(circle at 50% 60%, #c8402e, #3a0f08); }
.tap-top { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; font: 700 14px var(--sans); }
.tap-top #tLeft { font: 900 22px var(--sans); color: var(--lantern); }
.tap-bar { position: absolute; top: calc(48px + env(safe-area-inset-top)); left: 16px; right: 16px; height: 8px; border-radius: 4px; background: rgba(246, 239, 224, .15); overflow: hidden; }
.tap-bar i { display: block; height: 100%; width: 100%; background: var(--lantern); }
.tap-count { font: 900 min(28vw, 140px)/1 var(--sans); font-variant-numeric: tabular-nums; }
.tap-label { font: 700 18px/1.5 var(--serif); text-align: center; }
.tap-label small { font: 400 14px var(--sans); opacity: .9; }
.tap-drum { margin-top: 18px; width: min(56vw, 220px); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #f6efe0 0 58%, #c8402e 59% 70%, #6e1f13 71% 74%, #3e2716 75%); color: var(--ink); font: 900 30px var(--serif); pointer-events: none; }
.tap-drum.hit { animation: don .12s ease-out; }
@keyframes don { 0% { transform: scale(.9); } 100% { transform: scale(1); } }
.tap-close { margin-top: 24px; min-width: 60%; }
