* { box-sizing: border-box }
html { background: #0b1b25; color: #f8fbfa }
body {
  margin: 0 auto;
  width: min(90%, 790px);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  font-family: "Hiragino Sans", "Yu Gothic Medium", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before, #glass {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
body::before {
  content: "";
  background:
    radial-gradient(ellipse at 29% 48%, #041622b0, transparent 53%),
    radial-gradient(ellipse 30% 54% at 96% 75%, #c3927073, transparent 87%),
    radial-gradient(ellipse 34% 75% at 75% 18%, #9fc2c7a6, transparent 85%),
    radial-gradient(ellipse 50% 35% at 3% 106%, #31556199, transparent),
    linear-gradient(120deg, #213745, #122531 38%, #35545e 66%, #0a151f 95%);
}
main { width: 100%; padding: 46px 0 8vh }
header, h1, h2, a, button, .entry, .field, section, .title, .actions, .wave { display: flex; align-items: center }
header { justify-content: space-between; gap: 12px; margin: 0 5px 26px }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; width: 20px; flex: none }
h1 { margin: 0; min-width: 0; width: 184px }
h1 img { display: block; width: 100%; height: auto }
header a { flex: none }
a { font-size: 14px; gap: 10px; color: white; text-decoration: none; text-shadow: 0 1px 5px #0a2133; min-height: 44px }
a:hover { text-decoration: underline; text-underline-offset: 5px }
.pane {
  padding: 38px 42px 30px;
  border-radius: 28px;
  background: linear-gradient(118deg, #243c4b99, #142d39b8 72%, #23393da3);
  border: 1px solid #efffff38;
  backdrop-filter: blur(19px) saturate(1.15);
  box-shadow: inset 0 1px #efffff26, 0 25px 70px #05142357;
}
label { font-weight: 600; font-size: 24px; letter-spacing: .04em }
p { margin: 0; line-height: 1.8; color: #d5e3e8; font-size: 14px; letter-spacing: .025em }
#formats { margin: 8px 0 22px }
.entry { gap: 12px }
.field { flex: 1; min-width: 0; height: 56px; border-radius: 15px; border: 1px solid #daecf442; background: #04152280; padding: 0 18px; gap: 13px; color: #bfd2db }
input, button { font: inherit; color: inherit; border: 0; background: none; padding: 0 }
input { width: 100%; min-width: 0; color: white; height: 100%; outline: none }
input::placeholder { color: #b2c5cf; font-size: 15px }
button { cursor: pointer; gap: 9px; justify-content: center; border-radius: 15px; font-size: 15px; font-weight: 600; letter-spacing: .04em; transition: background .2s }
.primary { background: #cbf3e6; color: #122e37; height: 56px; padding-inline: 29px; box-shadow: inset 0 1px #fff, 0 5px 18px #081d2438 }
.primary:hover { background: #ebfff9 }
section { border-top: 1px solid #d6f4ff2e; margin-top: 34px; padding-top: 27px; gap: 24px; flex-wrap: wrap }
.title { gap: 12px }
.title svg { width: 26px; color: #bbecdf }
h2 { font-size: 16px; font-weight: 500; letter-spacing: .05em; margin: 0 }
.wave { flex: 1; height: 40px; gap: 3px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 9% 91%, transparent) }
.wave i { flex: 0 0 2px; background: #badedb99; border-radius: 2px }
#listen { min-height: 46px; padding: 0 18px; border: 1px solid #e1fff845; background: #d7fffb0e; border-radius: 28px; font-size: 14px; font-weight: 500 }
#listen svg { width: 16px; fill: currentColor; stroke: none }
#listen:hover, #listen[data-state] { background: #d7fffb24 }
.stop, #listen[data-state] .play { display: none }
#listen[data-state] .stop { display: block }
#error, #invalid { color: #ffdfc4; font-size: 13px; width: 100% }
#invalid:not(:empty) { margin-top: 12px }
p:empty { display: none }
a:focus-visible, button:focus-visible, .field:focus-within { outline: 2px solid #ddfff4; outline-offset: 4px }
@media (max-width: 720px) {
  main { padding: 38px 0 9vh }
  header { margin: 0 1px 18px }
  h1 { width: min(40vw, 156px) }
  a { font-size: 12px; gap: 5px }
  a svg { width: 16px }
  .pane { padding: 26px 20px 22px; border-radius: 23px }
  label { font-size: 21px }
  #formats { font-size: clamp(11px,3.1vw,14px); letter-spacing: 0; margin: 7px 0 18px }
  .entry { flex-direction: column; gap: 12px }
  .field, .primary { flex: auto; width: 100%; height: 51px; border-radius: 13px }
  section { margin-top: 25px; padding-top: 21px; gap: 10px }
  .title { gap: 7px }
  .title svg { width: 22px }
  h2 { font-size: 14px }
  #listen { font-size: 13px; padding: 0 12px; gap: 6px; min-height: 44px }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important }
}
[hidden] { display: none }
a { background: #0b202c99; border: 1px solid #eaffff38; border-radius: 30px; padding-inline: 18px; backdrop-filter: blur(10px) }
.actions { gap: 10px }
.primary svg { fill: currentColor; stroke: none; width: 16px }
.primary { padding-inline: 22px }
#share { border: 1px solid #d7fff961; height: 56px; padding-inline: 18px; font-size: 14px }
#share:hover { background: #ffffff18 }
#manual { border-radius: 8px; padding: 10px; background: #07171d88; height: 44px; margin-top: 6px }
#manual:focus { outline: 2px solid #c2f4e5 }
#feedback:not(:empty) { margin-top: 12px; font-size: 13px; color: #dcfff5 }
.wave i { flex: 1 1 0; min-width: 1px }
.wave i.heard { background: #cbffed }
@media (max-width: 720px) {
  a { padding-inline: 12px; font-size: clamp(11px, 3vw, 13px); min-height: 40px }
  .actions { width: 100%; gap: 8px }
  .primary { flex: 1; font-size: 14px; padding-inline: 4px; gap: 6px }
  #share { height: 51px; padding-inline: 12px; gap: 6px; border-radius: 13px }
  .wave { gap: 2px }
}
@media (max-width: 365px) {
  .primary svg { display: none }
  #share { padding-inline: 9px }
  #share svg { width: 16px }
  a { padding-inline: 9px }
}
