.boat-voice { position: absolute; z-index: 12; top: var(--boat-voice-top, 120px); left: max(20px, env(safe-area-inset-left)); width: 230px; padding: 10px 12px; border: 1px solid #c8b78b99; border-radius: 8px; background: #fff8e9eb; box-shadow: 0 4px 16px #163e4326; color: #183f43; pointer-events: auto; }
.boat-voice button { display: flex; align-items: center; gap: 8px; min-height: 44px; width: 100%; padding: 6px 4px; border: 0; border-radius: 4px; background: transparent; color: inherit; font-size: 10px; letter-spacing: .6px; text-align: left; touch-action: manipulation; }
.boat-voice button[aria-pressed='true'] { color: #187559; }
.boat-voice button[aria-pressed='true'] > span { text-shadow: 0 0 8px #269e6855; }
.boat-voice button:disabled { opacity: .55; }
.boat-voice button:focus-visible { outline: 2px solid #187559; outline-offset: 2px; }
.boat-voice p { font-size: 10px; line-height: 1.45; margin: 1px 0 0; }
.boat-voice [hidden] { display: none; }
.boat-voice #boat-voice-playback { color: #ad4633; margin-top: 4px; font-weight: 700; }
@media (max-width: 760px), (pointer: coarse) { .boat-voice { left: max(12px, env(safe-area-inset-left)); width: 204px; padding: 5px 9px; } }
@media (max-height: 500px) and (orientation: landscape) { .boat-voice { left: auto; right: max(12px, env(safe-area-inset-right)); width: 195px; } }
@media (max-height: 500px) and (orientation: landscape) {
  .adventure-race .boat-voice { left: max(12px, env(safe-area-inset-left)); right: auto; width: 215px; padding: 3px 9px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .adventure-race .boat-voice p { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .adventure-race .boat-voice #boat-voice-playback { width: 52px; margin: 0 0 0 4px; font-size: 8px; }
}
