/* CHECK OUT TRAINING: Score entry, keypad, quick scores, microphone state and individual voice darts. */
.player-action-btn { min-width: 0px; min-height: 27px; border-width: 1px; border-style: solid; border-image: none; padding: 3px 2px; font-size: 8px; font-weight: 400; line-height: 1; cursor: pointer; }
.player-action-btn:hover:not(:disabled) { filter: brightness(1.16); }
.player-action-btn:disabled { opacity: 0.28; cursor: not-allowed; }
.player-action-btn:not(:disabled):active { background: rgb(223, 244, 251); }
.mic-btn { width: 112px; flex: 0 0 auto; border-width: 1px; border-style: solid; border-image: none; font-size: 11px; font-weight: 400; cursor: pointer; }
.mic-dot { display: block; width: 12px; height: 12px; margin: 0px auto 7px; border-radius: 50%; background: var(--mic-dot-color, rgb(155, 176, 186)); }
@keyframes micPulse { 
  50% { transform: scale(1.18); }
}
.voice-status { min-height: 31px; margin: 9px 0px; padding: 7px 10px; color: rgb(104, 133, 147); background: rgb(242, 248, 250); font-size: 10px; font-weight: 400; text-align: center; }
.keypad { display: grid; width: min(300px, 100%); margin: 0px auto; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.keypad button { min-height: 48px; border: 1px solid rgb(203, 223, 231); color: rgb(36, 75, 93); background: rgb(255, 255, 255); box-shadow: rgba(34, 84, 107, 0.06) 0px 3px 7px; font-size: 18px; font-weight: 800; cursor: pointer; }
.keypad button:hover { background: rgb(240, 249, 252); }
.keypad .key-clear { color: rgb(189, 72, 81); background: rgb(255, 247, 247); }
.keypad .key-enter { color: rgb(255, 255, 255); background: rgb(20, 139, 184); font-size: 11px; }
.quick-score { margin-top: 14px; border: 1px solid rgb(212, 229, 236); padding: 10px; background: rgb(248, 251, 252); }
.quick-score > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.quick-score button { min-height: 42px; border: 1px solid rgb(175, 215, 230); color: rgb(8, 123, 169); background: rgb(255, 255, 255); font-size: 15px; font-weight: 400; cursor: pointer; }
@media (max-width: 920px) {
  .compact-game > .compact-input { order: 2; }
}
@media (max-width: 430px) {
  .mic-btn { width: 100%; min-height: 52px; }
  .mic-dot { display: inline-block; margin: 0px 8px 0px 0px; vertical-align: middle; }
}
.score-menu .mic-btn.compact { width: auto; min-height: 34px; display: flex; align-items: center; gap: 7px; border-radius: 0px; padding: 6px 10px; }
.score-menu .mic-btn.compact .mic-dot { width: 9px; height: 9px; margin: 0px; }
.compact-input .voice-status { min-height: 24px; margin: 0px 0px 7px; padding: 4px 8px; }
.compact-input .keypad { gap: 0px; border-top: 1px solid rgb(184, 204, 213); border-left: 1px solid rgb(184, 204, 213); }
.compact-input .keypad button { margin: 0px; border-width: 0px 1px 1px 0px; border-style: none solid solid none; border-color: currentcolor rgb(184, 204, 213) rgb(184, 204, 213) currentcolor; border-image: none; box-shadow: none; }
.compact-input .quick-score { margin: 7px auto 0px; border: 0px; padding: 0px; background: transparent; }
@media (max-width: 540px) {
  .player-action-btn { min-height: 24px; padding-inline: 1px; font-size: 7px; }
}
.compact-input .keypad { max-width: none; }
.compact-input .quick-score { width: 100%; max-width: none; }
.player-action-btn { border-radius: 0px; }
.mic-btn { border-radius: 0px; }
.voice-status { border-radius: 0px; }
.keypad button { border-radius: 0px; }
.quick-score { border-radius: 0px; }
.quick-score button { border-radius: 0px; }
.compact-input { border-radius: 0px; }
.compact-input .keypad button { border-radius: 0px; }
.compact-input .quick-score button { border-radius: 0px; }
.com-throw-overlay { position: fixed; display: grid; place-items: center; pointer-events: none; background: transparent; }
.com-throw-overlay[hidden] { display: none; }
.com-throw-card { border-radius: 0px; }
.com-throw-heading { align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgb(199, 223, 232); padding: 0px 2px 9px; }
.com-throw-heading span { color: rgb(102, 131, 146); font-size: 10px; letter-spacing: 0.12em; }
.com-throw-heading strong { overflow: hidden; color: rgb(8, 126, 174); font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.com-throw-dart { text-align: center; }
.com-throw-dart span { display: block; }
.com-throw-dart strong { display: block; margin-top: 3px; line-height: 1; font-weight: 400; }
.com-throw-dart small { display: block; }
.com-throw-total span { letter-spacing: 0.1em; }
.com-throw-total strong { line-height: 1; font-weight: 400; }
.com-throw-card.bust { border-color: rgb(217, 75, 85); }
.com-throw-card.bust .com-throw-total strong { color: rgb(188, 62, 73); font-size: 24px; }
.com-throw-card.checkout { border-color: rgb(38, 162, 105); }
.com-throw-card.checkout .com-throw-total strong { color: rgb(24, 121, 78); }
@media (max-width: 540px) {
  .com-throw-card { width: min(390px, 100%); padding: 10px; }
  .com-throw-darts { gap: 4px; }
  .com-throw-dart { padding: 7px 2px; }
  .com-throw-dart strong { font-size: clamp(28px, 12vw, 42px); }
}
.com-throw-darts[data-visible="0"] { grid-template-columns: 1fr; }
.com-throw-darts[data-visible="1"] { grid-template-columns: 1fr; }
.com-throw-darts[data-visible="2"] { grid-template-columns: repeat(2, 1fr); }
.com-throw-darts[data-visible="3"] { grid-template-columns: repeat(3, 1fr); }
@keyframes comDartStepIn { 
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0px); }
}
.score-menu-actions { flex: 0 0 auto; }
.score-menu-actions .btn { min-height: 34px; padding: 5px 8px; font-size: 9px; white-space: nowrap; }
.score-menu-actions .mic-btn.compact { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 620px) {
  .score-menu-actions { gap: 2px; }
  .score-menu-actions .btn { min-height: 30px; padding: 4px 5px; font-size: 7px; }
  .score-menu-actions .mic-btn.compact { min-height: 30px; padding: 4px 5px; font-size: 7px; }
}

.player-action-btn { color: rgb(234, 244, 252); background: rgb(71, 74, 77); border-color: rgb(234, 244, 252); box-shadow: none; }
.mic-btn { color: rgb(234, 244, 252); background: rgb(71, 74, 77); border-color: rgb(234, 244, 252); box-shadow: none; }
.player-action-btn.finish { color: rgb(56, 60, 60); background: rgb(195, 216, 37); border-color: rgb(195, 216, 37); box-shadow: none; }

.com-throw-card { box-shadow: none; color: rgb(23, 37, 44); }
.compact-input { color: rgb(23, 37, 44); background: rgb(255, 255, 255); border-color: rgb(213, 221, 225); box-shadow: none; padding: 10px; }
.checkout-actions { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 6px; margin-bottom: 8px; }
.checkout-actions .player-action-btn { min-height: 44px; padding: 8px; color: rgb(23, 37, 44); background: rgb(237, 243, 204); border-color: rgb(202, 215, 156); font-size: 15px; }
.checkout-actions .player-action-btn:disabled { opacity: 1; color: rgb(131, 144, 150); background: rgb(247, 249, 250); border-color: rgb(220, 226, 229); }
.compact-input .keypad { width: 100%; grid-template-columns: repeat(3, minmax(0px, 1fr)); }
.compact-input .keypad button { min-height: 60px; font-size: 25px; touch-action: manipulation; }
.compact-input .keypad .key-enter { font-size: 17px; background: rgb(195, 216, 37); color: rgb(23, 37, 44); }
.compact-input .quick-score button { min-height: 44px; font-size: 17px; touch-action: manipulation; }
@media (max-width: 540px) {
  .score-menu-actions { width: 100%; justify-content: space-between; }
  .score-menu .mic-btn.compact { min-height: 34px; padding: 5px 7px; font-size: 10px; border-radius: 0px; }
  .compact-input { padding: 7px; }
  .compact-input .keypad button { min-height: 52px; font-size: 24px; }
  .checkout-actions .player-action-btn { min-height: 42px; font-size: 14px; }
  .compact-input .quick-score button { min-height: 42px; font-size: 16px; }
}
.pc-only { display: none; }
@media (min-width: 921px) {
  .pc-only { display: block; }
  .score-menu-actions { max-height: calc(100dvh - 180px); overflow-y: auto; flex-wrap: nowrap; }
  #functionKeyLegend { flex: 0 0 auto; padding-bottom: 10px; border-bottom: 1px solid rgb(85, 85, 85); }
  #functionKeyLegend > div { display: flex; gap: 10px; align-items: center; min-height: 24px; color: rgb(238, 238, 238); font-size: clamp(12px, 1.15vw, 18px); letter-spacing: 0px; }
  #functionKeyLegend kbd { min-width: 36px; color: rgb(170, 178, 184); font-family: inherit; }
  .score-menu-actions > button { flex-shrink: 0; }
}

.compact-input { display: none; }
.keypad-toggle { display: none; }
.score-menu-actions { position: absolute; top: auto; bottom: calc(var(--footer-height) + 12px); right: clamp(6px, 1cqw, 18px); display: flex; flex-flow: column; align-items: stretch; width: clamp(94px, 15cqw, 210px); gap: clamp(4px, 0.9cqh, 10px); max-height: calc(100cqh - var(--footer-height) - 24px); overflow-y: auto; z-index: 4; }
.score-menu .score-menu-actions .btn { width: 100%; min-height: clamp(32px, 4.5cqh, 44px); flex-shrink: 0; justify-content: center; padding: 6px; border: 1px solid rgb(69, 71, 72); color: rgb(238, 238, 238); background: rgba(25, 27, 29, 0.8); font-size: clamp(11px, 1cqw, 14px); text-align: center; }
.score-menu .score-menu-actions .mic-btn.compact { width: 100%; min-height: clamp(32px, 4.5cqh, 44px); flex-shrink: 0; justify-content: center; padding: 6px; border: 1px solid var(--mic-active-background, rgb(69, 71, 72)); color: rgb(255, 255, 255); background: var(--mic-active-background, rgba(25, 27, 29, 0.8)); font-size: clamp(11px, 1cqw, 14px); text-align: center; }
.com-throw-overlay { inset: auto auto calc(28.5cqh + var(--footer-height)*.75 - var(--score-size)*.2 - clamp(25px,5cqh,54px)) 50%; transform: translateX(-50%); width: 48%; height: clamp(50px, 10cqh, 108px); padding: 0px; z-index: 10; }
.com-throw-card { display: flex; align-items: stretch; gap: 10px; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; background: transparent; animation: auto ease 0s 1 normal none running none; }
.com-throw-heading { display: none; }
.com-throw-darts { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); flex: 3 1 0%; min-width: 0px; margin: 0px; gap: 8px; }
.com-throw-darts[data-visible] { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); flex: 3 1 0%; min-width: 0px; margin: 0px; gap: 8px; }
.com-throw-dart { position: relative; height: 100%; min-width: 0px; border-width: 0px 0px 2px; border-style: none none solid; border-color: currentcolor currentcolor rgb(136, 136, 136); border-image: none; padding: 0px; background: transparent; }
.com-throw-dart.step-hidden { display: block; }
.com-throw-dart.step-hidden > * { visibility: hidden; }
.com-throw-dart.step-show { animation: auto ease 0s 1 normal none running none; }
.com-throw-dart strong { font-family: Meiryo, メイリオ, "Noto Sans JP", sans-serif; color: rgb(255, 255, 255); font-size: clamp(22px, 3.6cqw, 58px); }
.com-throw-total strong { font-family: Meiryo, メイリオ, "Noto Sans JP", sans-serif; color: rgb(255, 255, 255); font-size: clamp(22px, 3.6cqw, 58px); }
.com-throw-dart span { color: rgb(191, 197, 199); font-size: clamp(8px, 0.8cqw, 12px); }

.com-throw-total span { color: rgb(191, 197, 199); font-size: clamp(8px, 0.8cqw, 12px); }
.com-throw-dart small { color: rgb(191, 197, 199); font-size: clamp(8px, 0.8cqw, 12px); min-height: 0px; margin-top: 0px; }
.com-throw-total { display: flex; flex: 1 1 0%; min-width: 0px; flex-direction: column; align-items: center; justify-content: center; margin: 0px; padding: 0px; border-width: 0px 0px 2px; border-style: none none solid; border-color: currentcolor currentcolor rgb(221, 221, 221); border-image: none; gap: 2px; }
.com-throw-total.step-hidden { visibility: visible; }
.com-throw-total.step-hidden > * { visibility: hidden; }
@media (pointer: coarse), (max-width: 920px) {
  .pc-only { display: none; }
  .score-menu-actions { left: clamp(6px, 1cqw, 14px); right: auto; bottom: calc(var(--footer-height) + 6px); width: calc(var(--rail-width) - clamp(12px,2cqw,28px)); display: grid; grid-template-columns: minmax(0px, 1fr); gap: 3px; height: var(--mobile-menu-height); max-height: none; grid-auto-rows: var(--mobile-button-height); overflow: visible; }
  .score-menu .score-menu-actions .btn { min-width: 0px; min-height: 0px; height: var(--mobile-button-height); padding: 1px 2px; font-size: clamp(9px, 1.15cqw, 13px); line-height: 1.2; white-space: normal; }
  .score-menu .score-menu-actions .mic-btn.compact { min-width: 0px; min-height: 0px; height: var(--mobile-button-height); padding: 1px 2px; font-size: clamp(9px, 1.15cqw, 13px); line-height: 1.2; white-space: normal; }
  .compact-input { position: absolute; display: flex; flex-direction: column; right: clamp(6px, 1cqw, 14px); top: clamp(8px, 2cqh, 20px); bottom: calc(var(--footer-height) + 8px); width: 24%; height: auto; padding: 0px; overflow: auto; border: 0px; background: transparent; z-index: 4; }
  .compact-input .checkout-actions { gap: 4px; margin-bottom: 6px; flex-shrink: 0; }
  .compact-input .checkout-actions .player-action-btn { min-height: 28px; padding: 3px; font-size: clamp(10px, 1.2cqw, 15px); }
  .voice-input .keypad-toggle { display: block; align-self: flex-end; flex-shrink: 0; width: calc(33.3333% - 2.66667px); min-height: 28px; margin-bottom: 6px; padding: 2px; border: 1px solid rgb(74, 80, 83); background: rgb(36, 40, 42); color: rgb(238, 238, 238); font-size: clamp(9px, 1.1cqw, 13px); cursor: pointer; }
  .voice-input:not(.keypad-expanded) { --score-size: min(28cqw, 46cqh, 460px); }
  .voice-input:not(.keypad-expanded) .compact-input { bottom: auto; overflow: visible; }
  .voice-input:not(.keypad-expanded) .compact-input .keypad { display: none; }
  .voice-input:not(.keypad-expanded) .compact-input .quick-score { display: none; }
  .voice-input:not(.keypad-expanded) .score-head-grid .score-player { flex-basis: 60%; }
  .compact-input .keypad { flex: 1 1 0%; min-height: 120px; display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); grid-template-rows: repeat(4, minmax(0px, 1fr)); border: 0px; gap: 4px; width: 100%; }
  .compact-input .keypad button { min-height: 0px; padding: 3px; color: rgb(238, 238, 238); background: rgb(36, 40, 42); border: 1px solid rgb(74, 80, 83); font-size: clamp(19px, 2.7cqw, 34px); }
  .compact-input .keypad .key-enter { font-size: clamp(10px, 1.3cqw, 17px); color: rgb(23, 37, 44); background: rgb(195, 216, 37); }
  .compact-input .quick-score { margin-top: 6px; padding: 0px; border: 0px; background: transparent; flex-shrink: 0; }
  .compact-input .quick-score > div { gap: 4px; }
  .compact-input .quick-score button { min-height: 28px; padding: 2px; font-size: clamp(11px, 1.4cqw, 17px); color: rgb(238, 238, 238); background: rgb(36, 40, 42); border-color: rgb(74, 80, 83); }
}
@media (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (hover: none) {
  .score-menu-actions { bottom: 6px; }
  .score-menu .score-menu-actions #micBtn { position: fixed; right: clamp(6px, 1cqw, 14px); bottom: calc(9px + (var(--footer-height) - 15px) / 2); width: 24%; height: calc((var(--footer-height) - 15px) / 2); min-height: 0px; padding: 2px; }
  .compact-input { bottom: calc(var(--footer-height) + 6px); }
  .compact-input .quick-score { display: none; }
}
.voice-score-feedback { position: absolute; top: 100%; left: 0px; width: 100%; color: rgb(255, 224, 131); text-align: center; font-weight: 400; font-size: clamp(14px, 2.2cqw, 32px); line-height: 1.4; }

@media (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (hover: none) {
  .score-menu .score-menu-actions #singleDartMicBtn { position: fixed; right: clamp(6px, 1cqw, 14px); bottom: 6px; width: 24%; height: calc((var(--footer-height) - 15px) / 2); min-height: 0px; padding: 2px; }
}
.microphone-notice { position: absolute; z-index: 11; bottom: calc(var(--footer-height) + 5px); left: 26%; width: 46%; color: rgb(255, 224, 131); font-size: clamp(10px, 1.2cqw, 17px); text-align: center; line-height: 1.4; pointer-events: none; padding: 4px 6px; background: rgba(16, 18, 20, 0.95); border-radius: 4px; }
.score-menu-actions #micLabel { font-size: clamp(9px, 1.15cqw, 13px); }
.score-menu-actions #micLabel::after { content: none; }
.voice-dart-active .round-start-overlay { display: none; }
#comThrowOverlay[data-mode="voice"] .com-throw-dart small { display: none; }
@media (pointer: coarse), (max-width: 920px) {
  .game-viewport.voice-input:not(.keypad-expanded) { --score-size: min(25cqw, 42cqh, calc((100cqh - var(--footer-height) - 118px) / 1.2)); }
}
body button[data-mic-active="true"] { --mic-active-background: rgb(235, 98, 56); --mic-dot-color: rgb(255, 255, 255); }
