:root { font-family: system-ui, sans-serif; color: #062c3c; background: #dff4f2; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; }
.app { width: min(100%, 520px); min-height: 100vh; padding: 26px 20px 30px; text-align: center; background: #faffff; }
header h1 { font-size: 1.7rem; margin: 5px 0 0; } header p { margin: 4px; color: #55747d; font-size: 1.1rem; }
.mark { display: inline-grid; place-items: center; border-radius: 50%; width: 43px; height: 43px; background: #0f6173; color: white; font-size: 1.8rem; }
.languages { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 38px 0 13px; }
.language { min-height: 96px; border: 3px solid #b7dce0; border-radius: 18px; background: white; color: #123f52; font-size: 1.55rem; font-weight: 750; } .language small { display: block; font-size: .84rem; font-weight: 500; margin-top: 6px; }
.language.selected { border-color: #087c78; background: #e4f7ef; box-shadow: 0 2px 0 #087c78; } .arrow { font-size: 2rem; color: #087c78; }
.swap { border: 0; border-radius: 50%; background: #d0eceb; color: #075e63; width: 54px; height: 54px; font-size: 2rem; }
.recording-area { margin-top: 42px; } .microphone { width: 180px; height: 180px; border: 8px solid #bce7dd; border-radius: 50%; background: #087c78; color: white; box-shadow: 0 7px 0 #045c5e; font-size: 4.7rem; } .microphone:active, .microphone.recording { transform: translateY(5px); box-shadow: 0 2px 0 #045c5e; background: #d94e55; border-color: #ffd4d6; }
#status { min-height: 28px; margin: 24px 0 0; font-size: 1.2rem; font-weight: 600; } .hint { color: #55747d; margin-top: 32px; }
.result { text-align: left; margin: 25px 0 0; padding: 17px; background: #e8f5f8; border-radius: 15px; font-size: 1.25rem; overflow-wrap: anywhere; } .result p { margin: 5px 0 13px; } #replay { min-height: 48px; border: 0; border-radius: 12px; background: #123f52; color: white; padding: 0 19px; font-size: 1rem; font-weight: 700; }
button { cursor: pointer; } button:focus-visible { outline: 4px solid #efae38; outline-offset: 3px; }
@media (min-width: 521px) { .app { min-height: 720px; border-radius: 28px; box-shadow: 0 12px 40px #80b7b488; } }
